added instapool-c abis

This commit is contained in:
pradyuman-verma 2022-03-24 01:12:02 +05:30
parent 6a5784d067
commit c07b4676f5
No known key found for this signature in database
GPG Key ID: E36FD6BC8923221F
2 changed files with 118 additions and 3 deletions

View File

@ -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"
}
]

View File

@ -1,15 +1,16 @@
export const abis: Record<string, any> = { export const abis: Record<string, any> = {
core: { core: {
connectorsV2: require("./abi/core/connectorsV2.json"), connectorsV2: require("./abi/core/connectorsV2.json"),
instaIndex: require("./abi/core/instaIndex.json"), instaIndex: require("./abi/core/instaIndex.json")
}, },
connectors: { connectors: {
"Basic-v1": require("./abi/connectors/basic.json"), "Basic-v1": require("./abi/connectors/basic.json"),
basic: require("./abi/connectors/basic.json"), basic: require("./abi/connectors/basic.json"),
auth: require("./abi/connectors/auth.json"), auth: require("./abi/connectors/auth.json"),
"INSTAPOOL-A": require("./abi/connectors/instapool.json"), "INSTAPOOL-A": require("./abi/connectors/instapool.json"),
"INSTAPOOL-C": require("./abi/connectors/instapool-c.json")
}, },
basic: { basic: {
erc20: require("./abi/basics/erc20.json"), erc20: require("./abi/basics/erc20.json")
}, }
}; };