@layerzerolabs/lz-evm-sdk-v1 2.0.18 → 2.0.19-0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@layerzerolabs/lz-evm-sdk-v1",
3
- "version": "2.0.18",
3
+ "version": "2.0.19-0",
4
4
  "license": "BUSL-1.1",
5
5
  "exports": {
6
6
  ".": {
@@ -52,11 +52,11 @@
52
52
  "ethers": "^5.7.2"
53
53
  },
54
54
  "devDependencies": {
55
- "@layerzerolabs/lz-evm-v1-0.7": "^2.0.18",
56
- "@layerzerolabs/lz-evm-v1-0.8": "^2.0.18",
57
- "@layerzerolabs/sdk-utilities": "^2.0.18",
58
- "@layerzerolabs/tsup-config-next": "^2.0.18",
59
- "@layerzerolabs/typescript-config-next": "^2.0.18",
55
+ "@layerzerolabs/lz-evm-v1-0.7": "^2.0.19-0",
56
+ "@layerzerolabs/lz-evm-v1-0.8": "^2.0.19-0",
57
+ "@layerzerolabs/sdk-utilities": "^2.0.19-0",
58
+ "@layerzerolabs/tsup-config-next": "^2.0.19-0",
59
+ "@layerzerolabs/typescript-config-next": "^2.0.19-0",
60
60
  "@typechain/ethers-v5": "^10.2.1",
61
61
  "@types/node": "^20.10.5",
62
62
  "rimraf": "^5.0.5",
@@ -66,11 +66,12 @@
66
66
  "typescript": "~5.2.2"
67
67
  },
68
68
  "publishConfig": {
69
- "access": "restricted"
69
+ "access": "public"
70
70
  },
71
71
  "lzVersions": {
72
72
  "default": [
73
73
  "v1"
74
74
  ]
75
- }
75
+ },
76
+ "stableVersion": "2.0.18"
76
77
  }
