axelar-cgp-sui

Module axelar_gateway::events

use axelar_gateway::bytes32;
use axelar_gateway::message;
use axelar_gateway::weighted_signer;
use axelar_gateway::weighted_signers;
use std::ascii;
use std::bcs;
use std::option;
use std::string;
use std::vector;
use sui::address;
use sui::bcs;
use sui::event;
use sui::hash;
use sui::hex;

Struct SignersRotated

Emitted when signers are rotated.

public struct SignersRotated has copy, drop
Fields
epoch: u64
signers_hash: axelar_gateway::bytes32::Bytes32
signers: axelar_gateway::weighted_signers::WeightedSigners

Struct ChannelCreated

Emitted when a new channel is created.

public struct ChannelCreated has copy, drop
Fields
id: address

Struct ChannelDestroyed

Emitted when a channel is destroyed.

public struct ChannelDestroyed has copy, drop
Fields
id: address

Struct ContractCall

Emitted when a new message is sent from the SUI network.

public struct ContractCall has copy, drop
Fields
source_id: address
destination_chain: std::ascii::String
destination_address: std::ascii::String
payload: vector<u8>
payload_hash: address

Struct MessageApproved

Emitted when a new message is approved by the gateway.

public struct MessageApproved has copy, drop
Fields
message: axelar_gateway::message::Message

Struct MessageExecuted

Emitted when a message is taken to be executed by a channel.

public struct MessageExecuted has copy, drop
Fields
message: axelar_gateway::message::Message

Function signers_rotated

public(package) fun signers_rotated(epoch: u64, signers_hash: axelar_gateway::bytes32::Bytes32, signers: axelar_gateway::weighted_signers::WeightedSigners)
Implementation
public(package) fun signers_rotated(epoch: u64, signers_hash: Bytes32, signers: WeightedSigners) {
    event::emit(SignersRotated {
        epoch,
        signers_hash,
        signers,
    });
}

Function channel_created

public(package) fun channel_created(id: address)
Implementation
public(package) fun channel_created(id: address) {
    event::emit(ChannelCreated {
        id,
    });
}

Function channel_destroyed

public(package) fun channel_destroyed(id: address)
Implementation
public(package) fun channel_destroyed(id: address) {
    event::emit(ChannelDestroyed {
        id,
    });
}

Function contract_call

public(package) fun contract_call(source_id: address, destination_chain: std::ascii::String, destination_address: std::ascii::String, payload: vector<u8>, payload_hash: address)
Implementation
public(package) fun contract_call(
    source_id: address,
    destination_chain: String,
    destination_address: String,
    payload: vector<u8>,
    payload_hash: address,
) {
    event::emit(ContractCall {
        source_id,
        destination_chain,
        destination_address,
        payload,
        payload_hash,
    });
}

Function message_approved

public(package) fun message_approved(message: axelar_gateway::message::Message)
Implementation
public(package) fun message_approved(message: Message) {
    event::emit(MessageApproved {
        message,
    });
}

Function message_executed

public(package) fun message_executed(message: axelar_gateway::message::Message)
Implementation
public(package) fun message_executed(message: Message) {
    event::emit(MessageExecuted {
        message,
    });
}