@layerzerolabs/lz-evm-messagelib-v2 2.0.2
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/artifacts/contracts/Executor.sol/Executor.json +1156 -0
- package/artifacts/contracts/ExecutorFeeLib.sol/ExecutorFeeLib.json +336 -0
- package/artifacts/contracts/MessageLibBase.sol/MessageLibBase.json +16 -0
- package/artifacts/contracts/PriceFeed.sol/PriceFeed.json +650 -0
- package/artifacts/contracts/ReceiveLibBaseE2.sol/ReceiveLibBaseE2.json +154 -0
- package/artifacts/contracts/SendLibBase.sol/SendLibBase.json +381 -0
- package/artifacts/contracts/SendLibBaseE2.sol/SendLibBaseE2.json +819 -0
- package/artifacts/contracts/Treasury.sol/Treasury.json +309 -0
- package/artifacts/contracts/Worker.sol/Worker.json +579 -0
- package/artifacts/contracts/interfaces/IExecutor.sol/IExecutor.json +429 -0
- package/artifacts/contracts/interfaces/IExecutorFeeLib.sol/IExecutorFeeLib.json +210 -0
- package/artifacts/contracts/interfaces/ILayerZeroExecutor.sol/ILayerZeroExecutor.json +79 -0
- package/artifacts/contracts/interfaces/ILayerZeroPriceFeed.sol/ILayerZeroPriceFeed.json +222 -0
- package/artifacts/contracts/interfaces/ILayerZeroTreasury.sol/ILayerZeroTreasury.json +79 -0
- package/artifacts/contracts/interfaces/IWorker.sol/IWorker.json +221 -0
- package/artifacts/contracts/libs/SafeCall.sol/SafeCall.json +10 -0
- package/artifacts/contracts/uln/LzExecutor.sol/LzExecutor.json +256 -0
- package/artifacts/contracts/uln/ReceiveUlnBase.sol/ReceiveUlnBase.json +472 -0
- package/artifacts/contracts/uln/SendUlnBase.sol/SendUlnBase.json +412 -0
- package/artifacts/contracts/uln/UlnBase.sol/UlnBase.json +387 -0
- package/artifacts/contracts/uln/dvn/DVN.sol/DVN.json +1370 -0
- package/artifacts/contracts/uln/dvn/DVNFeeLib.sol/DVNFeeLib.json +300 -0
- package/artifacts/contracts/uln/dvn/MultiSig.sol/MultiSig.json +164 -0
- package/artifacts/contracts/uln/dvn/adapters/CCIP/CCIPDVNAdapter.sol/CCIPDVNAdapter.json +742 -0
- package/artifacts/contracts/uln/dvn/adapters/CCIP/CCIPDVNAdapterFeeLib.sol/CCIPDVNAdapterFeeLib.json +50 -0
- package/artifacts/contracts/uln/dvn/adapters/DVNAdapterBase.sol/DVNAdapterBase.json +463 -0
- package/artifacts/contracts/uln/dvn/adapters/DVNAdapterFeeLibBase.sol/DVNAdapterFeeLibBase.json +50 -0
- package/artifacts/contracts/uln/dvn/adapters/axelar/AxelarDVNAdapter.sol/AxelarDVNAdapter.json +804 -0
- package/artifacts/contracts/uln/dvn/adapters/axelar/AxelarDVNAdapterFeeLib.sol/AxelarDVNAdapterFeeLib.json +50 -0
- package/artifacts/contracts/uln/interfaces/IDVN.sol/IDVN.json +370 -0
- package/artifacts/contracts/uln/interfaces/IDVNAdapterFeeLib.sol/IDVNAdapterFeeLib.json +50 -0
- package/artifacts/contracts/uln/interfaces/IDVNFeeLib.sol/IDVNFeeLib.json +178 -0
- package/artifacts/contracts/uln/interfaces/ILayerZeroDVN.sol/ILayerZeroDVN.json +96 -0
- package/artifacts/contracts/uln/interfaces/IReceiveUlnE2.sol/IReceiveUlnE2.json +76 -0
- package/artifacts/contracts/uln/libs/DVNOptions.sol/DVNOptions.json +27 -0
- package/artifacts/contracts/uln/libs/UlnOptions.sol/UlnOptions.json +54 -0
- package/artifacts/contracts/uln/uln301/AddressSizeConfig.sol/AddressSizeConfig.json +129 -0
- package/artifacts/contracts/uln/uln301/ReceiveLibBaseE1.sol/ILayerZeroReceiveLibrary.json +68 -0
- package/artifacts/contracts/uln/uln301/ReceiveLibBaseE1.sol/ReceiveLibBaseE1.json +416 -0
- package/artifacts/contracts/uln/uln301/ReceiveUln301.sol/ReceiveUln301.json +969 -0
- package/artifacts/contracts/uln/uln301/SendLibBaseE1.sol/SendLibBaseE1.json +804 -0
- package/artifacts/contracts/uln/uln301/SendUln301.sol/SendUln301.json +1278 -0
- package/artifacts/contracts/uln/uln301/TreasuryFeeHandler.sol/TreasuryFeeHandler.json +94 -0
- package/artifacts/contracts/uln/uln301/interfaces/IMessageLibE1.sol/IMessageLibE1.json +247 -0
- package/artifacts/contracts/uln/uln301/interfaces/INonceContract.sol/INonceContract.json +40 -0
- package/artifacts/contracts/uln/uln301/interfaces/ITreasuryFeeHandler.sol/ITreasuryFeeHandler.json +44 -0
- package/artifacts/contracts/uln/uln301/interfaces/IUltraLightNode301.sol/IUltraLightNode301.json +29 -0
- package/artifacts/contracts/uln/uln301/mocks/NonceContractMock.sol/NonceContractMock.json +93 -0
- package/artifacts/contracts/uln/uln302/ReceiveUln302.sol/ReceiveUln302.json +702 -0
- package/artifacts/contracts/uln/uln302/SendUln302.sol/SendUln302.json +1259 -0
- package/artifacts/contracts/upgradeable/WorkerUpgradeable.sol/WorkerUpgradeable.json +592 -0
- package/artifacts/contracts/upgradeable/proxy/ProxyAdmin.sol/ProxyAdmin.json +181 -0
- package/artifacts/contracts/upgradeable/proxy/TransparentUpgradeableProxy.sol/TransparentUpgradeableProxy.json +160 -0
- package/contracts/Executor.sol +162 -0
- package/contracts/ExecutorFeeLib.sol +190 -0
- package/contracts/MessageLibBase.sol +21 -0
- package/contracts/PriceFeed.sol +257 -0
- package/contracts/ReceiveLibBaseE2.sol +54 -0
- package/contracts/SendLibBase.sol +258 -0
- package/contracts/SendLibBaseE2.sol +140 -0
- package/contracts/Treasury.sol +74 -0
- package/contracts/Worker.sol +167 -0
- package/contracts/interfaces/IExecutor.sol +44 -0
- package/contracts/interfaces/IExecutorFeeLib.sol +32 -0
- package/contracts/interfaces/ILayerZeroExecutor.sol +29 -0
- package/contracts/interfaces/ILayerZeroPriceFeed.sol +61 -0
- package/contracts/interfaces/ILayerZeroTreasury.sol +19 -0
- package/contracts/interfaces/IWorker.sol +29 -0
- package/contracts/libs/SafeCall.sol +123 -0
- package/contracts/uln/LzExecutor.sol +96 -0
- package/contracts/uln/ReceiveUlnBase.sol +118 -0
- package/contracts/uln/SendUlnBase.sol +129 -0
- package/contracts/uln/UlnBase.sol +195 -0
- package/contracts/uln/dvn/DVN.sol +349 -0
- package/contracts/uln/dvn/DVNFeeLib.sol +141 -0
- package/contracts/uln/dvn/MultiSig.sol +104 -0
- package/contracts/uln/dvn/adapters/CCIP/CCIPDVNAdapter.sol +152 -0
- package/contracts/uln/dvn/adapters/CCIP/CCIPDVNAdapterFeeLib.sol +7 -0
- package/contracts/uln/dvn/adapters/DVNAdapterBase.sol +162 -0
- package/contracts/uln/dvn/adapters/DVNAdapterFeeLibBase.sol +20 -0
- package/contracts/uln/dvn/adapters/axelar/AxelarDVNAdapter.sol +156 -0
- package/contracts/uln/dvn/adapters/axelar/AxelarDVNAdapterFeeLib.sol +7 -0
- package/contracts/uln/interfaces/IDVN.sol +25 -0
- package/contracts/uln/interfaces/IDVNAdapterFeeLib.sol +13 -0
- package/contracts/uln/interfaces/IDVNFeeLib.sol +30 -0
- package/contracts/uln/interfaces/ILayerZeroDVN.sol +34 -0
- package/contracts/uln/interfaces/IReceiveUlnE2.sol +18 -0
- package/contracts/uln/libs/DVNOptions.sol +181 -0
- package/contracts/uln/libs/UlnOptions.sol +176 -0
- package/contracts/uln/uln301/AddressSizeConfig.sol +22 -0
- package/contracts/uln/uln301/ReceiveLibBaseE1.sol +103 -0
- package/contracts/uln/uln301/ReceiveUln301.sol +120 -0
- package/contracts/uln/uln301/SendLibBaseE1.sol +194 -0
- package/contracts/uln/uln301/SendUln301.sol +99 -0
- package/contracts/uln/uln301/TreasuryFeeHandler.sol +41 -0
- package/contracts/uln/uln301/interfaces/IMessageLibE1.sol +22 -0
- package/contracts/uln/uln301/interfaces/INonceContract.sol +7 -0
- package/contracts/uln/uln301/interfaces/ITreasuryFeeHandler.sol +13 -0
- package/contracts/uln/uln301/interfaces/IUltraLightNode301.sol +7 -0
- package/contracts/uln/uln301/mocks/NonceContractMock.sol +23 -0
- package/contracts/uln/uln302/ReceiveUln302.sol +108 -0
- package/contracts/uln/uln302/SendUln302.sol +86 -0
- package/contracts/upgradeable/WorkerUpgradeable.sol +186 -0
- package/contracts/upgradeable/proxy/ProxyAdmin.sol +96 -0
- package/contracts/upgradeable/proxy/TransparentUpgradeableProxy.sol +131 -0
- package/package.json +51 -0
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh-sol-artifact-1",
|
|
3
|
+
"contractName": "ILayerZeroPriceFeed",
|
|
4
|
+
"sourceName": "contracts/interfaces/ILayerZeroPriceFeed.sol",
|
|
5
|
+
"abi": [
|
|
6
|
+
{
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"internalType": "uint256",
|
|
10
|
+
"name": "provided",
|
|
11
|
+
"type": "uint256"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"internalType": "uint256",
|
|
15
|
+
"name": "required",
|
|
16
|
+
"type": "uint256"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"name": "InsufficientFee",
|
|
20
|
+
"type": "error"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"inputs": [],
|
|
24
|
+
"name": "OnlyPriceUpdater",
|
|
25
|
+
"type": "error"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"inputs": [
|
|
29
|
+
{
|
|
30
|
+
"internalType": "uint32",
|
|
31
|
+
"name": "l2Eid",
|
|
32
|
+
"type": "uint32"
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
"name": "UnknownL2Eid",
|
|
36
|
+
"type": "error"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"inputs": [
|
|
40
|
+
{
|
|
41
|
+
"internalType": "uint32",
|
|
42
|
+
"name": "_dstEid",
|
|
43
|
+
"type": "uint32"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"internalType": "uint256",
|
|
47
|
+
"name": "_callDataSize",
|
|
48
|
+
"type": "uint256"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"internalType": "uint256",
|
|
52
|
+
"name": "_gas",
|
|
53
|
+
"type": "uint256"
|
|
54
|
+
}
|
|
55
|
+
],
|
|
56
|
+
"name": "estimateFeeByEid",
|
|
57
|
+
"outputs": [
|
|
58
|
+
{
|
|
59
|
+
"internalType": "uint256",
|
|
60
|
+
"name": "fee",
|
|
61
|
+
"type": "uint256"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"internalType": "uint128",
|
|
65
|
+
"name": "priceRatio",
|
|
66
|
+
"type": "uint128"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"internalType": "uint128",
|
|
70
|
+
"name": "priceRatioDenominator",
|
|
71
|
+
"type": "uint128"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"internalType": "uint128",
|
|
75
|
+
"name": "nativePriceUSD",
|
|
76
|
+
"type": "uint128"
|
|
77
|
+
}
|
|
78
|
+
],
|
|
79
|
+
"stateMutability": "view",
|
|
80
|
+
"type": "function"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"inputs": [
|
|
84
|
+
{
|
|
85
|
+
"internalType": "uint32",
|
|
86
|
+
"name": "_dstEid",
|
|
87
|
+
"type": "uint32"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"internalType": "uint256",
|
|
91
|
+
"name": "_callDataSize",
|
|
92
|
+
"type": "uint256"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"internalType": "uint256",
|
|
96
|
+
"name": "_gas",
|
|
97
|
+
"type": "uint256"
|
|
98
|
+
}
|
|
99
|
+
],
|
|
100
|
+
"name": "estimateFeeOnSend",
|
|
101
|
+
"outputs": [
|
|
102
|
+
{
|
|
103
|
+
"internalType": "uint256",
|
|
104
|
+
"name": "fee",
|
|
105
|
+
"type": "uint256"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"internalType": "uint128",
|
|
109
|
+
"name": "priceRatio",
|
|
110
|
+
"type": "uint128"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"internalType": "uint128",
|
|
114
|
+
"name": "priceRatioDenominator",
|
|
115
|
+
"type": "uint128"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"internalType": "uint128",
|
|
119
|
+
"name": "nativePriceUSD",
|
|
120
|
+
"type": "uint128"
|
|
121
|
+
}
|
|
122
|
+
],
|
|
123
|
+
"stateMutability": "payable",
|
|
124
|
+
"type": "function"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"inputs": [
|
|
128
|
+
{
|
|
129
|
+
"internalType": "uint32",
|
|
130
|
+
"name": "_dstEid",
|
|
131
|
+
"type": "uint32"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"internalType": "uint256",
|
|
135
|
+
"name": "_callDataSize",
|
|
136
|
+
"type": "uint256"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"internalType": "uint256",
|
|
140
|
+
"name": "_gas",
|
|
141
|
+
"type": "uint256"
|
|
142
|
+
}
|
|
143
|
+
],
|
|
144
|
+
"name": "getFee",
|
|
145
|
+
"outputs": [
|
|
146
|
+
{
|
|
147
|
+
"internalType": "uint256",
|
|
148
|
+
"name": "",
|
|
149
|
+
"type": "uint256"
|
|
150
|
+
}
|
|
151
|
+
],
|
|
152
|
+
"stateMutability": "view",
|
|
153
|
+
"type": "function"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"inputs": [
|
|
157
|
+
{
|
|
158
|
+
"internalType": "uint32",
|
|
159
|
+
"name": "_dstEid",
|
|
160
|
+
"type": "uint32"
|
|
161
|
+
}
|
|
162
|
+
],
|
|
163
|
+
"name": "getPrice",
|
|
164
|
+
"outputs": [
|
|
165
|
+
{
|
|
166
|
+
"components": [
|
|
167
|
+
{
|
|
168
|
+
"internalType": "uint128",
|
|
169
|
+
"name": "priceRatio",
|
|
170
|
+
"type": "uint128"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"internalType": "uint64",
|
|
174
|
+
"name": "gasPriceInUnit",
|
|
175
|
+
"type": "uint64"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"internalType": "uint32",
|
|
179
|
+
"name": "gasPerByte",
|
|
180
|
+
"type": "uint32"
|
|
181
|
+
}
|
|
182
|
+
],
|
|
183
|
+
"internalType": "struct ILayerZeroPriceFeed.Price",
|
|
184
|
+
"name": "",
|
|
185
|
+
"type": "tuple"
|
|
186
|
+
}
|
|
187
|
+
],
|
|
188
|
+
"stateMutability": "view",
|
|
189
|
+
"type": "function"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"inputs": [],
|
|
193
|
+
"name": "getPriceRatioDenominator",
|
|
194
|
+
"outputs": [
|
|
195
|
+
{
|
|
196
|
+
"internalType": "uint128",
|
|
197
|
+
"name": "",
|
|
198
|
+
"type": "uint128"
|
|
199
|
+
}
|
|
200
|
+
],
|
|
201
|
+
"stateMutability": "view",
|
|
202
|
+
"type": "function"
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"inputs": [],
|
|
206
|
+
"name": "nativeTokenPriceUSD",
|
|
207
|
+
"outputs": [
|
|
208
|
+
{
|
|
209
|
+
"internalType": "uint128",
|
|
210
|
+
"name": "",
|
|
211
|
+
"type": "uint128"
|
|
212
|
+
}
|
|
213
|
+
],
|
|
214
|
+
"stateMutability": "view",
|
|
215
|
+
"type": "function"
|
|
216
|
+
}
|
|
217
|
+
],
|
|
218
|
+
"bytecode": "0x",
|
|
219
|
+
"deployedBytecode": "0x",
|
|
220
|
+
"linkReferences": {},
|
|
221
|
+
"deployedLinkReferences": {}
|
|
222
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh-sol-artifact-1",
|
|
3
|
+
"contractName": "ILayerZeroTreasury",
|
|
4
|
+
"sourceName": "contracts/interfaces/ILayerZeroTreasury.sol",
|
|
5
|
+
"abi": [
|
|
6
|
+
{
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"internalType": "address",
|
|
10
|
+
"name": "_sender",
|
|
11
|
+
"type": "address"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"internalType": "uint32",
|
|
15
|
+
"name": "_dstEid",
|
|
16
|
+
"type": "uint32"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"internalType": "uint256",
|
|
20
|
+
"name": "_totalNativeFee",
|
|
21
|
+
"type": "uint256"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"internalType": "bool",
|
|
25
|
+
"name": "_payInLzToken",
|
|
26
|
+
"type": "bool"
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"name": "getFee",
|
|
30
|
+
"outputs": [
|
|
31
|
+
{
|
|
32
|
+
"internalType": "uint256",
|
|
33
|
+
"name": "fee",
|
|
34
|
+
"type": "uint256"
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"stateMutability": "view",
|
|
38
|
+
"type": "function"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"inputs": [
|
|
42
|
+
{
|
|
43
|
+
"internalType": "address",
|
|
44
|
+
"name": "_sender",
|
|
45
|
+
"type": "address"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"internalType": "uint32",
|
|
49
|
+
"name": "_dstEid",
|
|
50
|
+
"type": "uint32"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"internalType": "uint256",
|
|
54
|
+
"name": "_totalNativeFee",
|
|
55
|
+
"type": "uint256"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"internalType": "bool",
|
|
59
|
+
"name": "_payInLzToken",
|
|
60
|
+
"type": "bool"
|
|
61
|
+
}
|
|
62
|
+
],
|
|
63
|
+
"name": "payFee",
|
|
64
|
+
"outputs": [
|
|
65
|
+
{
|
|
66
|
+
"internalType": "uint256",
|
|
67
|
+
"name": "fee",
|
|
68
|
+
"type": "uint256"
|
|
69
|
+
}
|
|
70
|
+
],
|
|
71
|
+
"stateMutability": "payable",
|
|
72
|
+
"type": "function"
|
|
73
|
+
}
|
|
74
|
+
],
|
|
75
|
+
"bytecode": "0x",
|
|
76
|
+
"deployedBytecode": "0x",
|
|
77
|
+
"linkReferences": {},
|
|
78
|
+
"deployedLinkReferences": {}
|
|
79
|
+
}
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh-sol-artifact-1",
|
|
3
|
+
"contractName": "IWorker",
|
|
4
|
+
"sourceName": "contracts/interfaces/IWorker.sol",
|
|
5
|
+
"abi": [
|
|
6
|
+
{
|
|
7
|
+
"inputs": [],
|
|
8
|
+
"name": "NotAllowed",
|
|
9
|
+
"type": "error"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"inputs": [],
|
|
13
|
+
"name": "OnlyMessageLib",
|
|
14
|
+
"type": "error"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"inputs": [],
|
|
18
|
+
"name": "RoleRenouncingDisabled",
|
|
19
|
+
"type": "error"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"anonymous": false,
|
|
23
|
+
"inputs": [
|
|
24
|
+
{
|
|
25
|
+
"indexed": false,
|
|
26
|
+
"internalType": "uint16",
|
|
27
|
+
"name": "multiplierBps",
|
|
28
|
+
"type": "uint16"
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
"name": "SetDefaultMultiplierBps",
|
|
32
|
+
"type": "event"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"anonymous": false,
|
|
36
|
+
"inputs": [
|
|
37
|
+
{
|
|
38
|
+
"indexed": false,
|
|
39
|
+
"internalType": "address",
|
|
40
|
+
"name": "priceFeed",
|
|
41
|
+
"type": "address"
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
"name": "SetPriceFeed",
|
|
45
|
+
"type": "event"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"anonymous": false,
|
|
49
|
+
"inputs": [
|
|
50
|
+
{
|
|
51
|
+
"indexed": false,
|
|
52
|
+
"internalType": "uint32",
|
|
53
|
+
"name": "dstEid",
|
|
54
|
+
"type": "uint32"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"indexed": false,
|
|
58
|
+
"internalType": "uint8[]",
|
|
59
|
+
"name": "optionTypes",
|
|
60
|
+
"type": "uint8[]"
|
|
61
|
+
}
|
|
62
|
+
],
|
|
63
|
+
"name": "SetSupportedOptionTypes",
|
|
64
|
+
"type": "event"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"anonymous": false,
|
|
68
|
+
"inputs": [
|
|
69
|
+
{
|
|
70
|
+
"indexed": false,
|
|
71
|
+
"internalType": "address",
|
|
72
|
+
"name": "workerLib",
|
|
73
|
+
"type": "address"
|
|
74
|
+
}
|
|
75
|
+
],
|
|
76
|
+
"name": "SetWorkerLib",
|
|
77
|
+
"type": "event"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"anonymous": false,
|
|
81
|
+
"inputs": [
|
|
82
|
+
{
|
|
83
|
+
"indexed": false,
|
|
84
|
+
"internalType": "address",
|
|
85
|
+
"name": "lib",
|
|
86
|
+
"type": "address"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"indexed": false,
|
|
90
|
+
"internalType": "address",
|
|
91
|
+
"name": "to",
|
|
92
|
+
"type": "address"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"indexed": false,
|
|
96
|
+
"internalType": "uint256",
|
|
97
|
+
"name": "amount",
|
|
98
|
+
"type": "uint256"
|
|
99
|
+
}
|
|
100
|
+
],
|
|
101
|
+
"name": "Withdraw",
|
|
102
|
+
"type": "event"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"inputs": [],
|
|
106
|
+
"name": "defaultMultiplierBps",
|
|
107
|
+
"outputs": [
|
|
108
|
+
{
|
|
109
|
+
"internalType": "uint16",
|
|
110
|
+
"name": "",
|
|
111
|
+
"type": "uint16"
|
|
112
|
+
}
|
|
113
|
+
],
|
|
114
|
+
"stateMutability": "view",
|
|
115
|
+
"type": "function"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"inputs": [
|
|
119
|
+
{
|
|
120
|
+
"internalType": "uint32",
|
|
121
|
+
"name": "_eid",
|
|
122
|
+
"type": "uint32"
|
|
123
|
+
}
|
|
124
|
+
],
|
|
125
|
+
"name": "getSupportedOptionTypes",
|
|
126
|
+
"outputs": [
|
|
127
|
+
{
|
|
128
|
+
"internalType": "uint8[]",
|
|
129
|
+
"name": "",
|
|
130
|
+
"type": "uint8[]"
|
|
131
|
+
}
|
|
132
|
+
],
|
|
133
|
+
"stateMutability": "view",
|
|
134
|
+
"type": "function"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"inputs": [],
|
|
138
|
+
"name": "priceFeed",
|
|
139
|
+
"outputs": [
|
|
140
|
+
{
|
|
141
|
+
"internalType": "address",
|
|
142
|
+
"name": "",
|
|
143
|
+
"type": "address"
|
|
144
|
+
}
|
|
145
|
+
],
|
|
146
|
+
"stateMutability": "view",
|
|
147
|
+
"type": "function"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"inputs": [
|
|
151
|
+
{
|
|
152
|
+
"internalType": "uint16",
|
|
153
|
+
"name": "_multiplierBps",
|
|
154
|
+
"type": "uint16"
|
|
155
|
+
}
|
|
156
|
+
],
|
|
157
|
+
"name": "setDefaultMultiplierBps",
|
|
158
|
+
"outputs": [],
|
|
159
|
+
"stateMutability": "nonpayable",
|
|
160
|
+
"type": "function"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"inputs": [
|
|
164
|
+
{
|
|
165
|
+
"internalType": "address",
|
|
166
|
+
"name": "_priceFeed",
|
|
167
|
+
"type": "address"
|
|
168
|
+
}
|
|
169
|
+
],
|
|
170
|
+
"name": "setPriceFeed",
|
|
171
|
+
"outputs": [],
|
|
172
|
+
"stateMutability": "nonpayable",
|
|
173
|
+
"type": "function"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"inputs": [
|
|
177
|
+
{
|
|
178
|
+
"internalType": "uint32",
|
|
179
|
+
"name": "_eid",
|
|
180
|
+
"type": "uint32"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"internalType": "uint8[]",
|
|
184
|
+
"name": "_optionTypes",
|
|
185
|
+
"type": "uint8[]"
|
|
186
|
+
}
|
|
187
|
+
],
|
|
188
|
+
"name": "setSupportedOptionTypes",
|
|
189
|
+
"outputs": [],
|
|
190
|
+
"stateMutability": "nonpayable",
|
|
191
|
+
"type": "function"
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"inputs": [
|
|
195
|
+
{
|
|
196
|
+
"internalType": "address",
|
|
197
|
+
"name": "_lib",
|
|
198
|
+
"type": "address"
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"internalType": "address",
|
|
202
|
+
"name": "_to",
|
|
203
|
+
"type": "address"
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"internalType": "uint256",
|
|
207
|
+
"name": "_amount",
|
|
208
|
+
"type": "uint256"
|
|
209
|
+
}
|
|
210
|
+
],
|
|
211
|
+
"name": "withdrawFee",
|
|
212
|
+
"outputs": [],
|
|
213
|
+
"stateMutability": "nonpayable",
|
|
214
|
+
"type": "function"
|
|
215
|
+
}
|
|
216
|
+
],
|
|
217
|
+
"bytecode": "0x",
|
|
218
|
+
"deployedBytecode": "0x",
|
|
219
|
+
"linkReferences": {},
|
|
220
|
+
"deployedLinkReferences": {}
|
|
221
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh-sol-artifact-1",
|
|
3
|
+
"contractName": "SafeCall",
|
|
4
|
+
"sourceName": "contracts/libs/SafeCall.sol",
|
|
5
|
+
"abi": [],
|
|
6
|
+
"bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212204bf143d5dbad1d70e06a3465f4855d820cfd6758b0ae9e1637361d6e46380f2864736f6c63430008160033",
|
|
7
|
+
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212204bf143d5dbad1d70e06a3465f4855d820cfd6758b0ae9e1637361d6e46380f2864736f6c63430008160033",
|
|
8
|
+
"linkReferences": {},
|
|
9
|
+
"deployedLinkReferences": {}
|
|
10
|
+
}
|