Contract 16f869eedfc77896edf1f6efb48ae4224d3ce7019cee4b2867e9cd54d1541f02

← Back to Index 📥 Download WASM

Meta

rssdkver 21.7.7#5da789c50b18a4c2be53394138212fed56f0dfc4
rsver 1.98.0

Instances

  • CDFQDDPUPAM3XPGORHDOEFRNLMKOH3N3X6XTXNLSXJQXIU3RVCM3OPEP

Interface

fn upgrade(
    env: soroban_sdk::Env,
    new_wasm_hash: soroban_sdk::BytesN<32>,
) -> Result<(), ContractError>
fn get_admin(env: soroban_sdk::Env) -> Result
fn initialize(env: soroban_sdk::Env, msg: InitializeMsg) -> Result<(), ContractError>
fn get_receipt(env: soroban_sdk::Env, chain_id: u128, sn: u128) -> bool
fn is_executor(env: soroban_sdk::Env, executor: soroban_sdk::Address) -> bool
fn send_message(
    env: soroban_sdk::Env,
    src_dapp_address: soroban_sdk::Address,
    dst_chain_id: u128,
    dst_address: soroban_sdk::Bytes,
    payload: soroban_sdk::Bytes,
) -> Result<(), ContractError>

Allow (or revoke) an address as a permitted relayer.

NOTE: this registry is not enforced by verify_message. Soroban surfaces no transaction-origin equivalent to ICON's Context.getOrigin() or EVM's tx.origin, so the connection cannot tell which account originated a call that reaches it through a dapp. The allowlist is stored here as the shared source of truth, and any dapp that wants to act on it must call is_executor itself with an address it has authenticated via require_auth.

fn set_executor(
    env: soroban_sdk::Env,
    executor: soroban_sdk::Address,
    is_executor: bool,
) -> Result<(), ContractError>
fn get_validators(
    env: soroban_sdk::Env,
) -> Result>, ContractError>
fn verify_message(
    env: soroban_sdk::Env,
    sender_dapp_address: soroban_sdk::Address,
    src_chain_id: u128,
    src_address: soroban_sdk::Bytes,
    conn_sn: u128,
    payload: soroban_sdk::Bytes,
    signatures: soroban_sdk::Vec>,
) -> Result<(), ContractError>
fn update_validators(
    env: soroban_sdk::Env,
    pub_keys: soroban_sdk::Vec>,
    threshold: u32,
) -> Result<(), ContractError>
fn confirm_admin_transfer(env: soroban_sdk::Env) -> Result<(), ContractError>
fn extend_instance_storage(env: soroban_sdk::Env) -> Result<(), ContractError>
fn initiate_admin_transfer(
    env: soroban_sdk::Env,
    address: soroban_sdk::Address,
) -> Result<(), ContractError>
fn get_validators_threshold(env: soroban_sdk::Env) -> Result
fn set_validators_threshold(
    env: soroban_sdk::Env,
    threshold: u32,
) -> Result<(), ContractError>

Imports

WebAssembly Text (WAT) ▶