[x] Add ability to deserialize Tx in shared and sdk - we have a to_bytes() which will return borsh-serialized values that can be deserialized into typed props
[x] Add query in extension to access pending Tx, and retrieve these details by deserializing Tx bytes
[x] Display details in ApproveSignTx
[x] Display JSON details when clicking View Data
[x] Add query in extension to access pending Sign Arbitrary data, which will return a string that we can attempt to parse as JSON, display in ApproveSignArbitraryView Data view
[x] Update SDK docs
TESTING
NOTE Best to start with a clean install of the extension and new account to test the entire flow. Also, this should probably be tested with the Luminare testnet!
Install new copy of extension based on this branch
Create/Import account (if you want to see RevealPk being added to batch, create an account here, then transfer funds via the faucet at https://faucet.luminara.icu/)
Once connected in Namadillo, create some Bonds, then submit for approval (if this is the first time this account is used on chain, you will see a RevealPk tx in the list - NOTE that we don't have to display this, I'm just iterating through all Tx in a batch)
Click View Data to see the entire object of the batch Tx, go back & approve
Resolves #835
shared
andsdk
- we have ato_bytes()
which will return borsh-serialized values that can be deserialized into typed propsApproveSignTx
View Data
Sign Arbitrary
data, which will return a string that we can attempt to parse as JSON, display inApproveSignArbitrary
View Data
viewTESTING
NOTE Best to start with a clean install of the extension and new account to test the entire flow. Also, this should probably be tested with the Luminare testnet!
View Data
to see the entire object of the batch Tx, go back & approveTODO
Styles will be addressed in a follow-up PR