@instadapp/interop-x 0.0.0-dev.8cb1c22 → 0.0.0-dev.909c44a

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 (204) hide show
  1. package/dist/package.json +9 -2
  2. package/dist/src/abi/aaveV2Resolver.json +832 -0
  3. package/dist/src/abi/aaveV3Resolver.json +628 -0
  4. package/dist/src/abi/balanceResolver.json +211 -0
  5. package/dist/src/abi/connectors/index.js +2 -2
  6. package/dist/src/abi/connectors/v2/1INCH-A.js +39 -1
  7. package/dist/src/abi/connectors/v2/1INCH-V3-A.js +42 -0
  8. package/dist/src/abi/connectors/v2/1INCH-V4-A.js +42 -0
  9. package/dist/src/abi/connectors/v2/AAVE-IMPORT-V2-V3-A.js +57 -0
  10. package/dist/src/abi/connectors/v2/AAVE-V2-A.js +91 -133
  11. package/dist/src/abi/connectors/v2/AAVE-V2-IMPORT-C.js +4 -0
  12. package/dist/src/abi/connectors/v2/AAVE-V3-A.js +322 -0
  13. package/dist/src/abi/connectors/v2/AAVE-V3-CLAIM-A.js +58 -0
  14. package/dist/src/abi/connectors/v2/AAVE-V3-IMPORT-A.js +59 -0
  15. package/dist/src/abi/connectors/v2/AAVE-V3-IMPORT-PERMIT-A.js +81 -0
  16. package/dist/src/abi/connectors/v2/BASIC-A.js +44 -86
  17. package/dist/src/abi/connectors/v2/BENQI-A.js +901 -0
  18. package/dist/src/abi/connectors/v2/COMPOUND-IMPORT-C.js +4 -0
  19. package/dist/src/abi/connectors/v2/COMPOUND-IMPORT-D.js +27 -0
  20. package/dist/src/abi/connectors/v2/DSA-SPELL-A.js +60 -0
  21. package/dist/src/abi/connectors/v2/HOP-A.js +41 -0
  22. package/dist/src/abi/connectors/v2/HOP-MAINNET-A.js +38 -0
  23. package/dist/src/abi/connectors/v2/INSTA-DEX-SIMULATION-A.js +40 -0
  24. package/dist/src/abi/connectors/v2/INSTAPOOL-B.js +4 -0
  25. package/dist/src/abi/connectors/v2/INSTAPOOL-C.js +4 -0
  26. package/dist/src/abi/connectors/v2/INTEROP-A.js +4 -0
  27. package/dist/src/abi/connectors/v2/INTEROP-STAGING-A.js +4 -0
  28. package/dist/src/abi/connectors/v2/LIDO-STETH-A.js +36 -0
  29. package/dist/src/abi/connectors/v2/LITE-A.js +4 -0
  30. package/dist/src/abi/connectors/v2/MSTABLE-A.js +4 -0
  31. package/dist/src/abi/connectors/v2/NOTIONAL-V2-A.js +484 -0
  32. package/dist/src/abi/connectors/v2/PANGOLIN-A.js +136 -0
  33. package/dist/src/abi/connectors/v2/PANGOLIN-STAKE-A.js +227 -0
  34. package/dist/src/abi/connectors/v2/PARASWAP-A.js +26 -1
  35. package/dist/src/abi/connectors/v2/PARASWAP-V5-A.js +29 -0
  36. package/dist/src/abi/connectors/v2/POOLTOGETHER-A.js +4 -0
  37. package/dist/src/abi/connectors/v2/QI-A.js +4 -0
  38. package/dist/src/abi/connectors/v2/QUICKSWAP-A.js +136 -0
  39. package/dist/src/abi/connectors/v2/SUSHISWAP-A.js +136 -0
  40. package/dist/src/abi/connectors/v2/SWAP-AGGREGATOR-A.js +25 -0
  41. package/dist/src/abi/connectors/v2/UBIQUITY-A.js +73 -0
  42. package/dist/src/abi/connectors/v2/UNISWAP-SELL-BETA.js +4 -0
  43. package/dist/src/abi/connectors/v2/UNISWAP-V3-A.js +1 -1
  44. package/dist/src/abi/connectors/v2/UNISWAP-V3-ROUTER-A.js +4 -0
  45. package/dist/src/abi/connectors/v2/UNISWAP-V3-STAKER-B.js +193 -0
  46. package/dist/src/abi/connectors/v2/UNISWAP-V3-SWAP-A.js +74 -0
  47. package/dist/src/abi/connectors/v2/UNIVERSE-A.js +4 -0
  48. package/dist/src/abi/connectors/v2/WAVAX-A.js +4 -0
  49. package/dist/src/abi/connectors/v2/WFTM-A.js +60 -0
  50. package/dist/src/abi/connectors/v2/WMATIC-A.js +4 -0
  51. package/dist/src/abi/connectors/v2/ZEROX-A.js +29 -0
  52. package/dist/src/abi/connectors/v2/ZEROX-V4-A.js +29 -0
  53. package/dist/src/abi/connectors/v2/index.js +128 -44
  54. package/dist/src/abi/index.js +8 -0
  55. package/dist/src/abi/instList.json +232 -0
  56. package/dist/src/api/index.js +7 -0
  57. package/dist/src/constants/addresses.js +9 -1
  58. package/dist/src/constants/capPerChain.js +8 -0
  59. package/dist/src/constants/index.js +2 -0
  60. package/dist/src/constants/tokens.js +44 -44
  61. package/dist/src/constants/wrappedNativeToken.js +8 -0
  62. package/dist/src/crons/index.js +3 -0
  63. package/dist/src/crons/prices.js +16 -0
  64. package/dist/src/db/models/transaction.js +5 -1
  65. package/dist/src/errors/index.js +30 -0
  66. package/dist/src/gnosis/actions/aaveV2/source.js +26 -1
  67. package/dist/src/gnosis/actions/aaveV2/target.js +20 -5
  68. package/dist/src/gnosis/actions/aaveV3/index.js +11 -0
  69. package/dist/src/gnosis/actions/aaveV3/source.js +74 -0
  70. package/dist/src/gnosis/actions/aaveV3/target.js +87 -0
  71. package/dist/src/gnosis/actions/index.js +2 -0
  72. package/dist/src/index.js +2 -1
  73. package/dist/src/providers/index.js +17 -0
  74. package/dist/src/providers/retry-provider.js +45 -0
  75. package/dist/src/services/Prices.js +74 -0
  76. package/dist/src/services/index.js +8 -0
  77. package/dist/src/tasks/InteropX/{ProcessSubmitSubmitEvents.js → ProcessSubmitEvents.js} +110 -16
  78. package/dist/src/tasks/InteropX/ProcessValidateEvents.js +30 -10
  79. package/dist/src/tasks/InteropX/SyncLogExecuteEvents.js +113 -0
  80. package/dist/src/tasks/InteropX/SyncLogSubmitEvents.js +3 -2
  81. package/dist/src/tasks/InteropX/SyncLogValidateEvents.js +6 -5
  82. package/dist/src/tasks/index.js +7 -5
  83. package/dist/src/typechain/AaveV2Resolver.js +2 -0
  84. package/dist/src/typechain/AaveV3Resolver.js +2 -0
  85. package/dist/src/typechain/BalanceResolver.js +2 -0
  86. package/dist/src/typechain/InstList.js +2 -0
  87. package/dist/src/typechain/factories/AaveV2Resolver__factory.js +1191 -0
  88. package/dist/src/typechain/factories/AaveV3Resolver__factory.js +887 -0
  89. package/dist/src/typechain/factories/BalanceResolver__factory.js +228 -0
  90. package/dist/src/typechain/factories/InstList__factory.js +249 -0
  91. package/dist/src/typechain/factories/index.js +9 -1
  92. package/dist/src/typechain/index.js +9 -1
  93. package/dist/src/utils/async.js +18 -0
  94. package/dist/src/utils/dsa.js +36 -0
  95. package/dist/src/utils/formatting.js +67 -0
  96. package/dist/src/utils/gnosis.js +87 -0
  97. package/dist/src/utils/http.js +10 -0
  98. package/dist/src/utils/index.js +22 -220
  99. package/dist/src/utils/interop.js +16 -0
  100. package/dist/src/utils/tokens.js +22 -0
  101. package/dist/src/utils/validate.js +111 -0
  102. package/dist/src/utils/web3.js +93 -0
  103. package/package.json +9 -2
  104. package/src/abi/aaveV2Resolver.json +832 -0
  105. package/src/abi/aaveV3Resolver.json +628 -0
  106. package/src/abi/balanceResolver.json +211 -0
  107. package/src/abi/connectors/index.ts +5 -5
  108. package/src/abi/connectors/v2/1INCH-A.ts +39 -1
  109. package/src/abi/connectors/v2/1INCH-V3-A.ts +41 -0
  110. package/src/abi/connectors/v2/1INCH-V4-A.ts +41 -0
  111. package/src/abi/connectors/v2/AAVE-IMPORT-V2-V3-A.ts +56 -0
  112. package/src/abi/connectors/v2/AAVE-V2-A.ts +93 -135
  113. package/src/abi/connectors/v2/AAVE-V2-IMPORT-C.ts +3 -0
  114. package/src/abi/connectors/v2/AAVE-V3-A.ts +321 -0
  115. package/src/abi/connectors/v2/AAVE-V3-CLAIM-A.ts +57 -0
  116. package/src/abi/connectors/v2/AAVE-V3-IMPORT-A.ts +58 -0
  117. package/src/abi/connectors/v2/AAVE-V3-IMPORT-PERMIT-A.ts +80 -0
  118. package/src/abi/connectors/v2/BASIC-A.ts +44 -86
  119. package/src/abi/connectors/v2/BENQI-A.ts +900 -0
  120. package/src/abi/connectors/v2/COMPOUND-IMPORT-C.ts +3 -0
  121. package/src/abi/connectors/v2/COMPOUND-IMPORT-D.ts +26 -0
  122. package/src/abi/connectors/v2/DSA-SPELL-A.ts +59 -0
  123. package/src/abi/connectors/v2/HOP-A.ts +40 -0
  124. package/src/abi/connectors/v2/HOP-MAINNET-A.ts +37 -0
  125. package/src/abi/connectors/v2/INSTA-DEX-SIMULATION-A.ts +39 -0
  126. package/src/abi/connectors/v2/INSTAPOOL-B.ts +3 -0
  127. package/src/abi/connectors/v2/INSTAPOOL-C.ts +3 -0
  128. package/src/abi/connectors/v2/INTEROP-A.ts +3 -0
  129. package/src/abi/connectors/v2/INTEROP-STAGING-A.ts +3 -0
  130. package/src/abi/connectors/v2/LIDO-STETH-A.ts +35 -0
  131. package/src/abi/connectors/v2/LITE-A.ts +3 -0
  132. package/src/abi/connectors/v2/MSTABLE-A.ts +3 -0
  133. package/src/abi/connectors/v2/NOTIONAL-V2-A.ts +483 -0
  134. package/src/abi/connectors/v2/PANGOLIN-A.ts +135 -0
  135. package/src/abi/connectors/v2/PANGOLIN-STAKE-A.ts +226 -0
  136. package/src/abi/connectors/v2/PARASWAP-A.ts +26 -1
  137. package/src/abi/connectors/v2/PARASWAP-V5-A.ts +28 -0
  138. package/src/abi/connectors/v2/POOLTOGETHER-A.ts +3 -0
  139. package/src/abi/connectors/v2/QI-A.ts +3 -0
  140. package/src/abi/connectors/v2/QUICKSWAP-A.ts +135 -0
  141. package/src/abi/connectors/v2/SUSHISWAP-A.ts +135 -0
  142. package/src/abi/connectors/v2/SWAP-AGGREGATOR-A.ts +24 -0
  143. package/src/abi/connectors/v2/UBIQUITY-A.ts +72 -0
  144. package/src/abi/connectors/v2/UNISWAP-SELL-BETA.ts +3 -0
  145. package/src/abi/connectors/v2/UNISWAP-V3-A.ts +1 -1
  146. package/src/abi/connectors/v2/UNISWAP-V3-ROUTER-A.ts +3 -0
  147. package/src/abi/connectors/v2/UNISWAP-V3-STAKER-B.ts +192 -0
  148. package/src/abi/connectors/v2/UNISWAP-V3-SWAP-A.ts +73 -0
  149. package/src/abi/connectors/v2/UNIVERSE-A.ts +3 -0
  150. package/src/abi/connectors/v2/WAVAX-A.ts +3 -0
  151. package/src/abi/connectors/v2/WFTM-A.ts +59 -0
  152. package/src/abi/connectors/v2/WMATIC-A.ts +3 -0
  153. package/src/abi/connectors/v2/ZEROX-A.ts +28 -0
  154. package/src/abi/connectors/v2/ZEROX-V4-A.ts +28 -0
  155. package/src/abi/connectors/v2/index.ts +171 -85
  156. package/src/abi/index.ts +8 -0
  157. package/src/abi/instList.json +232 -0
  158. package/src/api/index.ts +8 -0
  159. package/src/constants/addresses.ts +21 -2
  160. package/src/constants/capPerChain.ts +5 -0
  161. package/src/constants/index.ts +2 -0
  162. package/src/constants/tokens.ts +44 -44
  163. package/src/constants/wrappedNativeToken.ts +5 -0
  164. package/src/crons/index.ts +1 -0
  165. package/src/crons/prices.ts +12 -0
  166. package/src/db/models/transaction.ts +22 -1
  167. package/src/errors/index.ts +26 -0
  168. package/src/gnosis/actions/aaveV2/source.ts +56 -3
  169. package/src/gnosis/actions/aaveV2/target.ts +35 -7
  170. package/src/gnosis/actions/aaveV3/index.ts +9 -0
  171. package/src/gnosis/actions/aaveV3/source.ts +119 -0
  172. package/src/gnosis/actions/aaveV3/target.ts +142 -0
  173. package/src/gnosis/actions/index.ts +2 -0
  174. package/src/index.ts +1 -0
  175. package/src/providers/index.ts +1 -0
  176. package/src/providers/retry-provider.ts +51 -0
  177. package/src/services/Prices.ts +89 -0
  178. package/src/services/index.ts +1 -0
  179. package/src/tasks/InteropX/{ProcessSubmitSubmitEvents.ts → ProcessSubmitEvents.ts} +139 -22
  180. package/src/tasks/InteropX/ProcessValidateEvents.ts +42 -19
  181. package/src/tasks/InteropX/SyncLogExecuteEvents.ts +161 -0
  182. package/src/tasks/InteropX/SyncLogSubmitEvents.ts +6 -7
  183. package/src/tasks/InteropX/SyncLogValidateEvents.ts +9 -10
  184. package/src/tasks/index.ts +8 -5
  185. package/src/typechain/AaveV2Resolver.ts +1017 -0
  186. package/src/typechain/AaveV3Resolver.ts +935 -0
  187. package/src/typechain/BalanceResolver.ts +266 -0
  188. package/src/typechain/InstList.ts +402 -0
  189. package/src/typechain/factories/AaveV2Resolver__factory.ts +1198 -0
  190. package/src/typechain/factories/AaveV3Resolver__factory.ts +894 -0
  191. package/src/typechain/factories/BalanceResolver__factory.ts +235 -0
  192. package/src/typechain/factories/InstList__factory.ts +253 -0
  193. package/src/typechain/factories/index.ts +4 -0
  194. package/src/typechain/index.ts +8 -0
  195. package/src/utils/async.ts +22 -0
  196. package/src/utils/dsa.ts +56 -0
  197. package/src/utils/formatting.ts +68 -0
  198. package/src/utils/gnosis.ts +166 -0
  199. package/src/utils/http.ts +6 -0
  200. package/src/utils/index.ts +9 -365
  201. package/src/utils/interop.ts +28 -0
  202. package/src/utils/tokens.ts +21 -0
  203. package/src/utils/validate.ts +179 -0
  204. package/src/utils/web3.ts +132 -0
