Skip to content

Store Location with State #79

@freesig

Description

@freesig

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No fields configured for Task.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions