Skip to content

Commit

Permalink
Add templates for ERC7730 files
Browse files Browse the repository at this point in the history
  • Loading branch information
lcastillo-ledger committed Oct 12, 2024
1 parent 20206c5 commit 4c62331
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions specs/templates/template-eip712.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"$schema": "../../specs/erc7730-v1.schema.json",

"context" : {
"eip712" : {
"deployments": [
{
"chainId": 1,
"address": "{verifying_contract_address}"
}
],
"domain": {
"name": "{message_domain}"
},
"schemas": [
"{local_link_to_schema}"
]
}
},

"metadata" : {
"owner": "{verifying_contract_owner}",
"info": {
"legalName": "{verifying_contract_legal_name}",
"url": "https://{verifying_contract_url}"
}
},

"display": {
"formats": {
"{message_primary_type}": {
"intent": "{Message intent}",
"required": [
"{list of required paths}"
],
"fields": [
{
"path": "{path_to_displayed_param}",
"label": "{param display label}",
"format": "{param_format}"
}
]
}
}
}
}

0 comments on commit 4c62331

Please sign in to comment.