multiversx_sc_scenario::imports

Module heap

Source

Structs§

  • An Address is just a H256 with a different name. Has a different ABI name than H256.
  • Helper structure for providing arguments to all SC call functions other than async_call_raw. It keeps argument lengths separately from the argument data itself. Argument data is concatenated into a single byte buffer.
  • A pointer type that uniquely owns a heap allocation of type T.
  • Simple wrapper around a boxed byte slice, but with a lot of optimized methods for manipulating it. The focus is on reducing code size rather improving speed.
  • Type that holds 32 bytes of data. Data is kept on the heap to keep wasm size low and avoid copies.
  • A simple queue struct that is able to push and pop without moving elements. New items are pushed at the end, just like for a regular Vec. When popping, instead of performing a regular Vec remove that would shift items, a start index is moved up 1 position. When serializing, items before the start index are ignored.
  • A UTF-8–encoded, growable string.
  • A contiguous growable array type, written as Vec<T>, short for ‘vector’.

Enums§