axelar-cgp-sui

Module 0xa1::events

use 0x1::ascii;
use 0x2::event;
use 0xa1::bytes32;
use 0xa1::message;
use 0xa1::weighted_signers;

Struct SignersRotated

Emitted when signers are rotated.

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

Struct ChannelCreated

Emitted when a new channel is created.

struct ChannelCreated has copy, drop
Fields
id: address

Struct ChannelDestroyed

Emitted when a channel is destroyed.

struct ChannelDestroyed has copy, drop
Fields
id: address

Struct ContractCall

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

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

Struct MessageApproved

Emitted when a new message is approved by the gateway.

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

Struct MessageExecuted

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

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

Function signers_rotated

public(friend) fun signers_rotated(epoch: u64, signers_hash: bytes32::Bytes32, signers: 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(friend) fun channel_created(id: address)
Implementation
public(package) fun channel_created(id: address) {
    event::emit(ChannelCreated {
        id,
    });
}

Function channel_destroyed

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

Function contract_call

public(friend) fun contract_call(source_id: address, destination_chain: ascii::String, destination_address: 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(friend) fun message_approved(message: message::Message)
Implementation
public(package) fun message_approved(message: Message) {
    event::emit(MessageApproved {
        message,
    });
}

Function message_executed

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