Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor storage borsh encoded read/write #334

Merged
merged 32 commits into from
Oct 13, 2022
Merged
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
1a57908
ledger: add tx and VP traits with host env functions
tzemanovic Jul 20, 2022
5d8c61a
shared/vm: rename host_env TxEnv/VpEnv to TxVmEnv/VpVmEnv
tzemanovic Jul 20, 2022
fe365d9
shared/ledger/native_vp: implement VpEnv
tzemanovic Jul 20, 2022
4e46aca
shared: update native_vp implementations for VpEnv methods
tzemanovic Jul 20, 2022
e4b84a0
VM: move vm_env sub-mod into tx/vp_prelude and add Tx/VpEnv and Ctx
tzemanovic Jul 20, 2022
71820f6
tests: update for VM API changes
tzemanovic Jul 20, 2022
d7d0ef1
wasm: update for VM API changes
tzemanovic Jul 20, 2022
bf604a4
macros: add error handling to transaction and validity_predicate macros
tzemanovic Jul 20, 2022
d868424
wasm: improve error handling
tzemanovic Jul 21, 2022
221e9f2
changelog: add #1093
tzemanovic Jul 21, 2022
8bce915
Update shared/src/ledger/vp_env.rs
tzemanovic Jul 25, 2022
affa0b5
wasm_for_tests: make
tzemanovic Aug 11, 2022
14f638a
update wasm checksums
tzemanovic Aug 11, 2022
18526da
[ci skip] wasm checksums update
github-actions[bot] Aug 17, 2022
9a135eb
ledger: add StorageRead trait with extensible error type
tzemanovic Aug 12, 2022
97c6947
ledger/native_vp: implement StorageRead for pre and post state
tzemanovic Aug 12, 2022
7552c1e
ledger/vp: impl StorageRead for WASM VPs pre and post state
tzemanovic Aug 12, 2022
45f3f94
ledger/storage: impl StorageRead for Storage
tzemanovic Aug 12, 2022
5989412
ledger/tx: inherit StorageRead in TxEnv
tzemanovic Aug 12, 2022
10f94c2
ledger/pos: implement PosReadOnly using StorageRead trait
tzemanovic Aug 12, 2022
eeb1e8c
update wasm checksums
tzemanovic Aug 12, 2022
abd10c1
ledger: factor out TxEnv write methods into a new StorageWrite trait
tzemanovic Aug 12, 2022
08b0a8f
ledger: impl StorageWrite for Storage
tzemanovic Aug 12, 2022
773033d
add <'iter> lifetime to StorageRead trait to get around lack of GATs
tzemanovic Aug 16, 2022
28b4307
add more comments for StorageRead lifetime with an example usage
tzemanovic Aug 16, 2022
8bc5816
storage: remove unnecessary clone
tzemanovic Aug 16, 2022
7decfab
fix missing StorageWrite for Storage merkle tree update
tzemanovic Aug 16, 2022
b92edd4
update wasm checksums
tzemanovic Aug 20, 2022
ace6716
changelog: add #331
tzemanovic Aug 21, 2022
999df37
storage_api: add default borsh encoded read/write impl and handle errors
tzemanovic Aug 15, 2022
a547378
wasm checksums update
github-actions[bot] Aug 15, 2022
6f0be8f
changelog: add #334
tzemanovic Aug 22, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions wasm/checksums.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"tx_bond.wasm": "tx_bond.091bf7885488fe9d01643d448236a3c5a8496fc72b1992d98633fa9954a79505.wasm",
"tx_from_intent.wasm": "tx_from_intent.65511fd08da70dc102f8c9f2c4c96fa611d7d2c9b680bcd323da242b1ce6d563.wasm",
"tx_ibc.wasm": "tx_ibc.bfc87f17efbd799cfa73487b7e080f845a6004cdc5f9b26c74cee93587f9d3c4.wasm",
"tx_init_account.wasm": "tx_init_account.ca95fc31bafe84f9bccc4e01336d2d993f4652fef9ea3d0bcfc10edbd9ef30d8.wasm",
"tx_init_nft.wasm": "tx_init_nft.683188dc9eceaf55263d4021bb0fe6c733a74e79998370fc54994eff0d4fd061.wasm",
"tx_init_proposal.wasm": "tx_init_proposal.c4612a75320aa5ceb23cd61da9b43cf89b15feadad9fc28886eadfdeac38bbca.wasm",
"tx_init_validator.wasm": "tx_init_validator.05b94e3de1ff997c830ec0393df6d51fdcbe0410b28e3b9b4cc585c7132141b7.wasm",
"tx_mint_nft.wasm": "tx_mint_nft.e29e4510c1bb9df5b98671ab2b5b5c728d21812924398e810f8d4a00885d9b98.wasm",
"tx_transfer.wasm": "tx_transfer.38739d844a43275e1e4bc18f79a225d1abece7bf302a49763073c1a5188f54d9.wasm",
"tx_unbond.wasm": "tx_unbond.c943d4a1759b2912dc1762e9bce55f16226db12b081afce912e3fa1a28459ba2.wasm",
"tx_bond.wasm": "tx_bond.683e3d5d9ad06b24df792e1a6a5f113fa238bc5635949a8da8f6826a0e338367.wasm",
"tx_from_intent.wasm": "tx_from_intent.51ab8df28b2e09232469043903ed490a42fa04afaa7827b42d5d895906a45ed8.wasm",
"tx_ibc.wasm": "tx_ibc.d79a0434a22727d0c3b926e2fb02969fe02efa58bff02b94b6f64ea6b6c6f0b2.wasm",
"tx_init_account.wasm": "tx_init_account.9a35cbe6781c2df33beb894ac2b1d323d575f859f119a43f34857eb34d7c22d2.wasm",
"tx_init_nft.wasm": "tx_init_nft.8079d16641f9f2af458f3c9818ffa2250994fdd20ec5fcdba87feab23c3576c6.wasm",
"tx_init_proposal.wasm": "tx_init_proposal.3f5057d1a874eaa92f8ba8a8f8afc83a20139edb4bf2056300ce0c8e463950ad.wasm",
"tx_init_validator.wasm": "tx_init_validator.32936b7d7d0cdd961f11a1759f96dc09a0329528f3b2cc03ecf60751fa31f798.wasm",
"tx_mint_nft.wasm": "tx_mint_nft.a41830bed7d64926f8c4e2fe8ea56a7b485a26402fa3b0556d6ba14bc105e808.wasm",
"tx_transfer.wasm": "tx_transfer.11b66a337f337c836e4a7dd3356cc16ecede1c7c14a3dd56ed08c96557c03025.wasm",
"tx_unbond.wasm": "tx_unbond.db1f677a158a5ac1bda63d653a8f22f59ed72e0e425d55918ef70e87a4aa95e0.wasm",
"tx_update_vp.wasm": "tx_update_vp.a304b3c70361cde5fda458ba5637d6825eb002198e73990a1c74351113b83d43.wasm",
"tx_vote_proposal.wasm": "tx_vote_proposal.7c0b48866b9b31e913f338d0afaf41605f51c0cddf2e3a3f0d231e57e68c72f2.wasm",
"tx_withdraw.wasm": "tx_withdraw.1ec566946f3178c7a7e639e56eb4d1e26ac24e4d5cb856efd1a81bbe59390a3e.wasm",
"vp_nft.wasm": "vp_nft.ea4754591552e715ffdb125b649b3d1bb4b45ca93c3c808a51fa5ccaa9787d5c.wasm",
"vp_testnet_faucet.wasm": "vp_testnet_faucet.70588d919e1c3d7a9c2ec37c67c5587c835ab0b9b485b73cec25b9413c9ccfd8.wasm",
"vp_token.wasm": "vp_token.5e619a0471b160712711bf44de9db1950f12900d1405dbcca0a2cea41d16a8a1.wasm",
"vp_user.wasm": "vp_user.3712b862e606effd77fc8c82058d960012ea5aef09580b8521de827484af27d1.wasm"
"tx_vote_proposal.wasm": "tx_vote_proposal.5e51a66746df8c7e786cc6837a74f87d239442ace67d1c4ef4e6751aa725514f.wasm",
"tx_withdraw.wasm": "tx_withdraw.b4705cbc2eb566faf1d14fff10190970f62aa90c30420e8b3ebbec0a85e7d04b.wasm",
"vp_nft.wasm": "vp_nft.1a32d37b32c616119d156128560a0eeb43206e91069e2c3875e74211ed3ad01f.wasm",
"vp_testnet_faucet.wasm": "vp_testnet_faucet.4c91dfdf6ac6cdccc931ee391167033a9cdbd1b8551a428e90295bd0d6f68d85.wasm",
"vp_token.wasm": "vp_token.9f27c2e823691487bb6631fbfecb39837c1f404ef9b263e810a5a2a76f4c5957.wasm",
"vp_user.wasm": "vp_user.fb06cb724aa92d615b8da971b0ca1c89bf0caf8c1b9ea3536c252fd1c3b98881.wasm"
}