Skip to content

Instantly share code, notes, and snippets.

@okhaimie-dev
Created November 18, 2023 22:27
Show Gist options
  • Save okhaimie-dev/5bd0ee3eab8b2b76d016f5522569820f to your computer and use it in GitHub Desktop.
Save okhaimie-dev/5bd0ee3eab8b2b76d016f5522569820f to your computer and use it in GitHub Desktop.
Example JSON Data Starknet React
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