fix: clean up abis

This commit is contained in:
0xMochan
2024-06-03 09:41:14 -04:00
parent f64fcdf220
commit f1796d1c67
14 changed files with 0 additions and 53815 deletions

View File

@@ -1,838 +0,0 @@
[
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "buyer",
"type": "address"
},
{
"indexed": false,
"name": "sold_id",
"type": "int128"
},
{
"indexed": false,
"name": "tokens_sold",
"type": "uint256"
},
{
"indexed": false,
"name": "bought_id",
"type": "int128"
},
{
"indexed": false,
"name": "tokens_bought",
"type": "uint256"
}
],
"name": "TokenExchange",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "provider",
"type": "address"
},
{
"indexed": false,
"name": "token_amounts",
"type": "uint256[3]"
},
{
"indexed": false,
"name": "fees",
"type": "uint256[3]"
},
{
"indexed": false,
"name": "invariant",
"type": "uint256"
},
{
"indexed": false,
"name": "token_supply",
"type": "uint256"
}
],
"name": "AddLiquidity",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "provider",
"type": "address"
},
{
"indexed": false,
"name": "token_amounts",
"type": "uint256[3]"
},
{
"indexed": false,
"name": "fees",
"type": "uint256[3]"
},
{
"indexed": false,
"name": "token_supply",
"type": "uint256"
}
],
"name": "RemoveLiquidity",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "provider",
"type": "address"
},
{
"indexed": false,
"name": "token_amount",
"type": "uint256"
},
{
"indexed": false,
"name": "coin_amount",
"type": "uint256"
}
],
"name": "RemoveLiquidityOne",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "provider",
"type": "address"
},
{
"indexed": false,
"name": "token_amounts",
"type": "uint256[3]"
},
{
"indexed": false,
"name": "fees",
"type": "uint256[3]"
},
{
"indexed": false,
"name": "invariant",
"type": "uint256"
},
{
"indexed": false,
"name": "token_supply",
"type": "uint256"
}
],
"name": "RemoveLiquidityImbalance",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "deadline",
"type": "uint256"
},
{
"indexed": true,
"name": "admin",
"type": "address"
}
],
"name": "CommitNewAdmin",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "admin",
"type": "address"
}
],
"name": "NewAdmin",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "deadline",
"type": "uint256"
},
{
"indexed": false,
"name": "fee",
"type": "uint256"
},
{
"indexed": false,
"name": "admin_fee",
"type": "uint256"
}
],
"name": "CommitNewFee",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"name": "fee",
"type": "uint256"
},
{
"indexed": false,
"name": "admin_fee",
"type": "uint256"
}
],
"name": "NewFee",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"name": "old_A",
"type": "uint256"
},
{
"indexed": false,
"name": "new_A",
"type": "uint256"
},
{
"indexed": false,
"name": "initial_time",
"type": "uint256"
},
{
"indexed": false,
"name": "future_time",
"type": "uint256"
}
],
"name": "RampA",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"name": "A",
"type": "uint256"
},
{
"indexed": false,
"name": "t",
"type": "uint256"
}
],
"name": "StopRampA",
"type": "event"
},
{
"inputs": [
{
"name": "_owner",
"type": "address"
},
{
"name": "_coins",
"type": "address[3]"
},
{
"name": "_pool_token",
"type": "address"
},
{
"name": "_A",
"type": "uint256"
},
{
"name": "_fee",
"type": "uint256"
},
{
"name": "_admin_fee",
"type": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"gas": 5227,
"inputs": [],
"name": "A",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"gas": 1133537,
"inputs": [],
"name": "get_virtual_price",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"gas": 4508776,
"inputs": [
{
"name": "amounts",
"type": "uint256[3]"
},
{
"name": "deposit",
"type": "bool"
}
],
"name": "calc_token_amount",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"gas": 6954858,
"inputs": [
{
"name": "amounts",
"type": "uint256[3]"
},
{
"name": "min_mint_amount",
"type": "uint256"
}
],
"name": "add_liquidity",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"gas": 2673791,
"inputs": [
{
"name": "i",
"type": "int128"
},
{
"name": "j",
"type": "int128"
},
{
"name": "dx",
"type": "uint256"
}
],
"name": "get_dy",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"gas": 2673474,
"inputs": [
{
"name": "i",
"type": "int128"
},
{
"name": "j",
"type": "int128"
},
{
"name": "dx",
"type": "uint256"
}
],
"name": "get_dy_underlying",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"gas": 2818066,
"inputs": [
{
"name": "i",
"type": "int128"
},
{
"name": "j",
"type": "int128"
},
{
"name": "dx",
"type": "uint256"
},
{
"name": "min_dy",
"type": "uint256"
}
],
"name": "exchange",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"gas": 192846,
"inputs": [
{
"name": "_amount",
"type": "uint256"
},
{
"name": "min_amounts",
"type": "uint256[3]"
}
],
"name": "remove_liquidity",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"gas": 6951851,
"inputs": [
{
"name": "amounts",
"type": "uint256[3]"
},
{
"name": "max_burn_amount",
"type": "uint256"
}
],
"name": "remove_liquidity_imbalance",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"gas": 1102,
"inputs": [
{
"name": "_token_amount",
"type": "uint256"
},
{
"name": "i",
"type": "int128"
}
],
"name": "calc_withdraw_one_coin",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"gas": 4025523,
"inputs": [
{
"name": "_token_amount",
"type": "uint256"
},
{
"name": "i",
"type": "int128"
},
{
"name": "min_amount",
"type": "uint256"
}
],
"name": "remove_liquidity_one_coin",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"gas": 151919,
"inputs": [
{
"name": "_future_A",
"type": "uint256"
},
{
"name": "_future_time",
"type": "uint256"
}
],
"name": "ramp_A",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"gas": 148637,
"inputs": [],
"name": "stop_ramp_A",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"gas": 110461,
"inputs": [
{
"name": "new_fee",
"type": "uint256"
},
{
"name": "new_admin_fee",
"type": "uint256"
}
],
"name": "commit_new_fee",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"gas": 97242,
"inputs": [],
"name": "apply_new_fee",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"gas": 21895,
"inputs": [],
"name": "revert_new_parameters",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"gas": 74572,
"inputs": [
{
"name": "_owner",
"type": "address"
}
],
"name": "commit_transfer_ownership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"gas": 60710,
"inputs": [],
"name": "apply_transfer_ownership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"gas": 21985,
"inputs": [],
"name": "revert_transfer_ownership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"gas": 3481,
"inputs": [
{
"name": "i",
"type": "uint256"
}
],
"name": "admin_balances",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"gas": 21502,
"inputs": [],
"name": "withdraw_admin_fees",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"gas": 111389,
"inputs": [],
"name": "donate_admin_fees",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"gas": 37998,
"inputs": [],
"name": "kill_me",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"gas": 22135,
"inputs": [],
"name": "unkill_me",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"gas": 2220,
"inputs": [
{
"name": "arg0",
"type": "uint256"
}
],
"name": "coins",
"outputs": [
{
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"gas": 2250,
"inputs": [
{
"name": "arg0",
"type": "uint256"
}
],
"name": "balances",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"gas": 2171,
"inputs": [],
"name": "fee",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"gas": 2201,
"inputs": [],
"name": "admin_fee",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"gas": 2231,
"inputs": [],
"name": "owner",
"outputs": [
{
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"gas": 2261,
"inputs": [],
"name": "initial_A",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"gas": 2291,
"inputs": [],
"name": "future_A",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"gas": 2321,
"inputs": [],
"name": "initial_A_time",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"gas": 2351,
"inputs": [],
"name": "future_A_time",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"gas": 2381,
"inputs": [],
"name": "admin_actions_deadline",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"gas": 2411,
"inputs": [],
"name": "transfer_ownership_deadline",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"gas": 2441,
"inputs": [],
"name": "future_fee",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"gas": 2471,
"inputs": [],
"name": "future_admin_fee",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"gas": 2501,
"inputs": [],
"name": "future_owner",
"outputs": [
{
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
}
]

View File

@@ -1,838 +0,0 @@
[
{
"name": "TokenExchange",
"inputs": [
{
"type": "address",
"name": "buyer",
"indexed": true
},
{
"type": "int128",
"name": "sold_id",
"indexed": false
},
{
"type": "uint256",
"name": "tokens_sold",
"indexed": false
},
{
"type": "int128",
"name": "bought_id",
"indexed": false
},
{
"type": "uint256",
"name": "tokens_bought",
"indexed": false
}
],
"anonymous": false,
"type": "event"
},
{
"name": "AddLiquidity",
"inputs": [
{
"type": "address",
"name": "provider",
"indexed": true
},
{
"type": "uint256[3]",
"name": "token_amounts",
"indexed": false
},
{
"type": "uint256[3]",
"name": "fees",
"indexed": false
},
{
"type": "uint256",
"name": "invariant",
"indexed": false
},
{
"type": "uint256",
"name": "token_supply",
"indexed": false
}
],
"anonymous": false,
"type": "event"
},
{
"name": "RemoveLiquidity",
"inputs": [
{
"type": "address",
"name": "provider",
"indexed": true
},
{
"type": "uint256[3]",
"name": "token_amounts",
"indexed": false
},
{
"type": "uint256[3]",
"name": "fees",
"indexed": false
},
{
"type": "uint256",
"name": "token_supply",
"indexed": false
}
],
"anonymous": false,
"type": "event"
},
{
"name": "RemoveLiquidityOne",
"inputs": [
{
"type": "address",
"name": "provider",
"indexed": true
},
{
"type": "uint256",
"name": "token_amount",
"indexed": false
},
{
"type": "uint256",
"name": "coin_amount",
"indexed": false
}
],
"anonymous": false,
"type": "event"
},
{
"name": "RemoveLiquidityImbalance",
"inputs": [
{
"type": "address",
"name": "provider",
"indexed": true
},
{
"type": "uint256[3]",
"name": "token_amounts",
"indexed": false
},
{
"type": "uint256[3]",
"name": "fees",
"indexed": false
},
{
"type": "uint256",
"name": "invariant",
"indexed": false
},
{
"type": "uint256",
"name": "token_supply",
"indexed": false
}
],
"anonymous": false,
"type": "event"
},
{
"name": "CommitNewAdmin",
"inputs": [
{
"type": "uint256",
"name": "deadline",
"indexed": true
},
{
"type": "address",
"name": "admin",
"indexed": true
}
],
"anonymous": false,
"type": "event"
},
{
"name": "NewAdmin",
"inputs": [
{
"type": "address",
"name": "admin",
"indexed": true
}
],
"anonymous": false,
"type": "event"
},
{
"name": "CommitNewFee",
"inputs": [
{
"type": "uint256",
"name": "deadline",
"indexed": true
},
{
"type": "uint256",
"name": "fee",
"indexed": false
},
{
"type": "uint256",
"name": "admin_fee",
"indexed": false
}
],
"anonymous": false,
"type": "event"
},
{
"name": "NewFee",
"inputs": [
{
"type": "uint256",
"name": "fee",
"indexed": false
},
{
"type": "uint256",
"name": "admin_fee",
"indexed": false
}
],
"anonymous": false,
"type": "event"
},
{
"name": "RampA",
"inputs": [
{
"type": "uint256",
"name": "old_A",
"indexed": false
},
{
"type": "uint256",
"name": "new_A",
"indexed": false
},
{
"type": "uint256",
"name": "initial_time",
"indexed": false
},
{
"type": "uint256",
"name": "future_time",
"indexed": false
}
],
"anonymous": false,
"type": "event"
},
{
"name": "StopRampA",
"inputs": [
{
"type": "uint256",
"name": "A",
"indexed": false
},
{
"type": "uint256",
"name": "t",
"indexed": false
}
],
"anonymous": false,
"type": "event"
},
{
"outputs": [],
"inputs": [
{
"type": "address",
"name": "_owner"
},
{
"type": "address[3]",
"name": "_coins"
},
{
"type": "address",
"name": "_pool_token"
},
{
"type": "uint256",
"name": "_A"
},
{
"type": "uint256",
"name": "_fee"
},
{
"type": "uint256",
"name": "_admin_fee"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"name": "A",
"outputs": [
{
"type": "uint256",
"name": ""
}
],
"inputs": [],
"stateMutability": "view",
"type": "function",
"gas": 5227
},
{
"name": "get_virtual_price",
"outputs": [
{
"type": "uint256",
"name": ""
}
],
"inputs": [],
"stateMutability": "view",
"type": "function",
"gas": 1133537
},
{
"name": "calc_token_amount",
"outputs": [
{
"type": "uint256",
"name": ""
}
],
"inputs": [
{
"type": "uint256[3]",
"name": "amounts"
},
{
"type": "bool",
"name": "deposit"
}
],
"stateMutability": "view",
"type": "function",
"gas": 4508776
},
{
"name": "add_liquidity",
"outputs": [],
"inputs": [
{
"type": "uint256[3]",
"name": "amounts"
},
{
"type": "uint256",
"name": "min_mint_amount"
}
],
"stateMutability": "nonpayable",
"type": "function",
"gas": 6954858
},
{
"name": "get_dy",
"outputs": [
{
"type": "uint256",
"name": ""
}
],
"inputs": [
{
"type": "int128",
"name": "i"
},
{
"type": "int128",
"name": "j"
},
{
"type": "uint256",
"name": "dx"
}
],
"stateMutability": "view",
"type": "function",
"gas": 2673791
},
{
"name": "get_dy_underlying",
"outputs": [
{
"type": "uint256",
"name": ""
}
],
"inputs": [
{
"type": "int128",
"name": "i"
},
{
"type": "int128",
"name": "j"
},
{
"type": "uint256",
"name": "dx"
}
],
"stateMutability": "view",
"type": "function",
"gas": 2673474
},
{
"name": "exchange",
"outputs": [],
"inputs": [
{
"type": "int128",
"name": "i"
},
{
"type": "int128",
"name": "j"
},
{
"type": "uint256",
"name": "dx"
},
{
"type": "uint256",
"name": "min_dy"
}
],
"stateMutability": "nonpayable",
"type": "function",
"gas": 2818066
},
{
"name": "remove_liquidity",
"outputs": [],
"inputs": [
{
"type": "uint256",
"name": "_amount"
},
{
"type": "uint256[3]",
"name": "min_amounts"
}
],
"stateMutability": "nonpayable",
"type": "function",
"gas": 192846
},
{
"name": "remove_liquidity_imbalance",
"outputs": [],
"inputs": [
{
"type": "uint256[3]",
"name": "amounts"
},
{
"type": "uint256",
"name": "max_burn_amount"
}
],
"stateMutability": "nonpayable",
"type": "function",
"gas": 6951851
},
{
"name": "calc_withdraw_one_coin",
"outputs": [
{
"type": "uint256",
"name": ""
}
],
"inputs": [
{
"type": "uint256",
"name": "_token_amount"
},
{
"type": "int128",
"name": "i"
}
],
"stateMutability": "view",
"type": "function",
"gas": 1102
},
{
"name": "remove_liquidity_one_coin",
"outputs": [],
"inputs": [
{
"type": "uint256",
"name": "_token_amount"
},
{
"type": "int128",
"name": "i"
},
{
"type": "uint256",
"name": "min_amount"
}
],
"stateMutability": "nonpayable",
"type": "function",
"gas": 4025523
},
{
"name": "ramp_A",
"outputs": [],
"inputs": [
{
"type": "uint256",
"name": "_future_A"
},
{
"type": "uint256",
"name": "_future_time"
}
],
"stateMutability": "nonpayable",
"type": "function",
"gas": 151919
},
{
"name": "stop_ramp_A",
"outputs": [],
"inputs": [],
"stateMutability": "nonpayable",
"type": "function",
"gas": 148637
},
{
"name": "commit_new_fee",
"outputs": [],
"inputs": [
{
"type": "uint256",
"name": "new_fee"
},
{
"type": "uint256",
"name": "new_admin_fee"
}
],
"stateMutability": "nonpayable",
"type": "function",
"gas": 110461
},
{
"name": "apply_new_fee",
"outputs": [],
"inputs": [],
"stateMutability": "nonpayable",
"type": "function",
"gas": 97242
},
{
"name": "revert_new_parameters",
"outputs": [],
"inputs": [],
"stateMutability": "nonpayable",
"type": "function",
"gas": 21895
},
{
"name": "commit_transfer_ownership",
"outputs": [],
"inputs": [
{
"type": "address",
"name": "_owner"
}
],
"stateMutability": "nonpayable",
"type": "function",
"gas": 74572
},
{
"name": "apply_transfer_ownership",
"outputs": [],
"inputs": [],
"stateMutability": "nonpayable",
"type": "function",
"gas": 60710
},
{
"name": "revert_transfer_ownership",
"outputs": [],
"inputs": [],
"stateMutability": "nonpayable",
"type": "function",
"gas": 21985
},
{
"name": "admin_balances",
"outputs": [
{
"type": "uint256",
"name": ""
}
],
"inputs": [
{
"type": "uint256",
"name": "i"
}
],
"stateMutability": "view",
"type": "function",
"gas": 3481
},
{
"name": "withdraw_admin_fees",
"outputs": [],
"inputs": [],
"stateMutability": "nonpayable",
"type": "function",
"gas": 21502
},
{
"name": "donate_admin_fees",
"outputs": [],
"inputs": [],
"stateMutability": "nonpayable",
"type": "function",
"gas": 111389
},
{
"name": "kill_me",
"outputs": [],
"inputs": [],
"stateMutability": "nonpayable",
"type": "function",
"gas": 37998
},
{
"name": "unkill_me",
"outputs": [],
"inputs": [],
"stateMutability": "nonpayable",
"type": "function",
"gas": 22135
},
{
"name": "coins",
"outputs": [
{
"type": "address",
"name": ""
}
],
"inputs": [
{
"type": "uint256",
"name": "arg0"
}
],
"stateMutability": "view",
"type": "function",
"gas": 2220
},
{
"name": "balances",
"outputs": [
{
"type": "uint256",
"name": ""
}
],
"inputs": [
{
"type": "uint256",
"name": "arg0"
}
],
"stateMutability": "view",
"type": "function",
"gas": 2250
},
{
"name": "fee",
"outputs": [
{
"type": "uint256",
"name": ""
}
],
"inputs": [],
"stateMutability": "view",
"type": "function",
"gas": 2171
},
{
"name": "admin_fee",
"outputs": [
{
"type": "uint256",
"name": ""
}
],
"inputs": [],
"stateMutability": "view",
"type": "function",
"gas": 2201
},
{
"name": "owner",
"outputs": [
{
"type": "address",
"name": ""
}
],
"inputs": [],
"stateMutability": "view",
"type": "function",
"gas": 2231
},
{
"name": "initial_A",
"outputs": [
{
"type": "uint256",
"name": ""
}
],
"inputs": [],
"stateMutability": "view",
"type": "function",
"gas": 2261
},
{
"name": "future_A",
"outputs": [
{
"type": "uint256",
"name": ""
}
],
"inputs": [],
"stateMutability": "view",
"type": "function",
"gas": 2291
},
{
"name": "initial_A_time",
"outputs": [
{
"type": "uint256",
"name": ""
}
],
"inputs": [],
"stateMutability": "view",
"type": "function",
"gas": 2321
},
{
"name": "future_A_time",
"outputs": [
{
"type": "uint256",
"name": ""
}
],
"inputs": [],
"stateMutability": "view",
"type": "function",
"gas": 2351
},
{
"name": "admin_actions_deadline",
"outputs": [
{
"type": "uint256",
"name": ""
}
],
"inputs": [],
"stateMutability": "view",
"type": "function",
"gas": 2381
},
{
"name": "transfer_ownership_deadline",
"outputs": [
{
"type": "uint256",
"name": ""
}
],
"inputs": [],
"stateMutability": "view",
"type": "function",
"gas": 2411
},
{
"name": "future_fee",
"outputs": [
{
"type": "uint256",
"name": ""
}
],
"inputs": [],
"stateMutability": "view",
"type": "function",
"gas": 2441
},
{
"name": "future_admin_fee",
"outputs": [
{
"type": "uint256",
"name": ""
}
],
"inputs": [],
"stateMutability": "view",
"type": "function",
"gas": 2471
},
{
"name": "future_owner",
"outputs": [
{
"type": "address",
"name": ""
}
],
"inputs": [],
"stateMutability": "view",
"type": "function",
"gas": 2501
}
]

File diff suppressed because it is too large Load Diff

View File

@@ -1,895 +0,0 @@
[
{
"name": "TokenExchange",
"inputs": [
{
"type": "address",
"name": "buyer",
"indexed": true
},
{
"type": "int128",
"name": "sold_id",
"indexed": false
},
{
"type": "uint256",
"name": "tokens_sold",
"indexed": false
},
{
"type": "int128",
"name": "bought_id",
"indexed": false
},
{
"type": "uint256",
"name": "tokens_bought",
"indexed": false
}
],
"anonymous": false,
"type": "event"
},
{
"name": "TokenExchangeUnderlying",
"inputs": [
{
"type": "address",
"name": "buyer",
"indexed": true
},
{
"type": "int128",
"name": "sold_id",
"indexed": false
},
{
"type": "uint256",
"name": "tokens_sold",
"indexed": false
},
{
"type": "int128",
"name": "bought_id",
"indexed": false
},
{
"type": "uint256",
"name": "tokens_bought",
"indexed": false
}
],
"anonymous": false,
"type": "event"
},
{
"name": "AddLiquidity",
"inputs": [
{
"type": "address",
"name": "provider",
"indexed": true
},
{
"type": "uint256[2]",
"name": "token_amounts",
"indexed": false
},
{
"type": "uint256[2]",
"name": "fees",
"indexed": false
},
{
"type": "uint256",
"name": "invariant",
"indexed": false
},
{
"type": "uint256",
"name": "token_supply",
"indexed": false
}
],
"anonymous": false,
"type": "event"
},
{
"name": "RemoveLiquidity",
"inputs": [
{
"type": "address",
"name": "provider",
"indexed": true
},
{
"type": "uint256[2]",
"name": "token_amounts",
"indexed": false
},
{
"type": "uint256[2]",
"name": "fees",
"indexed": false
},
{
"type": "uint256",
"name": "token_supply",
"indexed": false
}
],
"anonymous": false,
"type": "event"
},
{
"name": "RemoveLiquidityOne",
"inputs": [
{
"type": "address",
"name": "provider",
"indexed": true
},
{
"type": "uint256",
"name": "token_amount",
"indexed": false
},
{
"type": "uint256",
"name": "coin_amount",
"indexed": false
}
],
"anonymous": false,
"type": "event"
},
{
"name": "RemoveLiquidityImbalance",
"inputs": [
{
"type": "address",
"name": "provider",
"indexed": true
},
{
"type": "uint256[2]",
"name": "token_amounts",
"indexed": false
},
{
"type": "uint256[2]",
"name": "fees",
"indexed": false
},
{
"type": "uint256",
"name": "invariant",
"indexed": false
},
{
"type": "uint256",
"name": "token_supply",
"indexed": false
}
],
"anonymous": false,
"type": "event"
},
{
"name": "CommitNewAdmin",
"inputs": [
{
"type": "uint256",
"name": "deadline",
"indexed": true
},
{
"type": "address",
"name": "admin",
"indexed": true
}
],
"anonymous": false,
"type": "event"
},
{
"name": "NewAdmin",
"inputs": [
{
"type": "address",
"name": "admin",
"indexed": true
}
],
"anonymous": false,
"type": "event"
},
{
"name": "CommitNewFee",
"inputs": [
{
"type": "uint256",
"name": "deadline",
"indexed": true
},
{
"type": "uint256",
"name": "fee",
"indexed": false
},
{
"type": "uint256",
"name": "admin_fee",
"indexed": false
}
],
"anonymous": false,
"type": "event"
},
{
"name": "NewFee",
"inputs": [
{
"type": "uint256",
"name": "fee",
"indexed": false
},
{
"type": "uint256",
"name": "admin_fee",
"indexed": false
}
],
"anonymous": false,
"type": "event"
},
{
"name": "RampA",
"inputs": [
{
"type": "uint256",
"name": "old_A",
"indexed": false
},
{
"type": "uint256",
"name": "new_A",
"indexed": false
},
{
"type": "uint256",
"name": "initial_time",
"indexed": false
},
{
"type": "uint256",
"name": "future_time",
"indexed": false
}
],
"anonymous": false,
"type": "event"
},
{
"name": "StopRampA",
"inputs": [
{
"type": "uint256",
"name": "A",
"indexed": false
},
{
"type": "uint256",
"name": "t",
"indexed": false
}
],
"anonymous": false,
"type": "event"
},
{
"outputs": [],
"inputs": [
{
"type": "address",
"name": "_owner"
},
{
"type": "address[2]",
"name": "_coins"
},
{
"type": "address",
"name": "_pool_token"
},
{
"type": "uint256",
"name": "_A"
},
{
"type": "uint256",
"name": "_fee"
},
{
"type": "uint256",
"name": "_admin_fee"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"name": "A",
"outputs": [
{
"type": "uint256",
"name": ""
}
],
"inputs": [],
"stateMutability": "view",
"type": "function",
"gas": 5289
},
{
"name": "A_precise",
"outputs": [
{
"type": "uint256",
"name": ""
}
],
"inputs": [],
"stateMutability": "view",
"type": "function",
"gas": 5251
},
{
"name": "balances",
"outputs": [
{
"type": "uint256",
"name": ""
}
],
"inputs": [
{
"type": "uint256",
"name": "i"
}
],
"stateMutability": "view",
"type": "function",
"gas": 5076
},
{
"name": "get_virtual_price",
"outputs": [
{
"type": "uint256",
"name": ""
}
],
"inputs": [],
"stateMutability": "view",
"type": "function",
"gas": 1114301
},
{
"name": "calc_token_amount",
"outputs": [
{
"type": "uint256",
"name": ""
}
],
"inputs": [
{
"type": "uint256[2]",
"name": "amounts"
},
{
"type": "bool",
"name": "is_deposit"
}
],
"stateMutability": "view",
"type": "function",
"gas": 2218181
},
{
"name": "add_liquidity",
"outputs": [
{
"type": "uint256",
"name": ""
}
],
"inputs": [
{
"type": "uint256[2]",
"name": "amounts"
},
{
"type": "uint256",
"name": "min_mint_amount"
}
],
"stateMutability": "payable",
"type": "function",
"gas": 3484118
},
{
"name": "get_dy",
"outputs": [
{
"type": "uint256",
"name": ""
}
],
"inputs": [
{
"type": "int128",
"name": "i"
},
{
"type": "int128",
"name": "j"
},
{
"type": "uint256",
"name": "dx"
}
],
"stateMutability": "view",
"type": "function",
"gas": 2654541
},
{
"name": "exchange",
"outputs": [
{
"type": "uint256",
"name": ""
}
],
"inputs": [
{
"type": "int128",
"name": "i"
},
{
"type": "int128",
"name": "j"
},
{
"type": "uint256",
"name": "dx"
},
{
"type": "uint256",
"name": "min_dy"
}
],
"stateMutability": "payable",
"type": "function",
"gas": 2810134
},
{
"name": "remove_liquidity",
"outputs": [
{
"type": "uint256[2]",
"name": ""
}
],
"inputs": [
{
"type": "uint256",
"name": "_amount"
},
{
"type": "uint256[2]",
"name": "_min_amounts"
}
],
"stateMutability": "nonpayable",
"type": "function",
"gas": 160545
},
{
"name": "remove_liquidity_imbalance",
"outputs": [
{
"type": "uint256",
"name": ""
}
],
"inputs": [
{
"type": "uint256[2]",
"name": "_amounts"
},
{
"type": "uint256",
"name": "_max_burn_amount"
}
],
"stateMutability": "nonpayable",
"type": "function",
"gas": 3519382
},
{
"name": "calc_withdraw_one_coin",
"outputs": [
{
"type": "uint256",
"name": ""
}
],
"inputs": [
{
"type": "uint256",
"name": "_token_amount"
},
{
"type": "int128",
"name": "i"
}
],
"stateMutability": "view",
"type": "function",
"gas": 1435
},
{
"name": "remove_liquidity_one_coin",
"outputs": [
{
"type": "uint256",
"name": ""
}
],
"inputs": [
{
"type": "uint256",
"name": "_token_amount"
},
{
"type": "int128",
"name": "i"
},
{
"type": "uint256",
"name": "_min_amount"
}
],
"stateMutability": "nonpayable",
"type": "function",
"gas": 4113806
},
{
"name": "ramp_A",
"outputs": [],
"inputs": [
{
"type": "uint256",
"name": "_future_A"
},
{
"type": "uint256",
"name": "_future_time"
}
],
"stateMutability": "nonpayable",
"type": "function",
"gas": 151834
},
{
"name": "stop_ramp_A",
"outputs": [],
"inputs": [],
"stateMutability": "nonpayable",
"type": "function",
"gas": 148595
},
{
"name": "commit_new_fee",
"outputs": [],
"inputs": [
{
"type": "uint256",
"name": "new_fee"
},
{
"type": "uint256",
"name": "new_admin_fee"
}
],
"stateMutability": "nonpayable",
"type": "function",
"gas": 110431
},
{
"name": "apply_new_fee",
"outputs": [],
"inputs": [],
"stateMutability": "nonpayable",
"type": "function",
"gas": 153115
},
{
"name": "revert_new_parameters",
"outputs": [],
"inputs": [],
"stateMutability": "nonpayable",
"type": "function",
"gas": 21865
},
{
"name": "commit_transfer_ownership",
"outputs": [],
"inputs": [
{
"type": "address",
"name": "_owner"
}
],
"stateMutability": "nonpayable",
"type": "function",
"gas": 74603
},
{
"name": "apply_transfer_ownership",
"outputs": [],
"inputs": [],
"stateMutability": "nonpayable",
"type": "function",
"gas": 116583
},
{
"name": "revert_transfer_ownership",
"outputs": [],
"inputs": [],
"stateMutability": "nonpayable",
"type": "function",
"gas": 21955
},
{
"name": "withdraw_admin_fees",
"outputs": [],
"inputs": [],
"stateMutability": "nonpayable",
"type": "function",
"gas": 137597
},
{
"name": "donate_admin_fees",
"outputs": [],
"inputs": [],
"stateMutability": "nonpayable",
"type": "function",
"gas": 42144
},
{
"name": "kill_me",
"outputs": [],
"inputs": [],
"stateMutability": "nonpayable",
"type": "function",
"gas": 37938
},
{
"name": "unkill_me",
"outputs": [],
"inputs": [],
"stateMutability": "nonpayable",
"type": "function",
"gas": 22075
},
{
"name": "coins",
"outputs": [
{
"type": "address",
"name": ""
}
],
"inputs": [
{
"type": "uint256",
"name": "arg0"
}
],
"stateMutability": "view",
"type": "function",
"gas": 2160
},
{
"name": "admin_balances",
"outputs": [
{
"type": "uint256",
"name": ""
}
],
"inputs": [
{
"type": "uint256",
"name": "arg0"
}
],
"stateMutability": "view",
"type": "function",
"gas": 2190
},
{
"name": "fee",
"outputs": [
{
"type": "uint256",
"name": ""
}
],
"inputs": [],
"stateMutability": "view",
"type": "function",
"gas": 2111
},
{
"name": "admin_fee",
"outputs": [
{
"type": "uint256",
"name": ""
}
],
"inputs": [],
"stateMutability": "view",
"type": "function",
"gas": 2141
},
{
"name": "owner",
"outputs": [
{
"type": "address",
"name": ""
}
],
"inputs": [],
"stateMutability": "view",
"type": "function",
"gas": 2171
},
{
"name": "lp_token",
"outputs": [
{
"type": "address",
"name": ""
}
],
"inputs": [],
"stateMutability": "view",
"type": "function",
"gas": 2201
},
{
"name": "initial_A",
"outputs": [
{
"type": "uint256",
"name": ""
}
],
"inputs": [],
"stateMutability": "view",
"type": "function",
"gas": 2231
},
{
"name": "future_A",
"outputs": [
{
"type": "uint256",
"name": ""
}
],
"inputs": [],
"stateMutability": "view",
"type": "function",
"gas": 2261
},
{
"name": "initial_A_time",
"outputs": [
{
"type": "uint256",
"name": ""
}
],
"inputs": [],
"stateMutability": "view",
"type": "function",
"gas": 2291
},
{
"name": "future_A_time",
"outputs": [
{
"type": "uint256",
"name": ""
}
],
"inputs": [],
"stateMutability": "view",
"type": "function",
"gas": 2321
},
{
"name": "admin_actions_deadline",
"outputs": [
{
"type": "uint256",
"name": ""
}
],
"inputs": [],
"stateMutability": "view",
"type": "function",
"gas": 2351
},
{
"name": "transfer_ownership_deadline",
"outputs": [
{
"type": "uint256",
"name": ""
}
],
"inputs": [],
"stateMutability": "view",
"type": "function",
"gas": 2381
},
{
"name": "future_fee",
"outputs": [
{
"type": "uint256",
"name": ""
}
],
"inputs": [],
"stateMutability": "view",
"type": "function",
"gas": 2411
},
{
"name": "future_admin_fee",
"outputs": [
{
"type": "uint256",
"name": ""
}
],
"inputs": [],
"stateMutability": "view",
"type": "function",
"gas": 2441
},
{
"name": "future_owner",
"outputs": [
{
"type": "address",
"name": ""
}
],
"inputs": [],
"stateMutability": "view",
"type": "function",
"gas": 2471
}
]

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -1,559 +0,0 @@
[
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"name": "base_pool",
"type": "address"
},
{
"indexed": false,
"name": "implementat",
"type": "address"
}
],
"name": "BasePoolAdded",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"name": "coin",
"type": "address"
},
{
"indexed": false,
"name": "base_pool",
"type": "address"
},
{
"indexed": false,
"name": "A",
"type": "uint256"
},
{
"indexed": false,
"name": "fee",
"type": "uint256"
},
{
"indexed": false,
"name": "deployer",
"type": "address"
}
],
"name": "MetaPoolDeployed",
"type": "event"
},
{
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [
{
"name": "_from",
"type": "address"
},
{
"name": "_to",
"type": "address"
}
],
"name": "find_pool_for_coins",
"outputs": [
{
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"name": "_from",
"type": "address"
},
{
"name": "_to",
"type": "address"
},
{
"name": "i",
"type": "uint256"
}
],
"name": "find_pool_for_coins",
"outputs": [
{
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"gas": 2795,
"inputs": [
{
"name": "_pool",
"type": "address"
}
],
"name": "get_n_coins",
"outputs": [
{
"name": "",
"type": "uint256"
},
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"gas": 2427,
"inputs": [
{
"name": "_pool",
"type": "address"
}
],
"name": "get_coins",
"outputs": [
{
"name": "",
"type": "address[2]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"gas": 12195,
"inputs": [
{
"name": "_pool",
"type": "address"
}
],
"name": "get_underlying_coins",
"outputs": [
{
"name": "",
"type": "address[8]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"gas": 1501,
"inputs": [
{
"name": "_pool",
"type": "address"
}
],
"name": "get_decimals",
"outputs": [
{
"name": "",
"type": "uint256[2]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"gas": 10155,
"inputs": [
{
"name": "_pool",
"type": "address"
}
],
"name": "get_underlying_decimals",
"outputs": [
{
"name": "",
"type": "uint256[8]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"gas": 1876,
"inputs": [
{
"name": "_pool",
"type": "address"
}
],
"name": "get_rates",
"outputs": [
{
"name": "",
"type": "uint256[2]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"gas": 1268,
"inputs": [
{
"name": "_pool",
"type": "address"
}
],
"name": "get_balances",
"outputs": [
{
"name": "",
"type": "uint256[2]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"gas": 13247,
"inputs": [
{
"name": "_pool",
"type": "address"
}
],
"name": "get_underlying_balances",
"outputs": [
{
"name": "",
"type": "uint256[8]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"gas": 958,
"inputs": [
{
"name": "_pool",
"type": "address"
}
],
"name": "get_A",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"gas": 1584,
"inputs": [
{
"name": "_pool",
"type": "address"
}
],
"name": "get_fees",
"outputs": [
{
"name": "",
"type": "uint256"
},
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"gas": 1388,
"inputs": [
{
"name": "_pool",
"type": "address"
}
],
"name": "get_admin_balances",
"outputs": [
{
"name": "",
"type": "uint256[2]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"gas": 20309,
"inputs": [
{
"name": "_pool",
"type": "address"
},
{
"name": "_from",
"type": "address"
},
{
"name": "_to",
"type": "address"
}
],
"name": "get_coin_indices",
"outputs": [
{
"name": "",
"type": "int128"
},
{
"name": "",
"type": "int128"
},
{
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"gas": 544334,
"inputs": [
{
"name": "_base_pool",
"type": "address"
},
{
"name": "_metapool_implementation",
"type": "address"
},
{
"name": "_fee_receiver",
"type": "address"
}
],
"name": "add_base_pool",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"gas": 851955,
"inputs": [
{
"name": "_base_pool",
"type": "address"
},
{
"name": "_name",
"type": "string"
},
{
"name": "_symbol",
"type": "string"
},
{
"name": "_coin",
"type": "address"
},
{
"name": "_A",
"type": "uint256"
},
{
"name": "_fee",
"type": "uint256"
}
],
"name": "deploy_metapool",
"outputs": [
{
"name": "",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"gas": 36668,
"inputs": [
{
"name": "addr",
"type": "address"
}
],
"name": "commit_transfer_ownership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"gas": 56619,
"inputs": [],
"name": "accept_transfer_ownership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"gas": 36943,
"inputs": [
{
"name": "_base_pool",
"type": "address"
},
{
"name": "_fee_receiver",
"type": "address"
}
],
"name": "set_fee_receiver",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"gas": 5237,
"inputs": [],
"name": "convert_fees",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"gas": 1631,
"inputs": [],
"name": "admin",
"outputs": [
{
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"gas": 1661,
"inputs": [],
"name": "future_admin",
"outputs": [
{
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"gas": 1800,
"inputs": [
{
"name": "arg0",
"type": "uint256"
}
],
"name": "pool_list",
"outputs": [
{
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"gas": 1721,
"inputs": [],
"name": "pool_count",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"gas": 1860,
"inputs": [
{
"name": "arg0",
"type": "uint256"
}
],
"name": "base_pool_list",
"outputs": [
{
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"gas": 1781,
"inputs": [],
"name": "base_pool_count",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"gas": 2026,
"inputs": [
{
"name": "arg0",
"type": "address"
}
],
"name": "fee_receiver",
"outputs": [
{
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
}
]

View File

@@ -1,17 +1,10 @@
pub mod crypto_pool_factory;
pub mod stableswap_factory;
pub mod susd;
pub mod pool_tricrypto;
pub mod pool_crypto_swap_ng;
pub mod pool_tricrypto2;
pub mod crypto_swap_ng_factory;
pub mod test;
pub mod meta_registry;
pub mod pool_steth;
pub mod pool;
pub mod tricrypto_factory;
pub mod main_registry;
pub mod pool_3pool;
pub mod erc20;
pub mod meta_pool_factory;
pub mod crypto_swap_registry;

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff