[][src]Module xpx_supercontracts_sdk::storage

Basic functionality for communication with Storage

File always located inside /root/supercontracts/ directory. So it should be relative path like: path/to/my/file.json

Functions

save_result

Save results of Supercotract execution to Storage. Return result status. When Supercontract execution finished will be aggregated transaction with all saved results from current Supercontract execution. File always located inside /root/supercontracts/ directory. So it should be relative path like: path/to/my/file.json

storage_get

Read file from Storage and return file data bytes. File always located inside /root/supercontracts/ directory. So it should be relative path like: path/to/my/file.json If file not exist or empty function return empty array.

storage_save

Save data to Storage. Return result status. File always located inside /root/supercontracts/ directory. So it should be relative path like: path/to/my/file.json