Module-level declarations

Types

Properties

Link copied to clipboard
val economy_chain_name: text = "economy_chain"

Functions

Link copied to clipboard
function after_node_added_to_cluster_impl(node: node, cluster: cluster, replica: boolean)
Link copied to clipboard
function after_node_removed_from_cluster_impl(node: node, cluster: cluster?, replica: boolean)
Link copied to clipboard
function change_dapp_provider_state(provider_key: byte_array, enable: boolean)
Link copied to clipboard
Link copied to clipboard
function create_container_from_ticket(provider_pubkey: byte_array, container_units: integer, extra_storage: integer, cluster_name: text, subnode_image_name: text, extra_compute_requests: integer): (container_name: text, cluster_name: text)
Link copied to clipboard
function create_container_in_cluster(provider: provider, cluster: cluster, container_units: integer, extra_storage: integer, extra_compute_requests: integer): container
Link copied to clipboard
@extend(after_provider_registered) function (provider: provider, cluster: cluster?)
Link copied to clipboard
@extend(after_provider_updated) function (provider: provider)
Link copied to clipboard
@extend(after_replica_node_added_to_cluster) function (node: node, cluster: cluster)
Link copied to clipboard
@extend(after_node_removed_from_cluster) function (node: node, cluster: cluster?)
Link copied to clipboard
@extend(after_replica_node_removed_from_cluster) function (node: node, cluster: cluster?)
Link copied to clipboard
@extend(after_subnode_image_creation) function (subnode_image: subnode_image)
Link copied to clipboard
@extend(after_subnode_image_updated) function (subnode_image: subnode_image)
Link copied to clipboard
@extend(after_cluster_subnode_image_added) function (cluster: cluster, subnode_image: subnode_image)
Link copied to clipboard
@extend(after_cluster_subnode_image_removed) function (cluster: cluster, subnode_image: subnode_image)
Link copied to clipboard
@extend(after_provider_auth_updated) function (provider_pubkey: byte_array)
Link copied to clipboard
@extend(after_cluster_creation) function (provider: provider, cluster: cluster)
Link copied to clipboard
@extend(after_cluster_updated) function (cluster: cluster)
Link copied to clipboard
@extend(before_cluster_removal) function (cluster: cluster)
Link copied to clipboard
@extend(after_node_added) function (node: node)
Link copied to clipboard
@extend(after_node_updated) function (node: node)
Link copied to clipboard
@extend(before_node_removal) function (node: node)
Link copied to clipboard
@extend(after_node_added_to_cluster) function (node: node, cluster: cluster)
Link copied to clipboard
@extend(on_last_anchored_heights_received) function last_anchored_heights_received(request_id: integer, anchored_blockchains: map<byte_array, integer>)
Link copied to clipboard
Link copied to clipboard
@extend(receive_icmf_message) function receive_create_cluster(sender: byte_array, topic: text, body: gtv)
Link copied to clipboard
@extend(receive_icmf_message) function receive_create_container(sender: byte_array, topic: text, body: gtv)
Link copied to clipboard
Link copied to clipboard
@extend(receive_icmf_message) function receive_register_dapp_provider(sender: byte_array, topic: text, body: gtv)
Link copied to clipboard
@extend(receive_icmf_message) function receive_remove_container(sender: byte_array, topic: text, body: gtv)
Link copied to clipboard
Link copied to clipboard
@extend(receive_icmf_message) function receive_restart_container(sender: byte_array, topic: text, body: gtv)
Link copied to clipboard
Link copied to clipboard
@extend(receive_icmf_message) function receive_stop_container(sender: byte_array, topic: text, body: gtv)
Link copied to clipboard
Link copied to clipboard
@extend(receive_icmf_message) function receive_upgrade_container(sender: byte_array, topic: text, body: gtv)
Link copied to clipboard
Link copied to clipboard
function restart_container(container_name: text)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
function send_response(ticket_id: integer, error_message: text?)
Link copied to clipboard
function send_upgrade_container_result(message: upgrade_container_message, error_message: text?, dst_container_name: text?, dst_cluster_name: text?)
Link copied to clipboard
function stop_container(container_name: text)
Link copied to clipboard
function update_cluster(cluster: cluster)
Link copied to clipboard
function update_subnode_image(subnode_image: subnode_image)

Queries

Link copied to clipboard

Returns economy chain rid.

Operations

Link copied to clipboard
operation init_economy_chain(my_pubkey: byte_array, economy_chain_config: byte_array)

Start economy chain.

Permission: system provider

Rate limit: actions

Link copied to clipboard
operation update_ec_providers(my_pubkey: byte_array)

Send provider and provider auth updates to economy chain. This is normally synced automatically but in case they are out of sync this can be run manually.