Type Alias RuntimeStackFrame

Source
pub type RuntimeStackFrame = Caller;
Expand description

A runtime stack frame.

Currently it aliases to a Caller.

NOTE: Once we need to add more data to a stack frame we should make this a newtype, rather than change Caller.

Aliased Type§

pub enum RuntimeStackFrame {
    Initiator {
        account_hash: AccountHash,
    },
    Entity {
        package_hash: PackageHash,
        entity_addr: EntityAddr,
    },
    SmartContract {
        contract_package_hash: ContractPackageHash,
        contract_hash: ContractHash,
    },
}

Variants§

§

Initiator

Initiator (calling account)

Fields

§account_hash: AccountHash

The account hash of the caller

§

Entity

Entity (smart contract / system contract)

Fields

§package_hash: PackageHash

The package hash

§entity_addr: EntityAddr

The entity addr.

§

SmartContract

Fields

§contract_package_hash: ContractPackageHash

The contract package hash.

§contract_hash: ContractHash

The contract hash.