@stargatefinance/stg-evm-sdk-v2 0.0.11
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/src/StargateBase.sol/StargateBase.json +1348 -0
- package/artifacts/src/StargateOFT.sol/StargateOFT.json +1374 -0
- package/artifacts/src/StargatePool.sol/StargatePool.json +1722 -0
- package/artifacts/src/StargatePoolNative.sol/StargatePoolNative.json +1717 -0
- package/artifacts/src/feelibs/FeeLibBase.sol/FeeLibBase.json +313 -0
- package/artifacts/src/feelibs/FeeLibV1.sol/FeeConfigLib.json +10 -0
- package/artifacts/src/feelibs/FeeLibV1.sol/FeeLibV1.json +561 -0
- package/artifacts/src/intent/IntentBase.sol/IntentBase.json +231 -0
- package/artifacts/src/intent/IntentOFT.sol/IntentOFT.json +247 -0
- package/artifacts/src/intent/IntentPool.sol/IntentPool.json +350 -0
- package/artifacts/src/intent/IntentPoolNative.sol/IWETH.json +24 -0
- package/artifacts/src/intent/IntentPoolNative.sol/IntentPoolNative.json +367 -0
- package/artifacts/src/interfaces/IBridgedUSDCMinter.sol/IBridgedUSDCMinter.json +48 -0
- package/artifacts/src/interfaces/ICreditMessaging.sol/ICreditMessaging.json +113 -0
- package/artifacts/src/interfaces/ICreditMessagingHandler.sol/ICreditMessagingHandler.json +71 -0
- package/artifacts/src/interfaces/IERC20Minter.sol/IERC20Minter.json +47 -0
- package/artifacts/src/interfaces/IStargate.sol/IStargate.json +661 -0
- package/artifacts/src/interfaces/IStargateFeeLib.sol/IStargateFeeLib.json +230 -0
- package/artifacts/src/interfaces/IStargatePool.sol/IStargatePool.json +939 -0
- package/artifacts/src/interfaces/ITokenMessaging.sol/ITokenMessaging.json +494 -0
- package/artifacts/src/interfaces/ITokenMessagingHandler.sol/ITokenMessagingHandler.json +78 -0
- package/artifacts/src/interfaces/permit2/IAllowanceTransfer.sol/IAllowanceTransfer.json +495 -0
- package/artifacts/src/interfaces/permit2/IEIP712.sol/IEIP712.json +24 -0
- package/artifacts/src/interfaces/permit2/IPermit2.sol/IPermit2.json +874 -0
- package/artifacts/src/interfaces/permit2/ISignatureTransfer.sol/ISignatureTransfer.json +403 -0
- package/artifacts/src/libs/AddressCast.sol/AddressCast.json +10 -0
- package/artifacts/src/libs/Bus.sol/BusLib.json +92 -0
- package/artifacts/src/libs/CreditMsgCodec.sol/CreditMsgCodec.json +16 -0
- package/artifacts/src/libs/MessagingHelper.sol/MessagingHelper.json +10 -0
- package/artifacts/src/libs/PassengerCodec.sol/PassengerCodec.json +16 -0
- package/artifacts/src/libs/Path.sol/PathLib.json +26 -0
- package/artifacts/src/libs/RideBusOptionsLibV1.sol/RideBusOptionsLibV1.json +16 -0
- package/artifacts/src/libs/TokenMsgCodec.sol/TokenMsgCodec.json +16 -0
- package/artifacts/src/libs/Transfer.sol/Transfer.json +21 -0
- package/artifacts/src/libs/Transfer.sol/TransferLib.json +21 -0
- package/artifacts/src/messaging/CreditMessaging.sol/CreditMessaging.json +1033 -0
- package/artifacts/src/messaging/CreditMessagingOptions.sol/CreditMessagingOptions.json +229 -0
- package/artifacts/src/messaging/MessagingBase.sol/MessagingBase.json +701 -0
- package/artifacts/src/messaging/TokenMessaging.sol/TokenMessaging.json +1692 -0
- package/artifacts/src/messaging/TokenMessagingOptions.sol/TokenMessagingOptions.json +239 -0
- package/artifacts/src/mocks/ERC20Token.sol/ERC20Token.json +335 -0
- package/artifacts/src/mocks/FeeLibMock.sol/FeeLibMock.json +230 -0
- package/artifacts/src/mocks/OFTToken.sol/OFTToken.json +380 -0
- package/artifacts/src/mocks/PoolToken.sol/PoolToken.json +406 -0
- package/artifacts/src/mocks/USDC.sol/USDC.json +381 -0
- package/artifacts/src/mocks/WETH.sol/WETH.json +310 -0
- package/artifacts/src/peripheral/Planner.sol/Planner.json +212 -0
- package/artifacts/src/peripheral/RebateCampaign.sol/RebateCampaign.json +237 -0
- package/artifacts/src/peripheral/Treasurer.sol/Treasurer.json +194 -0
- package/artifacts/src/usdc/StargateOFTUSDC.sol/StargateOFTUSDC.json +1374 -0
- package/artifacts/src/usdc/StargatePoolUSDC.sol/StargatePoolUSDC.json +1748 -0
- package/artifacts/src/utils/LPToken.sol/LPToken.json +496 -0
- package/deployments/arbsep-testnet/FeeLibV1ETH.json +466 -0
- package/deployments/arbsep-testnet/MessagingETH.json +1356 -0
- package/deployments/arbsep-testnet/StargatePoolNative.json +1933 -0
- package/deployments/avalanche-testnet/FeeLibV1USDT.json +466 -0
- package/deployments/avalanche-testnet/MessagingUSDT.json +1356 -0
- package/deployments/avalanche-testnet/StargatePoolUSDT.json +1939 -0
- package/deployments/bsc-sandbox-local/CreditMessaging.json +1393 -0
- package/deployments/bsc-sandbox-local/FeeLibV1BUSD.json +828 -0
- package/deployments/bsc-sandbox-local/FeeLibV1ETH.json +828 -0
- package/deployments/bsc-sandbox-local/FeeLibV1LUSD.json +828 -0
- package/deployments/bsc-sandbox-local/FeeLibV1USDC.json +828 -0
- package/deployments/bsc-sandbox-local/FeeLibV1USDT.json +828 -0
- package/deployments/bsc-sandbox-local/IntentOFTBUSD.json +337 -0
- package/deployments/bsc-sandbox-local/IntentOFTETH.json +337 -0
- package/deployments/bsc-sandbox-local/IntentOFTLUSD.json +337 -0
- package/deployments/bsc-sandbox-local/IntentOFTUSDC.json +337 -0
- package/deployments/bsc-sandbox-local/IntentOFTUSDT.json +337 -0
- package/deployments/bsc-sandbox-local/OFTTokenBUSD.json +571 -0
- package/deployments/bsc-sandbox-local/OFTTokenETH.json +571 -0
- package/deployments/bsc-sandbox-local/OFTTokenLUSD.json +571 -0
- package/deployments/bsc-sandbox-local/OFTTokenUSDC.json +558 -0
- package/deployments/bsc-sandbox-local/OFTTokenUSDT.json +571 -0
- package/deployments/bsc-sandbox-local/Permit2Mock.json +923 -0
- package/deployments/bsc-sandbox-local/StargateOFTBUSD.json +1803 -0
- package/deployments/bsc-sandbox-local/StargateOFTETH.json +1803 -0
- package/deployments/bsc-sandbox-local/StargateOFTLUSD.json +1803 -0
- package/deployments/bsc-sandbox-local/StargateOFTUSDC.json +1792 -0
- package/deployments/bsc-sandbox-local/StargateOFTUSDT.json +1803 -0
- package/deployments/bsc-sandbox-local/TokenMessaging.json +2166 -0
- package/deployments/bsc-sandbox-local/WETH.json +453 -0
- package/deployments/bsc-testnet/FeeLibV1ETH.json +466 -0
- package/deployments/bsc-testnet/FeeLibV1USDT.json +466 -0
- package/deployments/bsc-testnet/MessagingETH.json +1356 -0
- package/deployments/bsc-testnet/MessagingUSDT.json +1356 -0
- package/deployments/bsc-testnet/OFTTokenETH.json +557 -0
- package/deployments/bsc-testnet/StargateOFTETH.json +1601 -0
- package/deployments/bsc-testnet/StargatePoolUSDT.json +1939 -0
- package/deployments/ethereum-sandbox-local/CreditMessaging.json +1393 -0
- package/deployments/ethereum-sandbox-local/FeeLibV1BUSD.json +828 -0
- package/deployments/ethereum-sandbox-local/FeeLibV1ETH.json +828 -0
- package/deployments/ethereum-sandbox-local/FeeLibV1LUSD.json +828 -0
- package/deployments/ethereum-sandbox-local/FeeLibV1USDC.json +828 -0
- package/deployments/ethereum-sandbox-local/FeeLibV1USDT.json +828 -0
- package/deployments/ethereum-sandbox-local/IntentOFTBUSD.json +337 -0
- package/deployments/ethereum-sandbox-local/IntentPoolLUSD.json +440 -0
- package/deployments/ethereum-sandbox-local/IntentPoolNative.json +444 -0
- package/deployments/ethereum-sandbox-local/IntentPoolUSDC.json +440 -0
- package/deployments/ethereum-sandbox-local/IntentPoolUSDT.json +440 -0
- package/deployments/ethereum-sandbox-local/OFTTokenBUSD.json +571 -0
- package/deployments/ethereum-sandbox-local/Permit2Mock.json +923 -0
- package/deployments/ethereum-sandbox-local/PoolTokenLUSD.json +597 -0
- package/deployments/ethereum-sandbox-local/PoolTokenUSDC.json +597 -0
- package/deployments/ethereum-sandbox-local/PoolTokenUSDT.json +597 -0
- package/deployments/ethereum-sandbox-local/StargateOFTBUSD.json +1803 -0
- package/deployments/ethereum-sandbox-local/StargatePoolLUSD.json +2239 -0
- package/deployments/ethereum-sandbox-local/StargatePoolNative.json +2233 -0
- package/deployments/ethereum-sandbox-local/StargatePoolUSDC.json +2257 -0
- package/deployments/ethereum-sandbox-local/StargatePoolUSDT.json +2239 -0
- package/deployments/ethereum-sandbox-local/TokenMessaging.json +2166 -0
- package/deployments/ethereum-sandbox-local/WETH.json +453 -0
- package/deployments/polygon-sandbox-local/CreditMessaging.json +1393 -0
- package/deployments/polygon-sandbox-local/FeeLibV1BUSD.json +828 -0
- package/deployments/polygon-sandbox-local/FeeLibV1ETH.json +828 -0
- package/deployments/polygon-sandbox-local/FeeLibV1LUSD.json +828 -0
- package/deployments/polygon-sandbox-local/FeeLibV1USDC.json +828 -0
- package/deployments/polygon-sandbox-local/FeeLibV1USDT.json +828 -0
- package/deployments/polygon-sandbox-local/IntentOFTBUSD.json +337 -0
- package/deployments/polygon-sandbox-local/IntentOFTETH.json +337 -0
- package/deployments/polygon-sandbox-local/IntentOFTLUSD.json +337 -0
- package/deployments/polygon-sandbox-local/IntentOFTUSDC.json +337 -0
- package/deployments/polygon-sandbox-local/IntentPoolUSDT.json +440 -0
- package/deployments/polygon-sandbox-local/OFTTokenBUSD.json +571 -0
- package/deployments/polygon-sandbox-local/OFTTokenETH.json +571 -0
- package/deployments/polygon-sandbox-local/OFTTokenLUSD.json +571 -0
- package/deployments/polygon-sandbox-local/OFTTokenUSDC.json +558 -0
- package/deployments/polygon-sandbox-local/Permit2Mock.json +923 -0
- package/deployments/polygon-sandbox-local/PoolTokenUSDT.json +597 -0
- package/deployments/polygon-sandbox-local/StargateOFTBUSD.json +1803 -0
- package/deployments/polygon-sandbox-local/StargateOFTETH.json +1803 -0
- package/deployments/polygon-sandbox-local/StargateOFTLUSD.json +1803 -0
- package/deployments/polygon-sandbox-local/StargateOFTUSDC.json +1792 -0
- package/deployments/polygon-sandbox-local/StargatePoolUSDT.json +2239 -0
- package/deployments/polygon-sandbox-local/TokenMessaging.json +2166 -0
- package/deployments/polygon-sandbox-local/WETH.json +453 -0
- package/deployments/polygon-testnet/FeeLibV1USDT.json +481 -0
- package/deployments/polygon-testnet/MessagingUSDT.json +1371 -0
- package/deployments/polygon-testnet/OFTTokenUSDT.json +572 -0
- package/deployments/polygon-testnet/StargateOFTUSDT.json +1616 -0
- package/deployments/sepolia-testnet/FeeLibV1ETH.json +466 -0
- package/deployments/sepolia-testnet/MessagingETH.json +1356 -0
- package/deployments/sepolia-testnet/StargatePoolNative.json +1933 -0
- package/dist/index.cjs +24634 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.mts +31486 -0
- package/dist/index.d.ts +31486 -0
- package/dist/index.mjs +24558 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +42 -0
|
@@ -0,0 +1,1933 @@
|
|
|
1
|
+
{
|
|
2
|
+
"address": "0xc32fE1b4359AC8Fc50c83e62B633D2b140F91a1C",
|
|
3
|
+
"abi": [
|
|
4
|
+
{
|
|
5
|
+
"inputs": [
|
|
6
|
+
{
|
|
7
|
+
"internalType": "string",
|
|
8
|
+
"name": "_lpTokenName",
|
|
9
|
+
"type": "string"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"internalType": "string",
|
|
13
|
+
"name": "_lpTokenSymbol",
|
|
14
|
+
"type": "string"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"internalType": "uint8",
|
|
18
|
+
"name": "_tokenDecimals",
|
|
19
|
+
"type": "uint8"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"internalType": "uint8",
|
|
23
|
+
"name": "_sharedDecimals",
|
|
24
|
+
"type": "uint8"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"internalType": "address",
|
|
28
|
+
"name": "_endpoint",
|
|
29
|
+
"type": "address"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"internalType": "address",
|
|
33
|
+
"name": "_owner",
|
|
34
|
+
"type": "address"
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"stateMutability": "nonpayable",
|
|
38
|
+
"type": "constructor"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"inputs": [],
|
|
42
|
+
"name": "AlreadyHasCredit",
|
|
43
|
+
"type": "error"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"inputs": [],
|
|
47
|
+
"name": "BusFull",
|
|
48
|
+
"type": "error"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"inputs": [],
|
|
52
|
+
"name": "ComposingNotAllowed",
|
|
53
|
+
"type": "error"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"inputs": [],
|
|
57
|
+
"name": "InsufficientCredit",
|
|
58
|
+
"type": "error"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"inputs": [],
|
|
62
|
+
"name": "InvalidAmount",
|
|
63
|
+
"type": "error"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"inputs": [],
|
|
67
|
+
"name": "InvalidAmount",
|
|
68
|
+
"type": "error"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"inputs": [],
|
|
72
|
+
"name": "InvalidFare",
|
|
73
|
+
"type": "error"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"inputs": [],
|
|
77
|
+
"name": "InvalidLocalDecimals",
|
|
78
|
+
"type": "error"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"inputs": [],
|
|
82
|
+
"name": "InvalidPassenger",
|
|
83
|
+
"type": "error"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"inputs": [],
|
|
87
|
+
"name": "InvalidPath",
|
|
88
|
+
"type": "error"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"inputs": [],
|
|
92
|
+
"name": "InvalidTokenDecimals",
|
|
93
|
+
"type": "error"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"inputs": [],
|
|
97
|
+
"name": "LzTokenUnavailable",
|
|
98
|
+
"type": "error"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"inputs": [],
|
|
102
|
+
"name": "OutflowFailed",
|
|
103
|
+
"type": "error"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"inputs": [],
|
|
107
|
+
"name": "Paused",
|
|
108
|
+
"type": "error"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"inputs": [],
|
|
112
|
+
"name": "ReentrantCall",
|
|
113
|
+
"type": "error"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"inputs": [
|
|
117
|
+
{
|
|
118
|
+
"internalType": "uint256",
|
|
119
|
+
"name": "amountLD",
|
|
120
|
+
"type": "uint256"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"internalType": "uint256",
|
|
124
|
+
"name": "minAmountLD",
|
|
125
|
+
"type": "uint256"
|
|
126
|
+
}
|
|
127
|
+
],
|
|
128
|
+
"name": "SlippageExceeded",
|
|
129
|
+
"type": "error"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"inputs": [],
|
|
133
|
+
"name": "SlippageTooHigh",
|
|
134
|
+
"type": "error"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"inputs": [],
|
|
138
|
+
"name": "Unauthorized",
|
|
139
|
+
"type": "error"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"inputs": [],
|
|
143
|
+
"name": "UnreceivedTokenNotFound",
|
|
144
|
+
"type": "error"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"anonymous": false,
|
|
148
|
+
"inputs": [
|
|
149
|
+
{
|
|
150
|
+
"indexed": true,
|
|
151
|
+
"internalType": "uint32",
|
|
152
|
+
"name": "dstEid",
|
|
153
|
+
"type": "uint32"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"indexed": true,
|
|
157
|
+
"internalType": "uint40",
|
|
158
|
+
"name": "busNum",
|
|
159
|
+
"type": "uint40"
|
|
160
|
+
}
|
|
161
|
+
],
|
|
162
|
+
"name": "BusDriven",
|
|
163
|
+
"type": "event"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"anonymous": false,
|
|
167
|
+
"inputs": [
|
|
168
|
+
{
|
|
169
|
+
"indexed": true,
|
|
170
|
+
"internalType": "uint32",
|
|
171
|
+
"name": "dstEid",
|
|
172
|
+
"type": "uint32"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"indexed": true,
|
|
176
|
+
"internalType": "uint40",
|
|
177
|
+
"name": "busNum",
|
|
178
|
+
"type": "uint40"
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"indexed": false,
|
|
182
|
+
"internalType": "bytes32",
|
|
183
|
+
"name": "passenger",
|
|
184
|
+
"type": "bytes32"
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"indexed": false,
|
|
188
|
+
"internalType": "uint64",
|
|
189
|
+
"name": "amountSD",
|
|
190
|
+
"type": "uint64"
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"indexed": false,
|
|
194
|
+
"internalType": "bool",
|
|
195
|
+
"name": "full",
|
|
196
|
+
"type": "bool"
|
|
197
|
+
}
|
|
198
|
+
],
|
|
199
|
+
"name": "BusRode",
|
|
200
|
+
"type": "event"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"anonymous": false,
|
|
204
|
+
"inputs": [
|
|
205
|
+
{
|
|
206
|
+
"indexed": false,
|
|
207
|
+
"internalType": "uint32",
|
|
208
|
+
"name": "srcEid",
|
|
209
|
+
"type": "uint32"
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"components": [
|
|
213
|
+
{
|
|
214
|
+
"internalType": "uint32",
|
|
215
|
+
"name": "srcEid",
|
|
216
|
+
"type": "uint32"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"internalType": "uint64",
|
|
220
|
+
"name": "amount",
|
|
221
|
+
"type": "uint64"
|
|
222
|
+
}
|
|
223
|
+
],
|
|
224
|
+
"indexed": false,
|
|
225
|
+
"internalType": "struct Credit[]",
|
|
226
|
+
"name": "credits",
|
|
227
|
+
"type": "tuple[]"
|
|
228
|
+
}
|
|
229
|
+
],
|
|
230
|
+
"name": "CreditsReceived",
|
|
231
|
+
"type": "event"
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"anonymous": false,
|
|
235
|
+
"inputs": [
|
|
236
|
+
{
|
|
237
|
+
"indexed": false,
|
|
238
|
+
"internalType": "uint32",
|
|
239
|
+
"name": "dstEid",
|
|
240
|
+
"type": "uint32"
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"components": [
|
|
244
|
+
{
|
|
245
|
+
"internalType": "uint32",
|
|
246
|
+
"name": "srcEid",
|
|
247
|
+
"type": "uint32"
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"internalType": "uint64",
|
|
251
|
+
"name": "amount",
|
|
252
|
+
"type": "uint64"
|
|
253
|
+
}
|
|
254
|
+
],
|
|
255
|
+
"indexed": false,
|
|
256
|
+
"internalType": "struct Credit[]",
|
|
257
|
+
"name": "credits",
|
|
258
|
+
"type": "tuple[]"
|
|
259
|
+
}
|
|
260
|
+
],
|
|
261
|
+
"name": "CreditsSent",
|
|
262
|
+
"type": "event"
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"anonymous": false,
|
|
266
|
+
"inputs": [
|
|
267
|
+
{
|
|
268
|
+
"indexed": true,
|
|
269
|
+
"internalType": "address",
|
|
270
|
+
"name": "payer",
|
|
271
|
+
"type": "address"
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
"indexed": true,
|
|
275
|
+
"internalType": "address",
|
|
276
|
+
"name": "receiver",
|
|
277
|
+
"type": "address"
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
"indexed": false,
|
|
281
|
+
"internalType": "uint256",
|
|
282
|
+
"name": "amountLD",
|
|
283
|
+
"type": "uint256"
|
|
284
|
+
}
|
|
285
|
+
],
|
|
286
|
+
"name": "Deposited",
|
|
287
|
+
"type": "event"
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"anonymous": false,
|
|
291
|
+
"inputs": [
|
|
292
|
+
{
|
|
293
|
+
"indexed": true,
|
|
294
|
+
"internalType": "bytes32",
|
|
295
|
+
"name": "guid",
|
|
296
|
+
"type": "bytes32"
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"indexed": false,
|
|
300
|
+
"internalType": "uint32",
|
|
301
|
+
"name": "srcEid",
|
|
302
|
+
"type": "uint32"
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
"indexed": true,
|
|
306
|
+
"internalType": "address",
|
|
307
|
+
"name": "toAddress",
|
|
308
|
+
"type": "address"
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
"indexed": false,
|
|
312
|
+
"internalType": "uint256",
|
|
313
|
+
"name": "amountReceivedLD",
|
|
314
|
+
"type": "uint256"
|
|
315
|
+
}
|
|
316
|
+
],
|
|
317
|
+
"name": "OFTReceived",
|
|
318
|
+
"type": "event"
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
"anonymous": false,
|
|
322
|
+
"inputs": [
|
|
323
|
+
{
|
|
324
|
+
"indexed": true,
|
|
325
|
+
"internalType": "bytes32",
|
|
326
|
+
"name": "guid",
|
|
327
|
+
"type": "bytes32"
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
"indexed": false,
|
|
331
|
+
"internalType": "uint32",
|
|
332
|
+
"name": "dstEid",
|
|
333
|
+
"type": "uint32"
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
"indexed": true,
|
|
337
|
+
"internalType": "address",
|
|
338
|
+
"name": "fromAddress",
|
|
339
|
+
"type": "address"
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
"indexed": false,
|
|
343
|
+
"internalType": "uint256",
|
|
344
|
+
"name": "amountSentLD",
|
|
345
|
+
"type": "uint256"
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"indexed": false,
|
|
349
|
+
"internalType": "uint256",
|
|
350
|
+
"name": "amountReceivedLD",
|
|
351
|
+
"type": "uint256"
|
|
352
|
+
}
|
|
353
|
+
],
|
|
354
|
+
"name": "OFTSent",
|
|
355
|
+
"type": "event"
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
"anonymous": false,
|
|
359
|
+
"inputs": [
|
|
360
|
+
{
|
|
361
|
+
"indexed": true,
|
|
362
|
+
"internalType": "address",
|
|
363
|
+
"name": "previousOwner",
|
|
364
|
+
"type": "address"
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
"indexed": true,
|
|
368
|
+
"internalType": "address",
|
|
369
|
+
"name": "newOwner",
|
|
370
|
+
"type": "address"
|
|
371
|
+
}
|
|
372
|
+
],
|
|
373
|
+
"name": "OwnershipTransferred",
|
|
374
|
+
"type": "event"
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
"anonymous": false,
|
|
378
|
+
"inputs": [
|
|
379
|
+
{
|
|
380
|
+
"indexed": true,
|
|
381
|
+
"internalType": "address",
|
|
382
|
+
"name": "payer",
|
|
383
|
+
"type": "address"
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
"indexed": true,
|
|
387
|
+
"internalType": "address",
|
|
388
|
+
"name": "receiver",
|
|
389
|
+
"type": "address"
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
"indexed": false,
|
|
393
|
+
"internalType": "uint256",
|
|
394
|
+
"name": "amountLD",
|
|
395
|
+
"type": "uint256"
|
|
396
|
+
}
|
|
397
|
+
],
|
|
398
|
+
"name": "Redeemed",
|
|
399
|
+
"type": "event"
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
"anonymous": false,
|
|
403
|
+
"inputs": [
|
|
404
|
+
{
|
|
405
|
+
"indexed": false,
|
|
406
|
+
"internalType": "bytes32",
|
|
407
|
+
"name": "guid",
|
|
408
|
+
"type": "bytes32"
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
"indexed": false,
|
|
412
|
+
"internalType": "uint8",
|
|
413
|
+
"name": "index",
|
|
414
|
+
"type": "uint8"
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
"indexed": false,
|
|
418
|
+
"internalType": "address",
|
|
419
|
+
"name": "receiver",
|
|
420
|
+
"type": "address"
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
"indexed": false,
|
|
424
|
+
"internalType": "uint256",
|
|
425
|
+
"name": "amountLD",
|
|
426
|
+
"type": "uint256"
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
"indexed": false,
|
|
430
|
+
"internalType": "bytes",
|
|
431
|
+
"name": "composeMsg",
|
|
432
|
+
"type": "bytes"
|
|
433
|
+
}
|
|
434
|
+
],
|
|
435
|
+
"name": "UnreceivedTokenCached",
|
|
436
|
+
"type": "event"
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
"inputs": [
|
|
440
|
+
{
|
|
441
|
+
"internalType": "uint256",
|
|
442
|
+
"name": "_amountLD",
|
|
443
|
+
"type": "uint256"
|
|
444
|
+
}
|
|
445
|
+
],
|
|
446
|
+
"name": "addTreasuryFee",
|
|
447
|
+
"outputs": [],
|
|
448
|
+
"stateMutability": "payable",
|
|
449
|
+
"type": "function"
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
"inputs": [],
|
|
453
|
+
"name": "approvalRequired",
|
|
454
|
+
"outputs": [
|
|
455
|
+
{
|
|
456
|
+
"internalType": "bool",
|
|
457
|
+
"name": "",
|
|
458
|
+
"type": "bool"
|
|
459
|
+
}
|
|
460
|
+
],
|
|
461
|
+
"stateMutability": "pure",
|
|
462
|
+
"type": "function"
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
"inputs": [
|
|
466
|
+
{
|
|
467
|
+
"internalType": "address",
|
|
468
|
+
"name": "_receiver",
|
|
469
|
+
"type": "address"
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
"internalType": "uint256",
|
|
473
|
+
"name": "_amountLD",
|
|
474
|
+
"type": "uint256"
|
|
475
|
+
}
|
|
476
|
+
],
|
|
477
|
+
"name": "deposit",
|
|
478
|
+
"outputs": [
|
|
479
|
+
{
|
|
480
|
+
"internalType": "uint256",
|
|
481
|
+
"name": "amountLD",
|
|
482
|
+
"type": "uint256"
|
|
483
|
+
}
|
|
484
|
+
],
|
|
485
|
+
"stateMutability": "payable",
|
|
486
|
+
"type": "function"
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
"inputs": [],
|
|
490
|
+
"name": "getAddressConfig",
|
|
491
|
+
"outputs": [
|
|
492
|
+
{
|
|
493
|
+
"components": [
|
|
494
|
+
{
|
|
495
|
+
"internalType": "address",
|
|
496
|
+
"name": "feeLib",
|
|
497
|
+
"type": "address"
|
|
498
|
+
},
|
|
499
|
+
{
|
|
500
|
+
"internalType": "address",
|
|
501
|
+
"name": "planner",
|
|
502
|
+
"type": "address"
|
|
503
|
+
},
|
|
504
|
+
{
|
|
505
|
+
"internalType": "address",
|
|
506
|
+
"name": "treasurer",
|
|
507
|
+
"type": "address"
|
|
508
|
+
},
|
|
509
|
+
{
|
|
510
|
+
"internalType": "address",
|
|
511
|
+
"name": "messaging",
|
|
512
|
+
"type": "address"
|
|
513
|
+
},
|
|
514
|
+
{
|
|
515
|
+
"internalType": "address",
|
|
516
|
+
"name": "lzToken",
|
|
517
|
+
"type": "address"
|
|
518
|
+
}
|
|
519
|
+
],
|
|
520
|
+
"internalType": "struct AddressConfig",
|
|
521
|
+
"name": "",
|
|
522
|
+
"type": "tuple"
|
|
523
|
+
}
|
|
524
|
+
],
|
|
525
|
+
"stateMutability": "view",
|
|
526
|
+
"type": "function"
|
|
527
|
+
},
|
|
528
|
+
{
|
|
529
|
+
"inputs": [],
|
|
530
|
+
"name": "lpToken",
|
|
531
|
+
"outputs": [
|
|
532
|
+
{
|
|
533
|
+
"internalType": "address",
|
|
534
|
+
"name": "",
|
|
535
|
+
"type": "address"
|
|
536
|
+
}
|
|
537
|
+
],
|
|
538
|
+
"stateMutability": "view",
|
|
539
|
+
"type": "function"
|
|
540
|
+
},
|
|
541
|
+
{
|
|
542
|
+
"inputs": [],
|
|
543
|
+
"name": "oftVersion",
|
|
544
|
+
"outputs": [
|
|
545
|
+
{
|
|
546
|
+
"internalType": "bytes4",
|
|
547
|
+
"name": "interfaceId",
|
|
548
|
+
"type": "bytes4"
|
|
549
|
+
},
|
|
550
|
+
{
|
|
551
|
+
"internalType": "uint64",
|
|
552
|
+
"name": "version",
|
|
553
|
+
"type": "uint64"
|
|
554
|
+
}
|
|
555
|
+
],
|
|
556
|
+
"stateMutability": "pure",
|
|
557
|
+
"type": "function"
|
|
558
|
+
},
|
|
559
|
+
{
|
|
560
|
+
"inputs": [],
|
|
561
|
+
"name": "owner",
|
|
562
|
+
"outputs": [
|
|
563
|
+
{
|
|
564
|
+
"internalType": "address",
|
|
565
|
+
"name": "",
|
|
566
|
+
"type": "address"
|
|
567
|
+
}
|
|
568
|
+
],
|
|
569
|
+
"stateMutability": "view",
|
|
570
|
+
"type": "function"
|
|
571
|
+
},
|
|
572
|
+
{
|
|
573
|
+
"inputs": [
|
|
574
|
+
{
|
|
575
|
+
"internalType": "uint32",
|
|
576
|
+
"name": "eid",
|
|
577
|
+
"type": "uint32"
|
|
578
|
+
}
|
|
579
|
+
],
|
|
580
|
+
"name": "paths",
|
|
581
|
+
"outputs": [
|
|
582
|
+
{
|
|
583
|
+
"internalType": "uint64",
|
|
584
|
+
"name": "credit",
|
|
585
|
+
"type": "uint64"
|
|
586
|
+
},
|
|
587
|
+
{
|
|
588
|
+
"internalType": "uint32",
|
|
589
|
+
"name": "busNum",
|
|
590
|
+
"type": "uint32"
|
|
591
|
+
},
|
|
592
|
+
{
|
|
593
|
+
"internalType": "uint64",
|
|
594
|
+
"name": "startBlock",
|
|
595
|
+
"type": "uint64"
|
|
596
|
+
},
|
|
597
|
+
{
|
|
598
|
+
"internalType": "uint8",
|
|
599
|
+
"name": "passengers",
|
|
600
|
+
"type": "uint8"
|
|
601
|
+
},
|
|
602
|
+
{
|
|
603
|
+
"internalType": "uint8",
|
|
604
|
+
"name": "capacity",
|
|
605
|
+
"type": "uint8"
|
|
606
|
+
},
|
|
607
|
+
{
|
|
608
|
+
"internalType": "uint40",
|
|
609
|
+
"name": "fare",
|
|
610
|
+
"type": "uint40"
|
|
611
|
+
},
|
|
612
|
+
{
|
|
613
|
+
"internalType": "uint40",
|
|
614
|
+
"name": "fareBox",
|
|
615
|
+
"type": "uint40"
|
|
616
|
+
},
|
|
617
|
+
{
|
|
618
|
+
"internalType": "bytes32",
|
|
619
|
+
"name": "root",
|
|
620
|
+
"type": "bytes32"
|
|
621
|
+
}
|
|
622
|
+
],
|
|
623
|
+
"stateMutability": "view",
|
|
624
|
+
"type": "function"
|
|
625
|
+
},
|
|
626
|
+
{
|
|
627
|
+
"inputs": [
|
|
628
|
+
{
|
|
629
|
+
"components": [
|
|
630
|
+
{
|
|
631
|
+
"internalType": "uint32",
|
|
632
|
+
"name": "dstEid",
|
|
633
|
+
"type": "uint32"
|
|
634
|
+
},
|
|
635
|
+
{
|
|
636
|
+
"internalType": "bytes32",
|
|
637
|
+
"name": "to",
|
|
638
|
+
"type": "bytes32"
|
|
639
|
+
},
|
|
640
|
+
{
|
|
641
|
+
"internalType": "uint256",
|
|
642
|
+
"name": "amountLD",
|
|
643
|
+
"type": "uint256"
|
|
644
|
+
},
|
|
645
|
+
{
|
|
646
|
+
"internalType": "uint256",
|
|
647
|
+
"name": "minAmountLD",
|
|
648
|
+
"type": "uint256"
|
|
649
|
+
},
|
|
650
|
+
{
|
|
651
|
+
"internalType": "bytes",
|
|
652
|
+
"name": "extraOptions",
|
|
653
|
+
"type": "bytes"
|
|
654
|
+
},
|
|
655
|
+
{
|
|
656
|
+
"internalType": "bytes",
|
|
657
|
+
"name": "composeMsg",
|
|
658
|
+
"type": "bytes"
|
|
659
|
+
},
|
|
660
|
+
{
|
|
661
|
+
"internalType": "bytes",
|
|
662
|
+
"name": "oftCmd",
|
|
663
|
+
"type": "bytes"
|
|
664
|
+
}
|
|
665
|
+
],
|
|
666
|
+
"internalType": "struct SendParam",
|
|
667
|
+
"name": "_sendParam",
|
|
668
|
+
"type": "tuple"
|
|
669
|
+
}
|
|
670
|
+
],
|
|
671
|
+
"name": "quoteOFT",
|
|
672
|
+
"outputs": [
|
|
673
|
+
{
|
|
674
|
+
"components": [
|
|
675
|
+
{
|
|
676
|
+
"internalType": "uint256",
|
|
677
|
+
"name": "minAmountLD",
|
|
678
|
+
"type": "uint256"
|
|
679
|
+
},
|
|
680
|
+
{
|
|
681
|
+
"internalType": "uint256",
|
|
682
|
+
"name": "maxAmountLD",
|
|
683
|
+
"type": "uint256"
|
|
684
|
+
}
|
|
685
|
+
],
|
|
686
|
+
"internalType": "struct OFTLimit",
|
|
687
|
+
"name": "limit",
|
|
688
|
+
"type": "tuple"
|
|
689
|
+
},
|
|
690
|
+
{
|
|
691
|
+
"components": [
|
|
692
|
+
{
|
|
693
|
+
"internalType": "int256",
|
|
694
|
+
"name": "feeAmountLD",
|
|
695
|
+
"type": "int256"
|
|
696
|
+
},
|
|
697
|
+
{
|
|
698
|
+
"internalType": "string",
|
|
699
|
+
"name": "description",
|
|
700
|
+
"type": "string"
|
|
701
|
+
}
|
|
702
|
+
],
|
|
703
|
+
"internalType": "struct OFTFeeDetail[]",
|
|
704
|
+
"name": "oftFeeDetails",
|
|
705
|
+
"type": "tuple[]"
|
|
706
|
+
},
|
|
707
|
+
{
|
|
708
|
+
"components": [
|
|
709
|
+
{
|
|
710
|
+
"internalType": "uint256",
|
|
711
|
+
"name": "amountSentLD",
|
|
712
|
+
"type": "uint256"
|
|
713
|
+
},
|
|
714
|
+
{
|
|
715
|
+
"internalType": "uint256",
|
|
716
|
+
"name": "amountReceivedLD",
|
|
717
|
+
"type": "uint256"
|
|
718
|
+
}
|
|
719
|
+
],
|
|
720
|
+
"internalType": "struct OFTReceipt",
|
|
721
|
+
"name": "receipt",
|
|
722
|
+
"type": "tuple"
|
|
723
|
+
}
|
|
724
|
+
],
|
|
725
|
+
"stateMutability": "view",
|
|
726
|
+
"type": "function"
|
|
727
|
+
},
|
|
728
|
+
{
|
|
729
|
+
"inputs": [
|
|
730
|
+
{
|
|
731
|
+
"components": [
|
|
732
|
+
{
|
|
733
|
+
"internalType": "uint32",
|
|
734
|
+
"name": "dstEid",
|
|
735
|
+
"type": "uint32"
|
|
736
|
+
},
|
|
737
|
+
{
|
|
738
|
+
"internalType": "bytes32",
|
|
739
|
+
"name": "to",
|
|
740
|
+
"type": "bytes32"
|
|
741
|
+
},
|
|
742
|
+
{
|
|
743
|
+
"internalType": "uint256",
|
|
744
|
+
"name": "amountLD",
|
|
745
|
+
"type": "uint256"
|
|
746
|
+
},
|
|
747
|
+
{
|
|
748
|
+
"internalType": "uint256",
|
|
749
|
+
"name": "minAmountLD",
|
|
750
|
+
"type": "uint256"
|
|
751
|
+
},
|
|
752
|
+
{
|
|
753
|
+
"internalType": "bytes",
|
|
754
|
+
"name": "extraOptions",
|
|
755
|
+
"type": "bytes"
|
|
756
|
+
}
|
|
757
|
+
],
|
|
758
|
+
"internalType": "struct RedeemSendParam",
|
|
759
|
+
"name": "_sendParam",
|
|
760
|
+
"type": "tuple"
|
|
761
|
+
},
|
|
762
|
+
{
|
|
763
|
+
"internalType": "bool",
|
|
764
|
+
"name": "_payInLzToken",
|
|
765
|
+
"type": "bool"
|
|
766
|
+
}
|
|
767
|
+
],
|
|
768
|
+
"name": "quoteRedeemSend",
|
|
769
|
+
"outputs": [
|
|
770
|
+
{
|
|
771
|
+
"components": [
|
|
772
|
+
{
|
|
773
|
+
"internalType": "uint256",
|
|
774
|
+
"name": "nativeFee",
|
|
775
|
+
"type": "uint256"
|
|
776
|
+
},
|
|
777
|
+
{
|
|
778
|
+
"internalType": "uint256",
|
|
779
|
+
"name": "lzTokenFee",
|
|
780
|
+
"type": "uint256"
|
|
781
|
+
}
|
|
782
|
+
],
|
|
783
|
+
"internalType": "struct MessagingFee",
|
|
784
|
+
"name": "fee",
|
|
785
|
+
"type": "tuple"
|
|
786
|
+
}
|
|
787
|
+
],
|
|
788
|
+
"stateMutability": "view",
|
|
789
|
+
"type": "function"
|
|
790
|
+
},
|
|
791
|
+
{
|
|
792
|
+
"inputs": [
|
|
793
|
+
{
|
|
794
|
+
"components": [
|
|
795
|
+
{
|
|
796
|
+
"internalType": "uint32",
|
|
797
|
+
"name": "dstEid",
|
|
798
|
+
"type": "uint32"
|
|
799
|
+
},
|
|
800
|
+
{
|
|
801
|
+
"internalType": "bytes32",
|
|
802
|
+
"name": "to",
|
|
803
|
+
"type": "bytes32"
|
|
804
|
+
},
|
|
805
|
+
{
|
|
806
|
+
"internalType": "uint256",
|
|
807
|
+
"name": "amountLD",
|
|
808
|
+
"type": "uint256"
|
|
809
|
+
},
|
|
810
|
+
{
|
|
811
|
+
"internalType": "uint256",
|
|
812
|
+
"name": "minAmountLD",
|
|
813
|
+
"type": "uint256"
|
|
814
|
+
},
|
|
815
|
+
{
|
|
816
|
+
"internalType": "bytes",
|
|
817
|
+
"name": "extraOptions",
|
|
818
|
+
"type": "bytes"
|
|
819
|
+
},
|
|
820
|
+
{
|
|
821
|
+
"internalType": "bytes",
|
|
822
|
+
"name": "composeMsg",
|
|
823
|
+
"type": "bytes"
|
|
824
|
+
},
|
|
825
|
+
{
|
|
826
|
+
"internalType": "bytes",
|
|
827
|
+
"name": "oftCmd",
|
|
828
|
+
"type": "bytes"
|
|
829
|
+
}
|
|
830
|
+
],
|
|
831
|
+
"internalType": "struct SendParam",
|
|
832
|
+
"name": "_sendParam",
|
|
833
|
+
"type": "tuple"
|
|
834
|
+
},
|
|
835
|
+
{
|
|
836
|
+
"internalType": "bool",
|
|
837
|
+
"name": "_payInLzToken",
|
|
838
|
+
"type": "bool"
|
|
839
|
+
}
|
|
840
|
+
],
|
|
841
|
+
"name": "quoteSend",
|
|
842
|
+
"outputs": [
|
|
843
|
+
{
|
|
844
|
+
"components": [
|
|
845
|
+
{
|
|
846
|
+
"internalType": "uint256",
|
|
847
|
+
"name": "nativeFee",
|
|
848
|
+
"type": "uint256"
|
|
849
|
+
},
|
|
850
|
+
{
|
|
851
|
+
"internalType": "uint256",
|
|
852
|
+
"name": "lzTokenFee",
|
|
853
|
+
"type": "uint256"
|
|
854
|
+
}
|
|
855
|
+
],
|
|
856
|
+
"internalType": "struct MessagingFee",
|
|
857
|
+
"name": "fee",
|
|
858
|
+
"type": "tuple"
|
|
859
|
+
}
|
|
860
|
+
],
|
|
861
|
+
"stateMutability": "view",
|
|
862
|
+
"type": "function"
|
|
863
|
+
},
|
|
864
|
+
{
|
|
865
|
+
"inputs": [
|
|
866
|
+
{
|
|
867
|
+
"internalType": "uint32",
|
|
868
|
+
"name": "_dstEid",
|
|
869
|
+
"type": "uint32"
|
|
870
|
+
},
|
|
871
|
+
{
|
|
872
|
+
"components": [
|
|
873
|
+
{
|
|
874
|
+
"internalType": "uint32",
|
|
875
|
+
"name": "srcEid",
|
|
876
|
+
"type": "uint32"
|
|
877
|
+
},
|
|
878
|
+
{
|
|
879
|
+
"internalType": "uint64",
|
|
880
|
+
"name": "amount",
|
|
881
|
+
"type": "uint64"
|
|
882
|
+
}
|
|
883
|
+
],
|
|
884
|
+
"internalType": "struct Credit[]",
|
|
885
|
+
"name": "_credits",
|
|
886
|
+
"type": "tuple[]"
|
|
887
|
+
}
|
|
888
|
+
],
|
|
889
|
+
"name": "quoteSendCredit",
|
|
890
|
+
"outputs": [
|
|
891
|
+
{
|
|
892
|
+
"components": [
|
|
893
|
+
{
|
|
894
|
+
"internalType": "uint256",
|
|
895
|
+
"name": "nativeFee",
|
|
896
|
+
"type": "uint256"
|
|
897
|
+
},
|
|
898
|
+
{
|
|
899
|
+
"internalType": "uint256",
|
|
900
|
+
"name": "lzTokenFee",
|
|
901
|
+
"type": "uint256"
|
|
902
|
+
}
|
|
903
|
+
],
|
|
904
|
+
"internalType": "struct MessagingFee",
|
|
905
|
+
"name": "fee",
|
|
906
|
+
"type": "tuple"
|
|
907
|
+
}
|
|
908
|
+
],
|
|
909
|
+
"stateMutability": "view",
|
|
910
|
+
"type": "function"
|
|
911
|
+
},
|
|
912
|
+
{
|
|
913
|
+
"inputs": [
|
|
914
|
+
{
|
|
915
|
+
"internalType": "uint32",
|
|
916
|
+
"name": "_srcEid",
|
|
917
|
+
"type": "uint32"
|
|
918
|
+
},
|
|
919
|
+
{
|
|
920
|
+
"components": [
|
|
921
|
+
{
|
|
922
|
+
"internalType": "uint32",
|
|
923
|
+
"name": "srcEid",
|
|
924
|
+
"type": "uint32"
|
|
925
|
+
},
|
|
926
|
+
{
|
|
927
|
+
"internalType": "uint64",
|
|
928
|
+
"name": "amount",
|
|
929
|
+
"type": "uint64"
|
|
930
|
+
}
|
|
931
|
+
],
|
|
932
|
+
"internalType": "struct Credit[]",
|
|
933
|
+
"name": "_credits",
|
|
934
|
+
"type": "tuple[]"
|
|
935
|
+
}
|
|
936
|
+
],
|
|
937
|
+
"name": "receiveCredit",
|
|
938
|
+
"outputs": [],
|
|
939
|
+
"stateMutability": "nonpayable",
|
|
940
|
+
"type": "function"
|
|
941
|
+
},
|
|
942
|
+
{
|
|
943
|
+
"inputs": [
|
|
944
|
+
{
|
|
945
|
+
"components": [
|
|
946
|
+
{
|
|
947
|
+
"internalType": "uint32",
|
|
948
|
+
"name": "srcEid",
|
|
949
|
+
"type": "uint32"
|
|
950
|
+
},
|
|
951
|
+
{
|
|
952
|
+
"internalType": "bytes32",
|
|
953
|
+
"name": "sender",
|
|
954
|
+
"type": "bytes32"
|
|
955
|
+
},
|
|
956
|
+
{
|
|
957
|
+
"internalType": "uint64",
|
|
958
|
+
"name": "nonce",
|
|
959
|
+
"type": "uint64"
|
|
960
|
+
}
|
|
961
|
+
],
|
|
962
|
+
"internalType": "struct Origin",
|
|
963
|
+
"name": "_origin",
|
|
964
|
+
"type": "tuple"
|
|
965
|
+
},
|
|
966
|
+
{
|
|
967
|
+
"internalType": "bytes32",
|
|
968
|
+
"name": "_guid",
|
|
969
|
+
"type": "bytes32"
|
|
970
|
+
},
|
|
971
|
+
{
|
|
972
|
+
"components": [
|
|
973
|
+
{
|
|
974
|
+
"internalType": "address[]",
|
|
975
|
+
"name": "receivers",
|
|
976
|
+
"type": "address[]"
|
|
977
|
+
},
|
|
978
|
+
{
|
|
979
|
+
"internalType": "uint64[]",
|
|
980
|
+
"name": "amountsSD",
|
|
981
|
+
"type": "uint64[]"
|
|
982
|
+
},
|
|
983
|
+
{
|
|
984
|
+
"internalType": "bytes",
|
|
985
|
+
"name": "composeMsg",
|
|
986
|
+
"type": "bytes"
|
|
987
|
+
}
|
|
988
|
+
],
|
|
989
|
+
"internalType": "struct TokenMessage",
|
|
990
|
+
"name": "_tokenMessage",
|
|
991
|
+
"type": "tuple"
|
|
992
|
+
}
|
|
993
|
+
],
|
|
994
|
+
"name": "receiveToken",
|
|
995
|
+
"outputs": [],
|
|
996
|
+
"stateMutability": "nonpayable",
|
|
997
|
+
"type": "function"
|
|
998
|
+
},
|
|
999
|
+
{
|
|
1000
|
+
"inputs": [
|
|
1001
|
+
{
|
|
1002
|
+
"internalType": "uint256",
|
|
1003
|
+
"name": "_amountLD",
|
|
1004
|
+
"type": "uint256"
|
|
1005
|
+
},
|
|
1006
|
+
{
|
|
1007
|
+
"internalType": "address",
|
|
1008
|
+
"name": "_receiver",
|
|
1009
|
+
"type": "address"
|
|
1010
|
+
}
|
|
1011
|
+
],
|
|
1012
|
+
"name": "redeem",
|
|
1013
|
+
"outputs": [
|
|
1014
|
+
{
|
|
1015
|
+
"internalType": "uint256",
|
|
1016
|
+
"name": "amountLD",
|
|
1017
|
+
"type": "uint256"
|
|
1018
|
+
}
|
|
1019
|
+
],
|
|
1020
|
+
"stateMutability": "nonpayable",
|
|
1021
|
+
"type": "function"
|
|
1022
|
+
},
|
|
1023
|
+
{
|
|
1024
|
+
"inputs": [
|
|
1025
|
+
{
|
|
1026
|
+
"components": [
|
|
1027
|
+
{
|
|
1028
|
+
"internalType": "uint32",
|
|
1029
|
+
"name": "dstEid",
|
|
1030
|
+
"type": "uint32"
|
|
1031
|
+
},
|
|
1032
|
+
{
|
|
1033
|
+
"internalType": "bytes32",
|
|
1034
|
+
"name": "to",
|
|
1035
|
+
"type": "bytes32"
|
|
1036
|
+
},
|
|
1037
|
+
{
|
|
1038
|
+
"internalType": "uint256",
|
|
1039
|
+
"name": "amountLD",
|
|
1040
|
+
"type": "uint256"
|
|
1041
|
+
},
|
|
1042
|
+
{
|
|
1043
|
+
"internalType": "uint256",
|
|
1044
|
+
"name": "minAmountLD",
|
|
1045
|
+
"type": "uint256"
|
|
1046
|
+
},
|
|
1047
|
+
{
|
|
1048
|
+
"internalType": "bytes",
|
|
1049
|
+
"name": "extraOptions",
|
|
1050
|
+
"type": "bytes"
|
|
1051
|
+
}
|
|
1052
|
+
],
|
|
1053
|
+
"internalType": "struct RedeemSendParam",
|
|
1054
|
+
"name": "_sendParam",
|
|
1055
|
+
"type": "tuple"
|
|
1056
|
+
},
|
|
1057
|
+
{
|
|
1058
|
+
"components": [
|
|
1059
|
+
{
|
|
1060
|
+
"internalType": "uint256",
|
|
1061
|
+
"name": "nativeFee",
|
|
1062
|
+
"type": "uint256"
|
|
1063
|
+
},
|
|
1064
|
+
{
|
|
1065
|
+
"internalType": "uint256",
|
|
1066
|
+
"name": "lzTokenFee",
|
|
1067
|
+
"type": "uint256"
|
|
1068
|
+
}
|
|
1069
|
+
],
|
|
1070
|
+
"internalType": "struct MessagingFee",
|
|
1071
|
+
"name": "_fee",
|
|
1072
|
+
"type": "tuple"
|
|
1073
|
+
},
|
|
1074
|
+
{
|
|
1075
|
+
"internalType": "address",
|
|
1076
|
+
"name": "_refundAddress",
|
|
1077
|
+
"type": "address"
|
|
1078
|
+
}
|
|
1079
|
+
],
|
|
1080
|
+
"name": "redeemSend",
|
|
1081
|
+
"outputs": [
|
|
1082
|
+
{
|
|
1083
|
+
"components": [
|
|
1084
|
+
{
|
|
1085
|
+
"internalType": "bytes32",
|
|
1086
|
+
"name": "guid",
|
|
1087
|
+
"type": "bytes32"
|
|
1088
|
+
},
|
|
1089
|
+
{
|
|
1090
|
+
"internalType": "uint64",
|
|
1091
|
+
"name": "nonce",
|
|
1092
|
+
"type": "uint64"
|
|
1093
|
+
},
|
|
1094
|
+
{
|
|
1095
|
+
"components": [
|
|
1096
|
+
{
|
|
1097
|
+
"internalType": "uint256",
|
|
1098
|
+
"name": "nativeFee",
|
|
1099
|
+
"type": "uint256"
|
|
1100
|
+
},
|
|
1101
|
+
{
|
|
1102
|
+
"internalType": "uint256",
|
|
1103
|
+
"name": "lzTokenFee",
|
|
1104
|
+
"type": "uint256"
|
|
1105
|
+
}
|
|
1106
|
+
],
|
|
1107
|
+
"internalType": "struct MessagingFee",
|
|
1108
|
+
"name": "fee",
|
|
1109
|
+
"type": "tuple"
|
|
1110
|
+
}
|
|
1111
|
+
],
|
|
1112
|
+
"internalType": "struct MessagingReceipt",
|
|
1113
|
+
"name": "receipt",
|
|
1114
|
+
"type": "tuple"
|
|
1115
|
+
},
|
|
1116
|
+
{
|
|
1117
|
+
"internalType": "uint256",
|
|
1118
|
+
"name": "amountLD",
|
|
1119
|
+
"type": "uint256"
|
|
1120
|
+
}
|
|
1121
|
+
],
|
|
1122
|
+
"stateMutability": "payable",
|
|
1123
|
+
"type": "function"
|
|
1124
|
+
},
|
|
1125
|
+
{
|
|
1126
|
+
"inputs": [
|
|
1127
|
+
{
|
|
1128
|
+
"internalType": "address",
|
|
1129
|
+
"name": "_owner",
|
|
1130
|
+
"type": "address"
|
|
1131
|
+
}
|
|
1132
|
+
],
|
|
1133
|
+
"name": "redeemable",
|
|
1134
|
+
"outputs": [
|
|
1135
|
+
{
|
|
1136
|
+
"internalType": "uint256",
|
|
1137
|
+
"name": "amountLD",
|
|
1138
|
+
"type": "uint256"
|
|
1139
|
+
}
|
|
1140
|
+
],
|
|
1141
|
+
"stateMutability": "view",
|
|
1142
|
+
"type": "function"
|
|
1143
|
+
},
|
|
1144
|
+
{
|
|
1145
|
+
"inputs": [],
|
|
1146
|
+
"name": "renounceOwnership",
|
|
1147
|
+
"outputs": [],
|
|
1148
|
+
"stateMutability": "nonpayable",
|
|
1149
|
+
"type": "function"
|
|
1150
|
+
},
|
|
1151
|
+
{
|
|
1152
|
+
"inputs": [
|
|
1153
|
+
{
|
|
1154
|
+
"internalType": "bytes32",
|
|
1155
|
+
"name": "_guid",
|
|
1156
|
+
"type": "bytes32"
|
|
1157
|
+
},
|
|
1158
|
+
{
|
|
1159
|
+
"internalType": "uint8",
|
|
1160
|
+
"name": "_index",
|
|
1161
|
+
"type": "uint8"
|
|
1162
|
+
},
|
|
1163
|
+
{
|
|
1164
|
+
"internalType": "address",
|
|
1165
|
+
"name": "_receiver",
|
|
1166
|
+
"type": "address"
|
|
1167
|
+
},
|
|
1168
|
+
{
|
|
1169
|
+
"internalType": "uint256",
|
|
1170
|
+
"name": "_amountLD",
|
|
1171
|
+
"type": "uint256"
|
|
1172
|
+
},
|
|
1173
|
+
{
|
|
1174
|
+
"internalType": "bytes",
|
|
1175
|
+
"name": "_composeMsg",
|
|
1176
|
+
"type": "bytes"
|
|
1177
|
+
}
|
|
1178
|
+
],
|
|
1179
|
+
"name": "retryReceiveToken",
|
|
1180
|
+
"outputs": [],
|
|
1181
|
+
"stateMutability": "nonpayable",
|
|
1182
|
+
"type": "function"
|
|
1183
|
+
},
|
|
1184
|
+
{
|
|
1185
|
+
"inputs": [
|
|
1186
|
+
{
|
|
1187
|
+
"components": [
|
|
1188
|
+
{
|
|
1189
|
+
"internalType": "uint32",
|
|
1190
|
+
"name": "dstEid",
|
|
1191
|
+
"type": "uint32"
|
|
1192
|
+
},
|
|
1193
|
+
{
|
|
1194
|
+
"internalType": "bytes32",
|
|
1195
|
+
"name": "to",
|
|
1196
|
+
"type": "bytes32"
|
|
1197
|
+
},
|
|
1198
|
+
{
|
|
1199
|
+
"internalType": "uint256",
|
|
1200
|
+
"name": "amountLD",
|
|
1201
|
+
"type": "uint256"
|
|
1202
|
+
},
|
|
1203
|
+
{
|
|
1204
|
+
"internalType": "uint256",
|
|
1205
|
+
"name": "minAmountLD",
|
|
1206
|
+
"type": "uint256"
|
|
1207
|
+
},
|
|
1208
|
+
{
|
|
1209
|
+
"internalType": "bytes",
|
|
1210
|
+
"name": "extraOptions",
|
|
1211
|
+
"type": "bytes"
|
|
1212
|
+
},
|
|
1213
|
+
{
|
|
1214
|
+
"internalType": "bytes",
|
|
1215
|
+
"name": "composeMsg",
|
|
1216
|
+
"type": "bytes"
|
|
1217
|
+
},
|
|
1218
|
+
{
|
|
1219
|
+
"internalType": "bytes",
|
|
1220
|
+
"name": "oftCmd",
|
|
1221
|
+
"type": "bytes"
|
|
1222
|
+
}
|
|
1223
|
+
],
|
|
1224
|
+
"internalType": "struct SendParam",
|
|
1225
|
+
"name": "_sendParam",
|
|
1226
|
+
"type": "tuple"
|
|
1227
|
+
},
|
|
1228
|
+
{
|
|
1229
|
+
"components": [
|
|
1230
|
+
{
|
|
1231
|
+
"internalType": "uint256",
|
|
1232
|
+
"name": "nativeFee",
|
|
1233
|
+
"type": "uint256"
|
|
1234
|
+
},
|
|
1235
|
+
{
|
|
1236
|
+
"internalType": "uint256",
|
|
1237
|
+
"name": "lzTokenFee",
|
|
1238
|
+
"type": "uint256"
|
|
1239
|
+
}
|
|
1240
|
+
],
|
|
1241
|
+
"internalType": "struct MessagingFee",
|
|
1242
|
+
"name": "_fee",
|
|
1243
|
+
"type": "tuple"
|
|
1244
|
+
},
|
|
1245
|
+
{
|
|
1246
|
+
"internalType": "address",
|
|
1247
|
+
"name": "_refundAddress",
|
|
1248
|
+
"type": "address"
|
|
1249
|
+
}
|
|
1250
|
+
],
|
|
1251
|
+
"name": "send",
|
|
1252
|
+
"outputs": [
|
|
1253
|
+
{
|
|
1254
|
+
"components": [
|
|
1255
|
+
{
|
|
1256
|
+
"internalType": "bytes32",
|
|
1257
|
+
"name": "guid",
|
|
1258
|
+
"type": "bytes32"
|
|
1259
|
+
},
|
|
1260
|
+
{
|
|
1261
|
+
"internalType": "uint64",
|
|
1262
|
+
"name": "nonce",
|
|
1263
|
+
"type": "uint64"
|
|
1264
|
+
},
|
|
1265
|
+
{
|
|
1266
|
+
"components": [
|
|
1267
|
+
{
|
|
1268
|
+
"internalType": "uint256",
|
|
1269
|
+
"name": "nativeFee",
|
|
1270
|
+
"type": "uint256"
|
|
1271
|
+
},
|
|
1272
|
+
{
|
|
1273
|
+
"internalType": "uint256",
|
|
1274
|
+
"name": "lzTokenFee",
|
|
1275
|
+
"type": "uint256"
|
|
1276
|
+
}
|
|
1277
|
+
],
|
|
1278
|
+
"internalType": "struct MessagingFee",
|
|
1279
|
+
"name": "fee",
|
|
1280
|
+
"type": "tuple"
|
|
1281
|
+
}
|
|
1282
|
+
],
|
|
1283
|
+
"internalType": "struct MessagingReceipt",
|
|
1284
|
+
"name": "msgReceipt",
|
|
1285
|
+
"type": "tuple"
|
|
1286
|
+
},
|
|
1287
|
+
{
|
|
1288
|
+
"components": [
|
|
1289
|
+
{
|
|
1290
|
+
"internalType": "uint256",
|
|
1291
|
+
"name": "amountSentLD",
|
|
1292
|
+
"type": "uint256"
|
|
1293
|
+
},
|
|
1294
|
+
{
|
|
1295
|
+
"internalType": "uint256",
|
|
1296
|
+
"name": "amountReceivedLD",
|
|
1297
|
+
"type": "uint256"
|
|
1298
|
+
}
|
|
1299
|
+
],
|
|
1300
|
+
"internalType": "struct OFTReceipt",
|
|
1301
|
+
"name": "oftReceipt",
|
|
1302
|
+
"type": "tuple"
|
|
1303
|
+
}
|
|
1304
|
+
],
|
|
1305
|
+
"stateMutability": "payable",
|
|
1306
|
+
"type": "function"
|
|
1307
|
+
},
|
|
1308
|
+
{
|
|
1309
|
+
"inputs": [
|
|
1310
|
+
{
|
|
1311
|
+
"internalType": "uint32",
|
|
1312
|
+
"name": "_dstEid",
|
|
1313
|
+
"type": "uint32"
|
|
1314
|
+
},
|
|
1315
|
+
{
|
|
1316
|
+
"components": [
|
|
1317
|
+
{
|
|
1318
|
+
"internalType": "uint32",
|
|
1319
|
+
"name": "srcEid",
|
|
1320
|
+
"type": "uint32"
|
|
1321
|
+
},
|
|
1322
|
+
{
|
|
1323
|
+
"internalType": "uint64",
|
|
1324
|
+
"name": "amount",
|
|
1325
|
+
"type": "uint64"
|
|
1326
|
+
}
|
|
1327
|
+
],
|
|
1328
|
+
"internalType": "struct Credit[]",
|
|
1329
|
+
"name": "_credits",
|
|
1330
|
+
"type": "tuple[]"
|
|
1331
|
+
}
|
|
1332
|
+
],
|
|
1333
|
+
"name": "sendCredits",
|
|
1334
|
+
"outputs": [],
|
|
1335
|
+
"stateMutability": "payable",
|
|
1336
|
+
"type": "function"
|
|
1337
|
+
},
|
|
1338
|
+
{
|
|
1339
|
+
"inputs": [
|
|
1340
|
+
{
|
|
1341
|
+
"components": [
|
|
1342
|
+
{
|
|
1343
|
+
"internalType": "address",
|
|
1344
|
+
"name": "feeLib",
|
|
1345
|
+
"type": "address"
|
|
1346
|
+
},
|
|
1347
|
+
{
|
|
1348
|
+
"internalType": "address",
|
|
1349
|
+
"name": "planner",
|
|
1350
|
+
"type": "address"
|
|
1351
|
+
},
|
|
1352
|
+
{
|
|
1353
|
+
"internalType": "address",
|
|
1354
|
+
"name": "treasurer",
|
|
1355
|
+
"type": "address"
|
|
1356
|
+
},
|
|
1357
|
+
{
|
|
1358
|
+
"internalType": "address",
|
|
1359
|
+
"name": "messaging",
|
|
1360
|
+
"type": "address"
|
|
1361
|
+
},
|
|
1362
|
+
{
|
|
1363
|
+
"internalType": "address",
|
|
1364
|
+
"name": "lzToken",
|
|
1365
|
+
"type": "address"
|
|
1366
|
+
}
|
|
1367
|
+
],
|
|
1368
|
+
"internalType": "struct AddressConfig",
|
|
1369
|
+
"name": "_config",
|
|
1370
|
+
"type": "tuple"
|
|
1371
|
+
}
|
|
1372
|
+
],
|
|
1373
|
+
"name": "setAddressConfig",
|
|
1374
|
+
"outputs": [],
|
|
1375
|
+
"stateMutability": "nonpayable",
|
|
1376
|
+
"type": "function"
|
|
1377
|
+
},
|
|
1378
|
+
{
|
|
1379
|
+
"inputs": [
|
|
1380
|
+
{
|
|
1381
|
+
"internalType": "uint32",
|
|
1382
|
+
"name": "_dstEid",
|
|
1383
|
+
"type": "uint32"
|
|
1384
|
+
},
|
|
1385
|
+
{
|
|
1386
|
+
"internalType": "bool",
|
|
1387
|
+
"name": "_oft",
|
|
1388
|
+
"type": "bool"
|
|
1389
|
+
}
|
|
1390
|
+
],
|
|
1391
|
+
"name": "setOFTPath",
|
|
1392
|
+
"outputs": [],
|
|
1393
|
+
"stateMutability": "nonpayable",
|
|
1394
|
+
"type": "function"
|
|
1395
|
+
},
|
|
1396
|
+
{
|
|
1397
|
+
"inputs": [
|
|
1398
|
+
{
|
|
1399
|
+
"internalType": "bool",
|
|
1400
|
+
"name": "_paused",
|
|
1401
|
+
"type": "bool"
|
|
1402
|
+
}
|
|
1403
|
+
],
|
|
1404
|
+
"name": "setPause",
|
|
1405
|
+
"outputs": [],
|
|
1406
|
+
"stateMutability": "nonpayable",
|
|
1407
|
+
"type": "function"
|
|
1408
|
+
},
|
|
1409
|
+
{
|
|
1410
|
+
"inputs": [],
|
|
1411
|
+
"name": "sharedDecimals",
|
|
1412
|
+
"outputs": [
|
|
1413
|
+
{
|
|
1414
|
+
"internalType": "uint8",
|
|
1415
|
+
"name": "",
|
|
1416
|
+
"type": "uint8"
|
|
1417
|
+
}
|
|
1418
|
+
],
|
|
1419
|
+
"stateMutability": "view",
|
|
1420
|
+
"type": "function"
|
|
1421
|
+
},
|
|
1422
|
+
{
|
|
1423
|
+
"inputs": [],
|
|
1424
|
+
"name": "stargateType",
|
|
1425
|
+
"outputs": [
|
|
1426
|
+
{
|
|
1427
|
+
"internalType": "enum StargateType",
|
|
1428
|
+
"name": "",
|
|
1429
|
+
"type": "uint8"
|
|
1430
|
+
}
|
|
1431
|
+
],
|
|
1432
|
+
"stateMutability": "pure",
|
|
1433
|
+
"type": "function"
|
|
1434
|
+
},
|
|
1435
|
+
{
|
|
1436
|
+
"inputs": [],
|
|
1437
|
+
"name": "status",
|
|
1438
|
+
"outputs": [
|
|
1439
|
+
{
|
|
1440
|
+
"internalType": "uint8",
|
|
1441
|
+
"name": "",
|
|
1442
|
+
"type": "uint8"
|
|
1443
|
+
}
|
|
1444
|
+
],
|
|
1445
|
+
"stateMutability": "view",
|
|
1446
|
+
"type": "function"
|
|
1447
|
+
},
|
|
1448
|
+
{
|
|
1449
|
+
"inputs": [],
|
|
1450
|
+
"name": "token",
|
|
1451
|
+
"outputs": [
|
|
1452
|
+
{
|
|
1453
|
+
"internalType": "address",
|
|
1454
|
+
"name": "",
|
|
1455
|
+
"type": "address"
|
|
1456
|
+
}
|
|
1457
|
+
],
|
|
1458
|
+
"stateMutability": "view",
|
|
1459
|
+
"type": "function"
|
|
1460
|
+
},
|
|
1461
|
+
{
|
|
1462
|
+
"inputs": [
|
|
1463
|
+
{
|
|
1464
|
+
"internalType": "address",
|
|
1465
|
+
"name": "newOwner",
|
|
1466
|
+
"type": "address"
|
|
1467
|
+
}
|
|
1468
|
+
],
|
|
1469
|
+
"name": "transferOwnership",
|
|
1470
|
+
"outputs": [],
|
|
1471
|
+
"stateMutability": "nonpayable",
|
|
1472
|
+
"type": "function"
|
|
1473
|
+
},
|
|
1474
|
+
{
|
|
1475
|
+
"inputs": [],
|
|
1476
|
+
"name": "treasuryFee",
|
|
1477
|
+
"outputs": [
|
|
1478
|
+
{
|
|
1479
|
+
"internalType": "uint64",
|
|
1480
|
+
"name": "",
|
|
1481
|
+
"type": "uint64"
|
|
1482
|
+
}
|
|
1483
|
+
],
|
|
1484
|
+
"stateMutability": "view",
|
|
1485
|
+
"type": "function"
|
|
1486
|
+
},
|
|
1487
|
+
{
|
|
1488
|
+
"inputs": [],
|
|
1489
|
+
"name": "tvl",
|
|
1490
|
+
"outputs": [
|
|
1491
|
+
{
|
|
1492
|
+
"internalType": "uint256",
|
|
1493
|
+
"name": "",
|
|
1494
|
+
"type": "uint256"
|
|
1495
|
+
}
|
|
1496
|
+
],
|
|
1497
|
+
"stateMutability": "view",
|
|
1498
|
+
"type": "function"
|
|
1499
|
+
},
|
|
1500
|
+
{
|
|
1501
|
+
"inputs": [
|
|
1502
|
+
{
|
|
1503
|
+
"internalType": "uint32",
|
|
1504
|
+
"name": "_dstEid",
|
|
1505
|
+
"type": "uint32"
|
|
1506
|
+
},
|
|
1507
|
+
{
|
|
1508
|
+
"internalType": "uint8",
|
|
1509
|
+
"name": "_capacity",
|
|
1510
|
+
"type": "uint8"
|
|
1511
|
+
},
|
|
1512
|
+
{
|
|
1513
|
+
"internalType": "uint40",
|
|
1514
|
+
"name": "_fareInGwei",
|
|
1515
|
+
"type": "uint40"
|
|
1516
|
+
}
|
|
1517
|
+
],
|
|
1518
|
+
"name": "tweakBus",
|
|
1519
|
+
"outputs": [],
|
|
1520
|
+
"stateMutability": "nonpayable",
|
|
1521
|
+
"type": "function"
|
|
1522
|
+
},
|
|
1523
|
+
{
|
|
1524
|
+
"inputs": [
|
|
1525
|
+
{
|
|
1526
|
+
"internalType": "bytes32",
|
|
1527
|
+
"name": "guid",
|
|
1528
|
+
"type": "bytes32"
|
|
1529
|
+
},
|
|
1530
|
+
{
|
|
1531
|
+
"internalType": "uint8",
|
|
1532
|
+
"name": "index",
|
|
1533
|
+
"type": "uint8"
|
|
1534
|
+
}
|
|
1535
|
+
],
|
|
1536
|
+
"name": "unreceivedTokens",
|
|
1537
|
+
"outputs": [
|
|
1538
|
+
{
|
|
1539
|
+
"internalType": "bytes32",
|
|
1540
|
+
"name": "hash",
|
|
1541
|
+
"type": "bytes32"
|
|
1542
|
+
}
|
|
1543
|
+
],
|
|
1544
|
+
"stateMutability": "view",
|
|
1545
|
+
"type": "function"
|
|
1546
|
+
},
|
|
1547
|
+
{
|
|
1548
|
+
"inputs": [
|
|
1549
|
+
{
|
|
1550
|
+
"internalType": "address",
|
|
1551
|
+
"name": "_to",
|
|
1552
|
+
"type": "address"
|
|
1553
|
+
},
|
|
1554
|
+
{
|
|
1555
|
+
"internalType": "uint64",
|
|
1556
|
+
"name": "_amountSD",
|
|
1557
|
+
"type": "uint64"
|
|
1558
|
+
}
|
|
1559
|
+
],
|
|
1560
|
+
"name": "withdrawTreasuryFee",
|
|
1561
|
+
"outputs": [],
|
|
1562
|
+
"stateMutability": "nonpayable",
|
|
1563
|
+
"type": "function"
|
|
1564
|
+
}
|
|
1565
|
+
],
|
|
1566
|
+
"transactionHash": "0x27e3fb4a04493db347e7d59b46d65f61557de33b2a7dc78b60bde93e33c296bd",
|
|
1567
|
+
"receipt": {
|
|
1568
|
+
"to": null,
|
|
1569
|
+
"from": "0x7ed0222FEF0C668e389D8E38c68aA73ef4EE6B3d",
|
|
1570
|
+
"contractAddress": "0xc32fE1b4359AC8Fc50c83e62B633D2b140F91a1C",
|
|
1571
|
+
"transactionIndex": 1,
|
|
1572
|
+
"gasUsed": "11756092",
|
|
1573
|
+
"logsBloom": "0x00040000000000000000000000000000000000000000000000800800000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000022000000000000000000800000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000001000000000000000000000000000000000000000000000000400",
|
|
1574
|
+
"blockHash": "0xc2c5b2333a50f53155e0af2f0b4028d05ea2b4eb9f69cb8c71367b76bed8e563",
|
|
1575
|
+
"transactionHash": "0x27e3fb4a04493db347e7d59b46d65f61557de33b2a7dc78b60bde93e33c296bd",
|
|
1576
|
+
"logs": [
|
|
1577
|
+
{
|
|
1578
|
+
"transactionIndex": 1,
|
|
1579
|
+
"blockNumber": 12784366,
|
|
1580
|
+
"transactionHash": "0x27e3fb4a04493db347e7d59b46d65f61557de33b2a7dc78b60bde93e33c296bd",
|
|
1581
|
+
"address": "0xc32fE1b4359AC8Fc50c83e62B633D2b140F91a1C",
|
|
1582
|
+
"topics": [
|
|
1583
|
+
"0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0",
|
|
1584
|
+
"0x0000000000000000000000000000000000000000000000000000000000000000",
|
|
1585
|
+
"0x0000000000000000000000007ed0222fef0c668e389d8e38c68aa73ef4ee6b3d"
|
|
1586
|
+
],
|
|
1587
|
+
"data": "0x",
|
|
1588
|
+
"logIndex": 0,
|
|
1589
|
+
"blockHash": "0xc2c5b2333a50f53155e0af2f0b4028d05ea2b4eb9f69cb8c71367b76bed8e563"
|
|
1590
|
+
},
|
|
1591
|
+
{
|
|
1592
|
+
"transactionIndex": 1,
|
|
1593
|
+
"blockNumber": 12784366,
|
|
1594
|
+
"transactionHash": "0x27e3fb4a04493db347e7d59b46d65f61557de33b2a7dc78b60bde93e33c296bd",
|
|
1595
|
+
"address": "0xc32fE1b4359AC8Fc50c83e62B633D2b140F91a1C",
|
|
1596
|
+
"topics": [
|
|
1597
|
+
"0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0",
|
|
1598
|
+
"0x0000000000000000000000007ed0222fef0c668e389d8e38c68aa73ef4ee6b3d",
|
|
1599
|
+
"0x0000000000000000000000007ed0222fef0c668e389d8e38c68aa73ef4ee6b3d"
|
|
1600
|
+
],
|
|
1601
|
+
"data": "0x",
|
|
1602
|
+
"logIndex": 1,
|
|
1603
|
+
"blockHash": "0xc2c5b2333a50f53155e0af2f0b4028d05ea2b4eb9f69cb8c71367b76bed8e563"
|
|
1604
|
+
}
|
|
1605
|
+
],
|
|
1606
|
+
"blockNumber": 12784366,
|
|
1607
|
+
"cumulativeGasUsed": "11756092",
|
|
1608
|
+
"status": 1,
|
|
1609
|
+
"byzantium": true
|
|
1610
|
+
},
|
|
1611
|
+
"args": [
|
|
1612
|
+
"ETH Stargate LP",
|
|
1613
|
+
"Stargate LP",
|
|
1614
|
+
18,
|
|
1615
|
+
6,
|
|
1616
|
+
"0x6EDCE65403992e310A62460808c4b910D972f10f",
|
|
1617
|
+
"0x7ed0222FEF0C668e389D8E38c68aA73ef4EE6B3d"
|
|
1618
|
+
],
|
|
1619
|
+
"numDeployments": 1,
|
|
1620
|
+
"solcInputHash": "ddb3ce46135242d2c7dba6f2c30881ce",
|
|
1621
|
+
"metadata": "{\"compiler\":{\"version\":\"0.8.22+commit.4fc1097e\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"string\",\"name\":\"_lpTokenName\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"_lpTokenSymbol\",\"type\":\"string\"},{\"internalType\":\"uint8\",\"name\":\"_tokenDecimals\",\"type\":\"uint8\"},{\"internalType\":\"uint8\",\"name\":\"_sharedDecimals\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"_endpoint\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_owner\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"AlreadyHasCredit\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"BusFull\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ComposingNotAllowed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InsufficientCredit\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidAmount\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidAmount\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidFare\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidLocalDecimals\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidPassenger\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidPath\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidTokenDecimals\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"LzTokenUnavailable\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OutflowFailed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"Paused\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ReentrantCall\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountLD\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minAmountLD\",\"type\":\"uint256\"}],\"name\":\"SlippageExceeded\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SlippageTooHigh\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"Unauthorized\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"UnreceivedTokenNotFound\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint32\",\"name\":\"dstEid\",\"type\":\"uint32\"},{\"indexed\":true,\"internalType\":\"uint40\",\"name\":\"busNum\",\"type\":\"uint40\"}],\"name\":\"BusDriven\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint32\",\"name\":\"dstEid\",\"type\":\"uint32\"},{\"indexed\":true,\"internalType\":\"uint40\",\"name\":\"busNum\",\"type\":\"uint40\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"passenger\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"amountSD\",\"type\":\"uint64\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"full\",\"type\":\"bool\"}],\"name\":\"BusRode\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"srcEid\",\"type\":\"uint32\"},{\"components\":[{\"internalType\":\"uint32\",\"name\":\"srcEid\",\"type\":\"uint32\"},{\"internalType\":\"uint64\",\"name\":\"amount\",\"type\":\"uint64\"}],\"indexed\":false,\"internalType\":\"struct Credit[]\",\"name\":\"credits\",\"type\":\"tuple[]\"}],\"name\":\"CreditsReceived\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"dstEid\",\"type\":\"uint32\"},{\"components\":[{\"internalType\":\"uint32\",\"name\":\"srcEid\",\"type\":\"uint32\"},{\"internalType\":\"uint64\",\"name\":\"amount\",\"type\":\"uint64\"}],\"indexed\":false,\"internalType\":\"struct Credit[]\",\"name\":\"credits\",\"type\":\"tuple[]\"}],\"name\":\"CreditsSent\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"payer\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountLD\",\"type\":\"uint256\"}],\"name\":\"Deposited\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"guid\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"srcEid\",\"type\":\"uint32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"toAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountReceivedLD\",\"type\":\"uint256\"}],\"name\":\"OFTReceived\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"guid\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"dstEid\",\"type\":\"uint32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"fromAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountSentLD\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountReceivedLD\",\"type\":\"uint256\"}],\"name\":\"OFTSent\",\"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\":true,\"internalType\":\"address\",\"name\":\"payer\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountLD\",\"type\":\"uint256\"}],\"name\":\"Redeemed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"guid\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"index\",\"type\":\"uint8\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountLD\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"composeMsg\",\"type\":\"bytes\"}],\"name\":\"UnreceivedTokenCached\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_amountLD\",\"type\":\"uint256\"}],\"name\":\"addTreasuryFee\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"approvalRequired\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_receiver\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amountLD\",\"type\":\"uint256\"}],\"name\":\"deposit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountLD\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getAddressConfig\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"feeLib\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"planner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"treasurer\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"messaging\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"lzToken\",\"type\":\"address\"}],\"internalType\":\"struct AddressConfig\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"lpToken\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"oftVersion\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"},{\"internalType\":\"uint64\",\"name\":\"version\",\"type\":\"uint64\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"eid\",\"type\":\"uint32\"}],\"name\":\"paths\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"credit\",\"type\":\"uint64\"},{\"internalType\":\"uint32\",\"name\":\"busNum\",\"type\":\"uint32\"},{\"internalType\":\"uint64\",\"name\":\"startBlock\",\"type\":\"uint64\"},{\"internalType\":\"uint8\",\"name\":\"passengers\",\"type\":\"uint8\"},{\"internalType\":\"uint8\",\"name\":\"capacity\",\"type\":\"uint8\"},{\"internalType\":\"uint40\",\"name\":\"fare\",\"type\":\"uint40\"},{\"internalType\":\"uint40\",\"name\":\"fareBox\",\"type\":\"uint40\"},{\"internalType\":\"bytes32\",\"name\":\"root\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint32\",\"name\":\"dstEid\",\"type\":\"uint32\"},{\"internalType\":\"bytes32\",\"name\":\"to\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"amountLD\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minAmountLD\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"extraOptions\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"composeMsg\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"oftCmd\",\"type\":\"bytes\"}],\"internalType\":\"struct SendParam\",\"name\":\"_sendParam\",\"type\":\"tuple\"}],\"name\":\"quoteOFT\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"minAmountLD\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxAmountLD\",\"type\":\"uint256\"}],\"internalType\":\"struct OFTLimit\",\"name\":\"limit\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"int256\",\"name\":\"feeAmountLD\",\"type\":\"int256\"},{\"internalType\":\"string\",\"name\":\"description\",\"type\":\"string\"}],\"internalType\":\"struct OFTFeeDetail[]\",\"name\":\"oftFeeDetails\",\"type\":\"tuple[]\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"amountSentLD\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountReceivedLD\",\"type\":\"uint256\"}],\"internalType\":\"struct OFTReceipt\",\"name\":\"receipt\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint32\",\"name\":\"dstEid\",\"type\":\"uint32\"},{\"internalType\":\"bytes32\",\"name\":\"to\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"amountLD\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minAmountLD\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"extraOptions\",\"type\":\"bytes\"}],\"internalType\":\"struct RedeemSendParam\",\"name\":\"_sendParam\",\"type\":\"tuple\"},{\"internalType\":\"bool\",\"name\":\"_payInLzToken\",\"type\":\"bool\"}],\"name\":\"quoteRedeemSend\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"nativeFee\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"lzTokenFee\",\"type\":\"uint256\"}],\"internalType\":\"struct MessagingFee\",\"name\":\"fee\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint32\",\"name\":\"dstEid\",\"type\":\"uint32\"},{\"internalType\":\"bytes32\",\"name\":\"to\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"amountLD\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minAmountLD\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"extraOptions\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"composeMsg\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"oftCmd\",\"type\":\"bytes\"}],\"internalType\":\"struct SendParam\",\"name\":\"_sendParam\",\"type\":\"tuple\"},{\"internalType\":\"bool\",\"name\":\"_payInLzToken\",\"type\":\"bool\"}],\"name\":\"quoteSend\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"nativeFee\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"lzTokenFee\",\"type\":\"uint256\"}],\"internalType\":\"struct MessagingFee\",\"name\":\"fee\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"_dstEid\",\"type\":\"uint32\"},{\"components\":[{\"internalType\":\"uint32\",\"name\":\"srcEid\",\"type\":\"uint32\"},{\"internalType\":\"uint64\",\"name\":\"amount\",\"type\":\"uint64\"}],\"internalType\":\"struct Credit[]\",\"name\":\"_credits\",\"type\":\"tuple[]\"}],\"name\":\"quoteSendCredit\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"nativeFee\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"lzTokenFee\",\"type\":\"uint256\"}],\"internalType\":\"struct MessagingFee\",\"name\":\"fee\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"_srcEid\",\"type\":\"uint32\"},{\"components\":[{\"internalType\":\"uint32\",\"name\":\"srcEid\",\"type\":\"uint32\"},{\"internalType\":\"uint64\",\"name\":\"amount\",\"type\":\"uint64\"}],\"internalType\":\"struct Credit[]\",\"name\":\"_credits\",\"type\":\"tuple[]\"}],\"name\":\"receiveCredit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint32\",\"name\":\"srcEid\",\"type\":\"uint32\"},{\"internalType\":\"bytes32\",\"name\":\"sender\",\"type\":\"bytes32\"},{\"internalType\":\"uint64\",\"name\":\"nonce\",\"type\":\"uint64\"}],\"internalType\":\"struct Origin\",\"name\":\"_origin\",\"type\":\"tuple\"},{\"internalType\":\"bytes32\",\"name\":\"_guid\",\"type\":\"bytes32\"},{\"components\":[{\"internalType\":\"address[]\",\"name\":\"receivers\",\"type\":\"address[]\"},{\"internalType\":\"uint64[]\",\"name\":\"amountsSD\",\"type\":\"uint64[]\"},{\"internalType\":\"bytes\",\"name\":\"composeMsg\",\"type\":\"bytes\"}],\"internalType\":\"struct TokenMessage\",\"name\":\"_tokenMessage\",\"type\":\"tuple\"}],\"name\":\"receiveToken\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_amountLD\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_receiver\",\"type\":\"address\"}],\"name\":\"redeem\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountLD\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint32\",\"name\":\"dstEid\",\"type\":\"uint32\"},{\"internalType\":\"bytes32\",\"name\":\"to\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"amountLD\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minAmountLD\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"extraOptions\",\"type\":\"bytes\"}],\"internalType\":\"struct RedeemSendParam\",\"name\":\"_sendParam\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"nativeFee\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"lzTokenFee\",\"type\":\"uint256\"}],\"internalType\":\"struct MessagingFee\",\"name\":\"_fee\",\"type\":\"tuple\"},{\"internalType\":\"address\",\"name\":\"_refundAddress\",\"type\":\"address\"}],\"name\":\"redeemSend\",\"outputs\":[{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"guid\",\"type\":\"bytes32\"},{\"internalType\":\"uint64\",\"name\":\"nonce\",\"type\":\"uint64\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"nativeFee\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"lzTokenFee\",\"type\":\"uint256\"}],\"internalType\":\"struct MessagingFee\",\"name\":\"fee\",\"type\":\"tuple\"}],\"internalType\":\"struct MessagingReceipt\",\"name\":\"receipt\",\"type\":\"tuple\"},{\"internalType\":\"uint256\",\"name\":\"amountLD\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_owner\",\"type\":\"address\"}],\"name\":\"redeemable\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountLD\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"_guid\",\"type\":\"bytes32\"},{\"internalType\":\"uint8\",\"name\":\"_index\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"_receiver\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amountLD\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"_composeMsg\",\"type\":\"bytes\"}],\"name\":\"retryReceiveToken\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint32\",\"name\":\"dstEid\",\"type\":\"uint32\"},{\"internalType\":\"bytes32\",\"name\":\"to\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"amountLD\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minAmountLD\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"extraOptions\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"composeMsg\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"oftCmd\",\"type\":\"bytes\"}],\"internalType\":\"struct SendParam\",\"name\":\"_sendParam\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"nativeFee\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"lzTokenFee\",\"type\":\"uint256\"}],\"internalType\":\"struct MessagingFee\",\"name\":\"_fee\",\"type\":\"tuple\"},{\"internalType\":\"address\",\"name\":\"_refundAddress\",\"type\":\"address\"}],\"name\":\"send\",\"outputs\":[{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"guid\",\"type\":\"bytes32\"},{\"internalType\":\"uint64\",\"name\":\"nonce\",\"type\":\"uint64\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"nativeFee\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"lzTokenFee\",\"type\":\"uint256\"}],\"internalType\":\"struct MessagingFee\",\"name\":\"fee\",\"type\":\"tuple\"}],\"internalType\":\"struct MessagingReceipt\",\"name\":\"msgReceipt\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"amountSentLD\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountReceivedLD\",\"type\":\"uint256\"}],\"internalType\":\"struct OFTReceipt\",\"name\":\"oftReceipt\",\"type\":\"tuple\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"_dstEid\",\"type\":\"uint32\"},{\"components\":[{\"internalType\":\"uint32\",\"name\":\"srcEid\",\"type\":\"uint32\"},{\"internalType\":\"uint64\",\"name\":\"amount\",\"type\":\"uint64\"}],\"internalType\":\"struct Credit[]\",\"name\":\"_credits\",\"type\":\"tuple[]\"}],\"name\":\"sendCredits\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"feeLib\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"planner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"treasurer\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"messaging\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"lzToken\",\"type\":\"address\"}],\"internalType\":\"struct AddressConfig\",\"name\":\"_config\",\"type\":\"tuple\"}],\"name\":\"setAddressConfig\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"_dstEid\",\"type\":\"uint32\"},{\"internalType\":\"bool\",\"name\":\"_oft\",\"type\":\"bool\"}],\"name\":\"setOFTPath\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"_paused\",\"type\":\"bool\"}],\"name\":\"setPause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"sharedDecimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"stargateType\",\"outputs\":[{\"internalType\":\"enum StargateType\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"status\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"token\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"treasuryFee\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"\",\"type\":\"uint64\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"tvl\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"_dstEid\",\"type\":\"uint32\"},{\"internalType\":\"uint8\",\"name\":\"_capacity\",\"type\":\"uint8\"},{\"internalType\":\"uint40\",\"name\":\"_fareInGwei\",\"type\":\"uint40\"}],\"name\":\"tweakBus\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"guid\",\"type\":\"bytes32\"},{\"internalType\":\"uint8\",\"name\":\"index\",\"type\":\"uint8\"}],\"name\":\"unreceivedTokens\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"hash\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"internalType\":\"uint64\",\"name\":\"_amountSD\",\"type\":\"uint64\"}],\"name\":\"withdrawTreasuryFee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"addTreasuryFee(uint256)\":{\"details\":\"only used for increasing the overall budget for transaction rewardsthe treasuryFee is essentially the reward pool. exposure is capped.\"},\"approvalRequired()\":{\"details\":\"Allows things like wallet implementers to determine integration requirements, without understanding the underlying token implementation.\",\"returns\":{\"_0\":\"requiresApproval Needs approval of the underlying token implementation.\"}},\"oftVersion()\":{\"details\":\"0 version means the message encoding is not compatible with default OFT\"},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"quoteOFT((uint32,bytes32,uint256,uint256,bytes,bytes,bytes))\":{\"params\":{\"_sendParam\":\"The parameters for the send operation.\"},\"returns\":{\"limit\":\"The OFT limit information.\",\"oftFeeDetails\":\"The details of OFT fees.\",\"receipt\":\"The OFT receipt information.\"}},\"quoteSend((uint32,bytes32,uint256,uint256,bytes,bytes,bytes),bool)\":{\"details\":\"MessagingFee: LayerZero msg fee - nativeFee: The native fee. - lzTokenFee: The lzToken fee.\",\"params\":{\"_payInLzToken\":\"Flag indicating whether the caller is paying in the LZ token.\",\"_sendParam\":\"The parameters for the send() operation.\"},\"returns\":{\"fee\":\"The calculated LayerZero messaging fee from the send() operation.\"}},\"redeem(uint256,address)\":{\"details\":\"Redeem the LP token of the sender and return the underlying token to receiverThe amount of LP token to redeem is capped by the unallocated local credit\",\"params\":{\"_amountLD\":\"the amount of LP token to redeem\"},\"returns\":{\"amountLD\":\"the amount of LP token burned and the amount of underlying token sent to the receiver\"}},\"renounceOwnership()\":{\"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.\"},\"retryReceiveToken(bytes32,uint8,address,uint256,bytes)\":{\"details\":\"try to receive the token if the previous attempt failed in lzReceive\"},\"send((uint32,bytes32,uint256,uint256,bytes,bytes,bytes),(uint256,uint256),address)\":{\"details\":\"MessagingReceipt: LayerZero msg receipt - guid: The unique identifier for the sent message. - nonce: The nonce of the sent message. - fee: The LayerZero fee incurred for the message.\",\"params\":{\"_fee\":\"The fee information supplied by the caller. - nativeFee: The native fee. - lzTokenFee: The lzToken fee.\",\"_refundAddress\":\"The address to receive any excess funds from fees etc. on the src.\",\"_sendParam\":\"The parameters for the send operation.\"},\"returns\":{\"msgReceipt\":\"receipt The LayerZero messaging receipt from the send() operation.\",\"oftReceipt\":\"The OFT receipt information.\"}},\"setOFTPath(uint32,bool)\":{\"details\":\"Set the path as OFT if the remote chain is using OFTWhen migrating from OFT to pool on the remote chain (e.g. migrate USDC to circles), reset the path to non-OFT\"},\"transferOwnership(address)\":{\"details\":\"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.\"},\"tvl()\":{\"details\":\"The tvl of the pool is the total supply of the LP token The rate of the LP token is always 1:1 with the underlying token\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"approvalRequired()\":{\"notice\":\"Indicates whether the OFT contract requires approval of the 'token()' to send.\"},\"quoteOFT((uint32,bytes32,uint256,uint256,bytes,bytes,bytes))\":{\"notice\":\"Provides a quote for OFT-related operations.\"},\"quoteSend((uint32,bytes32,uint256,uint256,bytes,bytes,bytes),bool)\":{\"notice\":\"Provides a quote for the send() operation.\"},\"send((uint32,bytes32,uint256,uint256,bytes,bytes,bytes),(uint256,uint256),address)\":{\"notice\":\"Executes the send() operation.\"},\"sharedDecimals()\":{\"notice\":\"Retrieves the shared decimals of the OFT.\"},\"token()\":{\"notice\":\"Retrieves the address of the token associated with the OFT.\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"src/StargatePoolNative.sol\":\"StargatePoolNative\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":20000},\"remappings\":[]},\"sources\":{\"@layerzerolabs/lz-evm-oapp-v2/contracts/oapp/OApp.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.8.20;\\n\\n// @dev Import the 'MessagingFee' and 'MessagingReceipt' so it's exposed to OApp implementers\\n// solhint-disable-next-line no-unused-import\\nimport { OAppSender, MessagingFee, MessagingReceipt } from \\\"./OAppSender.sol\\\";\\n// @dev Import the 'Origin' so it's exposed to OApp implementers\\n// solhint-disable-next-line no-unused-import\\nimport { OAppReceiver, Origin } from \\\"./OAppReceiver.sol\\\";\\nimport { OAppCore } from \\\"./OAppCore.sol\\\";\\n\\n/**\\n * @title OApp\\n * @dev Abstract contract serving as the base for OApp implementation, combining OAppSender and OAppReceiver functionality.\\n */\\nabstract contract OApp is OAppSender, OAppReceiver {\\n /**\\n * @dev Constructor to initialize the OApp with the provided endpoint and owner.\\n * @param _endpoint The address of the LOCAL LayerZero endpoint.\\n * @param _delegate The delegate capable of making OApp configurations inside of the endpoint.\\n */\\n constructor(address _endpoint, address _delegate) OAppCore(_endpoint, _delegate) {}\\n\\n /**\\n * @notice Retrieves the OApp version information.\\n * @return senderVersion The version of the OAppSender.sol implementation.\\n * @return receiverVersion The version of the OAppReceiver.sol implementation.\\n */\\n function oAppVersion()\\n public\\n pure\\n virtual\\n override(OAppSender, OAppReceiver)\\n returns (uint64 senderVersion, uint64 receiverVersion)\\n {\\n return (SENDER_VERSION, RECEIVER_VERSION);\\n }\\n}\\n\",\"keccak256\":\"0xac362c4c291fad2f1511a968424b2e78a5ad502d1c867bd31da04be742aca8c5\",\"license\":\"MIT\"},\"@layerzerolabs/lz-evm-oapp-v2/contracts/oapp/OAppCore.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.8.20;\\n\\nimport { Ownable } from \\\"@openzeppelin/contracts/access/Ownable.sol\\\";\\nimport { IOAppCore, ILayerZeroEndpointV2 } from \\\"./interfaces/IOAppCore.sol\\\";\\n\\n/**\\n * @title OAppCore\\n * @dev Abstract contract implementing the IOAppCore interface with basic OApp configurations.\\n */\\nabstract contract OAppCore is IOAppCore, Ownable {\\n // The LayerZero endpoint associated with the given OApp\\n ILayerZeroEndpointV2 public immutable endpoint;\\n\\n // Mapping to store peers associated with corresponding endpoints\\n mapping(uint32 eid => bytes32 peer) public peers;\\n\\n /**\\n * @dev Constructor to initialize the OAppCore with the provided endpoint and delegate.\\n * @param _endpoint The address of the LOCAL Layer Zero endpoint.\\n * @param _delegate The delegate capable of making OApp configurations inside of the endpoint.\\n *\\n * @dev The delegate typically should be set as the owner of the contract.\\n */\\n constructor(address _endpoint, address _delegate) {\\n endpoint = ILayerZeroEndpointV2(_endpoint);\\n\\n if (_delegate == address(0)) revert InvalidDelegate();\\n endpoint.setDelegate(_delegate);\\n }\\n\\n /**\\n * @notice Sets the peer address (OApp instance) for a corresponding endpoint.\\n * @param _eid The endpoint ID.\\n * @param _peer The address of the peer to be associated with the corresponding endpoint.\\n *\\n * @dev Only the owner/admin of the OApp can call this function.\\n * @dev Indicates that the peer is trusted to send LayerZero messages to this OApp.\\n * @dev Set this to bytes32(0) to remove the peer address.\\n * @dev Peer is a bytes32 to accommodate non-evm chains.\\n */\\n function setPeer(uint32 _eid, bytes32 _peer) public virtual onlyOwner {\\n peers[_eid] = _peer;\\n emit PeerSet(_eid, _peer);\\n }\\n\\n /**\\n * @notice Internal function to get the peer address associated with a specific endpoint; reverts if NOT set.\\n * ie. the peer is set to bytes32(0).\\n * @param _eid The endpoint ID.\\n * @return peer The address of the peer associated with the specified endpoint.\\n */\\n function _getPeerOrRevert(uint32 _eid) internal view virtual returns (bytes32) {\\n bytes32 peer = peers[_eid];\\n if (peer == bytes32(0)) revert NoPeer(_eid);\\n return peer;\\n }\\n\\n /**\\n * @notice Sets the delegate address for the OApp.\\n * @param _delegate The address of the delegate to be set.\\n *\\n * @dev Only the owner/admin of the OApp can call this function.\\n * @dev Provides the ability for a delegate to set configs, on behalf of the OApp, directly on the Endpoint contract.\\n */\\n function setDelegate(address _delegate) public onlyOwner {\\n endpoint.setDelegate(_delegate);\\n }\\n}\\n\",\"keccak256\":\"0x0288ddc1c0835c0dd616e918150473de8a8ba3814dbecfdaf584562433cb6666\",\"license\":\"MIT\"},\"@layerzerolabs/lz-evm-oapp-v2/contracts/oapp/OAppReceiver.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.8.20;\\n\\nimport { IOAppReceiver, Origin } from \\\"./interfaces/IOAppReceiver.sol\\\";\\nimport { OAppCore } from \\\"./OAppCore.sol\\\";\\n\\n/**\\n * @title OAppReceiver\\n * @dev Abstract contract implementing the ILayerZeroReceiver interface and extending OAppCore for OApp receivers.\\n */\\nabstract contract OAppReceiver is IOAppReceiver, OAppCore {\\n // Custom error message for when the caller is not the registered endpoint/\\n error OnlyEndpoint(address addr);\\n\\n // @dev The version of the OAppReceiver implementation.\\n // @dev Version is bumped when changes are made to this contract.\\n uint64 internal constant RECEIVER_VERSION = 1;\\n\\n /**\\n * @notice Retrieves the OApp version information.\\n * @return senderVersion The version of the OAppSender.sol contract.\\n * @return receiverVersion The version of the OAppReceiver.sol contract.\\n *\\n * @dev Providing 0 as the default for OAppSender version. Indicates that the OAppSender is not implemented.\\n * ie. this is a RECEIVE only OApp.\\n * @dev If the OApp uses both OAppSender and OAppReceiver, then this needs to be override returning the correct versions.\\n */\\n function oAppVersion() public view virtual returns (uint64 senderVersion, uint64 receiverVersion) {\\n return (0, RECEIVER_VERSION);\\n }\\n\\n /**\\n * @notice Retrieves the address responsible for 'sending' composeMsg's to the Endpoint.\\n * @return sender The address responsible for 'sending' composeMsg's to the Endpoint.\\n *\\n * @dev Applications can optionally choose to implement a separate composeMsg sender that is NOT the bridging layer.\\n * @dev The default sender IS the OApp implementer.\\n */\\n function composeMsgSender() public view virtual returns (address sender) {\\n return address(this);\\n }\\n\\n /**\\n * @notice Checks if the path initialization is allowed based on the provided origin.\\n * @param origin The origin information containing the source endpoint and sender address.\\n * @return Whether the path has been initialized.\\n *\\n * @dev This indicates to the endpoint that the OApp has enabled msgs for this particular path to be received.\\n * @dev This defaults to assuming if a peer has been set, its initialized.\\n * Can be overridden by the OApp if there is other logic to determine this.\\n */\\n function allowInitializePath(Origin calldata origin) public view virtual returns (bool) {\\n return peers[origin.srcEid] == origin.sender;\\n }\\n\\n /**\\n * @notice Retrieves the next nonce for a given source endpoint and sender address.\\n * @dev _srcEid The source endpoint ID.\\n * @dev _sender The sender address.\\n * @return nonce The next nonce.\\n *\\n * @dev The path nonce starts from 1. If 0 is returned it means that there is NO nonce ordered enforcement.\\n * @dev Is required by the off-chain executor to determine the OApp expects msg execution is ordered.\\n * @dev This is also enforced by the OApp.\\n * @dev By default this is NOT enabled. ie. nextNonce is hardcoded to return 0.\\n */\\n function nextNonce(uint32 /*_srcEid*/, bytes32 /*_sender*/) public view virtual returns (uint64 nonce) {\\n return 0;\\n }\\n\\n /**\\n * @dev Entry point for receiving messages or packets from the endpoint.\\n * @param _origin The origin information containing the source endpoint and sender address.\\n * - srcEid: The source chain endpoint ID.\\n * - sender: The sender address on the src chain.\\n * - nonce: The nonce of the message.\\n * @param _guid The unique identifier for the received LayerZero message.\\n * @param _message The payload of the received message.\\n * @param _executor The address of the executor for the received message.\\n * @param _extraData Additional arbitrary data provided by the corresponding executor.\\n *\\n * @dev Entry point for receiving msg/packet from the LayerZero endpoint.\\n */\\n function lzReceive(\\n Origin calldata _origin,\\n bytes32 _guid,\\n bytes calldata _message,\\n address _executor,\\n bytes calldata _extraData\\n ) public payable virtual {\\n // Ensures that only the endpoint can attempt to lzReceive() messages to this OApp.\\n if (address(endpoint) != msg.sender) revert OnlyEndpoint(msg.sender);\\n\\n // Ensure that the sender matches the expected peer for the source endpoint.\\n if (_getPeerOrRevert(_origin.srcEid) != _origin.sender) revert OnlyPeer(_origin.srcEid, _origin.sender);\\n\\n // Call the internal OApp implementation of lzReceive.\\n _lzReceive(_origin, _guid, _message, _executor, _extraData);\\n }\\n\\n /**\\n * @dev Internal function to implement lzReceive logic without needing to copy the basic parameter validation.\\n */\\n function _lzReceive(\\n Origin calldata _origin,\\n bytes32 _guid,\\n bytes calldata _message,\\n address _executor,\\n bytes calldata _extraData\\n ) internal virtual;\\n}\\n\",\"keccak256\":\"0x2a7d48c50220d3058f771ff893227e9e561d9afb809d4537921a0fffc23ee3c3\",\"license\":\"MIT\"},\"@layerzerolabs/lz-evm-oapp-v2/contracts/oapp/OAppSender.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.8.20;\\n\\nimport { SafeERC20, IERC20 } from \\\"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\\\";\\nimport { MessagingParams, MessagingFee, MessagingReceipt } from \\\"@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/ILayerZeroEndpointV2.sol\\\";\\nimport { OAppCore } from \\\"./OAppCore.sol\\\";\\n\\n/**\\n * @title OAppSender\\n * @dev Abstract contract implementing the OAppSender functionality for sending messages to a LayerZero endpoint.\\n */\\nabstract contract OAppSender is OAppCore {\\n using SafeERC20 for IERC20;\\n\\n // Custom error messages\\n error NotEnoughNative(uint256 msgValue);\\n error LzTokenUnavailable();\\n\\n // @dev The version of the OAppSender implementation.\\n // @dev Version is bumped when changes are made to this contract.\\n uint64 internal constant SENDER_VERSION = 1;\\n\\n /**\\n * @notice Retrieves the OApp version information.\\n * @return senderVersion The version of the OAppSender.sol contract.\\n * @return receiverVersion The version of the OAppReceiver.sol contract.\\n *\\n * @dev Providing 0 as the default for OAppReceiver version. Indicates that the OAppReceiver is not implemented.\\n * ie. this is a SEND only OApp.\\n * @dev If the OApp uses both OAppSender and OAppReceiver, then this needs to be override returning the correct versions\\n */\\n function oAppVersion() public view virtual returns (uint64 senderVersion, uint64 receiverVersion) {\\n return (SENDER_VERSION, 0);\\n }\\n\\n /**\\n * @dev Internal function to interact with the LayerZero EndpointV2.quote() for fee calculation.\\n * @param _dstEid The destination endpoint ID.\\n * @param _message The message payload.\\n * @param _options Additional options for the message.\\n * @param _payInLzToken Flag indicating whether to pay the fee in LZ tokens.\\n * @return fee The calculated MessagingFee for the message.\\n * - nativeFee: The native fee for the message.\\n * - lzTokenFee: The LZ token fee for the message.\\n */\\n function _quote(\\n uint32 _dstEid,\\n bytes memory _message,\\n bytes memory _options,\\n bool _payInLzToken\\n ) internal view virtual returns (MessagingFee memory fee) {\\n return\\n endpoint.quote(\\n MessagingParams(_dstEid, _getPeerOrRevert(_dstEid), _message, _options, _payInLzToken),\\n address(this)\\n );\\n }\\n\\n /**\\n * @dev Internal function to interact with the LayerZero EndpointV2.send() for sending a message.\\n * @param _dstEid The destination endpoint ID.\\n * @param _message The message payload.\\n * @param _options Additional options for the message.\\n * @param _fee The calculated LayerZero fee for the message.\\n * - nativeFee: The native fee.\\n * - lzTokenFee: The lzToken fee.\\n * @param _refundAddress The address to receive any excess fee values sent to the endpoint.\\n * @return receipt The receipt for the sent message.\\n * - guid: The unique identifier for the sent message.\\n * - nonce: The nonce of the sent message.\\n * - fee: The LayerZero fee incurred for the message.\\n */\\n function _lzSend(\\n uint32 _dstEid,\\n bytes memory _message,\\n bytes memory _options,\\n MessagingFee memory _fee,\\n address _refundAddress\\n ) internal virtual returns (MessagingReceipt memory receipt) {\\n // @dev Push corresponding fees to the endpoint, any excess is sent back to the _refundAddress from the endpoint.\\n uint256 messageValue = _payNative(_fee.nativeFee);\\n if (_fee.lzTokenFee > 0) _payLzToken(_fee.lzTokenFee);\\n\\n return\\n // solhint-disable-next-line check-send-result\\n endpoint.send{ value: messageValue }(\\n MessagingParams(_dstEid, _getPeerOrRevert(_dstEid), _message, _options, _fee.lzTokenFee > 0),\\n _refundAddress\\n );\\n }\\n\\n /**\\n * @dev Internal function to pay the native fee associated with the message.\\n * @param _nativeFee The native fee to be paid.\\n * @return nativeFee The amount of native currency paid.\\n *\\n * @dev If the OApp needs to initiate MULTIPLE LayerZero messages in a single transaction,\\n * this will need to be overridden because msg.value would contain multiple lzFees.\\n * @dev Should be overridden in the event the LayerZero endpoint requires a different native currency.\\n * @dev Some EVMs use an ERC20 as a method for paying transactions/gasFees.\\n * @dev The endpoint is EITHER/OR, ie. it will NOT support both types of native payment at a time.\\n */\\n function _payNative(uint256 _nativeFee) internal virtual returns (uint256 nativeFee) {\\n if (msg.value != _nativeFee) revert NotEnoughNative(msg.value);\\n return _nativeFee;\\n }\\n\\n /**\\n * @dev Internal function to pay the LZ token fee associated with the message.\\n * @param _lzTokenFee The LZ token fee to be paid.\\n *\\n * @dev If the caller is trying to pay in the specified lzToken, then the lzTokenFee is passed to the endpoint.\\n * @dev Any excess sent, is passed back to the specified _refundAddress in the _lzSend().\\n */\\n function _payLzToken(uint256 _lzTokenFee) internal virtual {\\n // @dev Cannot cache the token because it is not immutable in the endpoint.\\n address lzToken = endpoint.lzToken();\\n if (lzToken == address(0)) revert LzTokenUnavailable();\\n\\n // Pay LZ token fee by sending tokens to the endpoint.\\n IERC20(lzToken).safeTransferFrom(msg.sender, address(endpoint), _lzTokenFee);\\n }\\n}\\n\",\"keccak256\":\"0x518cf4adca601923ed4baa6619846a253ea32b8d8775f8bc1faa3dfac7f67c20\",\"license\":\"MIT\"},\"@layerzerolabs/lz-evm-oapp-v2/contracts/oapp/interfaces/IOAppCore.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.8.20;\\n\\nimport { ILayerZeroEndpointV2 } from \\\"@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/ILayerZeroEndpointV2.sol\\\";\\n\\n/**\\n * @title IOAppCore\\n */\\ninterface IOAppCore {\\n // Custom error messages\\n error OnlyPeer(uint32 eid, bytes32 sender);\\n error NoPeer(uint32 eid);\\n error InvalidEndpointCall();\\n error InvalidDelegate();\\n\\n // Event emitted when a peer (OApp) is set for a corresponding endpoint\\n event PeerSet(uint32 eid, bytes32 peer);\\n\\n /**\\n * @notice Retrieves the OApp version information.\\n * @return senderVersion The version of the OAppSender.sol contract.\\n * @return receiverVersion The version of the OAppReceiver.sol contract.\\n */\\n function oAppVersion() external view returns (uint64 senderVersion, uint64 receiverVersion);\\n\\n /**\\n * @notice Retrieves the LayerZero endpoint associated with the OApp.\\n * @return iEndpoint The LayerZero endpoint as an interface.\\n */\\n function endpoint() external view returns (ILayerZeroEndpointV2 iEndpoint);\\n\\n /**\\n * @notice Retrieves the peer (OApp) associated with a corresponding endpoint.\\n * @param _eid The endpoint ID.\\n * @return peer The peer address (OApp instance) associated with the corresponding endpoint.\\n */\\n function peers(uint32 _eid) external view returns (bytes32 peer);\\n\\n /**\\n * @notice Sets the peer address (OApp instance) for a corresponding endpoint.\\n * @param _eid The endpoint ID.\\n * @param _peer The address of the peer to be associated with the corresponding endpoint.\\n */\\n function setPeer(uint32 _eid, bytes32 _peer) external;\\n\\n /**\\n * @notice Sets the delegate address for the OApp Core.\\n * @param _delegate The address of the delegate to be set.\\n */\\n function setDelegate(address _delegate) external;\\n}\\n\",\"keccak256\":\"0x40e49f2de74506e1da5dcaed53a39853f691647f4ceb0fccc8f49a68d3f47c58\",\"license\":\"MIT\"},\"@layerzerolabs/lz-evm-oapp-v2/contracts/oapp/interfaces/IOAppReceiver.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.20;\\n\\nimport { ILayerZeroReceiver, Origin } from \\\"@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/ILayerZeroReceiver.sol\\\";\\n\\ninterface IOAppReceiver is ILayerZeroReceiver {\\n /**\\n * @notice Retrieves the address responsible for 'sending' composeMsg's to the Endpoint.\\n * @return sender The address responsible for 'sending' composeMsg's to the Endpoint.\\n *\\n * @dev Applications can optionally choose to implement a separate composeMsg sender that is NOT the bridging layer.\\n * @dev The default sender IS the OApp implementer.\\n */\\n function composeMsgSender() external view returns (address sender);\\n}\\n\",\"keccak256\":\"0xa46d8caeae0fdd877ed6549e066bcf9ab10d2b536878d56f6935ab9677e2644e\",\"license\":\"MIT\"},\"@layerzerolabs/lz-evm-oapp-v2/contracts/oft/interfaces/IOFT.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.8.20;\\n\\nimport { MessagingReceipt, MessagingFee } from \\\"../../oapp/OAppSender.sol\\\";\\n\\n/**\\n * @dev Struct representing token parameters for the OFT send() operation.\\n */\\nstruct SendParam {\\n uint32 dstEid; // Destination endpoint ID.\\n bytes32 to; // Recipient address.\\n uint256 amountLD; // Amount to send in local decimals.\\n uint256 minAmountLD; // Minimum amount to send in local decimals.\\n bytes extraOptions; // Additional options supplied by the caller to be used in the LayerZero message.\\n bytes composeMsg; // The composed message for the send() operation.\\n bytes oftCmd; // The OFT command to be executed, unused in default OFT implementations.\\n}\\n\\n/**\\n * @dev Struct representing OFT limit information.\\n * @dev These amounts can change dynamically and are up the the specific oft implementation.\\n */\\nstruct OFTLimit {\\n uint256 minAmountLD; // Minimum amount in local decimals that can be sent to the recipient.\\n uint256 maxAmountLD; // Maximum amount in local decimals that can be sent to the recipient.\\n}\\n\\n/**\\n * @dev Struct representing OFT receipt information.\\n */\\nstruct OFTReceipt {\\n uint256 amountSentLD; // Amount of tokens ACTUALLY debited from the sender in local decimals.\\n // @dev In non-default implementations, the amountReceivedLD COULD differ from this value.\\n uint256 amountReceivedLD; // Amount of tokens to be received on the remote side.\\n}\\n\\n/**\\n * @dev Struct representing OFT fee details.\\n * @dev Future proof mechanism to provide a standardized way to communicate fees to things like a UI.\\n */\\nstruct OFTFeeDetail {\\n int256 feeAmountLD; // Amount of the fee in local decimals.\\n string description; // Description of the fee.\\n}\\n\\n/**\\n * @title IOFT\\n * @dev Interface for the OftChain (OFT) token.\\n * @dev Does not inherit ERC20 to accommodate usage by OFTAdapter as well.\\n * @dev This specific interface ID is '0x02e49c2c'.\\n */\\ninterface IOFT {\\n // Custom error messages\\n error InvalidLocalDecimals();\\n error SlippageExceeded(uint256 amountLD, uint256 minAmountLD);\\n\\n // Events\\n event OFTSent(\\n bytes32 indexed guid, // GUID of the OFT message.\\n uint32 dstEid, // Destination Endpoint ID.\\n address indexed fromAddress, // Address of the sender on the src chain.\\n uint256 amountSentLD, // Amount of tokens sent in local decimals.\\n uint256 amountReceivedLD // Amount of tokens received in local decimals.\\n );\\n event OFTReceived(\\n bytes32 indexed guid, // GUID of the OFT message.\\n uint32 srcEid, // Source Endpoint ID.\\n address indexed toAddress, // Address of the recipient on the dst chain.\\n uint256 amountReceivedLD // Amount of tokens received in local decimals.\\n );\\n\\n /**\\n * @notice Retrieves interfaceID and the version of the OFT.\\n * @return interfaceId The interface ID.\\n * @return version The version.\\n *\\n * @dev interfaceId: This specific interface ID is '0x02e49c2c'.\\n * @dev version: Indicates a cross-chain compatible msg encoding with other OFTs.\\n * @dev If a new feature is added to the OFT cross-chain msg encoding, the version will be incremented.\\n * ie. localOFT version(x,1) CAN send messages to remoteOFT version(x,1)\\n */\\n function oftVersion() external view returns (bytes4 interfaceId, uint64 version);\\n\\n /**\\n * @notice Retrieves the address of the token associated with the OFT.\\n * @return token The address of the ERC20 token implementation.\\n */\\n function token() external view returns (address);\\n\\n /**\\n * @notice Indicates whether the OFT contract requires approval of the 'token()' to send.\\n * @return requiresApproval Needs approval of the underlying token implementation.\\n *\\n * @dev Allows things like wallet implementers to determine integration requirements,\\n * without understanding the underlying token implementation.\\n */\\n function approvalRequired() external view returns (bool);\\n\\n /**\\n * @notice Retrieves the shared decimals of the OFT.\\n * @return sharedDecimals The shared decimals of the OFT.\\n */\\n function sharedDecimals() external view returns (uint8);\\n\\n /**\\n * @notice Provides a quote for OFT-related operations.\\n * @param _sendParam The parameters for the send operation.\\n * @return limit The OFT limit information.\\n * @return oftFeeDetails The details of OFT fees.\\n * @return receipt The OFT receipt information.\\n */\\n function quoteOFT(\\n SendParam calldata _sendParam\\n ) external view returns (OFTLimit memory, OFTFeeDetail[] memory oftFeeDetails, OFTReceipt memory);\\n\\n /**\\n * @notice Provides a quote for the send() operation.\\n * @param _sendParam The parameters for the send() operation.\\n * @param _payInLzToken Flag indicating whether the caller is paying in the LZ token.\\n * @return fee The calculated LayerZero messaging fee from the send() operation.\\n *\\n * @dev MessagingFee: LayerZero msg fee\\n * - nativeFee: The native fee.\\n * - lzTokenFee: The lzToken fee.\\n */\\n function quoteSend(SendParam calldata _sendParam, bool _payInLzToken) external view returns (MessagingFee memory);\\n\\n /**\\n * @notice Executes the send() operation.\\n * @param _sendParam The parameters for the send operation.\\n * @param _fee The fee information supplied by the caller.\\n * - nativeFee: The native fee.\\n * - lzTokenFee: The lzToken fee.\\n * @param _refundAddress The address to receive any excess funds from fees etc. on the src.\\n * @return receipt The LayerZero messaging receipt from the send() operation.\\n * @return oftReceipt The OFT receipt information.\\n *\\n * @dev MessagingReceipt: LayerZero msg receipt\\n * - guid: The unique identifier for the sent message.\\n * - nonce: The nonce of the sent message.\\n * - fee: The LayerZero fee incurred for the message.\\n */\\n function send(\\n SendParam calldata _sendParam,\\n MessagingFee calldata _fee,\\n address _refundAddress\\n ) external payable returns (MessagingReceipt memory, OFTReceipt memory);\\n}\\n\",\"keccak256\":\"0x42431bdbe135f7cfefd0be6cd345a6a1045124f6ea707a06756ef2322140eef5\",\"license\":\"MIT\"},\"@layerzerolabs/lz-evm-oapp-v2/contracts/oft/libs/OFTComposeMsgCodec.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.8.20;\\n\\nlibrary OFTComposeMsgCodec {\\n // Offset constants for decoding composed messages\\n uint8 private constant NONCE_OFFSET = 8;\\n uint8 private constant SRC_EID_OFFSET = 12;\\n uint8 private constant AMOUNT_LD_OFFSET = 44;\\n uint8 private constant COMPOSE_FROM_OFFSET = 76;\\n\\n /**\\n * @dev Encodes a OFT composed message.\\n * @param _nonce The nonce value.\\n * @param _srcEid The source endpoint ID.\\n * @param _amountLD The amount in local decimals.\\n * @param _composeMsg The composed message.\\n * @return _msg The encoded Composed message.\\n */\\n function encode(\\n uint64 _nonce,\\n uint32 _srcEid,\\n uint256 _amountLD,\\n bytes memory _composeMsg // 0x[composeFrom][composeMsg]\\n ) internal pure returns (bytes memory _msg) {\\n _msg = abi.encodePacked(_nonce, _srcEid, _amountLD, _composeMsg);\\n }\\n\\n /**\\n * @dev Retrieves the nonce from the composed message.\\n * @param _msg The message.\\n * @return The nonce value.\\n */\\n function nonce(bytes calldata _msg) internal pure returns (uint64) {\\n return uint64(bytes8(_msg[:NONCE_OFFSET]));\\n }\\n\\n /**\\n * @dev Retrieves the source endpoint ID from the composed message.\\n * @param _msg The message.\\n * @return The source endpoint ID.\\n */\\n function srcEid(bytes calldata _msg) internal pure returns (uint32) {\\n return uint32(bytes4(_msg[NONCE_OFFSET:SRC_EID_OFFSET]));\\n }\\n\\n /**\\n * @dev Retrieves the amount in local decimals from the composed message.\\n * @param _msg The message.\\n * @return The amount in local decimals.\\n */\\n function amountLD(bytes calldata _msg) internal pure returns (uint256) {\\n return uint256(bytes32(_msg[SRC_EID_OFFSET:AMOUNT_LD_OFFSET]));\\n }\\n\\n /**\\n * @dev Retrieves the composeFrom value from the composed message.\\n * @param _msg The message.\\n * @return The composeFrom value.\\n */\\n function composeFrom(bytes calldata _msg) internal pure returns (bytes32) {\\n return bytes32(_msg[AMOUNT_LD_OFFSET:COMPOSE_FROM_OFFSET]);\\n }\\n\\n /**\\n * @dev Retrieves the composed message.\\n * @param _msg The message.\\n * @return The composed message.\\n */\\n function composeMsg(bytes calldata _msg) internal pure returns (bytes memory) {\\n return _msg[COMPOSE_FROM_OFFSET:];\\n }\\n\\n /**\\n * @dev Converts an address to bytes32.\\n * @param _addr The address to convert.\\n * @return The bytes32 representation of the address.\\n */\\n function addressToBytes32(address _addr) internal pure returns (bytes32) {\\n return bytes32(uint256(uint160(_addr)));\\n }\\n\\n /**\\n * @dev Converts bytes32 to an address.\\n * @param _b The bytes32 value to convert.\\n * @return The address representation of bytes32.\\n */\\n function bytes32ToAddress(bytes32 _b) internal pure returns (address) {\\n return address(uint160(uint256(_b)));\\n }\\n}\\n\",\"keccak256\":\"0xfbdaf41743232e6ff64cd00b495ee854d0225e2bb73a66fe9b413d2780359902\",\"license\":\"MIT\"},\"@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/ILayerZeroEndpointV2.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity >=0.8.0;\\n\\nimport { IMessageLibManager } from \\\"./IMessageLibManager.sol\\\";\\nimport { IMessagingComposer } from \\\"./IMessagingComposer.sol\\\";\\nimport { IMessagingChannel } from \\\"./IMessagingChannel.sol\\\";\\nimport { IMessagingContext } from \\\"./IMessagingContext.sol\\\";\\n\\nstruct MessagingParams {\\n uint32 dstEid;\\n bytes32 receiver;\\n bytes message;\\n bytes options;\\n bool payInLzToken;\\n}\\n\\nstruct MessagingReceipt {\\n bytes32 guid;\\n uint64 nonce;\\n MessagingFee fee;\\n}\\n\\nstruct MessagingFee {\\n uint256 nativeFee;\\n uint256 lzTokenFee;\\n}\\n\\nstruct Origin {\\n uint32 srcEid;\\n bytes32 sender;\\n uint64 nonce;\\n}\\n\\nenum ExecutionState {\\n NotExecutable,\\n Executable,\\n Executed\\n}\\n\\ninterface ILayerZeroEndpointV2 is IMessageLibManager, IMessagingComposer, IMessagingChannel, IMessagingContext {\\n event PacketSent(bytes encodedPayload, bytes options, address sendLibrary);\\n\\n event PacketVerified(Origin origin, address receiver, bytes32 payloadHash);\\n\\n event PacketDelivered(Origin origin, address receiver);\\n\\n event LzReceiveAlert(\\n address indexed receiver,\\n address indexed executor,\\n Origin origin,\\n bytes32 guid,\\n uint256 gas,\\n uint256 value,\\n bytes message,\\n bytes extraData,\\n bytes reason\\n );\\n\\n event LzTokenSet(address token);\\n\\n function quote(MessagingParams calldata _params, address _sender) external view returns (MessagingFee memory);\\n\\n function send(\\n MessagingParams calldata _params,\\n address _refundAddress\\n ) external payable returns (MessagingReceipt memory);\\n\\n function verify(Origin calldata _origin, address _receiver, bytes32 _payloadHash) external;\\n\\n function verifiable(\\n Origin calldata _origin,\\n address _receiver,\\n address _receiveLib,\\n bytes32 _payloadHash\\n ) external view returns (bool);\\n\\n function executable(Origin calldata _origin, address _receiver) external view returns (ExecutionState);\\n\\n function lzReceive(\\n Origin calldata _origin,\\n address _receiver,\\n bytes32 _guid,\\n bytes calldata _message,\\n bytes calldata _extraData\\n ) external payable;\\n\\n // oapp can burn messages partially by calling this function with its own business logic if messages are verified in order\\n function clear(address _oapp, Origin calldata _origin, bytes32 _guid, bytes calldata _message) external;\\n\\n function setLzToken(address _lzToken) external;\\n\\n function lzToken() external view returns (address);\\n\\n function nativeToken() external view returns (address);\\n\\n function setDelegate(address _delegate) external;\\n}\\n\",\"keccak256\":\"0xbc3b4a31ccf905e2f61fe248c57da6591670d286e910d634502598c490c7c671\",\"license\":\"MIT\"},\"@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/ILayerZeroReceiver.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity >=0.8.0;\\n\\nimport { Origin } from \\\"./ILayerZeroEndpointV2.sol\\\";\\n\\ninterface ILayerZeroReceiver {\\n function allowInitializePath(Origin calldata _origin) external view returns (bool);\\n\\n // todo: move to OAppReceiver? it is just convention for executor. we may can change it in a new Receiver version\\n function nextNonce(uint32 _eid, bytes32 _sender) external view returns (uint64);\\n\\n function lzReceive(\\n Origin calldata _origin,\\n bytes32 _guid,\\n bytes calldata _message,\\n address _executor,\\n bytes calldata _extraData\\n ) external payable;\\n}\\n\",\"keccak256\":\"0x236fc24440589ea45c226b24397632b2b1f328818151be3d791df9e286596fbb\",\"license\":\"MIT\"},\"@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessageLibManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity >=0.8.0;\\n\\nstruct SetConfigParam {\\n uint32 eid;\\n uint32 configType;\\n bytes config;\\n}\\n\\ninterface IMessageLibManager {\\n struct Timeout {\\n address lib;\\n uint256 expiry;\\n }\\n\\n event LibraryRegistered(address newLib);\\n event DefaultSendLibrarySet(uint32 eid, address newLib);\\n event DefaultReceiveLibrarySet(uint32 eid, address oldLib, address newLib);\\n event DefaultReceiveLibraryTimeoutSet(uint32 eid, address oldLib, uint256 expiry);\\n event SendLibrarySet(address sender, uint32 eid, address newLib);\\n event ReceiveLibrarySet(address receiver, uint32 eid, address oldLib, address newLib);\\n event ReceiveLibraryTimeoutSet(address receiver, uint32 eid, address oldLib, uint256 timeout);\\n\\n function registerLibrary(address _lib) external;\\n\\n function isRegisteredLibrary(address _lib) external view returns (bool);\\n\\n function getRegisteredLibraries() external view returns (address[] memory);\\n\\n function setDefaultSendLibrary(uint32 _eid, address _newLib) external;\\n\\n function defaultSendLibrary(uint32 _eid) external view returns (address);\\n\\n function setDefaultReceiveLibrary(uint32 _eid, address _newLib, uint256 _timeout) external;\\n\\n function defaultReceiveLibrary(uint32 _eid) external view returns (address);\\n\\n function setDefaultReceiveLibraryTimeout(uint32 _eid, address _lib, uint256 _expiry) external;\\n\\n function defaultReceiveLibraryTimeout(uint32 _eid) external view returns (address lib, uint256 expiry);\\n\\n function isSupportedEid(uint32 _eid) external view returns (bool);\\n\\n /// ------------------- OApp interfaces -------------------\\n function setSendLibrary(address _oapp, uint32 _eid, address _newLib) external;\\n\\n function getSendLibrary(address _sender, uint32 _eid) external view returns (address lib);\\n\\n function isDefaultSendLibrary(address _sender, uint32 _eid) external view returns (bool);\\n\\n function setReceiveLibrary(address _oapp, uint32 _eid, address _newLib, uint256 _gracePeriod) external;\\n\\n function getReceiveLibrary(address _receiver, uint32 _eid) external view returns (address lib, bool isDefault);\\n\\n function setReceiveLibraryTimeout(address _oapp, uint32 _eid, address _lib, uint256 _gracePeriod) external;\\n\\n function receiveLibraryTimeout(address _receiver, uint32 _eid) external view returns (address lib, uint256 expiry);\\n\\n function setConfig(address _oapp, address _lib, SetConfigParam[] calldata _params) external;\\n\\n function getConfig(\\n address _oapp,\\n address _lib,\\n uint32 _eid,\\n uint32 _configType\\n ) external view returns (bytes memory config);\\n}\\n\",\"keccak256\":\"0xe47b048f28b0705b66bdd62c62990c0d068ce0568c15962c2d6f2feed3fdf06e\",\"license\":\"MIT\"},\"@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessagingChannel.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity >=0.8.0;\\n\\ninterface IMessagingChannel {\\n event InboundNonceSkipped(uint32 srcEid, bytes32 sender, address receiver, uint64 nonce);\\n event PacketNilified(uint32 srcEid, bytes32 sender, address receiver, uint64 nonce, bytes32 payloadHash);\\n event PacketBurnt(uint32 srcEid, bytes32 sender, address receiver, uint64 nonce, bytes32 payloadHash);\\n\\n function eid() external view returns (uint32);\\n\\n // this is an emergency function if a message cannot be verified for some reasons\\n // required to provide _nextNonce to avoid race condition\\n function skip(address _oapp, uint32 _srcEid, bytes32 _sender, uint64 _nonce) external;\\n\\n function nilify(address _oapp, uint32 _srcEid, bytes32 _sender, uint64 _nonce, bytes32 _payloadHash) external;\\n\\n function burn(address _oapp, uint32 _srcEid, bytes32 _sender, uint64 _nonce, bytes32 _payloadHash) external;\\n\\n function nextGuid(address _sender, uint32 _dstEid, bytes32 _receiver) external view returns (bytes32);\\n\\n function inboundNonce(address _receiver, uint32 _srcEid, bytes32 _sender) external view returns (uint64);\\n\\n function outboundNonce(address _sender, uint32 _dstEid, bytes32 _receiver) external view returns (uint64);\\n\\n function inboundPayloadHash(\\n address _receiver,\\n uint32 _srcEid,\\n bytes32 _sender,\\n uint64 _nonce\\n ) external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x37e57a48c2019d37d77913bed32a349c2958423723bac6aa75cf271b57d8ba51\",\"license\":\"MIT\"},\"@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessagingComposer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity >=0.8.0;\\n\\ninterface IMessagingComposer {\\n event ComposeSent(address from, address to, bytes32 guid, uint16 index, bytes message);\\n event ComposeDelivered(address from, address to, bytes32 guid, uint16 index);\\n event LzComposeAlert(\\n address indexed from,\\n address indexed to,\\n address indexed executor,\\n bytes32 guid,\\n uint16 index,\\n uint256 gas,\\n uint256 value,\\n bytes message,\\n bytes extraData,\\n bytes reason\\n );\\n\\n function composeQueue(\\n address _from,\\n address _to,\\n bytes32 _guid,\\n uint16 _index\\n ) external view returns (bytes32 messageHash);\\n\\n function sendCompose(address _to, bytes32 _guid, uint16 _index, bytes calldata _message) external;\\n\\n function lzCompose(\\n address _from,\\n address _to,\\n bytes32 _guid,\\n uint16 _index,\\n bytes calldata _message,\\n bytes calldata _extraData\\n ) external payable;\\n}\\n\",\"keccak256\":\"0x85bc7090134529ec474866dc4bb1c48692d518c756eb0a961c82574829c51901\",\"license\":\"MIT\"},\"@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessagingContext.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity >=0.8.0;\\n\\ninterface IMessagingContext {\\n function isSendingMessage() external view returns (bool);\\n\\n function getSendContext() external view returns (uint32 dstEid, address sender);\\n}\\n\",\"keccak256\":\"0xff0c546c2813dae3e440882f46b377375f7461b0714efd80bd3f0c6e5cb8da4e\",\"license\":\"MIT\"},\"@openzeppelin/contracts/access/Ownable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/Context.sol\\\";\\n\\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 _transferOwnership(_msgSender());\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\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 the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n require(owner() == _msgSender(), \\\"Ownable: caller is not the owner\\\");\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby disabling any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(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 _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n}\\n\",\"keccak256\":\"0xba43b97fba0d32eb4254f6a5a297b39a19a247082a02d6e69349e071e2946218\",\"license\":\"MIT\"},\"@openzeppelin/contracts/interfaces/IERC5267.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC5267.sol)\\n\\npragma solidity ^0.8.0;\\n\\ninterface IERC5267 {\\n /**\\n * @dev MAY be emitted to signal that the domain could have changed.\\n */\\n event EIP712DomainChanged();\\n\\n /**\\n * @dev returns the fields and values that describe the domain separator used by this contract for EIP-712\\n * signature.\\n */\\n function eip712Domain()\\n external\\n view\\n returns (\\n bytes1 fields,\\n string memory name,\\n string memory version,\\n uint256 chainId,\\n address verifyingContract,\\n bytes32 salt,\\n uint256[] memory extensions\\n );\\n}\\n\",\"keccak256\":\"0xac6c2efc64baccbde4904ae18ed45139c9aa8cff96d6888344d1e4d2eb8b659f\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/ERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/ERC20.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IERC20.sol\\\";\\nimport \\\"./extensions/IERC20Metadata.sol\\\";\\nimport \\\"../../utils/Context.sol\\\";\\n\\n/**\\n * @dev Implementation of the {IERC20} interface.\\n *\\n * This implementation is agnostic to the way tokens are created. This means\\n * that a supply mechanism has to be added in a derived contract using {_mint}.\\n * For a generic mechanism see {ERC20PresetMinterPauser}.\\n *\\n * TIP: For a detailed writeup see our guide\\n * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How\\n * to implement supply mechanisms].\\n *\\n * The default value of {decimals} is 18. To change this, you should override\\n * this function so it returns a different value.\\n *\\n * We have followed general OpenZeppelin Contracts guidelines: functions revert\\n * instead returning `false` on failure. This behavior is nonetheless\\n * conventional and does not conflict with the expectations of ERC20\\n * applications.\\n *\\n * Additionally, an {Approval} event is emitted on calls to {transferFrom}.\\n * This allows applications to reconstruct the allowance for all accounts just\\n * by listening to said events. Other implementations of the EIP may not emit\\n * these events, as it isn't required by the specification.\\n *\\n * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}\\n * functions have been added to mitigate the well-known issues around setting\\n * allowances. See {IERC20-approve}.\\n */\\ncontract ERC20 is Context, IERC20, IERC20Metadata {\\n mapping(address => uint256) private _balances;\\n\\n mapping(address => mapping(address => uint256)) private _allowances;\\n\\n uint256 private _totalSupply;\\n\\n string private _name;\\n string private _symbol;\\n\\n /**\\n * @dev Sets the values for {name} and {symbol}.\\n *\\n * All two of these values are immutable: they can only be set once during\\n * construction.\\n */\\n constructor(string memory name_, string memory symbol_) {\\n _name = name_;\\n _symbol = symbol_;\\n }\\n\\n /**\\n * @dev Returns the name of the token.\\n */\\n function name() public view virtual override returns (string memory) {\\n return _name;\\n }\\n\\n /**\\n * @dev Returns the symbol of the token, usually a shorter version of the\\n * name.\\n */\\n function symbol() public view virtual override returns (string memory) {\\n return _symbol;\\n }\\n\\n /**\\n * @dev Returns the number of decimals used to get its user representation.\\n * For example, if `decimals` equals `2`, a balance of `505` tokens should\\n * be displayed to a user as `5.05` (`505 / 10 ** 2`).\\n *\\n * Tokens usually opt for a value of 18, imitating the relationship between\\n * Ether and Wei. This is the default value returned by this function, unless\\n * it's overridden.\\n *\\n * NOTE: This information is only used for _display_ purposes: it in\\n * no way affects any of the arithmetic of the contract, including\\n * {IERC20-balanceOf} and {IERC20-transfer}.\\n */\\n function decimals() public view virtual override returns (uint8) {\\n return 18;\\n }\\n\\n /**\\n * @dev See {IERC20-totalSupply}.\\n */\\n function totalSupply() public view virtual override returns (uint256) {\\n return _totalSupply;\\n }\\n\\n /**\\n * @dev See {IERC20-balanceOf}.\\n */\\n function balanceOf(address account) public view virtual override returns (uint256) {\\n return _balances[account];\\n }\\n\\n /**\\n * @dev See {IERC20-transfer}.\\n *\\n * Requirements:\\n *\\n * - `to` cannot be the zero address.\\n * - the caller must have a balance of at least `amount`.\\n */\\n function transfer(address to, uint256 amount) public virtual override returns (bool) {\\n address owner = _msgSender();\\n _transfer(owner, to, amount);\\n return true;\\n }\\n\\n /**\\n * @dev See {IERC20-allowance}.\\n */\\n function allowance(address owner, address spender) public view virtual override returns (uint256) {\\n return _allowances[owner][spender];\\n }\\n\\n /**\\n * @dev See {IERC20-approve}.\\n *\\n * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on\\n * `transferFrom`. This is semantically equivalent to an infinite approval.\\n *\\n * Requirements:\\n *\\n * - `spender` cannot be the zero address.\\n */\\n function approve(address spender, uint256 amount) public virtual override returns (bool) {\\n address owner = _msgSender();\\n _approve(owner, spender, amount);\\n return true;\\n }\\n\\n /**\\n * @dev See {IERC20-transferFrom}.\\n *\\n * Emits an {Approval} event indicating the updated allowance. This is not\\n * required by the EIP. See the note at the beginning of {ERC20}.\\n *\\n * NOTE: Does not update the allowance if the current allowance\\n * is the maximum `uint256`.\\n *\\n * Requirements:\\n *\\n * - `from` and `to` cannot be the zero address.\\n * - `from` must have a balance of at least `amount`.\\n * - the caller must have allowance for ``from``'s tokens of at least\\n * `amount`.\\n */\\n function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) {\\n address spender = _msgSender();\\n _spendAllowance(from, spender, amount);\\n _transfer(from, to, amount);\\n return true;\\n }\\n\\n /**\\n * @dev Atomically increases the allowance granted to `spender` by the caller.\\n *\\n * This is an alternative to {approve} that can be used as a mitigation for\\n * problems described in {IERC20-approve}.\\n *\\n * Emits an {Approval} event indicating the updated allowance.\\n *\\n * Requirements:\\n *\\n * - `spender` cannot be the zero address.\\n */\\n function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {\\n address owner = _msgSender();\\n _approve(owner, spender, allowance(owner, spender) + addedValue);\\n return true;\\n }\\n\\n /**\\n * @dev Atomically decreases the allowance granted to `spender` by the caller.\\n *\\n * This is an alternative to {approve} that can be used as a mitigation for\\n * problems described in {IERC20-approve}.\\n *\\n * Emits an {Approval} event indicating the updated allowance.\\n *\\n * Requirements:\\n *\\n * - `spender` cannot be the zero address.\\n * - `spender` must have allowance for the caller of at least\\n * `subtractedValue`.\\n */\\n function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {\\n address owner = _msgSender();\\n uint256 currentAllowance = allowance(owner, spender);\\n require(currentAllowance >= subtractedValue, \\\"ERC20: decreased allowance below zero\\\");\\n unchecked {\\n _approve(owner, spender, currentAllowance - subtractedValue);\\n }\\n\\n return true;\\n }\\n\\n /**\\n * @dev Moves `amount` of tokens from `from` to `to`.\\n *\\n * This internal function is equivalent to {transfer}, and can be used to\\n * e.g. implement automatic token fees, slashing mechanisms, etc.\\n *\\n * Emits a {Transfer} event.\\n *\\n * Requirements:\\n *\\n * - `from` cannot be the zero address.\\n * - `to` cannot be the zero address.\\n * - `from` must have a balance of at least `amount`.\\n */\\n function _transfer(address from, address to, uint256 amount) internal virtual {\\n require(from != address(0), \\\"ERC20: transfer from the zero address\\\");\\n require(to != address(0), \\\"ERC20: transfer to the zero address\\\");\\n\\n _beforeTokenTransfer(from, to, amount);\\n\\n uint256 fromBalance = _balances[from];\\n require(fromBalance >= amount, \\\"ERC20: transfer amount exceeds balance\\\");\\n unchecked {\\n _balances[from] = fromBalance - amount;\\n // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by\\n // decrementing then incrementing.\\n _balances[to] += amount;\\n }\\n\\n emit Transfer(from, to, amount);\\n\\n _afterTokenTransfer(from, to, amount);\\n }\\n\\n /** @dev Creates `amount` tokens and assigns them to `account`, increasing\\n * the total supply.\\n *\\n * Emits a {Transfer} event with `from` set to the zero address.\\n *\\n * Requirements:\\n *\\n * - `account` cannot be the zero address.\\n */\\n function _mint(address account, uint256 amount) internal virtual {\\n require(account != address(0), \\\"ERC20: mint to the zero address\\\");\\n\\n _beforeTokenTransfer(address(0), account, amount);\\n\\n _totalSupply += amount;\\n unchecked {\\n // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.\\n _balances[account] += amount;\\n }\\n emit Transfer(address(0), account, amount);\\n\\n _afterTokenTransfer(address(0), account, amount);\\n }\\n\\n /**\\n * @dev Destroys `amount` tokens from `account`, reducing the\\n * total supply.\\n *\\n * Emits a {Transfer} event with `to` set to the zero address.\\n *\\n * Requirements:\\n *\\n * - `account` cannot be the zero address.\\n * - `account` must have at least `amount` tokens.\\n */\\n function _burn(address account, uint256 amount) internal virtual {\\n require(account != address(0), \\\"ERC20: burn from the zero address\\\");\\n\\n _beforeTokenTransfer(account, address(0), amount);\\n\\n uint256 accountBalance = _balances[account];\\n require(accountBalance >= amount, \\\"ERC20: burn amount exceeds balance\\\");\\n unchecked {\\n _balances[account] = accountBalance - amount;\\n // Overflow not possible: amount <= accountBalance <= totalSupply.\\n _totalSupply -= amount;\\n }\\n\\n emit Transfer(account, address(0), amount);\\n\\n _afterTokenTransfer(account, address(0), amount);\\n }\\n\\n /**\\n * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.\\n *\\n * This internal function is equivalent to `approve`, and can be used to\\n * e.g. set automatic allowances for certain subsystems, etc.\\n *\\n * Emits an {Approval} event.\\n *\\n * Requirements:\\n *\\n * - `owner` cannot be the zero address.\\n * - `spender` cannot be the zero address.\\n */\\n function _approve(address owner, address spender, uint256 amount) internal virtual {\\n require(owner != address(0), \\\"ERC20: approve from the zero address\\\");\\n require(spender != address(0), \\\"ERC20: approve to the zero address\\\");\\n\\n _allowances[owner][spender] = amount;\\n emit Approval(owner, spender, amount);\\n }\\n\\n /**\\n * @dev Updates `owner` s allowance for `spender` based on spent `amount`.\\n *\\n * Does not update the allowance amount in case of infinite allowance.\\n * Revert if not enough allowance is available.\\n *\\n * Might emit an {Approval} event.\\n */\\n function _spendAllowance(address owner, address spender, uint256 amount) internal virtual {\\n uint256 currentAllowance = allowance(owner, spender);\\n if (currentAllowance != type(uint256).max) {\\n require(currentAllowance >= amount, \\\"ERC20: insufficient allowance\\\");\\n unchecked {\\n _approve(owner, spender, currentAllowance - amount);\\n }\\n }\\n }\\n\\n /**\\n * @dev Hook that is called before any transfer of tokens. This includes\\n * minting and burning.\\n *\\n * Calling conditions:\\n *\\n * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens\\n * will be transferred to `to`.\\n * - when `from` is zero, `amount` tokens will be minted for `to`.\\n * - when `to` is zero, `amount` of ``from``'s tokens will be burned.\\n * - `from` and `to` are never both zero.\\n *\\n * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].\\n */\\n function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {}\\n\\n /**\\n * @dev Hook that is called after any transfer of tokens. This includes\\n * minting and burning.\\n *\\n * Calling conditions:\\n *\\n * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens\\n * has been transferred to `to`.\\n * - when `from` is zero, `amount` tokens have been minted for `to`.\\n * - when `to` is zero, `amount` of ``from``'s tokens have been burned.\\n * - `from` and `to` are never both zero.\\n *\\n * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].\\n */\\n function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {}\\n}\\n\",\"keccak256\":\"0xa56ca923f70c1748830700250b19c61b70db9a683516dc5e216694a50445d99c\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/IERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC20 standard as defined in the EIP.\\n */\\ninterface IERC20 {\\n /**\\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\\n * another (`to`).\\n *\\n * Note that `value` may be zero.\\n */\\n event Transfer(address indexed from, address indexed to, uint256 value);\\n\\n /**\\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\\n * a call to {approve}. `value` is the new allowance.\\n */\\n event Approval(address indexed owner, address indexed spender, uint256 value);\\n\\n /**\\n * @dev Returns the amount of tokens in existence.\\n */\\n function totalSupply() external view returns (uint256);\\n\\n /**\\n * @dev Returns the amount of tokens owned by `account`.\\n */\\n function balanceOf(address account) external view returns (uint256);\\n\\n /**\\n * @dev Moves `amount` tokens from the caller's account to `to`.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transfer(address to, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Returns the remaining number of tokens that `spender` will be\\n * allowed to spend on behalf of `owner` through {transferFrom}. This is\\n * zero by default.\\n *\\n * This value changes when {approve} or {transferFrom} are called.\\n */\\n function allowance(address owner, address spender) external view returns (uint256);\\n\\n /**\\n * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * IMPORTANT: Beware that changing an allowance with this method brings the risk\\n * that someone may use both the old and the new allowance by unfortunate\\n * transaction ordering. One possible solution to mitigate this race\\n * condition is to first reduce the spender's allowance to 0 and set the\\n * desired value afterwards:\\n * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\\n *\\n * Emits an {Approval} event.\\n */\\n function approve(address spender, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Moves `amount` tokens from `from` to `to` using the\\n * allowance mechanism. `amount` is then deducted from the caller's\\n * allowance.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transferFrom(address from, address to, uint256 amount) external returns (bool);\\n}\\n\",\"keccak256\":\"0x287b55befed2961a7eabd7d7b1b2839cbca8a5b80ef8dcbb25ed3d4c2002c305\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/extensions/ERC20Permit.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.4) (token/ERC20/extensions/ERC20Permit.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IERC20Permit.sol\\\";\\nimport \\\"../ERC20.sol\\\";\\nimport \\\"../../../utils/cryptography/ECDSA.sol\\\";\\nimport \\\"../../../utils/cryptography/EIP712.sol\\\";\\nimport \\\"../../../utils/Counters.sol\\\";\\n\\n/**\\n * @dev Implementation of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in\\n * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].\\n *\\n * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by\\n * presenting a message signed by the account. By not relying on `{IERC20-approve}`, the token holder account doesn't\\n * need to send a transaction, and thus is not required to hold Ether at all.\\n *\\n * _Available since v3.4._\\n */\\nabstract contract ERC20Permit is ERC20, IERC20Permit, EIP712 {\\n using Counters for Counters.Counter;\\n\\n mapping(address => Counters.Counter) private _nonces;\\n\\n // solhint-disable-next-line var-name-mixedcase\\n bytes32 private constant _PERMIT_TYPEHASH =\\n keccak256(\\\"Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)\\\");\\n /**\\n * @dev In previous versions `_PERMIT_TYPEHASH` was declared as `immutable`.\\n * However, to ensure consistency with the upgradeable transpiler, we will continue\\n * to reserve a slot.\\n * @custom:oz-renamed-from _PERMIT_TYPEHASH\\n */\\n // solhint-disable-next-line var-name-mixedcase\\n bytes32 private _PERMIT_TYPEHASH_DEPRECATED_SLOT;\\n\\n /**\\n * @dev Initializes the {EIP712} domain separator using the `name` parameter, and setting `version` to `\\\"1\\\"`.\\n *\\n * It's a good idea to use the same `name` that is defined as the ERC20 token name.\\n */\\n constructor(string memory name) EIP712(name, \\\"1\\\") {}\\n\\n /**\\n * @inheritdoc IERC20Permit\\n */\\n function permit(\\n address owner,\\n address spender,\\n uint256 value,\\n uint256 deadline,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) public virtual override {\\n require(block.timestamp <= deadline, \\\"ERC20Permit: expired deadline\\\");\\n\\n bytes32 structHash = keccak256(abi.encode(_PERMIT_TYPEHASH, owner, spender, value, _useNonce(owner), deadline));\\n\\n bytes32 hash = _hashTypedDataV4(structHash);\\n\\n address signer = ECDSA.recover(hash, v, r, s);\\n require(signer == owner, \\\"ERC20Permit: invalid signature\\\");\\n\\n _approve(owner, spender, value);\\n }\\n\\n /**\\n * @inheritdoc IERC20Permit\\n */\\n function nonces(address owner) public view virtual override returns (uint256) {\\n return _nonces[owner].current();\\n }\\n\\n /**\\n * @inheritdoc IERC20Permit\\n */\\n // solhint-disable-next-line func-name-mixedcase\\n function DOMAIN_SEPARATOR() external view override returns (bytes32) {\\n return _domainSeparatorV4();\\n }\\n\\n /**\\n * @dev \\\"Consume a nonce\\\": return the current value and increment.\\n *\\n * _Available since v4.1._\\n */\\n function _useNonce(address owner) internal virtual returns (uint256 current) {\\n Counters.Counter storage nonce = _nonces[owner];\\n current = nonce.current();\\n nonce.increment();\\n }\\n}\\n\",\"keccak256\":\"0xbb16110ffe0b625944fe7dd97adcf1158e514185c956a5628bc09be90d606174\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../IERC20.sol\\\";\\n\\n/**\\n * @dev Interface for the optional metadata functions from the ERC20 standard.\\n *\\n * _Available since v4.1._\\n */\\ninterface IERC20Metadata is IERC20 {\\n /**\\n * @dev Returns the name of the token.\\n */\\n function name() external view returns (string memory);\\n\\n /**\\n * @dev Returns the symbol of the token.\\n */\\n function symbol() external view returns (string memory);\\n\\n /**\\n * @dev Returns the decimals places of the token.\\n */\\n function decimals() external view returns (uint8);\\n}\\n\",\"keccak256\":\"0x8de418a5503946cabe331f35fe242d3201a73f67f77aaeb7110acb1f30423aca\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/extensions/IERC20Permit.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.4) (token/ERC20/extensions/IERC20Permit.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in\\n * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].\\n *\\n * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by\\n * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't\\n * need to send a transaction, and thus is not required to hold Ether at all.\\n *\\n * ==== Security Considerations\\n *\\n * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature\\n * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be\\n * considered as an intention to spend the allowance in any specific way. The second is that because permits have\\n * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should\\n * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be\\n * generally recommended is:\\n *\\n * ```solidity\\n * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {\\n * try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}\\n * doThing(..., value);\\n * }\\n *\\n * function doThing(..., uint256 value) public {\\n * token.safeTransferFrom(msg.sender, address(this), value);\\n * ...\\n * }\\n * ```\\n *\\n * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of\\n * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also\\n * {SafeERC20-safeTransferFrom}).\\n *\\n * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so\\n * contracts should have entry points that don't rely on permit.\\n */\\ninterface IERC20Permit {\\n /**\\n * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,\\n * given ``owner``'s signed approval.\\n *\\n * IMPORTANT: The same issues {IERC20-approve} has related to transaction\\n * ordering also apply here.\\n *\\n * Emits an {Approval} event.\\n *\\n * Requirements:\\n *\\n * - `spender` cannot be the zero address.\\n * - `deadline` must be a timestamp in the future.\\n * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`\\n * over the EIP712-formatted function arguments.\\n * - the signature must use ``owner``'s current nonce (see {nonces}).\\n *\\n * For more information on the signature format, see the\\n * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP\\n * section].\\n *\\n * CAUTION: See Security Considerations above.\\n */\\n function permit(\\n address owner,\\n address spender,\\n uint256 value,\\n uint256 deadline,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) external;\\n\\n /**\\n * @dev Returns the current nonce for `owner`. This value must be\\n * included whenever a signature is generated for {permit}.\\n *\\n * Every successful call to {permit} increases ``owner``'s nonce by one. This\\n * prevents a signature from being used multiple times.\\n */\\n function nonces(address owner) external view returns (uint256);\\n\\n /**\\n * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.\\n */\\n // solhint-disable-next-line func-name-mixedcase\\n function DOMAIN_SEPARATOR() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0xb264c03a3442eb37a68ad620cefd1182766b58bee6cec40343480392d6b14d69\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.3) (token/ERC20/utils/SafeERC20.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../IERC20.sol\\\";\\nimport \\\"../extensions/IERC20Permit.sol\\\";\\nimport \\\"../../../utils/Address.sol\\\";\\n\\n/**\\n * @title SafeERC20\\n * @dev Wrappers around ERC20 operations that throw on failure (when the token\\n * contract returns false). Tokens that return no value (and instead revert or\\n * throw on failure) are also supported, non-reverting calls are assumed to be\\n * successful.\\n * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,\\n * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.\\n */\\nlibrary SafeERC20 {\\n using Address for address;\\n\\n /**\\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\\n * non-reverting calls are assumed to be successful.\\n */\\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\\n _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));\\n }\\n\\n /**\\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\\n */\\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\\n _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));\\n }\\n\\n /**\\n * @dev Deprecated. This function has issues similar to the ones found in\\n * {IERC20-approve}, and its usage is discouraged.\\n *\\n * Whenever possible, use {safeIncreaseAllowance} and\\n * {safeDecreaseAllowance} instead.\\n */\\n function safeApprove(IERC20 token, address spender, uint256 value) internal {\\n // safeApprove should only be called when setting an initial allowance,\\n // or when resetting it to zero. To increase and decrease it, use\\n // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'\\n require(\\n (value == 0) || (token.allowance(address(this), spender) == 0),\\n \\\"SafeERC20: approve from non-zero to non-zero allowance\\\"\\n );\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));\\n }\\n\\n /**\\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\\n * non-reverting calls are assumed to be successful.\\n */\\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\\n uint256 oldAllowance = token.allowance(address(this), spender);\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));\\n }\\n\\n /**\\n * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\\n * non-reverting calls are assumed to be successful.\\n */\\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {\\n unchecked {\\n uint256 oldAllowance = token.allowance(address(this), spender);\\n require(oldAllowance >= value, \\\"SafeERC20: decreased allowance below zero\\\");\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));\\n }\\n }\\n\\n /**\\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\\n * to be set to zero before setting it to a non-zero value, such as USDT.\\n */\\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\\n bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);\\n\\n if (!_callOptionalReturnBool(token, approvalCall)) {\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0));\\n _callOptionalReturn(token, approvalCall);\\n }\\n }\\n\\n /**\\n * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.\\n * Revert on invalid signature.\\n */\\n function safePermit(\\n IERC20Permit token,\\n address owner,\\n address spender,\\n uint256 value,\\n uint256 deadline,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal {\\n uint256 nonceBefore = token.nonces(owner);\\n token.permit(owner, spender, value, deadline, v, r, s);\\n uint256 nonceAfter = token.nonces(owner);\\n require(nonceAfter == nonceBefore + 1, \\\"SafeERC20: permit did not succeed\\\");\\n }\\n\\n /**\\n * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement\\n * on the return value: the return value is optional (but if data is returned, it must not be false).\\n * @param token The token targeted by the call.\\n * @param data The call data (encoded using abi.encode or one of its variants).\\n */\\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\\n // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since\\n // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that\\n // the target address contains contract code and also asserts for success in the low-level call.\\n\\n bytes memory returndata = address(token).functionCall(data, \\\"SafeERC20: low-level call failed\\\");\\n require(returndata.length == 0 || abi.decode(returndata, (bool)), \\\"SafeERC20: ERC20 operation did not succeed\\\");\\n }\\n\\n /**\\n * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement\\n * on the return value: the return value is optional (but if data is returned, it must not be false).\\n * @param token The token targeted by the call.\\n * @param data The call data (encoded using abi.encode or one of its variants).\\n *\\n * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.\\n */\\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\\n // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since\\n // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false\\n // and not revert is the subcall reverts.\\n\\n (bool success, bytes memory returndata) = address(token).call(data);\\n return\\n success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token));\\n }\\n}\\n\",\"keccak256\":\"0xabefac93435967b4d36a4fabcbdbb918d1f0b7ae3c3d85bc30923b326c927ed1\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Address.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary Address {\\n /**\\n * @dev Returns true if `account` is a contract.\\n *\\n * [IMPORTANT]\\n * ====\\n * It is unsafe to assume that an address for which this function returns\\n * false is an externally-owned account (EOA) and not a contract.\\n *\\n * Among others, `isContract` will return false for the following\\n * types of addresses:\\n *\\n * - an externally-owned account\\n * - a contract in construction\\n * - an address where a contract will be created\\n * - an address where a contract lived, but was destroyed\\n *\\n * Furthermore, `isContract` will also return true if the target contract within\\n * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,\\n * which only has an effect at the end of a transaction.\\n * ====\\n *\\n * [IMPORTANT]\\n * ====\\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\\n *\\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n * constructor.\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize/address.code.length, which returns 0\\n // for contracts in construction, since the code is only stored at the end\\n // of the constructor execution.\\n\\n return account.code.length > 0;\\n }\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n require(address(this).balance >= amount, \\\"Address: insufficient balance\\\");\\n\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n require(success, \\\"Address: unable to send value, recipient may have reverted\\\");\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason, it is bubbled up by this\\n * function (like regular Solidity function calls).\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, \\\"Address: low-level call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n * `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, value, \\\"Address: low-level call with value failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n * with `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\\"Address: insufficient balance for call\\\");\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n return functionStaticCall(target, data, \\\"Address: low-level static call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionDelegateCall(target, data, \\\"Address: low-level delegate call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\\n * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\\n *\\n * _Available since v4.8._\\n */\\n function verifyCallResultFromTarget(\\n address target,\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n if (success) {\\n if (returndata.length == 0) {\\n // only check isContract if the call was successful and the return data is empty\\n // otherwise we already know that it was a contract\\n require(isContract(target), \\\"Address: call to non-contract\\\");\\n }\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\\n * revert reason or using the provided one.\\n *\\n * _Available since v4.3._\\n */\\n function verifyCallResult(\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal pure returns (bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n function _revert(bytes memory returndata, string memory errorMessage) private pure {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n /// @solidity memory-safe-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x006dd67219697fe68d7fbfdea512e7c4cb64a43565ed86171d67e844982da6fa\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.4) (utils/Context.sol)\\n\\npragma solidity ^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 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) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n function _contextSuffixLength() internal view virtual returns (uint256) {\\n return 0;\\n }\\n}\\n\",\"keccak256\":\"0xa92e4fa126feb6907daa0513ddd816b2eb91f30a808de54f63c17d0e162c3439\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Counters.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @title Counters\\n * @author Matt Condon (@shrugs)\\n * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number\\n * of elements in a mapping, issuing ERC721 ids, or counting request ids.\\n *\\n * Include with `using Counters for Counters.Counter;`\\n */\\nlibrary Counters {\\n struct Counter {\\n // This variable should never be directly accessed by users of the library: interactions must be restricted to\\n // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add\\n // this feature: see https://github.com/ethereum/solidity/issues/4637\\n uint256 _value; // default: 0\\n }\\n\\n function current(Counter storage counter) internal view returns (uint256) {\\n return counter._value;\\n }\\n\\n function increment(Counter storage counter) internal {\\n unchecked {\\n counter._value += 1;\\n }\\n }\\n\\n function decrement(Counter storage counter) internal {\\n uint256 value = counter._value;\\n require(value > 0, \\\"Counter: decrement overflow\\\");\\n unchecked {\\n counter._value = value - 1;\\n }\\n }\\n\\n function reset(Counter storage counter) internal {\\n counter._value = 0;\\n }\\n}\\n\",\"keccak256\":\"0xf0018c2440fbe238dd3a8732fa8e17a0f9dce84d31451dc8a32f6d62b349c9f1\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/ShortStrings.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/ShortStrings.sol)\\n\\npragma solidity ^0.8.8;\\n\\nimport \\\"./StorageSlot.sol\\\";\\n\\n// | string | 0xAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA |\\n// | length | 0x BB |\\ntype ShortString is bytes32;\\n\\n/**\\n * @dev This library provides functions to convert short memory strings\\n * into a `ShortString` type that can be used as an immutable variable.\\n *\\n * Strings of arbitrary length can be optimized using this library if\\n * they are short enough (up to 31 bytes) by packing them with their\\n * length (1 byte) in a single EVM word (32 bytes). Additionally, a\\n * fallback mechanism can be used for every other case.\\n *\\n * Usage example:\\n *\\n * ```solidity\\n * contract Named {\\n * using ShortStrings for *;\\n *\\n * ShortString private immutable _name;\\n * string private _nameFallback;\\n *\\n * constructor(string memory contractName) {\\n * _name = contractName.toShortStringWithFallback(_nameFallback);\\n * }\\n *\\n * function name() external view returns (string memory) {\\n * return _name.toStringWithFallback(_nameFallback);\\n * }\\n * }\\n * ```\\n */\\nlibrary ShortStrings {\\n // Used as an identifier for strings longer than 31 bytes.\\n bytes32 private constant _FALLBACK_SENTINEL = 0x00000000000000000000000000000000000000000000000000000000000000FF;\\n\\n error StringTooLong(string str);\\n error InvalidShortString();\\n\\n /**\\n * @dev Encode a string of at most 31 chars into a `ShortString`.\\n *\\n * This will trigger a `StringTooLong` error is the input string is too long.\\n */\\n function toShortString(string memory str) internal pure returns (ShortString) {\\n bytes memory bstr = bytes(str);\\n if (bstr.length > 31) {\\n revert StringTooLong(str);\\n }\\n return ShortString.wrap(bytes32(uint256(bytes32(bstr)) | bstr.length));\\n }\\n\\n /**\\n * @dev Decode a `ShortString` back to a \\\"normal\\\" string.\\n */\\n function toString(ShortString sstr) internal pure returns (string memory) {\\n uint256 len = byteLength(sstr);\\n // using `new string(len)` would work locally but is not memory safe.\\n string memory str = new string(32);\\n /// @solidity memory-safe-assembly\\n assembly {\\n mstore(str, len)\\n mstore(add(str, 0x20), sstr)\\n }\\n return str;\\n }\\n\\n /**\\n * @dev Return the length of a `ShortString`.\\n */\\n function byteLength(ShortString sstr) internal pure returns (uint256) {\\n uint256 result = uint256(ShortString.unwrap(sstr)) & 0xFF;\\n if (result > 31) {\\n revert InvalidShortString();\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Encode a string into a `ShortString`, or write it to storage if it is too long.\\n */\\n function toShortStringWithFallback(string memory value, string storage store) internal returns (ShortString) {\\n if (bytes(value).length < 32) {\\n return toShortString(value);\\n } else {\\n StorageSlot.getStringSlot(store).value = value;\\n return ShortString.wrap(_FALLBACK_SENTINEL);\\n }\\n }\\n\\n /**\\n * @dev Decode a string that was encoded to `ShortString` or written to storage using {setWithFallback}.\\n */\\n function toStringWithFallback(ShortString value, string storage store) internal pure returns (string memory) {\\n if (ShortString.unwrap(value) != _FALLBACK_SENTINEL) {\\n return toString(value);\\n } else {\\n return store;\\n }\\n }\\n\\n /**\\n * @dev Return the length of a string that was encoded to `ShortString` or written to storage using {setWithFallback}.\\n *\\n * WARNING: This will return the \\\"byte length\\\" of the string. This may not reflect the actual length in terms of\\n * actual characters as the UTF-8 encoding of a single character can span over multiple bytes.\\n */\\n function byteLengthWithFallback(ShortString value, string storage store) internal view returns (uint256) {\\n if (ShortString.unwrap(value) != _FALLBACK_SENTINEL) {\\n return byteLength(value);\\n } else {\\n return bytes(store).length;\\n }\\n }\\n}\\n\",\"keccak256\":\"0xc0e310c163edf15db45d4ff938113ab357f94fa86e61ea8e790853c4d2e13256\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/StorageSlot.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/StorageSlot.sol)\\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Library for reading and writing primitive types to specific storage slots.\\n *\\n * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.\\n * This library helps with reading and writing to such slots without the need for inline assembly.\\n *\\n * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.\\n *\\n * Example usage to set ERC1967 implementation slot:\\n * ```solidity\\n * contract ERC1967 {\\n * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n *\\n * function _getImplementation() internal view returns (address) {\\n * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n * }\\n *\\n * function _setImplementation(address newImplementation) internal {\\n * require(Address.isContract(newImplementation), \\\"ERC1967: new implementation is not a contract\\\");\\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n * }\\n * }\\n * ```\\n *\\n * _Available since v4.1 for `address`, `bool`, `bytes32`, `uint256`._\\n * _Available since v4.9 for `string`, `bytes`._\\n */\\nlibrary StorageSlot {\\n struct AddressSlot {\\n address value;\\n }\\n\\n struct BooleanSlot {\\n bool value;\\n }\\n\\n struct Bytes32Slot {\\n bytes32 value;\\n }\\n\\n struct Uint256Slot {\\n uint256 value;\\n }\\n\\n struct StringSlot {\\n string value;\\n }\\n\\n struct BytesSlot {\\n bytes value;\\n }\\n\\n /**\\n * @dev Returns an `AddressSlot` with member `value` located at `slot`.\\n */\\n function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BooleanSlot` with member `value` located at `slot`.\\n */\\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.\\n */\\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Uint256Slot` with member `value` located at `slot`.\\n */\\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `StringSlot` with member `value` located at `slot`.\\n */\\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\\n */\\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := store.slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BytesSlot` with member `value` located at `slot`.\\n */\\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\\n */\\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := store.slot\\n }\\n }\\n}\\n\",\"keccak256\":\"0xf09e68aa0dc6722a25bc46490e8d48ed864466d17313b8a0b254c36b54e49899\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Strings.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./math/Math.sol\\\";\\nimport \\\"./math/SignedMath.sol\\\";\\n\\n/**\\n * @dev String operations.\\n */\\nlibrary Strings {\\n bytes16 private constant _SYMBOLS = \\\"0123456789abcdef\\\";\\n uint8 private constant _ADDRESS_LENGTH = 20;\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\\n */\\n function toString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n uint256 length = Math.log10(value) + 1;\\n string memory buffer = new string(length);\\n uint256 ptr;\\n /// @solidity memory-safe-assembly\\n assembly {\\n ptr := add(buffer, add(32, length))\\n }\\n while (true) {\\n ptr--;\\n /// @solidity memory-safe-assembly\\n assembly {\\n mstore8(ptr, byte(mod(value, 10), _SYMBOLS))\\n }\\n value /= 10;\\n if (value == 0) break;\\n }\\n return buffer;\\n }\\n }\\n\\n /**\\n * @dev Converts a `int256` to its ASCII `string` decimal representation.\\n */\\n function toString(int256 value) internal pure returns (string memory) {\\n return string(abi.encodePacked(value < 0 ? \\\"-\\\" : \\\"\\\", toString(SignedMath.abs(value))));\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\\n */\\n function toHexString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n return toHexString(value, Math.log256(value) + 1);\\n }\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\\n */\\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\\n bytes memory buffer = new bytes(2 * length + 2);\\n buffer[0] = \\\"0\\\";\\n buffer[1] = \\\"x\\\";\\n for (uint256 i = 2 * length + 1; i > 1; --i) {\\n buffer[i] = _SYMBOLS[value & 0xf];\\n value >>= 4;\\n }\\n require(value == 0, \\\"Strings: hex length insufficient\\\");\\n return string(buffer);\\n }\\n\\n /**\\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.\\n */\\n function toHexString(address addr) internal pure returns (string memory) {\\n return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);\\n }\\n\\n /**\\n * @dev Returns true if the two strings are equal.\\n */\\n function equal(string memory a, string memory b) internal pure returns (bool) {\\n return keccak256(bytes(a)) == keccak256(bytes(b));\\n }\\n}\\n\",\"keccak256\":\"0x3088eb2868e8d13d89d16670b5f8612c4ab9ff8956272837d8e90106c59c14a0\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/cryptography/ECDSA.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/cryptography/ECDSA.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../Strings.sol\\\";\\n\\n/**\\n * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.\\n *\\n * These functions can be used to verify that a message was signed by the holder\\n * of the private keys of a given address.\\n */\\nlibrary ECDSA {\\n enum RecoverError {\\n NoError,\\n InvalidSignature,\\n InvalidSignatureLength,\\n InvalidSignatureS,\\n InvalidSignatureV // Deprecated in v4.8\\n }\\n\\n function _throwError(RecoverError error) private pure {\\n if (error == RecoverError.NoError) {\\n return; // no error: do nothing\\n } else if (error == RecoverError.InvalidSignature) {\\n revert(\\\"ECDSA: invalid signature\\\");\\n } else if (error == RecoverError.InvalidSignatureLength) {\\n revert(\\\"ECDSA: invalid signature length\\\");\\n } else if (error == RecoverError.InvalidSignatureS) {\\n revert(\\\"ECDSA: invalid signature 's' value\\\");\\n }\\n }\\n\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with\\n * `signature` or error string. This address can then be used for verification purposes.\\n *\\n * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {toEthSignedMessageHash} on it.\\n *\\n * Documentation for signature generation:\\n * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]\\n * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]\\n *\\n * _Available since v4.3._\\n */\\n function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {\\n if (signature.length == 65) {\\n bytes32 r;\\n bytes32 s;\\n uint8 v;\\n // ecrecover takes the signature parameters, and the only way to get them\\n // currently is to use assembly.\\n /// @solidity memory-safe-assembly\\n assembly {\\n r := mload(add(signature, 0x20))\\n s := mload(add(signature, 0x40))\\n v := byte(0, mload(add(signature, 0x60)))\\n }\\n return tryRecover(hash, v, r, s);\\n } else {\\n return (address(0), RecoverError.InvalidSignatureLength);\\n }\\n }\\n\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with\\n * `signature`. This address can then be used for verification purposes.\\n *\\n * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {toEthSignedMessageHash} on it.\\n */\\n function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {\\n (address recovered, RecoverError error) = tryRecover(hash, signature);\\n _throwError(error);\\n return recovered;\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.\\n *\\n * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]\\n *\\n * _Available since v4.3._\\n */\\n function tryRecover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address, RecoverError) {\\n bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);\\n uint8 v = uint8((uint256(vs) >> 255) + 27);\\n return tryRecover(hash, v, r, s);\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.\\n *\\n * _Available since v4.2._\\n */\\n function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) {\\n (address recovered, RecoverError error) = tryRecover(hash, r, vs);\\n _throwError(error);\\n return recovered;\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-tryRecover} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n *\\n * _Available since v4.3._\\n */\\n function tryRecover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address, RecoverError) {\\n // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature\\n // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines\\n // the valid range for s in (301): 0 < s < secp256k1n \\u00f7 2 + 1, and for v in (302): v \\u2208 {27, 28}. Most\\n // signatures from current libraries generate a unique signature with an s-value in the lower half order.\\n //\\n // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value\\n // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or\\n // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept\\n // these malleable signatures as well.\\n if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {\\n return (address(0), RecoverError.InvalidSignatureS);\\n }\\n\\n // If the signature is valid (and not malleable), return the signer address\\n address signer = ecrecover(hash, v, r, s);\\n if (signer == address(0)) {\\n return (address(0), RecoverError.InvalidSignature);\\n }\\n\\n return (signer, RecoverError.NoError);\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n */\\n function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {\\n (address recovered, RecoverError error) = tryRecover(hash, v, r, s);\\n _throwError(error);\\n return recovered;\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Message, created from a `hash`. This\\n * produces hash corresponding to the one signed with the\\n * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]\\n * JSON-RPC method as part of EIP-191.\\n *\\n * See {recover}.\\n */\\n function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32 message) {\\n // 32 is the length in bytes of hash,\\n // enforced by the type signature above\\n /// @solidity memory-safe-assembly\\n assembly {\\n mstore(0x00, \\\"\\\\x19Ethereum Signed Message:\\\\n32\\\")\\n mstore(0x1c, hash)\\n message := keccak256(0x00, 0x3c)\\n }\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Message, created from `s`. This\\n * produces hash corresponding to the one signed with the\\n * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]\\n * JSON-RPC method as part of EIP-191.\\n *\\n * See {recover}.\\n */\\n function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {\\n return keccak256(abi.encodePacked(\\\"\\\\x19Ethereum Signed Message:\\\\n\\\", Strings.toString(s.length), s));\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Typed Data, created from a\\n * `domainSeparator` and a `structHash`. This produces hash corresponding\\n * to the one signed with the\\n * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]\\n * JSON-RPC method as part of EIP-712.\\n *\\n * See {recover}.\\n */\\n function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 data) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n let ptr := mload(0x40)\\n mstore(ptr, \\\"\\\\x19\\\\x01\\\")\\n mstore(add(ptr, 0x02), domainSeparator)\\n mstore(add(ptr, 0x22), structHash)\\n data := keccak256(ptr, 0x42)\\n }\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Data with intended validator, created from a\\n * `validator` and `data` according to the version 0 of EIP-191.\\n *\\n * See {recover}.\\n */\\n function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {\\n return keccak256(abi.encodePacked(\\\"\\\\x19\\\\x00\\\", validator, data));\\n }\\n}\\n\",\"keccak256\":\"0x809bc3edb4bcbef8263fa616c1b60ee0004b50a8a1bfa164d8f57fd31f520c58\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/cryptography/EIP712.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/cryptography/EIP712.sol)\\n\\npragma solidity ^0.8.8;\\n\\nimport \\\"./ECDSA.sol\\\";\\nimport \\\"../ShortStrings.sol\\\";\\nimport \\\"../../interfaces/IERC5267.sol\\\";\\n\\n/**\\n * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data.\\n *\\n * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible,\\n * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding\\n * they need in their contracts using a combination of `abi.encode` and `keccak256`.\\n *\\n * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding\\n * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA\\n * ({_hashTypedDataV4}).\\n *\\n * The implementation of the domain separator was designed to be as efficient as possible while still properly updating\\n * the chain id to protect against replay attacks on an eventual fork of the chain.\\n *\\n * NOTE: This contract implements the version of the encoding known as \\\"v4\\\", as implemented by the JSON RPC method\\n * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].\\n *\\n * NOTE: In the upgradeable version of this contract, the cached values will correspond to the address, and the domain\\n * separator of the implementation contract. This will cause the `_domainSeparatorV4` function to always rebuild the\\n * separator from the immutable values, which is cheaper than accessing a cached version in cold storage.\\n *\\n * _Available since v3.4._\\n *\\n * @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment\\n */\\nabstract contract EIP712 is IERC5267 {\\n using ShortStrings for *;\\n\\n bytes32 private constant _TYPE_HASH =\\n keccak256(\\\"EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)\\\");\\n\\n // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to\\n // invalidate the cached domain separator if the chain id changes.\\n bytes32 private immutable _cachedDomainSeparator;\\n uint256 private immutable _cachedChainId;\\n address private immutable _cachedThis;\\n\\n bytes32 private immutable _hashedName;\\n bytes32 private immutable _hashedVersion;\\n\\n ShortString private immutable _name;\\n ShortString private immutable _version;\\n string private _nameFallback;\\n string private _versionFallback;\\n\\n /**\\n * @dev Initializes the domain separator and parameter caches.\\n *\\n * The meaning of `name` and `version` is specified in\\n * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]:\\n *\\n * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol.\\n * - `version`: the current major version of the signing domain.\\n *\\n * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart\\n * contract upgrade].\\n */\\n constructor(string memory name, string memory version) {\\n _name = name.toShortStringWithFallback(_nameFallback);\\n _version = version.toShortStringWithFallback(_versionFallback);\\n _hashedName = keccak256(bytes(name));\\n _hashedVersion = keccak256(bytes(version));\\n\\n _cachedChainId = block.chainid;\\n _cachedDomainSeparator = _buildDomainSeparator();\\n _cachedThis = address(this);\\n }\\n\\n /**\\n * @dev Returns the domain separator for the current chain.\\n */\\n function _domainSeparatorV4() internal view returns (bytes32) {\\n if (address(this) == _cachedThis && block.chainid == _cachedChainId) {\\n return _cachedDomainSeparator;\\n } else {\\n return _buildDomainSeparator();\\n }\\n }\\n\\n function _buildDomainSeparator() private view returns (bytes32) {\\n return keccak256(abi.encode(_TYPE_HASH, _hashedName, _hashedVersion, block.chainid, address(this)));\\n }\\n\\n /**\\n * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this\\n * function returns the hash of the fully encoded EIP712 message for this domain.\\n *\\n * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example:\\n *\\n * ```solidity\\n * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode(\\n * keccak256(\\\"Mail(address to,string contents)\\\"),\\n * mailTo,\\n * keccak256(bytes(mailContents))\\n * )));\\n * address signer = ECDSA.recover(digest, signature);\\n * ```\\n */\\n function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) {\\n return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash);\\n }\\n\\n /**\\n * @dev See {EIP-5267}.\\n *\\n * _Available since v4.9._\\n */\\n function eip712Domain()\\n public\\n view\\n virtual\\n override\\n returns (\\n bytes1 fields,\\n string memory name,\\n string memory version,\\n uint256 chainId,\\n address verifyingContract,\\n bytes32 salt,\\n uint256[] memory extensions\\n )\\n {\\n return (\\n hex\\\"0f\\\", // 01111\\n _name.toStringWithFallback(_nameFallback),\\n _version.toStringWithFallback(_versionFallback),\\n block.chainid,\\n address(this),\\n bytes32(0),\\n new uint256[](0)\\n );\\n }\\n}\\n\",\"keccak256\":\"0x8432884527a7ad91e6eed1cfc5a0811ae2073e5bca107bd0ca442e9236b03dbd\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/math/Math.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Standard math utilities missing in the Solidity language.\\n */\\nlibrary Math {\\n enum Rounding {\\n Down, // Toward negative infinity\\n Up, // Toward infinity\\n Zero // Toward zero\\n }\\n\\n /**\\n * @dev Returns the largest of two numbers.\\n */\\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a > b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the smallest of two numbers.\\n */\\n function min(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a < b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the average of two numbers. The result is rounded towards\\n * zero.\\n */\\n function average(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b) / 2 can overflow.\\n return (a & b) + (a ^ b) / 2;\\n }\\n\\n /**\\n * @dev Returns the ceiling of the division of two numbers.\\n *\\n * This differs from standard division with `/` in that it rounds up instead\\n * of rounding down.\\n */\\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b - 1) / b can overflow on addition, so we distribute.\\n return a == 0 ? 0 : (a - 1) / b + 1;\\n }\\n\\n /**\\n * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0\\n * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)\\n * with further edits by Uniswap Labs also under MIT license.\\n */\\n function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {\\n unchecked {\\n // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use\\n // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\\n // variables such that product = prod1 * 2^256 + prod0.\\n uint256 prod0; // Least significant 256 bits of the product\\n uint256 prod1; // Most significant 256 bits of the product\\n assembly {\\n let mm := mulmod(x, y, not(0))\\n prod0 := mul(x, y)\\n prod1 := sub(sub(mm, prod0), lt(mm, prod0))\\n }\\n\\n // Handle non-overflow cases, 256 by 256 division.\\n if (prod1 == 0) {\\n // Solidity will revert if denominator == 0, unlike the div opcode on its own.\\n // The surrounding unchecked block does not change this fact.\\n // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.\\n return prod0 / denominator;\\n }\\n\\n // Make sure the result is less than 2^256. Also prevents denominator == 0.\\n require(denominator > prod1, \\\"Math: mulDiv overflow\\\");\\n\\n ///////////////////////////////////////////////\\n // 512 by 256 division.\\n ///////////////////////////////////////////////\\n\\n // Make division exact by subtracting the remainder from [prod1 prod0].\\n uint256 remainder;\\n assembly {\\n // Compute remainder using mulmod.\\n remainder := mulmod(x, y, denominator)\\n\\n // Subtract 256 bit number from 512 bit number.\\n prod1 := sub(prod1, gt(remainder, prod0))\\n prod0 := sub(prod0, remainder)\\n }\\n\\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.\\n // See https://cs.stackexchange.com/q/138556/92363.\\n\\n // Does not overflow because the denominator cannot be zero at this stage in the function.\\n uint256 twos = denominator & (~denominator + 1);\\n assembly {\\n // Divide denominator by twos.\\n denominator := div(denominator, twos)\\n\\n // Divide [prod1 prod0] by twos.\\n prod0 := div(prod0, twos)\\n\\n // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.\\n twos := add(div(sub(0, twos), twos), 1)\\n }\\n\\n // Shift in bits from prod1 into prod0.\\n prod0 |= prod1 * twos;\\n\\n // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such\\n // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for\\n // four bits. That is, denominator * inv = 1 mod 2^4.\\n uint256 inverse = (3 * denominator) ^ 2;\\n\\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works\\n // in modular arithmetic, doubling the correct bits in each step.\\n inverse *= 2 - denominator * inverse; // inverse mod 2^8\\n inverse *= 2 - denominator * inverse; // inverse mod 2^16\\n inverse *= 2 - denominator * inverse; // inverse mod 2^32\\n inverse *= 2 - denominator * inverse; // inverse mod 2^64\\n inverse *= 2 - denominator * inverse; // inverse mod 2^128\\n inverse *= 2 - denominator * inverse; // inverse mod 2^256\\n\\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\\n // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is\\n // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1\\n // is no longer required.\\n result = prod0 * inverse;\\n return result;\\n }\\n }\\n\\n /**\\n * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.\\n */\\n function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {\\n uint256 result = mulDiv(x, y, denominator);\\n if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {\\n result += 1;\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.\\n *\\n * Inspired by Henry S. Warren, Jr.'s \\\"Hacker's Delight\\\" (Chapter 11).\\n */\\n function sqrt(uint256 a) internal pure returns (uint256) {\\n if (a == 0) {\\n return 0;\\n }\\n\\n // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.\\n //\\n // We know that the \\\"msb\\\" (most significant bit) of our target number `a` is a power of 2 such that we have\\n // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.\\n //\\n // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`\\n // \\u2192 `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`\\n // \\u2192 `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`\\n //\\n // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.\\n uint256 result = 1 << (log2(a) >> 1);\\n\\n // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,\\n // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at\\n // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision\\n // into the expected uint128 result.\\n unchecked {\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n return min(result, a / result);\\n }\\n }\\n\\n /**\\n * @notice Calculates sqrt(a), following the selected rounding direction.\\n */\\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = sqrt(a);\\n return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 2, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 128;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 64;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 32;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 16;\\n }\\n if (value >> 8 > 0) {\\n value >>= 8;\\n result += 8;\\n }\\n if (value >> 4 > 0) {\\n value >>= 4;\\n result += 4;\\n }\\n if (value >> 2 > 0) {\\n value >>= 2;\\n result += 2;\\n }\\n if (value >> 1 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log2(value);\\n return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 10, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >= 10 ** 64) {\\n value /= 10 ** 64;\\n result += 64;\\n }\\n if (value >= 10 ** 32) {\\n value /= 10 ** 32;\\n result += 32;\\n }\\n if (value >= 10 ** 16) {\\n value /= 10 ** 16;\\n result += 16;\\n }\\n if (value >= 10 ** 8) {\\n value /= 10 ** 8;\\n result += 8;\\n }\\n if (value >= 10 ** 4) {\\n value /= 10 ** 4;\\n result += 4;\\n }\\n if (value >= 10 ** 2) {\\n value /= 10 ** 2;\\n result += 2;\\n }\\n if (value >= 10 ** 1) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log10(value);\\n return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 256, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n *\\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\\n */\\n function log256(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 16;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 8;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 4;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 2;\\n }\\n if (value >> 8 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 256, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log256(value);\\n return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xe4455ac1eb7fc497bb7402579e7b4d64d928b846fce7d2b6fde06d366f21c2b3\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/math/SafeCast.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SafeCast.sol)\\n// This file was procedurally generated from scripts/generate/templates/SafeCast.js.\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Wrappers over Solidity's uintXX/intXX casting operators with added overflow\\n * checks.\\n *\\n * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can\\n * easily result in undesired exploitation or bugs, since developers usually\\n * assume that overflows raise errors. `SafeCast` restores this intuition by\\n * reverting the transaction when such an 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 *\\n * Can be combined with {SafeMath} and {SignedSafeMath} to extend it to smaller types, by performing\\n * all math on `uint256` and `int256` and then downcasting.\\n */\\nlibrary SafeCast {\\n /**\\n * @dev Returns the downcasted uint248 from uint256, reverting on\\n * overflow (when the input is greater than largest uint248).\\n *\\n * Counterpart to Solidity's `uint248` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 248 bits\\n *\\n * _Available since v4.7._\\n */\\n function toUint248(uint256 value) internal pure returns (uint248) {\\n require(value <= type(uint248).max, \\\"SafeCast: value doesn't fit in 248 bits\\\");\\n return uint248(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint240 from uint256, reverting on\\n * overflow (when the input is greater than largest uint240).\\n *\\n * Counterpart to Solidity's `uint240` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 240 bits\\n *\\n * _Available since v4.7._\\n */\\n function toUint240(uint256 value) internal pure returns (uint240) {\\n require(value <= type(uint240).max, \\\"SafeCast: value doesn't fit in 240 bits\\\");\\n return uint240(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint232 from uint256, reverting on\\n * overflow (when the input is greater than largest uint232).\\n *\\n * Counterpart to Solidity's `uint232` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 232 bits\\n *\\n * _Available since v4.7._\\n */\\n function toUint232(uint256 value) internal pure returns (uint232) {\\n require(value <= type(uint232).max, \\\"SafeCast: value doesn't fit in 232 bits\\\");\\n return uint232(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint224 from uint256, reverting on\\n * overflow (when the input is greater than largest uint224).\\n *\\n * Counterpart to Solidity's `uint224` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 224 bits\\n *\\n * _Available since v4.2._\\n */\\n function toUint224(uint256 value) internal pure returns (uint224) {\\n require(value <= type(uint224).max, \\\"SafeCast: value doesn't fit in 224 bits\\\");\\n return uint224(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint216 from uint256, reverting on\\n * overflow (when the input is greater than largest uint216).\\n *\\n * Counterpart to Solidity's `uint216` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 216 bits\\n *\\n * _Available since v4.7._\\n */\\n function toUint216(uint256 value) internal pure returns (uint216) {\\n require(value <= type(uint216).max, \\\"SafeCast: value doesn't fit in 216 bits\\\");\\n return uint216(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint208 from uint256, reverting on\\n * overflow (when the input is greater than largest uint208).\\n *\\n * Counterpart to Solidity's `uint208` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 208 bits\\n *\\n * _Available since v4.7._\\n */\\n function toUint208(uint256 value) internal pure returns (uint208) {\\n require(value <= type(uint208).max, \\\"SafeCast: value doesn't fit in 208 bits\\\");\\n return uint208(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint200 from uint256, reverting on\\n * overflow (when the input is greater than largest uint200).\\n *\\n * Counterpart to Solidity's `uint200` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 200 bits\\n *\\n * _Available since v4.7._\\n */\\n function toUint200(uint256 value) internal pure returns (uint200) {\\n require(value <= type(uint200).max, \\\"SafeCast: value doesn't fit in 200 bits\\\");\\n return uint200(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint192 from uint256, reverting on\\n * overflow (when the input is greater than largest uint192).\\n *\\n * Counterpart to Solidity's `uint192` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 192 bits\\n *\\n * _Available since v4.7._\\n */\\n function toUint192(uint256 value) internal pure returns (uint192) {\\n require(value <= type(uint192).max, \\\"SafeCast: value doesn't fit in 192 bits\\\");\\n return uint192(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint184 from uint256, reverting on\\n * overflow (when the input is greater than largest uint184).\\n *\\n * Counterpart to Solidity's `uint184` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 184 bits\\n *\\n * _Available since v4.7._\\n */\\n function toUint184(uint256 value) internal pure returns (uint184) {\\n require(value <= type(uint184).max, \\\"SafeCast: value doesn't fit in 184 bits\\\");\\n return uint184(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint176 from uint256, reverting on\\n * overflow (when the input is greater than largest uint176).\\n *\\n * Counterpart to Solidity's `uint176` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 176 bits\\n *\\n * _Available since v4.7._\\n */\\n function toUint176(uint256 value) internal pure returns (uint176) {\\n require(value <= type(uint176).max, \\\"SafeCast: value doesn't fit in 176 bits\\\");\\n return uint176(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint168 from uint256, reverting on\\n * overflow (when the input is greater than largest uint168).\\n *\\n * Counterpart to Solidity's `uint168` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 168 bits\\n *\\n * _Available since v4.7._\\n */\\n function toUint168(uint256 value) internal pure returns (uint168) {\\n require(value <= type(uint168).max, \\\"SafeCast: value doesn't fit in 168 bits\\\");\\n return uint168(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint160 from uint256, reverting on\\n * overflow (when the input is greater than largest uint160).\\n *\\n * Counterpart to Solidity's `uint160` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 160 bits\\n *\\n * _Available since v4.7._\\n */\\n function toUint160(uint256 value) internal pure returns (uint160) {\\n require(value <= type(uint160).max, \\\"SafeCast: value doesn't fit in 160 bits\\\");\\n return uint160(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint152 from uint256, reverting on\\n * overflow (when the input is greater than largest uint152).\\n *\\n * Counterpart to Solidity's `uint152` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 152 bits\\n *\\n * _Available since v4.7._\\n */\\n function toUint152(uint256 value) internal pure returns (uint152) {\\n require(value <= type(uint152).max, \\\"SafeCast: value doesn't fit in 152 bits\\\");\\n return uint152(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint144 from uint256, reverting on\\n * overflow (when the input is greater than largest uint144).\\n *\\n * Counterpart to Solidity's `uint144` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 144 bits\\n *\\n * _Available since v4.7._\\n */\\n function toUint144(uint256 value) internal pure returns (uint144) {\\n require(value <= type(uint144).max, \\\"SafeCast: value doesn't fit in 144 bits\\\");\\n return uint144(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint136 from uint256, reverting on\\n * overflow (when the input is greater than largest uint136).\\n *\\n * Counterpart to Solidity's `uint136` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 136 bits\\n *\\n * _Available since v4.7._\\n */\\n function toUint136(uint256 value) internal pure returns (uint136) {\\n require(value <= type(uint136).max, \\\"SafeCast: value doesn't fit in 136 bits\\\");\\n return uint136(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint128 from uint256, reverting on\\n * overflow (when the input is greater than largest uint128).\\n *\\n * Counterpart to Solidity's `uint128` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 128 bits\\n *\\n * _Available since v2.5._\\n */\\n function toUint128(uint256 value) internal pure returns (uint128) {\\n require(value <= type(uint128).max, \\\"SafeCast: value doesn't fit in 128 bits\\\");\\n return uint128(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint120 from uint256, reverting on\\n * overflow (when the input is greater than largest uint120).\\n *\\n * Counterpart to Solidity's `uint120` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 120 bits\\n *\\n * _Available since v4.7._\\n */\\n function toUint120(uint256 value) internal pure returns (uint120) {\\n require(value <= type(uint120).max, \\\"SafeCast: value doesn't fit in 120 bits\\\");\\n return uint120(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint112 from uint256, reverting on\\n * overflow (when the input is greater than largest uint112).\\n *\\n * Counterpart to Solidity's `uint112` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 112 bits\\n *\\n * _Available since v4.7._\\n */\\n function toUint112(uint256 value) internal pure returns (uint112) {\\n require(value <= type(uint112).max, \\\"SafeCast: value doesn't fit in 112 bits\\\");\\n return uint112(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint104 from uint256, reverting on\\n * overflow (when the input is greater than largest uint104).\\n *\\n * Counterpart to Solidity's `uint104` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 104 bits\\n *\\n * _Available since v4.7._\\n */\\n function toUint104(uint256 value) internal pure returns (uint104) {\\n require(value <= type(uint104).max, \\\"SafeCast: value doesn't fit in 104 bits\\\");\\n return uint104(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint96 from uint256, reverting on\\n * overflow (when the input is greater than largest uint96).\\n *\\n * Counterpart to Solidity's `uint96` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 96 bits\\n *\\n * _Available since v4.2._\\n */\\n function toUint96(uint256 value) internal pure returns (uint96) {\\n require(value <= type(uint96).max, \\\"SafeCast: value doesn't fit in 96 bits\\\");\\n return uint96(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint88 from uint256, reverting on\\n * overflow (when the input is greater than largest uint88).\\n *\\n * Counterpart to Solidity's `uint88` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 88 bits\\n *\\n * _Available since v4.7._\\n */\\n function toUint88(uint256 value) internal pure returns (uint88) {\\n require(value <= type(uint88).max, \\\"SafeCast: value doesn't fit in 88 bits\\\");\\n return uint88(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint80 from uint256, reverting on\\n * overflow (when the input is greater than largest uint80).\\n *\\n * Counterpart to Solidity's `uint80` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 80 bits\\n *\\n * _Available since v4.7._\\n */\\n function toUint80(uint256 value) internal pure returns (uint80) {\\n require(value <= type(uint80).max, \\\"SafeCast: value doesn't fit in 80 bits\\\");\\n return uint80(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint72 from uint256, reverting on\\n * overflow (when the input is greater than largest uint72).\\n *\\n * Counterpart to Solidity's `uint72` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 72 bits\\n *\\n * _Available since v4.7._\\n */\\n function toUint72(uint256 value) internal pure returns (uint72) {\\n require(value <= type(uint72).max, \\\"SafeCast: value doesn't fit in 72 bits\\\");\\n return uint72(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint64 from uint256, reverting on\\n * overflow (when the input is greater than largest uint64).\\n *\\n * Counterpart to Solidity's `uint64` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 64 bits\\n *\\n * _Available since v2.5._\\n */\\n function toUint64(uint256 value) internal pure returns (uint64) {\\n require(value <= type(uint64).max, \\\"SafeCast: value doesn't fit in 64 bits\\\");\\n return uint64(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint56 from uint256, reverting on\\n * overflow (when the input is greater than largest uint56).\\n *\\n * Counterpart to Solidity's `uint56` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 56 bits\\n *\\n * _Available since v4.7._\\n */\\n function toUint56(uint256 value) internal pure returns (uint56) {\\n require(value <= type(uint56).max, \\\"SafeCast: value doesn't fit in 56 bits\\\");\\n return uint56(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint48 from uint256, reverting on\\n * overflow (when the input is greater than largest uint48).\\n *\\n * Counterpart to Solidity's `uint48` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 48 bits\\n *\\n * _Available since v4.7._\\n */\\n function toUint48(uint256 value) internal pure returns (uint48) {\\n require(value <= type(uint48).max, \\\"SafeCast: value doesn't fit in 48 bits\\\");\\n return uint48(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint40 from uint256, reverting on\\n * overflow (when the input is greater than largest uint40).\\n *\\n * Counterpart to Solidity's `uint40` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 40 bits\\n *\\n * _Available since v4.7._\\n */\\n function toUint40(uint256 value) internal pure returns (uint40) {\\n require(value <= type(uint40).max, \\\"SafeCast: value doesn't fit in 40 bits\\\");\\n return uint40(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint32 from uint256, reverting on\\n * overflow (when the input is greater than largest uint32).\\n *\\n * Counterpart to Solidity's `uint32` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 32 bits\\n *\\n * _Available since v2.5._\\n */\\n function toUint32(uint256 value) internal pure returns (uint32) {\\n require(value <= type(uint32).max, \\\"SafeCast: value doesn't fit in 32 bits\\\");\\n return uint32(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint24 from uint256, reverting on\\n * overflow (when the input is greater than largest uint24).\\n *\\n * Counterpart to Solidity's `uint24` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 24 bits\\n *\\n * _Available since v4.7._\\n */\\n function toUint24(uint256 value) internal pure returns (uint24) {\\n require(value <= type(uint24).max, \\\"SafeCast: value doesn't fit in 24 bits\\\");\\n return uint24(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint16 from uint256, reverting on\\n * overflow (when the input is greater than largest uint16).\\n *\\n * Counterpart to Solidity's `uint16` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 16 bits\\n *\\n * _Available since v2.5._\\n */\\n function toUint16(uint256 value) internal pure returns (uint16) {\\n require(value <= type(uint16).max, \\\"SafeCast: value doesn't fit in 16 bits\\\");\\n return uint16(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint8 from uint256, reverting on\\n * overflow (when the input is greater than largest uint8).\\n *\\n * Counterpart to Solidity's `uint8` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 8 bits\\n *\\n * _Available since v2.5._\\n */\\n function toUint8(uint256 value) internal pure returns (uint8) {\\n require(value <= type(uint8).max, \\\"SafeCast: value doesn't fit in 8 bits\\\");\\n return uint8(value);\\n }\\n\\n /**\\n * @dev Converts a signed int256 into an unsigned uint256.\\n *\\n * Requirements:\\n *\\n * - input must be greater than or equal to 0.\\n *\\n * _Available since v3.0._\\n */\\n function toUint256(int256 value) internal pure returns (uint256) {\\n require(value >= 0, \\\"SafeCast: value must be positive\\\");\\n return uint256(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted int248 from int256, reverting on\\n * overflow (when the input is less than smallest int248 or\\n * greater than largest int248).\\n *\\n * Counterpart to Solidity's `int248` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 248 bits\\n *\\n * _Available since v4.7._\\n */\\n function toInt248(int256 value) internal pure returns (int248 downcasted) {\\n downcasted = int248(value);\\n require(downcasted == value, \\\"SafeCast: value doesn't fit in 248 bits\\\");\\n }\\n\\n /**\\n * @dev Returns the downcasted int240 from int256, reverting on\\n * overflow (when the input is less than smallest int240 or\\n * greater than largest int240).\\n *\\n * Counterpart to Solidity's `int240` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 240 bits\\n *\\n * _Available since v4.7._\\n */\\n function toInt240(int256 value) internal pure returns (int240 downcasted) {\\n downcasted = int240(value);\\n require(downcasted == value, \\\"SafeCast: value doesn't fit in 240 bits\\\");\\n }\\n\\n /**\\n * @dev Returns the downcasted int232 from int256, reverting on\\n * overflow (when the input is less than smallest int232 or\\n * greater than largest int232).\\n *\\n * Counterpart to Solidity's `int232` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 232 bits\\n *\\n * _Available since v4.7._\\n */\\n function toInt232(int256 value) internal pure returns (int232 downcasted) {\\n downcasted = int232(value);\\n require(downcasted == value, \\\"SafeCast: value doesn't fit in 232 bits\\\");\\n }\\n\\n /**\\n * @dev Returns the downcasted int224 from int256, reverting on\\n * overflow (when the input is less than smallest int224 or\\n * greater than largest int224).\\n *\\n * Counterpart to Solidity's `int224` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 224 bits\\n *\\n * _Available since v4.7._\\n */\\n function toInt224(int256 value) internal pure returns (int224 downcasted) {\\n downcasted = int224(value);\\n require(downcasted == value, \\\"SafeCast: value doesn't fit in 224 bits\\\");\\n }\\n\\n /**\\n * @dev Returns the downcasted int216 from int256, reverting on\\n * overflow (when the input is less than smallest int216 or\\n * greater than largest int216).\\n *\\n * Counterpart to Solidity's `int216` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 216 bits\\n *\\n * _Available since v4.7._\\n */\\n function toInt216(int256 value) internal pure returns (int216 downcasted) {\\n downcasted = int216(value);\\n require(downcasted == value, \\\"SafeCast: value doesn't fit in 216 bits\\\");\\n }\\n\\n /**\\n * @dev Returns the downcasted int208 from int256, reverting on\\n * overflow (when the input is less than smallest int208 or\\n * greater than largest int208).\\n *\\n * Counterpart to Solidity's `int208` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 208 bits\\n *\\n * _Available since v4.7._\\n */\\n function toInt208(int256 value) internal pure returns (int208 downcasted) {\\n downcasted = int208(value);\\n require(downcasted == value, \\\"SafeCast: value doesn't fit in 208 bits\\\");\\n }\\n\\n /**\\n * @dev Returns the downcasted int200 from int256, reverting on\\n * overflow (when the input is less than smallest int200 or\\n * greater than largest int200).\\n *\\n * Counterpart to Solidity's `int200` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 200 bits\\n *\\n * _Available since v4.7._\\n */\\n function toInt200(int256 value) internal pure returns (int200 downcasted) {\\n downcasted = int200(value);\\n require(downcasted == value, \\\"SafeCast: value doesn't fit in 200 bits\\\");\\n }\\n\\n /**\\n * @dev Returns the downcasted int192 from int256, reverting on\\n * overflow (when the input is less than smallest int192 or\\n * greater than largest int192).\\n *\\n * Counterpart to Solidity's `int192` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 192 bits\\n *\\n * _Available since v4.7._\\n */\\n function toInt192(int256 value) internal pure returns (int192 downcasted) {\\n downcasted = int192(value);\\n require(downcasted == value, \\\"SafeCast: value doesn't fit in 192 bits\\\");\\n }\\n\\n /**\\n * @dev Returns the downcasted int184 from int256, reverting on\\n * overflow (when the input is less than smallest int184 or\\n * greater than largest int184).\\n *\\n * Counterpart to Solidity's `int184` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 184 bits\\n *\\n * _Available since v4.7._\\n */\\n function toInt184(int256 value) internal pure returns (int184 downcasted) {\\n downcasted = int184(value);\\n require(downcasted == value, \\\"SafeCast: value doesn't fit in 184 bits\\\");\\n }\\n\\n /**\\n * @dev Returns the downcasted int176 from int256, reverting on\\n * overflow (when the input is less than smallest int176 or\\n * greater than largest int176).\\n *\\n * Counterpart to Solidity's `int176` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 176 bits\\n *\\n * _Available since v4.7._\\n */\\n function toInt176(int256 value) internal pure returns (int176 downcasted) {\\n downcasted = int176(value);\\n require(downcasted == value, \\\"SafeCast: value doesn't fit in 176 bits\\\");\\n }\\n\\n /**\\n * @dev Returns the downcasted int168 from int256, reverting on\\n * overflow (when the input is less than smallest int168 or\\n * greater than largest int168).\\n *\\n * Counterpart to Solidity's `int168` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 168 bits\\n *\\n * _Available since v4.7._\\n */\\n function toInt168(int256 value) internal pure returns (int168 downcasted) {\\n downcasted = int168(value);\\n require(downcasted == value, \\\"SafeCast: value doesn't fit in 168 bits\\\");\\n }\\n\\n /**\\n * @dev Returns the downcasted int160 from int256, reverting on\\n * overflow (when the input is less than smallest int160 or\\n * greater than largest int160).\\n *\\n * Counterpart to Solidity's `int160` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 160 bits\\n *\\n * _Available since v4.7._\\n */\\n function toInt160(int256 value) internal pure returns (int160 downcasted) {\\n downcasted = int160(value);\\n require(downcasted == value, \\\"SafeCast: value doesn't fit in 160 bits\\\");\\n }\\n\\n /**\\n * @dev Returns the downcasted int152 from int256, reverting on\\n * overflow (when the input is less than smallest int152 or\\n * greater than largest int152).\\n *\\n * Counterpart to Solidity's `int152` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 152 bits\\n *\\n * _Available since v4.7._\\n */\\n function toInt152(int256 value) internal pure returns (int152 downcasted) {\\n downcasted = int152(value);\\n require(downcasted == value, \\\"SafeCast: value doesn't fit in 152 bits\\\");\\n }\\n\\n /**\\n * @dev Returns the downcasted int144 from int256, reverting on\\n * overflow (when the input is less than smallest int144 or\\n * greater than largest int144).\\n *\\n * Counterpart to Solidity's `int144` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 144 bits\\n *\\n * _Available since v4.7._\\n */\\n function toInt144(int256 value) internal pure returns (int144 downcasted) {\\n downcasted = int144(value);\\n require(downcasted == value, \\\"SafeCast: value doesn't fit in 144 bits\\\");\\n }\\n\\n /**\\n * @dev Returns the downcasted int136 from int256, reverting on\\n * overflow (when the input is less than smallest int136 or\\n * greater than largest int136).\\n *\\n * Counterpart to Solidity's `int136` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 136 bits\\n *\\n * _Available since v4.7._\\n */\\n function toInt136(int256 value) internal pure returns (int136 downcasted) {\\n downcasted = int136(value);\\n require(downcasted == value, \\\"SafeCast: value doesn't fit in 136 bits\\\");\\n }\\n\\n /**\\n * @dev Returns the downcasted int128 from int256, reverting on\\n * overflow (when the input is less than smallest int128 or\\n * greater than largest int128).\\n *\\n * Counterpart to Solidity's `int128` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 128 bits\\n *\\n * _Available since v3.1._\\n */\\n function toInt128(int256 value) internal pure returns (int128 downcasted) {\\n downcasted = int128(value);\\n require(downcasted == value, \\\"SafeCast: value doesn't fit in 128 bits\\\");\\n }\\n\\n /**\\n * @dev Returns the downcasted int120 from int256, reverting on\\n * overflow (when the input is less than smallest int120 or\\n * greater than largest int120).\\n *\\n * Counterpart to Solidity's `int120` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 120 bits\\n *\\n * _Available since v4.7._\\n */\\n function toInt120(int256 value) internal pure returns (int120 downcasted) {\\n downcasted = int120(value);\\n require(downcasted == value, \\\"SafeCast: value doesn't fit in 120 bits\\\");\\n }\\n\\n /**\\n * @dev Returns the downcasted int112 from int256, reverting on\\n * overflow (when the input is less than smallest int112 or\\n * greater than largest int112).\\n *\\n * Counterpart to Solidity's `int112` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 112 bits\\n *\\n * _Available since v4.7._\\n */\\n function toInt112(int256 value) internal pure returns (int112 downcasted) {\\n downcasted = int112(value);\\n require(downcasted == value, \\\"SafeCast: value doesn't fit in 112 bits\\\");\\n }\\n\\n /**\\n * @dev Returns the downcasted int104 from int256, reverting on\\n * overflow (when the input is less than smallest int104 or\\n * greater than largest int104).\\n *\\n * Counterpart to Solidity's `int104` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 104 bits\\n *\\n * _Available since v4.7._\\n */\\n function toInt104(int256 value) internal pure returns (int104 downcasted) {\\n downcasted = int104(value);\\n require(downcasted == value, \\\"SafeCast: value doesn't fit in 104 bits\\\");\\n }\\n\\n /**\\n * @dev Returns the downcasted int96 from int256, reverting on\\n * overflow (when the input is less than smallest int96 or\\n * greater than largest int96).\\n *\\n * Counterpart to Solidity's `int96` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 96 bits\\n *\\n * _Available since v4.7._\\n */\\n function toInt96(int256 value) internal pure returns (int96 downcasted) {\\n downcasted = int96(value);\\n require(downcasted == value, \\\"SafeCast: value doesn't fit in 96 bits\\\");\\n }\\n\\n /**\\n * @dev Returns the downcasted int88 from int256, reverting on\\n * overflow (when the input is less than smallest int88 or\\n * greater than largest int88).\\n *\\n * Counterpart to Solidity's `int88` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 88 bits\\n *\\n * _Available since v4.7._\\n */\\n function toInt88(int256 value) internal pure returns (int88 downcasted) {\\n downcasted = int88(value);\\n require(downcasted == value, \\\"SafeCast: value doesn't fit in 88 bits\\\");\\n }\\n\\n /**\\n * @dev Returns the downcasted int80 from int256, reverting on\\n * overflow (when the input is less than smallest int80 or\\n * greater than largest int80).\\n *\\n * Counterpart to Solidity's `int80` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 80 bits\\n *\\n * _Available since v4.7._\\n */\\n function toInt80(int256 value) internal pure returns (int80 downcasted) {\\n downcasted = int80(value);\\n require(downcasted == value, \\\"SafeCast: value doesn't fit in 80 bits\\\");\\n }\\n\\n /**\\n * @dev Returns the downcasted int72 from int256, reverting on\\n * overflow (when the input is less than smallest int72 or\\n * greater than largest int72).\\n *\\n * Counterpart to Solidity's `int72` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 72 bits\\n *\\n * _Available since v4.7._\\n */\\n function toInt72(int256 value) internal pure returns (int72 downcasted) {\\n downcasted = int72(value);\\n require(downcasted == value, \\\"SafeCast: value doesn't fit in 72 bits\\\");\\n }\\n\\n /**\\n * @dev Returns the downcasted int64 from int256, reverting on\\n * overflow (when the input is less than smallest int64 or\\n * greater than largest int64).\\n *\\n * Counterpart to Solidity's `int64` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 64 bits\\n *\\n * _Available since v3.1._\\n */\\n function toInt64(int256 value) internal pure returns (int64 downcasted) {\\n downcasted = int64(value);\\n require(downcasted == value, \\\"SafeCast: value doesn't fit in 64 bits\\\");\\n }\\n\\n /**\\n * @dev Returns the downcasted int56 from int256, reverting on\\n * overflow (when the input is less than smallest int56 or\\n * greater than largest int56).\\n *\\n * Counterpart to Solidity's `int56` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 56 bits\\n *\\n * _Available since v4.7._\\n */\\n function toInt56(int256 value) internal pure returns (int56 downcasted) {\\n downcasted = int56(value);\\n require(downcasted == value, \\\"SafeCast: value doesn't fit in 56 bits\\\");\\n }\\n\\n /**\\n * @dev Returns the downcasted int48 from int256, reverting on\\n * overflow (when the input is less than smallest int48 or\\n * greater than largest int48).\\n *\\n * Counterpart to Solidity's `int48` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 48 bits\\n *\\n * _Available since v4.7._\\n */\\n function toInt48(int256 value) internal pure returns (int48 downcasted) {\\n downcasted = int48(value);\\n require(downcasted == value, \\\"SafeCast: value doesn't fit in 48 bits\\\");\\n }\\n\\n /**\\n * @dev Returns the downcasted int40 from int256, reverting on\\n * overflow (when the input is less than smallest int40 or\\n * greater than largest int40).\\n *\\n * Counterpart to Solidity's `int40` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 40 bits\\n *\\n * _Available since v4.7._\\n */\\n function toInt40(int256 value) internal pure returns (int40 downcasted) {\\n downcasted = int40(value);\\n require(downcasted == value, \\\"SafeCast: value doesn't fit in 40 bits\\\");\\n }\\n\\n /**\\n * @dev Returns the downcasted int32 from int256, reverting on\\n * overflow (when the input is less than smallest int32 or\\n * greater than largest int32).\\n *\\n * Counterpart to Solidity's `int32` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 32 bits\\n *\\n * _Available since v3.1._\\n */\\n function toInt32(int256 value) internal pure returns (int32 downcasted) {\\n downcasted = int32(value);\\n require(downcasted == value, \\\"SafeCast: value doesn't fit in 32 bits\\\");\\n }\\n\\n /**\\n * @dev Returns the downcasted int24 from int256, reverting on\\n * overflow (when the input is less than smallest int24 or\\n * greater than largest int24).\\n *\\n * Counterpart to Solidity's `int24` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 24 bits\\n *\\n * _Available since v4.7._\\n */\\n function toInt24(int256 value) internal pure returns (int24 downcasted) {\\n downcasted = int24(value);\\n require(downcasted == value, \\\"SafeCast: value doesn't fit in 24 bits\\\");\\n }\\n\\n /**\\n * @dev Returns the downcasted int16 from int256, reverting on\\n * overflow (when the input is less than smallest int16 or\\n * greater than largest int16).\\n *\\n * Counterpart to Solidity's `int16` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 16 bits\\n *\\n * _Available since v3.1._\\n */\\n function toInt16(int256 value) internal pure returns (int16 downcasted) {\\n downcasted = int16(value);\\n require(downcasted == value, \\\"SafeCast: value doesn't fit in 16 bits\\\");\\n }\\n\\n /**\\n * @dev Returns the downcasted int8 from int256, reverting on\\n * overflow (when the input is less than smallest int8 or\\n * greater than largest int8).\\n *\\n * Counterpart to Solidity's `int8` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 8 bits\\n *\\n * _Available since v3.1._\\n */\\n function toInt8(int256 value) internal pure returns (int8 downcasted) {\\n downcasted = int8(value);\\n require(downcasted == value, \\\"SafeCast: value doesn't fit in 8 bits\\\");\\n }\\n\\n /**\\n * @dev Converts an unsigned uint256 into a signed int256.\\n *\\n * Requirements:\\n *\\n * - input must be less than or equal to maxInt256.\\n *\\n * _Available since v3.0._\\n */\\n function toInt256(uint256 value) internal pure returns (int256) {\\n // Note: Unsafe cast below is okay because `type(int256).max` is guaranteed to be positive\\n require(value <= uint256(type(int256).max), \\\"SafeCast: value doesn't fit in an int256\\\");\\n return int256(value);\\n }\\n}\\n\",\"keccak256\":\"0x52a8cfb0f5239d11b457dcdd1b326992ef672714ca8da71a157255bddd13f3ad\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/math/SignedMath.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Standard signed math utilities missing in the Solidity language.\\n */\\nlibrary SignedMath {\\n /**\\n * @dev Returns the largest of two signed numbers.\\n */\\n function max(int256 a, int256 b) internal pure returns (int256) {\\n return a > b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the smallest of two signed numbers.\\n */\\n function min(int256 a, int256 b) internal pure returns (int256) {\\n return a < b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the average of two signed numbers without overflow.\\n * The result is rounded towards zero.\\n */\\n function average(int256 a, int256 b) internal pure returns (int256) {\\n // Formula from the book \\\"Hacker's Delight\\\"\\n int256 x = (a & b) + ((a ^ b) >> 1);\\n return x + (int256(uint256(x) >> 255) & (a ^ b));\\n }\\n\\n /**\\n * @dev Returns the absolute unsigned value of a signed value.\\n */\\n function abs(int256 n) internal pure returns (uint256) {\\n unchecked {\\n // must be unchecked in order to support `n = type(int256).min`\\n return uint256(n >= 0 ? n : -n);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xf92515413956f529d95977adc9b0567d583c6203fc31ab1c23824c35187e3ddc\",\"license\":\"MIT\"},\"src/StargateBase.sol\":{\"content\":\"// SPDX-License-Identifier: BUSL-1.1\\npragma solidity ^0.8.22;\\n\\nimport { Ownable } from \\\"@openzeppelin/contracts/access/Ownable.sol\\\";\\nimport { SafeCast } from \\\"@openzeppelin/contracts/utils/math/SafeCast.sol\\\";\\nimport { SafeERC20, IERC20 } from \\\"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\\\";\\n\\nimport { ILayerZeroEndpointV2 } from \\\"@layerzerolabs/lz-evm-oapp-v2/contracts/oapp/interfaces/IOAppCore.sol\\\";\\nimport { Origin } from \\\"@layerzerolabs/lz-evm-oapp-v2/contracts/oapp/OApp.sol\\\";\\nimport { OFTLimit, OFTFeeDetail, OFTReceipt, SendParam, MessagingReceipt, MessagingFee, IOFT } from \\\"@layerzerolabs/lz-evm-oapp-v2/contracts/oft/interfaces/IOFT.sol\\\";\\nimport { OFTComposeMsgCodec } from \\\"@layerzerolabs/lz-evm-oapp-v2/contracts/oft/libs/OFTComposeMsgCodec.sol\\\";\\n\\nimport { IStargate, Credit, SendMode, AddressConfig } from \\\"./interfaces/IStargate.sol\\\";\\nimport { IStargateFeeLib, FeeParams } from \\\"./interfaces/IStargateFeeLib.sol\\\";\\nimport { IMessaging, SendTokenParam } from \\\"./interfaces/IMessaging.sol\\\";\\nimport { IMessagingReceiver, TokenMessage } from \\\"./interfaces/IMessagingReceiver.sol\\\";\\nimport { Path } from \\\"./libs/Path.sol\\\";\\nimport { MessagingHelper } from \\\"./libs/MessagingHelper.sol\\\";\\n\\nabstract contract StargateBase is Ownable, IStargate, IMessagingReceiver {\\n using SafeCast for uint256;\\n using SafeERC20 for IERC20;\\n using MessagingHelper for SendParam;\\n\\n uint8 internal constant NOT_ENTERED = 1;\\n uint8 internal constant ENTERED = 2;\\n uint8 internal constant PAUSED = 3;\\n\\n address public immutable override token; // the token for the pool or oft\\n uint8 public immutable override sharedDecimals; // the shared decimals (lowest common decimals between chains)\\n uint256 internal immutable convertRate;\\n\\n ILayerZeroEndpointV2 internal immutable endpoint;\\n uint32 internal immutable localEid;\\n\\n // feeLib, status and treasuryFee are stored in the same slot\\n address internal feeLib;\\n uint8 public status = NOT_ENTERED; // 1: not entered, 2: entered, 3: paused\\n uint64 public treasuryFee; // treasury fee in SD\\n address internal planner;\\n\\n // only accessed when sending a message\\n address internal messaging;\\n address internal lzToken;\\n\\n address internal treasurer;\\n\\n mapping(uint32 eid => Path path) public paths;\\n\\n // only used when the _outflow() fails\\n mapping(bytes32 guid => mapping(uint8 index => bytes32 hash)) public unreceivedTokens;\\n\\n modifier onlyCaller(address _caller) {\\n if (msg.sender != _caller) revert Unauthorized();\\n _;\\n }\\n\\n modifier nonReentrantAndNotPaused() {\\n uint8 s = status;\\n if (s == PAUSED) revert Paused();\\n // On the first call to nonReentrant, _status will be _NOT_ENTERED\\n if (s == ENTERED) revert ReentrantCall();\\n // Any calls to nonReentrant after this point will fail\\n status = ENTERED;\\n _;\\n status = NOT_ENTERED;\\n }\\n\\n error ReentrantCall();\\n error InvalidTokenDecimals();\\n error Unauthorized();\\n error ComposingNotAllowed();\\n error SlippageTooHigh();\\n error UnreceivedTokenNotFound();\\n error OutflowFailed();\\n error InvalidPath();\\n error LzTokenUnavailable();\\n error Paused();\\n error InvalidAmount();\\n\\n event CreditsSent(uint32 dstEid, Credit[] credits);\\n event CreditsReceived(uint32 srcEid, Credit[] credits);\\n event UnreceivedTokenCached(bytes32 guid, uint8 index, address receiver, uint256 amountLD, bytes composeMsg);\\n\\n /// @param _token The token for the pool or oft. If the token is address(0), it is native coin, like ETH.\\n constructor(address _token, uint8 _tokenDecimals, uint8 _sharedDecimals, address _endpoint, address _owner) {\\n token = _token;\\n if (_tokenDecimals < _sharedDecimals) revert InvalidTokenDecimals();\\n convertRate = 10 ** (_tokenDecimals - _sharedDecimals);\\n sharedDecimals = _sharedDecimals;\\n\\n endpoint = ILayerZeroEndpointV2(_endpoint);\\n localEid = endpoint.eid();\\n _transferOwnership(_owner);\\n }\\n\\n // ---------------------------------- Only Owner ------------------------------------------\\n function setAddressConfig(AddressConfig calldata _config) external onlyOwner {\\n feeLib = _config.feeLib;\\n planner = _config.planner;\\n treasurer = _config.treasurer;\\n messaging = _config.messaging;\\n lzToken = _config.lzToken;\\n }\\n\\n /// @dev Set the path as OFT if the remote chain is using OFT\\n /// @dev When migrating from OFT to pool on the remote chain (e.g. migrate USDC to circles), reset the path to non-OFT\\n function setOFTPath(uint32 _dstEid, bool _oft) external onlyOwner {\\n if (_dstEid == localEid) revert InvalidPath();\\n paths[_dstEid].setOFTPath(_oft);\\n }\\n\\n // ---------------------------------- Only Treasurer ------------------------------------------\\n\\n function withdrawTreasuryFee(address _to, uint64 _amountSD) external onlyCaller(treasurer) {\\n treasuryFee -= _amountSD;\\n _safeOutflow(_to, _sd2ld(_amountSD));\\n }\\n\\n /// @dev only used for increasing the overall budget for transaction rewards\\n /// @dev the treasuryFee is essentially the reward pool. exposure is capped.\\n function addTreasuryFee(uint256 _amountLD) external payable onlyCaller(treasurer) {\\n _assertMsgValue(_amountLD);\\n uint64 amountSD = _inflow(msg.sender, _amountLD);\\n treasuryFee += amountSD;\\n }\\n\\n // ---------------------------------- Only Planner ------------------------------------------\\n function setPause(bool _paused) external onlyCaller(planner) {\\n status = _paused ? PAUSED : NOT_ENTERED;\\n }\\n\\n function tweakBus(uint32 _dstEid, uint8 _capacity, uint40 _fareInGwei) external onlyCaller(planner) {\\n if (_dstEid == localEid) revert InvalidPath();\\n paths[_dstEid].tweakBus(_capacity, _fareInGwei);\\n }\\n\\n function sendCredits(\\n uint32 _dstEid,\\n Credit[] calldata _credits\\n ) external payable onlyCaller(planner) nonReentrantAndNotPaused {\\n for (uint256 i = 0; i < _credits.length; i++) {\\n Credit calldata c = _credits[i];\\n // can move credits around when path is not active\\n // move the credit from local to remote if c.srcEid == localEid\\n bool unlimited = paths[c.srcEid].decreaseCredit(c.amount);\\n if (unlimited) revert InvalidPath();\\n }\\n IMessaging(messaging).sendCredit{ value: msg.value }(_dstEid, _credits);\\n emit CreditsSent(_dstEid, _credits);\\n }\\n\\n // ------------------------------- Public Functions ---------------------------------------\\n\\n function send(\\n SendParam calldata _sendParam,\\n MessagingFee calldata _fee,\\n address _refundAddress\\n )\\n external\\n payable\\n override\\n nonReentrantAndNotPaused\\n returns (MessagingReceipt memory msgReceipt, OFTReceipt memory oftReceipt)\\n {\\n SendMode mode = _sendMode(_sendParam.oftCmd);\\n\\n // step 1: assets inflows and are charged fee\\n (uint64 amountInSD, uint64 amountOutSD) = _inflowAndCharge(_sendParam, mode);\\n oftReceipt = OFTReceipt(_sd2ld(amountInSD), _sd2ld(amountOutSD));\\n\\n // step 2: _send the token based on the mode\\n MessagingFee memory messagingFee = _assertMessagingFee(_fee, oftReceipt.amountSentLD);\\n msgReceipt = _sendToken(mode, _sendParam, messagingFee, amountOutSD, _refundAddress);\\n emit OFTSent(\\n msgReceipt.guid,\\n _sendParam.dstEid,\\n msg.sender,\\n oftReceipt.amountSentLD,\\n oftReceipt.amountReceivedLD\\n );\\n }\\n\\n /// @dev try to receive the token if the previous attempt failed in lzReceive\\n function retryReceiveToken(\\n bytes32 _guid,\\n uint8 _index,\\n address _receiver,\\n uint256 _amountLD,\\n bytes calldata _composeMsg\\n ) external nonReentrantAndNotPaused {\\n bytes32 hash = keccak256(abi.encodePacked(_receiver, _amountLD, _composeMsg));\\n if (unreceivedTokens[_guid][_index] != hash) revert UnreceivedTokenNotFound();\\n delete unreceivedTokens[_guid][_index];\\n\\n _safeOutflow(_receiver, _amountLD);\\n if (_composeMsg.length > 0) {\\n endpoint.sendCompose(_receiver, _guid, 0, _composeMsg);\\n }\\n emit OFTReceived(_guid, localEid, _receiver, _amountLD);\\n }\\n\\n // ------------------------------- Only Messaging ---------------------------------------\\n\\n function receiveToken(\\n Origin calldata _origin,\\n bytes32 _guid,\\n TokenMessage calldata _tokenMessage\\n ) external nonReentrantAndNotPaused onlyCaller(messaging) {\\n for (uint256 i = 0; i < _tokenMessage.receivers.length; i++) {\\n uint256 amountLD = _sd2ld(_tokenMessage.amountsSD[i]);\\n address receiver = _tokenMessage.receivers[i];\\n bool success = _outflow(receiver, amountLD);\\n\\n // only the first receiver can have a composeMsg\\n bool hasCompose = i == 0 && _tokenMessage.composeMsg.length > 0;\\n bytes memory composeMsg;\\n if (hasCompose) {\\n composeMsg = OFTComposeMsgCodec.encode(\\n _origin.nonce,\\n _origin.srcEid,\\n amountLD,\\n _tokenMessage.composeMsg\\n );\\n }\\n\\n if (success) {\\n // send the composeMsg to the endpoint when the first receiver receives the token\\n if (hasCompose) {\\n endpoint.sendCompose(receiver, _guid, 0, composeMsg);\\n }\\n emit OFTReceived(_guid, _origin.srcEid, receiver, amountLD);\\n } else {\\n bytes memory payload = abi.encodePacked(receiver, amountLD, composeMsg);\\n uint8 index = uint8(i);\\n unreceivedTokens[_guid][index] = keccak256(payload);\\n emit UnreceivedTokenCached(_guid, index, receiver, amountLD, composeMsg);\\n }\\n }\\n }\\n\\n function receiveCredit(\\n uint32 _srcEid,\\n Credit[] calldata _credits\\n ) external nonReentrantAndNotPaused onlyCaller(messaging) {\\n for (uint256 i = 0; i < _credits.length; i++) {\\n Credit calldata c = _credits[i];\\n paths[c.srcEid].increaseCredit(c.amount);\\n }\\n emit CreditsReceived(_srcEid, _credits);\\n }\\n\\n // ---------------------------------- View Functions ------------------------------------------\\n\\n function quoteSendCredit(\\n uint32 _dstEid,\\n Credit[] calldata _credits\\n ) external view returns (MessagingFee memory fee) {\\n fee = IMessaging(messaging).quoteSendCredit(_dstEid, _credits);\\n }\\n\\n function quoteOFT(\\n SendParam calldata _sendParam\\n ) external view returns (OFTLimit memory limit, OFTFeeDetail[] memory oftFeeDetails, OFTReceipt memory receipt) {\\n // limit\\n limit.maxAmountLD = _sd2ld(paths[_sendParam.dstEid].credit);\\n\\n // fee details\\n uint64 amountInSD = _ld2sd(_sendParam.amountLD);\\n FeeParams memory params = FeeParams(\\n msg.sender,\\n _sendParam.dstEid,\\n amountInSD,\\n paths[_sendParam.dstEid].isOFTPath(),\\n _sendMode(_sendParam.oftCmd)\\n );\\n uint64 amountOutSD = IStargateFeeLib(feeLib).getOutflow(params);\\n if (amountOutSD != amountInSD) {\\n oftFeeDetails = new OFTFeeDetail[](1);\\n if (amountOutSD < amountInSD) {\\n oftFeeDetails[0] = OFTFeeDetail(-1 * _sd2ld(amountInSD - amountOutSD).toInt256(), \\\"protocol fee\\\");\\n } else if (amountOutSD > amountInSD) {\\n uint64 reward = amountOutSD - amountInSD;\\n (amountOutSD, reward) = _capReward(amountOutSD, reward);\\n if (amountOutSD == amountInSD) {\\n oftFeeDetails = new OFTFeeDetail[](0);\\n } else {\\n oftFeeDetails[0] = OFTFeeDetail(_sd2ld(reward).toInt256(), \\\"reward\\\");\\n }\\n }\\n }\\n\\n // receipt\\n receipt.amountSentLD = _sd2ld(amountInSD);\\n receipt.amountReceivedLD = _sd2ld(amountOutSD);\\n }\\n\\n function quoteSend(\\n SendParam calldata _sendParam,\\n bool _payInLzToken\\n ) external view returns (MessagingFee memory fee) {\\n SendMode mode = _sendMode(_sendParam.oftCmd);\\n if (mode == SendMode.Bus) {\\n fee.nativeFee = paths[_sendParam.dstEid].getBusFareInWei();\\n } else {\\n // Taxi or Drive\\n bytes calldata passengers = mode == SendMode.Taxi ? _sendParam.oftCmd[:0] : _sendParam.oftCmd;\\n\\n // if sending 0 token, it is just-drive mode\\n uint64 amountInSD = _ld2sd(_sendParam.amountLD);\\n if (mode == SendMode.Taxi && amountInSD == 0) revert InvalidAmount();\\n fee = IMessaging(messaging).quoteSendToken(\\n _sendParam.toSendTokenParam(amountInSD, passengers),\\n _payInLzToken\\n );\\n\\n if (mode == SendMode.Drive) {\\n uint256 fareBox = paths[_sendParam.dstEid].getBusFareBoxInWei();\\n fee.nativeFee = fee.nativeFee <= fareBox ? 0 : fee.nativeFee - fareBox;\\n }\\n }\\n }\\n\\n function getAddressConfig() external view returns (AddressConfig memory) {\\n return\\n AddressConfig({\\n feeLib: feeLib,\\n planner: planner,\\n treasurer: treasurer,\\n messaging: messaging,\\n lzToken: lzToken\\n });\\n }\\n\\n /// @dev 0 version means the message encoding is not compatible with default OFT\\n function oftVersion() external pure override returns (bytes4 interfaceId, uint64 version) {\\n return (type(IOFT).interfaceId, 0);\\n }\\n\\n function approvalRequired() external pure override returns (bool) {\\n return true;\\n }\\n\\n // ---------------------------------- Internal Functions ------------------------------------------\\n\\n function _inflowAndCharge(\\n SendParam calldata _sendParam,\\n SendMode _mode\\n ) internal returns (uint64 amountInSD, uint64 amountOutSD) {\\n // if send 0 token, it is just-drive mode\\n if (_mode == SendMode.Drive && _sendParam.amountLD == 0) return (0, 0);\\n\\n amountInSD = _inflow(msg.sender, _sendParam.amountLD);\\n (amountOutSD, ) = _chargeFee(_sendParam.dstEid, amountInSD, _ld2sd(_sendParam.minAmountLD), _mode);\\n\\n _handleCredit(_sendParam.dstEid, amountOutSD);\\n }\\n\\n function _chargeFee(\\n uint32 _dstEid,\\n uint64 _amountInSD,\\n uint64 _minAmountOutSD,\\n SendMode _mode\\n ) internal returns (uint64 amountOutSD, uint64 reward) {\\n // get the output amount from the fee library\\n FeeParams memory params = FeeParams(msg.sender, _dstEid, _amountInSD, paths[_dstEid].isOFTPath(), _mode);\\n amountOutSD = IStargateFeeLib(feeLib).outflow(params);\\n if (amountOutSD < _minAmountOutSD || amountOutSD == 0) revert SlippageTooHigh(); // not allow to send 0 token\\n\\n unchecked {\\n if (amountOutSD < _amountInSD) {\\n treasuryFee += _amountInSD - amountOutSD;\\n } else if (amountOutSD > _amountInSD) {\\n (amountOutSD, reward) = _capReward(amountOutSD, amountOutSD - _amountInSD);\\n if (reward > 0) treasuryFee -= reward;\\n }\\n }\\n }\\n\\n function _sendToken(\\n SendMode _mode,\\n SendParam calldata _sendParam,\\n MessagingFee memory _messagingFee,\\n uint64 _amountSD,\\n address _refundAddress\\n ) internal returns (MessagingReceipt memory receipt) {\\n if (_mode == SendMode.Bus) {\\n if (_sendParam.composeMsg.length > 0) revert ComposingNotAllowed();\\n uint32 dstEid = _sendParam.dstEid; // stack too deep\\n paths[dstEid].rideBus(dstEid, _sendParam.to, _amountSD, _messagingFee.nativeFee);\\n receipt.fee.nativeFee = _messagingFee.nativeFee; // return the bus fare as the messaging fee\\n } else {\\n // either Taxi or Drive\\n bytes calldata passengers = _sendParam.oftCmd[:0]; // empty bytes\\n if (_mode == SendMode.Drive) {\\n passengers = _sendParam.oftCmd;\\n uint32 dstEid = _sendParam.dstEid;\\n uint256 collectedFares = paths[dstEid].driveBus(dstEid, passengers);\\n _messagingFee.nativeFee += collectedFares;\\n }\\n\\n // not allowed to compose when in just-drive mode\\n if (_amountSD == 0 && _sendParam.composeMsg.length > 0) revert ComposingNotAllowed();\\n SendTokenParam memory param = _sendParam.toSendTokenParam(_amountSD, passengers);\\n receipt = IMessaging(messaging).sendToken{ value: _messagingFee.nativeFee }(\\n param,\\n _messagingFee,\\n _refundAddress\\n );\\n }\\n }\\n\\n function _payLzToken(uint256 _lzTokenFee) internal {\\n if (lzToken == address(0)) revert LzTokenUnavailable();\\n\\n // Pay LZ token fee by sending tokens to the endpoint.\\n IERC20(lzToken).safeTransferFrom(msg.sender, address(endpoint), _lzTokenFee);\\n }\\n\\n function _sd2ld(uint64 _amountSD) internal view returns (uint256 amountLD) {\\n unchecked {\\n amountLD = _amountSD * convertRate;\\n }\\n }\\n\\n function _ld2sd(uint256 _amountLD) internal view returns (uint64 amountSD) {\\n unchecked {\\n amountSD = SafeCast.toUint64(_amountLD / convertRate);\\n }\\n }\\n\\n /// @dev first bytes is the sendMode\\n /// @dev if _cmd is empty, Taxi mode is assumed\\n function _sendMode(bytes calldata _cmd) internal pure returns (SendMode) {\\n uint256 len = _cmd.length;\\n return\\n len == 0\\n ? SendMode.Taxi\\n : len == 1\\n ? SendMode.Bus\\n : SendMode.Drive;\\n }\\n\\n // ---------------------------------- Virtual Functions ------------------------------------------\\n function _capReward(\\n uint64 _amountOutSD,\\n uint64 _reward\\n ) internal view virtual returns (uint64 newAmountOutSD, uint64 newReward);\\n\\n // remove the credit from the path\\n function _handleCredit(uint32 _dstEid, uint64 _spentCredit) internal virtual {\\n paths[_dstEid].decreaseCredit(_spentCredit); // check for transfer solvency.\\n }\\n\\n function _inflow(address _from, uint256 _amountLD) internal virtual returns (uint64 amountSD);\\n\\n function _outflow(address _to, uint256 _amountLD) internal virtual returns (bool success);\\n\\n function _safeOutflow(address _to, uint256 _amountLD) internal virtual {\\n bool success = _outflow(_to, _amountLD);\\n if (!success) revert OutflowFailed();\\n }\\n\\n /// @dev the native fee should be the same as msg value by default\\n function _assertMessagingFee(\\n MessagingFee memory _fee,\\n uint256 /*_amountInLD*/\\n ) internal view virtual returns (MessagingFee memory) {\\n if (_fee.nativeFee != msg.value) revert InvalidAmount();\\n return _fee;\\n }\\n\\n /// @dev Not allowed to call with msg.value\\n function _assertMsgValue(uint256 /*_amountLD*/) internal view virtual {\\n if (msg.value > 0) revert InvalidAmount();\\n }\\n}\\n\",\"keccak256\":\"0x6a5abc34da65f677f8c0568b9a4eeed179450b01c6ab45e3af8598fb131cf336\",\"license\":\"BUSL-1.1\"},\"src/StargatePool.sol\":{\"content\":\"// SPDX-License-Identifier: BUSL-1.1\\npragma solidity ^0.8.22;\\n\\nimport { IERC20, SafeERC20 } from \\\"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\\\";\\nimport { SafeCast } from \\\"@openzeppelin/contracts/utils/math/SafeCast.sol\\\";\\n\\nimport { MessagingReceipt, MessagingFee } from \\\"@layerzerolabs/lz-evm-oapp-v2/contracts/oft/interfaces/IOFT.sol\\\";\\n\\nimport { StargateType } from \\\"./interfaces/IStargate.sol\\\";\\nimport { IStargatePool, RedeemSendParam } from \\\"./interfaces/IStargatePool.sol\\\";\\nimport { IMessaging, SendTokenParam } from \\\"./interfaces/IMessaging.sol\\\";\\nimport { MessagingHelper } from \\\"./libs/MessagingHelper.sol\\\";\\nimport { StargateBase, SendMode } from \\\"./StargateBase.sol\\\";\\nimport { LPToken } from \\\"./utils/LPToken.sol\\\";\\n\\ncontract StargatePool is StargateBase, IStargatePool {\\n using SafeERC20 for IERC20;\\n using SafeCast for uint256;\\n using MessagingHelper for RedeemSendParam;\\n\\n LPToken internal immutable lp;\\n\\n event Deposited(address indexed payer, address indexed receiver, uint256 amountLD);\\n event Redeemed(address indexed payer, address indexed receiver, uint256 amountLD);\\n\\n constructor(\\n string memory _lpTokenName,\\n string memory _lpTokenSymbol,\\n address _token,\\n uint8 _tokenDecimals,\\n uint8 _sharedDecimals,\\n address _endpoint,\\n address _owner\\n ) StargateBase(_token, _tokenDecimals, _sharedDecimals, _endpoint, _owner) {\\n lp = new LPToken(_lpTokenName, _lpTokenSymbol, _tokenDecimals);\\n }\\n\\n // -------- LP operations --------\\n function deposit(\\n address _receiver,\\n uint256 _amountLD\\n ) external payable nonReentrantAndNotPaused returns (uint256 amountLD) {\\n // charge the sender\\n _assertMsgValue(_amountLD);\\n uint64 amountSD = _inflow(msg.sender, _amountLD);\\n\\n // mint LP token to the receiver\\n amountLD = _sd2ld(amountSD);\\n lp.mint(_receiver, amountLD);\\n\\n // increase local credit\\n paths[localEid].increaseCredit(amountSD);\\n\\n emit Deposited(msg.sender, _receiver, amountLD);\\n }\\n\\n /// @dev Redeem the LP token of the sender and return the underlying token to receiver\\n /// @dev The amount of LP token to redeem is capped by the unallocated local credit\\n /// @param _amountLD the amount of LP token to redeem\\n /// @return amountLD the amount of LP token burned and the amount of underlying token sent to the receiver\\n function redeem(uint256 _amountLD, address _receiver) external nonReentrantAndNotPaused returns (uint256 amountLD) {\\n // cap it to the max value of the pool, or race condition may revert this function\\n // let user redeem as much as they can\\n uint64 amountSD = _ld2sd(_amountLD);\\n amountSD = paths[localEid].tryDecreaseCredit(amountSD);\\n\\n // burn LP token of 'from'. it will revert if the sender doesn't have enough LP token\\n amountLD = _sd2ld(amountSD);\\n lp.burnFrom(msg.sender, amountLD);\\n\\n // send the underlying token to the receiver from the pool\\n _safeOutflow(_receiver, amountLD);\\n\\n emit Redeemed(msg.sender, _receiver, amountLD);\\n }\\n\\n function redeemSend(\\n RedeemSendParam calldata _sendParam,\\n MessagingFee calldata _fee,\\n address _refundAddress\\n ) external payable nonReentrantAndNotPaused returns (MessagingReceipt memory receipt, uint256 amountLD) {\\n uint64 amountInSD = _ld2sd(_sendParam.amountLD);\\n uint256 amountInLD = _sd2ld(amountInSD);\\n lp.burnFrom(msg.sender, amountInLD);\\n emit Redeemed(msg.sender, address(0), amountInLD);\\n\\n // charge fees and handle credit\\n (uint64 amountOutSD, uint64 reward) = _chargeFee(\\n _sendParam.dstEid,\\n amountInSD,\\n _ld2sd(_sendParam.minAmountLD),\\n SendMode.Taxi\\n );\\n _handleCredit(_sendParam.dstEid, amountOutSD, reward);\\n\\n // send the token to the receiver\\n MessagingFee memory messagingFee = _assertMessagingFee(_fee, 0);\\n SendTokenParam memory param = _sendParam.toSendTokenParam(amountOutSD);\\n receipt = IMessaging(messaging).sendToken{ value: messagingFee.nativeFee }(param, messagingFee, _refundAddress);\\n amountLD = _sd2ld(amountOutSD);\\n emit OFTSent(receipt.guid, _sendParam.dstEid, msg.sender, amountInLD, amountLD);\\n }\\n\\n function redeemable(address _owner) external view returns (uint256 amountLD) {\\n uint256 cap = _sd2ld(paths[localEid].credit);\\n if (_owner == address(0)) {\\n amountLD = cap;\\n } else {\\n uint256 userLp = lp.balanceOf(_owner);\\n amountLD = cap > userLp ? userLp : cap;\\n }\\n }\\n\\n function quoteRedeemSend(\\n RedeemSendParam calldata _sendParam,\\n bool _payInLzToken\\n ) external view returns (MessagingFee memory fee) {\\n fee = IMessaging(messaging).quoteSendToken(\\n _sendParam.toSendTokenParam(_ld2sd(_sendParam.amountLD)),\\n _payInLzToken\\n );\\n }\\n\\n /// @dev The tvl of the pool is the total supply of the LP token\\n /// The rate of the LP token is always 1:1 with the underlying token\\n function tvl() external view override returns (uint256) {\\n return lp.totalSupply();\\n }\\n\\n function stargateType() external pure override returns (StargateType) {\\n return StargateType.Pool;\\n }\\n\\n function lpToken() external view override returns (address) {\\n return address(lp);\\n }\\n\\n function _capReward(\\n uint64 _amountOutSD,\\n uint64 _reward\\n ) internal view override returns (uint64 newAmountOutSD, uint64 newReward) {\\n uint64 rewardCap = treasuryFee;\\n if (_reward > rewardCap) {\\n // minus the overflow\\n unchecked {\\n newAmountOutSD = _amountOutSD - _reward + rewardCap;\\n }\\n newReward = rewardCap;\\n } else {\\n newAmountOutSD = _amountOutSD;\\n newReward = _reward;\\n }\\n }\\n\\n function _handleCredit(uint32 _dstEid, uint64 _spentCredit, uint64 _newLocalCredit) internal {\\n // decrease remote credit and increase local credit\\n paths[_dstEid].decreaseCredit(_spentCredit);\\n if (_newLocalCredit > 0) paths[localEid].increaseCredit(_newLocalCredit);\\n }\\n\\n function _handleCredit(uint32 _dstEid, uint64 _spentCredit) internal override {\\n _handleCredit(_dstEid, _spentCredit, _spentCredit);\\n }\\n\\n function _inflow(address _from, uint256 _amountLD) internal virtual override returns (uint64 amountSD) {\\n amountSD = _ld2sd(_amountLD);\\n _amountLD = _sd2ld(amountSD); // remove the dust\\n IERC20(token).safeTransferFrom(_from, address(this), _amountLD);\\n }\\n\\n function _outflow(address _to, uint256 _amountLD) internal virtual override returns (bool success) {\\n bytes memory data = abi.encodeWithSelector(IERC20.transfer.selector, _to, _amountLD);\\n (bool s, bytes memory returndata) = token.call(data);\\n success = s ? returndata.length == 0 || abi.decode(returndata, (bool)) : false;\\n }\\n}\\n\",\"keccak256\":\"0x1431a53a21ab06a36c61aeecbff33e7fad55791c6da598a2861cfd9ea63a3eb9\",\"license\":\"BUSL-1.1\"},\"src/StargatePoolNative.sol\":{\"content\":\"// SPDX-License-Identifier: BUSL-1.1\\npragma solidity ^0.8.22;\\n\\nimport { MessagingFee } from \\\"@layerzerolabs/lz-evm-oapp-v2/contracts/oft/interfaces/IOFT.sol\\\";\\n\\nimport { StargatePool } from \\\"./StargatePool.sol\\\";\\n\\ncontract StargatePoolNative is StargatePool {\\n constructor(\\n string memory _lpTokenName,\\n string memory _lpTokenSymbol,\\n uint8 _tokenDecimals,\\n uint8 _sharedDecimals,\\n address _endpoint,\\n address _owner\\n ) StargatePool(_lpTokenName, _lpTokenSymbol, address(0), _tokenDecimals, _sharedDecimals, _endpoint, _owner) {}\\n\\n /// @dev The native coin is transferred to this contract and do nothing here\\n function _inflow(address /*_from*/, uint256 _amountLD) internal view override returns (uint64 amountSD) {\\n amountSD = _ld2sd(_amountLD);\\n }\\n\\n /// @dev Try to send the native coin to the receiver with 2300\\n /// failures will be gracefully handled and retryable\\n /// @dev used in receiveToken()\\n function _outflow(address _to, uint256 _amountLD) internal override returns (bool success) {\\n success = payable(_to).send(_amountLD);\\n }\\n\\n /// @dev Send the native coin to the receiver with unlimited gas\\n /// @dev used in redeem() and retryReceiveToken()\\n function _safeOutflow(address _to, uint256 _amountLD) internal override {\\n (bool success, ) = _to.call{ value: _amountLD }(\\\"\\\");\\n if (!success) revert OutflowFailed();\\n }\\n\\n function _assertMessagingFee(\\n MessagingFee memory _fee,\\n uint256 _amountInLD\\n ) internal view override returns (MessagingFee memory) {\\n // msg.value should not be less than the native fee + amountInLD\\n uint256 expectedMsgValue = _fee.nativeFee + _amountInLD;\\n if (msg.value < expectedMsgValue) revert InvalidAmount();\\n\\n // there may be some dust left in the msg.value if the token is native coin\\n if (msg.value > expectedMsgValue) _fee.nativeFee = msg.value - _amountInLD;\\n return _fee;\\n }\\n\\n function _assertMsgValue(uint256 _amountLD) internal view override {\\n // msg.value should be exactly the same as the amountLD and not have dust\\n if (_amountLD != msg.value || _amountLD != _sd2ld(_ld2sd(_amountLD))) revert InvalidAmount();\\n }\\n}\\n\",\"keccak256\":\"0x8826a25fc0c0ded0b87913d33f48ff6f3ec138458317963c39f75126e9362d2b\",\"license\":\"BUSL-1.1\"},\"src/interfaces/IMessaging.sol\":{\"content\":\"// SPDX-License-Identifier: BUSL-1.1\\npragma solidity ^0.8.0;\\n\\nimport { MessagingReceipt, MessagingFee } from \\\"@layerzerolabs/lz-evm-oapp-v2/contracts/oft/interfaces/IOFT.sol\\\";\\n\\nimport { Credit } from \\\"./IStargate.sol\\\";\\n\\nstruct SendTokenParam {\\n uint32 dstEid;\\n bytes32 to;\\n uint64 amountSD;\\n bytes passengers;\\n bytes extraOptions;\\n bytes composeMsg;\\n}\\n\\ninterface IMessaging {\\n function sendToken(\\n SendTokenParam calldata _sendParam,\\n MessagingFee calldata _messageFee,\\n address _refundAddress\\n ) external payable returns (MessagingReceipt memory receipt);\\n\\n function quoteSendToken(\\n SendTokenParam calldata _sendParam,\\n bool _payInLzToken\\n ) external view returns (MessagingFee memory fee);\\n\\n function sendCredit(uint32 _dstEid, Credit[] calldata _credits) external payable;\\n\\n function quoteSendCredit(\\n uint32 _dstEid,\\n Credit[] calldata _credits\\n ) external view returns (MessagingFee memory fee);\\n}\\n\",\"keccak256\":\"0xf76e6b7745991402cd099589ac20008c1f8aab389e8d78da52be97130648c352\",\"license\":\"BUSL-1.1\"},\"src/interfaces/IMessagingReceiver.sol\":{\"content\":\"// SPDX-License-Identifier: BUSL-1.1\\npragma solidity ^0.8.0;\\n\\nimport { Origin } from \\\"@layerzerolabs/lz-evm-oapp-v2/contracts/oapp/OApp.sol\\\";\\n\\nimport { Credit } from \\\"./IMessaging.sol\\\";\\n\\nstruct TokenMessage {\\n address[] receivers;\\n uint64[] amountsSD;\\n bytes composeMsg;\\n}\\n\\n/// @title IMessagingReceiver\\n/// @notice This is an internal interface, defining the functions to handle messages from the messaging contract.\\ninterface IMessagingReceiver {\\n function receiveToken(Origin calldata _origin, bytes32 _guid, TokenMessage calldata _tokenMessage) external;\\n\\n function receiveCredit(uint32 _srcEid, Credit[] calldata _credits) external;\\n}\\n\",\"keccak256\":\"0x183a898f0114332ebd08a90db1fdd93328e235f10c78cbfcd8d55f232daf56b4\",\"license\":\"BUSL-1.1\"},\"src/interfaces/IStargate.sol\":{\"content\":\"// SPDX-License-Identifier: BUSL-1.1\\npragma solidity ^0.8.0;\\n\\nimport { IOFT, MessagingFee } from \\\"@layerzerolabs/lz-evm-oapp-v2/contracts/oft/interfaces/IOFT.sol\\\";\\n\\nenum StargateType {\\n Pool,\\n OFT\\n}\\n\\nenum SendMode {\\n Bus, // batching send\\n Taxi, // immediate send\\n Drive // dispatch the bus. optionally with a new send() payload\\n}\\n\\nstruct Credit {\\n uint32 srcEid;\\n uint64 amount;\\n}\\n\\nstruct AddressConfig {\\n address feeLib;\\n address planner;\\n address treasurer;\\n address messaging;\\n address lzToken;\\n}\\n\\ninterface IStargate is IOFT {\\n function stargateType() external pure returns (StargateType);\\n\\n function sendCredits(uint32 _dstEid, Credit[] calldata _credits) external payable;\\n\\n function quoteSendCredit(\\n uint32 _dstEid,\\n Credit[] calldata _credits\\n ) external view returns (MessagingFee memory fee);\\n}\\n\",\"keccak256\":\"0x5c69e63363cbc0ca1dddc654670220173810069c38eb96beaa8d9d6ad986af11\",\"license\":\"BUSL-1.1\"},\"src/interfaces/IStargateFeeLib.sol\":{\"content\":\"// SPDX-License-Identifier: BUSL-1.1\\npragma solidity ^0.8.0;\\n\\nimport { SendMode } from \\\"./IStargate.sol\\\";\\n\\nstruct FeeParams {\\n address sender;\\n uint32 dstEid;\\n uint64 amountInSD;\\n bool toOFT;\\n SendMode sendMode;\\n}\\n\\ninterface IStargateFeeLib {\\n function outflow(FeeParams calldata _params) external returns (uint64 amountOutSD);\\n\\n function getOutflow(FeeParams calldata _params) external view returns (uint64 amountOutSD);\\n}\\n\",\"keccak256\":\"0xe42beca36150746c308e0be4bd2243cb671d25293996b33efe851339491f8dc9\",\"license\":\"BUSL-1.1\"},\"src/interfaces/IStargatePool.sol\":{\"content\":\"// SPDX-License-Identifier: BUSL-1.1\\npragma solidity ^0.8.0;\\n\\nimport { MessagingReceipt, MessagingFee } from \\\"@layerzerolabs/lz-evm-oapp-v2/contracts/oft/interfaces/IOFT.sol\\\";\\n\\nimport { IStargate } from \\\"./IStargate.sol\\\";\\n\\nstruct RedeemSendParam {\\n uint32 dstEid;\\n bytes32 to;\\n uint256 amountLD;\\n uint256 minAmountLD;\\n bytes extraOptions;\\n}\\n\\ninterface IStargatePool is IStargate {\\n function deposit(address _receiver, uint256 _amountLD) external payable returns (uint256 amountLD);\\n\\n function redeem(uint256 _amountLD, address _receiver) external returns (uint256 amountLD);\\n\\n function redeemable(address _owner) external view returns (uint256 amountLD);\\n\\n function redeemSend(\\n RedeemSendParam calldata _sendParam,\\n MessagingFee calldata _fee,\\n address _refundAddress\\n ) external payable returns (MessagingReceipt memory receipt, uint256 amountLD);\\n\\n function quoteRedeemSend(\\n RedeemSendParam calldata _sendParam,\\n bool _payInLzToken\\n ) external view returns (MessagingFee memory);\\n\\n function tvl() external view returns (uint256);\\n\\n function lpToken() external view returns (address);\\n}\\n\",\"keccak256\":\"0x2a1cb416abc256468b20de74dbbef7613fd6bca1e6bdc31a34c7bc26cc8c2708\",\"license\":\"BUSL-1.1\"},\"src/libs/MessagingHelper.sol\":{\"content\":\"// SPDX-License-Identifier: BUSL-1.1\\npragma solidity ^0.8.22;\\n\\nimport { SendParam } from \\\"@layerzerolabs/lz-evm-oapp-v2/contracts/oft/interfaces/IOFT.sol\\\";\\nimport { SendTokenParam } from \\\"../interfaces/IMessaging.sol\\\";\\nimport { RedeemSendParam } from \\\"../interfaces/IStargatePool.sol\\\";\\n\\nlibrary MessagingHelper {\\n function toSendTokenParam(\\n RedeemSendParam calldata _sendParam,\\n uint64 _amountSD\\n ) internal pure returns (SendTokenParam memory param) {\\n param.dstEid = _sendParam.dstEid;\\n param.to = _sendParam.to;\\n param.amountSD = _amountSD;\\n param.extraOptions = _sendParam.extraOptions;\\n }\\n\\n function toSendTokenParam(\\n SendParam calldata _sendParam,\\n uint64 _amountSD,\\n bytes calldata _passengers\\n ) internal pure returns (SendTokenParam memory param) {\\n param.dstEid = _sendParam.dstEid;\\n param.to = _sendParam.to;\\n param.amountSD = _amountSD;\\n param.passengers = _passengers;\\n param.extraOptions = _sendParam.extraOptions;\\n param.composeMsg = _sendParam.composeMsg;\\n }\\n}\\n\",\"keccak256\":\"0xb839dfa4ffd6c583cae73aec66f0944809b73393e90849503c74d8a9686e272e\",\"license\":\"BUSL-1.1\"},\"src/libs/Path.sol\":{\"content\":\"// SPDX-License-Identifier: BUSL-1.1\\npragma solidity ^0.8.22;\\n\\n/// @dev The Path struct contains the bus state and the credit in two slots for gas saving\\nstruct Path {\\n // first slot\\n uint64 credit; // in SD\\n // ------------ Bus state below ------------\\n uint32 busNum; // auto increment\\n uint64 startBlock; // block number when first passenger rides\\n uint8 passengers; // auto increment\\n uint8 capacity; // set by planner\\n uint40 fare; // in gwei, set by planner\\n uint40 fareBox; // collected fares in gwei\\n // second slot\\n bytes32 root;\\n}\\n\\nusing PathLib for Path global;\\n\\nlibrary PathLib {\\n uint256 internal constant PASSENGER_BYTES_SIZE = 40;\\n // 255 is the max size in the cross chain message\\n uint8 internal constant MAX_BUS_CAPACITY = type(uint8).max - 1;\\n bytes32 internal constant EMPTY_ROOT = bytes32(uint256(1));\\n uint64 internal constant UNLIMITED_CREDIT = type(uint64).max;\\n\\n error InsufficientCredit();\\n error AlreadyHasCredit();\\n error InvalidPassenger();\\n error InvalidAmount();\\n error InvalidFare();\\n error BusFull();\\n\\n event BusRode(uint32 indexed dstEid, uint40 indexed busNum, bytes32 passenger, uint64 amountSD, bool full);\\n event BusDriven(uint32 indexed dstEid, uint40 indexed busNum);\\n\\n // -------------------------- Bus --------------------------------\\n\\n /// @dev Planner can tweak the bus capacity and fare. The capacity can be reduced to be less\\n /// than the current number of passengers. In this case, the bus stops accepting new passengers\\n /// @dev Planner can also tweak the fare, but the new fare will only be effective for the next.\\n /// it is possible for the Planner to set a high fare to grief the pathway. Dao can change the planner if that happens\\n function tweakBus(Path storage _this, uint8 _capacity, uint40 _fareInGwei) internal {\\n if (_capacity > MAX_BUS_CAPACITY) revert InvalidAmount();\\n _this.capacity = _capacity;\\n _this.fare = _fareInGwei;\\n }\\n\\n function rideBus(\\n Path storage _this,\\n uint32 _dstEid,\\n bytes32 _newPassenger,\\n uint64 _amountSD,\\n uint256 _fareInWei\\n ) internal {\\n if (_fareInWei != getBusFareInWei(_this)) revert InvalidFare();\\n uint8 numPassengers = _this.passengers + 1;\\n uint8 capacity = _this.capacity;\\n if (numPassengers > capacity) revert BusFull();\\n\\n _this.root = _sit(_this.root, abi.encodePacked(_newPassenger, _amountSD));\\n _this.fareBox += uint40(_fareInWei / 1 gwei); // safe cast\\n _this.passengers = numPassengers;\\n if (numPassengers == 1) _this.startBlock = uint64(block.number); // safe cast\\n\\n emit BusRode(_dstEid, _this.busNum, _newPassenger, _amountSD, numPassengers >= capacity);\\n }\\n\\n function driveBus(\\n Path storage _this,\\n uint32 _dstEid,\\n bytes calldata _passengers\\n ) internal returns (uint256 collectedFares) {\\n checkBusTickets(_passengers, _this.root);\\n collectedFares = getBusFareBoxInWei(_this);\\n\\n // reset the bus\\n _this.root = EMPTY_ROOT; // not reset to 0 value for gas saving\\n _this.fareBox = 0;\\n _this.passengers = 0;\\n\\n // increment the batch number\\n uint32 busNum = _this.busNum;\\n _this.busNum = busNum + 1;\\n\\n emit BusDriven(_dstEid, _this.busNum);\\n }\\n\\n function getBusFareInWei(Path storage _this) internal view returns (uint256) {\\n return uint256(_this.fare) * 1 gwei;\\n }\\n\\n function getBusFareBoxInWei(Path storage _this) internal view returns (uint256) {\\n return uint256(_this.fareBox) * 1 gwei;\\n }\\n\\n function checkBusTickets(bytes calldata _passengers, bytes32 _root) internal pure {\\n if (_passengers.length == 0 || _passengers.length % PASSENGER_BYTES_SIZE != 0) revert InvalidPassenger();\\n bytes32 lastRoot;\\n uint256 cursor = 0;\\n while (cursor < _passengers.length) {\\n bytes calldata passenger = _passengers[cursor:cursor += PASSENGER_BYTES_SIZE];\\n lastRoot = _sit(lastRoot, passenger);\\n }\\n if (lastRoot != _root) revert InvalidPassenger();\\n }\\n\\n function _sit(bytes32 _root, bytes memory _passenger) private pure returns (bytes32) {\\n return keccak256(abi.encodePacked(_root, _passenger));\\n }\\n\\n // -------------------------- Credit --------------------------\\n function increaseCredit(Path storage _this, uint64 _amountSD) internal {\\n uint64 credit = _this.credit;\\n if (credit == UNLIMITED_CREDIT) return;\\n credit += _amountSD;\\n if (credit == UNLIMITED_CREDIT) revert InvalidAmount();\\n _this.credit = credit;\\n }\\n\\n function decreaseCredit(Path storage _this, uint64 _amountSD) internal returns (bool unlimited) {\\n uint64 currentCredit = _this.credit;\\n if (currentCredit == UNLIMITED_CREDIT) return true;\\n if (currentCredit < _amountSD) revert InsufficientCredit();\\n unchecked {\\n _this.credit = currentCredit - _amountSD;\\n }\\n }\\n\\n function tryDecreaseCredit(Path storage _this, uint64 _amountSD) internal returns (uint64 decreased) {\\n uint64 currentCredit = _this.credit;\\n decreased = _amountSD > currentCredit ? currentCredit : _amountSD;\\n decreaseCredit(_this, decreased);\\n }\\n\\n function setOFTPath(Path storage _this, bool _oft) internal {\\n uint64 currentCredit = _this.credit;\\n if (_oft) {\\n if (currentCredit != 0) revert AlreadyHasCredit(); // only allow unlimiting from 0\\n _this.credit = UNLIMITED_CREDIT;\\n } else {\\n if (currentCredit != UNLIMITED_CREDIT) revert AlreadyHasCredit(); // only allow resetting from unlimited\\n _this.credit = 0;\\n }\\n }\\n\\n function isOFTPath(Path storage _this) internal view returns (bool) {\\n return _this.credit == UNLIMITED_CREDIT;\\n }\\n}\\n\",\"keccak256\":\"0x103047a64523c57b866932addc72914180683428c05eca5067890dcb139a8001\",\"license\":\"BUSL-1.1\"},\"src/utils/LPToken.sol\":{\"content\":\"// SPDX-License-Identifier: BUSL-1.1\\npragma solidity ^0.8.22;\\n\\nimport { ERC20Permit, ERC20 } from \\\"@openzeppelin/contracts/token/ERC20/extensions/ERC20Permit.sol\\\";\\n\\nimport { StargateAccessible } from \\\"./StargateAccessible.sol\\\";\\n\\ncontract LPToken is ERC20Permit, StargateAccessible {\\n uint8 internal immutable tokenDecimals;\\n\\n constructor(\\n string memory _name,\\n string memory _symbol,\\n uint8 _decimals\\n ) ERC20(_name, _symbol) ERC20Permit(_name) StargateAccessible(msg.sender) {\\n tokenDecimals = _decimals;\\n }\\n\\n function mint(address _to, uint256 _amount) external onlyStargate {\\n _mint(_to, _amount);\\n }\\n\\n function burnFrom(address _from, uint256 _amount) external onlyStargate {\\n _burn(_from, _amount);\\n }\\n\\n function decimals() public view override returns (uint8) {\\n return tokenDecimals;\\n }\\n}\\n\",\"keccak256\":\"0x118ee071970b31c137a2e9a28562d598934ce890ae43eb75833287afe7b308cf\",\"license\":\"BUSL-1.1\"},\"src/utils/StargateAccessible.sol\":{\"content\":\"// SPDX-License-Identifier: BUSL-1.1\\npragma solidity ^0.8.22;\\n\\nabstract contract StargateAccessible {\\n address public immutable stargate;\\n\\n error Unauthorized();\\n\\n modifier onlyStargate() {\\n if (msg.sender != stargate) revert Unauthorized();\\n _;\\n }\\n\\n constructor(address _stargate) {\\n stargate = _stargate;\\n }\\n}\\n\",\"keccak256\":\"0x18c769c9dc2e6ef6f5009179aac72084dbcc48e156cdc5dcff88236f1a51de78\",\"license\":\"BUSL-1.1\"}},\"version\":1}",
|
|
1622
|
+
"bytecode": "0x6101406040526001805460ff60a01b1916600160a01b1790553480156200002557600080fd5b5060405162007ec738038062007ec78339810160408190526200004891620002fb565b858560008686868684848484846200006033620001a1565b6001600160a01b03851660805260ff8084169085161015620000955760405163686d360760e01b815260040160405180910390fd5b620000a18385620003c4565b620000ae90600a620004e3565b60c05260ff831660a0526001600160a01b03821660e08190526040805163416ecebf60e01b8152905163416ecebf916004808201926020929091908290030181865afa15801562000103573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001299190620004fb565b63ffffffff16610100526200013e81620001a1565b50505050508686856040516200015490620001f1565b620001629392919062000551565b604051809103906000f0801580156200017f573d6000803e3d6000fd5b506001600160a01b031661012052506200058e9b505050505050505050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b611f1a8062005fad83390190565b634e487b7160e01b600052604160045260246000fd5b60005b838110156200023257818101518382015260200162000218565b50506000910152565b600082601f8301126200024d57600080fd5b81516001600160401b03808211156200026a576200026a620001ff565b604051601f8301601f19908116603f01168101908282118183101715620002955762000295620001ff565b81604052838152866020858801011115620002af57600080fd5b620002c284602083016020890162000215565b9695505050505050565b805160ff81168114620002de57600080fd5b919050565b80516001600160a01b0381168114620002de57600080fd5b60008060008060008060c087890312156200031557600080fd5b86516001600160401b03808211156200032d57600080fd5b6200033b8a838b016200023b565b975060208901519150808211156200035257600080fd5b506200036189828a016200023b565b9550506200037260408801620002cc565b93506200038260608801620002cc565b92506200039260808801620002e3565b9150620003a260a08801620002e3565b90509295509295509295565b634e487b7160e01b600052601160045260246000fd5b60ff8281168282160390811115620003e057620003e0620003ae565b92915050565b600181815b80851115620004275781600019048211156200040b576200040b620003ae565b808516156200041957918102915b93841c9390800290620003eb565b509250929050565b6000826200044057506001620003e0565b816200044f57506000620003e0565b8160018114620004685760028114620004735762000493565b6001915050620003e0565b60ff841115620004875762000487620003ae565b50506001821b620003e0565b5060208310610133831016604e8410600b8410161715620004b8575081810a620003e0565b620004c48383620003e6565b8060001904821115620004db57620004db620003ae565b029392505050565b6000620004f460ff8416836200042f565b9392505050565b6000602082840312156200050e57600080fd5b815163ffffffff81168114620004f457600080fd5b600081518084526200053d81602086016020860162000215565b601f01601f19169290920160200192915050565b60608152600062000566606083018662000523565b82810360208401526200057a818662000523565b91505060ff83166040830152949350505050565b60805160a05160c05160e0516101005161012051615927620006866000396000818161063001528181611bed01528181611df001528181612323015281816128cf0152613034015260008181610e56015281816119bc01528181611c5101528181611d2a0152818161227d015281816126830152613f050152600081816111b301526126070152600081816109af01528181610bd901528181610d3d01528181610dc101528181611b7301528181611d65015281816122c00152818161286c01528181612a9201528181612d7201528181612d9c01528181612f55015261333a015260006106fc0152600061091901526159276000f3fe6080604052600436106102195760003560e01c8063715018a61161011d578063c7c7f5b3116100b0578063ddb329461161007f578063f2fde38b11610064578063f2fde38b146108c7578063f7b3d501146108e7578063fc0c546a1461090757600080fd5b8063ddb3294614610892578063e5328e06146108b257600080fd5b8063c7c7f5b3146107c6578063c859c483146107e7578063cc32d17614610807578063d621ad3f1461085a57600080fd5b80639f68b964116100ec5780639f68b96414610749578063aa8871d514610765578063afe75f1314610785578063bedb86fb146107a657600080fd5b8063715018a6146106b55780637bde82f2146106ca578063857749b0146106ea5780638da5cb5b1461071e57600080fd5b8063341a4648116101b057806347e7ef241161017f5780635fcbd285116101645780635fcbd28514610621578063643363da146106755780636b75425a1461069557600080fd5b806347e7ef24146105e0578063484267a41461060157600080fd5b8063341a46481461043957806338da6b8e1461044c5780633b6f743b146105935780633faa12c5146105c057600080fd5b8063200d2ed2116101ec578063200d2ed2146102d55780632586ab79146103195780632708987a146103395780632bc5114c1461034c57600080fd5b80630d35b4151461021e578063156a0d0f1461025657806316909bca146102975780631d0da865146102b3575b600080fd5b34801561022a57600080fd5b5061023e61023936600461491e565b61093b565b60405161024d939291906149c1565b60405180910390f35b34801561026257600080fd5b50604080517f02e49c2c000000000000000000000000000000000000000000000000000000008152600060208201520161024d565b3480156102a357600080fd5b50600060405161024d9190614aa7565b3480156102bf57600080fd5b506102d36102ce366004614aeb565b610e02565b005b3480156102e157600080fd5b506001546103079074010000000000000000000000000000000000000000900460ff1681565b60405160ff909116815260200161024d565b34801561032557600080fd5b506102d3610334366004614b4e565b610ee3565b6102d3610347366004614ba6565b611388565b34801561035857600080fd5b506103dd6040805160a081018252600080825260208201819052918101829052606081018290526080810191909152506040805160a08101825260015473ffffffffffffffffffffffffffffffffffffffff90811682526002548116602083015260055481169282019290925260035482166060820152600454909116608082015290565b60405161024d9190815173ffffffffffffffffffffffffffffffffffffffff9081168252602080840151821690830152604080840151821690830152606080840151821690830152608092830151169181019190915260a00190565b6102d3610447366004614c2c565b6116b7565b34801561045857600080fd5b50610532610467366004614c45565b6006602052600090815260409020805460019091015467ffffffffffffffff8083169263ffffffff68010000000000000000820416926c0100000000000000000000000082049092169160ff740100000000000000000000000000000000000000008304811692750100000000000000000000000000000000000000000081049091169164ffffffffff76010000000000000000000000000000000000000000000083048116927b010000000000000000000000000000000000000000000000000000009004169088565b6040805167ffffffffffffffff998a16815263ffffffff989098166020890152959097169486019490945260ff92831660608601529116608084015264ffffffffff90811660a08401521660c082015260e08101919091526101000161024d565b34801561059f57600080fd5b506105b36105ae366004614c70565b611770565b60405161024d9190614cbe565b3480156105cc57600080fd5b506102d36105db366004614cd5565b6119b2565b6105f36105ee366004614d23565b611a45565b60405190815260200161024d565b34801561060d57600080fd5b506105f361061c366004614d4d565b611d23565b34801561062d57600080fd5b507f00000000000000000000000000000000000000000000000000000000000000005b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161024d565b34801561068157600080fd5b506105b3610690366004614ba6565b611e78565b3480156106a157600080fd5b506102d36106b0366004614ba6565b611f2c565b3480156106c157600080fd5b506102d3612142565b3480156106d657600080fd5b506105f36106e5366004614d68565b612156565b3480156106f657600080fd5b506103077f000000000000000000000000000000000000000000000000000000000000000081565b34801561072a57600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff16610650565b34801561075557600080fd5b506040516001815260200161024d565b34801561077157600080fd5b506102d3610780366004614d8b565b6123e8565b610798610793366004614e55565b61273a565b60405161024d929190614ee8565b3480156107b257600080fd5b506102d36107c1366004614f03565b612b85565b6107d96107d4366004614f1e565b612c04565b60405161024d929190614f56565b3480156107f357600080fd5b506102d3610802366004614f90565b612ea4565b34801561081357600080fd5b50600154610841907501000000000000000000000000000000000000000000900467ffffffffffffffff1681565b60405167ffffffffffffffff909116815260200161024d565b34801561086657600080fd5b506105f3610875366004614fc7565b600760209081526000928352604080842090915290825290205481565b34801561089e57600080fd5b506105b36108ad366004614fea565b612f82565b3480156108be57600080fd5b506105f3613030565b3480156108d357600080fd5b506102d36108e2366004614d4d565b6130c6565b3480156108f357600080fd5b506102d3610902366004615020565b613182565b34801561091357600080fd5b506106507f000000000000000000000000000000000000000000000000000000000000000081565b6040805180820190915260008082526020820152606061096e604051806040016040528060008152602001600081525090565b6109d2600660006109826020880188614c45565b63ffffffff16815260208101919091526040016000205467ffffffffffffffff1667ffffffffffffffff167f00000000000000000000000000000000000000000000000000000000000000000290565b602084015260006109e66040860135613333565b6040805160a08101909152338152909150600090602080820190610a0c90890189614c45565b63ffffffff1681526020018367ffffffffffffffff168152602001610a6c600660008a6000016020810190610a419190614c45565b63ffffffff1663ffffffff1681526020019081526020016000205467ffffffffffffffff9081161490565b15158152602001610a88610a8360c08a018a61503c565b613373565b6002811115610a9957610a99614a78565b90526001546040517f8bef45dc00000000000000000000000000000000000000000000000000000000815291925060009173ffffffffffffffffffffffffffffffffffffffff90911690638bef45dc90610af79085906004016150a1565b602060405180830381865afa158015610b14573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b389190615115565b90508267ffffffffffffffff168167ffffffffffffffff1614610dbf5760408051600180825281830190925290816020015b604080518082019091526000815260606020820152815260200190600190039081610b6a5790505094508267ffffffffffffffff168167ffffffffffffffff161015610c8c576040518060400160405280610c01610bfc8487610bcd9190615161565b67ffffffffffffffff167f00000000000000000000000000000000000000000000000000000000000000000290565b61339c565b610c2b907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff615182565b81526020016040518060400160405280600c81526020017f70726f746f636f6c20666565000000000000000000000000000000000000000081525081525085600081518110610c7c57610c7c6151ce565b6020026020010181905250610dbf565b8267ffffffffffffffff168167ffffffffffffffff161115610dbf576000610cb48483615161565b9050610cc08282613452565b909250905067ffffffffffffffff80851690831603610d1f576040805160008082526020820190925290610d17565b604080518082019091526000815260606020820152815260200190600190039081610cef5790505b509550610dbd565b6040518060400160405280610d60610bfc8467ffffffffffffffff167f00000000000000000000000000000000000000000000000000000000000000000290565b81526020016040518060400160405280600681526020017f726577617264000000000000000000000000000000000000000000000000000081525081525086600081518110610db157610db16151ce565b60200260200101819052505b505b7f000000000000000000000000000000000000000000000000000000000000000067ffffffffffffffff9384168102855292169091026020830152509193909250565b60025473ffffffffffffffffffffffffffffffffffffffff16338114610e54576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000063ffffffff168463ffffffff1603610eb9576040517f20db826700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b63ffffffff8085166000908152600660205260409020610edd91859085906134a716565b50505050565b60015474010000000000000000000000000000000000000000900460ff167ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd8101610f5a576040517f9e87fac800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe60ff821601610fb6576040517f37ed32e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff167402000000000000000000000000000000000000000017905560035473ffffffffffffffffffffffffffffffffffffffff16338114611047576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b61105484806151fd565b905081101561134157600061109461106f60208701876151fd565b8481811061107f5761107f6151ce565b9050602002016020810190610bcd9190615265565b905060006110a286806151fd565b848181106110b2576110b26151ce565b90506020020160208101906110c79190614d4d565b905060006110d58284613582565b90506000841580156110f5575060006110f160408a018a61503c565b9050115b90506060811561116a5761116761111260608d0160408e01615265565b61111f60208e018e614c45565b8761112d60408e018e61503c565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506135bc92505050565b90505b821561128b578115611222576040517f7cb5901200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001690637cb59012906111ef9087908e906000908790600401615282565b600060405180830381600087803b15801561120957600080fd5b505af115801561121d573d6000803e3d6000fd5b505050505b73ffffffffffffffffffffffffffffffffffffffff84168a7fefed6d3500546b29533b128a29e3a94d70788727f0507505ac12eaf2e578fd9c61126860208f018f614c45565b6040805163ffffffff9092168252602082018a90520160405180910390a3611330565b60008486836040516020016112a2939291906152cb565b604051602081830303815290604052905060008790508180519060200120600760008e815260200190815260200160002060008360ff1660ff168152602001908152602001600020819055507f42e761644de1c09cad6f50cad887ede9eadceeff60a2861104c04832577f13d88c82888a8760405161132595949392919061531d565b60405180910390a150505b50506001909301925061104a915050565b5050600180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff167401000000000000000000000000000000000000000017905550505050565b60025473ffffffffffffffffffffffffffffffffffffffff163381146113da576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60015474010000000000000000000000000000000000000000900460ff167ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd8101611451576040517f9e87fac800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe60ff8216016114ad576040517f37ed32e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff167402000000000000000000000000000000000000000017905560005b838110156115a7573685858381811061150a5761150a6151ce565b9050604002019050600061156382602001602081019061152a9190615265565b6006600061153b6020870187614c45565b63ffffffff1663ffffffff1681526020019081526020016000206135ee90919063ffffffff16565b9050801561159d576040517f20db826700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50506001016114ef565b506003546040517fe53635fb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9091169063e53635fb9034906116049089908990899060040161536c565b6000604051808303818588803b15801561161d57600080fd5b505af1158015611631573d6000803e3d6000fd5b50505050507fce105e156370093e6600169f7c01277f740d45fbcf95435227ce6f43ad0c3abd8585856040516116699392919061536c565b60405180910390a15050600180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674010000000000000000000000000000000000000000179055505050565b60055473ffffffffffffffffffffffffffffffffffffffff16338114611709576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611712826136b7565b600061171e3384613708565b905080600160158282829054906101000a900467ffffffffffffffff1661174591906153df565b92506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550505050565b60408051808201909152600080825260208201526000611796610a8360c086018661503c565b905060008160028111156117ac576117ac614a78565b036117eb576117e4600660006117c56020880188614c45565b63ffffffff1663ffffffff168152602001908152602001600020613713565b82526119ab565b366000600183600281111561180257611802614a78565b146118195761181460c087018761503c565b611834565b61182660c087018761503c565b611834916000918291615400565b9150915060006118478760400135613333565b9050600184600281111561185d5761185d614a78565b148015611872575067ffffffffffffffff8116155b156118a9576040517f2c5211c600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60035473ffffffffffffffffffffffffffffffffffffffff166315907efa6118d389848787613747565b886040518363ffffffff1660e01b81526004016118f19291906154a0565b6040805180830381865afa15801561190d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119319190615544565b9450600284600281111561194757611947614a78565b036119a757600061198060068261196160208c018c614c45565b63ffffffff1663ffffffff168152602001908152602001600020613872565b905080866000015111156119a057855161199b908290615560565b6119a3565b60005b8652505b5050505b5092915050565b6119ba6138ab565b7f000000000000000000000000000000000000000000000000000000000000000063ffffffff168263ffffffff1603611a1f576040517f20db826700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b63ffffffff8083166000908152600660205260409020611a4191839061392c16565b5050565b60015460009074010000000000000000000000000000000000000000900460ff167ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd8101611abf576040517f9e87fac800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe60ff821601611b1b576040517f37ed32e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674020000000000000000000000000000000000000000179055611b63836136b7565b6000611b6f3385613708565b90507f000000000000000000000000000000000000000000000000000000000000000067ffffffffffffffff8216026040517f40c10f1900000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8781166004830152602482018390529194507f0000000000000000000000000000000000000000000000000000000000000000909116906340c10f1990604401600060405180830381600087803b158015611c3357600080fd5b505af1158015611c47573d6000803e3d6000fd5b50505063ffffffff7f000000000000000000000000000000000000000000000000000000000000000081166000908152600660205260409020611c8e9250908390613a2216565b60405183815273ffffffffffffffffffffffffffffffffffffffff86169033907f8752a472e571a816aea92eec8dae9baf628e840f4929fbcc2d155e6233ff68a7906020015b60405180910390a35050600180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff167401000000000000000000000000000000000000000017905592915050565b63ffffffff7f00000000000000000000000000000000000000000000000000000000000000001660009081526006602052604081205467ffffffffffffffff167f00000000000000000000000000000000000000000000000000000000000000000273ffffffffffffffffffffffffffffffffffffffff8316611da857809150611e72565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff84811660048301526000917f0000000000000000000000000000000000000000000000000000000000000000909116906370a0823190602401602060405180830381865afa158015611e39573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e5d9190615573565b9050808211611e6c5781611e6e565b805b9250505b50919050565b6040805180820182526000808252602082015260035491517f643363da000000000000000000000000000000000000000000000000000000008152909173ffffffffffffffffffffffffffffffffffffffff169063643363da90611ee49087908790879060040161536c565b6040805180830381865afa158015611f00573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f249190615544565b949350505050565b60015474010000000000000000000000000000000000000000900460ff167ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd8101611fa3576040517f9e87fac800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe60ff821601611fff576040517f37ed32e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff167402000000000000000000000000000000000000000017905560035473ffffffffffffffffffffffffffffffffffffffff16338114612090576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b8381101561210e57368585838181106120ae576120ae6151ce565b90506040020190506121058160200160208101906120cc9190615265565b600660006120dd6020860186614c45565b63ffffffff1663ffffffff168152602001908152602001600020613a2290919063ffffffff16565b50600101612093565b507f10c5f2b007767d266c6c75c86ae9ed0c74e6320b30bda231af7396a990e7263c8585856040516116699392919061536c565b61214a6138ab565b6121546000613b01565b565b60015460009074010000000000000000000000000000000000000000900460ff167ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd81016121d0576040517f9e87fac800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe60ff82160161222c576040517f37ed32e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674020000000000000000000000000000000000000000179055600061227685613333565b63ffffffff7f0000000000000000000000000000000000000000000000000000000000000000811660009081526006602052604090209192506122bc91908390613b7616565b90507f000000000000000000000000000000000000000000000000000000000000000067ffffffffffffffff8216026040517f79cc6790000000000000000000000000000000000000000000000000000000008152336004820152602481018290529093507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906379cc679090604401600060405180830381600087803b15801561237c57600080fd5b505af1158015612390573d6000803e3d6000fd5b5050505061239e8484613bac565b60405183815273ffffffffffffffffffffffffffffffffffffffff85169033907f27d4634c833b7622a0acddbf7f746183625f105945e95c723ad1d5a9f2a0b6fc90602001611cd4565b60015474010000000000000000000000000000000000000000900460ff167ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd810161245f576040517f9e87fac800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe60ff8216016124bb576040517f37ed32e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff167402000000000000000000000000000000000000000017905560405160009061251490879087908790879060200161558c565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152918152815160209283012060008b81526007845282812060ff8c168252909352912054909150811461259d576040517f60b0b56900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600088815260076020908152604080832060ff8b1684529091528120556125c48686613bac565b8215612678576040517f7cb5901200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001690637cb59012906126459089908c906000908a908a906004016155d2565b600060405180830381600087803b15801561265f57600080fd5b505af1158015612673573d6000803e3d6000fd5b505050505b6040805163ffffffff7f00000000000000000000000000000000000000000000000000000000000000001681526020810187905273ffffffffffffffffffffffffffffffffffffffff8816918a917fefed6d3500546b29533b128a29e3a94d70788727f0507505ac12eaf2e578fd9c910160405180910390a35050600180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674010000000000000000000000000000000000000000179055505050505050565b6127426148c4565b60015460009074010000000000000000000000000000000000000000900460ff167ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd81016127bc576040517f9e87fac800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe60ff821601612818576040517f37ed32e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff167402000000000000000000000000000000000000000017905560006128666040880135613333565b905060007f000000000000000000000000000000000000000000000000000000000000000067ffffffffffffffff8316026040517f79cc6790000000000000000000000000000000000000000000000000000000008152336004820152602481018290529091507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906379cc679090604401600060405180830381600087803b15801561292857600080fd5b505af115801561293c573d6000803e3d6000fd5b5050604051838152600092503391507f27d4634c833b7622a0acddbf7f746183625f105945e95c723ad1d5a9f2a0b6fc9060200160405180910390a36000806129a061298b60208c018c614c45565b856129998d60600135613333565b6001613c46565b90925090506129bc6129b560208c018c614c45565b8383613ecb565b60006129d76129d0368c90038c018c61564e565b6000613f40565b905060006129e58c85613fbd565b9050600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16639d21be23836000015183858e6040518563ffffffff1660e01b8152600401612a4b93929190615680565b60806040518083038185885af1158015612a69573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190612a8e91906156d0565b98507f000000000000000000000000000000000000000000000000000000000000000067ffffffffffffffff85160297503373ffffffffffffffffffffffffffffffffffffffff1689600001517f85496b760a4b7f8d66384b9df21b381f5d1b1e79f229a47aaf4c232edc2fe59a8e6000016020810190612b0f9190614c45565b6040805163ffffffff9092168252602082018a905281018c905260600160405180910390a35050600180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000001790555094989397509295505050505050565b60025473ffffffffffffffffffffffffffffffffffffffff16338114612bd7576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81612be3576001612be6565b60035b600160146101000a81548160ff021916908360ff1602179055505050565b612c0c6148c4565b604080518082019091526000808252602082015260015474010000000000000000000000000000000000000000900460ff167ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd8101612c97576040517f9e87fac800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe60ff821601612cf3576040517f37ed32e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740200000000000000000000000000000000000000001790556000612d44610a8360c089018961503c565b9050600080612d538984614067565b915091506040518060400160405280612d958467ffffffffffffffff167f00000000000000000000000000000000000000000000000000000000000000000290565b81526020017f000000000000000000000000000000000000000000000000000000000000000067ffffffffffffffff841602905294506000612de6612ddf368b90038b018b61564e565b8751613f40565b9050612df5848b83858c6140f1565b805190975033907f85496b760a4b7f8d66384b9df21b381f5d1b1e79f229a47aaf4c232edc2fe59a612e2a60208e018e614c45565b89516020808c01516040805163ffffffff90951685529184019290925282015260600160405180910390a35050600180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674010000000000000000000000000000000000000000179055509296919550909350505050565b60055473ffffffffffffffffffffffffffffffffffffffff16338114612ef6576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600160158282829054906101000a900467ffffffffffffffff16612f1b9190615161565b92506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550612f7d83612f788467ffffffffffffffff167f00000000000000000000000000000000000000000000000000000000000000000290565b613bac565b505050565b604080518082019091526000808252602082015260035473ffffffffffffffffffffffffffffffffffffffff166315907efa612fcb612fc46040870135613333565b8690613fbd565b846040518363ffffffff1660e01b8152600401612fe99291906154a0565b6040805180830381865afa158015613005573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130299190615544565b9392505050565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561309d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130c19190615573565b905090565b6130ce6138ab565b73ffffffffffffffffffffffffffffffffffffffff8116613176576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b61317f81613b01565b50565b61318a6138ab565b6131976020820182614d4d565b600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff929092169190911790556131ec6040820160208301614d4d565b600280547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff929092169190911790556132416060820160408301614d4d565b600580547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff929092169190911790556132966080820160608301614d4d565b600380547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff929092169190911790556132eb60a0820160808301614d4d565b600480547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9290921691909117905550565b600061336d7f000000000000000000000000000000000000000000000000000000000000000083816133675761336761575f565b04614369565b92915050565b6000818015613392578060011461338b576002611f24565b6000611f24565b6001949350505050565b60007f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82111561344e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f53616665436173743a2076616c756520646f65736e27742066697420696e206160448201527f6e20696e74323536000000000000000000000000000000000000000000000000606482015260840161316d565b5090565b600154600090819067ffffffffffffffff75010000000000000000000000000000000000000000009091048116908416811015613498578084860301925080915061349f565b8492508391505b509250929050565b6134b3600160ff61578e565b60ff168260ff1611156134f2576040517f2c5211c600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b825464ffffffffff909116760100000000000000000000000000000000000000000000027fffffffffff0000000000ffffffffffffffffffffffffffffffffffffffffffff60ff909316750100000000000000000000000000000000000000000002929092167fffffffffff000000000000ffffffffffffffffffffffffffffffffffffffffff90911617179055565b60405160009073ffffffffffffffffffffffffffffffffffffffff84169083156108fc0290849084818181858888f1979650505050505050565b6060848484846040516020016135d594939291906157a7565b6040516020818303038152906040529050949350505050565b815460009067ffffffffffffffff167fffffffffffffffffffffffffffffffffffffffffffffffff0000000000000001810161362e57600191505061336d565b8267ffffffffffffffff168167ffffffffffffffff16101561367c576040517f8ac4bc7300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b83547fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000001692900367ffffffffffffffff169190911790915590565b34811415806136d157506136cd610bcd82613333565b8114155b1561317f576040517f2c5211c600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061302982613333565b805460009061336d90760100000000000000000000000000000000000000000000900464ffffffffff16633b9aca00615825565b6040805160c081018252600080825260208083018290529282015260608082018190526080820181905260a08201529061378390860186614c45565b63ffffffff1681526020808601358183015267ffffffffffffffff85166040808401919091528051601f850183900483028101830190915283815290849084908190840183828082843760009201919091525050505060608201526137eb608086018661503c565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250505050608082015261383160a086018661503c565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050505060a0820152949350505050565b805460009061336d907b01000000000000000000000000000000000000000000000000000000900464ffffffffff16633b9aca00615825565b60005473ffffffffffffffffffffffffffffffffffffffff163314612154576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161316d565b815467ffffffffffffffff1681156139b55767ffffffffffffffff811615613980576040517f6653f9fa00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b82547fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000001667ffffffffffffffff178355505050565b67ffffffffffffffff818116146139f8576040517f6653f9fa00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505080547fffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000169055565b815467ffffffffffffffff167fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000018101613a5a57505050565b613a6482826153df565b90507fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000167ffffffffffffffff821601613ac9576040517f2c5211c600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b82547fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000001667ffffffffffffffff919091161790915550565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b815460009067ffffffffffffffff9081169083168110613b965782613b98565b805b9150613ba484836135ee565b505092915050565b60008273ffffffffffffffffffffffffffffffffffffffff168260405160006040518083038185875af1925050503d8060008114613c06576040519150601f19603f3d011682016040523d82523d6000602084013e613c0b565b606091505b5050905080612f7d576040517f50355c4b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040805160a08101825233815263ffffffff8616602080830182905267ffffffffffffffff871683850152600091825260069052918220829182916060820190613c9b905467ffffffffffffffff9081161490565b15158152602001856002811115613cb457613cb4614a78565b90526001546040517ff0055f6800000000000000000000000000000000000000000000000000000000815291925073ffffffffffffffffffffffffffffffffffffffff169063f0055f6890613d0d9084906004016150a1565b6020604051808303816000875af1158015613d2c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613d509190615115565b92508467ffffffffffffffff168367ffffffffffffffff161080613d7c575067ffffffffffffffff8316155b15613db3576040517f850c6f7600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8567ffffffffffffffff168367ffffffffffffffff161015613e2c576001805467ffffffffffffffff75010000000000000000000000000000000000000000008083048216878b0301909116027fffffff0000000000000000ffffffffffffffffffffffffffffffffffffffffff909116179055613ec1565b8567ffffffffffffffff168367ffffffffffffffff161115613ec157613e5483878503613452565b909350915067ffffffffffffffff821615613ec1576001805467ffffffffffffffff75010000000000000000000000000000000000000000008083048216869003909116027fffffff0000000000000000ffffffffffffffffffffffffffffffffffffffffff9091161790555b5094509492505050565b63ffffffff8084166000908152600660205260409020613eed9184906135ee16565b5067ffffffffffffffff811615612f7d5763ffffffff7f000000000000000000000000000000000000000000000000000000000000000081166000908152600660205260409020612f7d918390613a2216565b60408051808201909152600080825260208201528251600090613f6490849061583c565b905080341015613fa0576040517f2c5211c600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80341115613fb557613fb28334615560565b84525b509192915050565b6040805160c081018252600080825260208083018290529282015260608082018190526080820181905260a082015290613ff990840184614c45565b63ffffffff1681526020808401359082015267ffffffffffffffff82166040820152614028608084018461503c565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250505050608082015292915050565b600080600283600281111561407e5761407e614a78565b14801561408d57506040840135155b1561409d575060009050806140ea565b6140ab338560400135613708565b91506140d16140bd6020860186614c45565b836140cb8760600135613333565b86613c46565b5090506140ea6140e46020860186614c45565b82614403565b9250929050565b6140f96148c4565b600086600281111561410d5761410d614a78565b036141ab57600061412160a087018761503c565b9050111561415b576040517ffff2a44000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061416a6020870187614c45565b855163ffffffff808316600090815260066020908152604090912093945061419d93928592918b01359189919061440e16565b508351604082015152614360565b3660006141bb60c088018861503c565b6141c9916000918291615400565b909250905060028860028111156141e2576141e2614a78565b0361424c576141f460c088018861503c565b909250905060006142086020890189614c45565b63ffffffff808216600090815260066020526040812092935091614232918490879087906146ab16565b90508088600001818151614246919061583c565b90525050505b67ffffffffffffffff85161580156142725750600061426e60a089018961503c565b9050115b156142a9576040517ffff2a44000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006142b788878585613747565b60035488516040517f9d21be2300000000000000000000000000000000000000000000000000000000815292935073ffffffffffffffffffffffffffffffffffffffff90911691639d21be2391906143179085908c908b90600401615680565b60806040518083038185885af1158015614335573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525081019061435a91906156d0565b93505050505b95945050505050565b600067ffffffffffffffff82111561344e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203660448201527f3420626974730000000000000000000000000000000000000000000000000000606482015260840161316d565b611a41828283613ecb565b61441785613713565b811461444f576040517fa6b5114a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b845460009061447a9074010000000000000000000000000000000000000000900460ff16600161584f565b865490915060ff750100000000000000000000000000000000000000000090910481169082168110156144d9576040517f2c8445c700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6145368760010154868660405160200161452292919091825260c01b7fffffffffffffffff00000000000000000000000000000000000000000000000016602082015260280190565b60405160208183030381529060405261478b565b6001880155614549633b9aca0084615868565b87548890601b906145819084907b01000000000000000000000000000000000000000000000000000000900464ffffffffff1661587c565b825464ffffffffff9182166101009390930a928302919092021990911617905550865460ff83167401000000000000000000000000000000000000000081027fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff9092169190911788556001036146335786547fffffffffffffffffffffffff0000000000000000ffffffffffffffffffffffff166c010000000000000000000000004367ffffffffffffffff16021787555b86546040805187815267ffffffffffffffff8716602082015260ff84811690861610159181019190915263ffffffff680100000000000000009092048216918816907f2ba3711d7ed816555ccc24291077c8f343976dd385eb17071e903af89247add69060600160405180910390a350505050505050565b60006146bc838387600101546147be565b6146c585613872565b600186810181905586547affffffffffff00ffffffffffffffffffffffffffffffffffffffff168088559192506801000000000000000090910463ffffffff169061471190829061589a565b86547fffffffffffffffffffffffffffffffffffffffff00000000ffffffffffffffff166801000000000000000063ffffffff9283168102919091178089556040519190048216918716907f66fd9e08891598169ebd39d73f80f03068e0092d6290cc537b7b023f462856ff90600090a350949350505050565b600082826040516020016147a09291906158b7565b60405160208183030381529060405280519060200120905092915050565b8115806147d457506147d16028836158dd565b15155b1561480b576040517f6950c09300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000805b838110156148845736600086838761482860288361583c565b95506148379286929190615400565b9150915061487b8483838080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061478b92505050565b9350505061480f565b8282146148bd576040517f6950c09300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050505050565b604051806060016040528060008019168152602001600067ffffffffffffffff168152602001614907604051806040016040528060008152602001600081525090565b905290565b600060e08284031215611e7257600080fd5b60006020828403121561493057600080fd5b813567ffffffffffffffff81111561494757600080fd5b611f248482850161490c565b60005b8381101561496e578181015183820152602001614956565b50506000910152565b6000815180845261498f816020860160208601614953565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b8351815260208085015190820152600060a08201604060a0604085015281865180845260c08601915060c08160051b8701019350602080890160005b83811015614a5a578887037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff40018552815180518852830151838801879052614a4787890182614977565b97505093820193908201906001016149fd565b50508751606088015250505060208501516080850152509050611f24565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6020810160028310614abb57614abb614a78565b91905290565b803563ffffffff81168114614ad557600080fd5b919050565b803560ff81168114614ad557600080fd5b600080600060608486031215614b0057600080fd5b614b0984614ac1565b9250614b1760208501614ada565b9150604084013564ffffffffff81168114614b3157600080fd5b809150509250925092565b600060608284031215611e7257600080fd5b600080600060a08486031215614b6357600080fd5b614b6d8585614b3c565b925060608401359150608084013567ffffffffffffffff811115614b9057600080fd5b614b9c86828701614b3c565b9150509250925092565b600080600060408486031215614bbb57600080fd5b614bc484614ac1565b9250602084013567ffffffffffffffff80821115614be157600080fd5b818601915086601f830112614bf557600080fd5b813581811115614c0457600080fd5b8760208260061b8501011115614c1957600080fd5b6020830194508093505050509250925092565b600060208284031215614c3e57600080fd5b5035919050565b600060208284031215614c5757600080fd5b61302982614ac1565b80358015158114614ad557600080fd5b60008060408385031215614c8357600080fd5b823567ffffffffffffffff811115614c9a57600080fd5b614ca68582860161490c565b925050614cb560208401614c60565b90509250929050565b81518152602080830151908201526040810161336d565b60008060408385031215614ce857600080fd5b614cf183614ac1565b9150614cb560208401614c60565b803573ffffffffffffffffffffffffffffffffffffffff81168114614ad557600080fd5b60008060408385031215614d3657600080fd5b614d3f83614cff565b946020939093013593505050565b600060208284031215614d5f57600080fd5b61302982614cff565b60008060408385031215614d7b57600080fd5b82359150614cb560208401614cff565b60008060008060008060a08789031215614da457600080fd5b86359550614db460208801614ada565b9450614dc260408801614cff565b935060608701359250608087013567ffffffffffffffff80821115614de657600080fd5b818901915089601f830112614dfa57600080fd5b813581811115614e0957600080fd5b8a6020828501011115614e1b57600080fd5b6020830194508093505050509295509295509295565b600060a08284031215611e7257600080fd5b600060408284031215611e7257600080fd5b600080600060808486031215614e6a57600080fd5b833567ffffffffffffffff811115614e8157600080fd5b614e8d86828701614e31565b935050614e9d8560208601614e43565b9150614eab60608501614cff565b90509250925092565b8051825267ffffffffffffffff60208201511660208301526040810151612f7d604084018280518252602090810151910152565b60a08101614ef68285614eb4565b8260808301529392505050565b600060208284031215614f1557600080fd5b61302982614c60565b600080600060808486031215614f3357600080fd5b833567ffffffffffffffff811115614f4a57600080fd5b614e8d8682870161490c565b60c08101614f648285614eb4565b82516080830152602083015160a0830152613029565b67ffffffffffffffff8116811461317f57600080fd5b60008060408385031215614fa357600080fd5b614fac83614cff565b91506020830135614fbc81614f7a565b809150509250929050565b60008060408385031215614fda57600080fd5b82359150614cb560208401614ada565b60008060408385031215614ffd57600080fd5b823567ffffffffffffffff81111561501457600080fd5b614ca685828601614e31565b600060a0828403121561503257600080fd5b6130298383614e31565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe184360301811261507157600080fd5b83018035915067ffffffffffffffff82111561508c57600080fd5b6020019150368190038213156140ea57600080fd5b600060a08201905073ffffffffffffffffffffffffffffffffffffffff835116825263ffffffff602084015116602083015267ffffffffffffffff604084015116604083015260608301511515606083015260808301516003811061510857615108614a78565b8060808401525092915050565b60006020828403121561512757600080fd5b815161302981614f7a565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b67ffffffffffffffff8281168282160390808211156119ab576119ab615132565b808202600082127f8000000000000000000000000000000000000000000000000000000000000000841416156151ba576151ba615132565b818105831482151761336d5761336d615132565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe184360301811261523257600080fd5b83018035915067ffffffffffffffff82111561524d57600080fd5b6020019150600581901b36038213156140ea57600080fd5b60006020828403121561527757600080fd5b813561302981614f7a565b73ffffffffffffffffffffffffffffffffffffffff8516815283602082015261ffff831660408201526080606082015260006152c16080830184614977565b9695505050505050565b7fffffffffffffffffffffffffffffffffffffffff0000000000000000000000008460601b1681528260148201526000825161530e816034850160208701614953565b91909101603401949350505050565b85815260ff8516602082015273ffffffffffffffffffffffffffffffffffffffff8416604082015282606082015260a06080820152600061536160a0830184614977565b979650505050505050565b63ffffffff848116825260406020808401829052838201859052600092869160608601855b888110156153d157836153a386614ac1565b168252828501356153b381614f7a565b67ffffffffffffffff16828401529385019390850190600101615391565b509998505050505050505050565b67ffffffffffffffff8181168382160190808211156119ab576119ab615132565b6000808585111561541057600080fd5b8386111561541d57600080fd5b5050820193919092039150565b63ffffffff81511682526020810151602083015267ffffffffffffffff60408201511660408301526000606082015160c0606085015261546d60c0850182614977565b9050608083015184820360808601526154868282614977565b91505060a083015184820360a08601526143608282614977565b6040815260006154b3604083018561542a565b905082151560208301529392505050565b6040805190810167ffffffffffffffff8111828210171561550e577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405290565b60006040828403121561552657600080fd5b61552e6154c4565b9050815181526020820151602082015292915050565b60006040828403121561555657600080fd5b6130298383615514565b8181038181111561336d5761336d615132565b60006020828403121561558557600080fd5b5051919050565b7fffffffffffffffffffffffffffffffffffffffff0000000000000000000000008560601b16815283601482015281836034830137600091016034019081529392505050565b73ffffffffffffffffffffffffffffffffffffffff8616815284602082015261ffff8416604082015260806060820152816080820152818360a0830137600081830160a090810191909152601f9092017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0160101949350505050565b60006040828403121561566057600080fd5b6156686154c4565b82358152602083013560208201528091505092915050565b608081526000615693608083018661542a565b90506156ac602083018580518252602090810151910152565b73ffffffffffffffffffffffffffffffffffffffff83166060830152949350505050565b6000608082840312156156e257600080fd5b6040516060810181811067ffffffffffffffff8211171561572c577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405282518152602083015161574181614f7a565b60208201526157538460408501615514565b60408201529392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60ff828116828216039081111561336d5761336d615132565b7fffffffffffffffff0000000000000000000000000000000000000000000000008560c01b1681527fffffffff000000000000000000000000000000000000000000000000000000008460e01b16600882015282600c8201526000825161581581602c850160208701614953565b91909101602c0195945050505050565b808202811582820484141761336d5761336d615132565b8082018082111561336d5761336d615132565b60ff818116838216019081111561336d5761336d615132565b6000826158775761587761575f565b500490565b64ffffffffff8181168382160190808211156119ab576119ab615132565b63ffffffff8181168382160190808211156119ab576119ab615132565b828152600082516158cf816020850160208701614953565b919091016020019392505050565b6000826158ec576158ec61575f565b50069056fea2646970667358221220b5f1dfad2c42b714c3cf7e38add3d89d8acb63fc6c928d53a06f362eccde59f564736f6c634300081600336101a06040523480156200001257600080fd5b5060405162001f1a38038062001f1a83398101604081905262000035916200029e565b338380604051806040016040528060018152602001603160f81b81525086868160039081620000659190620003b4565b506004620000748282620003b4565b5062000086915083905060056200014c565b61012052620000978160066200014c565b61014052815160208084019190912060e052815190820120610100524660a0526200012560e05161010051604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201529081019290925260608201524660808201523060a082015260009060c00160405160208183030381529060405280519060200120905090565b60805250503060c052506001600160a01b03166101605260ff166101805250620004da9050565b60006020835110156200016c57620001648362000185565b90506200017f565b81620001798482620003b4565b5060ff90505b92915050565b600080829050601f81511115620001bc578260405163305a27a960e01b8152600401620001b3919062000480565b60405180910390fd5b8051620001c982620004b5565b179392505050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101562000204578181015183820152602001620001ea565b50506000910152565b600082601f8301126200021f57600080fd5b81516001600160401b03808211156200023c576200023c620001d1565b604051601f8301601f19908116603f01168101908282118183101715620002675762000267620001d1565b816040528381528660208588010111156200028157600080fd5b62000294846020830160208901620001e7565b9695505050505050565b600080600060608486031215620002b457600080fd5b83516001600160401b0380821115620002cc57600080fd5b620002da878388016200020d565b94506020860151915080821115620002f157600080fd5b5062000300868287016200020d565b925050604084015160ff811681146200031857600080fd5b809150509250925092565b600181811c908216806200033857607f821691505b6020821081036200035957634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620003af576000816000526020600020601f850160051c810160208610156200038a5750805b601f850160051c820191505b81811015620003ab5782815560010162000396565b5050505b505050565b81516001600160401b03811115620003d057620003d0620001d1565b620003e881620003e1845462000323565b846200035f565b602080601f831160018114620004205760008415620004075750858301515b600019600386901b1c1916600185901b178555620003ab565b600085815260208120601f198616915b82811015620004515788860151825594840194600190910190840162000430565b5085821015620004705787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6020815260008251806020840152620004a1816040850160208701620001e7565b601f01601f19169190910160400192915050565b80516020808301519190811015620003595760001960209190910360031b1b16919050565b60805160a05160c05160e05161010051610120516101405161016051610180516119c16200055960003960006101a80152600081816102070152818161048f015261050c015260006105d1015260006105a601526000610ed001526000610ea801526000610e0301526000610e2d01526000610e5701526119c16000f3fe608060405234801561001057600080fd5b50600436106101365760003560e01c806370a08231116100b257806395d89b4111610081578063a9059cbb11610066578063a9059cbb146102e0578063d505accf146102f3578063dd62ed3e1461030657600080fd5b806395d89b41146102c5578063a457c2d7146102cd57600080fd5b806370a082311461024e57806379cc6790146102845780637ecebe001461029757806384b0196e146102aa57600080fd5b8063313ce5671161010957806339509351116100ee57806339509351146101da57806340c10f19146101ed5780636c099dee1461020257600080fd5b8063313ce567146101a15780633644e515146101d257600080fd5b806306fdde031461013b578063095ea7b31461015957806318160ddd1461017c57806323b872dd1461018e575b600080fd5b61014361034c565b60405161015091906116a9565b60405180910390f35b61016c6101673660046116ec565b6103de565b6040519015158152602001610150565b6002545b604051908152602001610150565b61016c61019c366004611716565b6103f8565b60405160ff7f0000000000000000000000000000000000000000000000000000000000000000168152602001610150565b61018061041c565b61016c6101e83660046116ec565b61042b565b6102006101fb3660046116ec565b610477565b005b6102297f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610150565b61018061025c366004611752565b73ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090205490565b6102006102923660046116ec565b6104f4565b6101806102a5366004611752565b61056d565b6102b2610598565b604051610150979695949392919061176d565b61014361063d565b61016c6102db3660046116ec565b61064c565b61016c6102ee3660046116ec565b610722565b61020061030136600461182f565b610730565b6101806103143660046118a2565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260016020908152604080832093909416825291909152205490565b60606003805461035b906118d5565b80601f0160208091040260200160405190810160405280929190818152602001828054610387906118d5565b80156103d45780601f106103a9576101008083540402835291602001916103d4565b820191906000526020600020905b8154815290600101906020018083116103b757829003601f168201915b5050505050905090565b6000336103ec8185856108ef565b60019150505b92915050565b600033610406858285610aa3565b610411858585610b7a565b506001949350505050565b6000610426610de9565b905090565b33600081815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff871684529091528120549091906103ec9082908690610472908790611922565b6108ef565b3373ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016146104e6576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6104f08282610f21565b5050565b3373ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001614610563576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6104f08282611014565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600760205260408120546103f2565b6000606080828080836105cc7f000000000000000000000000000000000000000000000000000000000000000060056111d0565b6105f77f000000000000000000000000000000000000000000000000000000000000000060066111d0565b604080516000808252602082019092527f0f000000000000000000000000000000000000000000000000000000000000009b939a50919850469750309650945092509050565b60606004805461035b906118d5565b33600081815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff8716845290915281205490919083811015610715576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f00000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b61041182868684036108ef565b6000336103ec818585610b7a565b8342111561079a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e65000000604482015260640161070c565b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98888886107c98c61127b565b60408051602081019690965273ffffffffffffffffffffffffffffffffffffffff94851690860152929091166060840152608083015260a082015260c0810186905260e0016040516020818303038152906040528051906020012090506000610831826112b0565b90506000610841828787876112f8565b90508973ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146108d8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e61747572650000604482015260640161070c565b6108e38a8a8a6108ef565b50505050505050505050565b73ffffffffffffffffffffffffffffffffffffffff8316610991576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f7265737300000000000000000000000000000000000000000000000000000000606482015260840161070c565b73ffffffffffffffffffffffffffffffffffffffff8216610a34576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f7373000000000000000000000000000000000000000000000000000000000000606482015260840161070c565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b73ffffffffffffffffffffffffffffffffffffffff8381166000908152600160209081526040808320938616835292905220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114610b745781811015610b67576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161070c565b610b7484848484036108ef565b50505050565b73ffffffffffffffffffffffffffffffffffffffff8316610c1d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f6472657373000000000000000000000000000000000000000000000000000000606482015260840161070c565b73ffffffffffffffffffffffffffffffffffffffff8216610cc0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f6573730000000000000000000000000000000000000000000000000000000000606482015260840161070c565b73ffffffffffffffffffffffffffffffffffffffff831660009081526020819052604090205481811015610d76576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e63650000000000000000000000000000000000000000000000000000606482015260840161070c565b73ffffffffffffffffffffffffffffffffffffffff848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610b74565b60003073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016148015610e4f57507f000000000000000000000000000000000000000000000000000000000000000046145b15610e7957507f000000000000000000000000000000000000000000000000000000000000000090565b610426604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201527f0000000000000000000000000000000000000000000000000000000000000000918101919091527f000000000000000000000000000000000000000000000000000000000000000060608201524660808201523060a082015260009060c00160405160208183030381529060405280519060200120905090565b73ffffffffffffffffffffffffffffffffffffffff8216610f9e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161070c565b8060026000828254610fb09190611922565b909155505073ffffffffffffffffffffffffffffffffffffffff8216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b73ffffffffffffffffffffffffffffffffffffffff82166110b7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f7300000000000000000000000000000000000000000000000000000000000000606482015260840161070c565b73ffffffffffffffffffffffffffffffffffffffff82166000908152602081905260409020548181101561116d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f6365000000000000000000000000000000000000000000000000000000000000606482015260840161070c565b73ffffffffffffffffffffffffffffffffffffffff83166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9101610a96565b606060ff83146111ea576111e383611320565b90506103f2565b8180546111f6906118d5565b80601f0160208091040260200160405190810160405280929190818152602001828054611222906118d5565b801561126f5780601f106112445761010080835404028352916020019161126f565b820191906000526020600020905b81548152906001019060200180831161125257829003601f168201915b505050505090506103f2565b73ffffffffffffffffffffffffffffffffffffffff811660009081526007602052604090208054600181018255905b50919050565b60006103f26112bd610de9565b836040517f19010000000000000000000000000000000000000000000000000000000000008152600281019290925260228201526042902090565b60008060006113098787878761135f565b915091506113168161144e565b5095945050505050565b6060600061132d83611604565b604080516020808252818301909252919250600091906020820181803683375050509182525060208101929092525090565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156113965750600090506003611445565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156113ea573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff811661143e57600060019250925050611445565b9150600090505b94509492505050565b60008160048111156114625761146261195c565b0361146a5750565b600181600481111561147e5761147e61195c565b036114e5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161070c565b60028160048111156114f9576114f961195c565b03611560576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161070c565b60038160048111156115745761157461195c565b03611601576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f7565000000000000000000000000000000000000000000000000000000000000606482015260840161070c565b50565b600060ff8216601f8111156103f2576040517fb3512b0c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000815180845260005b8181101561166b5760208185018101518683018201520161164f565b5060006020828601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011685010191505092915050565b6020815260006116bc6020830184611645565b9392505050565b803573ffffffffffffffffffffffffffffffffffffffff811681146116e757600080fd5b919050565b600080604083850312156116ff57600080fd5b611708836116c3565b946020939093013593505050565b60008060006060848603121561172b57600080fd5b611734846116c3565b9250611742602085016116c3565b9150604084013590509250925092565b60006020828403121561176457600080fd5b6116bc826116c3565b7fff00000000000000000000000000000000000000000000000000000000000000881681526000602060e060208401526117aa60e084018a611645565b83810360408501526117bc818a611645565b6060850189905273ffffffffffffffffffffffffffffffffffffffff8816608086015260a0850187905284810360c08601528551808252602080880193509091019060005b8181101561181d57835183529284019291840191600101611801565b50909c9b505050505050505050505050565b600080600080600080600060e0888a03121561184a57600080fd5b611853886116c3565b9650611861602089016116c3565b95506040880135945060608801359350608088013560ff8116811461188557600080fd5b9699959850939692959460a0840135945060c09093013592915050565b600080604083850312156118b557600080fd5b6118be836116c3565b91506118cc602084016116c3565b90509250929050565b600181811c908216806118e957607f821691505b6020821081036112aa577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b808201808211156103f2577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fdfea264697066735822122021808733bce62b9dc32f067a3b2e066be04d0c3e2e0e233d58632eff53fa7cef64736f6c63430008160033",
|
|
1623
|
+
"deployedBytecode": "0x6080604052600436106102195760003560e01c8063715018a61161011d578063c7c7f5b3116100b0578063ddb329461161007f578063f2fde38b11610064578063f2fde38b146108c7578063f7b3d501146108e7578063fc0c546a1461090757600080fd5b8063ddb3294614610892578063e5328e06146108b257600080fd5b8063c7c7f5b3146107c6578063c859c483146107e7578063cc32d17614610807578063d621ad3f1461085a57600080fd5b80639f68b964116100ec5780639f68b96414610749578063aa8871d514610765578063afe75f1314610785578063bedb86fb146107a657600080fd5b8063715018a6146106b55780637bde82f2146106ca578063857749b0146106ea5780638da5cb5b1461071e57600080fd5b8063341a4648116101b057806347e7ef241161017f5780635fcbd285116101645780635fcbd28514610621578063643363da146106755780636b75425a1461069557600080fd5b806347e7ef24146105e0578063484267a41461060157600080fd5b8063341a46481461043957806338da6b8e1461044c5780633b6f743b146105935780633faa12c5146105c057600080fd5b8063200d2ed2116101ec578063200d2ed2146102d55780632586ab79146103195780632708987a146103395780632bc5114c1461034c57600080fd5b80630d35b4151461021e578063156a0d0f1461025657806316909bca146102975780631d0da865146102b3575b600080fd5b34801561022a57600080fd5b5061023e61023936600461491e565b61093b565b60405161024d939291906149c1565b60405180910390f35b34801561026257600080fd5b50604080517f02e49c2c000000000000000000000000000000000000000000000000000000008152600060208201520161024d565b3480156102a357600080fd5b50600060405161024d9190614aa7565b3480156102bf57600080fd5b506102d36102ce366004614aeb565b610e02565b005b3480156102e157600080fd5b506001546103079074010000000000000000000000000000000000000000900460ff1681565b60405160ff909116815260200161024d565b34801561032557600080fd5b506102d3610334366004614b4e565b610ee3565b6102d3610347366004614ba6565b611388565b34801561035857600080fd5b506103dd6040805160a081018252600080825260208201819052918101829052606081018290526080810191909152506040805160a08101825260015473ffffffffffffffffffffffffffffffffffffffff90811682526002548116602083015260055481169282019290925260035482166060820152600454909116608082015290565b60405161024d9190815173ffffffffffffffffffffffffffffffffffffffff9081168252602080840151821690830152604080840151821690830152606080840151821690830152608092830151169181019190915260a00190565b6102d3610447366004614c2c565b6116b7565b34801561045857600080fd5b50610532610467366004614c45565b6006602052600090815260409020805460019091015467ffffffffffffffff8083169263ffffffff68010000000000000000820416926c0100000000000000000000000082049092169160ff740100000000000000000000000000000000000000008304811692750100000000000000000000000000000000000000000081049091169164ffffffffff76010000000000000000000000000000000000000000000083048116927b010000000000000000000000000000000000000000000000000000009004169088565b6040805167ffffffffffffffff998a16815263ffffffff989098166020890152959097169486019490945260ff92831660608601529116608084015264ffffffffff90811660a08401521660c082015260e08101919091526101000161024d565b34801561059f57600080fd5b506105b36105ae366004614c70565b611770565b60405161024d9190614cbe565b3480156105cc57600080fd5b506102d36105db366004614cd5565b6119b2565b6105f36105ee366004614d23565b611a45565b60405190815260200161024d565b34801561060d57600080fd5b506105f361061c366004614d4d565b611d23565b34801561062d57600080fd5b507f00000000000000000000000000000000000000000000000000000000000000005b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161024d565b34801561068157600080fd5b506105b3610690366004614ba6565b611e78565b3480156106a157600080fd5b506102d36106b0366004614ba6565b611f2c565b3480156106c157600080fd5b506102d3612142565b3480156106d657600080fd5b506105f36106e5366004614d68565b612156565b3480156106f657600080fd5b506103077f000000000000000000000000000000000000000000000000000000000000000081565b34801561072a57600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff16610650565b34801561075557600080fd5b506040516001815260200161024d565b34801561077157600080fd5b506102d3610780366004614d8b565b6123e8565b610798610793366004614e55565b61273a565b60405161024d929190614ee8565b3480156107b257600080fd5b506102d36107c1366004614f03565b612b85565b6107d96107d4366004614f1e565b612c04565b60405161024d929190614f56565b3480156107f357600080fd5b506102d3610802366004614f90565b612ea4565b34801561081357600080fd5b50600154610841907501000000000000000000000000000000000000000000900467ffffffffffffffff1681565b60405167ffffffffffffffff909116815260200161024d565b34801561086657600080fd5b506105f3610875366004614fc7565b600760209081526000928352604080842090915290825290205481565b34801561089e57600080fd5b506105b36108ad366004614fea565b612f82565b3480156108be57600080fd5b506105f3613030565b3480156108d357600080fd5b506102d36108e2366004614d4d565b6130c6565b3480156108f357600080fd5b506102d3610902366004615020565b613182565b34801561091357600080fd5b506106507f000000000000000000000000000000000000000000000000000000000000000081565b6040805180820190915260008082526020820152606061096e604051806040016040528060008152602001600081525090565b6109d2600660006109826020880188614c45565b63ffffffff16815260208101919091526040016000205467ffffffffffffffff1667ffffffffffffffff167f00000000000000000000000000000000000000000000000000000000000000000290565b602084015260006109e66040860135613333565b6040805160a08101909152338152909150600090602080820190610a0c90890189614c45565b63ffffffff1681526020018367ffffffffffffffff168152602001610a6c600660008a6000016020810190610a419190614c45565b63ffffffff1663ffffffff1681526020019081526020016000205467ffffffffffffffff9081161490565b15158152602001610a88610a8360c08a018a61503c565b613373565b6002811115610a9957610a99614a78565b90526001546040517f8bef45dc00000000000000000000000000000000000000000000000000000000815291925060009173ffffffffffffffffffffffffffffffffffffffff90911690638bef45dc90610af79085906004016150a1565b602060405180830381865afa158015610b14573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b389190615115565b90508267ffffffffffffffff168167ffffffffffffffff1614610dbf5760408051600180825281830190925290816020015b604080518082019091526000815260606020820152815260200190600190039081610b6a5790505094508267ffffffffffffffff168167ffffffffffffffff161015610c8c576040518060400160405280610c01610bfc8487610bcd9190615161565b67ffffffffffffffff167f00000000000000000000000000000000000000000000000000000000000000000290565b61339c565b610c2b907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff615182565b81526020016040518060400160405280600c81526020017f70726f746f636f6c20666565000000000000000000000000000000000000000081525081525085600081518110610c7c57610c7c6151ce565b6020026020010181905250610dbf565b8267ffffffffffffffff168167ffffffffffffffff161115610dbf576000610cb48483615161565b9050610cc08282613452565b909250905067ffffffffffffffff80851690831603610d1f576040805160008082526020820190925290610d17565b604080518082019091526000815260606020820152815260200190600190039081610cef5790505b509550610dbd565b6040518060400160405280610d60610bfc8467ffffffffffffffff167f00000000000000000000000000000000000000000000000000000000000000000290565b81526020016040518060400160405280600681526020017f726577617264000000000000000000000000000000000000000000000000000081525081525086600081518110610db157610db16151ce565b60200260200101819052505b505b7f000000000000000000000000000000000000000000000000000000000000000067ffffffffffffffff9384168102855292169091026020830152509193909250565b60025473ffffffffffffffffffffffffffffffffffffffff16338114610e54576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000063ffffffff168463ffffffff1603610eb9576040517f20db826700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b63ffffffff8085166000908152600660205260409020610edd91859085906134a716565b50505050565b60015474010000000000000000000000000000000000000000900460ff167ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd8101610f5a576040517f9e87fac800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe60ff821601610fb6576040517f37ed32e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff167402000000000000000000000000000000000000000017905560035473ffffffffffffffffffffffffffffffffffffffff16338114611047576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b61105484806151fd565b905081101561134157600061109461106f60208701876151fd565b8481811061107f5761107f6151ce565b9050602002016020810190610bcd9190615265565b905060006110a286806151fd565b848181106110b2576110b26151ce565b90506020020160208101906110c79190614d4d565b905060006110d58284613582565b90506000841580156110f5575060006110f160408a018a61503c565b9050115b90506060811561116a5761116761111260608d0160408e01615265565b61111f60208e018e614c45565b8761112d60408e018e61503c565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506135bc92505050565b90505b821561128b578115611222576040517f7cb5901200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001690637cb59012906111ef9087908e906000908790600401615282565b600060405180830381600087803b15801561120957600080fd5b505af115801561121d573d6000803e3d6000fd5b505050505b73ffffffffffffffffffffffffffffffffffffffff84168a7fefed6d3500546b29533b128a29e3a94d70788727f0507505ac12eaf2e578fd9c61126860208f018f614c45565b6040805163ffffffff9092168252602082018a90520160405180910390a3611330565b60008486836040516020016112a2939291906152cb565b604051602081830303815290604052905060008790508180519060200120600760008e815260200190815260200160002060008360ff1660ff168152602001908152602001600020819055507f42e761644de1c09cad6f50cad887ede9eadceeff60a2861104c04832577f13d88c82888a8760405161132595949392919061531d565b60405180910390a150505b50506001909301925061104a915050565b5050600180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff167401000000000000000000000000000000000000000017905550505050565b60025473ffffffffffffffffffffffffffffffffffffffff163381146113da576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60015474010000000000000000000000000000000000000000900460ff167ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd8101611451576040517f9e87fac800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe60ff8216016114ad576040517f37ed32e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff167402000000000000000000000000000000000000000017905560005b838110156115a7573685858381811061150a5761150a6151ce565b9050604002019050600061156382602001602081019061152a9190615265565b6006600061153b6020870187614c45565b63ffffffff1663ffffffff1681526020019081526020016000206135ee90919063ffffffff16565b9050801561159d576040517f20db826700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50506001016114ef565b506003546040517fe53635fb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9091169063e53635fb9034906116049089908990899060040161536c565b6000604051808303818588803b15801561161d57600080fd5b505af1158015611631573d6000803e3d6000fd5b50505050507fce105e156370093e6600169f7c01277f740d45fbcf95435227ce6f43ad0c3abd8585856040516116699392919061536c565b60405180910390a15050600180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674010000000000000000000000000000000000000000179055505050565b60055473ffffffffffffffffffffffffffffffffffffffff16338114611709576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611712826136b7565b600061171e3384613708565b905080600160158282829054906101000a900467ffffffffffffffff1661174591906153df565b92506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550505050565b60408051808201909152600080825260208201526000611796610a8360c086018661503c565b905060008160028111156117ac576117ac614a78565b036117eb576117e4600660006117c56020880188614c45565b63ffffffff1663ffffffff168152602001908152602001600020613713565b82526119ab565b366000600183600281111561180257611802614a78565b146118195761181460c087018761503c565b611834565b61182660c087018761503c565b611834916000918291615400565b9150915060006118478760400135613333565b9050600184600281111561185d5761185d614a78565b148015611872575067ffffffffffffffff8116155b156118a9576040517f2c5211c600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60035473ffffffffffffffffffffffffffffffffffffffff166315907efa6118d389848787613747565b886040518363ffffffff1660e01b81526004016118f19291906154a0565b6040805180830381865afa15801561190d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119319190615544565b9450600284600281111561194757611947614a78565b036119a757600061198060068261196160208c018c614c45565b63ffffffff1663ffffffff168152602001908152602001600020613872565b905080866000015111156119a057855161199b908290615560565b6119a3565b60005b8652505b5050505b5092915050565b6119ba6138ab565b7f000000000000000000000000000000000000000000000000000000000000000063ffffffff168263ffffffff1603611a1f576040517f20db826700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b63ffffffff8083166000908152600660205260409020611a4191839061392c16565b5050565b60015460009074010000000000000000000000000000000000000000900460ff167ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd8101611abf576040517f9e87fac800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe60ff821601611b1b576040517f37ed32e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674020000000000000000000000000000000000000000179055611b63836136b7565b6000611b6f3385613708565b90507f000000000000000000000000000000000000000000000000000000000000000067ffffffffffffffff8216026040517f40c10f1900000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8781166004830152602482018390529194507f0000000000000000000000000000000000000000000000000000000000000000909116906340c10f1990604401600060405180830381600087803b158015611c3357600080fd5b505af1158015611c47573d6000803e3d6000fd5b50505063ffffffff7f000000000000000000000000000000000000000000000000000000000000000081166000908152600660205260409020611c8e9250908390613a2216565b60405183815273ffffffffffffffffffffffffffffffffffffffff86169033907f8752a472e571a816aea92eec8dae9baf628e840f4929fbcc2d155e6233ff68a7906020015b60405180910390a35050600180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff167401000000000000000000000000000000000000000017905592915050565b63ffffffff7f00000000000000000000000000000000000000000000000000000000000000001660009081526006602052604081205467ffffffffffffffff167f00000000000000000000000000000000000000000000000000000000000000000273ffffffffffffffffffffffffffffffffffffffff8316611da857809150611e72565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff84811660048301526000917f0000000000000000000000000000000000000000000000000000000000000000909116906370a0823190602401602060405180830381865afa158015611e39573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e5d9190615573565b9050808211611e6c5781611e6e565b805b9250505b50919050565b6040805180820182526000808252602082015260035491517f643363da000000000000000000000000000000000000000000000000000000008152909173ffffffffffffffffffffffffffffffffffffffff169063643363da90611ee49087908790879060040161536c565b6040805180830381865afa158015611f00573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f249190615544565b949350505050565b60015474010000000000000000000000000000000000000000900460ff167ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd8101611fa3576040517f9e87fac800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe60ff821601611fff576040517f37ed32e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff167402000000000000000000000000000000000000000017905560035473ffffffffffffffffffffffffffffffffffffffff16338114612090576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b8381101561210e57368585838181106120ae576120ae6151ce565b90506040020190506121058160200160208101906120cc9190615265565b600660006120dd6020860186614c45565b63ffffffff1663ffffffff168152602001908152602001600020613a2290919063ffffffff16565b50600101612093565b507f10c5f2b007767d266c6c75c86ae9ed0c74e6320b30bda231af7396a990e7263c8585856040516116699392919061536c565b61214a6138ab565b6121546000613b01565b565b60015460009074010000000000000000000000000000000000000000900460ff167ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd81016121d0576040517f9e87fac800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe60ff82160161222c576040517f37ed32e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674020000000000000000000000000000000000000000179055600061227685613333565b63ffffffff7f0000000000000000000000000000000000000000000000000000000000000000811660009081526006602052604090209192506122bc91908390613b7616565b90507f000000000000000000000000000000000000000000000000000000000000000067ffffffffffffffff8216026040517f79cc6790000000000000000000000000000000000000000000000000000000008152336004820152602481018290529093507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906379cc679090604401600060405180830381600087803b15801561237c57600080fd5b505af1158015612390573d6000803e3d6000fd5b5050505061239e8484613bac565b60405183815273ffffffffffffffffffffffffffffffffffffffff85169033907f27d4634c833b7622a0acddbf7f746183625f105945e95c723ad1d5a9f2a0b6fc90602001611cd4565b60015474010000000000000000000000000000000000000000900460ff167ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd810161245f576040517f9e87fac800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe60ff8216016124bb576040517f37ed32e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff167402000000000000000000000000000000000000000017905560405160009061251490879087908790879060200161558c565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152918152815160209283012060008b81526007845282812060ff8c168252909352912054909150811461259d576040517f60b0b56900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600088815260076020908152604080832060ff8b1684529091528120556125c48686613bac565b8215612678576040517f7cb5901200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001690637cb59012906126459089908c906000908a908a906004016155d2565b600060405180830381600087803b15801561265f57600080fd5b505af1158015612673573d6000803e3d6000fd5b505050505b6040805163ffffffff7f00000000000000000000000000000000000000000000000000000000000000001681526020810187905273ffffffffffffffffffffffffffffffffffffffff8816918a917fefed6d3500546b29533b128a29e3a94d70788727f0507505ac12eaf2e578fd9c910160405180910390a35050600180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674010000000000000000000000000000000000000000179055505050505050565b6127426148c4565b60015460009074010000000000000000000000000000000000000000900460ff167ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd81016127bc576040517f9e87fac800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe60ff821601612818576040517f37ed32e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff167402000000000000000000000000000000000000000017905560006128666040880135613333565b905060007f000000000000000000000000000000000000000000000000000000000000000067ffffffffffffffff8316026040517f79cc6790000000000000000000000000000000000000000000000000000000008152336004820152602481018290529091507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906379cc679090604401600060405180830381600087803b15801561292857600080fd5b505af115801561293c573d6000803e3d6000fd5b5050604051838152600092503391507f27d4634c833b7622a0acddbf7f746183625f105945e95c723ad1d5a9f2a0b6fc9060200160405180910390a36000806129a061298b60208c018c614c45565b856129998d60600135613333565b6001613c46565b90925090506129bc6129b560208c018c614c45565b8383613ecb565b60006129d76129d0368c90038c018c61564e565b6000613f40565b905060006129e58c85613fbd565b9050600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16639d21be23836000015183858e6040518563ffffffff1660e01b8152600401612a4b93929190615680565b60806040518083038185885af1158015612a69573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190612a8e91906156d0565b98507f000000000000000000000000000000000000000000000000000000000000000067ffffffffffffffff85160297503373ffffffffffffffffffffffffffffffffffffffff1689600001517f85496b760a4b7f8d66384b9df21b381f5d1b1e79f229a47aaf4c232edc2fe59a8e6000016020810190612b0f9190614c45565b6040805163ffffffff9092168252602082018a905281018c905260600160405180910390a35050600180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000001790555094989397509295505050505050565b60025473ffffffffffffffffffffffffffffffffffffffff16338114612bd7576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81612be3576001612be6565b60035b600160146101000a81548160ff021916908360ff1602179055505050565b612c0c6148c4565b604080518082019091526000808252602082015260015474010000000000000000000000000000000000000000900460ff167ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd8101612c97576040517f9e87fac800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe60ff821601612cf3576040517f37ed32e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740200000000000000000000000000000000000000001790556000612d44610a8360c089018961503c565b9050600080612d538984614067565b915091506040518060400160405280612d958467ffffffffffffffff167f00000000000000000000000000000000000000000000000000000000000000000290565b81526020017f000000000000000000000000000000000000000000000000000000000000000067ffffffffffffffff841602905294506000612de6612ddf368b90038b018b61564e565b8751613f40565b9050612df5848b83858c6140f1565b805190975033907f85496b760a4b7f8d66384b9df21b381f5d1b1e79f229a47aaf4c232edc2fe59a612e2a60208e018e614c45565b89516020808c01516040805163ffffffff90951685529184019290925282015260600160405180910390a35050600180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674010000000000000000000000000000000000000000179055509296919550909350505050565b60055473ffffffffffffffffffffffffffffffffffffffff16338114612ef6576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600160158282829054906101000a900467ffffffffffffffff16612f1b9190615161565b92506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550612f7d83612f788467ffffffffffffffff167f00000000000000000000000000000000000000000000000000000000000000000290565b613bac565b505050565b604080518082019091526000808252602082015260035473ffffffffffffffffffffffffffffffffffffffff166315907efa612fcb612fc46040870135613333565b8690613fbd565b846040518363ffffffff1660e01b8152600401612fe99291906154a0565b6040805180830381865afa158015613005573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130299190615544565b9392505050565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561309d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130c19190615573565b905090565b6130ce6138ab565b73ffffffffffffffffffffffffffffffffffffffff8116613176576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b61317f81613b01565b50565b61318a6138ab565b6131976020820182614d4d565b600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff929092169190911790556131ec6040820160208301614d4d565b600280547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff929092169190911790556132416060820160408301614d4d565b600580547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff929092169190911790556132966080820160608301614d4d565b600380547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff929092169190911790556132eb60a0820160808301614d4d565b600480547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9290921691909117905550565b600061336d7f000000000000000000000000000000000000000000000000000000000000000083816133675761336761575f565b04614369565b92915050565b6000818015613392578060011461338b576002611f24565b6000611f24565b6001949350505050565b60007f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82111561344e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f53616665436173743a2076616c756520646f65736e27742066697420696e206160448201527f6e20696e74323536000000000000000000000000000000000000000000000000606482015260840161316d565b5090565b600154600090819067ffffffffffffffff75010000000000000000000000000000000000000000009091048116908416811015613498578084860301925080915061349f565b8492508391505b509250929050565b6134b3600160ff61578e565b60ff168260ff1611156134f2576040517f2c5211c600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b825464ffffffffff909116760100000000000000000000000000000000000000000000027fffffffffff0000000000ffffffffffffffffffffffffffffffffffffffffffff60ff909316750100000000000000000000000000000000000000000002929092167fffffffffff000000000000ffffffffffffffffffffffffffffffffffffffffff90911617179055565b60405160009073ffffffffffffffffffffffffffffffffffffffff84169083156108fc0290849084818181858888f1979650505050505050565b6060848484846040516020016135d594939291906157a7565b6040516020818303038152906040529050949350505050565b815460009067ffffffffffffffff167fffffffffffffffffffffffffffffffffffffffffffffffff0000000000000001810161362e57600191505061336d565b8267ffffffffffffffff168167ffffffffffffffff16101561367c576040517f8ac4bc7300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b83547fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000001692900367ffffffffffffffff169190911790915590565b34811415806136d157506136cd610bcd82613333565b8114155b1561317f576040517f2c5211c600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061302982613333565b805460009061336d90760100000000000000000000000000000000000000000000900464ffffffffff16633b9aca00615825565b6040805160c081018252600080825260208083018290529282015260608082018190526080820181905260a08201529061378390860186614c45565b63ffffffff1681526020808601358183015267ffffffffffffffff85166040808401919091528051601f850183900483028101830190915283815290849084908190840183828082843760009201919091525050505060608201526137eb608086018661503c565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250505050608082015261383160a086018661503c565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050505060a0820152949350505050565b805460009061336d907b01000000000000000000000000000000000000000000000000000000900464ffffffffff16633b9aca00615825565b60005473ffffffffffffffffffffffffffffffffffffffff163314612154576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161316d565b815467ffffffffffffffff1681156139b55767ffffffffffffffff811615613980576040517f6653f9fa00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b82547fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000001667ffffffffffffffff178355505050565b67ffffffffffffffff818116146139f8576040517f6653f9fa00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505080547fffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000169055565b815467ffffffffffffffff167fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000018101613a5a57505050565b613a6482826153df565b90507fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000167ffffffffffffffff821601613ac9576040517f2c5211c600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b82547fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000001667ffffffffffffffff919091161790915550565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b815460009067ffffffffffffffff9081169083168110613b965782613b98565b805b9150613ba484836135ee565b505092915050565b60008273ffffffffffffffffffffffffffffffffffffffff168260405160006040518083038185875af1925050503d8060008114613c06576040519150601f19603f3d011682016040523d82523d6000602084013e613c0b565b606091505b5050905080612f7d576040517f50355c4b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040805160a08101825233815263ffffffff8616602080830182905267ffffffffffffffff871683850152600091825260069052918220829182916060820190613c9b905467ffffffffffffffff9081161490565b15158152602001856002811115613cb457613cb4614a78565b90526001546040517ff0055f6800000000000000000000000000000000000000000000000000000000815291925073ffffffffffffffffffffffffffffffffffffffff169063f0055f6890613d0d9084906004016150a1565b6020604051808303816000875af1158015613d2c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613d509190615115565b92508467ffffffffffffffff168367ffffffffffffffff161080613d7c575067ffffffffffffffff8316155b15613db3576040517f850c6f7600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8567ffffffffffffffff168367ffffffffffffffff161015613e2c576001805467ffffffffffffffff75010000000000000000000000000000000000000000008083048216878b0301909116027fffffff0000000000000000ffffffffffffffffffffffffffffffffffffffffff909116179055613ec1565b8567ffffffffffffffff168367ffffffffffffffff161115613ec157613e5483878503613452565b909350915067ffffffffffffffff821615613ec1576001805467ffffffffffffffff75010000000000000000000000000000000000000000008083048216869003909116027fffffff0000000000000000ffffffffffffffffffffffffffffffffffffffffff9091161790555b5094509492505050565b63ffffffff8084166000908152600660205260409020613eed9184906135ee16565b5067ffffffffffffffff811615612f7d5763ffffffff7f000000000000000000000000000000000000000000000000000000000000000081166000908152600660205260409020612f7d918390613a2216565b60408051808201909152600080825260208201528251600090613f6490849061583c565b905080341015613fa0576040517f2c5211c600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80341115613fb557613fb28334615560565b84525b509192915050565b6040805160c081018252600080825260208083018290529282015260608082018190526080820181905260a082015290613ff990840184614c45565b63ffffffff1681526020808401359082015267ffffffffffffffff82166040820152614028608084018461503c565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250505050608082015292915050565b600080600283600281111561407e5761407e614a78565b14801561408d57506040840135155b1561409d575060009050806140ea565b6140ab338560400135613708565b91506140d16140bd6020860186614c45565b836140cb8760600135613333565b86613c46565b5090506140ea6140e46020860186614c45565b82614403565b9250929050565b6140f96148c4565b600086600281111561410d5761410d614a78565b036141ab57600061412160a087018761503c565b9050111561415b576040517ffff2a44000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061416a6020870187614c45565b855163ffffffff808316600090815260066020908152604090912093945061419d93928592918b01359189919061440e16565b508351604082015152614360565b3660006141bb60c088018861503c565b6141c9916000918291615400565b909250905060028860028111156141e2576141e2614a78565b0361424c576141f460c088018861503c565b909250905060006142086020890189614c45565b63ffffffff808216600090815260066020526040812092935091614232918490879087906146ab16565b90508088600001818151614246919061583c565b90525050505b67ffffffffffffffff85161580156142725750600061426e60a089018961503c565b9050115b156142a9576040517ffff2a44000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006142b788878585613747565b60035488516040517f9d21be2300000000000000000000000000000000000000000000000000000000815292935073ffffffffffffffffffffffffffffffffffffffff90911691639d21be2391906143179085908c908b90600401615680565b60806040518083038185885af1158015614335573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525081019061435a91906156d0565b93505050505b95945050505050565b600067ffffffffffffffff82111561344e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f53616665436173743a2076616c756520646f65736e27742066697420696e203660448201527f3420626974730000000000000000000000000000000000000000000000000000606482015260840161316d565b611a41828283613ecb565b61441785613713565b811461444f576040517fa6b5114a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b845460009061447a9074010000000000000000000000000000000000000000900460ff16600161584f565b865490915060ff750100000000000000000000000000000000000000000090910481169082168110156144d9576040517f2c8445c700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6145368760010154868660405160200161452292919091825260c01b7fffffffffffffffff00000000000000000000000000000000000000000000000016602082015260280190565b60405160208183030381529060405261478b565b6001880155614549633b9aca0084615868565b87548890601b906145819084907b01000000000000000000000000000000000000000000000000000000900464ffffffffff1661587c565b825464ffffffffff9182166101009390930a928302919092021990911617905550865460ff83167401000000000000000000000000000000000000000081027fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff9092169190911788556001036146335786547fffffffffffffffffffffffff0000000000000000ffffffffffffffffffffffff166c010000000000000000000000004367ffffffffffffffff16021787555b86546040805187815267ffffffffffffffff8716602082015260ff84811690861610159181019190915263ffffffff680100000000000000009092048216918816907f2ba3711d7ed816555ccc24291077c8f343976dd385eb17071e903af89247add69060600160405180910390a350505050505050565b60006146bc838387600101546147be565b6146c585613872565b600186810181905586547affffffffffff00ffffffffffffffffffffffffffffffffffffffff168088559192506801000000000000000090910463ffffffff169061471190829061589a565b86547fffffffffffffffffffffffffffffffffffffffff00000000ffffffffffffffff166801000000000000000063ffffffff9283168102919091178089556040519190048216918716907f66fd9e08891598169ebd39d73f80f03068e0092d6290cc537b7b023f462856ff90600090a350949350505050565b600082826040516020016147a09291906158b7565b60405160208183030381529060405280519060200120905092915050565b8115806147d457506147d16028836158dd565b15155b1561480b576040517f6950c09300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000805b838110156148845736600086838761482860288361583c565b95506148379286929190615400565b9150915061487b8483838080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061478b92505050565b9350505061480f565b8282146148bd576040517f6950c09300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050505050565b604051806060016040528060008019168152602001600067ffffffffffffffff168152602001614907604051806040016040528060008152602001600081525090565b905290565b600060e08284031215611e7257600080fd5b60006020828403121561493057600080fd5b813567ffffffffffffffff81111561494757600080fd5b611f248482850161490c565b60005b8381101561496e578181015183820152602001614956565b50506000910152565b6000815180845261498f816020860160208601614953565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b8351815260208085015190820152600060a08201604060a0604085015281865180845260c08601915060c08160051b8701019350602080890160005b83811015614a5a578887037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff40018552815180518852830151838801879052614a4787890182614977565b97505093820193908201906001016149fd565b50508751606088015250505060208501516080850152509050611f24565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6020810160028310614abb57614abb614a78565b91905290565b803563ffffffff81168114614ad557600080fd5b919050565b803560ff81168114614ad557600080fd5b600080600060608486031215614b0057600080fd5b614b0984614ac1565b9250614b1760208501614ada565b9150604084013564ffffffffff81168114614b3157600080fd5b809150509250925092565b600060608284031215611e7257600080fd5b600080600060a08486031215614b6357600080fd5b614b6d8585614b3c565b925060608401359150608084013567ffffffffffffffff811115614b9057600080fd5b614b9c86828701614b3c565b9150509250925092565b600080600060408486031215614bbb57600080fd5b614bc484614ac1565b9250602084013567ffffffffffffffff80821115614be157600080fd5b818601915086601f830112614bf557600080fd5b813581811115614c0457600080fd5b8760208260061b8501011115614c1957600080fd5b6020830194508093505050509250925092565b600060208284031215614c3e57600080fd5b5035919050565b600060208284031215614c5757600080fd5b61302982614ac1565b80358015158114614ad557600080fd5b60008060408385031215614c8357600080fd5b823567ffffffffffffffff811115614c9a57600080fd5b614ca68582860161490c565b925050614cb560208401614c60565b90509250929050565b81518152602080830151908201526040810161336d565b60008060408385031215614ce857600080fd5b614cf183614ac1565b9150614cb560208401614c60565b803573ffffffffffffffffffffffffffffffffffffffff81168114614ad557600080fd5b60008060408385031215614d3657600080fd5b614d3f83614cff565b946020939093013593505050565b600060208284031215614d5f57600080fd5b61302982614cff565b60008060408385031215614d7b57600080fd5b82359150614cb560208401614cff565b60008060008060008060a08789031215614da457600080fd5b86359550614db460208801614ada565b9450614dc260408801614cff565b935060608701359250608087013567ffffffffffffffff80821115614de657600080fd5b818901915089601f830112614dfa57600080fd5b813581811115614e0957600080fd5b8a6020828501011115614e1b57600080fd5b6020830194508093505050509295509295509295565b600060a08284031215611e7257600080fd5b600060408284031215611e7257600080fd5b600080600060808486031215614e6a57600080fd5b833567ffffffffffffffff811115614e8157600080fd5b614e8d86828701614e31565b935050614e9d8560208601614e43565b9150614eab60608501614cff565b90509250925092565b8051825267ffffffffffffffff60208201511660208301526040810151612f7d604084018280518252602090810151910152565b60a08101614ef68285614eb4565b8260808301529392505050565b600060208284031215614f1557600080fd5b61302982614c60565b600080600060808486031215614f3357600080fd5b833567ffffffffffffffff811115614f4a57600080fd5b614e8d8682870161490c565b60c08101614f648285614eb4565b82516080830152602083015160a0830152613029565b67ffffffffffffffff8116811461317f57600080fd5b60008060408385031215614fa357600080fd5b614fac83614cff565b91506020830135614fbc81614f7a565b809150509250929050565b60008060408385031215614fda57600080fd5b82359150614cb560208401614ada565b60008060408385031215614ffd57600080fd5b823567ffffffffffffffff81111561501457600080fd5b614ca685828601614e31565b600060a0828403121561503257600080fd5b6130298383614e31565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe184360301811261507157600080fd5b83018035915067ffffffffffffffff82111561508c57600080fd5b6020019150368190038213156140ea57600080fd5b600060a08201905073ffffffffffffffffffffffffffffffffffffffff835116825263ffffffff602084015116602083015267ffffffffffffffff604084015116604083015260608301511515606083015260808301516003811061510857615108614a78565b8060808401525092915050565b60006020828403121561512757600080fd5b815161302981614f7a565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b67ffffffffffffffff8281168282160390808211156119ab576119ab615132565b808202600082127f8000000000000000000000000000000000000000000000000000000000000000841416156151ba576151ba615132565b818105831482151761336d5761336d615132565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe184360301811261523257600080fd5b83018035915067ffffffffffffffff82111561524d57600080fd5b6020019150600581901b36038213156140ea57600080fd5b60006020828403121561527757600080fd5b813561302981614f7a565b73ffffffffffffffffffffffffffffffffffffffff8516815283602082015261ffff831660408201526080606082015260006152c16080830184614977565b9695505050505050565b7fffffffffffffffffffffffffffffffffffffffff0000000000000000000000008460601b1681528260148201526000825161530e816034850160208701614953565b91909101603401949350505050565b85815260ff8516602082015273ffffffffffffffffffffffffffffffffffffffff8416604082015282606082015260a06080820152600061536160a0830184614977565b979650505050505050565b63ffffffff848116825260406020808401829052838201859052600092869160608601855b888110156153d157836153a386614ac1565b168252828501356153b381614f7a565b67ffffffffffffffff16828401529385019390850190600101615391565b509998505050505050505050565b67ffffffffffffffff8181168382160190808211156119ab576119ab615132565b6000808585111561541057600080fd5b8386111561541d57600080fd5b5050820193919092039150565b63ffffffff81511682526020810151602083015267ffffffffffffffff60408201511660408301526000606082015160c0606085015261546d60c0850182614977565b9050608083015184820360808601526154868282614977565b91505060a083015184820360a08601526143608282614977565b6040815260006154b3604083018561542a565b905082151560208301529392505050565b6040805190810167ffffffffffffffff8111828210171561550e577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405290565b60006040828403121561552657600080fd5b61552e6154c4565b9050815181526020820151602082015292915050565b60006040828403121561555657600080fd5b6130298383615514565b8181038181111561336d5761336d615132565b60006020828403121561558557600080fd5b5051919050565b7fffffffffffffffffffffffffffffffffffffffff0000000000000000000000008560601b16815283601482015281836034830137600091016034019081529392505050565b73ffffffffffffffffffffffffffffffffffffffff8616815284602082015261ffff8416604082015260806060820152816080820152818360a0830137600081830160a090810191909152601f9092017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0160101949350505050565b60006040828403121561566057600080fd5b6156686154c4565b82358152602083013560208201528091505092915050565b608081526000615693608083018661542a565b90506156ac602083018580518252602090810151910152565b73ffffffffffffffffffffffffffffffffffffffff83166060830152949350505050565b6000608082840312156156e257600080fd5b6040516060810181811067ffffffffffffffff8211171561572c577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405282518152602083015161574181614f7a565b60208201526157538460408501615514565b60408201529392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60ff828116828216039081111561336d5761336d615132565b7fffffffffffffffff0000000000000000000000000000000000000000000000008560c01b1681527fffffffff000000000000000000000000000000000000000000000000000000008460e01b16600882015282600c8201526000825161581581602c850160208701614953565b91909101602c0195945050505050565b808202811582820484141761336d5761336d615132565b8082018082111561336d5761336d615132565b60ff818116838216019081111561336d5761336d615132565b6000826158775761587761575f565b500490565b64ffffffffff8181168382160190808211156119ab576119ab615132565b63ffffffff8181168382160190808211156119ab576119ab615132565b828152600082516158cf816020850160208701614953565b919091016020019392505050565b6000826158ec576158ec61575f565b50069056fea2646970667358221220b5f1dfad2c42b714c3cf7e38add3d89d8acb63fc6c928d53a06f362eccde59f564736f6c63430008160033",
|
|
1624
|
+
"devdoc": {
|
|
1625
|
+
"kind": "dev",
|
|
1626
|
+
"methods": {
|
|
1627
|
+
"addTreasuryFee(uint256)": {
|
|
1628
|
+
"details": "only used for increasing the overall budget for transaction rewardsthe treasuryFee is essentially the reward pool. exposure is capped."
|
|
1629
|
+
},
|
|
1630
|
+
"approvalRequired()": {
|
|
1631
|
+
"details": "Allows things like wallet implementers to determine integration requirements, without understanding the underlying token implementation.",
|
|
1632
|
+
"returns": {
|
|
1633
|
+
"_0": "requiresApproval Needs approval of the underlying token implementation."
|
|
1634
|
+
}
|
|
1635
|
+
},
|
|
1636
|
+
"oftVersion()": {
|
|
1637
|
+
"details": "0 version means the message encoding is not compatible with default OFT"
|
|
1638
|
+
},
|
|
1639
|
+
"owner()": {
|
|
1640
|
+
"details": "Returns the address of the current owner."
|
|
1641
|
+
},
|
|
1642
|
+
"quoteOFT((uint32,bytes32,uint256,uint256,bytes,bytes,bytes))": {
|
|
1643
|
+
"params": {
|
|
1644
|
+
"_sendParam": "The parameters for the send operation."
|
|
1645
|
+
},
|
|
1646
|
+
"returns": {
|
|
1647
|
+
"limit": "The OFT limit information.",
|
|
1648
|
+
"oftFeeDetails": "The details of OFT fees.",
|
|
1649
|
+
"receipt": "The OFT receipt information."
|
|
1650
|
+
}
|
|
1651
|
+
},
|
|
1652
|
+
"quoteSend((uint32,bytes32,uint256,uint256,bytes,bytes,bytes),bool)": {
|
|
1653
|
+
"details": "MessagingFee: LayerZero msg fee - nativeFee: The native fee. - lzTokenFee: The lzToken fee.",
|
|
1654
|
+
"params": {
|
|
1655
|
+
"_payInLzToken": "Flag indicating whether the caller is paying in the LZ token.",
|
|
1656
|
+
"_sendParam": "The parameters for the send() operation."
|
|
1657
|
+
},
|
|
1658
|
+
"returns": {
|
|
1659
|
+
"fee": "The calculated LayerZero messaging fee from the send() operation."
|
|
1660
|
+
}
|
|
1661
|
+
},
|
|
1662
|
+
"redeem(uint256,address)": {
|
|
1663
|
+
"details": "Redeem the LP token of the sender and return the underlying token to receiverThe amount of LP token to redeem is capped by the unallocated local credit",
|
|
1664
|
+
"params": {
|
|
1665
|
+
"_amountLD": "the amount of LP token to redeem"
|
|
1666
|
+
},
|
|
1667
|
+
"returns": {
|
|
1668
|
+
"amountLD": "the amount of LP token burned and the amount of underlying token sent to the receiver"
|
|
1669
|
+
}
|
|
1670
|
+
},
|
|
1671
|
+
"renounceOwnership()": {
|
|
1672
|
+
"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."
|
|
1673
|
+
},
|
|
1674
|
+
"retryReceiveToken(bytes32,uint8,address,uint256,bytes)": {
|
|
1675
|
+
"details": "try to receive the token if the previous attempt failed in lzReceive"
|
|
1676
|
+
},
|
|
1677
|
+
"send((uint32,bytes32,uint256,uint256,bytes,bytes,bytes),(uint256,uint256),address)": {
|
|
1678
|
+
"details": "MessagingReceipt: LayerZero msg receipt - guid: The unique identifier for the sent message. - nonce: The nonce of the sent message. - fee: The LayerZero fee incurred for the message.",
|
|
1679
|
+
"params": {
|
|
1680
|
+
"_fee": "The fee information supplied by the caller. - nativeFee: The native fee. - lzTokenFee: The lzToken fee.",
|
|
1681
|
+
"_refundAddress": "The address to receive any excess funds from fees etc. on the src.",
|
|
1682
|
+
"_sendParam": "The parameters for the send operation."
|
|
1683
|
+
},
|
|
1684
|
+
"returns": {
|
|
1685
|
+
"msgReceipt": "receipt The LayerZero messaging receipt from the send() operation.",
|
|
1686
|
+
"oftReceipt": "The OFT receipt information."
|
|
1687
|
+
}
|
|
1688
|
+
},
|
|
1689
|
+
"setOFTPath(uint32,bool)": {
|
|
1690
|
+
"details": "Set the path as OFT if the remote chain is using OFTWhen migrating from OFT to pool on the remote chain (e.g. migrate USDC to circles), reset the path to non-OFT"
|
|
1691
|
+
},
|
|
1692
|
+
"transferOwnership(address)": {
|
|
1693
|
+
"details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
|
|
1694
|
+
},
|
|
1695
|
+
"tvl()": {
|
|
1696
|
+
"details": "The tvl of the pool is the total supply of the LP token The rate of the LP token is always 1:1 with the underlying token"
|
|
1697
|
+
}
|
|
1698
|
+
},
|
|
1699
|
+
"version": 1
|
|
1700
|
+
},
|
|
1701
|
+
"userdoc": {
|
|
1702
|
+
"kind": "user",
|
|
1703
|
+
"methods": {
|
|
1704
|
+
"approvalRequired()": {
|
|
1705
|
+
"notice": "Indicates whether the OFT contract requires approval of the 'token()' to send."
|
|
1706
|
+
},
|
|
1707
|
+
"quoteOFT((uint32,bytes32,uint256,uint256,bytes,bytes,bytes))": {
|
|
1708
|
+
"notice": "Provides a quote for OFT-related operations."
|
|
1709
|
+
},
|
|
1710
|
+
"quoteSend((uint32,bytes32,uint256,uint256,bytes,bytes,bytes),bool)": {
|
|
1711
|
+
"notice": "Provides a quote for the send() operation."
|
|
1712
|
+
},
|
|
1713
|
+
"send((uint32,bytes32,uint256,uint256,bytes,bytes,bytes),(uint256,uint256),address)": {
|
|
1714
|
+
"notice": "Executes the send() operation."
|
|
1715
|
+
},
|
|
1716
|
+
"sharedDecimals()": {
|
|
1717
|
+
"notice": "Retrieves the shared decimals of the OFT."
|
|
1718
|
+
},
|
|
1719
|
+
"token()": {
|
|
1720
|
+
"notice": "Retrieves the address of the token associated with the OFT."
|
|
1721
|
+
}
|
|
1722
|
+
},
|
|
1723
|
+
"version": 1
|
|
1724
|
+
},
|
|
1725
|
+
"storageLayout": {
|
|
1726
|
+
"storage": [
|
|
1727
|
+
{
|
|
1728
|
+
"astId": 7881,
|
|
1729
|
+
"contract": "src/StargatePoolNative.sol:StargatePoolNative",
|
|
1730
|
+
"label": "_owner",
|
|
1731
|
+
"offset": 0,
|
|
1732
|
+
"slot": "0",
|
|
1733
|
+
"type": "t_address"
|
|
1734
|
+
},
|
|
1735
|
+
{
|
|
1736
|
+
"astId": 14166,
|
|
1737
|
+
"contract": "src/StargatePoolNative.sol:StargatePoolNative",
|
|
1738
|
+
"label": "feeLib",
|
|
1739
|
+
"offset": 0,
|
|
1740
|
+
"slot": "1",
|
|
1741
|
+
"type": "t_address"
|
|
1742
|
+
},
|
|
1743
|
+
{
|
|
1744
|
+
"astId": 14169,
|
|
1745
|
+
"contract": "src/StargatePoolNative.sol:StargatePoolNative",
|
|
1746
|
+
"label": "status",
|
|
1747
|
+
"offset": 20,
|
|
1748
|
+
"slot": "1",
|
|
1749
|
+
"type": "t_uint8"
|
|
1750
|
+
},
|
|
1751
|
+
{
|
|
1752
|
+
"astId": 14171,
|
|
1753
|
+
"contract": "src/StargatePoolNative.sol:StargatePoolNative",
|
|
1754
|
+
"label": "treasuryFee",
|
|
1755
|
+
"offset": 21,
|
|
1756
|
+
"slot": "1",
|
|
1757
|
+
"type": "t_uint64"
|
|
1758
|
+
},
|
|
1759
|
+
{
|
|
1760
|
+
"astId": 14173,
|
|
1761
|
+
"contract": "src/StargatePoolNative.sol:StargatePoolNative",
|
|
1762
|
+
"label": "planner",
|
|
1763
|
+
"offset": 0,
|
|
1764
|
+
"slot": "2",
|
|
1765
|
+
"type": "t_address"
|
|
1766
|
+
},
|
|
1767
|
+
{
|
|
1768
|
+
"astId": 14175,
|
|
1769
|
+
"contract": "src/StargatePoolNative.sol:StargatePoolNative",
|
|
1770
|
+
"label": "messaging",
|
|
1771
|
+
"offset": 0,
|
|
1772
|
+
"slot": "3",
|
|
1773
|
+
"type": "t_address"
|
|
1774
|
+
},
|
|
1775
|
+
{
|
|
1776
|
+
"astId": 14177,
|
|
1777
|
+
"contract": "src/StargatePoolNative.sol:StargatePoolNative",
|
|
1778
|
+
"label": "lzToken",
|
|
1779
|
+
"offset": 0,
|
|
1780
|
+
"slot": "4",
|
|
1781
|
+
"type": "t_address"
|
|
1782
|
+
},
|
|
1783
|
+
{
|
|
1784
|
+
"astId": 14179,
|
|
1785
|
+
"contract": "src/StargatePoolNative.sol:StargatePoolNative",
|
|
1786
|
+
"label": "treasurer",
|
|
1787
|
+
"offset": 0,
|
|
1788
|
+
"slot": "5",
|
|
1789
|
+
"type": "t_address"
|
|
1790
|
+
},
|
|
1791
|
+
{
|
|
1792
|
+
"astId": 14184,
|
|
1793
|
+
"contract": "src/StargatePoolNative.sol:StargatePoolNative",
|
|
1794
|
+
"label": "paths",
|
|
1795
|
+
"offset": 0,
|
|
1796
|
+
"slot": "6",
|
|
1797
|
+
"type": "t_mapping(t_uint32,t_struct(Path)19110_storage)"
|
|
1798
|
+
},
|
|
1799
|
+
{
|
|
1800
|
+
"astId": 14190,
|
|
1801
|
+
"contract": "src/StargatePoolNative.sol:StargatePoolNative",
|
|
1802
|
+
"label": "unreceivedTokens",
|
|
1803
|
+
"offset": 0,
|
|
1804
|
+
"slot": "7",
|
|
1805
|
+
"type": "t_mapping(t_bytes32,t_mapping(t_uint8,t_bytes32))"
|
|
1806
|
+
}
|
|
1807
|
+
],
|
|
1808
|
+
"types": {
|
|
1809
|
+
"t_address": {
|
|
1810
|
+
"encoding": "inplace",
|
|
1811
|
+
"label": "address",
|
|
1812
|
+
"numberOfBytes": "20"
|
|
1813
|
+
},
|
|
1814
|
+
"t_bytes32": {
|
|
1815
|
+
"encoding": "inplace",
|
|
1816
|
+
"label": "bytes32",
|
|
1817
|
+
"numberOfBytes": "32"
|
|
1818
|
+
},
|
|
1819
|
+
"t_mapping(t_bytes32,t_mapping(t_uint8,t_bytes32))": {
|
|
1820
|
+
"encoding": "mapping",
|
|
1821
|
+
"key": "t_bytes32",
|
|
1822
|
+
"label": "mapping(bytes32 => mapping(uint8 => bytes32))",
|
|
1823
|
+
"numberOfBytes": "32",
|
|
1824
|
+
"value": "t_mapping(t_uint8,t_bytes32)"
|
|
1825
|
+
},
|
|
1826
|
+
"t_mapping(t_uint32,t_struct(Path)19110_storage)": {
|
|
1827
|
+
"encoding": "mapping",
|
|
1828
|
+
"key": "t_uint32",
|
|
1829
|
+
"label": "mapping(uint32 => struct Path)",
|
|
1830
|
+
"numberOfBytes": "32",
|
|
1831
|
+
"value": "t_struct(Path)19110_storage"
|
|
1832
|
+
},
|
|
1833
|
+
"t_mapping(t_uint8,t_bytes32)": {
|
|
1834
|
+
"encoding": "mapping",
|
|
1835
|
+
"key": "t_uint8",
|
|
1836
|
+
"label": "mapping(uint8 => bytes32)",
|
|
1837
|
+
"numberOfBytes": "32",
|
|
1838
|
+
"value": "t_bytes32"
|
|
1839
|
+
},
|
|
1840
|
+
"t_struct(Path)19110_storage": {
|
|
1841
|
+
"encoding": "inplace",
|
|
1842
|
+
"label": "struct Path",
|
|
1843
|
+
"members": [
|
|
1844
|
+
{
|
|
1845
|
+
"astId": 19095,
|
|
1846
|
+
"contract": "src/StargatePoolNative.sol:StargatePoolNative",
|
|
1847
|
+
"label": "credit",
|
|
1848
|
+
"offset": 0,
|
|
1849
|
+
"slot": "0",
|
|
1850
|
+
"type": "t_uint64"
|
|
1851
|
+
},
|
|
1852
|
+
{
|
|
1853
|
+
"astId": 19097,
|
|
1854
|
+
"contract": "src/StargatePoolNative.sol:StargatePoolNative",
|
|
1855
|
+
"label": "busNum",
|
|
1856
|
+
"offset": 8,
|
|
1857
|
+
"slot": "0",
|
|
1858
|
+
"type": "t_uint32"
|
|
1859
|
+
},
|
|
1860
|
+
{
|
|
1861
|
+
"astId": 19099,
|
|
1862
|
+
"contract": "src/StargatePoolNative.sol:StargatePoolNative",
|
|
1863
|
+
"label": "startBlock",
|
|
1864
|
+
"offset": 12,
|
|
1865
|
+
"slot": "0",
|
|
1866
|
+
"type": "t_uint64"
|
|
1867
|
+
},
|
|
1868
|
+
{
|
|
1869
|
+
"astId": 19101,
|
|
1870
|
+
"contract": "src/StargatePoolNative.sol:StargatePoolNative",
|
|
1871
|
+
"label": "passengers",
|
|
1872
|
+
"offset": 20,
|
|
1873
|
+
"slot": "0",
|
|
1874
|
+
"type": "t_uint8"
|
|
1875
|
+
},
|
|
1876
|
+
{
|
|
1877
|
+
"astId": 19103,
|
|
1878
|
+
"contract": "src/StargatePoolNative.sol:StargatePoolNative",
|
|
1879
|
+
"label": "capacity",
|
|
1880
|
+
"offset": 21,
|
|
1881
|
+
"slot": "0",
|
|
1882
|
+
"type": "t_uint8"
|
|
1883
|
+
},
|
|
1884
|
+
{
|
|
1885
|
+
"astId": 19105,
|
|
1886
|
+
"contract": "src/StargatePoolNative.sol:StargatePoolNative",
|
|
1887
|
+
"label": "fare",
|
|
1888
|
+
"offset": 22,
|
|
1889
|
+
"slot": "0",
|
|
1890
|
+
"type": "t_uint40"
|
|
1891
|
+
},
|
|
1892
|
+
{
|
|
1893
|
+
"astId": 19107,
|
|
1894
|
+
"contract": "src/StargatePoolNative.sol:StargatePoolNative",
|
|
1895
|
+
"label": "fareBox",
|
|
1896
|
+
"offset": 27,
|
|
1897
|
+
"slot": "0",
|
|
1898
|
+
"type": "t_uint40"
|
|
1899
|
+
},
|
|
1900
|
+
{
|
|
1901
|
+
"astId": 19109,
|
|
1902
|
+
"contract": "src/StargatePoolNative.sol:StargatePoolNative",
|
|
1903
|
+
"label": "root",
|
|
1904
|
+
"offset": 0,
|
|
1905
|
+
"slot": "1",
|
|
1906
|
+
"type": "t_bytes32"
|
|
1907
|
+
}
|
|
1908
|
+
],
|
|
1909
|
+
"numberOfBytes": "64"
|
|
1910
|
+
},
|
|
1911
|
+
"t_uint32": {
|
|
1912
|
+
"encoding": "inplace",
|
|
1913
|
+
"label": "uint32",
|
|
1914
|
+
"numberOfBytes": "4"
|
|
1915
|
+
},
|
|
1916
|
+
"t_uint40": {
|
|
1917
|
+
"encoding": "inplace",
|
|
1918
|
+
"label": "uint40",
|
|
1919
|
+
"numberOfBytes": "5"
|
|
1920
|
+
},
|
|
1921
|
+
"t_uint64": {
|
|
1922
|
+
"encoding": "inplace",
|
|
1923
|
+
"label": "uint64",
|
|
1924
|
+
"numberOfBytes": "8"
|
|
1925
|
+
},
|
|
1926
|
+
"t_uint8": {
|
|
1927
|
+
"encoding": "inplace",
|
|
1928
|
+
"label": "uint8",
|
|
1929
|
+
"numberOfBytes": "1"
|
|
1930
|
+
}
|
|
1931
|
+
}
|
|
1932
|
+
}
|
|
1933
|
+
}
|