Module-level declarations

Types

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
function apply_provider_batch(proposal: proposal)
Link copied to clipboard
Link copied to clipboard
function apply_provider_quota(proposal: proposal)
Link copied to clipboard
function apply_provider_state(proposal: proposal)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@extend(apply_voting_result_handlers) function (): map<text, (proposal) -> unit>
Link copied to clipboard
@extend(delete_proposal_handlers) function (): map<text, (proposal) -> unit>
Link copied to clipboard
@extend(apply_voting_result_handlers) function (): map<text, (proposal) -> unit>
Link copied to clipboard
@extend(delete_proposal_handlers) function (): map<text, (proposal) -> unit>
Link copied to clipboard
@extend(apply_voting_result_handlers) function (): map<text, (proposal) -> unit>
Link copied to clipboard
@extend(delete_proposal_handlers) function (): map<text, (proposal) -> unit>
Link copied to clipboard
@extend(apply_voting_result_handlers) function (): map<text, (proposal) -> unit>
Link copied to clipboard
@extend(delete_proposal_handlers) function (): map<text, (proposal) -> unit>
Link copied to clipboard
function update_provider_state(provider: provider, active: boolean)

Queries

Link copied to clipboard
query get_provider_batch_proposal(rowid: rowid): (provider_infos: list<provider_info>, tier: provider_tier, system: boolean, active: boolean)?

Returns provider batch proposal.

Link copied to clipboard
query get_provider_quota_proposal(rowid: rowid): (tier: provider_tier, quota_type: provider_quota_type, value: integer)?

Returns system provider quota proposal.

Link copied to clipboard
query get_provider_state_proposal(rowid: rowid): (provider: byte_array, provider_name: text, active: boolean)?

Returns provider state proposal.

Link copied to clipboard
query get_system_provider_proposal(rowid: rowid): (provider: byte_array, add: boolean)?

Returns system provider proposal.

Operations

Link copied to clipboard
operation propose_provider_is_system(my_pubkey: byte_array, provider_pubkey: byte_array, promote: boolean, description: text)

Propose promotion or demotion of a provider to system provider.

Permission: system provider

Rate limit: actions

Link copied to clipboard
operation propose_provider_quota(my_pubkey: byte_array, tier: provider_tier, provider_quota_type: provider_quota_type, value: integer, description: text)

Propose provider quotas.

Permission: system provider

Rate limit: actions

Link copied to clipboard
operation propose_provider_state(my_pubkey: byte_array, provider_pubkey: byte_array, active: boolean, description: text)

Propose provider change state to another provider. NP can enable/disable DP without voting.

Permission: SP SP, NP, DP, NP DP

Rate limit: actions

Link copied to clipboard
operation propose_providers(my_pubkey: byte_array, provider_infos: list<provider_info>, tier: provider_tier, system: boolean, active: boolean, description: text)

Propose providers.

Permission: system provider

Rate limit: actions