Add new RPC Methods to be easier to request Smart Contract data.
GetBalancesSC: allows to request specific (or all) assets balances from the Smart Contract.
GetMatchingKeysSC / GetMatchingValuesSC: allows to search multiple keys/values patterns (regex) at same time to get all available keys/values stored in the Smart Contract. (NOTE: This only find the keys or the values according to the method called to find entries matching).
GetValuesFromKeysSC: get values (mapped or not) from the keys using the same index order.
SearchVariablesSC: advanced search engine to map before/after keys/values and supporting regex using AND or OR filters and returning key AND value in response.
Mappers functions:
to_address: transform a data to DERO address format
to_hex: transform a data to hexadecimal format
Type of change
Please select the right one.
[ ] Bug fix (non-breaking change which fixes an issue)
[X] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[X] This change requires a documentation update
[ ] This will require a HardFork to be enabled
Which part is impacted ?
[ ] Wallet
[X] Daemon
[ ] Miner
[ ] Explorer
[ ] Simulator
[X] Misc (documentation, comments, text...)
Checklist:
[X] I have performed a self-review of my code
[X] I have commented my code, particularly in hard-to-understand areas
[X] My changes generate no new warnings
License
Im am contributing & releasing the code under DERO Research License (which can be found here).
Description
Add new RPC Methods to be easier to request Smart Contract data.
GetBalancesSC
: allows to request specific (or all) assets balances from the Smart Contract.GetMatchingKeysSC
/GetMatchingValuesSC
: allows to search multiple keys/values patterns (regex) at same time to get all available keys/values stored in the Smart Contract. (NOTE: This only find the keys or the values according to the method called to find entries matching).GetValuesFromKeysSC
: get values (mapped or not) from the keys using the same index order.SearchVariablesSC
: advanced search engine to map before/after keys/values and supporting regex using AND or OR filters and returning key AND value in response.Mappers functions:
to_address
: transform a data to DERO address formatto_hex
: transform a data to hexadecimal formatType of change
Please select the right one.
Which part is impacted ?
Checklist:
License
Im am contributing & releasing the code under DERO Research License (which can be found here).