@across-protocol/sdk 4.3.165-beta.1 → 4.3.165

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.
Files changed (38) hide show
  1. package/dist/cjs/src/utils/abi/typechain/TronMulticallHandler.d.ts +153 -0
  2. package/dist/cjs/src/utils/abi/typechain/TronMulticallHandler.js +3 -0
  3. package/dist/cjs/src/utils/abi/typechain/TronMulticallHandler.js.map +1 -0
  4. package/dist/cjs/src/utils/abi/typechain/factories/TronMulticallHandler__factory.d.ts +231 -0
  5. package/dist/cjs/src/utils/abi/typechain/factories/TronMulticallHandler__factory.js +306 -0
  6. package/dist/cjs/src/utils/abi/typechain/factories/TronMulticallHandler__factory.js.map +1 -0
  7. package/dist/cjs/src/utils/abi/typechain/factories/index.d.ts +1 -0
  8. package/dist/cjs/src/utils/abi/typechain/factories/index.js +4 -2
  9. package/dist/cjs/src/utils/abi/typechain/factories/index.js.map +1 -1
  10. package/dist/cjs/src/utils/abi/typechain/index.d.ts +2 -0
  11. package/dist/cjs/src/utils/abi/typechain/index.js +4 -2
  12. package/dist/cjs/src/utils/abi/typechain/index.js.map +1 -1
  13. package/dist/esm/src/utils/abi/typechain/TronMulticallHandler.d.ts +153 -0
  14. package/dist/esm/src/utils/abi/typechain/TronMulticallHandler.js +2 -0
  15. package/dist/esm/src/utils/abi/typechain/TronMulticallHandler.js.map +1 -0
  16. package/dist/esm/src/utils/abi/typechain/factories/TronMulticallHandler__factory.d.ts +231 -0
  17. package/dist/esm/src/utils/abi/typechain/factories/TronMulticallHandler__factory.js +305 -0
  18. package/dist/esm/src/utils/abi/typechain/factories/TronMulticallHandler__factory.js.map +1 -0
  19. package/dist/esm/src/utils/abi/typechain/factories/index.d.ts +1 -0
  20. package/dist/esm/src/utils/abi/typechain/factories/index.js +1 -0
  21. package/dist/esm/src/utils/abi/typechain/factories/index.js.map +1 -1
  22. package/dist/esm/src/utils/abi/typechain/index.d.ts +2 -0
  23. package/dist/esm/src/utils/abi/typechain/index.js +1 -0
  24. package/dist/esm/src/utils/abi/typechain/index.js.map +1 -1
  25. package/dist/types/src/utils/abi/typechain/TronMulticallHandler.d.ts +154 -0
  26. package/dist/types/src/utils/abi/typechain/TronMulticallHandler.d.ts.map +1 -0
  27. package/dist/types/src/utils/abi/typechain/factories/TronMulticallHandler__factory.d.ts +232 -0
  28. package/dist/types/src/utils/abi/typechain/factories/TronMulticallHandler__factory.d.ts.map +1 -0
  29. package/dist/types/src/utils/abi/typechain/factories/index.d.ts +1 -0
  30. package/dist/types/src/utils/abi/typechain/factories/index.d.ts.map +1 -1
  31. package/dist/types/src/utils/abi/typechain/index.d.ts +2 -0
  32. package/dist/types/src/utils/abi/typechain/index.d.ts.map +1 -1
  33. package/package.json +2 -2
  34. package/src/utils/abi/contracts/TronMulticallHandler.json +291 -0
  35. package/src/utils/abi/typechain/TronMulticallHandler.ts +327 -0
  36. package/src/utils/abi/typechain/factories/TronMulticallHandler__factory.ts +319 -0
  37. package/src/utils/abi/typechain/factories/index.ts +1 -0
  38. package/src/utils/abi/typechain/index.ts +2 -0
