vm

class HostErrorFieldless
BadUTF16 = HostErrorFieldless.BadUTF16
BadUTF8 = HostErrorFieldless.BadUTF8
BalanceExceeded = HostErrorFieldless.BalanceExceeded
CannotAppendActionToJointPromise = HostErrorFieldless.CannotAppendActionToJointPromise
CannotReturnJointPromise = HostErrorFieldless.CannotReturnJointPromise
EmptyMethodName = HostErrorFieldless.EmptyMethodName
GasExceeded = HostErrorFieldless.GasExceeded
GasLimitExceeded = HostErrorFieldless.GasLimitExceeded
IntegerOverflow = HostErrorFieldless.IntegerOverflow
InvalidAccountId = HostErrorFieldless.InvalidAccountId
InvalidMethodName = HostErrorFieldless.InvalidMethodName
InvalidPublicKey = HostErrorFieldless.InvalidPublicKey
MemoryAccessViolation = HostErrorFieldless.MemoryAccessViolation
class GuestPanic

Smart contract panicked

static from_bytes(data)

Deserialize from bytes.

Parameters:

data (bytes) – the serialized object.

Returns: the deserialized object.

static from_json(raw)

Build from a JSON string.

panic_msg
to_json()

Convert to a JSON string.

class InvalidPromiseIndex

promise_idx does not correspond to existing promises

static from_bytes(data)

Deserialize from bytes.

Parameters:

data (bytes) – the serialized object.

Returns: the deserialized object.

static from_json(raw)

Build from a JSON string.

promise_idx
to_json()

Convert to a JSON string.

class InvalidPromiseResultIndex

Accessed invalid promise result index

static from_bytes(data)

Deserialize from bytes.

Parameters:

data (bytes) – the serialized object.

Returns: the deserialized object.

static from_json(raw)

Build from a JSON string.

result_idx
to_json()

Convert to a JSON string.

class InvalidRegisterId

Accessed invalid register id

static from_bytes(data)

Deserialize from bytes.

Parameters:

data (bytes) – the serialized object.

Returns: the deserialized object.

static from_json(raw)

Build from a JSON string.

register_id
to_json()

Convert to a JSON string.

class IteratorWasInvalidated

Iterator iterator_index was invalidated after its creation by performing a mutable operation on trie

static from_bytes(data)

Deserialize from bytes.

Parameters:

data (bytes) – the serialized object.

Returns: the deserialized object.

static from_json(raw)

Build from a JSON string.

iterator_index
to_json()

Convert to a JSON string.

class InvalidReceiptIndex

VM Logic returned an invalid receipt index

static from_bytes(data)

Deserialize from bytes.

Parameters:

data (bytes) – the serialized object.

Returns: the deserialized object.

static from_json(raw)

Build from a JSON string.

receipt_index
to_json()

Convert to a JSON string.

class InvalidIteratorIndex

Iterator index iterator_index does not exist

static from_bytes(data)

Deserialize from bytes.

Parameters:

data (bytes) – the serialized object.

Returns: the deserialized object.

static from_json(raw)

Build from a JSON string.

iterator_index
to_json()

Convert to a JSON string.

class ProhibitedInView

method_name is not allowed in view calls

static from_bytes(data)

Deserialize from bytes.

Parameters:

data (bytes) – the serialized object.

Returns: the deserialized object.

static from_json(raw)

Build from a JSON string.

method_name
to_json()

Convert to a JSON string.

class NumberOfLogsExceeded

The total number of logs will exceed the limit.

static from_bytes(data)

Deserialize from bytes.

Parameters:

data (bytes) – the serialized object.

Returns: the deserialized object.

static from_json(raw)

Build from a JSON string.

limit
to_json()

Convert to a JSON string.

class KeyLengthExceeded

The storage key length exceeded the limit.

static from_bytes(data)

Deserialize from bytes.

Parameters:

data (bytes) – the serialized object.

Returns: the deserialized object.

static from_json(raw)

Build from a JSON string.

length
limit
to_json()

Convert to a JSON string.

class ValueLengthExceeded

The storage value length exceeded the limit.

static from_bytes(data)

Deserialize from bytes.

Parameters:

data (bytes) – the serialized object.

Returns: the deserialized object.

static from_json(raw)

Build from a JSON string.

length
limit
to_json()

Convert to a JSON string.

class TotalLogLengthExceeded

The total log length exceeded the limit.

static from_bytes(data)

Deserialize from bytes.

Parameters:

data (bytes) – the serialized object.

Returns: the deserialized object.

static from_json(raw)

Build from a JSON string.

length
limit
to_json()

Convert to a JSON string.

class NumberPromisesExceeded

The maximum number of promises within a FunctionCall exceeded the limit.

static from_bytes(data)

Deserialize from bytes.

Parameters:

data (bytes) – the serialized object.

Returns: the deserialized object.

static from_json(raw)

Build from a JSON string.

limit
number_of_promises
to_json()

Convert to a JSON string.

class NumberInputDataDependenciesExceeded

The maximum number of input data dependencies exceeded the limit.

static from_bytes(data)

Deserialize from bytes.

