Skip to content

Commit

Permalink
import ledger-asset-dapps EIP-712 descriptors (#21)
Browse files Browse the repository at this point in the history
* import ledger-asset-dapps EIP-712 descriptors

* format descriptors

* update after LedgerHQ/python-erc7730#49 fix

* chore: update with erc7730 0.0.25

* merge 1inch descriptors

* merge degate descriptors

* merge dispatch descriptors

* merge ledgerquest descriptors

* merge lens descriptors

* merge opensea descriptors

* merge paraswap descriptors

* merge rarible descriptors

* merge smartcredit descriptors

* merge tally descriptors

* merge uniswap descriptors

* merge permit descriptors

* fixes/excluded

* fixes/excluded

* fixes/excluded

* fixes/excluded

* fixes/excluded

* fixes/excluded

* fixes/excluded

* add $schema
  • Loading branch information
jnicoulaud-ledger authored Oct 11, 2024
1 parent c85dd5b commit d4cbece
Show file tree
Hide file tree
Showing 57 changed files with 4,931 additions and 266 deletions.
133 changes: 133 additions & 0 deletions registry/1inch/eip712-1inch-aggregation-router.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
{
"$schema": "../../specs/erc7730-v1.schema.json",
"context": {
"eip712": {
"deployments": [
{
"chainId": 1,
"address": "0x111111125421ca6dc452d289314280a0f8842a65"
},
{
"chainId": 10,
"address": "0x111111125421ca6dc452d289314280a0f8842a65"
},
{
"chainId": 56,
"address": "0x111111125421ca6dc452d289314280a0f8842a65"
},
{
"chainId": 137,
"address": "0x111111125421ca6dc452d289314280a0f8842a65"
},
{
"chainId": 42161,
"address": "0x111111125421ca6dc452d289314280a0f8842a65"
}
],
"domain": {
"name": "Permit2"
},
"schemas": [
{
"primaryType": "Order",
"types": {
"EIP712Domain": [
{
"name": "name",
"type": "string"
},
{
"name": "version",
"type": "string"
},
{
"name": "chainId",
"type": "uint256"
},
{
"name": "verifyingContract",
"type": "address"
}
],
"Order": [
{
"name": "salt",
"type": "uint256"
},
{
"name": "maker",
"type": "address"
},
{
"name": "receiver",
"type": "address"
},
{
"name": "makerAsset",
"type": "address"
},
{
"name": "takerAsset",
"type": "address"
},
{
"name": "makingAmount",
"type": "uint256"
},
{
"name": "takingAmount",
"type": "uint256"
},
{
"name": "makerTraits",
"type": "uint256"
}
]
}
}
]
}
},
"metadata": {
"owner": "1inch Aggregation Router"
},
"display": {
"formats": {
"Order": {
"intent": "1inch Order",
"fields": [
{
"path": "maker",
"label": "From",
"format": "raw"
},
{
"path": "makingAmount",
"label": "Send",
"format": "tokenAmount",
"params": {
"tokenPath": "makerAsset"
}
},
{
"path": "takingAmount",
"label": "Receive minimum",
"format": "tokenAmount",
"params": {
"tokenPath": "takerAsset"
}
},
{
"path": "receiver",
"label": "To",
"format": "raw"
}
],
"excluded": [
"salt",
"makerTraits"
]
}
}
}
}
118 changes: 0 additions & 118 deletions registry/1inch/eip712-1inch-ethereum.json

This file was deleted.

Loading

0 comments on commit d4cbece

Please sign in to comment.