Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

playground

Fully qualified path: playground

Modules

Traits

IHelloStarknetInterface representing HelloContract . This interface allows modification and retrieval of the contract balance.
UnsafeNewContractStateTraitForIHelloStarknetForwardImpl

Groups:

dispatchers

Modules

Modules

__external_IHelloStarknetForwardImpl

Fully qualified path: playground::__external_IHelloStarknetForwardImpl

__l1_handler_IHelloStarknetForwardImpl

Fully qualified path: playground::__l1_handler_IHelloStarknetForwardImpl

__constructor_IHelloStarknetForwardImpl

Fully qualified path: playground::__constructor_IHelloStarknetForwardImpl

Traits

Traits

IHelloStarknetInterface representing HelloContract . This interface allows modification and retrieval of the contract balance.
UnsafeNewContractStateTraitForIHelloStarknetForwardImpl

IHelloStarknet

Interface representing HelloContract. This interface allows modification and retrieval of the contract balance.

Fully qualified path: playground::IHelloStarknet

pub trait IHelloStarknet<TContractState>

Trait functions

increase_balance

Increase contract balance.

Fully qualified path: playground::IHelloStarknet::increase_balance

fn increase_balance(ref self: TContractState, amount: felt252)

get_balance

Retrieve contract balance.

Fully qualified path: playground::IHelloStarknet::get_balance

fn get_balance(self: @TContractState) -> felt252

UnsafeNewContractStateTraitForIHelloStarknetForwardImpl

Fully qualified path: playground::UnsafeNewContractStateTraitForIHelloStarknetForwardImpl

pub trait UnsafeNewContractStateTraitForIHelloStarknetForwardImpl<TContractState>

Trait functions

unsafe_new_contract_state

Fully qualified path: playground::UnsafeNewContractStateTraitForIHelloStarknetForwardImpl::unsafe_new_contract_state

fn unsafe_new_contract_state() -> TContractState

dispatchers

Structs

Structs

IHelloStarknetDispatcher

Fully qualified path: playground::IHelloStarknetDispatcher

Part of the group: dispatchers

[doc(group: "dispatchers")]
[derive(Copy, Drop, starknet::Store, Serde)]
pub struct IHelloStarknetDispatcher {
    pub contract_address: ContractAddress,
}

Members

contract_address

Fully qualified path: playground::IHelloStarknetDispatcher::contract_address

pub contract_address: ContractAddress

IHelloStarknetLibraryDispatcher

Fully qualified path: playground::IHelloStarknetLibraryDispatcher

Part of the group: dispatchers

[doc(group: "dispatchers")]
[derive(Copy, Drop, starknet::Store, Serde)]
pub struct IHelloStarknetLibraryDispatcher {
    pub class_hash: ClassHash,
}

Members

class_hash

Fully qualified path: playground::IHelloStarknetLibraryDispatcher::class_hash

pub class_hash: ClassHash

IHelloStarknetSafeLibraryDispatcher

Fully qualified path: playground::IHelloStarknetSafeLibraryDispatcher

Part of the group: dispatchers

[doc(group: "dispatchers")]
[derive(Copy, Drop, starknet::Store, Serde)]
pub struct IHelloStarknetSafeLibraryDispatcher {
    pub class_hash: ClassHash,
}

Members

class_hash

Fully qualified path: playground::IHelloStarknetSafeLibraryDispatcher::class_hash

pub class_hash: ClassHash

IHelloStarknetSafeDispatcher

Fully qualified path: playground::IHelloStarknetSafeDispatcher

Part of the group: dispatchers

[doc(group: "dispatchers")]
[derive(Copy, Drop, starknet::Store, Serde)]
pub struct IHelloStarknetSafeDispatcher {
    pub contract_address: ContractAddress,
}

Members

contract_address

Fully qualified path: playground::IHelloStarknetSafeDispatcher::contract_address

pub contract_address: ContractAddress

Traits

Traits

IHelloStarknetDispatcherTrait

Fully qualified path: playground::IHelloStarknetDispatcherTrait

Part of the group: dispatchers

pub trait IHelloStarknetDispatcherTrait<T>

Trait functions

increase_balance

Increase contract balance.

Fully qualified path: playground::IHelloStarknetDispatcherTrait::increase_balance

fn increase_balance(self: T, amount: felt252)

get_balance

Retrieve contract balance.

Fully qualified path: playground::IHelloStarknetDispatcherTrait::get_balance

fn get_balance(self: T) -> felt252

IHelloStarknetSafeDispatcherTrait

Fully qualified path: playground::IHelloStarknetSafeDispatcherTrait

Part of the group: dispatchers

pub trait IHelloStarknetSafeDispatcherTrait<T>

Trait functions

increase_balance

Increase contract balance.

Fully qualified path: playground::IHelloStarknetSafeDispatcherTrait::increase_balance

fn increase_balance(self: T, amount: felt252) -> Result<(), Array<felt252>>

get_balance

Retrieve contract balance.

Fully qualified path: playground::IHelloStarknetSafeDispatcherTrait::get_balance

fn get_balance(self: T) -> Result<felt252, Array<felt252>>