anchor-sdk 0.1.41-internal.5 → 0.1.42-beta.0
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/AnchorApiClientV2.d.ts +6 -1
- package/dist/AnchorPayClient.d.ts +54 -0
- package/dist/AnchorPayClient.js +414 -0
- package/dist/constants.d.ts +111 -0
- package/dist/constants.js +147 -1
- package/dist/generated/Api.d.ts +620 -555
- package/dist/generated/Api.js +15 -0
- package/package.json +83 -85
- package/dist/AnchorApiClient.d.ts +0 -203
- package/dist/AnchorApiClient.js +0 -279
- package/dist/api/AnchorApiHttpClient.d.ts +0 -210
- package/dist/api/AnchorApiHttpClient.js +0 -411
- package/dist/api/types.d.ts +0 -764
- package/dist/api/types.js +0 -2
package/dist/constants.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NATIVE_TOKEN_ADDRESS = exports.INTERFACE_HASHES = exports.ENVIRONMENTS = exports.ERC20_ABI = exports.Environment = void 0;
|
|
3
|
+
exports.MULTICALL3_ABI = exports.MULTICALL3_ADDRESS = exports.NATIVE_TOKEN_ADDRESS = exports.INTERFACE_HASHES = exports.ENVIRONMENTS = exports.ERC20_ABI = exports.Environment = void 0;
|
|
4
4
|
const chains_1 = require("viem/chains");
|
|
5
5
|
/**
|
|
6
6
|
* 环境枚举
|
|
@@ -219,3 +219,149 @@ exports.INTERFACE_HASHES = {
|
|
|
219
219
|
TOKEN_RECEIVED: "0x8b2cb2c7b7e2282e2e4b29a6a8c2b2db4218c6a5f8e8fcb3d5598f3e1e6c59d9",
|
|
220
220
|
};
|
|
221
221
|
exports.NATIVE_TOKEN_ADDRESS = "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE";
|
|
222
|
+
/**
|
|
223
|
+
* Multicall3 合约地址(跨链通用)
|
|
224
|
+
*/
|
|
225
|
+
exports.MULTICALL3_ADDRESS = "0xcA11bde05977b3631167028862bE2a173976CA11";
|
|
226
|
+
/**
|
|
227
|
+
* Multicall3 合约 ABI
|
|
228
|
+
*/
|
|
229
|
+
exports.MULTICALL3_ABI = [
|
|
230
|
+
{
|
|
231
|
+
inputs: [
|
|
232
|
+
{
|
|
233
|
+
components: [
|
|
234
|
+
{
|
|
235
|
+
internalType: "address",
|
|
236
|
+
name: "target",
|
|
237
|
+
type: "address",
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
internalType: "bytes",
|
|
241
|
+
name: "callData",
|
|
242
|
+
type: "bytes",
|
|
243
|
+
},
|
|
244
|
+
],
|
|
245
|
+
internalType: "struct Multicall3.Call[]",
|
|
246
|
+
name: "calls",
|
|
247
|
+
type: "tuple[]",
|
|
248
|
+
},
|
|
249
|
+
],
|
|
250
|
+
name: "aggregate",
|
|
251
|
+
outputs: [
|
|
252
|
+
{
|
|
253
|
+
internalType: "uint256",
|
|
254
|
+
name: "blockNumber",
|
|
255
|
+
type: "uint256",
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
internalType: "bytes[]",
|
|
259
|
+
name: "returnData",
|
|
260
|
+
type: "bytes[]",
|
|
261
|
+
},
|
|
262
|
+
],
|
|
263
|
+
stateMutability: "payable",
|
|
264
|
+
type: "function",
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
inputs: [
|
|
268
|
+
{
|
|
269
|
+
components: [
|
|
270
|
+
{
|
|
271
|
+
internalType: "address",
|
|
272
|
+
name: "target",
|
|
273
|
+
type: "address",
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
internalType: "bool",
|
|
277
|
+
name: "allowFailure",
|
|
278
|
+
type: "bool",
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
internalType: "bytes",
|
|
282
|
+
name: "callData",
|
|
283
|
+
type: "bytes",
|
|
284
|
+
},
|
|
285
|
+
],
|
|
286
|
+
internalType: "struct Multicall3.Call3[]",
|
|
287
|
+
name: "calls",
|
|
288
|
+
type: "tuple[]",
|
|
289
|
+
},
|
|
290
|
+
],
|
|
291
|
+
name: "aggregate3",
|
|
292
|
+
outputs: [
|
|
293
|
+
{
|
|
294
|
+
components: [
|
|
295
|
+
{
|
|
296
|
+
internalType: "bool",
|
|
297
|
+
name: "success",
|
|
298
|
+
type: "bool",
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
internalType: "bytes",
|
|
302
|
+
name: "returnData",
|
|
303
|
+
type: "bytes",
|
|
304
|
+
},
|
|
305
|
+
],
|
|
306
|
+
internalType: "struct Multicall3.Result[]",
|
|
307
|
+
name: "returnData",
|
|
308
|
+
type: "tuple[]",
|
|
309
|
+
},
|
|
310
|
+
],
|
|
311
|
+
stateMutability: "payable",
|
|
312
|
+
type: "function",
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
inputs: [
|
|
316
|
+
{
|
|
317
|
+
components: [
|
|
318
|
+
{
|
|
319
|
+
internalType: "address",
|
|
320
|
+
name: "target",
|
|
321
|
+
type: "address",
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
internalType: "bool",
|
|
325
|
+
name: "allowFailure",
|
|
326
|
+
type: "bool",
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
internalType: "uint256",
|
|
330
|
+
name: "value",
|
|
331
|
+
type: "uint256",
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
internalType: "bytes",
|
|
335
|
+
name: "callData",
|
|
336
|
+
type: "bytes",
|
|
337
|
+
},
|
|
338
|
+
],
|
|
339
|
+
internalType: "struct Multicall3.Call3Value[]",
|
|
340
|
+
name: "calls",
|
|
341
|
+
type: "tuple[]",
|
|
342
|
+
},
|
|
343
|
+
],
|
|
344
|
+
name: "aggregate3Value",
|
|
345
|
+
outputs: [
|
|
346
|
+
{
|
|
347
|
+
components: [
|
|
348
|
+
{
|
|
349
|
+
internalType: "bool",
|
|
350
|
+
name: "success",
|
|
351
|
+
type: "bool",
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
internalType: "bytes",
|
|
355
|
+
name: "returnData",
|
|
356
|
+
type: "bytes",
|
|
357
|
+
},
|
|
358
|
+
],
|
|
359
|
+
internalType: "struct Multicall3.Result[]",
|
|
360
|
+
name: "returnData",
|
|
361
|
+
type: "tuple[]",
|
|
362
|
+
},
|
|
363
|
+
],
|
|
364
|
+
stateMutability: "payable",
|
|
365
|
+
type: "function",
|
|
366
|
+
},
|
|
367
|
+
];
|