Module dharitri_wasm::types

source ·

Structs§

Enums§

  • Used internally between the callback and callback_selector methods. It is likely to be removed in the future.
  • Message hash type for the verifyCustomSecp256k1 CryptoApi function
  • Standard way of signalling that an operation was interrupted early, before running out of gas. An endpoint that performs a longer operation can check from time to time if it is running low on gas and can decide to save its state and exit, so that it can continue the same operation later.
  • A smart contract argument or result that can be missing.
  • Default way to optionally return an error from a smart contract endpoint.

Traits§

  • Commonalities between all managed types.
  • Types that implement this trait can be items inside a ManagedVec. All these types need a payload, i.e a representation that gets stored in the underlying managed buffer. Not all data needs to be stored as payload, for instance for most managed types the payload is just the handle, whereas the mai ndata is kept by the VM.
  • Any type that implements this trait can be used to signal errors when returning from a SC endpoint.

Functions§

Type Aliases§