Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 6,455 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Merge | 19091490 | 385 days ago | IN | 0 ETH | 0.00246589 | ||||
Merge | 19086824 | 386 days ago | IN | 0 ETH | 0.00163805 | ||||
Merge | 19086821 | 386 days ago | IN | 0 ETH | 0.00158091 | ||||
Merge | 18629500 | 450 days ago | IN | 0 ETH | 0.00399644 | ||||
Merge | 18629490 | 450 days ago | IN | 0 ETH | 0.00423164 | ||||
Merge | 18629467 | 450 days ago | IN | 0 ETH | 0.0043013 | ||||
Merge | 18629365 | 450 days ago | IN | 0 ETH | 0.00634087 | ||||
Merge | 18629053 | 450 days ago | IN | 0 ETH | 0.00491064 | ||||
Merge | 18629035 | 450 days ago | IN | 0 ETH | 0.00488747 | ||||
Merge | 18629010 | 450 days ago | IN | 0 ETH | 0.00369801 | ||||
Merge | 18476903 | 472 days ago | IN | 0 ETH | 0.0016783 | ||||
Merge | 18476899 | 472 days ago | IN | 0 ETH | 0.00162956 | ||||
Merge | 18201172 | 510 days ago | IN | 0 ETH | 0.00093951 | ||||
Merge | 18150315 | 517 days ago | IN | 0 ETH | 0.00147669 | ||||
Merge | 18145554 | 518 days ago | IN | 0 ETH | 0.00079651 | ||||
Merge | 18102289 | 524 days ago | IN | 0 ETH | 0.00099297 | ||||
Merge | 17980917 | 541 days ago | IN | 0 ETH | 0.00152141 | ||||
Merge | 17947165 | 546 days ago | IN | 0 ETH | 0.00134019 | ||||
Merge | 17947162 | 546 days ago | IN | 0 ETH | 0.00102399 | ||||
Merge | 17889003 | 554 days ago | IN | 0 ETH | 0.00117183 | ||||
Merge | 17795046 | 567 days ago | IN | 0 ETH | 0.00225293 | ||||
Merge | 17795043 | 567 days ago | IN | 0 ETH | 0.0023691 | ||||
Merge | 17762587 | 572 days ago | IN | 0 ETH | 0.00325402 | ||||
Merge | 17696817 | 581 days ago | IN | 0 ETH | 0.00115473 | ||||
Merge | 17696814 | 581 days ago | IN | 0 ETH | 0.00108431 |
Advanced mode: Intended for advanced users or developers and will display all Internal Transactions including zero value transfers. Name tag integration is not available in advanced view.
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
||||
---|---|---|---|---|---|---|---|
19091490 | 385 days ago | 0 ETH | |||||
19091490 | 385 days ago | 0 ETH | |||||
19091490 | 385 days ago | 0 ETH | |||||
19086824 | 386 days ago | 0 ETH | |||||
19086824 | 386 days ago | 0 ETH | |||||
19086824 | 386 days ago | 0 ETH | |||||
19086821 | 386 days ago | 0 ETH | |||||
19086821 | 386 days ago | 0 ETH | |||||
19086821 | 386 days ago | 0 ETH | |||||
18629500 | 450 days ago | 0 ETH | |||||
18629500 | 450 days ago | 0 ETH | |||||
18629500 | 450 days ago | 0 ETH | |||||
18629490 | 450 days ago | 0 ETH | |||||
18629490 | 450 days ago | 0 ETH | |||||
18629490 | 450 days ago | 0 ETH | |||||
18629467 | 450 days ago | 0 ETH | |||||
18629467 | 450 days ago | 0 ETH | |||||
18629467 | 450 days ago | 0 ETH | |||||
18629365 | 450 days ago | 0 ETH | |||||
18629365 | 450 days ago | 0 ETH | |||||
18629365 | 450 days ago | 0 ETH | |||||
18629053 | 450 days ago | 0 ETH | |||||
18629053 | 450 days ago | 0 ETH | |||||
18629053 | 450 days ago | 0 ETH | |||||
18629035 | 450 days ago | 0 ETH |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
KillaChroniclesMerger
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.17; import "@openzeppelin/contracts/access/Ownable.sol"; struct Recipe { uint256 result; uint256[] ingredients; uint256[] quantities; } interface IKillaChronicles { function mint( uint256 tokenId, address recipient, uint256 qty ) external; function burn( uint256 tokenId, address owner, uint256 qty ) external; } interface IKillaChroniclesSBT { function increaseBalance( address recipient, uint256 volumeId, uint256 qty ) external; } /* ---------- Contract ---------- */ contract KillaChroniclesMerger is Ownable { IKillaChronicles immutable chroniclesContract; IKillaChroniclesSBT sbtContract; uint256 recipeCount; mapping(uint256 => Recipe) recipes; constructor(address chronicles, address sbt) { chroniclesContract = IKillaChronicles(chronicles); sbtContract = IKillaChroniclesSBT(sbt); } error NonExistentMergeRecipe(); /* --------- Merging --------- */ /// @notice Merge chronicles function merge(uint256 id, uint256 qty) external { Recipe storage recipe = recipes[id]; if (recipe.result == 0) revert NonExistentMergeRecipe(); for (uint256 i = 0; i < recipe.ingredients.length; i++) { chroniclesContract.burn( recipe.ingredients[i], msg.sender, qty * recipe.quantities[i] ); sbtContract.increaseBalance( msg.sender, recipe.ingredients[i], qty * recipe.quantities[i] ); } chroniclesContract.mint(recipe.result, msg.sender, qty); } /* ------- Admin ------- */ /// @notice Configure a merge recipe function configureRecipe(uint256 id, Recipe calldata recipe) external onlyOwner { recipes[id] = recipe; } /// @notice Remove a merge recipe function removeRecipe(uint256 id) external onlyOwner { delete recipes[id]; } /// @notice Changes the address of the SBT contract function setSBTContract(address sbt) external onlyOwner { sbtContract = IKillaChroniclesSBT(sbt); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"chronicles","type":"address"},{"internalType":"address","name":"sbt","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"NonExistentMergeRecipe","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"components":[{"internalType":"uint256","name":"result","type":"uint256"},{"internalType":"uint256[]","name":"ingredients","type":"uint256[]"},{"internalType":"uint256[]","name":"quantities","type":"uint256[]"}],"internalType":"struct Recipe","name":"recipe","type":"tuple"}],"name":"configureRecipe","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"qty","type":"uint256"}],"name":"merge","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"removeRecipe","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sbt","type":"address"}],"name":"setSBTContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a060405234801561001057600080fd5b506040516109ba3803806109ba83398101604081905261002f916100cc565b61003833610060565b6001600160a01b03918216608052600180546001600160a01b031916919092161790556100ff565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b03811681146100c757600080fd5b919050565b600080604083850312156100df57600080fd5b6100e8836100b0565b91506100f6602084016100b0565b90509250929050565b608051610899610121600039600081816101eb01526103cd01526108996000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c80638da5cb5b1161005b5780638da5cb5b146100b2578063c03f20ff146100d1578063d1c2babb146100e4578063f2fde38b146100f757600080fd5b806330095f8914610082578063715018a6146100975780638314b4e31461009f575b600080fd5b610095610090366004610590565b61010a565b005b610095610134565b6100956100ad3660046105c0565b610148565b600054604080516001600160a01b039092168252519081900360200190f35b6100956100df3660046105d9565b610182565b6100956100f2366004610627565b6101aa565b610095610105366004610590565b610436565b6101126104b4565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b61013c6104b4565b610146600061050e565b565b6101506104b4565b60008181526003602052604081208181559061016f600183018261055e565b61017d60028301600061055e565b505050565b61018a6104b4565b600082815260036020526040902081906101a48282610777565b50505050565b600082815260036020526040812080549091036101da57604051633b586d4960e11b815260040160405180910390fd5b60005b60018201548110156103a6577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316639eea5f6683600101838154811061022d5761022d610834565b90600052602060002001543385600201858154811061024e5761024e610834565b90600052602060002001548761026491906106c6565b6040516001600160e01b031960e086901b16815260048101939093526001600160a01b0390911660248301526044820152606401600060405180830381600087803b1580156102b257600080fd5b505af11580156102c6573d6000803e3d6000fd5b50506001805490850180546001600160a01b039092169350631e9f7a9b92503391859081106102f7576102f7610834565b906000526020600020015485600201858154811061031757610317610834565b90600052602060002001548761032d91906106c6565b6040516001600160e01b031960e086901b1681526001600160a01b03909316600484015260248301919091526044820152606401600060405180830381600087803b15801561037b57600080fd5b505af115801561038f573d6000803e3d6000fd5b50505050808061039e9061084a565b9150506101dd565b50805460405163020da84160e61b81526004810191909152336024820152604481018390527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063836a104090606401600060405180830381600087803b15801561041957600080fd5b505af115801561042d573d6000803e3d6000fd5b50505050505050565b61043e6104b4565b6001600160a01b0381166104a85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b6104b18161050e565b50565b6000546001600160a01b031633146101465760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161049f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b50805460008255906000526020600020908101906104b191905b8082111561058c5760008155600101610578565b5090565b6000602082840312156105a257600080fd5b81356001600160a01b03811681146105b957600080fd5b9392505050565b6000602082840312156105d257600080fd5b5035919050565b600080604083850312156105ec57600080fd5b82359150602083013567ffffffffffffffff81111561060a57600080fd5b83016060818603121561061c57600080fd5b809150509250929050565b6000806040838503121561063a57600080fd5b50508035926020909101359150565b6000808335601e1984360301811261066057600080fd5b83018035915067ffffffffffffffff82111561067b57600080fd5b6020019150600581901b360382131561069357600080fd5b9250929050565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176106dd576106dd6106b0565b92915050565b67ffffffffffffffff8311156106fb576106fb61069a565b600160401b83111561070f5761070f61069a565b805483825580841015610746576000828152602081208581019083015b808210156107425782825560018201915061072c565b5050505b5060008181526020812083915b8581101561076f57823582820155602090920191600101610753565b505050505050565b813581556001808201602061078e81860186610649565b67ffffffffffffffff8111156107a6576107a661069a565b600160401b8111156107ba576107ba61069a565b8354818555808210156107ee5760008581528481208381019083015b808210156107ea57828255908801906107d6565b5050505b50600093845260208420935b81811015610813578235858201559183019185016107fa565b5050505050506108266040830183610649565b6101a48183600286016106e3565b634e487b7160e01b600052603260045260246000fd5b60006001820161085c5761085c6106b0565b506001019056fea2646970667358221220f2b1dffccc813bf898ea6b72d6feddd83cbd514bf96ebd7f7ccfc4ca788f57e464736f6c634300081100330000000000000000000000009fff0b1a6e9e9554baf3f8a39b6353fda9c3005400000000000000000000000032ae32831b286bd21222731df72d8f7f136579ff
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061007d5760003560e01c80638da5cb5b1161005b5780638da5cb5b146100b2578063c03f20ff146100d1578063d1c2babb146100e4578063f2fde38b146100f757600080fd5b806330095f8914610082578063715018a6146100975780638314b4e31461009f575b600080fd5b610095610090366004610590565b61010a565b005b610095610134565b6100956100ad3660046105c0565b610148565b600054604080516001600160a01b039092168252519081900360200190f35b6100956100df3660046105d9565b610182565b6100956100f2366004610627565b6101aa565b610095610105366004610590565b610436565b6101126104b4565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b61013c6104b4565b610146600061050e565b565b6101506104b4565b60008181526003602052604081208181559061016f600183018261055e565b61017d60028301600061055e565b505050565b61018a6104b4565b600082815260036020526040902081906101a48282610777565b50505050565b600082815260036020526040812080549091036101da57604051633b586d4960e11b815260040160405180910390fd5b60005b60018201548110156103a6577f0000000000000000000000009fff0b1a6e9e9554baf3f8a39b6353fda9c300546001600160a01b0316639eea5f6683600101838154811061022d5761022d610834565b90600052602060002001543385600201858154811061024e5761024e610834565b90600052602060002001548761026491906106c6565b6040516001600160e01b031960e086901b16815260048101939093526001600160a01b0390911660248301526044820152606401600060405180830381600087803b1580156102b257600080fd5b505af11580156102c6573d6000803e3d6000fd5b50506001805490850180546001600160a01b039092169350631e9f7a9b92503391859081106102f7576102f7610834565b906000526020600020015485600201858154811061031757610317610834565b90600052602060002001548761032d91906106c6565b6040516001600160e01b031960e086901b1681526001600160a01b03909316600484015260248301919091526044820152606401600060405180830381600087803b15801561037b57600080fd5b505af115801561038f573d6000803e3d6000fd5b50505050808061039e9061084a565b9150506101dd565b50805460405163020da84160e61b81526004810191909152336024820152604481018390527f0000000000000000000000009fff0b1a6e9e9554baf3f8a39b6353fda9c300546001600160a01b03169063836a104090606401600060405180830381600087803b15801561041957600080fd5b505af115801561042d573d6000803e3d6000fd5b50505050505050565b61043e6104b4565b6001600160a01b0381166104a85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b6104b18161050e565b50565b6000546001600160a01b031633146101465760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161049f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b50805460008255906000526020600020908101906104b191905b8082111561058c5760008155600101610578565b5090565b6000602082840312156105a257600080fd5b81356001600160a01b03811681146105b957600080fd5b9392505050565b6000602082840312156105d257600080fd5b5035919050565b600080604083850312156105ec57600080fd5b82359150602083013567ffffffffffffffff81111561060a57600080fd5b83016060818603121561061c57600080fd5b809150509250929050565b6000806040838503121561063a57600080fd5b50508035926020909101359150565b6000808335601e1984360301811261066057600080fd5b83018035915067ffffffffffffffff82111561067b57600080fd5b6020019150600581901b360382131561069357600080fd5b9250929050565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176106dd576106dd6106b0565b92915050565b67ffffffffffffffff8311156106fb576106fb61069a565b600160401b83111561070f5761070f61069a565b805483825580841015610746576000828152602081208581019083015b808210156107425782825560018201915061072c565b5050505b5060008181526020812083915b8581101561076f57823582820155602090920191600101610753565b505050505050565b813581556001808201602061078e81860186610649565b67ffffffffffffffff8111156107a6576107a661069a565b600160401b8111156107ba576107ba61069a565b8354818555808210156107ee5760008581528481208381019083015b808210156107ea57828255908801906107d6565b5050505b50600093845260208420935b81811015610813578235858201559183019185016107fa565b5050505050506108266040830183610649565b6101a48183600286016106e3565b634e487b7160e01b600052603260045260246000fd5b60006001820161085c5761085c6106b0565b506001019056fea2646970667358221220f2b1dffccc813bf898ea6b72d6feddd83cbd514bf96ebd7f7ccfc4ca788f57e464736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000009fff0b1a6e9e9554baf3f8a39b6353fda9c3005400000000000000000000000032ae32831b286bd21222731df72d8f7f136579ff
-----Decoded View---------------
Arg [0] : chronicles (address): 0x9fff0b1a6e9e9554BAf3f8A39B6353FdA9C30054
Arg [1] : sbt (address): 0x32ae32831b286bD21222731df72D8F7f136579ff
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000009fff0b1a6e9e9554baf3f8a39b6353fda9c30054
Arg [1] : 00000000000000000000000032ae32831b286bd21222731df72d8f7f136579ff
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.