@hinkal/common 0.0.112 → 0.0.114

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 (269) hide show
  1. package/API/API.js +58 -0
  2. package/API/HinkalPointsCalls.js +38 -0
  3. package/API/callBeefyGraphAPI.js +37 -0
  4. package/API/callCurveAPI.js +156 -0
  5. package/API/callMonitor.js +30 -0
  6. package/API/callOdosAPI.js +44 -0
  7. package/API/callOneInchAPI.js +37 -0
  8. package/API/callRelayer.js +32 -0
  9. package/API/checkRisk.js +30 -0
  10. package/API/dataServerCalls.js +32 -0
  11. package/API/fetchCommitmentsCache.js +31 -0
  12. package/API/fetchNullifiers.js +30 -0
  13. package/API/getAxelarGasEstimate.js +37 -0
  14. package/API/getCoingeckoPrice.js +27 -0
  15. package/API/getConnextReceiveFee.js +30 -0
  16. package/API/getGasEstimates.js +38 -0
  17. package/API/getRelayerURL.js +32 -0
  18. package/API/getServerURL.js +67 -0
  19. package/API/getTokenPrice.js +41 -0
  20. package/API/kycCalls.js +32 -0
  21. package/API/passwordCalls.js +36 -0
  22. package/API/referralProgramCalls.js +58 -0
  23. package/API/relayCalls.js +30 -0
  24. package/API/restoreSnapshots.js +32 -0
  25. package/API/rewardsPointsCalls.js +40 -0
  26. package/API/userVerifyTransactions.js +45 -0
  27. package/assets/{snarkjsWorkerLauncher-fuD5h_j0.js → snarkjsWorkerLauncher-CaBCnle3.js} +283 -257
  28. package/assets/snarkjsWorkerLogic-BAbiO5gj.js +17935 -0
  29. package/assets/snarkjsWorkerLogic-wHJfYCfg.js +15636 -0
  30. package/assets/{utxoWorkerLogic-CtFLQiAX.js → utxoWorkerLogic-BGFm-Zl2.js} +2 -2
  31. package/assets/{zkProofWorkerLauncher-J3Ts5_Ba.js → zkProofWorkerLauncher-BteYxRBn.js} +1 -1
  32. package/assets/{zkProofWorkerLogic-CPNuu61R.js → zkProofWorkerLogic-DiLbAhAo.js} +8354 -8298
  33. package/constants/assets.constants.js +16 -0
  34. package/constants/axelar.constants.js +55 -0
  35. package/constants/backend.constants.js +18 -0
  36. package/constants/beefy.registry.js +24 -0
  37. package/constants/chains.constants.js +204 -0
  38. package/constants/coingecko.constants.js +53 -0
  39. package/constants/contracts.constants.js +276 -0
  40. package/constants/crvCvx.registry.js +636 -0
  41. package/constants/crvDynamic.registry.js +24 -0
  42. package/constants/deploy-data/deploy-data-arbMainnet.json.js +7415 -0
  43. package/constants/deploy-data/deploy-data-avalanche.json.js +7411 -0
  44. package/constants/deploy-data/deploy-data-axelar1.json.js +4329 -0
  45. package/constants/deploy-data/deploy-data-axelar2.json.js +4329 -0
  46. package/constants/deploy-data/deploy-data-base.json.js +8425 -0
  47. package/constants/deploy-data/deploy-data-blast.json.js +9600 -0
  48. package/constants/deploy-data/deploy-data-bnbMainnet.json.js +6877 -0
  49. package/constants/deploy-data/deploy-data-ethMainnet.json.js +11427 -0
  50. package/constants/deploy-data/deploy-data-localhost.json.js +13283 -0
  51. package/constants/deploy-data/deploy-data-optimism.json.js +7417 -0
  52. package/constants/deploy-data/deploy-data-polygon.json.js +7439 -0
  53. package/constants/fees.constants.js +57 -0
  54. package/constants/kyc.constants.js +118 -0
  55. package/constants/lido.constants.js +13 -0
  56. package/constants/pendle.registry.js +253 -0
  57. package/constants/protocol.constants.js +26 -0
  58. package/constants/reorg-depths.constants.js +15 -0
  59. package/constants/rewards.constants.js +27 -0
  60. package/constants/server.constants.js +157 -0
  61. package/constants/token-data/ERC20Registry.js +85 -0
  62. package/constants/token-data/arbMainnetRegistry.json.js +946 -0
  63. package/constants/token-data/arbMainnetRegistryFixed.json.js +856 -0
  64. package/constants/token-data/avalancheRegistry.json.js +591 -0
  65. package/constants/token-data/avalancheRegistryFixed.json.js +591 -0
  66. package/constants/token-data/baseRegistry.json.js +490 -0
  67. package/constants/token-data/baseRegistryFixed.json.js +463 -0
  68. package/constants/token-data/blastRegistry.json.js +137 -0
  69. package/constants/token-data/blastRegistryFixed.json.js +137 -0
  70. package/constants/token-data/bnbMainnetRegistry.json.js +973 -0
  71. package/constants/token-data/bnbMainnetRegistryFixed.json.js +973 -0
  72. package/constants/token-data/coingeckoRegistry.json.js +115623 -0
  73. package/constants/token-data/ethMainnetRegistry.json.js +2700 -0
  74. package/constants/token-data/ethMainnetRegistryFixed.json.js +2251 -0
  75. package/constants/token-data/index.js +6 -0
  76. package/constants/token-data/localhostRegistry.json.js +2768 -0
  77. package/constants/token-data/optimismRegistry.json.js +1455 -0
  78. package/constants/token-data/optimismRegistryFixed.json.js +1392 -0
  79. package/constants/token-data/polygonRegistry.json.js +1327 -0
  80. package/constants/token-data/polygonRegistryFixed.json.js +1255 -0
  81. package/constants/token-data/popularTokens.constants.js +14 -0
  82. package/constants/token-data/tokenPricing.consts.js +8 -0
  83. package/constants/vite.constants.js +29 -0
  84. package/crypto/babyJub.js +15 -0
  85. package/crypto/poseidon.js +26 -0
  86. package/crypto/preProcessing.js +9 -0
  87. package/data-structures/Hinkal/Hinkal.js +299 -0
  88. package/data-structures/Hinkal/hinkalActionBeefy.js +101 -0
  89. package/data-structures/Hinkal/hinkalActionConvex.js +83 -0
  90. package/data-structures/Hinkal/hinkalActionCurve.js +112 -0
  91. package/data-structures/Hinkal/hinkalActionLidoEth.js +91 -0
  92. package/data-structures/Hinkal/hinkalActionPendle.js +140 -0
  93. package/data-structures/Hinkal/hinkalActionPendleLP.js +96 -0
  94. package/data-structures/Hinkal/hinkalActionStake.js +138 -0
  95. package/data-structures/Hinkal/hinkalActionVolatile.js +112 -0
  96. package/data-structures/Hinkal/hinkalDeposit.js +95 -0
  97. package/data-structures/Hinkal/hinkalGetZkMeProvider.js +47 -0
  98. package/data-structures/Hinkal/hinkalPrivateWallet.js +66 -0
  99. package/data-structures/Hinkal/hinkalSwap.js +98 -0
  100. package/data-structures/Hinkal/hinkalTransfer.js +5 -0
  101. package/data-structures/Hinkal/hinkalWithdraw.js +91 -0
  102. package/data-structures/Hinkal/resetMerkleTrees.js +49 -0
  103. package/data-structures/MultiThreadedUtxoUtils/MultiThreadedUtxoUtils.js +83 -0
  104. package/data-structures/ValueCache/ValueCache.js +25 -0
  105. package/data-structures/crypto-keys/decodeUTXO.js +40 -0
  106. package/data-structures/crypto-keys/encryptDecryptUtxo.js +41 -0
  107. package/data-structures/crypto-keys/keyUtils.js +10 -0
  108. package/data-structures/crypto-keys/keys.js +90 -0
  109. package/data-structures/custom-token-registry/CustomTokenRegistry.js +33 -0
  110. package/data-structures/event-service/AbstractAccessTokenSnapshotService.js +131 -0
  111. package/data-structures/event-service/AbstractCommitmentsSnapshotService.js +132 -0
  112. package/data-structures/event-service/AbstractEventService.js +118 -0
  113. package/data-structures/event-service/AbstractNullifierSnapshotService.js +59 -0
  114. package/data-structures/event-service/AbstractSnapshotService.js +35 -0
  115. package/data-structures/merkle-tree/MerkleTree.js +177 -0
  116. package/data-structures/merkle-tree/MerkleTreeIncompleteError.js +8 -0
  117. package/data-structures/snapshot/ClientAccessTokenSnapshotService.js +48 -0
  118. package/data-structures/snapshot/ClientCommitmentsSnapshotService.js +47 -0
  119. package/data-structures/snapshot/ClientNullifierSnapshotService.js +44 -0
  120. package/data-structures/token-price-fetcher/TokenChecker.js +29 -0
  121. package/data-structures/token-price-fetcher/TokenPriceFetcher.js +218 -0
  122. package/data-structures/transactions-manager/TransactionsManager.js +194 -0
  123. package/data-structures/transactions-manager/history/getBeefyData.js +68 -0
  124. package/data-structures/transactions-manager/history/getConvexData.js +57 -0
  125. package/data-structures/transactions-manager/history/getCurveData.js +97 -0
  126. package/data-structures/transactions-manager/history/getDepositData.js +36 -0
  127. package/data-structures/transactions-manager/history/getLidoData.js +44 -0
  128. package/data-structures/transactions-manager/history/getPendleData.js +59 -0
  129. package/data-structures/transactions-manager/history/getSwapData.js +43 -0
  130. package/data-structures/transactions-manager/history/getTxDetails.js +74 -0
  131. package/data-structures/transactions-manager/history/getVolatileData.js +75 -0
  132. package/data-structures/transactions-manager/history/history.types.js +62 -0
  133. package/data-structures/transactions-manager/history/history.utils.js +8 -0
  134. package/data-structures/utxo/Utxo.js +134 -0
  135. package/data-structures/volatile-helper/VolatileHelper.js +181 -0
  136. package/error-handling/customErrors/ErrorWithAmount.js +9 -0
  137. package/error-handling/customErrors/FeeOverTransactionValueError.js +9 -0
  138. package/error-handling/customErrors/customErrors.helpers.js +21 -0
  139. package/error-handling/error-codes.constants.js +184 -0
  140. package/error-handling/get-error.message.js +53 -0
  141. package/error-handling/handleErrorRestore.js +35 -0
  142. package/error-handling/logError.js +7 -0
  143. package/error-handling/types.js +4 -0
  144. package/externalABIs/BUSD.js +519 -0
  145. package/externalABIs/BabPassport.json.js +24 -0
  146. package/externalABIs/BeefyRouterAbi.json.js +1022 -0
  147. package/externalABIs/BeefyStrategyAbi.json.js +1423 -0
  148. package/externalABIs/BeefyVaultAbi.json.js +570 -0
  149. package/externalABIs/BeefyZapAbi.json.js +208 -0
  150. package/externalABIs/BeefyZapOneInchAbi.json.js +340 -0
  151. package/externalABIs/ConvexBoosterAbi.json.js +674 -0
  152. package/externalABIs/ConvexBoosterAbiMainnet.json.js +1002 -0
  153. package/externalABIs/ConvexRewardPoolAbi.json.js +883 -0
  154. package/externalABIs/CurveReadingWrapperAbi.json.js +1422 -0
  155. package/externalABIs/CurveWrappedMainPool.json.js +1136 -0
  156. package/externalABIs/CurveZap.json.js +262 -0
  157. package/externalABIs/CvxCrvUtilities.json.js +264 -0
  158. package/externalABIs/DAI.js +334 -0
  159. package/externalABIs/ERC20.json.js +291 -0
  160. package/externalABIs/GalxePassport.json.js +41 -0
  161. package/externalABIs/IQuoterV2.json.js +205 -0
  162. package/externalABIs/ISwapRouter.json.js +568 -0
  163. package/externalABIs/IUniswapV3Factory.json.js +201 -0
  164. package/externalABIs/IUniswapV3Pool.json.js +999 -0
  165. package/externalABIs/LidoStEthAbi.json.js +1603 -0
  166. package/externalABIs/LidoStMaticAbi.json.js +1764 -0
  167. package/externalABIs/LidoStakeManagerAbi.json.js +2082 -0
  168. package/externalABIs/LidoWithdrawalQueueERC721Abi.json.js +2030 -0
  169. package/externalABIs/LidoWstEthAbi.json.js +480 -0
  170. package/externalABIs/OptimismGasPriceOracle.json.js +206 -0
  171. package/externalABIs/PendleRouterAbi.json.js +173 -0
  172. package/externalABIs/PoLidoNftAbi.json.js +701 -0
  173. package/externalABIs/SanctionsList.js +89 -0
  174. package/externalABIs/USDC.js +721 -0
  175. package/externalABIs/USDR.js +346 -0
  176. package/externalABIs/USDR3CRV.js +542 -0
  177. package/externalABIs/USDT.js +393 -0
  178. package/externalABIs/UniswapV2PoolAbi.json.js +80 -0
  179. package/externalABIs/WETH.js +156 -0
  180. package/externalABIs/amToken.js +350 -0
  181. package/externalABIs/transactionsProver.json.js +39 -0
  182. package/functions/kyc/authentoHelper.js +42 -0
  183. package/functions/kyc/passportHelper.js +39 -0
  184. package/functions/kyc/zkMeHelper.js +56 -0
  185. package/functions/pre-transaction/getFlatFees.js +203 -0
  186. package/functions/pre-transaction/interaction-to-action.js +57 -0
  187. package/functions/pre-transaction/outputUtxoProcessing.js +45 -0
  188. package/functions/pre-transaction/process-gas-estimates.js +57 -0
  189. package/functions/pre-transaction/processAmountChanges.js +229 -0
  190. package/functions/private-wallet/emporium.helpers.js +19 -0
  191. package/functions/private-wallet/opProducer.js +24 -0
  192. package/functions/protocols/convex.protocols.js +41 -0
  193. package/functions/protocols/curve.protocols.js +45 -0
  194. package/functions/protocols/pendle.helpers.js +108 -0
  195. package/functions/snarkjs/common.snarkjs.js +96 -0
  196. package/functions/snarkjs/constant.js +211 -0
  197. package/functions/snarkjs/constructEmporiumProof.js +105 -0
  198. package/functions/snarkjs/constructGeneralZkProof.js +129 -0
  199. package/functions/snarkjs/generateCircomData.js +60 -0
  200. package/functions/snarkjs/generateZkProof.js +18 -0
  201. package/functions/snarkjs/getZKFiles.js +30 -0
  202. package/functions/staking/index.js +40 -0
  203. package/functions/utils/amounts.utils.js +70 -0
  204. package/functions/utils/axelar.utils.js +38 -0
  205. package/functions/utils/cacheFunctions.js +67 -0
  206. package/functions/utils/caseInsensitive.utils.js +6 -0
  207. package/functions/utils/convertIntegrationProviderToExternalActionId.js +16 -0
  208. package/functions/utils/create-provider.js +5 -0
  209. package/functions/utils/enum.utils.js +14 -0
  210. package/functions/utils/erc20tokenFunctions.js +20 -0
  211. package/functions/utils/evmNetworkFunctions.js +29 -0
  212. package/functions/utils/external-action.utils.js +61 -0
  213. package/functions/utils/getDataFromTransaction.js +105 -0
  214. package/functions/utils/memoize.utils.js +14 -0
  215. package/functions/utils/nickname.utils.js +7 -0
  216. package/functions/utils/process.utils.js +4 -0
  217. package/functions/utils/reloadPage.js +4 -0
  218. package/functions/utils/requireEnv.js +7 -0
  219. package/functions/utils/resolve-sync.utils.js +22 -0
  220. package/functions/utils/serialize.utils.js +4 -0
  221. package/functions/utils/string.utils.js +14 -0
  222. package/functions/utils/time.utils.js +8 -0
  223. package/functions/utils/userAgent.js +15 -0
  224. package/functions/utils/volatile-patcher.utils.js +40 -0
  225. package/functions/web3/etherFunctions.js +41 -0
  226. package/functions/web3/events/balanceChangedHandler.js +10 -0
  227. package/functions/web3/events/getInputUtxoAndBalance.js +72 -0
  228. package/functions/web3/events/getShieldedBalance.js +107 -0
  229. package/functions/web3/events/web3RetrieveEvents.js +9 -0
  230. package/functions/web3/functionCalls/accessTokenCalls.js +48 -0
  231. package/functions/web3/functionCalls/approveToken.js +153 -0
  232. package/functions/web3/functionCalls/estimateGasRelayer.js +18 -0
  233. package/functions/web3/functionCalls/transactCallDirect.js +60 -0
  234. package/functions/web3/functionCalls/transactCallRelayer.js +42 -0
  235. package/functions/web3/odosAPI.js +65 -0
  236. package/functions/web3/oneInchAPI.js +61 -0
  237. package/functions/web3/runContractFunction.js +95 -0
  238. package/functions/web3/uniswapAPI.js +97 -0
  239. package/index.js +642 -455
  240. package/package.json +2 -2
  241. package/types/beefy.types.js +21 -0
  242. package/types/circom-data.types.js +22 -0
  243. package/types/curve.types.js +25 -0
  244. package/types/ethereum-network.types.js +4 -0
  245. package/types/external-action.types.js +4 -0
  246. package/types/hinkal.stake.types.js +4 -0
  247. package/types/hinkal.types.js +15 -0
  248. package/types/kyc.types.js +13 -0
  249. package/types/pendle.types.js +15 -0
  250. package/types/rewards.types.js +27 -0
  251. package/types/slippage.types.js +15 -0
  252. package/types/time.types.js +58 -0
  253. package/types/token.types.js +4 -0
  254. package/types/transactions.types.js +36 -0
  255. package/webworker/performTaskWithWorker.js +62 -0
  256. package/webworker/snarkjsWorker/snarkjsWorker.types.js +4 -0
  257. package/{snarkjsWorkerLogic-CVna_BW9.mjs → webworker/snarkjsWorker/snarkjsWorkerLogic.js} +1 -1
  258. package/webworker/utxoWorker/utxoWorker.types.js +4 -0
  259. package/webworker/utxoWorker/utxoWorkerLogic.js +70 -0
  260. package/webworker/worker.registry.js +4 -0
  261. package/webworker/workerFactory.js +42 -0
  262. package/{workerProxy-BDj498Ht.mjs → webworker/workerProxy.js} +1 -1
  263. package/webworker/zkProofWorker/zkProofWorker.types.js +4 -0
  264. package/webworker/zkProofWorker/zkProofWorkerLogic.js +66 -0
  265. package/assets/snarkjsWorkerLogic-B6N4z_eM.js +0 -12136
  266. package/assets/snarkjsWorkerLogic-Fv0M38Mc.js +0 -12087
  267. package/index-DXElTGy9.mjs +0 -254449
  268. package/utxoWorkerLogic-B1Hh-bq4.mjs +0 -64
  269. package/zkProofWorkerLogic-D9rxuuiK.mjs +0 -60
