mirror of
https://github.com/oceanprotocol/ocean-subgraph.git
synced 2024-12-02 05:57:29 +01:00
489 lines
23 KiB
JSON
489 lines
23 KiB
JSON
|
{
|
||
|
"_format": "hh-sol-artifact-1",
|
||
|
"contractName": "BToken",
|
||
|
"sourceName": "contracts/pools/balancer/BToken.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": 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": [
|
||
|
{
|
||
|
"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": [],
|
||
|
"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": "address",
|
||
|
"name": "dst",
|
||
|
"type": "address"
|
||
|
},
|
||
|
{
|
||
|
"internalType": "uint256",
|
||
|
"name": "amt",
|
||
|
"type": "uint256"
|
||
|
}
|
||
|
],
|
||
|
"name": "increaseApproval",
|
||
|
"outputs": [
|
||
|
{
|
||
|
"internalType": "bool",
|
||
|
"name": "",
|
||
|
"type": "bool"
|
||
|
}
|
||
|
],
|
||
|
"stateMutability": "nonpayable",
|
||
|
"type": "function"
|
||
|
},
|
||
|
{
|
||
|
"inputs": [],
|
||
|
"name": "name",
|
||
|
"outputs": [
|
||
|
{
|
||
|
"internalType": "string",
|
||
|
"name": "",
|
||
|
"type": "string"
|
||
|
}
|
||
|
],
|
||
|
"stateMutability": "view",
|
||
|
"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"
|
||
|
}
|
||
|
],
|
||
|
"bytecode": "0x60c0604052601360808190527f42616c616e63657220506f6f6c20546f6b656e0000000000000000000000000060a090815261003e9160039190610089565b506040805180820190915260038082526210941560ea1b602090920191825261006991600491610089565b506005805460ff1916601217905534801561008357600080fd5b5061015d565b82805461009590610122565b90600052602060002090601f0160209004810192826100b757600085556100fd565b82601f106100d057805160ff19168380011785556100fd565b828001600101855582156100fd579182015b828111156100fd5782518255916020019190600101906100e2565b5061010992915061010d565b5090565b5b80821115610109576000815560010161010e565b600181811c9082168061013657607f821691505b6020821081141561015757634e487b7160e01b600052602260045260246000fd5b50919050565b610bf4806200016d6000396000f3fe608060405234801561001057600080fd5b50600436106101a95760003560e01c806395d89b41116100f9578063bc694ea211610097578063d73dd62311610071578063d73dd623146102eb578063dd62ed3e146102fe578063e4a28a52146101ef578063ec0930211461033757600080fd5b8063bc694ea2146102db578063c36596a614610215578063c6580d12146102e357600080fd5b8063b0e0d136116100d3578063b0e0d136146102c3578063b7b800a4146102c3578063ba019dab146102cb578063bc063e1a146102d357600080fd5b806395d89b41146102a0578063992e2a92146102a8578063a9059cbb146102b057600080fd5b806323b872dd1161016657806370a082311161014057806370a082311461025f57806376c7a3c714610288578063867378c5146102905780639381cd2b1461029857600080fd5b806323b872dd14610224578063313ce56714610237578063661884631461024c57600080fd5b806306fdde03146101ae578063095ea7b3146101cc57806309a3bbe4146101ef57806318160ddd14610205578063189d00ca1461020d578063218b538214610215575b600080fd5b6101b661033f565b6040516101c39190610a88565b60405180910390f35b6101df6101da366004610a5e565b6103d1565b60405190151581526020016101c3565b6101f761042b565b6040519081526020016101c3565b6002546101f7565b6101f7610441565b6101f7670de0b6b3a764000081565b6101df610232366004610a22565b610458565b60055460405160ff90911681526020016101c3565b6101df61025a366004610a5e565b6105b1565b6101f761026d3660046109d4565b6001600160a01b031660009081526020819052604090205490565b6101f7610687565b6101f761069c565b6101f76106b3565b6101b66106c6565b6101f76106d5565b6101df6102be366004610a5e565b6106f3565b6101f7600281565b6101f7600181565b6101f7610709565b6101f761071c565b6101f7600081565b6101df6102f9366004610a5e565b61073b565b6101f761030c3660046109ef565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6101f76107ae565b60606003805461034e90610b4d565b80601f016020809104026020016040519081016040528092919081815260200182805461037a90610b4d565b80156103c75780601f1061039c576101008083540402835291602001916103c7565b820191906000526020600020905b8154815290600101906020018083116103aa57829003601f168201915b5050505050905090565b3360008181526001602090815260408083206001600160a01b03871680855292528083208590555191929091600080516020610b9f8339815191529061041a9086815260200190565b60405180910390a350600192915050565b61043e670de0b6b3a76400006032610b17565b81565b61043e6402540be400670de0b6b3a7640000610af5565b6000336001600160a01b038516148061049457506001600160a01b03841660009081526001602090815260408083203384529091529020548211155b6104dd5760405162461bcd60e51b815260206004820152601560248201527422a9292fa12a27a5a2a72fa120a22fa1a0a62622a960591b60448201526064015b60405180910390fd5b6104e88484846107c1565b336001600160a01b0385161480159061052657506001600160a01b038416600090815260016020908152604080832033845290915290205460001914155b156105a7576001600160a01b038416600090815260016020908152604080832033845290915290205461055990836108cb565b6001600160a01b038581166000908152600160209081526040808320338085529083529281902085905551938452918616929091600080516020610b9f833981519152910160405180910390a35b5060019392505050565b3360009081526001602090815260408083206001600160a01b038616845290915281205480831115610606573360009081526001602090815260408083206001600160a01b0388168452909152812055610635565b61061081846108cb565b3360009081526001602090815260408083206001600160a01b03891684529091529020555b3360008181526001602090815260408083206001600160a01b03891680855290835292819020549051908152919291600080516020610b9f833981519152910160405180910390a35060019392505050565b61
|
||
|
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106101a95760003560e01c806395d89b41116100f9578063bc694ea211610097578063d73dd62311610071578063d73dd623146102eb578063dd62ed3e146102fe578063e4a28a52146101ef578063ec0930211461033757600080fd5b8063bc694ea2146102db578063c36596a614610215578063c6580d12146102e357600080fd5b8063b0e0d136116100d3578063b0e0d136146102c3578063b7b800a4146102c3578063ba019dab146102cb578063bc063e1a146102d357600080fd5b806395d89b41146102a0578063992e2a92146102a8578063a9059cbb146102b057600080fd5b806323b872dd1161016657806370a082311161014057806370a082311461025f57806376c7a3c714610288578063867378c5146102905780639381cd2b1461029857600080fd5b806323b872dd14610224578063313ce56714610237578063661884631461024c57600080fd5b806306fdde03146101ae578063095ea7b3146101cc57806309a3bbe4146101ef57806318160ddd14610205578063189d00ca1461020d578063218b538214610215575b600080fd5b6101b661033f565b6040516101c39190610a88565b60405180910390f35b6101df6101da366004610a5e565b6103d1565b60405190151581526020016101c3565b6101f761042b565b6040519081526020016101c3565b6002546101f7565b6101f7610441565b6101f7670de0b6b3a764000081565b6101df610232366004610a22565b610458565b60055460405160ff90911681526020016101c3565b6101df61025a366004610a5e565b6105b1565b6101f761026d3660046109d4565b6001600160a01b031660009081526020819052604090205490565b6101f7610687565b6101f761069c565b6101f76106b3565b6101b66106c6565b6101f76106d5565b6101df6102be366004610a5e565b6106f3565b6101f7600281565b6101f7600181565b6101f7610709565b6101f761071c565b6101f7600081565b6101df6102f9366004610a5e565b61073b565b6101f761030c3660046109ef565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6101f76107ae565b60606003805461034e90610b4d565b80601f016020809104026020016040519081016040528092919081815260200182805461037a90610b4d565b80156103c75780601f1061039c576101008083540402835291602001916103c7565b820191906000526020600020905b8154815290600101906020018083116103aa57829003601f168201915b5050505050905090565b3360008181526001602090815260408083206001600160a01b03871680855292528083208590555191929091600080516020610b9f8339815191529061041a9086815260200190565b60405180910390a350600192915050565b61043e670de0b6b3a76400006032610b17565b81565b61043e6402540be400670de0b6b3a7640000610af5565b6000336001600160a01b038516148061049457506001600160a01b03841660009081526001602090815260408083203384529091529020548211155b6104dd5760405162461bcd60e51b815260206004820152601560248201527422a9292fa12a27a5a2a72fa120a22fa1a0a62622a960591b60448201526064015b60405180910390fd5b6104e88484846107c1565b336001600160a01b0385161480159061052657506001600160a01b038416600090815260016020908152604080832033845290915290205460001914155b156105a7576001600160a01b038416600090815260016020908152604080832033845290915290205461055990836108cb565b6001600160a01b038581166000908152600160209081526040808320338085529083529281902085905551938452918616929091600080516020610b9f833981519152910160405180910390a35b5060019392505050565b3360009081526001602090815260408083206001600160a01b038616845290915281205480831115610606573360009081526001602090815260408083206001600160a01b0388168452909152812055610635565b61061081846108cb565b3360009081526001602090815260408083206001600160a01b03891684529091529020555b3360008181526001602090815260408083206001600160a01b03891680855290835292819020549051908152919291600080516020610b9f833981519152910160405180910390a35060019392505050565b61043e620f4240670de0b6b3a7640000610af5565b61043e64e8d4a51000670de0b6b3a7640000610af5565b61043e670de0b6b3a76400006064610b17565b60606004805461034e90610b4d565b6106e86003670de0b6b3a7640000610af5565b61043e906001610add565b60006107003384846107c1565b50600192915050565b61043e600a670de0b6b3a7640000610af5565b6001610731670de0b6b3a76400006002610b17565b61043e9190610b36565b3360009081526001602090815260408083206001600160a01b03861684529091528120546107699083610928565b3360008181526001602090815260408083206001600160a01b03891680855290835292819020859055519384529092600080516020610b9f833981519152910161041a565b61043e6002670de0b6b3a7640000610af5565b6001600160a01b0383166000908152602081905260409020548111156108205760405162461bcd60e51b815260206004
|
||
|
"linkReferences": {},
|
||
|
"deployedLinkReferences": {}
|
||
|
}
|