214 lines
5.0 KiB
JSON
214 lines
5.0 KiB
JSON
{
|
|
"_format": "hh-sol-artifact-1",
|
|
"contractName": "IBalancerVault",
|
|
"sourceName": "contracts/bridge/trustless/interfaces/IBalancerVault.sol",
|
|
"abi": [
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "bytes32",
|
|
"name": "poolId",
|
|
"type": "bytes32"
|
|
}
|
|
],
|
|
"name": "getPool",
|
|
"outputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "poolAddress",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint8",
|
|
"name": "specialization",
|
|
"type": "uint8"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "bytes32",
|
|
"name": "poolId",
|
|
"type": "bytes32"
|
|
}
|
|
],
|
|
"name": "getPoolTokens",
|
|
"outputs": [
|
|
{
|
|
"internalType": "address[]",
|
|
"name": "tokens",
|
|
"type": "address[]"
|
|
},
|
|
{
|
|
"internalType": "uint256[]",
|
|
"name": "balances",
|
|
"type": "uint256[]"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "lastChangeBlock",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "enum IBalancerVault.SwapKind",
|
|
"name": "kind",
|
|
"type": "uint8"
|
|
},
|
|
{
|
|
"components": [
|
|
{
|
|
"internalType": "bytes32",
|
|
"name": "poolId",
|
|
"type": "bytes32"
|
|
},
|
|
{
|
|
"internalType": "enum IBalancerVault.SwapKind",
|
|
"name": "kind",
|
|
"type": "uint8"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "assetIn",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "assetOut",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amount",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "bytes",
|
|
"name": "userData",
|
|
"type": "bytes"
|
|
}
|
|
],
|
|
"internalType": "struct IBalancerVault.SingleSwap[]",
|
|
"name": "swaps",
|
|
"type": "tuple[]"
|
|
},
|
|
{
|
|
"internalType": "address[]",
|
|
"name": "assets",
|
|
"type": "address[]"
|
|
}
|
|
],
|
|
"name": "queryBatchSwap",
|
|
"outputs": [
|
|
{
|
|
"internalType": "int256[]",
|
|
"name": "assetDeltas",
|
|
"type": "int256[]"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"components": [
|
|
{
|
|
"internalType": "bytes32",
|
|
"name": "poolId",
|
|
"type": "bytes32"
|
|
},
|
|
{
|
|
"internalType": "enum IBalancerVault.SwapKind",
|
|
"name": "kind",
|
|
"type": "uint8"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "assetIn",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "assetOut",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amount",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "bytes",
|
|
"name": "userData",
|
|
"type": "bytes"
|
|
}
|
|
],
|
|
"internalType": "struct IBalancerVault.SingleSwap",
|
|
"name": "singleSwap",
|
|
"type": "tuple"
|
|
},
|
|
{
|
|
"components": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "sender",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "bool",
|
|
"name": "fromInternalBalance",
|
|
"type": "bool"
|
|
},
|
|
{
|
|
"internalType": "address payable",
|
|
"name": "recipient",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "bool",
|
|
"name": "toInternalBalance",
|
|
"type": "bool"
|
|
}
|
|
],
|
|
"internalType": "struct IBalancerVault.FundManagement",
|
|
"name": "funds",
|
|
"type": "tuple"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "limit",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "deadline",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "swap",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amountCalculated",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "payable",
|
|
"type": "function"
|
|
}
|
|
],
|
|
"bytecode": "0x",
|
|
"deployedBytecode": "0x",
|
|
"linkReferences": {},
|
|
"deployedLinkReferences": {}
|
|
}
|