@@ -1,422 +0,0 @@
1
- {
2
- "address": "0x6C7Ab2202C98C4227C5c46f1417D81144DA716Ff",
3
- "abi": [
4
- {
5
- "inputs": [
6
- {
7
- "internalType": "address",
8
- "name": "_uln",
9
- "type": "address"
10
- }
11
- ],
12
- "stateMutability": "nonpayable",
13
- "type": "constructor"
14
- },
15
- {
16
- "anonymous": false,
17
- "inputs": [
18
- {
19
- "indexed": false,
20
- "internalType": "bool",
21
- "name": "feeEnabled",
22
- "type": "bool"
23
- }
24
- ],
25
- "name": "FeeEnabled",
26
- "type": "event"
27
- },
28
- {
29
- "anonymous": false,
30
- "inputs": [
31
- {
32
- "indexed": false,
33
- "internalType": "uint256",
34
- "name": "bp",
35
- "type": "uint256"
36
- }
37
- ],
38
- "name": "NativeBP",
39
- "type": "event"
40
- },
41
- {
42
- "anonymous": false,
43
- "inputs": [
44
- {
45
- "indexed": true,
46
- "internalType": "address",
47
- "name": "previousOwner",
48
- "type": "address"
49
- },
50
- {
51
- "indexed": true,
52
- "internalType": "address",
53
- "name": "newOwner",
54
- "type": "address"
55
- }
56
- ],
57
- "name": "OwnershipTransferred",
58
- "type": "event"
59
- },
60
- {
61
- "anonymous": false,
62
- "inputs": [
63
- {
64
- "indexed": false,
65
- "internalType": "bool",
66
- "name": "zroEnabled",
67
- "type": "bool"
68
- }
69
- ],
70
- "name": "ZroEnabled",
71
- "type": "event"
72
- },
73
- {
74
- "anonymous": false,
75
- "inputs": [
76
- {
77
- "indexed": false,
78
- "internalType": "uint256",
79
- "name": "zroFee",
80
- "type": "uint256"
81
- }
82
- ],
83
- "name": "ZroFee",
84
- "type": "event"
85
- },
86
- {
87
- "inputs": [],
88
- "name": "feeEnabled",
89
- "outputs": [
90
- {
91
- "internalType": "bool",
92
- "name": "",
93
- "type": "bool"
94
- }
95
- ],
96
- "stateMutability": "view",
97
- "type": "function"
98
- },
99
- {
100
- "inputs": [
101
- {
102
- "internalType": "bool",
103
- "name": "payInZro",
104
- "type": "bool"
105
- },
106
- {
107
- "internalType": "uint256",
108
- "name": "relayerFee",
109
- "type": "uint256"
110
- },
111
- {
112
- "internalType": "uint256",
113
- "name": "oracleFee",
114
- "type": "uint256"
115
- }
116
- ],
117
- "name": "getFees",
118
- "outputs": [
119
- {
120
- "internalType": "uint256",
121
- "name": "",
122
- "type": "uint256"
123
- }
124
- ],
125
- "stateMutability": "view",
126
- "type": "function"
127
- },
128
- {
129
- "inputs": [],
130
- "name": "nativeBP",
131
- "outputs": [
132
- {
133
- "internalType": "uint256",
134
- "name": "",
135
- "type": "uint256"
136
- }
137
- ],
138
- "stateMutability": "view",
139
- "type": "function"
140
- },
141
- {
142
- "inputs": [],
143
- "name": "owner",
144
- "outputs": [
145
- {
146
- "internalType": "address",
147
- "name": "",
148
- "type": "address"
149
- }
150
- ],
151
- "stateMutability": "view",
152
- "type": "function"
153
- },
154
- {
155
- "inputs": [],
156
- "name": "renounceOwnership",
157
- "outputs": [],
158
- "stateMutability": "nonpayable",
159
- "type": "function"
160
- },
161
- {
162
- "inputs": [
163
- {
164
- "internalType": "bool",
165
- "name": "_feeEnabled",
166
- "type": "bool"
167
- }
168
- ],
169
- "name": "setFeeEnabled",
170
- "outputs": [],
171
- "stateMutability": "nonpayable",
172
- "type": "function"
173
- },
174
- {
175
- "inputs": [
176
- {
177
- "internalType": "uint256",
178
- "name": "_nativeBP",
179
- "type": "uint256"
180
- }
181
- ],
182
- "name": "setNativeBP",
183
- "outputs": [],
184
- "stateMutability": "nonpayable",
185
- "type": "function"
186
- },
187
- {
188
- "inputs": [
189
- {
190
- "internalType": "bool",
191
- "name": "_zroEnabled",
192
- "type": "bool"
193
- }
194
- ],
195
- "name": "setZroEnabled",
196
- "outputs": [],
197
- "stateMutability": "nonpayable",
198
- "type": "function"
199
- },
200
- {
201
- "inputs": [
202
- {
203
- "internalType": "uint256",
204
- "name": "_zroFee",
205
- "type": "uint256"
206
- }
207
- ],
208
- "name": "setZroFee",
209
- "outputs": [],
210
- "stateMutability": "nonpayable",
211
- "type": "function"
212
- },
213
- {
214
- "inputs": [
215
- {
216
- "internalType": "address",
217
- "name": "newOwner",
218
- "type": "address"
219
- }
220
- ],
221
- "name": "transferOwnership",
222
- "outputs": [],
223
- "stateMutability": "nonpayable",
224
- "type": "function"
225
- },
226
- {
227
- "inputs": [],
228
- "name": "uln",
229
- "outputs": [
230
- {
231
- "internalType": "contract ILayerZeroUltraLightNodeV1",
232
- "name": "",
233
- "type": "address"
234
- }
235
- ],
236
- "stateMutability": "view",
237
- "type": "function"
238
- },
239
- {
240
- "inputs": [
241
- {
242
- "internalType": "address payable",
243
- "name": "_to",
244
- "type": "address"
245
- },
246
- {
247
- "internalType": "uint256",
248
- "name": "_amount",
249
- "type": "uint256"
250
- }
251
- ],
252
- "name": "withdrawNativeFromULN",
253
- "outputs": [],
254
- "stateMutability": "nonpayable",
255
- "type": "function"
256
- },
257
- {
258
- "inputs": [
259
- {
260
- "internalType": "address",
261
- "name": "_to",
262
- "type": "address"
263
- },
264
- {
265
- "internalType": "uint256",
266
- "name": "_amount",
267
- "type": "uint256"
268
- }
269
- ],
270
- "name": "withdrawZROFromULN",
271
- "outputs": [],
272
- "stateMutability": "nonpayable",
273
- "type": "function"
274
- },
275
- {
276
- "inputs": [],
277
- "name": "zroEnabled",
278
- "outputs": [
279
- {
280
- "internalType": "bool",
281
- "name": "",
282
- "type": "bool"
283
- }
284
- ],
285
- "stateMutability": "view",
286
- "type": "function"
287
- },
288
- {
289
- "inputs": [],
290
- "name": "zroFee",
291
- "outputs": [
292
- {
293
- "internalType": "uint256",
294
- "name": "",
295
- "type": "uint256"
296
- }
297
- ],
298
- "stateMutability": "view",
299
- "type": "function"
300
- }
301
- ],
302
- "transactionHash": "0x0ff59e841e92c1e5cee3c121ca2ea64df3a50503361d5a51d340bc2b060c5186",
303
- "receipt": {
304
- "to": null,
305
- "from": "0xc13b65f7c53Cd6db2EA205a4b574b4a0858720A6",
306
- "contractAddress": "0x6C7Ab2202C98C4227C5c46f1417D81144DA716Ff",
307
- "transactionIndex": 1,
308
- "gasUsed": "914104",
309
- "logsBloom": "0x00000000000000000000000000000000000000000000000000900000000000000000000000000000000000000000000000000000000000000000020000000000000400000000000000000000020000000001000000000000000000000000000000000000030000000000000000000800000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000",
310
- "blockHash": "0x5bd6d2f227a44a761a85aa7fa9703972c369375db52a1fd1ba5e695f537c6e32",
311
- "transactionHash": "0x0ff59e841e92c1e5cee3c121ca2ea64df3a50503361d5a51d340bc2b060c5186",
312
- "logs": [
313
- {
314
- "transactionIndex": 1,
315
- "blockNumber": 271408,
316
- "transactionHash": "0x0ff59e841e92c1e5cee3c121ca2ea64df3a50503361d5a51d340bc2b060c5186",
317
- "address": "0x6C7Ab2202C98C4227C5c46f1417D81144DA716Ff",
318
- "topics": [
319
- "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0",
320
- "0x0000000000000000000000000000000000000000000000000000000000000000",
321
- "0x000000000000000000000000c13b65f7c53cd6db2ea205a4b574b4a0858720a6"
322
- ],
323
- "data": "0x",
324
- "logIndex": 0,
325
- "blockHash": "0x5bd6d2f227a44a761a85aa7fa9703972c369375db52a1fd1ba5e695f537c6e32"
326
- }
327
- ],
328
- "blockNumber": 271408,
329
- "cumulativeGasUsed": "914104",
330
- "status": 1,
331
- "byzantium": true
332
- },
333
- "args": [
334
- "0x55370E0fBB5f5b8dAeD978BA1c075a499eB107B8"
335
- ],
336
- "numDeployments": 1,
337
- "solcInputHash": "f0daa62be023f2bf9281a41484784b15",
338
- "metadata": "{\"compiler\":{\"version\":\"0.7.6+commit.7338295f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_uln\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"feeEnabled\",\"type\":\"bool\"}],\"name\":\"FeeEnabled\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"bp\",\"type\":\"uint256\"}],\"name\":\"NativeBP\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"zroEnabled\",\"type\":\"bool\"}],\"name\":\"ZroEnabled\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"zroFee\",\"type\":\"uint256\"}],\"name\":\"ZroFee\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"feeEnabled\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"payInZro\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"relayerFee\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"oracleFee\",\"type\":\"uint256\"}],\"name\":\"getFees\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"nativeBP\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"_feeEnabled\",\"type\":\"bool\"}],\"name\":\"setFeeEnabled\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_nativeBP\",\"type\":\"uint256\"}],\"name\":\"setNativeBP\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"_zroEnabled\",\"type\":\"bool\"}],\"name\":\"setZroEnabled\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_zroFee\",\"type\":\"uint256\"}],\"name\":\"setZroFee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"uln\",\"outputs\":[{\"internalType\":\"contract ILayerZeroUltraLightNodeV1\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address payable\",\"name\":\"_to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"withdrawNativeFromULN\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"withdrawZROFromULN\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"zroEnabled\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"zroFee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.\"},\"transferOwnership(address)\":{\"details\":\"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/Treasury.sol\":\"Treasury\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":30000},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts/access/Ownable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.7.0;\\n\\nimport \\\"../utils/Context.sol\\\";\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * By default, the owner account will be the one that deploys the contract. This\\n * can later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract Ownable is Context {\\n address private _owner;\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the deployer as the initial owner.\\n */\\n constructor () {\\n address msgSender = _msgSender();\\n _owner = msgSender;\\n emit OwnershipTransferred(address(0), msgSender);\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n require(owner() == _msgSender(), \\\"Ownable: caller is not the owner\\\");\\n _;\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions anymore. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby removing any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n emit OwnershipTransferred(_owner, address(0));\\n _owner = address(0);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n require(newOwner != address(0), \\\"Ownable: new owner is the zero address\\\");\\n emit OwnershipTransferred(_owner, newOwner);\\n _owner = newOwner;\\n }\\n}\\n\",\"keccak256\":\"0x549c5343ad9f7e3f38aa4c4761854403502574bbc15b822db2ce892ff9b79da7\",\"license\":\"MIT\"},\"@openzeppelin/contracts/math/SafeMath.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.7.0;\\n\\n/**\\n * @dev Wrappers over Solidity's arithmetic operations with added overflow\\n * checks.\\n *\\n * Arithmetic operations in Solidity wrap on overflow. This can easily result\\n * in bugs, because programmers usually assume that an overflow raises an\\n * error, which is the standard behavior in high level programming languages.\\n * `SafeMath` restores this intuition by reverting the transaction when an\\n * operation overflows.\\n *\\n * Using this library instead of the unchecked operations eliminates an entire\\n * class of bugs, so it's recommended to use it always.\\n */\\nlibrary SafeMath {\\n /**\\n * @dev Returns the addition of two unsigned integers, with an overflow flag.\\n *\\n * _Available since v3.4._\\n */\\n function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n uint256 c = a + b;\\n if (c < a) return (false, 0);\\n return (true, c);\\n }\\n\\n /**\\n * @dev Returns the substraction of two unsigned integers, with an overflow flag.\\n *\\n * _Available since v3.4._\\n */\\n function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n if (b > a) return (false, 0);\\n return (true, a - b);\\n }\\n\\n /**\\n * @dev Returns the multiplication of two unsigned integers, with an overflow flag.\\n *\\n * _Available since v3.4._\\n */\\n function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n // Gas optimization: this is cheaper than requiring 'a' not being zero, but the\\n // benefit is lost if 'b' is also tested.\\n // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522\\n if (a == 0) return (true, 0);\\n uint256 c = a * b;\\n if (c / a != b) return (false, 0);\\n return (true, c);\\n }\\n\\n /**\\n * @dev Returns the division of two unsigned integers, with a division by zero flag.\\n *\\n * _Available since v3.4._\\n */\\n function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n if (b == 0) return (false, 0);\\n return (true, a / b);\\n }\\n\\n /**\\n * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.\\n *\\n * _Available since v3.4._\\n */\\n function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n if (b == 0) return (false, 0);\\n return (true, a % b);\\n }\\n\\n /**\\n * @dev Returns the addition of two unsigned integers, reverting on\\n * overflow.\\n *\\n * Counterpart to Solidity's `+` operator.\\n *\\n * Requirements:\\n *\\n * - Addition cannot overflow.\\n */\\n function add(uint256 a, uint256 b) internal pure returns (uint256) {\\n uint256 c = a + b;\\n require(c >= a, \\\"SafeMath: addition overflow\\\");\\n return c;\\n }\\n\\n /**\\n * @dev Returns the subtraction of two unsigned integers, reverting on\\n * overflow (when the result is negative).\\n *\\n * Counterpart to Solidity's `-` operator.\\n *\\n * Requirements:\\n *\\n * - Subtraction cannot overflow.\\n */\\n function sub(uint256 a, uint256 b) internal pure returns (uint256) {\\n require(b <= a, \\\"SafeMath: subtraction overflow\\\");\\n return a - b;\\n }\\n\\n /**\\n * @dev Returns the multiplication of two unsigned integers, reverting on\\n * overflow.\\n *\\n * Counterpart to Solidity's `*` operator.\\n *\\n * Requirements:\\n *\\n * - Multiplication cannot overflow.\\n */\\n function mul(uint256 a, uint256 b) internal pure returns (uint256) {\\n if (a == 0) return 0;\\n uint256 c = a * b;\\n require(c / a == b, \\\"SafeMath: multiplication overflow\\\");\\n return c;\\n }\\n\\n /**\\n * @dev Returns the integer division of two unsigned integers, reverting on\\n * division by zero. The result is rounded towards zero.\\n *\\n * Counterpart to Solidity's `/` operator. Note: this function uses a\\n * `revert` opcode (which leaves remaining gas untouched) while Solidity\\n * uses an invalid opcode to revert (consuming all remaining gas).\\n *\\n * Requirements:\\n *\\n * - The divisor cannot be zero.\\n */\\n function div(uint256 a, uint256 b) internal pure returns (uint256) {\\n require(b > 0, \\\"SafeMath: division by zero\\\");\\n return a / b;\\n }\\n\\n /**\\n * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),\\n * reverting when dividing by zero.\\n *\\n * Counterpart to Solidity's `%` operator. This function uses a `revert`\\n * opcode (which leaves remaining gas untouched) while Solidity uses an\\n * invalid opcode to revert (consuming all remaining gas).\\n *\\n * Requirements:\\n *\\n * - The divisor cannot be zero.\\n */\\n function mod(uint256 a, uint256 b) internal pure returns (uint256) {\\n require(b > 0, \\\"SafeMath: modulo by zero\\\");\\n return a % b;\\n }\\n\\n /**\\n * @dev Returns the subtraction of two unsigned integers, reverting with custom message on\\n * overflow (when the result is negative).\\n *\\n * CAUTION: This function is deprecated because it requires allocating memory for the error\\n * message unnecessarily. For custom revert reasons use {trySub}.\\n *\\n * Counterpart to Solidity's `-` operator.\\n *\\n * Requirements:\\n *\\n * - Subtraction cannot overflow.\\n */\\n function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {\\n require(b <= a, errorMessage);\\n return a - b;\\n }\\n\\n /**\\n * @dev Returns the integer division of two unsigned integers, reverting with custom message on\\n * division by zero. The result is rounded towards zero.\\n *\\n * CAUTION: This function is deprecated because it requires allocating memory for the error\\n * message unnecessarily. For custom revert reasons use {tryDiv}.\\n *\\n * Counterpart to Solidity's `/` operator. Note: this function uses a\\n * `revert` opcode (which leaves remaining gas untouched) while Solidity\\n * uses an invalid opcode to revert (consuming all remaining gas).\\n *\\n * Requirements:\\n *\\n * - The divisor cannot be zero.\\n */\\n function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {\\n require(b > 0, errorMessage);\\n return a / b;\\n }\\n\\n /**\\n * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),\\n * reverting with custom message when dividing by zero.\\n *\\n * CAUTION: This function is deprecated because it requires allocating memory for the error\\n * message unnecessarily. For custom revert reasons use {tryMod}.\\n *\\n * Counterpart to Solidity's `%` operator. This function uses a `revert`\\n * opcode (which leaves remaining gas untouched) while Solidity uses an\\n * invalid opcode to revert (consuming all remaining gas).\\n *\\n * Requirements:\\n *\\n * - The divisor cannot be zero.\\n */\\n function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {\\n require(b > 0, errorMessage);\\n return a % b;\\n }\\n}\\n\",\"keccak256\":\"0xe22a1fc7400ae196eba2ad1562d0386462b00a6363b742d55a2fd2021a58586f\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity >=0.6.0 <0.8.0;\\n\\n/*\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with GSN meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address payable) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes memory) {\\n this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691\\n return msg.data;\\n }\\n}\\n\",\"keccak256\":\"0x8d3cb350f04ff49cfb10aef08d87f19dcbaecc8027b0bed12f3275cd12f38cf0\",\"license\":\"MIT\"},\"contracts/Treasury.sol\":{\"content\":\"// SPDX-License-Identifier: BUSL-1.1\\n\\npragma solidity 0.7.6;\\n\\nimport \\\"./interfaces/ILayerZeroTreasury.sol\\\";\\nimport \\\"@openzeppelin/contracts/access/Ownable.sol\\\";\\nimport \\\"@openzeppelin/contracts/math/SafeMath.sol\\\";\\nimport \\\"./interfaces/ILayerZeroUltraLightNodeV1.sol\\\";\\n\\ncontract Treasury is ILayerZeroTreasury, Ownable {\\n using SafeMath for uint;\\n\\n uint public nativeBP;\\n uint public zroFee;\\n bool public feeEnabled;\\n bool public zroEnabled;\\n\\n ILayerZeroUltraLightNodeV1 public immutable uln;\\n\\n event NativeBP(uint bp);\\n event ZroFee(uint zroFee);\\n event FeeEnabled(bool feeEnabled);\\n event ZroEnabled(bool zroEnabled);\\n\\n constructor(address _uln) {\\n uln = ILayerZeroUltraLightNodeV1(_uln);\\n }\\n\\n function getFees(bool payInZro, uint relayerFee, uint oracleFee) external view override returns (uint) {\\n if (feeEnabled) {\\n if (payInZro) {\\n require(zroEnabled, \\\"LayerZero: ZRO is not enabled\\\");\\n return zroFee;\\n } else {\\n return relayerFee.add(oracleFee).mul(nativeBP).div(10000);\\n }\\n }\\n return 0;\\n }\\n\\n function setFeeEnabled(bool _feeEnabled) external onlyOwner {\\n feeEnabled = _feeEnabled;\\n emit FeeEnabled(_feeEnabled);\\n }\\n\\n function setZroEnabled(bool _zroEnabled) external onlyOwner {\\n zroEnabled = _zroEnabled;\\n emit ZroEnabled(_zroEnabled);\\n }\\n\\n function setNativeBP(uint _nativeBP) external onlyOwner {\\n nativeBP = _nativeBP;\\n emit NativeBP(_nativeBP);\\n }\\n\\n function setZroFee(uint _zroFee) external onlyOwner {\\n zroFee = _zroFee;\\n emit ZroFee(_zroFee);\\n }\\n\\n // uint8 public constant WITHDRAW_TYPE_TREASURY_PROTOCOL_FEES = 0;\\n function withdrawZROFromULN(address _to, uint _amount) external onlyOwner {\\n uln.withdrawZRO(_to, _amount);\\n }\\n\\n // uint8 public constant WITHDRAW_TYPE_TREASURY_PROTOCOL_FEES = 0;\\n function withdrawNativeFromULN(address payable _to, uint _amount) external onlyOwner {\\n uln.withdrawNative(0, address(0x0), _to, _amount);\\n }\\n}\\n\",\"keccak256\":\"0x0152e1b8a62fe59bada885ce5d019bb93fe20e2aca03c5154b5979d0b4ff6a15\",\"license\":\"BUSL-1.1\"},\"contracts/interfaces/ILayerZeroTreasury.sol\":{\"content\":\"// SPDX-License-Identifier: BUSL-1.1\\n\\npragma solidity >=0.5.0;\\n\\ninterface ILayerZeroTreasury {\\n function getFees(bool payInZro, uint relayerFee, uint oracleFee) external view returns (uint);\\n}\\n\",\"keccak256\":\"0xf30814340363b85498937030f671adb282435ca16d350ce2210d28b75901a1e4\",\"license\":\"BUSL-1.1\"},\"contracts/interfaces/ILayerZeroUltraLightNodeV1.sol\":{\"content\":\"// SPDX-License-Identifier: BUSL-1.1\\n\\npragma solidity >=0.7.0;\\n\\ninterface ILayerZeroUltraLightNodeV1 {\\n // a Relayer can execute the validateTransactionProof()\\n function validateTransactionProof(uint16 _srcChainId, address _dstAddress, uint _gasLimit, bytes32 _lookupHash, bytes calldata _transactionProof) external;\\n\\n // an Oracle delivers the block data using updateHash()\\n function updateHash(uint16 _remoteChainId, bytes32 _lookupHash, uint _confirmations, bytes32 _data) external;\\n\\n // can only withdraw the receivable of the msg.sender\\n function withdrawNative(uint8 _type, address _owner, address payable _to, uint _amount) external;\\n\\n function withdrawZRO(address _to, uint _amount) external;\\n\\n // view functions\\n function oracleQuotedAmount(address _oracle) external view returns (uint);\\n\\n function relayerQuotedAmount(address _relayer) external view returns (uint);\\n}\\n\",\"keccak256\":\"0x8bc6333668c9595072a5e51e69261c75baff87717a16b35a5a8841eafd012cfa\",\"license\":\"BUSL-1.1\"}},\"version\":1}",
339
- "bytecode": "0x60a060405234801561001057600080fd5b50604051610ffa380380610ffa8339818101604052602081101561003357600080fd5b5051600061003f61009e565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35060601b6001600160601b0319166080526100a2565b3390565b60805160601c610f316100c9600039806104df528061061352806108d95250610f316000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c80638da5cb5b11610097578063baead4cc11610066578063baead4cc14610254578063d684b25314610271578063d935d12314610290578063f2fde38b14610298576100f5565b80638da5cb5b1461022057806396a141a014610228578063a771ebc714610230578063af406aa51461024c576100f5565b80636c473aff116100d35780636c473aff14610191578063715018a6146101c25780637ba20ccf146101ca5780638c616397146101e7576100f5565b80630db474fa146100fa5780633c5ac8f71461011b5780635cbbbd7514610154575b600080fd5b6101196004803603602081101561011057600080fd5b503515156102cb565b005b6101196004803603604081101561013157600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81351690602001356103d8565b61017f6004803603606081101561016a57600080fd5b50803515159060208101359060400135610541565b60408051918252519081900360200190f35b610199610611565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b610119610635565b610119600480360360208110156101e057600080fd5b503561074c565b610119600480360360408110156101fd57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813516906020013561082f565b610199610968565b61017f610984565b61023861098a565b604080519115158252519081900360200190f35b61017f610993565b6101196004803603602081101561026a57600080fd5b5035610999565b6101196004803603602081101561028757600080fd5b50351515610a7c565b610238610b90565b610119600480360360208110156102ae57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610b9e565b6102d3610d3f565b73ffffffffffffffffffffffffffffffffffffffff166102f1610968565b73ffffffffffffffffffffffffffffffffffffffff161461037357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600380548215157fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00909116811790915560408051918252517fe97fa32ceb811a18d1b14115b17ae0034db328b2e2ca987d9922cbf47b03fad69181900360200190a150565b6103e0610d3f565b73ffffffffffffffffffffffffffffffffffffffff166103fe610968565b73ffffffffffffffffffffffffffffffffffffffff161461048057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b604080517f22c107760000000000000000000000000000000000000000000000000000000081526000600482018190526024820181905273ffffffffffffffffffffffffffffffffffffffff85811660448401526064830185905292517f0000000000000000000000000000000000000000000000000000000000000000909316926322c1077692608480820193929182900301818387803b15801561052557600080fd5b505af1158015610539573d6000803e3d6000fd5b505050505050565b60035460009060ff16156106065783156105d457600354610100900460ff166105cb57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f4c617965725a65726f3a205a524f206973206e6f7420656e61626c6564000000604482015290519081900360640190fd5b5060025461060a565b6105ff6127106105f96001546105f38688610d4390919063ffffffff16565b90610dc0565b90610e33565b905061060a565b5060005b9392505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b61063d610d3f565b73ffffffffffffffffffffffffffffffffffffffff1661065b610968565b73ffffffffffffffffffffffffffffffffffffffff16146106dd57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b610754610d3f565b73ffffffffffffffffffffffffffffffffffffffff16610772610968565b73ffffffffffffffffffffffffffffffffffffffff16146107f457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60028190556040805182815290517f804d99c2291bc4a6be11ff016f65cfc644f8d488ef55a5318d0217a1fdc4e9fd9181900360200190a150565b610837610d3f565b73ffffffffffffffffffffffffffffffffffffffff16610855610968565b73ffffffffffffffffffffffffffffffffffffffff16146108d757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16638525b71183836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050600060405180830381600087803b15801561052557600080fd5b60005473ffffffffffffffffffffffffffffffffffffffff1690565b60015481565b60035460ff1681565b60025481565b6109a1610d3f565b73ffffffffffffffffffffffffffffffffffffffff166109bf610968565b73ffffffffffffffffffffffffffffffffffffffff1614610a4157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60018190556040805182815290517ff2a316ed322d32481373e7ed416bc6c1ec2afcfa3bf2f1df9eb4300e1a9620e39181900360200190a150565b610a84610d3f565b73ffffffffffffffffffffffffffffffffffffffff16610aa2610968565b73ffffffffffffffffffffffffffffffffffffffff1614610b2457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6003805482151561010081027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff9092169190911790915560408051918252517f279d3ec34d7b325d10d4b9d6c63464877a6fe6ac3997f7508bdb3b9d2d5050b39181900360200190a150565b600354610100900460ff1681565b610ba6610d3f565b73ffffffffffffffffffffffffffffffffffffffff16610bc4610968565b73ffffffffffffffffffffffffffffffffffffffff1614610c4657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8116610cb2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180610eb56026913960400191505060405180910390fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b3390565b600082820183811015610db757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b90505b92915050565b600082610dcf57506000610dba565b82820282848281610ddc57fe5b0414610db7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180610edb6021913960400191505060405180910390fd5b6000808211610ea357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b818381610eac57fe5b04939250505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a2646970667358221220aa67ab93c882355efccbce31477b6f48ac5937dda84c6277e5b85c4ebd677afa64736f6c63430007060033",
340
- "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100f55760003560e01c80638da5cb5b11610097578063baead4cc11610066578063baead4cc14610254578063d684b25314610271578063d935d12314610290578063f2fde38b14610298576100f5565b80638da5cb5b1461022057806396a141a014610228578063a771ebc714610230578063af406aa51461024c576100f5565b80636c473aff116100d35780636c473aff14610191578063715018a6146101c25780637ba20ccf146101ca5780638c616397146101e7576100f5565b80630db474fa146100fa5780633c5ac8f71461011b5780635cbbbd7514610154575b600080fd5b6101196004803603602081101561011057600080fd5b503515156102cb565b005b6101196004803603604081101561013157600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81351690602001356103d8565b61017f6004803603606081101561016a57600080fd5b50803515159060208101359060400135610541565b60408051918252519081900360200190f35b610199610611565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b610119610635565b610119600480360360208110156101e057600080fd5b503561074c565b610119600480360360408110156101fd57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813516906020013561082f565b610199610968565b61017f610984565b61023861098a565b604080519115158252519081900360200190f35b61017f610993565b6101196004803603602081101561026a57600080fd5b5035610999565b6101196004803603602081101561028757600080fd5b50351515610a7c565b610238610b90565b610119600480360360208110156102ae57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610b9e565b6102d3610d3f565b73ffffffffffffffffffffffffffffffffffffffff166102f1610968565b73ffffffffffffffffffffffffffffffffffffffff161461037357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600380548215157fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00909116811790915560408051918252517fe97fa32ceb811a18d1b14115b17ae0034db328b2e2ca987d9922cbf47b03fad69181900360200190a150565b6103e0610d3f565b73ffffffffffffffffffffffffffffffffffffffff166103fe610968565b73ffffffffffffffffffffffffffffffffffffffff161461048057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b604080517f22c107760000000000000000000000000000000000000000000000000000000081526000600482018190526024820181905273ffffffffffffffffffffffffffffffffffffffff85811660448401526064830185905292517f0000000000000000000000000000000000000000000000000000000000000000909316926322c1077692608480820193929182900301818387803b15801561052557600080fd5b505af1158015610539573d6000803e3d6000fd5b505050505050565b60035460009060ff16156106065783156105d457600354610100900460ff166105cb57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f4c617965725a65726f3a205a524f206973206e6f7420656e61626c6564000000604482015290519081900360640190fd5b5060025461060a565b6105ff6127106105f96001546105f38688610d4390919063ffffffff16565b90610dc0565b90610e33565b905061060a565b5060005b9392505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b61063d610d3f565b73ffffffffffffffffffffffffffffffffffffffff1661065b610968565b73ffffffffffffffffffffffffffffffffffffffff16146106dd57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b610754610d3f565b73ffffffffffffffffffffffffffffffffffffffff16610772610968565b73ffffffffffffffffffffffffffffffffffffffff16146107f457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60028190556040805182815290517f804d99c2291bc4a6be11ff016f65cfc644f8d488ef55a5318d0217a1fdc4e9fd9181900360200190a150565b610837610d3f565b73ffffffffffffffffffffffffffffffffffffffff16610855610968565b73ffffffffffffffffffffffffffffffffffffffff16146108d757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16638525b71183836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050600060405180830381600087803b15801561052557600080fd5b60005473ffffffffffffffffffffffffffffffffffffffff1690565b60015481565b60035460ff1681565b60025481565b6109a1610d3f565b73ffffffffffffffffffffffffffffffffffffffff166109bf610968565b73ffffffffffffffffffffffffffffffffffffffff1614610a4157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60018190556040805182815290517ff2a316ed322d32481373e7ed416bc6c1ec2afcfa3bf2f1df9eb4300e1a9620e39181900360200190a150565b610a84610d3f565b73ffffffffffffffffffffffffffffffffffffffff16610aa2610968565b73ffffffffffffffffffffffffffffffffffffffff1614610b2457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6003805482151561010081027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff9092169190911790915560408051918252517f279d3ec34d7b325d10d4b9d6c63464877a6fe6ac3997f7508bdb3b9d2d5050b39181900360200190a150565b600354610100900460ff1681565b610ba6610d3f565b73ffffffffffffffffffffffffffffffffffffffff16610bc4610968565b73ffffffffffffffffffffffffffffffffffffffff1614610c4657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8116610cb2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180610eb56026913960400191505060405180910390fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b3390565b600082820183811015610db757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b90505b92915050565b600082610dcf57506000610dba565b82820282848281610ddc57fe5b0414610db7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180610edb6021913960400191505060405180910390fd5b6000808211610ea357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b818381610eac57fe5b04939250505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a2646970667358221220aa67ab93c882355efccbce31477b6f48ac5937dda84c6277e5b85c4ebd677afa64736f6c63430007060033",
341
- "devdoc": {
342
- "kind": "dev",
343
- "methods": {
344
- "owner()": {
345
- "details": "Returns the address of the current owner."
346
- },
347
- "renounceOwnership()": {
348
- "details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner."
349
- },
350
- "transferOwnership(address)": {
351
- "details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
352
- }
353
- },
354
- "version": 1
355
- },
356
- "userdoc": {
357
- "kind": "user",
358
- "methods": {},
359
- "version": 1
360
- },
361
- "storageLayout": {
362
- "storage": [
363
- {
364
- "astId": 2484,
365
- "contract": "contracts/Treasury.sol:Treasury",
366
- "label": "_owner",
367
- "offset": 0,
368
- "slot": "0",
369
- "type": "t_address"
370
- },
371
- {
372
- "astId": 7641,
373
- "contract": "contracts/Treasury.sol:Treasury",
374
- "label": "nativeBP",
375
- "offset": 0,
376
- "slot": "1",
377
- "type": "t_uint256"
378
- },
379
- {
380
- "astId": 7643,
381
- "contract": "contracts/Treasury.sol:Treasury",
382
- "label": "zroFee",
383
- "offset": 0,
384
- "slot": "2",
385
- "type": "t_uint256"
386
- },
387
- {
388
- "astId": 7645,
389
- "contract": "contracts/Treasury.sol:Treasury",
390
- "label": "feeEnabled",
391
- "offset": 0,
392
- "slot": "3",
393
- "type": "t_bool"
394
- },
395
- {
396
- "astId": 7647,
397
- "contract": "contracts/Treasury.sol:Treasury",
398
- "label": "zroEnabled",
399
- "offset": 1,
400
- "slot": "3",
401
- "type": "t_bool"
402
- }
403
- ],
404
- "types": {
405
- "t_address": {
406
- "encoding": "inplace",
407
- "label": "address",
408
- "numberOfBytes": "20"
409
- },
410
- "t_bool": {
411
- "encoding": "inplace",
412
- "label": "bool",
413
- "numberOfBytes": "1"
414
- },
415
- "t_uint256": {
416
- "encoding": "inplace",
417
- "label": "uint256",
418
- "numberOfBytes": "32"
419
- }
420
- }
421
- }
422
- }