@@ -0,0 +1,1422 @@
1
+ const t = [
2
+ {
3
+ name: "TokenExchange",
4
+ inputs: [
5
+ {
6
+ name: "buyer",
7
+ type: "address",
8
+ indexed: !0
9
+ },
10
+ {
11
+ name: "sold_id",
12
+ type: "uint256",
13
+ indexed: !1
14
+ },
15
+ {
16
+ name: "tokens_sold",
17
+ type: "uint256",
18
+ indexed: !1
19
+ },
20
+ {
21
+ name: "bought_id",
22
+ type: "uint256",
23
+ indexed: !1
24
+ },
25
+ {
26
+ name: "tokens_bought",
27
+ type: "uint256",
28
+ indexed: !1
29
+ }
30
+ ],
31
+ anonymous: !1,
32
+ type: "event"
33
+ },
34
+ {
35
+ name: "AddLiquidity",
36
+ inputs: [
37
+ {
38
+ name: "provider",
39
+ type: "address",
40
+ indexed: !0
41
+ },
42
+ {
43
+ name: "token_amounts",
44
+ type: "uint256[2]",
45
+ indexed: !1
46
+ },
47
+ {
48
+ name: "fee",
49
+ type: "uint256",
50
+ indexed: !1
51
+ },
52
+ {
53
+ name: "token_supply",
54
+ type: "uint256",
55
+ indexed: !1
56
+ }
57
+ ],
58
+ anonymous: !1,
59
+ type: "event"
60
+ },
61
+ {
62
+ name: "RemoveLiquidity",
63
+ inputs: [
64
+ {
65
+ name: "provider",
66
+ type: "address",
67
+ indexed: !0
68
+ },
69
+ {
70
+ name: "token_amounts",
71
+ type: "uint256[2]",
72
+ indexed: !1
73
+ },
74
+ {
75
+ name: "token_supply",
76
+ type: "uint256",
77
+ indexed: !1
78
+ }
79
+ ],
80
+ anonymous: !1,
81
+ type: "event"
82
+ },
83
+ {
84
+ name: "RemoveLiquidityOne",
85
+ inputs: [
86
+ {
87
+ name: "provider",
88
+ type: "address",
89
+ indexed: !0
90
+ },
91
+ {
92
+ name: "token_amount",
93
+ type: "uint256",
94
+ indexed: !1
95
+ },
96
+ {
97
+ name: "coin_index",
98
+ type: "uint256",
99
+ indexed: !1
100
+ },
101
+ {
102
+ name: "coin_amount",
103
+ type: "uint256",
104
+ indexed: !1
105
+ }
106
+ ],
107
+ anonymous: !1,
108
+ type: "event"
109
+ },
110
+ {
111
+ name: "CommitNewParameters",
112
+ inputs: [
113
+ {
114
+ name: "deadline",
115
+ type: "uint256",
116
+ indexed: !0
117
+ },
118
+ {
119
+ name: "admin_fee",
120
+ type: "uint256",
121
+ indexed: !1
122
+ },
123
+ {
124
+ name: "mid_fee",
125
+ type: "uint256",
126
+ indexed: !1
127
+ },
128
+ {
129
+ name: "out_fee",
130
+ type: "uint256",
131
+ indexed: !1
132
+ },
133
+ {
134
+ name: "fee_gamma",
135
+ type: "uint256",
136
+ indexed: !1
137
+ },
138
+ {
139
+ name: "allowed_extra_profit",
140
+ type: "uint256",
141
+ indexed: !1
142
+ },
143
+ {
144
+ name: "adjustment_step",
145
+ type: "uint256",
146
+ indexed: !1
147
+ },
148
+ {
149
+ name: "ma_half_time",
150
+ type: "uint256",
151
+ indexed: !1
152
+ }
153
+ ],
154
+ anonymous: !1,
155
+ type: "event"
156
+ },
157
+ {
158
+ name: "NewParameters",
159
+ inputs: [
160
+ {
161
+ name: "admin_fee",
162
+ type: "uint256",
163
+ indexed: !1
164
+ },
165
+ {
166
+ name: "mid_fee",
167
+ type: "uint256",
168
+ indexed: !1
169
+ },
170
+ {
171
+ name: "out_fee",
172
+ type: "uint256",
173
+ indexed: !1
174
+ },
175
+ {
176
+ name: "fee_gamma",
177
+ type: "uint256",
178
+ indexed: !1
179
+ },
180
+ {
181
+ name: "allowed_extra_profit",
182
+ type: "uint256",
183
+ indexed: !1
184
+ },
185
+ {
186
+ name: "adjustment_step",
187
+ type: "uint256",
188
+ indexed: !1
189
+ },
190
+ {
191
+ name: "ma_half_time",
192
+ type: "uint256",
193
+ indexed: !1
194
+ }
195
+ ],
196
+ anonymous: !1,
197
+ type: "event"
198
+ },
199
+ {
200
+ name: "RampAgamma",
201
+ inputs: [
202
+ {
203
+ name: "initial_A",
204
+ type: "uint256",
205
+ indexed: !1
206
+ },
207
+ {
208
+ name: "future_A",
209
+ type: "uint256",
210
+ indexed: !1
211
+ },
212
+ {
213
+ name: "initial_gamma",
214
+ type: "uint256",
215
+ indexed: !1
216
+ },
217
+ {
218
+ name: "future_gamma",
219
+ type: "uint256",
220
+ indexed: !1
221
+ },
222
+ {
223
+ name: "initial_time",
224
+ type: "uint256",
225
+ indexed: !1
226
+ },
227
+ {
228
+ name: "future_time",
229
+ type: "uint256",
230
+ indexed: !1
231
+ }
232
+ ],
233
+ anonymous: !1,
234
+ type: "event"
235
+ },
236
+ {
237
+ name: "StopRampA",
238
+ inputs: [
239
+ {
240
+ name: "current_A",
241
+ type: "uint256",
242
+ indexed: !1
243
+ },
244
+ {
245
+ name: "current_gamma",
246
+ type: "uint256",
247
+ indexed: !1
248
+ },
249
+ {
250
+ name: "time",
251
+ type: "uint256",
252
+ indexed: !1
253
+ }
254
+ ],
255
+ anonymous: !1,
256
+ type: "event"
257
+ },
258
+ {
259
+ name: "ClaimAdminFee",
260
+ inputs: [
261
+ {
262
+ name: "admin",
263
+ type: "address",
264
+ indexed: !0
265
+ },
266
+ {
267
+ name: "tokens",
268
+ type: "uint256",
269
+ indexed: !1
270
+ }
271
+ ],
272
+ anonymous: !1,
273
+ type: "event"
274
+ },
275
+ {
276
+ stateMutability: "nonpayable",
277
+ type: "constructor",
278
+ inputs: [
279
+ {
280
+ name: "_weth",
281
+ type: "address"
282
+ }
283
+ ],
284
+ outputs: []
285
+ },
286
+ {
287
+ stateMutability: "payable",
288
+ type: "fallback"
289
+ },
290
+ {
291
+ stateMutability: "payable",
292
+ type: "function",
293
+ name: "exchange",
294
+ inputs: [
295
+ {
296
+ name: "i",
297
+ type: "uint256"
298
+ },
299
+ {
300
+ name: "j",
301
+ type: "uint256"
302
+ },
303
+ {
304
+ name: "dx",
305
+ type: "uint256"
306
+ },
307
+ {
308
+ name: "min_dy",
309
+ type: "uint256"
310
+ }
311
+ ],
312
+ outputs: [
313
+ {
314
+ name: "",
315
+ type: "uint256"
316
+ }
317
+ ]
318
+ },
319
+ {
320
+ stateMutability: "payable",
321
+ type: "function",
322
+ name: "exchange",
323
+ inputs: [
324
+ {
325
+ name: "i",
326
+ type: "uint256"
327
+ },
328
+ {
329
+ name: "j",
330
+ type: "uint256"
331
+ },
332
+ {
333
+ name: "dx",
334
+ type: "uint256"
335
+ },
336
+ {
337
+ name: "min_dy",
338
+ type: "uint256"
339
+ },
340
+ {
341
+ name: "use_eth",
342
+ type: "bool"
343
+ }
344
+ ],
345
+ outputs: [
346
+ {
347
+ name: "",
348
+ type: "uint256"
349
+ }
350
+ ]
351
+ },
352
+ {
353
+ stateMutability: "payable",
354
+ type: "function",
355
+ name: "exchange",
356
+ inputs: [
357
+ {
358
+ name: "i",
359
+ type: "uint256"
360
+ },
361
+ {
362
+ name: "j",
363
+ type: "uint256"
364
+ },
365
+ {
366
+ name: "dx",
367
+ type: "uint256"
368
+ },
369
+ {
370
+ name: "min_dy",
371
+ type: "uint256"
372
+ },
373
+ {
374
+ name: "use_eth",
375
+ type: "bool"
376
+ },
377
+ {
378
+ name: "receiver",
379
+ type: "address"
380
+ }
381
+ ],
382
+ outputs: [
383
+ {
384
+ name: "",
385
+ type: "uint256"
386
+ }
387
+ ]
388
+ },
389
+ {
390
+ stateMutability: "payable",
391
+ type: "function",
392
+ name: "exchange_underlying",
393
+ inputs: [
394
+ {
395
+ name: "i",
396
+ type: "uint256"
397
+ },
398
+ {
399
+ name: "j",
400
+ type: "uint256"
401
+ },
402
+ {
403
+ name: "dx",
404
+ type: "uint256"
405
+ },
406
+ {
407
+ name: "min_dy",
408
+ type: "uint256"
409
+ }
410
+ ],
411
+ outputs: [
412
+ {
413
+ name: "",
414
+ type: "uint256"
415
+ }
416
+ ]
417
+ },
418
+ {
419
+ stateMutability: "payable",
420
+ type: "function",
421
+ name: "exchange_underlying",
422
+ inputs: [
423
+ {
424
+ name: "i",
425
+ type: "uint256"
426
+ },
427
+ {
428
+ name: "j",
429
+ type: "uint256"
430
+ },
431
+ {
432
+ name: "dx",
433
+ type: "uint256"
434
+ },
435
+ {
436
+ name: "min_dy",
437
+ type: "uint256"
438
+ },
439
+ {
440
+ name: "receiver",
441
+ type: "address"
442
+ }
443
+ ],
444
+ outputs: [
445
+ {
446
+ name: "",
447
+ type: "uint256"
448
+ }
449
+ ]
450
+ },
451
+ {
452
+ stateMutability: "payable",
453
+ type: "function",
454
+ name: "exchange_extended",
455
+ inputs: [
456
+ {
457
+ name: "i",
458
+ type: "uint256"
459
+ },
460
+ {
461
+ name: "j",
462
+ type: "uint256"
463
+ },
464
+ {
465
+ name: "dx",
466
+ type: "uint256"
467
+ },
468
+ {
469
+ name: "min_dy",
470
+ type: "uint256"
471
+ },
472
+ {
473
+ name: "use_eth",
474
+ type: "bool"
475
+ },
476
+ {
477
+ name: "sender",
478
+ type: "address"
479
+ },
480
+ {
481
+ name: "receiver",
482
+ type: "address"
483
+ },
484
+ {
485
+ name: "cb",
486
+ type: "bytes32"
487
+ }
488
+ ],
489
+ outputs: [
490
+ {
491
+ name: "",
492
+ type: "uint256"
493
+ }
494
+ ]
495
+ },
496
+ {
497
+ stateMutability: "payable",
498
+ type: "function",
499
+ name: "add_liquidity",
500
+ inputs: [
501
+ {
502
+ name: "amounts",
503
+ type: "uint256[2]"
504
+ },
505
+ {
506
+ name: "min_mint_amount",
507
+ type: "uint256"
508
+ }
509
+ ],
510
+ outputs: [
511
+ {
512
+ name: "",
513
+ type: "uint256"
514
+ }
515
+ ]
516
+ },
517
+ {
518
+ stateMutability: "payable",
519
+ type: "function",
520
+ name: "add_liquidity",
521
+ inputs: [
522
+ {
523
+ name: "amounts",
524
+ type: "uint256[2]"
525
+ },
526
+ {
527
+ name: "min_mint_amount",
528
+ type: "uint256"
529
+ },
530
+ {
531
+ name: "use_eth",
532
+ type: "bool"
533
+ }
534
+ ],
535
+ outputs: [
536
+ {
537
+ name: "",
538
+ type: "uint256"
539
+ }
540
+ ]
541
+ },
542
+ {
543
+ stateMutability: "payable",
544
+ type: "function",
545
+ name: "add_liquidity",
546
+ inputs: [
547
+ {
548
+ name: "amounts",
549
+ type: "uint256[2]"
550
+ },
551
+ {
552
+ name: "min_mint_amount",
553
+ type: "uint256"
554
+ },
555
+ {
556
+ name: "use_eth",
557
+ type: "bool"
558
+ },
559
+ {
560
+ name: "receiver",
561
+ type: "address"
562
+ }
563
+ ],
564
+ outputs: [
565
+ {
566
+ name: "",
567
+ type: "uint256"
568
+ }
569
+ ]
570
+ },
571
+ {
572
+ stateMutability: "nonpayable",
573
+ type: "function",
574
+ name: "remove_liquidity",
575
+ inputs: [
576
+ {
577
+ name: "_amount",
578
+ type: "uint256"
579
+ },
580
+ {
581
+ name: "min_amounts",
582
+ type: "uint256[2]"
583
+ }
584
+ ],
585
+ outputs: []
586
+ },
587
+ {
588
+ stateMutability: "nonpayable",
589
+ type: "function",
590
+ name: "remove_liquidity",
591
+ inputs: [
592
+ {
593
+ name: "_amount",
594
+ type: "uint256"
595
+ },
596
+ {
597
+ name: "min_amounts",
598
+ type: "uint256[2]"
599
+ },
600
+ {
601
+ name: "use_eth",
602
+ type: "bool"
603
+ }
604
+ ],
605
+ outputs: []
606
+ },
607
+ {
608
+ stateMutability: "nonpayable",
609
+ type: "function",
610
+ name: "remove_liquidity",
611
+ inputs: [
612
+ {
613
+ name: "_amount",
614
+ type: "uint256"
615
+ },
616
+ {
617
+ name: "min_amounts",
618
+ type: "uint256[2]"
619
+ },
620
+ {
621
+ name: "use_eth",
622
+ type: "bool"
623
+ },
624
+ {
625
+ name: "receiver",
626
+ type: "address"
627
+ }
628
+ ],
629
+ outputs: []
630
+ },
631
+ {
632
+ stateMutability: "nonpayable",
633
+ type: "function",
634
+ name: "remove_liquidity_one_coin",
635
+ inputs: [
636
+ {
637
+ name: "token_amount",
638
+ type: "uint256"
639
+ },
640
+ {
641
+ name: "i",
642
+ type: "uint256"
643
+ },
644
+ {
645
+ name: "min_amount",
646
+ type: "uint256"
647
+ }
648
+ ],
649
+ outputs: [
650
+ {
651
+ name: "",
652
+ type: "uint256"
653
+ }
654
+ ]
655
+ },
656
+ {
657
+ stateMutability: "nonpayable",
658
+ type: "function",
659
+ name: "remove_liquidity_one_coin",
660
+ inputs: [
661
+ {
662
+ name: "token_amount",
663
+ type: "uint256"
664
+ },
665
+ {
666
+ name: "i",
667
+ type: "uint256"
668
+ },
669
+ {
670
+ name: "min_amount",
671
+ type: "uint256"
672
+ },
673
+ {
674
+ name: "use_eth",
675
+ type: "bool"
676
+ }
677
+ ],
678
+ outputs: [
679
+ {
680
+ name: "",
681
+ type: "uint256"
682
+ }
683
+ ]
684
+ },
685
+ {
686
+ stateMutability: "nonpayable",
687
+ type: "function",
688
+ name: "remove_liquidity_one_coin",
689
+ inputs: [
690
+ {
691
+ name: "token_amount",
692
+ type: "uint256"
693
+ },
694
+ {
695
+ name: "i",
696
+ type: "uint256"
697
+ },
698
+ {
699
+ name: "min_amount",
700
+ type: "uint256"
701
+ },
702
+ {
703
+ name: "use_eth",
704
+ type: "bool"
705
+ },
706
+ {
707
+ name: "receiver",
708
+ type: "address"
709
+ }
710
+ ],
711
+ outputs: [
712
+ {
713
+ name: "",
714
+ type: "uint256"
715
+ }
716
+ ]
717
+ },
718
+ {
719
+ stateMutability: "nonpayable",
720
+ type: "function",
721
+ name: "claim_admin_fees",
722
+ inputs: [],
723
+ outputs: []
724
+ },
725
+ {
726
+ stateMutability: "nonpayable",
727
+ type: "function",
728
+ name: "ramp_A_gamma",
729
+ inputs: [
730
+ {
731
+ name: "future_A",
732
+ type: "uint256"
733
+ },
734
+ {
735
+ name: "future_gamma",
736
+ type: "uint256"
737
+ },
738
+ {
739
+ name: "future_time",
740
+ type: "uint256"
741
+ }
742
+ ],
743
+ outputs: []
744
+ },
745
+ {
746
+ stateMutability: "nonpayable",
747
+ type: "function",
748
+ name: "stop_ramp_A_gamma",
749
+ inputs: [],
750
+ outputs: []
751
+ },
752
+ {
753
+ stateMutability: "nonpayable",
754
+ type: "function",
755
+ name: "commit_new_parameters",
756
+ inputs: [
757
+ {
758
+ name: "_new_mid_fee",
759
+ type: "uint256"
760
+ },
761
+ {
762
+ name: "_new_out_fee",
763
+ type: "uint256"
764
+ },
765
+ {
766
+ name: "_new_admin_fee",
767
+ type: "uint256"
768
+ },
769
+ {
770
+ name: "_new_fee_gamma",
771
+ type: "uint256"
772
+ },
773
+ {
774
+ name: "_new_allowed_extra_profit",
775
+ type: "uint256"
776
+ },
777
+ {
778
+ name: "_new_adjustment_step",
779
+ type: "uint256"
780
+ },
781
+ {
782
+ name: "_new_ma_half_time",
783
+ type: "uint256"
784
+ }
785
+ ],
786
+ outputs: []
787
+ },
788
+ {
789
+ stateMutability: "nonpayable",
790
+ type: "function",
791
+ name: "apply_new_parameters",
792
+ inputs: [],
793
+ outputs: []
794
+ },
795
+ {
796
+ stateMutability: "nonpayable",
797
+ type: "function",
798
+ name: "revert_new_parameters",
799
+ inputs: [],
800
+ outputs: []
801
+ },
802
+ {
803
+ stateMutability: "view",
804
+ type: "function",
805
+ name: "get_dy",
806
+ inputs: [
807
+ {
808
+ name: "i",
809
+ type: "uint256"
810
+ },
811
+ {
812
+ name: "j",
813
+ type: "uint256"
814
+ },
815
+ {
816
+ name: "dx",
817
+ type: "uint256"
818
+ }
819
+ ],
820
+ outputs: [
821
+ {
822
+ name: "",
823
+ type: "uint256"
824
+ }
825
+ ]
826
+ },
827
+ {
828
+ stateMutability: "view",
829
+ type: "function",
830
+ name: "calc_token_amount",
831
+ inputs: [
832
+ {
833
+ name: "_amounts",
834
+ type: "uint256[3]"
835
+ },
836
+ {
837
+ name: "is_deposit",
838
+ type: "bool"
839
+ }
840
+ ],
841
+ outputs: [
842
+ {
843
+ name: "",
844
+ type: "uint256"
845
+ }
846
+ ]
847
+ },
848
+ {
849
+ stateMutability: "view",
850
+ type: "function",
851
+ name: "calc_withdraw_one_coin",
852
+ inputs: [
853
+ {
854
+ name: "token_amount",
855
+ type: "uint256"
856
+ },
857
+ {
858
+ name: "i",
859
+ type: "uint256"
860
+ }
861
+ ],
862
+ outputs: [
863
+ {
864
+ name: "",
865
+ type: "uint256"
866
+ }
867
+ ]
868
+ },
869
+ {
870
+ stateMutability: "view",
871
+ type: "function",
872
+ name: "lp_price",
873
+ inputs: [],
874
+ outputs: [
875
+ {
876
+ name: "",
877
+ type: "uint256"
878
+ }
879
+ ]
880
+ },
881
+ {
882
+ stateMutability: "view",
883
+ type: "function",
884
+ name: "A",
885
+ inputs: [],
886
+ outputs: [
887
+ {
888
+ name: "",
889
+ type: "uint256"
890
+ }
891
+ ]
892
+ },
893
+ {
894
+ stateMutability: "view",
895
+ type: "function",
896
+ name: "gamma",
897
+ inputs: [],
898
+ outputs: [
899
+ {
900
+ name: "",
901
+ type: "uint256"
902
+ }
903
+ ]
904
+ },
905
+ {
906
+ stateMutability: "view",
907
+ type: "function",
908
+ name: "fee",
909
+ inputs: [],
910
+ outputs: [
911
+ {
912
+ name: "",
913
+ type: "uint256"
914
+ }
915
+ ]
916
+ },
917
+ {
918
+ stateMutability: "view",
919
+ type: "function",
920
+ name: "get_virtual_price",
921
+ inputs: [],
922
+ outputs: [
923
+ {
924
+ name: "",
925
+ type: "uint256"
926
+ }
927
+ ]
928
+ },
929
+ {
930
+ stateMutability: "view",
931
+ type: "function",
932
+ name: "price_oracle",
933
+ inputs: [],
934
+ outputs: [
935
+ {
936
+ name: "",
937
+ type: "uint256"
938
+ }
939
+ ]
940
+ },
941
+ {
942
+ stateMutability: "nonpayable",
943
+ type: "function",
944
+ name: "initialize",
945
+ inputs: [
946
+ {
947
+ name: "A",
948
+ type: "uint256"
949
+ },
950
+ {
951
+ name: "gamma",
952
+ type: "uint256"
953
+ },
954
+ {
955
+ name: "mid_fee",
956
+ type: "uint256"
957
+ },
958
+ {
959
+ name: "out_fee",
960
+ type: "uint256"
961
+ },
962
+ {
963
+ name: "allowed_extra_profit",
964
+ type: "uint256"
965
+ },
966
+ {
967
+ name: "fee_gamma",
968
+ type: "uint256"
969
+ },
970
+ {
971
+ name: "adjustment_step",
972
+ type: "uint256"
973
+ },
974
+ {
975
+ name: "admin_fee",
976
+ type: "uint256"
977
+ },
978
+ {
979
+ name: "ma_half_time",
980
+ type: "uint256"
981
+ },
982
+ {
983
+ name: "initial_price",
984
+ type: "uint256"
985
+ },
986
+ {
987
+ name: "_token",
988
+ type: "address"
989
+ },
990
+ {
991
+ name: "_coins",
992
+ type: "address[2]"
993
+ },
994
+ {
995
+ name: "_precisions",
996
+ type: "uint256"
997
+ }
998
+ ],
999
+ outputs: []
1000
+ },
1001
+ {
1002
+ stateMutability: "view",
1003
+ type: "function",
1004
+ name: "token",
1005
+ inputs: [],
1006
+ outputs: [
1007
+ {
1008
+ name: "",
1009
+ type: "address"
1010
+ }
1011
+ ]
1012
+ },
1013
+ {
1014
+ stateMutability: "view",
1015
+ type: "function",
1016
+ name: "coins",
1017
+ inputs: [
1018
+ {
1019
+ name: "arg0",
1020
+ type: "uint256"
1021
+ }
1022
+ ],
1023
+ outputs: [
1024
+ {
1025
+ name: "",
1026
+ type: "address"
1027
+ }
1028
+ ]
1029
+ },
1030
+ {
1031
+ stateMutability: "view",
1032
+ type: "function",
1033
+ name: "price_scale",
1034
+ inputs: [],
1035
+ outputs: [
1036
+ {
1037
+ name: "",
1038
+ type: "uint256"
1039
+ }
1040
+ ]
1041
+ },
1042
+ {
1043
+ stateMutability: "view",
1044
+ type: "function",
1045
+ name: "last_prices",
1046
+ inputs: [],
1047
+ outputs: [
1048
+ {
1049
+ name: "",
1050
+ type: "uint256"
1051
+ }
1052
+ ]
1053
+ },
1054
+ {
1055
+ stateMutability: "view",
1056
+ type: "function",
1057
+ name: "last_prices_timestamp",
1058
+ inputs: [],
1059
+ outputs: [
1060
+ {
1061
+ name: "",
1062
+ type: "uint256"
1063
+ }
1064
+ ]
1065
+ },
1066
+ {
1067
+ stateMutability: "view",
1068
+ type: "function",
1069
+ name: "initial_A_gamma",
1070
+ inputs: [],
1071
+ outputs: [
1072
+ {
1073
+ name: "",
1074
+ type: "uint256"
1075
+ }
1076
+ ]
1077
+ },
1078
+ {
1079
+ stateMutability: "view",
1080
+ type: "function",
1081
+ name: "future_A_gamma",
1082
+ inputs: [],
1083
+ outputs: [
1084
+ {
1085
+ name: "",
1086
+ type: "uint256"
1087
+ }
1088
+ ]
1089
+ },
1090
+ {
1091
+ stateMutability: "view",
1092
+ type: "function",
1093
+ name: "initial_A_gamma_time",
1094
+ inputs: [],
1095
+ outputs: [
1096
+ {
1097
+ name: "",
1098
+ type: "uint256"
1099
+ }
1100
+ ]
1101
+ },
1102
+ {
1103
+ stateMutability: "view",
1104
+ type: "function",
1105
+ name: "future_A_gamma_time",
1106
+ inputs: [],
1107
+ outputs: [
1108
+ {
1109
+ name: "",
1110
+ type: "uint256"
1111
+ }
1112
+ ]
1113
+ },
1114
+ {
1115
+ stateMutability: "view",
1116
+ type: "function",
1117
+ name: "allowed_extra_profit",
1118
+ inputs: [],
1119
+ outputs: [
1120
+ {
1121
+ name: "",
1122
+ type: "uint256"
1123
+ }
1124
+ ]
1125
+ },
1126
+ {
1127
+ stateMutability: "view",
1128
+ type: "function",
1129
+ name: "future_allowed_extra_profit",
1130
+ inputs: [],
1131
+ outputs: [
1132
+ {
1133
+ name: "",
1134
+ type: "uint256"
1135
+ }
1136
+ ]
1137
+ },
1138
+ {
1139
+ stateMutability: "view",
1140
+ type: "function",
1141
+ name: "fee_gamma",
1142
+ inputs: [],
1143
+ outputs: [
1144
+ {
1145
+ name: "",
1146
+ type: "uint256"
1147
+ }
1148
+ ]
1149
+ },
1150
+ {
1151
+ stateMutability: "view",
1152
+ type: "function",
1153
+ name: "future_fee_gamma",
1154
+ inputs: [],
1155
+ outputs: [
1156
+ {
1157
+ name: "",
1158
+ type: "uint256"
1159
+ }
1160
+ ]
1161
+ },
1162
+ {
1163
+ stateMutability: "view",
1164
+ type: "function",
1165
+ name: "adjustment_step",
1166
+ inputs: [],
1167
+ outputs: [
1168
+ {
1169
+ name: "",
1170
+ type: "uint256"
1171
+ }
1172
+ ]
1173
+ },
1174
+ {
1175
+ stateMutability: "view",
1176
+ type: "function",
1177
+ name: "future_adjustment_step",
1178
+ inputs: [],
1179
+ outputs: [
1180
+ {
1181
+ name: "",
1182
+ type: "uint256"
1183
+ }
1184
+ ]
1185
+ },
1186
+ {
1187
+ stateMutability: "view",
1188
+ type: "function",
1189
+ name: "ma_half_time",
1190
+ inputs: [],
1191
+ outputs: [
1192
+ {
1193
+ name: "",
1194
+ type: "uint256"
1195
+ }
1196
+ ]
1197
+ },
1198
+ {
1199
+ stateMutability: "view",
1200
+ type: "function",
1201
+ name: "future_ma_half_time",
1202
+ inputs: [],
1203
+ outputs: [
1204
+ {
1205
+ name: "",
1206
+ type: "uint256"
1207
+ }
1208
+ ]
1209
+ },
1210
+ {
1211
+ stateMutability: "view",
1212
+ type: "function",
1213
+ name: "mid_fee",
1214
+ inputs: [],
1215
+ outputs: [
1216
+ {
1217
+ name: "",
1218
+ type: "uint256"
1219
+ }
1220
+ ]
1221
+ },
1222
+ {
1223
+ stateMutability: "view",
1224
+ type: "function",
1225
+ name: "out_fee",
1226
+ inputs: [],
1227
+ outputs: [
1228
+ {
1229
+ name: "",
1230
+ type: "uint256"
1231
+ }
1232
+ ]
1233
+ },
1234
+ {
1235
+ stateMutability: "view",
1236
+ type: "function",
1237
+ name: "admin_fee",
1238
+ inputs: [],
1239
+ outputs: [
1240
+ {
1241
+ name: "",
1242
+ type: "uint256"
1243
+ }
1244
+ ]
1245
+ },
1246
+ {
1247
+ stateMutability: "view",
1248
+ type: "function",
1249
+ name: "future_mid_fee",
1250
+ inputs: [],
1251
+ outputs: [
1252
+ {
1253
+ name: "",
1254
+ type: "uint256"
1255
+ }
1256
+ ]
1257
+ },
1258
+ {
1259
+ stateMutability: "view",
1260
+ type: "function",
1261
+ name: "future_out_fee",
1262
+ inputs: [],
1263
+ outputs: [
1264
+ {
1265
+ name: "",
1266
+ type: "uint256"
1267
+ }
1268
+ ]
1269
+ },
1270
+ {
1271
+ stateMutability: "view",
1272
+ type: "function",
1273
+ name: "future_admin_fee",
1274
+ inputs: [],
1275
+ outputs: [
1276
+ {
1277
+ name: "",
1278
+ type: "uint256"
1279
+ }
1280
+ ]
1281
+ },
1282
+ {
1283
+ stateMutability: "view",
1284
+ type: "function",
1285
+ name: "balances",
1286
+ inputs: [
1287
+ {
1288
+ name: "arg0",
1289
+ type: "uint256"
1290
+ }
1291
+ ],
1292
+ outputs: [
1293
+ {
1294
+ name: "",
1295
+ type: "uint256"
1296
+ }
1297
+ ]
1298
+ },
1299
+ {
1300
+ stateMutability: "view",
1301
+ type: "function",
1302
+ name: "D",
1303
+ inputs: [],
1304
+ outputs: [
1305
+ {
1306
+ name: "",
1307
+ type: "uint256"
1308
+ }
1309
+ ]
1310
+ },
1311
+ {
1312
+ stateMutability: "view",
1313
+ type: "function",
1314
+ name: "factory",
1315
+ inputs: [],
1316
+ outputs: [
1317
+ {
1318
+ name: "",
1319
+ type: "address"
1320
+ }
1321
+ ]
1322
+ },
1323
+ {
1324
+ stateMutability: "view",
1325
+ type: "function",
1326
+ name: "xcp_profit",
1327
+ inputs: [],
1328
+ outputs: [
1329
+ {
1330
+ name: "",
1331
+ type: "uint256"
1332
+ }
1333
+ ]
1334
+ },
1335
+ {
1336
+ stateMutability: "view",
1337
+ type: "function",
1338
+ name: "xcp_profit_a",
1339
+ inputs: [],
1340
+ outputs: [
1341
+ {
1342
+ name: "",
1343
+ type: "uint256"
1344
+ }
1345
+ ]
1346
+ },
1347
+ {
1348
+ stateMutability: "view",
1349
+ type: "function",
1350
+ name: "virtual_price",
1351
+ inputs: [],
1352
+ outputs: [
1353
+ {
1354
+ name: "",
1355
+ type: "uint256"
1356
+ }
1357
+ ]
1358
+ },
1359
+ {
1360
+ stateMutability: "view",
1361
+ type: "function",
1362
+ name: "admin_actions_deadline",
1363
+ inputs: [],
1364
+ outputs: [
1365
+ {
1366
+ name: "",
1367
+ type: "uint256"
1368
+ }
1369
+ ]
1370
+ },
1371
+ {
1372
+ stateMutability: "view",
1373
+ type: "function",
1374
+ name: "initial_A",
1375
+ inputs: [],
1376
+ outputs: [
1377
+ {
1378
+ name: "",
1379
+ type: "uint256"
1380
+ }
1381
+ ]
1382
+ },
1383
+ {
1384
+ stateMutability: "view",
1385
+ type: "function",
1386
+ name: "future_A",
1387
+ inputs: [],
1388
+ outputs: [
1389
+ {
1390
+ name: "",
1391
+ type: "uint256"
1392
+ }
1393
+ ]
1394
+ },
1395
+ {
1396
+ stateMutability: "view",
1397
+ type: "function",
1398
+ name: "initial_A_time",
1399
+ inputs: [],
1400
+ outputs: [
1401
+ {
1402
+ name: "",
1403
+ type: "uint256"
1404
+ }
1405
+ ]
1406
+ },
1407
+ {
1408
+ stateMutability: "view",
1409
+ type: "function",
1410
+ name: "future_A_time",
1411
+ inputs: [],
1412
+ outputs: [
1413
+ {
1414
+ name: "",
1415
+ type: "uint256"
1416
+ }
1417
+ ]
1418
+ }
1419
+ ];
1420
+ export {
1421
+ t as abi
1422
+ };