Parameters:

data (bytes) – the serialized object.

Returns: the deserialized object.

static from_json(raw)

Build from a JSON string.

limit
number_of_input_data_dependencies
to_json()

Convert to a JSON string.

class ReturnedValueLengthExceeded

The returned value length exceeded the limit.

static from_bytes(data)

Deserialize from bytes.

Parameters:

data (bytes) – the serialized object.

Returns: the deserialized object.

static from_json(raw)

Build from a JSON string.

length
limit
to_json()

Convert to a JSON string.

class ContractSizeExceeded

The contract size for DeployContract action exceeded the limit.

static from_bytes(data)

Deserialize from bytes.

Parameters:

data (bytes) – the serialized object.

Returns: the deserialized object.

static from_json(raw)

Build from a JSON string.

limit
size
to_json()

Convert to a JSON string.

class Deprecated

The host function was deprecated.

static from_bytes(data)

Deserialize from bytes.

Parameters:

data (bytes) – the serialized object.

Returns: the deserialized object.

static from_json(raw)

Build from a JSON string.

method_name
to_json()

Convert to a JSON string.

class ECRecoverError

General errors for ECDSA recover.

static from_bytes(data)

Deserialize from bytes.

Parameters:

data (bytes) – the serialized object.

Returns: the deserialized object.

static from_json(raw)

Build from a JSON string.

msg
to_json()

Convert to a JSON string.

class Ed25519VerifyInvalidInput

Invalid input to ed25519 signature verification function (e.g. signature cannot be derived from bytes).

static from_bytes(data)

Deserialize from bytes.

Parameters:

data (bytes) – the serialized object.

Returns: the deserialized object.

static from_json(raw)

Build from a JSON string.

msg
to_json()

Convert to a JSON string.

class AltBn128InvalidInput

Invalid input to alt_bn128 familiy of functions (e.g., point which isn’t on the curve).

static from_bytes(data)

Deserialize from bytes.

Parameters:

data (bytes) – the serialized object.

Returns: the deserialized object.

static from_json(raw)

Build from a JSON string.

msg
to_json()

Convert to a JSON string.

class CodeDoesNotExist
account_id
static from_bytes(data)

Deserialize from bytes.

Parameters:

data (bytes) – the serialized object.

Returns: the deserialized object.

static from_json(raw)

Build from a JSON string.

to_json()

Convert to a JSON string.

class PrepareError

Error that can occur while preparing or executing Wasm smart-contract.

Deserialization = PrepareError.Deserialization
GasInstrumentation = PrepareError.GasInstrumentation
Instantiate = PrepareError.Instantiate
InternalMemoryDeclared = PrepareError.InternalMemoryDeclared
Memory = PrepareError.Memory
Serialization = PrepareError.Serialization
StackHeightInstrumentation = PrepareError.StackHeightInstrumentation
class WasmerCompileError
static from_bytes(data)

Deserialize from bytes.

Parameters:

data (bytes) – the serialized object.

Returns: the deserialized object.

static from_json(raw)

Build from a JSON string.

msg
to_json()

Convert to a JSON string.

class UnsupportedCompiler
static from_bytes(data)

Deserialize from bytes.

Parameters:

data (bytes) – the serialized object.

Returns: the deserialized object.

static from_json(raw)

Build from a JSON string.

msg
to_json()

Convert to a JSON string.

class CacheErrorFieldless
DeserializationError = CacheErrorFieldless.DeserializationError
ReadError = CacheErrorFieldless.ReadError
WriteError = CacheErrorFieldless.WriteError
class SerializationError
static from_bytes(data)

Deserialize from bytes.

Parameters:

data (bytes) – the serialized object.

Returns: the deserialized object.

static from_json(raw)

Build from a JSON string.

hash
to_json()

Convert to a JSON string.

class FunctionCallErrorSerFieldless
WasmUnknownError = FunctionCallErrorSerFieldless.WasmUnknownError
class LinkError

Wasm binary env link error

static from_bytes(data)

Deserialize from bytes.

Parameters:

data (bytes) – the serialized object.

Returns: the deserialized object.

static from_json(raw)

Build from a JSON string.

msg
to_json()

Convert to a JSON string.

class MethodResolveError

Import/export resolve error

MethodEmptyName = MethodResolveError.MethodEmptyName
MethodInvalidSignature = MethodResolveError.MethodInvalidSignature
MethodNotFound = MethodResolveError.MethodNotFound
class WasmTrap

A kind of a trap happened during execution of a binary

CallIndirectOOB = WasmTrap.CallIndirectOOB
GenericTrap = WasmTrap.GenericTrap
IllegalArithmetic = WasmTrap.IllegalArithmetic
IncorrectCallIndirectSignature = WasmTrap.IncorrectCallIndirectSignature
IndirectCallToNull = WasmTrap.IndirectCallToNull
MemoryOutOfBounds = WasmTrap.MemoryOutOfBounds
MisalignedAtomicAccess = WasmTrap.MisalignedAtomicAccess
StackOverflow = WasmTrap.StackOverflow
Unreachable = WasmTrap.Unreachable