@layerzerolabs/lz-evm-sdk-v2 2.0.21 → 2.0.22

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 (28) hide show
  1. package/deployments/joc-testnet/DVN.json +1929 -0
  2. package/deployments/joc-testnet/DVNFeeLib.json +398 -0
  3. package/deployments/joc-testnet/DefaultProxyAdmin.json +258 -0
  4. package/deployments/joc-testnet/EndpointV2.json +3000 -0
  5. package/deployments/joc-testnet/EndpointV2View.json +435 -0
  6. package/deployments/joc-testnet/EndpointV2View_Implementation.json +313 -0
  7. package/deployments/joc-testnet/EndpointV2View_Proxy.json +230 -0
  8. package/deployments/joc-testnet/Executor.json +1532 -0
  9. package/deployments/joc-testnet/ExecutorFeeLib.json +423 -0
  10. package/deployments/joc-testnet/ExecutorProxyAdmin.json +283 -0
  11. package/deployments/joc-testnet/Executor_Implementation.json +1591 -0
  12. package/deployments/joc-testnet/Executor_Proxy.json +365 -0
  13. package/deployments/joc-testnet/LzExecutor.json +757 -0
  14. package/deployments/joc-testnet/LzExecutor_Implementation.json +703 -0
  15. package/deployments/joc-testnet/LzExecutor_Proxy.json +244 -0
  16. package/deployments/joc-testnet/ReceiveUln301.json +1292 -0
  17. package/deployments/joc-testnet/ReceiveUln301View.json +354 -0
  18. package/deployments/joc-testnet/ReceiveUln301View_Implementation.json +231 -0
  19. package/deployments/joc-testnet/ReceiveUln301View_Proxy.json +230 -0
  20. package/deployments/joc-testnet/ReceiveUln302.json +1006 -0
  21. package/deployments/joc-testnet/ReceiveUln302View.json +478 -0
  22. package/deployments/joc-testnet/ReceiveUln302View_Implementation.json +384 -0
  23. package/deployments/joc-testnet/ReceiveUln302View_Proxy.json +230 -0
  24. package/deployments/joc-testnet/SendUln301.json +1569 -0
  25. package/deployments/joc-testnet/SendUln302.json +1527 -0
  26. package/deployments/joc-testnet/Treasury.json +412 -0
  27. package/deployments/joc-testnet/TreasuryFeeHandler.json +125 -0
  28. package/package.json +8 -8
