From c07b4676f5c3d1500b160abe8e049bf68123c2ed Mon Sep 17 00:00:00 2001 From: pradyuman-verma Date: Thu, 24 Mar 2022 01:12:02 +0530 Subject: [PATCH] added instapool-c abis --- .../constant/abi/connectors/instapool-c.json | 114 ++++++++++++++++++ scripts/constant/abis.ts | 7 +- 2 files changed, 118 insertions(+), 3 deletions(-) create mode 100644 scripts/constant/abi/connectors/instapool-c.json diff --git a/scripts/constant/abi/connectors/instapool-c.json b/scripts/constant/abi/connectors/instapool-c.json new file mode 100644 index 00000000..8102f825 --- /dev/null +++ b/scripts/constant/abi/connectors/instapool-c.json @@ -0,0 +1,114 @@ +[ + { + "anonymous": false, + "inputs": [ + { "indexed": false, "internalType": "address", "name": "token", "type": "address" }, + { "indexed": false, "internalType": "uint256", "name": "tokenAmt", "type": "uint256" } + ], + "name": "LogFlashBorrow", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { "indexed": false, "internalType": "address[]", "name": "token", "type": "address[]" }, + { "indexed": false, "internalType": "uint256[]", "name": "tokenAmts", "type": "uint256[]" } + ], + "name": "LogFlashMultiBorrow", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { "indexed": false, "internalType": "address[]", "name": "token", "type": "address[]" }, + { "indexed": false, "internalType": "uint256[]", "name": "tokenAmts", "type": "uint256[]" } + ], + "name": "LogFlashMultiPayback", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { "indexed": false, "internalType": "address", "name": "token", "type": "address" }, + { "indexed": false, "internalType": "uint256", "name": "tokenAmt", "type": "uint256" } + ], + "name": "LogFlashPayback", + "type": "event" + }, + { + "inputs": [ + { "internalType": "address", "name": "token", "type": "address" }, + { "internalType": "uint256", "name": "amt", "type": "uint256" }, + { "internalType": "uint256", "name": "route", "type": "uint256" }, + { "internalType": "bytes", "name": "data", "type": "bytes" }, + { "internalType": "bytes", "name": "extraData", "type": "bytes" } + ], + "name": "flashBorrowAndCast", + "outputs": [ + { "internalType": "string", "name": "_eventName", "type": "string" }, + { "internalType": "bytes", "name": "_eventParam", "type": "bytes" } + ], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { "internalType": "address[]", "name": "tokens_", "type": "address[]" }, + { "internalType": "uint256[]", "name": "amts_", "type": "uint256[]" }, + { "internalType": "uint256", "name": "route", "type": "uint256" }, + { "internalType": "bytes", "name": "data", "type": "bytes" }, + { "internalType": "bytes", "name": "extraData", "type": "bytes" } + ], + "name": "flashMultiBorrowAndCast", + "outputs": [ + { "internalType": "string", "name": "_eventName", "type": "string" }, + { "internalType": "bytes", "name": "_eventParam", "type": "bytes" } + ], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { "internalType": "address[]", "name": "tokens_", "type": "address[]" }, + { "internalType": "uint256[]", "name": "amts_", "type": "uint256[]" }, + { "internalType": "uint256[]", "name": "getIds", "type": "uint256[]" }, + { "internalType": "uint256[]", "name": "setIds", "type": "uint256[]" } + ], + "name": "flashMultiPayback", + "outputs": [ + { "internalType": "string", "name": "_eventName", "type": "string" }, + { "internalType": "bytes", "name": "_eventParam", "type": "bytes" } + ], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { "internalType": "address", "name": "token", "type": "address" }, + { "internalType": "uint256", "name": "amt", "type": "uint256" }, + { "internalType": "uint256", "name": "getId", "type": "uint256" }, + { "internalType": "uint256", "name": "setId", "type": "uint256" } + ], + "name": "flashPayback", + "outputs": [ + { "internalType": "string", "name": "_eventName", "type": "string" }, + { "internalType": "bytes", "name": "_eventParam", "type": "bytes" } + ], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [], + "name": "instaPool", + "outputs": [{ "internalType": "contract InstaFlashV4Interface", "name": "", "type": "address" }], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "name", + "outputs": [{ "internalType": "string", "name": "", "type": "string" }], + "stateMutability": "view", + "type": "function" + } +] diff --git a/scripts/constant/abis.ts b/scripts/constant/abis.ts index 43097ba5..c2a70702 100644 --- a/scripts/constant/abis.ts +++ b/scripts/constant/abis.ts @@ -1,15 +1,16 @@ export const abis: Record = { core: { connectorsV2: require("./abi/core/connectorsV2.json"), - instaIndex: require("./abi/core/instaIndex.json"), + instaIndex: require("./abi/core/instaIndex.json") }, connectors: { "Basic-v1": require("./abi/connectors/basic.json"), basic: require("./abi/connectors/basic.json"), auth: require("./abi/connectors/auth.json"), "INSTAPOOL-A": require("./abi/connectors/instapool.json"), + "INSTAPOOL-C": require("./abi/connectors/instapool-c.json") }, basic: { - erc20: require("./abi/basics/erc20.json"), - }, + erc20: require("./abi/basics/erc20.json") + } };