{ "casper_contract_schema_version": 1, "toolchain": "rustc 1.79.0-nightly (3a36386dc 2024-04-25)", "authors": [ "Jakub Płaskonka ", "Krzysztof Pobiarżyn ", "Maciej Zieliński " ], "repository": "https://github.com/odradev/odra", "homepage": null, "contract_name": "Ownable", "contract_version": "1.2.0", "types": [ { "struct": { "name": "OwnershipTransferred", "description": null, "members": [ { "name": "previous_owner", "description": null, "ty": { "Option": "Key" } }, { "name": "new_owner", "description": null, "ty": { "Option": "Key" } } ] } } ], "errors": [ { "name": "CallerNotTheNewOwner", "description": "The caller is not the new owner.", "discriminant": 20002 }, { "name": "CallerNotTheOwner", "description": "The caller is not the owner.", "discriminant": 20001 }, { "name": "MissingRole", "description": "The role is missing.", "discriminant": 20003 }, { "name": "OwnerNotSet", "description": "The owner is not set.", "discriminant": 20000 }, { "name": "RoleRenounceForAnotherAddress", "description": "The role cannot be renounced for another address.", "discriminant": 20004 } ], "entry_points": [ { "name": "transfer_ownership", "description": "Transfers ownership of the module to `new_owner`. This function can only", "is_mutable": true, "arguments": [ { "name": "new_owner", "description": null, "ty": "Key", "optional": false } ], "return_ty": "Unit", "is_contract_context": true, "access": "public" }, { "name": "renounce_ownership", "description": "If the contract's owner chooses to renounce their ownership, the contract", "is_mutable": true, "arguments": [], "return_ty": "Unit", "is_contract_context": true, "access": "public" }, { "name": "get_owner", "description": "Returns the address of the current owner.", "is_mutable": false, "arguments": [], "return_ty": "Key", "is_contract_context": true, "access": "public" }, { "name": "assert_owner", "description": "Reverts with [`Error::CallerNotTheOwner`] if the function called by", "is_mutable": false, "arguments": [ { "name": "address", "description": null, "ty": "Key", "optional": false } ], "return_ty": "Unit", "is_contract_context": true, "access": "public" }, { "name": "get_optional_owner", "description": "Returns the optional address of the current owner.", "is_mutable": false, "arguments": [], "return_ty": { "Option": "Key" }, "is_contract_context": true, "access": "public" }, { "name": "unchecked_transfer_ownership", "description": "Unchecked version of the ownership transfer. It emits an event and sets", "is_mutable": true, "arguments": [ { "name": "new_owner", "description": null, "ty": { "Option": "Key" }, "optional": false } ], "return_ty": "Unit", "is_contract_context": true, "access": "public" } ], "events": [ { "name": "OwnershipTransferred", "ty": "OwnershipTransferred" } ], "call": { "wasm_file_name": "Ownable.wasm", "description": "Initializes the module setting the caller as the initial owner.", "arguments": [ { "name": "odra_cfg_package_hash_key_name", "description": "The arg name for the package hash key name.", "ty": "String", "optional": false }, { "name": "odra_cfg_allow_key_override", "description": "The arg name for the allow key override.", "ty": "Bool", "optional": false }, { "name": "odra_cfg_is_upgradable", "description": "The arg name for the contract upgradeability setting.", "ty": "Bool", "optional": false } ] } }