@across-protocol/sdk 4.4.16 → 4.4.18
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/src/arch/evm/BlockUtils.js +11 -6
- package/dist/cjs/src/arch/evm/BlockUtils.js.map +1 -1
- package/dist/cjs/src/arch/tvm/TransactionUtils.js +15 -2
- package/dist/cjs/src/arch/tvm/TransactionUtils.js.map +1 -1
- package/dist/cjs/src/utils/abi/typechain/Constants.d.ts +9 -1
- package/dist/cjs/src/utils/abi/typechain/CounterfactualConfig.d.ts +9 -1
- package/dist/cjs/src/utils/abi/typechain/DeploymentUtils.d.ts +9 -1
- package/dist/cjs/src/utils/abi/typechain/ERC6492SignatureHandler.d.ts +42 -0
- package/dist/cjs/src/utils/abi/typechain/ERC6492SignatureHandler.js +3 -0
- package/dist/cjs/src/utils/abi/typechain/ERC6492SignatureHandler.js.map +1 -0
- package/dist/cjs/src/utils/abi/typechain/HubPoolTestBase.d.ts +9 -1
- package/dist/cjs/src/utils/abi/typechain/IERC20AuthBytes.d.ts +58 -0
- package/dist/cjs/src/utils/abi/typechain/IERC20AuthBytes.js +3 -0
- package/dist/cjs/src/utils/abi/typechain/IERC20AuthBytes.js.map +1 -0
- package/dist/cjs/src/utils/abi/typechain/IMulticall3.d.ts +2 -226
- package/dist/cjs/src/utils/abi/typechain/SpokePoolPeriphery.d.ts +53 -1
- package/dist/cjs/src/utils/abi/typechain/SpokePoolPeripheryInterface.d.ts +45 -1
- package/dist/cjs/src/utils/abi/typechain/factories/Constants__factory.d.ts +10 -0
- package/dist/cjs/src/utils/abi/typechain/factories/Constants__factory.js +13 -0
- package/dist/cjs/src/utils/abi/typechain/factories/Constants__factory.js.map +1 -1
- package/dist/cjs/src/utils/abi/typechain/factories/CounterfactualConfig__factory.d.ts +10 -0
- package/dist/cjs/src/utils/abi/typechain/factories/CounterfactualConfig__factory.js +13 -0
- package/dist/cjs/src/utils/abi/typechain/factories/CounterfactualConfig__factory.js.map +1 -1
- package/dist/cjs/src/utils/abi/typechain/factories/DeploymentUtils__factory.d.ts +10 -0
- package/dist/cjs/src/utils/abi/typechain/factories/DeploymentUtils__factory.js +13 -0
- package/dist/cjs/src/utils/abi/typechain/factories/DeploymentUtils__factory.js.map +1 -1
- package/dist/cjs/src/utils/abi/typechain/factories/ERC6492SignatureHandler__factory.d.ts +18 -0
- package/dist/cjs/src/utils/abi/typechain/factories/ERC6492SignatureHandler__factory.js +30 -0
- package/dist/cjs/src/utils/abi/typechain/factories/ERC6492SignatureHandler__factory.js.map +1 -0
- package/dist/cjs/src/utils/abi/typechain/factories/HubPoolTestBase__factory.d.ts +10 -0
- package/dist/cjs/src/utils/abi/typechain/factories/HubPoolTestBase__factory.js +13 -0
- package/dist/cjs/src/utils/abi/typechain/factories/HubPoolTestBase__factory.js.map +1 -1
- package/dist/cjs/src/utils/abi/typechain/factories/IERC20AuthBytes__factory.d.ts +42 -0
- package/dist/cjs/src/utils/abi/typechain/factories/IERC20AuthBytes__factory.js +60 -0
- package/dist/cjs/src/utils/abi/typechain/factories/IERC20AuthBytes__factory.js.map +1 -0
- package/dist/cjs/src/utils/abi/typechain/factories/IMulticall3__factory.d.ts +1 -296
- package/dist/cjs/src/utils/abi/typechain/factories/IMulticall3__factory.js +1 -391
- package/dist/cjs/src/utils/abi/typechain/factories/IMulticall3__factory.js.map +1 -1
- package/dist/cjs/src/utils/abi/typechain/factories/SpokePoolPeripheryInterface__factory.d.ts +226 -0
- package/dist/cjs/src/utils/abi/typechain/factories/SpokePoolPeripheryInterface__factory.js +288 -0
- package/dist/cjs/src/utils/abi/typechain/factories/SpokePoolPeripheryInterface__factory.js.map +1 -1
- package/dist/cjs/src/utils/abi/typechain/factories/SpokePoolPeriphery__factory.d.ts +240 -0
- package/dist/cjs/src/utils/abi/typechain/factories/SpokePoolPeriphery__factory.js +306 -0
- package/dist/cjs/src/utils/abi/typechain/factories/SpokePoolPeriphery__factory.js.map +1 -1
- package/dist/cjs/src/utils/abi/typechain/factories/index.d.ts +2 -0
- package/dist/cjs/src/utils/abi/typechain/factories/index.js +10 -6
- package/dist/cjs/src/utils/abi/typechain/factories/index.js.map +1 -1
- package/dist/cjs/src/utils/abi/typechain/index.d.ts +4 -0
- package/dist/cjs/src/utils/abi/typechain/index.js +10 -6
- package/dist/cjs/src/utils/abi/typechain/index.js.map +1 -1
- package/dist/esm/src/arch/evm/BlockUtils.js +18 -6
- package/dist/esm/src/arch/evm/BlockUtils.js.map +1 -1
- package/dist/esm/src/arch/tvm/TransactionUtils.d.ts +7 -1
- package/dist/esm/src/arch/tvm/TransactionUtils.js +40 -4
- package/dist/esm/src/arch/tvm/TransactionUtils.js.map +1 -1
- package/dist/esm/src/utils/abi/typechain/Constants.d.ts +9 -1
- package/dist/esm/src/utils/abi/typechain/CounterfactualConfig.d.ts +9 -1
- package/dist/esm/src/utils/abi/typechain/DeploymentUtils.d.ts +9 -1
- package/dist/esm/src/utils/abi/typechain/ERC6492SignatureHandler.d.ts +42 -0
- package/dist/esm/src/utils/abi/typechain/ERC6492SignatureHandler.js +2 -0
- package/dist/esm/src/utils/abi/typechain/ERC6492SignatureHandler.js.map +1 -0
- package/dist/esm/src/utils/abi/typechain/HubPoolTestBase.d.ts +9 -1
- package/dist/esm/src/utils/abi/typechain/IERC20AuthBytes.d.ts +58 -0
- package/dist/esm/src/utils/abi/typechain/IERC20AuthBytes.js +2 -0
- package/dist/esm/src/utils/abi/typechain/IERC20AuthBytes.js.map +1 -0
- package/dist/esm/src/utils/abi/typechain/IMulticall3.d.ts +2 -226
- package/dist/esm/src/utils/abi/typechain/SpokePoolPeriphery.d.ts +53 -1
- package/dist/esm/src/utils/abi/typechain/SpokePoolPeripheryInterface.d.ts +45 -1
- package/dist/esm/src/utils/abi/typechain/factories/Constants__factory.d.ts +10 -0
- package/dist/esm/src/utils/abi/typechain/factories/Constants__factory.js +13 -0
- package/dist/esm/src/utils/abi/typechain/factories/Constants__factory.js.map +1 -1
- package/dist/esm/src/utils/abi/typechain/factories/CounterfactualConfig__factory.d.ts +10 -0
- package/dist/esm/src/utils/abi/typechain/factories/CounterfactualConfig__factory.js +13 -0
- package/dist/esm/src/utils/abi/typechain/factories/CounterfactualConfig__factory.js.map +1 -1
- package/dist/esm/src/utils/abi/typechain/factories/DeploymentUtils__factory.d.ts +10 -0
- package/dist/esm/src/utils/abi/typechain/factories/DeploymentUtils__factory.js +13 -0
- package/dist/esm/src/utils/abi/typechain/factories/DeploymentUtils__factory.js.map +1 -1
- package/dist/esm/src/utils/abi/typechain/factories/ERC6492SignatureHandler__factory.d.ts +18 -0
- package/dist/esm/src/utils/abi/typechain/factories/ERC6492SignatureHandler__factory.js +30 -0
- package/dist/esm/src/utils/abi/typechain/factories/ERC6492SignatureHandler__factory.js.map +1 -0
- package/dist/esm/src/utils/abi/typechain/factories/HubPoolTestBase__factory.d.ts +10 -0
- package/dist/esm/src/utils/abi/typechain/factories/HubPoolTestBase__factory.js +13 -0
- package/dist/esm/src/utils/abi/typechain/factories/HubPoolTestBase__factory.js.map +1 -1
- package/dist/esm/src/utils/abi/typechain/factories/IERC20AuthBytes__factory.d.ts +42 -0
- package/dist/esm/src/utils/abi/typechain/factories/IERC20AuthBytes__factory.js +60 -0
- package/dist/esm/src/utils/abi/typechain/factories/IERC20AuthBytes__factory.js.map +1 -0
- package/dist/esm/src/utils/abi/typechain/factories/IMulticall3__factory.d.ts +1 -296
- package/dist/esm/src/utils/abi/typechain/factories/IMulticall3__factory.js +1 -391
- package/dist/esm/src/utils/abi/typechain/factories/IMulticall3__factory.js.map +1 -1
- package/dist/esm/src/utils/abi/typechain/factories/SpokePoolPeripheryInterface__factory.d.ts +226 -0
- package/dist/esm/src/utils/abi/typechain/factories/SpokePoolPeripheryInterface__factory.js +288 -0
- package/dist/esm/src/utils/abi/typechain/factories/SpokePoolPeripheryInterface__factory.js.map +1 -1
- package/dist/esm/src/utils/abi/typechain/factories/SpokePoolPeriphery__factory.d.ts +240 -0
- package/dist/esm/src/utils/abi/typechain/factories/SpokePoolPeriphery__factory.js +306 -0
- package/dist/esm/src/utils/abi/typechain/factories/SpokePoolPeriphery__factory.js.map +1 -1
- package/dist/esm/src/utils/abi/typechain/factories/index.d.ts +2 -0
- package/dist/esm/src/utils/abi/typechain/factories/index.js +2 -0
- package/dist/esm/src/utils/abi/typechain/factories/index.js.map +1 -1
- package/dist/esm/src/utils/abi/typechain/index.d.ts +4 -0
- package/dist/esm/src/utils/abi/typechain/index.js +2 -0
- package/dist/esm/src/utils/abi/typechain/index.js.map +1 -1
- package/dist/types/src/arch/evm/BlockUtils.d.ts.map +1 -1
- package/dist/types/src/arch/tvm/TransactionUtils.d.ts +7 -1
- package/dist/types/src/arch/tvm/TransactionUtils.d.ts.map +1 -1
- package/dist/types/src/utils/abi/typechain/Constants.d.ts +9 -1
- package/dist/types/src/utils/abi/typechain/Constants.d.ts.map +1 -1
- package/dist/types/src/utils/abi/typechain/CounterfactualConfig.d.ts +9 -1
- package/dist/types/src/utils/abi/typechain/CounterfactualConfig.d.ts.map +1 -1
- package/dist/types/src/utils/abi/typechain/DeploymentUtils.d.ts +9 -1
- package/dist/types/src/utils/abi/typechain/DeploymentUtils.d.ts.map +1 -1
- package/dist/types/src/utils/abi/typechain/ERC6492SignatureHandler.d.ts +43 -0
- package/dist/types/src/utils/abi/typechain/ERC6492SignatureHandler.d.ts.map +1 -0
- package/dist/types/src/utils/abi/typechain/HubPoolTestBase.d.ts +9 -1
- package/dist/types/src/utils/abi/typechain/HubPoolTestBase.d.ts.map +1 -1
- package/dist/types/src/utils/abi/typechain/IERC20AuthBytes.d.ts +59 -0
- package/dist/types/src/utils/abi/typechain/IERC20AuthBytes.d.ts.map +1 -0
- package/dist/types/src/utils/abi/typechain/IMulticall3.d.ts +2 -226
- package/dist/types/src/utils/abi/typechain/IMulticall3.d.ts.map +1 -1
- package/dist/types/src/utils/abi/typechain/SpokePoolPeriphery.d.ts +53 -1
- package/dist/types/src/utils/abi/typechain/SpokePoolPeriphery.d.ts.map +1 -1
- package/dist/types/src/utils/abi/typechain/SpokePoolPeripheryInterface.d.ts +45 -1
- package/dist/types/src/utils/abi/typechain/SpokePoolPeripheryInterface.d.ts.map +1 -1
- package/dist/types/src/utils/abi/typechain/factories/Constants__factory.d.ts +10 -0
- package/dist/types/src/utils/abi/typechain/factories/Constants__factory.d.ts.map +1 -1
- package/dist/types/src/utils/abi/typechain/factories/CounterfactualConfig__factory.d.ts +10 -0
- package/dist/types/src/utils/abi/typechain/factories/CounterfactualConfig__factory.d.ts.map +1 -1
- package/dist/types/src/utils/abi/typechain/factories/DeploymentUtils__factory.d.ts +10 -0
- package/dist/types/src/utils/abi/typechain/factories/DeploymentUtils__factory.d.ts.map +1 -1
- package/dist/types/src/utils/abi/typechain/factories/ERC6492SignatureHandler__factory.d.ts +19 -0
- package/dist/types/src/utils/abi/typechain/factories/ERC6492SignatureHandler__factory.d.ts.map +1 -0
- package/dist/types/src/utils/abi/typechain/factories/HubPoolTestBase__factory.d.ts +10 -0
- package/dist/types/src/utils/abi/typechain/factories/HubPoolTestBase__factory.d.ts.map +1 -1
- package/dist/types/src/utils/abi/typechain/factories/IERC20AuthBytes__factory.d.ts +43 -0
- package/dist/types/src/utils/abi/typechain/factories/IERC20AuthBytes__factory.d.ts.map +1 -0
- package/dist/types/src/utils/abi/typechain/factories/IMulticall3__factory.d.ts +1 -296
- package/dist/types/src/utils/abi/typechain/factories/IMulticall3__factory.d.ts.map +1 -1
- package/dist/types/src/utils/abi/typechain/factories/SpokePoolPeripheryInterface__factory.d.ts +226 -0
- package/dist/types/src/utils/abi/typechain/factories/SpokePoolPeripheryInterface__factory.d.ts.map +1 -1
- package/dist/types/src/utils/abi/typechain/factories/SpokePoolPeriphery__factory.d.ts +240 -0
- package/dist/types/src/utils/abi/typechain/factories/SpokePoolPeriphery__factory.d.ts.map +1 -1
- package/dist/types/src/utils/abi/typechain/factories/index.d.ts +2 -0
- package/dist/types/src/utils/abi/typechain/factories/index.d.ts.map +1 -1
- package/dist/types/src/utils/abi/typechain/index.d.ts +4 -0
- package/dist/types/src/utils/abi/typechain/index.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/arch/evm/BlockUtils.ts +20 -6
- package/src/arch/tvm/TransactionUtils.ts +44 -4
- package/src/utils/abi/contracts/Constants.json +13 -0
- package/src/utils/abi/contracts/CounterfactualConfig.json +13 -0
- package/src/utils/abi/contracts/DeploymentUtils.json +13 -0
- package/src/utils/abi/contracts/ERC6492SignatureHandler.json +15 -0
- package/src/utils/abi/contracts/HubPoolTestBase.json +13 -0
- package/src/utils/abi/contracts/IERC20AuthBytes.json +45 -0
- package/src/utils/abi/contracts/IMulticall3.json +1 -391
- package/src/utils/abi/contracts/SpokePoolPeriphery.json +306 -0
- package/src/utils/abi/contracts/SpokePoolPeripheryInterface.json +288 -0
- package/src/utils/abi/typechain/Constants.ts +20 -0
- package/src/utils/abi/typechain/CounterfactualConfig.ts +20 -0
- package/src/utils/abi/typechain/DeploymentUtils.ts +20 -0
- package/src/utils/abi/typechain/ERC6492SignatureHandler.ts +85 -0
- package/src/utils/abi/typechain/HubPoolTestBase.ts +20 -0
- package/src/utils/abi/typechain/IERC20AuthBytes.ts +146 -0
- package/src/utils/abi/typechain/IMulticall3.ts +1 -458
- package/src/utils/abi/typechain/SpokePoolPeriphery.ts +139 -0
- package/src/utils/abi/typechain/SpokePoolPeripheryInterface.ts +122 -0
- package/src/utils/abi/typechain/factories/Constants__factory.ts +13 -0
- package/src/utils/abi/typechain/factories/CounterfactualConfig__factory.ts +13 -0
- package/src/utils/abi/typechain/factories/DeploymentUtils__factory.ts +13 -0
- package/src/utils/abi/typechain/factories/ERC6492SignatureHandler__factory.ts +44 -0
- package/src/utils/abi/typechain/factories/HubPoolTestBase__factory.ts +13 -0
- package/src/utils/abi/typechain/factories/IERC20AuthBytes__factory.ts +70 -0
- package/src/utils/abi/typechain/factories/IMulticall3__factory.ts +1 -391
- package/src/utils/abi/typechain/factories/SpokePoolPeripheryInterface__factory.ts +288 -0
- package/src/utils/abi/typechain/factories/SpokePoolPeriphery__factory.ts +306 -0
- package/src/utils/abi/typechain/factories/index.ts +2 -0
- package/src/utils/abi/typechain/index.ts +4 -0
|
@@ -3,257 +3,6 @@ import type { Provider } from "@ethersproject/providers";
|
|
|
3
3
|
import type { IMulticall3, IMulticall3Interface } from "../IMulticall3";
|
|
4
4
|
export declare class IMulticall3__factory {
|
|
5
5
|
static readonly abi: readonly [{
|
|
6
|
-
readonly type: "function";
|
|
7
|
-
readonly name: "aggregate";
|
|
8
|
-
readonly inputs: readonly [{
|
|
9
|
-
readonly name: "calls";
|
|
10
|
-
readonly type: "tuple[]";
|
|
11
|
-
readonly internalType: "struct IMulticall3.Call[]";
|
|
12
|
-
readonly components: readonly [{
|
|
13
|
-
readonly name: "target";
|
|
14
|
-
readonly type: "address";
|
|
15
|
-
readonly internalType: "address";
|
|
16
|
-
}, {
|
|
17
|
-
readonly name: "callData";
|
|
18
|
-
readonly type: "bytes";
|
|
19
|
-
readonly internalType: "bytes";
|
|
20
|
-
}];
|
|
21
|
-
}];
|
|
22
|
-
readonly outputs: readonly [{
|
|
23
|
-
readonly name: "blockNumber";
|
|
24
|
-
readonly type: "uint256";
|
|
25
|
-
readonly internalType: "uint256";
|
|
26
|
-
}, {
|
|
27
|
-
readonly name: "returnData";
|
|
28
|
-
readonly type: "bytes[]";
|
|
29
|
-
readonly internalType: "bytes[]";
|
|
30
|
-
}];
|
|
31
|
-
readonly stateMutability: "payable";
|
|
32
|
-
}, {
|
|
33
|
-
readonly type: "function";
|
|
34
|
-
readonly name: "aggregate3";
|
|
35
|
-
readonly inputs: readonly [{
|
|
36
|
-
readonly name: "calls";
|
|
37
|
-
readonly type: "tuple[]";
|
|
38
|
-
readonly internalType: "struct IMulticall3.Call3[]";
|
|
39
|
-
readonly components: readonly [{
|
|
40
|
-
readonly name: "target";
|
|
41
|
-
readonly type: "address";
|
|
42
|
-
readonly internalType: "address";
|
|
43
|
-
}, {
|
|
44
|
-
readonly name: "allowFailure";
|
|
45
|
-
readonly type: "bool";
|
|
46
|
-
readonly internalType: "bool";
|
|
47
|
-
}, {
|
|
48
|
-
readonly name: "callData";
|
|
49
|
-
readonly type: "bytes";
|
|
50
|
-
readonly internalType: "bytes";
|
|
51
|
-
}];
|
|
52
|
-
}];
|
|
53
|
-
readonly outputs: readonly [{
|
|
54
|
-
readonly name: "returnData";
|
|
55
|
-
readonly type: "tuple[]";
|
|
56
|
-
readonly internalType: "struct IMulticall3.Result[]";
|
|
57
|
-
readonly components: readonly [{
|
|
58
|
-
readonly name: "success";
|
|
59
|
-
readonly type: "bool";
|
|
60
|
-
readonly internalType: "bool";
|
|
61
|
-
}, {
|
|
62
|
-
readonly name: "returnData";
|
|
63
|
-
readonly type: "bytes";
|
|
64
|
-
readonly internalType: "bytes";
|
|
65
|
-
}];
|
|
66
|
-
}];
|
|
67
|
-
readonly stateMutability: "payable";
|
|
68
|
-
}, {
|
|
69
|
-
readonly type: "function";
|
|
70
|
-
readonly name: "aggregate3Value";
|
|
71
|
-
readonly inputs: readonly [{
|
|
72
|
-
readonly name: "calls";
|
|
73
|
-
readonly type: "tuple[]";
|
|
74
|
-
readonly internalType: "struct IMulticall3.Call3Value[]";
|
|
75
|
-
readonly components: readonly [{
|
|
76
|
-
readonly name: "target";
|
|
77
|
-
readonly type: "address";
|
|
78
|
-
readonly internalType: "address";
|
|
79
|
-
}, {
|
|
80
|
-
readonly name: "allowFailure";
|
|
81
|
-
readonly type: "bool";
|
|
82
|
-
readonly internalType: "bool";
|
|
83
|
-
}, {
|
|
84
|
-
readonly name: "value";
|
|
85
|
-
readonly type: "uint256";
|
|
86
|
-
readonly internalType: "uint256";
|
|
87
|
-
}, {
|
|
88
|
-
readonly name: "callData";
|
|
89
|
-
readonly type: "bytes";
|
|
90
|
-
readonly internalType: "bytes";
|
|
91
|
-
}];
|
|
92
|
-
}];
|
|
93
|
-
readonly outputs: readonly [{
|
|
94
|
-
readonly name: "returnData";
|
|
95
|
-
readonly type: "tuple[]";
|
|
96
|
-
readonly internalType: "struct IMulticall3.Result[]";
|
|
97
|
-
readonly components: readonly [{
|
|
98
|
-
readonly name: "success";
|
|
99
|
-
readonly type: "bool";
|
|
100
|
-
readonly internalType: "bool";
|
|
101
|
-
}, {
|
|
102
|
-
readonly name: "returnData";
|
|
103
|
-
readonly type: "bytes";
|
|
104
|
-
readonly internalType: "bytes";
|
|
105
|
-
}];
|
|
106
|
-
}];
|
|
107
|
-
readonly stateMutability: "payable";
|
|
108
|
-
}, {
|
|
109
|
-
readonly type: "function";
|
|
110
|
-
readonly name: "blockAndAggregate";
|
|
111
|
-
readonly inputs: readonly [{
|
|
112
|
-
readonly name: "calls";
|
|
113
|
-
readonly type: "tuple[]";
|
|
114
|
-
readonly internalType: "struct IMulticall3.Call[]";
|
|
115
|
-
readonly components: readonly [{
|
|
116
|
-
readonly name: "target";
|
|
117
|
-
readonly type: "address";
|
|
118
|
-
readonly internalType: "address";
|
|
119
|
-
}, {
|
|
120
|
-
readonly name: "callData";
|
|
121
|
-
readonly type: "bytes";
|
|
122
|
-
readonly internalType: "bytes";
|
|
123
|
-
}];
|
|
124
|
-
}];
|
|
125
|
-
readonly outputs: readonly [{
|
|
126
|
-
readonly name: "blockNumber";
|
|
127
|
-
readonly type: "uint256";
|
|
128
|
-
readonly internalType: "uint256";
|
|
129
|
-
}, {
|
|
130
|
-
readonly name: "blockHash";
|
|
131
|
-
readonly type: "bytes32";
|
|
132
|
-
readonly internalType: "bytes32";
|
|
133
|
-
}, {
|
|
134
|
-
readonly name: "returnData";
|
|
135
|
-
readonly type: "tuple[]";
|
|
136
|
-
readonly internalType: "struct IMulticall3.Result[]";
|
|
137
|
-
readonly components: readonly [{
|
|
138
|
-
readonly name: "success";
|
|
139
|
-
readonly type: "bool";
|
|
140
|
-
readonly internalType: "bool";
|
|
141
|
-
}, {
|
|
142
|
-
readonly name: "returnData";
|
|
143
|
-
readonly type: "bytes";
|
|
144
|
-
readonly internalType: "bytes";
|
|
145
|
-
}];
|
|
146
|
-
}];
|
|
147
|
-
readonly stateMutability: "payable";
|
|
148
|
-
}, {
|
|
149
|
-
readonly type: "function";
|
|
150
|
-
readonly name: "getBasefee";
|
|
151
|
-
readonly inputs: readonly [];
|
|
152
|
-
readonly outputs: readonly [{
|
|
153
|
-
readonly name: "basefee";
|
|
154
|
-
readonly type: "uint256";
|
|
155
|
-
readonly internalType: "uint256";
|
|
156
|
-
}];
|
|
157
|
-
readonly stateMutability: "view";
|
|
158
|
-
}, {
|
|
159
|
-
readonly type: "function";
|
|
160
|
-
readonly name: "getBlockHash";
|
|
161
|
-
readonly inputs: readonly [{
|
|
162
|
-
readonly name: "blockNumber";
|
|
163
|
-
readonly type: "uint256";
|
|
164
|
-
readonly internalType: "uint256";
|
|
165
|
-
}];
|
|
166
|
-
readonly outputs: readonly [{
|
|
167
|
-
readonly name: "blockHash";
|
|
168
|
-
readonly type: "bytes32";
|
|
169
|
-
readonly internalType: "bytes32";
|
|
170
|
-
}];
|
|
171
|
-
readonly stateMutability: "view";
|
|
172
|
-
}, {
|
|
173
|
-
readonly type: "function";
|
|
174
|
-
readonly name: "getBlockNumber";
|
|
175
|
-
readonly inputs: readonly [];
|
|
176
|
-
readonly outputs: readonly [{
|
|
177
|
-
readonly name: "blockNumber";
|
|
178
|
-
readonly type: "uint256";
|
|
179
|
-
readonly internalType: "uint256";
|
|
180
|
-
}];
|
|
181
|
-
readonly stateMutability: "view";
|
|
182
|
-
}, {
|
|
183
|
-
readonly type: "function";
|
|
184
|
-
readonly name: "getChainId";
|
|
185
|
-
readonly inputs: readonly [];
|
|
186
|
-
readonly outputs: readonly [{
|
|
187
|
-
readonly name: "chainid";
|
|
188
|
-
readonly type: "uint256";
|
|
189
|
-
readonly internalType: "uint256";
|
|
190
|
-
}];
|
|
191
|
-
readonly stateMutability: "view";
|
|
192
|
-
}, {
|
|
193
|
-
readonly type: "function";
|
|
194
|
-
readonly name: "getCurrentBlockCoinbase";
|
|
195
|
-
readonly inputs: readonly [];
|
|
196
|
-
readonly outputs: readonly [{
|
|
197
|
-
readonly name: "coinbase";
|
|
198
|
-
readonly type: "address";
|
|
199
|
-
readonly internalType: "address";
|
|
200
|
-
}];
|
|
201
|
-
readonly stateMutability: "view";
|
|
202
|
-
}, {
|
|
203
|
-
readonly type: "function";
|
|
204
|
-
readonly name: "getCurrentBlockDifficulty";
|
|
205
|
-
readonly inputs: readonly [];
|
|
206
|
-
readonly outputs: readonly [{
|
|
207
|
-
readonly name: "difficulty";
|
|
208
|
-
readonly type: "uint256";
|
|
209
|
-
readonly internalType: "uint256";
|
|
210
|
-
}];
|
|
211
|
-
readonly stateMutability: "view";
|
|
212
|
-
}, {
|
|
213
|
-
readonly type: "function";
|
|
214
|
-
readonly name: "getCurrentBlockGasLimit";
|
|
215
|
-
readonly inputs: readonly [];
|
|
216
|
-
readonly outputs: readonly [{
|
|
217
|
-
readonly name: "gaslimit";
|
|
218
|
-
readonly type: "uint256";
|
|
219
|
-
readonly internalType: "uint256";
|
|
220
|
-
}];
|
|
221
|
-
readonly stateMutability: "view";
|
|
222
|
-
}, {
|
|
223
|
-
readonly type: "function";
|
|
224
|
-
readonly name: "getCurrentBlockTimestamp";
|
|
225
|
-
readonly inputs: readonly [];
|
|
226
|
-
readonly outputs: readonly [{
|
|
227
|
-
readonly name: "timestamp";
|
|
228
|
-
readonly type: "uint256";
|
|
229
|
-
readonly internalType: "uint256";
|
|
230
|
-
}];
|
|
231
|
-
readonly stateMutability: "view";
|
|
232
|
-
}, {
|
|
233
|
-
readonly type: "function";
|
|
234
|
-
readonly name: "getEthBalance";
|
|
235
|
-
readonly inputs: readonly [{
|
|
236
|
-
readonly name: "addr";
|
|
237
|
-
readonly type: "address";
|
|
238
|
-
readonly internalType: "address";
|
|
239
|
-
}];
|
|
240
|
-
readonly outputs: readonly [{
|
|
241
|
-
readonly name: "balance";
|
|
242
|
-
readonly type: "uint256";
|
|
243
|
-
readonly internalType: "uint256";
|
|
244
|
-
}];
|
|
245
|
-
readonly stateMutability: "view";
|
|
246
|
-
}, {
|
|
247
|
-
readonly type: "function";
|
|
248
|
-
readonly name: "getLastBlockHash";
|
|
249
|
-
readonly inputs: readonly [];
|
|
250
|
-
readonly outputs: readonly [{
|
|
251
|
-
readonly name: "blockHash";
|
|
252
|
-
readonly type: "bytes32";
|
|
253
|
-
readonly internalType: "bytes32";
|
|
254
|
-
}];
|
|
255
|
-
readonly stateMutability: "view";
|
|
256
|
-
}, {
|
|
257
6
|
readonly type: "function";
|
|
258
7
|
readonly name: "tryAggregate";
|
|
259
8
|
readonly inputs: readonly [{
|
|
@@ -275,51 +24,7 @@ export declare class IMulticall3__factory {
|
|
|
275
24
|
}];
|
|
276
25
|
}];
|
|
277
26
|
readonly outputs: readonly [{
|
|
278
|
-
readonly name: "
|
|
279
|
-
readonly type: "tuple[]";
|
|
280
|
-
readonly internalType: "struct IMulticall3.Result[]";
|
|
281
|
-
readonly components: readonly [{
|
|
282
|
-
readonly name: "success";
|
|
283
|
-
readonly type: "bool";
|
|
284
|
-
readonly internalType: "bool";
|
|
285
|
-
}, {
|
|
286
|
-
readonly name: "returnData";
|
|
287
|
-
readonly type: "bytes";
|
|
288
|
-
readonly internalType: "bytes";
|
|
289
|
-
}];
|
|
290
|
-
}];
|
|
291
|
-
readonly stateMutability: "payable";
|
|
292
|
-
}, {
|
|
293
|
-
readonly type: "function";
|
|
294
|
-
readonly name: "tryBlockAndAggregate";
|
|
295
|
-
readonly inputs: readonly [{
|
|
296
|
-
readonly name: "requireSuccess";
|
|
297
|
-
readonly type: "bool";
|
|
298
|
-
readonly internalType: "bool";
|
|
299
|
-
}, {
|
|
300
|
-
readonly name: "calls";
|
|
301
|
-
readonly type: "tuple[]";
|
|
302
|
-
readonly internalType: "struct IMulticall3.Call[]";
|
|
303
|
-
readonly components: readonly [{
|
|
304
|
-
readonly name: "target";
|
|
305
|
-
readonly type: "address";
|
|
306
|
-
readonly internalType: "address";
|
|
307
|
-
}, {
|
|
308
|
-
readonly name: "callData";
|
|
309
|
-
readonly type: "bytes";
|
|
310
|
-
readonly internalType: "bytes";
|
|
311
|
-
}];
|
|
312
|
-
}];
|
|
313
|
-
readonly outputs: readonly [{
|
|
314
|
-
readonly name: "blockNumber";
|
|
315
|
-
readonly type: "uint256";
|
|
316
|
-
readonly internalType: "uint256";
|
|
317
|
-
}, {
|
|
318
|
-
readonly name: "blockHash";
|
|
319
|
-
readonly type: "bytes32";
|
|
320
|
-
readonly internalType: "bytes32";
|
|
321
|
-
}, {
|
|
322
|
-
readonly name: "returnData";
|
|
27
|
+
readonly name: "";
|
|
323
28
|
readonly type: "tuple[]";
|
|
324
29
|
readonly internalType: "struct IMulticall3.Result[]";
|
|
325
30
|
readonly components: readonly [{
|
|
@@ -4,338 +4,6 @@
|
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import { Contract, utils } from "ethers";
|
|
6
6
|
const _abi = [
|
|
7
|
-
{
|
|
8
|
-
type: "function",
|
|
9
|
-
name: "aggregate",
|
|
10
|
-
inputs: [
|
|
11
|
-
{
|
|
12
|
-
name: "calls",
|
|
13
|
-
type: "tuple[]",
|
|
14
|
-
internalType: "struct IMulticall3.Call[]",
|
|
15
|
-
components: [
|
|
16
|
-
{
|
|
17
|
-
name: "target",
|
|
18
|
-
type: "address",
|
|
19
|
-
internalType: "address",
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
name: "callData",
|
|
23
|
-
type: "bytes",
|
|
24
|
-
internalType: "bytes",
|
|
25
|
-
},
|
|
26
|
-
],
|
|
27
|
-
},
|
|
28
|
-
],
|
|
29
|
-
outputs: [
|
|
30
|
-
{
|
|
31
|
-
name: "blockNumber",
|
|
32
|
-
type: "uint256",
|
|
33
|
-
internalType: "uint256",
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
name: "returnData",
|
|
37
|
-
type: "bytes[]",
|
|
38
|
-
internalType: "bytes[]",
|
|
39
|
-
},
|
|
40
|
-
],
|
|
41
|
-
stateMutability: "payable",
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
type: "function",
|
|
45
|
-
name: "aggregate3",
|
|
46
|
-
inputs: [
|
|
47
|
-
{
|
|
48
|
-
name: "calls",
|
|
49
|
-
type: "tuple[]",
|
|
50
|
-
internalType: "struct IMulticall3.Call3[]",
|
|
51
|
-
components: [
|
|
52
|
-
{
|
|
53
|
-
name: "target",
|
|
54
|
-
type: "address",
|
|
55
|
-
internalType: "address",
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
name: "allowFailure",
|
|
59
|
-
type: "bool",
|
|
60
|
-
internalType: "bool",
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
name: "callData",
|
|
64
|
-
type: "bytes",
|
|
65
|
-
internalType: "bytes",
|
|
66
|
-
},
|
|
67
|
-
],
|
|
68
|
-
},
|
|
69
|
-
],
|
|
70
|
-
outputs: [
|
|
71
|
-
{
|
|
72
|
-
name: "returnData",
|
|
73
|
-
type: "tuple[]",
|
|
74
|
-
internalType: "struct IMulticall3.Result[]",
|
|
75
|
-
components: [
|
|
76
|
-
{
|
|
77
|
-
name: "success",
|
|
78
|
-
type: "bool",
|
|
79
|
-
internalType: "bool",
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
name: "returnData",
|
|
83
|
-
type: "bytes",
|
|
84
|
-
internalType: "bytes",
|
|
85
|
-
},
|
|
86
|
-
],
|
|
87
|
-
},
|
|
88
|
-
],
|
|
89
|
-
stateMutability: "payable",
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
type: "function",
|
|
93
|
-
name: "aggregate3Value",
|
|
94
|
-
inputs: [
|
|
95
|
-
{
|
|
96
|
-
name: "calls",
|
|
97
|
-
type: "tuple[]",
|
|
98
|
-
internalType: "struct IMulticall3.Call3Value[]",
|
|
99
|
-
components: [
|
|
100
|
-
{
|
|
101
|
-
name: "target",
|
|
102
|
-
type: "address",
|
|
103
|
-
internalType: "address",
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
name: "allowFailure",
|
|
107
|
-
type: "bool",
|
|
108
|
-
internalType: "bool",
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
name: "value",
|
|
112
|
-
type: "uint256",
|
|
113
|
-
internalType: "uint256",
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
name: "callData",
|
|
117
|
-
type: "bytes",
|
|
118
|
-
internalType: "bytes",
|
|
119
|
-
},
|
|
120
|
-
],
|
|
121
|
-
},
|
|
122
|
-
],
|
|
123
|
-
outputs: [
|
|
124
|
-
{
|
|
125
|
-
name: "returnData",
|
|
126
|
-
type: "tuple[]",
|
|
127
|
-
internalType: "struct IMulticall3.Result[]",
|
|
128
|
-
components: [
|
|
129
|
-
{
|
|
130
|
-
name: "success",
|
|
131
|
-
type: "bool",
|
|
132
|
-
internalType: "bool",
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
name: "returnData",
|
|
136
|
-
type: "bytes",
|
|
137
|
-
internalType: "bytes",
|
|
138
|
-
},
|
|
139
|
-
],
|
|
140
|
-
},
|
|
141
|
-
],
|
|
142
|
-
stateMutability: "payable",
|
|
143
|
-
},
|
|
144
|
-
{
|
|
145
|
-
type: "function",
|
|
146
|
-
name: "blockAndAggregate",
|
|
147
|
-
inputs: [
|
|
148
|
-
{
|
|
149
|
-
name: "calls",
|
|
150
|
-
type: "tuple[]",
|
|
151
|
-
internalType: "struct IMulticall3.Call[]",
|
|
152
|
-
components: [
|
|
153
|
-
{
|
|
154
|
-
name: "target",
|
|
155
|
-
type: "address",
|
|
156
|
-
internalType: "address",
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
name: "callData",
|
|
160
|
-
type: "bytes",
|
|
161
|
-
internalType: "bytes",
|
|
162
|
-
},
|
|
163
|
-
],
|
|
164
|
-
},
|
|
165
|
-
],
|
|
166
|
-
outputs: [
|
|
167
|
-
{
|
|
168
|
-
name: "blockNumber",
|
|
169
|
-
type: "uint256",
|
|
170
|
-
internalType: "uint256",
|
|
171
|
-
},
|
|
172
|
-
{
|
|
173
|
-
name: "blockHash",
|
|
174
|
-
type: "bytes32",
|
|
175
|
-
internalType: "bytes32",
|
|
176
|
-
},
|
|
177
|
-
{
|
|
178
|
-
name: "returnData",
|
|
179
|
-
type: "tuple[]",
|
|
180
|
-
internalType: "struct IMulticall3.Result[]",
|
|
181
|
-
components: [
|
|
182
|
-
{
|
|
183
|
-
name: "success",
|
|
184
|
-
type: "bool",
|
|
185
|
-
internalType: "bool",
|
|
186
|
-
},
|
|
187
|
-
{
|
|
188
|
-
name: "returnData",
|
|
189
|
-
type: "bytes",
|
|
190
|
-
internalType: "bytes",
|
|
191
|
-
},
|
|
192
|
-
],
|
|
193
|
-
},
|
|
194
|
-
],
|
|
195
|
-
stateMutability: "payable",
|
|
196
|
-
},
|
|
197
|
-
{
|
|
198
|
-
type: "function",
|
|
199
|
-
name: "getBasefee",
|
|
200
|
-
inputs: [],
|
|
201
|
-
outputs: [
|
|
202
|
-
{
|
|
203
|
-
name: "basefee",
|
|
204
|
-
type: "uint256",
|
|
205
|
-
internalType: "uint256",
|
|
206
|
-
},
|
|
207
|
-
],
|
|
208
|
-
stateMutability: "view",
|
|
209
|
-
},
|
|
210
|
-
{
|
|
211
|
-
type: "function",
|
|
212
|
-
name: "getBlockHash",
|
|
213
|
-
inputs: [
|
|
214
|
-
{
|
|
215
|
-
name: "blockNumber",
|
|
216
|
-
type: "uint256",
|
|
217
|
-
internalType: "uint256",
|
|
218
|
-
},
|
|
219
|
-
],
|
|
220
|
-
outputs: [
|
|
221
|
-
{
|
|
222
|
-
name: "blockHash",
|
|
223
|
-
type: "bytes32",
|
|
224
|
-
internalType: "bytes32",
|
|
225
|
-
},
|
|
226
|
-
],
|
|
227
|
-
stateMutability: "view",
|
|
228
|
-
},
|
|
229
|
-
{
|
|
230
|
-
type: "function",
|
|
231
|
-
name: "getBlockNumber",
|
|
232
|
-
inputs: [],
|
|
233
|
-
outputs: [
|
|
234
|
-
{
|
|
235
|
-
name: "blockNumber",
|
|
236
|
-
type: "uint256",
|
|
237
|
-
internalType: "uint256",
|
|
238
|
-
},
|
|
239
|
-
],
|
|
240
|
-
stateMutability: "view",
|
|
241
|
-
},
|
|
242
|
-
{
|
|
243
|
-
type: "function",
|
|
244
|
-
name: "getChainId",
|
|
245
|
-
inputs: [],
|
|
246
|
-
outputs: [
|
|
247
|
-
{
|
|
248
|
-
name: "chainid",
|
|
249
|
-
type: "uint256",
|
|
250
|
-
internalType: "uint256",
|
|
251
|
-
},
|
|
252
|
-
],
|
|
253
|
-
stateMutability: "view",
|
|
254
|
-
},
|
|
255
|
-
{
|
|
256
|
-
type: "function",
|
|
257
|
-
name: "getCurrentBlockCoinbase",
|
|
258
|
-
inputs: [],
|
|
259
|
-
outputs: [
|
|
260
|
-
{
|
|
261
|
-
name: "coinbase",
|
|
262
|
-
type: "address",
|
|
263
|
-
internalType: "address",
|
|
264
|
-
},
|
|
265
|
-
],
|
|
266
|
-
stateMutability: "view",
|
|
267
|
-
},
|
|
268
|
-
{
|
|
269
|
-
type: "function",
|
|
270
|
-
name: "getCurrentBlockDifficulty",
|
|
271
|
-
inputs: [],
|
|
272
|
-
outputs: [
|
|
273
|
-
{
|
|
274
|
-
name: "difficulty",
|
|
275
|
-
type: "uint256",
|
|
276
|
-
internalType: "uint256",
|
|
277
|
-
},
|
|
278
|
-
],
|
|
279
|
-
stateMutability: "view",
|
|
280
|
-
},
|
|
281
|
-
{
|
|
282
|
-
type: "function",
|
|
283
|
-
name: "getCurrentBlockGasLimit",
|
|
284
|
-
inputs: [],
|
|
285
|
-
outputs: [
|
|
286
|
-
{
|
|
287
|
-
name: "gaslimit",
|
|
288
|
-
type: "uint256",
|
|
289
|
-
internalType: "uint256",
|
|
290
|
-
},
|
|
291
|
-
],
|
|
292
|
-
stateMutability: "view",
|
|
293
|
-
},
|
|
294
|
-
{
|
|
295
|
-
type: "function",
|
|
296
|
-
name: "getCurrentBlockTimestamp",
|
|
297
|
-
inputs: [],
|
|
298
|
-
outputs: [
|
|
299
|
-
{
|
|
300
|
-
name: "timestamp",
|
|
301
|
-
type: "uint256",
|
|
302
|
-
internalType: "uint256",
|
|
303
|
-
},
|
|
304
|
-
],
|
|
305
|
-
stateMutability: "view",
|
|
306
|
-
},
|
|
307
|
-
{
|
|
308
|
-
type: "function",
|
|
309
|
-
name: "getEthBalance",
|
|
310
|
-
inputs: [
|
|
311
|
-
{
|
|
312
|
-
name: "addr",
|
|
313
|
-
type: "address",
|
|
314
|
-
internalType: "address",
|
|
315
|
-
},
|
|
316
|
-
],
|
|
317
|
-
outputs: [
|
|
318
|
-
{
|
|
319
|
-
name: "balance",
|
|
320
|
-
type: "uint256",
|
|
321
|
-
internalType: "uint256",
|
|
322
|
-
},
|
|
323
|
-
],
|
|
324
|
-
stateMutability: "view",
|
|
325
|
-
},
|
|
326
|
-
{
|
|
327
|
-
type: "function",
|
|
328
|
-
name: "getLastBlockHash",
|
|
329
|
-
inputs: [],
|
|
330
|
-
outputs: [
|
|
331
|
-
{
|
|
332
|
-
name: "blockHash",
|
|
333
|
-
type: "bytes32",
|
|
334
|
-
internalType: "bytes32",
|
|
335
|
-
},
|
|
336
|
-
],
|
|
337
|
-
stateMutability: "view",
|
|
338
|
-
},
|
|
339
7
|
{
|
|
340
8
|
type: "function",
|
|
341
9
|
name: "tryAggregate",
|
|
@@ -365,65 +33,7 @@ const _abi = [
|
|
|
365
33
|
],
|
|
366
34
|
outputs: [
|
|
367
35
|
{
|
|
368
|
-
name: "
|
|
369
|
-
type: "tuple[]",
|
|
370
|
-
internalType: "struct IMulticall3.Result[]",
|
|
371
|
-
components: [
|
|
372
|
-
{
|
|
373
|
-
name: "success",
|
|
374
|
-
type: "bool",
|
|
375
|
-
internalType: "bool",
|
|
376
|
-
},
|
|
377
|
-
{
|
|
378
|
-
name: "returnData",
|
|
379
|
-
type: "bytes",
|
|
380
|
-
internalType: "bytes",
|
|
381
|
-
},
|
|
382
|
-
],
|
|
383
|
-
},
|
|
384
|
-
],
|
|
385
|
-
stateMutability: "payable",
|
|
386
|
-
},
|
|
387
|
-
{
|
|
388
|
-
type: "function",
|
|
389
|
-
name: "tryBlockAndAggregate",
|
|
390
|
-
inputs: [
|
|
391
|
-
{
|
|
392
|
-
name: "requireSuccess",
|
|
393
|
-
type: "bool",
|
|
394
|
-
internalType: "bool",
|
|
395
|
-
},
|
|
396
|
-
{
|
|
397
|
-
name: "calls",
|
|
398
|
-
type: "tuple[]",
|
|
399
|
-
internalType: "struct IMulticall3.Call[]",
|
|
400
|
-
components: [
|
|
401
|
-
{
|
|
402
|
-
name: "target",
|
|
403
|
-
type: "address",
|
|
404
|
-
internalType: "address",
|
|
405
|
-
},
|
|
406
|
-
{
|
|
407
|
-
name: "callData",
|
|
408
|
-
type: "bytes",
|
|
409
|
-
internalType: "bytes",
|
|
410
|
-
},
|
|
411
|
-
],
|
|
412
|
-
},
|
|
413
|
-
],
|
|
414
|
-
outputs: [
|
|
415
|
-
{
|
|
416
|
-
name: "blockNumber",
|
|
417
|
-
type: "uint256",
|
|
418
|
-
internalType: "uint256",
|
|
419
|
-
},
|
|
420
|
-
{
|
|
421
|
-
name: "blockHash",
|
|
422
|
-
type: "bytes32",
|
|
423
|
-
internalType: "bytes32",
|
|
424
|
-
},
|
|
425
|
-
{
|
|
426
|
-
name: "returnData",
|
|
36
|
+
name: "",
|
|
427
37
|
type: "tuple[]",
|
|
428
38
|
internalType: "struct IMulticall3.Result[]",
|
|
429
39
|
components: [
|