@swapkit/helpers 4.0.0-beta.33 → 4.0.0-beta.35

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 (251) hide show
  1. package/dist/api/index.js +2 -2
  2. package/dist/api/index.js.map +1 -1
  3. package/dist/{chunk-ganzk321.js → chunk-hm14bfyg.js} +3 -3
  4. package/dist/{chunk-fazw0jvt.js.map → chunk-hm14bfyg.js.map} +1 -1
  5. package/dist/chunk-vb4wtm2w.js +4 -0
  6. package/dist/{chunk-ganzk321.js.map → chunk-vb4wtm2w.js.map} +1 -1
  7. package/dist/contracts.cjs +4 -0
  8. package/dist/contracts.cjs.map +10 -0
  9. package/dist/contracts.js +4 -0
  10. package/dist/contracts.js.map +10 -0
  11. package/dist/index.cjs +3 -3
  12. package/dist/index.cjs.map +9 -9
  13. package/dist/index.js +3 -3
  14. package/dist/index.js.map +9 -9
  15. package/dist/tokens.cjs +4 -0
  16. package/dist/tokens.cjs.map +10 -0
  17. package/dist/tokens.js +4 -0
  18. package/dist/tokens.js.map +10 -0
  19. package/dist/types/api/index.d.ts +238 -0
  20. package/dist/types/api/index.d.ts.map +1 -0
  21. package/dist/types/api/microgard/endpoints.d.ts +25 -0
  22. package/dist/types/api/microgard/endpoints.d.ts.map +1 -0
  23. package/dist/types/api/microgard/types.d.ts +56 -0
  24. package/dist/types/api/microgard/types.d.ts.map +1 -0
  25. package/dist/types/api/midgard/endpoints.d.ts +35 -0
  26. package/dist/types/api/midgard/endpoints.d.ts.map +1 -0
  27. package/dist/types/api/midgard/types.d.ts +102 -0
  28. package/dist/types/api/midgard/types.d.ts.map +1 -0
  29. package/dist/types/api/swapkitApi/endpoints.d.ts +194 -0
  30. package/dist/types/api/swapkitApi/endpoints.d.ts.map +1 -0
  31. package/dist/types/api/swapkitApi/types.d.ts +7238 -0
  32. package/dist/types/api/swapkitApi/types.d.ts.map +1 -0
  33. package/dist/types/api/thornode/endpoints.d.ts +31 -0
  34. package/dist/types/api/thornode/endpoints.d.ts.map +1 -0
  35. package/dist/types/api/thornode/types.d.ts +264 -0
  36. package/dist/types/api/thornode/types.d.ts.map +1 -0
  37. package/dist/types/api/thorswapStatic/endpoints.d.ts +7 -0
  38. package/dist/types/api/thorswapStatic/endpoints.d.ts.map +1 -0
  39. package/dist/types/api/thorswapStatic/types.d.ts +22 -0
  40. package/dist/types/api/thorswapStatic/types.d.ts.map +1 -0
  41. package/dist/types/contracts.d.ts +2 -0
  42. package/dist/types/contracts.d.ts.map +1 -0
  43. package/{src/index.ts → dist/types/index.d.ts} +3 -4
  44. package/dist/types/index.d.ts.map +1 -0
  45. package/dist/types/modules/assetValue.d.ts +71 -0
  46. package/dist/types/modules/assetValue.d.ts.map +1 -0
  47. package/dist/types/modules/bigIntArithmetics.d.ts +56 -0
  48. package/dist/types/modules/bigIntArithmetics.d.ts.map +1 -0
  49. package/dist/types/modules/feeMultiplier.d.ts +45 -0
  50. package/dist/types/modules/feeMultiplier.d.ts.map +1 -0
  51. package/dist/types/modules/requestClient.d.ts +22 -0
  52. package/dist/types/modules/requestClient.d.ts.map +1 -0
  53. package/dist/types/modules/swapKitConfig.d.ts +98 -0
  54. package/dist/types/modules/swapKitConfig.d.ts.map +1 -0
  55. package/dist/types/modules/swapKitError.d.ts +829 -0
  56. package/dist/types/modules/swapKitError.d.ts.map +1 -0
  57. package/dist/types/modules/swapKitNumber.d.ts +7 -0
  58. package/dist/types/modules/swapKitNumber.d.ts.map +1 -0
  59. package/dist/types/tokens.d.ts +2 -0
  60. package/dist/types/tokens.d.ts.map +1 -0
  61. package/dist/types/types/chains.d.ts +187 -0
  62. package/dist/types/types/chains.d.ts.map +1 -0
  63. package/dist/types/types/commonTypes.d.ts +37 -0
  64. package/dist/types/types/commonTypes.d.ts.map +1 -0
  65. package/dist/types/types/derivationPath.d.ts +17 -0
  66. package/dist/types/types/derivationPath.d.ts.map +1 -0
  67. package/dist/types/types/errors/apiV1.d.ts +2 -0
  68. package/dist/types/types/errors/apiV1.d.ts.map +1 -0
  69. package/{src/types/index.ts → dist/types/types/index.d.ts} +1 -1
  70. package/dist/types/types/index.d.ts.map +1 -0
  71. package/dist/types/types/quotes.d.ts +170 -0
  72. package/dist/types/types/quotes.d.ts.map +1 -0
  73. package/dist/types/types/radix.d.ts +15 -0
  74. package/dist/types/types/radix.d.ts.map +1 -0
  75. package/dist/types/types/sdk.d.ts +35 -0
  76. package/dist/types/types/sdk.d.ts.map +1 -0
  77. package/dist/types/types/wallet.d.ts +122 -0
  78. package/dist/types/types/wallet.d.ts.map +1 -0
  79. package/dist/types/utils/asset.d.ts +40 -0
  80. package/dist/types/utils/asset.d.ts.map +1 -0
  81. package/dist/types/utils/derivationPath.d.ts +19 -0
  82. package/dist/types/utils/derivationPath.d.ts.map +1 -0
  83. package/dist/types/utils/explorerUrls.d.ts +10 -0
  84. package/dist/types/utils/explorerUrls.d.ts.map +1 -0
  85. package/dist/types/utils/liquidity.d.ts +59 -0
  86. package/dist/types/utils/liquidity.d.ts.map +1 -0
  87. package/dist/types/utils/memo.d.ts +65 -0
  88. package/dist/types/utils/memo.d.ts.map +1 -0
  89. package/dist/types/utils/others.d.ts +9 -0
  90. package/dist/types/utils/others.d.ts.map +1 -0
  91. package/dist/types/utils/validators.d.ts +3 -0
  92. package/dist/types/utils/validators.d.ts.map +1 -0
  93. package/dist/types/utils/wallets.d.ts +32 -0
  94. package/dist/types/utils/wallets.d.ts.map +1 -0
  95. package/package.json +14 -15
  96. package/dist/chunk-06q78xy3.js +0 -4
  97. package/dist/chunk-06q78xy3.js.map +0 -10
  98. package/dist/chunk-0q5vvg5c.js +0 -5
  99. package/dist/chunk-0q5vvg5c.js.map +0 -10
  100. package/dist/chunk-18bxh1n7.js +0 -5
  101. package/dist/chunk-18bxh1n7.js.map +0 -10
  102. package/dist/chunk-3qya5ng9.js +0 -4
  103. package/dist/chunk-3qya5ng9.js.map +0 -10
  104. package/dist/chunk-4yqymkbp.js +0 -5
  105. package/dist/chunk-4yqymkbp.js.map +0 -10
  106. package/dist/chunk-50gpwcq9.js +0 -4
  107. package/dist/chunk-50gpwcq9.js.map +0 -10
  108. package/dist/chunk-6atq9cs7.js +0 -4
  109. package/dist/chunk-6atq9cs7.js.map +0 -10
  110. package/dist/chunk-6m0d5pv4.js +0 -5
  111. package/dist/chunk-6m0d5pv4.js.map +0 -10
  112. package/dist/chunk-8x46g3wq.js +0 -5
  113. package/dist/chunk-8x46g3wq.js.map +0 -10
  114. package/dist/chunk-92sk0g47.js +0 -5
  115. package/dist/chunk-92sk0g47.js.map +0 -10
  116. package/dist/chunk-9f2b3enk.js +0 -5
  117. package/dist/chunk-9f2b3enk.js.map +0 -10
  118. package/dist/chunk-adrafsdk.js +0 -5
  119. package/dist/chunk-adrafsdk.js.map +0 -10
  120. package/dist/chunk-b1hang9z.js +0 -5
  121. package/dist/chunk-b1hang9z.js.map +0 -10
  122. package/dist/chunk-becdmywt.js +0 -4
  123. package/dist/chunk-becdmywt.js.map +0 -10
  124. package/dist/chunk-ehz0t9d1.js +0 -4
  125. package/dist/chunk-ehz0t9d1.js.map +0 -10
  126. package/dist/chunk-fazw0jvt.js +0 -4
  127. package/dist/chunk-fm9ycn0h.js +0 -5
  128. package/dist/chunk-fm9ycn0h.js.map +0 -10
  129. package/dist/chunk-g67e2r57.js +0 -4
  130. package/dist/chunk-g67e2r57.js.map +0 -10
  131. package/dist/chunk-he3vy8gt.js +0 -4
  132. package/dist/chunk-he3vy8gt.js.map +0 -10
  133. package/dist/chunk-jjayk2y5.js +0 -4
  134. package/dist/chunk-jjayk2y5.js.map +0 -10
  135. package/dist/chunk-mmyv2vsv.js +0 -5
  136. package/dist/chunk-mmyv2vsv.js.map +0 -10
  137. package/dist/chunk-phev7aw7.js +0 -4
  138. package/dist/chunk-phev7aw7.js.map +0 -10
  139. package/dist/chunk-rhqk87p2.js +0 -5
  140. package/dist/chunk-rhqk87p2.js.map +0 -10
  141. package/dist/chunk-rnv7fdjk.js +0 -4
  142. package/dist/chunk-rnv7fdjk.js.map +0 -10
  143. package/dist/chunk-rwh98p1c.js +0 -4
  144. package/dist/chunk-rwh98p1c.js.map +0 -10
  145. package/dist/chunk-v9zj2gsj.js +0 -5
  146. package/dist/chunk-v9zj2gsj.js.map +0 -10
  147. package/dist/chunk-vv5bgsn8.js +0 -4
  148. package/dist/chunk-vv5bgsn8.js.map +0 -10
  149. package/dist/chunk-vwh9jfxn.js +0 -5
  150. package/dist/chunk-vwh9jfxn.js.map +0 -10
  151. package/dist/chunk-x0rqy75t.js +0 -4
  152. package/dist/chunk-x0rqy75t.js.map +0 -10
  153. package/dist/contracts/index.cjs +0 -4
  154. package/dist/contracts/index.cjs.map +0 -38
  155. package/dist/contracts/index.js +0 -4
  156. package/dist/contracts/index.js.map +0 -38
  157. package/dist/tokens/index.cjs +0 -4
  158. package/dist/tokens/index.cjs.map +0 -10
  159. package/dist/tokens/index.js +0 -4
  160. package/dist/tokens/index.js.map +0 -10
  161. package/src/api/index.ts +0 -19
  162. package/src/api/microgard/endpoints.ts +0 -83
  163. package/src/api/microgard/types.ts +0 -57
  164. package/src/api/midgard/endpoints.ts +0 -90
  165. package/src/api/midgard/types.ts +0 -106
  166. package/src/api/swapkitApi/endpoints.ts +0 -193
  167. package/src/api/swapkitApi/types.ts +0 -635
  168. package/src/api/thornode/endpoints.ts +0 -116
  169. package/src/api/thornode/types.ts +0 -276
  170. package/src/api/thorswapStatic/endpoints.ts +0 -46
  171. package/src/api/thorswapStatic/types.ts +0 -18
  172. package/src/contracts/abis/avaxGeneric.ts +0 -92
  173. package/src/contracts/abis/avaxWoofi.ts +0 -145
  174. package/src/contracts/abis/bscGeneric.ts +0 -106
  175. package/src/contracts/abis/chainflipGateway.ts +0 -330
  176. package/src/contracts/abis/erc20.ts +0 -99
  177. package/src/contracts/abis/ethGeneric.ts +0 -92
  178. package/src/contracts/abis/mayaEvmVaults.ts +0 -331
  179. package/src/contracts/abis/pancakeV2.ts +0 -145
  180. package/src/contracts/abis/pangolin.ts +0 -120
  181. package/src/contracts/abis/sushiswap.ts +0 -120
  182. package/src/contracts/abis/tcEthVault.ts +0 -650
  183. package/src/contracts/abis/traderJoe.ts +0 -120
  184. package/src/contracts/abis/uniswapV2.ts +0 -120
  185. package/src/contracts/abis/uniswapV2Leg.ts +0 -128
  186. package/src/contracts/abis/uniswapV3_100.ts +0 -128
  187. package/src/contracts/abis/uniswapV3_10000.ts +0 -128
  188. package/src/contracts/abis/uniswapV3_3000.ts +0 -128
  189. package/src/contracts/abis/uniswapV3_500.ts +0 -128
  190. package/src/contracts/index.ts +0 -95
  191. package/src/contracts/routers/index.ts +0 -58
  192. package/src/contracts/routers/kyber.ts +0 -402
  193. package/src/contracts/routers/oneinch.ts +0 -2188
  194. package/src/contracts/routers/pancakeswap.ts +0 -340
  195. package/src/contracts/routers/pangolin.ts +0 -340
  196. package/src/contracts/routers/sushiswap.ts +0 -340
  197. package/src/contracts/routers/traderJoe.ts +0 -340
  198. package/src/contracts/routers/uniswapv2.ts +0 -340
  199. package/src/contracts/routers/uniswapv3.ts +0 -254
  200. package/src/contracts/routers/woofi.ts +0 -171
  201. package/src/modules/__tests__/assetValue.test.ts +0 -877
  202. package/src/modules/__tests__/bigIntArithmetics.test.ts +0 -30
  203. package/src/modules/__tests__/swapKitConfig.test.ts +0 -37
  204. package/src/modules/__tests__/swapKitNumber.test.ts +0 -560
  205. package/src/modules/assetValue.ts +0 -387
  206. package/src/modules/bigIntArithmetics.ts +0 -436
  207. package/src/modules/feeMultiplier.ts +0 -87
  208. package/src/modules/requestClient.ts +0 -83
  209. package/src/modules/swapKitConfig.ts +0 -143
  210. package/src/modules/swapKitError.ts +0 -442
  211. package/src/modules/swapKitNumber.ts +0 -16
  212. package/src/tokens/index.ts +0 -15
  213. package/src/tokens/lists/camelot_v3.ts +0 -16060
  214. package/src/tokens/lists/caviar_v1.ts +0 -1704
  215. package/src/tokens/lists/chainflip.ts +0 -104
  216. package/src/tokens/lists/index.ts +0 -14
  217. package/src/tokens/lists/jupiter.ts +0 -33563
  218. package/src/tokens/lists/mayachain.ts +0 -509
  219. package/src/tokens/lists/near.ts +0 -458
  220. package/src/tokens/lists/oneinch.ts +0 -15006
  221. package/src/tokens/lists/openocean_v2.ts +0 -12434
  222. package/src/tokens/lists/pancakeswap.ts +0 -6136
  223. package/src/tokens/lists/pangolin_v1.ts +0 -75
  224. package/src/tokens/lists/sushiswap_v2.ts +0 -595
  225. package/src/tokens/lists/thorchain.ts +0 -748
  226. package/src/tokens/lists/traderjoe_v2.ts +0 -594
  227. package/src/tokens/lists/uniswap_v2.ts +0 -11484
  228. package/src/tokens/lists/uniswap_v3.ts +0 -19424
  229. package/src/types/chains.ts +0 -555
  230. package/src/types/commonTypes.ts +0 -58
  231. package/src/types/derivationPath.ts +0 -58
  232. package/src/types/errors/apiV1.ts +0 -0
  233. package/src/types/quotes.ts +0 -172
  234. package/src/types/radix.ts +0 -14
  235. package/src/types/sdk.ts +0 -42
  236. package/src/types/tokens.ts +0 -17
  237. package/src/types/wallet.ts +0 -166
  238. package/src/utils/__tests__/asset.test.ts +0 -193
  239. package/src/utils/__tests__/derivationPath.test.ts +0 -16
  240. package/src/utils/__tests__/memo.test.ts +0 -103
  241. package/src/utils/__tests__/others.test.ts +0 -88
  242. package/src/utils/__tests__/validators.test.ts +0 -24
  243. package/src/utils/asset.ts +0 -231
  244. package/src/utils/derivationPath.ts +0 -98
  245. package/src/utils/liquidity.ts +0 -179
  246. package/src/utils/memo.ts +0 -143
  247. package/src/utils/others.ts +0 -86
  248. package/src/utils/plugin.ts +0 -13
  249. package/src/utils/tokens.ts +0 -73
  250. package/src/utils/validators.ts +0 -32
  251. package/src/utils/wallets.ts +0 -276
