tfchain
tfchain copied to clipboard
Add KV store module in GO client
- Add KV store valid function in go substrate this will be used in V client
this may help https://github.com/threefoldtech/substrate-client/compare/master...implement_kvstore
Is this one still relevant @0oM4R @AhmedHanafy725 Do you mean tfchain-client-go ?
not sure if it's still required for the v client, but it's good to have it on the tfchain go client
WIP: After investigation, I was able to implement set/get and delete operations.
The listing of all key-value pairs had a problem that the client used in the chain doesn't support creating/listing using partial key, so couldn't list the keys in the store
Reported here: https://github.com/centrifuge/go-substrate-rpc-client/issues/300 https://github.com/centrifuge/go-substrate-rpc-client/issues/365
we will need more time to find another client or fork and update the client to support using partial keys.
Work Completed
- forked the rpc client and updated it to be able to use partial key to list all values in the store
- updated the list function to return key-value pairs with decoded format