@instadapp/interop-x 0.0.0-dev.6ea4ee5 → 0.0.0-dev.7283125
Sign up to get free protection for your applications and to get access to all the features.
- package/.github/workflows/ci.yml +19 -0
- package/bin/interop-x +1 -1
- package/dist/package.json +76 -0
- package/dist/src/abi/connectors/index.js +36 -0
- package/dist/src/abi/connectors/v1/aave.js +148 -0
- package/dist/src/abi/connectors/v1/aave_claim.js +4 -0
- package/dist/src/abi/connectors/v1/aave_migrate.js +109 -0
- package/dist/src/abi/connectors/v1/aave_polygon_migrate.js +110 -0
- package/dist/src/abi/connectors/v1/aave_stake.js +4 -0
- package/dist/src/abi/connectors/v1/aave_v1_import.js +54 -0
- package/dist/src/abi/connectors/v1/aave_v2.js +230 -0
- package/dist/src/abi/connectors/v1/aave_v2_import.js +59 -0
- package/dist/src/abi/connectors/v1/authority.js +100 -0
- package/dist/src/abi/connectors/v1/basic.js +136 -0
- package/dist/src/abi/connectors/v1/chi.js +36 -0
- package/dist/src/abi/connectors/v1/comp.js +4 -0
- package/dist/src/abi/connectors/v1/compound.js +4 -0
- package/dist/src/abi/connectors/v1/compoundImport.js +69 -0
- package/dist/src/abi/connectors/v1/compoundImport_v2.js +4 -0
- package/dist/src/abi/connectors/v1/compound_old.js +448 -0
- package/dist/src/abi/connectors/v1/curve.js +140 -0
- package/dist/src/abi/connectors/v1/curve_claim.js +63 -0
- package/dist/src/abi/connectors/v1/curve_gauge.js +158 -0
- package/dist/src/abi/connectors/v1/curve_sbtc.js +140 -0
- package/dist/src/abi/connectors/v1/curve_susd.js +140 -0
- package/dist/src/abi/connectors/v1/curve_three.js +79 -0
- package/dist/src/abi/connectors/v1/curve_y.js +140 -0
- package/dist/src/abi/connectors/v1/dsa_migrate_v1_to_v2.js +4 -0
- package/dist/src/abi/connectors/v1/dydx.js +148 -0
- package/dist/src/abi/connectors/v1/dydx_flash.js +52 -0
- package/dist/src/abi/connectors/v1/fee.js +50 -0
- package/dist/src/abi/connectors/v1/gelato.js +1138 -0
- package/dist/src/abi/connectors/v1/index.js +58 -0
- package/dist/src/abi/connectors/v1/instapool.js +439 -0
- package/dist/src/abi/connectors/v1/instapool_v2.js +126 -0
- package/dist/src/abi/connectors/v1/kyber.js +117 -0
- package/dist/src/abi/connectors/v1/maker.js +480 -0
- package/dist/src/abi/connectors/v1/maker_old.js +300 -0
- package/dist/src/abi/connectors/v1/math.js +43 -0
- package/dist/src/abi/connectors/v1/migrate.js +46 -0
- package/dist/src/abi/connectors/v1/oasis.js +198 -0
- package/dist/src/abi/connectors/v1/oneInch.js +160 -0
- package/dist/src/abi/connectors/v1/polygon_bridge.js +4 -0
- package/dist/src/abi/connectors/v1/refinance.js +4 -0
- package/dist/src/abi/connectors/v1/staking.js +220 -0
- package/dist/src/abi/connectors/v1/swerve.js +179 -0
- package/dist/src/abi/connectors/v1/uniswap.js +297 -0
- package/dist/src/abi/connectors/v2/1INCH-A.js +4 -0
- package/dist/src/abi/connectors/v2/1INCH-B.js +4 -0
- package/dist/src/abi/connectors/v2/AAVE-CLAIM-A.js +4 -0
- package/dist/src/abi/connectors/v2/AAVE-CLAIM-B.js +166 -0
- package/dist/src/abi/connectors/v2/AAVE-STAKE-A.js +4 -0
- package/dist/src/abi/connectors/v2/AAVE-V1-A.js +130 -0
- package/dist/src/abi/connectors/v2/AAVE-V1-IMPORT-A.js +4 -0
- package/dist/src/abi/connectors/v2/AAVE-V2-A.js +230 -0
- package/dist/src/abi/connectors/v2/AAVE-V2-IMPORT-A.js +4 -0
- package/dist/src/abi/connectors/v2/AAVE-V2-IMPORT-B.js +225 -0
- package/dist/src/abi/connectors/v2/AUTHORITY-A.js +100 -0
- package/dist/src/abi/connectors/v2/B-COMPOUND-A.js +4 -0
- package/dist/src/abi/connectors/v2/B-LIQUITY-A.js +4 -0
- package/dist/src/abi/connectors/v2/B-MAKERDAO-A.js +4 -0
- package/dist/src/abi/connectors/v2/BASIC-A.js +136 -0
- package/dist/src/abi/connectors/v2/BASIC-B.js +4 -0
- package/dist/src/abi/connectors/v2/BASIC-C.js +4 -0
- package/dist/src/abi/connectors/v2/COMP-A.js +4 -0
- package/dist/src/abi/connectors/v2/COMPOUND-A.js +4 -0
- package/dist/src/abi/connectors/v2/COMPOUND-IMPORT-A.js +4 -0
- package/dist/src/abi/connectors/v2/COMPOUND-IMPORT-B.js +195 -0
- package/dist/src/abi/connectors/v2/G-UNISWAP-A.js +4 -0
- package/dist/src/abi/connectors/v2/GELATO-AAVE-A.js +4 -0
- package/dist/src/abi/connectors/v2/INST-A.js +4 -0
- package/dist/src/abi/connectors/v2/INST-LM-A.js +4 -0
- package/dist/src/abi/connectors/v2/INST-STAKING-A.js +4 -0
- package/dist/src/abi/connectors/v2/INST-STAKING-B.js +4 -0
- package/dist/src/abi/connectors/v2/INSTAPOOL-A.js +4 -0
- package/dist/src/abi/connectors/v2/LIQUITY-A.js +4 -0
- package/dist/src/abi/connectors/v2/MAKERDAO-A.js +4 -0
- package/dist/src/abi/connectors/v2/MAKERDAO-CLAIM-A.js +136 -0
- package/dist/src/abi/connectors/v2/PARASWAP-A.js +4 -0
- package/dist/src/abi/connectors/v2/POLYGON-BRIDGE-A.js +4 -0
- package/dist/src/abi/connectors/v2/REFINANCE-A.js +4 -0
- package/dist/src/abi/connectors/v2/REFLEXER-A.js +4 -0
- package/dist/src/abi/connectors/v2/STAKE-ERC20-A.js +4 -0
- package/dist/src/abi/connectors/v2/UNISWAP-A.js +297 -0
- package/dist/src/abi/connectors/v2/UNISWAP-V2-A.js +4 -0
- package/dist/src/abi/connectors/v2/UNISWAP-V3-A.js +4 -0
- package/dist/src/abi/connectors/v2/UNISWAP-V3-STAKE-A.js +4 -0
- package/dist/src/abi/connectors/v2/WETH-A.js +4 -0
- package/dist/src/abi/connectors/v2/YEARN-VAULT-A.js +4 -0
- package/dist/src/abi/connectors/v2/index.js +89 -0
- package/dist/{abi → src/abi}/erc20.json +0 -0
- package/dist/{abi → src/abi}/gnosisSafe.json +0 -0
- package/dist/{abi → src/abi}/index.js +4 -4
- package/dist/src/abi/interopX.json +1436 -0
- package/dist/src/alias.js +10 -0
- package/dist/src/api/index.js +36 -0
- package/dist/{config → src/config}/index.js +11 -1
- package/dist/src/constants/addresses.js +17 -0
- package/dist/src/constants/blockConfirmations.js +8 -0
- package/dist/{constants → src/constants}/index.js +1 -0
- package/dist/{constants → src/constants}/tokens.js +62 -39
- package/dist/{db → src/db}/index.js +0 -0
- package/dist/{db → src/db}/models/index.js +0 -0
- package/dist/{db → src/db}/models/transaction.js +37 -13
- package/dist/{db → src/db}/sequelize.js +1 -1
- package/dist/src/gnosis/actions/aaveV2/index.js +11 -0
- package/dist/src/gnosis/actions/aaveV2/source.js +73 -0
- package/dist/src/gnosis/actions/aaveV2/target.js +85 -0
- package/dist/src/gnosis/actions/index.js +9 -0
- package/dist/src/gnosis/index.js +20 -0
- package/dist/src/index.js +119 -0
- package/dist/{logger → src/logger}/index.js +0 -0
- package/dist/{net → src/net}/index.js +0 -0
- package/dist/{net → src/net}/peer/index.js +8 -3
- package/dist/{net → src/net}/pool/index.js +32 -9
- package/dist/{net → src/net}/protocol/dial/BaseDialProtocol.js +0 -0
- package/dist/{net → src/net}/protocol/dial/SignatureDialProtocol.js +21 -12
- package/dist/src/net/protocol/dial/TransactionStatusDialProtocol.js +30 -0
- package/dist/{net → src/net}/protocol/index.js +51 -1
- package/dist/src/tasks/AutoUpdateTask.js +70 -0
- package/dist/{tasks → src/tasks}/BaseTask.js +12 -4
- package/dist/src/tasks/InteropX/ProcessSubmitSubmitEvents.js +179 -0
- package/dist/src/tasks/InteropX/ProcessValidateEvents.js +183 -0
- package/dist/src/tasks/InteropX/SyncLogSubmitEvents.js +87 -0
- package/dist/src/tasks/InteropX/SyncLogValidateEvents.js +105 -0
- package/dist/src/tasks/Transactions/SyncTransactionStatusTask.js +58 -0
- package/dist/src/tasks/index.js +43 -0
- package/dist/{typechain → src/typechain}/Erc20.js +0 -0
- package/dist/{typechain → src/typechain}/GnosisSafe.js +0 -0
- package/dist/{typechain/InteropBridgeToken.js → src/typechain/InteropX.js} +0 -0
- package/dist/{typechain → src/typechain}/common.js +0 -0
- package/dist/{typechain → src/typechain}/factories/Erc20__factory.js +0 -0
- package/dist/{typechain → src/typechain}/factories/GnosisSafe__factory.js +0 -0
- package/dist/src/typechain/factories/InteropX__factory.js +1928 -0
- package/dist/src/typechain/factories/index.js +12 -0
- package/dist/{typechain → src/typechain}/index.js +3 -5
- package/dist/{types.js → src/types.js} +0 -0
- package/dist/src/utils/index.js +223 -0
- package/package.json +26 -16
- package/patches/@ethersproject+properties+5.6.0.patch +13 -0
- package/src/abi/connectors/index.ts +14 -0
- package/src/abi/connectors/v1/aave.ts +147 -0
- package/src/abi/connectors/v1/aave_claim.ts +3 -0
- package/src/abi/connectors/v1/aave_migrate.ts +108 -0
- package/src/abi/connectors/v1/aave_polygon_migrate.ts +109 -0
- package/src/abi/connectors/v1/aave_stake.ts +3 -0
- package/src/abi/connectors/v1/aave_v1_import.ts +53 -0
- package/src/abi/connectors/v1/aave_v2.ts +229 -0
- package/src/abi/connectors/v1/aave_v2_import.ts +58 -0
- package/src/abi/connectors/v1/authority.ts +99 -0
- package/src/abi/connectors/v1/basic.ts +135 -0
- package/src/abi/connectors/v1/chi.ts +35 -0
- package/src/abi/connectors/v1/comp.ts +3 -0
- package/src/abi/connectors/v1/compound.ts +3 -0
- package/src/abi/connectors/v1/compoundImport.ts +68 -0
- package/src/abi/connectors/v1/compoundImport_v2.ts +3 -0
- package/src/abi/connectors/v1/compound_old.ts +447 -0
- package/src/abi/connectors/v1/curve.ts +139 -0
- package/src/abi/connectors/v1/curve_claim.ts +62 -0
- package/src/abi/connectors/v1/curve_gauge.ts +157 -0
- package/src/abi/connectors/v1/curve_sbtc.ts +139 -0
- package/src/abi/connectors/v1/curve_susd.ts +139 -0
- package/src/abi/connectors/v1/curve_three.ts +78 -0
- package/src/abi/connectors/v1/curve_y.ts +139 -0
- package/src/abi/connectors/v1/dsa_migrate_v1_to_v2.ts +3 -0
- package/src/abi/connectors/v1/dydx.ts +147 -0
- package/src/abi/connectors/v1/dydx_flash.ts +51 -0
- package/src/abi/connectors/v1/fee.ts +49 -0
- package/src/abi/connectors/v1/gelato.ts +1137 -0
- package/src/abi/connectors/v1/index.ts +42 -0
- package/src/abi/connectors/v1/instapool.ts +438 -0
- package/src/abi/connectors/v1/instapool_v2.ts +125 -0
- package/src/abi/connectors/v1/kyber.ts +116 -0
- package/src/abi/connectors/v1/maker.ts +479 -0
- package/src/abi/connectors/v1/maker_old.ts +299 -0
- package/src/abi/connectors/v1/math.ts +42 -0
- package/src/abi/connectors/v1/migrate.ts +45 -0
- package/src/abi/connectors/v1/oasis.ts +197 -0
- package/src/abi/connectors/v1/oneInch.ts +159 -0
- package/src/abi/connectors/v1/polygon_bridge.ts +3 -0
- package/src/abi/connectors/v1/refinance.ts +3 -0
- package/src/abi/connectors/v1/staking.ts +219 -0
- package/src/abi/connectors/v1/swerve.ts +178 -0
- package/src/abi/connectors/v1/uniswap.ts +297 -0
- package/src/abi/connectors/v2/1INCH-A.ts +3 -0
- package/src/abi/connectors/v2/1INCH-B.ts +3 -0
- package/src/abi/connectors/v2/AAVE-CLAIM-A.ts +3 -0
- package/src/abi/connectors/v2/AAVE-CLAIM-B.ts +165 -0
- package/src/abi/connectors/v2/AAVE-STAKE-A.ts +3 -0
- package/src/abi/connectors/v2/AAVE-V1-A.ts +130 -0
- package/src/abi/connectors/v2/AAVE-V1-IMPORT-A.ts +3 -0
- package/src/abi/connectors/v2/AAVE-V2-A.ts +229 -0
- package/src/abi/connectors/v2/AAVE-V2-IMPORT-A.ts +3 -0
- package/src/abi/connectors/v2/AAVE-V2-IMPORT-B.ts +224 -0
- package/src/abi/connectors/v2/AUTHORITY-A.ts +99 -0
- package/src/abi/connectors/v2/B-COMPOUND-A.ts +3 -0
- package/src/abi/connectors/v2/B-LIQUITY-A.ts +3 -0
- package/src/abi/connectors/v2/B-MAKERDAO-A.ts +3 -0
- package/src/abi/connectors/v2/BASIC-A.ts +135 -0
- package/src/abi/connectors/v2/BASIC-B.ts +3 -0
- package/src/abi/connectors/v2/BASIC-C.ts +3 -0
- package/src/abi/connectors/v2/COMP-A.ts +3 -0
- package/src/abi/connectors/v2/COMPOUND-A.ts +3 -0
- package/src/abi/connectors/v2/COMPOUND-IMPORT-A.ts +3 -0
- package/src/abi/connectors/v2/COMPOUND-IMPORT-B.ts +194 -0
- package/src/abi/connectors/v2/G-UNISWAP-A.ts +3 -0
- package/src/abi/connectors/v2/GELATO-AAVE-A.ts +3 -0
- package/src/abi/connectors/v2/INST-A.ts +3 -0
- package/src/abi/connectors/v2/INST-LM-A.ts +3 -0
- package/src/abi/connectors/v2/INST-STAKING-A.ts +3 -0
- package/src/abi/connectors/v2/INST-STAKING-B.ts +3 -0
- package/src/abi/connectors/v2/INSTAPOOL-A.ts +3 -0
- package/src/abi/connectors/v2/LIQUITY-A.ts +3 -0
- package/src/abi/connectors/v2/MAKERDAO-A.ts +3 -0
- package/src/abi/connectors/v2/MAKERDAO-CLAIM-A.ts +135 -0
- package/src/abi/connectors/v2/PARASWAP-A.ts +3 -0
- package/src/abi/connectors/v2/POLYGON-BRIDGE-A.ts +3 -0
- package/src/abi/connectors/v2/REFINANCE-A.ts +3 -0
- package/src/abi/connectors/v2/REFLEXER-A.ts +3 -0
- package/src/abi/connectors/v2/STAKE-ERC20-A.ts +3 -0
- package/src/abi/connectors/v2/UNISWAP-A.ts +297 -0
- package/src/abi/connectors/v2/UNISWAP-V2-A.ts +3 -0
- package/src/abi/connectors/v2/UNISWAP-V3-A.ts +3 -0
- package/src/abi/connectors/v2/UNISWAP-V3-STAKE-A.ts +3 -0
- package/src/abi/connectors/v2/WETH-A.ts +3 -0
- package/src/abi/connectors/v2/YEARN-VAULT-A.ts +3 -0
- package/src/abi/connectors/v2/index.ts +87 -0
- package/src/abi/index.ts +7 -7
- package/src/abi/interopX.json +1436 -0
- package/src/alias.ts +6 -0
- package/src/api/index.ts +36 -0
- package/src/config/index.ts +11 -1
- package/src/constants/addresses.ts +5 -16
- package/src/constants/blockConfirmations.ts +5 -0
- package/src/constants/index.ts +1 -0
- package/src/constants/tokens.ts +63 -40
- package/src/db/models/transaction.ts +136 -59
- package/src/db/sequelize.ts +1 -1
- package/src/gnosis/actions/aaveV2/index.ts +9 -0
- package/src/gnosis/actions/aaveV2/source.ts +118 -0
- package/src/gnosis/actions/aaveV2/target.ts +132 -0
- package/src/gnosis/actions/index.ts +5 -0
- package/src/gnosis/index.ts +19 -0
- package/src/index.ts +101 -24
- package/src/net/peer/index.ts +9 -7
- package/src/net/pool/index.ts +41 -11
- package/src/net/protocol/dial/SignatureDialProtocol.ts +24 -13
- package/src/net/protocol/dial/TransactionStatusDialProtocol.ts +33 -0
- package/src/net/protocol/index.ts +67 -1
- package/src/tasks/AutoUpdateTask.ts +82 -0
- package/src/tasks/BaseTask.ts +14 -4
- package/src/tasks/InteropX/ProcessSubmitSubmitEvents.ts +269 -0
- package/src/tasks/InteropX/ProcessValidateEvents.ts +274 -0
- package/src/tasks/InteropX/SyncLogSubmitEvents.ts +139 -0
- package/src/tasks/InteropX/SyncLogValidateEvents.ts +152 -0
- package/src/tasks/Transactions/SyncTransactionStatusTask.ts +70 -0
- package/src/tasks/index.ts +29 -5
- package/src/typechain/InteropX.ts +1216 -0
- package/src/typechain/factories/InteropX__factory.ts +1932 -0
- package/src/typechain/factories/index.ts +1 -2
- package/src/typechain/index.ts +2 -4
- package/src/utils/index.ts +281 -45
- package/tsconfig.json +7 -2
- package/dist/abi/interopBridgeToken.json +0 -286
- package/dist/abi/interopXGateway.json +0 -184
- package/dist/constants/addresses.js +0 -28
- package/dist/index.js +0 -63
- package/dist/tasks/InteropXGateway/SyncDepositEvents.js +0 -79
- package/dist/tasks/index.js +0 -27
- package/dist/typechain/InteropXGateway.js +0 -2
- package/dist/typechain/factories/InteropBridgeToken__factory.js +0 -459
- package/dist/typechain/factories/InteropXGateway__factory.js +0 -265
- package/dist/typechain/factories/index.js +0 -14
- package/dist/utils/index.js +0 -101
- package/src/abi/interopBridgeToken.json +0 -286
- package/src/abi/interopXGateway.json +0 -184
- package/src/tasks/InteropXGateway/SyncDepositEvents.ts +0 -114
- package/src/typechain/InteropBridgeToken.ts +0 -686
- package/src/typechain/InteropXGateway.ts +0 -407
- package/src/typechain/factories/InteropBridgeToken__factory.ts +0 -466
- package/src/typechain/factories/InteropXGateway__factory.ts +0 -272
@@ -0,0 +1,139 @@
|
|
1
|
+
import { AbiItem } from 'web3-utils'
|
2
|
+
|
3
|
+
export const curve_y: AbiItem[] = [
|
4
|
+
{
|
5
|
+
inputs: [],
|
6
|
+
name: 'connectorID',
|
7
|
+
outputs: [
|
8
|
+
{
|
9
|
+
internalType: 'uint256',
|
10
|
+
name: 'model',
|
11
|
+
type: 'uint256',
|
12
|
+
},
|
13
|
+
{
|
14
|
+
internalType: 'uint256',
|
15
|
+
name: 'id',
|
16
|
+
type: 'uint256',
|
17
|
+
},
|
18
|
+
],
|
19
|
+
stateMutability: 'pure',
|
20
|
+
type: 'function',
|
21
|
+
},
|
22
|
+
{
|
23
|
+
inputs: [
|
24
|
+
{
|
25
|
+
internalType: 'address',
|
26
|
+
name: 'token',
|
27
|
+
type: 'address',
|
28
|
+
},
|
29
|
+
{
|
30
|
+
internalType: 'uint256',
|
31
|
+
name: 'amt',
|
32
|
+
type: 'uint256',
|
33
|
+
},
|
34
|
+
{
|
35
|
+
internalType: 'uint256',
|
36
|
+
name: 'unitAmt',
|
37
|
+
type: 'uint256',
|
38
|
+
},
|
39
|
+
{
|
40
|
+
internalType: 'uint256',
|
41
|
+
name: 'getId',
|
42
|
+
type: 'uint256',
|
43
|
+
},
|
44
|
+
{
|
45
|
+
internalType: 'uint256',
|
46
|
+
name: 'setId',
|
47
|
+
type: 'uint256',
|
48
|
+
},
|
49
|
+
],
|
50
|
+
name: 'deposit',
|
51
|
+
outputs: [],
|
52
|
+
stateMutability: 'payable',
|
53
|
+
type: 'function',
|
54
|
+
},
|
55
|
+
{
|
56
|
+
inputs: [],
|
57
|
+
name: 'name',
|
58
|
+
outputs: [
|
59
|
+
{
|
60
|
+
internalType: 'string',
|
61
|
+
name: '',
|
62
|
+
type: 'string',
|
63
|
+
},
|
64
|
+
],
|
65
|
+
stateMutability: 'view',
|
66
|
+
type: 'function',
|
67
|
+
},
|
68
|
+
{
|
69
|
+
inputs: [
|
70
|
+
{
|
71
|
+
internalType: 'address',
|
72
|
+
name: 'buyAddr',
|
73
|
+
type: 'address',
|
74
|
+
},
|
75
|
+
{
|
76
|
+
internalType: 'address',
|
77
|
+
name: 'sellAddr',
|
78
|
+
type: 'address',
|
79
|
+
},
|
80
|
+
{
|
81
|
+
internalType: 'uint256',
|
82
|
+
name: 'sellAmt',
|
83
|
+
type: 'uint256',
|
84
|
+
},
|
85
|
+
{
|
86
|
+
internalType: 'uint256',
|
87
|
+
name: 'unitAmt',
|
88
|
+
type: 'uint256',
|
89
|
+
},
|
90
|
+
{
|
91
|
+
internalType: 'uint256',
|
92
|
+
name: 'getId',
|
93
|
+
type: 'uint256',
|
94
|
+
},
|
95
|
+
{
|
96
|
+
internalType: 'uint256',
|
97
|
+
name: 'setId',
|
98
|
+
type: 'uint256',
|
99
|
+
},
|
100
|
+
],
|
101
|
+
name: 'sell',
|
102
|
+
outputs: [],
|
103
|
+
stateMutability: 'payable',
|
104
|
+
type: 'function',
|
105
|
+
},
|
106
|
+
{
|
107
|
+
inputs: [
|
108
|
+
{
|
109
|
+
internalType: 'address',
|
110
|
+
name: 'token',
|
111
|
+
type: 'address',
|
112
|
+
},
|
113
|
+
{
|
114
|
+
internalType: 'uint256',
|
115
|
+
name: 'amt',
|
116
|
+
type: 'uint256',
|
117
|
+
},
|
118
|
+
{
|
119
|
+
internalType: 'uint256',
|
120
|
+
name: 'unitAmt',
|
121
|
+
type: 'uint256',
|
122
|
+
},
|
123
|
+
{
|
124
|
+
internalType: 'uint256',
|
125
|
+
name: 'getId',
|
126
|
+
type: 'uint256',
|
127
|
+
},
|
128
|
+
{
|
129
|
+
internalType: 'uint256',
|
130
|
+
name: 'setId',
|
131
|
+
type: 'uint256',
|
132
|
+
},
|
133
|
+
],
|
134
|
+
name: 'withdraw',
|
135
|
+
outputs: [],
|
136
|
+
stateMutability: 'payable',
|
137
|
+
type: 'function',
|
138
|
+
},
|
139
|
+
]
|
@@ -0,0 +1,3 @@
|
|
1
|
+
import { AbiItem } from 'web3-utils'
|
2
|
+
|
3
|
+
export const dsa_migrate_v1_to_v2: AbiItem[] = [{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"currentDsa","type":"address"},{"indexed":true,"internalType":"address","name":"newData","type":"address"},{"indexed":false,"internalType":"address[]","name":"tokens","type":"address[]"},{"indexed":false,"internalType":"uint256[]","name":"makerVaults","type":"uint256[]"},{"indexed":false,"internalType":"string[]","name":"targets","type":"string[]"},{"indexed":false,"internalType":"bytes[]","name":"calldatas","type":"bytes[]"}],"name":"LogCreateAndMigrate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"currentDsa","type":"address"},{"indexed":true,"internalType":"address","name":"newData","type":"address"},{"indexed":false,"internalType":"address[]","name":"tokens","type":"address[]"},{"indexed":false,"internalType":"uint256[]","name":"makerVaults","type":"uint256[]"},{"indexed":false,"internalType":"string[]","name":"targets","type":"string[]"},{"indexed":false,"internalType":"bytes[]","name":"calldatas","type":"bytes[]"}],"name":"LogMigrate","type":"event"},{"inputs":[],"name":"connectorID","outputs":[{"internalType":"uint256","name":"model","type":"uint256"},{"internalType":"uint256","name":"id","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"components":[{"internalType":"address[]","name":"migrateTokens","type":"address[]"},{"internalType":"address[]","name":"allowanceTokens","type":"address[]"},{"internalType":"uint256[]","name":"allowances","type":"uint256[]"},{"internalType":"uint256[]","name":"makerVaults","type":"uint256[]"},{"internalType":"string[]","name":"targets","type":"string[]"},{"internalType":"bytes[]","name":"calldatas","type":"bytes[]"}],"internalType":"struct MigrateResolver.MigrationData","name":"data","type":"tuple"}],"name":"createAndMigrate","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newDsa","type":"address"},{"components":[{"internalType":"address[]","name":"migrateTokens","type":"address[]"},{"internalType":"address[]","name":"allowanceTokens","type":"address[]"},{"internalType":"uint256[]","name":"allowances","type":"uint256[]"},{"internalType":"uint256[]","name":"makerVaults","type":"uint256[]"},{"internalType":"string[]","name":"targets","type":"string[]"},{"internalType":"bytes[]","name":"calldatas","type":"bytes[]"}],"internalType":"struct MigrateResolver.MigrationData","name":"data","type":"tuple"}],"name":"migrate","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]
|
@@ -0,0 +1,147 @@
|
|
1
|
+
import { AbiItem } from 'web3-utils'
|
2
|
+
|
3
|
+
export const dydx: AbiItem[] = [
|
4
|
+
{
|
5
|
+
inputs: [
|
6
|
+
{
|
7
|
+
internalType: 'address',
|
8
|
+
name: 'token',
|
9
|
+
type: 'address',
|
10
|
+
},
|
11
|
+
{
|
12
|
+
internalType: 'uint256',
|
13
|
+
name: 'amt',
|
14
|
+
type: 'uint256',
|
15
|
+
},
|
16
|
+
{
|
17
|
+
internalType: 'uint256',
|
18
|
+
name: 'getId',
|
19
|
+
type: 'uint256',
|
20
|
+
},
|
21
|
+
{
|
22
|
+
internalType: 'uint256',
|
23
|
+
name: 'setId',
|
24
|
+
type: 'uint256',
|
25
|
+
},
|
26
|
+
],
|
27
|
+
name: 'borrow',
|
28
|
+
outputs: [],
|
29
|
+
stateMutability: 'payable',
|
30
|
+
type: 'function',
|
31
|
+
},
|
32
|
+
{
|
33
|
+
inputs: [],
|
34
|
+
name: 'connectorID',
|
35
|
+
outputs: [
|
36
|
+
{
|
37
|
+
internalType: 'uint256',
|
38
|
+
name: 'model',
|
39
|
+
type: 'uint256',
|
40
|
+
},
|
41
|
+
{
|
42
|
+
internalType: 'uint256',
|
43
|
+
name: 'id',
|
44
|
+
type: 'uint256',
|
45
|
+
},
|
46
|
+
],
|
47
|
+
stateMutability: 'pure',
|
48
|
+
type: 'function',
|
49
|
+
},
|
50
|
+
{
|
51
|
+
inputs: [
|
52
|
+
{
|
53
|
+
internalType: 'address',
|
54
|
+
name: 'token',
|
55
|
+
type: 'address',
|
56
|
+
},
|
57
|
+
{
|
58
|
+
internalType: 'uint256',
|
59
|
+
name: 'amt',
|
60
|
+
type: 'uint256',
|
61
|
+
},
|
62
|
+
{
|
63
|
+
internalType: 'uint256',
|
64
|
+
name: 'getId',
|
65
|
+
type: 'uint256',
|
66
|
+
},
|
67
|
+
{
|
68
|
+
internalType: 'uint256',
|
69
|
+
name: 'setId',
|
70
|
+
type: 'uint256',
|
71
|
+
},
|
72
|
+
],
|
73
|
+
name: 'deposit',
|
74
|
+
outputs: [],
|
75
|
+
stateMutability: 'payable',
|
76
|
+
type: 'function',
|
77
|
+
},
|
78
|
+
{
|
79
|
+
inputs: [],
|
80
|
+
name: 'name',
|
81
|
+
outputs: [
|
82
|
+
{
|
83
|
+
internalType: 'string',
|
84
|
+
name: '',
|
85
|
+
type: 'string',
|
86
|
+
},
|
87
|
+
],
|
88
|
+
stateMutability: 'view',
|
89
|
+
type: 'function',
|
90
|
+
},
|
91
|
+
{
|
92
|
+
inputs: [
|
93
|
+
{
|
94
|
+
internalType: 'address',
|
95
|
+
name: 'token',
|
96
|
+
type: 'address',
|
97
|
+
},
|
98
|
+
{
|
99
|
+
internalType: 'uint256',
|
100
|
+
name: 'amt',
|
101
|
+
type: 'uint256',
|
102
|
+
},
|
103
|
+
{
|
104
|
+
internalType: 'uint256',
|
105
|
+
name: 'getId',
|
106
|
+
type: 'uint256',
|
107
|
+
},
|
108
|
+
{
|
109
|
+
internalType: 'uint256',
|
110
|
+
name: 'setId',
|
111
|
+
type: 'uint256',
|
112
|
+
},
|
113
|
+
],
|
114
|
+
name: 'payback',
|
115
|
+
outputs: [],
|
116
|
+
stateMutability: 'payable',
|
117
|
+
type: 'function',
|
118
|
+
},
|
119
|
+
{
|
120
|
+
inputs: [
|
121
|
+
{
|
122
|
+
internalType: 'address',
|
123
|
+
name: 'token',
|
124
|
+
type: 'address',
|
125
|
+
},
|
126
|
+
{
|
127
|
+
internalType: 'uint256',
|
128
|
+
name: 'amt',
|
129
|
+
type: 'uint256',
|
130
|
+
},
|
131
|
+
{
|
132
|
+
internalType: 'uint256',
|
133
|
+
name: 'getId',
|
134
|
+
type: 'uint256',
|
135
|
+
},
|
136
|
+
{
|
137
|
+
internalType: 'uint256',
|
138
|
+
name: 'setId',
|
139
|
+
type: 'uint256',
|
140
|
+
},
|
141
|
+
],
|
142
|
+
name: 'withdraw',
|
143
|
+
outputs: [],
|
144
|
+
stateMutability: 'payable',
|
145
|
+
type: 'function',
|
146
|
+
},
|
147
|
+
]
|
@@ -0,0 +1,51 @@
|
|
1
|
+
import { AbiItem } from 'web3-utils'
|
2
|
+
|
3
|
+
export const dydx_flash: AbiItem[] = [
|
4
|
+
{
|
5
|
+
anonymous: false,
|
6
|
+
inputs: [
|
7
|
+
{
|
8
|
+
indexed: true,
|
9
|
+
internalType: 'address',
|
10
|
+
name: 'token',
|
11
|
+
type: 'address',
|
12
|
+
},
|
13
|
+
{
|
14
|
+
indexed: false,
|
15
|
+
internalType: 'uint256',
|
16
|
+
name: 'tokenAmt',
|
17
|
+
type: 'uint256',
|
18
|
+
},
|
19
|
+
],
|
20
|
+
name: 'LogDydxFlashLoan',
|
21
|
+
type: 'event',
|
22
|
+
},
|
23
|
+
{
|
24
|
+
inputs: [
|
25
|
+
{ internalType: 'address', name: 'token', type: 'address' },
|
26
|
+
{ internalType: 'uint256', name: 'tokenAmt', type: 'uint256' },
|
27
|
+
{ internalType: 'bytes', name: 'data', type: 'bytes' },
|
28
|
+
],
|
29
|
+
name: 'borrowAndCast',
|
30
|
+
outputs: [],
|
31
|
+
stateMutability: 'payable',
|
32
|
+
type: 'function',
|
33
|
+
},
|
34
|
+
{
|
35
|
+
inputs: [],
|
36
|
+
name: 'connectorID',
|
37
|
+
outputs: [
|
38
|
+
{ internalType: 'uint256', name: 'model', type: 'uint256' },
|
39
|
+
{ internalType: 'uint256', name: 'id', type: 'uint256' },
|
40
|
+
],
|
41
|
+
stateMutability: 'view',
|
42
|
+
type: 'function',
|
43
|
+
},
|
44
|
+
{
|
45
|
+
inputs: [],
|
46
|
+
name: 'name',
|
47
|
+
outputs: [{ internalType: 'string', name: '', type: 'string' }],
|
48
|
+
stateMutability: 'view',
|
49
|
+
type: 'function',
|
50
|
+
},
|
51
|
+
]
|
@@ -0,0 +1,49 @@
|
|
1
|
+
import { AbiItem } from 'web3-utils';
|
2
|
+
|
3
|
+
export const fee: AbiItem[] = [
|
4
|
+
{
|
5
|
+
inputs: [
|
6
|
+
{ internalType: 'uint256', name: 'amount', type: 'uint256' },
|
7
|
+
{ internalType: 'uint256', name: 'fee', type: 'uint256' },
|
8
|
+
{ internalType: 'uint256', name: 'getId', type: 'uint256' },
|
9
|
+
{ internalType: 'uint256', name: 'setIdAmtMinusFee', type: 'uint256' },
|
10
|
+
{ internalType: 'uint256', name: 'setIdFee', type: 'uint256' },
|
11
|
+
],
|
12
|
+
name: 'calculateAmtMinusFee',
|
13
|
+
outputs: [],
|
14
|
+
stateMutability: 'payable',
|
15
|
+
type: 'function',
|
16
|
+
},
|
17
|
+
{
|
18
|
+
inputs: [
|
19
|
+
{ internalType: 'uint256', name: 'amount', type: 'uint256' },
|
20
|
+
{ internalType: 'uint256', name: 'fee', type: 'uint256' },
|
21
|
+
{ internalType: 'uint256', name: 'getId', type: 'uint256' },
|
22
|
+
{ internalType: 'uint256', name: 'setId', type: 'uint256' },
|
23
|
+
{ internalType: 'uint256', name: 'setIdFee', type: 'uint256' },
|
24
|
+
],
|
25
|
+
name: 'calculateFee',
|
26
|
+
outputs: [],
|
27
|
+
stateMutability: 'payable',
|
28
|
+
type: 'function',
|
29
|
+
},
|
30
|
+
{
|
31
|
+
name: 'connectorID',
|
32
|
+
inputs: [],
|
33
|
+
type: 'function',
|
34
|
+
stateMutability: 'pure',
|
35
|
+
outputs: [
|
36
|
+
{ internalType: 'uint256', name: '_type', type: 'uint256' },
|
37
|
+
{ internalType: 'uint256', name: '_id', type: 'uint256' },
|
38
|
+
],
|
39
|
+
},
|
40
|
+
{
|
41
|
+
name: 'name',
|
42
|
+
inputs: [],
|
43
|
+
type: 'function',
|
44
|
+
stateMutability: 'view',
|
45
|
+
outputs: [
|
46
|
+
{ internalType: 'string', name: '', type: 'string' },
|
47
|
+
],
|
48
|
+
},
|
49
|
+
];
|