@@ -0,0 +1,283 @@
1
+ {
2
+ "address": "0x073f5b4FdF17BBC16b0980d49f6C56123477bb51",
3
+ "abi": [
4
+ {
5
+ "inputs": [
6
+ {
7
+ "internalType": "address",
8
+ "name": "initialOwner",
9
+ "type": "address"
10
+ }
11
+ ],
12
+ "stateMutability": "nonpayable",
13
+ "type": "constructor"
14
+ },
15
+ {
16
+ "inputs": [],
17
+ "name": "AdminCallFailed",
18
+ "type": "error"
19
+ },
20
+ {
21
+ "inputs": [],
22
+ "name": "ImplementationCallFailed",
23
+ "type": "error"
24
+ },
25
+ {
26
+ "anonymous": false,
27
+ "inputs": [
28
+ {
29
+ "indexed": true,
30
+ "internalType": "address",
31
+ "name": "previousOwner",
32
+ "type": "address"
33
+ },
34
+ {
35
+ "indexed": true,
36
+ "internalType": "address",
37
+ "name": "newOwner",
38
+ "type": "address"
39
+ }
40
+ ],
41
+ "name": "OwnershipTransferred",
42
+ "type": "event"
43
+ },
44
+ {
45
+ "inputs": [
46
+ {
47
+ "internalType": "contract TransparentUpgradeableProxy",
48
+ "name": "proxy",
49
+ "type": "address"
50
+ },
51
+ {
52
+ "internalType": "address",
53
+ "name": "newAdmin",
54
+ "type": "address"
55
+ }
56
+ ],
57
+ "name": "changeProxyAdmin",
58
+ "outputs": [],
59
+ "stateMutability": "nonpayable",
60
+ "type": "function"
61
+ },
62
+ {
63
+ "inputs": [
64
+ {
65
+ "internalType": "contract TransparentUpgradeableProxy",
66
+ "name": "proxy",
67
+ "type": "address"
68
+ }
69
+ ],
70
+ "name": "getProxyAdmin",
71
+ "outputs": [
72
+ {
73
+ "internalType": "address",
74
+ "name": "",
75
+ "type": "address"
76
+ }
77
+ ],
78
+ "stateMutability": "view",
79
+ "type": "function"
80
+ },
81
+ {
82
+ "inputs": [
83
+ {
84
+ "internalType": "contract TransparentUpgradeableProxy",
85
+ "name": "proxy",
86
+ "type": "address"
87
+ }
88
+ ],
89
+ "name": "getProxyImplementation",
90
+ "outputs": [
91
+ {
92
+ "internalType": "address",
93
+ "name": "",
94
+ "type": "address"
95
+ }
96
+ ],
97
+ "stateMutability": "view",
98
+ "type": "function"
99
+ },
100
+ {
101
+ "inputs": [],
102
+ "name": "owner",
103
+ "outputs": [
104
+ {
105
+ "internalType": "address",
106
+ "name": "",
107
+ "type": "address"
108
+ }
109
+ ],
110
+ "stateMutability": "view",
111
+ "type": "function"
112
+ },
113
+ {
114
+ "inputs": [],
115
+ "name": "renounceOwnership",
116
+ "outputs": [],
117
+ "stateMutability": "nonpayable",
118
+ "type": "function"
119
+ },
120
+ {
121
+ "inputs": [
122
+ {
123
+ "internalType": "address",
124
+ "name": "newOwner",
125
+ "type": "address"
126
+ }
127
+ ],
128
+ "name": "transferOwnership",
129
+ "outputs": [],
130
+ "stateMutability": "nonpayable",
131
+ "type": "function"
132
+ },
133
+ {
134
+ "inputs": [
135
+ {
136
+ "internalType": "contract TransparentUpgradeableProxy",
137
+ "name": "proxy",
138
+ "type": "address"
139
+ },
140
+ {
141
+ "internalType": "address",
142
+ "name": "implementation",
143
+ "type": "address"
144
+ }
145
+ ],
146
+ "name": "upgrade",
147
+ "outputs": [],
148
+ "stateMutability": "nonpayable",
149
+ "type": "function"
150
+ },
151
+ {
152
+ "inputs": [
153
+ {
154
+ "internalType": "contract TransparentUpgradeableProxy",
155
+ "name": "proxy",
156
+ "type": "address"
157
+ },
158
+ {
159
+ "internalType": "address",
160
+ "name": "implementation",
161
+ "type": "address"
162
+ },
163
+ {
164
+ "internalType": "bytes",
165
+ "name": "data",
166
+ "type": "bytes"
167
+ }
168
+ ],
169
+ "name": "upgradeAndCall",
170
+ "outputs": [],
171
+ "stateMutability": "payable",
172
+ "type": "function"
173
+ }
174
+ ],
175
+ "transactionHash": "0xc7623af06f6f41cfed5d1d81220dc5d15633262cbd526019c23844b0e5871a68",
176
+ "receipt": {
177
+ "to": null,
178
+ "from": "0xc13b65f7c53Cd6db2EA205a4b574b4a0858720A6",
179
+ "contractAddress": "0x073f5b4FdF17BBC16b0980d49f6C56123477bb51",
180
+ "transactionIndex": 1,
181
+ "gasUsed": "578920",
182
+ "logsBloom": "0x00000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000020000200000000400000000000000000000000000040001000000000000000000000000000000000000030000000000000000000800000000200000000000000002000000400000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000800000000",
183
+ "blockHash": "0x0e180cd6369153c0d83843ec521455797e9a54b893049b4154bb553fe23cf13c",
184
+ "transactionHash": "0xc7623af06f6f41cfed5d1d81220dc5d15633262cbd526019c23844b0e5871a68",
185
+ "logs": [
186
+ {
187
+ "transactionIndex": 1,
188
+ "blockNumber": 2936525,
189
+ "transactionHash": "0xc7623af06f6f41cfed5d1d81220dc5d15633262cbd526019c23844b0e5871a68",
190
+ "address": "0x073f5b4FdF17BBC16b0980d49f6C56123477bb51",
191
+ "topics": [
192
+ "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0",
193
+ "0x0000000000000000000000000000000000000000000000000000000000000000",
194
+ "0x000000000000000000000000c13b65f7c53cd6db2ea205a4b574b4a0858720a6"
195
+ ],
196
+ "data": "0x",
197
+ "logIndex": 0,
198
+ "blockHash": "0x0e180cd6369153c0d83843ec521455797e9a54b893049b4154bb553fe23cf13c"
199
+ },
200
+ {
201
+ "transactionIndex": 1,
202
+ "blockNumber": 2936525,
203
+ "transactionHash": "0xc7623af06f6f41cfed5d1d81220dc5d15633262cbd526019c23844b0e5871a68",
204
+ "address": "0x073f5b4FdF17BBC16b0980d49f6C56123477bb51",
205
+ "topics": [
206
+ "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0",
207
+ "0x000000000000000000000000c13b65f7c53cd6db2ea205a4b574b4a0858720a6",
208
+ "0x00000000000000000000000082d16f76d2fb0c4b76a2cee509c8b349769ed230"
209
+ ],
210
+ "data": "0x",
211
+ "logIndex": 1,
212
+ "blockHash": "0x0e180cd6369153c0d83843ec521455797e9a54b893049b4154bb553fe23cf13c"
213
+ }
214
+ ],
215
+ "blockNumber": 2936525,
216
+ "cumulativeGasUsed": "599920",
217
+ "status": 1,
218
+ "byzantium": true
219
+ },
220
+ "args": [
221
+ "0x82d16f76D2FB0c4B76A2CEe509C8b349769Ed230"
222
+ ],
223
+ "numDeployments": 1,
224
+ "solcInputHash": "c1348614bdca535ead27abf9de3062c9",
225
+ "bytecode": "0x608060405234801561001057600080fd5b506040516109e53803806109e583398101604081905261002f91610097565b61003833610047565b61004181610047565b506100c7565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156100a957600080fd5b81516001600160a01b03811681146100c057600080fd5b9392505050565b61090f806100d66000396000f3fe60806040526004361061007b5760003560e01c80639623609d1161004e5780639623609d1461012b57806399a88ec41461013e578063f2fde38b1461015e578063f3b7dead1461017e57600080fd5b8063204e1c7a14610080578063715018a6146100c95780637eff275e146100e05780638da5cb5b14610100575b600080fd5b34801561008c57600080fd5b506100a061009b3660046106b1565b61019e565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b3480156100d557600080fd5b506100de610282565b005b3480156100ec57600080fd5b506100de6100fb3660046106d5565b610296565b34801561010c57600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff166100a0565b6100de61013936600461073d565b610324565b34801561014a57600080fd5b506100de6101593660046106d5565b6103b9565b34801561016a57600080fd5b506100de6101793660046106b1565b610415565b34801561018a57600080fd5b506100a06101993660046106b1565b6104d1565b60008060008373ffffffffffffffffffffffffffffffffffffffff166040516101ea907f5c60da1b00000000000000000000000000000000000000000000000000000000815260040190565b600060405180830381855afa9150503d8060008114610225576040519150601f19603f3d011682016040523d82523d6000602084013e61022a565b606091505b509150915081610266576040517f6bce18d700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8080602001905181019061027a9190610831565b949350505050565b61028a610599565b610294600061061a565b565b61029e610599565b6040517f8f28397000000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8281166004830152831690638f283970906024015b600060405180830381600087803b15801561030857600080fd5b505af115801561031c573d6000803e3d6000fd5b505050505050565b61032c610599565b6040517f4f1ef28600000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff841690634f1ef286903490610382908690869060040161084e565b6000604051808303818588803b15801561039b57600080fd5b505af11580156103af573d6000803e3d6000fd5b5050505050505050565b6103c1610599565b6040517f3659cfe600000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8281166004830152831690633659cfe6906024016102ee565b61041d610599565b73ffffffffffffffffffffffffffffffffffffffff81166104c5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6104ce8161061a565b50565b60008060008373ffffffffffffffffffffffffffffffffffffffff1660405161051d907ff851a44000000000000000000000000000000000000000000000000000000000815260040190565b600060405180830381855afa9150503d8060008114610558576040519150601f19603f3d011682016040523d82523d6000602084013e61055d565b606091505b509150915081610266576040517f1545a42500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005473ffffffffffffffffffffffffffffffffffffffff163314610294576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104bc565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b73ffffffffffffffffffffffffffffffffffffffff811681146104ce57600080fd5b6000602082840312156106c357600080fd5b81356106ce8161068f565b9392505050565b600080604083850312156106e857600080fd5b82356106f38161068f565b915060208301356107038161068f565b809150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60008060006060848603121561075257600080fd5b833561075d8161068f565b9250602084013561076d8161068f565b9150604084013567ffffffffffffffff8082111561078a57600080fd5b818601915086601f83011261079e57600080fd5b8135818111156107b0576107b061070e565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f011681019083821181831017156107f6576107f661070e565b8160405282815289602084870101111561080f57600080fd5b8260208601602083013760006020848301015280955050505050509250925092565b60006020828403121561084357600080fd5b81516106ce8161068f565b73ffffffffffffffffffffffffffffffffffffffff831681526000602060406020840152835180604085015260005b818110156108995785810183015185820160600152820161087d565b5060006060828601015260607fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011685010192505050939250505056fea264697066735822122013efc139dec61be4ee75f012f2d534c51b7bbe740d0c0d9ab15e8fb77a108d5664736f6c63430008160033",
226
+ "deployedBytecode": "0x60806040526004361061007b5760003560e01c80639623609d1161004e5780639623609d1461012b57806399a88ec41461013e578063f2fde38b1461015e578063f3b7dead1461017e57600080fd5b8063204e1c7a14610080578063715018a6146100c95780637eff275e146100e05780638da5cb5b14610100575b600080fd5b34801561008c57600080fd5b506100a061009b3660046106b1565b61019e565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b3480156100d557600080fd5b506100de610282565b005b3480156100ec57600080fd5b506100de6100fb3660046106d5565b610296565b34801561010c57600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff166100a0565b6100de61013936600461073d565b610324565b34801561014a57600080fd5b506100de6101593660046106d5565b6103b9565b34801561016a57600080fd5b506100de6101793660046106b1565b610415565b34801561018a57600080fd5b506100a06101993660046106b1565b6104d1565b60008060008373ffffffffffffffffffffffffffffffffffffffff166040516101ea907f5c60da1b00000000000000000000000000000000000000000000000000000000815260040190565b600060405180830381855afa9150503d8060008114610225576040519150601f19603f3d011682016040523d82523d6000602084013e61022a565b606091505b509150915081610266576040517f6bce18d700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8080602001905181019061027a9190610831565b949350505050565b61028a610599565b610294600061061a565b565b61029e610599565b6040517f8f28397000000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8281166004830152831690638f283970906024015b600060405180830381600087803b15801561030857600080fd5b505af115801561031c573d6000803e3d6000fd5b505050505050565b61032c610599565b6040517f4f1ef28600000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff841690634f1ef286903490610382908690869060040161084e565b6000604051808303818588803b15801561039b57600080fd5b505af11580156103af573d6000803e3d6000fd5b5050505050505050565b6103c1610599565b6040517f3659cfe600000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8281166004830152831690633659cfe6906024016102ee565b61041d610599565b73ffffffffffffffffffffffffffffffffffffffff81166104c5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6104ce8161061a565b50565b60008060008373ffffffffffffffffffffffffffffffffffffffff1660405161051d907ff851a44000000000000000000000000000000000000000000000000000000000815260040190565b600060405180830381855afa9150503d8060008114610558576040519150601f19603f3d011682016040523d82523d6000602084013e61055d565b606091505b509150915081610266576040517f1545a42500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005473ffffffffffffffffffffffffffffffffffffffff163314610294576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104bc565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b73ffffffffffffffffffffffffffffffffffffffff811681146104ce57600080fd5b6000602082840312156106c357600080fd5b81356106ce8161068f565b9392505050565b600080604083850312156106e857600080fd5b82356106f38161068f565b915060208301356107038161068f565b809150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60008060006060848603121561075257600080fd5b833561075d8161068f565b9250602084013561076d8161068f565b9150604084013567ffffffffffffffff8082111561078a57600080fd5b818601915086601f83011261079e57600080fd5b8135818111156107b0576107b061070e565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f011681019083821181831017156107f6576107f661070e565b8160405282815289602084870101111561080f57600080fd5b8260208601602083013760006020848301015280955050505050509250925092565b60006020828403121561084357600080fd5b81516106ce8161068f565b73ffffffffffffffffffffffffffffffffffffffff831681526000602060406020840152835180604085015260005b818110156108995785810183015185820160600152820161087d565b5060006060828601015260607fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011685010192505050939250505056fea264697066735822122013efc139dec61be4ee75f012f2d534c51b7bbe740d0c0d9ab15e8fb77a108d5664736f6c63430008160033",
227
+ "devdoc": {
228
+ "author": "OpenZeppelin. Modified from https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v4.4/contracts/proxy/transparent/ProxyAdmin.sol to support custom errors and `initialOwner` constructor parameter.",
229
+ "details": "This is an auxiliary contract meant to be assigned as the admin of a {TransparentUpgradeableProxy}. For an explanation of why you would want to use this see the documentation for {TransparentUpgradeableProxy}.",
230
+ "kind": "dev",
231
+ "methods": {
232
+ "changeProxyAdmin(address,address)": {
233
+ "details": "Changes the admin of `proxy` to `newAdmin`. Requirements: - This contract must be the current admin of `proxy`."
234
+ },
235
+ "getProxyAdmin(address)": {
236
+ "details": "Returns the current admin of `proxy`. Requirements: - This contract must be the admin of `proxy`."
237
+ },
238
+ "getProxyImplementation(address)": {
239
+ "details": "Returns the current implementation of `proxy`. Requirements: - This contract must be the admin of `proxy`."
240
+ },
241
+ "owner()": {
242
+ "details": "Returns the address of the current owner."
243
+ },
244
+ "renounceOwnership()": {
245
+ "details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby disabling any functionality that is only available to the owner."
246
+ },
247
+ "transferOwnership(address)": {
248
+ "details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
249
+ },
250
+ "upgrade(address,address)": {
251
+ "details": "Upgrades `proxy` to `implementation`. See {TransparentUpgradeableProxy-upgradeTo}. Requirements: - This contract must be the admin of `proxy`."
252
+ },
253
+ "upgradeAndCall(address,address,bytes)": {
254
+ "details": "Upgrades `proxy` to `implementation` and calls a function on the new implementation. See {TransparentUpgradeableProxy-upgradeToAndCall}. Requirements: - This contract must be the admin of `proxy`."
255
+ }
256
+ },
257
+ "version": 1
258
+ },
259
+ "userdoc": {
260
+ "kind": "user",
261
+ "methods": {},
262
+ "version": 1
263
+ },
264
+ "storageLayout": {
265
+ "storage": [
266
+ {
267
+ "astId": 7783,
268
+ "contract": "contracts/upgradeable/proxy/ProxyAdmin.sol:ProxyAdmin",
269
+ "label": "_owner",
270
+ "offset": 0,
271
+ "slot": "0",
272
+ "type": "t_address"
273
+ }
274
+ ],
275
+ "types": {
276
+ "t_address": {
277
+ "encoding": "inplace",
278
+ "label": "address",
279
+ "numberOfBytes": "20"
280
+ }
281
+ }
282
+ }
283
+ }