File tree Expand file tree Collapse file tree 3 files changed +44
-36
lines changed
packages/thirdweb/src/bridge Expand file tree Collapse file tree 3 files changed +44
-36
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,9 @@ describe("Bridge.Buy.quote", () => {
29
29
buyAmountWei : toWei ( "1000000000" ) ,
30
30
client : TEST_CLIENT ,
31
31
} ) ,
32
- ) . rejects . toThrowErrorMatchingInlineSnapshot ( `[Error: AMOUNT_TOO_HIGH | The provided amount is too high for the requested route.]` ) ;
32
+ ) . rejects . toThrowErrorMatchingInlineSnapshot (
33
+ `[Error: AMOUNT_TOO_HIGH | The provided amount is too high for the requested route.]` ,
34
+ ) ;
33
35
} ) ;
34
36
} ) ;
35
37
@@ -65,6 +67,8 @@ describe("Bridge.Buy.prepare", () => {
65
67
receiver : "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE" ,
66
68
client : TEST_CLIENT ,
67
69
} ) ,
68
- ) . rejects . toThrowErrorMatchingInlineSnapshot ( `[Error: AMOUNT_TOO_HIGH | The provided amount is too high for the requested route.]` ) ;
70
+ ) . rejects . toThrowErrorMatchingInlineSnapshot (
71
+ `[Error: AMOUNT_TOO_HIGH | The provided amount is too high for the requested route.]` ,
72
+ ) ;
69
73
} ) ;
70
74
} ) ;
Original file line number Diff line number Diff line change @@ -29,7 +29,9 @@ describe("Bridge.Sell.quote", () => {
29
29
sellAmountWei : toWei ( "1000000000" ) ,
30
30
client : TEST_CLIENT ,
31
31
} ) ,
32
- ) . rejects . toThrowErrorMatchingInlineSnapshot ( `[Error: AMOUNT_TOO_HIGH | The provided amount is too high for the requested route.]` ) ;
32
+ ) . rejects . toThrowErrorMatchingInlineSnapshot (
33
+ `[Error: AMOUNT_TOO_HIGH | The provided amount is too high for the requested route.]` ,
34
+ ) ;
33
35
} ) ;
34
36
} ) ;
35
37
@@ -65,6 +67,8 @@ describe("Bridge.Sell.prepare", () => {
65
67
receiver : "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE" ,
66
68
client : TEST_CLIENT ,
67
69
} ) ,
68
- ) . rejects . toThrowErrorMatchingInlineSnapshot ( `[Error: AMOUNT_TOO_HIGH | The provided amount is too high for the requested route.]` ) ;
70
+ ) . rejects . toThrowErrorMatchingInlineSnapshot (
71
+ `[Error: AMOUNT_TOO_HIGH | The provided amount is too high for the requested route.]` ,
72
+ ) ;
69
73
} ) ;
70
74
} ) ;
Original file line number Diff line number Diff line change @@ -2,38 +2,38 @@ import type { Address as ox__Address, Hex as ox__Hex } from "ox";
2
2
3
3
export type Status =
4
4
| {
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
- }
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
+ }
17
17
| {
18
- status : "PENDING" ;
19
- originAmount : bigint ;
20
- originChainId : number ;
21
- destinationChainId : number ;
22
- originTokenAddress : ox__Address . Address ;
23
- destinationTokenAddress : ox__Address . Address ;
24
- transactions : Array < {
25
- chainId : number ;
26
- transactionHash : ox__Hex . Hex ;
27
- } > ;
28
- }
18
+ status : "PENDING" ;
19
+ originAmount : bigint ;
20
+ originChainId : number ;
21
+ destinationChainId : number ;
22
+ originTokenAddress : ox__Address . Address ;
23
+ destinationTokenAddress : ox__Address . Address ;
24
+ transactions : Array < {
25
+ chainId : number ;
26
+ transactionHash : ox__Hex . Hex ;
27
+ } > ;
28
+ }
29
29
| {
30
- status : "FAILED" ;
31
- transactions : Array < {
32
- chainId : number ;
33
- transactionHash : ox__Hex . Hex ;
34
- } > ;
35
- }
30
+ status : "FAILED" ;
31
+ transactions : Array < {
32
+ chainId : number ;
33
+ transactionHash : ox__Hex . Hex ;
34
+ } > ;
35
+ }
36
36
| {
37
- status : "NOT_FOUND" ;
38
- transactions : [ ] ;
39
- } ;
37
+ status : "NOT_FOUND" ;
38
+ transactions : [ ] ;
39
+ } ;
You can’t perform that action at this time.
0 commit comments