@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.
Files changed (150) hide show
  1. package/artifacts/src/StargateBase.sol/StargateBase.json +1348 -0
  2. package/artifacts/src/StargateOFT.sol/StargateOFT.json +1374 -0
  3. package/artifacts/src/StargatePool.sol/StargatePool.json +1722 -0
  4. package/artifacts/src/StargatePoolNative.sol/StargatePoolNative.json +1717 -0
  5. package/artifacts/src/feelibs/FeeLibBase.sol/FeeLibBase.json +313 -0
  6. package/artifacts/src/feelibs/FeeLibV1.sol/FeeConfigLib.json +10 -0
  7. package/artifacts/src/feelibs/FeeLibV1.sol/FeeLibV1.json +561 -0
  8. package/artifacts/src/intent/IntentBase.sol/IntentBase.json +231 -0
  9. package/artifacts/src/intent/IntentOFT.sol/IntentOFT.json +247 -0
  10. package/artifacts/src/intent/IntentPool.sol/IntentPool.json +350 -0
  11. package/artifacts/src/intent/IntentPoolNative.sol/IWETH.json +24 -0
  12. package/artifacts/src/intent/IntentPoolNative.sol/IntentPoolNative.json +367 -0
  13. package/artifacts/src/interfaces/IBridgedUSDCMinter.sol/IBridgedUSDCMinter.json +48 -0
  14. package/artifacts/src/interfaces/ICreditMessaging.sol/ICreditMessaging.json +113 -0
  15. package/artifacts/src/interfaces/ICreditMessagingHandler.sol/ICreditMessagingHandler.json +71 -0
  16. package/artifacts/src/interfaces/IERC20Minter.sol/IERC20Minter.json +47 -0
  17. package/artifacts/src/interfaces/IStargate.sol/IStargate.json +661 -0
  18. package/artifacts/src/interfaces/IStargateFeeLib.sol/IStargateFeeLib.json +230 -0
  19. package/artifacts/src/interfaces/IStargatePool.sol/IStargatePool.json +939 -0
  20. package/artifacts/src/interfaces/ITokenMessaging.sol/ITokenMessaging.json +494 -0
  21. package/artifacts/src/interfaces/ITokenMessagingHandler.sol/ITokenMessagingHandler.json +78 -0
  22. package/artifacts/src/interfaces/permit2/IAllowanceTransfer.sol/IAllowanceTransfer.json +495 -0
  23. package/artifacts/src/interfaces/permit2/IEIP712.sol/IEIP712.json +24 -0
  24. package/artifacts/src/interfaces/permit2/IPermit2.sol/IPermit2.json +874 -0
  25. package/artifacts/src/interfaces/permit2/ISignatureTransfer.sol/ISignatureTransfer.json +403 -0
  26. package/artifacts/src/libs/AddressCast.sol/AddressCast.json +10 -0
  27. package/artifacts/src/libs/Bus.sol/BusLib.json +92 -0
  28. package/artifacts/src/libs/CreditMsgCodec.sol/CreditMsgCodec.json +16 -0
  29. package/artifacts/src/libs/MessagingHelper.sol/MessagingHelper.json +10 -0
  30. package/artifacts/src/libs/PassengerCodec.sol/PassengerCodec.json +16 -0
  31. package/artifacts/src/libs/Path.sol/PathLib.json +26 -0
  32. package/artifacts/src/libs/RideBusOptionsLibV1.sol/RideBusOptionsLibV1.json +16 -0
  33. package/artifacts/src/libs/TokenMsgCodec.sol/TokenMsgCodec.json +16 -0
  34. package/artifacts/src/libs/Transfer.sol/Transfer.json +21 -0
  35. package/artifacts/src/libs/Transfer.sol/TransferLib.json +21 -0
  36. package/artifacts/src/messaging/CreditMessaging.sol/CreditMessaging.json +1033 -0
  37. package/artifacts/src/messaging/CreditMessagingOptions.sol/CreditMessagingOptions.json +229 -0
  38. package/artifacts/src/messaging/MessagingBase.sol/MessagingBase.json +701 -0
  39. package/artifacts/src/messaging/TokenMessaging.sol/TokenMessaging.json +1692 -0
  40. package/artifacts/src/messaging/TokenMessagingOptions.sol/TokenMessagingOptions.json +239 -0
  41. package/artifacts/src/mocks/ERC20Token.sol/ERC20Token.json +335 -0
  42. package/artifacts/src/mocks/FeeLibMock.sol/FeeLibMock.json +230 -0
  43. package/artifacts/src/mocks/OFTToken.sol/OFTToken.json +380 -0
  44. package/artifacts/src/mocks/PoolToken.sol/PoolToken.json +406 -0
  45. package/artifacts/src/mocks/USDC.sol/USDC.json +381 -0
  46. package/artifacts/src/mocks/WETH.sol/WETH.json +310 -0
  47. package/artifacts/src/peripheral/Planner.sol/Planner.json +212 -0
  48. package/artifacts/src/peripheral/RebateCampaign.sol/RebateCampaign.json +237 -0
  49. package/artifacts/src/peripheral/Treasurer.sol/Treasurer.json +194 -0
  50. package/artifacts/src/usdc/StargateOFTUSDC.sol/StargateOFTUSDC.json +1374 -0
  51. package/artifacts/src/usdc/StargatePoolUSDC.sol/StargatePoolUSDC.json +1748 -0
  52. package/artifacts/src/utils/LPToken.sol/LPToken.json +496 -0
  53. package/deployments/arbsep-testnet/FeeLibV1ETH.json +466 -0
  54. package/deployments/arbsep-testnet/MessagingETH.json +1356 -0
  55. package/deployments/arbsep-testnet/StargatePoolNative.json +1933 -0
  56. package/deployments/avalanche-testnet/FeeLibV1USDT.json +466 -0
  57. package/deployments/avalanche-testnet/MessagingUSDT.json +1356 -0
  58. package/deployments/avalanche-testnet/StargatePoolUSDT.json +1939 -0
  59. package/deployments/bsc-sandbox-local/CreditMessaging.json +1393 -0
  60. package/deployments/bsc-sandbox-local/FeeLibV1BUSD.json +828 -0
  61. package/deployments/bsc-sandbox-local/FeeLibV1ETH.json +828 -0
  62. package/deployments/bsc-sandbox-local/FeeLibV1LUSD.json +828 -0
  63. package/deployments/bsc-sandbox-local/FeeLibV1USDC.json +828 -0
  64. package/deployments/bsc-sandbox-local/FeeLibV1USDT.json +828 -0
  65. package/deployments/bsc-sandbox-local/IntentOFTBUSD.json +337 -0
  66. package/deployments/bsc-sandbox-local/IntentOFTETH.json +337 -0
  67. package/deployments/bsc-sandbox-local/IntentOFTLUSD.json +337 -0
  68. package/deployments/bsc-sandbox-local/IntentOFTUSDC.json +337 -0
  69. package/deployments/bsc-sandbox-local/IntentOFTUSDT.json +337 -0
  70. package/deployments/bsc-sandbox-local/OFTTokenBUSD.json +571 -0
  71. package/deployments/bsc-sandbox-local/OFTTokenETH.json +571 -0
  72. package/deployments/bsc-sandbox-local/OFTTokenLUSD.json +571 -0
  73. package/deployments/bsc-sandbox-local/OFTTokenUSDC.json +558 -0
  74. package/deployments/bsc-sandbox-local/OFTTokenUSDT.json +571 -0
  75. package/deployments/bsc-sandbox-local/Permit2Mock.json +923 -0
  76. package/deployments/bsc-sandbox-local/StargateOFTBUSD.json +1803 -0
  77. package/deployments/bsc-sandbox-local/StargateOFTETH.json +1803 -0
  78. package/deployments/bsc-sandbox-local/StargateOFTLUSD.json +1803 -0
  79. package/deployments/bsc-sandbox-local/StargateOFTUSDC.json +1792 -0
  80. package/deployments/bsc-sandbox-local/StargateOFTUSDT.json +1803 -0
  81. package/deployments/bsc-sandbox-local/TokenMessaging.json +2166 -0
  82. package/deployments/bsc-sandbox-local/WETH.json +453 -0
  83. package/deployments/bsc-testnet/FeeLibV1ETH.json +466 -0
  84. package/deployments/bsc-testnet/FeeLibV1USDT.json +466 -0
  85. package/deployments/bsc-testnet/MessagingETH.json +1356 -0
  86. package/deployments/bsc-testnet/MessagingUSDT.json +1356 -0
  87. package/deployments/bsc-testnet/OFTTokenETH.json +557 -0
  88. package/deployments/bsc-testnet/StargateOFTETH.json +1601 -0
  89. package/deployments/bsc-testnet/StargatePoolUSDT.json +1939 -0
  90. package/deployments/ethereum-sandbox-local/CreditMessaging.json +1393 -0
  91. package/deployments/ethereum-sandbox-local/FeeLibV1BUSD.json +828 -0
  92. package/deployments/ethereum-sandbox-local/FeeLibV1ETH.json +828 -0
  93. package/deployments/ethereum-sandbox-local/FeeLibV1LUSD.json +828 -0
  94. package/deployments/ethereum-sandbox-local/FeeLibV1USDC.json +828 -0
  95. package/deployments/ethereum-sandbox-local/FeeLibV1USDT.json +828 -0
  96. package/deployments/ethereum-sandbox-local/IntentOFTBUSD.json +337 -0
  97. package/deployments/ethereum-sandbox-local/IntentPoolLUSD.json +440 -0
  98. package/deployments/ethereum-sandbox-local/IntentPoolNative.json +444 -0
  99. package/deployments/ethereum-sandbox-local/IntentPoolUSDC.json +440 -0
  100. package/deployments/ethereum-sandbox-local/IntentPoolUSDT.json +440 -0
  101. package/deployments/ethereum-sandbox-local/OFTTokenBUSD.json +571 -0
  102. package/deployments/ethereum-sandbox-local/Permit2Mock.json +923 -0
  103. package/deployments/ethereum-sandbox-local/PoolTokenLUSD.json +597 -0
  104. package/deployments/ethereum-sandbox-local/PoolTokenUSDC.json +597 -0
  105. package/deployments/ethereum-sandbox-local/PoolTokenUSDT.json +597 -0
  106. package/deployments/ethereum-sandbox-local/StargateOFTBUSD.json +1803 -0
  107. package/deployments/ethereum-sandbox-local/StargatePoolLUSD.json +2239 -0
  108. package/deployments/ethereum-sandbox-local/StargatePoolNative.json +2233 -0
  109. package/deployments/ethereum-sandbox-local/StargatePoolUSDC.json +2257 -0
  110. package/deployments/ethereum-sandbox-local/StargatePoolUSDT.json +2239 -0
  111. package/deployments/ethereum-sandbox-local/TokenMessaging.json +2166 -0
  112. package/deployments/ethereum-sandbox-local/WETH.json +453 -0
  113. package/deployments/polygon-sandbox-local/CreditMessaging.json +1393 -0
  114. package/deployments/polygon-sandbox-local/FeeLibV1BUSD.json +828 -0
  115. package/deployments/polygon-sandbox-local/FeeLibV1ETH.json +828 -0
  116. package/deployments/polygon-sandbox-local/FeeLibV1LUSD.json +828 -0
  117. package/deployments/polygon-sandbox-local/FeeLibV1USDC.json +828 -0
  118. package/deployments/polygon-sandbox-local/FeeLibV1USDT.json +828 -0
  119. package/deployments/polygon-sandbox-local/IntentOFTBUSD.json +337 -0
  120. package/deployments/polygon-sandbox-local/IntentOFTETH.json +337 -0
  121. package/deployments/polygon-sandbox-local/IntentOFTLUSD.json +337 -0
  122. package/deployments/polygon-sandbox-local/IntentOFTUSDC.json +337 -0
  123. package/deployments/polygon-sandbox-local/IntentPoolUSDT.json +440 -0
  124. package/deployments/polygon-sandbox-local/OFTTokenBUSD.json +571 -0
  125. package/deployments/polygon-sandbox-local/OFTTokenETH.json +571 -0
  126. package/deployments/polygon-sandbox-local/OFTTokenLUSD.json +571 -0
  127. package/deployments/polygon-sandbox-local/OFTTokenUSDC.json +558 -0
  128. package/deployments/polygon-sandbox-local/Permit2Mock.json +923 -0
  129. package/deployments/polygon-sandbox-local/PoolTokenUSDT.json +597 -0
  130. package/deployments/polygon-sandbox-local/StargateOFTBUSD.json +1803 -0
  131. package/deployments/polygon-sandbox-local/StargateOFTETH.json +1803 -0
  132. package/deployments/polygon-sandbox-local/StargateOFTLUSD.json +1803 -0
  133. package/deployments/polygon-sandbox-local/StargateOFTUSDC.json +1792 -0
  134. package/deployments/polygon-sandbox-local/StargatePoolUSDT.json +2239 -0
  135. package/deployments/polygon-sandbox-local/TokenMessaging.json +2166 -0
  136. package/deployments/polygon-sandbox-local/WETH.json +453 -0
  137. package/deployments/polygon-testnet/FeeLibV1USDT.json +481 -0
  138. package/deployments/polygon-testnet/MessagingUSDT.json +1371 -0
  139. package/deployments/polygon-testnet/OFTTokenUSDT.json +572 -0
  140. package/deployments/polygon-testnet/StargateOFTUSDT.json +1616 -0
  141. package/deployments/sepolia-testnet/FeeLibV1ETH.json +466 -0
  142. package/deployments/sepolia-testnet/MessagingETH.json +1356 -0
  143. package/deployments/sepolia-testnet/StargatePoolNative.json +1933 -0
  144. package/dist/index.cjs +24634 -0
  145. package/dist/index.cjs.map +1 -0
  146. package/dist/index.d.mts +31486 -0
  147. package/dist/index.d.ts +31486 -0
  148. package/dist/index.mjs +24558 -0
  149. package/dist/index.mjs.map +1 -0
  150. package/package.json +42 -0
