@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,231 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "IntentBase",
4
+ "sourceName": "src/intent/IntentBase.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [],
8
+ "name": "Transfer_ApproveFailed",
9
+ "type": "error"
10
+ },
11
+ {
12
+ "anonymous": false,
13
+ "inputs": [
14
+ {
15
+ "indexed": true,
16
+ "internalType": "address",
17
+ "name": "sender",
18
+ "type": "address"
19
+ },
20
+ {
21
+ "indexed": true,
22
+ "internalType": "uint32",
23
+ "name": "dstEid",
24
+ "type": "uint32"
25
+ },
26
+ {
27
+ "indexed": false,
28
+ "internalType": "bytes32",
29
+ "name": "to",
30
+ "type": "bytes32"
31
+ },
32
+ {
33
+ "indexed": false,
34
+ "internalType": "uint256",
35
+ "name": "amountLD",
36
+ "type": "uint256"
37
+ }
38
+ ],
39
+ "name": "IntentSent",
40
+ "type": "event"
41
+ },
42
+ {
43
+ "anonymous": false,
44
+ "inputs": [
45
+ {
46
+ "indexed": true,
47
+ "internalType": "address",
48
+ "name": "previousOwner",
49
+ "type": "address"
50
+ },
51
+ {
52
+ "indexed": true,
53
+ "internalType": "address",
54
+ "name": "newOwner",
55
+ "type": "address"
56
+ }
57
+ ],
58
+ "name": "OwnershipTransferred",
59
+ "type": "event"
60
+ },
61
+ {
62
+ "inputs": [],
63
+ "name": "owner",
64
+ "outputs": [
65
+ {
66
+ "internalType": "address",
67
+ "name": "",
68
+ "type": "address"
69
+ }
70
+ ],
71
+ "stateMutability": "view",
72
+ "type": "function"
73
+ },
74
+ {
75
+ "inputs": [],
76
+ "name": "permit2",
77
+ "outputs": [
78
+ {
79
+ "internalType": "contract IPermit2",
80
+ "name": "",
81
+ "type": "address"
82
+ }
83
+ ],
84
+ "stateMutability": "view",
85
+ "type": "function"
86
+ },
87
+ {
88
+ "inputs": [],
89
+ "name": "renounceOwnership",
90
+ "outputs": [],
91
+ "stateMutability": "nonpayable",
92
+ "type": "function"
93
+ },
94
+ {
95
+ "inputs": [
96
+ {
97
+ "components": [
98
+ {
99
+ "internalType": "address",
100
+ "name": "sender",
101
+ "type": "address"
102
+ },
103
+ {
104
+ "internalType": "uint32",
105
+ "name": "dstEid",
106
+ "type": "uint32"
107
+ },
108
+ {
109
+ "internalType": "bytes32",
110
+ "name": "to",
111
+ "type": "bytes32"
112
+ },
113
+ {
114
+ "internalType": "uint256",
115
+ "name": "amountLD",
116
+ "type": "uint256"
117
+ },
118
+ {
119
+ "internalType": "uint256",
120
+ "name": "minAmountLD",
121
+ "type": "uint256"
122
+ },
123
+ {
124
+ "internalType": "uint256",
125
+ "name": "nonce",
126
+ "type": "uint256"
127
+ },
128
+ {
129
+ "internalType": "uint256",
130
+ "name": "deadline",
131
+ "type": "uint256"
132
+ }
133
+ ],
134
+ "internalType": "struct IntentBase.IntentSend",
135
+ "name": "_intentSend",
136
+ "type": "tuple"
137
+ },
138
+ {
139
+ "internalType": "bytes",
140
+ "name": "_oftCmd",
141
+ "type": "bytes"
142
+ },
143
+ {
144
+ "internalType": "bytes",
145
+ "name": "_signature",
146
+ "type": "bytes"
147
+ },
148
+ {
149
+ "internalType": "uint256",
150
+ "name": "_intentFee",
151
+ "type": "uint256"
152
+ },
153
+ {
154
+ "internalType": "address",
155
+ "name": "_refundAddress",
156
+ "type": "address"
157
+ }
158
+ ],
159
+ "name": "send",
160
+ "outputs": [],
161
+ "stateMutability": "payable",
162
+ "type": "function"
163
+ },
164
+ {
165
+ "inputs": [],
166
+ "name": "stargate",
167
+ "outputs": [
168
+ {
169
+ "internalType": "address",
170
+ "name": "",
171
+ "type": "address"
172
+ }
173
+ ],
174
+ "stateMutability": "view",
175
+ "type": "function"
176
+ },
177
+ {
178
+ "inputs": [],
179
+ "name": "token",
180
+ "outputs": [
181
+ {
182
+ "internalType": "address",
183
+ "name": "",
184
+ "type": "address"
185
+ }
186
+ ],
187
+ "stateMutability": "view",
188
+ "type": "function"
189
+ },
190
+ {
191
+ "inputs": [
192
+ {
193
+ "internalType": "address",
194
+ "name": "newOwner",
195
+ "type": "address"
196
+ }
197
+ ],
198
+ "name": "transferOwnership",
199
+ "outputs": [],
200
+ "stateMutability": "nonpayable",
201
+ "type": "function"
202
+ },
203
+ {
204
+ "inputs": [
205
+ {
206
+ "internalType": "address",
207
+ "name": "_token",
208
+ "type": "address"
209
+ },
210
+ {
211
+ "internalType": "address",
212
+ "name": "_to",
213
+ "type": "address"
214
+ },
215
+ {
216
+ "internalType": "uint256",
217
+ "name": "_amount",
218
+ "type": "uint256"
219
+ }
220
+ ],
221
+ "name": "withdrawFee",
222
+ "outputs": [],
223
+ "stateMutability": "nonpayable",
224
+ "type": "function"
225
+ }
226
+ ],
227
+ "bytecode": "0x",
228
+ "deployedBytecode": "0x",
229
+ "linkReferences": {},
230
+ "deployedLinkReferences": {}
231
+ }
@@ -0,0 +1,247 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "IntentOFT",
4
+ "sourceName": "src/intent/IntentOFT.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "address",
10
+ "name": "_stargate",
11
+ "type": "address"
12
+ },
13
+ {
14
+ "internalType": "address",
15
+ "name": "_permit2",
16
+ "type": "address"
17
+ }
18
+ ],
19
+ "stateMutability": "nonpayable",
20
+ "type": "constructor"
21
+ },
22
+ {
23
+ "inputs": [],
24
+ "name": "Transfer_ApproveFailed",
25
+ "type": "error"
26
+ },
27
+ {
28
+ "anonymous": false,
29
+ "inputs": [
30
+ {
31
+ "indexed": true,
32
+ "internalType": "address",
33
+ "name": "sender",
34
+ "type": "address"
35
+ },
36
+ {
37
+ "indexed": true,
38
+ "internalType": "uint32",
39
+ "name": "dstEid",
40
+ "type": "uint32"
41
+ },
42
+ {
43
+ "indexed": false,
44
+ "internalType": "bytes32",
45
+ "name": "to",
46
+ "type": "bytes32"
47
+ },
48
+ {
49
+ "indexed": false,
50
+ "internalType": "uint256",
51
+ "name": "amountLD",
52
+ "type": "uint256"
53
+ }
54
+ ],
55
+ "name": "IntentSent",
56
+ "type": "event"
57
+ },
58
+ {
59
+ "anonymous": false,
60
+ "inputs": [
61
+ {
62
+ "indexed": true,
63
+ "internalType": "address",
64
+ "name": "previousOwner",
65
+ "type": "address"
66
+ },
67
+ {
68
+ "indexed": true,
69
+ "internalType": "address",
70
+ "name": "newOwner",
71
+ "type": "address"
72
+ }
73
+ ],
74
+ "name": "OwnershipTransferred",
75
+ "type": "event"
76
+ },
77
+ {
78
+ "inputs": [],
79
+ "name": "owner",
80
+ "outputs": [
81
+ {
82
+ "internalType": "address",
83
+ "name": "",
84
+ "type": "address"
85
+ }
86
+ ],
87
+ "stateMutability": "view",
88
+ "type": "function"
89
+ },
90
+ {
91
+ "inputs": [],
92
+ "name": "permit2",
93
+ "outputs": [
94
+ {
95
+ "internalType": "contract IPermit2",
96
+ "name": "",
97
+ "type": "address"
98
+ }
99
+ ],
100
+ "stateMutability": "view",
101
+ "type": "function"
102
+ },
103
+ {
104
+ "inputs": [],
105
+ "name": "renounceOwnership",
106
+ "outputs": [],
107
+ "stateMutability": "nonpayable",
108
+ "type": "function"
109
+ },
110
+ {
111
+ "inputs": [
112
+ {
113
+ "components": [
114
+ {
115
+ "internalType": "address",
116
+ "name": "sender",
117
+ "type": "address"
118
+ },
119
+ {
120
+ "internalType": "uint32",
121
+ "name": "dstEid",
122
+ "type": "uint32"
123
+ },
124
+ {
125
+ "internalType": "bytes32",
126
+ "name": "to",
127
+ "type": "bytes32"
128
+ },
129
+ {
130
+ "internalType": "uint256",
131
+ "name": "amountLD",
132
+ "type": "uint256"
133
+ },
134
+ {
135
+ "internalType": "uint256",
136
+ "name": "minAmountLD",
137
+ "type": "uint256"
138
+ },
139
+ {
140
+ "internalType": "uint256",
141
+ "name": "nonce",
142
+ "type": "uint256"
143
+ },
144
+ {
145
+ "internalType": "uint256",
146
+ "name": "deadline",
147
+ "type": "uint256"
148
+ }
149
+ ],
150
+ "internalType": "struct IntentBase.IntentSend",
151
+ "name": "_intentSend",
152
+ "type": "tuple"
153
+ },
154
+ {
155
+ "internalType": "bytes",
156
+ "name": "_oftCmd",
157
+ "type": "bytes"
158
+ },
159
+ {
160
+ "internalType": "bytes",
161
+ "name": "_signature",
162
+ "type": "bytes"
163
+ },
164
+ {
165
+ "internalType": "uint256",
166
+ "name": "_intentFee",
167
+ "type": "uint256"
168
+ },
169
+ {
170
+ "internalType": "address",
171
+ "name": "_refundAddress",
172
+ "type": "address"
173
+ }
174
+ ],
175
+ "name": "send",
176
+ "outputs": [],
177
+ "stateMutability": "payable",
178
+ "type": "function"
179
+ },
180
+ {
181
+ "inputs": [],
182
+ "name": "stargate",
183
+ "outputs": [
184
+ {
185
+ "internalType": "address",
186
+ "name": "",
187
+ "type": "address"
188
+ }
189
+ ],
190
+ "stateMutability": "view",
191
+ "type": "function"
192
+ },
193
+ {
194
+ "inputs": [],
195
+ "name": "token",
196
+ "outputs": [
197
+ {
198
+ "internalType": "address",
199
+ "name": "",
200
+ "type": "address"
201
+ }
202
+ ],
203
+ "stateMutability": "view",
204
+ "type": "function"
205
+ },
206
+ {
207
+ "inputs": [
208
+ {
209
+ "internalType": "address",
210
+ "name": "newOwner",
211
+ "type": "address"
212
+ }
213
+ ],
214
+ "name": "transferOwnership",
215
+ "outputs": [],
216
+ "stateMutability": "nonpayable",
217
+ "type": "function"
218
+ },
219
+ {
220
+ "inputs": [
221
+ {
222
+ "internalType": "address",
223
+ "name": "_token",
224
+ "type": "address"
225
+ },
226
+ {
227
+ "internalType": "address",
228
+ "name": "_to",
229
+ "type": "address"
230
+ },
231
+ {
232
+ "internalType": "uint256",
233
+ "name": "_amount",
234
+ "type": "uint256"
235
+ }
236
+ ],
237
+ "name": "withdrawFee",
238
+ "outputs": [],
239
+ "stateMutability": "nonpayable",
240
+ "type": "function"
241
+ }
242
+ ],
243
+ "bytecode": "0x60e06040523480156200001157600080fd5b50604051620016f7380380620016f7833981016040819052620000349162000294565b81816200004133620000d9565b6001600160a01b038216608081905260408051637e062a3560e11b8152905163fc0c546a916004808201926020929091908290030181865afa1580156200008c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620000b29190620002cc565b6001600160a01b0390811660a052811660c052620000cf62000129565b5050505062000346565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6200014260a0516080516000196200014460201b60201c565b565b6200015183838362000174565b6200016f576040516373c4154f60e01b815260040160405180910390fd5b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b0390811663095ea7b360e01b17909152600091620001d091869190620001d816565b949350505050565b6000806000846001600160a01b031684604051620001f79190620002f1565b6000604051808303816000865af19150503d806000811462000236576040519150601f19603f3d011682016040523d82523d6000602084013e6200023b565b606091505b5091509150816200024e5760006200026e565b805115806200026e5750808060200190518101906200026e919062000322565b95945050505050565b80516001600160a01b03811681146200028f57600080fd5b919050565b60008060408385031215620002a857600080fd5b620002b38362000277565b9150620002c36020840162000277565b90509250929050565b600060208284031215620002df57600080fd5b620002ea8262000277565b9392505050565b6000825160005b81811015620003145760208186018101518583015201620002f8565b506000920191825250919050565b6000602082840312156200033557600080fd5b81518015158114620002ea57600080fd5b60805160a05160c05161136d6200038a6000396000818160b401526105310152600081816101b801526104ce0152600081816101110152610768015261136d6000f3fe60806040526004361061007b5760003560e01c806388e195351161004e57806388e19535146101485780638da5cb5b1461015b578063f2fde38b14610186578063fc0c546a146101a657600080fd5b80631095b6d71461008057806312261ee7146100a25780636c099dee146100ff578063715018a614610133575b600080fd5b34801561008c57600080fd5b506100a061009b366004610d42565b6101da565b005b3480156100ae57600080fd5b506100d67f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b34801561010b57600080fd5b506100d67f000000000000000000000000000000000000000000000000000000000000000081565b34801561013f57600080fd5b506100a06101f5565b6100a0610156366004610dc7565b610209565b34801561016757600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff166100d6565b34801561019257600080fd5b506100a06101a1366004610e6d565b6102b5565b3480156101b257600080fd5b506100d67f000000000000000000000000000000000000000000000000000000000000000081565b6101e2610371565b6101ef83838360006103f2565b50505050565b6101fd610371565b6102076000610437565b565b610211610371565b61021c8785856104ac565b6102298787878585610745565b6102396040880160208901610e8f565b63ffffffff1661024c6020890189610e6d565b73ffffffffffffffffffffffffffffffffffffffff167fcccecabef4685fec18cb21dd1732514f063e7add1c432277e0fa89ffb486fb4689604001358a606001356040516102a4929190918252602082015260400190565b60405180910390a350505050505050565b6102bd610371565b73ffffffffffffffffffffffffffffffffffffffff8116610365576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b61036e81610437565b50565b60005473ffffffffffffffffffffffffffffffffffffffff163314610207576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161035c565b600073ffffffffffffffffffffffffffffffffffffffff85166104215761041a8484846108e5565b905061042f565b61042c8585856109b8565b90505b949350505050565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040805160a0808201835273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000081166060808501918252880135608085018190529084529187013560208085019190915260c0880135848601528451808601909552308552848101929092529192917f0000000000000000000000000000000000000000000000000000000000000000169063137c29fe9084908490610568908a018a610e6d565b6105718a610a48565b604080517f496e74656e7453656e642800000000000000000000000000000000000000000060208201527f616464726573732073656e6465722c0000000000000000000000000000000000602b8201527f75696e743332206473744569642c000000000000000000000000000000000000603a8201527f6279746573333220746f2c00000000000000000000000000000000000000000060488201527f75696e7432353620616d6f756e744c442c00000000000000000000000000000060538201527f75696e74323536206d696e416d6f756e744c442c00000000000000000000000060648201527f75696e74323536206e6f6e63652c00000000000000000000000000000000000060788201527f75696e7432353620646561646c696e652900000000000000000000000000000060868201528151607781830301815260f78201909252602e609782018181529161130a9060b701396040516020016106d9929190610ed9565b6040516020818303038152906040528a8a6040518863ffffffff1660e01b815260040161070c9796959493929190610f7e565b600060405180830381600087803b15801561072657600080fd5b505af115801561073a573d6000803e3d6000fd5b505050505050505050565b34600061075684606089013561107c565b905060006107648383610c6e565b90507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663c7c7f5b3826040518060e001604052808c60200160208101906107c19190610e8f565b63ffffffff1681526020018c6040013581526020018681526020018c6080013581526020016040518060200160405280600081525081526020016040518060200160405280600081525081526020018b8b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201829052509390945250506040805180820182528a81526020810192909252517fffffffff0000000000000000000000000000000000000000000000000000000060e087901b1681526108969392508a906004016110b6565b60c06040518083038185885af11580156108b4573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906108d99190611210565b50505050505050505050565b60008161094d5760405173ffffffffffffffffffffffffffffffffffffffff8516908490600081818185875af1925050503d8060008114610942576040519150601f19603f3d011682016040523d82523d6000602084013e610947565b606091505b506109af565b60405173ffffffffffffffffffffffffffffffffffffffff8516906108fc9085906000818181858888f193505050503d80600081146109a8576040519150601f19603f3d011682016040523d82523d6000602084013e6109ad565b606091505b505b50949350505050565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb0000000000000000000000000000000000000000000000000000000017905260009061042f908590610c76565b6040517f496e74656e7453656e642800000000000000000000000000000000000000000060208201527f616464726573732073656e6465722c0000000000000000000000000000000000602b8201527f75696e743332206473744569642c000000000000000000000000000000000000603a8201527f6279746573333220746f2c00000000000000000000000000000000000000000060488201527f75696e7432353620616d6f756e744c442c00000000000000000000000000000060538201527f75696e74323536206d696e416d6f756e744c442c00000000000000000000000060648201527f75696e74323536206e6f6e63652c00000000000000000000000000000000000060788201527f75696e7432353620646561646c696e65290000000000000000000000000000006086820152600090609701604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152919052805160209182012090610bc490840184610e6d565b610bd46040850160208601610e8f565b8460400135856060013586608001358760a001358860c00135604051602001610c5198979695949392919097885273ffffffffffffffffffffffffffffffffffffffff96909616602088015263ffffffff9490941660408701526060860192909252608085015260a084015260c083015260e08201526101000190565b604051602081830303815290604052805190602001209050919050565b815b92915050565b60008060008473ffffffffffffffffffffffffffffffffffffffff1684604051610ca091906112cb565b6000604051808303816000865af19150503d8060008114610cdd576040519150601f19603f3d011682016040523d82523d6000602084013e610ce2565b606091505b509150915081610cf3576000610d10565b80511580610d10575080806020019051810190610d1091906112e7565b95945050505050565b803573ffffffffffffffffffffffffffffffffffffffff81168114610d3d57600080fd5b919050565b600080600060608486031215610d5757600080fd5b610d6084610d19565b9250610d6e60208501610d19565b9150604084013590509250925092565b60008083601f840112610d9057600080fd5b50813567ffffffffffffffff811115610da857600080fd5b602083019150836020828501011115610dc057600080fd5b9250929050565b6000806000806000806000878903610160811215610de457600080fd5b60e0811215610df257600080fd5b5087965060e088013567ffffffffffffffff80821115610e1157600080fd5b610e1d8b838c01610d7e565b90985096506101008a0135915080821115610e3757600080fd5b50610e448a828b01610d7e565b9095509350506101208801359150610e5f6101408901610d19565b905092959891949750929550565b600060208284031215610e7f57600080fd5b610e8882610d19565b9392505050565b600060208284031215610ea157600080fd5b813563ffffffff81168114610e8857600080fd5b60005b83811015610ed0578181015183820152602001610eb8565b50506000910152565b7f496e74656e7453656e64207769746e6573732900000000000000000000000000815260008351610f11816013850160208801610eb5565b835190830190610f28816013840160208801610eb5565b01601301949350505050565b60008151808452610f4c816020860160208601610eb5565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b6000610140610fae838b51805173ffffffffffffffffffffffffffffffffffffffff168252602090810151910152565b60208a0151604084015260408a01516060840152610fef608084018a805173ffffffffffffffffffffffffffffffffffffffff168252602090810151910152565b73ffffffffffffffffffffffffffffffffffffffff881660c08401528660e08401528061010084015261102481840187610f34565b90508281036101208401528381528385602083013760006020858301015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f86011682010191505098975050505050505050565b81810381811115610c70577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6080815263ffffffff8451166080820152602084015160a0820152604084015160c0820152606084015160e08201526000608085015160e0610100840152611102610160840182610f34565b905060a08601517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff80808584030161012086015261113f8383610f34565b925060c0880151915080858403016101408601525061115e8282610f34565b92505050611179602083018580518252602090810151910152565b73ffffffffffffffffffffffffffffffffffffffff8316606083015261042f565b6000604082840312156111ac57600080fd5b6040516040810181811067ffffffffffffffff821117156111f6577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604052825181526020928301519281019290925250919050565b60008082840360c081121561122457600080fd5b608081121561123257600080fd5b506040516060810167ffffffffffffffff828210818311171561127e577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b816040528551835260208601519150808216821461129b57600080fd5b5060208201526112ae856040860161119a565b604082015291506112c2846080850161119a565b90509250929050565b600082516112dd818460208701610eb5565b9190910192915050565b6000602082840312156112f957600080fd5b81518015158114610e8857600080fdfe546f6b656e5065726d697373696f6e73286164647265737320746f6b656e2c75696e7432353620616d6f756e7429a2646970667358221220d2b96feb88867161c863331a119907fb5b84a41ad88c0594165e2a5c879baa3764736f6c63430008160033",
244
+ "deployedBytecode": "0x60806040526004361061007b5760003560e01c806388e195351161004e57806388e19535146101485780638da5cb5b1461015b578063f2fde38b14610186578063fc0c546a146101a657600080fd5b80631095b6d71461008057806312261ee7146100a25780636c099dee146100ff578063715018a614610133575b600080fd5b34801561008c57600080fd5b506100a061009b366004610d42565b6101da565b005b3480156100ae57600080fd5b506100d67f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b34801561010b57600080fd5b506100d67f000000000000000000000000000000000000000000000000000000000000000081565b34801561013f57600080fd5b506100a06101f5565b6100a0610156366004610dc7565b610209565b34801561016757600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff166100d6565b34801561019257600080fd5b506100a06101a1366004610e6d565b6102b5565b3480156101b257600080fd5b506100d67f000000000000000000000000000000000000000000000000000000000000000081565b6101e2610371565b6101ef83838360006103f2565b50505050565b6101fd610371565b6102076000610437565b565b610211610371565b61021c8785856104ac565b6102298787878585610745565b6102396040880160208901610e8f565b63ffffffff1661024c6020890189610e6d565b73ffffffffffffffffffffffffffffffffffffffff167fcccecabef4685fec18cb21dd1732514f063e7add1c432277e0fa89ffb486fb4689604001358a606001356040516102a4929190918252602082015260400190565b60405180910390a350505050505050565b6102bd610371565b73ffffffffffffffffffffffffffffffffffffffff8116610365576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b61036e81610437565b50565b60005473ffffffffffffffffffffffffffffffffffffffff163314610207576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161035c565b600073ffffffffffffffffffffffffffffffffffffffff85166104215761041a8484846108e5565b905061042f565b61042c8585856109b8565b90505b949350505050565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040805160a0808201835273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000081166060808501918252880135608085018190529084529187013560208085019190915260c0880135848601528451808601909552308552848101929092529192917f0000000000000000000000000000000000000000000000000000000000000000169063137c29fe9084908490610568908a018a610e6d565b6105718a610a48565b604080517f496e74656e7453656e642800000000000000000000000000000000000000000060208201527f616464726573732073656e6465722c0000000000000000000000000000000000602b8201527f75696e743332206473744569642c000000000000000000000000000000000000603a8201527f6279746573333220746f2c00000000000000000000000000000000000000000060488201527f75696e7432353620616d6f756e744c442c00000000000000000000000000000060538201527f75696e74323536206d696e416d6f756e744c442c00000000000000000000000060648201527f75696e74323536206e6f6e63652c00000000000000000000000000000000000060788201527f75696e7432353620646561646c696e652900000000000000000000000000000060868201528151607781830301815260f78201909252602e609782018181529161130a9060b701396040516020016106d9929190610ed9565b6040516020818303038152906040528a8a6040518863ffffffff1660e01b815260040161070c9796959493929190610f7e565b600060405180830381600087803b15801561072657600080fd5b505af115801561073a573d6000803e3d6000fd5b505050505050505050565b34600061075684606089013561107c565b905060006107648383610c6e565b90507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663c7c7f5b3826040518060e001604052808c60200160208101906107c19190610e8f565b63ffffffff1681526020018c6040013581526020018681526020018c6080013581526020016040518060200160405280600081525081526020016040518060200160405280600081525081526020018b8b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201829052509390945250506040805180820182528a81526020810192909252517fffffffff0000000000000000000000000000000000000000000000000000000060e087901b1681526108969392508a906004016110b6565b60c06040518083038185885af11580156108b4573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906108d99190611210565b50505050505050505050565b60008161094d5760405173ffffffffffffffffffffffffffffffffffffffff8516908490600081818185875af1925050503d8060008114610942576040519150601f19603f3d011682016040523d82523d6000602084013e610947565b606091505b506109af565b60405173ffffffffffffffffffffffffffffffffffffffff8516906108fc9085906000818181858888f193505050503d80600081146109a8576040519150601f19603f3d011682016040523d82523d6000602084013e6109ad565b606091505b505b50949350505050565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb0000000000000000000000000000000000000000000000000000000017905260009061042f908590610c76565b6040517f496e74656e7453656e642800000000000000000000000000000000000000000060208201527f616464726573732073656e6465722c0000000000000000000000000000000000602b8201527f75696e743332206473744569642c000000000000000000000000000000000000603a8201527f6279746573333220746f2c00000000000000000000000000000000000000000060488201527f75696e7432353620616d6f756e744c442c00000000000000000000000000000060538201527f75696e74323536206d696e416d6f756e744c442c00000000000000000000000060648201527f75696e74323536206e6f6e63652c00000000000000000000000000000000000060788201527f75696e7432353620646561646c696e65290000000000000000000000000000006086820152600090609701604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152919052805160209182012090610bc490840184610e6d565b610bd46040850160208601610e8f565b8460400135856060013586608001358760a001358860c00135604051602001610c5198979695949392919097885273ffffffffffffffffffffffffffffffffffffffff96909616602088015263ffffffff9490941660408701526060860192909252608085015260a084015260c083015260e08201526101000190565b604051602081830303815290604052805190602001209050919050565b815b92915050565b60008060008473ffffffffffffffffffffffffffffffffffffffff1684604051610ca091906112cb565b6000604051808303816000865af19150503d8060008114610cdd576040519150601f19603f3d011682016040523d82523d6000602084013e610ce2565b606091505b509150915081610cf3576000610d10565b80511580610d10575080806020019051810190610d1091906112e7565b95945050505050565b803573ffffffffffffffffffffffffffffffffffffffff81168114610d3d57600080fd5b919050565b600080600060608486031215610d5757600080fd5b610d6084610d19565b9250610d6e60208501610d19565b9150604084013590509250925092565b60008083601f840112610d9057600080fd5b50813567ffffffffffffffff811115610da857600080fd5b602083019150836020828501011115610dc057600080fd5b9250929050565b6000806000806000806000878903610160811215610de457600080fd5b60e0811215610df257600080fd5b5087965060e088013567ffffffffffffffff80821115610e1157600080fd5b610e1d8b838c01610d7e565b90985096506101008a0135915080821115610e3757600080fd5b50610e448a828b01610d7e565b9095509350506101208801359150610e5f6101408901610d19565b905092959891949750929550565b600060208284031215610e7f57600080fd5b610e8882610d19565b9392505050565b600060208284031215610ea157600080fd5b813563ffffffff81168114610e8857600080fd5b60005b83811015610ed0578181015183820152602001610eb8565b50506000910152565b7f496e74656e7453656e64207769746e6573732900000000000000000000000000815260008351610f11816013850160208801610eb5565b835190830190610f28816013840160208801610eb5565b01601301949350505050565b60008151808452610f4c816020860160208601610eb5565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b6000610140610fae838b51805173ffffffffffffffffffffffffffffffffffffffff168252602090810151910152565b60208a0151604084015260408a01516060840152610fef608084018a805173ffffffffffffffffffffffffffffffffffffffff168252602090810151910152565b73ffffffffffffffffffffffffffffffffffffffff881660c08401528660e08401528061010084015261102481840187610f34565b90508281036101208401528381528385602083013760006020858301015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f86011682010191505098975050505050505050565b81810381811115610c70577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6080815263ffffffff8451166080820152602084015160a0820152604084015160c0820152606084015160e08201526000608085015160e0610100840152611102610160840182610f34565b905060a08601517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff80808584030161012086015261113f8383610f34565b925060c0880151915080858403016101408601525061115e8282610f34565b92505050611179602083018580518252602090810151910152565b73ffffffffffffffffffffffffffffffffffffffff8316606083015261042f565b6000604082840312156111ac57600080fd5b6040516040810181811067ffffffffffffffff821117156111f6577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604052825181526020928301519281019290925250919050565b60008082840360c081121561122457600080fd5b608081121561123257600080fd5b506040516060810167ffffffffffffffff828210818311171561127e577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b816040528551835260208601519150808216821461129b57600080fd5b5060208201526112ae856040860161119a565b604082015291506112c2846080850161119a565b90509250929050565b600082516112dd818460208701610eb5565b9190910192915050565b6000602082840312156112f957600080fd5b81518015158114610e8857600080fdfe546f6b656e5065726d697373696f6e73286164647265737320746f6b656e2c75696e7432353620616d6f756e7429a2646970667358221220d2b96feb88867161c863331a119907fb5b84a41ad88c0594165e2a5c879baa3764736f6c63430008160033",
245
+ "linkReferences": {},
246
+ "deployedLinkReferences": {}
247
+ }