@0xcert/ethereum-erc20-contracts
Version:
Smart contract implementation of the ERC-20 standard on the Ethereum blockchain.
145 lines • 5.26 kB
JSON
{
"ZxcBurner": {
"abi": [
{
"inputs": [
{
"internalType": "address",
"name": "_zxcAddress",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_value",
"type": "uint256"
}
],
"name": "burn",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "claim",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"evm": {
"bytecode": {
"object": "608060405234801561001057600080fd5b506040516102d23803806102d283398101604081905261002f91610054565b600080546001600160a01b0319166001600160a01b0392909216919091179055610082565b600060208284031215610065578081fd5b81516001600160a01b038116811461007b578182fd5b9392505050565b610241806100916000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c806342966c681461003b5780634e71d92d14610050575b600080fd5b61004e6100493660046101c6565b610058565b005b61004e610144565b6000546040516323b872dd60e01b81526001600160a01b03909116906323b872dd9061008c903390309086906004016101de565b602060405180830381600087803b1580156100a657600080fd5b505af11580156100ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100de919061019f565b50600054604051630852cd8d60e31b81526001600160a01b03909116906342966c689061010f908490600401610202565b600060405180830381600087803b15801561012957600080fd5b505af115801561013d573d6000803e3d6000fd5b5050505050565b60008054604080516309ce3c1960e31b815290516001600160a01b0390921692634e71e0c89260048084019382900301818387803b15801561018557600080fd5b505af1158015610199573d6000803e3d6000fd5b50505050565b6000602082840312156101b0578081fd5b815180151581146101bf578182fd5b9392505050565b6000602082840312156101d7578081fd5b5035919050565b6001600160a01b039384168152919092166020820152604081019190915260600190565b9081526020019056fea2646970667358221220dc8ebb5dee61b33ddfd3d469f87534b32bcb10fefe636de13b9115ea92059a8064736f6c63430008000033"
},
"methodIdentifiers": {
"burn(uint256)": "42966c68",
"claim()": "4e71d92d"
}
},
"metadata": {
"compiler": {
"version": "0.8.0+commit.c7dfd78e"
},
"language": "Solidity",
"output": {
"abi": [
{
"inputs": [
{
"internalType": "address",
"name": "_zxcAddress",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_value",
"type": "uint256"
}
],
"name": "burn",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "claim",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"devdoc": {
"details": "This contract has ownership over ZXC smart contract and as such allows anyone to burn their ZXC tokens.",
"kind": "dev",
"methods": {
"burn(uint256)": {
"details": "Allows anyone to burn tokens that they own. First you need to approve this contract for token amount then call this function with the amount you want to burn.",
"params": {
"_value": "Amount of tokens you want to burn."
}
},
"claim()": {
"details": "Claims ownership of ZXC token contract."
},
"constructor": {
"params": {
"_zxcAddress": "ZXC contract address."
}
}
},
"stateVariables": {
"zxcToken": {
"details": "ZXC token contract."
}
},
"title": "This is a contract that allows anyone to burn ZXC tokens.",
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
},
"settings": {
"compilationTarget": {
"./src/contracts/zxc-burner.sol": "ZxcBurner"
},
"evmVersion": "istanbul",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs"
},
"optimizer": {
"enabled": true,
"runs": 200
},
"remappings": []
},
"sources": {
"./src/contracts/zxc-burner.sol": {
"keccak256": "0xab9ad3c24a811383378ff156962390272b91b6d149e79f9e9ade0b202040770a",
"license": "MIT",
"urls": [
"bzz-raw://5b9347c0eaafd5c145e00245798db4812d8325a511f18179f8a797ffb6c28168",
"dweb:/ipfs/QmakpEpYSJD43oiirZwV1Mkr1Nv6RQP6zPNmhe34jJwmdk"
]
}
},
"version": 1
}
}
}