Module dharitri_sc::types

source ·

Re-exports§

  • pub use managed_vec::managed_vec_from_slice_of_boxed_bytes;
  • pub use managed_vec::managed_vec_of_buffers_to_arg_buffer;

Modules§

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.
  • Default way to optionally return an error from a smart contract endpoint.

Traits§

  • Defines a contract call object, which is the basis for all calls to other contracts.
  • 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§

  • Syntactical sugar to help macros to generate code easier. Unlike calling CallbackClosure::<SA, R>::new, here types can be inferred from the context.
  • Syntactical sugar to help macros to generate code easier. Unlike calling ContractDeploy::<SA>::new, here types can be inferred from the context.

Type Aliases§