@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.
- package/dist/package.json +9 -2
- package/dist/src/abi/aaveV2Resolver.json +832 -0
- package/dist/src/abi/aaveV3Resolver.json +628 -0
- package/dist/src/abi/balanceResolver.json +211 -0
- package/dist/src/abi/connectors/index.js +2 -2
- package/dist/src/abi/connectors/v2/1INCH-A.js +39 -1
- package/dist/src/abi/connectors/v2/1INCH-V3-A.js +42 -0
- package/dist/src/abi/connectors/v2/1INCH-V4-A.js +42 -0
- package/dist/src/abi/connectors/v2/AAVE-IMPORT-V2-V3-A.js +57 -0
- package/dist/src/abi/connectors/v2/AAVE-V2-A.js +91 -133
- package/dist/src/abi/connectors/v2/AAVE-V2-IMPORT-C.js +4 -0
- package/dist/src/abi/connectors/v2/AAVE-V3-A.js +322 -0
- package/dist/src/abi/connectors/v2/AAVE-V3-CLAIM-A.js +58 -0
- package/dist/src/abi/connectors/v2/AAVE-V3-IMPORT-A.js +59 -0
- package/dist/src/abi/connectors/v2/AAVE-V3-IMPORT-PERMIT-A.js +81 -0
- package/dist/src/abi/connectors/v2/BASIC-A.js +44 -86
- package/dist/src/abi/connectors/v2/BENQI-A.js +901 -0
- package/dist/src/abi/connectors/v2/COMPOUND-IMPORT-C.js +4 -0
- package/dist/src/abi/connectors/v2/COMPOUND-IMPORT-D.js +27 -0
- package/dist/src/abi/connectors/v2/DSA-SPELL-A.js +60 -0
- package/dist/src/abi/connectors/v2/HOP-A.js +41 -0
- package/dist/src/abi/connectors/v2/HOP-MAINNET-A.js +38 -0
- package/dist/src/abi/connectors/v2/INSTA-DEX-SIMULATION-A.js +40 -0
- package/dist/src/abi/connectors/v2/INSTAPOOL-B.js +4 -0
- package/dist/src/abi/connectors/v2/INSTAPOOL-C.js +4 -0
- package/dist/src/abi/connectors/v2/INTEROP-A.js +4 -0
- package/dist/src/abi/connectors/v2/INTEROP-STAGING-A.js +4 -0
- package/dist/src/abi/connectors/v2/LIDO-STETH-A.js +36 -0
- package/dist/src/abi/connectors/v2/LITE-A.js +4 -0
- package/dist/src/abi/connectors/v2/MSTABLE-A.js +4 -0
- package/dist/src/abi/connectors/v2/NOTIONAL-V2-A.js +484 -0
- package/dist/src/abi/connectors/v2/PANGOLIN-A.js +136 -0
- package/dist/src/abi/connectors/v2/PANGOLIN-STAKE-A.js +227 -0
- package/dist/src/abi/connectors/v2/PARASWAP-A.js +26 -1
- package/dist/src/abi/connectors/v2/PARASWAP-V5-A.js +29 -0
- package/dist/src/abi/connectors/v2/POOLTOGETHER-A.js +4 -0
- package/dist/src/abi/connectors/v2/QI-A.js +4 -0
- package/dist/src/abi/connectors/v2/QUICKSWAP-A.js +136 -0
- package/dist/src/abi/connectors/v2/SUSHISWAP-A.js +136 -0
- package/dist/src/abi/connectors/v2/SWAP-AGGREGATOR-A.js +25 -0
- package/dist/src/abi/connectors/v2/UBIQUITY-A.js +73 -0
- package/dist/src/abi/connectors/v2/UNISWAP-SELL-BETA.js +4 -0
- package/dist/src/abi/connectors/v2/UNISWAP-V3-A.js +1 -1
- package/dist/src/abi/connectors/v2/UNISWAP-V3-ROUTER-A.js +4 -0
- package/dist/src/abi/connectors/v2/UNISWAP-V3-STAKER-B.js +193 -0
- package/dist/src/abi/connectors/v2/UNISWAP-V3-SWAP-A.js +74 -0
- package/dist/src/abi/connectors/v2/UNIVERSE-A.js +4 -0
- package/dist/src/abi/connectors/v2/WAVAX-A.js +4 -0
- package/dist/src/abi/connectors/v2/WFTM-A.js +60 -0
- package/dist/src/abi/connectors/v2/WMATIC-A.js +4 -0
- package/dist/src/abi/connectors/v2/ZEROX-A.js +29 -0
- package/dist/src/abi/connectors/v2/ZEROX-V4-A.js +29 -0
- package/dist/src/abi/connectors/v2/index.js +128 -44
- package/dist/src/abi/index.js +8 -0
- package/dist/src/abi/instList.json +232 -0
- package/dist/src/api/index.js +7 -0
- package/dist/src/constants/addresses.js +9 -1
- package/dist/src/constants/capPerChain.js +8 -0
- package/dist/src/constants/index.js +2 -0
- package/dist/src/constants/tokens.js +44 -44
- package/dist/src/constants/wrappedNativeToken.js +8 -0
- package/dist/src/crons/index.js +3 -0
- package/dist/src/crons/prices.js +16 -0
- package/dist/src/db/models/transaction.js +5 -1
- package/dist/src/errors/index.js +30 -0
- package/dist/src/gnosis/actions/aaveV2/source.js +26 -1
- package/dist/src/gnosis/actions/aaveV2/target.js +20 -5
- package/dist/src/gnosis/actions/aaveV3/index.js +11 -0
- package/dist/src/gnosis/actions/aaveV3/source.js +74 -0
- package/dist/src/gnosis/actions/aaveV3/target.js +87 -0
- package/dist/src/gnosis/actions/index.js +2 -0
- package/dist/src/index.js +2 -1
- package/dist/src/providers/index.js +17 -0
- package/dist/src/providers/retry-provider.js +45 -0
- package/dist/src/services/Prices.js +74 -0
- package/dist/src/services/index.js +8 -0
- package/dist/src/tasks/InteropX/{ProcessSubmitSubmitEvents.js → ProcessSubmitEvents.js} +110 -16
- package/dist/src/tasks/InteropX/ProcessValidateEvents.js +30 -10
- package/dist/src/tasks/InteropX/SyncLogExecuteEvents.js +113 -0
- package/dist/src/tasks/InteropX/SyncLogSubmitEvents.js +3 -2
- package/dist/src/tasks/InteropX/SyncLogValidateEvents.js +6 -5
- package/dist/src/tasks/index.js +7 -5
- package/dist/src/typechain/AaveV2Resolver.js +2 -0
- package/dist/src/typechain/AaveV3Resolver.js +2 -0
- package/dist/src/typechain/BalanceResolver.js +2 -0
- package/dist/src/typechain/InstList.js +2 -0
- package/dist/src/typechain/factories/AaveV2Resolver__factory.js +1191 -0
- package/dist/src/typechain/factories/AaveV3Resolver__factory.js +887 -0
- package/dist/src/typechain/factories/BalanceResolver__factory.js +228 -0
- package/dist/src/typechain/factories/InstList__factory.js +249 -0
- package/dist/src/typechain/factories/index.js +9 -1
- package/dist/src/typechain/index.js +9 -1
- package/dist/src/utils/async.js +18 -0
- package/dist/src/utils/dsa.js +36 -0
- package/dist/src/utils/formatting.js +67 -0
- package/dist/src/utils/gnosis.js +87 -0
- package/dist/src/utils/http.js +10 -0
- package/dist/src/utils/index.js +22 -220
- package/dist/src/utils/interop.js +16 -0
- package/dist/src/utils/tokens.js +22 -0
- package/dist/src/utils/validate.js +111 -0
- package/dist/src/utils/web3.js +93 -0
- package/package.json +9 -2
- package/src/abi/aaveV2Resolver.json +832 -0
- package/src/abi/aaveV3Resolver.json +628 -0
- package/src/abi/balanceResolver.json +211 -0
- package/src/abi/connectors/index.ts +5 -5
- package/src/abi/connectors/v2/1INCH-A.ts +39 -1
- package/src/abi/connectors/v2/1INCH-V3-A.ts +41 -0
- package/src/abi/connectors/v2/1INCH-V4-A.ts +41 -0
- package/src/abi/connectors/v2/AAVE-IMPORT-V2-V3-A.ts +56 -0
- package/src/abi/connectors/v2/AAVE-V2-A.ts +93 -135
- package/src/abi/connectors/v2/AAVE-V2-IMPORT-C.ts +3 -0
- package/src/abi/connectors/v2/AAVE-V3-A.ts +321 -0
- package/src/abi/connectors/v2/AAVE-V3-CLAIM-A.ts +57 -0
- package/src/abi/connectors/v2/AAVE-V3-IMPORT-A.ts +58 -0
- package/src/abi/connectors/v2/AAVE-V3-IMPORT-PERMIT-A.ts +80 -0
- package/src/abi/connectors/v2/BASIC-A.ts +44 -86
- package/src/abi/connectors/v2/BENQI-A.ts +900 -0
- package/src/abi/connectors/v2/COMPOUND-IMPORT-C.ts +3 -0
- package/src/abi/connectors/v2/COMPOUND-IMPORT-D.ts +26 -0
- package/src/abi/connectors/v2/DSA-SPELL-A.ts +59 -0
- package/src/abi/connectors/v2/HOP-A.ts +40 -0
- package/src/abi/connectors/v2/HOP-MAINNET-A.ts +37 -0
- package/src/abi/connectors/v2/INSTA-DEX-SIMULATION-A.ts +39 -0
- package/src/abi/connectors/v2/INSTAPOOL-B.ts +3 -0
- package/src/abi/connectors/v2/INSTAPOOL-C.ts +3 -0
- package/src/abi/connectors/v2/INTEROP-A.ts +3 -0
- package/src/abi/connectors/v2/INTEROP-STAGING-A.ts +3 -0
- package/src/abi/connectors/v2/LIDO-STETH-A.ts +35 -0
- package/src/abi/connectors/v2/LITE-A.ts +3 -0
- package/src/abi/connectors/v2/MSTABLE-A.ts +3 -0
- package/src/abi/connectors/v2/NOTIONAL-V2-A.ts +483 -0
- package/src/abi/connectors/v2/PANGOLIN-A.ts +135 -0
- package/src/abi/connectors/v2/PANGOLIN-STAKE-A.ts +226 -0
- package/src/abi/connectors/v2/PARASWAP-A.ts +26 -1
- package/src/abi/connectors/v2/PARASWAP-V5-A.ts +28 -0
- package/src/abi/connectors/v2/POOLTOGETHER-A.ts +3 -0
- package/src/abi/connectors/v2/QI-A.ts +3 -0
- package/src/abi/connectors/v2/QUICKSWAP-A.ts +135 -0
- package/src/abi/connectors/v2/SUSHISWAP-A.ts +135 -0
- package/src/abi/connectors/v2/SWAP-AGGREGATOR-A.ts +24 -0
- package/src/abi/connectors/v2/UBIQUITY-A.ts +72 -0
- package/src/abi/connectors/v2/UNISWAP-SELL-BETA.ts +3 -0
- package/src/abi/connectors/v2/UNISWAP-V3-A.ts +1 -1
- package/src/abi/connectors/v2/UNISWAP-V3-ROUTER-A.ts +3 -0
- package/src/abi/connectors/v2/UNISWAP-V3-STAKER-B.ts +192 -0
- package/src/abi/connectors/v2/UNISWAP-V3-SWAP-A.ts +73 -0
- package/src/abi/connectors/v2/UNIVERSE-A.ts +3 -0
- package/src/abi/connectors/v2/WAVAX-A.ts +3 -0
- package/src/abi/connectors/v2/WFTM-A.ts +59 -0
- package/src/abi/connectors/v2/WMATIC-A.ts +3 -0
- package/src/abi/connectors/v2/ZEROX-A.ts +28 -0
- package/src/abi/connectors/v2/ZEROX-V4-A.ts +28 -0
- package/src/abi/connectors/v2/index.ts +171 -85
- package/src/abi/index.ts +8 -0
- package/src/abi/instList.json +232 -0
- package/src/api/index.ts +8 -0
- package/src/constants/addresses.ts +21 -2
- package/src/constants/capPerChain.ts +5 -0
- package/src/constants/index.ts +2 -0
- package/src/constants/tokens.ts +44 -44
- package/src/constants/wrappedNativeToken.ts +5 -0
- package/src/crons/index.ts +1 -0
- package/src/crons/prices.ts +12 -0
- package/src/db/models/transaction.ts +22 -1
- package/src/errors/index.ts +26 -0
- package/src/gnosis/actions/aaveV2/source.ts +56 -3
- package/src/gnosis/actions/aaveV2/target.ts +35 -7
- package/src/gnosis/actions/aaveV3/index.ts +9 -0
- package/src/gnosis/actions/aaveV3/source.ts +119 -0
- package/src/gnosis/actions/aaveV3/target.ts +142 -0
- package/src/gnosis/actions/index.ts +2 -0
- package/src/index.ts +1 -0
- package/src/providers/index.ts +1 -0
- package/src/providers/retry-provider.ts +51 -0
- package/src/services/Prices.ts +89 -0
- package/src/services/index.ts +1 -0
- package/src/tasks/InteropX/{ProcessSubmitSubmitEvents.ts → ProcessSubmitEvents.ts} +139 -22
- package/src/tasks/InteropX/ProcessValidateEvents.ts +42 -19
- package/src/tasks/InteropX/SyncLogExecuteEvents.ts +161 -0
- package/src/tasks/InteropX/SyncLogSubmitEvents.ts +6 -7
- package/src/tasks/InteropX/SyncLogValidateEvents.ts +9 -10
- package/src/tasks/index.ts +8 -5
- package/src/typechain/AaveV2Resolver.ts +1017 -0
- package/src/typechain/AaveV3Resolver.ts +935 -0
- package/src/typechain/BalanceResolver.ts +266 -0
- package/src/typechain/InstList.ts +402 -0
- package/src/typechain/factories/AaveV2Resolver__factory.ts +1198 -0
- package/src/typechain/factories/AaveV3Resolver__factory.ts +894 -0
- package/src/typechain/factories/BalanceResolver__factory.ts +235 -0
- package/src/typechain/factories/InstList__factory.ts +253 -0
- package/src/typechain/factories/index.ts +4 -0
- package/src/typechain/index.ts +8 -0
- package/src/utils/async.ts +22 -0
- package/src/utils/dsa.ts +56 -0
- package/src/utils/formatting.ts +68 -0
- package/src/utils/gnosis.ts +166 -0
- package/src/utils/http.ts +6 -0
- package/src/utils/index.ts +9 -365
- package/src/utils/interop.ts +28 -0
- package/src/utils/tokens.ts +21 -0
- package/src/utils/validate.ts +179 -0
- package/src/utils/web3.ts +132 -0
@@ -1,87 +1,173 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
import {
|
4
|
-
import {
|
5
|
-
import {
|
6
|
-
import {
|
7
|
-
import {
|
8
|
-
import {
|
9
|
-
import {
|
10
|
-
import {
|
11
|
-
import {
|
12
|
-
import {
|
13
|
-
import {
|
14
|
-
import {
|
15
|
-
import {
|
16
|
-
import {
|
17
|
-
import {
|
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 {
|
27
|
-
import {
|
28
|
-
import {
|
29
|
-
import {
|
30
|
-
import {
|
31
|
-
import {
|
32
|
-
import {
|
33
|
-
import {
|
34
|
-
import {
|
35
|
-
import {
|
36
|
-
import {
|
37
|
-
import {
|
38
|
-
import {
|
39
|
-
import {
|
40
|
-
import {
|
41
|
-
import {
|
42
|
-
import {
|
43
|
-
import {
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
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: '
|
27
|
+
dsaAddress: '0x995e67a652d2be45a8bff438b3dfac66dfff1c46',
|
28
|
+
instList: "0x9926955e0Dd681Dc303370C52f4Ad0a4dd061687",
|
29
|
+
aaveV2Resolver: "0x7C5C59944263311a1e350E3B871B0d1d8E9A513E",
|
30
|
+
aaveV3Resolver: "0xB0862d7dB941698A0A92F8dF6672F4B56A5F5b02",
|
31
|
+
balanceResolver: "0xD45dFA34cEeAB567208041331F5ed9916C23b1E8",
|
13
32
|
}
|
14
|
-
} as Record<number,
|
33
|
+
} as Record<number, NetworkAddresses>
|