-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run code formatter so github actions pass
- Loading branch information
1 parent
da2b22a
commit c27330c
Showing
8 changed files
with
344 additions
and
342 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,222 +1,117 @@ | ||
erc20_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": 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": "", | ||
"type": "bool" | ||
} | ||
], | ||
"payable": False, | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": True, | ||
"inputs": [ | ||
{ | ||
"name": "_owner", | ||
"type": "address" | ||
}, | ||
{ | ||
"name": "_spender", | ||
"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": "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" | ||
} | ||
] | ||
{ | ||
"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": 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": "", "type": "bool"}], | ||
"payable": False, | ||
"stateMutability": "nonpayable", | ||
"type": "function", | ||
}, | ||
{ | ||
"constant": True, | ||
"inputs": [ | ||
{"name": "_owner", "type": "address"}, | ||
{"name": "_spender", "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": "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", | ||
}, | ||
] |
Oops, something went wrong.