@@ -0,0 +1,319 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import { Contract, Signer, utils } from "ethers";
6
+ import type { Provider } from "@ethersproject/providers";
7
+ import type {
8
+ TronMulticallHandler,
9
+ TronMulticallHandlerInterface,
10
+ } from "../TronMulticallHandler";
11
+
12
+ const _abi = [
13
+ {
14
+ type: "receive",
15
+ stateMutability: "payable",
16
+ },
17
+ {
18
+ type: "function",
19
+ name: "attemptCalls",
20
+ inputs: [
21
+ {
22
+ name: "calls",
23
+ type: "tuple[]",
24
+ internalType: "struct MulticallHandler.Call[]",
25
+ components: [
26
+ {
27
+ name: "target",
28
+ type: "address",
29
+ internalType: "address",
30
+ },
31
+ {
32
+ name: "callData",
33
+ type: "bytes",
34
+ internalType: "bytes",
35
+ },
36
+ {
37
+ name: "value",
38
+ type: "uint256",
39
+ internalType: "uint256",
40
+ },
41
+ ],
42
+ },
43
+ ],
44
+ outputs: [],
45
+ stateMutability: "nonpayable",
46
+ },
47
+ {
48
+ type: "function",
49
+ name: "drainLeftoverTokens",
50
+ inputs: [
51
+ {
52
+ name: "token",
53
+ type: "address",
54
+ internalType: "address",
55
+ },
56
+ {
57
+ name: "destination",
58
+ type: "address",
59
+ internalType: "address payable",
60
+ },
61
+ ],
62
+ outputs: [],
63
+ stateMutability: "nonpayable",
64
+ },
65
+ {
66
+ type: "function",
67
+ name: "handleV3AcrossMessage",
68
+ inputs: [
69
+ {
70
+ name: "token",
71
+ type: "address",
72
+ internalType: "address",
73
+ },
74
+ {
75
+ name: "",
76
+ type: "uint256",
77
+ internalType: "uint256",
78
+ },
79
+ {
80
+ name: "",
81
+ type: "address",
82
+ internalType: "address",
83
+ },
84
+ {
85
+ name: "message",
86
+ type: "bytes",
87
+ internalType: "bytes",
88
+ },
89
+ ],
90
+ outputs: [],
91
+ stateMutability: "nonpayable",
92
+ },
93
+ {
94
+ type: "function",
95
+ name: "makeCallWithBalance",
96
+ inputs: [
97
+ {
98
+ name: "target",
99
+ type: "address",
100
+ internalType: "address",
101
+ },
102
+ {
103
+ name: "callData",
104
+ type: "bytes",
105
+ internalType: "bytes",
106
+ },
107
+ {
108
+ name: "value",
109
+ type: "uint256",
110
+ internalType: "uint256",
111
+ },
112
+ {
113
+ name: "replacement",
114
+ type: "tuple[]",
115
+ internalType: "struct MulticallHandler.Replacement[]",
116
+ components: [
117
+ {
118
+ name: "token",
119
+ type: "address",
120
+ internalType: "address",
121
+ },
122
+ {
123
+ name: "offset",
124
+ type: "uint256",
125
+ internalType: "uint256",
126
+ },
127
+ ],
128
+ },
129
+ ],
130
+ outputs: [],
131
+ stateMutability: "nonpayable",
132
+ },
133
+ {
134
+ type: "event",
135
+ name: "CallsFailed",
136
+ inputs: [
137
+ {
138
+ name: "calls",
139
+ type: "tuple[]",
140
+ indexed: false,
141
+ internalType: "struct MulticallHandler.Call[]",
142
+ components: [
143
+ {
144
+ name: "target",
145
+ type: "address",
146
+ internalType: "address",
147
+ },
148
+ {
149
+ name: "callData",
150
+ type: "bytes",
151
+ internalType: "bytes",
152
+ },
153
+ {
154
+ name: "value",
155
+ type: "uint256",
156
+ internalType: "uint256",
157
+ },
158
+ ],
159
+ },
160
+ {
161
+ name: "fallbackRecipient",
162
+ type: "address",
163
+ indexed: true,
164
+ internalType: "address",
165
+ },
166
+ ],
167
+ anonymous: false,
168
+ },
169
+ {
170
+ type: "event",
171
+ name: "DrainedTokens",
172
+ inputs: [
173
+ {
174
+ name: "recipient",
175
+ type: "address",
176
+ indexed: true,
177
+ internalType: "address",
178
+ },
179
+ {
180
+ name: "token",
181
+ type: "address",
182
+ indexed: true,
183
+ internalType: "address",
184
+ },
185
+ {
186
+ name: "amount",
187
+ type: "uint256",
188
+ indexed: true,
189
+ internalType: "uint256",
190
+ },
191
+ ],
192
+ anonymous: false,
193
+ },
194
+ {
195
+ type: "error",
196
+ name: "CallReverted",
197
+ inputs: [
198
+ {
199
+ name: "index",
200
+ type: "uint256",
201
+ internalType: "uint256",
202
+ },
203
+ {
204
+ name: "calls",
205
+ type: "tuple[]",
206
+ internalType: "struct MulticallHandler.Call[]",
207
+ components: [
208
+ {
209
+ name: "target",
210
+ type: "address",
211
+ internalType: "address",
212
+ },
213
+ {
214
+ name: "callData",
215
+ type: "bytes",
216
+ internalType: "bytes",
217
+ },
218
+ {
219
+ name: "value",
220
+ type: "uint256",
221
+ internalType: "uint256",
222
+ },
223
+ ],
224
+ },
225
+ ],
226
+ },
227
+ {
228
+ type: "error",
229
+ name: "CalldataTooShort",
230
+ inputs: [
231
+ {
232
+ name: "callDataLength",
233
+ type: "uint256",
234
+ internalType: "uint256",
235
+ },
236
+ {
237
+ name: "offset",
238
+ type: "uint256",
239
+ internalType: "uint256",
240
+ },
241
+ ],
242
+ },
243
+ {
244
+ type: "error",
245
+ name: "InvalidCall",
246
+ inputs: [
247
+ {
248
+ name: "index",
249
+ type: "uint256",
250
+ internalType: "uint256",
251
+ },
252
+ {
253
+ name: "calls",
254
+ type: "tuple[]",
255
+ internalType: "struct MulticallHandler.Call[]",
256
+ components: [
257
+ {
258
+ name: "target",
259
+ type: "address",
260
+ internalType: "address",
261
+ },
262
+ {
263
+ name: "callData",
264
+ type: "bytes",
265
+ internalType: "bytes",
266
+ },
267
+ {
268
+ name: "value",
269
+ type: "uint256",
270
+ internalType: "uint256",
271
+ },
272
+ ],
273
+ },
274
+ ],
275
+ },
276
+ {
277
+ type: "error",
278
+ name: "NotSelf",
279
+ inputs: [],
280
+ },
281
+ {
282
+ type: "error",
283
+ name: "ReplacementCallFailed",
284
+ inputs: [
285
+ {
286
+ name: "callData",
287
+ type: "bytes",
288
+ internalType: "bytes",
289
+ },
290
+ ],
291
+ },
292
+ {
293
+ type: "error",
294
+ name: "TronTransferBalanceMismatch",
295
+ inputs: [],
296
+ },
297
+ {
298
+ type: "error",
299
+ name: "TronTransferCallReverted",
300
+ inputs: [],
301
+ },
302
+ ] as const;
303
+
304
+ export class TronMulticallHandler__factory {
305
+ static readonly abi = _abi;
306
+ static createInterface(): TronMulticallHandlerInterface {
307
+ return new utils.Interface(_abi) as TronMulticallHandlerInterface;
308
+ }
309
+ static connect(
310
+ address: string,
311
+ signerOrProvider: Signer | Provider
312
+ ): TronMulticallHandler {
313
+ return new Contract(
314
+ address,
315
+ _abi,
316
+ signerOrProvider
317
+ ) as TronMulticallHandler;
318
+ }
319
+ }
@@ -283,6 +283,7 @@ export { Testable__factory } from "./Testable__factory";
283
283
  export { Timer__factory } from "./Timer__factory";