@@ -1,87 +1,173 @@
1
- import {ONEINCH_A} from './1INCH-A'
2
- import {AAVE_CLAIM_A} from './AAVE-CLAIM-A'
3
- import {AAVE_CLAIM_B} from './AAVE-CLAIM-B'
4
- import {AAVE_STAKE_A} from './AAVE-STAKE-A'
5
- import {AAVE_V1} from './AAVE-V1-A'
6
- import {AAVE_V2} from './AAVE-V2-A'
7
- import {AUTHORITY_A} from './AUTHORITY-A'
8
- import {BASIC_A} from './BASIC-A'
9
- import {COMP_A} from './COMP-A'
10
- import {COMPOUND_A} from './COMPOUND-A'
11
- import {MAKERDAO_A} from './MAKERDAO-A'
12
- import {POLYGON_BRIDGE_A} from './POLYGON-BRIDGE-A'
13
- import {UNISWAP_A} from './UNISWAP-A'
14
- import {AAVE_V1_IMPORT_A} from './AAVE-V1-IMPORT-A'
15
- import {AAVE_V2_IMPORT_A} from './AAVE-V2-IMPORT-A'
16
- import {COMPOUND_IMPORT_A} from './COMPOUND-IMPORT-A'
17
- import {INSTAPOOL_A} from './INSTAPOOL-A'
18
- import {PARASWAP_A} from './PARASWAP-A'
1
+ import { AAVE_CLAIM_A } from './AAVE-CLAIM-A'
2
+ import { AAVE_CLAIM_B } from './AAVE-CLAIM-B'
3
+ import { AAVE_STAKE_A } from './AAVE-STAKE-A'
4
+ import { AAVE_V1 } from './AAVE-V1-A'
5
+ import { AAVE_V2 } from './AAVE-V2-A'
6
+ import { AUTHORITY_A } from './AUTHORITY-A'
7
+ import { BASIC_A } from './BASIC-A'
8
+ import { COMP_A } from './COMP-A'
9
+ import { COMPOUND_A } from './COMPOUND-A'
10
+ import { MAKERDAO_A } from './MAKERDAO-A'
11
+ import { POLYGON_BRIDGE_A } from './POLYGON-BRIDGE-A'
12
+ import { UNISWAP_A } from './UNISWAP-A'
13
+ import { AAVE_V1_IMPORT_A } from './AAVE-V1-IMPORT-A'
14
+ import { AAVE_V2_IMPORT_A } from './AAVE-V2-IMPORT-A'
15
+ import { COMPOUND_IMPORT_A } from './COMPOUND-IMPORT-A'
16
+ import { INSTAPOOL_A } from './INSTAPOOL-A'
17
+ import { PARASWAP_A } from './PARASWAP-A'
19
18
 
