{ "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": "Ownable2Step", "contract_version": "1.2.0", "types": [ { "struct": { "name": "OwnershipTransferStarted", "description": null, "members": [ { "name": "previous_owner", "description": null, "ty": { "Option": "Key" } }, { "name": "new_owner", "description": null, "ty": { "Option": "Key" } } ] } }, { "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": "get_owner", "description": "Returns the address of the current owner.", "is_mutable": false, "arguments": [], "return_ty": "Key", "is_contract_context": true, "access": "public" }, { "name": "get_pending_owner", "description": "Returns the address of the pending owner.", "is_mutable": false, "arguments": [], "return_ty": { "Option": "Key" }, "is_contract_context": true, "access": "public" }, { "name": "transfer_ownership", "description": "Starts the ownership transfer of the module to a `new_owner`.", "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": "accept_ownership", "description": "The new owner accepts the ownership transfer. Replaces the current owner and clears", "is_mutable": true, "arguments": [], "return_ty": "Unit", "is_contract_context": true, "access": "public" } ], "events": [ { "name": "OwnershipTransferStarted", "ty": "OwnershipTransferStarted" }, { "name": "OwnershipTransferred", "ty": "OwnershipTransferred" } ], "call": { "wasm_file_name": "Ownable2Step.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 } ] } }