From 5f11a3dbda4012df4e886a04374dd83d59e3b892 Mon Sep 17 00:00:00 2001 From: mattmcd Date: Sat, 23 May 2020 14:44:13 +0100 Subject: [PATCH] Connect to Web3 via Infura. Get contract details and cache. --- README.md | 46 +++++++++++++++++++++++++++- cache/ALC.json | 1 + cache/BAT.json | 1 + cache/DAI.json | 1 + cache/HEX.json | 1 + cache/KNC.json | 1 + cache/LCS.json | 1 + cache/LINK.json | 1 + cache/MMTN.json | 1 + cache/MNE.json | 1 + cache/PAX.json | 1 + cache/POCC.json | 1 + cache/SNT.json | 1 + cache/USDC.json | 1 + cache/USDT.json | 1 + cache/WETH.json | 1 + cache/ZRX.json | 1 + cache/dYdX_PerpetualProxy.json | 1 + cache/dYdX_PerpetualV1.json | 1 + cache/dYdX_SoloMargin.json | 1 + cache/ethplorer_top20200523.json | 1 + cache/sUSD.json | 1 + infmon/eth.py | 51 ++++++++++++++++++++++++++++++++ 23 files changed, 117 insertions(+), 1 deletion(-) create mode 100644 cache/ALC.json create mode 100644 cache/BAT.json create mode 100644 cache/DAI.json create mode 100644 cache/HEX.json create mode 100644 cache/KNC.json create mode 100644 cache/LCS.json create mode 100644 cache/LINK.json create mode 100644 cache/MMTN.json create mode 100644 cache/MNE.json create mode 100644 cache/PAX.json create mode 100644 cache/POCC.json create mode 100644 cache/SNT.json create mode 100644 cache/USDC.json create mode 100644 cache/USDT.json create mode 100644 cache/WETH.json create mode 100644 cache/ZRX.json create mode 100644 cache/dYdX_PerpetualProxy.json create mode 100644 cache/dYdX_PerpetualV1.json create mode 100644 cache/dYdX_SoloMargin.json create mode 100644 cache/ethplorer_top20200523.json create mode 100644 cache/sUSD.json create mode 100644 infmon/eth.py diff --git a/README.md b/README.md index b2fefe1..ae020e0 100644 --- a/README.md +++ b/README.md @@ -85,4 +85,48 @@ each block if there are not removed transactions, and prints any removed transac 0xc4dc057c1fa6742128befb189d82ef727b0555fd3066f974e23864c3c4f09416: 74 0xf65a34ff8c131c3508f52a432b45e7a5d2c34bf2a4d8996c4e18d55d045a47dc: 36 0x16a18d1351190a69f7df34b7b5336deb3e257b9fb7b4b347b2e7962911aa6215: 15 - 0xb88fba7fba0b343335e2c1f5816e741a07631b86909ac106db91e45d4bbbfc59: 15 \ No newline at end of file + 0xb88fba7fba0b343335e2c1f5816e741a07631b86909ac106db91e45d4bbbfc59: 15 + +# Interesting contracts + +## Tokens + +Use [EthPlorer API](https://github.com/EverexIO/Ethplorer/wiki/Ethplorer-API) to retrieve list of top traded tokens as json + + curl https://api.ethplorer.io/getTopTokens?apiKey=freekey -o cache/ethplorer_top20200523.json + +## dYdX DEX +[Contract Addresses](https://docs.dydx.exchange/#/contracts) + + from infmon.eth import read_credentials, connect, get_contract + read_credentials('/home/mattmcd/.mattmcd') # Populates environment variables + w3 = connect() # Connects to mainnet via Infura and sets defaultAccount + + # Populate cache if needed - commented out + # c = get_contract('dYdX_SoloMargin', '0x1E0447b19BB6EcFdAe1e4AE1694b0C3659614e4e') + + # Connect to contract + solo = w3.eth.contract(**get_contract('dYdX_SoloMargin')) + + solo.all_functions() + Out[7]: + [, + , + , + ... + , + , + ] + + me = w3.eth.defaultAccount + + solo.functions.getMarket(0).call({'from': me.address}) + Out[10]: + ('0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2', + (17223105496066458626271, 101489418110876542971309), + (1010406097301649461, 1001404702877850791, 1590241097), + '0xf61AE328463CD997C7b58e7045CdC613e1cFdb69', + '0x7538651D874b7578CF52152c9ABD8f6617a38403', + (0,), + (0,), + False) \ No newline at end of file diff --git a/cache/ALC.json b/cache/ALC.json new file mode 100644 index 0000000..7339a4f --- /dev/null +++ b/cache/ALC.json @@ -0,0 +1 @@ +{"address": "0xa3f440ef604a6380a030360f85bb0dedb6db5a85", "abi": [{"constant": false, "inputs": [{"name": "_userPoolAddress", "type": "address"}, {"name": "_platformPoolAddress", "type": "address"}, {"name": "_smPoolAddress", "type": "address"}], "name": "setUserPoolAddress", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "name", "outputs": [{"name": "", "type": "string"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_spender", "type": "address"}, {"name": "_value", "type": "uint256"}], "name": "approve", "outputs": [{"name": "success", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "totalSupply", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "userPool", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_from", "type": "address"}, {"name": "_to", "type": "address"}, {"name": "_value", "type": "uint256"}], "name": "transferFrom", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_to", "type": "address"}, {"name": "_value", "type": "uint256"}], "name": "transferTo", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "decimals", "outputs": [{"name": "", "type": "uint8"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "platformPool", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_tos", "type": "address[]"}], "name": "transferETH", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_value", "type": "uint256"}], "name": "burn", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "getETHBalance", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "address"}], "name": "balanceOf", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_from", "type": "address"}, {"name": "_value", "type": "uint256"}, {"name": "key", "type": "string"}], "name": "burnTransfer", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_from", "type": "address"}, {"name": "_value", "type": "uint256"}], "name": "burnFrom", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_to", "type": "address"}, {"name": "_value", "type": "uint256"}], "name": "transferETH", "outputs": [{"name": "", "type": "bool"}], "payable": true, "stateMutability": "payable", "type": "function"}, {"constant": false, "inputs": [{"name": "key", "type": "string"}, {"name": "_burnPoolAddress", "type": "address"}], "name": "setBurnPoolAddress", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "owner", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_to", "type": "address[]"}, {"name": "_value", "type": "uint256[]"}], "name": "transferArray", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "symbol", "outputs": [{"name": "", "type": "string"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_to", "type": "address"}, {"name": "_value", "type": "uint256"}], "name": "transfer", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_to", "type": "address"}, {"name": "_value", "type": "uint256"}], "name": "smTransfer", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "key", "type": "string"}], "name": "getBurnPoolAddress", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_spender", "type": "address"}, {"name": "_value", "type": "uint256"}, {"name": "_extraData", "type": "bytes"}], "name": "approveAndCall", "outputs": [{"name": "success", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [], "name": "funding", "outputs": [{"name": "", "type": "bool"}], "payable": true, "stateMutability": "payable", "type": "function"}, {"constant": false, "inputs": [{"name": "_adr", "type": "address"}], "name": "setOwnerContracts", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "smPool", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_to", "type": "address"}], "name": "transferETH", "outputs": [{"name": "", "type": "bool"}], "payable": true, "stateMutability": "payable", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "address"}, {"name": "", "type": "address"}], "name": "allowance", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "transferETH", "outputs": [{"name": "", "type": "bool"}], "payable": true, "stateMutability": "payable", "type": "function"}, {"constant": true, "inputs": [], "name": "setCount", "outputs": [{"name": "", "type": "uint8"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "uint256"}], "name": "ownerContracts", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"inputs": [{"name": "initialSupply", "type": "uint256"}, {"name": "tokenName", "type": "string"}, {"name": "tokenSymbol", "type": "string"}], "payable": true, "stateMutability": "payable", "type": "constructor"}, {"payable": true, "stateMutability": "payable", "type": "fallback"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "from", "type": "address"}, {"indexed": true, "name": "to", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "Transfer", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "from", "type": "address"}, {"indexed": true, "name": "to", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "TransferETH", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "from", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "Burn", "type": "event"}]} \ No newline at end of file diff --git a/cache/BAT.json b/cache/BAT.json new file mode 100644 index 0000000..abcc6b7 --- /dev/null +++ b/cache/BAT.json @@ -0,0 +1 @@ +{"address": "0x0d8775f648430679a709e98d2b0cb6250d2887ef", "abi": [{"constant": true, "inputs": [], "name": "batFundDeposit", "outputs": [{"name": "", "type": "address"}], "payable": false, "type": "function"}, {"constant": true, "inputs": [], "name": "name", "outputs": [{"name": "", "type": "string"}], "payable": false, "type": "function"}, {"constant": false, "inputs": [{"name": "_spender", "type": "address"}, {"name": "_value", "type": "uint256"}], "name": "approve", "outputs": [{"name": "success", "type": "bool"}], "payable": false, "type": "function"}, {"constant": true, "inputs": [], "name": "totalSupply", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "type": "function"}, {"constant": true, "inputs": [], "name": "batFund", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "type": "function"}, {"constant": false, "inputs": [{"name": "_from", "type": "address"}, {"name": "_to", "type": "address"}, {"name": "_value", "type": "uint256"}], "name": "transferFrom", "outputs": [{"name": "success", "type": "bool"}], "payable": false, "type": "function"}, {"constant": true, "inputs": [], "name": "decimals", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "type": "function"}, {"constant": true, "inputs": [], "name": "tokenExchangeRate", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "type": "function"}, {"constant": false, "inputs": [], "name": "finalize", "outputs": [], "payable": false, "type": "function"}, {"constant": true, "inputs": [], "name": "version", "outputs": [{"name": "", "type": "string"}], "payable": false, "type": "function"}, {"constant": false, "inputs": [], "name": "refund", "outputs": [], "payable": false, "type": "function"}, {"constant": true, "inputs": [], "name": "tokenCreationCap", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "type": "function"}, {"constant": true, "inputs": [{"name": "_owner", "type": "address"}], "name": "balanceOf", "outputs": [{"name": "balance", "type": "uint256"}], "payable": false, "type": "function"}, {"constant": true, "inputs": [], "name": "isFinalized", "outputs": [{"name": "", "type": "bool"}], "payable": false, "type": "function"}, {"constant": true, "inputs": [], "name": "fundingEndBlock", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "type": "function"}, {"constant": true, "inputs": [], "name": "symbol", "outputs": [{"name": "", "type": "string"}], "payable": false, "type": "function"}, {"constant": true, "inputs": [], "name": "ethFundDeposit", "outputs": [{"name": "", "type": "address"}], "payable": false, "type": "function"}, {"constant": false, "inputs": [{"name": "_to", "type": "address"}, {"name": "_value", "type": "uint256"}], "name": "transfer", "outputs": [{"name": "success", "type": "bool"}], "payable": false, "type": "function"}, {"constant": false, "inputs": [], "name": "createTokens", "outputs": [], "payable": true, "type": "function"}, {"constant": true, "inputs": [], "name": "tokenCreationMin", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "type": "function"}, {"constant": true, "inputs": [], "name": "fundingStartBlock", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "type": "function"}, {"constant": true, "inputs": [{"name": "_owner", "type": "address"}, {"name": "_spender", "type": "address"}], "name": "allowance", "outputs": [{"name": "remaining", "type": "uint256"}], "payable": false, "type": "function"}, {"inputs": [{"name": "_ethFundDeposit", "type": "address"}, {"name": "_batFundDeposit", "type": "address"}, {"name": "_fundingStartBlock", "type": "uint256"}, {"name": "_fundingEndBlock", "type": "uint256"}], "payable": false, "type": "constructor"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "_to", "type": "address"}, {"indexed": false, "name": "_value", "type": "uint256"}], "name": "LogRefund", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "_to", "type": "address"}, {"indexed": false, "name": "_value", "type": "uint256"}], "name": "CreateBAT", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "_from", "type": "address"}, {"indexed": true, "name": "_to", "type": "address"}, {"indexed": false, "name": "_value", "type": "uint256"}], "name": "Transfer", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "_owner", "type": "address"}, {"indexed": true, "name": "_spender", "type": "address"}, {"indexed": false, "name": "_value", "type": "uint256"}], "name": "Approval", "type": "event"}]} \ No newline at end of file diff --git a/cache/DAI.json b/cache/DAI.json new file mode 100644 index 0000000..65a7f9a --- /dev/null +++ b/cache/DAI.json @@ -0,0 +1 @@ +{"address": "0x6b175474e89094c44da98b954eedeac495271d0f", "abi": [{"inputs": [{"internalType": "uint256", "name": "chainId_", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "src", "type": "address"}, {"indexed": true, "internalType": "address", "name": "guy", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "wad", "type": "uint256"}], "name": "Approval", "type": "event"}, {"anonymous": true, "inputs": [{"indexed": true, "internalType": "bytes4", "name": "sig", "type": "bytes4"}, {"indexed": true, "internalType": "address", "name": "usr", "type": "address"}, {"indexed": true, "internalType": "bytes32", "name": "arg1", "type": "bytes32"}, {"indexed": true, "internalType": "bytes32", "name": "arg2", "type": "bytes32"}, {"indexed": false, "internalType": "bytes", "name": "data", "type": "bytes"}], "name": "LogNote", "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": "wad", "type": "uint256"}], "name": "Transfer", "type": "event"}, {"constant": true, "inputs": [], "name": "DOMAIN_SEPARATOR", "outputs": [{"internalType": "bytes32", "name": "", "type": "bytes32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "PERMIT_TYPEHASH", "outputs": [{"internalType": "bytes32", "name": "", "type": "bytes32"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "", "type": "address"}, {"internalType": "address", "name": "", "type": "address"}], "name": "allowance", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "usr", "type": "address"}, {"internalType": "uint256", "name": "wad", "type": "uint256"}], "name": "approve", "outputs": [{"internalType": "bool", "name": "", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "", "type": "address"}], "name": "balanceOf", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "usr", "type": "address"}, {"internalType": "uint256", "name": "wad", "type": "uint256"}], "name": "burn", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "decimals", "outputs": [{"internalType": "uint8", "name": "", "type": "uint8"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "guy", "type": "address"}], "name": "deny", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "usr", "type": "address"}, {"internalType": "uint256", "name": "wad", "type": "uint256"}], "name": "mint", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "src", "type": "address"}, {"internalType": "address", "name": "dst", "type": "address"}, {"internalType": "uint256", "name": "wad", "type": "uint256"}], "name": "move", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "name", "outputs": [{"internalType": "string", "name": "", "type": "string"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "", "type": "address"}], "name": "nonces", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "holder", "type": "address"}, {"internalType": "address", "name": "spender", "type": "address"}, {"internalType": "uint256", "name": "nonce", "type": "uint256"}, {"internalType": "uint256", "name": "expiry", "type": "uint256"}, {"internalType": "bool", "name": "allowed", "type": "bool"}, {"internalType": "uint8", "name": "v", "type": "uint8"}, {"internalType": "bytes32", "name": "r", "type": "bytes32"}, {"internalType": "bytes32", "name": "s", "type": "bytes32"}], "name": "permit", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "usr", "type": "address"}, {"internalType": "uint256", "name": "wad", "type": "uint256"}], "name": "pull", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "usr", "type": "address"}, {"internalType": "uint256", "name": "wad", "type": "uint256"}], "name": "push", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "guy", "type": "address"}], "name": "rely", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "symbol", "outputs": [{"internalType": "string", "name": "", "type": "string"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "totalSupply", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "dst", "type": "address"}, {"internalType": "uint256", "name": "wad", "type": "uint256"}], "name": "transfer", "outputs": [{"internalType": "bool", "name": "", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "src", "type": "address"}, {"internalType": "address", "name": "dst", "type": "address"}, {"internalType": "uint256", "name": "wad", "type": "uint256"}], "name": "transferFrom", "outputs": [{"internalType": "bool", "name": "", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "version", "outputs": [{"internalType": "string", "name": "", "type": "string"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "", "type": "address"}], "name": "wards", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}]} \ No newline at end of file diff --git a/cache/HEX.json b/cache/HEX.json new file mode 100644 index 0000000..dfbe2fa --- /dev/null +++ b/cache/HEX.json @@ -0,0 +1 @@ +{"address": "0x2b591e99afe9f32eaa6214f7b7629768c40eeb39", "abi": [{"inputs": [], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "owner", "type": "address"}, {"indexed": true, "internalType": "address", "name": "spender", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "value", "type": "uint256"}], "name": "Approval", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "internalType": "uint256", "name": "data0", "type": "uint256"}, {"indexed": false, "internalType": "uint256", "name": "data1", "type": "uint256"}, {"indexed": true, "internalType": "bytes20", "name": "btcAddr", "type": "bytes20"}, {"indexed": true, "internalType": "address", "name": "claimToAddr", "type": "address"}, {"indexed": true, "internalType": "address", "name": "referrerAddr", "type": "address"}], "name": "Claim", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "internalType": "uint256", "name": "data0", "type": "uint256"}, {"indexed": false, "internalType": "uint256", "name": "data1", "type": "uint256"}, {"indexed": false, "internalType": "uint256", "name": "data2", "type": "uint256"}, {"indexed": true, "internalType": "address", "name": "senderAddr", "type": "address"}], "name": "ClaimAssist", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "internalType": "uint256", "name": "data0", "type": "uint256"}, {"indexed": true, "internalType": "address", "name": "updaterAddr", "type": "address"}], "name": "DailyDataUpdate", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "internalType": "uint256", "name": "data0", "type": "uint256"}, {"indexed": true, "internalType": "uint40", "name": "stakeId", "type": "uint40"}], "name": "ShareRateChange", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "internalType": "uint256", "name": "data0", "type": "uint256"}, {"indexed": false, "internalType": "uint256", "name": "data1", "type": "uint256"}, {"indexed": true, "internalType": "address", "name": "stakerAddr", "type": "address"}, {"indexed": true, "internalType": "uint40", "name": "stakeId", "type": "uint40"}], "name": "StakeEnd", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "internalType": "uint256", "name": "data0", "type": "uint256"}, {"indexed": false, "internalType": "uint256", "name": "data1", "type": "uint256"}, {"indexed": true, "internalType": "address", "name": "stakerAddr", "type": "address"}, {"indexed": true, "internalType": "uint40", "name": "stakeId", "type": "uint40"}, {"indexed": true, "internalType": "address", "name": "senderAddr", "type": "address"}], "name": "StakeGoodAccounting", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "internalType": "uint256", "name": "data0", "type": "uint256"}, {"indexed": true, "internalType": "address", "name": "stakerAddr", "type": "address"}, {"indexed": true, "internalType": "uint40", "name": "stakeId", "type": "uint40"}], "name": "StakeStart", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "from", "type": "address"}, {"indexed": true, "internalType": "address", "name": "to", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "value", "type": "uint256"}], "name": "Transfer", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "internalType": "uint256", "name": "data0", "type": "uint256"}, {"indexed": true, "internalType": "address", "name": "memberAddr", "type": "address"}, {"indexed": true, "internalType": "uint256", "name": "entryId", "type": "uint256"}, {"indexed": true, "internalType": "address", "name": "referrerAddr", "type": "address"}], "name": "XfLobbyEnter", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "internalType": "uint256", "name": "data0", "type": "uint256"}, {"indexed": true, "internalType": "address", "name": "memberAddr", "type": "address"}, {"indexed": true, "internalType": "uint256", "name": "entryId", "type": "uint256"}, {"indexed": true, "internalType": "address", "name": "referrerAddr", "type": "address"}], "name": "XfLobbyExit", "type": "event"}, {"payable": true, "stateMutability": "payable", "type": "fallback"}, {"constant": true, "inputs": [], "name": "allocatedSupply", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "owner", "type": "address"}, {"internalType": "address", "name": "spender", "type": "address"}], "name": "allowance", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "spender", "type": "address"}, {"internalType": "uint256", "name": "amount", "type": "uint256"}], "name": "approve", "outputs": [{"internalType": "bool", "name": "", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "account", "type": "address"}], "name": "balanceOf", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"internalType": "uint256", "name": "rawSatoshis", "type": "uint256"}, {"internalType": "bytes32[]", "name": "proof", "type": "bytes32[]"}, {"internalType": "address", "name": "claimToAddr", "type": "address"}, {"internalType": "bytes32", "name": "pubKeyX", "type": "bytes32"}, {"internalType": "bytes32", "name": "pubKeyY", "type": "bytes32"}, {"internalType": "uint8", "name": "claimFlags", "type": "uint8"}, {"internalType": "uint8", "name": "v", "type": "uint8"}, {"internalType": "bytes32", "name": "r", "type": "bytes32"}, {"internalType": "bytes32", "name": "s", "type": "bytes32"}, {"internalType": "uint256", "name": "autoStakeDays", "type": "uint256"}, {"internalType": "address", "name": "referrerAddr", "type": "address"}], "name": "btcAddressClaim", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"internalType": "bytes20", "name": "", "type": "bytes20"}], "name": "btcAddressClaims", "outputs": [{"internalType": "bool", "name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "bytes20", "name": "btcAddr", "type": "bytes20"}, {"internalType": "uint256", "name": "rawSatoshis", "type": "uint256"}, {"internalType": "bytes32[]", "name": "proof", "type": "bytes32[]"}], "name": "btcAddressIsClaimable", "outputs": [{"internalType": "bool", "name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "bytes20", "name": "btcAddr", "type": "bytes20"}, {"internalType": "uint256", "name": "rawSatoshis", "type": "uint256"}, {"internalType": "bytes32[]", "name": "proof", "type": "bytes32[]"}], "name": "btcAddressIsValid", "outputs": [{"internalType": "bool", "name": "", "type": "bool"}], "payable": false, "stateMutability": "pure", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "claimToAddr", "type": "address"}, {"internalType": "bytes32", "name": "claimParamHash", "type": "bytes32"}, {"internalType": "bytes32", "name": "pubKeyX", "type": "bytes32"}, {"internalType": "bytes32", "name": "pubKeyY", "type": "bytes32"}, {"internalType": "uint8", "name": "claimFlags", "type": "uint8"}, {"internalType": "uint8", "name": "v", "type": "uint8"}, {"internalType": "bytes32", "name": "r", "type": "bytes32"}, {"internalType": "bytes32", "name": "s", "type": "bytes32"}], "name": "claimMessageMatchesSignature", "outputs": [{"internalType": "bool", "name": "", "type": "bool"}], "payable": false, "stateMutability": "pure", "type": "function"}, {"constant": true, "inputs": [], "name": "currentDay", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "name": "dailyData", "outputs": [{"internalType": "uint72", "name": "dayPayoutTotal", "type": "uint72"}, {"internalType": "uint72", "name": "dayStakeSharesTotal", "type": "uint72"}, {"internalType": "uint56", "name": "dayUnclaimedSatoshisTotal", "type": "uint56"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "uint256", "name": "beginDay", "type": "uint256"}, {"internalType": "uint256", "name": "endDay", "type": "uint256"}], "name": "dailyDataRange", "outputs": [{"internalType": "uint256[]", "name": "list", "type": "uint256[]"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"internalType": "uint256", "name": "beforeDay", "type": "uint256"}], "name": "dailyDataUpdate", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "decimals", "outputs": [{"internalType": "uint8", "name": "", "type": "uint8"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "spender", "type": "address"}, {"internalType": "uint256", "name": "subtractedValue", "type": "uint256"}], "name": "decreaseAllowance", "outputs": [{"internalType": "bool", "name": "", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "globalInfo", "outputs": [{"internalType": "uint256[13]", "name": "", "type": "uint256[13]"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "globals", "outputs": [{"internalType": "uint72", "name": "lockedHeartsTotal", "type": "uint72"}, {"internalType": "uint72", "name": "nextStakeSharesTotal", "type": "uint72"}, {"internalType": "uint40", "name": "shareRate", "type": "uint40"}, {"internalType": "uint72", "name": "stakePenaltyTotal", "type": "uint72"}, {"internalType": "uint16", "name": "dailyDataCount", "type": "uint16"}, {"internalType": "uint72", "name": "stakeSharesTotal", "type": "uint72"}, {"internalType": "uint40", "name": "latestStakeId", "type": "uint40"}, {"internalType": "uint128", "name": "claimStats", "type": "uint128"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "spender", "type": "address"}, {"internalType": "uint256", "name": "addedValue", "type": "uint256"}], "name": "increaseAllowance", "outputs": [{"internalType": "bool", "name": "", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"internalType": "bytes32", "name": "merkleLeaf", "type": "bytes32"}, {"internalType": "bytes32[]", "name": "proof", "type": "bytes32[]"}], "name": "merkleProofIsValid", "outputs": [{"internalType": "bool", "name": "", "type": "bool"}], "payable": false, "stateMutability": "pure", "type": "function"}, {"constant": true, "inputs": [], "name": "name", "outputs": [{"internalType": "string", "name": "", "type": "string"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "bytes32", "name": "pubKeyX", "type": "bytes32"}, {"internalType": "bytes32", "name": "pubKeyY", "type": "bytes32"}, {"internalType": "uint8", "name": "claimFlags", "type": "uint8"}], "name": "pubKeyToBtcAddress", "outputs": [{"internalType": "bytes20", "name": "", "type": "bytes20"}], "payable": false, "stateMutability": "pure", "type": "function"}, {"constant": true, "inputs": [{"internalType": "bytes32", "name": "pubKeyX", "type": "bytes32"}, {"internalType": "bytes32", "name": "pubKeyY", "type": "bytes32"}], "name": "pubKeyToEthAddress", "outputs": [{"internalType": "address", "name": "", "type": "address"}], "payable": false, "stateMutability": "pure", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "stakerAddr", "type": "address"}], "name": "stakeCount", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"internalType": "uint256", "name": "stakeIndex", "type": "uint256"}, {"internalType": "uint40", "name": "stakeIdParam", "type": "uint40"}], "name": "stakeEnd", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "stakerAddr", "type": "address"}, {"internalType": "uint256", "name": "stakeIndex", "type": "uint256"}, {"internalType": "uint40", "name": "stakeIdParam", "type": "uint40"}], "name": "stakeGoodAccounting", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "", "type": "address"}, {"internalType": "uint256", "name": "", "type": "uint256"}], "name": "stakeLists", "outputs": [{"internalType": "uint40", "name": "stakeId", "type": "uint40"}, {"internalType": "uint72", "name": "stakedHearts", "type": "uint72"}, {"internalType": "uint72", "name": "stakeShares", "type": "uint72"}, {"internalType": "uint16", "name": "lockedDay", "type": "uint16"}, {"internalType": "uint16", "name": "stakedDays", "type": "uint16"}, {"internalType": "uint16", "name": "unlockedDay", "type": "uint16"}, {"internalType": "bool", "name": "isAutoStake", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"internalType": "uint256", "name": "newStakedHearts", "type": "uint256"}, {"internalType": "uint256", "name": "newStakedDays", "type": "uint256"}], "name": "stakeStart", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "symbol", "outputs": [{"internalType": "string", "name": "", "type": "string"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "totalSupply", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "recipient", "type": "address"}, {"internalType": "uint256", "name": "amount", "type": "uint256"}], "name": "transfer", "outputs": [{"internalType": "bool", "name": "", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "sender", "type": "address"}, {"internalType": "address", "name": "recipient", "type": "address"}, {"internalType": "uint256", "name": "amount", "type": "uint256"}], "name": "transferFrom", "outputs": [{"internalType": "bool", "name": "", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "name": "xfLobby", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "referrerAddr", "type": "address"}], "name": "xfLobbyEnter", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "memberAddr", "type": "address"}, {"internalType": "uint256", "name": "entryId", "type": "uint256"}], "name": "xfLobbyEntry", "outputs": [{"internalType": "uint256", "name": "rawAmount", "type": "uint256"}, {"internalType": "address", "name": "referrerAddr", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"internalType": "uint256", "name": "enterDay", "type": "uint256"}, {"internalType": "uint256", "name": "count", "type": "uint256"}], "name": "xfLobbyExit", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [], "name": "xfLobbyFlush", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"internalType": "uint256", "name": "", "type": "uint256"}, {"internalType": "address", "name": "", "type": "address"}], "name": "xfLobbyMembers", "outputs": [{"internalType": "uint40", "name": "headIndex", "type": "uint40"}, {"internalType": "uint40", "name": "tailIndex", "type": "uint40"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "memberAddr", "type": "address"}], "name": "xfLobbyPendingDays", "outputs": [{"internalType": "uint256[2]", "name": "words", "type": "uint256[2]"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "uint256", "name": "beginDay", "type": "uint256"}, {"internalType": "uint256", "name": "endDay", "type": "uint256"}], "name": "xfLobbyRange", "outputs": [{"internalType": "uint256[]", "name": "list", "type": "uint256[]"}], "payable": false, "stateMutability": "view", "type": "function"}]} \ No newline at end of file diff --git a/cache/KNC.json b/cache/KNC.json new file mode 100644 index 0000000..6e77408 --- /dev/null +++ b/cache/KNC.json @@ -0,0 +1 @@ +{"address": "0xdd974d5c2e2928dea5f71b9825b8b646686bd200", "abi": [{"constant": true, "inputs": [], "name": "name", "outputs": [{"name": "", "type": "string"}], "payable": false, "type": "function"}, {"constant": false, "inputs": [{"name": "_spender", "type": "address"}, {"name": "_value", "type": "uint256"}], "name": "approve", "outputs": [{"name": "", "type": "bool"}], "payable": false, "type": "function"}, {"constant": true, "inputs": [], "name": "totalSupply", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "type": "function"}, {"constant": true, "inputs": [], "name": "saleStartTime", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "type": "function"}, {"constant": false, "inputs": [{"name": "_from", "type": "address"}, {"name": "_to", "type": "address"}, {"name": "_value", "type": "uint256"}], "name": "transferFrom", "outputs": [{"name": "", "type": "bool"}], "payable": false, "type": "function"}, {"constant": true, "inputs": [], "name": "decimals", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "type": "function"}, {"constant": false, "inputs": [{"name": "_value", "type": "uint256"}], "name": "burn", "outputs": [{"name": "", "type": "bool"}], "payable": false, "type": "function"}, {"constant": true, "inputs": [], "name": "tokenSaleContract", "outputs": [{"name": "", "type": "address"}], "payable": false, "type": "function"}, {"constant": true, "inputs": [{"name": "_owner", "type": "address"}], "name": "balanceOf", "outputs": [{"name": "balance", "type": "uint256"}], "payable": false, "type": "function"}, {"constant": false, "inputs": [{"name": "_from", "type": "address"}, {"name": "_value", "type": "uint256"}], "name": "burnFrom", "outputs": [{"name": "", "type": "bool"}], "payable": false, "type": "function"}, {"constant": true, "inputs": [], "name": "owner", "outputs": [{"name": "", "type": "address"}], "payable": false, "type": "function"}, {"constant": true, "inputs": [], "name": "symbol", "outputs": [{"name": "", "type": "string"}], "payable": false, "type": "function"}, {"constant": false, "inputs": [{"name": "_to", "type": "address"}, {"name": "_value", "type": "uint256"}], "name": "transfer", "outputs": [{"name": "", "type": "bool"}], "payable": false, "type": "function"}, {"constant": false, "inputs": [{"name": "token", "type": "address"}, {"name": "amount", "type": "uint256"}], "name": "emergencyERC20Drain", "outputs": [], "payable": false, "type": "function"}, {"constant": true, "inputs": [{"name": "_owner", "type": "address"}, {"name": "_spender", "type": "address"}], "name": "allowance", "outputs": [{"name": "remaining", "type": "uint256"}], "payable": false, "type": "function"}, {"constant": true, "inputs": [], "name": "saleEndTime", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "type": "function"}, {"constant": false, "inputs": [{"name": "newOwner", "type": "address"}], "name": "transferOwnership", "outputs": [], "payable": false, "type": "function"}, {"inputs": [{"name": "tokenTotalAmount", "type": "uint256"}, {"name": "startTime", "type": "uint256"}, {"name": "endTime", "type": "uint256"}, {"name": "admin", "type": "address"}], "payable": false, "type": "constructor"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "_burner", "type": "address"}, {"indexed": false, "name": "_value", "type": "uint256"}], "name": "Burn", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "_owner", "type": "address"}, {"indexed": true, "name": "_spender", "type": "address"}, {"indexed": false, "name": "_value", "type": "uint256"}], "name": "Approval", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "_from", "type": "address"}, {"indexed": true, "name": "_to", "type": "address"}, {"indexed": false, "name": "_value", "type": "uint256"}], "name": "Transfer", "type": "event"}]} \ No newline at end of file diff --git a/cache/LCS.json b/cache/LCS.json new file mode 100644 index 0000000..2fd4e55 --- /dev/null +++ b/cache/LCS.json @@ -0,0 +1 @@ +{"address": "0xe62e6e6c3b808faad3a54b226379466544d76ea4", "abi": [{"constant": false, "inputs": [{"name": "_userPoolAddress", "type": "address"}, {"name": "_platformPoolAddress", "type": "address"}, {"name": "_smPoolAddress", "type": "address"}], "name": "setUserPoolAddress", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "name", "outputs": [{"name": "", "type": "string"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_spender", "type": "address"}, {"name": "_value", "type": "uint256"}], "name": "approve", "outputs": [{"name": "success", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "totalSupply", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "userPool", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_from", "type": "address"}, {"name": "_to", "type": "address"}, {"name": "_value", "type": "uint256"}], "name": "transferFrom", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_to", "type": "address"}, {"name": "_value", "type": "uint256"}], "name": "transferTo", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "decimals", "outputs": [{"name": "", "type": "uint8"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "platformPool", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_tos", "type": "address[]"}], "name": "transferETH", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_value", "type": "uint256"}], "name": "burn", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "getETHBalance", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "address"}], "name": "balanceOf", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_from", "type": "address"}, {"name": "_value", "type": "uint256"}, {"name": "key", "type": "string"}], "name": "burnTransfer", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_from", "type": "address"}, {"name": "_value", "type": "uint256"}], "name": "burnFrom", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_to", "type": "address"}, {"name": "_value", "type": "uint256"}], "name": "transferETH", "outputs": [{"name": "", "type": "bool"}], "payable": true, "stateMutability": "payable", "type": "function"}, {"constant": false, "inputs": [{"name": "key", "type": "string"}, {"name": "_burnPoolAddress", "type": "address"}], "name": "setBurnPoolAddress", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "owner", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_to", "type": "address[]"}, {"name": "_value", "type": "uint256[]"}], "name": "transferArray", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "symbol", "outputs": [{"name": "", "type": "string"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_to", "type": "address"}, {"name": "_value", "type": "uint256"}], "name": "transfer", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_to", "type": "address"}, {"name": "_value", "type": "uint256"}], "name": "smTransfer", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "key", "type": "string"}], "name": "getBurnPoolAddress", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_spender", "type": "address"}, {"name": "_value", "type": "uint256"}, {"name": "_extraData", "type": "bytes"}], "name": "approveAndCall", "outputs": [{"name": "success", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [], "name": "funding", "outputs": [{"name": "", "type": "bool"}], "payable": true, "stateMutability": "payable", "type": "function"}, {"constant": false, "inputs": [{"name": "_adr", "type": "address"}], "name": "setOwnerContracts", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "smPool", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_to", "type": "address"}], "name": "transferETH", "outputs": [{"name": "", "type": "bool"}], "payable": true, "stateMutability": "payable", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "address"}, {"name": "", "type": "address"}], "name": "allowance", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "transferETH", "outputs": [{"name": "", "type": "bool"}], "payable": true, "stateMutability": "payable", "type": "function"}, {"constant": false, "inputs": [{"name": "_newOwner", "type": "address"}], "name": "transferOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "uint256"}], "name": "ownerContracts", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"inputs": [{"name": "initialSupply", "type": "uint256"}, {"name": "tokenName", "type": "string"}, {"name": "tokenSymbol", "type": "string"}], "payable": true, "stateMutability": "payable", "type": "constructor"}, {"payable": true, "stateMutability": "payable", "type": "fallback"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "from", "type": "address"}, {"indexed": true, "name": "to", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "Transfer", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "from", "type": "address"}, {"indexed": true, "name": "to", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "TransferETH", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "from", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "Burn", "type": "event"}]} \ No newline at end of file diff --git a/cache/LINK.json b/cache/LINK.json new file mode 100644 index 0000000..edc8be4 --- /dev/null +++ b/cache/LINK.json @@ -0,0 +1 @@ +{"address": "0x514910771af9ca656af840dff83e8264ecf986ca", "abi": [{"constant": true, "inputs": [], "name": "name", "outputs": [{"name": "", "type": "string"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_spender", "type": "address"}, {"name": "_value", "type": "uint256"}], "name": "approve", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "totalSupply", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_from", "type": "address"}, {"name": "_to", "type": "address"}, {"name": "_value", "type": "uint256"}], "name": "transferFrom", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "decimals", "outputs": [{"name": "", "type": "uint8"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_to", "type": "address"}, {"name": "_value", "type": "uint256"}, {"name": "_data", "type": "bytes"}], "name": "transferAndCall", "outputs": [{"name": "success", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_spender", "type": "address"}, {"name": "_subtractedValue", "type": "uint256"}], "name": "decreaseApproval", "outputs": [{"name": "success", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_owner", "type": "address"}], "name": "balanceOf", "outputs": [{"name": "balance", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "symbol", "outputs": [{"name": "", "type": "string"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_to", "type": "address"}, {"name": "_value", "type": "uint256"}], "name": "transfer", "outputs": [{"name": "success", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_spender", "type": "address"}, {"name": "_addedValue", "type": "uint256"}], "name": "increaseApproval", "outputs": [{"name": "success", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_owner", "type": "address"}, {"name": "_spender", "type": "address"}], "name": "allowance", "outputs": [{"name": "remaining", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"inputs": [], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "from", "type": "address"}, {"indexed": true, "name": "to", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}, {"indexed": false, "name": "data", "type": "bytes"}], "name": "Transfer", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "owner", "type": "address"}, {"indexed": true, "name": "spender", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "Approval", "type": "event"}]} \ No newline at end of file diff --git a/cache/MMTN.json b/cache/MMTN.json new file mode 100644 index 0000000..5e76cf9 --- /dev/null +++ b/cache/MMTN.json @@ -0,0 +1 @@ +{"address": "0x4d58b1e8007078ecc6eaf6df7527b64e46831d23", "abi": [{"inputs": [], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "owner", "type": "address"}, {"indexed": true, "internalType": "address", "name": "spender", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "value", "type": "uint256"}], "name": "Approval", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "account", "type": "address"}], "name": "MinterAdded", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "account", "type": "address"}], "name": "MinterRemoved", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "from", "type": "address"}, {"indexed": true, "internalType": "address", "name": "to", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "value", "type": "uint256"}], "name": "Transfer", "type": "event"}, {"constant": false, "inputs": [{"internalType": "address", "name": "account", "type": "address"}], "name": "addMinter", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "owner", "type": "address"}, {"internalType": "address", "name": "spender", "type": "address"}], "name": "allowance", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "spender", "type": "address"}, {"internalType": "uint256", "name": "amount", "type": "uint256"}], "name": "approve", "outputs": [{"internalType": "bool", "name": "", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "account", "type": "address"}], "name": "balanceOf", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"internalType": "uint256", "name": "amount", "type": "uint256"}], "name": "burn", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "account", "type": "address"}, {"internalType": "uint256", "name": "amount", "type": "uint256"}], "name": "burnFrom", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "decimals", "outputs": [{"internalType": "uint8", "name": "", "type": "uint8"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "spender", "type": "address"}, {"internalType": "uint256", "name": "subtractedValue", "type": "uint256"}], "name": "decreaseAllowance", "outputs": [{"internalType": "bool", "name": "", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "spender", "type": "address"}, {"internalType": "uint256", "name": "addedValue", "type": "uint256"}], "name": "increaseAllowance", "outputs": [{"internalType": "bool", "name": "", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "account", "type": "address"}], "name": "isMinter", "outputs": [{"internalType": "bool", "name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "account", "type": "address"}, {"internalType": "uint256", "name": "amount", "type": "uint256"}], "name": "mint", "outputs": [{"internalType": "bool", "name": "", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "name", "outputs": [{"internalType": "string", "name": "", "type": "string"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "renounceMinter", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "symbol", "outputs": [{"internalType": "string", "name": "", "type": "string"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "totalSupply", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "recipient", "type": "address"}, {"internalType": "uint256", "name": "amount", "type": "uint256"}], "name": "transfer", "outputs": [{"internalType": "bool", "name": "", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "sender", "type": "address"}, {"internalType": "address", "name": "recipient", "type": "address"}, {"internalType": "uint256", "name": "amount", "type": "uint256"}], "name": "transferFrom", "outputs": [{"internalType": "bool", "name": "", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address[]", "name": "recipients", "type": "address[]"}, {"internalType": "uint256[]", "name": "amounts", "type": "uint256[]"}], "name": "transferMulti", "outputs": [{"internalType": "bool", "name": "", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}]} \ No newline at end of file diff --git a/cache/MNE.json b/cache/MNE.json new file mode 100644 index 0000000..5a4521d --- /dev/null +++ b/cache/MNE.json @@ -0,0 +1 @@ +{"address": "0x426ca1ea2406c07d75db9585f22781c096e3d0e0", "abi": [{"inputs": [{"internalType": "address", "name": "_publicCallsAddress", "type": "address"}, {"internalType": "address", "name": "_publicArraysAddress", "type": "address"}, {"internalType": "address", "name": "_genesisCallsAddress", "type": "address"}, {"internalType": "address", "name": "_normalAddressAddress", "type": "address"}, {"internalType": "address", "name": "_stakesAddress", "type": "address"}, {"internalType": "address", "name": "_stakesBuysAddress", "type": "address"}, {"internalType": "address", "name": "_genesisBuysAddress", "type": "address"}, {"internalType": "address", "name": "_tokenServiceAddress", "type": "address"}, {"internalType": "address", "name": "_baseTransfersAddress", "type": "address"}], "stateMutability": "nonpayable", "type": "constructor"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "_owner", "type": "address"}, {"indexed": true, "internalType": "address", "name": "_spender", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "_value", "type": "uint256"}], "name": "Approval", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "to", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "balance", "type": "uint256"}, {"indexed": false, "internalType": "uint256", "name": "amountToSend", "type": "uint256"}], "name": "LogFailedStakeHolderSends", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "to", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "balance", "type": "uint256"}, {"indexed": false, "internalType": "uint256", "name": "amountToSend", "type": "uint256"}], "name": "LogStakeHolderSends", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "from", "type": "address"}, {"indexed": true, "internalType": "address", "name": "to", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "value", "type": "uint256"}], "name": "StakeTransfer", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "from", "type": "address"}, {"indexed": false, "internalType": "address", "name": "contractAdd", "type": "address"}], "name": "TokenCreation", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "from", "type": "address"}, {"indexed": false, "internalType": "address", "name": "contractAdd", "type": "address"}], "name": "TokenCreationICO", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "from", "type": "address"}, {"indexed": true, "internalType": "address", "name": "to", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "value", "type": "uint256"}], "name": "Transfer", "type": "event"}, {"inputs": [{"internalType": "address", "name": "_address", "type": "address"}], "name": "AllowAddressToDestroyGenesis", "outputs": [], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [], "name": "AllowReceiveGenesisTransfers", "outputs": [], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"internalType": "address[]", "name": "_genesisAddressesToBurn", "type": "address[]"}], "name": "BurnGenesisAddresses", "outputs": [], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"internalType": "uint256", "name": "mneToBurn", "type": "uint256"}], "name": "BurnTokens", "outputs": [{"internalType": "bool", "name": "success", "type": "bool"}], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"internalType": "address payable", "name": "_address", "type": "address"}], "name": "BuyGenesisAddress", "outputs": [], "stateMutability": "payable", "type": "function"}, {"inputs": [{"internalType": "address payable", "name": "_address", "type": "address"}], "name": "BuyGenesisLevel1FromNormal", "outputs": [], "stateMutability": "payable", "type": "function"}, {"inputs": [{"internalType": "address payable", "name": "_address", "type": "address"}], "name": "BuyGenesisLevel2FromNormal", "outputs": [], "stateMutability": "payable", "type": "function"}, {"inputs": [{"internalType": "address payable", "name": "_address", "type": "address"}], "name": "BuyGenesisLevel3FromNormal", "outputs": [], "stateMutability": "payable", "type": "function"}, {"inputs": [{"internalType": "uint256[]", "name": "max", "type": "uint256[]"}], "name": "BuyLuckyDrawTickets", "outputs": [], "stateMutability": "payable", "type": "function"}, {"inputs": [{"internalType": "address payable", "name": "_address", "type": "address"}], "name": "BuyNormalAddress", "outputs": [], "stateMutability": "payable", "type": "function"}, {"inputs": [{"internalType": "address payable", "name": "_address", "type": "address"}, {"internalType": "address[]", "name": "_genesisAddressesToBurn", "type": "address[]"}], "name": "BuyStakeGenesis", "outputs": [], "stateMutability": "payable", "type": "function"}, {"inputs": [{"internalType": "address payable", "name": "_address", "type": "address"}], "name": "BuyStakeMNE", "outputs": [], "stateMutability": "payable", "type": "function"}, {"inputs": [], "name": "ContractTransferAllFundsOut", "outputs": [], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [], "name": "CreateToken", "outputs": [], "stateMutability": "payable", "type": "function"}, {"inputs": [], "name": "CreateTokenICO", "outputs": [], "stateMutability": "payable", "type": "function"}, {"inputs": [], "name": "Payment", "outputs": [], "stateMutability": "payable", "type": "function"}, {"inputs": [], "name": "PayoutStakeHolders", "outputs": [], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"internalType": "uint256", "name": "_mneAmount", "type": "uint256"}, {"internalType": "address[]", "name": "_addressList", "type": "address[]"}, {"internalType": "uint256[]", "name": "_uintList", "type": "uint256[]"}], "name": "ReceiverFunction1", "outputs": [], "stateMutability": "payable", "type": "function"}, {"inputs": [], "name": "RemoveAllowAddressToDestroyGenesis", "outputs": [], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [], "name": "RemoveAllowReceiveGenesisTransfers", "outputs": [], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [], "name": "RemoveGenesisAddressFromSale", "outputs": [], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [], "name": "RemoveNormalAddressFromSale", "outputs": [], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [], "name": "RemoveStakeFromSale", "outputs": [], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"internalType": "address[]", "name": "_addressList", "type": "address[]"}, {"internalType": "uint256[]", "name": "_uintList", "type": "uint256[]"}], "name": "ServiceFunction1", "outputs": [], "stateMutability": "payable", "type": "function"}, {"inputs": [{"internalType": "bool", "name": "toBlock", "type": "bool"}], "name": "SetBlockPayouts", "outputs": [], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"internalType": "uint256", "name": "weiPrice", "type": "uint256"}], "name": "SetGenesisForSale", "outputs": [], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"internalType": "uint256", "name": "weiPricePerMNE", "type": "uint256"}], "name": "SetNormalAddressForSale", "outputs": [], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"internalType": "uint256", "name": "priceInWei", "type": "uint256"}], "name": "SetStakeForSale", "outputs": [], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"internalType": "address", "name": "_to", "type": "address"}, {"internalType": "uint256", "name": "_value", "type": "uint256"}, {"internalType": "address[]", "name": "_genesisAddressesToBurn", "type": "address[]"}], "name": "StakeTransferGenesis", "outputs": [], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"internalType": "address", "name": "_to", "type": "address"}, {"internalType": "uint256", "name": "_value", "type": "uint256"}], "name": "StakeTransferMNE", "outputs": [], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"internalType": "uint256", "name": "_amountToStake", "type": "uint256"}, {"internalType": "address[]", "name": "_addressList", "type": "address[]"}, {"internalType": "uint256[]", "name": "uintList", "type": "uint256[]"}], "name": "Staking", "outputs": [], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"internalType": "address", "name": "_to", "type": "address"}], "name": "TransferGenesis", "outputs": [], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"internalType": "address[]", "name": "_addresses", "type": "address[]"}], "name": "UpgradeOthersToLevel2FromLevel1", "outputs": [], "stateMutability": "payable", "type": "function"}, {"inputs": [{"internalType": "address[]", "name": "_addresses", "type": "address[]"}], "name": "UpgradeOthersToLevel3FromDev", "outputs": [], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"internalType": "address[]", "name": "_addresses", "type": "address[]"}], "name": "UpgradeOthersToLevel3FromLevel1", "outputs": [], "stateMutability": "payable", "type": "function"}, {"inputs": [{"internalType": "address[]", "name": "_addresses", "type": "address[]"}], "name": "UpgradeOthersToLevel3FromLevel2", "outputs": [], "stateMutability": "payable", "type": "function"}, {"inputs": [], "name": "UpgradeToLevel2FromLevel1", "outputs": [], "stateMutability": "payable", "type": "function"}, {"inputs": [], "name": "UpgradeToLevel3FromDev", "outputs": [], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [], "name": "UpgradeToLevel3FromLevel1", "outputs": [], "stateMutability": "payable", "type": "function"}, {"inputs": [], "name": "UpgradeToLevel3FromLevel2", "outputs": [], "stateMutability": "payable", "type": "function"}, {"inputs": [{"internalType": "address", "name": "_owner", "type": "address"}, {"internalType": "address", "name": "_spender", "type": "address"}], "name": "allowance", "outputs": [{"internalType": "uint256", "name": "remaining", "type": "uint256"}], "stateMutability": "view", "type": "function"}, {"inputs": [{"internalType": "uint256", "name": "_amountOfGenesisToBuyStakes", "type": "uint256"}], "name": "amountOfGenesisToBuyStakesSet", "outputs": [], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"internalType": "uint256", "name": "_amountOfGenesisToTransferStakes", "type": "uint256"}], "name": "amountOfGenesisToTransferStakesSet", "outputs": [], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"internalType": "uint256", "name": "_amountOfMNEForTokenICO", "type": "uint256"}], "name": "amountOfMNEForTokenICOSet", "outputs": [], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"internalType": "uint256", "name": "_amountOfMNEForToken", "type": "uint256"}], "name": "amountOfMNEForTokenSet", "outputs": [], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"internalType": "uint256", "name": "_amountOfMNEToBuyStakes", "type": "uint256"}], "name": "amountOfMNEToBuyStakesSet", "outputs": [], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"internalType": "uint256", "name": "_amountOfMNEToTransferStakes", "type": "uint256"}], "name": "amountOfMNEToTransferStakesSet", "outputs": [], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"internalType": "address", "name": "_spender", "type": "address"}, {"internalType": "uint256", "name": "_amount", "type": "uint256"}], "name": "approve", "outputs": [{"internalType": "bool", "name": "success", "type": "bool"}], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"internalType": "address", "name": "_address", "type": "address"}], "name": "availableBalanceOf", "outputs": [{"internalType": "uint256", "name": "Balance", "type": "uint256"}], "stateMutability": "view", "type": "function"}, {"inputs": [{"internalType": "address", "name": "_address", "type": "address"}], "name": "balanceOf", "outputs": [{"internalType": "uint256", "name": "balance", "type": "uint256"}], "stateMutability": "view", "type": "function"}, {"inputs": [], "name": "bst", "outputs": [{"internalType": "contract baseTransfers", "name": "", "type": "address"}], "stateMutability": "view", "type": "function"}, {"inputs": [], "name": "currentBlock", "outputs": [{"internalType": "uint256", "name": "blockNumber", "type": "uint256"}], "stateMutability": "view", "type": "function"}, {"inputs": [], "name": "currentEthBlock", "outputs": [{"internalType": "uint256", "name": "blockNumber", "type": "uint256"}], "stateMutability": "view", "type": "function"}, {"inputs": [], "name": "decimals", "outputs": [{"internalType": "uint8", "name": "", "type": "uint8"}], "stateMutability": "view", "type": "function"}, {"inputs": [{"internalType": "uint256", "name": "_ethFeeForSellerLevel1", "type": "uint256"}], "name": "ethFeeForSellerLevel1Set", "outputs": [], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"internalType": "uint256", "name": "_ethFeeForTokenICO", "type": "uint256"}], "name": "ethFeeForTokenICOSet", "outputs": [], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"internalType": "uint256", "name": "_ethFeeForToken", "type": "uint256"}], "name": "ethFeeForTokenSet", "outputs": [], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"internalType": "uint256", "name": "_ethFeeToBuyLevel1", "type": "uint256"}], "name": "ethFeeToBuyLevel1Set", "outputs": [], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"internalType": "uint256", "name": "_ethFeeToUpgradeToLevel2", "type": "uint256"}], "name": "ethFeeToUpgradeToLevel2Set", "outputs": [], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"internalType": "uint256", "name": "_ethFeeToUpgradeToLevel3", "type": "uint256"}], "name": "ethFeeToUpgradeToLevel3Set", "outputs": [], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"internalType": "uint256", "name": "_ethPercentFeeGenesisExchange", "type": "uint256"}], "name": "ethPercentFeeGenesisExchangeSet", "outputs": [], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"internalType": "uint256", "name": "_ethPercentFeeNormalExchange", "type": "uint256"}], "name": "ethPercentFeeNormalExchangeSet", "outputs": [], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"internalType": "uint256", "name": "_ethPercentStakeExchange", "type": "uint256"}], "name": "ethPercentStakeExchangeSet", "outputs": [], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [], "name": "extR1", "outputs": [{"internalType": "contract externalReceiver", "name": "", "type": "address"}], "stateMutability": "view", "type": "function"}, {"inputs": [], "name": "extS1", "outputs": [{"internalType": "contract externalService", "name": "", "type": "address"}], "stateMutability": "view", "type": "function"}, {"inputs": [{"internalType": "address", "name": "_address", "type": "address"}], "name": "externalReceiver1", "outputs": [], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"internalType": "address", "name": "_address", "type": "address"}], "name": "externalService1", "outputs": [], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [], "name": "gn", "outputs": [{"internalType": "contract genesisCalls", "name": "", "type": "address"}], "stateMutability": "view", "type": "function"}, {"inputs": [], "name": "gnb", "outputs": [{"internalType": "contract genesisBuys", "name": "", "type": "address"}], "stateMutability": "view", "type": "function"}, {"inputs": [{"internalType": "address", "name": "_address", "type": "address"}], "name": "isAnyGenesisAddress", "outputs": [{"internalType": "bool", "name": "success", "type": "bool"}], "stateMutability": "view", "type": "function"}, {"inputs": [{"internalType": "address", "name": "_address", "type": "address"}], "name": "isGenesisAddressLevel1", "outputs": [{"internalType": "bool", "name": "success", "type": "bool"}], "stateMutability": "view", "type": "function"}, {"inputs": [{"internalType": "address", "name": "_address", "type": "address"}], "name": "isGenesisAddressLevel2", "outputs": [{"internalType": "bool", "name": "success", "type": "bool"}], "stateMutability": "view", "type": "function"}, {"inputs": [{"internalType": "address", "name": "_address", "type": "address"}], "name": "isGenesisAddressLevel2Or3", "outputs": [{"internalType": "bool", "name": "success", "type": "bool"}], "stateMutability": "view", "type": "function"}, {"inputs": [{"internalType": "address", "name": "_address", "type": "address"}], "name": "isGenesisAddressLevel3", "outputs": [{"internalType": "bool", "name": "success", "type": "bool"}], "stateMutability": "view", "type": "function"}, {"inputs": [], "name": "lkd", "outputs": [{"internalType": "contract luckyDraw", "name": "", "type": "address"}], "stateMutability": "view", "type": "function"}, {"inputs": [{"internalType": "address", "name": "_address", "type": "address"}], "name": "loadLuckyDraw", "outputs": [], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"internalType": "address", "name": "_address", "type": "address"}], "name": "loadMNEStaking", "outputs": [], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [], "name": "mneStk", "outputs": [{"internalType": "contract mneStaking", "name": "", "type": "address"}], "stateMutability": "view", "type": "function"}, {"inputs": [], "name": "na", "outputs": [{"internalType": "contract normalAddress", "name": "", "type": "address"}], "stateMutability": "view", "type": "function"}, {"inputs": [], "name": "name", "outputs": [{"internalType": "string", "name": "", "type": "string"}], "stateMutability": "view", "type": "function"}, {"inputs": [], "name": "pa", "outputs": [{"internalType": "contract publicArrays", "name": "", "type": "address"}], "stateMutability": "view", "type": "function"}, {"inputs": [], "name": "payoutBlocked", "outputs": [{"internalType": "bool", "name": "", "type": "bool"}], "stateMutability": "view", "type": "function"}, {"inputs": [], "name": "payoutOwner", "outputs": [{"internalType": "address", "name": "", "type": "address"}], "stateMutability": "view", "type": "function"}, {"inputs": [], "name": "pc", "outputs": [{"internalType": "contract publicCalls", "name": "", "type": "address"}], "stateMutability": "view", "type": "function"}, {"inputs": [{"internalType": "address[]", "name": "_addressList", "type": "address[]"}], "name": "registerAddresses", "outputs": [], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"internalType": "address[]", "name": "_addressList", "type": "address[]"}, {"internalType": "uint256", "name": "_value", "type": "uint256"}], "name": "registerAddressesValue", "outputs": [], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"internalType": "address", "name": "_address", "type": "address"}], "name": "reloadBaseTransfers", "outputs": [], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"internalType": "address", "name": "_address", "type": "address"}], "name": "reloadGenesis", "outputs": [], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"internalType": "address", "name": "_address", "type": "address"}], "name": "reloadGenesisBuys", "outputs": [], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"internalType": "address", "name": "_address", "type": "address"}], "name": "reloadNormalAddress", "outputs": [], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"internalType": "address", "name": "_address", "type": "address"}, {"internalType": "uint256", "name": "code", "type": "uint256"}], "name": "reloadPublicArrays", "outputs": [], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"internalType": "address", "name": "_address", "type": "address"}, {"internalType": "uint256", "name": "code", "type": "uint256"}], "name": "reloadPublicCalls", "outputs": [], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"internalType": "address", "name": "_address", "type": "address"}], "name": "reloadStakeBuys", "outputs": [], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"internalType": "address", "name": "_address", "type": "address"}], "name": "reloadStakes", "outputs": [], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"internalType": "address", "name": "_address", "type": "address"}], "name": "reloadTokenService", "outputs": [], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [], "name": "secondaryPayoutAddress", "outputs": [{"internalType": "address payable", "name": "", "type": "address"}], "stateMutability": "view", "type": "function"}, {"inputs": [{"internalType": "address", "name": "_address", "type": "address"}, {"internalType": "uint256", "name": "_balance", "type": "uint256"}], "name": "setBalanceNormalAddress", "outputs": [], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"internalType": "address", "name": "_address", "type": "address"}, {"internalType": "uint256", "name": "balance", "type": "uint256"}], "name": "setBalanceStakes", "outputs": [], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [], "name": "setPayoutOwner", "outputs": [], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"internalType": "address payable", "name": "_address", "type": "address"}], "name": "setSecondaryPayoutAddress", "outputs": [], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [], "name": "setUpdater", "outputs": [], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [], "name": "st", "outputs": [{"internalType": "contract stakes", "name": "", "type": "address"}], "stateMutability": "view", "type": "function"}, {"inputs": [{"internalType": "address", "name": "_address", "type": "address"}], "name": "stakeBalanceOf", "outputs": [{"internalType": "uint256", "name": "balance", "type": "uint256"}], "stateMutability": "view", "type": "function"}, {"inputs": [{"internalType": "uint256", "name": "_stakeDecimals", "type": "uint256"}], "name": "stakeDecimalsSet", "outputs": [], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [], "name": "stb", "outputs": [{"internalType": "contract stakeBuys", "name": "", "type": "address"}], "stateMutability": "view", "type": "function"}, {"inputs": [], "name": "stopSetup", "outputs": [{"internalType": "bool", "name": "success", "type": "bool"}], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [], "name": "symbol", "outputs": [{"internalType": "string", "name": "", "type": "string"}], "stateMutability": "view", "type": "function"}, {"inputs": [], "name": "tks", "outputs": [{"internalType": "contract tokenService", "name": "", "type": "address"}], "stateMutability": "view", "type": "function"}, {"inputs": [], "name": "totalSupply", "outputs": [{"internalType": "uint256", "name": "TotalSupply", "type": "uint256"}], "stateMutability": "view", "type": "function"}, {"inputs": [{"internalType": "address", "name": "_to", "type": "address"}, {"internalType": "uint256", "name": "_value", "type": "uint256"}], "name": "transfer", "outputs": [], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"internalType": "address", "name": "_from", "type": "address"}, {"internalType": "address", "name": "_to", "type": "address"}, {"internalType": "uint256", "name": "_amount", "type": "uint256"}], "name": "transferFrom", "outputs": [{"internalType": "bool", "name": "success", "type": "bool"}], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [], "name": "updaterAddress", "outputs": [{"internalType": "address", "name": "", "type": "address"}], "stateMutability": "view", "type": "function"}]} \ No newline at end of file diff --git a/cache/PAX.json b/cache/PAX.json new file mode 100644 index 0000000..a7c0fa5 --- /dev/null +++ b/cache/PAX.json @@ -0,0 +1 @@ +{"address": "0x8e870d67f660d95d5be530380d0ec0bd388289e1", "abi": [{"constant": false, "inputs": [{"name": "newImplementation", "type": "address"}], "name": "upgradeTo", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "newImplementation", "type": "address"}, {"name": "data", "type": "bytes"}], "name": "upgradeToAndCall", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function"}, {"constant": true, "inputs": [], "name": "implementation", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "newAdmin", "type": "address"}], "name": "changeAdmin", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "admin", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"inputs": [{"name": "_implementation", "type": "address"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"payable": true, "stateMutability": "payable", "type": "fallback"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "previousAdmin", "type": "address"}, {"indexed": false, "name": "newAdmin", "type": "address"}], "name": "AdminChanged", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "implementation", "type": "address"}], "name": "Upgraded", "type": "event"}]} \ No newline at end of file diff --git a/cache/POCC.json b/cache/POCC.json new file mode 100644 index 0000000..28017a5 --- /dev/null +++ b/cache/POCC.json @@ -0,0 +1 @@ +{"address": "0x912656188616e0184e3181f019022990a63280b1", "abi": [{"constant": true, "inputs": [], "name": "name", "outputs": [{"name": "", "type": "string"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "delegate", "type": "address"}, {"name": "numTokens", "type": "uint256"}], "name": "approve", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "totalSupply", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "from", "type": "address"}, {"name": "buyer", "type": "address"}, {"name": "numTokens", "type": "uint256"}], "name": "transferFrom", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "decimals", "outputs": [{"name": "", "type": "uint8"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "tokenOwner", "type": "address"}], "name": "balanceOf", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "from", "type": "address"}, {"name": "numTokens", "type": "uint256"}], "name": "burnFrom", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "owner", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "symbol", "outputs": [{"name": "", "type": "string"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "receiver", "type": "address"}, {"name": "numTokens", "type": "uint256"}], "name": "transfer", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "from", "type": "address"}, {"name": "delegate", "type": "address"}], "name": "allowance", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"inputs": [], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "tokenOwner", "type": "address"}, {"indexed": true, "name": "spender", "type": "address"}, {"indexed": false, "name": "tokens", "type": "uint256"}], "name": "Approval", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "from", "type": "address"}, {"indexed": true, "name": "to", "type": "address"}, {"indexed": false, "name": "tokens", "type": "uint256"}], "name": "Transfer", "type": "event"}]} \ No newline at end of file diff --git a/cache/SNT.json b/cache/SNT.json new file mode 100644 index 0000000..da7ee6e --- /dev/null +++ b/cache/SNT.json @@ -0,0 +1 @@ +{"address": "0x744d70fdbe2ba4cf95131626614a1763df805b9e", "abi": [{"constant": true, "inputs": [], "name": "name", "outputs": [{"name": "", "type": "string"}], "payable": false, "type": "function"}, {"constant": false, "inputs": [{"name": "_spender", "type": "address"}, {"name": "_amount", "type": "uint256"}], "name": "approve", "outputs": [{"name": "success", "type": "bool"}], "payable": false, "type": "function"}, {"constant": true, "inputs": [], "name": "creationBlock", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "type": "function"}, {"constant": true, "inputs": [], "name": "totalSupply", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "type": "function"}, {"constant": false, "inputs": [{"name": "_from", "type": "address"}, {"name": "_to", "type": "address"}, {"name": "_amount", "type": "uint256"}], "name": "transferFrom", "outputs": [{"name": "success", "type": "bool"}], "payable": false, "type": "function"}, {"constant": true, "inputs": [], "name": "decimals", "outputs": [{"name": "", "type": "uint8"}], "payable": false, "type": "function"}, {"constant": false, "inputs": [{"name": "_newController", "type": "address"}], "name": "changeController", "outputs": [], "payable": false, "type": "function"}, {"constant": true, "inputs": [{"name": "_owner", "type": "address"}, {"name": "_blockNumber", "type": "uint256"}], "name": "balanceOfAt", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "type": "function"}, {"constant": true, "inputs": [], "name": "version", "outputs": [{"name": "", "type": "string"}], "payable": false, "type": "function"}, {"constant": false, "inputs": [{"name": "_cloneTokenName", "type": "string"}, {"name": "_cloneDecimalUnits", "type": "uint8"}, {"name": "_cloneTokenSymbol", "type": "string"}, {"name": "_snapshotBlock", "type": "uint256"}, {"name": "_transfersEnabled", "type": "bool"}], "name": "createCloneToken", "outputs": [{"name": "", "type": "address"}], "payable": false, "type": "function"}, {"constant": true, "inputs": [{"name": "_owner", "type": "address"}], "name": "balanceOf", "outputs": [{"name": "balance", "type": "uint256"}], "payable": false, "type": "function"}, {"constant": true, "inputs": [], "name": "parentToken", "outputs": [{"name": "", "type": "address"}], "payable": false, "type": "function"}, {"constant": false, "inputs": [{"name": "_owner", "type": "address"}, {"name": "_amount", "type": "uint256"}], "name": "generateTokens", "outputs": [{"name": "", "type": "bool"}], "payable": false, "type": "function"}, {"constant": true, "inputs": [], "name": "symbol", "outputs": [{"name": "", "type": "string"}], "payable": false, "type": "function"}, {"constant": true, "inputs": [{"name": "_blockNumber", "type": "uint256"}], "name": "totalSupplyAt", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "type": "function"}, {"constant": false, "inputs": [{"name": "_to", "type": "address"}, {"name": "_amount", "type": "uint256"}], "name": "transfer", "outputs": [{"name": "success", "type": "bool"}], "payable": false, "type": "function"}, {"constant": true, "inputs": [], "name": "transfersEnabled", "outputs": [{"name": "", "type": "bool"}], "payable": false, "type": "function"}, {"constant": true, "inputs": [], "name": "parentSnapShotBlock", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "type": "function"}, {"constant": false, "inputs": [{"name": "_spender", "type": "address"}, {"name": "_amount", "type": "uint256"}, {"name": "_extraData", "type": "bytes"}], "name": "approveAndCall", "outputs": [{"name": "success", "type": "bool"}], "payable": false, "type": "function"}, {"constant": false, "inputs": [{"name": "_owner", "type": "address"}, {"name": "_amount", "type": "uint256"}], "name": "destroyTokens", "outputs": [{"name": "", "type": "bool"}], "payable": false, "type": "function"}, {"constant": true, "inputs": [{"name": "_owner", "type": "address"}, {"name": "_spender", "type": "address"}], "name": "allowance", "outputs": [{"name": "remaining", "type": "uint256"}], "payable": false, "type": "function"}, {"constant": false, "inputs": [{"name": "_token", "type": "address"}], "name": "claimTokens", "outputs": [], "payable": false, "type": "function"}, {"constant": true, "inputs": [], "name": "tokenFactory", "outputs": [{"name": "", "type": "address"}], "payable": false, "type": "function"}, {"constant": false, "inputs": [{"name": "_transfersEnabled", "type": "bool"}], "name": "enableTransfers", "outputs": [], "payable": false, "type": "function"}, {"constant": true, "inputs": [], "name": "controller", "outputs": [{"name": "", "type": "address"}], "payable": false, "type": "function"}, {"inputs": [{"name": "_tokenFactory", "type": "address"}], "payable": false, "type": "constructor"}, {"payable": true, "type": "fallback"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "_token", "type": "address"}, {"indexed": true, "name": "_controller", "type": "address"}, {"indexed": false, "name": "_amount", "type": "uint256"}], "name": "ClaimedTokens", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "_from", "type": "address"}, {"indexed": true, "name": "_to", "type": "address"}, {"indexed": false, "name": "_amount", "type": "uint256"}], "name": "Transfer", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "_cloneToken", "type": "address"}, {"indexed": false, "name": "_snapshotBlock", "type": "uint256"}], "name": "NewCloneToken", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "_owner", "type": "address"}, {"indexed": true, "name": "_spender", "type": "address"}, {"indexed": false, "name": "_amount", "type": "uint256"}], "name": "Approval", "type": "event"}]} \ No newline at end of file diff --git a/cache/USDC.json b/cache/USDC.json new file mode 100644 index 0000000..9ec3fa2 --- /dev/null +++ b/cache/USDC.json @@ -0,0 +1 @@ +{"address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48", "abi": [{"constant": false, "inputs": [{"name": "newImplementation", "type": "address"}], "name": "upgradeTo", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "newImplementation", "type": "address"}, {"name": "data", "type": "bytes"}], "name": "upgradeToAndCall", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function"}, {"constant": true, "inputs": [], "name": "implementation", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "newAdmin", "type": "address"}], "name": "changeAdmin", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "admin", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"inputs": [{"name": "_implementation", "type": "address"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"payable": true, "stateMutability": "payable", "type": "fallback"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "previousAdmin", "type": "address"}, {"indexed": false, "name": "newAdmin", "type": "address"}], "name": "AdminChanged", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "implementation", "type": "address"}], "name": "Upgraded", "type": "event"}]} \ No newline at end of file diff --git a/cache/USDT.json b/cache/USDT.json new file mode 100644 index 0000000..6f07703 --- /dev/null +++ b/cache/USDT.json @@ -0,0 +1 @@ +{"address": "0xdAC17F958D2ee523a2206206994597C13D831ec7", "abi": [{"constant": true, "inputs": [], "name": "name", "outputs": [{"name": "", "type": "string"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_upgradedAddress", "type": "address"}], "name": "deprecate", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_spender", "type": "address"}, {"name": "_value", "type": "uint256"}], "name": "approve", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "deprecated", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_evilUser", "type": "address"}], "name": "addBlackList", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "totalSupply", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_from", "type": "address"}, {"name": "_to", "type": "address"}, {"name": "_value", "type": "uint256"}], "name": "transferFrom", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "upgradedAddress", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "address"}], "name": "balances", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "decimals", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "maximumFee", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "_totalSupply", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "unpause", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_maker", "type": "address"}], "name": "getBlackListStatus", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "address"}, {"name": "", "type": "address"}], "name": "allowed", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "paused", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "who", "type": "address"}], "name": "balanceOf", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "pause", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "getOwner", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "owner", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "symbol", "outputs": [{"name": "", "type": "string"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_to", "type": "address"}, {"name": "_value", "type": "uint256"}], "name": "transfer", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "newBasisPoints", "type": "uint256"}, {"name": "newMaxFee", "type": "uint256"}], "name": "setParams", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "amount", "type": "uint256"}], "name": "issue", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "amount", "type": "uint256"}], "name": "redeem", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "_owner", "type": "address"}, {"name": "_spender", "type": "address"}], "name": "allowance", "outputs": [{"name": "remaining", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "basisPointsRate", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "address"}], "name": "isBlackListed", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_clearedUser", "type": "address"}], "name": "removeBlackList", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "MAX_UINT", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "newOwner", "type": "address"}], "name": "transferOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "_blackListedUser", "type": "address"}], "name": "destroyBlackFunds", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"name": "_initialSupply", "type": "uint256"}, {"name": "_name", "type": "string"}, {"name": "_symbol", "type": "string"}, {"name": "_decimals", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "amount", "type": "uint256"}], "name": "Issue", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "amount", "type": "uint256"}], "name": "Redeem", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "newAddress", "type": "address"}], "name": "Deprecate", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "feeBasisPoints", "type": "uint256"}, {"indexed": false, "name": "maxFee", "type": "uint256"}], "name": "Params", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "_blackListedUser", "type": "address"}, {"indexed": false, "name": "_balance", "type": "uint256"}], "name": "DestroyedBlackFunds", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "_user", "type": "address"}], "name": "AddedBlackList", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "_user", "type": "address"}], "name": "RemovedBlackList", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "owner", "type": "address"}, {"indexed": true, "name": "spender", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "Approval", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "from", "type": "address"}, {"indexed": true, "name": "to", "type": "address"}, {"indexed": false, "name": "value", "type": "uint256"}], "name": "Transfer", "type": "event"}, {"anonymous": false, "inputs": [], "name": "Pause", "type": "event"}, {"anonymous": false, "inputs": [], "name": "Unpause", "type": "event"}]} \ No newline at end of file diff --git a/cache/WETH.json b/cache/WETH.json new file mode 100644 index 0000000..b3e080f --- /dev/null +++ b/cache/WETH.json @@ -0,0 +1 @@ +{"address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2", "abi": [{"constant": true, "inputs": [], "name": "name", "outputs": [{"name": "", "type": "string"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "guy", "type": "address"}, {"name": "wad", "type": "uint256"}], "name": "approve", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "totalSupply", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "src", "type": "address"}, {"name": "dst", "type": "address"}, {"name": "wad", "type": "uint256"}], "name": "transferFrom", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "wad", "type": "uint256"}], "name": "withdraw", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "decimals", "outputs": [{"name": "", "type": "uint8"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "address"}], "name": "balanceOf", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "symbol", "outputs": [{"name": "", "type": "string"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "dst", "type": "address"}, {"name": "wad", "type": "uint256"}], "name": "transfer", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [], "name": "deposit", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "address"}, {"name": "", "type": "address"}], "name": "allowance", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"payable": true, "stateMutability": "payable", "type": "fallback"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "src", "type": "address"}, {"indexed": true, "name": "guy", "type": "address"}, {"indexed": false, "name": "wad", "type": "uint256"}], "name": "Approval", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "src", "type": "address"}, {"indexed": true, "name": "dst", "type": "address"}, {"indexed": false, "name": "wad", "type": "uint256"}], "name": "Transfer", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "dst", "type": "address"}, {"indexed": false, "name": "wad", "type": "uint256"}], "name": "Deposit", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "src", "type": "address"}, {"indexed": false, "name": "wad", "type": "uint256"}], "name": "Withdrawal", "type": "event"}]} \ No newline at end of file diff --git a/cache/ZRX.json b/cache/ZRX.json new file mode 100644 index 0000000..02908d8 --- /dev/null +++ b/cache/ZRX.json @@ -0,0 +1 @@ +{"address": "0xe41d2489571d322189246dafa5ebde1f4699f498", "abi": [{"constant": true, "inputs": [], "name": "name", "outputs": [{"name": "", "type": "string"}], "payable": false, "type": "function"}, {"constant": false, "inputs": [{"name": "_spender", "type": "address"}, {"name": "_value", "type": "uint256"}], "name": "approve", "outputs": [{"name": "", "type": "bool"}], "payable": false, "type": "function"}, {"constant": true, "inputs": [], "name": "totalSupply", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "type": "function"}, {"constant": false, "inputs": [{"name": "_from", "type": "address"}, {"name": "_to", "type": "address"}, {"name": "_value", "type": "uint256"}], "name": "transferFrom", "outputs": [{"name": "", "type": "bool"}], "payable": false, "type": "function"}, {"constant": true, "inputs": [], "name": "decimals", "outputs": [{"name": "", "type": "uint8"}], "payable": false, "type": "function"}, {"constant": true, "inputs": [{"name": "_owner", "type": "address"}], "name": "balanceOf", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "type": "function"}, {"constant": true, "inputs": [], "name": "symbol", "outputs": [{"name": "", "type": "string"}], "payable": false, "type": "function"}, {"constant": false, "inputs": [{"name": "_to", "type": "address"}, {"name": "_value", "type": "uint256"}], "name": "transfer", "outputs": [{"name": "", "type": "bool"}], "payable": false, "type": "function"}, {"constant": true, "inputs": [{"name": "_owner", "type": "address"}, {"name": "_spender", "type": "address"}], "name": "allowance", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "type": "function"}, {"inputs": [], "payable": false, "type": "constructor"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "_from", "type": "address"}, {"indexed": true, "name": "_to", "type": "address"}, {"indexed": false, "name": "_value", "type": "uint256"}], "name": "Transfer", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "_owner", "type": "address"}, {"indexed": true, "name": "_spender", "type": "address"}, {"indexed": false, "name": "_value", "type": "uint256"}], "name": "Approval", "type": "event"}]} \ No newline at end of file diff --git a/cache/dYdX_PerpetualProxy.json b/cache/dYdX_PerpetualProxy.json new file mode 100644 index 0000000..ecd30f1 --- /dev/null +++ b/cache/dYdX_PerpetualProxy.json @@ -0,0 +1 @@ +{"address": "0x07aBe965500A49370D331eCD613c7AC47dD6e547", "abi": [{"inputs": [{"internalType": "address", "name": "logic", "type": "address"}, {"internalType": "address", "name": "admin", "type": "address"}, {"internalType": "bytes", "name": "data", "type": "bytes"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"anonymous": false, "inputs": [{"indexed": false, "internalType": "address", "name": "previousAdmin", "type": "address"}, {"indexed": false, "internalType": "address", "name": "newAdmin", "type": "address"}], "name": "AdminChanged", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "implementation", "type": "address"}], "name": "Upgraded", "type": "event"}, {"payable": true, "stateMutability": "payable", "type": "fallback"}, {"constant": false, "inputs": [], "name": "admin", "outputs": [{"internalType": "address", "name": "", "type": "address"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "newAdmin", "type": "address"}], "name": "changeAdmin", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [], "name": "implementation", "outputs": [{"internalType": "address", "name": "", "type": "address"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "newImplementation", "type": "address"}], "name": "upgradeTo", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "newImplementation", "type": "address"}, {"internalType": "bytes", "name": "data", "type": "bytes"}], "name": "upgradeToAndCall", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function"}]} \ No newline at end of file diff --git a/cache/dYdX_PerpetualV1.json b/cache/dYdX_PerpetualV1.json new file mode 100644 index 0000000..ded55be --- /dev/null +++ b/cache/dYdX_PerpetualV1.json @@ -0,0 +1 @@ +{"address": "0x364508A5cA0538d8119D3BF40A284635686C98c4", "abi": [{"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "account", "type": "address"}, {"indexed": false, "internalType": "bool", "name": "isPositive", "type": "bool"}, {"indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256"}, {"indexed": false, "internalType": "bytes32", "name": "balance", "type": "bytes32"}], "name": "LogAccountSettled", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "account", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256"}, {"indexed": false, "internalType": "bytes32", "name": "balance", "type": "bytes32"}], "name": "LogDeposit", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "internalType": "uint256", "name": "settlementPrice", "type": "uint256"}], "name": "LogFinalSettlementEnabled", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "internalType": "bytes32", "name": "index", "type": "bytes32"}], "name": "LogIndex", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "internalType": "address", "name": "funder", "type": "address"}], "name": "LogSetFunder", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "internalType": "address", "name": "operator", "type": "address"}, {"indexed": false, "internalType": "bool", "name": "approved", "type": "bool"}], "name": "LogSetGlobalOperator", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "sender", "type": "address"}, {"indexed": false, "internalType": "address", "name": "operator", "type": "address"}, {"indexed": false, "internalType": "bool", "name": "approved", "type": "bool"}], "name": "LogSetLocalOperator", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "internalType": "uint256", "name": "minCollateral", "type": "uint256"}], "name": "LogSetMinCollateral", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "internalType": "address", "name": "oracle", "type": "address"}], "name": "LogSetOracle", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "maker", "type": "address"}, {"indexed": true, "internalType": "address", "name": "taker", "type": "address"}, {"indexed": false, "internalType": "address", "name": "trader", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "marginAmount", "type": "uint256"}, {"indexed": false, "internalType": "uint256", "name": "positionAmount", "type": "uint256"}, {"indexed": false, "internalType": "bool", "name": "isBuy", "type": "bool"}, {"indexed": false, "internalType": "bytes32", "name": "makerBalance", "type": "bytes32"}, {"indexed": false, "internalType": "bytes32", "name": "takerBalance", "type": "bytes32"}], "name": "LogTrade", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "account", "type": "address"}, {"indexed": false, "internalType": "address", "name": "destination", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256"}, {"indexed": false, "internalType": "bytes32", "name": "balance", "type": "bytes32"}], "name": "LogWithdraw", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "account", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256"}, {"indexed": false, "internalType": "bytes32", "name": "balance", "type": "bytes32"}], "name": "LogWithdrawFinalSettlement", "type": "event"}, {"constant": false, "inputs": [{"internalType": "address", "name": "account", "type": "address"}, {"internalType": "uint256", "name": "amount", "type": "uint256"}], "name": "deposit", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "uint256", "name": "priceLowerBound", "type": "uint256"}, {"internalType": "uint256", "name": "priceUpperBound", "type": "uint256"}], "name": "enableFinalSettlement", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "account", "type": "address"}], "name": "getAccountBalance", "outputs": [{"components": [{"internalType": "bool", "name": "marginIsPositive", "type": "bool"}, {"internalType": "bool", "name": "positionIsPositive", "type": "bool"}, {"internalType": "uint120", "name": "margin", "type": "uint120"}, {"internalType": "uint120", "name": "position", "type": "uint120"}], "internalType": "struct P1Types.Balance", "name": "", "type": "tuple"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "account", "type": "address"}], "name": "getAccountIndex", "outputs": [{"components": [{"internalType": "uint32", "name": "timestamp", "type": "uint32"}, {"internalType": "bool", "name": "isPositive", "type": "bool"}, {"internalType": "uint128", "name": "value", "type": "uint128"}], "internalType": "struct P1Types.Index", "name": "", "type": "tuple"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "getAdmin", "outputs": [{"internalType": "address", "name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "getFinalSettlementEnabled", "outputs": [{"internalType": "bool", "name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "getFunderContract", "outputs": [{"internalType": "address", "name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "getGlobalIndex", "outputs": [{"components": [{"internalType": "uint32", "name": "timestamp", "type": "uint32"}, {"internalType": "bool", "name": "isPositive", "type": "bool"}, {"internalType": "uint128", "name": "value", "type": "uint128"}], "internalType": "struct P1Types.Index", "name": "", "type": "tuple"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "operator", "type": "address"}], "name": "getIsGlobalOperator", "outputs": [{"internalType": "bool", "name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "account", "type": "address"}, {"internalType": "address", "name": "operator", "type": "address"}], "name": "getIsLocalOperator", "outputs": [{"internalType": "bool", "name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "getMinCollateral", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "getOracleContract", "outputs": [{"internalType": "address", "name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "getTokenContract", "outputs": [{"internalType": "address", "name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"internalType": "address", "name": "account", "type": "address"}, {"internalType": "address", "name": "operator", "type": "address"}], "name": "hasAccountPermissions", "outputs": [{"internalType": "bool", "name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "token", "type": "address"}, {"internalType": "address", "name": "oracle", "type": "address"}, {"internalType": "address", "name": "funder", "type": "address"}, {"internalType": "uint256", "name": "minCollateral", "type": "uint256"}], "name": "initializeV1", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "funder", "type": "address"}], "name": "setFunder", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "operator", "type": "address"}, {"internalType": "bool", "name": "approved", "type": "bool"}], "name": "setGlobalOperator", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "operator", "type": "address"}, {"internalType": "bool", "name": "approved", "type": "bool"}], "name": "setLocalOperator", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "uint256", "name": "minCollateral", "type": "uint256"}], "name": "setMinCollateral", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "oracle", "type": "address"}], "name": "setOracle", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address[]", "name": "accounts", "type": "address[]"}, {"components": [{"internalType": "uint256", "name": "takerIndex", "type": "uint256"}, {"internalType": "uint256", "name": "makerIndex", "type": "uint256"}, {"internalType": "address", "name": "trader", "type": "address"}, {"internalType": "bytes", "name": "data", "type": "bytes"}], "internalType": "struct P1Trade.TradeArg[]", "name": "trades", "type": "tuple[]"}], "name": "trade", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"internalType": "address", "name": "account", "type": "address"}, {"internalType": "address", "name": "destination", "type": "address"}, {"internalType": "uint256", "name": "amount", "type": "uint256"}], "name": "withdraw", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [], "name": "withdrawFinalSettlement", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}]} \ No newline at end of file diff --git a/cache/dYdX_SoloMargin.json b/cache/dYdX_SoloMargin.json new file mode 100644 index 0000000..84c1d58 --- /dev/null +++ b/cache/dYdX_SoloMargin.json @@ -0,0 +1 @@ +{"address": "0x1E0447b19BB6EcFdAe1e4AE1694b0C3659614e4e", "abi": [{"constant": false, "inputs": [{"name": "marketId", "type": "uint256"}, {"components": [{"name": "value", "type": "uint256"}], "name": "spreadPremium", "type": "tuple"}], "name": "ownerSetSpreadPremium", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "operator", "type": "address"}], "name": "getIsGlobalOperator", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "marketId", "type": "uint256"}], "name": "getMarketTokenAddress", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "marketId", "type": "uint256"}, {"name": "interestSetter", "type": "address"}], "name": "ownerSetInterestSetter", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"components": [{"name": "owner", "type": "address"}, {"name": "number", "type": "uint256"}], "name": "account", "type": "tuple"}], "name": "getAccountValues", "outputs": [{"components": [{"name": "value", "type": "uint256"}], "name": "", "type": "tuple"}, {"components": [{"name": "value", "type": "uint256"}], "name": "", "type": "tuple"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "marketId", "type": "uint256"}], "name": "getMarketPriceOracle", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "marketId", "type": "uint256"}], "name": "getMarketInterestSetter", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "marketId", "type": "uint256"}], "name": "getMarketSpreadPremium", "outputs": [{"components": [{"name": "value", "type": "uint256"}], "name": "", "type": "tuple"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "getNumMarkets", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "token", "type": "address"}, {"name": "recipient", "type": "address"}], "name": "ownerWithdrawUnsupportedTokens", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"components": [{"name": "value", "type": "uint256"}], "name": "minBorrowedValue", "type": "tuple"}], "name": "ownerSetMinBorrowedValue", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"components": [{"name": "value", "type": "uint256"}], "name": "spread", "type": "tuple"}], "name": "ownerSetLiquidationSpread", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"components": [{"name": "value", "type": "uint256"}], "name": "earningsRate", "type": "tuple"}], "name": "ownerSetEarningsRate", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "owner", "type": "address"}, {"name": "operator", "type": "address"}], "name": "getIsLocalOperator", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"components": [{"name": "owner", "type": "address"}, {"name": "number", "type": "uint256"}], "name": "account", "type": "tuple"}, {"name": "marketId", "type": "uint256"}], "name": "getAccountPar", "outputs": [{"components": [{"name": "sign", "type": "bool"}, {"name": "value", "type": "uint128"}], "name": "", "type": "tuple"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "marketId", "type": "uint256"}, {"components": [{"name": "value", "type": "uint256"}], "name": "marginPremium", "type": "tuple"}], "name": "ownerSetMarginPremium", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "getMarginRatio", "outputs": [{"components": [{"name": "value", "type": "uint256"}], "name": "", "type": "tuple"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "marketId", "type": "uint256"}], "name": "getMarketCurrentIndex", "outputs": [{"components": [{"name": "borrow", "type": "uint96"}, {"name": "supply", "type": "uint96"}, {"name": "lastUpdate", "type": "uint32"}], "name": "", "type": "tuple"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "marketId", "type": "uint256"}], "name": "getMarketIsClosing", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "getRiskParams", "outputs": [{"components": [{"components": [{"name": "value", "type": "uint256"}], "name": "marginRatio", "type": "tuple"}, {"components": [{"name": "value", "type": "uint256"}], "name": "liquidationSpread", "type": "tuple"}, {"components": [{"name": "value", "type": "uint256"}], "name": "earningsRate", "type": "tuple"}, {"components": [{"name": "value", "type": "uint256"}], "name": "minBorrowedValue", "type": "tuple"}], "name": "", "type": "tuple"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"components": [{"name": "owner", "type": "address"}, {"name": "number", "type": "uint256"}], "name": "account", "type": "tuple"}], "name": "getAccountBalances", "outputs": [{"name": "", "type": "address[]"}, {"components": [{"name": "sign", "type": "bool"}, {"name": "value", "type": "uint128"}], "name": "", "type": "tuple[]"}, {"components": [{"name": "sign", "type": "bool"}, {"name": "value", "type": "uint256"}], "name": "", "type": "tuple[]"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "renounceOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "getMinBorrowedValue", "outputs": [{"components": [{"name": "value", "type": "uint256"}], "name": "", "type": "tuple"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"components": [{"name": "operator", "type": "address"}, {"name": "trusted", "type": "bool"}], "name": "args", "type": "tuple[]"}], "name": "setOperators", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "marketId", "type": "uint256"}], "name": "getMarketPrice", "outputs": [{"components": [{"name": "value", "type": "uint256"}], "name": "", "type": "tuple"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "owner", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isOwner", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "marketId", "type": "uint256"}, {"name": "recipient", "type": "address"}], "name": "ownerWithdrawExcessTokens", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "token", "type": "address"}, {"name": "priceOracle", "type": "address"}, {"name": "interestSetter", "type": "address"}, {"components": [{"name": "value", "type": "uint256"}], "name": "marginPremium", "type": "tuple"}, {"components": [{"name": "value", "type": "uint256"}], "name": "spreadPremium", "type": "tuple"}], "name": "ownerAddMarket", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"components": [{"name": "owner", "type": "address"}, {"name": "number", "type": "uint256"}], "name": "accounts", "type": "tuple[]"}, {"components": [{"name": "actionType", "type": "uint8"}, {"name": "accountId", "type": "uint256"}, {"components": [{"name": "sign", "type": "bool"}, {"name": "denomination", "type": "uint8"}, {"name": "ref", "type": "uint8"}, {"name": "value", "type": "uint256"}], "name": "amount", "type": "tuple"}, {"name": "primaryMarketId", "type": "uint256"}, {"name": "secondaryMarketId", "type": "uint256"}, {"name": "otherAddress", "type": "address"}, {"name": "otherAccountId", "type": "uint256"}, {"name": "data", "type": "bytes"}], "name": "actions", "type": "tuple[]"}], "name": "operate", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "marketId", "type": "uint256"}], "name": "getMarketWithInfo", "outputs": [{"components": [{"name": "token", "type": "address"}, {"components": [{"name": "borrow", "type": "uint128"}, {"name": "supply", "type": "uint128"}], "name": "totalPar", "type": "tuple"}, {"components": [{"name": "borrow", "type": "uint96"}, {"name": "supply", "type": "uint96"}, {"name": "lastUpdate", "type": "uint32"}], "name": "index", "type": "tuple"}, {"name": "priceOracle", "type": "address"}, {"name": "interestSetter", "type": "address"}, {"components": [{"name": "value", "type": "uint256"}], "name": "marginPremium", "type": "tuple"}, {"components": [{"name": "value", "type": "uint256"}], "name": "spreadPremium", "type": "tuple"}, {"name": "isClosing", "type": "bool"}], "name": "", "type": "tuple"}, {"components": [{"name": "borrow", "type": "uint96"}, {"name": "supply", "type": "uint96"}, {"name": "lastUpdate", "type": "uint32"}], "name": "", "type": "tuple"}, {"components": [{"name": "value", "type": "uint256"}], "name": "", "type": "tuple"}, {"components": [{"name": "value", "type": "uint256"}], "name": "", "type": "tuple"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"components": [{"name": "value", "type": "uint256"}], "name": "ratio", "type": "tuple"}], "name": "ownerSetMarginRatio", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "getLiquidationSpread", "outputs": [{"components": [{"name": "value", "type": "uint256"}], "name": "", "type": "tuple"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"components": [{"name": "owner", "type": "address"}, {"name": "number", "type": "uint256"}], "name": "account", "type": "tuple"}, {"name": "marketId", "type": "uint256"}], "name": "getAccountWei", "outputs": [{"components": [{"name": "sign", "type": "bool"}, {"name": "value", "type": "uint256"}], "name": "", "type": "tuple"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "marketId", "type": "uint256"}], "name": "getMarketTotalPar", "outputs": [{"components": [{"name": "borrow", "type": "uint128"}, {"name": "supply", "type": "uint128"}], "name": "", "type": "tuple"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "heldMarketId", "type": "uint256"}, {"name": "owedMarketId", "type": "uint256"}], "name": "getLiquidationSpreadForPair", "outputs": [{"components": [{"name": "value", "type": "uint256"}], "name": "", "type": "tuple"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "marketId", "type": "uint256"}], "name": "getNumExcessTokens", "outputs": [{"components": [{"name": "sign", "type": "bool"}, {"name": "value", "type": "uint256"}], "name": "", "type": "tuple"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "marketId", "type": "uint256"}], "name": "getMarketCachedIndex", "outputs": [{"components": [{"name": "borrow", "type": "uint96"}, {"name": "supply", "type": "uint96"}, {"name": "lastUpdate", "type": "uint32"}], "name": "", "type": "tuple"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"components": [{"name": "owner", "type": "address"}, {"name": "number", "type": "uint256"}], "name": "account", "type": "tuple"}], "name": "getAccountStatus", "outputs": [{"name": "", "type": "uint8"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "getEarningsRate", "outputs": [{"components": [{"name": "value", "type": "uint256"}], "name": "", "type": "tuple"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "marketId", "type": "uint256"}, {"name": "priceOracle", "type": "address"}], "name": "ownerSetPriceOracle", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "getRiskLimits", "outputs": [{"components": [{"name": "marginRatioMax", "type": "uint64"}, {"name": "liquidationSpreadMax", "type": "uint64"}, {"name": "earningsRateMax", "type": "uint64"}, {"name": "marginPremiumMax", "type": "uint64"}, {"name": "spreadPremiumMax", "type": "uint64"}, {"name": "minBorrowedValueMax", "type": "uint128"}], "name": "", "type": "tuple"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "marketId", "type": "uint256"}], "name": "getMarket", "outputs": [{"components": [{"name": "token", "type": "address"}, {"components": [{"name": "borrow", "type": "uint128"}, {"name": "supply", "type": "uint128"}], "name": "totalPar", "type": "tuple"}, {"components": [{"name": "borrow", "type": "uint96"}, {"name": "supply", "type": "uint96"}, {"name": "lastUpdate", "type": "uint32"}], "name": "index", "type": "tuple"}, {"name": "priceOracle", "type": "address"}, {"name": "interestSetter", "type": "address"}, {"components": [{"name": "value", "type": "uint256"}], "name": "marginPremium", "type": "tuple"}, {"components": [{"name": "value", "type": "uint256"}], "name": "spreadPremium", "type": "tuple"}, {"name": "isClosing", "type": "bool"}], "name": "", "type": "tuple"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "marketId", "type": "uint256"}, {"name": "isClosing", "type": "bool"}], "name": "ownerSetIsClosing", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "operator", "type": "address"}, {"name": "approved", "type": "bool"}], "name": "ownerSetGlobalOperator", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "newOwner", "type": "address"}], "name": "transferOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"components": [{"name": "owner", "type": "address"}, {"name": "number", "type": "uint256"}], "name": "account", "type": "tuple"}], "name": "getAdjustedAccountValues", "outputs": [{"components": [{"name": "value", "type": "uint256"}], "name": "", "type": "tuple"}, {"components": [{"name": "value", "type": "uint256"}], "name": "", "type": "tuple"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "marketId", "type": "uint256"}], "name": "getMarketMarginPremium", "outputs": [{"components": [{"name": "value", "type": "uint256"}], "name": "", "type": "tuple"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "marketId", "type": "uint256"}], "name": "getMarketInterestRate", "outputs": [{"components": [{"name": "value", "type": "uint256"}], "name": "", "type": "tuple"}], "payable": false, "stateMutability": "view", "type": "function"}, {"inputs": [{"components": [{"components": [{"name": "value", "type": "uint256"}], "name": "marginRatio", "type": "tuple"}, {"components": [{"name": "value", "type": "uint256"}], "name": "liquidationSpread", "type": "tuple"}, {"components": [{"name": "value", "type": "uint256"}], "name": "earningsRate", "type": "tuple"}, {"components": [{"name": "value", "type": "uint256"}], "name": "minBorrowedValue", "type": "tuple"}], "name": "riskParams", "type": "tuple"}, {"components": [{"name": "marginRatioMax", "type": "uint64"}, {"name": "liquidationSpreadMax", "type": "uint64"}, {"name": "earningsRateMax", "type": "uint64"}, {"name": "marginPremiumMax", "type": "uint64"}, {"name": "spreadPremiumMax", "type": "uint64"}, {"name": "minBorrowedValueMax", "type": "uint128"}], "name": "riskLimits", "type": "tuple"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "owner", "type": "address"}, {"indexed": false, "name": "operator", "type": "address"}, {"indexed": false, "name": "trusted", "type": "bool"}], "name": "LogOperatorSet", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "previousOwner", "type": "address"}, {"indexed": true, "name": "newOwner", "type": "address"}], "name": "OwnershipTransferred", "type": "event"}]} \ No newline at end of file diff --git a/cache/ethplorer_top20200523.json b/cache/ethplorer_top20200523.json new file mode 100644 index 0000000..6f90838 --- /dev/null +++ b/cache/ethplorer_top20200523.json @@ -0,0 +1 @@ +{"tokens":[{"address":"0xdac17f958d2ee523a2206206994597c13d831ec7","name":"Tether USD","decimals":"6","symbol":"USDT","totalSupply":"5737970410922098","owner":"0xc6cde7c39eb2f0f0095f41570af89efc2c1ea828","lastUpdated":1562161438953,"transfersCount":31072289,"txsCount":30802042,"issuancesCount":0,"holdersCount":1648042,"website":" https://tether.to","twitter":"Tether_to","image":"https://ethplorer.io/images/tether.png","ethTransfersCount":0,"price":{"rate":1.0009082334,"diff":0.01,"diff7d":-0.06,"ts":1590236184,"marketCapUsd":8806060079.935951,"availableSupply":8798069379.47,"volume24h":35484113020.8455,"diff30d":0.14999208674937847,"currency":"USD"},"opCount":5047111},{"address":"0x426ca1ea2406c07d75db9585f22781c096e3d0e0","decimals":"8","name":"Minereum","symbol":"MNE","totalSupply":"3832979732889966290","transfersCount":1199524,"txsCount":5664,"lastUpdated":1590233503,"issuancesCount":0,"holdersCount":1181493,"ethTransfersCount":0,"price":false,"opCount":1199611},{"address":"0x8e870d67f660d95d5be530380d0ec0bd388289e1","name":"Paxos Standard","decimals":"18","symbol":"PAX","totalSupply":"246426285830000000000000000","owner":"0xb87cec7baa2ce4a055f8563e9cc5a210cedc329f","lastUpdated":1590237897,"txsCount":1013293,"transfersCount":1946397,"issuancesCount":0,"holdersCount":79137,"ethTransfersCount":0,"price":{"rate":1.00059536045,"diff":-0.1,"diff7d":-0.03,"ts":1590236530,"marketCapUsd":245097789.2001201,"availableSupply":244951954.494264,"volume24h":127989938.60817,"diff30d":0.2976168590290058,"currency":"USD"},"opCount":854656},{"address":"0xe62e6e6c3b808faad3a54b226379466544d76ea4","name":"Liberty Cash","decimals":"6","symbol":"LCS","totalSupply":"3109000000000000","owner":"0xf408d6e9c8a41ddcab1381dfb22d16378ccb35b6","lastUpdated":1590236874,"txsCount":475428,"transfersCount":1922979,"issuancesCount":226828,"holdersCount":11422,"ethTransfersCount":2,"price":false,"opCount":782783},{"address":"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48","name":"USD//C","decimals":"6","symbol":"USDC","totalSupply":"731009490590000","owner":"0xfcb19e6a322b27c06842a71e8c725399f049ae3a","lastUpdated":1562242201649,"txsCount":1609477,"transfersCount":2495753,"issuancesCount":3896,"holdersCount":154610,"image":"https://ethplorer.io/images/usdc.png","website":"https://www.centre.io","links":"https://github.com/centrehq\nhttps://medium.com/centre-blog","ethTransfersCount":0,"price":{"rate":1,"diff":-0.07,"diff7d":0.01,"ts":1590236531,"marketCapUsd":706901890.5554193,"availableSupply":706239389.997448,"volume24h":421730986.066087,"currency":"USD"},"opCount":362153},{"address":"0x6b175474e89094c44da98b954eedeac495271d0f","name":"Multi-Collateral DAI","decimals":"18","symbol":"DAI","totalSupply":"107070610488921283742213032","owner":"","lastUpdated":1574171752734,"transfersCount":2230856,"txsCount":397443,"issuancesCount":0,"holdersCount":75443,"description":"Decentralized multi-collateral stablecoin soft-pegged to the US Dollar by MakerDao.","image":"https://ethplorer.io/images/mcd-dai.png","website":"https://makerdao.com/","ethTransfersCount":0,"price":{"rate":1.0017885814,"diff":-0.16,"diff7d":-0.25,"ts":1590236533,"marketCapUsd":123735857.45406209,"availableSupply":123514940.928096,"volume24h":7048028.02338874,"diff30d":-0.6390621424190925,"currency":"USD"},"opCount":350650},{"address":"0xd736915f7d9f70a0f1837f90aa7b437264c20dc0","decimals":"18","name":"video blog","owner":"","symbol":"vb","totalSupply":"168000000000000000000000000","transfersCount":376482,"txsCount":126717,"lastUpdated":1590236947,"issuancesCount":0,"holdersCount":280953,"ethTransfersCount":0,"price":false,"opCount":318322},{"address":"0x2b591e99afe9f32eaa6214f7b7629768c40eeb39","name":"HEX","decimals":"8","symbol":"HEX","totalSupply":"18117390201532391419","owner":"0x","lastUpdated":1590236974,"txsCount":415790,"transfersCount":793413,"issuancesCount":0,"holdersCount":176430,"ethTransfersCount":31746,"price":{"rate":0.00364343985184,"diff":-0.76,"diff7d":-37.11,"ts":1590236533,"marketCapUsd":555252813.3376298,"availableSupply":152397963440.296,"volume24h":2194894.31988365,"diff30d":37.54199309652532,"currency":"USD"},"opCount":298421},{"address":"0x514910771af9ca656af840dff83e8264ecf986ca","name":"ChainLink Token","decimals":"18","symbol":"LINK","totalSupply":"1000000000000000000000000000","owner":"","lastUpdated":1590237895,"txsCount":988070,"transfersCount":3125165,"issuancesCount":0,"holdersCount":144882,"ethTransfersCount":22,"price":{"rate":3.94751856453,"diff":-0.65,"diff7d":6.34,"ts":1590236524,"marketCapUsd":1381631497.5855,"availableSupply":350000000,"volume24h":377063876.983841,"diff30d":6.550467039066305,"currency":"USD"},"opCount":285808},{"address":"0xa821f14fb6394e82839f5161f214cacc90372453","name":"Esch$Token","decimals":"18","symbol":"ESCH$","totalSupply":"16183070020000000000000000","owner":"","lastUpdated":1590236986,"transfersCount":1204765,"txsCount":41586,"issuancesCount":0,"holdersCount":7750,"ethTransfersCount":0,"price":false,"opCount":284309},{"address":"0xa3f440ef604a6380a030360f85bb0dedb6db5a85","name":"Alchemy Coin","decimals":"6","symbol":"ALC","totalSupply":"990000000000000","owner":"0x59775687f1aca5f520e69d2c8ed0bc6669960021","lastUpdated":1590235768,"transfersCount":1044624,"txsCount":71317,"issuancesCount":907,"holdersCount":9694,"ethTransfersCount":0,"price":false,"opCount":205123},{"address":"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2","name":"Wrapped Ether","decimals":"18","symbol":"WETH","totalSupply":"2313512006063378664554625","owner":"0x","lastUpdated":1590236975,"transfersCount":4466568,"txsCount":602720,"issuancesCount":0,"holdersCount":69570,"ethTransfersCount":194215,"price":{"rate":206.733537229,"diff":1.69,"diff7d":3.11,"ts":1590236525,"marketCapUsd":null,"availableSupply":null,"volume24h":145423.847062864,"diff30d":12.134594133647255,"currency":"USD"},"opCount":191663},{"address":"0x912656188616e0184e3181f019022990a63280b1","name":"POCC","decimals":"8","symbol":"POCC","totalSupply":"100000000000000000","owner":"0x120649ac3f63b4d85a7329ff0547d30251e07605","lastUpdated":1590236984,"txsCount":764083,"transfersCount":726889,"issuancesCount":0,"holdersCount":117698,"ethTransfersCount":0,"price":false,"opCount":180394},{"address":"0x4d58b1e8007078ecc6eaf6df7527b64e46831d23","name":"Mobile Mining Token","decimals":"2","symbol":"MMTN","totalSupply":"124781135960","owner":"","lastUpdated":1590196915,"txsCount":11998,"transfersCount":579720,"issuancesCount":0,"holdersCount":3364,"ethTransfersCount":0,"price":false,"opCount":156433},{"address":"0x9e9801bace260f58407c15e6e515c45918756e0f","name":"WorldUnitedCoins","decimals":"8","symbol":"WUC","totalSupply":"750000000000000000","owner":"","lastUpdated":1590236975,"transfersCount":1387821,"txsCount":1401582,"issuancesCount":0,"holdersCount":20307,"ethTransfersCount":0,"price":false,"opCount":134944},{"address":"0x0d8775f648430679a709e98d2b0cb6250d2887ef","name":"Basic Attention Token","decimals":"18","symbol":"BAT","totalSupply":"1500000000000000000000000000","owner":"","lastUpdated":1590236994,"txsCount":1577361,"transfersCount":1995598,"issuancesCount":0,"holdersCount":292851,"ethTransfersCount":10344,"price":{"rate":0.203680883955,"diff":-0.04,"diff7d":-0.55,"ts":1590236524,"marketCapUsd":296870415.670138,"availableSupply":1457527137.0863,"volume24h":76047211.7737589,"diff30d":22.374258660625458,"currency":"USD"},"opCount":117908},{"address":"0x4331e8d6358097ed9d253e6e3e6ccd93fe5960a4","name":"Hybrid Token International","decimals":"2","symbol":"HTI","totalSupply":"2396825109","owner":"","lastUpdated":1590211927,"txsCount":8827,"transfersCount":318441,"issuancesCount":0,"holdersCount":7664,"ethTransfersCount":0,"price":false,"opCount":101267},{"address":"0xe41d2489571d322189246dafa5ebde1f4699f498","name":"0x Protocol Token","decimals":"18","symbol":"ZRX","totalSupply":"1000000000000000000000000000","owner":"","lastUpdated":1590236974,"txsCount":1060122,"transfersCount":1314510,"issuancesCount":0,"holdersCount":140414,"ethTransfersCount":33,"price":{"rate":0.328646068552,"diff":-3.41,"diff7d":-16.3,"ts":1590236524,"marketCapUsd":214600975.06096646,"availableSupply":652985066.903398,"volume24h":58548613.2617438,"diff30d":90.6127359771408,"currency":"USD"},"opCount":91758},{"address":"0x8400d94a5cb0fa0d041a3788e395285d61c9ee5e","name":"Unibright Token","decimals":"8","symbol":"UBT","totalSupply":"15000000000000000","owner":"","lastUpdated":1519379244645,"txsCount":63911,"transfersCount":222855,"issuancesCount":0,"holdersCount":11938,"image":"https://ethplorer.io/images/unibright-logo.svg","description":"The Unibright Token is a utility token empowering the Unibright Framework, the unified framework for blockchain based business integration.","website":"https://unibright.io","facebook":"Unibright.IO","twitter":"unibrightio","ethTransfersCount":0,"price":{"rate":0.54778918614,"diff":5,"diff7d":39.07,"ts":1590236527,"marketCapUsd":81398733.70006695,"availableSupply":148594999.243493,"volume24h":58891098.3162884,"diff30d":139.8403740450511,"currency":"USD"},"opCount":89295},{"address":"0x9dffe202df7f82ba57a7f8d571628805eff7fed9","name":"Green\u00a0(China)\u00a0ecosystem","decimals":"18","symbol":"GEC","totalSupply":"100000000000000000000000000","owner":"","lastUpdated":1590236782,"transfersCount":269116,"txsCount":269910,"issuancesCount":0,"holdersCount":1178,"ethTransfersCount":0,"price":false,"opCount":83115},{"address":"0x1f573d6fb3f13d689ff844b4ce37794d79a7ff1c","name":"Bancor Network Token","decimals":"18","symbol":"BNT","totalSupply":"69148641563497615885437301","owner":"0x9c248517b92ae226b88a0a0c28de02b9b7b039d3","lastUpdated":1590236995,"transfersCount":2647258,"txsCount":183022,"issuancesCount":0,"holdersCount":24400,"ethTransfersCount":87,"price":{"rate":0.318873395753,"diff":12.66,"diff7d":58.19,"ts":1590236523,"marketCapUsd":22049662.147059515,"availableSupply":69148641.5634976,"volume24h":14835651.2490127,"diff30d":59.633007392965766,"currency":"USD"},"opCount":79426},{"address":"0x1b7ac38cb8fcdb3273e0dc8c9bb115a03247de62","decimals":"18","name":"ETA","symbol":"ETA","totalSupply":"324380500000000000000000","transfersCount":76321,"txsCount":21094,"lastUpdated":1590236930,"issuancesCount":0,"holdersCount":871,"ethTransfersCount":0,"price":false,"opCount":76321},{"address":"0x504b60a4133699c7056b58d3fe11ea73865a2d65","decimals":"8","name":"Capital Coin Extended","owner":"0x6adee236d538e45b4b7799a22a8442aecd6fed36","symbol":"CPTLX","totalSupply":"5000000000000000000","transfersCount":93514,"txsCount":93547,"lastUpdated":1590236950,"issuancesCount":0,"holdersCount":21547,"ethTransfersCount":0,"price":false,"opCount":63408},{"address":"0xcadb96858fe496bb6309622f9023ba2defb5d540","name":"SBToken","decimals":"18","symbol":"SBC","totalSupply":"9999999999000000000000000000","owner":"0x87d2089c17df4b0fef9f04679e8ff0433dde81a0","lastUpdated":1590236993,"txsCount":831892,"transfersCount":830428,"issuancesCount":0,"holdersCount":10335,"ethTransfersCount":0,"price":false,"opCount":61247},{"address":"0x04abeda201850ac0124161f037efd70c74ddc74c","name":"NEST","decimals":"18","symbol":"NEST","totalSupply":"10000000000000000000000000000","owner":"","lastUpdated":1590236964,"txsCount":43263,"transfersCount":419827,"issuancesCount":0,"holdersCount":4383,"ethTransfersCount":0,"price":false,"opCount":59929},{"address":"0xb64ef51c888972c908cfacf59b47c1afbc0ab8ac","name":"STORJ","decimals":"8","symbol":"STORJ","totalSupply":"42499999800001337","owner":"","lastUpdated":1553525765526,"transfersCount":1587910,"txsCount":1318202,"issuancesCount":0,"holdersCount":69116,"image":"https://ethplorer.io/images/storj.png","description":"Storj Labs provides secure distributed cloud storage that gives customers control over their data. The company\u2019s open-source cloud storage platform utilizes spare disk drive space shared by its community of storage node operators to create a secure network for developers, operations teams, companies and others in need of secure cloud storage. Using client-side encryption, the Storj network ensures that data can only be accessed by the data owners. The distributed architecture of the Storj network protects against attacks, improves reliability and enhances performance when compared to many traditional cloud storage approaches.","website":"https://storj.io","facebook":"storjproject","twitter":"storjproject","reddit":"storj","links":"Medium: https://medium.com/@storjproject\nGitHub: https://github.com/Storj/\nInteractive support at our Rocket.Chat: https://community.storj.io","ethTransfersCount":46,"price":{"rate":0.126949794299,"diff":-2.66,"diff7d":17.64,"ts":1590236523,"marketCapUsd":20259790.191606022,"availableSupply":159588995.819,"volume24h":103845371.02644,"diff30d":32.90859027364829,"currency":"USD"},"opCount":59920},{"address":"0xd9e24d0f97ab29d23734d5122f87e333a371321b","name":"Karl Benz","decimals":"18","symbol":"KAR","totalSupply":"63000000000000000000000000","owner":"","lastUpdated":1590236974,"transfersCount":235027,"txsCount":239919,"issuancesCount":0,"holdersCount":7380,"ethTransfersCount":0,"price":false,"opCount":59075},{"address":"0xd7cc16500d0b0ac3d0ba156a584865a43b0b0050","name":"Tepleton","decimals":"8","symbol":"TEP","totalSupply":"51956297298432684","owner":"","lastUpdated":1590236977,"transfersCount":819488,"txsCount":773356,"issuancesCount":0,"holdersCount":60515,"ethTransfersCount":0,"price":false,"opCount":55687},{"address":"0xc0829421c1d260bd3cb3e0f06cfe2d52db2ce315","name":"Ether Token","decimals":"18","symbol":"ETH","totalSupply":"12320544505839790094966","owner":"0x9d0357d184122b85dbc095d196b5ebbafc7f3010","lastUpdated":1590236977,"txsCount":1689,"transfersCount":2150250,"issuancesCount":0,"holdersCount":219,"ethTransfersCount":0,"price":false,"opCount":55182},{"address":"0xf629cbd94d3791c9250152bd8dfbdf380e2a3b9c","name":"Enjin Coin","decimals":"18","symbol":"ENJ","totalSupply":"1000000000000000000000000000","owner":"0xde63aef60307655405835da74ba02ce4db1a42fb","lastUpdated":1590236964,"transfersCount":915025,"txsCount":513630,"issuancesCount":0,"holdersCount":53720,"ethTransfersCount":47,"price":{"rate":0.172664702031,"diff":-0.94,"diff7d":3.38,"ts":1590236524,"marketCapUsd":141545710.39819965,"availableSupply":819772129.064264,"volume24h":12118889.3061823,"diff30d":49.060246867440156,"currency":"USD"},"opCount":53960},{"address":"0xe99a894a69d7c2e3c92e61b64c505a6a57d2bc07","name":"Hyperion Token","decimals":"18","symbol":"HYN","totalSupply":"10000000000000000000000000000","owner":"","lastUpdated":1590236965,"txsCount":113301,"transfersCount":119749,"issuancesCount":0,"holdersCount":9035,"ethTransfersCount":0,"price":{"rate":0.479041009856,"diff":-0.61,"diff7d":-20.34,"ts":1590236531,"marketCapUsd":151743864.96213254,"availableSupply":316765917.406,"volume24h":14686553.1188681,"diff30d":263.9082876677768,"currency":"USD"},"opCount":53528},{"address":"0xdd974d5c2e2928dea5f71b9825b8b646686bd200","name":"Kyber Network Crystal","decimals":"18","symbol":"KNC","totalSupply":"210757979380420251847471802","owner":"0xfdf28bf25779ed4ca74e958d54653260af604c20","lastUpdated":1590236977,"txsCount":460467,"transfersCount":831517,"issuancesCount":1263,"holdersCount":66298,"ethTransfersCount":62,"price":{"rate":0.687499768603,"diff":8.06,"diff7d":8.75,"ts":1590236523,"marketCapUsd":123769406.97890434,"availableSupply":180028288.926415,"volume24h":68848589.1835471,"diff30d":44.856126435473215,"currency":"USD"},"opCount":52851},{"address":"0x744d70fdbe2ba4cf95131626614a1763df805b9e","name":"Status Network","decimals":"18","symbol":"SNT","totalSupply":"6804870174878168246198837603","owner":"","lastUpdated":1590236785,"transfersCount":876891,"txsCount":818844,"issuancesCount":0,"holdersCount":83711,"image":"https://ethplorer.io/images/status.png","description":"https://status.im","ethTransfersCount":106,"price":{"rate":0.0254172323186,"diff":0.19,"diff7d":-9.59,"ts":1590236523,"marketCapUsd":88210092.69753094,"availableSupply":3470483788,"volume24h":23515748.5300781,"diff30d":42.4122264845351,"currency":"USD"},"opCount":46779},{"address":"0xe498c0d37e1cab443d7f8bd74bd820bb9d5b6bd6","name":"Dkey","decimals":"18","symbol":"Dkey","totalSupply":"260000000000000000000000000","owner":"","lastUpdated":1590235923,"txsCount":58819,"transfersCount":83210,"issuancesCount":0,"holdersCount":842,"ethTransfersCount":0,"price":false,"opCount":46164},{"address":"0xd26114cd6ee289accf82350c8d8487fedb8a0c07","name":"OMGToken","decimals":"18","symbol":"OMG","totalSupply":"140245398245132780789239631","owner":"0x000000000000000000000000000000000000dead","lastUpdated":1590236949,"txsCount":1855687,"transfersCount":2595797,"issuancesCount":0,"holdersCount":660022,"ethTransfersCount":80,"price":{"rate":1.92135496795,"diff":11.54,"diff7d":104.73,"ts":1590236524,"marketCapUsd":269461192.6504125,"availableSupply":140245398.245133,"volume24h":718733389.440711,"diff30d":226.41236237186666,"currency":"USD"},"opCount":45701},{"address":"0x65c0469fa7a3ceb8130598e90f5f76c11b7e51aa","name":"WinCoin","decimals":"18","symbol":"WIN","totalSupply":"20855000000000000000000000","owner":"0x885be03f8538b6506a62a00769bb5f45edcb9edd","lastUpdated":1590236994,"txsCount":58005,"transfersCount":58001,"issuancesCount":0,"holdersCount":24010,"ethTransfersCount":0,"price":false,"opCount":45675},{"address":"0x8fdcc30eda7e94f1c12ce0280df6cd531e8365c5","name":"CpcToken","decimals":"18","symbol":"CPCT","totalSupply":"2000000000000000000000000000","owner":"0xe016ec3c5010ae27fb3889913bfe2cc233995908","lastUpdated":1590231071,"transfersCount":2156187,"txsCount":2159906,"issuancesCount":0,"holdersCount":33704,"ethTransfersCount":0,"price":false,"opCount":45236},{"address":"0x1f3f677ecc58f6a1f9e2cf410df4776a8546b5de","name":"VNDC","decimals":0,"symbol":"VNDC","totalSupply":"118691454400","owner":"0x004d050267b7cbdd223a591824c34f69a8a7a7b7","lastUpdated":1590236061,"transfersCount":470561,"txsCount":87196,"issuancesCount":0,"holdersCount":223020,"ethTransfersCount":0,"price":{"rate":4.26194028237e-5,"diff":-0.16,"diff7d":-0.53,"ts":1590236533,"marketCapUsd":4343780.3091667695,"availableSupply":101920252781,"volume24h":367859.914306309,"diff30d":0.758280838388913,"currency":"USD"},"opCount":45199},{"address":"0xd6a55c63865affd67e2fb9f284f87b7a9e5ff3bd","name":"Switch","decimals":"18","symbol":"ESH","totalSupply":"13573399962178395518700000","owner":"0x6bca1115cdd3e37a9dfc8dd701296b58bd6f16e3","lastUpdated":1590236974,"transfersCount":45227,"txsCount":17239,"issuancesCount":0,"holdersCount":5139,"ethTransfersCount":0,"price":{"rate":0.866624087443,"diff":-22.82,"diff7d":-51.49,"ts":1590236532,"marketCapUsd":9226799.332910756,"availableSupply":10646830,"volume24h":3527294.49738312,"diff30d":5243.3209796930405,"currency":"USD"},"opCount":44452},{"address":"0x2260fac5e5542a773aa44fbcfedf7c193bc2c599","name":"Wrapped BTC","decimals":"8","symbol":"WBTC","totalSupply":"385132733215","owner":"0xca06411bd7a7296d7dbdd0050dfc846e95febeb7","lastUpdated":1590236992,"txsCount":12942,"transfersCount":189305,"issuancesCount":9,"holdersCount":2554,"ethTransfersCount":0,"price":{"rate":9211.80576151,"diff":0.3,"diff7d":-2.8,"ts":1590236531,"marketCapUsd":11951082.047385586,"availableSupply":1297.36583215,"volume24h":281117.33511618,"diff30d":27.3221767129384,"currency":"USD"},"opCount":42416},{"address":"0x0ba45a8b5d5575935b8158a88c631e9f9c95a2e5","name":"Tellor Tributes","decimals":"18","symbol":"TRB","totalSupply":"1306802455743805356251088","owner":"","lastUpdated":1590236816,"txsCount":414169,"transfersCount":341695,"issuancesCount":0,"holdersCount":1927,"ethTransfersCount":0,"price":{"rate":5.06775070328,"diff":7.9,"diff7d":-0.59,"ts":1590236533,"marketCapUsd":5870387.123290167,"availableSupply":1158381.19651203,"volume24h":57394966.5048561,"diff30d":-3.3716006334265956,"currency":"USD"},"opCount":41503},{"address":"0x0000000000085d4780b73119b644ae5ecd22b376","name":"TrueUSD","decimals":"18","symbol":"TUSD","totalSupply":"141190908030000000000000000","owner":"0x0000000000075efbee23fe2de1bd0b7690883cc9","lastUpdated":1562243417542,"txsCount":695452,"transfersCount":670580,"issuancesCount":3198,"holdersCount":27315,"website":"https://www.trusttoken.com","facebook":"TrustToken","twitter":"TrustToken","telegram":"https://t.me/joinchat/HihkMkTja1gIyBRM1J1_vg","image":"https://ethplorer.io/images/trueusd.png","ethTransfersCount":0,"price":{"rate":0.998689526013,"diff":-0.05,"diff7d":-0.06,"ts":1590236526,"marketCapUsd":137200969.4483694,"availableSupply":137381003.68,"volume24h":126709547.489867,"diff30d":0.1123021325759197,"currency":"USD"},"opCount":35656},{"address":"0x4501b184694b401b53b3a4f266f8ef24fec09df8","name":"FDG","decimals":"18","symbol":"FDG","totalSupply":"210000000000000000000000000","owner":"","lastUpdated":1590235873,"transfersCount":101599,"txsCount":101824,"issuancesCount":0,"holdersCount":11039,"ethTransfersCount":0,"price":false,"opCount":34903},{"address":"0xb63b606ac810a52cca15e44bb630fd42d8d1d83d","name":"Monaco","decimals":"8","symbol":"MCO","totalSupply":"3158768236320610","owner":"0x51b9311eb6ec8beb049dafeafe389ee2818b1b20","lastUpdated":1531744704973,"transfersCount":381078,"txsCount":329027,"issuancesCount":0,"holdersCount":26006,"description":"The MCO project, formerly known as Monaco, started in June 2016 with the vision to put cryptocurrency in every wallet. On July 6th, 2018, Monaco announced its rebrand to CRYPTO.com and its consumer services (including MCO Visa Card and MCO Wallet App) have been rebranded as MCO. \n\nMCO is redefining how money is being moved, spent and invested. MCO is democratizing blockchain technology by designing beautiful, simple and useful financial services that have a lasting, positive impact on people\u2019s lives. ","website":"https://mco.crypto.com","facebook":"MCOCryptoOfficial","twitter":"MCO_Crypto","reddit":"MCOCrypto","ethTransfersCount":36,"price":{"rate":5.44002780551,"diff":-0.19,"diff7d":-1.43,"ts":1590236523,"marketCapUsd":85918880.31212445,"availableSupply":15793831.0949625,"volume24h":48120643.9245131,"diff30d":7.8032924169463485,"currency":"USD"},"opCount":33415},{"address":"0xac08809df1048b82959d6251fbc9538920bed1fa","name":"MSD","decimals":"8","symbol":"MSD","totalSupply":"10000000000000000008","owner":"0xf39b8248159193d6d748ce9e54172ab26624f668","lastUpdated":1590236458,"transfersCount":2063105,"txsCount":996863,"issuancesCount":0,"holdersCount":476232,"ethTransfersCount":0,"price":false,"opCount":32262},{"address":"0xe71377e968354013f85c597f2ed888f33778cc65","name":"sla","decimals":"8","symbol":"sla","totalSupply":"100000000000000000","owner":"","lastUpdated":1589772519,"transfersCount":102997,"txsCount":108804,"issuancesCount":0,"holdersCount":5022,"ethTransfersCount":0,"price":false,"opCount":30675},{"address":"0x5ef696212d8f198204e2f823f9deadc5f8eaa361","name":"EAS","decimals":"18","symbol":"EAS","totalSupply":"10000000000000000000000000000","owner":"","txsCount":30325,"transfersCount":30292,"lastUpdated":1590235057,"issuancesCount":0,"holdersCount":29179,"ethTransfersCount":0,"price":false,"opCount":30270},{"address":"0x419d0d8bdd9af5e606ae2232ed285aff190e711b","name":"FunFair","decimals":"8","symbol":"FUN","totalSupply":"1099987362139802550","owner":"0xb2e4f9c3ca031894a96197de724f05786a00dbf1","lastUpdated":1555925352811,"transfersCount":513208,"txsCount":370208,"issuancesCount":0,"holdersCount":71008,"image":"https://ethplorer.io/images/funfair.png","description":"FUN token powers every aspect of the FunFair gaming ecosystem, from staking, winnings, licence fees, affiliate rewards and developer payments.","facebook":"groups/148397155706069","twitter":"FunFairTech","reddit":"FunfairTech","telegram":"https://t.me/joinchat/HtUKhUpG0FCu_X25mnU2B","ethTransfersCount":22,"price":{"rate":0.00286533669064,"diff":4.49,"diff7d":6.99,"ts":1590236522,"marketCapUsd":18764743.821846012,"availableSupply":6548879188.66342,"volume24h":500060.579786268,"diff30d":63.261601393194894,"currency":"USD"},"opCount":28412},{"address":"0x0f5d2fb29fb7d3cfee444a200298f468908cc942","name":"Decentraland","decimals":18,"symbol":"MANA","totalSupply":"2197596218534152513924741837","owner":"0xa66d83716c7cfe425b44d0f7ef92de263468fb3d","lastUpdated":1590236935,"txsCount":370969,"transfersCount":573046,"issuancesCount":17145,"holdersCount":38744,"description":"A virtual world that runs on open standards","ethTransfersCount":17,"price":{"rate":0.0384329182248,"diff":4.31,"diff7d":5.92,"ts":1590236523,"marketCapUsd":52659360.82997495,"availableSupply":1370162955.67155,"volume24h":24889078.8595095,"diff30d":36.45210107553413,"currency":"USD"},"opCount":28183},{"address":"0x57ab1e02fee23774580c119740129eac7081e9d3","name":"Synth sUSD","decimals":"18","symbol":"sUSD","totalSupply":"6938349776046065865749993","owner":"0xeb3107117fead7de89cd14d463d340a2e6917769","lastUpdated":1589168186,"transfersCount":258428,"txsCount":13823,"issuancesCount":0,"holdersCount":8396,"ethTransfersCount":0,"price":{"rate":0.979316242126,"diff":-0.79,"diff7d":-1.86,"ts":1590236528,"marketCapUsd":6828287.221911624,"availableSupply":6972504.82345527,"volume24h":1439.30873533483,"diff30d":-2.4222411820095573,"currency":"USD"},"opCount":26933}]} \ No newline at end of file diff --git a/cache/sUSD.json b/cache/sUSD.json new file mode 100644 index 0000000..722b34b --- /dev/null +++ b/cache/sUSD.json @@ -0,0 +1 @@ +{"address": "0x57ab1e02fee23774580c119740129eac7081e9d3", "abi": [{"constant": false, "inputs": [{"name": "_owner", "type": "address"}], "name": "nominateNewOwner", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "nominatedOwner", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "_target", "type": "address"}], "name": "setTarget", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [], "name": "acceptOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "owner", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "callData", "type": "bytes"}, {"name": "numTopics", "type": "uint256"}, {"name": "topic1", "type": "bytes32"}, {"name": "topic2", "type": "bytes32"}, {"name": "topic3", "type": "bytes32"}, {"name": "topic4", "type": "bytes32"}], "name": "_emit", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "useDELEGATECALL", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "value", "type": "bool"}], "name": "setUseDELEGATECALL", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "target", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"inputs": [{"name": "_owner", "type": "address"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"payable": true, "stateMutability": "payable", "type": "fallback"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "newTarget", "type": "address"}], "name": "TargetUpdated", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "newOwner", "type": "address"}], "name": "OwnerNominated", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "oldOwner", "type": "address"}, {"indexed": false, "name": "newOwner", "type": "address"}], "name": "OwnerChanged", "type": "event"}]} \ No newline at end of file diff --git a/infmon/eth.py b/infmon/eth.py new file mode 100644 index 0000000..6bf2310 --- /dev/null +++ b/infmon/eth.py @@ -0,0 +1,51 @@ +import os +import json +import web3 +from pathlib import Path +from infmon.io import get_contract_abi + + +def read_credentials(cred_dir): + with open(os.path.join(cred_dir, 'credentials.json'), 'r') as f: + os.environ['CREDENTIALS'] = f.read() + + +def connect(): + credentials = json.loads(os.environ.get('CREDENTIALS')) + os.environ['WEB3_INFURA_PROJECT_ID'] = credentials['infura']['project_id'] + os.environ['WEB3_INFURA_API_SECRET'] = credentials['infura']['secret'] + + if credentials['infura']['network'] == 'kovan': + from web3.auto.infura.kovan import w3 + else: + from web3.auto.infura import w3 + + assert w3.isConnected() + + w3.eth.defaultAccount = w3.eth.account.from_key(credentials['mainnet']['key']) + + return w3 + + +def get_contract(name, address=None, abi=None): + credentials = json.loads(os.environ.get('CREDENTIALS')) + cache_dir = Path(__file__).parent / "../cache" + if not cache_dir.is_dir(): + os.mkdir(cache_dir) + cache_file = cache_dir / f'{name}.json' + if cache_file.is_file(): + with open(cache_file, 'r') as f: + contract_details = json.load(f) + else: + if abi is None: + abi = get_contract_abi( + address, + etherscan_api_key=credentials['etherscan']['api_key'] + ) + contract_details = { + 'address': address, + 'abi': abi + } + with open(cache_file, 'w') as f: + json.dump(contract_details, f) + return contract_details