thirdweb 5.105.16-nightly-592bf6f1fdd4f1a2babbef94a37b93881d28b6f5-20250712000413 → 5.105.17-nightly-0f38a1287af527da53e7948b54e0dfd4b738fa69-20250718000405
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/bridge/Buy.js.map +1 -1
- package/dist/cjs/bridge/Sell.js.map +1 -1
- package/dist/cjs/chains/chain-definitions/etherlink-testnet.js +24 -0
- package/dist/cjs/chains/chain-definitions/etherlink-testnet.js.map +1 -0
- package/dist/cjs/chains/chain-definitions/etherlink.js +23 -0
- package/dist/cjs/chains/chain-definitions/etherlink.js.map +1 -0
- package/dist/cjs/engine/create-server-wallet.js +1 -1
- package/dist/cjs/engine/server-wallet.js +1 -1
- package/dist/cjs/exports/chains.js +6 -2
- package/dist/cjs/exports/chains.js.map +1 -1
- package/dist/cjs/react/core/hooks/usePaymentMethods.js +32 -10
- package/dist/cjs/react/core/hooks/usePaymentMethods.js.map +1 -1
- package/dist/cjs/react/web/ui/Bridge/BuyWidget.js +12 -1
- package/dist/cjs/react/web/ui/Bridge/BuyWidget.js.map +1 -1
- package/dist/cjs/react/web/ui/Bridge/TransactionPayment.js +6 -4
- package/dist/cjs/react/web/ui/Bridge/TransactionPayment.js.map +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/bridge/Buy.js.map +1 -1
- package/dist/esm/bridge/Sell.js.map +1 -1
- package/dist/esm/chains/chain-definitions/etherlink-testnet.js +21 -0
- package/dist/esm/chains/chain-definitions/etherlink-testnet.js.map +1 -0
- package/dist/esm/chains/chain-definitions/etherlink.js +20 -0
- package/dist/esm/chains/chain-definitions/etherlink.js.map +1 -0
- package/dist/esm/engine/create-server-wallet.js +1 -1
- package/dist/esm/engine/server-wallet.js +1 -1
- package/dist/esm/exports/chains.js +2 -0
- package/dist/esm/exports/chains.js.map +1 -1
- package/dist/esm/react/core/hooks/usePaymentMethods.js +32 -10
- package/dist/esm/react/core/hooks/usePaymentMethods.js.map +1 -1
- package/dist/esm/react/web/ui/Bridge/BuyWidget.js +12 -1
- package/dist/esm/react/web/ui/Bridge/BuyWidget.js.map +1 -1
- package/dist/esm/react/web/ui/Bridge/TransactionPayment.js +6 -4
- package/dist/esm/react/web/ui/Bridge/TransactionPayment.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/types/bridge/Buy.d.ts +50 -0
- package/dist/types/bridge/Buy.d.ts.map +1 -1
- package/dist/types/bridge/Chains.d.ts +17 -0
- package/dist/types/bridge/Chains.d.ts.map +1 -1
- package/dist/types/bridge/Onramp.d.ts +30 -0
- package/dist/types/bridge/Onramp.d.ts.map +1 -1
- package/dist/types/bridge/Routes.d.ts +27 -0
- package/dist/types/bridge/Routes.d.ts.map +1 -1
- package/dist/types/bridge/Sell.d.ts +49 -0
- package/dist/types/bridge/Sell.d.ts.map +1 -1
- package/dist/types/bridge/Status.d.ts +23 -0
- package/dist/types/bridge/Status.d.ts.map +1 -1
- package/dist/types/bridge/Transfer.d.ts +24 -0
- package/dist/types/bridge/Transfer.d.ts.map +1 -1
- package/dist/types/chains/chain-definitions/etherlink-testnet.d.ts +7 -0
- package/dist/types/chains/chain-definitions/etherlink-testnet.d.ts.map +1 -0
- package/dist/types/chains/chain-definitions/etherlink.d.ts +7 -0
- package/dist/types/chains/chain-definitions/etherlink.d.ts.map +1 -0
- package/dist/types/engine/create-server-wallet.d.ts +1 -1
- package/dist/types/engine/server-wallet.d.ts +1 -1
- package/dist/types/exports/chains.d.ts +2 -0
- package/dist/types/exports/chains.d.ts.map +1 -1
- package/dist/types/react/core/hooks/usePaymentMethods.d.ts.map +1 -1
- package/dist/types/react/web/ui/Bridge/BuyWidget.d.ts.map +1 -1
- package/dist/types/react/web/ui/Bridge/TransactionPayment.d.ts.map +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +3 -3
- package/src/bridge/Buy.ts +50 -0
- package/src/bridge/Chains.ts +17 -0
- package/src/bridge/Onramp.ts +30 -0
- package/src/bridge/Routes.ts +27 -0
- package/src/bridge/Sell.ts +49 -0
- package/src/bridge/Status.ts +23 -0
- package/src/bridge/Transfer.ts +24 -0
- package/src/chains/chain-definitions/etherlink-testnet.ts +21 -0
- package/src/chains/chain-definitions/etherlink.ts +20 -0
- package/src/engine/create-server-wallet.ts +1 -1
- package/src/engine/server-wallet.ts +1 -1
- package/src/exports/chains.ts +2 -0
- package/src/react/core/hooks/usePaymentMethods.ts +49 -13
- package/src/react/web/ui/Bridge/BuyWidget.tsx +12 -1
- package/src/react/web/ui/Bridge/TransactionPayment.tsx +22 -16
- package/src/version.ts +1 -1
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"etherlink.d.ts","sourceRoot":"","sources":["../../../../src/chains/chain-definitions/etherlink.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,eAAO,MAAM,SAAS;;EAcpB,CAAC"}
|
@@ -4,7 +4,7 @@ export type CreateServerWalletArgs = {
|
|
4
4
|
label: string;
|
5
5
|
};
|
6
6
|
/**
|
7
|
-
* Create a server wallet.
|
7
|
+
* Create a new server wallet.
|
8
8
|
* @param params - The parameters for the server wallet.
|
9
9
|
* @param params.client - The thirdweb client to use.
|
10
10
|
* @param params.label - The label for the server wallet.
|
@@ -45,7 +45,7 @@ export type ServerWallet = Account & {
|
|
45
45
|
}>;
|
46
46
|
};
|
47
47
|
/**
|
48
|
-
*
|
48
|
+
* Use a server wallet for sending transactions and signing messages via engine (v3+).
|
49
49
|
* @param options - The server wallet options.
|
50
50
|
* @returns An account object that can be used to send transactions and sign messages.
|
51
51
|
* @engine
|
@@ -26,6 +26,8 @@ export { coreTestnet } from "../chains/chain-definitions/core-testnet.js";
|
|
26
26
|
export { cronos } from "../chains/chain-definitions/cronos.js";
|
27
27
|
export { degen } from "../chains/chain-definitions/degen.js";
|
28
28
|
export { ethereum, mainnet } from "../chains/chain-definitions/ethereum.js";
|
29
|
+
export { etherlink } from "../chains/chain-definitions/etherlink.js";
|
30
|
+
export { etherlinkTestnet } from "../chains/chain-definitions/etherlink-testnet.js";
|
29
31
|
export { fantom } from "../chains/chain-definitions/fantom.js";
|
30
32
|
export { fantomTestnet } from "../chains/chain-definitions/fantom-testnet.js";
|
31
33
|
export { frameTestnet } from "../chains/chain-definitions/frame-testnet.js";
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"chains.d.ts","sourceRoot":"","sources":["../../../src/exports/chains.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,yCAAyC,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,iDAAiD,CAAC;AAElF;;GAEG;AACH,OAAO,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,MAAM,yCAAyC,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,8CAA8C,CAAC;AAC5E,OAAO,EAAE,eAAe,EAAE,MAAM,iDAAiD,CAAC;AAClF,OAAO,EAAE,iBAAiB,EAAE,MAAM,mDAAmD,CAAC;AACtF,OAAO,EAAE,gBAAgB,EAAE,MAAM,mDAAmD,CAAC;AACrF,OAAO,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,MAAM,+CAA+C,CAAC;AAC9E,OAAO,EAAE,IAAI,EAAE,MAAM,qCAAqC,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,6CAA6C,CAAC;AAC1E,OAAO,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,kDAAkD,CAAC;AACpF,OAAO,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,8CAA8C,CAAC;AAC5E,OAAO,EAAE,GAAG,EAAE,MAAM,oCAAoC,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,4CAA4C,CAAC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AA2B,CAAC;AAGhE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uCAAuC,CAAC;
|
1
|
+
{"version":3,"file":"usePaymentMethods.d.ts","sourceRoot":"","sources":["../../../../../src/react/core/hooks/usePaymentMethods.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gCAAgC,CAAC;AAK5D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAGhE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uCAAuC,CAAC;AAKpE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AASnE;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE;IACzC,gBAAgB,EAAE,KAAK,CAAC;IACxB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,MAAM,EAAE,cAAc,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,uBAAuB,CAAC,EAAE,OAAO,CAAC;CACnC;;;;;;;EAqOA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"BuyWidget.d.ts","sourceRoot":"","sources":["../../../../../../src/react/web/ui/Bridge/BuyWidget.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAGnE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EACL,KAAK,OAAO,EAGb,MAAM,8BAA8B,CAAC;AAEtC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,0CAA0C,CAAC;AACvE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAC7E,OAAO,KAAK,EAAE,WAAW,EAAE,M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AE,KAAK,EAAE,CAAC;IAEjB;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;IAE9B;;;;OAIG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,eAAe,CAAC;CACxB,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TransactionPayment.d.ts","sourceRoot":"","sources":["../../../../../../src/react/web/ui/Bridge/TransactionPayment.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAEnE,OAAO,EACL,KAAK,OAAO,EAGb,MAAM,8BAA8B,CAAC;AAoBtC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAC7D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAIzD,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,SAAS,EAAE,OAAO,CAAC,SAAS,EAAE;QAAE,IAAI,EAAE,aAAa,CAAA;KAAE,CAAC,CAAC;IAEvD;;OAEG;IACH,MAAM,EAAE,cAAc,CAAC;IAEvB;;OAEG;IACH,UAAU,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,eAAe,EAAE,OAAO,KAAK,IAAI,CAAC;IAE7E;;OAEG;IACH,cAAc,CAAC,EAAE,sBAAsB,CAAC;IAExC;;;OAGG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC;AAED,wBAAgB,kBAAkB,CAAC,EACjC,SAAS,EACT,MAAM,EACN,UAAU,EACV,cAAc,EACd,oBAA2B,GAC5B,EAAE,uBAAuB,
|
1
|
+
{"version":3,"file":"TransactionPayment.d.ts","sourceRoot":"","sources":["../../../../../../src/react/web/ui/Bridge/TransactionPayment.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAEnE,OAAO,EACL,KAAK,OAAO,EAGb,MAAM,8BAA8B,CAAC;AAoBtC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAC7D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAIzD,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,SAAS,EAAE,OAAO,CAAC,SAAS,EAAE;QAAE,IAAI,EAAE,aAAa,CAAA;KAAE,CAAC,CAAC;IAEvD;;OAEG;IACH,MAAM,EAAE,cAAc,CAAC;IAEvB;;OAEG;IACH,UAAU,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,eAAe,EAAE,OAAO,KAAK,IAAI,CAAC;IAE7E;;OAEG;IACH,cAAc,CAAC,EAAE,sBAAsB,CAAC;IAExC;;;OAGG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC;AAED,wBAAgB,kBAAkB,CAAC,EACjC,SAAS,EACT,MAAM,EACN,UAAU,EACV,cAAc,EACd,oBAA2B,GAC5B,EAAE,uBAAuB,2CA8UzB"}
|
package/dist/types/version.d.ts
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export declare const version = "5.105.
|
1
|
+
export declare const version = "5.105.17-nightly-0f38a1287af527da53e7948b54e0dfd4b738fa69-20250718000405";
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/package.json
CHANGED
@@ -38,8 +38,8 @@
|
|
38
38
|
"uqr": "0.1.2",
|
39
39
|
"viem": "2.28.1",
|
40
40
|
"zod": "3.25.75",
|
41
|
-
"@thirdweb-dev/
|
42
|
-
"@thirdweb-dev/
|
41
|
+
"@thirdweb-dev/engine": "3.2.0",
|
42
|
+
"@thirdweb-dev/insight": "1.1.0"
|
43
43
|
},
|
44
44
|
"devDependencies": {
|
45
45
|
"@aws-sdk/client-kms": "3.592.0",
|
@@ -375,7 +375,7 @@
|
|
375
375
|
}
|
376
376
|
},
|
377
377
|
"typings": "./dist/types/exports/thirdweb.d.ts",
|
378
|
-
"version": "5.105.
|
378
|
+
"version": "5.105.17-nightly-0f38a1287af527da53e7948b54e0dfd4b738fa69-20250718000405",
|
379
379
|
"scripts": {
|
380
380
|
"bench": "vitest -c ./test/vitest.config.ts bench",
|
381
381
|
"bench:compare": "bun run ./benchmarks/run.ts",
|
package/src/bridge/Buy.ts
CHANGED
@@ -155,23 +155,47 @@ export async function quote(options: quote.Options): Promise<quote.Result> {
|
|
155
155
|
};
|
156
156
|
}
|
157
157
|
|
158
|
+
/**
|
159
|
+
* Namespace containing types for the buy quote function.
|
160
|
+
* @namespace quote
|
161
|
+
* @bridge Buy
|
162
|
+
*/
|
158
163
|
export declare namespace quote {
|
164
|
+
/**
|
165
|
+
* Options for getting a buy quote.
|
166
|
+
* @interface Options
|
167
|
+
* @bridge Buy
|
168
|
+
*/
|
159
169
|
type Options = {
|
170
|
+
/** The origin chain ID */
|
160
171
|
originChainId: number;
|
172
|
+
/** The origin token address */
|
161
173
|
originTokenAddress: ox__Address.Address;
|
174
|
+
/** The destination chain ID */
|
162
175
|
destinationChainId: number;
|
176
|
+
/** The destination token address */
|
163
177
|
destinationTokenAddress: ox__Address.Address;
|
178
|
+
/** Your thirdweb client */
|
164
179
|
client: ThirdwebClient;
|
180
|
+
/** Maximum number of steps in the route */
|
165
181
|
maxSteps?: number;
|
166
182
|
} & (
|
167
183
|
| {
|
184
|
+
/** The amount to buy in wei */
|
168
185
|
buyAmountWei: bigint;
|
169
186
|
}
|
170
187
|
| {
|
188
|
+
/** The amount to spend in wei */
|
171
189
|
amount: bigint;
|
172
190
|
}
|
173
191
|
);
|
174
192
|
|
193
|
+
/**
|
194
|
+
* Result returned from getting a buy quote.
|
195
|
+
* Contains quote details and intent information.
|
196
|
+
* @interface Result
|
197
|
+
* @bridge Buy
|
198
|
+
*/
|
175
199
|
type Result = Quote & {
|
176
200
|
intent: {
|
177
201
|
originChainId: number;
|
@@ -404,17 +428,37 @@ export async function prepare(
|
|
404
428
|
};
|
405
429
|
}
|
406
430
|
|
431
|
+
/**
|
432
|
+
* Namespace containing types for the buy prepare function.
|
433
|
+
* @namespace prepare
|
434
|
+
* @bridge Buy
|
435
|
+
*/
|
407
436
|
export declare namespace prepare {
|
437
|
+
/**
|
438
|
+
* Options for preparing a buy transaction.
|
439
|
+
* @interface Options
|
440
|
+
* @bridge Buy
|
441
|
+
*/
|
408
442
|
type Options = {
|
443
|
+
/** The origin chain ID */
|
409
444
|
originChainId: number;
|
445
|
+
/** The origin token address */
|
410
446
|
originTokenAddress: ox__Address.Address;
|
447
|
+
/** The destination chain ID */
|
411
448
|
destinationChainId: number;
|
449
|
+
/** The destination token address */
|
412
450
|
destinationTokenAddress: ox__Address.Address;
|
451
|
+
/** The sender address */
|
413
452
|
sender: ox__Address.Address;
|
453
|
+
/** The receiver address */
|
414
454
|
receiver: ox__Address.Address;
|
455
|
+
/** The amount to buy in wei */
|
415
456
|
amount: bigint;
|
457
|
+
/** Your thirdweb client */
|
416
458
|
client: ThirdwebClient;
|
459
|
+
/** Arbitrary purchase data */
|
417
460
|
purchaseData?: PurchaseData;
|
461
|
+
/** Maximum number of steps in the route */
|
418
462
|
maxSteps?: number;
|
419
463
|
/**
|
420
464
|
* @hidden
|
@@ -422,6 +466,12 @@ export declare namespace prepare {
|
|
422
466
|
paymentLinkId?: string;
|
423
467
|
};
|
424
468
|
|
469
|
+
/**
|
470
|
+
* Result returned from preparing a buy transaction.
|
471
|
+
* Contains prepared quote with transaction data and intent information.
|
472
|
+
* @interface Result
|
473
|
+
* @bridge Buy
|
474
|
+
*/
|
425
475
|
type Result = PreparedQuote & {
|
426
476
|
intent: {
|
427
477
|
originChainId: number;
|
package/src/bridge/Chains.ts
CHANGED
@@ -81,10 +81,27 @@ export async function chains(options: chains.Options): Promise<chains.Result> {
|
|
81
81
|
);
|
82
82
|
}
|
83
83
|
|
84
|
+
/**
|
85
|
+
* Namespace containing types for the chains function.
|
86
|
+
* @namespace chains
|
87
|
+
* @bridge
|
88
|
+
*/
|
84
89
|
export declare namespace chains {
|
90
|
+
/**
|
91
|
+
* Options for fetching supported bridge chains.
|
92
|
+
* @interface Options
|
93
|
+
* @bridge
|
94
|
+
*/
|
85
95
|
type Options = {
|
96
|
+
/** Your thirdweb client */
|
86
97
|
client: ThirdwebClient;
|
87
98
|
};
|
88
99
|
|
100
|
+
/**
|
101
|
+
* Result returned from fetching supported bridge chains.
|
102
|
+
* Contains an array of supported chains.
|
103
|
+
* @interface Result
|
104
|
+
* @bridge
|
105
|
+
*/
|
89
106
|
type Result = Chain[];
|
90
107
|
}
|
package/src/bridge/Onramp.ts
CHANGED
@@ -258,21 +258,45 @@ export async function prepare(
|
|
258
258
|
};
|
259
259
|
}
|
260
260
|
|
261
|
+
/**
|
262
|
+
* Namespace containing types for the onramp prepare function.
|
263
|
+
* @namespace prepare
|
264
|
+
* @bridge Onramp
|
265
|
+
*/
|
261
266
|
export declare namespace prepare {
|
267
|
+
/**
|
268
|
+
* Options for preparing an onramp transaction.
|
269
|
+
* @interface Options
|
270
|
+
* @bridge Onramp
|
271
|
+
*/
|
262
272
|
export type Options = {
|
273
|
+
/** Your thirdweb client */
|
263
274
|
client: ThirdwebClient;
|
275
|
+
/** The onramp provider to use (e.g., "stripe", "coinbase", "transak") */
|
264
276
|
onramp: "stripe" | "coinbase" | "transak";
|
277
|
+
/** The destination chain ID */
|
265
278
|
chainId: number;
|
279
|
+
/** The destination token address */
|
266
280
|
tokenAddress: ox__Address.Address;
|
281
|
+
/** The address that will receive the output token */
|
267
282
|
receiver: ox__Address.Address;
|
283
|
+
/** The desired token amount in wei */
|
268
284
|
amount?: bigint;
|
285
|
+
/** Arbitrary purchase data */
|
269
286
|
purchaseData?: PurchaseData;
|
287
|
+
/** An optional address to associate as the onramp sender */
|
270
288
|
sender?: ox__Address.Address;
|
289
|
+
/** The token to initially onramp to if the destination token is not supported by the provider */
|
271
290
|
onrampTokenAddress?: ox__Address.Address;
|
291
|
+
/** The chain ID to initially onramp to if the destination chain is not supported */
|
272
292
|
onrampChainId?: number;
|
293
|
+
/** The currency for the onramp (e.g., "USD", "GBP"). Defaults to user's preferred or "USD" */
|
273
294
|
currency?: string;
|
295
|
+
/** Maximum number of post-onramp steps */
|
274
296
|
maxSteps?: number;
|
297
|
+
/** Chain IDs to exclude from the route (string or array of strings) */
|
275
298
|
excludeChainIds?: string | string[];
|
299
|
+
/** The user's country code (e.g. "US", "JP"). Defaults to "US". We highly recommend this be set (based on the user's IP address) */
|
276
300
|
country?: string;
|
277
301
|
/**
|
278
302
|
* @hidden
|
@@ -280,5 +304,11 @@ export declare namespace prepare {
|
|
280
304
|
paymentLinkId?: string;
|
281
305
|
};
|
282
306
|
|
307
|
+
/**
|
308
|
+
* Result returned from preparing an onramp transaction.
|
309
|
+
* Contains the onramp link, quote information, and routing steps.
|
310
|
+
* @interface Result
|
311
|
+
* @bridge Onramp
|
312
|
+
*/
|
283
313
|
export type Result = OnrampPrepareQuoteResponseData;
|
284
314
|
}
|
package/src/bridge/Routes.ts
CHANGED
@@ -179,20 +179,47 @@ export async function routes(options: routes.Options): Promise<routes.Result> {
|
|
179
179
|
return data;
|
180
180
|
}
|
181
181
|
|
182
|
+
/**
|
183
|
+
* Namespace containing types for the routes function.
|
184
|
+
* @namespace routes
|
185
|
+
* @bridge
|
186
|
+
*/
|
182
187
|
export declare namespace routes {
|
188
|
+
/**
|
189
|
+
* Options for fetching available bridge routes.
|
190
|
+
* @interface Options
|
191
|
+
* @bridge
|
192
|
+
*/
|
183
193
|
type Options = {
|
194
|
+
/** Your thirdweb client */
|
184
195
|
client: ThirdwebClient;
|
196
|
+
/** The origin chain ID to filter routes by */
|
185
197
|
originChainId?: number;
|
198
|
+
/** The origin token address to filter routes by */
|
186
199
|
originTokenAddress?: ox__Address.Address;
|
200
|
+
/** The destination chain ID to filter routes by */
|
187
201
|
destinationChainId?: number;
|
202
|
+
/** The destination token address to filter routes by */
|
188
203
|
destinationTokenAddress?: ox__Address.Address;
|
204
|
+
/** Transaction hash to filter routes by */
|
189
205
|
transactionHash?: ox__Hex.Hex;
|
206
|
+
/** Sort routes by popularity */
|
190
207
|
sortBy?: "popularity";
|
208
|
+
/** Maximum number of steps in the route */
|
191
209
|
maxSteps?: number;
|
210
|
+
/** Whether to include price information in the response */
|
192
211
|
includePrices?: boolean;
|
212
|
+
/** Number of results to return (pagination) */
|
193
213
|
limit?: number;
|
214
|
+
/** Number of results to skip (pagination) */
|
194
215
|
offset?: number;
|
195
216
|
};
|
196
217
|
|
218
|
+
/**
|
219
|
+
* Result returned from fetching bridge routes.
|
220
|
+
* Contains an array of available routes.
|
221
|
+
* @interface Result
|
222
|
+
* @bridge
|
223
|
+
*/
|
197
224
|
type Result = Route[];
|
198
225
|
}
|
package/src/bridge/Sell.ts
CHANGED
@@ -154,17 +154,40 @@ export async function quote(options: quote.Options): Promise<quote.Result> {
|
|
154
154
|
};
|
155
155
|
}
|
156
156
|
|
157
|
+
/**
|
158
|
+
* Namespace containing types for the sell quote function.
|
159
|
+
* @namespace quote
|
160
|
+
* @bridge Sell
|
161
|
+
*/
|
157
162
|
export declare namespace quote {
|
163
|
+
/**
|
164
|
+
* Options for getting a sell quote.
|
165
|
+
* @interface Options
|
166
|
+
* @bridge Sell
|
167
|
+
*/
|
158
168
|
type Options = {
|
169
|
+
/** The origin chain ID */
|
159
170
|
originChainId: number;
|
171
|
+
/** The origin token address */
|
160
172
|
originTokenAddress: ox__Address.Address;
|
173
|
+
/** The destination chain ID */
|
161
174
|
destinationChainId: number;
|
175
|
+
/** The destination token address */
|
162
176
|
destinationTokenAddress: ox__Address.Address;
|
177
|
+
/** The amount to sell in wei */
|
163
178
|
amount: bigint;
|
179
|
+
/** Your thirdweb client */
|
164
180
|
client: ThirdwebClient;
|
181
|
+
/** Maximum number of steps in the route */
|
165
182
|
maxSteps?: number;
|
166
183
|
};
|
167
184
|
|
185
|
+
/**
|
186
|
+
* Result returned from getting a sell quote.
|
187
|
+
* Contains quote details and intent information.
|
188
|
+
* @interface Result
|
189
|
+
* @bridge Sell
|
190
|
+
*/
|
168
191
|
type Result = Quote & {
|
169
192
|
intent: {
|
170
193
|
originChainId: number;
|
@@ -393,17 +416,37 @@ export async function prepare(
|
|
393
416
|
};
|
394
417
|
}
|
395
418
|
|
419
|
+
/**
|
420
|
+
* Namespace containing types for the sell prepare function.
|
421
|
+
* @namespace prepare
|
422
|
+
* @bridge Sell
|
423
|
+
*/
|
396
424
|
export declare namespace prepare {
|
425
|
+
/**
|
426
|
+
* Options for preparing a sell transaction.
|
427
|
+
* @interface Options
|
428
|
+
* @bridge Sell
|
429
|
+
*/
|
397
430
|
type Options = {
|
431
|
+
/** The origin chain ID */
|
398
432
|
originChainId: number;
|
433
|
+
/** The origin token address */
|
399
434
|
originTokenAddress: ox__Address.Address;
|
435
|
+
/** The destination chain ID */
|
400
436
|
destinationChainId: number;
|
437
|
+
/** The destination token address */
|
401
438
|
destinationTokenAddress: ox__Address.Address;
|
439
|
+
/** The amount to sell in wei */
|
402
440
|
amount: bigint;
|
441
|
+
/** The sender address */
|
403
442
|
sender: ox__Address.Address;
|
443
|
+
/** The receiver address */
|
404
444
|
receiver: ox__Address.Address;
|
445
|
+
/** Your thirdweb client */
|
405
446
|
client: ThirdwebClient;
|
447
|
+
/** Arbitrary purchase data */
|
406
448
|
purchaseData?: PurchaseData;
|
449
|
+
/** Maximum number of steps in the route */
|
407
450
|
maxSteps?: number;
|
408
451
|
/**
|
409
452
|
* @hidden
|
@@ -411,6 +454,12 @@ export declare namespace prepare {
|
|
411
454
|
paymentLinkId?: string;
|
412
455
|
};
|
413
456
|
|
457
|
+
/**
|
458
|
+
* Result returned from preparing a sell transaction.
|
459
|
+
* Contains prepared quote with transaction data and intent information.
|
460
|
+
* @interface Result
|
461
|
+
* @bridge Sell
|
462
|
+
*/
|
414
463
|
type Result = PreparedQuote & {
|
415
464
|
intent: {
|
416
465
|
originChainId: number;
|
package/src/bridge/Status.ts
CHANGED
@@ -177,18 +177,41 @@ export async function status(options: status.Options): Promise<status.Result> {
|
|
177
177
|
};
|
178
178
|
}
|
179
179
|
|
180
|
+
/**
|
181
|
+
* Namespace containing types for the status function.
|
182
|
+
* @namespace status
|
183
|
+
* @bridge
|
184
|
+
*/
|
180
185
|
export declare namespace status {
|
186
|
+
/**
|
187
|
+
* Options for checking transaction status.
|
188
|
+
* Can specify either chainId or chain object.
|
189
|
+
* @interface Options
|
190
|
+
* @bridge
|
191
|
+
*/
|
181
192
|
type Options =
|
182
193
|
| {
|
194
|
+
/** The transaction hash to check status for */
|
183
195
|
transactionHash: ox__Hex.Hex;
|
196
|
+
/** The chain ID where the transaction occurred */
|
184
197
|
chainId: number;
|
198
|
+
/** Your thirdweb client */
|
185
199
|
client: ThirdwebClient;
|
186
200
|
}
|
187
201
|
| {
|
202
|
+
/** The transaction hash to check status for */
|
188
203
|
transactionHash: ox__Hex.Hex;
|
204
|
+
/** The chain object where the transaction occurred */
|
189
205
|
chain: Chain;
|
206
|
+
/** Your thirdweb client */
|
190
207
|
client: ThirdwebClient;
|
191
208
|
};
|
192
209
|
|
210
|
+
/**
|
211
|
+
* Result returned from checking transaction status.
|
212
|
+
* Contains the current status and transaction details.
|
213
|
+
* @interface Result
|
214
|
+
* @bridge
|
215
|
+
*/
|
193
216
|
type Result = Status;
|
194
217
|
}
|
package/src/bridge/Transfer.ts
CHANGED
@@ -251,15 +251,33 @@ export async function prepare(
|
|
251
251
|
};
|
252
252
|
}
|
253
253
|
|
254
|
+
/**
|
255
|
+
* Namespace containing types for the transfer prepare function.
|
256
|
+
* @namespace prepare
|
257
|
+
* @bridge Transfer
|
258
|
+
*/
|
254
259
|
export declare namespace prepare {
|
260
|
+
/**
|
261
|
+
* Options for preparing a transfer transaction.
|
262
|
+
* @interface Options
|
263
|
+
* @bridge Transfer
|
264
|
+
*/
|
255
265
|
type Options = {
|
266
|
+
/** The chain ID */
|
256
267
|
chainId: number;
|
268
|
+
/** The token address */
|
257
269
|
tokenAddress: ox__Address.Address;
|
270
|
+
/** The sender address */
|
258
271
|
sender: ox__Address.Address;
|
272
|
+
/** The receiver address */
|
259
273
|
receiver: ox__Address.Address;
|
274
|
+
/** The amount to transfer in wei */
|
260
275
|
amount: bigint;
|
276
|
+
/** Your thirdweb client */
|
261
277
|
client: ThirdwebClient;
|
278
|
+
/** Arbitrary purchase data */
|
262
279
|
purchaseData?: PurchaseData;
|
280
|
+
/** Who pays the fees - sender or receiver */
|
263
281
|
feePayer?: "sender" | "receiver";
|
264
282
|
/**
|
265
283
|
* @hidden
|
@@ -267,6 +285,12 @@ export declare namespace prepare {
|
|
267
285
|
paymentLinkId?: string;
|
268
286
|
};
|
269
287
|
|
288
|
+
/**
|
289
|
+
* Result returned from preparing a transfer transaction.
|
290
|
+
* Contains prepared quote with transaction data and intent information.
|
291
|
+
* @interface Result
|
292
|
+
* @bridge Transfer
|
293
|
+
*/
|
270
294
|
type Result = PreparedQuote & {
|
271
295
|
intent: {
|
272
296
|
chainId: number;
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import { defineChain } from "../utils.js";
|
2
|
+
|
3
|
+
/**
|
4
|
+
* @chain
|
5
|
+
*/
|
6
|
+
export const etherlinkTestnet = /* @__PURE__ */ defineChain({
|
7
|
+
blockExplorers: [
|
8
|
+
{
|
9
|
+
name: "Etherlink Testnet Explorer",
|
10
|
+
url: "https://testnet.explorer.etherlink.com/",
|
11
|
+
},
|
12
|
+
],
|
13
|
+
id: 128123,
|
14
|
+
name: "Etherlink Testnet",
|
15
|
+
nativeCurrency: {
|
16
|
+
decimals: 18,
|
17
|
+
name: "Etherlink",
|
18
|
+
symbol: "XTZ",
|
19
|
+
},
|
20
|
+
testnet: true,
|
21
|
+
});
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { defineChain } from "../utils.js";
|
2
|
+
|
3
|
+
/**
|
4
|
+
* @chain
|
5
|
+
*/
|
6
|
+
export const etherlink = /* @__PURE__ */ defineChain({
|
7
|
+
blockExplorers: [
|
8
|
+
{
|
9
|
+
name: "Etherlink Explorer",
|
10
|
+
url: "https://explorer.etherlink.com/",
|
11
|
+
},
|
12
|
+
],
|
13
|
+
id: 42793,
|
14
|
+
name: "Etherlink",
|
15
|
+
nativeCurrency: {
|
16
|
+
decimals: 18,
|
17
|
+
name: "Etherlink",
|
18
|
+
symbol: "XTZ",
|
19
|
+
},
|
20
|
+
});
|
@@ -10,7 +10,7 @@ export type CreateServerWalletArgs = {
|
|
10
10
|
};
|
11
11
|
|
12
12
|
/**
|
13
|
-
* Create a server wallet.
|
13
|
+
* Create a new server wallet.
|
14
14
|
* @param params - The parameters for the server wallet.
|
15
15
|
* @param params.client - The thirdweb client to use.
|
16
16
|
* @param params.label - The label for the server wallet.
|
@@ -64,7 +64,7 @@ export type ServerWallet = Account & {
|
|
64
64
|
};
|
65
65
|
|
66
66
|
/**
|
67
|
-
*
|
67
|
+
* Use a server wallet for sending transactions and signing messages via engine (v3+).
|
68
68
|
* @param options - The server wallet options.
|
69
69
|
* @returns An account object that can be used to send transactions and sign messages.
|
70
70
|
* @engine
|
package/src/exports/chains.ts
CHANGED
@@ -30,6 +30,8 @@ export { cronos } from "../chains/chain-definitions/cronos.js";
|
|
30
30
|
export { degen } from "../chains/chain-definitions/degen.js";
|
31
31
|
// mainnet = alias for ethereum
|
32
32
|
export { ethereum, mainnet } from "../chains/chain-definitions/ethereum.js";
|
33
|
+
export { etherlink } from "../chains/chain-definitions/etherlink.js";
|
34
|
+
export { etherlinkTestnet } from "../chains/chain-definitions/etherlink-testnet.js";
|
33
35
|
export { fantom } from "../chains/chain-definitions/fantom.js";
|
34
36
|
export { fantomTestnet } from "../chains/chain-definitions/fantom-testnet.js";
|
35
37
|
export { frameTestnet } from "../chains/chain-definitions/frame-testnet.js";
|