pub enum EventKind<TCycles = u128> {
    CyclesSent {
        to: Principal,
        amount: TCycles,
        refund: TCycles,
    },
    CyclesReceived {
        from: Principal,
        amount: TCycles,
        memo: Option<String>,
    },
    AddressAdded {
        id: Principal,
        name: Option<String>,
        role: Role,
    },
    AddressRemoved {
        id: Principal,
    },
    CanisterCreated {
        canister: Principal,
        cycles: TCycles,
    },
    CanisterCalled {
        canister: Principal,
        method_name: String,
        cycles: TCycles,
    },
}
Expand description

The possible kinds of events that can be stored in an Event.

Variants

CyclesSent

Fields

to: Principal

The canister the cycles were sent to.

amount: TCycles

The number of cycles that were initially sent.

refund: TCycles

The number of cycles that were refunded by the canister.

Cycles were sent to a canister.

CyclesReceived

Fields

from: Principal

The canister that sent the cycles.

amount: TCycles

The number of cycles received.

memo: Option<String>

The memo provided with the payment.

Cycles were received from a canister.

AddressAdded

Fields

id: Principal

The principal that was added.

name: Option<String>

The friendly name of the principal, if any.

role: Role

The significance of this principal to the wallet.

A known principal was added to the address book.

AddressRemoved

Fields

id: Principal

The principal that was removed.

A principal was removed from the address book.

CanisterCreated

Fields

canister: Principal

The canister that was created.

cycles: TCycles

The initial cycles balance that the canister was created with.

A canister was created.

CanisterCalled

Fields

canister: Principal

The canister that was called.

method_name: String

The name of the canister method that was called.

cycles: TCycles

The number of cycles that were supplied with the call.

A call was forwarded to the canister.

Trait Implementations

Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Converts to this type from the input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.