@layerzerolabs/lz-evm-protocol-v2 2.0.13 → 2.0.15
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/EndpointV2.sol/EndpointV2.json +82 -92
- package/artifacts/contracts/EndpointV2Alt.sol/EndpointV2Alt.json +84 -94
- package/artifacts/contracts/EndpointV2View.sol/EndpointV2View.json +209 -0
- package/artifacts/contracts/EndpointV2ViewUpgradeable.sol/EndpointV2ViewUpgradeable.json +196 -0
- package/artifacts/contracts/MessageLibManager.sol/MessageLibManager.json +12 -12
- package/artifacts/contracts/MessagingChannel.sol/MessagingChannel.json +2 -2
- package/artifacts/contracts/MessagingComposer.sol/MessagingComposer.json +2 -2
- package/artifacts/contracts/interfaces/ILayerZeroEndpointV2.sol/ILayerZeroEndpointV2.json +99 -51
- package/artifacts/contracts/interfaces/IMessageLibManager.sol/IMessageLibManager.json +29 -0
- package/artifacts/contracts/interfaces/IMessagingChannel.sol/IMessagingChannel.json +29 -0
- package/artifacts/contracts/libs/AddressCast.sol/AddressCast.json +14 -3
- package/artifacts/contracts/libs/Errors.sol/Errors.json +30 -45
- package/artifacts/contracts/libs/GUID.sol/GUID.json +2 -2
- package/artifacts/contracts/libs/Transfer.sol/Transfer.json +8 -8
- package/artifacts/contracts/messagelib/BlockedMessageLib.sol/BlockedMessageLib.json +3 -3
- package/artifacts/contracts/messagelib/SimpleMessageLib.sol/SimpleMessageLib.json +10 -10
- package/artifacts/contracts/messagelib/libs/ExecutorOptions.sol/ExecutorOptions.json +5 -5
- package/artifacts/contracts/messagelib/libs/PacketV1Codec.sol/PacketV1Codec.json +2 -2
- package/contracts/EndpointV2.sol +13 -49
- package/contracts/EndpointV2Alt.sol +4 -2
- package/contracts/EndpointV2View.sol +12 -0
- package/contracts/EndpointV2ViewUpgradeable.sol +86 -0
- package/contracts/MessageLibManager.sol +17 -17
- package/contracts/MessagingChannel.sol +8 -8
- package/contracts/MessagingComposer.sol +2 -2
- package/contracts/MessagingContext.sol +1 -1
- package/contracts/interfaces/ILayerZeroEndpointV2.sol +2 -13
- package/contracts/interfaces/ILayerZeroReceiver.sol +0 -1
- package/contracts/interfaces/IMessageLibManager.sol +2 -0
- package/contracts/interfaces/IMessagingChannel.sol +2 -0
- package/contracts/libs/AddressCast.sol +6 -5
- package/contracts/libs/Errors.sol +28 -31
- package/contracts/libs/Transfer.sol +5 -5
- package/contracts/messagelib/BlockedMessageLib.sol +1 -1
- package/contracts/messagelib/SimpleMessageLib.sol +1 -1
- package/contracts/messagelib/libs/ExecutorOptions.sol +6 -6
- package/package.json +3 -1
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh-sol-artifact-1",
|
|
3
|
+
"contractName": "EndpointV2View",
|
|
4
|
+
"sourceName": "contracts/EndpointV2View.sol",
|
|
5
|
+
"abi": [
|
|
6
|
+
{
|
|
7
|
+
"anonymous": false,
|
|
8
|
+
"inputs": [
|
|
9
|
+
{
|
|
10
|
+
"indexed": false,
|
|
11
|
+
"internalType": "uint8",
|
|
12
|
+
"name": "version",
|
|
13
|
+
"type": "uint8"
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"name": "Initialized",
|
|
17
|
+
"type": "event"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"inputs": [],
|
|
21
|
+
"name": "EMPTY_PAYLOAD_HASH",
|
|
22
|
+
"outputs": [
|
|
23
|
+
{
|
|
24
|
+
"internalType": "bytes32",
|
|
25
|
+
"name": "",
|
|
26
|
+
"type": "bytes32"
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"stateMutability": "view",
|
|
30
|
+
"type": "function"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"inputs": [],
|
|
34
|
+
"name": "NIL_PAYLOAD_HASH",
|
|
35
|
+
"outputs": [
|
|
36
|
+
{
|
|
37
|
+
"internalType": "bytes32",
|
|
38
|
+
"name": "",
|
|
39
|
+
"type": "bytes32"
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"stateMutability": "view",
|
|
43
|
+
"type": "function"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"inputs": [],
|
|
47
|
+
"name": "endpoint",
|
|
48
|
+
"outputs": [
|
|
49
|
+
{
|
|
50
|
+
"internalType": "contract ILayerZeroEndpointV2",
|
|
51
|
+
"name": "",
|
|
52
|
+
"type": "address"
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
"stateMutability": "view",
|
|
56
|
+
"type": "function"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"inputs": [
|
|
60
|
+
{
|
|
61
|
+
"components": [
|
|
62
|
+
{
|
|
63
|
+
"internalType": "uint32",
|
|
64
|
+
"name": "srcEid",
|
|
65
|
+
"type": "uint32"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"internalType": "bytes32",
|
|
69
|
+
"name": "sender",
|
|
70
|
+
"type": "bytes32"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"internalType": "uint64",
|
|
74
|
+
"name": "nonce",
|
|
75
|
+
"type": "uint64"
|
|
76
|
+
}
|
|
77
|
+
],
|
|
78
|
+
"internalType": "struct Origin",
|
|
79
|
+
"name": "_origin",
|
|
80
|
+
"type": "tuple"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"internalType": "address",
|
|
84
|
+
"name": "_receiver",
|
|
85
|
+
"type": "address"
|
|
86
|
+
}
|
|
87
|
+
],
|
|
88
|
+
"name": "executable",
|
|
89
|
+
"outputs": [
|
|
90
|
+
{
|
|
91
|
+
"internalType": "enum ExecutionState",
|
|
92
|
+
"name": "",
|
|
93
|
+
"type": "uint8"
|
|
94
|
+
}
|
|
95
|
+
],
|
|
96
|
+
"stateMutability": "view",
|
|
97
|
+
"type": "function"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"inputs": [
|
|
101
|
+
{
|
|
102
|
+
"components": [
|
|
103
|
+
{
|
|
104
|
+
"internalType": "uint32",
|
|
105
|
+
"name": "srcEid",
|
|
106
|
+
"type": "uint32"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"internalType": "bytes32",
|
|
110
|
+
"name": "sender",
|
|
111
|
+
"type": "bytes32"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"internalType": "uint64",
|
|
115
|
+
"name": "nonce",
|
|
116
|
+
"type": "uint64"
|
|
117
|
+
}
|
|
118
|
+
],
|
|
119
|
+
"internalType": "struct Origin",
|
|
120
|
+
"name": "_origin",
|
|
121
|
+
"type": "tuple"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"internalType": "address",
|
|
125
|
+
"name": "_receiver",
|
|
126
|
+
"type": "address"
|
|
127
|
+
}
|
|
128
|
+
],
|
|
129
|
+
"name": "initializable",
|
|
130
|
+
"outputs": [
|
|
131
|
+
{
|
|
132
|
+
"internalType": "bool",
|
|
133
|
+
"name": "",
|
|
134
|
+
"type": "bool"
|
|
135
|
+
}
|
|
136
|
+
],
|
|
137
|
+
"stateMutability": "view",
|
|
138
|
+
"type": "function"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"inputs": [
|
|
142
|
+
{
|
|
143
|
+
"internalType": "address",
|
|
144
|
+
"name": "_endpoint",
|
|
145
|
+
"type": "address"
|
|
146
|
+
}
|
|
147
|
+
],
|
|
148
|
+
"name": "initialize",
|
|
149
|
+
"outputs": [],
|
|
150
|
+
"stateMutability": "nonpayable",
|
|
151
|
+
"type": "function"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"inputs": [
|
|
155
|
+
{
|
|
156
|
+
"components": [
|
|
157
|
+
{
|
|
158
|
+
"internalType": "uint32",
|
|
159
|
+
"name": "srcEid",
|
|
160
|
+
"type": "uint32"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"internalType": "bytes32",
|
|
164
|
+
"name": "sender",
|
|
165
|
+
"type": "bytes32"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"internalType": "uint64",
|
|
169
|
+
"name": "nonce",
|
|
170
|
+
"type": "uint64"
|
|
171
|
+
}
|
|
172
|
+
],
|
|
173
|
+
"internalType": "struct Origin",
|
|
174
|
+
"name": "_origin",
|
|
175
|
+
"type": "tuple"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"internalType": "address",
|
|
179
|
+
"name": "_receiver",
|
|
180
|
+
"type": "address"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"internalType": "address",
|
|
184
|
+
"name": "_receiveLib",
|
|
185
|
+
"type": "address"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"internalType": "bytes32",
|
|
189
|
+
"name": "_payloadHash",
|
|
190
|
+
"type": "bytes32"
|
|
191
|
+
}
|
|
192
|
+
],
|
|
193
|
+
"name": "verifiable",
|
|
194
|
+
"outputs": [
|
|
195
|
+
{
|
|
196
|
+
"internalType": "bool",
|
|
197
|
+
"name": "",
|
|
198
|
+
"type": "bool"
|
|
199
|
+
}
|
|
200
|
+
],
|
|
201
|
+
"stateMutability": "view",
|
|
202
|
+
"type": "function"
|
|
203
|
+
}
|
|
204
|
+
],
|
|
205
|
+
"bytecode": "0x608060405234801561001057600080fd5b50610cdb806100206000396000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c8063861e1ca51161005b578063861e1ca514610127578063c4d66de81461014a578063cb5026b91461015f578063e1e3a7df1461016757600080fd5b80632baf0be7146100825780634b4b2efb146100bc5780635e280f11146100dc575b600080fd5b6100a97fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81565b6040519081526020015b60405180910390f35b6100cf6100ca366004610b71565b61017a565b6040516100b39190610ba5565b6000546101029062010000900473ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016100b3565b61013a610135366004610b71565b610459565b60405190151581526020016100b3565b61015d610158366004610be6565b610527565b005b6100a9600081565b61013a610175366004610c01565b610766565b600080548351602085015160408087015190517fc9fc7bcd00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff878116600483015263ffffffff9094166024820152604481019290925267ffffffffffffffff16606482015283926201000090049091169063c9fc7bcd90608401602060405180830381865afa158015610223573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102479190610c4d565b9050801580156103235750600054845160208601516040517f5b17bb7000000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff878116600483015263ffffffff90931660248201526044810191909152620100009092041690635b17bb7090606401602060405180830381865afa1580156102e3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103079190610c66565b67ffffffffffffffff16846040015167ffffffffffffffff1611155b15610332576003915050610453565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff811480159061042e5750600054845160208601516040517fa0dd43fc00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff878116600483015263ffffffff9093166024820152604481019190915262010000909204169063a0dd43fc90606401602060405180830381865afa1580156103ee573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104129190610c66565b67ffffffffffffffff16846040015167ffffffffffffffff1611155b1561043d576002915050610453565b801561044d576001915050610453565b60009150505b92915050565b60008054604080517f861e1ca5000000000000000000000000000000000000000000000000000000008152855163ffffffff166004820152602086015160248201529085015167ffffffffffffffff16604482015273ffffffffffffffffffffffffffffffffffffffff8481166064830152620100009092049091169063861e1ca590608401602060405180830381865afa1580156104fc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105209190610c83565b9392505050565b60006105517fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035490565b905073ffffffffffffffffffffffffffffffffffffffff81166105aa5773ffffffffffffffffffffffffffffffffffffffff7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103556105cc565b3373ffffffffffffffffffffffffffffffffffffffff8216146105cc57600080fd5b600054610100900460ff16158080156105ec5750600054600160ff909116105b806106065750303b158015610606575060005460ff166001145b610697576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a656400000000000000000000000000000000000060648201526084015b60405180910390fd5b600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905580156106f557600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff166101001790555b6106fe8361090e565b801561076157600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b505050565b6000805485516040517f9d7f977500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff878116600483015263ffffffff90921660248201528582166044820152620100009092041690639d7f977590606401602060405180830381865afa1580156107f3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108179190610c83565b61082357506000610906565b600054604080517fc9a54a99000000000000000000000000000000000000000000000000000000008152875163ffffffff166004820152602088015160248201529087015167ffffffffffffffff16604482015273ffffffffffffffffffffffffffffffffffffffff8681166064830152620100009092049091169063c9a54a9990608401602060405180830381865afa1580156108c5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108e99190610c83565b6108f557506000610906565b8161090257506000610906565b5060015b949350505050565b600054610100900460ff166109a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e67000000000000000000000000000000000000000000606482015260840161068e565b6109ae816109b1565b50565b600054610100900460ff16610a48576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e67000000000000000000000000000000000000000000606482015260840161068e565b6000805473ffffffffffffffffffffffffffffffffffffffff90921662010000027fffffffffffffffffffff0000000000000000000000000000000000000000ffff909216919091179055565b67ffffffffffffffff811681146109ae57600080fd5b600060608284031215610abd57600080fd5b6040516060810181811067ffffffffffffffff82111715610b07577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604052905080823563ffffffff81168114610b2157600080fd5b8152602083810135908201526040830135610b3b81610a95565b6040919091015292915050565b803573ffffffffffffffffffffffffffffffffffffffff81168114610b6c57600080fd5b919050565b60008060808385031215610b8457600080fd5b610b8e8484610aab565b9150610b9c60608401610b48565b90509250929050565b6020810160048310610be0577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b91905290565b600060208284031215610bf857600080fd5b61052082610b48565b60008060008060c08587031215610c1757600080fd5b610c218686610aab565b9350610c2f60608601610b48565b9250610c3d60808601610b48565b9396929550929360a00135925050565b600060208284031215610c5f57600080fd5b5051919050565b600060208284031215610c7857600080fd5b815161052081610a95565b600060208284031215610c9557600080fd5b8151801515811461052057600080fdfea2646970667358221220b62d0d1dae5a14f73111efcba09148972e42fe0908e64a3e1efb8591a4a2179564736f6c63430008160033",
|
|
206
|
+
"deployedBytecode": "0x608060405234801561001057600080fd5b506004361061007d5760003560e01c8063861e1ca51161005b578063861e1ca514610127578063c4d66de81461014a578063cb5026b91461015f578063e1e3a7df1461016757600080fd5b80632baf0be7146100825780634b4b2efb146100bc5780635e280f11146100dc575b600080fd5b6100a97fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81565b6040519081526020015b60405180910390f35b6100cf6100ca366004610b71565b61017a565b6040516100b39190610ba5565b6000546101029062010000900473ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016100b3565b61013a610135366004610b71565b610459565b60405190151581526020016100b3565b61015d610158366004610be6565b610527565b005b6100a9600081565b61013a610175366004610c01565b610766565b600080548351602085015160408087015190517fc9fc7bcd00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff878116600483015263ffffffff9094166024820152604481019290925267ffffffffffffffff16606482015283926201000090049091169063c9fc7bcd90608401602060405180830381865afa158015610223573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102479190610c4d565b9050801580156103235750600054845160208601516040517f5b17bb7000000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff878116600483015263ffffffff90931660248201526044810191909152620100009092041690635b17bb7090606401602060405180830381865afa1580156102e3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103079190610c66565b67ffffffffffffffff16846040015167ffffffffffffffff1611155b15610332576003915050610453565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff811480159061042e5750600054845160208601516040517fa0dd43fc00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff878116600483015263ffffffff9093166024820152604481019190915262010000909204169063a0dd43fc90606401602060405180830381865afa1580156103ee573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104129190610c66565b67ffffffffffffffff16846040015167ffffffffffffffff1611155b1561043d576002915050610453565b801561044d576001915050610453565b60009150505b92915050565b60008054604080517f861e1ca5000000000000000000000000000000000000000000000000000000008152855163ffffffff166004820152602086015160248201529085015167ffffffffffffffff16604482015273ffffffffffffffffffffffffffffffffffffffff8481166064830152620100009092049091169063861e1ca590608401602060405180830381865afa1580156104fc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105209190610c83565b9392505050565b60006105517fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035490565b905073ffffffffffffffffffffffffffffffffffffffff81166105aa5773ffffffffffffffffffffffffffffffffffffffff7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103556105cc565b3373ffffffffffffffffffffffffffffffffffffffff8216146105cc57600080fd5b600054610100900460ff16158080156105ec5750600054600160ff909116105b806106065750303b158015610606575060005460ff166001145b610697576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a656400000000000000000000000000000000000060648201526084015b60405180910390fd5b600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905580156106f557600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff166101001790555b6106fe8361090e565b801561076157600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b505050565b6000805485516040517f9d7f977500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff878116600483015263ffffffff90921660248201528582166044820152620100009092041690639d7f977590606401602060405180830381865afa1580156107f3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108179190610c83565b61082357506000610906565b600054604080517fc9a54a99000000000000000000000000000000000000000000000000000000008152875163ffffffff166004820152602088015160248201529087015167ffffffffffffffff16604482015273ffffffffffffffffffffffffffffffffffffffff8681166064830152620100009092049091169063c9a54a9990608401602060405180830381865afa1580156108c5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108e99190610c83565b6108f557506000610906565b8161090257506000610906565b5060015b949350505050565b600054610100900460ff166109a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e67000000000000000000000000000000000000000000606482015260840161068e565b6109ae816109b1565b50565b600054610100900460ff16610a48576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e67000000000000000000000000000000000000000000606482015260840161068e565b6000805473ffffffffffffffffffffffffffffffffffffffff90921662010000027fffffffffffffffffffff0000000000000000000000000000000000000000ffff909216919091179055565b67ffffffffffffffff811681146109ae57600080fd5b600060608284031215610abd57600080fd5b6040516060810181811067ffffffffffffffff82111715610b07577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604052905080823563ffffffff81168114610b2157600080fd5b8152602083810135908201526040830135610b3b81610a95565b6040919091015292915050565b803573ffffffffffffffffffffffffffffffffffffffff81168114610b6c57600080fd5b919050565b60008060808385031215610b8457600080fd5b610b8e8484610aab565b9150610b9c60608401610b48565b90509250929050565b6020810160048310610be0577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b91905290565b600060208284031215610bf857600080fd5b61052082610b48565b60008060008060c08587031215610c1757600080fd5b610c218686610aab565b9350610c2f60608601610b48565b9250610c3d60808601610b48565b9396929550929360a00135925050565b600060208284031215610c5f57600080fd5b5051919050565b600060208284031215610c7857600080fd5b815161052081610a95565b600060208284031215610c9557600080fd5b8151801515811461052057600080fdfea2646970667358221220b62d0d1dae5a14f73111efcba09148972e42fe0908e64a3e1efb8591a4a2179564736f6c63430008160033",
|
|
207
|
+
"linkReferences": {},
|
|
208
|
+
"deployedLinkReferences": {}
|
|
209
|
+
}
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh-sol-artifact-1",
|
|
3
|
+
"contractName": "EndpointV2ViewUpgradeable",
|
|
4
|
+
"sourceName": "contracts/EndpointV2ViewUpgradeable.sol",
|
|
5
|
+
"abi": [
|
|
6
|
+
{
|
|
7
|
+
"anonymous": false,
|
|
8
|
+
"inputs": [
|
|
9
|
+
{
|
|
10
|
+
"indexed": false,
|
|
11
|
+
"internalType": "uint8",
|
|
12
|
+
"name": "version",
|
|
13
|
+
"type": "uint8"
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"name": "Initialized",
|
|
17
|
+
"type": "event"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"inputs": [],
|
|
21
|
+
"name": "EMPTY_PAYLOAD_HASH",
|
|
22
|
+
"outputs": [
|
|
23
|
+
{
|
|
24
|
+
"internalType": "bytes32",
|
|
25
|
+
"name": "",
|
|
26
|
+
"type": "bytes32"
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"stateMutability": "view",
|
|
30
|
+
"type": "function"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"inputs": [],
|
|
34
|
+
"name": "NIL_PAYLOAD_HASH",
|
|
35
|
+
"outputs": [
|
|
36
|
+
{
|
|
37
|
+
"internalType": "bytes32",
|
|
38
|
+
"name": "",
|
|
39
|
+
"type": "bytes32"
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"stateMutability": "view",
|
|
43
|
+
"type": "function"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"inputs": [],
|
|
47
|
+
"name": "endpoint",
|
|
48
|
+
"outputs": [
|
|
49
|
+
{
|
|
50
|
+
"internalType": "contract ILayerZeroEndpointV2",
|
|
51
|
+
"name": "",
|
|
52
|
+
"type": "address"
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
"stateMutability": "view",
|
|
56
|
+
"type": "function"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"inputs": [
|
|
60
|
+
{
|
|
61
|
+
"components": [
|
|
62
|
+
{
|
|
63
|
+
"internalType": "uint32",
|
|
64
|
+
"name": "srcEid",
|
|
65
|
+
"type": "uint32"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"internalType": "bytes32",
|
|
69
|
+
"name": "sender",
|
|
70
|
+
"type": "bytes32"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"internalType": "uint64",
|
|
74
|
+
"name": "nonce",
|
|
75
|
+
"type": "uint64"
|
|
76
|
+
}
|
|
77
|
+
],
|
|
78
|
+
"internalType": "struct Origin",
|
|
79
|
+
"name": "_origin",
|
|
80
|
+
"type": "tuple"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"internalType": "address",
|
|
84
|
+
"name": "_receiver",
|
|
85
|
+
"type": "address"
|
|
86
|
+
}
|
|
87
|
+
],
|
|
88
|
+
"name": "executable",
|
|
89
|
+
"outputs": [
|
|
90
|
+
{
|
|
91
|
+
"internalType": "enum ExecutionState",
|
|
92
|
+
"name": "",
|
|
93
|
+
"type": "uint8"
|
|
94
|
+
}
|
|
95
|
+
],
|
|
96
|
+
"stateMutability": "view",
|
|
97
|
+
"type": "function"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"inputs": [
|
|
101
|
+
{
|
|
102
|
+
"components": [
|
|
103
|
+
{
|
|
104
|
+
"internalType": "uint32",
|
|
105
|
+
"name": "srcEid",
|
|
106
|
+
"type": "uint32"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"internalType": "bytes32",
|
|
110
|
+
"name": "sender",
|
|
111
|
+
"type": "bytes32"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"internalType": "uint64",
|
|
115
|
+
"name": "nonce",
|
|
116
|
+
"type": "uint64"
|
|
117
|
+
}
|
|
118
|
+
],
|
|
119
|
+
"internalType": "struct Origin",
|
|
120
|
+
"name": "_origin",
|
|
121
|
+
"type": "tuple"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"internalType": "address",
|
|
125
|
+
"name": "_receiver",
|
|
126
|
+
"type": "address"
|
|
127
|
+
}
|
|
128
|
+
],
|
|
129
|
+
"name": "initializable",
|
|
130
|
+
"outputs": [
|
|
131
|
+
{
|
|
132
|
+
"internalType": "bool",
|
|
133
|
+
"name": "",
|
|
134
|
+
"type": "bool"
|
|
135
|
+
}
|
|
136
|
+
],
|
|
137
|
+
"stateMutability": "view",
|
|
138
|
+
"type": "function"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"inputs": [
|
|
142
|
+
{
|
|
143
|
+
"components": [
|
|
144
|
+
{
|
|
145
|
+
"internalType": "uint32",
|
|
146
|
+
"name": "srcEid",
|
|
147
|
+
"type": "uint32"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"internalType": "bytes32",
|
|
151
|
+
"name": "sender",
|
|
152
|
+
"type": "bytes32"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"internalType": "uint64",
|
|
156
|
+
"name": "nonce",
|
|
157
|
+
"type": "uint64"
|
|
158
|
+
}
|
|
159
|
+
],
|
|
160
|
+
"internalType": "struct Origin",
|
|
161
|
+
"name": "_origin",
|
|
162
|
+
"type": "tuple"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"internalType": "address",
|
|
166
|
+
"name": "_receiver",
|
|
167
|
+
"type": "address"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"internalType": "address",
|
|
171
|
+
"name": "_receiveLib",
|
|
172
|
+
"type": "address"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"internalType": "bytes32",
|
|
176
|
+
"name": "_payloadHash",
|
|
177
|
+
"type": "bytes32"
|
|
178
|
+
}
|
|
179
|
+
],
|
|
180
|
+
"name": "verifiable",
|
|
181
|
+
"outputs": [
|
|
182
|
+
{
|
|
183
|
+
"internalType": "bool",
|
|
184
|
+
"name": "",
|
|
185
|
+
"type": "bool"
|
|
186
|
+
}
|
|
187
|
+
],
|
|
188
|
+
"stateMutability": "view",
|
|
189
|
+
"type": "function"
|
|
190
|
+
}
|
|
191
|
+
],
|
|
192
|
+
"bytecode": "0x608060405234801561001057600080fd5b506108dd806100206000396000f3fe608060405234801561001057600080fd5b50600436106100725760003560e01c8063861e1ca511610050578063861e1ca51461011c578063cb5026b91461013f578063e1e3a7df1461014757600080fd5b80632baf0be7146100775780634b4b2efb146100b15780635e280f11146100d1575b600080fd5b61009e7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81565b6040519081526020015b60405180910390f35b6100c46100bf36600461078e565b61015a565b6040516100a891906107c2565b6000546100f79062010000900473ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016100a8565b61012f61012a36600461078e565b610439565b60405190151581526020016100a8565b61009e600081565b61012f610155366004610803565b610507565b600080548351602085015160408087015190517fc9fc7bcd00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff878116600483015263ffffffff9094166024820152604481019290925267ffffffffffffffff16606482015283926201000090049091169063c9fc7bcd90608401602060405180830381865afa158015610203573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610227919061084f565b9050801580156103035750600054845160208601516040517f5b17bb7000000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff878116600483015263ffffffff90931660248201526044810191909152620100009092041690635b17bb7090606401602060405180830381865afa1580156102c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102e79190610868565b67ffffffffffffffff16846040015167ffffffffffffffff1611155b15610312576003915050610433565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff811480159061040e5750600054845160208601516040517fa0dd43fc00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff878116600483015263ffffffff9093166024820152604481019190915262010000909204169063a0dd43fc90606401602060405180830381865afa1580156103ce573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103f29190610868565b67ffffffffffffffff16846040015167ffffffffffffffff1611155b1561041d576002915050610433565b801561042d576001915050610433565b60009150505b92915050565b60008054604080517f861e1ca5000000000000000000000000000000000000000000000000000000008152855163ffffffff166004820152602086015160248201529085015167ffffffffffffffff16604482015273ffffffffffffffffffffffffffffffffffffffff8481166064830152620100009092049091169063861e1ca590608401602060405180830381865afa1580156104dc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105009190610885565b9392505050565b6000805485516040517f9d7f977500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff878116600483015263ffffffff90921660248201528582166044820152620100009092041690639d7f977590606401602060405180830381865afa158015610594573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105b89190610885565b6105c4575060006106a7565b600054604080517fc9a54a99000000000000000000000000000000000000000000000000000000008152875163ffffffff166004820152602088015160248201529087015167ffffffffffffffff16604482015273ffffffffffffffffffffffffffffffffffffffff8681166064830152620100009092049091169063c9a54a9990608401602060405180830381865afa158015610666573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061068a9190610885565b610696575060006106a7565b816106a3575060006106a7565b5060015b949350505050565b67ffffffffffffffff811681146106c557600080fd5b50565b6000606082840312156106da57600080fd5b6040516060810181811067ffffffffffffffff82111715610724577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604052905080823563ffffffff8116811461073e57600080fd5b8152602083810135908201526040830135610758816106af565b6040919091015292915050565b803573ffffffffffffffffffffffffffffffffffffffff8116811461078957600080fd5b919050565b600080608083850312156107a157600080fd5b6107ab84846106c8565b91506107b960608401610765565b90509250929050565b60208101600483106107fd577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b91905290565b60008060008060c0858703121561081957600080fd5b61082386866106c8565b935061083160608601610765565b925061083f60808601610765565b9396929550929360a00135925050565b60006020828403121561086157600080fd5b5051919050565b60006020828403121561087a57600080fd5b8151610500816106af565b60006020828403121561089757600080fd5b8151801515811461050057600080fdfea2646970667358221220896587171ebfb95d903a9cc4c3f359e0c8558c3f200ea6d62bacefe960d891bf64736f6c63430008160033",
|
|
193
|
+
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100725760003560e01c8063861e1ca511610050578063861e1ca51461011c578063cb5026b91461013f578063e1e3a7df1461014757600080fd5b80632baf0be7146100775780634b4b2efb146100b15780635e280f11146100d1575b600080fd5b61009e7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81565b6040519081526020015b60405180910390f35b6100c46100bf36600461078e565b61015a565b6040516100a891906107c2565b6000546100f79062010000900473ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016100a8565b61012f61012a36600461078e565b610439565b60405190151581526020016100a8565b61009e600081565b61012f610155366004610803565b610507565b600080548351602085015160408087015190517fc9fc7bcd00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff878116600483015263ffffffff9094166024820152604481019290925267ffffffffffffffff16606482015283926201000090049091169063c9fc7bcd90608401602060405180830381865afa158015610203573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610227919061084f565b9050801580156103035750600054845160208601516040517f5b17bb7000000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff878116600483015263ffffffff90931660248201526044810191909152620100009092041690635b17bb7090606401602060405180830381865afa1580156102c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102e79190610868565b67ffffffffffffffff16846040015167ffffffffffffffff1611155b15610312576003915050610433565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff811480159061040e5750600054845160208601516040517fa0dd43fc00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff878116600483015263ffffffff9093166024820152604481019190915262010000909204169063a0dd43fc90606401602060405180830381865afa1580156103ce573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103f29190610868565b67ffffffffffffffff16846040015167ffffffffffffffff1611155b1561041d576002915050610433565b801561042d576001915050610433565b60009150505b92915050565b60008054604080517f861e1ca5000000000000000000000000000000000000000000000000000000008152855163ffffffff166004820152602086015160248201529085015167ffffffffffffffff16604482015273ffffffffffffffffffffffffffffffffffffffff8481166064830152620100009092049091169063861e1ca590608401602060405180830381865afa1580156104dc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105009190610885565b9392505050565b6000805485516040517f9d7f977500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff878116600483015263ffffffff90921660248201528582166044820152620100009092041690639d7f977590606401602060405180830381865afa158015610594573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105b89190610885565b6105c4575060006106a7565b600054604080517fc9a54a99000000000000000000000000000000000000000000000000000000008152875163ffffffff166004820152602088015160248201529087015167ffffffffffffffff16604482015273ffffffffffffffffffffffffffffffffffffffff8681166064830152620100009092049091169063c9a54a9990608401602060405180830381865afa158015610666573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061068a9190610885565b610696575060006106a7565b816106a3575060006106a7565b5060015b949350505050565b67ffffffffffffffff811681146106c557600080fd5b50565b6000606082840312156106da57600080fd5b6040516060810181811067ffffffffffffffff82111715610724577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604052905080823563ffffffff8116811461073e57600080fd5b8152602083810135908201526040830135610758816106af565b6040919091015292915050565b803573ffffffffffffffffffffffffffffffffffffffff8116811461078957600080fd5b919050565b600080608083850312156107a157600080fd5b6107ab84846106c8565b91506107b960608401610765565b90509250929050565b60208101600483106107fd577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b91905290565b60008060008060c0858703121561081957600080fd5b61082386866106c8565b935061083160608601610765565b925061083f60808601610765565b9396929550929360a00135925050565b60006020828403121561086157600080fd5b5051919050565b60006020828403121561087a57600080fd5b8151610500816106af565b60006020828403121561089757600080fd5b8151801515811461050057600080fdfea2646970667358221220896587171ebfb95d903a9cc4c3f359e0c8558c3f200ea6d62bacefe960d891bf64736f6c63430008160033",
|
|
194
|
+
"linkReferences": {},
|
|
195
|
+
"deployedLinkReferences": {}
|
|
196
|
+
}
|
|
@@ -5,62 +5,62 @@
|
|
|
5
5
|
"abi": [
|
|
6
6
|
{
|
|
7
7
|
"inputs": [],
|
|
8
|
-
"name": "
|
|
8
|
+
"name": "LZ_AlreadyRegistered",
|
|
9
9
|
"type": "error"
|
|
10
10
|
},
|
|
11
11
|
{
|
|
12
12
|
"inputs": [],
|
|
13
|
-
"name": "
|
|
13
|
+
"name": "LZ_DefaultReceiveLibUnavailable",
|
|
14
14
|
"type": "error"
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
"inputs": [],
|
|
18
|
-
"name": "
|
|
18
|
+
"name": "LZ_DefaultSendLibUnavailable",
|
|
19
19
|
"type": "error"
|
|
20
20
|
},
|
|
21
21
|
{
|
|
22
22
|
"inputs": [],
|
|
23
|
-
"name": "
|
|
23
|
+
"name": "LZ_InvalidExpiry",
|
|
24
24
|
"type": "error"
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
"inputs": [],
|
|
28
|
-
"name": "
|
|
28
|
+
"name": "LZ_OnlyNonDefaultLib",
|
|
29
29
|
"type": "error"
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
32
|
"inputs": [],
|
|
33
|
-
"name": "
|
|
33
|
+
"name": "LZ_OnlyReceiveLib",
|
|
34
34
|
"type": "error"
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
37
|
"inputs": [],
|
|
38
|
-
"name": "
|
|
38
|
+
"name": "LZ_OnlyRegisteredLib",
|
|
39
39
|
"type": "error"
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
42
|
"inputs": [],
|
|
43
|
-
"name": "
|
|
43
|
+
"name": "LZ_OnlyRegisteredOrDefaultLib",
|
|
44
44
|
"type": "error"
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
47
|
"inputs": [],
|
|
48
|
-
"name": "
|
|
48
|
+
"name": "LZ_OnlySendLib",
|
|
49
49
|
"type": "error"
|
|
50
50
|
},
|
|
51
51
|
{
|
|
52
52
|
"inputs": [],
|
|
53
|
-
"name": "
|
|
53
|
+
"name": "LZ_SameValue",
|
|
54
54
|
"type": "error"
|
|
55
55
|
},
|
|
56
56
|
{
|
|
57
57
|
"inputs": [],
|
|
58
|
-
"name": "
|
|
58
|
+
"name": "LZ_UnsupportedEid",
|
|
59
59
|
"type": "error"
|
|
60
60
|
},
|
|
61
61
|
{
|
|
62
62
|
"inputs": [],
|
|
63
|
-
"name": "
|
|
63
|
+
"name": "LZ_UnsupportedInterface",
|
|
64
64
|
"type": "error"
|
|
65
65
|
},
|
|
66
66
|
{
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"type": "uint64"
|
|
12
12
|
}
|
|
13
13
|
],
|
|
14
|
-
"name": "
|
|
14
|
+
"name": "LZ_InvalidNonce",
|
|
15
15
|
"type": "error"
|
|
16
16
|
},
|
|
17
17
|
{
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"type": "bytes32"
|
|
28
28
|
}
|
|
29
29
|
],
|
|
30
|
-
"name": "
|
|
30
|
+
"name": "LZ_PayloadHashNotFound",
|
|
31
31
|
"type": "error"
|
|
32
32
|
},
|
|
33
33
|
{
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"abi": [
|
|
6
6
|
{
|
|
7
7
|
"inputs": [],
|
|
8
|
-
"name": "
|
|
8
|
+
"name": "LZ_ComposeExists",
|
|
9
9
|
"type": "error"
|
|
10
10
|
},
|
|
11
11
|
{
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"type": "bytes32"
|
|
22
22
|
}
|
|
23
23
|
],
|
|
24
|
-
"name": "
|
|
24
|
+
"name": "LZ_ComposeNotFound",
|
|
25
25
|
"type": "error"
|
|
26
26
|
},
|
|
27
27
|
{
|