Module-level declarations

Types

Link copied to clipboard
object config
Link copied to clipboard

Properties

Link copied to clipboard
val admin_permissions_required_error: text = "Admin permissions are required."
val admin_privileges_required_to_register_new_admin_error: text = "Admin privileges are required to register a new admin."
Link copied to clipboard
val approval_already_exists: text = "Approval already exists"
Link copied to clipboard
val auth_server_privileges_required: text = "Auth Server privileges are required"
Link copied to clipboard
val balance_cannot_be_lower_than_error: text = "Balance cannot be lower than %d."
val balance_must_be_equal_or_greater_than_required_amount_error: text = "Balance must be equal to or greater than the required amount."
val cannot_finalize_before_veto_period_ends_error: text = "Cannot finalize before the veto period ends."
Link copied to clipboard
val category_already_exists: text = "Category already exists"
Link copied to clipboard
val category_not_found_error: text = "Category not found."
val citizen_already_cast_proposal_approval_vote: text = "Citizen already cast proposal approval vote"
Link copied to clipboard
val citizen_for_account_already_created: text = "A citizen for this account is already created"
val citizen_has_already_voted_or_voting_process_is_not_active_error: text = "Citizen has already voted or the voting process is not active."
val citizen_information_is_missing_in_draft_proposal_error: text = "Citizen information is missing in the draft proposal."
Link copied to clipboard
val citizen_not_found_error: text = "Citizen not found."
val command_must_not_be_null_in_require_can_execute_command_error: text = "Command must not be null in require_can_execute_command."
Link copied to clipboard
val councilor_veto_is_on_cooldown_error: text = "Councilor veto is on cooldown."
val councilors_or_admins_privileges_required_error: text = "Councilors or admins privileges are required to promote a new councilor."
val custom_requirements_must_not_be_empty_error: text = "Custom requirements must not be empty if vote requirement is custom."
Link copied to clipboard
val decimals_must_be_18_or_less_error: text = "Decimals must be 18 or less"
Link copied to clipboard
val draft_cooldown_below_minimum: text = "Draft cooldown cannot be less than the minimum draft cooldown"
Link copied to clipboard
val draft_cooldown_exceeds_maximum: text = "Draft cooldown cannot be more than the maximum draft cooldown"
Link copied to clipboard
val erc20_balance_not_found: text = "ERC20 balance not found"
Link copied to clipboard
val erc20_token_not_found_error: text = "ERC20 token not found."
Link copied to clipboard
val evm_adress_inside_auth_expected: text = "EVM address expected inside auth descriptor. Found a byte array of size %d"
Link copied to clipboard
val evm_signer_not_match_auth_address: text = "The EVM signer does not match the address in the auth_descriptor. This could also be caused by having signed a wrong message."
Link copied to clipboard
val insufficient_tokens_for_lock: text = "Insufficient tokens for lock"
Link copied to clipboard
val invalid_evm_address_length_error: text = "Invalid EVM address length"
Link copied to clipboard
val invalid_signature_for_provided_key_error: text = "Invalid signature for the provided key."
Link copied to clipboard
val invalid_transition_from: text = "Invalid transition from"
Link copied to clipboard
val invalid_vote_requirement_type: text = "Invalid vote requirement type"
val locked_tokens_must_be_equal_or_greater_than_required_amount_error: text = "Locked tokens must be equal to or greater than the required amount."
val must_be_between_1_and_max_length_characters_error: text = "%s must be between 1 and %s characters"
val must_be_between_min_and_max_length_characters_error: text = "%s must be between %s and %s characters"
Link copied to clipboard
val must_be_non_negative_big_integer_error: text = "%s must be a non-negative big integer"
Link copied to clipboard
val must_be_non_negative_integer_error: text = "%s must be a non-negative integer"
Link copied to clipboard
val must_be_positive_integer_error: text = "%s must be a positive integer"
val must_reach_end_time_or_full_participation_error: text = "Must reach end time or full participation."
Link copied to clipboard
val must_sign_with_session_keypair: text = "Must sign with a session keypair"
Link copied to clipboard
val no_chromia_account_found: text = "No chromia account found"
Link copied to clipboard
val not_enough_stake_to_register_error: text = "There is not enough staked CHR for registration."
Link copied to clipboard
val not_enough_tokens_to_lock_error: text = "Not enough tokens to lock."
Link copied to clipboard
val number_of_options_exceeds_limit_error: text = "Number of options exceeds the limit."
val only_proposal_creator_can_initiate_voting_process_error: text = "Only the proposal creator can initiate the voting process."
Link copied to clipboard
val option_already_exists: text = "Option already exists"
Link copied to clipboard
val option_not_found_error: text = "Option not found."
Link copied to clipboard
val please_add_more_than_one_option_error: text = "Please add more than one option."
val proposal_author_cannot_vote_on_their_own_proposal_error: text = "Proposal author cannot vote on their own proposal."
Link copied to clipboard
val proposal_cannot_be_closed_error: text = "Proposal cannot be closed"
Link copied to clipboard
val proposal_cannot_be_finalized_error: text = "Proposal cannot be finalized"
Link copied to clipboard
val proposal_creation_is_on_cooldown_error: text = "Proposal creation is on cooldown."
val proposal_duration_exceeds_maximum_allowed_period_error: text = "The proposal\'s duration exceeds the maximum allowed period."
val proposal_duration_is_lower_than_minimum_allowed_period_error: text = "The proposal\'s duration is lower than the minimum allowed period."
Link copied to clipboard
val proposal_must_be_in_draft_status_error: text = "Proposal must be in draft status."
Link copied to clipboard
val proposal_must_be_in_veto_status_error: text = "Proposal must be in veto status."
Link copied to clipboard
val proposal_must_be_in_voting_status_error: text = "Proposal must be in voting status."
Link copied to clipboard
val proposal_not_found_error: text = "Proposal not found."
Link copied to clipboard
val proposal_voting_must_have_ended_error: text = "Proposal voting must have ended."
Link copied to clipboard
val rejection_cooldown_below_minimum: text = "Rejection cooldown cannot be less than the minimum rejection cooldown"
Link copied to clipboard
val rejection_cooldown_exceeds_maximum: text = "Rejection cooldown cannot be more than the maximum rejection cooldown"
Link copied to clipboard
val requires_locked_vote_power: text = "Vote power has to be locked in order to unlock"
Link copied to clipboard
val single_sig_auth_expected: text = "Account registration failed. Single-signature auth descriptors expected."
Link copied to clipboard
val snapshot_already_created: text = "Snapshot already created"
Link copied to clipboard
val snapshot_cannot_be_lower_than_error: text = "Snapshot cannot be lower than %d."
Link copied to clipboard
val staked_cannot_be_lower_than_error: text = "Staked cannot be lower than %d."
Link copied to clipboard
val token_already_exists_error: text = "Token already exists."
Link copied to clipboard
val unknown_rule_operator: text = "Unknown rule operator"
Link copied to clipboard
val veto_cannot_be_finalized_error: text = "Veto cannot be finalized."
Link copied to clipboard
val veto_cooldown_below_minimum: text = "Veto cooldown cannot be less than the minimum veto cooldown"
Link copied to clipboard
val veto_cooldown_exceeds_maximum: text = "Veto cooldown cannot be more than the maximum veto cooldown"
Link copied to clipboard
val veto_for_proposal_already_exists: text = "Veto for proposal already exists"
Link copied to clipboard
val veto_must_be_ongoing_error: text = "Veto must be ongoing."
Link copied to clipboard
val veto_not_found_error: text = "Veto not found."
Link copied to clipboard
val veto_period_must_be_greater_than_0_error: text = "Veto period must be greater than 0."
Link copied to clipboard
val veto_process_already_finalized_error: text = "Veto process already finalized."
Link copied to clipboard
val veto_state_on_going_expected: text = "Veto state on going expected"
val vetoable_duration_must_be_greater_than_0_error: text = "Vetoable duration must be greater than 0."
Link copied to clipboard
val vetoable_duration_time_expired_error: text = "Vetoable duration time expired."
Link copied to clipboard
val vote_not_found_error: text = "Vote not found."
Link copied to clipboard
val vote_requirements_not_found_error: text = "Vote requirements not found."
Link copied to clipboard
val vote_requirements_wrong: text = "Vote requirements are wrong, please check fields"
Link copied to clipboard
val voting_period_has_not_ended_error: text = "Voting period has not ended."

Functions

Link copied to clipboard
Link copied to clipboard
function initialize_app()

Operations

Link copied to clipboard
operation __begin_block(height: integer)
Link copied to clipboard
operation register_test_account(auth_descriptor: auth_descriptor)

Registers a new test account using the provided auth descriptor. The operation takes one paramater and is intended for testing purposes and facilitates the creation of accounts with specified authentication.

Link copied to clipboard
operation register_test_account_evm(evm_address: byte_array, signature: signature)

Registers a new test account using an Ethereum address and signature. The operation is used to create accounts that are linked to an Ethereum address for testing purposes.

Updates the required staked CHR amount for account registration. The operation is used to dynamically adjust the minimum staked CHR requirements for user registration