@tokenlon/v6-sdk 1.0.3-canary.f61e654 → 1.0.4
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/constants/abis.js +1 -301
- package/dist/cjs/constants/abis.js.map +1 -1
- package/dist/cjs/constants/addresses.js +1 -14
- package/dist/cjs/constants/addresses.js.map +1 -1
- package/dist/cjs/constants/chains.js +2 -2
- package/dist/cjs/constants/chains.js.map +1 -1
- package/dist/cjs/constants/unit.js +1 -2
- package/dist/cjs/constants/unit.js.map +1 -1
- package/dist/cjs/errors/base.js +1 -1
- package/dist/cjs/permit/index.js +20 -4
- package/dist/cjs/permit/index.js.map +1 -1
- package/dist/cjs/sdk.js +5 -7
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/cjs/serviceHost.js +0 -6
- package/dist/cjs/serviceHost.js.map +1 -1
- package/dist/cjs/swap/index.js +68 -468
- package/dist/cjs/swap/index.js.map +1 -1
- package/dist/cjs/swap/type.js +1 -6
- package/dist/cjs/swap/type.js.map +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/version.js.map +1 -1
- package/dist/esm/constants/abis.js +0 -300
- package/dist/esm/constants/abis.js.map +1 -1
- package/dist/esm/constants/addresses.js +0 -13
- package/dist/esm/constants/addresses.js.map +1 -1
- package/dist/esm/constants/chains.js +3 -3
- package/dist/esm/constants/chains.js.map +1 -1
- package/dist/esm/constants/unit.js +0 -1
- package/dist/esm/constants/unit.js.map +1 -1
- package/dist/esm/errors/base.js +1 -1
- package/dist/esm/permit/index.js +21 -5
- package/dist/esm/permit/index.js.map +1 -1
- package/dist/esm/sdk.js +5 -7
- package/dist/esm/sdk.js.map +1 -1
- package/dist/esm/serviceHost.js +1 -7
- package/dist/esm/serviceHost.js.map +1 -1
- package/dist/esm/swap/index.js +70 -469
- package/dist/esm/swap/index.js.map +1 -1
- package/dist/esm/swap/type.js +0 -5
- package/dist/esm/swap/type.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/esm/version.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/constants/abis.d.ts +0 -336
- package/dist/types/constants/abis.d.ts.map +1 -1
- package/dist/types/constants/addresses.d.ts +0 -1
- package/dist/types/constants/addresses.d.ts.map +1 -1
- package/dist/types/constants/chains.d.ts +1 -1
- package/dist/types/constants/chains.d.ts.map +1 -1
- package/dist/types/constants/unit.d.ts +0 -1
- package/dist/types/constants/unit.d.ts.map +1 -1
- package/dist/types/errors/base.d.ts +1 -1
- package/dist/types/errors/base.d.ts.map +1 -1
- package/dist/types/permit/index.d.ts.map +1 -1
- package/dist/types/sdk.d.ts +0 -1
- package/dist/types/sdk.d.ts.map +1 -1
- package/dist/types/serviceHost.d.ts.map +1 -1
- package/dist/types/swap/index.d.ts +19 -82
- package/dist/types/swap/index.d.ts.map +1 -1
- package/dist/types/swap/type.d.ts +19 -50
- package/dist/types/swap/type.d.ts.map +1 -1
- package/dist/types/version.d.ts +1 -1
- package/dist/types/version.d.ts.map +1 -1
- package/package.json +21 -28
- package/dist/cjs/apiVersion.js +0 -5
- package/dist/cjs/apiVersion.js.map +0 -1
- package/dist/cjs/constants/RFQAbi.js +0 -723
- package/dist/cjs/constants/RFQAbi.js.map +0 -1
- package/dist/esm/apiVersion.js +0 -2
- package/dist/esm/apiVersion.js.map +0 -1
- package/dist/esm/constants/RFQAbi.js +0 -721
- package/dist/esm/constants/RFQAbi.js.map +0 -1
- package/dist/types/apiVersion.d.ts +0 -2
- package/dist/types/apiVersion.d.ts.map +0 -1
- package/dist/types/constants/RFQAbi.d.ts +0 -82
- package/dist/types/constants/RFQAbi.d.ts.map +0 -1
|
@@ -1,216 +1,3 @@
|
|
|
1
|
-
export declare const WETH_ABI: readonly [{
|
|
2
|
-
readonly constant: true;
|
|
3
|
-
readonly inputs: readonly [];
|
|
4
|
-
readonly name: "name";
|
|
5
|
-
readonly outputs: readonly [{
|
|
6
|
-
readonly name: "";
|
|
7
|
-
readonly type: "string";
|
|
8
|
-
}];
|
|
9
|
-
readonly payable: false;
|
|
10
|
-
readonly stateMutability: "view";
|
|
11
|
-
readonly type: "function";
|
|
12
|
-
}, {
|
|
13
|
-
readonly constant: false;
|
|
14
|
-
readonly inputs: readonly [{
|
|
15
|
-
readonly name: "guy";
|
|
16
|
-
readonly type: "address";
|
|
17
|
-
}, {
|
|
18
|
-
readonly name: "wad";
|
|
19
|
-
readonly type: "uint256";
|
|
20
|
-
}];
|
|
21
|
-
readonly name: "approve";
|
|
22
|
-
readonly outputs: readonly [{
|
|
23
|
-
readonly name: "";
|
|
24
|
-
readonly type: "bool";
|
|
25
|
-
}];
|
|
26
|
-
readonly payable: false;
|
|
27
|
-
readonly stateMutability: "nonpayable";
|
|
28
|
-
readonly type: "function";
|
|
29
|
-
}, {
|
|
30
|
-
readonly constant: true;
|
|
31
|
-
readonly inputs: readonly [];
|
|
32
|
-
readonly name: "totalSupply";
|
|
33
|
-
readonly outputs: readonly [{
|
|
34
|
-
readonly name: "";
|
|
35
|
-
readonly type: "uint256";
|
|
36
|
-
}];
|
|
37
|
-
readonly payable: false;
|
|
38
|
-
readonly stateMutability: "view";
|
|
39
|
-
readonly type: "function";
|
|
40
|
-
}, {
|
|
41
|
-
readonly constant: false;
|
|
42
|
-
readonly inputs: readonly [{
|
|
43
|
-
readonly name: "src";
|
|
44
|
-
readonly type: "address";
|
|
45
|
-
}, {
|
|
46
|
-
readonly name: "dst";
|
|
47
|
-
readonly type: "address";
|
|
48
|
-
}, {
|
|
49
|
-
readonly name: "wad";
|
|
50
|
-
readonly type: "uint256";
|
|
51
|
-
}];
|
|
52
|
-
readonly name: "transferFrom";
|
|
53
|
-
readonly outputs: readonly [{
|
|
54
|
-
readonly name: "";
|
|
55
|
-
readonly type: "bool";
|
|
56
|
-
}];
|
|
57
|
-
readonly payable: false;
|
|
58
|
-
readonly stateMutability: "nonpayable";
|
|
59
|
-
readonly type: "function";
|
|
60
|
-
}, {
|
|
61
|
-
readonly constant: false;
|
|
62
|
-
readonly inputs: readonly [{
|
|
63
|
-
readonly name: "wad";
|
|
64
|
-
readonly type: "uint256";
|
|
65
|
-
}];
|
|
66
|
-
readonly name: "withdraw";
|
|
67
|
-
readonly outputs: readonly [];
|
|
68
|
-
readonly payable: false;
|
|
69
|
-
readonly stateMutability: "nonpayable";
|
|
70
|
-
readonly type: "function";
|
|
71
|
-
}, {
|
|
72
|
-
readonly constant: true;
|
|
73
|
-
readonly inputs: readonly [];
|
|
74
|
-
readonly name: "decimals";
|
|
75
|
-
readonly outputs: readonly [{
|
|
76
|
-
readonly name: "";
|
|
77
|
-
readonly type: "uint8";
|
|
78
|
-
}];
|
|
79
|
-
readonly payable: false;
|
|
80
|
-
readonly stateMutability: "view";
|
|
81
|
-
readonly type: "function";
|
|
82
|
-
}, {
|
|
83
|
-
readonly constant: true;
|
|
84
|
-
readonly inputs: readonly [{
|
|
85
|
-
readonly name: "";
|
|
86
|
-
readonly type: "address";
|
|
87
|
-
}];
|
|
88
|
-
readonly name: "balanceOf";
|
|
89
|
-
readonly outputs: readonly [{
|
|
90
|
-
readonly name: "";
|
|
91
|
-
readonly type: "uint256";
|
|
92
|
-
}];
|
|
93
|
-
readonly payable: false;
|
|
94
|
-
readonly stateMutability: "view";
|
|
95
|
-
readonly type: "function";
|
|
96
|
-
}, {
|
|
97
|
-
readonly constant: true;
|
|
98
|
-
readonly inputs: readonly [];
|
|
99
|
-
readonly name: "symbol";
|
|
100
|
-
readonly outputs: readonly [{
|
|
101
|
-
readonly name: "";
|
|
102
|
-
readonly type: "string";
|
|
103
|
-
}];
|
|
104
|
-
readonly payable: false;
|
|
105
|
-
readonly stateMutability: "view";
|
|
106
|
-
readonly type: "function";
|
|
107
|
-
}, {
|
|
108
|
-
readonly constant: false;
|
|
109
|
-
readonly inputs: readonly [{
|
|
110
|
-
readonly name: "dst";
|
|
111
|
-
readonly type: "address";
|
|
112
|
-
}, {
|
|
113
|
-
readonly name: "wad";
|
|
114
|
-
readonly type: "uint256";
|
|
115
|
-
}];
|
|
116
|
-
readonly name: "transfer";
|
|
117
|
-
readonly outputs: readonly [{
|
|
118
|
-
readonly name: "";
|
|
119
|
-
readonly type: "bool";
|
|
120
|
-
}];
|
|
121
|
-
readonly payable: false;
|
|
122
|
-
readonly stateMutability: "nonpayable";
|
|
123
|
-
readonly type: "function";
|
|
124
|
-
}, {
|
|
125
|
-
readonly constant: false;
|
|
126
|
-
readonly inputs: readonly [];
|
|
127
|
-
readonly name: "deposit";
|
|
128
|
-
readonly outputs: readonly [];
|
|
129
|
-
readonly payable: true;
|
|
130
|
-
readonly stateMutability: "payable";
|
|
131
|
-
readonly type: "function";
|
|
132
|
-
}, {
|
|
133
|
-
readonly constant: true;
|
|
134
|
-
readonly inputs: readonly [{
|
|
135
|
-
readonly name: "";
|
|
136
|
-
readonly type: "address";
|
|
137
|
-
}, {
|
|
138
|
-
readonly name: "";
|
|
139
|
-
readonly type: "address";
|
|
140
|
-
}];
|
|
141
|
-
readonly name: "allowance";
|
|
142
|
-
readonly outputs: readonly [{
|
|
143
|
-
readonly name: "";
|
|
144
|
-
readonly type: "uint256";
|
|
145
|
-
}];
|
|
146
|
-
readonly payable: false;
|
|
147
|
-
readonly stateMutability: "view";
|
|
148
|
-
readonly type: "function";
|
|
149
|
-
}, {
|
|
150
|
-
readonly payable: true;
|
|
151
|
-
readonly stateMutability: "payable";
|
|
152
|
-
readonly type: "fallback";
|
|
153
|
-
}, {
|
|
154
|
-
readonly anonymous: false;
|
|
155
|
-
readonly inputs: readonly [{
|
|
156
|
-
readonly indexed: true;
|
|
157
|
-
readonly name: "src";
|
|
158
|
-
readonly type: "address";
|
|
159
|
-
}, {
|
|
160
|
-
readonly indexed: true;
|
|
161
|
-
readonly name: "guy";
|
|
162
|
-
readonly type: "address";
|
|
163
|
-
}, {
|
|
164
|
-
readonly indexed: false;
|
|
165
|
-
readonly name: "wad";
|
|
166
|
-
readonly type: "uint256";
|
|
167
|
-
}];
|
|
168
|
-
readonly name: "Approval";
|
|
169
|
-
readonly type: "event";
|
|
170
|
-
}, {
|
|
171
|
-
readonly anonymous: false;
|
|
172
|
-
readonly inputs: readonly [{
|
|
173
|
-
readonly indexed: true;
|
|
174
|
-
readonly name: "src";
|
|
175
|
-
readonly type: "address";
|
|
176
|
-
}, {
|
|
177
|
-
readonly indexed: true;
|
|
178
|
-
readonly name: "dst";
|
|
179
|
-
readonly type: "address";
|
|
180
|
-
}, {
|
|
181
|
-
readonly indexed: false;
|
|
182
|
-
readonly name: "wad";
|
|
183
|
-
readonly type: "uint256";
|
|
184
|
-
}];
|
|
185
|
-
readonly name: "Transfer";
|
|
186
|
-
readonly type: "event";
|
|
187
|
-
}, {
|
|
188
|
-
readonly anonymous: false;
|
|
189
|
-
readonly inputs: readonly [{
|
|
190
|
-
readonly indexed: true;
|
|
191
|
-
readonly name: "dst";
|
|
192
|
-
readonly type: "address";
|
|
193
|
-
}, {
|
|
194
|
-
readonly indexed: false;
|
|
195
|
-
readonly name: "wad";
|
|
196
|
-
readonly type: "uint256";
|
|
197
|
-
}];
|
|
198
|
-
readonly name: "Deposit";
|
|
199
|
-
readonly type: "event";
|
|
200
|
-
}, {
|
|
201
|
-
readonly anonymous: false;
|
|
202
|
-
readonly inputs: readonly [{
|
|
203
|
-
readonly indexed: true;
|
|
204
|
-
readonly name: "src";
|
|
205
|
-
readonly type: "address";
|
|
206
|
-
}, {
|
|
207
|
-
readonly indexed: false;
|
|
208
|
-
readonly name: "wad";
|
|
209
|
-
readonly type: "uint256";
|
|
210
|
-
}];
|
|
211
|
-
readonly name: "Withdrawal";
|
|
212
|
-
readonly type: "event";
|
|
213
|
-
}];
|
|
214
1
|
export declare const GENERIC_SWAP_ABI: readonly [{
|
|
215
2
|
readonly inputs: readonly [{
|
|
216
3
|
readonly internalType: "address";
|
|
@@ -736,49 +523,6 @@ export declare const GS_EIP712_TYPES: {
|
|
|
736
523
|
type: string;
|
|
737
524
|
}[];
|
|
738
525
|
};
|
|
739
|
-
export declare const RFQ_EIP712_TYPES: {
|
|
740
|
-
readonly RFQOffer: readonly [{
|
|
741
|
-
readonly name: "taker";
|
|
742
|
-
readonly type: "address";
|
|
743
|
-
}, {
|
|
744
|
-
readonly name: "maker";
|
|
745
|
-
readonly type: "address";
|
|
746
|
-
}, {
|
|
747
|
-
readonly name: "takerToken";
|
|
748
|
-
readonly type: "address";
|
|
749
|
-
}, {
|
|
750
|
-
readonly name: "takerTokenAmount";
|
|
751
|
-
readonly type: "uint256";
|
|
752
|
-
}, {
|
|
753
|
-
readonly name: "makerToken";
|
|
754
|
-
readonly type: "address";
|
|
755
|
-
}, {
|
|
756
|
-
readonly name: "makerTokenAmount";
|
|
757
|
-
readonly type: "uint256";
|
|
758
|
-
}, {
|
|
759
|
-
readonly name: "feeFactor";
|
|
760
|
-
readonly type: "uint256";
|
|
761
|
-
}, {
|
|
762
|
-
readonly name: "flags";
|
|
763
|
-
readonly type: "uint256";
|
|
764
|
-
}, {
|
|
765
|
-
readonly name: "expiry";
|
|
766
|
-
readonly type: "uint256";
|
|
767
|
-
}, {
|
|
768
|
-
readonly name: "salt";
|
|
769
|
-
readonly type: "uint256";
|
|
770
|
-
}];
|
|
771
|
-
readonly RFQTx: readonly [{
|
|
772
|
-
readonly name: "rfqOffer";
|
|
773
|
-
readonly type: "RFQOffer";
|
|
774
|
-
}, {
|
|
775
|
-
readonly name: "recipient";
|
|
776
|
-
readonly type: "address";
|
|
777
|
-
}, {
|
|
778
|
-
readonly name: "takerRequestAmount";
|
|
779
|
-
readonly type: "uint256";
|
|
780
|
-
}];
|
|
781
|
-
};
|
|
782
526
|
export declare const PERMIT2_ABI: readonly [{
|
|
783
527
|
readonly inputs: readonly [{
|
|
784
528
|
readonly internalType: "uint256";
|
|
@@ -1494,84 +1238,4 @@ export declare const ALLOWANCE_ABI: readonly [{
|
|
|
1494
1238
|
readonly type: "uint256";
|
|
1495
1239
|
}];
|
|
1496
1240
|
}];
|
|
1497
|
-
export declare const RFQ_ABI: ({
|
|
1498
|
-
inputs: {
|
|
1499
|
-
internalType: string;
|
|
1500
|
-
name: string;
|
|
1501
|
-
type: string;
|
|
1502
|
-
}[];
|
|
1503
|
-
stateMutability: string;
|
|
1504
|
-
type: string;
|
|
1505
|
-
name?: never;
|
|
1506
|
-
anonymous?: never;
|
|
1507
|
-
outputs?: never;
|
|
1508
|
-
} | {
|
|
1509
|
-
inputs: never[];
|
|
1510
|
-
name: string;
|
|
1511
|
-
type: string;
|
|
1512
|
-
stateMutability?: never;
|
|
1513
|
-
anonymous?: never;
|
|
1514
|
-
outputs?: never;
|
|
1515
|
-
} | {
|
|
1516
|
-
anonymous: boolean;
|
|
1517
|
-
inputs: {
|
|
1518
|
-
indexed: boolean;
|
|
1519
|
-
internalType: string;
|
|
1520
|
-
name: string;
|
|
1521
|
-
type: string;
|
|
1522
|
-
}[];
|
|
1523
|
-
name: string;
|
|
1524
|
-
type: string;
|
|
1525
|
-
stateMutability?: never;
|
|
1526
|
-
outputs?: never;
|
|
1527
|
-
} | {
|
|
1528
|
-
inputs: never[];
|
|
1529
|
-
name: string;
|
|
1530
|
-
outputs: {
|
|
1531
|
-
internalType: string;
|
|
1532
|
-
name: string;
|
|
1533
|
-
type: string;
|
|
1534
|
-
}[];
|
|
1535
|
-
stateMutability: string;
|
|
1536
|
-
type: string;
|
|
1537
|
-
anonymous?: never;
|
|
1538
|
-
} | {
|
|
1539
|
-
inputs: ({
|
|
1540
|
-
components: ({
|
|
1541
|
-
components: {
|
|
1542
|
-
internalType: string;
|
|
1543
|
-
name: string;
|
|
1544
|
-
type: string;
|
|
1545
|
-
}[];
|
|
1546
|
-
internalType: string;
|
|
1547
|
-
name: string;
|
|
1548
|
-
type: string;
|
|
1549
|
-
} | {
|
|
1550
|
-
internalType: string;
|
|
1551
|
-
name: string;
|
|
1552
|
-
type: string;
|
|
1553
|
-
components?: never;
|
|
1554
|
-
})[];
|
|
1555
|
-
internalType: string;
|
|
1556
|
-
name: string;
|
|
1557
|
-
type: string;
|
|
1558
|
-
} | {
|
|
1559
|
-
internalType: string;
|
|
1560
|
-
name: string;
|
|
1561
|
-
type: string;
|
|
1562
|
-
components?: never;
|
|
1563
|
-
})[];
|
|
1564
|
-
name: string;
|
|
1565
|
-
outputs: never[];
|
|
1566
|
-
stateMutability: string;
|
|
1567
|
-
type: string;
|
|
1568
|
-
anonymous?: never;
|
|
1569
|
-
} | {
|
|
1570
|
-
stateMutability: string;
|
|
1571
|
-
type: string;
|
|
1572
|
-
inputs?: never;
|
|
1573
|
-
name?: never;
|
|
1574
|
-
anonymous?: never;
|
|
1575
|
-
outputs?: never;
|
|
1576
|
-
})[];
|
|
1577
1241
|
//# sourceMappingURL=abis.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"abis.d.ts","sourceRoot":"","sources":["../../../src/constants/abis.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"abis.d.ts","sourceRoot":"","sources":["../../../src/constants/abis.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuNnB,CAAA;AAEV,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4SpB,CAAA;AAEV,eAAO,MAAM,eAAe;;;;;CA2C3B,CAAA;AAED,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqgBd,CAAA;AAEV,eAAO,MAAM,aAAa;;;;;;;;;;;;;;EAiBhB,CAAA"}
|
|
@@ -9,5 +9,4 @@ export declare const genericSwapAddress: Record<number, Address>;
|
|
|
9
9
|
export declare const permit2Address: Record<number, Address>;
|
|
10
10
|
export declare const strategyAddress: Record<number, Address>;
|
|
11
11
|
export declare const feeReceiptAddress: Record<number, Address>;
|
|
12
|
-
export declare const rfqAddress: Record<number, Address>;
|
|
13
12
|
//# sourceMappingURL=addresses.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addresses.d.ts","sourceRoot":"","sources":["../../../src/constants/addresses.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AAEnC,eAAO,MAAM,WAAW,8CAAwD,CAAA;AAChF,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"addresses.d.ts","sourceRoot":"","sources":["../../../src/constants/addresses.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AAEnC,eAAO,MAAM,WAAW,8CAAwD,CAAA;AAChF,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAG/C,CAAA;AACD,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAG/C,CAAA;AAGD,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAG1D,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAGnD,CAAA;AAED,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAGhD,CAAA;AAED,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAGtD,CAAA;AAED,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAGlD,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAGnD,CAAA;AAGD,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAGrD,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chains.d.ts","sourceRoot":"","sources":["../../../src/constants/chains.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,
|
|
1
|
+
{"version":3,"file":"chains.d.ts","sourceRoot":"","sources":["../../../src/constants/chains.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAmB,MAAM,aAAa,CAAA;AAEzD,eAAO,MAAM,eAAe,iBAAmC,CAAA;AAC/D,eAAO,MAAM,oBAAoB,SAA+B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unit.d.ts","sourceRoot":"","sources":["../../../src/constants/unit.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM,SAAS,CAAA;AAE5B,eAAO,MAAM,WAAW,QAAkB,CAAA;AAC1C,eAAO,MAAM,WAAW,QAAkB,CAAA
|
|
1
|
+
{"version":3,"file":"unit.d.ts","sourceRoot":"","sources":["../../../src/constants/unit.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM,SAAS,CAAA;AAE5B,eAAO,MAAM,WAAW,QAAkB,CAAA;AAC1C,eAAO,MAAM,WAAW,QAAkB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../src/errors/base.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,kBAAkB,GAAG;IAC/B,YAAY,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAA;CACpC,GAAG,CACA;IACE,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAC7B,GACD;IACE,KAAK,EAAE,SAAS,GAAG,KAAK,CAAA;IACxB,OAAO,CAAC,EAAE,KAAK,CAAA;CAChB,GACD;IACE,KAAK,EAAE,SAAS,GAAG,KAAK,CAAA;IACxB,OAAO,EAAE,MAAM,CAAA;CAChB,CACJ,CAAA;AAED,qBAAa,SAAU,SAAQ,KAAK;IACzB,IAAI,SAAqB;IAElC,QAAQ,CAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../src/errors/base.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,kBAAkB,GAAG;IAC/B,YAAY,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAA;CACpC,GAAG,CACA;IACE,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAC7B,GACD;IACE,KAAK,EAAE,SAAS,GAAG,KAAK,CAAA;IACxB,OAAO,CAAC,EAAE,KAAK,CAAA;CAChB,GACD;IACE,KAAK,EAAE,SAAS,GAAG,KAAK,CAAA;IACxB,OAAO,EAAE,MAAM,CAAA;CAChB,CACJ,CAAA;AAED,qBAAa,SAAU,SAAQ,KAAK;IACzB,IAAI,SAAqB;IAElC,QAAQ,CAAC,OAAO,WAAU;IAC1B,OAAO,EAAE,MAAM,CAAA;IACf,YAAY,EAAE,MAAM,EAAE,CAAA;IACtB,YAAY,EAAE,MAAM,CAAA;gBAIlB,YAAY,EAAE,MAAM,EACpB,IAAI,GAAE,kBAA6C;CAwBtD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/permit/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/permit/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAKlD,OAAO,EAAE,WAAW,EAAE,KAAK,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAChF,OAAO,EAAE,KAAK,YAAY,EAAgB,MAAM,qBAAqB,CAAA;AACrE,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,GAAG,EACR,KAAK,YAAY,EACjB,KA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AO;iBAEN,OAAO,GAAG,OAAO,KAC1B,QAAQ,GAAG,CAAC,CAUd;IAEM,iCAAiC;iBAM3B,OAAO;oBACJ,MAAM;eACX,OAAO;iBAEN,OAAO,GAAG,OAAO,KAC1B,QAAQ,kBAAkB,CAAC,CAa7B;IAED;;OAEG;IACI,qBAAqB;iBAKf,OAAO;eACT,OAAO;iBAEN,OAAO,GAAG,OAAO,KAC1B,QAAQ,GAAG,CAAC,CAUd;IAEM,gCAAgC;iBAK1B,OAAO;eACT,OAAO;iBAEN,OAAO,GAAG,OAAO,KAC1B,QAAQ,kBAAkB,CAAC,CAY7B;CACF"}
|
package/dist/types/sdk.d.ts
CHANGED
package/dist/types/sdk.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdk.d.ts","sourceRoot":"","sources":["../../src/sdk.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAC1C,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAA;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AACtC,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,WAAW,CAAA;AAC/C,OAAO,EAAE,KAAK,GAAG,EAAE,MAAM,gBAAgB,CAAA;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAA;AACxC,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,YAAY,EAGjB,MAAM,EAEP,MAAM,MAAM,CAAA;AAEb,MAAM,MAAM,iBAAiB,GAAG;IAC9B,GAAG,EAAE,GAAG,CAAA;IACR,KAAK,EAAE,cAAc,CAAA;IACrB,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB,
|
|
1
|
+
{"version":3,"file":"sdk.d.ts","sourceRoot":"","sources":["../../src/sdk.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAC1C,OAAO,EAAE,KAAK,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AG;IACxB,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,cAAc,EAAE,WAAW,
|
|
1
|
+
{"version":3,"file":"serviceHost.d.ts","sourceRoot":"","sources":["../../src/serviceHost.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,WAAW,CAAA;AAG/C,MAAM,MAAM,WAAW,GAAG;IACxB,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,cAAc,EAAE,WAAW,CAQ/D,CAAA;AAED,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,cAAc,EAAE,WAAW,CAQlE,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Price } from '../price/index.js';
|
|
2
2
|
import { ContextHost } from '../service/contextHost.js';
|
|
3
3
|
import { PermitSource } from '../types/permit2.js';
|
|
4
|
-
import { type AppConfig, type ListDTO, type ListItem, type Order, type OrderState, type QuoteDTO, type
|
|
4
|
+
import { type AppConfig, type ListDTO, type ListItem, type Order, type OrderState, type QuoteDTO, type StatusDTO, type SubmitDTO, type SwapConfig, type SwapData, type UniAgentCalldata } from './type.js';
|
|
5
5
|
import { JsonRpcProvider } from 'ethers';
|
|
6
6
|
import { type Address, type Hex, type PrivateKeyAccount, type PublicClient, type TransactionRequest, type WalletClient } from 'viem';
|
|
7
7
|
export declare const strategyOperationsABI: readonly [{
|
|
@@ -27,33 +27,8 @@ export declare const strategyOperationsABI: readonly [{
|
|
|
27
27
|
}];
|
|
28
28
|
}];
|
|
29
29
|
export declare const ERC20_TRANSFER_GAS = 65000n;
|
|
30
|
-
export type PreviewParams = PrepareOrderParams & {
|
|
31
|
-
account: Address | PrivateKeyAccount;
|
|
32
|
-
};
|
|
33
|
-
export type Preview = {
|
|
34
|
-
inputToken: `0x${string}`;
|
|
35
|
-
outputToken: `0x${string}`;
|
|
36
|
-
amountIn: bigint;
|
|
37
|
-
amountOut: bigint;
|
|
38
|
-
minAmountOut: bigint;
|
|
39
|
-
recipient: `0x${string}`;
|
|
40
|
-
fee: bigint;
|
|
41
|
-
gas: bigint;
|
|
42
|
-
gasFeeTokenAmount: bigint;
|
|
43
|
-
feeFactor: number;
|
|
44
|
-
};
|
|
45
|
-
export type RFQPreparedOrder = {
|
|
46
|
-
rfqOffer: RFQOffer;
|
|
47
|
-
rfqTx: RFQTx;
|
|
48
|
-
value: bigint;
|
|
49
|
-
fee: bigint;
|
|
50
|
-
minMakerTokenAmount: bigint;
|
|
51
|
-
makerTokenAmount: bigint;
|
|
52
|
-
takerTokenAmount: bigint;
|
|
53
|
-
takerRequestAmount: bigint;
|
|
54
|
-
};
|
|
55
30
|
export type PrepareOrderParams = {
|
|
56
|
-
order:
|
|
31
|
+
order: Order;
|
|
57
32
|
/**
|
|
58
33
|
* slippage percentage, use bp as unit
|
|
59
34
|
* @example 1 means 0.01%
|
|
@@ -62,9 +37,9 @@ export type PrepareOrderParams = {
|
|
|
62
37
|
slippage: number | `${number}` | bigint;
|
|
63
38
|
gasFee?: bigint;
|
|
64
39
|
sendByRelayer?: boolean;
|
|
65
|
-
takerTokenPermit?: `0x${string}`;
|
|
66
40
|
};
|
|
67
|
-
export type
|
|
41
|
+
export type PreparedOrder = {
|
|
42
|
+
uniAgentCalldata?: UniAgentCalldata;
|
|
68
43
|
swapData: SwapData;
|
|
69
44
|
gasFee: bigint;
|
|
70
45
|
gasFeeTokenAmount: bigint;
|
|
@@ -81,9 +56,6 @@ export type SORPreparedOrder = {
|
|
|
81
56
|
}[];
|
|
82
57
|
strategyData: Hex;
|
|
83
58
|
value: bigint;
|
|
84
|
-
minMakerTokenAmount: bigint;
|
|
85
|
-
makerTokenAmount: bigint;
|
|
86
|
-
takerTokenAmount: bigint;
|
|
87
59
|
};
|
|
88
60
|
export declare class Swap extends ContextHost {
|
|
89
61
|
walletClient: WalletClient;
|
|
@@ -96,72 +68,37 @@ export declare class Swap extends ContextHost {
|
|
|
96
68
|
price: Price;
|
|
97
69
|
});
|
|
98
70
|
private rebuildStrategyData;
|
|
99
|
-
|
|
100
|
-
getProtocolFeeAmount: (order: {
|
|
101
|
-
feeFactor: number;
|
|
102
|
-
encodeResult: {
|
|
103
|
-
swapData: {
|
|
104
|
-
makerTokenAmount: bigint;
|
|
105
|
-
};
|
|
106
|
-
};
|
|
107
|
-
}) => bigint;
|
|
71
|
+
private getProtocolFeeAmount;
|
|
108
72
|
private getSlippageAmount;
|
|
109
73
|
private calcGasFeeTokenAmount;
|
|
110
74
|
private calcRelayerFee;
|
|
111
75
|
private getRoutesApproveStrategy;
|
|
112
|
-
|
|
113
|
-
preview: (params: PreviewParams) => Promise<Preview>;
|
|
114
|
-
prepareOrder: ({ order, slippage, gasFee, sendByRelayer, }: PrepareOrderParams) => Promise<SORPreparedOrder | RFQPreparedOrder>;
|
|
76
|
+
prepareOrder: ({ order, slippage, gasFee, sendByRelayer, }: PrepareOrderParams) => Promise<PreparedOrder>;
|
|
115
77
|
quote: (dto: QuoteDTO) => Promise<Order>;
|
|
116
78
|
getTokenPermitData: (token: Address, permitType?: PermitSource) => Hex;
|
|
117
79
|
private isETH;
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
slippage: number | `${number}` | bigint;
|
|
124
|
-
takerTokenPermit?: Hex;
|
|
80
|
+
estimate: ({ account, order, slippage, permit, }: {
|
|
81
|
+
account: Address;
|
|
82
|
+
order: Order;
|
|
83
|
+
slippage: number | `${number}`;
|
|
84
|
+
permit?: Hex;
|
|
125
85
|
}) => Promise<bigint>;
|
|
126
|
-
private signRFQOrder;
|
|
127
|
-
private signSOROrder;
|
|
128
86
|
sign: (params: {
|
|
129
|
-
slippage: number;
|
|
130
|
-
sendByRelayer: boolean;
|
|
131
87
|
account: Address;
|
|
132
|
-
|
|
133
|
-
takerTokenPermit
|
|
88
|
+
swapData: SwapData;
|
|
89
|
+
takerTokenPermit: `0x${string}`;
|
|
90
|
+
value: bigint;
|
|
134
91
|
txOverride?: Partial<TransactionRequest>;
|
|
135
92
|
}) => Promise<`0x${string}`>;
|
|
136
93
|
signWithReceipt: (params: {
|
|
137
|
-
sendByRelayer: boolean;
|
|
138
|
-
slippage: number;
|
|
139
94
|
account: Address;
|
|
140
|
-
|
|
95
|
+
swapData: SwapData;
|
|
96
|
+
uniAgentCalldata: UniAgentCalldata | undefined;
|
|
97
|
+
takerTokenPermit: `0x${string}`;
|
|
141
98
|
value: bigint;
|
|
142
|
-
takerTokenPermit?: `0x${string}`;
|
|
143
|
-
txOverride?: Partial<TransactionRequest>;
|
|
144
99
|
}) => Promise<import("viem").TransactionReceipt>;
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
signTypedData: (params: {
|
|
148
|
-
slippage: number;
|
|
149
|
-
sendByRelayer: boolean;
|
|
150
|
-
account: Address | PrivateKeyAccount;
|
|
151
|
-
order: Order;
|
|
152
|
-
takerTokenPermit?: `0x${string}`;
|
|
153
|
-
prepare?: SORPreparedOrder | RFQPreparedOrder;
|
|
154
|
-
}) => Promise<`0x${string}`>;
|
|
155
|
-
submit: (params: {
|
|
156
|
-
order: Order;
|
|
157
|
-
slippage: `${number}` | number;
|
|
158
|
-
takerTokenPermit: Hex;
|
|
159
|
-
sendByRelayer: boolean;
|
|
160
|
-
txHash?: Hex;
|
|
161
|
-
orderSignature?: Hex;
|
|
162
|
-
minAmountOut?: bigint;
|
|
163
|
-
gasFee?: bigint;
|
|
164
|
-
}) => Promise<any>;
|
|
100
|
+
signTypedData: (swapData: SwapData, account: Address | PrivateKeyAccount) => Promise<`0x${string}`>;
|
|
101
|
+
submit: (dto: SubmitDTO) => Promise<any>;
|
|
165
102
|
list: (dto: ListDTO) => Promise<ListItem>;
|
|
166
103
|
status: (dto: StatusDTO) => Promise<OrderState>;
|
|
167
104
|
config: (appVersion?: string) => Promise<AppConfig>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/swap/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/swap/index.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAGlD,OAAO,EACL,KAAK,SAAS,EAEd,KAAK,OAAO,EACZ,KAAK,QAAQ,EACb,KAAK,KAAK,EACV,KAAK,UAAU,EACf,KAAK,QAAQ,EACb,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,UAAU,EACf,KAAK,QAAQ,EACb,KAAK,gBAAgB,EACtB,MAAM,WAAW,CAAA;AAClB,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAA;AACxC,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,GAAG,EACR,KAAK,iBAAiB,EACtB,KAAK,YAAY,EACjB,KAAK,kBAAkB,EACvB,KAAK,YAAY,EASlB,MAAM,MAAM,CAAA;AAEb,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;EAEjC,CAAA;AACD,eAAO,MAAM,kBAAkB,SAAU,CAAA;AAEzC,MAAM,MAAM,kBAAkB,GAAG;IAC/B,KAAK,EAAE,KAAK,CAAA;IACZ;;;;OAIG;IACH,QAAQ,EAAE,MAAM,GAAG,GAAG,MAAM,EAAE,GAAG,MAAM,CAAA;IACvC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB,CAAA;AAED,MAAM,MAAM,aAAa,GAAG;IAC1B,gBAAgB,CAAC,EAAE,gBAAgB,CAAA;IACnC,QAAQ,EAAE,QAAQ,C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