axelar-cgp-sui

Module 0xa2::events

use 0x1::ascii;
use 0x2::event;

Struct GasPaid

struct GasPaid<T> has copy, drop
Fields
sender: address
destination_chain: ascii::String
destination_address: ascii::String
payload_hash: address
value: u64
refund_address: address
params: vector<u8>

Struct GasAdded

struct GasAdded<T> has copy, drop
Fields
message_id: ascii::String
value: u64
refund_address: address
params: vector<u8>

Struct Refunded

struct Refunded<T> has copy, drop
Fields
message_id: ascii::String
value: u64
refund_address: address

Struct GasCollected

struct GasCollected<T> has copy, drop
Fields
receiver: address
value: u64

Function gas_paid

public(friend) fun gas_paid<T>(sender: address, destination_chain: ascii::String, destination_address: ascii::String, payload_hash: address, value: u64, refund_address: address, params: vector<u8>)
Implementation
public(package) fun gas_paid<T>(
    sender: address,
    destination_chain: String,
    destination_address: String,
    payload_hash: address,
    value: u64,
    refund_address: address,
    params: vector<u8>,
) {
    event::emit(GasPaid<T> {
        sender,
        destination_chain,
        destination_address,
        payload_hash,
        value,
        refund_address,
        params,
    });
}

Function gas_added

public(friend) fun gas_added<T>(message_id: ascii::String, value: u64, refund_address: address, params: vector<u8>)
Implementation
public(package) fun gas_added<T>(
    message_id: String,
    value: u64,
    refund_address: address,
    params: vector<u8>,
) {
    event::emit(GasAdded<T> {
        message_id,
        value,
        refund_address,
        params,
    });
}

Function refunded

public(friend) fun refunded<T>(message_id: ascii::String, value: u64, refund_address: address)
Implementation
public(package) fun refunded<T>(
    message_id: String,
    value: u64,
    refund_address: address,
) {
    event::emit(Refunded<T> {
        message_id,
        value,
        refund_address,
    });
}

Function gas_collected

public(friend) fun gas_collected<T>(receiver: address, value: u64)
Implementation
public(package) fun gas_collected<T>(receiver: address, value: u64) {
    event::emit(GasCollected<T> {
        receiver,
        value,
    });
}