Expand description
Module containing a contract’s types and functions.
interface ISystem {
function hashBlake256(bytes memory input) external pure returns (bytes32 digest);
function hashBlake128(bytes memory input) external pure returns (bytes32 digest);
function toAccountId(address input) external view returns (bytes memory account_id);
function callerIsOrigin() external view returns (bool);
function callerIsRoot() external view returns (bool);
function minimumBalance() external view returns (uint);
function ownCodeHash() external view returns (bytes32);
function weightLeft() external view returns (uint64 refTime, uint64 proofSize);
}Structs§
- caller
IsOrigin Call - Checks whether the caller of the contract calling this function is the origin
of the whole call stack.
Function with signature
callerIsOrigin()and selector0x9098d8c1. - caller
IsOrigin Return - Checks whether the caller of the contract calling this function is the origin
of the whole call stack.
Container type for the return parameters of the
callerIsOrigin()function. - caller
IsRoot Call - Checks whether the caller of the contract calling this function is root.
- caller
IsRoot Return - Checks whether the caller of the contract calling this function is root.
- hash
Blake128 Call - Computes the BLAKE2 128-bit hash on the given input.
Function with signature
hashBlake128(bytes)and selector0xa63b6983. - hash
Blake128 Return - Computes the BLAKE2 128-bit hash on the given input.
Container type for the return parameters of the
hashBlake128(bytes)function. - hash
Blake256 Call - Computes the BLAKE2 256-bit hash on the given input.
Function with signature
hashBlake256(bytes)and selector0xc7dff686. - hash
Blake256 Return - Computes the BLAKE2 256-bit hash on the given input.
Container type for the return parameters of the
hashBlake256(bytes)function. - minimum
Balance Call - Returns the minimum balance that is required for creating an account
(the existential deposit).
Function with signature
minimumBalance()and selector0xb9d1d49b. - minimum
Balance Return - Returns the minimum balance that is required for creating an account
(the existential deposit).
Container type for the return parameters of the
minimumBalance()function. - ownCode
Hash Call - Returns the code hash of the caller.
Function with signature
ownCodeHash()and selector0xdb6bdc8a. - ownCode
Hash Return - Returns the code hash of the caller.
Container type for the return parameters of the
ownCodeHash()function. - toAccount
IdCall - Retrieve the account id for a specified
H160address. - toAccount
IdReturn - Retrieve the account id for a specified
H160address. - weight
Left Call - Returns the amount of
Weightleft. Function with signatureweightLeft()and selector0x8d29dffb. - weight
Left Return - Returns the amount of
Weightleft. Container type for the return parameters of theweightLeft()function.
Enums§
- ISystem
Calls - Container for all the
ISystemfunction calls.