Created
November 18, 2023 22:27
-
-
Save okhaimie-dev/5bd0ee3eab8b2b76d016f5522569820f to your computer and use it in GitHub Desktop.
Example JSON Data Starknet React
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const exampleData = { | |
types: { | |
StarkNetDomain: [ | |
{ name: "name", type: "felt" }, | |
{ name: "version", type: "felt" }, | |
{ name: "chainId", type: "felt" }, | |
], | |
Person: [ | |
{ name: "name", type: "felt" }, | |
{ name: "wallet", type: "felt" }, | |
], | |
Mail: [ | |
{ name: "from", type: "Person" }, | |
{ name: "to", type: "Person" }, | |
{ name: "contents", type: "felt" }, | |
], | |
}, | |
primaryType: "Mail", | |
domain: { | |
name: "Starknet Mail", | |
version: "1", | |
chainId: 1, | |
}, | |
message: { | |
from: { | |
name: "Cow", | |
wallet: "0xCD2a3d9F938E13CD947Ec05AbC7FE734Df8DD826", | |
}, | |
to: { | |
name: "Bob", | |
wallet: "0xbBbBBBBbbBBBbbbBbbBbbbbBBbBbbbbBbBbbBBbB", | |
}, | |
contents: "Hello, Bob!", | |
}, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment