LiquidVRAM
Paid feature
This is a paid feature. Please check the pricing page for our different subscription tiers.
Hydra supports reading and writing LiquidApps' vRAM tables.
Unlike standard eosio::multi_index
tables, vRAM tables are stored and encoded across multiple tables.
Hydra decodes this table data on the fly when using getTableRowsScoped
, so they can be used like any other EOSIO multi-index table.
At the same time, it's possible to use Hydra's exisiting fixture loading feature to load initial vRAM table data.
Consider a token contract storing the user account balances in a vRAM table:
#
coldtoken#
Reading table dataThe transfer function can be tested by simply reading the accounts
table that the dapp::multi_index
was defined on:
Under the hood, Hydra transforms the vRAM table data to what one would expect.
#
Loading table dataUsing the hydraload
action, one can inject data into any vRAM table.
Enable it by including the header file and annotating each dapp::multi_index
type:
Afterwards, specify the data to load in your tests: