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_heightget syscall. - gr_
block_ ⚠timestamp - Infallible
gr_block_timestampget syscall. - gr_
create_ ⚠program - Fallible
gr_create_programsend syscall. - gr_
create_ ⚠program_ wgas - Fallible
gr_create_program_wgassend syscall. - gr_
debug ⚠ - Infallible
gr_debuginfo syscall. - gr_
env_ ⚠vars - Infallible
gr_env_varsget syscall. It leaves backend with unrecoverable error if incorrect version is passed. - gr_exit⚠
- Infallible
gr_exitcontrol syscall. - gr_
gas_ ⚠available - Infallible
gr_gas_availableget syscall. - gr_
leave ⚠ - Infallible
gr_leavecontrol syscall. - gr_
message_ ⚠id - Infallible
gr_message_idget syscall. - gr_
oom_ ⚠panic - Infallible
gr_oom_paniccontrol syscall. - gr_
panic ⚠ - Infallible
gr_paniccontrol syscall. - gr_
program_ ⚠id - Infallible
gr_program_idget syscall. - gr_
random ⚠ - Infallible
gr_randomcalculate syscall. - gr_read⚠
- Fallible
gr_readget syscall. - gr_
reply ⚠ - Fallible
gr_replysend syscall. - gr_
reply_ ⚠code - Fallible
gr_reply_codeget syscall. - gr_
reply_ ⚠commit - Fallible
gr_reply_commitsend syscall. - gr_
reply_ ⚠commit_ wgas - Fallible
gr_reply_commit_wgassend syscall. - gr_
reply_ ⚠deposit - Fallible
gr_reply_depositcontrol syscall. - gr_
reply_ ⚠input - Fallible
gr_reply_inputsend syscall. - gr_
reply_ ⚠input_ wgas - Fallible
gr_reply_input_wgassend syscall. - gr_
reply_ ⚠push - Fallible
gr_reply_pushsend syscall. - gr_
reply_ ⚠push_ input - Fallible
gr_reply_push_inputsend syscall. - gr_
reply_ ⚠to - Fallible
gr_reply_toget syscall. - gr_
reply_ ⚠wgas - Fallible
gr_reply_wgassend syscall. - gr_
reservation_ ⚠reply - Fallible
gr_reservation_replysend syscall. - gr_
reservation_ ⚠reply_ commit - Fallible
gr_reservation_reply_commitsend syscall. - gr_
reservation_ ⚠send - Fallible
gr_reservation_sendsend syscall. - gr_
reservation_ ⚠send_ commit - Fallible
gr_reservation_send_commitsend syscall. - gr_
reserve_ ⚠gas - Fallible
gr_reserve_gascontrol syscall. - gr_send⚠
- Fallible
gr_sendsend syscall. - gr_
send_ ⚠commit - Fallible
gr_send_commitsend syscall. - gr_
send_ ⚠commit_ wgas - Fallible
gr_send_commit_wgassend syscall. - gr_
send_ ⚠init - Fallible
gr_send_initsend syscall. - gr_
send_ ⚠input - Fallible
gr_send_inputsend syscall. - gr_
send_ ⚠input_ wgas - Fallible
gr_send_input_wgassend syscall. - gr_
send_ ⚠push - Fallible
gr_send_pushsend syscall. - gr_
send_ ⚠push_ input - Fallible
gr_send_push_inputsend syscall. - gr_
send_ ⚠wgas - Fallible
gr_send_wgassend syscall. - gr_
signal_ ⚠code - Fallible
gr_signal_codeget syscall. - gr_
signal_ ⚠from - Fallible
gr_signal_fromget syscall. - gr_size⚠
- Infallible
gr_sizeget syscall. - gr_
source ⚠ - Infallible
gr_sourceget syscall. - gr_
system_ ⚠reserve_ gas - Fallible
gr_system_reserve_gascontrol syscall. - gr_
unreserve_ ⚠gas - Fallible
gr_unreserve_gascontrol syscall. - gr_
value ⚠ - Infallible
gr_valueget syscall. - gr_
value_ ⚠available - Infallible
gr_value_availableget syscall. - gr_wait⚠
- Infallible
gr_waitcontrol syscall. - gr_
wait_ ⚠for - Infallible
gr_wait_forcontrol syscall. - gr_
wait_ ⚠up_ to - Infallible
gr_wait_up_tocontrol syscall. - gr_wake⚠
- Fallible
gr_wakecontrol 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.