@@ -1,106 +0,0 @@
1
- export const bscGeneric = [
2
- {
3
- inputs: [{ internalType: "address", name: "_ttp", type: "address" }],
4
- stateMutability: "nonpayable",
5
- type: "constructor",
6
- },
7
- {
8
- anonymous: false,
9
- inputs: [
10
- { indexed: false, internalType: "uint256", name: "fee", type: "uint256" },
11
- { indexed: false, internalType: "address", name: "feeRecipient", type: "address" },
12
- ],
13
- name: "FeeSet",
14
- type: "event",
15
- },
16
- {
17
- anonymous: false,
18
- inputs: [
19
- { indexed: true, internalType: "address", name: "owner", type: "address" },
20
- { indexed: false, internalType: "bool", name: "active", type: "bool" },
21
- ],
22
- name: "OwnerSet",
23
- type: "event",
24
- },
25
- {
26
- anonymous: false,
27
- inputs: [
28
- { indexed: false, internalType: "address", name: "from", type: "address" },
29
- { indexed: false, internalType: "address", name: "token", type: "address" },
30
- { indexed: false, internalType: "uint256", name: "amount", type: "uint256" },
31
- { indexed: false, internalType: "uint256", name: "out", type: "uint256" },
32
- { indexed: false, internalType: "uint256", name: "fee", type: "uint256" },
33
- { indexed: false, internalType: "address", name: "vault", type: "address" },
34
- { indexed: false, internalType: "string", name: "memo", type: "string" },
35
- ],
36
- name: "SwapIn",
37
- type: "event",
38
- },
39
- {
40
- inputs: [],
41
- name: "fee",
42
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
43
- stateMutability: "view",
44
- type: "function",
45
- },
46
- {
47
- inputs: [],
48
- name: "feeRecipient",
49
- outputs: [{ internalType: "address", name: "", type: "address" }],
50
- stateMutability: "view",
51
- type: "function",
52
- },
53
- {
54
- inputs: [{ internalType: "address", name: "", type: "address" }],
55
- name: "owners",
56
- outputs: [{ internalType: "bool", name: "", type: "bool" }],
57
- stateMutability: "view",
58
- type: "function",
59
- },
60
- {
61
- inputs: [
62
- { internalType: "uint256", name: "_fee", type: "uint256" },
63
- { internalType: "address", name: "_feeRecipient", type: "address" },
64
- ],
65
- name: "setFee",
66
- outputs: [],
67
- stateMutability: "nonpayable",
68
- type: "function",
69
- },
70
- {
71
- inputs: [
72
- { internalType: "address", name: "owner", type: "address" },
73
- { internalType: "bool", name: "active", type: "bool" },
74
- ],
75
- name: "setOwner",
76
- outputs: [],
77
- stateMutability: "nonpayable",
78
- type: "function",
79
- },
80
- {
81
- inputs: [
82
- { internalType: "address", name: "router", type: "address" },
83
- { internalType: "address", name: "vault", type: "address" },
84
- { internalType: "string", name: "memo", type: "string" },
85
- { internalType: "address", name: "token", type: "address" },
86
- { internalType: "uint256", name: "amount", type: "uint256" },
87
- { internalType: "address", name: "swapRouter", type: "address" },
88
- { internalType: "bytes", name: "data", type: "bytes" },
89
- { internalType: "uint256", name: "deadline", type: "uint256" },
90
- ],
91
- name: "swapIn",
92
- outputs: [],
93
- stateMutability: "nonpayable",
94
- type: "function",
95
- },
96
- {
97
- inputs: [],
98
- name: "tokenTransferProxy",
99
- outputs: [
100
- { internalType: "contract TSAggregatorTokenTransferProxy", name: "", type: "address" },
101
- ],
102
- stateMutability: "view",
103
- type: "function",
104
- },
105
- { stateMutability: "payable", type: "receive" },
106
- ];
@@ -1,330 +0,0 @@
1
- export const chainflipGateway = [
2
- {
3
- inputs: [
4
- { internalType: "contract IKeyManager", name: "keyManager", type: "address" },
5
- { internalType: "uint256", name: "minFunding", type: "uint256" },
6
- { internalType: "uint48", name: "redemptionDelay", type: "uint48" },
7
- ],
8
- stateMutability: "nonpayable",
9
- type: "constructor",
10
- },
11
- {
12
- anonymous: false,
13
- inputs: [
14
- { indexed: false, internalType: "bool", name: "communityGuardDisabled", type: "bool" },
15
- ],
16
- name: "CommunityGuardDisabled",
17
- type: "event",
18
- },
19
- {
20
- anonymous: false,
21
- inputs: [{ indexed: false, internalType: "address", name: "flip", type: "address" }],
22
- name: "FLIPSet",
23
- type: "event",
24
- },
25
- {
26
- anonymous: false,
27
- inputs: [
28
- { indexed: false, internalType: "uint256", name: "oldSupply", type: "uint256" },
29
- { indexed: false, internalType: "uint256", name: "newSupply", type: "uint256" },
30
- { indexed: false, internalType: "uint256", name: "stateChainBlockNumber", type: "uint256" },
31
- ],
32
- name: "FlipSupplyUpdated",
33
- type: "event",
34
- },
35
- {
36
- anonymous: false,
37
- inputs: [
38
- { indexed: true, internalType: "bytes32", name: "nodeID", type: "bytes32" },
39
- { indexed: false, internalType: "uint256", name: "amount", type: "uint256" },
40
- { indexed: false, internalType: "address", name: "funder", type: "address" },
41
- ],
42
- name: "Funded",
43
- type: "event",
44
- },
45
- {
46
- anonymous: false,
47
- inputs: [
48
- { indexed: false, internalType: "address", name: "to", type: "address" },
49
- { indexed: false, internalType: "uint256", name: "amount", type: "uint256" },
50
- ],
51
- name: "GovernanceWithdrawal",
52
- type: "event",
53
- },
54
- {
55
- anonymous: false,
56
- inputs: [
57
- { indexed: false, internalType: "uint256", name: "oldMinFunding", type: "uint256" },
58
- { indexed: false, internalType: "uint256", name: "newMinFunding", type: "uint256" },
59
- ],
60
- name: "MinFundingChanged",
61
- type: "event",
62
- },
63
- {
64
- anonymous: false,
65
- inputs: [
66
- { indexed: true, internalType: "bytes32", name: "nodeID", type: "bytes32" },
67
- { indexed: false, internalType: "uint256", name: "amount", type: "uint256" },
68
- ],
69
- name: "RedemptionExecuted",
70
- type: "event",
71
- },
72
- {
73
- anonymous: false,
74
- inputs: [
75
- { indexed: true, internalType: "bytes32", name: "nodeID", type: "bytes32" },
76
- { indexed: false, internalType: "uint256", name: "amount", type: "uint256" },
77
- ],
78
- name: "RedemptionExpired",
79
- type: "event",
80
- },
81
- {
82
- anonymous: false,
83
- inputs: [
84
- { indexed: true, internalType: "bytes32", name: "nodeID", type: "bytes32" },
85
- { indexed: false, internalType: "uint256", name: "amount", type: "uint256" },
86
- { indexed: true, internalType: "address", name: "redeemAddress", type: "address" },
87
- { indexed: false, internalType: "uint48", name: "startTime", type: "uint48" },
88
- { indexed: false, internalType: "uint48", name: "expiryTime", type: "uint48" },
89
- { indexed: false, internalType: "address", name: "executor", type: "address" },
90
- ],
91
- name: "RedemptionRegistered",
92
- type: "event",
93
- },
94
- {
95
- anonymous: false,
96
- inputs: [{ indexed: false, internalType: "bool", name: "suspended", type: "bool" }],
97
- name: "Suspended",
98
- type: "event",
99
- },
100
- {
101
- anonymous: false,
102
- inputs: [{ indexed: false, internalType: "address", name: "keyManager", type: "address" }],
103
- name: "UpdatedKeyManager",
104
- type: "event",
105
- },
106
- {
107
- inputs: [],
108
- name: "REDEMPTION_DELAY",
109
- outputs: [{ internalType: "uint48", name: "", type: "uint48" }],
110
- stateMutability: "view",
111
- type: "function",
112
- },
113
- {
114
- inputs: [],
115
- name: "disableCommunityGuard",
116
- outputs: [],
117
- stateMutability: "nonpayable",
118
- type: "function",
119
- },
120
- {
121
- inputs: [],
122
- name: "enableCommunityGuard",
123
- outputs: [],
124
- stateMutability: "nonpayable",
125
- type: "function",
126
- },
127
- {
128
- inputs: [{ internalType: "bytes32", name: "nodeID", type: "bytes32" }],
129
- name: "executeRedemption",
130
- outputs: [
131
- { internalType: "address", name: "", type: "address" },
132
- { internalType: "uint256", name: "", type: "uint256" },
133
- ],
134
- stateMutability: "nonpayable",
135
- type: "function",
136
- },
137
- {
138
- inputs: [
139
- { internalType: "bytes32", name: "nodeID", type: "bytes32" },
140
- { internalType: "uint256", name: "amount", type: "uint256" },
141
- ],
142
- name: "fundStateChainAccount",
143
- outputs: [],
144
- stateMutability: "nonpayable",
145
- type: "function",
146
- },
147
- {
148
- inputs: [],
149
- name: "getCommunityGuardDisabled",
150
- outputs: [{ internalType: "bool", name: "", type: "bool" }],
151
- stateMutability: "view",
152
- type: "function",
153
- },
154
- {
155
- inputs: [],
156
- name: "getCommunityKey",
157
- outputs: [{ internalType: "address", name: "", type: "address" }],
158
- stateMutability: "view",
159
- type: "function",
160
- },
161
- {
162
- inputs: [],
163
- name: "getFLIP",
164
- outputs: [{ internalType: "contract IFLIP", name: "", type: "address" }],
165
- stateMutability: "view",
166
- type: "function",
167
- },
168
- {
169
- inputs: [],
170
- name: "getGovernor",
171
- outputs: [{ internalType: "address", name: "", type: "address" }],
172
- stateMutability: "view",
173
- type: "function",
174
- },
175
- {
176
- inputs: [],
177
- name: "getKeyManager",
178
- outputs: [{ internalType: "contract IKeyManager", name: "", type: "address" }],
179
- stateMutability: "view",
180
- type: "function",
181
- },
182
- {
183
- inputs: [],
184
- name: "getLastSupplyUpdateBlockNumber",
185
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
186
- stateMutability: "view",
187
- type: "function",
188
- },
189
- {
190
- inputs: [],
191
- name: "getMinimumFunding",
192
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
193
- stateMutability: "view",
194
- type: "function",
195
- },
196
- {
197
- inputs: [{ internalType: "bytes32", name: "nodeID", type: "bytes32" }],
198
- name: "getPendingRedemption",
199
- outputs: [
200
- {
201
- components: [
202
- { internalType: "uint256", name: "amount", type: "uint256" },
203
- { internalType: "address", name: "redeemAddress", type: "address" },
204
- { internalType: "uint48", name: "startTime", type: "uint48" },
205
- { internalType: "uint48", name: "expiryTime", type: "uint48" },
206
- { internalType: "address", name: "executor", type: "address" },
207
- ],
208
- internalType: "struct IStateChainGateway.Redemption",
209
- name: "",
210
- type: "tuple",
211
- },
212
- ],
213
- stateMutability: "view",
214
- type: "function",
215
- },
216
- {
217
- inputs: [],
218
- name: "getSuspendedState",
219
- outputs: [{ internalType: "bool", name: "", type: "bool" }],
220
- stateMutability: "view",
221
- type: "function",
222
- },
223
- {
224
- inputs: [],
225
- name: "govUpdateFlipIssuer",
226
- outputs: [],
227
- stateMutability: "nonpayable",
228
- type: "function",
229
- },
230
- { inputs: [], name: "govWithdraw", outputs: [], stateMutability: "nonpayable", type: "function" },
231
- {
232
- inputs: [
233
- {
234
- components: [
235
- { internalType: "uint256", name: "sig", type: "uint256" },
236
- { internalType: "uint256", name: "nonce", type: "uint256" },
237
- { internalType: "address", name: "kTimesGAddress", type: "address" },
238
- ],
239
- internalType: "struct IShared.SigData",
240
- name: "sigData",
241
- type: "tuple",
242
- },
243
- { internalType: "bytes32", name: "nodeID", type: "bytes32" },
244
- { internalType: "uint256", name: "amount", type: "uint256" },
245
- { internalType: "address", name: "redeemAddress", type: "address" },
246
- { internalType: "uint48", name: "expiryTime", type: "uint48" },
247
- { internalType: "address", name: "executor", type: "address" },
248
- ],
249
- name: "registerRedemption",
250
- outputs: [],
251
- stateMutability: "nonpayable",
252
- type: "function",
253
- },
254
- { inputs: [], name: "resume", outputs: [], stateMutability: "nonpayable", type: "function" },
255
- {
256
- inputs: [{ internalType: "contract IFLIP", name: "flip", type: "address" }],
257
- name: "setFlip",
258
- outputs: [],
259
- stateMutability: "nonpayable",
260
- type: "function",
261
- },
262
- {
263
- inputs: [{ internalType: "uint256", name: "newMinFunding", type: "uint256" }],
264
- name: "setMinFunding",
265
- outputs: [],
266
- stateMutability: "nonpayable",
267
- type: "function",
268
- },
269
- { inputs: [], name: "suspend", outputs: [], stateMutability: "nonpayable", type: "function" },
270
- {
271
- inputs: [
272
- {
273
- components: [
274
- { internalType: "uint256", name: "sig", type: "uint256" },
275
- { internalType: "uint256", name: "nonce", type: "uint256" },
276
- { internalType: "address", name: "kTimesGAddress", type: "address" },
277
- ],
278
- internalType: "struct IShared.SigData",
279
- name: "sigData",
280
- type: "tuple",
281
- },
282
- { internalType: "address", name: "newIssuer", type: "address" },
283
- { internalType: "bool", name: "omitChecks", type: "bool" },
284
- ],
285
- name: "updateFlipIssuer",
286
- outputs: [],
287
- stateMutability: "nonpayable",
288
- type: "function",
289
- },
290
- {
291
- inputs: [
292
- {
293
- components: [
294
- { internalType: "uint256", name: "sig", type: "uint256" },
295
- { internalType: "uint256", name: "nonce", type: "uint256" },
296
- { internalType: "address", name: "kTimesGAddress", type: "address" },
297
- ],
298
- internalType: "struct IShared.SigData",
299
- name: "sigData",
300
- type: "tuple",
301
- },
302
- { internalType: "uint256", name: "newTotalSupply", type: "uint256" },
303
- { internalType: "uint256", name: "stateChainBlockNumber", type: "uint256" },
304
- ],
305
- name: "updateFlipSupply",
306
- outputs: [],
307
- stateMutability: "nonpayable",
308
- type: "function",
309
- },
310
- {
311
- inputs: [
312
- {
313
- components: [
314
- { internalType: "uint256", name: "sig", type: "uint256" },
315
- { internalType: "uint256", name: "nonce", type: "uint256" },
316
- { internalType: "address", name: "kTimesGAddress", type: "address" },
317
- ],
318
- internalType: "struct IShared.SigData",
319
- name: "sigData",
320
- type: "tuple",
321
- },
322
- { internalType: "contract IKeyManager", name: "keyManager", type: "address" },
323
- { internalType: "bool", name: "omitChecks", type: "bool" },
324
- ],
325
- name: "updateKeyManager",
326
- outputs: [],
327
- stateMutability: "nonpayable",
328
- type: "function",
329
- },
330
- ];
@@ -1,99 +0,0 @@
1
- export const erc20ABI = [
2
- { inputs: [], stateMutability: "nonpayable", type: "constructor" },
3
- {
4
- anonymous: false,
5
- inputs: [
6
- { indexed: true, internalType: "address", name: "owner", type: "address" },
7
- { indexed: true, internalType: "address", name: "spender", type: "address" },
8
- { indexed: false, internalType: "uint256", name: "value", type: "uint256" },
9
- ],
10
- name: "Approval",
11
- type: "event",
12
- },
13
- {
14
- anonymous: false,
15
- inputs: [
16
- { indexed: true, internalType: "address", name: "from", type: "address" },
17
- { indexed: true, internalType: "address", name: "to", type: "address" },
18
- { indexed: false, internalType: "uint256", name: "value", type: "uint256" },
19
- ],
20
- name: "Transfer",
21
- type: "event",
22
- },
23
- {
24
- inputs: [
25
- { internalType: "address", name: "", type: "address" },
26
- { internalType: "address", name: "", type: "address" },
27
- ],
28
- name: "allowance",
29
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
30
- stateMutability: "view",
31
- type: "function",
32
- },
33
- {
34
- inputs: [
35
- { internalType: "address", name: "spender", type: "address" },
36
- { internalType: "uint256", name: "value", type: "uint256" },
37
- ],
38
- name: "approve",
39
- outputs: [{ internalType: "bool", name: "success", type: "bool" }],
40
- stateMutability: "nonpayable",
41
- type: "function",
42
- },
43
- {
44
- inputs: [{ internalType: "address", name: "", type: "address" }],
45
- name: "balanceOf",
46
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
47
- stateMutability: "view",
48
- type: "function",
49
- },
50
- {
51
- inputs: [],
52
- name: "decimals",
53
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
54
- stateMutability: "view",
55
- type: "function",
56
- },
57
- {
58
- inputs: [],
59
- name: "name",
60
- outputs: [{ internalType: "string", name: "", type: "string" }],
61
- stateMutability: "view",
62
- type: "function",
63
- },
64
- {
65
- inputs: [],
66
- name: "symbol",
67
- outputs: [{ internalType: "string", name: "", type: "string" }],
68
- stateMutability: "view",
69
- type: "function",
70
- },
71
- {
72
- inputs: [],
73
- name: "totalSupply",
74
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
75
- stateMutability: "view",
76
- type: "function",
77
- },
78
- {
79
- inputs: [
80
- { internalType: "address", name: "to", type: "address" },
81
- { internalType: "uint256", name: "value", type: "uint256" },
82
- ],
83
- name: "transfer",
84
- outputs: [{ internalType: "bool", name: "success", type: "bool" }],
85
- stateMutability: "nonpayable",
86
- type: "function",
87
- },
88
- {
89
- inputs: [
90
- { internalType: "address", name: "from", type: "address" },
91
- { internalType: "address", name: "to", type: "address" },
92
- { internalType: "uint256", name: "value", type: "uint256" },
93
- ],
94
- name: "transferFrom",
95
- outputs: [{ internalType: "bool", name: "success", type: "bool" }],
96
- stateMutability: "nonpayable",
97
- type: "function",
98
- },
99
- ];
@@ -1,92 +0,0 @@
1
- export const ethGeneric = [
2
- {
3
- inputs: [{ internalType: "address", name: "_ttp", type: "address" }],
4
- stateMutability: "nonpayable",
5
- type: "constructor",
6
- },
7
- {
8
- anonymous: false,
9
- inputs: [
10
- { indexed: false, internalType: "uint256", name: "fee", type: "uint256" },
11
- { indexed: false, internalType: "address", name: "feeRecipient", type: "address" },
12
- ],
13
- name: "FeeSet",
14
- type: "event",
15
- },
16
- {
17
- anonymous: false,
18
- inputs: [
19
- { indexed: true, internalType: "address", name: "owner", type: "address" },
20
- { indexed: false, internalType: "bool", name: "active", type: "bool" },
21
- ],
22
- name: "OwnerSet",
23
- type: "event",
24
- },
25
- {
26
- inputs: [],
27
- name: "fee",
28
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
29
- stateMutability: "view",
30
- type: "function",
31
- },
32
- {
33
- inputs: [],
34
- name: "feeRecipient",
35
- outputs: [{ internalType: "address", name: "", type: "address" }],
36
- stateMutability: "view",
37
- type: "function",
38
- },
39
- {
40
- inputs: [{ internalType: "address", name: "", type: "address" }],
41
- name: "owners",
42
- outputs: [{ internalType: "bool", name: "", type: "bool" }],
43
- stateMutability: "view",
44
- type: "function",
45
- },
46
- {
47
- inputs: [
48
- { internalType: "uint256", name: "_fee", type: "uint256" },
49
- { internalType: "address", name: "_feeRecipient", type: "address" },
50
- ],
51
- name: "setFee",
52
- outputs: [],
53
- stateMutability: "nonpayable",
54
- type: "function",
55
- },
56
- {
57
- inputs: [
58
- { internalType: "address", name: "owner", type: "address" },
59
- { internalType: "bool", name: "active", type: "bool" },
60
- ],
61
- name: "setOwner",
62
- outputs: [],
63
- stateMutability: "nonpayable",
64
- type: "function",
65
- },
66
- {
67
- inputs: [
68
- { internalType: "address", name: "tcRouter", type: "address" },
69
- { internalType: "address", name: "tcVault", type: "address" },
70
- { internalType: "string", name: "tcMemo", type: "string" },
71
- { internalType: "address", name: "token", type: "address" },
72
- { internalType: "uint256", name: "amount", type: "uint256" },
73
- { internalType: "address", name: "router", type: "address" },
74
- { internalType: "bytes", name: "data", type: "bytes" },
75
- { internalType: "uint256", name: "deadline", type: "uint256" },
76
- ],
77
- name: "swapIn",
78
- outputs: [],
79
- stateMutability: "nonpayable",
80
- type: "function",
81
- },
82
- {
83
- inputs: [],
84
- name: "tokenTransferProxy",
85
- outputs: [
86
- { internalType: "contract TSAggregatorTokenTransferProxy", name: "", type: "address" },
87
- ],
88
- stateMutability: "view",
89
- type: "function",
90
- },
91
- { stateMutability: "payable", type: "receive" },
92
- ];