20
- import {AAVE_V2_IMPORT_B} from './AAVE-V2-IMPORT-B'
21
- import {COMPOUND_IMPORT_B} from './COMPOUND-IMPORT-B'
22
- import {MAKERDAO_CLAIM_A} from './MAKERDAO-CLAIM-A'
23
- import {G_UNISWAP_A} from './G-UNISWAP-A'
24
- import {STAKE_ERC20_A} from './STAKE-ERC20-A'
25
- import {INST_STAKING_A} from './INST-STAKING-A'
26
- import {ONEINCH_B} from './1INCH-B'
27
- import {WETH_A} from './WETH-A'
28
- import {INST_A} from './INST-A'
29
- import {REFINANCE_A} from './REFINANCE-A'
30
- import {INST_LM_A} from './INST-LM-A'
31
- import {UNISWAP_V2_A} from './UNISWAP-V2-A'
32
- import {LIQUITY_A} from './LIQUITY-A'
33
- import {REFLEXER_A} from './REFLEXER-A'
34
- import {UNISWAP_V3_A} from './UNISWAP-V3-A'
35
- import {B_COMPOUND_A} from './B-COMPOUND-A'
36
- import {B_MAKERDAO_A} from './B-MAKERDAO-A'
37
- import {B_LIQUITY_A} from './B-LIQUITY-A'
38
- import {BASIC_B} from './BASIC-B'
39
- import {BASIC_C} from './BASIC-C'
40
- import {UNISWAP_V3_STAKE_A} from './UNISWAP-V3-STAKE-A'
41
- import {YEARN_VAULT_A} from './YEARN-VAULT-A'
42
- import {INST_STAKING_B} from './INST-STAKING-B'
43
- import {GELATO_AAVE_A} from './GELATO-AAVE-A'
44
- export const connectorsV2_M1 = {
45
- "GELATO-AAVE-A": GELATO_AAVE_A,
46
- "INST-STAKING-B": INST_STAKING_B,
47
- "YEARN-VAULT-A": YEARN_VAULT_A,
48
- "UNISWAP-V3-STAKE-A": UNISWAP_V3_STAKE_A,
49
- "BASIC-C": BASIC_C,
50
- "BASIC-B": BASIC_B,
51
- "B-LIQUITY-A": B_LIQUITY_A,
52
- "B-MAKERDAO-A": B_MAKERDAO_A,
53
- "B-COMPOUND-A": B_COMPOUND_A,
54
- "UNISWAP-V3-A": UNISWAP_V3_A,
55
- "REFLEXER-A": REFLEXER_A,
56
- "LIQUITY-A": LIQUITY_A,
57
- "UNISWAP-V2-A": UNISWAP_V2_A,
58
- "INST-LM-A": INST_LM_A,
59
- "REFINANCE-A": REFINANCE_A,
60
- "INST-A": INST_A,
61
- "WETH-A": WETH_A,
62
- "1INCH-B": ONEINCH_B,
63
- "INST-STAKING-A": INST_STAKING_A,
64
- "STAKE-ERC20-A": STAKE_ERC20_A,
65
- "G-UNISWAP-A": G_UNISWAP_A,
66
- "INSTAPOOL-A": INSTAPOOL_A,
67
- "COMPOUND-IMPORT-A": COMPOUND_IMPORT_A,
68
- "AAVE-V2-IMPORT-A": AAVE_V2_IMPORT_A,
69
- "AAVE-V1-IMPORT-A": AAVE_V1_IMPORT_A,
70
- "1INCH-A": ONEINCH_A,
71
- "AAVE-CLAIM-A": AAVE_CLAIM_A,
72
- "AAVE-CLAIM-B": AAVE_CLAIM_B,
73
- "AAVE-V1-A": AAVE_V1,
74
- "AAVE-V2-A": AAVE_V2,
75
- "AUTHORITY-A": AUTHORITY_A,
76
- "BASIC-A": BASIC_A,
77
- "COMP-A": COMP_A,
78
- "COMPOUND-A": COMPOUND_A,
79
- "MAKERDAO-A": MAKERDAO_A,
80
- "UNISWAP-A": UNISWAP_A,
81
- "POLYGON-BRIDGE-A": POLYGON_BRIDGE_A,
82
- "AAVE-STAKE-A": AAVE_STAKE_A,
83
- "PARASWAP-A": PARASWAP_A,
84
- "COMPOUND-IMPORT-B": COMPOUND_IMPORT_B,
85
- "AAVE-V2-IMPORT-B": AAVE_V2_IMPORT_B,
86
- "MAKERDAO-CLAIM-A": MAKERDAO_CLAIM_A,
19
+ import { AAVE_V2_IMPORT_B } from './AAVE-V2-IMPORT-B'
20
+ import { COMPOUND_IMPORT_B } from './COMPOUND-IMPORT-B'
21
+ import { MAKERDAO_CLAIM_A } from './MAKERDAO-CLAIM-A'
22
+ import { G_UNISWAP_A } from './G-UNISWAP-A'
23
+ import { STAKE_ERC20_A } from './STAKE-ERC20-A'
24
+ import { INST_STAKING_A } from './INST-STAKING-A'
25
+ import { WETH_A } from './WETH-A'
26
+ import { INST_A } from './INST-A'
27
+ import { REFINANCE_A } from './REFINANCE-A'
28
+ import { INST_LM_A } from './INST-LM-A'
29
+ import { UNISWAP_V2_A } from './UNISWAP-V2-A'
30
+ import { LIQUITY_A } from './LIQUITY-A'
31
+ import { REFLEXER_A } from './REFLEXER-A'
32
+ import { UNISWAP_V3_A } from './UNISWAP-V3-A'
33
+ import { B_COMPOUND_A } from './B-COMPOUND-A'
34
+ import { B_MAKERDAO_A } from './B-MAKERDAO-A'
35
+ import { B_LIQUITY_A } from './B-LIQUITY-A'
36
+ import { BASIC_B } from './BASIC-B'
37
+ import { BASIC_C } from './BASIC-C'
38
+ import { UNISWAP_V3_STAKE_A } from './UNISWAP-V3-STAKE-A'
39
+ import { YEARN_VAULT_A } from './YEARN-VAULT-A'
40
+ import { INST_STAKING_B } from './INST-STAKING-B'
41
+ import { GELATO_AAVE_A } from './GELATO-AAVE-A'
42
+ import { POOLTOGETHER_A } from './POOLTOGETHER-A'
43
+ import { INSTAPOOL_B } from './INSTAPOOL-B'
44
+ import { BENQI_A } from './BENQI-A'
45
+ import { QI_A } from './QI-A'
46
+ import { COMPOUND_IMPORT_C } from './COMPOUND-IMPORT-C'
47
+ import { AAVE_V2_IMPORT_C } from './AAVE-V2-IMPORT-C'
48
+ import { UNISWAP_SELL_BETA } from './UNISWAP-SELL-BETA'
49
+
50
+ import { INTEROP_A } from './INTEROP-A'
51
+ import { INTEROP_STAGING_A } from './INTEROP-STAGING-A'
52
+ import { INSTAPOOL_C } from './INSTAPOOL-C'
53
+
54
+ import { UNIVERSE_A } from './UNIVERSE-A'
55
+ import { WAVAX_A } from './WAVAX-A'
56
+ import { WMATIC_A } from './WMATIC-A'
57
+ import { WFTM_A } from './WFTM-A'
58
+ import { QUICKSWAP_A } from './QUICKSWAP-A'
59
+ import { ONEINCH_A } from './1INCH-A'
60
+ import { ONEINCH_B } from './1INCH-B'
61
+ import { ONEINCH_V3_A } from './1INCH-V3-A'
62
+ import { ONEINCH_V4_A } from './1INCH-V4-A'
63
+ import { PARASWAP_V5_A } from './PARASWAP-V5-A'
64
+ import { ZEROX_A } from './ZEROX-A'
65
+ import { ZEROX_V4_A } from './ZEROX-V4-A'
66
+ import { UNISWAP_V3_ROUTER_A } from './UNISWAP-V3-ROUTER-A'
67
+ import { SUSHISWAP_A } from './SUSHISWAP-A'
68
+ import { UBIQUITY_A } from './UBIQUITY-A'
69
+ import { UNISWAP_V3_STAKER_B } from './UNISWAP-V3-STAKER-B'
70
+ import { PANGOLIN_A } from './PANGOLIN-A'
71
+ import { PANGOLIN_STAKE_A } from './PANGOLIN-STAKE-A'
72
+ import { MSTABLE_A } from './MSTABLE-A'
73
+ import { LIDO_STETH_A } from './LIDO-STETH-A'
74
+ import { AAVE_V3_A } from './AAVE-V3-A'
75
+ import { AAVE_IMPORT_V2_V3_A } from './AAVE-IMPORT-V2-V3-A'
76
+ import { AAVE_V3_IMPORT_A } from './AAVE-V3-IMPORT-A'
77
+ import { COMPOUND_IMPORT_D } from './COMPOUND-IMPORT-D'
78
+ import { LITE_A } from './LITE-A'
79
+ import { AAVE_V3_IMPORT_PERMIT_A } from './AAVE-V3-IMPORT-PERMIT-A'
80
+ import { HOP_A } from './HOP-A'
81
+ import { AAVE_V3_CLAIM_A } from './AAVE-V3-CLAIM-A'
82
+ import { NOTIONAL_V2_A } from './NOTIONAL-V2-A'
83
+ import { HOP_MAINNET_A } from './HOP-MAINNET-A'
84
+ import { UNISWAP_V3_SWAP_A } from './UNISWAP-V3-SWAP-A'
85
+ import { SWAP_AGGREGATOR_A } from './SWAP-AGGREGATOR-A'
86
+ import { INSTA_DEX_SIMULATION_A } from './INSTA-DEX-SIMULATION-A'
87
+ import { DSA_SPELL_A } from './DSA-SPELL-A'
88
+ export const connectorsV2_M1 = {
89
+ 'DSA-SPELL-A': DSA_SPELL_A,
90
+ 'INSTA-DEX-SIMULATION-A': INSTA_DEX_SIMULATION_A,
91
+ 'SWAP-AGGREGATOR-A': SWAP_AGGREGATOR_A,
92
+ 'UNISWAP-V3-SWAP-A': UNISWAP_V3_SWAP_A,
93
+ 'HOP-MAINNET-A': HOP_MAINNET_A,
94
+ 'NOTIONAL-V2-A': NOTIONAL_V2_A,
95
+ 'AAVE-V3-CLAIM-A': AAVE_V3_CLAIM_A,
96
+ 'HOP-A': HOP_A,
97
+ 'AAVE-V3-IMPORT-PERMIT-A': AAVE_V3_IMPORT_PERMIT_A,
98
+ 'LITE-A': LITE_A,
99
+ 'COMPOUND-IMPORT-D': COMPOUND_IMPORT_D,
100
+ 'AAVE-V3-IMPORT-A': AAVE_V3_IMPORT_A,
101
+ 'AAVE-IMPORT-V2-V3-A': AAVE_IMPORT_V2_V3_A,
102
+ 'AAVE-V3-A': AAVE_V3_A,
103
+ 'WFTM-A': WFTM_A,
104
+ 'MSTABLE-A': MSTABLE_A,
105
+ 'LIDO-STETH-A': LIDO_STETH_A,
106
+ 'PANGOLIN-STAKE-A': PANGOLIN_STAKE_A,
107
+ 'PANGOLIN-A': PANGOLIN_A,
108
+ 'UNISWAP-V3-STAKER-B': UNISWAP_V3_STAKER_B,
109
+ 'UNISWAP-V3-ROUTER-A': UNISWAP_V3_ROUTER_A,
110
+ 'SUSHISWAP-A': SUSHISWAP_A,
111
+ 'ZEROX-V4-A': ZEROX_V4_A,
112
+ 'ZEROX-A': ZEROX_A,
113
+ 'PARASWAP-V5-A': PARASWAP_V5_A,
114
+ '1INCH-A': ONEINCH_A,
115
+ '1INCH-B': ONEINCH_B,
116
+ '1INCH-V3-A': ONEINCH_V3_A,
117
+ '1INCH-V4-A': ONEINCH_V4_A,
118
+ 'QUICKSWAP-A': QUICKSWAP_A,
119
+ 'INSTAPOOL-C': INSTAPOOL_C,
120
+ 'UNISWAP-SELL-BETA': UNISWAP_SELL_BETA,
121
+ 'AAVE-V2-IMPORT-C': AAVE_V2_IMPORT_C,
122
+ 'COMPOUND-IMPORT-C': COMPOUND_IMPORT_C,
123
+ 'QI-A': QI_A,
124
+ 'BENQI-A': BENQI_A,
125
+ 'INSTAPOOL-B': INSTAPOOL_B,
126
+ 'POOLTOGETHER-A': POOLTOGETHER_A,
127
+ 'GELATO-AAVE-A': GELATO_AAVE_A,
128
+ 'INST-STAKING-B': INST_STAKING_B,
129
+ 'YEARN-VAULT-A': YEARN_VAULT_A,
130
+ 'UNISWAP-V3-STAKE-A': UNISWAP_V3_STAKE_A,
131
+ 'BASIC-C': BASIC_C,
132
+ 'BASIC-B': BASIC_B,
133
+ 'B-LIQUITY-A': B_LIQUITY_A,
134
+ 'B-MAKERDAO-A': B_MAKERDAO_A,
135
+ 'B-COMPOUND-A': B_COMPOUND_A,
136
+ 'UNISWAP-V3-A': UNISWAP_V3_A,
137
+ 'REFLEXER-A': REFLEXER_A,
138
+ 'LIQUITY-A': LIQUITY_A,
139
+ 'UNISWAP-V2-A': UNISWAP_V2_A,
140
+ 'INST-LM-A': INST_LM_A,
141
+ 'REFINANCE-A': REFINANCE_A,
142
+ 'INST-A': INST_A,
143
+ 'WETH-A': WETH_A,
144
+ 'INST-STAKING-A': INST_STAKING_A,
145
+ 'STAKE-ERC20-A': STAKE_ERC20_A,
146
+ 'G-UNISWAP-A': G_UNISWAP_A,
147
+ 'INSTAPOOL-A': INSTAPOOL_A,
148
+ 'COMPOUND-IMPORT-A': COMPOUND_IMPORT_A,
149
+ 'AAVE-V2-IMPORT-A': AAVE_V2_IMPORT_A,
150
+ 'AAVE-V1-IMPORT-A': AAVE_V1_IMPORT_A,
151
+ 'AAVE-CLAIM-A': AAVE_CLAIM_A,
152
+ 'AAVE-CLAIM-B': AAVE_CLAIM_B,
153
+ 'AAVE-V1-A': AAVE_V1,
154
+ 'AAVE-V2-A': AAVE_V2,
155
+ 'AUTHORITY-A': AUTHORITY_A,
156
+ 'BASIC-A': BASIC_A,
157
+ 'COMP-A': COMP_A,
158
+ 'COMPOUND-A': COMPOUND_A,
159
+ 'MAKERDAO-A': MAKERDAO_A,
160
+ 'UNISWAP-A': UNISWAP_A,
161
+ 'POLYGON-BRIDGE-A': POLYGON_BRIDGE_A,
162
+ 'AAVE-STAKE-A': AAVE_STAKE_A,
163
+ 'PARASWAP-A': PARASWAP_A,
164
+ 'COMPOUND-IMPORT-B': COMPOUND_IMPORT_B,
165
+ 'AAVE-V2-IMPORT-B': AAVE_V2_IMPORT_B,
166
+ 'MAKERDAO-CLAIM-A': MAKERDAO_CLAIM_A,
167
+ 'INTEROP-A': INTEROP_A,
168
+ 'INTEROP-STAGING-A': INTEROP_STAGING_A,
169
+ 'WMATIC-A': WMATIC_A,
170
+ 'WAVAX-A': WAVAX_A,
171
+ 'UNIVERSE-A': UNIVERSE_A,
172
+ 'UBIQUITY-A': UBIQUITY_A,
87
173
  }
package/src/abi/index.ts CHANGED
@@ -2,10 +2,18 @@ import gnosisSafe from "./gnosisSafe.json";
2
2
  import erc20 from "./erc20.json";
3
3
  import interopX from "./interopX.json";
4
4
  import { connectors } from "./connectors";
5
+ import instList from "./instList.json";
6
+ import balanceResolver from "./balanceResolver.json";
7
+ import aaveV2Resolver from "./aaveV2Resolver.json";
8
+ import aaveV3Resolver from "./aaveV3Resolver.json";
5
9
 
6
10
  export default {
7
11
  gnosisSafe,
8
12
  erc20,
9
13
  interopX,
10
14
  connectors,
15
+ instList,
16
+ balanceResolver,
17
+ aaveV2Resolver,
18
+ aaveV3Resolver,
11
19
  };
@@ -0,0 +1,232 @@
1
+ [
2
+ {
3
+ "inputs": [
4
+ {
5
+ "internalType": "address",
6
+ "name": "_instaIndex",
7
+ "type": "address"
8
+ }
9
+ ],
10
+ "stateMutability": "nonpayable",
11
+ "type": "constructor"
12
+ },
13
+ {
14
+ "inputs": [
15
+ {
16
+ "internalType": "uint64",
17
+ "name": "",
18
+ "type": "uint64"
19
+ }
20
+ ],
21
+ "name": "accountAddr",
22
+ "outputs": [
23
+ {
24
+ "internalType": "address",
25
+ "name": "",
26
+ "type": "address"
27
+ }
28
+ ],
29
+ "stateMutability": "view",
30
+ "type": "function"
31
+ },
32
+ {
33
+ "inputs": [
34
+ {
35
+ "internalType": "address",
36
+ "name": "",
37
+ "type": "address"
38
+ }
39
+ ],
40
+ "name": "accountID",
41
+ "outputs": [
42
+ {
43
+ "internalType": "uint64",
44
+ "name": "",
45
+ "type": "uint64"
46
+ }
47
+ ],
48
+ "stateMutability": "view",
49
+ "type": "function"
50
+ },
51
+ {
52
+ "inputs": [
53
+ {
54
+ "internalType": "uint64",
55
+ "name": "",
56
+ "type": "uint64"
57
+ }
58
+ ],
59
+ "name": "accountLink",
60
+ "outputs": [
61
+ {
62
+ "internalType": "address",
63
+ "name": "first",
64
+ "type": "address"
65
+ },
66
+ {
67
+ "internalType": "address",
68
+ "name": "last",
69
+ "type": "address"
70
+ },
71
+ {
72
+ "internalType": "uint64",
73
+ "name": "count",
74
+ "type": "uint64"
75
+ }
76
+ ],
77
+ "stateMutability": "view",
78
+ "type": "function"
79
+ },
80
+ {
81
+ "inputs": [
82
+ {
83
+ "internalType": "uint64",
84
+ "name": "",
85
+ "type": "uint64"
86
+ },
87
+ {
88
+ "internalType": "address",
89
+ "name": "",
90
+ "type": "address"
91
+ }
92
+ ],
93
+ "name": "accountList",
94
+ "outputs": [
95
+ {
96
+ "internalType": "address",
97
+ "name": "prev",
98
+ "type": "address"
99
+ },
100
+ {
101
+ "internalType": "address",
102
+ "name": "next",
103
+ "type": "address"
104
+ }
105
+ ],
106
+ "stateMutability": "view",
107
+ "type": "function"
108
+ },
109
+ {
110
+ "inputs": [],
111
+ "name": "accounts",
112
+ "outputs": [
113
+ {
114
+ "internalType": "uint64",
115
+ "name": "",
116
+ "type": "uint64"
117
+ }
118
+ ],
119
+ "stateMutability": "view",
120
+ "type": "function"
121
+ },
122
+ {
123
+ "inputs": [
124
+ {
125
+ "internalType": "address",
126
+ "name": "_owner",
127
+ "type": "address"
128
+ }
129
+ ],
130
+ "name": "addAuth",
131
+ "outputs": [],
132
+ "stateMutability": "nonpayable",
133
+ "type": "function"
134
+ },
135
+ {
136
+ "inputs": [
137
+ {
138
+ "internalType": "address",
139
+ "name": "_account",
140
+ "type": "address"
141
+ }
142
+ ],
143
+ "name": "init",
144
+ "outputs": [],
145
+ "stateMutability": "nonpayable",
146
+ "type": "function"
147
+ },
148
+ {
149
+ "inputs": [],
150
+ "name": "instaIndex",
151
+ "outputs": [
152
+ {
153
+ "internalType": "address",
154
+ "name": "",
155
+ "type": "address"
156
+ }
157
+ ],
158
+ "stateMutability": "view",
159
+ "type": "function"
160
+ },
161
+ {
162
+ "inputs": [
163
+ {
164
+ "internalType": "address",
165
+ "name": "_owner",
166
+ "type": "address"
167
+ }
168
+ ],
169
+ "name": "removeAuth",
170
+ "outputs": [],
171
+ "stateMutability": "nonpayable",
172
+ "type": "function"
173
+ },
174
+ {
175
+ "inputs": [
176
+ {
177
+ "internalType": "address",
178
+ "name": "",
179
+ "type": "address"
180
+ }
181
+ ],
182
+ "name": "userLink",
183
+ "outputs": [
184
+ {
185
+ "internalType": "uint64",
186
+ "name": "first",
187
+ "type": "uint64"
188
+ },
189
+ {
190
+ "internalType": "uint64",
191
+ "name": "last",
192
+ "type": "uint64"
193
+ },
194
+ {
195
+ "internalType": "uint64",
196
+ "name": "count",
197
+ "type": "uint64"
198
+ }
199
+ ],
200
+ "stateMutability": "view",
201
+ "type": "function"
202
+ },
203
+ {
204
+ "inputs": [
205
+ {
206
+ "internalType": "address",
207
+ "name": "",
208
+ "type": "address"
209
+ },
210
+ {
211
+ "internalType": "uint64",
212
+ "name": "",
213
+ "type": "uint64"
214
+ }
215
+ ],
216
+ "name": "userList",
217
+ "outputs": [
218
+ {
219
+ "internalType": "uint64",
220
+ "name": "prev",
221
+ "type": "uint64"
222
+ },
223
+ {
224
+ "internalType": "uint64",
225
+ "name": "next",
226
+ "type": "uint64"
227
+ }
228
+ ],
229
+ "stateMutability": "view",
230
+ "type": "function"
231
+ }
232
+ ]
package/src/api/index.ts CHANGED
@@ -26,6 +26,14 @@ export const startApiServer = async () => {
26
26
  })