@@ -0,0 +1,337 @@
1
+ {
2
+ "address": "0x0FEFDF69F3b276F55b6ca59Bb43076D14cfD03E6",
3
+ "abi": [
4
+ {
5
+ "inputs": [
6
+ {
7
+ "internalType": "address",
8
+ "name": "_stargate",
9
+ "type": "address"
10
+ },
11
+ {
12
+ "internalType": "address",
13
+ "name": "_permit2",
14
+ "type": "address"
15
+ }
16
+ ],
17
+ "stateMutability": "nonpayable",
18
+ "type": "constructor"
19
+ },
20
+ {
21
+ "inputs": [],
22
+ "name": "Transfer_ApproveFailed",
23
+ "type": "error"
24
+ },
25
+ {
26
+ "anonymous": false,
27
+ "inputs": [
28
+ {
29
+ "indexed": true,
30
+ "internalType": "address",
31
+ "name": "sender",
32
+ "type": "address"
33
+ },
34
+ {
35
+ "indexed": true,
36
+ "internalType": "uint32",
37
+ "name": "dstEid",
38
+ "type": "uint32"
39
+ },
40
+ {
41
+ "indexed": false,
42
+ "internalType": "bytes32",
43
+ "name": "to",
44
+ "type": "bytes32"
45
+ },
46
+ {
47
+ "indexed": false,
48
+ "internalType": "uint256",
49
+ "name": "amountLD",
50
+ "type": "uint256"
51
+ }
52
+ ],
53
+ "name": "IntentSent",
54
+ "type": "event"
55
+ },
56
+ {
57
+ "anonymous": false,
58
+ "inputs": [
59
+ {
60
+ "indexed": true,
61
+ "internalType": "address",
62
+ "name": "previousOwner",
63
+ "type": "address"
64
+ },
65
+ {
66
+ "indexed": true,
67
+ "internalType": "address",
68
+ "name": "newOwner",
69
+ "type": "address"
70
+ }
71
+ ],
72
+ "name": "OwnershipTransferred",
73
+ "type": "event"
74
+ },
75
+ {
76
+ "inputs": [],
77
+ "name": "owner",
78
+ "outputs": [
79
+ {
80
+ "internalType": "address",
81
+ "name": "",
82
+ "type": "address"
83
+ }
84
+ ],
85
+ "stateMutability": "view",
86
+ "type": "function"
87
+ },
88
+ {
89
+ "inputs": [],
90
+ "name": "permit2",
91
+ "outputs": [
92
+ {
93
+ "internalType": "contract IPermit2",
94
+ "name": "",
95
+ "type": "address"
96
+ }
97
+ ],
98
+ "stateMutability": "view",
99
+ "type": "function"
100
+ },
101
+ {
102
+ "inputs": [],
103
+ "name": "renounceOwnership",
104
+ "outputs": [],
105
+ "stateMutability": "nonpayable",
106
+ "type": "function"
107
+ },
108
+ {
109
+ "inputs": [
110
+ {
111
+ "components": [
112
+ {
113
+ "internalType": "address",
114
+ "name": "sender",
115
+ "type": "address"
116
+ },
117
+ {
118
+ "internalType": "uint32",
119
+ "name": "dstEid",
120
+ "type": "uint32"
121
+ },
122
+ {
123
+ "internalType": "bytes32",
124
+ "name": "to",
125
+ "type": "bytes32"
126
+ },
127
+ {
128
+ "internalType": "uint256",
129
+ "name": "amountLD",
130
+ "type": "uint256"
131
+ },
132
+ {
133
+ "internalType": "uint256",
134
+ "name": "minAmountLD",
135
+ "type": "uint256"
136
+ },
137
+ {
138
+ "internalType": "uint256",
139
+ "name": "nonce",
140
+ "type": "uint256"
141
+ },
142
+ {
143
+ "internalType": "uint256",
144
+ "name": "deadline",
145
+ "type": "uint256"
146
+ }
147
+ ],
148
+ "internalType": "struct IntentBase.IntentSend",
149
+ "name": "_intentSend",
150
+ "type": "tuple"
151
+ },
152
+ {
153
+ "internalType": "bytes",
154
+ "name": "_oftCmd",
155
+ "type": "bytes"
156
+ },
157
+ {
158
+ "internalType": "bytes",
159
+ "name": "_signature",
160
+ "type": "bytes"
161
+ },
162
+ {
163
+ "internalType": "uint256",
164
+ "name": "_intentFee",
165
+ "type": "uint256"
166
+ },
167
+ {
168
+ "internalType": "address",
169
+ "name": "_refundAddress",
170
+ "type": "address"
171
+ }
172
+ ],
173
+ "name": "send",
174
+ "outputs": [],
175
+ "stateMutability": "payable",
176
+ "type": "function"
177
+ },
178
+ {
179
+ "inputs": [],
180
+ "name": "stargate",
181
+ "outputs": [
182
+ {
183
+ "internalType": "address",
184
+ "name": "",
185
+ "type": "address"
186
+ }
187
+ ],
188
+ "stateMutability": "view",
189
+ "type": "function"
190
+ },
191
+ {
192
+ "inputs": [],
193
+ "name": "token",
194
+ "outputs": [
195
+ {
196
+ "internalType": "address",
197
+ "name": "",
198
+ "type": "address"
199
+ }
200
+ ],
201
+ "stateMutability": "view",
202
+ "type": "function"
203
+ },
204
+ {
205
+ "inputs": [
206
+ {
207
+ "internalType": "address",
208
+ "name": "newOwner",
209
+ "type": "address"
210
+ }
211
+ ],
212
+ "name": "transferOwnership",
213
+ "outputs": [],
214
+ "stateMutability": "nonpayable",
215
+ "type": "function"
216
+ },
217
+ {
218
+ "inputs": [
219
+ {
220
+ "internalType": "address",
221
+ "name": "_token",
222
+ "type": "address"
223
+ },
224
+ {
225
+ "internalType": "address",
226
+ "name": "_to",
227
+ "type": "address"
228
+ },
229
+ {
230
+ "internalType": "uint256",
231
+ "name": "_amount",
232
+ "type": "uint256"
233
+ }
234
+ ],
235
+ "name": "withdrawFee",
236
+ "outputs": [],
237
+ "stateMutability": "nonpayable",
238
+ "type": "function"
239
+ }
240
+ ],
241
+ "transactionHash": "0xa10bcaf5ce25218b6b6bb5a06ac4ff18fdc1e13b4f05941a61637708b6a999b3",
242
+ "receipt": {
243
+ "to": null,
244
+ "from": "0x14dC79964da2C08b23698B3D3cc7Ca32193d9955",
245
+ "contractAddress": "0x0FEFDF69F3b276F55b6ca59Bb43076D14cfD03E6",
246
+ "transactionIndex": 0,
247
+ "gasUsed": "1188632",
248
+ "logsBloom": "0x00000000000000000000000001000000001000000000000000800000000000000000800000004000000000000000000000000000000000000000000000200000000000000000100000000000000000000001000000000400000000000000000000000000020000000001000000002800000000000000000000000000000000400000000010000000000000000000000000000000000000000000000000000000020000000000000000000000000000002000000000000000000000000000000000000000000000800080000000000000040000000000000000000000000020000010000000000000000000000000000000000000000000000000010000000000",
249
+ "blockHash": "0x53e387ba49517eae83a685e2c0264f7d5bc5f69f1f559f4ae12ed724864649b7",
250
+ "transactionHash": "0xa10bcaf5ce25218b6b6bb5a06ac4ff18fdc1e13b4f05941a61637708b6a999b3",
251
+ "logs": [
252
+ {
253
+ "transactionIndex": 0,
254
+ "blockNumber": 211,
255
+ "transactionHash": "0xa10bcaf5ce25218b6b6bb5a06ac4ff18fdc1e13b4f05941a61637708b6a999b3",
256
+ "address": "0x0FEFDF69F3b276F55b6ca59Bb43076D14cfD03E6",
257
+ "topics": [
258
+ "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0",
259
+ "0x0000000000000000000000000000000000000000000000000000000000000000",
260
+ "0x00000000000000000000000014dc79964da2c08b23698b3d3cc7ca32193d9955"
261
+ ],
262
+ "data": "0x",
263
+ "logIndex": 0,
264
+ "blockHash": "0x53e387ba49517eae83a685e2c0264f7d5bc5f69f1f559f4ae12ed724864649b7"
265
+ },
266
+ {
267
+ "transactionIndex": 0,
268
+ "blockNumber": 211,
269
+ "transactionHash": "0xa10bcaf5ce25218b6b6bb5a06ac4ff18fdc1e13b4f05941a61637708b6a999b3",
270
+ "address": "0x12759527549C0D3d2DFe3fC831c9a452322A49EA",
271
+ "topics": [
272
+ "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925",
273
+ "0x0000000000000000000000000fefdf69f3b276f55b6ca59bb43076d14cfd03e6",
274
+ "0x00000000000000000000000085933e4cb2ecf6957ac9fa6b02c1cdff6765a8a6"
275
+ ],
276
+ "data": "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
277
+ "logIndex": 1,
278
+ "blockHash": "0x53e387ba49517eae83a685e2c0264f7d5bc5f69f1f559f4ae12ed724864649b7"
279
+ }
280
+ ],
281
+ "blockNumber": 211,
282
+ "cumulativeGasUsed": "1188632",
283
+ "status": 1,
284
+ "byzantium": true
285
+ },
286
+ "args": [
287
+ "0x85933E4cb2eCf6957Ac9fA6b02c1cDfF6765A8a6",
288
+ "0x1AC9eccD48c7399845Bf49e7FcDa6Ade33E71418"
289
+ ],
290
+ "numDeployments": 1,
291
+ "solcInputHash": "60b30205a11d257ecd200edaacdfee52",
292
+ "metadata": "{\"compiler\":{\"version\":\"0.8.22+commit.4fc1097e\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_stargate\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_permit2\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"Transfer_ApproveFailed\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint32\",\"name\":\"dstEid\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"to\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountLD\",\"type\":\"uint256\"}],\"name\":\"IntentSent\",\"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\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"permit2\",\"outputs\":[{\"internalType\":\"contract IPermit2\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"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\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"internalType\":\"struct IntentBase.IntentSend\",\"name\":\"_intentSend\",\"type\":\"tuple\"},{\"internalType\":\"bytes\",\"name\":\"_oftCmd\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"_signature\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"_intentFee\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_refundAddress\",\"type\":\"address\"}],\"name\":\"send\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"stargate\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"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\":[{\"internalType\":\"address\",\"name\":\"_token\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"withdrawFee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions. 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.\"},\"send((address,uint32,bytes32,uint256,uint256,uint256,uint256),bytes,bytes,uint256,address)\":{\"details\":\"get the signature with the permit2 sdk https://github.com/Uniswap/permit2-sdk/blob/main/src/signatureTransfer.ts\"},\"transferOwnership(address)\":{\"details\":\"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"src/intent/IntentOFT.sol\":\"IntentOFT\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":15000},\"remappings\":[]},\"sources\":{\"@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/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/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-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/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/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/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\"},\"src/intent/IntentBase.sol\":{\"content\":\"// SPDX-License-Identifier: BUSL-1.1\\npragma solidity ^0.8.22;\\n\\nimport { Ownable } from \\\"@openzeppelin/contracts/access/Ownable.sol\\\";\\n\\nimport { SendParam, MessagingFee } from \\\"@layerzerolabs/lz-evm-oapp-v2/contracts/oft/interfaces/IOFT.sol\\\";\\n\\nimport { IStargate } from \\\"../interfaces/IStargate.sol\\\";\\nimport { IPermit2, ISignatureTransfer } from \\\"../interfaces/permit2/IPermit2.sol\\\";\\nimport { Transfer } from \\\"../libs/Transfer.sol\\\";\\n\\nabstract contract IntentBase is Ownable {\\n string internal constant TOKEN_PERMISSIONS_TYPE = \\\"TokenPermissions(address token,uint256 amount)\\\";\\n bytes private constant INTENT_SEND_TYPE =\\n abi.encodePacked(\\n \\\"IntentSend(\\\",\\n \\\"address sender,\\\",\\n \\\"uint32 dstEid,\\\",\\n \\\"bytes32 to,\\\",\\n \\\"uint256 amountLD,\\\",\\n \\\"uint256 minAmountLD,\\\",\\n \\\"uint256 nonce,\\\",\\n \\\"uint256 deadline)\\\"\\n );\\n bytes32 private constant INTENT_SEND_TYPE_HASH = keccak256(INTENT_SEND_TYPE);\\n string private constant INTENT_SEND_PERMIT2_TYPE =\\n string(abi.encodePacked(\\\"IntentSend witness)\\\", INTENT_SEND_TYPE, TOKEN_PERMISSIONS_TYPE));\\n\\n address public immutable stargate;\\n address public immutable token;\\n IPermit2 public immutable permit2;\\n\\n // the witness struct for permit2\\n struct IntentSend {\\n address sender;\\n uint32 dstEid;\\n bytes32 to;\\n uint256 amountLD;\\n uint256 minAmountLD;\\n uint256 nonce;\\n uint256 deadline;\\n }\\n\\n event IntentSent(address indexed sender, uint32 indexed dstEid, bytes32 to, uint256 amountLD);\\n\\n constructor(address _stargate, address _permit2) {\\n stargate = _stargate;\\n token = IStargate(_stargate).token();\\n permit2 = IPermit2(_permit2);\\n _tokenApprove();\\n }\\n\\n function withdrawFee(address _token, address _to, uint256 _amount) external onlyOwner {\\n Transfer.transfer(_token, _to, _amount, false);\\n }\\n\\n /// @dev get the signature with the permit2 sdk https://github.com/Uniswap/permit2-sdk/blob/main/src/signatureTransfer.ts\\n function send(\\n IntentSend calldata _intentSend,\\n bytes calldata _oftCmd,\\n bytes calldata _signature,\\n uint256 _intentFee,\\n address _refundAddress\\n ) external payable onlyOwner {\\n _permitWitnessTransferFrom(_intentSend, _signature);\\n _send(_intentSend, _oftCmd, _intentFee, _refundAddress);\\n emit IntentSent(_intentSend.sender, _intentSend.dstEid, _intentSend.to, _intentSend.amountLD);\\n }\\n\\n function _send(\\n IntentSend calldata _intentSend,\\n bytes calldata _oftCmd,\\n uint256 _intentFee,\\n address _refundAddress\\n ) internal virtual {\\n uint256 nativeFee = msg.value;\\n uint256 amountIn = _intentSend.amountLD - _intentFee; // after paying intent fee\\n uint256 msgValue = _getMsgValue(nativeFee, amountIn);\\n IStargate(stargate).send{ value: msgValue }(\\n SendParam({\\n dstEid: _intentSend.dstEid,\\n to: _intentSend.to,\\n amountLD: amountIn,\\n minAmountLD: _intentSend.minAmountLD,\\n extraOptions: \\\"\\\",\\n composeMsg: \\\"\\\", // not allowed to compose\\n oftCmd: _oftCmd\\n }),\\n MessagingFee(nativeFee, 0),\\n _refundAddress\\n );\\n }\\n\\n function _permitWitnessTransferFrom(IntentSend calldata _intentSend, bytes calldata _signature) internal {\\n // check signature and transfer token from sender\\n ISignatureTransfer.PermitTransferFrom memory permit = ISignatureTransfer.PermitTransferFrom({\\n permitted: ISignatureTransfer.TokenPermissions({ token: _intentSendToken(), amount: _intentSend.amountLD }),\\n nonce: _intentSend.nonce,\\n deadline: _intentSend.deadline\\n });\\n ISignatureTransfer.SignatureTransferDetails memory transfer = ISignatureTransfer.SignatureTransferDetails({\\n to: address(this),\\n requestedAmount: _intentSend.amountLD\\n });\\n permit2.permitWitnessTransferFrom(\\n permit,\\n transfer,\\n _intentSend.sender,\\n _hashIntentSend(_intentSend),\\n INTENT_SEND_PERMIT2_TYPE,\\n _signature\\n );\\n }\\n\\n function _hashIntentSend(IntentSend calldata _intentSend) internal pure returns (bytes32) {\\n return\\n keccak256(\\n abi.encode(\\n INTENT_SEND_TYPE_HASH,\\n _intentSend.sender,\\n _intentSend.dstEid,\\n _intentSend.to,\\n _intentSend.amountLD,\\n _intentSend.minAmountLD,\\n _intentSend.nonce,\\n _intentSend.deadline\\n )\\n );\\n }\\n\\n /// @dev The msgValue is only for the native messaging fee by default\\n function _getMsgValue(uint256 _nativeFee, uint256 /*_amountIn*/) internal pure virtual returns (uint256) {\\n return _nativeFee;\\n }\\n\\n /// @dev get the token address for intent send\\n function _intentSendToken() internal view virtual returns (address) {\\n return token;\\n }\\n\\n function _tokenApprove() internal virtual {\\n Transfer.safeApproveToken(token, address(stargate), type(uint256).max);\\n }\\n}\\n\",\"keccak256\":\"0x5ebc71793ca2c83188e2262548300da6aa06ef892e377e6d1fc1d1c8c4b8199c\",\"license\":\"BUSL-1.1\"},\"src/intent/IntentOFT.sol\":{\"content\":\"// SPDX-License-Identifier: BUSL-1.1\\npragma solidity ^0.8.22;\\n\\nimport { IntentBase } from \\\"./IntentBase.sol\\\";\\n\\ncontract IntentOFT is IntentBase {\\n constructor(address _stargate, address _permit2) IntentBase(_stargate, _permit2) {}\\n}\\n\",\"keccak256\":\"0xc7ff36937ddf42f4d71cabca0f9caf6b7a413a8de0549df49a95130068a8e64c\",\"license\":\"BUSL-1.1\"},\"src/interfaces/IStargate.sol\":{\"content\":\"// SPDX-License-Identifier: BUSL-1.1\\npragma solidity ^0.8.0;\\n\\nimport { IOFT, SendParam, MessagingFee, MessagingReceipt, OFTReceipt } from \\\"@layerzerolabs/lz-evm-oapp-v2/contracts/oft/interfaces/IOFT.sol\\\";\\n\\nenum StargateType {\\n Pool,\\n OFT\\n}\\n\\nstruct Ticket {\\n uint56 ticketId;\\n bytes passenger;\\n}\\n\\nstruct RideBusOptions {\\n uint128 extraFare;\\n uint128 nativeDropAmount;\\n uint128 lzComposeGas;\\n uint128 lzComposeValue;\\n}\\n\\ninterface IStargate is IOFT {\\n /// @dev This function is same as `send` in OFT interface but returns the passenger data if in the bus ride mode,\\n /// which allows the caller to ride and drive the bus in the same transaction.\\n function sendToken(\\n SendParam calldata _sendParam,\\n MessagingFee calldata _fee,\\n address _refundAddress\\n ) external payable returns (MessagingReceipt memory msgReceipt, OFTReceipt memory oftReceipt, Ticket memory ticket);\\n\\n /// @dev Quote the extra bus fare and return the ride bus options details.\\n function quoteRideBusOptions(\\n uint32 _dstEid,\\n bytes calldata _options,\\n uint256 _composeMsgSize\\n ) external view returns (RideBusOptions memory rideBusOptions);\\n\\n function stargateType() external pure returns (StargateType);\\n}\\n\",\"keccak256\":\"0xbd52e93306691b61b8609c738fc43c02243b6fdbcd066398ce183e448848b168\",\"license\":\"BUSL-1.1\"},\"src/interfaces/permit2/IAllowanceTransfer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport { IEIP712 } from \\\"./IEIP712.sol\\\";\\n\\n/// @title AllowanceTransfer\\n/// @notice Handles ERC20 token permissions through signature based allowance setting and ERC20 token transfers by checking allowed amounts\\n/// @dev Requires user's token approval on the Permit2 contract\\ninterface IAllowanceTransfer is IEIP712 {\\n /// @notice Thrown when an allowance on a token has expired.\\n /// @param deadline The timestamp at which the allowed amount is no longer valid\\n error AllowanceExpired(uint256 deadline);\\n\\n /// @notice Thrown when an allowance on a token has been depleted.\\n /// @param amount The maximum amount allowed\\n error InsufficientAllowance(uint256 amount);\\n\\n /// @notice Thrown when too many nonces are invalidated.\\n error ExcessiveInvalidation();\\n\\n /// @notice Emits an event when the owner successfully invalidates an ordered nonce.\\n event NonceInvalidation(\\n address indexed owner,\\n address indexed token,\\n address indexed spender,\\n uint48 newNonce,\\n uint48 oldNonce\\n );\\n\\n /// @notice Emits an event when the owner successfully sets permissions on a token for the spender.\\n event Approval(\\n address indexed owner,\\n address indexed token,\\n address indexed spender,\\n uint160 amount,\\n uint48 expiration\\n );\\n\\n /// @notice Emits an event when the owner successfully sets permissions using a permit signature on a token for the spender.\\n event Permit(\\n address indexed owner,\\n address indexed token,\\n address indexed spender,\\n uint160 amount,\\n uint48 expiration,\\n uint48 nonce\\n );\\n\\n /// @notice Emits an event when the owner sets the allowance back to 0 with the lockdown function.\\n event Lockdown(address indexed owner, address token, address spender);\\n\\n /// @notice The permit data for a token\\n struct PermitDetails {\\n // ERC20 token address\\n address token;\\n // the maximum amount allowed to spend\\n uint160 amount;\\n // timestamp at which a spender's token allowances become invalid\\n uint48 expiration;\\n // an incrementing value indexed per owner,token,and spender for each signature\\n uint48 nonce;\\n }\\n\\n /// @notice The permit message signed for a single token allowance\\n struct PermitSingle {\\n // the permit data for a single token alownce\\n PermitDetails details;\\n // address permissioned on the allowed tokens\\n address spender;\\n // deadline on the permit signature\\n uint256 sigDeadline;\\n }\\n\\n /// @notice The permit message signed for multiple token allowances\\n struct PermitBatch {\\n // the permit data for multiple token allowances\\n PermitDetails[] details;\\n // address permissioned on the allowed tokens\\n address spender;\\n // deadline on the permit signature\\n uint256 sigDeadline;\\n }\\n\\n /// @notice The saved permissions\\n /// @dev This info is saved per owner, per token, per spender and all signed over in the permit message\\n /// @dev Setting amount to type(uint160).max sets an unlimited approval\\n struct PackedAllowance {\\n // amount allowed\\n uint160 amount;\\n // permission expiry\\n uint48 expiration;\\n // an incrementing value indexed per owner,token,and spender for each signature\\n uint48 nonce;\\n }\\n\\n /// @notice A token spender pair.\\n struct TokenSpenderPair {\\n // the token the spender is approved\\n address token;\\n // the spender address\\n address spender;\\n }\\n\\n /// @notice Details for a token transfer.\\n struct AllowanceTransferDetails {\\n // the owner of the token\\n address from;\\n // the recipient of the token\\n address to;\\n // the amount of the token\\n uint160 amount;\\n // the token to be transferred\\n address token;\\n }\\n\\n /// @notice A mapping from owner address to token address to spender address to PackedAllowance struct, which contains details and conditions of the approval.\\n /// @notice The mapping is indexed in the above order see: allowance[ownerAddress][tokenAddress][spenderAddress]\\n /// @dev The packed slot holds the allowed amount, expiration at which the allowed amount is no longer valid, and current nonce thats updated on any signature based approvals.\\n function allowance(\\n address user,\\n address token,\\n address spender\\n ) external view returns (uint160 amount, uint48 expiration, uint48 nonce);\\n\\n /// @notice Approves the spender to use up to amount of the specified token up until the expiration\\n /// @param token The token to approve\\n /// @param spender The spender address to approve\\n /// @param amount The approved amount of the token\\n /// @param expiration The timestamp at which the approval is no longer valid\\n /// @dev The packed allowance also holds a nonce, which will stay unchanged in approve\\n /// @dev Setting amount to type(uint160).max sets an unlimited approval\\n function approve(address token, address spender, uint160 amount, uint48 expiration) external;\\n\\n /// @notice Permit a spender to a given amount of the owners token via the owner's EIP-712 signature\\n /// @dev May fail if the owner's nonce was invalidated in-flight by invalidateNonce\\n /// @param owner The owner of the tokens being approved\\n /// @param permitSingle Data signed over by the owner specifying the terms of approval\\n /// @param signature The owner's signature over the permit data\\n function permit(address owner, PermitSingle memory permitSingle, bytes calldata signature) external;\\n\\n /// @notice Permit a spender to the signed amounts of the owners tokens via the owner's EIP-712 signature\\n /// @dev May fail if the owner's nonce was invalidated in-flight by invalidateNonce\\n /// @param owner The owner of the tokens being approved\\n /// @param permitBatch Data signed over by the owner specifying the terms of approval\\n /// @param signature The owner's signature over the permit data\\n function permit(address owner, PermitBatch memory permitBatch, bytes calldata signature) external;\\n\\n /// @notice Transfer approved tokens from one address to another\\n /// @param from The address to transfer from\\n /// @param to The address of the recipient\\n /// @param amount The amount of the token to transfer\\n /// @param token The token address to transfer\\n /// @dev Requires the from address to have approved at least the desired amount\\n /// of tokens to msg.sender.\\n function transferFrom(address from, address to, uint160 amount, address token) external;\\n\\n /// @notice Transfer approved tokens in a batch\\n /// @param transferDetails Array of owners, recipients, amounts, and tokens for the transfers\\n /// @dev Requires the from addresses to have approved at least the desired amount\\n /// of tokens to msg.sender.\\n function transferFrom(AllowanceTransferDetails[] calldata transferDetails) external;\\n\\n /// @notice Enables performing a \\\"lockdown\\\" of the sender's Permit2 identity\\n /// by batch revoking approvals\\n /// @param approvals Array of approvals to revoke.\\n function lockdown(TokenSpenderPair[] calldata approvals) external;\\n\\n /// @notice Invalidate nonces for a given (token, spender) pair\\n /// @param token The token to invalidate nonces for\\n /// @param spender The spender to invalidate nonces for\\n /// @param newNonce The new nonce to set. Invalidates all nonces less than it.\\n /// @dev Can't invalidate more than 2**16 nonces per transaction.\\n function invalidateNonces(address token, address spender, uint48 newNonce) external;\\n}\\n\",\"keccak256\":\"0x785b8d861d0e73d5384edf80dbbf2cd153bcafc171a20abe81ea93ebb8557bea\",\"license\":\"MIT\"},\"src/interfaces/permit2/IEIP712.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface IEIP712 {\\n function DOMAIN_SEPARATOR() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0xfdccf2b9639070803cd0e4198427fb0df3cc452ca59bd3b8a0d957a9a4254138\",\"license\":\"MIT\"},\"src/interfaces/permit2/IPermit2.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport { ISignatureTransfer } from \\\"./ISignatureTransfer.sol\\\";\\nimport { IAllowanceTransfer } from \\\"./IAllowanceTransfer.sol\\\";\\n\\n/// @notice Permit2 handles signature-based transfers in SignatureTransfer and allowance-based transfers in AllowanceTransfer.\\n/// @dev Users must approve Permit2 before calling any of the transfer functions.\\ninterface IPermit2 is ISignatureTransfer, IAllowanceTransfer {\\n // IPermit2 unifies the two interfaces so users have maximal flexibility with their approval.\\n}\\n\",\"keccak256\":\"0xe0e20e4acb27e07804a740d23609cdbc04815bd525eb6787e1983ed5178408b2\",\"license\":\"MIT\"},\"src/interfaces/permit2/ISignatureTransfer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport { IEIP712 } from \\\"./IEIP712.sol\\\";\\n\\n/// @title SignatureTransfer\\n/// @notice Handles ERC20 token transfers through signature based actions\\n/// @dev Requires user's token approval on the Permit2 contract\\ninterface ISignatureTransfer is IEIP712 {\\n /// @notice Thrown when the requested amount for a transfer is larger than the permissioned amount\\n /// @param maxAmount The maximum amount a spender can request to transfer\\n error InvalidAmount(uint256 maxAmount);\\n\\n /// @notice Thrown when the number of tokens permissioned to a spender does not match the number of tokens being transferred\\n /// @dev If the spender does not need to transfer the number of tokens permitted, the spender can request amount 0 to be transferred\\n error LengthMismatch();\\n\\n /// @notice Emits an event when the owner successfully invalidates an unordered nonce.\\n event UnorderedNonceInvalidation(address indexed owner, uint256 word, uint256 mask);\\n\\n /// @notice The token and amount details for a transfer signed in the permit transfer signature\\n struct TokenPermissions {\\n // ERC20 token address\\n address token;\\n // the maximum amount that can be spent\\n uint256 amount;\\n }\\n\\n /// @notice The signed permit message for a single token transfer\\n struct PermitTransferFrom {\\n TokenPermissions permitted;\\n // a unique value for every token owner's signature to prevent signature replays\\n uint256 nonce;\\n // deadline on the permit signature\\n uint256 deadline;\\n }\\n\\n /// @notice Specifies the recipient address and amount for batched transfers.\\n /// @dev Recipients and amounts correspond to the index of the signed token permissions array.\\n /// @dev Reverts if the requested amount is greater than the permitted signed amount.\\n struct SignatureTransferDetails {\\n // recipient address\\n address to;\\n // spender requested amount\\n uint256 requestedAmount;\\n }\\n\\n /// @notice Used to reconstruct the signed permit message for multiple token transfers\\n /// @dev Do not need to pass in spender address as it is required that it is msg.sender\\n /// @dev Note that a user still signs over a spender address\\n struct PermitBatchTransferFrom {\\n // the tokens and corresponding amounts permitted for a transfer\\n TokenPermissions[] permitted;\\n // a unique value for every token owner's signature to prevent signature replays\\n uint256 nonce;\\n // deadline on the permit signature\\n uint256 deadline;\\n }\\n\\n /// @notice A map from token owner address and a caller specified word index to a bitmap. Used to set bits in the bitmap to prevent against signature replay protection\\n /// @dev Uses unordered nonces so that permit messages do not need to be spent in a certain order\\n /// @dev The mapping is indexed first by the token owner, then by an index specified in the nonce\\n /// @dev It returns a uint256 bitmap\\n /// @dev The index, or wordPosition is capped at type(uint248).max\\n function nonceBitmap(address, uint256) external view returns (uint256);\\n\\n /// @notice Transfers a token using a signed permit message\\n /// @dev Reverts if the requested amount is greater than the permitted signed amount\\n /// @param permit The permit data signed over by the owner\\n /// @param owner The owner of the tokens to transfer\\n /// @param transferDetails The spender's requested transfer details for the permitted token\\n /// @param signature The signature to verify\\n function permitTransferFrom(\\n PermitTransferFrom memory permit,\\n SignatureTransferDetails calldata transferDetails,\\n address owner,\\n bytes calldata signature\\n ) external;\\n\\n /// @notice Transfers a token using a signed permit message\\n /// @notice Includes extra data provided by the caller to verify signature over\\n /// @dev The witness type string must follow EIP712 ordering of nested structs and must include the TokenPermissions type definition\\n /// @dev Reverts if the requested amount is greater than the permitted signed amount\\n /// @param permit The permit data signed over by the owner\\n /// @param owner The owner of the tokens to transfer\\n /// @param transferDetails The spender's requested transfer details for the permitted token\\n /// @param witness Extra data to include when checking the user signature\\n /// @param witnessTypeString The EIP-712 type definition for remaining string stub of the typehash\\n /// @param signature The signature to verify\\n function permitWitnessTransferFrom(\\n PermitTransferFrom memory permit,\\n SignatureTransferDetails calldata transferDetails,\\n address owner,\\n bytes32 witness,\\n string calldata witnessTypeString,\\n bytes calldata signature\\n ) external;\\n\\n /// @notice Transfers multiple tokens using a signed permit message\\n /// @param permit The permit data signed over by the owner\\n /// @param owner The owner of the tokens to transfer\\n /// @param transferDetails Specifies the recipient and requested amount for the token transfer\\n /// @param signature The signature to verify\\n function permitTransferFrom(\\n PermitBatchTransferFrom memory permit,\\n SignatureTransferDetails[] calldata transferDetails,\\n address owner,\\n bytes calldata signature\\n ) external;\\n\\n /// @notice Transfers multiple tokens using a signed permit message\\n /// @dev The witness type string must follow EIP712 ordering of nested structs and must include the TokenPermissions type definition\\n /// @notice Includes extra data provided by the caller to verify signature over\\n /// @param permit The permit data signed over by the owner\\n /// @param owner The owner of the tokens to transfer\\n /// @param transferDetails Specifies the recipient and requested amount for the token transfer\\n /// @param witness Extra data to include when checking the user signature\\n /// @param witnessTypeString The EIP-712 type definition for remaining string stub of the typehash\\n /// @param signature The signature to verify\\n function permitWitnessTransferFrom(\\n PermitBatchTransferFrom memory permit,\\n SignatureTransferDetails[] calldata transferDetails,\\n address owner,\\n bytes32 witness,\\n string calldata witnessTypeString,\\n bytes calldata signature\\n ) external;\\n\\n /// @notice Invalidates the bits specified in mask for the bitmap at the word position\\n /// @dev The wordPos is maxed at type(uint248).max\\n /// @param wordPos A number to index the nonceBitmap at\\n /// @param mask A bitmap masked against msg.sender's current bitmap at the word position\\n function invalidateUnorderedNonces(uint256 wordPos, uint256 mask) external;\\n}\\n\",\"keccak256\":\"0x2cb3b8fea70d6644fb25a9518780c022b77c1d83ed2c85dbcfbd74f5dab47305\",\"license\":\"MIT\"},\"src/libs/Transfer.sol\":{\"content\":\"// SPDX-License-Identifier: BUSL-1.1\\npragma solidity ^0.8.22;\\n\\nimport { IERC20 } from \\\"@openzeppelin/contracts/token/ERC20/IERC20.sol\\\";\\n\\n/// @dev WARNING: Transferring tokens, when the token address is wrong, will fail silently.\\nlibrary Transfer {\\n error Transfer_TransferFailed();\\n error Transfer_ApproveFailed();\\n\\n /// @notice Transfer native coin to an account\\n /// @dev If gas is unlimited, we pass 63/64 of the gasleft()\\n /// @param _to The account to transfer native coin to\\n /// @param _value The amount of native coin to transfer\\n /// @param _gasLimited Whether to limit the amount of gas to 2300\\n /// @return success Whether the transfer was successful\\n function transferNative(address _to, uint256 _value, bool _gasLimited) internal returns (bool success) {\\n (success, ) = _gasLimited ? _to.call{ value: _value, gas: 2300 }(\\\"\\\") : _to.call{ value: _value }(\\\"\\\");\\n }\\n\\n /// @notice Transfer an ERC20 token from the sender to an account\\n /// @param _token The address of the ERC20 token to send\\n /// @param _to The receiving account\\n /// @param _value The amount of tokens to transfer\\n /// @return success Whether the transfer was successful or not\\n function transferToken(address _token, address _to, uint256 _value) internal returns (bool success) {\\n success = _call(_token, abi.encodeWithSelector(IERC20(_token).transfer.selector, _to, _value));\\n }\\n\\n /// @notice Transfer an ERC20 token from one account to another\\n /// @param _token The address of the ERC20 token to send\\n /// @param _from The source account\\n /// @param _to The destination account\\n /// @param _value The amount of tokens to transfer\\n /// @return success Whether the transfer was successful or not\\n function transferTokenFrom(\\n address _token,\\n address _from,\\n address _to,\\n uint256 _value\\n ) internal returns (bool success) {\\n success = _call(_token, abi.encodeWithSelector(IERC20(_token).transferFrom.selector, _from, _to, _value));\\n }\\n\\n /// @notice Transfer either native coin or ERC20 token from the sender to an account\\n /// @param _token The ERC20 address or 0x0 if native is desired\\n /// @param _to The destination account\\n /// @param _value the amount to transfer\\n /// @param _gasLimited Whether to limit the amount of gas when doing a native transfer\\n /// @return success Whether the transfer was successful or not\\n function transfer(address _token, address _to, uint256 _value, bool _gasLimited) internal returns (bool success) {\\n if (_token == address(0)) {\\n success = transferNative(_to, _value, _gasLimited);\\n } else {\\n success = transferToken(_token, _to, _value);\\n }\\n }\\n\\n /// @notice Approve a given amount of token for an account\\n /// @param _token The OFT contract to use for approval\\n /// @param _spender The account to approve\\n /// @param _value The amount of tokens to approve\\n /// @return success Whether the approval succeeded\\n function approveToken(address _token, address _spender, uint256 _value) internal returns (bool success) {\\n success = _call(_token, abi.encodeWithSelector(IERC20(_token).approve.selector, _spender, _value));\\n }\\n\\n /// @notice Transfer native coin to an account or revert\\n /// @dev Reverts with TransferFailed if the transfer failed\\n /// @param _to The account to transfer native coin to\\n /// @param _value The amount of native coin to transfer\\n /// @param _gasLimited Whether to limit the amount of gas to 2300\\n function safeTransferNative(address _to, uint256 _value, bool _gasLimited) internal {\\n if (!transferNative(_to, _value, _gasLimited)) revert Transfer_TransferFailed();\\n }\\n\\n /// @notice Transfer an ERC20 token from one account to another or revert\\n /// @dev Reverts with TransferFailed when the transfer fails\\n /// @param _token The address of the ERC20 token to send\\n /// @param _to The destination account\\n /// @param _value The amount of tokens to transfer\\n function safeTransferToken(address _token, address _to, uint256 _value) internal {\\n if (!transferToken(_token, _to, _value)) revert Transfer_TransferFailed();\\n }\\n\\n /// @notice Transfer an ERC20 token from one account to another\\n /// @dev Reverts with TransferFailed when the transfer fails\\n /// @param _token The address of the ERC20 token to send\\n /// @param _from The source account\\n /// @param _to The destination account\\n /// @param _value The amount of tokens to transfer\\n function safeTransferTokenFrom(address _token, address _from, address _to, uint256 _value) internal {\\n if (!transferTokenFrom(_token, _from, _to, _value)) revert Transfer_TransferFailed();\\n }\\n\\n /// @notice Transfer either native coin or ERC20 token from the sender to an account\\n /// @dev Reverts with TransferFailed when the transfer fails\\n /// @param _token The ERC20 address or 0x0 if native is desired\\n /// @param _to The destination account\\n /// @param _value the amount to transfer\\n /// @param _gasLimited Whether to limit the amount of gas when doing a native transfer\\n function safeTransfer(address _token, address _to, uint256 _value, bool _gasLimited) internal {\\n if (!transfer(_token, _to, _value, _gasLimited)) revert Transfer_TransferFailed();\\n }\\n\\n /// @notice Approve a given amount of token for an account or revert\\n /// @dev Reverts with ApproveFailed if the approval failed\\n /// @param _token The OFT contract to use for approval\\n /// @param _spender The account to approve\\n /// @param _value The amount of tokens to approve\\n function safeApproveToken(address _token, address _spender, uint256 _value) internal {\\n if (!approveToken(_token, _spender, _value)) revert Transfer_ApproveFailed();\\n }\\n\\n function _call(address _token, bytes memory _data) private returns (bool success) {\\n (bool s, bytes memory returndata) = _token.call(_data);\\n success = s ? returndata.length == 0 || abi.decode(returndata, (bool)) : false;\\n }\\n}\\n\",\"keccak256\":\"0xfd39583ff2f141d4f0cc02050b95207a622aafda70671a35472e6b694297f30f\",\"license\":\"BUSL-1.1\"}},\"version\":1}",
293
+ "bytecode": "0x60e06040523480156200001157600080fd5b50604051620016f7380380620016f7833981016040819052620000349162000294565b81816200004133620000d9565b6001600160a01b038216608081905260408051637e062a3560e11b8152905163fc0c546a916004808201926020929091908290030181865afa1580156200008c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620000b29190620002cc565b6001600160a01b0390811660a052811660c052620000cf62000129565b5050505062000346565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6200014260a0516080516000196200014460201b60201c565b565b6200015183838362000174565b6200016f576040516373c4154f60e01b815260040160405180910390fd5b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b0390811663095ea7b360e01b17909152600091620001d091869190620001d816565b949350505050565b6000806000846001600160a01b031684604051620001f79190620002f1565b6000604051808303816000865af19150503d806000811462000236576040519150601f19603f3d011682016040523d82523d6000602084013e6200023b565b606091505b5091509150816200024e5760006200026e565b805115806200026e5750808060200190518101906200026e919062000322565b95945050505050565b80516001600160a01b03811681146200028f57600080fd5b919050565b60008060408385031215620002a857600080fd5b620002b38362000277565b9150620002c36020840162000277565b90509250929050565b600060208284031215620002df57600080fd5b620002ea8262000277565b9392505050565b6000825160005b81811015620003145760208186018101518583015201620002f8565b506000920191825250919050565b6000602082840312156200033557600080fd5b81518015158114620002ea57600080fd5b60805160a05160c05161136d6200038a6000396000818160b401526105310152600081816101b801526104ce0152600081816101110152610768015261136d6000f3fe60806040526004361061007b5760003560e01c806388e195351161004e57806388e19535146101485780638da5cb5b1461015b578063f2fde38b14610186578063fc0c546a146101a657600080fd5b80631095b6d71461008057806312261ee7146100a25780636c099dee146100ff578063715018a614610133575b600080fd5b34801561008c57600080fd5b506100a061009b366004610d42565b6101da565b005b3480156100ae57600080fd5b506100d67f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b34801561010b57600080fd5b506100d67f000000000000000000000000000000000000000000000000000000000000000081565b34801561013f57600080fd5b506100a06101f5565b6100a0610156366004610dc7565b610209565b34801561016757600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff166100d6565b34801561019257600080fd5b506100a06101a1366004610e6d565b6102b5565b3480156101b257600080fd5b506100d67f000000000000000000000000000000000000000000000000000000000000000081565b6101e2610371565b6101ef83838360006103f2565b50505050565b6101fd610371565b6102076000610437565b565b610211610371565b61021c8785856104ac565b6102298787878585610745565b6102396040880160208901610e8f565b63ffffffff1661024c6020890189610e6d565b73ffffffffffffffffffffffffffffffffffffffff167fcccecabef4685fec18cb21dd1732514f063e7add1c432277e0fa89ffb486fb4689604001358a606001356040516102a4929190918252602082015260400190565b60405180910390a350505050505050565b6102bd610371565b73ffffffffffffffffffffffffffffffffffffffff8116610365576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b61036e81610437565b50565b60005473ffffffffffffffffffffffffffffffffffffffff163314610207576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161035c565b600073ffffffffffffffffffffffffffffffffffffffff85166104215761041a8484846108e5565b905061042f565b61042c8585856109b8565b90505b949350505050565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040805160a0808201835273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000081166060808501918252880135608085018190529084529187013560208085019190915260c0880135848601528451808601909552308552848101929092529192917f0000000000000000000000000000000000000000000000000000000000000000169063137c29fe9084908490610568908a018a610e6d565b6105718a610a48565b604080517f496e74656e7453656e642800000000000000000000000000000000000000000060208201527f616464726573732073656e6465722c0000000000000000000000000000000000602b8201527f75696e743332206473744569642c000000000000000000000000000000000000603a8201527f6279746573333220746f2c00000000000000000000000000000000000000000060488201527f75696e7432353620616d6f756e744c442c00000000000000000000000000000060538201527f75696e74323536206d696e416d6f756e744c442c00000000000000000000000060648201527f75696e74323536206e6f6e63652c00000000000000000000000000000000000060788201527f75696e7432353620646561646c696e652900000000000000000000000000000060868201528151607781830301815260f78201909252602e609782018181529161130a9060b701396040516020016106d9929190610ed9565b6040516020818303038152906040528a8a6040518863ffffffff1660e01b815260040161070c9796959493929190610f7e565b600060405180830381600087803b15801561072657600080fd5b505af115801561073a573d6000803e3d6000fd5b505050505050505050565b34600061075684606089013561107c565b905060006107648383610c6e565b90507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663c7c7f5b3826040518060e001604052808c60200160208101906107c19190610e8f565b63ffffffff1681526020018c6040013581526020018681526020018c6080013581526020016040518060200160405280600081525081526020016040518060200160405280600081525081526020018b8b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201829052509390945250506040805180820182528a81526020810192909252517fffffffff0000000000000000000000000000000000000000000000000000000060e087901b1681526108969392508a906004016110b6565b60c06040518083038185885af11580156108b4573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906108d99190611210565b50505050505050505050565b60008161094d5760405173ffffffffffffffffffffffffffffffffffffffff8516908490600081818185875af1925050503d8060008114610942576040519150601f19603f3d011682016040523d82523d6000602084013e610947565b606091505b506109af565b60405173ffffffffffffffffffffffffffffffffffffffff8516906108fc9085906000818181858888f193505050503d80600081146109a8576040519150601f19603f3d011682016040523d82523d6000602084013e6109ad565b606091505b505b50949350505050565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb0000000000000000000000000000000000000000000000000000000017905260009061042f908590610c76565b6040517f496e74656e7453656e642800000000000000000000000000000000000000000060208201527f616464726573732073656e6465722c0000000000000000000000000000000000602b8201527f75696e743332206473744569642c000000000000000000000000000000000000603a8201527f6279746573333220746f2c00000000000000000000000000000000000000000060488201527f75696e7432353620616d6f756e744c442c00000000000000000000000000000060538201527f75696e74323536206d696e416d6f756e744c442c00000000000000000000000060648201527f75696e74323536206e6f6e63652c00000000000000000000000000000000000060788201527f75696e7432353620646561646c696e65290000000000000000000000000000006086820152600090609701604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152919052805160209182012090610bc490840184610e6d565b610bd46040850160208601610e8f565b8460400135856060013586608001358760a001358860c00135604051602001610c5198979695949392919097885273ffffffffffffffffffffffffffffffffffffffff96909616602088015263ffffffff9490941660408701526060860192909252608085015260a084015260c083015260e08201526101000190565b604051602081830303815290604052805190602001209050919050565b815b92915050565b60008060008473ffffffffffffffffffffffffffffffffffffffff1684604051610ca091906112cb565b6000604051808303816000865af19150503d8060008114610cdd576040519150601f19603f3d011682016040523d82523d6000602084013e610ce2565b606091505b509150915081610cf3576000610d10565b80511580610d10575080806020019051810190610d1091906112e7565b95945050505050565b803573ffffffffffffffffffffffffffffffffffffffff81168114610d3d57600080fd5b919050565b600080600060608486031215610d5757600080fd5b610d6084610d19565b9250610d6e60208501610d19565b9150604084013590509250925092565b60008083601f840112610d9057600080fd5b50813567ffffffffffffffff811115610da857600080fd5b602083019150836020828501011115610dc057600080fd5b9250929050565b6000806000806000806000878903610160811215610de457600080fd5b60e0811215610df257600080fd5b5087965060e088013567ffffffffffffffff80821115610e1157600080fd5b610e1d8b838c01610d7e565b90985096506101008a0135915080821115610e3757600080fd5b50610e448a828b01610d7e565b9095509350506101208801359150610e5f6101408901610d19565b905092959891949750929550565b600060208284031215610e7f57600080fd5b610e8882610d19565b9392505050565b600060208284031215610ea157600080fd5b813563ffffffff81168114610e8857600080fd5b60005b83811015610ed0578181015183820152602001610eb8565b50506000910152565b7f496e74656e7453656e64207769746e6573732900000000000000000000000000815260008351610f11816013850160208801610eb5565b835190830190610f28816013840160208801610eb5565b01601301949350505050565b60008151808452610f4c816020860160208601610eb5565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b6000610140610fae838b51805173ffffffffffffffffffffffffffffffffffffffff168252602090810151910152565b60208a0151604084015260408a01516060840152610fef608084018a805173ffffffffffffffffffffffffffffffffffffffff168252602090810151910152565b73ffffffffffffffffffffffffffffffffffffffff881660c08401528660e08401528061010084015261102481840187610f34565b90508281036101208401528381528385602083013760006020858301015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f86011682010191505098975050505050505050565b81810381811115610c70577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6080815263ffffffff8451166080820152602084015160a0820152604084015160c0820152606084015160e08201526000608085015160e0610100840152611102610160840182610f34565b905060a08601517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff80808584030161012086015261113f8383610f34565b925060c0880151915080858403016101408601525061115e8282610f34565b92505050611179602083018580518252602090810151910152565b73ffffffffffffffffffffffffffffffffffffffff8316606083015261042f565b6000604082840312156111ac57600080fd5b6040516040810181811067ffffffffffffffff821117156111f6577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604052825181526020928301519281019290925250919050565b60008082840360c081121561122457600080fd5b608081121561123257600080fd5b506040516060810167ffffffffffffffff828210818311171561127e577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b816040528551835260208601519150808216821461129b57600080fd5b5060208201526112ae856040860161119a565b604082015291506112c2846080850161119a565b90509250929050565b600082516112dd818460208701610eb5565b9190910192915050565b6000602082840312156112f957600080fd5b81518015158114610e8857600080fdfe546f6b656e5065726d697373696f6e73286164647265737320746f6b656e2c75696e7432353620616d6f756e7429a2646970667358221220acebafea4b9c71cf695c69f6a07f3a57c93e13398468329b3c845553b6e807a564736f6c63430008160033",
294
+ "deployedBytecode": "0x60806040526004361061007b5760003560e01c806388e195351161004e57806388e19535146101485780638da5cb5b1461015b578063f2fde38b14610186578063fc0c546a146101a657600080fd5b80631095b6d71461008057806312261ee7146100a25780636c099dee146100ff578063715018a614610133575b600080fd5b34801561008c57600080fd5b506100a061009b366004610d42565b6101da565b005b3480156100ae57600080fd5b506100d67f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b34801561010b57600080fd5b506100d67f000000000000000000000000000000000000000000000000000000000000000081565b34801561013f57600080fd5b506100a06101f5565b6100a0610156366004610dc7565b610209565b34801561016757600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff166100d6565b34801561019257600080fd5b506100a06101a1366004610e6d565b6102b5565b3480156101b257600080fd5b506100d67f000000000000000000000000000000000000000000000000000000000000000081565b6101e2610371565b6101ef83838360006103f2565b50505050565b6101fd610371565b6102076000610437565b565b610211610371565b61021c8785856104ac565b6102298787878585610745565b6102396040880160208901610e8f565b63ffffffff1661024c6020890189610e6d565b73ffffffffffffffffffffffffffffffffffffffff167fcccecabef4685fec18cb21dd1732514f063e7add1c432277e0fa89ffb486fb4689604001358a606001356040516102a4929190918252602082015260400190565b60405180910390a350505050505050565b6102bd610371565b73ffffffffffffffffffffffffffffffffffffffff8116610365576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b61036e81610437565b50565b60005473ffffffffffffffffffffffffffffffffffffffff163314610207576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161035c565b600073ffffffffffffffffffffffffffffffffffffffff85166104215761041a8484846108e5565b905061042f565b61042c8585856109b8565b90505b949350505050565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040805160a0808201835273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000081166060808501918252880135608085018190529084529187013560208085019190915260c0880135848601528451808601909552308552848101929092529192917f0000000000000000000000000000000000000000000000000000000000000000169063137c29fe9084908490610568908a018a610e6d565b6105718a610a48565b604080517f496e74656e7453656e642800000000000000000000000000000000000000000060208201527f616464726573732073656e6465722c0000000000000000000000000000000000602b8201527f75696e743332206473744569642c000000000000000000000000000000000000603a8201527f6279746573333220746f2c00000000000000000000000000000000000000000060488201527f75696e7432353620616d6f756e744c442c00000000000000000000000000000060538201527f75696e74323536206d696e416d6f756e744c442c00000000000000000000000060648201527f75696e74323536206e6f6e63652c00000000000000000000000000000000000060788201527f75696e7432353620646561646c696e652900000000000000000000000000000060868201528151607781830301815260f78201909252602e609782018181529161130a9060b701396040516020016106d9929190610ed9565b6040516020818303038152906040528a8a6040518863ffffffff1660e01b815260040161070c9796959493929190610f7e565b600060405180830381600087803b15801561072657600080fd5b505af115801561073a573d6000803e3d6000fd5b505050505050505050565b34600061075684606089013561107c565b905060006107648383610c6e565b90507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663c7c7f5b3826040518060e001604052808c60200160208101906107c19190610e8f565b63ffffffff1681526020018c6040013581526020018681526020018c6080013581526020016040518060200160405280600081525081526020016040518060200160405280600081525081526020018b8b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201829052509390945250506040805180820182528a81526020810192909252517fffffffff0000000000000000000000000000000000000000000000000000000060e087901b1681526108969392508a906004016110b6565b60c06040518083038185885af11580156108b4573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906108d99190611210565b50505050505050505050565b60008161094d5760405173ffffffffffffffffffffffffffffffffffffffff8516908490600081818185875af1925050503d8060008114610942576040519150601f19603f3d011682016040523d82523d6000602084013e610947565b606091505b506109af565b60405173ffffffffffffffffffffffffffffffffffffffff8516906108fc9085906000818181858888f193505050503d80600081146109a8576040519150601f19603f3d011682016040523d82523d6000602084013e6109ad565b606091505b505b50949350505050565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb0000000000000000000000000000000000000000000000000000000017905260009061042f908590610c76565b6040517f496e74656e7453656e642800000000000000000000000000000000000000000060208201527f616464726573732073656e6465722c0000000000000000000000000000000000602b8201527f75696e743332206473744569642c000000000000000000000000000000000000603a8201527f6279746573333220746f2c00000000000000000000000000000000000000000060488201527f75696e7432353620616d6f756e744c442c00000000000000000000000000000060538201527f75696e74323536206d696e416d6f756e744c442c00000000000000000000000060648201527f75696e74323536206e6f6e63652c00000000000000000000000000000000000060788201527f75696e7432353620646561646c696e65290000000000000000000000000000006086820152600090609701604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152919052805160209182012090610bc490840184610e6d565b610bd46040850160208601610e8f565b8460400135856060013586608001358760a001358860c00135604051602001610c5198979695949392919097885273ffffffffffffffffffffffffffffffffffffffff96909616602088015263ffffffff9490941660408701526060860192909252608085015260a084015260c083015260e08201526101000190565b604051602081830303815290604052805190602001209050919050565b815b92915050565b60008060008473ffffffffffffffffffffffffffffffffffffffff1684604051610ca091906112cb565b6000604051808303816000865af19150503d8060008114610cdd576040519150601f19603f3d011682016040523d82523d6000602084013e610ce2565b606091505b509150915081610cf3576000610d10565b80511580610d10575080806020019051810190610d1091906112e7565b95945050505050565b803573ffffffffffffffffffffffffffffffffffffffff81168114610d3d57600080fd5b919050565b600080600060608486031215610d5757600080fd5b610d6084610d19565b9250610d6e60208501610d19565b9150604084013590509250925092565b60008083601f840112610d9057600080fd5b50813567ffffffffffffffff811115610da857600080fd5b602083019150836020828501011115610dc057600080fd5b9250929050565b6000806000806000806000878903610160811215610de457600080fd5b60e0811215610df257600080fd5b5087965060e088013567ffffffffffffffff80821115610e1157600080fd5b610e1d8b838c01610d7e565b90985096506101008a0135915080821115610e3757600080fd5b50610e448a828b01610d7e565b9095509350506101208801359150610e5f6101408901610d19565b905092959891949750929550565b600060208284031215610e7f57600080fd5b610e8882610d19565b9392505050565b600060208284031215610ea157600080fd5b813563ffffffff81168114610e8857600080fd5b60005b83811015610ed0578181015183820152602001610eb8565b50506000910152565b7f496e74656e7453656e64207769746e6573732900000000000000000000000000815260008351610f11816013850160208801610eb5565b835190830190610f28816013840160208801610eb5565b01601301949350505050565b60008151808452610f4c816020860160208601610eb5565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b6000610140610fae838b51805173ffffffffffffffffffffffffffffffffffffffff168252602090810151910152565b60208a0151604084015260408a01516060840152610fef608084018a805173ffffffffffffffffffffffffffffffffffffffff168252602090810151910152565b73ffffffffffffffffffffffffffffffffffffffff881660c08401528660e08401528061010084015261102481840187610f34565b90508281036101208401528381528385602083013760006020858301015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f86011682010191505098975050505050505050565b81810381811115610c70577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6080815263ffffffff8451166080820152602084015160a0820152604084015160c0820152606084015160e08201526000608085015160e0610100840152611102610160840182610f34565b905060a08601517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff80808584030161012086015261113f8383610f34565b925060c0880151915080858403016101408601525061115e8282610f34565b92505050611179602083018580518252602090810151910152565b73ffffffffffffffffffffffffffffffffffffffff8316606083015261042f565b6000604082840312156111ac57600080fd5b6040516040810181811067ffffffffffffffff821117156111f6577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604052825181526020928301519281019290925250919050565b60008082840360c081121561122457600080fd5b608081121561123257600080fd5b506040516060810167ffffffffffffffff828210818311171561127e577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b816040528551835260208601519150808216821461129b57600080fd5b5060208201526112ae856040860161119a565b604082015291506112c2846080850161119a565b90509250929050565b600082516112dd818460208701610eb5565b9190910192915050565b6000602082840312156112f957600080fd5b81518015158114610e8857600080fdfe546f6b656e5065726d697373696f6e73286164647265737320746f6b656e2c75696e7432353620616d6f756e7429a2646970667358221220acebafea4b9c71cf695c69f6a07f3a57c93e13398468329b3c845553b6e807a564736f6c63430008160033",
295
+ "devdoc": {
296
+ "kind": "dev",
297
+ "methods": {
298
+ "owner()": {
299
+ "details": "Returns the address of the current owner."
300
+ },
301
+ "renounceOwnership()": {
302
+ "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."
303
+ },
304
+ "send((address,uint32,bytes32,uint256,uint256,uint256,uint256),bytes,bytes,uint256,address)": {
305
+ "details": "get the signature with the permit2 sdk https://github.com/Uniswap/permit2-sdk/blob/main/src/signatureTransfer.ts"
306
+ },
307
+ "transferOwnership(address)": {
308
+ "details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
309
+ }
310
+ },
311
+ "version": 1
312
+ },
313
+ "userdoc": {
314
+ "kind": "user",
315
+ "methods": {},
316
+ "version": 1
317
+ },
318
+ "storageLayout": {
319
+ "storage": [
320
+ {
321
+ "astId": 3483,
322
+ "contract": "src/intent/IntentOFT.sol:IntentOFT",
323
+ "label": "_owner",
324
+ "offset": 0,
325
+ "slot": "0",
326
+ "type": "t_address"
327
+ }
328
+ ],
329
+ "types": {
330
+ "t_address": {
331
+ "encoding": "inplace",
332
+ "label": "address",
333
+ "numberOfBytes": "20"
334
+ }
335
+ }
336
+ }
337
+ }