File tree Expand file tree Collapse file tree 11 files changed +60
-102
lines changed
src/app/(app)/(dashboard)/(chain)/[chain_id]/(chainPage) Expand file tree Collapse file tree 11 files changed +60
-102
lines changed Original file line number Diff line number Diff line change 1
1
# *
2
2
User-agent: *
3
- Allow : /
3
+ Disallow : /
4
4
5
5
# Host
6
6
Host: https://thirdweb.com
Original file line number Diff line number Diff line change
1
+ "use client" ;
1
2
import { defineChain , type ThirdwebClient } from "thirdweb" ;
2
3
import type { ChainMetadata } from "thirdweb/chains" ;
3
- import { SectionTitle } from "./SectionTitle" ;
4
4
import { BuyWidget } from "thirdweb/react" ;
5
5
6
6
export function BuyFundsSection ( props : {
@@ -9,11 +9,11 @@ export function BuyFundsSection(props: {
9
9
} ) {
10
10
return (
11
11
< section className = "flex flex-col gap-4 items-center justify-center" >
12
- < SectionTitle title = "Bridge" />
13
12
< BuyWidget
14
- client = { props . client }
15
- chain = { defineChain ( props . chain . chainId ) }
16
13
amount = "0.01"
14
+ // eslint-disable-next-line no-restricted-syntax
15
+ chain = { defineChain ( props . chain . chainId ) }
16
+ client = { props . client }
17
17
/>
18
18
</ section >
19
19
) ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { getClientThirdwebClient } from "@/constants/thirdweb-client.client";
3
3
import { getRawAccount } from "../../../../account/settings/getAccount" ;
4
4
import { getChain , getChainMetadata } from "../../utils" ;
5
5
import NextSteps from "./components/client/NextSteps" ;
6
- import { BuyFundsSection } from "./components/server /BuyFundsSection" ;
6
+ import { BuyFundsSection } from "./components/client /BuyFundsSection" ;
7
7
import { ChainOverviewSection } from "./components/server/ChainOverviewSection" ;
8
8
import { ClaimChainSection } from "./components/server/ClaimChainSection" ;
9
9
import { ChainCTA } from "./components/server/cta-card" ;
Original file line number Diff line number Diff line change
1
+ {
2
+ "name" : " login" ,
3
+ "version" : " 0.0.0" ,
4
+ "private" : true
5
+ }
Original file line number Diff line number Diff line change @@ -163,13 +163,13 @@ export declare namespace quote {
163
163
client : ThirdwebClient ;
164
164
maxSteps ?: number ;
165
165
} & (
166
- | {
166
+ | {
167
167
buyAmountWei : bigint ;
168
168
}
169
- | {
169
+ | {
170
170
amount : bigint ;
171
171
}
172
- ) ;
172
+ ) ;
173
173
174
174
type Result = Quote & {
175
175
intent : {
Original file line number Diff line number Diff line change @@ -166,15 +166,15 @@ export type BuyWidgetProps = {
166
166
type UIOptionsResult =
167
167
| { type : "success" ; data : UIOptions }
168
168
| {
169
- type : "indexing_token" ;
170
- token : Token ;
171
- chain : Chain ;
172
- }
169
+ type : "indexing_token" ;
170
+ token : Token ;
171
+ chain : Chain ;
172
+ }
173
173
| {
174
- type : "unsupported_token" ;
175
- tokenAddress : Address ;
176
- chain : Chain ;
177
- } ;
174
+ type : "unsupported_token" ;
175
+ tokenAddress : Address ;
176
+ chain : Chain ;
177
+ } ;
178
178
179
179
/**
180
180
* Widget is a prebuilt UI for purchasing a specific token.
@@ -285,7 +285,7 @@ export function BuyWidget(props: BuyWidgetProps) {
285
285
! props . tokenAddress ||
286
286
( isAddress ( props . tokenAddress ) &&
287
287
checksumAddress ( props . tokenAddress ) ===
288
- checksumAddress ( NATIVE_TOKEN_ADDRESS ) )
288
+ checksumAddress ( NATIVE_TOKEN_ADDRESS ) )
289
289
) {
290
290
const ETH = await getToken (
291
291
props . client ,
@@ -455,10 +455,10 @@ type BuyWidgetConnectOptions = {
455
455
* ```
456
456
*/
457
457
autoConnect ?:
458
- | {
459
- timeout : number ;
460
- }
461
- | boolean ;
458
+ | {
459
+ timeout : number ;
460
+ }
461
+ | boolean ;
462
462
463
463
/**
464
464
* Metadata of the app that will be passed to connected wallet. Setting this is highly recommended.
Original file line number Diff line number Diff line change @@ -172,15 +172,15 @@ export type CheckoutWidgetProps = {
172
172
type UIOptionsResult =
173
173
| { type : "success" ; data : UIOptions }
174
174
| {
175
- type : "indexing_token" ;
176
- token : Token ;
177
- chain : Chain ;
178
- }
175
+ type : "indexing_token" ;
176
+ token : Token ;
177
+ chain : Chain ;
178
+ }
179
179
| {
180
- type : "unsupported_token" ;
181
- tokenAddress : Address ;
182
- chain : Chain ;
183
- } ;
180
+ type : "unsupported_token" ;
181
+ tokenAddress : Address ;
182
+ chain : Chain ;
183
+ } ;
184
184
185
185
/**
186
186
* Widget a prebuilt UI for purchasing a specific token.
@@ -418,10 +418,10 @@ type CheckoutWidgetConnectOptions = {
418
418
* ```
419
419
*/
420
420
autoConnect ?:
421
- | {
422
- timeout : number ;
423
- }
424
- | boolean ;
421
+ | {
422
+ timeout : number ;
423
+ }
424
+ | boolean ;
425
425
426
426
/**
427
427
* Metadata of the app that will be passed to connected wallet. Setting this is highly recommended.
Original file line number Diff line number Diff line change @@ -172,15 +172,15 @@ export type TransactionWidgetProps = {
172
172
type UIOptionsResult =
173
173
| { type : "success" ; data : UIOptions }
174
174
| {
175
- type : "indexing_token" ;
176
- token : Token ;
177
- chain : Chain ;
178
- }
175
+ type : "indexing_token" ;
176
+ token : Token ;
177
+ chain : Chain ;
178
+ }
179
179
| {
180
- type : "unsupported_token" ;
181
- tokenAddress : Address ;
182
- chain : Chain ;
183
- } ;
180
+ type : "unsupported_token" ;
181
+ tokenAddress : Address ;
182
+ chain : Chain ;
183
+ } ;
184
184
185
185
/**
186
186
* Widget a prebuilt UI for purchasing a specific token.
@@ -443,10 +443,10 @@ type TransactionWidgetConnectOptions = {
443
443
* ```
444
444
*/
445
445
autoConnect ?:
446
- | {
447
- timeout : number ;
448
- }
449
- | boolean ;
446
+ | {
447
+ timeout : number ;
448
+ }
449
+ | boolean ;
450
450
451
451
/**
452
452
* Metadata of the app that will be passed to connected wallet. Setting this is highly recommended.
Original file line number Diff line number Diff line change @@ -356,9 +356,9 @@ export function PayEmbed(props: PayEmbedProps) {
356
356
amount = { props . payOptions . prefillBuy . amount || "0.01" }
357
357
chain = { props . payOptions . prefillBuy . chain }
358
358
client = { props . client }
359
+ onSuccess = { ( ) => props . payOptions ?. onPurchaseSuccess ?.( ) }
359
360
theme = { theme }
360
361
title = { metadata ?. name || "Buy" }
361
- onSuccess = { ( ) => props . payOptions ?. onPurchaseSuccess ?.( ) }
362
362
tokenAddress = {
363
363
props . payOptions . prefillBuy . token ?. address as Address | undefined
364
364
}
@@ -375,8 +375,8 @@ export function PayEmbed(props: PayEmbedProps) {
375
375
description = { metadata ?. description }
376
376
image = { metadata ?. image }
377
377
name = { metadata ?. name || "Checkout" }
378
- seller = { props . payOptions . paymentInfo . sellerAddress as Address }
379
378
onSuccess = { ( ) => props . payOptions ?. onPurchaseSuccess ?.( ) }
379
+ seller = { props . payOptions . paymentInfo . sellerAddress as Address }
380
380
theme = { theme }
381
381
tokenAddress = {
382
382
props . payOptions . paymentInfo . token ?. address as Address | undefined
@@ -391,8 +391,8 @@ export function PayEmbed(props: PayEmbedProps) {
391
391
client = { props . client }
392
392
description = { metadata ?. description }
393
393
image = { metadata ?. image }
394
- theme = { theme }
395
394
onSuccess = { ( ) => props . payOptions ?. onPurchaseSuccess ?.( ) }
395
+ theme = { theme }
396
396
title = { metadata ?. name }
397
397
transaction = { props . payOptions . transaction }
398
398
/>
@@ -513,10 +513,10 @@ export type PayEmbedConnectOptions = {
513
513
* ```
514
514
*/
515
515
autoConnect ?:
516
- | {
517
- timeout : number ;
518
- }
519
- | boolean ;
516
+ | {
517
+ timeout : number ;
518
+ }
519
+ | boolean ;
520
520
521
521
/**
522
522
* Metadata of the app that will be passed to connected wallet. Setting this is highly recommended.
You can’t perform that action at this time.
0 commit comments