Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

hello_docs_2

Fully qualified path: hello_docs_2

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: hello_docs_2::__external_IHelloStarknetForwardImpl

__l1_handler_IHelloStarknetForwardImpl

Fully qualified path: hello_docs_2::__l1_handler_IHelloStarknetForwardImpl

__constructor_IHelloStarknetForwardImpl

Fully qualified path: hello_docs_2::__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: hello_docs_2::IHelloStarknet

pub trait IHelloStarknet<TContractState>

Trait functions

increase_balance

Increase contract balance.

Fully qualified path: hello_docs_2::IHelloStarknet::increase_balance

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

get_balance

Retrieve contract balance.

Fully qualified path: hello_docs_2::IHelloStarknet::get_balance

fn get_balance(self: @TContractState) -> felt252

UnsafeNewContractStateTraitForIHelloStarknetForwardImpl

Fully qualified path: hello_docs_2::UnsafeNewContractStateTraitForIHelloStarknetForwardImpl

pub trait UnsafeNewContractStateTraitForIHelloStarknetForwardImpl<TContractState>

Trait functions

unsafe_new_contract_state

Fully qualified path: hello_docs_2::UnsafeNewContractStateTraitForIHelloStarknetForwardImpl::unsafe_new_contract_state

fn unsafe_new_contract_state() -> TContractState

dispatchers

Structs

Structs

IHelloStarknetDispatcher

Fully qualified path: hello_docs_2::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: hello_docs_2::IHelloStarknetDispatcher::contract_address

pub contract_address: ContractAddress

IHelloStarknetLibraryDispatcher

Fully qualified path: hello_docs_2::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: hello_docs_2::IHelloStarknetLibraryDispatcher::class_hash

pub class_hash: ClassHash

IHelloStarknetSafeLibraryDispatcher

Fully qualified path: hello_docs_2::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: hello_docs_2::IHelloStarknetSafeLibraryDispatcher::class_hash

pub class_hash: ClassHash

IHelloStarknetSafeDispatcher

Fully qualified path: hello_docs_2::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: hello_docs_2::IHelloStarknetSafeDispatcher::contract_address

pub contract_address: ContractAddress

Traits

Traits

IHelloStarknetDispatcherTrait

Fully qualified path: hello_docs_2::IHelloStarknetDispatcherTrait

Part of the group: dispatchers

pub trait IHelloStarknetDispatcherTrait<T>

Trait functions

increase_balance

Increase contract balance.

Fully qualified path: hello_docs_2::IHelloStarknetDispatcherTrait::increase_balance

fn increase_balance(self: T, amount: felt252)

get_balance

Retrieve contract balance.

Fully qualified path: hello_docs_2::IHelloStarknetDispatcherTrait::get_balance

fn get_balance(self: T) -> felt252

IHelloStarknetSafeDispatcherTrait

Fully qualified path: hello_docs_2::IHelloStarknetSafeDispatcherTrait

Part of the group: dispatchers

pub trait IHelloStarknetSafeDispatcherTrait<T>

Trait functions

increase_balance

Increase contract balance.

Fully qualified path: hello_docs_2::IHelloStarknetSafeDispatcherTrait::increase_balance

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

get_balance

Retrieve contract balance.

Fully qualified path: hello_docs_2::IHelloStarknetSafeDispatcherTrait::get_balance

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