diff --git a/package-lock.json b/package-lock.json index ccaa0c72..0186d7b0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,11 +1,12 @@ { "name": "dsa-connect", - "version": "0.2.5", + "version": "0.2.6", "lockfileVersion": 2, "requires": true, "packages": { "": { - "version": "0.2.5", + "name": "dsa-connect", + "version": "0.2.6", "license": "MIT", "devDependencies": { "@babel/cli": "^7.10.1", diff --git a/package.json b/package.json index 8dd653ff..f10a8ece 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dsa-connect", - "version": "0.2.6", + "version": "0.2.7", "description": "DSA connect", "main": "dist/index.js", "module": "dist/index.es.js", diff --git a/src/abi/connectors/v2/INSTAPOOL-A.ts b/src/abi/connectors/v2/INSTAPOOL-A.ts new file mode 100644 index 00000000..da71477c --- /dev/null +++ b/src/abi/connectors/v2/INSTAPOOL-A.ts @@ -0,0 +1,3 @@ +import { AbiItem } from 'web3-utils' + +export const INSTAPOOL_A: AbiItem[] = [{"type":"event","name":"LogFlashBorrow","inputs":[{"type":"address","name":"token","internalType":"address","indexed":false},{"type":"uint256","name":"tokenAmt","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"LogFlashMultiBorrow","inputs":[{"type":"address[]","name":"token","internalType":"address[]","indexed":false},{"type":"uint256[]","name":"tokenAmts","internalType":"uint256[]","indexed":false}],"anonymous":false},{"type":"event","name":"LogFlashMultiPayback","inputs":[{"type":"address[]","name":"token","internalType":"address[]","indexed":false},{"type":"uint256[]","name":"tokenAmts","internalType":"uint256[]","indexed":false}],"anonymous":false},{"type":"event","name":"LogFlashPayback","inputs":[{"type":"address","name":"token","internalType":"address","indexed":false},{"type":"uint256","name":"tokenAmt","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"payable","outputs":[{"type":"string","name":"_eventName","internalType":"string"},{"type":"bytes","name":"_eventParam","internalType":"bytes"}],"name":"flashBorrowAndCast","inputs":[{"type":"address","name":"token","internalType":"address"},{"type":"uint256","name":"amt","internalType":"uint256"},{"type":"uint256","name":"route","internalType":"uint256"},{"type":"bytes","name":"data","internalType":"bytes"}]},{"type":"function","stateMutability":"payable","outputs":[{"type":"string","name":"_eventName","internalType":"string"},{"type":"bytes","name":"_eventParam","internalType":"bytes"}],"name":"flashMultiBorrowAndCast","inputs":[{"type":"address[]","name":"tokens","internalType":"address[]"},{"type":"uint256[]","name":"amts","internalType":"uint256[]"},{"type":"uint256","name":"route","internalType":"uint256"},{"type":"bytes","name":"data","internalType":"bytes"}]},{"type":"function","stateMutability":"payable","outputs":[{"type":"string","name":"_eventName","internalType":"string"},{"type":"bytes","name":"_eventParam","internalType":"bytes"}],"name":"flashMultiPayback","inputs":[{"type":"address[]","name":"tokens","internalType":"address[]"},{"type":"uint256[]","name":"amts","internalType":"uint256[]"},{"type":"uint256[]","name":"getId","internalType":"uint256[]"},{"type":"uint256[]","name":"setId","internalType":"uint256[]"}]},{"type":"function","stateMutability":"payable","outputs":[{"type":"string","name":"_eventName","internalType":"string"},{"type":"bytes","name":"_eventParam","internalType":"bytes"}],"name":"flashPayback","inputs":[{"type":"address","name":"token","internalType":"address"},{"type":"uint256","name":"amt","internalType":"uint256"},{"type":"uint256","name":"getId","internalType":"uint256"},{"type":"uint256","name":"setId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract InstaFlashV2Interface"}],"name":"instaPool","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"name","inputs":[]}] \ No newline at end of file diff --git a/src/abi/connectors/v2/index.ts b/src/abi/connectors/v2/index.ts index 5daa02e7..59147c18 100644 --- a/src/abi/connectors/v2/index.ts +++ b/src/abi/connectors/v2/index.ts @@ -13,9 +13,9 @@ import {UNISWAP_A} from './UNISWAP-A' import {AAVE_V1_IMPORT_A} from './AAVE-V1-IMPORT-A' import {AAVE_V2_IMPORT_A} from './AAVE-V2-IMPORT-A' import {COMPOUND_IMPORT_A} from './COMPOUND-IMPORT-A' - - +import {INSTAPOOL_A} from './INSTAPOOL-A' export const connectorsV2_M1 = { + "INSTAPOOL-A": INSTAPOOL_A, "COMPOUND-IMPORT-A": COMPOUND_IMPORT_A, "AAVE-V2-IMPORT-A": AAVE_V2_IMPORT_A, "AAVE-V1-IMPORT-A": AAVE_V1_IMPORT_A, diff --git a/src/addresses/polygon/connectorsV2_M1.ts b/src/addresses/polygon/connectorsV2_M1.ts index bc5d1094..0d0b698f 100644 --- a/src/addresses/polygon/connectorsV2_M1.ts +++ b/src/addresses/polygon/connectorsV2_M1.ts @@ -2,5 +2,6 @@ export const connectorsV2_M1 = { "AAVE-V2-A": "0xE84d8010Afc3663919F44685cB53ED88866da3eE", "AUTHORITY-A": "0xf6474aD0dA75A0dE15D2c915e601D9f754B9e6fe", "BASIC-A": "0x1cAF5EC802ca602E98139AD96A8f2B7BC524264E", - "AAVE-CLAIM-A": "0xC7Cb1dE2721BFC0E0DA1b9D526bCdC54eF1C0eFC" - } \ No newline at end of file + "AAVE-CLAIM-A": "0xC7Cb1dE2721BFC0E0DA1b9D526bCdC54eF1C0eFC", + "INSTAPOOL-A": "0x8f1e38c53af7bD2b2bE01b9580911b7Cca504F1b" +} \ No newline at end of file diff --git a/src/data/connectorsV2_M1_mapping.ts b/src/data/connectorsV2_M1_mapping.ts index 774fc543..f1296a94 100644 --- a/src/data/connectorsV2_M1_mapping.ts +++ b/src/data/connectorsV2_M1_mapping.ts @@ -14,4 +14,5 @@ export default { "aave_v1_import": "AAVE-V1-IMPORT-A", "aave_v2_import": "AAVE-V1-IMPORT-A", "compoundImport_v2": "COMPOUND-IMPORT-A", + "instapool_v2": "INSTAPOOL-A", }