Expand description
Declares gear protocol syscalls for WASM.
Structs§
- Block
Number With Hash - Represents type defining concatenated block number with hash. 36 bytes.
- EnvVars
- Current version of execution settings.
- Error
Bytes - Error
With Gas - Represents type defining concatenated error code with gas. 12 bytes.
- Error
With Handle - Represents type defining concatenated length with handle. 8 bytes.
- Error
With Hash - Represents type defining concatenated hash with error code. 36 bytes.
- Error
With Reply Code - Represents type defining concatenated reply code with error code. 8 bytes.
- Error
With Signal Code - Represents type defining concatenated signal code with length. 8 bytes.
- Error
With TwoHashes - Represents type defining concatenated two hashes with error code. 68 bytes.
- GasMultiplier
- Type representing converter between gas and value.
- Hash
With Value - Represents type defining concatenated hash with value. 48 bytes.
- Percent
- Basic struct for working with integer percentages allowing values greater than 100.
- TwoHashes
- Represents type defining concatenated two hashes. 64 bytes.
- TwoHashes
With Value - Represents type defining concatenated two hashes with value. 80 bytes.
Functions§
- gr_
block_ ⚠height - Infallible
gr_block_height
get syscall. - gr_
block_ ⚠timestamp - Infallible
gr_block_timestamp
get syscall. - gr_
create_ ⚠program - Fallible
gr_create_program
send syscall. - gr_
create_ ⚠program_ wgas - Fallible
gr_create_program_wgas
send syscall. - gr_
debug ⚠ - Infallible
gr_debug
info syscall. - gr_
env_ ⚠vars - Infallible
gr_env_vars
get syscall. It leaves backend with unrecoverable error if incorrect version is passed. - gr_exit⚠
- Infallible
gr_exit
control syscall. - gr_
gas_ ⚠available - Infallible
gr_gas_available
get syscall. - gr_
leave ⚠ - Infallible
gr_leave
control syscall. - gr_
message_ ⚠id - Infallible
gr_message_id
get syscall. - gr_
oom_ ⚠panic - Infallible
gr_oom_panic
control syscall. - gr_
panic ⚠ - Infallible
gr_panic
control syscall. - gr_
program_ ⚠id - Infallible
gr_program_id
get syscall. - gr_
random ⚠ - Infallible
gr_random
calculate syscall. - gr_read⚠
- Fallible
gr_read
get syscall. - gr_
reply ⚠ - Fallible
gr_reply
send syscall. - gr_
reply_ ⚠code - Fallible
gr_reply_code
get syscall. - gr_
reply_ ⚠commit - Fallible
gr_reply_commit
send syscall. - gr_
reply_ ⚠commit_ wgas - Fallible
gr_reply_commit_wgas
send syscall. - gr_
reply_ ⚠deposit - Fallible
gr_reply_deposit
control syscall. - gr_
reply_ ⚠input - Fallible
gr_reply_input
send syscall. - gr_
reply_ ⚠input_ wgas - Fallible
gr_reply_input_wgas
send syscall. - gr_
reply_ ⚠push - Fallible
gr_reply_push
send syscall. - gr_
reply_ ⚠push_ input - Fallible
gr_reply_push_input
send syscall. - gr_
reply_ ⚠to - Fallible
gr_reply_to
get syscall. - gr_
reply_ ⚠wgas - Fallible
gr_reply_wgas
send syscall. - gr_
reservation_ ⚠reply - Fallible
gr_reservation_reply
send syscall. - gr_
reservation_ ⚠reply_ commit - Fallible
gr_reservation_reply_commit
send syscall. - gr_
reservation_ ⚠send - Fallible
gr_reservation_send
send syscall. - gr_
reservation_ ⚠send_ commit - Fallible
gr_reservation_send_commit
send syscall. - gr_
reserve_ ⚠gas - Fallible
gr_reserve_gas
control syscall. - gr_send⚠
- Fallible
gr_send
send syscall. - gr_
send_ ⚠commit - Fallible
gr_send_commit
send syscall. - gr_
send_ ⚠commit_ wgas - Fallible
gr_send_commit_wgas
send syscall. - gr_
send_ ⚠init - Fallible
gr_send_init
send syscall. - gr_
send_ ⚠input - Fallible
gr_send_input
send syscall. - gr_
send_ ⚠input_ wgas - Fallible
gr_send_input_wgas
send syscall. - gr_
send_ ⚠push - Fallible
gr_send_push
send syscall. - gr_
send_ ⚠push_ input - Fallible
gr_send_push_input
send syscall. - gr_
send_ ⚠wgas - Fallible
gr_send_wgas
send syscall. - gr_
signal_ ⚠code - Fallible
gr_signal_code
get syscall. - gr_
signal_ ⚠from - Fallible
gr_signal_from
get syscall. - gr_size⚠
- Infallible
gr_size
get syscall. - gr_
source ⚠ - Infallible
gr_source
get syscall. - gr_
system_ ⚠reserve_ gas - Fallible
gr_system_reserve_gas
control syscall. - gr_
unreserve_ ⚠gas - Fallible
gr_unreserve_gas
control syscall. - gr_
value ⚠ - Infallible
gr_value
get syscall. - gr_
value_ ⚠available - Infallible
gr_value_available
get syscall. - gr_wait⚠
- Infallible
gr_wait
control syscall. - gr_
wait_ ⚠for - Infallible
gr_wait_for
control syscall. - gr_
wait_ ⚠up_ to - Infallible
gr_wait_up_to
control syscall. - gr_wake⚠
- Fallible
gr_wake
control syscall.
Type Aliases§
- Block
Count - Represents block count type.
- Block
Number - Represents block number type.
- Block
Timestamp - Represents block number type.
- Buffer
Start - Represents byte type, which is a start of a buffer.
- Error
Code - Represents error code type.
- Gas
- Represents gas type.
- Handle
- Represents handle type.
- Hash
- Represents hash type.
- Length
- Represents length type.
- Offset
- Represents offset type.
- Reply
Code - Represents reply code type.
- Signal
Code - Represents signal code type.
- Sized
Buffer Start - Represents byte type, which is a start of a sized buffer.
- Value
- Represents value type.