Misc: |
|
Contract Creator: | 0x4a6f943f235ca7209fcaf2dd77f0fe45022d2526at txn 0xf51ff641f06286f69cdae3abaa4bed87a53e39343794e473a55ce9160f15645e |
ParentTxHash | Block | Age | From | To | Value |
---|
Contract Name: | BurnContract |
Compiler Version: | v0.4.23+commit.124ca40d |
Optimization Enabled: | No |
Runs (Optimiser): | 200 |
pragma solidity ^0.4.23; contract BurnContract { struct Burn { address burnerAddress; string message; uint burntAmount; } event BurnEvent(address burnerAddress, string message, uint burntAmount); Burn[] public burns; function burn(string _message) public payable { require(msg.value > 0); Burn memory b = Burn(msg.sender, _message, msg.value); burns.push(b); emit BurnEvent(msg.sender, _message, msg.value); } function burnCount() public view returns(uint) { return burns.length; } }
[{"constant":true,"inputs":[],"name":"burnCount","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"burns","outputs":[{"name":"burnerAddress","type":"address"},{"name":"message","type":"string"},{"name":"burntAmount","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_message","type":"string"}],"name":"burn","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"anonymous":false,"inputs":[{"indexed":false,"name":"burnerAddress","type":"address"},{"indexed":false,"name":"message","type":"string"},{"indexed":false,"name":"burntAmount","type":"uint256"}],"name":"BurnEvent","type":"event"}]
608060405234801561001057600080fd5b5061058f806100206000396000f300608060405260043610610057576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff168063524773ce1461005c578063a86eb29214610087578063dafa1d2d14610167575b600080fd5b34801561006857600080fd5b506100716101c3565b6040518082815260200191505060405180910390f35b34801561009357600080fd5b506100b2600480360381019080803590602001909291905050506101cf565b604051808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200180602001838152602001828103825284818151815260200191508051906020019080838360005b8381101561012a57808201518184015260208101905061010f565b50505050905090810190601f1680156101575780820380516001836020036101000a031916815260200191505b5094505050505060405180910390f35b6101c1600480360381019080803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091929192905050506102c0565b005b60008080549050905090565b6000818154811015156101de57fe5b90600052602060002090600302016000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690806001018054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156102b05780601f10610285576101008083540402835291602001916102b0565b820191906000526020600020905b81548152906001019060200180831161029357829003601f168201915b5050505050908060020154905083565b6102c8610486565b6000341115156102d757600080fd5b6060604051908101604052803373ffffffffffffffffffffffffffffffffffffffff1681526020018381526020013481525090506000819080600181540180825580915050906001820390600052602060002090600302016000909192909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550602082015181600101908051906020019061039c9291906104be565b50604082015181600201555050507f1e5a5958819cd36969488e0de5d1e33f864baae57502a06d465278b302653335338334604051808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200180602001838152602001828103825284818151815260200191508051906020019080838360005b8381101561044657808201518184015260208101905061042b565b50505050905090810190601f1680156104735780820380516001836020036101000a031916815260200191505b5094505050505060405180910390a15050565b606060405190810160405280600073ffffffffffffffffffffffffffffffffffffffff16815260200160608152602001600081525090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106104ff57805160ff191683800117855561052d565b8280016001018555821561052d579182015b8281111561052c578251825591602001919060010190610511565b5b50905061053a919061053e565b5090565b61056091905b8082111561055c576000816000905550600101610544565b5090565b905600a165627a7a723058203030817bbbcfb607c0761b1da37ee8b2adea7a1ab6a7818b92213965d17de3cb0029
bzzr://3030817bbbcfb607c0761b1da37ee8b2adea7a1ab6a7818b92213965d17de3cb
Block | Age | transaction | Difficulty | GasUsed | Reward |
---|
Block | Age | UncleNumber | Difficulty | GasUsed | Reward |
---|