File tree Expand file tree Collapse file tree 4 files changed +46
-46
lines changed
packages/thirdweb/src/bridge Expand file tree Collapse file tree 4 files changed +46
-46
lines changed Original file line number Diff line number Diff line change @@ -138,13 +138,13 @@ export declare namespace quote {
138138 destinationTokenAddress : ox__Address . Address ;
139139 client : ThirdwebClient ;
140140 } & (
141- | {
141+ | {
142142 buyAmountWei : bigint ;
143143 }
144- | {
144+ | {
145145 amount : bigint ;
146146 }
147- ) ;
147+ ) ;
148148
149149 type Result = Quote & {
150150 intent : {
Original file line number Diff line number Diff line change @@ -102,9 +102,9 @@ describe.runIf(process.env.TW_SECRET_KEY)("Bridge.routes", () => {
102102 route . originToken . chainId === 1 &&
103103 route . destinationToken . chainId === 10 &&
104104 route . originToken . address ===
105- "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE" &&
105+ "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE" &&
106106 route . destinationToken . address ===
107- "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE" ,
107+ "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE" ,
108108 ) ,
109109 ) . toBe ( true ) ;
110110 } ) ;
Original file line number Diff line number Diff line change @@ -163,15 +163,15 @@ export async function status(options: status.Options): Promise<status.Result> {
163163export declare namespace status {
164164 type Options =
165165 | {
166- transactionHash : ox__Hex . Hex ;
167- chainId : number ;
168- client : ThirdwebClient ;
169- }
166+ transactionHash : ox__Hex . Hex ;
167+ chainId : number ;
168+ client : ThirdwebClient ;
169+ }
170170 | {
171- transactionHash : ox__Hex . Hex ;
172- chain : Chain ;
173- client : ThirdwebClient ;
174- } ;
171+ transactionHash : ox__Hex . Hex ;
172+ chain : Chain ;
173+ client : ThirdwebClient ;
174+ } ;
175175
176176 type Result = Status ;
177177}
Original file line number Diff line number Diff line change @@ -2,39 +2,39 @@ import type { Address as ox__Address, Hex as ox__Hex } from "ox";
22
33export type Status =
44 | {
5- status : "COMPLETED" ;
6- originAmount : bigint ;
7- destinationAmount : bigint ;
8- originChainId : number ;
9- destinationChainId : number ;
10- originTokenAddress : ox__Address . Address ;
11- destinationTokenAddress : ox__Address . Address ;
12- transactions : Array < {
13- chainId : number ;
14- transactionHash : ox__Hex . Hex ;
15- } > ;
16- purchaseData ?: unknown ;
17- }
5+ status : "COMPLETED" ;
6+ originAmount : bigint ;
7+ destinationAmount : bigint ;
8+ originChainId : number ;
9+ destinationChainId : number ;
10+ originTokenAddress : ox__Address . Address ;
11+ destinationTokenAddress : ox__Address . Address ;
12+ transactions : Array < {
13+ chainId : number ;
14+ transactionHash : ox__Hex . Hex ;
15+ } > ;
16+ purchaseData ?: unknown ;
17+ }
1818 | {
19- status : "PENDING" ;
20- originAmount : bigint ;
21- originChainId : number ;
22- destinationChainId : number ;
23- originTokenAddress : ox__Address . Address ;
24- destinationTokenAddress : ox__Address . Address ;
25- transactions : Array < {
26- chainId : number ;
27- transactionHash : ox__Hex . Hex ;
28- } > ;
29- }
19+ status : "PENDING" ;
20+ originAmount : bigint ;
21+ originChainId : number ;
22+ destinationChainId : number ;
23+ originTokenAddress : ox__Address . Address ;
24+ destinationTokenAddress : ox__Address . Address ;
25+ transactions : Array < {
26+ chainId : number ;
27+ transactionHash : ox__Hex . Hex ;
28+ } > ;
29+ }
3030 | {
31- status : "FAILED" ;
32- transactions : Array < {
33- chainId : number ;
34- transactionHash : ox__Hex . Hex ;
35- } > ;
36- }
31+ status : "FAILED" ;
32+ transactions : Array < {
33+ chainId : number ;
34+ transactionHash : ox__Hex . Hex ;
35+ } > ;
36+ }
3737 | {
38- status : "NOT_FOUND" ;
39- transactions : [ ] ;
40- } ;
38+ status : "NOT_FOUND" ;
39+ transactions : [ ] ;
40+ } ;
You can’t perform that action at this time.
0 commit comments