ocean-subgraph/abis/BPool.json

1744 lines
131 KiB
JSON
Raw Normal View History

2021-11-12 14:22:35 +01:00
{
2021-11-19 15:42:17 +01:00
"_format": "hh-sol-artifact-1",
"contractName": "BPool",
"sourceName": "contracts/pools/balancer/BPool.sol",
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "src",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "dst",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amt",
"type": "uint256"
}
],
"name": "Approval",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "bptAmount",
"type": "uint256"
}
],
"name": "LOG_BPT",
"type": "event"
},
2021-11-24 15:00:24 +01:00
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "bptAmount",
"type": "uint256"
}
],
"name": "LOG_BPT_SS",
"type": "event"
},
2021-11-19 15:42:17 +01:00
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "bytes4",
"name": "sig",
"type": "bytes4"
},
{
"indexed": true,
"internalType": "address",
"name": "caller",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "timestamp",
"type": "uint256"
},
{
"indexed": false,
"internalType": "bytes",
"name": "data",
"type": "bytes"
}
],
"name": "LOG_CALL",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "caller",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "tokenOut",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "tokenAmountOut",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "timestamp",
"type": "uint256"
}
],
"name": "LOG_EXIT",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "caller",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "tokenIn",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "tokenAmountIn",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "timestamp",
"type": "uint256"
}
],
"name": "LOG_JOIN",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "caller",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "baseToken",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "baseTokenAmountIn",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "baseTokenWeight",
"type": "uint256"
},
{
"indexed": true,
"internalType": "address",
"name": "dataToken",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "dataTokenAmountIn",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "dataTokenWeight",
"type": "uint256"
}
],
"name": "LOG_SETUP",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "caller",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "tokenIn",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "tokenOut",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "tokenAmountIn",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "tokenAmountOut",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "timestamp",
"type": "uint256"
}
],
"name": "LOG_SWAP",
"type": "event"
},
2021-11-24 15:00:24 +01:00
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "caller",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "newMarketCollector",
"type": "address"
}
],
"name": "MarketCollectorChanged",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "to",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "token",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "MarketFees",
"type": "event"
},
2021-11-24 15:00:24 +01:00
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "caller",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "OPFWallet",
2021-11-24 15:00:24 +01:00
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "token",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "OPFFee",
2021-11-24 15:00:24 +01:00
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "caller",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "marketAddress",
2021-11-24 15:00:24 +01:00
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "token",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "PublishMarketFee",
2021-11-24 15:00:24 +01:00
"type": "event"
},
2021-11-19 15:42:17 +01:00
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "swapFeeAmount",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "oceanFeeAmount",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "marketFeeAmount",
"type": "uint256"
},
{
"indexed": false,
"internalType": "address",
"name": "tokenFees",
"type": "address"
}
],
"name": "SWAP_FEES",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "caller",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "SwapFeeChanged",
"type": "event"
},
2021-11-19 15:42:17 +01:00
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "src",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "dst",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amt",
"type": "uint256"
}
],
"name": "Transfer",
"type": "event"
},
{
"inputs": [],
"name": "BONE",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "BPOW_PRECISION",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "EXIT_FEE",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "INIT_POOL_SUPPLY",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "MAX_BOUND_TOKENS",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "MAX_BPOW_BASE",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "MAX_FEE",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "MAX_IN_RATIO",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "MAX_OUT_RATIO",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "MAX_TOTAL_WEIGHT",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "MAX_WEIGHT",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "MIN_BALANCE",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "MIN_BOUND_TOKENS",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "MIN_BPOW_BASE",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "MIN_FEE",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "MIN_WEIGHT",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "_opfCollector",
2021-11-19 15:42:17 +01:00
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "_publishMarketCollector",
2021-11-19 15:42:17 +01:00
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "_swapPublishMarketFee",
2021-11-19 15:42:17 +01:00
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "src",
"type": "address"
},
{
"internalType": "address",
"name": "dst",
"type": "address"
}
],
"name": "allowance",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "dst",
"type": "address"
},
{
"internalType": "uint256",
"name": "amt",
"type": "uint256"
}
],
"name": "approve",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "whom",
"type": "address"
}
],
"name": "balanceOf",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "tokenOut",
"type": "address"
},
{
"internalType": "uint256",
"name": "tokenAmountOut",
"type": "uint256"
}
],
"name": "calcPoolInSingleOut",
"outputs": [
{
"internalType": "uint256",
"name": "poolAmountIn",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "tokenIn",
"type": "address"
},
{
"internalType": "uint256",
"name": "tokenAmountIn",
"type": "uint256"
}
],
"name": "calcPoolOutSingleIn",
"outputs": [
{
"internalType": "uint256",
"name": "poolAmountOut",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "tokenIn",
"type": "address"
},
{
"internalType": "uint256",
"name": "poolAmountOut",
"type": "uint256"
}
],
"name": "calcSingleInPoolOut",
"outputs": [
{
"internalType": "uint256",
"name": "tokenAmountIn",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "tokenOut",
"type": "address"
},
{
"internalType": "uint256",
"name": "poolAmountIn",
"type": "uint256"
}
],
"name": "calcSingleOutPoolIn",
"outputs": [
{
"internalType": "uint256",
"name": "tokenAmountOut",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
2021-11-24 15:00:24 +01:00
"inputs": [],
2021-11-19 15:42:17 +01:00
"name": "collectMarketFee",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "collectOPF",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "communityFees",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "decimals",
"outputs": [
{
"internalType": "uint8",
"name": "",
"type": "uint8"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "dst",
"type": "address"
},
{
"internalType": "uint256",
"name": "amt",
"type": "uint256"
}
],
"name": "decreaseApproval",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "poolAmountIn",
"type": "uint256"
},
{
"internalType": "uint256[]",
"name": "minAmountsOut",
"type": "uint256[]"
}
],
"name": "exitPool",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "tokenOut",
"type": "address"
},
{
"internalType": "uint256",
"name": "tokenAmountOut",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "maxPoolAmountIn",
"type": "uint256"
}
],
"name": "exitswapExternAmountOut",
"outputs": [
{
"internalType": "uint256",
"name": "poolAmountIn",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "tokenOut",
"type": "address"
},
{
"internalType": "uint256",
"name": "poolAmountIn",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "minAmountOut",
"type": "uint256"
}
],
"name": "exitswapPoolAmountIn",
"outputs": [
{
"internalType": "uint256",
"name": "tokenAmountOut",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "tokenIn",
"type": "address"
},
{
"internalType": "address",
"name": "tokenOut",
"type": "address"
},
{
"internalType": "uint256",
"name": "tokenAmountOut",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_swapMarketFee",
"type": "uint256"
2021-11-19 15:42:17 +01:00
}
],
"name": "getAmountInExactOut",
"outputs": [
{
"internalType": "uint256",
"name": "tokenAmountIn",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "tokenIn",
"type": "address"
},
{
"internalType": "address",
"name": "tokenOut",
"type": "address"
},
{
"internalType": "uint256",
"name": "tokenAmountIn",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_swapMarketFee",
"type": "uint256"
2021-11-19 15:42:17 +01:00
}
],
"name": "getAmountOutExactIn",
"outputs": [
{
"internalType": "uint256",
"name": "tokenAmountOut",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "token",
"type": "address"
}
],
"name": "getBalance",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getBaseTokenAddress",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getController",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
2021-11-24 15:00:24 +01:00
{
"inputs": [],
"name": "getCurrentMarketFees",
"outputs": [
{
"internalType": "address[]",
"name": "",
"type": "address[]"
},
{
"internalType": "uint256[]",
"name": "",
"type": "uint256[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getCurrentOPFFees",
"outputs": [
{
"internalType": "address[]",
"name": "",
"type": "address[]"
},
{
"internalType": "uint256[]",
"name": "",
"type": "uint256[]"
}
],
"stateMutability": "view",
"type": "function"
},
2021-11-19 15:42:17 +01:00
{
"inputs": [],
"name": "getCurrentTokens",
"outputs": [
{
"internalType": "address[]",
"name": "tokens",
"type": "address[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getDataTokenAddress",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "token",
"type": "address"
}
],
"name": "getDenormalizedWeight",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getFinalTokens",
"outputs": [
{
"internalType": "address[]",
"name": "tokens",
"type": "address[]"
}
],
"stateMutability": "view",
"type": "function"
},
2021-11-24 15:00:24 +01:00
{
"inputs": [],
"name": "getMarketFee",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
2021-11-19 15:42:17 +01:00
{
"inputs": [
{
"internalType": "address",
"name": "token",
"type": "address"
}
],
"name": "getNormalizedWeight",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getNumTokens",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getOPFFee",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "tokenIn",
"type": "address"
},
{
"internalType": "address",
"name": "tokenOut",
"type": "address"
},
{
"internalType": "uint256",
"name": "_swapMarketFee",
"type": "uint256"
2021-11-19 15:42:17 +01:00
}
],
"name": "getSpotPrice",
"outputs": [
{
"internalType": "uint256",
"name": "spotPrice",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getSwapFee",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getTotalDenormalizedWeight",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "dst",
"type": "address"
},
{
"internalType": "uint256",
"name": "amt",
"type": "uint256"
}
],
"name": "increaseApproval",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "controller",
"type": "address"
},
{
"internalType": "address",
"name": "factory",
"type": "address"
},
{
"internalType": "uint256[]",
"name": "swapFees",
"type": "uint256[]"
},
{
"internalType": "bool",
"name": "publicSwap",
"type": "bool"
},
{
"internalType": "bool",
"name": "finalized",
"type": "bool"
},
{
"internalType": "address[2]",
"name": "tokens",
"type": "address[2]"
},
{
"internalType": "address[2]",
"name": "feeCollectors",
"type": "address[2]"
}
],
"name": "initialize",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "t",
"type": "address"
}
],
"name": "isBound",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "isFinalized",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "isInitialized",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "isPublicSwap",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "poolAmountOut",
"type": "uint256"
},
{
"internalType": "uint256[]",
"name": "maxAmountsIn",
"type": "uint256[]"
}
],
"name": "joinPool",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "tokenIn",
"type": "address"
},
{
"internalType": "uint256",
"name": "tokenAmountIn",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "minPoolAmountOut",
"type": "uint256"
}
],
"name": "joinswapExternAmountIn",
"outputs": [
{
"internalType": "uint256",
"name": "poolAmountOut",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "tokenIn",
"type": "address"
},
{
"internalType": "uint256",
"name": "poolAmountOut",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "maxAmountIn",
"type": "uint256"
}
],
"name": "joinswapPoolAmountOut",
"outputs": [
{
"internalType": "uint256",
"name": "tokenAmountIn",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "name",
2021-11-19 15:42:17 +01:00
"outputs": [
{
"internalType": "string",
2021-11-19 15:42:17 +01:00
"name": "",
"type": "string"
2021-11-19 15:42:17 +01:00
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "publishMarketFees",
2021-11-19 15:42:17 +01:00
"outputs": [
{
"internalType": "uint256",
2021-11-19 15:42:17 +01:00
"name": "",
"type": "uint256"
2021-11-19 15:42:17 +01:00
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "swapFee",
"type": "uint256"
}
],
"name": "setSwapFee",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "dataTokenAddress",
"type": "address"
},
{
"internalType": "uint256",
"name": "dataTokenAmount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "dataTokenWeight",
"type": "uint256"
},
{
"internalType": "address",
"name": "baseTokenAddress",
"type": "address"
},
{
"internalType": "uint256",
"name": "baseTokenAmount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "baseTokenWeight",
"type": "uint256"
}
],
"name": "setup",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address[3]",
"name": "tokenInOutMarket",
"type": "address[3]"
2021-11-19 15:42:17 +01:00
},
{
"internalType": "uint256[4]",
"name": "amountsInOutMaxFee",
"type": "uint256[4]"
2021-11-19 15:42:17 +01:00
}
],
"name": "swapExactAmountIn",
"outputs": [
{
"internalType": "uint256",
"name": "tokenAmountOut",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "spotPriceAfter",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address[3]",
"name": "tokenInOutMarket",
"type": "address[3]"
2021-11-19 15:42:17 +01:00
},
{
"internalType": "uint256[4]",
"name": "amountsInOutMaxFee",
"type": "uint256[4]"
2021-11-19 15:42:17 +01:00
}
],
"name": "swapExactAmountOut",
"outputs": [
{
"internalType": "uint256",
"name": "tokenAmountIn",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "spotPriceAfter",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "symbol",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "totalSupply",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "dst",
"type": "address"
},
{
"internalType": "uint256",
"name": "amt",
"type": "uint256"
}
],
"name": "transfer",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "src",
"type": "address"
},
{
"internalType": "address",
"name": "dst",
"type": "address"
},
{
"internalType": "uint256",
"name": "amt",
"type": "uint256"
}
],
"name": "transferFrom",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_newCollector",
"type": "address"
}
],
"name": "updateMarketFeeCollector",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"bytecode": "0x60c0604052601360808190527f42616c616e63657220506f6f6c20546f6b656e0000000000000000000000000060a09081526200004091600a91906200008f565b506040805180820190915260038082526210941560ea1b60209092019182526200006d91600b916200008f565b50600c805460ff191660121790553480156200008857600080fd5b5062000172565b8280546200009d9062000135565b90600052602060002090601f016020900481019282620000c157600085556200010c565b82601f10620000dc57805160ff19168380011785556200010c565b828001600101855582156200010c579182015b828111156200010c578251825591602001919060010190620000ef565b506200011a9291506200011e565b5090565b5b808211156200011a57600081556001016200011f565b600181811c908216806200014a57607f821691505b602082108114156200016c57634e487b7160e01b600052602260045260246000fd5b50919050565b615ea280620001826000396000f3fe608060405234801561001057600080fd5b50600436106104285760003560e01c80638d4e40831161022b578063c44a428311610130578063dd62ed3e116100b8578063f1b8a9b711610087578063f1b8a9b7146108b1578063f68045a5146108c4578063f8b2cb4f146108cc578063fde924f7146108df578063ff9b1850146108f157600080fd5b8063dd62ed3e1461085d578063e4a28a52146104c3578063ec09302114610896578063f0f13f0b1461089e57600080fd5b8063caa01148116100ff578063caa011481461081f578063cc77828d14610832578063cd2ed8fb1461083a578063d4cadf6814610842578063d73dd6231461084a57600080fd5b8063c44a4283146107e6578063c6580d12146107fc578063c8ff183314610804578063c98a59cf1461080c57600080fd5b8063b0e0d136116101b3578063bc694ea211610182578063bc694ea21461078e578063be3bbd2e14610796578063c070a6d8146107ab578063c36596a6146104f0578063c421a3fc146107be57600080fd5b8063b0e0d13614610776578063b7b800a414610776578063ba019dab1461077e578063bc063e1a1461078657600080fd5b806395d89b41116101fa57806395d89b411461072d578063992e2a9214610735578063a3b3a16d1461073d578063a9059cbb14610750578063b02f0b731461076357600080fd5b80638d4e4083146106f8578063936c34771461070a5780639381cd2b14610712578063948d8ce61461071a57600080fd5b80633950b3fd116103315780636d06dfa0116102b957806376c7a3c71161028857806376c7a3c7146106b75780637a284be4146106bf5780637c5918b3146106c857806380ca7308146106e8578063867378c5146106f057600080fd5b80636d06dfa014610660578063700dd7e814610673578063703305181461067b57806370a082311461068e57600080fd5b80634f69c0d4116103005780634f69c0d41461060c5780635db342771461061f5780635e123add14610632578063638c9e951461063a578063661884631461064d57600080fd5b80633950b3fd146105c2578063430ed5d0146105d557806346ab38f1146105e85780634df947d0146105fb57600080fd5b8063218b5382116103b4578063300621921161038357806330062192146105515780633018205f14610571578063313ce5671461058857806334e199071461059d578063392e53cd146105b057600080fd5b8063218b5382146104f057806323b872dd146104ff5780632eebd6ae146105125780632f37b6241461052557600080fd5b8063095ea7b3116103fb578063095ea7b3146104a057806309a3bbe4146104c357806309ef3f5b146104cb57806318160ddd146104e0578063189d00ca146104e857600080fd5b806302c967481461042d57806304ad79541461045357806306fdde0314610478578063079492d41461048d575b600080fd5b61044061043b3660046156d1565b610904565b6040519081526020015b60405180910390f35b6003546001600160a01b03165b6040516001600160a01b03909116815260200161044a565b610480610d65565b60405161044a9190615730565b61044061049b366004615763565b610df7565b6104b36104ae36600461579f565b610e81565b604051901515815260200161044a565b610440610edc565b6104de6104d93660046157c9565b610ef2565b005b600954610440565b61044061112e565b610440670de0b6b3a764000081565b6104b361050d366004615763565b611145565b610440610520366004615821565b611299565b6104b3610533366004615863565b6001600160a01b031660009081526010602052604090205460ff1690565b61044061055f366004615863565b60056020526000908152604090205481565b600c546201000090046001600160a01b0316610460565b600c5460405160ff909116815260200161044a565b6104de6105ab36600461587e565b6112fa565b601254600160a01b900460ff166104b3565b6104406105d036600461579f565b611433565b6104406105e336600461579f565b61149b565b6104406105f63660046156d1565b6114fb565b6004546001600160a01b0316610460565b6104de61061a3660046158dc565b611901565b61044061062d3660046156d1565b611b28565b600054610440565b600d54610460906001600160a01b031681565b6104b361065b36600461579f565b611ee9565b61044061066e3660046156d1565b611fbf565b61
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106104285760003560e01c80638d4e40831161022b578063c44a428311610130578063dd62ed3e116100b8578063f1b8a9b711610087578063f1b8a9b7146108b1578063f68045a5146108c4578063f8b2cb4f146108cc578063fde924f7146108df578063ff9b1850146108f157600080fd5b8063dd62ed3e1461085d578063e4a28a52146104c3578063ec09302114610896578063f0f13f0b1461089e57600080fd5b8063caa01148116100ff578063caa011481461081f578063cc77828d14610832578063cd2ed8fb1461083a578063d4cadf6814610842578063d73dd6231461084a57600080fd5b8063c44a4283146107e6578063c6580d12146107fc578063c8ff183314610804578063c98a59cf1461080c57600080fd5b8063b0e0d136116101b3578063bc694ea211610182578063bc694ea21461078e578063be3bbd2e14610796578063c070a6d8146107ab578063c36596a6146104f0578063c421a3fc146107be57600080fd5b8063b0e0d13614610776578063b7b800a414610776578063ba019dab1461077e578063bc063e1a1461078657600080fd5b806395d89b41116101fa57806395d89b411461072d578063992e2a9214610735578063a3b3a16d1461073d578063a9059cbb14610750578063b02f0b731461076357600080fd5b80638d4e4083146106f8578063936c34771461070a5780639381cd2b14610712578063948d8ce61461071a57600080fd5b80633950b3fd116103315780636d06dfa0116102b957806376c7a3c71161028857806376c7a3c7146106b75780637a284be4146106bf5780637c5918b3146106c857806380ca7308146106e8578063867378c5146106f057600080fd5b80636d06dfa014610660578063700dd7e814610673578063703305181461067b57806370a082311461068e57600080fd5b80634f69c0d4116103005780634f69c0d41461060c5780635db342771461061f5780635e123add14610632578063638c9e951461063a578063661884631461064d57600080fd5b80633950b3fd146105c2578063430ed5d0146105d557806346ab38f1146105e85780634df947d0146105fb57600080fd5b8063218b5382116103b4578063300621921161038357806330062192146105515780633018205f14610571578063313ce5671461058857806334e199071461059d578063392e53cd146105b057600080fd5b8063218b5382146104f057806323b872dd146104ff5780632eebd6ae146105125780632f37b6241461052557600080fd5b8063095ea7b3116103fb578063095ea7b3146104a057806309a3bbe4146104c357806309ef3f5b146104cb57806318160ddd146104e0578063189d00ca146104e857600080fd5b806302c967481461042d57806304ad79541461045357806306fdde0314610478578063079492d41461048d575b600080fd5b61044061043b3660046156d1565b610904565b6040519081526020015b60405180910390f35b6003546001600160a01b03165b6040516001600160a01b03909116815260200161044a565b610480610d65565b60405161044a9190615730565b61044061049b366004615763565b610df7565b6104b36104ae36600461579f565b610e81565b604051901515815260200161044a565b610440610edc565b6104de6104d93660046157c9565b610ef2565b005b600954610440565b61044061112e565b610440670de0b6b3a764000081565b6104b361050d366004615763565b611145565b610440610520366004615821565b611299565b6104b3610533366004615863565b6001600160a01b031660009081526010602052604090205460ff1690565b61044061055f366004615863565b60056020526000908152604090205481565b600c546201000090046001600160a01b0316610460565b600c5460405160ff909116815260200161044a565b6104de6105ab36600461587e565b6112fa565b601254600160a01b900460ff166104b3565b6104406105d036600461579f565b611433565b6104406105e336600461579f565b61149b565b6104406105f63660046156d1565b6114fb565b6004546001600160a01b0316610460565b6104de61061a3660046158dc565b611901565b61044061062d3660046156d1565b611b28565b600054610440565b600d54610460906001600160a01b031681565b6104b361065b36600461579f565b611ee9565b61044061066e3660046156d1565b611fbf565b61044061239b565b6104de610689366004615863565b612415565b61044061069c366004615863565b6001600160a01b031660009081526007602052604090205490565b610440612512565b61044060005481565b6104406106d6366004615863565b60066020526000908152604090205481565b6104de612527565b6104406126b9565b600e54600160a01b900460ff166104b3565b6104406126d0565b610440612702565b610440610728366004615863565b612715565b61048061276c565b61044061277b565b61044061074b36600461579f565b612799565b6104b361075e36600461579f565b6127f9565b6104de6107713660046158dc565b61280f565b610440600281565b610440600181565b610440612a6b565b610440612a7e565b61079e612a9d565b60405161044a919061596c565b6104b36107b936600461599e565b612b50565b6107d16107cc366004615a4b565b612dc0565b6040805192835260208301919091520161044a565b6107ee613267565b60405161
2021-11-19 15:42:17 +01:00
"linkReferences": {},
"deployedLinkReferences": {}
2021-11-24 15:00:24 +01:00
}