Store Location with State
This issue may not really be needed as there is nothing in the toolkit currently around UIs but I have created it to document what the app will need to do. At the very least we should put it in the README.md
Overview
Store location with state to enable matching proof locations with state locations when querying for merkle proofs.
Implementation
Trait Bound
Add trait bound to state type state S:
where
Location: for<'a> From<&'a S>,
This will be used when querying.
Usage
Query state location using:
let location = Location::from(&state);
This enables matching proof locations with state locations when providing merkle proofs.
Store Location with State
This issue may not really be needed as there is nothing in the toolkit currently around UIs but I have created it to document what the app will need to do. At the very least we should put it in the README.md
Overview
Store location with state to enable matching proof locations with state locations when querying for merkle proofs.
Implementation
Trait Bound
Add trait bound to state type state
S:where Location: for<'a> From<&'a S>,This will be used when querying.
Usage
Query state location using:
This enables matching proof locations with state locations when providing merkle proofs.