284
284
  export { TransferProxy__factory } from "./TransferProxy__factory";
285
285
  export { TransparentUpgradeableProxy__factory } from "./TransparentUpgradeableProxy__factory";
286
+ export { TronMulticallHandler__factory } from "./TronMulticallHandler__factory";
286
287
  export { TronTransferLib__factory } from "./TronTransferLib__factory";
287
288
  export { Tron_SpokePool__factory } from "./Tron_SpokePool__factory";
288
289
  export { USDYieldManager__factory } from "./USDYieldManager__factory";
@@ -283,6 +283,7 @@ export type { Testable } from "./Testable";
283
283
  export type { Timer } from "./Timer";
284
284
  export type { TransferProxy } from "./TransferProxy";
285
285
  export type { TransparentUpgradeableProxy } from "./TransparentUpgradeableProxy";
286
+ export type { TronMulticallHandler } from "./TronMulticallHandler";
286
287
  export type { TronTransferLib } from "./TronTransferLib";
287
288
  export type { Tron_SpokePool } from "./Tron_SpokePool";
288
289
  export type { USDYieldManager } from "./USDYieldManager";
@@ -586,6 +587,7 @@ export { Timer__factory } from "./factories/Timer__factory";
586
587
  export { TransferProxy__factory } from "./factories/TransferProxy__factory";
587
588
  export { TransparentUpgradeableProxy__factory } from "./factories/TransparentUpgradeableProxy__factory";
588
589
  export { Tron_SpokePool__factory } from "./factories/Tron_SpokePool__factory";
590
+ export { TronMulticallHandler__factory } from "./factories/TronMulticallHandler__factory";
589
591
  export { TronTransferLib__factory } from "./factories/TronTransferLib__factory";
590
592
  export { Universal_Adapter__factory } from "./factories/Universal_Adapter__factory";
591
593
  export { Universal_SpokePool__factory } from "./factories/Universal_SpokePool__factory";