@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
@@ -5,36 +5,11 @@ exports.AAVE_V2 = [
|
|
5
5
|
{
|
6
6
|
anonymous: false,
|
7
7
|
inputs: [
|
8
|
-
{
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
},
|
14
|
-
{
|
15
|
-
indexed: false,
|
16
|
-
internalType: 'uint256',
|
17
|
-
name: 'tokenAmt',
|
18
|
-
type: 'uint256',
|
19
|
-
},
|
20
|
-
{
|
21
|
-
indexed: true,
|
22
|
-
internalType: 'uint256',
|
23
|
-
name: 'rateMode',
|
24
|
-
type: 'uint256',
|
25
|
-
},
|
26
|
-
{
|
27
|
-
indexed: false,
|
28
|
-
internalType: 'uint256',
|
29
|
-
name: 'getId',
|
30
|
-
type: 'uint256',
|
31
|
-
},
|
32
|
-
{
|
33
|
-
indexed: false,
|
34
|
-
internalType: 'uint256',
|
35
|
-
name: 'setId',
|
36
|
-
type: 'uint256',
|
37
|
-
},
|
8
|
+
{ indexed: true, internalType: 'address', name: 'token', type: 'address' },
|
9
|
+
{ indexed: false, internalType: 'uint256', name: 'tokenAmt', type: 'uint256' },
|
10
|
+
{ indexed: true, internalType: 'uint256', name: 'rateMode', type: 'uint256' },
|
11
|
+
{ indexed: false, internalType: 'uint256', name: 'getId', type: 'uint256' },
|
12
|
+
{ indexed: false, internalType: 'uint256', name: 'setId', type: 'uint256' },
|
38
13
|
],
|
39
14
|
name: 'LogBorrow',
|
40
15
|
type: 'event',
|
@@ -42,80 +17,28 @@ exports.AAVE_V2 = [
|
|
42
17
|
{
|
43
18
|
anonymous: false,
|
44
19
|
inputs: [
|
45
|
-
{
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
type: 'address',
|
50
|
-
},
|
51
|
-
{
|
52
|
-
indexed: false,
|
53
|
-
internalType: 'uint256',
|
54
|
-
name: 'tokenAmt',
|
55
|
-
type: 'uint256',
|
56
|
-
},
|
57
|
-
{
|
58
|
-
indexed: false,
|
59
|
-
internalType: 'uint256',
|
60
|
-
name: 'getId',
|
61
|
-
type: 'uint256',
|
62
|
-
},
|
63
|
-
{
|
64
|
-
indexed: false,
|
65
|
-
internalType: 'uint256',
|
66
|
-
name: 'setId',
|
67
|
-
type: 'uint256',
|
68
|
-
},
|
20
|
+
{ indexed: true, internalType: 'address', name: 'token', type: 'address' },
|
21
|
+
{ indexed: false, internalType: 'uint256', name: 'tokenAmt', type: 'uint256' },
|
22
|
+
{ indexed: false, internalType: 'uint256', name: 'getId', type: 'uint256' },
|
23
|
+
{ indexed: false, internalType: 'uint256', name: 'setId', type: 'uint256' },
|
69
24
|
],
|
70
25
|
name: 'LogDeposit',
|
71
26
|
type: 'event',
|
72
27
|
},
|
73
28
|
{
|
74
29
|
anonymous: false,
|
75
|
-
inputs: [
|
76
|
-
{
|
77
|
-
indexed: false,
|
78
|
-
internalType: 'address[]',
|
79
|
-
name: 'tokens',
|
80
|
-
type: 'address[]',
|
81
|
-
},
|
82
|
-
],
|
30
|
+
inputs: [{ indexed: false, internalType: 'address[]', name: 'tokens', type: 'address[]' }],
|
83
31
|
name: 'LogEnableCollateral',
|
84
32
|
type: 'event',
|
85
33
|
},
|
86
34
|
{
|
87
35
|
anonymous: false,
|
88
36
|
inputs: [
|
89
|
-
{
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
},
|
95
|
-
{
|
96
|
-
indexed: false,
|
97
|
-
internalType: 'uint256',
|
98
|
-
name: 'tokenAmt',
|
99
|
-
type: 'uint256',
|
100
|
-
},
|
101
|
-
{
|
102
|
-
indexed: true,
|
103
|
-
internalType: 'uint256',
|
104
|
-
name: 'rateMode',
|
105
|
-
type: 'uint256',
|
106
|
-
},
|
107
|
-
{
|
108
|
-
indexed: false,
|
109
|
-
internalType: 'uint256',
|
110
|
-
name: 'getId',
|
111
|
-
type: 'uint256',
|
112
|
-
},
|
113
|
-
{
|
114
|
-
indexed: false,
|
115
|
-
internalType: 'uint256',
|
116
|
-
name: 'setId',
|
117
|
-
type: 'uint256',
|
118
|
-
},
|
37
|
+
{ indexed: true, internalType: 'address', name: 'token', type: 'address' },
|
38
|
+
{ indexed: false, internalType: 'uint256', name: 'tokenAmt', type: 'uint256' },
|
39
|
+
{ indexed: true, internalType: 'uint256', name: 'rateMode', type: 'uint256' },
|
40
|
+
{ indexed: false, internalType: 'uint256', name: 'getId', type: 'uint256' },
|
41
|
+
{ indexed: false, internalType: 'uint256', name: 'setId', type: 'uint256' },
|
119
42
|
],
|
120
43
|
name: 'LogPayback',
|
121
44
|
type: 'event',
|
@@ -123,30 +46,32 @@ exports.AAVE_V2 = [
|
|
123
46
|
{
|
124
47
|
anonymous: false,
|
125
48
|
inputs: [
|
126
|
-
{
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
},
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
},
|
49
|
+
{ indexed: false, internalType: 'address', name: 'token', type: 'address' },
|
50
|
+
{ indexed: false, internalType: 'uint256', name: 'amt', type: 'uint256' },
|
51
|
+
{ indexed: false, internalType: 'uint256', name: 'rateMode', type: 'uint256' },
|
52
|
+
{ indexed: false, internalType: 'address', name: 'onBehalfOf', type: 'address' },
|
53
|
+
{ indexed: false, internalType: 'uint256', name: 'getId', type: 'uint256' },
|
54
|
+
{ indexed: false, internalType: 'uint256', name: 'setId', type: 'uint256' },
|
55
|
+
],
|
56
|
+
name: 'LogPaybackOnBehalfOf',
|
57
|
+
type: 'event',
|
58
|
+
},
|
59
|
+
{
|
60
|
+
anonymous: false,
|
61
|
+
inputs: [
|
62
|
+
{ indexed: true, internalType: 'address', name: 'token', type: 'address' },
|
63
|
+
{ indexed: false, internalType: 'uint256', name: 'rateMode', type: 'uint256' },
|
64
|
+
],
|
65
|
+
name: 'LogSwapRateMode',
|
66
|
+
type: 'event',
|
67
|
+
},
|
68
|
+
{
|
69
|
+
anonymous: false,
|
70
|
+
inputs: [
|
71
|
+
{ indexed: true, internalType: 'address', name: 'token', type: 'address' },
|
72
|
+
{ indexed: false, internalType: 'uint256', name: 'tokenAmt', type: 'uint256' },
|
73
|
+
{ indexed: false, internalType: 'uint256', name: 'getId', type: 'uint256' },
|
74
|
+
{ indexed: false, internalType: 'uint256', name: 'setId', type: 'uint256' },
|
150
75
|
],
|
151
76
|
name: 'LogWithdraw',
|
152
77
|
type: 'event',
|
@@ -160,18 +85,11 @@ exports.AAVE_V2 = [
|
|
160
85
|
{ internalType: 'uint256', name: 'setId', type: 'uint256' },
|
161
86
|
],
|
162
87
|
name: 'borrow',
|
163
|
-
outputs: [],
|
164
|
-
stateMutability: 'payable',
|
165
|
-
type: 'function',
|
166
|
-
},
|
167
|
-
{
|
168
|
-
inputs: [],
|
169
|
-
name: 'connectorID',
|
170
88
|
outputs: [
|
171
|
-
{ internalType: '
|
172
|
-
{ internalType: '
|
89
|
+
{ internalType: 'string', name: '_eventName', type: 'string' },
|
90
|
+
{ internalType: 'bytes', name: '_eventParam', type: 'bytes' },
|
173
91
|
],
|
174
|
-
stateMutability: '
|
92
|
+
stateMutability: 'payable',
|
175
93
|
type: 'function',
|
176
94
|
},
|
177
95
|
{
|
@@ -182,16 +100,20 @@ exports.AAVE_V2 = [
|
|
182
100
|
{ internalType: 'uint256', name: 'setId', type: 'uint256' },
|
183
101
|
],
|
184
102
|
name: 'deposit',
|
185
|
-
outputs: [
|
103
|
+
outputs: [
|
104
|
+
{ internalType: 'string', name: '_eventName', type: 'string' },
|
105
|
+
{ internalType: 'bytes', name: '_eventParam', type: 'bytes' },
|
106
|
+
],
|
186
107
|
stateMutability: 'payable',
|
187
108
|
type: 'function',
|
188
109
|
},
|
189
110
|
{
|
190
|
-
inputs: [
|
191
|
-
{ internalType: 'address[]', name: 'tokens', type: 'address[]' },
|
192
|
-
],
|
111
|
+
inputs: [{ internalType: 'address[]', name: 'tokens', type: 'address[]' }],
|
193
112
|
name: 'enableCollateral',
|
194
|
-
outputs: [
|
113
|
+
outputs: [
|
114
|
+
{ internalType: 'string', name: '_eventName', type: 'string' },
|
115
|
+
{ internalType: 'bytes', name: '_eventParam', type: 'bytes' },
|
116
|
+
],
|
195
117
|
stateMutability: 'payable',
|
196
118
|
type: 'function',
|
197
119
|
},
|
@@ -211,7 +133,40 @@ exports.AAVE_V2 = [
|
|
211
133
|
{ internalType: 'uint256', name: 'setId', type: 'uint256' },
|
212
134
|
],
|
213
135
|
name: 'payback',
|
214
|
-
outputs: [
|
136
|
+
outputs: [
|
137
|
+
{ internalType: 'string', name: '_eventName', type: 'string' },
|
138
|
+
{ internalType: 'bytes', name: '_eventParam', type: 'bytes' },
|
139
|
+
],
|
140
|
+
stateMutability: 'payable',
|
141
|
+
type: 'function',
|
142
|
+
},
|
143
|
+
{
|
144
|
+
inputs: [
|
145
|
+
{ internalType: 'address', name: 'token', type: 'address' },
|
146
|
+
{ internalType: 'uint256', name: 'amt', type: 'uint256' },
|
147
|
+
{ internalType: 'uint256', name: 'rateMode', type: 'uint256' },
|
148
|
+
{ internalType: 'address', name: 'onBehalfOf', type: 'address' },
|
149
|
+
{ internalType: 'uint256', name: 'getId', type: 'uint256' },
|
150
|
+
{ internalType: 'uint256', name: 'setId', type: 'uint256' },
|
151
|
+
],
|
152
|
+
name: 'paybackOnBehalfOf',
|
153
|
+
outputs: [
|
154
|
+
{ internalType: 'string', name: '_eventName', type: 'string' },
|
155
|
+
{ internalType: 'bytes', name: '_eventParam', type: 'bytes' },
|
156
|
+
],
|
157
|
+
stateMutability: 'payable',
|
158
|
+
type: 'function',
|
159
|
+
},
|
160
|
+
{
|
161
|
+
inputs: [
|
162
|
+
{ internalType: 'address', name: 'token', type: 'address' },
|
163
|
+
{ internalType: 'uint256', name: 'rateMode', type: 'uint256' },
|
164
|
+
],
|
165
|
+
name: 'swapBorrowRateMode',
|
166
|
+
outputs: [
|
167
|
+
{ internalType: 'string', name: '_eventName', type: 'string' },
|
168
|
+
{ internalType: 'bytes', name: '_eventParam', type: 'bytes' },
|
169
|
+
],
|
215
170
|
stateMutability: 'payable',
|
216
171
|
type: 'function',
|
217
172
|
},
|
@@ -223,7 +178,10 @@ exports.AAVE_V2 = [
|
|
223
178
|
{ internalType: 'uint256', name: 'setId', type: 'uint256' },
|
224
179
|
],
|
225
180
|
name: 'withdraw',
|
226
|
-
outputs: [
|
181
|
+
outputs: [
|
182
|
+
{ internalType: 'string', name: '_eventName', type: 'string' },
|
183
|
+
{ internalType: 'bytes', name: '_eventParam', type: 'bytes' },
|
184
|
+
],
|
227
185
|
stateMutability: 'payable',
|
228
186
|
type: 'function',
|
229
187
|
},
|
@@ -0,0 +1,4 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.AAVE_V2_IMPORT_C = void 0;
|
4
|
+
exports.AAVE_V2_IMPORT_C = [{ "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "user", "type": "address" }, { "indexed": false, "internalType": "bool", "name": "convertStable", "type": "bool" }, { "indexed": false, "internalType": "address[]", "name": "supplyTokens", "type": "address[]" }, { "indexed": false, "internalType": "address[]", "name": "borrowTokens", "type": "address[]" }, { "indexed": false, "internalType": "uint256[]", "name": "supplyAmts", "type": "uint256[]" }, { "indexed": false, "internalType": "uint256[]", "name": "stableBorrowAmts", "type": "uint256[]" }, { "indexed": false, "internalType": "uint256[]", "name": "variableBorrowAmts", "type": "uint256[]" }], "name": "LogAaveV2Import", "type": "event" }, { "inputs": [{ "internalType": "address", "name": "userAccount", "type": "address" }, { "components": [{ "internalType": "address[]", "name": "supplyTokens", "type": "address[]" }, { "internalType": "address[]", "name": "borrowTokens", "type": "address[]" }, { "internalType": "bool", "name": "convertStable", "type": "bool" }, { "internalType": "uint256", "name": "times", "type": "uint256" }, { "internalType": "bool", "name": "isFlash", "type": "bool" }, { "internalType": "uint256[]", "name": "flashFees", "type": "uint256[]" }], "internalType": "struct AaveImportHelpers.ImportInputData", "name": "inputData", "type": "tuple" }], "name": "importAave", "outputs": [{ "internalType": "string", "name": "_eventName", "type": "string" }, { "internalType": "bytes", "name": "_eventParam", "type": "bytes" }], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "address[]", "name": "supplyTokens", "type": "address[]" }, { "internalType": "address[]", "name": "borrowTokens", "type": "address[]" }, { "internalType": "bool", "name": "convertStable", "type": "bool" }, { "internalType": "uint256", "name": "times", "type": "uint256" }, { "internalType": "bool", "name": "isFlash", "type": "bool" }, { "internalType": "uint256[]", "name": "flashFees", "type": "uint256[]" }], "internalType": "struct AaveImportHelpers.ImportInputData", "name": "inputData", "type": "tuple" }], "name": "migrateAave", "outputs": [{ "internalType": "string", "name": "_eventName", "type": "string" }, { "internalType": "bytes", "name": "_eventParam", "type": "bytes" }], "stateMutability": "payable", "type": "function" }, { "inputs": [], "name": "name", "outputs": [{ "internalType": "string", "name": "", "type": "string" }], "stateMutability": "view", "type": "function" }];
|
@@ -0,0 +1,322 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.AAVE_V3_A = void 0;
|
4
|
+
exports.AAVE_V3_A = [
|
5
|
+
{
|
6
|
+
anonymous: false,
|
7
|
+
inputs: [
|
8
|
+
{ indexed: true, internalType: 'address', name: 'token', type: 'address' },
|
9
|
+
{ indexed: false, internalType: 'uint256', name: 'tokenAmt', type: 'uint256' },
|
10
|
+
{ indexed: true, internalType: 'uint256', name: 'rateMode', type: 'uint256' },
|
11
|
+
{ indexed: false, internalType: 'uint256', name: 'getId', type: 'uint256' },
|
12
|
+
{ indexed: false, internalType: 'uint256', name: 'setId', type: 'uint256' },
|
13
|
+
],
|
14
|
+
name: 'LogBorrow',
|
15
|
+
type: 'event',
|
16
|
+
},
|
17
|
+
{
|
18
|
+
anonymous: false,
|
19
|
+
inputs: [
|
20
|
+
{ indexed: false, internalType: 'address', name: 'token', type: 'address' },
|
21
|
+
{ indexed: false, internalType: 'uint256', name: 'amt', type: 'uint256' },
|
22
|
+
{ indexed: false, internalType: 'uint256', name: 'rateMode', type: 'uint256' },
|
23
|
+
{ indexed: false, internalType: 'address', name: 'onBehalfOf', type: 'address' },
|
24
|
+
{ indexed: false, internalType: 'uint256', name: 'getId', type: 'uint256' },
|
25
|
+
{ indexed: false, internalType: 'uint256', name: 'setId', type: 'uint256' },
|
26
|
+
],
|
27
|
+
name: 'LogBorrowOnBehalfOf',
|
28
|
+
type: 'event',
|
29
|
+
},
|
30
|
+
{
|
31
|
+
anonymous: false,
|
32
|
+
inputs: [
|
33
|
+
{ indexed: false, internalType: 'address', name: 'token', type: 'address' },
|
34
|
+
{ indexed: false, internalType: 'uint256', name: 'amount', type: 'uint256' },
|
35
|
+
{ indexed: false, internalType: 'uint256', name: 'rateMode', type: 'uint256' },
|
36
|
+
{ indexed: false, internalType: 'address', name: 'delegateTo', type: 'address' },
|
37
|
+
{ indexed: false, internalType: 'uint256', name: 'getId', type: 'uint256' },
|
38
|
+
{ indexed: false, internalType: 'uint256', name: 'setId', type: 'uint256' },
|
39
|
+
],
|
40
|
+
name: 'LogDelegateBorrow',
|
41
|
+
type: 'event',
|
42
|
+
},
|
43
|
+
{
|
44
|
+
anonymous: false,
|
45
|
+
inputs: [
|
46
|
+
{ indexed: true, internalType: 'address', name: 'token', type: 'address' },
|
47
|
+
{ indexed: false, internalType: 'uint256', name: 'tokenAmt', type: 'uint256' },
|
48
|
+
{ indexed: false, internalType: 'uint256', name: 'getId', type: 'uint256' },
|
49
|
+
{ indexed: false, internalType: 'uint256', name: 'setId', type: 'uint256' },
|
50
|
+
],
|
51
|
+
name: 'LogDeposit',
|
52
|
+
type: 'event',
|
53
|
+
},
|
54
|
+
{
|
55
|
+
anonymous: false,
|
56
|
+
inputs: [
|
57
|
+
{ indexed: false, internalType: 'address', name: 'token', type: 'address' },
|
58
|
+
{ indexed: false, internalType: 'uint256', name: 'amt', type: 'uint256' },
|
59
|
+
{ indexed: false, internalType: 'uint256', name: 'getId', type: 'uint256' },
|
60
|
+
{ indexed: false, internalType: 'uint256', name: 'setId', type: 'uint256' },
|
61
|
+
],
|
62
|
+
name: 'LogDepositWithoutCollateral',
|
63
|
+
type: 'event',
|
64
|
+
},
|
65
|
+
{
|
66
|
+
anonymous: false,
|
67
|
+
inputs: [{ indexed: false, internalType: 'address[]', name: 'tokens', type: 'address[]' }],
|
68
|
+
name: 'LogDisableCollateral',
|
69
|
+
type: 'event',
|
70
|
+
},
|
71
|
+
{
|
72
|
+
anonymous: false,
|
73
|
+
inputs: [{ indexed: false, internalType: 'address[]', name: 'tokens', type: 'address[]' }],
|
74
|
+
name: 'LogEnableCollateral',
|
75
|
+
type: 'event',
|
76
|
+
},
|
77
|
+
{
|
78
|
+
anonymous: false,
|
79
|
+
inputs: [
|
80
|
+
{ indexed: true, internalType: 'address', name: 'token', type: 'address' },
|
81
|
+
{ indexed: false, internalType: 'uint256', name: 'tokenAmt', type: 'uint256' },
|
82
|
+
{ indexed: true, internalType: 'uint256', name: 'rateMode', type: 'uint256' },
|
83
|
+
{ indexed: false, internalType: 'uint256', name: 'getId', type: 'uint256' },
|
84
|
+
{ indexed: false, internalType: 'uint256', name: 'setId', type: 'uint256' },
|
85
|
+
],
|
86
|
+
name: 'LogPayback',
|
87
|
+
type: 'event',
|
88
|
+
},
|
89
|
+
{
|
90
|
+
anonymous: false,
|
91
|
+
inputs: [
|
92
|
+
{ indexed: false, internalType: 'address', name: 'token', type: 'address' },
|
93
|
+
{ indexed: false, internalType: 'uint256', name: 'amt', type: 'uint256' },
|
94
|
+
{ indexed: false, internalType: 'uint256', name: 'rateMode', type: 'uint256' },
|
95
|
+
{ indexed: false, internalType: 'address', name: 'onBehalfOf', type: 'address' },
|
96
|
+
{ indexed: false, internalType: 'uint256', name: 'getId', type: 'uint256' },
|
97
|
+
{ indexed: false, internalType: 'uint256', name: 'setId', type: 'uint256' },
|
98
|
+
],
|
99
|
+
name: 'LogPaybackOnBehalfOf',
|
100
|
+
type: 'event',
|
101
|
+
},
|
102
|
+
{
|
103
|
+
anonymous: false,
|
104
|
+
inputs: [{ indexed: false, internalType: 'uint8', name: 'categoryId', type: 'uint8' }],
|
105
|
+
name: 'LogSetUserEMode',
|
106
|
+
type: 'event',
|
107
|
+
},
|
108
|
+
{
|
109
|
+
anonymous: false,
|
110
|
+
inputs: [
|
111
|
+
{ indexed: true, internalType: 'address', name: 'token', type: 'address' },
|
112
|
+
{ indexed: false, internalType: 'uint256', name: 'rateMode', type: 'uint256' },
|
113
|
+
],
|
114
|
+
name: 'LogSwapRateMode',
|
115
|
+
type: 'event',
|
116
|
+
},
|
117
|
+
{
|
118
|
+
anonymous: false,
|
119
|
+
inputs: [
|
120
|
+
{ indexed: true, internalType: 'address', name: 'token', type: 'address' },
|
121
|
+
{ indexed: false, internalType: 'uint256', name: 'tokenAmt', type: 'uint256' },
|
122
|
+
{ indexed: false, internalType: 'uint256', name: 'getId', type: 'uint256' },
|
123
|
+
{ indexed: false, internalType: 'uint256', name: 'setId', type: 'uint256' },
|
124
|
+
],
|
125
|
+
name: 'LogWithdraw',
|
126
|
+
type: 'event',
|
127
|
+
},
|
128
|
+
{
|
129
|
+
inputs: [
|
130
|
+
{ internalType: 'address', name: 'token', type: 'address' },
|
131
|
+
{ internalType: 'uint256', name: 'amt', type: 'uint256' },
|
132
|
+
{ internalType: 'uint256', name: 'rateMode', type: 'uint256' },
|
133
|
+
{ internalType: 'uint256', name: 'getId', type: 'uint256' },
|
134
|
+
{ internalType: 'uint256', name: 'setId', type: 'uint256' },
|
135
|
+
],
|
136
|
+
name: 'borrow',
|
137
|
+
outputs: [
|
138
|
+
{ internalType: 'string', name: '_eventName', type: 'string' },
|
139
|
+
{ internalType: 'bytes', name: '_eventParam', type: 'bytes' },
|
140
|
+
],
|
141
|
+
stateMutability: 'payable',
|
142
|
+
type: 'function',
|
143
|
+
},
|
144
|
+
{
|
145
|
+
inputs: [
|
146
|
+
{ internalType: 'address', name: 'token', type: 'address' },
|
147
|
+
{ internalType: 'uint256', name: 'amt', type: 'uint256' },
|
148
|
+
{ internalType: 'uint256', name: 'rateMode', type: 'uint256' },
|
149
|
+
{ internalType: 'address', name: 'onBehalfOf', type: 'address' },
|
150
|
+
{ internalType: 'uint256', name: 'getId', type: 'uint256' },
|
151
|
+
{ internalType: 'uint256', name: 'setId', type: 'uint256' },
|
152
|
+
],
|
153
|
+
name: 'borrowOnBehalfOf',
|
154
|
+
outputs: [
|
155
|
+
{ internalType: 'string', name: '_eventName', type: 'string' },
|
156
|
+
{ internalType: 'bytes', name: '_eventParam', type: 'bytes' },
|
157
|
+
],
|
158
|
+
stateMutability: 'payable',
|
159
|
+
type: 'function',
|
160
|
+
},
|
161
|
+
{
|
162
|
+
inputs: [
|
163
|
+
{ internalType: 'address', name: 'token', type: 'address' },
|
164
|
+
{ internalType: 'uint256', name: 'amount', type: 'uint256' },
|
165
|
+
{ internalType: 'uint256', name: 'rateMode', type: 'uint256' },
|
166
|
+
{ internalType: 'address', name: 'delegateTo', type: 'address' },
|
167
|
+
{ internalType: 'uint256', name: 'getId', type: 'uint256' },
|
168
|
+
{ internalType: 'uint256', name: 'setId', type: 'uint256' },
|
169
|
+
],
|
170
|
+
name: 'delegateBorrow',
|
171
|
+
outputs: [
|
172
|
+
{ internalType: 'string', name: '_eventName', type: 'string' },
|
173
|
+
{ internalType: 'bytes', name: '_eventParam', type: 'bytes' },
|
174
|
+
],
|
175
|
+
stateMutability: 'payable',
|
176
|
+
type: 'function',
|
177
|
+
},
|
178
|
+
{
|
179
|
+
inputs: [
|
180
|
+
{ internalType: 'address', name: 'token', type: 'address' },
|
181
|
+
{ internalType: 'uint256', name: 'amt', type: 'uint256' },
|
182
|
+
{ internalType: 'uint256', name: 'getId', type: 'uint256' },
|
183
|
+
{ internalType: 'uint256', name: 'setId', type: 'uint256' },
|
184
|
+
],
|
185
|
+
name: 'deposit',
|
186
|
+
outputs: [
|
187
|
+
{ internalType: 'string', name: '_eventName', type: 'string' },
|
188
|
+
{ internalType: 'bytes', name: '_eventParam', type: 'bytes' },
|
189
|
+
],
|
190
|
+
stateMutability: 'payable',
|
191
|
+
type: 'function',
|
192
|
+
},
|
193
|
+
{
|
194
|
+
inputs: [
|
195
|
+
{ internalType: 'address', name: 'token', type: 'address' },
|
196
|
+
{ internalType: 'uint256', name: 'amt', type: 'uint256' },
|
197
|
+
{ internalType: 'uint256', name: 'getId', type: 'uint256' },
|
198
|
+
{ internalType: 'uint256', name: 'setId', type: 'uint256' },
|
199
|
+
],
|
200
|
+
name: 'depositWithoutCollateral',
|
201
|
+
outputs: [
|
202
|
+
{ internalType: 'string', name: '_eventName', type: 'string' },
|
203
|
+
{ internalType: 'bytes', name: '_eventParam', type: 'bytes' },
|
204
|
+
],
|
205
|
+
stateMutability: 'payable',
|
206
|
+
type: 'function',
|
207
|
+
},
|
208
|
+
{
|
209
|
+
inputs: [{ internalType: 'address[]', name: 'tokens', type: 'address[]' }],
|
210
|
+
name: 'disableCollateral',
|
211
|
+
outputs: [
|
212
|
+
{ internalType: 'string', name: '_eventName', type: 'string' },
|
213
|
+
{ internalType: 'bytes', name: '_eventParam', type: 'bytes' },
|
214
|
+
],
|
215
|
+
stateMutability: 'payable',
|
216
|
+
type: 'function',
|
217
|
+
},
|
218
|
+
{
|
219
|
+
inputs: [{ internalType: 'address[]', name: 'tokens', type: 'address[]' }],
|
220
|
+
name: 'enableCollateral',
|
221
|
+
outputs: [
|
222
|
+
{ internalType: 'string', name: '_eventName', type: 'string' },
|
223
|
+
{ internalType: 'bytes', name: '_eventParam', type: 'bytes' },
|
224
|
+
],
|
225
|
+
stateMutability: 'payable',
|
226
|
+
type: 'function',
|
227
|
+
},
|
228
|
+
{
|
229
|
+
inputs: [],
|
230
|
+
name: 'name',
|
231
|
+
outputs: [{ internalType: 'string', name: '', type: 'string' }],
|
232
|
+
stateMutability: 'view',
|
233
|
+
type: 'function',
|
234
|
+
},
|
235
|
+
{
|
236
|
+
inputs: [
|
237
|
+
{ internalType: 'address', name: 'token', type: 'address' },
|
238
|
+
{ internalType: 'uint256', name: 'amt', type: 'uint256' },
|
239
|
+
{ internalType: 'uint256', name: 'rateMode', type: 'uint256' },
|
240
|
+
{ internalType: 'uint256', name: 'getId', type: 'uint256' },
|
241
|
+
{ internalType: 'uint256', name: 'setId', type: 'uint256' },
|
242
|
+
],
|
243
|
+
name: 'payback',
|
244
|
+
outputs: [
|
245
|
+
{ internalType: 'string', name: '_eventName', type: 'string' },
|
246
|
+
{ internalType: 'bytes', name: '_eventParam', type: 'bytes' },
|
247
|
+
],
|
248
|
+
stateMutability: 'payable',
|
249
|
+
type: 'function',
|
250
|
+
},
|
251
|
+
{
|
252
|
+
inputs: [
|
253
|
+
{ internalType: 'address', name: 'token', type: 'address' },
|
254
|
+
{ internalType: 'uint256', name: 'amt', type: 'uint256' },
|
255
|
+
{ internalType: 'uint256', name: 'rateMode', type: 'uint256' },
|
256
|
+
{ internalType: 'address', name: 'onBehalfOf', type: 'address' },
|
257
|
+
{ internalType: 'uint256', name: 'getId', type: 'uint256' },
|
258
|
+
{ internalType: 'uint256', name: 'setId', type: 'uint256' },
|
259
|
+
],
|
260
|
+
name: 'paybackOnBehalfOf',
|
261
|
+
outputs: [
|
262
|
+
{ internalType: 'string', name: '_eventName', type: 'string' },
|
263
|
+
{ internalType: 'bytes', name: '_eventParam', type: 'bytes' },
|
264
|
+
],
|
265
|
+
stateMutability: 'payable',
|
266
|
+
type: 'function',
|
267
|
+
},
|
268
|
+
{
|
269
|
+
inputs: [
|
270
|
+
{ internalType: 'address', name: 'token', type: 'address' },
|
271
|
+
{ internalType: 'uint256', name: 'amt', type: 'uint256' },
|
272
|
+
{ internalType: 'uint256', name: 'rateMode', type: 'uint256' },
|
273
|
+
{ internalType: 'uint256', name: 'getId', type: 'uint256' },
|
274
|
+
{ internalType: 'uint256', name: 'setId', type: 'uint256' },
|
275
|
+
],
|
276
|
+
name: 'paybackWithATokens',
|
277
|
+
outputs: [
|
278
|
+
{ internalType: 'string', name: '_eventName', type: 'string' },
|
279
|
+
{ internalType: 'bytes', name: '_eventParam', type: 'bytes' },
|
280
|
+
],
|
281
|
+
stateMutability: 'payable',
|
282
|
+
type: 'function',
|
283
|
+
},
|
284
|
+
{
|
285
|
+
inputs: [{ internalType: 'uint8', name: 'categoryId', type: 'uint8' }],
|
286
|
+
name: 'setUserEMode',
|
287
|
+
outputs: [
|
288
|
+
{ internalType: 'string', name: '_eventName', type: 'string' },
|
289
|
+
{ internalType: 'bytes', name: '_eventParam', type: 'bytes' },
|
290
|
+
],
|
291
|
+
stateMutability: 'payable',
|
292
|
+
type: 'function',
|
293
|
+
},
|
294
|
+
{
|
295
|
+
inputs: [
|
296
|
+
{ internalType: 'address', name: 'token', type: 'address' },
|
297
|
+
{ internalType: 'uint256', name: 'rateMode', type: 'uint256' },
|
298
|
+
],
|
299
|
+
name: 'swapBorrowRateMode',
|
300
|
+
outputs: [
|
301
|
+
{ internalType: 'string', name: '_eventName', type: 'string' },
|
302
|
+
{ internalType: 'bytes', name: '_eventParam', type: 'bytes' },
|
303
|
+
],
|
304
|
+
stateMutability: 'payable',
|
305
|
+
type: 'function',
|
306
|
+
},
|
307
|
+
{
|
308
|
+
inputs: [
|
309
|
+
{ internalType: 'address', name: 'token', type: 'address' },
|
310
|
+
{ internalType: 'uint256', name: 'amt', type: 'uint256' },
|
311
|
+
{ internalType: 'uint256', name: 'getId', type: 'uint256' },
|
312
|
+
{ internalType: 'uint256', name: 'setId', type: 'uint256' },
|
313
|
+
],
|
314
|
+
name: 'withdraw',
|
315
|
+
outputs: [
|
316
|
+
{ internalType: 'string', name: '_eventName', type: 'string' },
|
317
|
+
{ internalType: 'bytes', name: '_eventParam', type: 'bytes' },
|
318
|
+
],
|
319
|
+
stateMutability: 'payable',
|
320
|
+
type: 'function',
|
321
|
+
},
|
322
|
+
];
|