27
27
  })
28
28
 
29
+ server.get('/transactions/:transaction', async (req) => {
30
+ return await Transaction.findOne({
31
+ where: {
32
+ transactionHash: (req.params as any).transaction
33
+ }
34
+ })
35
+ })
36
+
29
37
  await server.listen(PORT, HOST)
30
38
 
31
39
  logger.log(`RPC Server listening at http://${HOST}:${PORT}`)
@@ -1,14 +1,33 @@
1
+ export type NetworkAddresses = {
2
+ gnosisSafe: string
3
+ multisend: string
4
+ interopX: string
5
+ dsaAddress: string
6
+ instList: string
7
+ aaveV2Resolver: string
8
+ aaveV3Resolver: string
9
+ balanceResolver: string
10
+ }
11
+
1
12
  export const addresses = {
2
13
  137: {
3
14
  gnosisSafe: '0x5635d2910e51da33d9DC0422c893CF4F28B69A25',
4
15
  multisend: '0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761',
5
16
  interopX: '0xDB6083df37C5F224a3dF84A4B5f9fB60b6c8670a',
6
17
  dsaAddress: '0x9Fbd453a8e7a158510fBae5D9935958507cf4b19',
18
+ instList: "0x839c2D3aDe63DF5b0b8F3E57D5e145057Ab41556",
19
+ aaveV2Resolver: "0x0731c1d0154C2bE74d50e2083Df10aa531AAbb10",
20
+ aaveV3Resolver: "0x1bD311bd5aD4DCfE18bCb55d42F0a3c714E2bfDe",
21
+ balanceResolver: "0xecc3991846bB21717B95A593Fd86C5930A491F95",
7
22
  },
8
23
  43114: {
9
24
  gnosisSafe: '0x31d7a5194Fe60AC209Cf1Ce2d539C9A60662Ed6b',
10
25
  multisend: '0x998739BFdAAdde7C933B942a68053933098f9EDa',
11
26
  interopX: '0xA82A87096709E3D8648c9d9a22f31133bC4B6d32',
12
- dsaAddress: '0xFcB7d826E32081c4799de2f83b47b49df600dc8c',
27
+ dsaAddress: '0x995e67a652d2be45a8bff438b3dfac66dfff1c46',
28
+ instList: "0x9926955e0Dd681Dc303370C52f4Ad0a4dd061687",
29
+ aaveV2Resolver: "0x7C5C59944263311a1e350E3B871B0d1d8E9A513E",
30
+ aaveV3Resolver: "0xB0862d7dB941698A0A92F8dF6672F4B56A5F5b02",
31
+ balanceResolver: "0xD45dFA34cEeAB567208041331F5ed9916C23b1E8",
13
32
  }
14
- } as Record<number, { gnosisSafe: string, multisend: string, interopX: string, dsaAddress: string }>
33
+ } as Record<number, NetworkAddresses>
@@ -0,0 +1,5 @@
1
+ export const capPerChain = {
2
+ "1": 100_000_000,
3
+ "137": 100_000_000,
4
+ "43114": 100_000_000,
5
+ };
@@ -1,3 +1,5 @@
1
1
  export * from './addresses';
2
2
  export * from './tokens';
3
3
  export * from './blockConfirmations';
4
+ export * from './wrappedNativeToken';
5
+ export * from './capPerChain';