diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml new file mode 100644 index 00000000..526d9e86 --- /dev/null +++ b/.github/workflows/format.yml @@ -0,0 +1,78 @@ +--- +name: 🤖 format descriptors + +on: + schedule: + - cron: '0 7 * * *' + workflow_dispatch: + +permissions: + id-token: write + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +env: + BRANCH: "master" + +jobs: + format: + name: format descriptors + runs-on: public-ledgerhq-shared-small + timeout-minutes: 60 + steps: + + - name: Checkout + timeout-minutes: 10 + uses: actions/checkout@v4 + + - name: Get date + timeout-minutes: 10 + run: echo "CURRENT_DATE=$(date +"%Y-%m-%d %H:%M")" >> $GITHUB_ENV + + - name: Setup python + timeout-minutes: 10 + uses: actions/setup-python@v5 + with: + python-version: '3.12' + cache: 'pip' + + - name: Login to Ledger JFrog + timeout-minutes: 10 + uses: LedgerHQ/actions-security/actions/jfrog-login@actions/jfrog-login-1 + + - name: Setup pip + timeout-minutes: 10 + run: jf pipc --global --repo-resolve=virtual-pypi-prod-green + + - name: Install ERC-7730 library + timeout-minutes: 10 + run: jf pip install erc7730 + + - name: Format ERC-7730 descriptors + timeout-minutes: 10 + run: erc7730 format + + - name: Check changes + id: changes + timeout-minutes: 10 + shell: bash + run: | + [[ -n "$(git status -s)" ]] && echo "changes=true" >> $GITHUB_OUTPUT || true + + - name: Open pull request + if: ${{ !cancelled() && steps.changes.outputs.changes == 'true' }} + timeout-minutes: 10 + uses: peter-evans/create-pull-request@v7 + with: + token: ${{ secrets.CI_BOT_TOKEN }} + author: ${{ secrets.CI_BOT_USERNAME }} <${{ secrets.CI_BOT_USERNAME }}@users.noreply.github.com> + branch: ${{ env.BRANCH }}-format-descriptors + base: ${{ env.BRANCH }} + delete-branch: false + commit-message: 'chore: format descriptors - ${{ env.CURRENT_DATE }}' + title: 'chore: format descriptors - ${{ env.CURRENT_DATE }}' + body: ${{ steps.submodules.outputs.prBody }} + draft: false + signoff: false diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index c4eae882..c675cb04 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -15,6 +15,9 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true +env: + ETHERSCAN_API_HOST: etherscan.api.live.ledger.com + jobs: validate_descriptors: name: 🔎 validate descriptors @@ -26,14 +29,6 @@ jobs: timeout-minutes: 10 uses: actions/checkout@v4 - - name: Get API keys - timeout-minutes: 10 - shell: bash - run: | - cat << EOF | jq -r 'to_entries[] | select(.key|endswith("_API_KEY")) | "\(.key)=\(.value)"' >> "$GITHUB_ENV" - ${{ toJSON(secrets) }} - EOF - - name: Setup python timeout-minutes: 10 uses: actions/setup-python@v5 diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index cdd73444..241f6191 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -9,6 +9,9 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true +env: + ETHERSCAN_API_HOST: proxyetherscan.api.live.ledger.com + jobs: validate_descriptors: name: 🔎 validate descriptors @@ -29,15 +32,6 @@ jobs: registry/**/eip712-*.json registry/**/calldata-*.json - - name: Get API keys - timeout-minutes: 10 - if: steps.changed-descriptor-files.outputs.any_changed == 'true' - shell: bash - run: | - cat << EOF | jq -r 'to_entries[] | select(.key|endswith("_API_KEY")) | "\(.key)=\(.value)"' >> "$GITHUB_ENV" - ${{ toJSON(secrets) }} - EOF - - name: Setup python timeout-minutes: 10 if: steps.changed-descriptor-files.outputs.any_changed == 'true' diff --git a/.gitignore b/.gitignore index 93c700e8..02f41c5e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ .vscode/ .idea/ +.jfrog/ +.lh/ diff --git a/ercs/calldata-erc20-tokens.json b/ercs/calldata-erc20-tokens.json index d02a1cc5..c4a0ea4f 100644 --- a/ercs/calldata-erc20-tokens.json +++ b/ercs/calldata-erc20-tokens.json @@ -1,117 +1,65 @@ { - "$schema": "../specs/erc7730-v1.schema.json", - "context": { - "contract" : { - "abi": [ - { - "constant": false, - "inputs": [ - { - "name": "_spender", - "type": "address" - }, - { - "name": "_value", - "type": "uint256" - } - ], - "name": "approve", - "outputs": [ - { - "name": "", - "type": "bool" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "_to", - "type": "address" - }, - { - "name": "_value", - "type": "uint256" - } - ], - "name": "transfer", - "outputs": [ - { - "name": "", - "type": "bool" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - } - ] + "$schema": "../specs/erc7730-v1.schema.json", + "context": { + "contract": { + "abi": [ + { + "constant": false, + "inputs": [{ "name": "_spender", "type": "address" }, { "name": "_value", "type": "uint256" }], + "name": "approve", + "outputs": [{ "name": "", "type": "bool" }], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" + }, + { + "constant": false, + "inputs": [{ "name": "_to", "type": "address" }, { "name": "_value", "type": "uint256" }], + "name": "transfer", + "outputs": [{ "name": "", "type": "bool" }], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" } - }, - - "display": { - "formats": { - "transfer(address,uint256)": { - "intent": "Send", - "fields": [ - { - "path": "_to", - "label": "To", - "format": "addressName", - "params": { - "types": [ - "eoa" - ], - "sources": [ - "local", - "ens" - ] - } - }, - { - "path": "_value", - "label": "Amount", - "format": "tokenAmount", - "params": { - "tokenPath": "$.context.contract.deployments.[0].address" - } - } - ], - "required": ["_to", "_value"] - }, - "approve(address,uint256)": { - "intent": "Approve", - "fields": [ - { - "path": "_spender", - "label": "Spender", - "format": "addressName", - "params": { - "types": [ - "eoa" - ], - "sources": [ - "local", - "ens" - ] - } - }, - { - "path": "_value", - "label": "Amount", - "format": "tokenAmount", - "params": { - "tokenPath": "$.context.contract.deployments.[0].address", - "threshold": "0x8000000000000000000000000000000000000000000000000000000000000000" - } - } - ], - "required": ["_spender", "_value"] + ] + } + }, + "display": { + "formats": { + "transfer(address,uint256)": { + "intent": "Send", + "fields": [ + { "path": "_to", "label": "To", "format": "addressName", "params": { "types": ["eoa"], "sources": ["local", "ens"] } }, + { + "path": "_value", + "label": "Amount", + "format": "tokenAmount", + "params": { "tokenPath": "$.context.contract.deployments.[0].address" } + } + ], + "required": ["_to", "_value"] + }, + "approve(address,uint256)": { + "intent": "Approve", + "fields": [ + { + "path": "_spender", + "label": "Spender", + "format": "addressName", + "params": { "types": ["eoa"], "sources": ["local", "ens"] } + }, + { + "path": "_value", + "label": "Amount", + "format": "tokenAmount", + "params": { + "tokenPath": "$.context.contract.deployments.[0].address", + "threshold": "0x8000000000000000000000000000000000000000000000000000000000000000" } - } + } + ], + "required": ["_spender", "_value"] + } } -} \ No newline at end of file + } +} diff --git a/ercs/calldata-erc721-nfts.json b/ercs/calldata-erc721-nfts.json index d9af57c6..3e741913 100644 --- a/ercs/calldata-erc721-nfts.json +++ b/ercs/calldata-erc721-nfts.json @@ -1,187 +1,79 @@ { - "$schema": "../specs/erc7730-v1.schema.json", - "context": { - "contract" : { - "abi": [ - { - "inputs": [ - { - "name": "_from", - "type": "address" - }, - { - "name": "_to", - "type": "address" - }, - { - "name": "_tokenId", - "type": "uint256" - } - ], - "name": "transferFrom", - "type": "function" - }, - { - "inputs": [ - { - "name": "_from", - "type": "address" - }, - { - "name": "_to", - "type": "address" - }, - { - "name": "_tokenId", - "type": "uint256" - } - ], - "name": "safeTransferFrom", - "type": "function" - }, - { - "inputs": [ - { - "name": "_approved", - "type": "address" - }, - { - "name": "_tokenId", - "type": "uint256" - } - ], - "name": "approve", - "type": "function" - }, - { - "inputs": [ - { - "name": "_operator", - "type": "address" - }, - { - "name": "_approved", - "type": "bool" - } - ], - "name": "setApprovalForAll", - "type": "function" - } - ] - } - }, - - "metadata": { - "enums": { - "rights": { - "True": "Grant all", - "False": "Deny all" - } - } - }, - - "display": { - "definitions": { - "from" : { - "label": "From", - "format": "addressName", - "params": { - "types": [ - "eoa" - ], - "sources": [ - "local", - "ens" - ] - } - }, - "to" : { - "label": "To", - "format": "addressName", - "params": { - "types": [ - "eoa" - ], - "sources": [ - "local", - "ens" - ] - } - }, - "operator":{ - "label": "Operator", - "format": "addressName", - "params": { - "types": [ - "contract" - ], - "sources": [ - "local", - "ens" - ] - } - }, - "tokenId" : { - "label": "NFT", - "format": "nftName", - "params": { - "collectionPath": "@.to" - } - } + "$schema": "../specs/erc7730-v1.schema.json", + "context": { + "contract": { + "abi": [ + { + "inputs": [{ "name": "_from", "type": "address" }, { "name": "_to", "type": "address" }, { "name": "_tokenId", "type": "uint256" }], + "name": "transferFrom", + "type": "function" }, - "formats": { - "transferFrom(address,address,uint256)": { - "intent": "Send NFT", - "fields": [ - { "path": "_from", "$ref": "$.display.definitions.from" }, - { "path": "_to", "$ref": "$.display.definitions.to" }, - { "path": "_tokenId", "$ref": "$.display.definitions.tokenId" } - ], - "required": ["_to", "_tokenId"] - }, - "safeTransferFrom(address,address,uint256)": { - "intent": "Send NFT", - "fields": [ - { "path": "_from", "$ref": "$.display.definitions.from" }, - { "path": "_to", "$ref": "$.display.definitions.to" }, - { "path": "_tokenId", "$ref": "$.display.definitions.tokenId" } - ], - "required": ["_spender", "_value"] - }, - "approve(address,uint256)" : { - "intent": "Approve operator for NFT", - "fields": [ - { "path": "_approved", "$ref": "$.display.definitions.operator" }, - { "path": "_tokenId", "$ref": "$.display.definitions.tokenId" } - ] - }, - "setApprovalForAll(address,bool)" : { - "$id": "setApprovalForAll", - "intent": "Manage operator rights for", - "fields": [ - { - "path": "@.to", - "label": "Collection", - "format": "addressName", - "params": { - "types": [ - "collection" - ], - "sources": [ - "local", - "ens" - ] - } - }, - { "path": "_operator", "$ref": "$.display.definitions.operator" }, - { - "path": "_approved", - "label": "Access rights", - "format": "enum", - "params": { "$ref": "$.metadata.enums.rights" } - } - ] - } + { + "inputs": [{ "name": "_from", "type": "address" }, { "name": "_to", "type": "address" }, { "name": "_tokenId", "type": "uint256" }], + "name": "safeTransferFrom", + "type": "function" + }, + { + "inputs": [{ "name": "_approved", "type": "address" }, { "name": "_tokenId", "type": "uint256" }], + "name": "approve", + "type": "function" + }, + { + "inputs": [{ "name": "_operator", "type": "address" }, { "name": "_approved", "type": "bool" }], + "name": "setApprovalForAll", + "type": "function" } + ] + } + }, + "metadata": { "enums": { "rights": { "True": "Grant all", "False": "Deny all" } } }, + "display": { + "definitions": { + "from": { "label": "From", "format": "addressName", "params": { "types": ["eoa"], "sources": ["local", "ens"] } }, + "to": { "label": "To", "format": "addressName", "params": { "types": ["eoa"], "sources": ["local", "ens"] } }, + "operator": { "label": "Operator", "format": "addressName", "params": { "types": ["contract"], "sources": ["local", "ens"] } }, + "tokenId": { "label": "NFT", "format": "nftName", "params": { "collectionPath": "@.to" } } + }, + "formats": { + "transferFrom(address,address,uint256)": { + "intent": "Send NFT", + "fields": [ + { "path": "_from", "$ref": "$.display.definitions.from" }, + { "path": "_to", "$ref": "$.display.definitions.to" }, + { "path": "_tokenId", "$ref": "$.display.definitions.tokenId" } + ], + "required": ["_to", "_tokenId"] + }, + "safeTransferFrom(address,address,uint256)": { + "intent": "Send NFT", + "fields": [ + { "path": "_from", "$ref": "$.display.definitions.from" }, + { "path": "_to", "$ref": "$.display.definitions.to" }, + { "path": "_tokenId", "$ref": "$.display.definitions.tokenId" } + ], + "required": ["_spender", "_value"] + }, + "approve(address,uint256)": { + "intent": "Approve operator for NFT", + "fields": [ + { "path": "_approved", "$ref": "$.display.definitions.operator" }, + { "path": "_tokenId", "$ref": "$.display.definitions.tokenId" } + ] + }, + "setApprovalForAll(address,bool)": { + "$id": "setApprovalForAll", + "intent": "Manage operator rights for", + "fields": [ + { + "path": "@.to", + "label": "Collection", + "format": "addressName", + "params": { "types": ["collection"], "sources": ["local", "ens"] } + }, + { "path": "_operator", "$ref": "$.display.definitions.operator" }, + { "path": "_approved", "label": "Access rights", "format": "enum", "params": { "$ref": "$.metadata.enums.rights" } } + ] + } } -} \ No newline at end of file + } +} diff --git a/ercs/eip712-erc2612-permit.json b/ercs/eip712-erc2612-permit.json index 492351f2..f99182db 100644 --- a/ercs/eip712-erc2612-permit.json +++ b/ercs/eip712-erc2612-permit.json @@ -1,102 +1,47 @@ { - "$schema": "../specs/erc7730-v1.schema.json", - "context": { - "eip712": { - "schemas": [ - { - "types": { - "EIP712Domain": [ - { - "name": "name", - "type": "string" - }, - { - "name": "version", - "type": "string" - }, - { - "name": "chainId", - "type": "uint256" - }, - { - "name": "verifyingContract", - "type": "address" - } - ], - "Permit": [ - { - "name": "owner", - "type": "address" - }, - { - "name": "spender", - "type": "address" - }, - { - "name": "value", - "type": "uint256" - }, - { - "name": "nonce", - "type": "uint256" - }, - { - "name": "deadline", - "type": "uint256" - } - ] - }, - "primaryType": "Permit" - } + "$schema": "../specs/erc7730-v1.schema.json", + "context": { + "eip712": { + "schemas": [ + { + "types": { + "EIP712Domain": [ + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } + ], + "Permit": [ + { "name": "owner", "type": "address" }, + { "name": "spender", "type": "address" }, + { "name": "value", "type": "uint256" }, + { "name": "nonce", "type": "uint256" }, + { "name": "deadline", "type": "uint256" } ] + }, + "primaryType": "Permit" } - }, - "display": { - "formats": { - "Permit": { - "intent": "Authorize spending of tokens", - "fields": [ - { - "path": "spender", - "label": "Spender", - "format": "addressName", - "params": { - "types": [ - "contract" - ], - "sources": [ - "local", - "ens" - ] - } - }, - { - "path": "value", - "label": "Max spending amount", - "format": "tokenAmount", - "params": { - "tokenPath": "@.to" - } - }, - { - "path": "deadline", - "label": "Valid until", - "format": "date", - "params": { - "encoding": "timestamp" - } - } - ], - "required": [ - "spender", - "value" - ], - "excluded": [ - "owner", - "nonce" - ], - "screens": {} - } - } + ] + } + }, + "display": { + "formats": { + "Permit": { + "intent": "Authorize spending of tokens", + "fields": [ + { + "path": "spender", + "label": "Spender", + "format": "addressName", + "params": { "types": ["contract"], "sources": ["local", "ens"] } + }, + { "path": "value", "label": "Max spending amount", "format": "tokenAmount", "params": { "tokenPath": "@.to" } }, + { "path": "deadline", "label": "Valid until", "format": "date", "params": { "encoding": "timestamp" } } + ], + "required": ["spender", "value"], + "excluded": ["owner", "nonce"], + "screens": {} + } } -} \ No newline at end of file + } +} diff --git a/registry/1inch/calldata-AggregationRouterV3.json b/registry/1inch/calldata-AggregationRouterV3.json index e0ece271..ed943b2b 100644 --- a/registry/1inch/calldata-AggregationRouterV3.json +++ b/registry/1inch/calldata-AggregationRouterV3.json @@ -1,132 +1,76 @@ { - "$schema": "../../specs/erc7730-v1.schema.json", - - "context": { - "$id": "AggregationRouterV3", - "contract": { - "abi": "https://api.etherscan.io/api?module=contract&action=getabi&address=0x11111112542d85b3ef69ae05771c2dccff4faa26", - "deployments": [ - { - "chainId": 1, - "address": "0x11111112542D85B3EF69AE05771c2dCCff4fAa26" - }, - { - "chainId": 56, - "address": "0x11111112542D85B3EF69AE05771c2dCCff4fAa26" - }, - { - "chainId": 137, - "address": "0x11111112542D85B3EF69AE05771c2dCCff4fAa26" - } - ] - } - }, - - "metadata": { - "owner": "1inch", - "info": { - "url": "https://1inch.io/", - "legalName": "1inch Network", - "lastUpdate": "2021-03-14T20:28:50Z" - }, - "constants": { - "addressAsEth": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", - "addressAsNull": "0x0000000000000000000000000000000000000000" - } + "$schema": "../../specs/erc7730-v1.schema.json", + "context": { + "$id": "AggregationRouterV3", + "contract": { + "abi": "https://api.etherscan.io/api?module=contract&action=getabi&address=0x11111112542d85b3ef69ae05771c2dccff4faa26", + "deployments": [ + { "chainId": 1, "address": "0x11111112542D85B3EF69AE05771c2dCCff4fAa26" }, + { "chainId": 56, "address": "0x11111112542D85B3EF69AE05771c2dCCff4fAa26" }, + { "chainId": 137, "address": "0x11111112542D85B3EF69AE05771c2dCCff4fAa26" } + ] + } + }, + "metadata": { + "owner": "1inch", + "info": { "url": "https://1inch.io/", "legalName": "1inch Network", "lastUpdate": "2021-03-14T20:28:50Z" }, + "constants": { + "addressAsEth": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", + "addressAsNull": "0x0000000000000000000000000000000000000000" + } + }, + "display": { + "definitions": { + "sendAmount": { + "label": "Amount to Send", + "format": "tokenAmount", + "params": { "nativeCurrencyAddress": ["$.metadata.constants.addressAsEth", "$.metadata.constants.addressAsNull"] } + }, + "minReceiveAmount": { + "label": "Minimum to Receive", + "format": "tokenAmount", + "params": { "nativeCurrencyAddress": ["$.metadata.constants.addressAsEth", "$.metadata.constants.addressAsNull"] } + }, + "beneficiary": { "label": "Beneficiary", "format": "addressName" } }, - - "display": { - "definitions": { - "sendAmount": { - "label": "Amount to Send", - "format": "tokenAmount", - "params": { - "nativeCurrencyAddress": [ - "$.metadata.constants.addressAsEth", - "$.metadata.constants.addressAsNull" - ] - } - }, - "minReceiveAmount": { - "label": "Minimum to Receive", - "format": "tokenAmount", - "params": { - "nativeCurrencyAddress": [ - "$.metadata.constants.addressAsEth", - "$.metadata.constants.addressAsNull" - ] - } - }, - "beneficiary": { - "label": "Beneficiary", - "format": "addressName" - } - }, - "formats": { - "swap(address caller, (address srcToken, address dstToken, address srcReceiver, address dstReceiver, uint256 amount, uint256 minReturnAmount, uint256 flags, bytes permit) desc, bytes data)" : { - "$id": "swap", - "intent": "Swap", - "fields": [ - { - "path": "desc.amount", - "$ref": "$.display.definitions.sendAmount", - "params": { "tokenPath": "desc.srcToken" } - }, - { - "path": "desc.minReturnAmount", - "$ref": "$.display.definitions.minReceiveAmount", - "params": { "tokenPath": "desc.dstToken" } - }, - { - "path": "desc.dstReceiver", - "$ref": "$.display.definitions.beneficiary" - } - ], - "required": ["desc.amount", "desc.minReturnAmount", "desc.dstReceiver"], - "excluded": ["caller", "desc.srcReceiver", "desc.flags", "desc.permit", "data"] - }, - "unoswap(address srcToken, uint256 amount, uint256 minReturn, bytes32[] pools)" : { - "$id": "unoswap", - "intent": "Swap", - "fields": [ - { - "path": "amount", - "$ref": "$.display.definitions.sendAmount", - "params": { "tokenPath": "srcToken" } - }, - { - "path": "minReturn", - "$ref": "$.display.definitions.minReceiveAmount" - }, - { - "path": "@.from", - "$ref": "$.display.definitions.beneficiary" - } - ], - "required": ["amount", "minReturn", "@.from"], - "excluded": ["pools"] - }, - "unoswapWithPermit(address srcToken, uint256 amount, uint256 minReturn, bytes32[] pools, bytes permit)" : { - "$id": "unoswapWithPermit", - "intent": "Swap", - "fields": [ - { - "path": "amount", - "$ref": "$.display.definitions.sendAmount", - "params": { "tokenPath": "srcToken" } - }, - { - "path": "minReturn", - "$ref": "$.display.definitions.minReceiveAmount" - }, - { - "path": "@.from", - "$ref": "$.display.definitions.beneficiary" - } - ], - "required": ["amount", "minReturn", "@.from"], - "excluded": ["pools", "permit"] - } - } + "formats": { + "swap(address caller, (address srcToken, address dstToken, address srcReceiver, address dstReceiver, uint256 amount, uint256 minReturnAmount, uint256 flags, bytes permit) desc, bytes data)": { + "$id": "swap", + "intent": "Swap", + "fields": [ + { "path": "desc.amount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "desc.srcToken" } }, + { + "path": "desc.minReturnAmount", + "$ref": "$.display.definitions.minReceiveAmount", + "params": { "tokenPath": "desc.dstToken" } + }, + { "path": "desc.dstReceiver", "$ref": "$.display.definitions.beneficiary" } + ], + "required": ["desc.amount", "desc.minReturnAmount", "desc.dstReceiver"], + "excluded": ["caller", "desc.srcReceiver", "desc.flags", "desc.permit", "data"] + }, + "unoswap(address srcToken, uint256 amount, uint256 minReturn, bytes32[] pools)": { + "$id": "unoswap", + "intent": "Swap", + "fields": [ + { "path": "amount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "srcToken" } }, + { "path": "minReturn", "$ref": "$.display.definitions.minReceiveAmount" }, + { "path": "@.from", "$ref": "$.display.definitions.beneficiary" } + ], + "required": ["amount", "minReturn", "@.from"], + "excluded": ["pools"] + }, + "unoswapWithPermit(address srcToken, uint256 amount, uint256 minReturn, bytes32[] pools, bytes permit)": { + "$id": "unoswapWithPermit", + "intent": "Swap", + "fields": [ + { "path": "amount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "srcToken" } }, + { "path": "minReturn", "$ref": "$.display.definitions.minReceiveAmount" }, + { "path": "@.from", "$ref": "$.display.definitions.beneficiary" } + ], + "required": ["amount", "minReturn", "@.from"], + "excluded": ["pools", "permit"] + } } + } } diff --git a/registry/1inch/calldata-AggregationRouterV4-eth.json b/registry/1inch/calldata-AggregationRouterV4-eth.json index 8d821660..11c119dd 100644 --- a/registry/1inch/calldata-AggregationRouterV4-eth.json +++ b/registry/1inch/calldata-AggregationRouterV4-eth.json @@ -1,86 +1,46 @@ { - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "common-AggregationRouterV4.json", - - "context": { - "$id": "AggregationRouterV4", - "contract": { - "abi": "https://api.etherscan.io/api?module=contract&action=getabi&address=0x1111111254fb6c44bac0bed2854e76f90643097d", - "deployments": [ - { - "chainId": 1, - "address": "0x1111111254fb6c44bAC0beD2854e76F90643097d" - } - ] - } - }, - - "display": { - "formats": { - "clipperSwap(address srcToken, address dstToken, uint256 amount, uint256 minReturn)" : { - "$id": "clipperSwap", - "intent": "Swap", - "fields": [ - { - "path": "amount", - "$ref": "$.display.definitions.sendAmount", - "params": { "tokenPath": "srcToken" } - }, - { - "path": "minReturn", - "$ref": "$.display.definitions.minReceiveAmount", - "params": { "tokenPath": "dstToken" } - }, - { - "path": "@.from", - "$ref": "$.display.definitions.beneficiary" - } - ], - "required": ["amount", "minReturn", "@.from"] - }, - "clipperSwapTo(address recipient, address srcToken, address dstToken, uint256 amount, uint256 minReturn)" : { - "$id": "clipperSwapTo", - "intent": "Swap", - "fields": [ - { - "path": "amount", - "$ref": "$.display.definitions.sendAmount", - "params": { "tokenPath": "srcToken" } - }, - { - "path": "minReturn", - "$ref": "$.display.definitions.minReceiveAmount", - "params": { "tokenPath": "dstToken" } - }, - { - "path": "recipient", - "$ref": "$.display.definitions.beneficiary" - } - ], - "required": ["amount", "minReturn", "recipient"] - }, - "clipperSwapToWithPermit(address recipient, address srcToken, address dstToken, uint256 amount, uint256 minReturn, bytes permit)" : { - "$id": "clipperSwapToWithPermit", - "intent": "Swap", - "fields": [ - { - "path": "amount", - "$ref": "$.display.definitions.sendAmount", - "params": { "tokenPath": "srcToken" } - }, - { - "path": "minReturn", - "$ref": "$.display.definitions.minReceiveAmount", - "params": { "tokenPath": "dstToken" } - }, - { - "path": "recipient", - "$ref": "$.display.definitions.beneficiary" - } - ], - "required": ["amount", "minReturn", "recipient"], - "excluded": ["permit"] - } - } + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "common-AggregationRouterV4.json", + "context": { + "$id": "AggregationRouterV4", + "contract": { + "abi": "https://api.etherscan.io/api?module=contract&action=getabi&address=0x1111111254fb6c44bac0bed2854e76f90643097d", + "deployments": [{ "chainId": 1, "address": "0x1111111254fb6c44bAC0beD2854e76F90643097d" }] } + }, + "display": { + "formats": { + "clipperSwap(address srcToken, address dstToken, uint256 amount, uint256 minReturn)": { + "$id": "clipperSwap", + "intent": "Swap", + "fields": [ + { "path": "amount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "srcToken" } }, + { "path": "minReturn", "$ref": "$.display.definitions.minReceiveAmount", "params": { "tokenPath": "dstToken" } }, + { "path": "@.from", "$ref": "$.display.definitions.beneficiary" } + ], + "required": ["amount", "minReturn", "@.from"] + }, + "clipperSwapTo(address recipient, address srcToken, address dstToken, uint256 amount, uint256 minReturn)": { + "$id": "clipperSwapTo", + "intent": "Swap", + "fields": [ + { "path": "amount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "srcToken" } }, + { "path": "minReturn", "$ref": "$.display.definitions.minReceiveAmount", "params": { "tokenPath": "dstToken" } }, + { "path": "recipient", "$ref": "$.display.definitions.beneficiary" } + ], + "required": ["amount", "minReturn", "recipient"] + }, + "clipperSwapToWithPermit(address recipient, address srcToken, address dstToken, uint256 amount, uint256 minReturn, bytes permit)": { + "$id": "clipperSwapToWithPermit", + "intent": "Swap", + "fields": [ + { "path": "amount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "srcToken" } }, + { "path": "minReturn", "$ref": "$.display.definitions.minReceiveAmount", "params": { "tokenPath": "dstToken" } }, + { "path": "recipient", "$ref": "$.display.definitions.beneficiary" } + ], + "required": ["amount", "minReturn", "recipient"], + "excluded": ["permit"] + } + } + } } diff --git a/registry/1inch/calldata-AggregationRouterV4.json b/registry/1inch/calldata-AggregationRouterV4.json index 34778077..40605342 100644 --- a/registry/1inch/calldata-AggregationRouterV4.json +++ b/registry/1inch/calldata-AggregationRouterV4.json @@ -1,21 +1,14 @@ { - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "common-AggregationRouterV4.json", - - "context": { - "$id": "AggregationRouterV4", - "contract": { - "abi": "https://api.etherscan.io/v2/api?module=contract&action=getabi&chainid=56&address=0x1111111254fb6c44bac0bed2854e76f90643097d", - "deployments": [ - { - "chainId": 56, - "address": "0x1111111254fb6c44bAC0beD2854e76F90643097d" - }, - { - "chainId": 137, - "address": "0x1111111254fb6c44bAC0beD2854e76F90643097d" - } - ] - } + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "common-AggregationRouterV4.json", + "context": { + "$id": "AggregationRouterV4", + "contract": { + "abi": "https://api.etherscan.io/v2/api?module=contract&action=getabi&chainid=56&address=0x1111111254fb6c44bac0bed2854e76f90643097d", + "deployments": [ + { "chainId": 56, "address": "0x1111111254fb6c44bAC0beD2854e76F90643097d" }, + { "chainId": 137, "address": "0x1111111254fb6c44bAC0beD2854e76F90643097d" } + ] } + } } diff --git a/registry/1inch/calldata-AggregationRouterV5.json b/registry/1inch/calldata-AggregationRouterV5.json index baa44bf3..b8e3b137 100644 --- a/registry/1inch/calldata-AggregationRouterV5.json +++ b/registry/1inch/calldata-AggregationRouterV5.json @@ -1,461 +1,301 @@ { - "$schema": "../../specs/erc7730-v1.schema.json", - - "context": { - "$id": "AggregationRouterV5", - "contract": { - "abi": "https://api.etherscan.io/api?module=contract&action=getabi&address=0x1111111254eeb25477b68fb85ed929f73a960582", - "deployments": [ - { - "chainId": 1, - "address": "0x1111111254EEB25477B68fb85Ed929f73A960582" - }, - { - "chainId": 10, - "address": "0x1111111254EEB25477B68fb85Ed929f73A960582" - }, - { - "chainId": 56, - "address": "0x1111111254EEB25477B68fb85Ed929f73A960582" - }, - { - "chainId": 137, - "address": "0x1111111254EEB25477B68fb85Ed929f73A960582" - }, - { - "chainId": 42161, - "address": "0x1111111254EEB25477B68fb85Ed929f73A960582" - } - ] - } - }, - - "metadata": { - "owner": "1inch", - "info": { - "url": "https://1inch.io/", - "legalName": "1inch Network", - "lastUpdate": "2022-11-04T06:04:59Z" - }, - "constants": { - "addressAsEth": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", - "addressAsNull": "0x0000000000000000000000000000000000000000" - } + "$schema": "../../specs/erc7730-v1.schema.json", + "context": { + "$id": "AggregationRouterV5", + "contract": { + "abi": "https://api.etherscan.io/api?module=contract&action=getabi&address=0x1111111254eeb25477b68fb85ed929f73a960582", + "deployments": [ + { "chainId": 1, "address": "0x1111111254EEB25477B68fb85Ed929f73A960582" }, + { "chainId": 10, "address": "0x1111111254EEB25477B68fb85Ed929f73A960582" }, + { "chainId": 56, "address": "0x1111111254EEB25477B68fb85Ed929f73A960582" }, + { "chainId": 137, "address": "0x1111111254EEB25477B68fb85Ed929f73A960582" }, + { "chainId": 42161, "address": "0x1111111254EEB25477B68fb85Ed929f73A960582" } + ] + } + }, + "metadata": { + "owner": "1inch", + "info": { "url": "https://1inch.io/", "legalName": "1inch Network", "lastUpdate": "2022-11-04T06:04:59Z" }, + "constants": { + "addressAsEth": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", + "addressAsNull": "0x0000000000000000000000000000000000000000" + } + }, + "display": { + "definitions": { + "sendAmount": { + "label": "Amount to Send", + "format": "tokenAmount", + "params": { "nativeCurrencyAddress": ["$.metadata.constants.addressAsEth", "$.metadata.constants.addressAsNull"] } + }, + "minReceiveAmount": { + "label": "Minimum to Receive", + "format": "tokenAmount", + "params": { "nativeCurrencyAddress": ["$.metadata.constants.addressAsEth", "$.metadata.constants.addressAsNull"] } + }, + "beneficiary": { "label": "Beneficiary", "format": "addressName" }, + "expirationTime": { "label": "Expiration time", "format": "date", "params": { "encoding": "timestamp" } } }, - - "display": { - "definitions": { - "sendAmount": { - "label": "Amount to Send", - "format": "tokenAmount", - "params": { - "nativeCurrencyAddress": [ - "$.metadata.constants.addressAsEth", - "$.metadata.constants.addressAsNull" - ] - } - }, - "minReceiveAmount": { - "label": "Minimum to Receive", - "format": "tokenAmount", - "params": { - "nativeCurrencyAddress": [ - "$.metadata.constants.addressAsEth", - "$.metadata.constants.addressAsNull" - ] - } - }, - "beneficiary": { - "label": "Beneficiary", - "format": "addressName" - }, - "expirationTime": { - "label": "Expiration time", - "format": "date", - "params": { - "encoding": "timestamp" - } - } - }, - "formats": { - "swap(address executor, (address srcToken, address dstToken, address srcReceiver, address dstReceiver, uint256 amount, uint256 minReturnAmount, uint256 flags) desc, bytes permit, bytes data)" : { - "$id": "swap", - "intent": "Swap", - "fields": [ - { - "path": "desc.amount", - "$ref": "$.display.definitions.sendAmount", - "params": { "tokenPath": "desc.srcToken" } - }, - { - "path": "desc.minReturnAmount", - "$ref": "$.display.definitions.minReceiveAmount", - "params": { "tokenPath": "desc.dstToken" } - }, - { - "path": "desc.dstReceiver", - "$ref": "$.display.definitions.beneficiary" - } - ], - "required": ["desc.amount", "desc.minReturnAmount", "desc.dstReceiver"], - "excluded": ["executor", "desc.srcReceiver", "desc.flags", "permit", "data"] - }, - "unoswap(address srcToken, uint256 amount, uint256 minReturn, uint256[] pools)" : { - "$id": "unoswap", - "intent": "Swap", - "fields": [ - { - "path": "amount", - "$ref": "$.display.definitions.sendAmount", - "params": { "tokenPath": "srcToken" } - }, - { - "path": "minReturn", - "$ref": "$.display.definitions.minReceiveAmount" - }, - { - "path": "@.from", - "$ref": "$.display.definitions.beneficiary" - } - ], - "required": ["amount", "minReturn", "@.from"], - "excluded": ["pools"] - }, - "unoswapTo(address recipient, address srcToken, uint256 amount, uint256 minReturn, uint256[] pools)" : { - "$id": "unoswapTo", - "intent": "Swap", - "fields": [ - { - "path": "amount", - "$ref": "$.display.definitions.sendAmount", - "params": { "tokenPath": "srcToken" } - }, - { - "path": "minReturn", - "$ref": "$.display.definitions.minReceiveAmount" - }, - { - "path": "recipient", - "$ref": "$.display.definitions.beneficiary" - } - ], - "required": ["amount", "minReturn", "recipient"], - "excluded": ["pools"] - }, - "unoswapToWithPermit(address recipient, address srcToken, uint256 amount, uint256 minReturn, uint256[] pools, bytes permit)" : { - "$id": "unoswapToWithPermit", - "intent": "Swap", - "fields": [ - { - "path": "amount", - "$ref": "$.display.definitions.sendAmount", - "params": { "tokenPath": "srcToken" } - }, - { - "path": "minReturn", - "$ref": "$.display.definitions.minReceiveAmount" - }, - { - "path": "recipient", - "$ref": "$.display.definitions.beneficiary" - } - ], - "required": ["amount", "minReturn", "recipient"], - "excluded": ["pools", "permit"] - }, - "uniswapV3Swap(uint256 amount, uint256 minReturn, uint256[] pools)" : { - "$id": "uniswapV3Swap", - "intent": "Swap", - "fields": [ - { - "path": "amount", - "$ref": "$.display.definitions.sendAmount" - }, - { - "path": "minReturn", - "$ref": "$.display.definitions.minReceiveAmount" - }, - { - "path": "@.from", - "$ref": "$.display.definitions.beneficiary" - } - ], - "required": ["amount", "minReturn", "@.from"], - "excluded": ["pools"] - }, - "uniswapV3SwapTo(address recipient, uint256 amount, uint256 minReturn, uint256[] pools)" : { - "$id": "uniswapV3SwapTo", - "intent": "Swap", - "fields": [ - { - "path": "amount", - "$ref": "$.display.definitions.sendAmount" - }, - { - "path": "minReturn", - "$ref": "$.display.definitions.minReceiveAmount" - }, - { - "path": "recipient", - "$ref": "$.display.definitions.beneficiary" - } - ], - "required": ["amount", "minReturn", "recipient"], - "excluded": ["pools"] - }, - "uniswapV3SwapToWithPermit(address recipient, address srcToken, uint256 amount, uint256 minReturn, uint256[] pools, bytes permit)" : { - "$id": "uniswapV3SwapToWithPermit", - "intent": "Swap", - "fields": [ - { - "path": "amount", - "$ref": "$.display.definitions.sendAmount", - "params": { "tokenPath": "srcToken" } - }, - { - "path": "minReturn", - "$ref": "$.display.definitions.minReceiveAmount" - }, - { - "path": "recipient", - "$ref": "$.display.definitions.beneficiary" - } - ], - "required": ["amount", "minReturn", "recipient"], - "excluded": ["pools", "permit"] - }, - "fillOrder((uint256 salt, address makerAsset, address takerAsset, address maker, address receiver, address allowedSender, uint256 makingAmount, uint256 takingAmount, uint256 offsets, bytes interactions) order, bytes signature, bytes interaction, uint256 makingAmount, uint256 takingAmount, uint256 skipPermitAndThresholdAmount)" : { - "$id": "fillOrder", - "intent": "Swap", - "fields": [ - { - "path": "order.takingAmount", - "$ref": "$.display.definitions.sendAmount", - "params": { "tokenPath": "order.takerAsset" } - }, - { - "path": "order.makingAmount", - "$ref": "$.display.definitions.minReceiveAmount", - "params": { "tokenPath": "order.makerAsset" } - }, - { - "path": "@.from", - "$ref": "$.display.definitions.beneficiary" - } - ], - "required": ["order.takingAmount", "order.makingAmount", "@.from"], - "excluded": ["order.salt", "order.maker", "order.receiver", "order.allowedSender", "order.offsets", "order.interactions", "signature", "interaction", "makingAmount", "takingAmount", "skipPermitAndThresholdAmount"] - }, - "fillOrderTo((uint256 salt, address makerAsset, address takerAsset, address maker, address receiver, address allowedSender, uint256 makingAmount, uint256 takingAmount, uint256 offsets, bytes interactions) order_, bytes signature, bytes interaction, uint256 makingAmount, uint256 takingAmount, uint256 skipPermitAndThresholdAmount, address target)" : { - "$id": "fillOrderTo", - "intent": "Swap", - "fields": [ - { - "path": "order_.takingAmount", - "$ref": "$.display.definitions.sendAmount", - "params": { "tokenPath": "order_.takerAsset" } - }, - { - "path": "order_.makingAmount", - "$ref": "$.display.definitions.minReceiveAmount", - "params": { "tokenPath": "order_.makerAsset" } - }, - { - "path": "target", - "$ref": "$.display.definitions.beneficiary" - } - ], - "required": ["order_.takingAmount", "order_.makingAmount", "target"], - "excluded": ["order_.salt", "order_.maker", "order_.receiver", "order_.allowedSender", "order_.offsets", "order_.interactions", "signature", "interaction", "makingAmount", "takingAmount", "skipPermitAndThresholdAmount"] - }, - "fillOrderToWithPermit((uint256 salt, address makerAsset, address takerAsset, address maker, address receiver, address allowedSender, uint256 makingAmount, uint256 takingAmount, uint256 offsets, bytes interactions) order, bytes signature, bytes interaction, uint256 makingAmount, uint256 takingAmount, uint256 skipPermitAndThresholdAmount, address target, bytes permit)" : { - "$id": "fillOrderToWithPermit", - "intent": "Swap", - "fields": [ - { - "path": "order.takingAmount", - "$ref": "$.display.definitions.sendAmount", - "params": { "tokenPath": "order.takerAsset" } - }, - { - "path": "order.makingAmount", - "$ref": "$.display.definitions.minReceiveAmount", - "params": { "tokenPath": "order.makerAsset" } - }, - { - "path": "target", - "$ref": "$.display.definitions.beneficiary" - } - ], - "required": ["order.takingAmount", "order.makingAmount", "target"], - "excluded": ["order.salt", "order.maker", "order.receiver", "order.allowedSender", "order.offsets", "order.interactions", "signature", "interaction", "makingAmount", "takingAmount", "skipPermitAndThresholdAmount", "permit"] - }, - "fillOrderRFQ((uint256 info, address makerAsset, address takerAsset, address maker, address allowedSender, uint256 makingAmount, uint256 takingAmount) order, bytes signature, uint256 flagsAndAmount)" : { - "$id": "fillOrderRFQ", - "intent": "Swap", - "fields": [ - { - "path": "order.takingAmount", - "$ref": "$.display.definitions.sendAmount", - "params": { "tokenPath": "order.takerAsset" } - }, - { - "path": "order.makingAmount", - "$ref": "$.display.definitions.minReceiveAmount", - "params": { "tokenPath": "order.makerAsset" } - }, - { - "path": "@.from", - "$ref": "$.display.definitions.beneficiary" - } - ], - "required": ["order.takingAmount", "order.makingAmount", "@.from"], - "excluded": ["order.info", "order.maker", "order.allowedSender", "signature", "flagsAndAmount"] - }, - "fillOrderRFQCompact((uint256 info, address makerAsset, address takerAsset, address maker, address allowedSender, uint256 makingAmount, uint256 takingAmount) order, bytes32 r, bytes32 vs, uint256 flagsAndAmount)" : { - "$id": "fillOrderRFQCompact", - "intent": "Swap", - "fields": [ - { - "path": "order.takingAmount", - "$ref": "$.display.definitions.sendAmount", - "params": { "tokenPath": "order.takerAsset" } - }, - { - "path": "order.makingAmount", - "$ref": "$.display.definitions.minReceiveAmount", - "params": { "tokenPath": "order.makerAsset" } - }, - { - "path": "@.from", - "$ref": "$.display.definitions.beneficiary" - } - ], - "required": ["order.takingAmount", "order.makingAmount", "@.from"], - "excluded": ["order.info", "order.maker", "order.allowedSender", "r", "vs", "flagsAndAmount"] - }, - "fillOrderRFQTo((uint256 info, address makerAsset, address takerAsset, address maker, address allowedSender, uint256 makingAmount, uint256 takingAmount) order, bytes signature, uint256 flagsAndAmount, address target)" : { - "$id": "fillOrderRFQTo", - "intent": "Swap", - "fields": [ - { - "path": "order.takingAmount", - "$ref": "$.display.definitions.sendAmount", - "params": { "tokenPath": "order.takerAsset" } - }, - { - "path": "order.makingAmount", - "$ref": "$.display.definitions.minReceiveAmount", - "params": { "tokenPath": "order.makerAsset" } - }, - { - "path": "target", - "$ref": "$.display.definitions.beneficiary" - } - ], - "required": ["order.takingAmount", "order.makingAmount", "target"], - "excluded": ["order.info", "order.maker", "order.allowedSender", "signature", "flagsAndAmount"] - }, - "fillOrderRFQToWithPermit((uint256 info, address makerAsset, address takerAsset, address maker, address allowedSender, uint256 makingAmount, uint256 takingAmount) order, bytes signature, uint256 flagsAndAmount, address target, bytes permit)" : { - "$id": "fillOrderRFQToWithPermit", - "intent": "Swap", - "fields": [ - { - "path": "order.takingAmount", - "$ref": "$.display.definitions.sendAmount", - "params": { "tokenPath": "order.takerAsset" } - }, - { - "path": "order.makingAmount", - "$ref": "$.display.definitions.minReceiveAmount", - "params": { "tokenPath": "order.makerAsset" } - }, - { - "path": "target", - "$ref": "$.display.definitions.beneficiary" - } - ], - "required": ["order.takingAmount", "order.makingAmount", "target"], - "excluded": ["order.info", "order.maker", "order.allowedSender", "signature", "flagsAndAmount", "permit"] - }, - "clipperSwap(address clipperExchange, address srcToken, address dstToken, uint256 inputAmount, uint256 outputAmount, uint256 goodUntil, bytes32 r, bytes32 vs)" : { - "$id": "clipperSwap", - "intent": "Swap", - "fields": [ - { - "path": "inputAmount", - "$ref": "$.display.definitions.sendAmount", - "params": { "tokenPath": "srcToken" } - }, - { - "path": "outputAmount", - "$ref": "$.display.definitions.minReceiveAmount", - "params": { "tokenPath": "dstToken" } - }, - { - "path": "@.from", - "$ref": "$.display.definitions.beneficiary" - }, - { - "path": "goodUntil", - "$ref": "$.display.definitions.expirationTime" - } - ], - "required": ["inputAmount", "outputAmount", "@.from", "goodUntil"], - "excluded": ["clipperExchange", "r", "vs"] - }, - "clipperSwapTo(address clipperExchange, address recipient, address srcToken, address dstToken, uint256 inputAmount, uint256 outputAmount, uint256 goodUntil, bytes32 r, bytes32 vs)" : { - "$id": "clipperSwapTo", - "intent": "Swap", - "fields": [ - { - "path": "inputAmount", - "$ref": "$.display.definitions.sendAmount", - "params": { "tokenPath": "srcToken" } - }, - { - "path": "outputAmount", - "$ref": "$.display.definitions.minReceiveAmount", - "params": { "tokenPath": "dstToken" } - }, - { - "path": "recipient", - "$ref": "$.display.definitions.beneficiary" - }, - { - "path": "goodUntil", - "$ref": "$.display.definitions.expirationTime" - } - ], - "required": ["inputAmount", "outputAmount", "recipient", "goodUntil"], - "excluded": ["clipperExchange", "r", "vs"] - }, - "clipperSwapToWithPermit(address clipperExchange, address recipient, address srcToken, address dstToken, uint256 inputAmount, uint256 outputAmount, uint256 goodUntil, bytes32 r, bytes32 vs, bytes permit)" : { - "$id": "clipperSwapToWithPermit", - "intent": "Swap", - "fields": [ - { - "path": "inputAmount", - "$ref": "$.display.definitions.sendAmount", - "params": { "tokenPath": "srcToken" } - }, - { - "path": "outputAmount", - "$ref": "$.display.definitions.minReceiveAmount", - "params": { "tokenPath": "dstToken" } - }, - { - "path": "recipient", - "$ref": "$.display.definitions.beneficiary" - }, - { - "path": "goodUntil", - "$ref": "$.display.definitions.expirationTime" - } - ], - "required": ["inputAmount", "outputAmount", "recipient", "goodUntil"], - "excluded": ["clipperExchange", "r", "vs", "permit"] - } - } + "formats": { + "swap(address executor, (address srcToken, address dstToken, address srcReceiver, address dstReceiver, uint256 amount, uint256 minReturnAmount, uint256 flags) desc, bytes permit, bytes data)": { + "$id": "swap", + "intent": "Swap", + "fields": [ + { "path": "desc.amount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "desc.srcToken" } }, + { + "path": "desc.minReturnAmount", + "$ref": "$.display.definitions.minReceiveAmount", + "params": { "tokenPath": "desc.dstToken" } + }, + { "path": "desc.dstReceiver", "$ref": "$.display.definitions.beneficiary" } + ], + "required": ["desc.amount", "desc.minReturnAmount", "desc.dstReceiver"], + "excluded": ["executor", "desc.srcReceiver", "desc.flags", "permit", "data"] + }, + "unoswap(address srcToken, uint256 amount, uint256 minReturn, uint256[] pools)": { + "$id": "unoswap", + "intent": "Swap", + "fields": [ + { "path": "amount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "srcToken" } }, + { "path": "minReturn", "$ref": "$.display.definitions.minReceiveAmount" }, + { "path": "@.from", "$ref": "$.display.definitions.beneficiary" } + ], + "required": ["amount", "minReturn", "@.from"], + "excluded": ["pools"] + }, + "unoswapTo(address recipient, address srcToken, uint256 amount, uint256 minReturn, uint256[] pools)": { + "$id": "unoswapTo", + "intent": "Swap", + "fields": [ + { "path": "amount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "srcToken" } }, + { "path": "minReturn", "$ref": "$.display.definitions.minReceiveAmount" }, + { "path": "recipient", "$ref": "$.display.definitions.beneficiary" } + ], + "required": ["amount", "minReturn", "recipient"], + "excluded": ["pools"] + }, + "unoswapToWithPermit(address recipient, address srcToken, uint256 amount, uint256 minReturn, uint256[] pools, bytes permit)": { + "$id": "unoswapToWithPermit", + "intent": "Swap", + "fields": [ + { "path": "amount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "srcToken" } }, + { "path": "minReturn", "$ref": "$.display.definitions.minReceiveAmount" }, + { "path": "recipient", "$ref": "$.display.definitions.beneficiary" } + ], + "required": ["amount", "minReturn", "recipient"], + "excluded": ["pools", "permit"] + }, + "uniswapV3Swap(uint256 amount, uint256 minReturn, uint256[] pools)": { + "$id": "uniswapV3Swap", + "intent": "Swap", + "fields": [ + { "path": "amount", "$ref": "$.display.definitions.sendAmount" }, + { "path": "minReturn", "$ref": "$.display.definitions.minReceiveAmount" }, + { "path": "@.from", "$ref": "$.display.definitions.beneficiary" } + ], + "required": ["amount", "minReturn", "@.from"], + "excluded": ["pools"] + }, + "uniswapV3SwapTo(address recipient, uint256 amount, uint256 minReturn, uint256[] pools)": { + "$id": "uniswapV3SwapTo", + "intent": "Swap", + "fields": [ + { "path": "amount", "$ref": "$.display.definitions.sendAmount" }, + { "path": "minReturn", "$ref": "$.display.definitions.minReceiveAmount" }, + { "path": "recipient", "$ref": "$.display.definitions.beneficiary" } + ], + "required": ["amount", "minReturn", "recipient"], + "excluded": ["pools"] + }, + "uniswapV3SwapToWithPermit(address recipient, address srcToken, uint256 amount, uint256 minReturn, uint256[] pools, bytes permit)": { + "$id": "uniswapV3SwapToWithPermit", + "intent": "Swap", + "fields": [ + { "path": "amount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "srcToken" } }, + { "path": "minReturn", "$ref": "$.display.definitions.minReceiveAmount" }, + { "path": "recipient", "$ref": "$.display.definitions.beneficiary" } + ], + "required": ["amount", "minReturn", "recipient"], + "excluded": ["pools", "permit"] + }, + "fillOrder((uint256 salt, address makerAsset, address takerAsset, address maker, address receiver, address allowedSender, uint256 makingAmount, uint256 takingAmount, uint256 offsets, bytes interactions) order, bytes signature, bytes interaction, uint256 makingAmount, uint256 takingAmount, uint256 skipPermitAndThresholdAmount)": { + "$id": "fillOrder", + "intent": "Swap", + "fields": [ + { "path": "order.takingAmount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "order.takerAsset" } }, + { + "path": "order.makingAmount", + "$ref": "$.display.definitions.minReceiveAmount", + "params": { "tokenPath": "order.makerAsset" } + }, + { "path": "@.from", "$ref": "$.display.definitions.beneficiary" } + ], + "required": ["order.takingAmount", "order.makingAmount", "@.from"], + "excluded": [ + "order.salt", + "order.maker", + "order.receiver", + "order.allowedSender", + "order.offsets", + "order.interactions", + "signature", + "interaction", + "makingAmount", + "takingAmount", + "skipPermitAndThresholdAmount" + ] + }, + "fillOrderTo((uint256 salt, address makerAsset, address takerAsset, address maker, address receiver, address allowedSender, uint256 makingAmount, uint256 takingAmount, uint256 offsets, bytes interactions) order_, bytes signature, bytes interaction, uint256 makingAmount, uint256 takingAmount, uint256 skipPermitAndThresholdAmount, address target)": { + "$id": "fillOrderTo", + "intent": "Swap", + "fields": [ + { "path": "order_.takingAmount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "order_.takerAsset" } }, + { + "path": "order_.makingAmount", + "$ref": "$.display.definitions.minReceiveAmount", + "params": { "tokenPath": "order_.makerAsset" } + }, + { "path": "target", "$ref": "$.display.definitions.beneficiary" } + ], + "required": ["order_.takingAmount", "order_.makingAmount", "target"], + "excluded": [ + "order_.salt", + "order_.maker", + "order_.receiver", + "order_.allowedSender", + "order_.offsets", + "order_.interactions", + "signature", + "interaction", + "makingAmount", + "takingAmount", + "skipPermitAndThresholdAmount" + ] + }, + "fillOrderToWithPermit((uint256 salt, address makerAsset, address takerAsset, address maker, address receiver, address allowedSender, uint256 makingAmount, uint256 takingAmount, uint256 offsets, bytes interactions) order, bytes signature, bytes interaction, uint256 makingAmount, uint256 takingAmount, uint256 skipPermitAndThresholdAmount, address target, bytes permit)": { + "$id": "fillOrderToWithPermit", + "intent": "Swap", + "fields": [ + { "path": "order.takingAmount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "order.takerAsset" } }, + { + "path": "order.makingAmount", + "$ref": "$.display.definitions.minReceiveAmount", + "params": { "tokenPath": "order.makerAsset" } + }, + { "path": "target", "$ref": "$.display.definitions.beneficiary" } + ], + "required": ["order.takingAmount", "order.makingAmount", "target"], + "excluded": [ + "order.salt", + "order.maker", + "order.receiver", + "order.allowedSender", + "order.offsets", + "order.interactions", + "signature", + "interaction", + "makingAmount", + "takingAmount", + "skipPermitAndThresholdAmount", + "permit" + ] + }, + "fillOrderRFQ((uint256 info, address makerAsset, address takerAsset, address maker, address allowedSender, uint256 makingAmount, uint256 takingAmount) order, bytes signature, uint256 flagsAndAmount)": { + "$id": "fillOrderRFQ", + "intent": "Swap", + "fields": [ + { "path": "order.takingAmount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "order.takerAsset" } }, + { + "path": "order.makingAmount", + "$ref": "$.display.definitions.minReceiveAmount", + "params": { "tokenPath": "order.makerAsset" } + }, + { "path": "@.from", "$ref": "$.display.definitions.beneficiary" } + ], + "required": ["order.takingAmount", "order.makingAmount", "@.from"], + "excluded": ["order.info", "order.maker", "order.allowedSender", "signature", "flagsAndAmount"] + }, + "fillOrderRFQCompact((uint256 info, address makerAsset, address takerAsset, address maker, address allowedSender, uint256 makingAmount, uint256 takingAmount) order, bytes32 r, bytes32 vs, uint256 flagsAndAmount)": { + "$id": "fillOrderRFQCompact", + "intent": "Swap", + "fields": [ + { "path": "order.takingAmount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "order.takerAsset" } }, + { + "path": "order.makingAmount", + "$ref": "$.display.definitions.minReceiveAmount", + "params": { "tokenPath": "order.makerAsset" } + }, + { "path": "@.from", "$ref": "$.display.definitions.beneficiary" } + ], + "required": ["order.takingAmount", "order.makingAmount", "@.from"], + "excluded": ["order.info", "order.maker", "order.allowedSender", "r", "vs", "flagsAndAmount"] + }, + "fillOrderRFQTo((uint256 info, address makerAsset, address takerAsset, address maker, address allowedSender, uint256 makingAmount, uint256 takingAmount) order, bytes signature, uint256 flagsAndAmount, address target)": { + "$id": "fillOrderRFQTo", + "intent": "Swap", + "fields": [ + { "path": "order.takingAmount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "order.takerAsset" } }, + { + "path": "order.makingAmount", + "$ref": "$.display.definitions.minReceiveAmount", + "params": { "tokenPath": "order.makerAsset" } + }, + { "path": "target", "$ref": "$.display.definitions.beneficiary" } + ], + "required": ["order.takingAmount", "order.makingAmount", "target"], + "excluded": ["order.info", "order.maker", "order.allowedSender", "signature", "flagsAndAmount"] + }, + "fillOrderRFQToWithPermit((uint256 info, address makerAsset, address takerAsset, address maker, address allowedSender, uint256 makingAmount, uint256 takingAmount) order, bytes signature, uint256 flagsAndAmount, address target, bytes permit)": { + "$id": "fillOrderRFQToWithPermit", + "intent": "Swap", + "fields": [ + { "path": "order.takingAmount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "order.takerAsset" } }, + { + "path": "order.makingAmount", + "$ref": "$.display.definitions.minReceiveAmount", + "params": { "tokenPath": "order.makerAsset" } + }, + { "path": "target", "$ref": "$.display.definitions.beneficiary" } + ], + "required": ["order.takingAmount", "order.makingAmount", "target"], + "excluded": ["order.info", "order.maker", "order.allowedSender", "signature", "flagsAndAmount", "permit"] + }, + "clipperSwap(address clipperExchange, address srcToken, address dstToken, uint256 inputAmount, uint256 outputAmount, uint256 goodUntil, bytes32 r, bytes32 vs)": { + "$id": "clipperSwap", + "intent": "Swap", + "fields": [ + { "path": "inputAmount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "srcToken" } }, + { "path": "outputAmount", "$ref": "$.display.definitions.minReceiveAmount", "params": { "tokenPath": "dstToken" } }, + { "path": "@.from", "$ref": "$.display.definitions.beneficiary" }, + { "path": "goodUntil", "$ref": "$.display.definitions.expirationTime" } + ], + "required": ["inputAmount", "outputAmount", "@.from", "goodUntil"], + "excluded": ["clipperExchange", "r", "vs"] + }, + "clipperSwapTo(address clipperExchange, address recipient, address srcToken, address dstToken, uint256 inputAmount, uint256 outputAmount, uint256 goodUntil, bytes32 r, bytes32 vs)": { + "$id": "clipperSwapTo", + "intent": "Swap", + "fields": [ + { "path": "inputAmount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "srcToken" } }, + { "path": "outputAmount", "$ref": "$.display.definitions.minReceiveAmount", "params": { "tokenPath": "dstToken" } }, + { "path": "recipient", "$ref": "$.display.definitions.beneficiary" }, + { "path": "goodUntil", "$ref": "$.display.definitions.expirationTime" } + ], + "required": ["inputAmount", "outputAmount", "recipient", "goodUntil"], + "excluded": ["clipperExchange", "r", "vs"] + }, + "clipperSwapToWithPermit(address clipperExchange, address recipient, address srcToken, address dstToken, uint256 inputAmount, uint256 outputAmount, uint256 goodUntil, bytes32 r, bytes32 vs, bytes permit)": { + "$id": "clipperSwapToWithPermit", + "intent": "Swap", + "fields": [ + { "path": "inputAmount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "srcToken" } }, + { "path": "outputAmount", "$ref": "$.display.definitions.minReceiveAmount", "params": { "tokenPath": "dstToken" } }, + { "path": "recipient", "$ref": "$.display.definitions.beneficiary" }, + { "path": "goodUntil", "$ref": "$.display.definitions.expirationTime" } + ], + "required": ["inputAmount", "outputAmount", "recipient", "goodUntil"], + "excluded": ["clipperExchange", "r", "vs", "permit"] + } } + } } diff --git a/registry/1inch/eip712-1inch-aggregation-router.json b/registry/1inch/eip712-1inch-aggregation-router.json index c1d958c4..ac8e6ec2 100644 --- a/registry/1inch/eip712-1inch-aggregation-router.json +++ b/registry/1inch/eip712-1inch-aggregation-router.json @@ -3,130 +3,50 @@ "context": { "eip712": { "deployments": [ - { - "chainId": 1, - "address": "0x111111125421ca6dc452d289314280a0f8842a65" - }, - { - "chainId": 10, - "address": "0x111111125421ca6dc452d289314280a0f8842a65" - }, - { - "chainId": 56, - "address": "0x111111125421ca6dc452d289314280a0f8842a65" - }, - { - "chainId": 137, - "address": "0x111111125421ca6dc452d289314280a0f8842a65" - }, - { - "chainId": 42161, - "address": "0x111111125421ca6dc452d289314280a0f8842a65" - } + { "chainId": 1, "address": "0x111111125421ca6dc452d289314280a0f8842a65" }, + { "chainId": 10, "address": "0x111111125421ca6dc452d289314280a0f8842a65" }, + { "chainId": 56, "address": "0x111111125421ca6dc452d289314280a0f8842a65" }, + { "chainId": 137, "address": "0x111111125421ca6dc452d289314280a0f8842a65" }, + { "chainId": 42161, "address": "0x111111125421ca6dc452d289314280a0f8842a65" } ], - "domain": { - "name": "Permit2" - }, + "domain": { "name": "Permit2" }, "schemas": [ { "primaryType": "Order", "types": { "EIP712Domain": [ - { - "name": "name", - "type": "string" - }, - { - "name": "version", - "type": "string" - }, - { - "name": "chainId", - "type": "uint256" - }, - { - "name": "verifyingContract", - "type": "address" - } + { "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" - } + { "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" - }, + "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" - } + { "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" - ] + "excluded": ["salt", "makerTraits"] } } } diff --git a/registry/1inch/eip712-1inch-limit-order.json b/registry/1inch/eip712-1inch-limit-order.json index 1dce4c7e..6a62311a 100644 --- a/registry/1inch/eip712-1inch-limit-order.json +++ b/registry/1inch/eip712-1inch-limit-order.json @@ -3,85 +3,32 @@ "context": { "eip712": { "deployments": [ - { - "chainId": 1, - "address": "0x119c71d3bbac22029622cbaec24854d3d32d2828" - }, - { - "chainId": 10, - "address": "0x11431a89893025d2a48dca4eddc396f8c8117187" - }, - { - "chainId": 56, - "address": "0x1e38eff998df9d3669e32f4ff400031385bf6362" - }, - { - "chainId": 137, - "address": "0x94bc2a1c732bcad7343b25af48385fe76e08734f" - }, - { - "chainId": 42161, - "address": "0x7f069df72b7a39bce9806e3afaf579e54d8cf2b9" - } + { "chainId": 1, "address": "0x119c71d3bbac22029622cbaec24854d3d32d2828" }, + { "chainId": 10, "address": "0x11431a89893025d2a48dca4eddc396f8c8117187" }, + { "chainId": 56, "address": "0x1e38eff998df9d3669e32f4ff400031385bf6362" }, + { "chainId": 137, "address": "0x94bc2a1c732bcad7343b25af48385fe76e08734f" }, + { "chainId": 42161, "address": "0x7f069df72b7a39bce9806e3afaf579e54d8cf2b9" } ], - "domain": { - "name": "Permit2" - }, + "domain": { "name": "Permit2" }, "schemas": [ { "primaryType": "OrderStructure", "types": { "EIP712Domain": [ - { - "name": "name", - "type": "string" - }, - { - "name": "version", - "type": "string" - }, - { - "name": "chainId", - "type": "uint256" - }, - { - "name": "verifyingContract", - "type": "address" - } + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } ], "OrderStructure": [ - { - "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" - } + { "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" } ] } }, @@ -89,112 +36,40 @@ "primaryType": "OrderStructure", "types": { "EIP712Domain": [ - { - "name": "name", - "type": "string" - }, - { - "name": "version", - "type": "string" - }, - { - "name": "chainId", - "type": "uint256" - }, - { - "name": "verifyingContract", - "type": "address" - } + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } ], "OrderStructure": [ - { - "name": "salt", - "type": "uint256" - }, - { - "name": "makerAsset", - "type": "address" - }, - { - "name": "takerAsset", - "type": "address" - }, - { - "name": "maker", - "type": "address" - }, - { - "name": "receiver", - "type": "address" - }, - { - "name": "allowedSender", - "type": "address" - }, - { - "name": "makingAmount", - "type": "uint256" - }, - { - "name": "takingAmount", - "type": "uint256" - }, - { - "name": "offsets", - "type": "uint256" - }, - { - "name": "interactions", - "type": "bytes" - } + { "name": "salt", "type": "uint256" }, + { "name": "makerAsset", "type": "address" }, + { "name": "takerAsset", "type": "address" }, + { "name": "maker", "type": "address" }, + { "name": "receiver", "type": "address" }, + { "name": "allowedSender", "type": "address" }, + { "name": "makingAmount", "type": "uint256" }, + { "name": "takingAmount", "type": "uint256" }, + { "name": "offsets", "type": "uint256" }, + { "name": "interactions", "type": "bytes" } ] } } ] } }, - "metadata": { - "owner": "1inch Limit Order Protocol" - }, + "metadata": { "owner": "1inch Limit Order Protocol" }, "display": { "formats": { "OrderStructure": { "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" - } + { "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", - "interactions", - "allowedSender", - "offsets" - ] + "excluded": ["salt", "makerTraits", "interactions", "allowedSender", "offsets"] } } } diff --git a/registry/aave/calldata-lpv2.json b/registry/aave/calldata-lpv2.json index 9205102f..d9649b0a 100644 --- a/registry/aave/calldata-lpv2.json +++ b/registry/aave/calldata-lpv2.json @@ -1,225 +1,127 @@ { - "$schema": "../../specs/erc7730-v1.schema.json", - "context": { - "$id": "Lending Pool v2", - "contract" : { - "abi": "https://github.com/LedgerHQ/ledger-asset-dapps/blob/211e75ed27de3894f592ca73710fa0b72c3ceeae/ethereum/aave/abis/0x7d2768de32b0b80b7a3454c06bdac94a69ddc7a9.abi.json", - "deployments": [ - { - "chainId": 1, - "address": "0x7d2768dE32b0b80b7a3454c06BdAc94A69DDc7A9" - } - ] - } - }, - - "metadata": { - "owner": "Aave", - "info": { - "url": "https://aave.com", - "legalName": "Aave DAO", - "lastUpdate": "2020-11-30T09:25:48Z" - }, - "enums": { - "interestRateMode" : { - "1": "stable", - "2": "variable" - } - }, - "constants": { - "max": "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff" - } - }, - - "display": { - "formats": { - "repay(address,uint256,uint256,address)" : { - "$id": "repay", - "intent": "Repay loan", - "fields": [ - { - "path": "amount", - "format": "tokenAmount", - "label": "Amount to repay", - "params": { - "tokenPath": "asset", - "threshold": "$.metadata.constants.max", - "message": "All" - } - }, - { - "path": "rateMode", - "format": "enum", - "label": "Interest rate mode", - "params": { - "$ref": "$.metadata.enums.interestRateMode" - } - }, - { - "path": "onBehalfOf", - "format": "addressName", - "label": "For debt holder", - "params": { - "types": [ - "eoa" - ], - "sources": [ - "local", - "ens" - ] - } - } - ], - "required": ["amount", "rateMode", "onBehalfOf"] - }, - "setUserUseReserveAsCollateral(address,bool)": { - "intent": "Manage collateral", - "fields": [ - { - "path": "asset", - "format": "addressName", - "label": "For asset", - "params": { - "types": [ - "token" - ], - "sources": [ - "local", - "ens" - ] - } - }, - { - "path": "useAsCollateral", - "format": "raw", - "label": "Enable use as collateral" - } - ], - "required": ["asset", "useAsCollateral"] - }, - "withdraw(address,uint256,address)": { - "intent": "Withdraw", - "fields": [ - { - "path": "amount", - "format": "tokenAmount", - "label": "Amount to withdraw", - "params": { - "tokenPath": "asset", - "threshold": "$.metadata.constants.max", - "message": "Max" - } - }, - { - "path": "to", - "format": "addressName", - "label": "To recipient", - "params": { - "types": [ - "eoa" - ], - "sources": [ - "local", - "ens" - ] - } - } - ], - "required": ["amount", "to"] - }, - "swapBorrowRateMode(address,uint256)": { - "intent": "Swap interest rate mode", - "fields": [ - { - "path": "asset", - "format": "addressName", - "label": "For asset", - "params": { - "types": [ - "token" - ], - "sources": [ - "local", - "ens" - ] - } - }, - { - "path": "rateMode", - "format": "enum", - "label": "Set interest rate mode to", - "params": { - "$ref": "$.metadata.enums.interestRateMode" - } - } - ], - "required": ["asset", "rateMode"] - }, - "borrow(address,uint256,uint256,uint16,address)" : { - "intent": "Borrow", - "fields": [ - { - "path": "amount", - "format": "tokenAmount", - "label": "Amount to borrow", - "params": { - "tokenPath": "asset" - } - }, - { - "path": "interestRateMode", - "format": "enum", - "label": "Interest Rate mode", - "params": { - "$ref": "$.metadata.enums.interestRateMode" - } - }, - { - "path": "onBehalfOf", - "format": "addressName", - "label": "Debtor", - "params": { - "types": [ - "eoa" - ], - "sources": [ - "local", - "ens" - ] - } - } - ], - "required": ["amount", "onBehalfOf", "interestRateMode"] - }, - "deposit(address,uint256,address,uint16)" : { - "$id": "deposit", - "intent": "Supply", - "fields": [ - { - "path": "amount", - "format": "tokenAmount", - "label": "Amount to supply", - "params": { - "tokenPath": "asset" - } - }, - { - "path": "onBehalfOf", - "format": "addressName", - "label": "Collateral recipient", - "params": { - "types": [ - "eoa" - ], - "sources": [ - "local", - "ens" - ] - } - } - ], - "required": ["amount", "onBehalfOf"] - } - } + "$schema": "../../specs/erc7730-v1.schema.json", + "context": { + "$id": "Lending Pool v2", + "contract": { + "abi": "https://github.com/LedgerHQ/ledger-asset-dapps/blob/211e75ed27de3894f592ca73710fa0b72c3ceeae/ethereum/aave/abis/0x7d2768de32b0b80b7a3454c06bdac94a69ddc7a9.abi.json", + "deployments": [{ "chainId": 1, "address": "0x7d2768dE32b0b80b7a3454c06BdAc94A69DDc7A9" }] } -} \ No newline at end of file + }, + "metadata": { + "owner": "Aave", + "info": { "url": "https://aave.com", "legalName": "Aave DAO", "lastUpdate": "2020-11-30T09:25:48Z" }, + "enums": { "interestRateMode": { "1": "stable", "2": "variable" } }, + "constants": { "max": "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff" } + }, + "display": { + "formats": { + "repay(address,uint256,uint256,address)": { + "$id": "repay", + "intent": "Repay loan", + "fields": [ + { + "path": "amount", + "format": "tokenAmount", + "label": "Amount to repay", + "params": { "tokenPath": "asset", "threshold": "$.metadata.constants.max", "message": "All" } + }, + { + "path": "rateMode", + "format": "enum", + "label": "Interest rate mode", + "params": { "$ref": "$.metadata.enums.interestRateMode" } + }, + { + "path": "onBehalfOf", + "format": "addressName", + "label": "For debt holder", + "params": { "types": ["eoa"], "sources": ["local", "ens"] } + } + ], + "required": ["amount", "rateMode", "onBehalfOf"] + }, + "setUserUseReserveAsCollateral(address,bool)": { + "intent": "Manage collateral", + "fields": [ + { + "path": "asset", + "format": "addressName", + "label": "For asset", + "params": { "types": ["token"], "sources": ["local", "ens"] } + }, + { "path": "useAsCollateral", "format": "raw", "label": "Enable use as collateral" } + ], + "required": ["asset", "useAsCollateral"] + }, + "withdraw(address,uint256,address)": { + "intent": "Withdraw", + "fields": [ + { + "path": "amount", + "format": "tokenAmount", + "label": "Amount to withdraw", + "params": { "tokenPath": "asset", "threshold": "$.metadata.constants.max", "message": "Max" } + }, + { + "path": "to", + "format": "addressName", + "label": "To recipient", + "params": { "types": ["eoa"], "sources": ["local", "ens"] } + } + ], + "required": ["amount", "to"] + }, + "swapBorrowRateMode(address,uint256)": { + "intent": "Swap interest rate mode", + "fields": [ + { + "path": "asset", + "format": "addressName", + "label": "For asset", + "params": { "types": ["token"], "sources": ["local", "ens"] } + }, + { + "path": "rateMode", + "format": "enum", + "label": "Set interest rate mode to", + "params": { "$ref": "$.metadata.enums.interestRateMode" } + } + ], + "required": ["asset", "rateMode"] + }, + "borrow(address,uint256,uint256,uint16,address)": { + "intent": "Borrow", + "fields": [ + { "path": "amount", "format": "tokenAmount", "label": "Amount to borrow", "params": { "tokenPath": "asset" } }, + { + "path": "interestRateMode", + "format": "enum", + "label": "Interest Rate mode", + "params": { "$ref": "$.metadata.enums.interestRateMode" } + }, + { + "path": "onBehalfOf", + "format": "addressName", + "label": "Debtor", + "params": { "types": ["eoa"], "sources": ["local", "ens"] } + } + ], + "required": ["amount", "onBehalfOf", "interestRateMode"] + }, + "deposit(address,uint256,address,uint16)": { + "$id": "deposit", + "intent": "Supply", + "fields": [ + { "path": "amount", "format": "tokenAmount", "label": "Amount to supply", "params": { "tokenPath": "asset" } }, + { + "path": "onBehalfOf", + "format": "addressName", + "label": "Collateral recipient", + "params": { "types": ["eoa"], "sources": ["local", "ens"] } + } + ], + "required": ["amount", "onBehalfOf"] + } + } + } +} diff --git a/registry/degate/eip712-degate.json b/registry/degate/eip712-degate.json index 2f38bfbc..6a0317c9 100644 --- a/registry/degate/eip712-degate.json +++ b/registry/degate/eip712-degate.json @@ -2,68 +2,26 @@ "$schema": "../../specs/erc7730-v1.schema.json", "context": { "eip712": { - "deployments": [ - { - "chainId": 1, - "address": "0xe63602a9b3dfe983187525ac985fec4f57b24ed5" - } - ], - "domain": { - "name": "DeGate", - "chainId": 1, - "verifyingContract": "0xe63602a9b3dfe983187525ac985fec4f57b24ed5" - }, + "deployments": [{ "chainId": 1, "address": "0xe63602a9b3dfe983187525ac985fec4f57b24ed5" }], + "domain": { "name": "DeGate", "chainId": 1, "verifyingContract": "0xe63602a9b3dfe983187525ac985fec4f57b24ed5" }, "schemas": [ { "primaryType": "AccountUpdate", "types": { "AccountUpdate": [ - { - "name": "owner", - "type": "address" - }, - { - "name": "accountID", - "type": "uint32" - }, - { - "name": "feeTokenID", - "type": "uint32" - }, - { - "name": "maxFee", - "type": "uint96" - }, - { - "name": "publicKey", - "type": "uint256" - }, - { - "name": "validUntil", - "type": "uint32" - }, - { - "name": "nonce", - "type": "uint32" - } + { "name": "owner", "type": "address" }, + { "name": "accountID", "type": "uint32" }, + { "name": "feeTokenID", "type": "uint32" }, + { "name": "maxFee", "type": "uint96" }, + { "name": "publicKey", "type": "uint256" }, + { "name": "validUntil", "type": "uint32" }, + { "name": "nonce", "type": "uint32" } ], "EIP712Domain": [ - { - "name": "name", - "type": "string" - }, - { - "name": "version", - "type": "string" - }, - { - "name": "chainId", - "type": "uint256" - }, - { - "name": "verifyingContract", - "type": "address" - } + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } ] } }, @@ -71,64 +29,22 @@ "primaryType": "Withdrawal", "types": { "EIP712Domain": [ - { - "name": "name", - "type": "string" - }, - { - "name": "version", - "type": "string" - }, - { - "name": "chainId", - "type": "uint256" - }, - { - "name": "verifyingContract", - "type": "address" - } + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } ], "Withdrawal": [ - { - "name": "owner", - "type": "address" - }, - { - "name": "accountID", - "type": "uint32" - }, - { - "name": "tokenID", - "type": "uint32" - }, - { - "name": "amount", - "type": "uint248" - }, - { - "name": "feeTokenID", - "type": "uint32" - }, - { - "name": "maxFee", - "type": "uint96" - }, - { - "name": "to", - "type": "address" - }, - { - "name": "minGas", - "type": "uint248" - }, - { - "name": "validUntil", - "type": "uint32" - }, - { - "name": "storageID", - "type": "uint32" - } + { "name": "owner", "type": "address" }, + { "name": "accountID", "type": "uint32" }, + { "name": "tokenID", "type": "uint32" }, + { "name": "amount", "type": "uint248" }, + { "name": "feeTokenID", "type": "uint32" }, + { "name": "maxFee", "type": "uint96" }, + { "name": "to", "type": "address" }, + { "name": "minGas", "type": "uint248" }, + { "name": "validUntil", "type": "uint32" }, + { "name": "storageID", "type": "uint32" } ] } }, @@ -136,214 +52,69 @@ "primaryType": "Transfer", "types": { "EIP712Domain": [ - { - "name": "name", - "type": "string" - }, - { - "name": "version", - "type": "string" - }, - { - "name": "chainId", - "type": "uint256" - }, - { - "name": "verifyingContract", - "type": "address" - } + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } ], "Transfer": [ - { - "name": "owner", - "type": "address" - }, - { - "name": "accountID", - "type": "uint32" - }, - { - "name": "tokenID", - "type": "uint32" - }, - { - "name": "amount", - "type": "uint248" - }, - { - "name": "feeTokenID", - "type": "uint32" - }, - { - "name": "maxFee", - "type": "uint96" - }, - { - "name": "to", - "type": "address" - }, - { - "name": "validUntil", - "type": "uint32" - }, - { - "name": "storageID", - "type": "uint32" - } + { "name": "owner", "type": "address" }, + { "name": "accountID", "type": "uint32" }, + { "name": "tokenID", "type": "uint32" }, + { "name": "amount", "type": "uint248" }, + { "name": "feeTokenID", "type": "uint32" }, + { "name": "maxFee", "type": "uint96" }, + { "name": "to", "type": "address" }, + { "name": "validUntil", "type": "uint32" }, + { "name": "storageID", "type": "uint32" } ] } } ] } }, - "metadata": { - "owner": "DeGate Exchange Contract" - }, + "metadata": { "owner": "DeGate Exchange Contract" }, "display": { "formats": { "AccountUpdate": { "intent": "DeGate AccountUpdate", "fields": [ - { - "path": "owner", - "label": "Owner", - "format": "raw" - }, - { - "path": "accountID", - "label": "AccountID", - "format": "raw" - }, - { - "path": "feeTokenID", - "label": "FeeTokenID", - "format": "raw" - }, - { - "path": "maxFee", - "label": "MaxFee", - "format": "raw" - }, - { - "path": "publicKey", - "label": "PublicKey", - "format": "raw" - }, - { - "path": "validUntil", - "label": "ValidUntil", - "format": "raw" - }, - { - "path": "nonce", - "label": "Nonce", - "format": "raw" - } + { "path": "owner", "label": "Owner", "format": "raw" }, + { "path": "accountID", "label": "AccountID", "format": "raw" }, + { "path": "feeTokenID", "label": "FeeTokenID", "format": "raw" }, + { "path": "maxFee", "label": "MaxFee", "format": "raw" }, + { "path": "publicKey", "label": "PublicKey", "format": "raw" }, + { "path": "validUntil", "label": "ValidUntil", "format": "raw" }, + { "path": "nonce", "label": "Nonce", "format": "raw" } ] }, "Withdrawal": { "intent": "DeGate Withdrawal", "fields": [ - { - "path": "owner", - "label": "Owner", - "format": "raw" - }, - { - "path": "accountID", - "label": "AccountID", - "format": "raw" - }, - { - "path": "tokenID", - "label": "TokenID", - "format": "raw" - }, - { - "path": "amount", - "label": "Amount", - "format": "raw" - }, - { - "path": "feeTokenID", - "label": "FeeTokenID", - "format": "raw" - }, - { - "path": "maxFee", - "label": "MaxFee", - "format": "raw" - }, - { - "path": "to", - "label": "To", - "format": "raw" - }, - { - "path": "minGas", - "label": "MinGas", - "format": "raw" - }, - { - "path": "validUntil", - "label": "ValidUntil", - "format": "raw" - }, - { - "path": "storageID", - "label": "StorageID", - "format": "raw" - } + { "path": "owner", "label": "Owner", "format": "raw" }, + { "path": "accountID", "label": "AccountID", "format": "raw" }, + { "path": "tokenID", "label": "TokenID", "format": "raw" }, + { "path": "amount", "label": "Amount", "format": "raw" }, + { "path": "feeTokenID", "label": "FeeTokenID", "format": "raw" }, + { "path": "maxFee", "label": "MaxFee", "format": "raw" }, + { "path": "to", "label": "To", "format": "raw" }, + { "path": "minGas", "label": "MinGas", "format": "raw" }, + { "path": "validUntil", "label": "ValidUntil", "format": "raw" }, + { "path": "storageID", "label": "StorageID", "format": "raw" } ] }, "Transfer": { "intent": "DeGate Transfer", "fields": [ - { - "path": "owner", - "label": "Owner", - "format": "raw" - }, - { - "path": "accountID", - "label": "AccountID", - "format": "raw" - }, - { - "path": "tokenID", - "label": "TokenID", - "format": "raw" - }, - { - "path": "amount", - "label": "Amount", - "format": "raw" - }, - { - "path": "feeTokenID", - "label": "FeeTokenID", - "format": "raw" - }, - { - "path": "maxFee", - "label": "MaxFee", - "format": "raw" - }, - { - "path": "to", - "label": "To", - "format": "raw" - }, - { - "path": "validUntil", - "label": "ValidUntil", - "format": "raw" - }, - { - "path": "storageID", - "label": "StorageID", - "format": "raw" - } + { "path": "owner", "label": "Owner", "format": "raw" }, + { "path": "accountID", "label": "AccountID", "format": "raw" }, + { "path": "tokenID", "label": "TokenID", "format": "raw" }, + { "path": "amount", "label": "Amount", "format": "raw" }, + { "path": "feeTokenID", "label": "FeeTokenID", "format": "raw" }, + { "path": "maxFee", "label": "MaxFee", "format": "raw" }, + { "path": "to", "label": "To", "format": "raw" }, + { "path": "validUntil", "label": "ValidUntil", "format": "raw" }, + { "path": "storageID", "label": "StorageID", "format": "raw" } ] } } diff --git a/registry/dispatch/eip712-dispatch.json b/registry/dispatch/eip712-dispatch.json index 72a4da7a..690ebf05 100644 --- a/registry/dispatch/eip712-dispatch.json +++ b/registry/dispatch/eip712-dispatch.json @@ -2,90 +2,39 @@ "$schema": "../../specs/erc7730-v1.schema.json", "context": { "eip712": { - "deployments": [ - { - "chainId": 137, - "address": "0xdb46d1dc155634fbc732f92e853b10b288ad5a1d" - } - ], - "domain": { - "name": "Dispatch", - "chainId": 137, - "verifyingContract": "0xdb46d1dc155634fbc732f92e853b10b288ad5a1d" - }, + "deployments": [{ "chainId": 137, "address": "0xdb46d1dc155634fbc732f92e853b10b288ad5a1d" }], + "domain": { "name": "Dispatch", "chainId": 137, "verifyingContract": "0xdb46d1dc155634fbc732f92e853b10b288ad5a1d" }, "schemas": [ { "primaryType": "FollowWithSig", "types": { "EIP712Domain": [ - { - "name": "chainId", - "type": "uint256" - }, - { - "name": "name", - "type": "string" - }, - { - "name": "verifyingContract", - "type": "address" - }, - { - "name": "version", - "type": "string" - } + { "name": "chainId", "type": "uint256" }, + { "name": "name", "type": "string" }, + { "name": "verifyingContract", "type": "address" }, + { "name": "version", "type": "string" } ], "FollowWithSig": [ - { - "name": "datas", - "type": "bytes[]" - }, - { - "name": "deadline", - "type": "uint256" - }, - { - "name": "nonce", - "type": "uint256" - }, - { - "name": "profileIds", - "type": "uint256[]" - } + { "name": "datas", "type": "bytes[]" }, + { "name": "deadline", "type": "uint256" }, + { "name": "nonce", "type": "uint256" }, + { "name": "profileIds", "type": "uint256[]" } ] } } ] } }, - "metadata": { - "owner": "Dispatch.xyz" - }, + "metadata": { "owner": "Dispatch.xyz" }, "display": { "formats": { "FollowWithSig": { "intent": "Dispatch.xyz Follow Profile", "fields": [ - { - "path": "profileIds.[]", - "label": "Profile Ids", - "format": "raw" - }, - { - "path": "datas.[]", - "label": "Data", - "format": "raw" - }, - { - "path": "nonce", - "label": "Nonce", - "format": "raw" - }, - { - "path": "deadline", - "label": "Expiration Date", - "format": "raw" - } + { "path": "profileIds.[]", "label": "Profile Ids", "format": "raw" }, + { "path": "datas.[]", "label": "Data", "format": "raw" }, + { "path": "nonce", "label": "Nonce", "format": "raw" }, + { "path": "deadline", "label": "Expiration Date", "format": "raw" } ] } } diff --git a/registry/ledgerquest/eip712-ledgerquest.json b/registry/ledgerquest/eip712-ledgerquest.json index 44f5bc89..ddcc69af 100644 --- a/registry/ledgerquest/eip712-ledgerquest.json +++ b/registry/ledgerquest/eip712-ledgerquest.json @@ -2,81 +2,37 @@ "$schema": "../../specs/erc7730-v1.schema.json", "context": { "eip712": { - "deployments": [ - { - "chainId": 137, - "address": "0x33c6eec1723b12c46732f7ab41398de45641fa42" - } - ], - "domain": { - "name": "LedgerQuest", - "chainId": 137, - "verifyingContract": "0x33c6eec1723b12c46732f7ab41398de45641fa42" - }, + "deployments": [{ "chainId": 137, "address": "0x33c6eec1723b12c46732f7ab41398de45641fa42" }], + "domain": { "name": "LedgerQuest", "chainId": 137, "verifyingContract": "0x33c6eec1723b12c46732f7ab41398de45641fa42" }, "schemas": [ { "primaryType": "mint", "types": { "EIP712Domain": [ - { - "name": "name", - "type": "string" - }, - { - "name": "version", - "type": "string" - }, - { - "name": "chainId", - "type": "uint256" - }, - { - "name": "verifyingContract", - "type": "address" - } + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } ], "mint": [ - { - "name": "receiver", - "type": "address" - }, - { - "name": "categoryId", - "type": "uint256" - }, - { - "name": "collectionId", - "type": "uint256" - } + { "name": "receiver", "type": "address" }, + { "name": "categoryId", "type": "uint256" }, + { "name": "collectionId", "type": "uint256" } ] } } ] } }, - "metadata": { - "owner": "LedgerQuest" - }, + "metadata": { "owner": "LedgerQuest" }, "display": { "formats": { "mint": { "intent": "Mint", "fields": [ - { - "path": "receiver", - "label": "Receiver", - "format": "raw" - }, - { - "path": "categoryId", - "label": "Quest Type", - "format": "raw" - }, - { - "path": "collectionId", - "label": "Collection", - "format": "raw" - } + { "path": "receiver", "label": "Receiver", "format": "raw" }, + { "path": "categoryId", "label": "Quest Type", "format": "raw" }, + { "path": "collectionId", "label": "Collection", "format": "raw" } ] } } diff --git a/registry/lens/eip712-lens-lenshub.json b/registry/lens/eip712-lens-lenshub.json index b12adbc3..d2d89193 100644 --- a/registry/lens/eip712-lens-lenshub.json +++ b/registry/lens/eip712-lens-lenshub.json @@ -2,76 +2,28 @@ "$schema": "../../specs/erc7730-v1.schema.json", "context": { "eip712": { - "deployments": [ - { - "chainId": 137, - "address": "0xdb46d1dc155634fbc732f92e853b10b288ad5a1d" - } - ], - "domain": { - "name": "LensHub", - "chainId": 137, - "verifyingContract": "0xdb46d1dc155634fbc732f92e853b10b288ad5a1d" - }, + "deployments": [{ "chainId": 137, "address": "0xdb46d1dc155634fbc732f92e853b10b288ad5a1d" }], + "domain": { "name": "LensHub", "chainId": 137, "verifyingContract": "0xdb46d1dc155634fbc732f92e853b10b288ad5a1d" }, "schemas": [ { "primaryType": "act", "types": { "EIP712Domain": [ - { - "name": "name", - "type": "string" - }, - { - "name": "version", - "type": "string" - }, - { - "name": "chainId", - "type": "uint256" - }, - { - "name": "verifyingContract", - "type": "address" - } + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } ], "act": [ - { - "name": "publicationActedProfileId", - "type": "uint256" - }, - { - "name": "publicationActedId", - "type": "uint256" - }, - { - "name": "actorProfileId", - "type": "uint256" - }, - { - "name": "referrerProfileIds", - "type": "uint256[]" - }, - { - "name": "referrerPubIds", - "type": "uint256[]" - }, - { - "name": "actionModuleAddress", - "type": "address" - }, - { - "name": "actionModuleData", - "type": "bytes" - }, - { - "name": "nonce", - "type": "uint256" - }, - { - "name": "deadline", - "type": "uint256" - } + { "name": "publicationActedProfileId", "type": "uint256" }, + { "name": "publicationActedId", "type": "uint256" }, + { "name": "actorProfileId", "type": "uint256" }, + { "name": "referrerProfileIds", "type": "uint256[]" }, + { "name": "referrerPubIds", "type": "uint256[]" }, + { "name": "actionModuleAddress", "type": "address" }, + { "name": "actionModuleData", "type": "bytes" }, + { "name": "nonce", "type": "uint256" }, + { "name": "deadline", "type": "uint256" } ] } }, @@ -79,81 +31,31 @@ "primaryType": "burn", "types": { "EIP712Domain": [ - { - "name": "name", - "type": "string" - }, - { - "name": "version", - "type": "string" - }, - { - "name": "chainId", - "type": "uint256" - }, - { - "name": "verifyingContract", - "type": "address" - } + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } ], - "burn": [ - { - "name": "tokenId", - "type": "uint256" - } - ] + "burn": [{ "name": "tokenId", "type": "uint256" }] } }, { "primaryType": "ChangeDelegatedExecutorsConfig", "types": { "ChangeDelegatedExecutorsConfig": [ - { - "name": "delegatorProfileId", - "type": "uint256" - }, - { - "name": "delegatedExecutors", - "type": "address[]" - }, - { - "name": "approvals", - "type": "bool[]" - }, - { - "name": "configNumber", - "type": "uint64" - }, - { - "name": "switchToGivenConfig", - "type": "bool" - }, - { - "name": "nonce", - "type": "uint256" - }, - { - "name": "deadline", - "type": "uint256" - } + { "name": "delegatorProfileId", "type": "uint256" }, + { "name": "delegatedExecutors", "type": "address[]" }, + { "name": "approvals", "type": "bool[]" }, + { "name": "configNumber", "type": "uint64" }, + { "name": "switchToGivenConfig", "type": "bool" }, + { "name": "nonce", "type": "uint256" }, + { "name": "deadline", "type": "uint256" } ], "EIP712Domain": [ - { - "name": "name", - "type": "string" - }, - { - "name": "version", - "type": "string" - }, - { - "name": "chainId", - "type": "uint256" - }, - { - "name": "verifyingContract", - "type": "address" - } + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } ] } }, @@ -161,36 +63,15 @@ "primaryType": "collect", "types": { "EIP712Domain": [ - { - "name": "name", - "type": "string" - }, - { - "name": "version", - "type": "string" - }, - { - "name": "chainId", - "type": "uint256" - }, - { - "name": "verifyingContract", - "type": "address" - } + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } ], "collect": [ - { - "name": "publicationCollectedProfileId", - "type": "uint256" - }, - { - "name": "publicationCollectedId", - "type": "uint256" - }, - { - "name": "collectorProfileId", - "type": "uint256" - } + { "name": "publicationCollectedProfileId", "type": "uint256" }, + { "name": "publicationCollectedId", "type": "uint256" }, + { "name": "collectorProfileId", "type": "uint256" } ] } }, @@ -198,40 +79,16 @@ "primaryType": "collect_with_sign", "types": { "EIP712Domain": [ - { - "name": "name", - "type": "string" - }, - { - "name": "version", - "type": "string" - }, - { - "name": "chainId", - "type": "uint256" - }, - { - "name": "verifyingContract", - "type": "address" - } + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } ], "collect_with_sign": [ - { - "name": "publicationCollectedProfileId", - "type": "uint256" - }, - { - "name": "publicationCollectedId", - "type": "uint256" - }, - { - "name": "collectorProfileId", - "type": "uint256" - }, - { - "name": "signatureDeadline", - "type": "uint256" - } + { "name": "publicationCollectedProfileId", "type": "uint256" }, + { "name": "publicationCollectedId", "type": "uint256" }, + { "name": "collectorProfileId", "type": "uint256" }, + { "name": "signatureDeadline", "type": "uint256" } ] } }, @@ -239,76 +96,25 @@ "primaryType": "Comment", "types": { "Comment": [ - { - "name": "profileId", - "type": "uint256" - }, - { - "name": "contentURI", - "type": "string" - }, - { - "name": "pointedProfileId", - "type": "uint256" - }, - { - "name": "pointedPubId", - "type": "uint256" - }, - { - "name": "referrerProfileIds", - "type": "uint256[]" - }, - { - "name": "referrerPubIds", - "type": "uint256[]" - }, - { - "name": "referenceModuleData", - "type": "bytes" - }, - { - "name": "actionModules", - "type": "address[]" - }, - { - "name": "actionModulesInitDatas", - "type": "bytes[]" - }, - { - "name": "referenceModule", - "type": "address" - }, - { - "name": "referenceModuleInitData", - "type": "bytes" - }, - { - "name": "nonce", - "type": "uint256" - }, - { - "name": "deadline", - "type": "uint256" - } + { "name": "profileId", "type": "uint256" }, + { "name": "contentURI", "type": "string" }, + { "name": "pointedProfileId", "type": "uint256" }, + { "name": "pointedPubId", "type": "uint256" }, + { "name": "referrerProfileIds", "type": "uint256[]" }, + { "name": "referrerPubIds", "type": "uint256[]" }, + { "name": "referenceModuleData", "type": "bytes" }, + { "name": "actionModules", "type": "address[]" }, + { "name": "actionModulesInitDatas", "type": "bytes[]" }, + { "name": "referenceModule", "type": "address" }, + { "name": "referenceModuleInitData", "type": "bytes" }, + { "name": "nonce", "type": "uint256" }, + { "name": "deadline", "type": "uint256" } ], "EIP712Domain": [ - { - "name": "name", - "type": "string" - }, - { - "name": "version", - "type": "string" - }, - { - "name": "chainId", - "type": "uint256" - }, - { - "name": "verifyingContract", - "type": "address" - } + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } ] } }, @@ -316,40 +122,16 @@ "primaryType": "comment_with_sign", "types": { "EIP712Domain": [ - { - "name": "name", - "type": "string" - }, - { - "name": "version", - "type": "string" - }, - { - "name": "chainId", - "type": "uint256" - }, - { - "name": "verifyingContract", - "type": "address" - } + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } ], "comment_with_sign": [ - { - "name": "profile_id", - "type": "uint256" - }, - { - "name": "profile_id_pointed", - "type": "uint256" - }, - { - "name": "pubid_pointed", - "type": "uint256" - }, - { - "name": "signatureDeadline", - "type": "uint256" - } + { "name": "profile_id", "type": "uint256" }, + { "name": "profile_id_pointed", "type": "uint256" }, + { "name": "pubid_pointed", "type": "uint256" }, + { "name": "signatureDeadline", "type": "uint256" } ] } }, @@ -357,81 +139,30 @@ "primaryType": "create_profile", "types": { "EIP712Domain": [ - { - "name": "name", - "type": "string" - }, - { - "name": "version", - "type": "string" - }, - { - "name": "chainId", - "type": "uint256" - }, - { - "name": "verifyingContract", - "type": "address" - } + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } ], - "create_profile": [ - { - "name": "to", - "type": "address" - }, - { - "name": "followModule", - "type": "address" - } - ] + "create_profile": [{ "name": "to", "type": "address" }, { "name": "followModule", "type": "address" }] } }, { "primaryType": "Follow", "types": { "EIP712Domain": [ - { - "name": "name", - "type": "string" - }, - { - "name": "version", - "type": "string" - }, - { - "name": "chainId", - "type": "uint256" - }, - { - "name": "verifyingContract", - "type": "address" - } + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } ], "Follow": [ - { - "name": "followerProfileId", - "type": "uint256" - }, - { - "name": "idsOfProfilesToFollow", - "type": "uint256[]" - }, - { - "name": "followTokenIds", - "type": "uint256[]" - }, - { - "name": "datas", - "type": "bytes[]" - }, - { - "name": "nonce", - "type": "uint256" - }, - { - "name": "deadline", - "type": "uint256" - } + { "name": "followerProfileId", "type": "uint256" }, + { "name": "idsOfProfilesToFollow", "type": "uint256[]" }, + { "name": "followTokenIds", "type": "uint256[]" }, + { "name": "datas", "type": "bytes[]" }, + { "name": "nonce", "type": "uint256" }, + { "name": "deadline", "type": "uint256" } ] } }, @@ -439,102 +170,39 @@ "primaryType": "follow_with_sign", "types": { "EIP712Domain": [ - { - "name": "name", - "type": "string" - }, - { - "name": "version", - "type": "string" - }, - { - "name": "chainId", - "type": "uint256" - }, - { - "name": "verifyingContract", - "type": "address" - } + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } ], - "follow_with_sign": [ - { - "name": "followerProfileId", - "type": "uint256" - }, - { - "name": "signatureDeadline", - "type": "uint256" - } - ] + "follow_with_sign": [{ "name": "followerProfileId", "type": "uint256" }, { "name": "signatureDeadline", "type": "uint256" }] } }, { "primaryType": "link", "types": { "EIP712Domain": [ - { - "name": "name", - "type": "string" - }, - { - "name": "version", - "type": "string" - }, - { - "name": "chainId", - "type": "uint256" - }, - { - "name": "verifyingContract", - "type": "address" - } + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } ], - "link": [ - { - "name": "handle_id", - "type": "uint256" - }, - { - "name": "profile_id", - "type": "uint256" - } - ] + "link": [{ "name": "handle_id", "type": "uint256" }, { "name": "profile_id", "type": "uint256" }] } }, { "primaryType": "link_with_sig", "types": { "EIP712Domain": [ - { - "name": "name", - "type": "string" - }, - { - "name": "version", - "type": "string" - }, - { - "name": "chainId", - "type": "uint256" - }, - { - "name": "verifyingContract", - "type": "address" - } + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } ], "link_with_sig": [ - { - "name": "handle_id", - "type": "uint256" - }, - { - "name": "profile_id", - "type": "uint256" - }, - { - "name": "signatureDeadline", - "type": "uint256" - } + { "name": "handle_id", "type": "uint256" }, + { "name": "profile_id", "type": "uint256" }, + { "name": "signatureDeadline", "type": "uint256" } ] } }, @@ -542,40 +210,16 @@ "primaryType": "mint", "types": { "EIP712Domain": [ - { - "name": "name", - "type": "string" - }, - { - "name": "version", - "type": "string" - }, - { - "name": "chainId", - "type": "uint256" - }, - { - "name": "verifyingContract", - "type": "address" - } + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } ], "mint": [ - { - "name": "to", - "type": "uint256" - }, - { - "name": "profile_id", - "type": "uint256" - }, - { - "name": "profile_id_pointed", - "type": "uint256" - }, - { - "name": "pubid_pointed", - "type": "uint256" - } + { "name": "to", "type": "uint256" }, + { "name": "profile_id", "type": "uint256" }, + { "name": "profile_id_pointed", "type": "uint256" }, + { "name": "pubid_pointed", "type": "uint256" } ] } }, @@ -583,60 +227,21 @@ "primaryType": "Mirror", "types": { "EIP712Domain": [ - { - "name": "name", - "type": "string" - }, - { - "name": "version", - "type": "string" - }, - { - "name": "chainId", - "type": "uint256" - }, - { - "name": "verifyingContract", - "type": "address" - } + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } ], "Mirror": [ - { - "name": "profileId", - "type": "uint256" - }, - { - "name": "metadataURI", - "type": "string" - }, - { - "name": "pointedProfileId", - "type": "uint256" - }, - { - "name": "pointedPubId", - "type": "uint256" - }, - { - "name": "referrerProfileIds", - "type": "uint256[]" - }, - { - "name": "referrerPubIds", - "type": "uint256[]" - }, - { - "name": "referenceModuleData", - "type": "bytes" - }, - { - "name": "nonce", - "type": "uint256" - }, - { - "name": "deadline", - "type": "uint256" - } + { "name": "profileId", "type": "uint256" }, + { "name": "metadataURI", "type": "string" }, + { "name": "pointedProfileId", "type": "uint256" }, + { "name": "pointedPubId", "type": "uint256" }, + { "name": "referrerProfileIds", "type": "uint256[]" }, + { "name": "referrerPubIds", "type": "uint256[]" }, + { "name": "referenceModuleData", "type": "bytes" }, + { "name": "nonce", "type": "uint256" }, + { "name": "deadline", "type": "uint256" } ] } }, @@ -644,40 +249,16 @@ "primaryType": "mirror_with_sig", "types": { "EIP712Domain": [ - { - "name": "name", - "type": "string" - }, - { - "name": "version", - "type": "string" - }, - { - "name": "chainId", - "type": "uint256" - }, - { - "name": "verifyingContract", - "type": "address" - } + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } ], "mirror_with_sig": [ - { - "name": "profile_id", - "type": "uint256" - }, - { - "name": "profile_id_pointed", - "type": "uint256" - }, - { - "name": "pubid_pointed", - "type": "uint256" - }, - { - "name": "signatureDeadline", - "type": "uint256" - } + { "name": "profile_id", "type": "uint256" }, + { "name": "profile_id_pointed", "type": "uint256" }, + { "name": "pubid_pointed", "type": "uint256" }, + { "name": "signatureDeadline", "type": "uint256" } ] } }, @@ -685,56 +266,20 @@ "primaryType": "Post", "types": { "EIP712Domain": [ - { - "name": "name", - "type": "string" - }, - { - "name": "version", - "type": "string" - }, - { - "name": "chainId", - "type": "uint256" - }, - { - "name": "verifyingContract", - "type": "address" - } + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } ], "Post": [ - { - "name": "profileId", - "type": "uint256" - }, - { - "name": "contentURI", - "type": "string" - }, - { - "name": "actionModules", - "type": "address[]" - }, - { - "name": "actionModulesInitDatas", - "type": "bytes[]" - }, - { - "name": "referenceModule", - "type": "address" - }, - { - "name": "referenceModuleInitData", - "type": "bytes" - }, - { - "name": "nonce", - "type": "uint256" - }, - { - "name": "deadline", - "type": "uint256" - } + { "name": "profileId", "type": "uint256" }, + { "name": "contentURI", "type": "string" }, + { "name": "actionModules", "type": "address[]" }, + { "name": "actionModulesInitDatas", "type": "bytes[]" }, + { "name": "referenceModule", "type": "address" }, + { "name": "referenceModuleInitData", "type": "bytes" }, + { "name": "nonce", "type": "uint256" }, + { "name": "deadline", "type": "uint256" } ] } }, @@ -742,81 +287,30 @@ "primaryType": "post_with_sign", "types": { "EIP712Domain": [ - { - "name": "name", - "type": "string" - }, - { - "name": "version", - "type": "string" - }, - { - "name": "chainId", - "type": "uint256" - }, - { - "name": "verifyingContract", - "type": "address" - } + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } ], - "post_with_sign": [ - { - "name": "profile_id", - "type": "uint256" - }, - { - "name": "signatureDeadline", - "type": "uint256" - } - ] + "post_with_sign": [{ "name": "profile_id", "type": "uint256" }, { "name": "signatureDeadline", "type": "uint256" }] } }, { "primaryType": "Quote", "types": { "EIP712Domain": [ - { - "name": "name", - "type": "string" - }, - { - "name": "version", - "type": "string" - }, - { - "name": "chainId", - "type": "uint256" - }, - { - "name": "verifyingContract", - "type": "address" - } + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } ], "Quote": [ - { - "name": "profileId", - "type": "uint256" - }, - { - "name": "contentURI", - "type": "string" - }, - { - "name": "pointedProfileId", - "type": "uint256" - }, - { - "name": "pointedPubId", - "type": "uint256" - }, - { - "name": "nonce", - "type": "uint256" - }, - { - "name": "deadline", - "type": "uint256" - } + { "name": "profileId", "type": "uint256" }, + { "name": "contentURI", "type": "string" }, + { "name": "pointedProfileId", "type": "uint256" }, + { "name": "pointedPubId", "type": "uint256" }, + { "name": "nonce", "type": "uint256" }, + { "name": "deadline", "type": "uint256" } ] } }, @@ -824,40 +318,16 @@ "primaryType": "quote_with_sign", "types": { "EIP712Domain": [ - { - "name": "name", - "type": "string" - }, - { - "name": "version", - "type": "string" - }, - { - "name": "chainId", - "type": "uint256" - }, - { - "name": "verifyingContract", - "type": "address" - } + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } ], "quote_with_sign": [ - { - "name": "profile_id", - "type": "uint256" - }, - { - "name": "profile_id_pointed", - "type": "uint256" - }, - { - "name": "pubid_pointed", - "type": "uint256" - }, - { - "name": "signatureDeadline", - "type": "uint256" - } + { "name": "profile_id", "type": "uint256" }, + { "name": "profile_id_pointed", "type": "uint256" }, + { "name": "pubid_pointed", "type": "uint256" }, + { "name": "signatureDeadline", "type": "uint256" } ] } }, @@ -865,73 +335,28 @@ "primaryType": "set_block_status", "types": { "EIP712Domain": [ - { - "name": "name", - "type": "string" - }, - { - "name": "version", - "type": "string" - }, - { - "name": "chainId", - "type": "uint256" - }, - { - "name": "verifyingContract", - "type": "address" - } + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } ], - "set_block_status": [ - { - "name": "byProfileId", - "type": "uint256" - }, - { - "name": "signatureDeadline", - "type": "uint256" - } - ] + "set_block_status": [{ "name": "byProfileId", "type": "uint256" }, { "name": "signatureDeadline", "type": "uint256" }] } }, { "primaryType": "SetProfileMetadataURI", "types": { "EIP712Domain": [ - { - "name": "name", - "type": "string" - }, - { - "name": "version", - "type": "string" - }, - { - "name": "chainId", - "type": "uint256" - }, - { - "name": "verifyingContract", - "type": "address" - } + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } ], "SetProfileMetadataURI": [ - { - "name": "profileId", - "type": "uint256" - }, - { - "name": "metadataURI", - "type": "string" - }, - { - "name": "nonce", - "type": "uint256" - }, - { - "name": "deadline", - "type": "uint256" - } + { "name": "profileId", "type": "uint256" }, + { "name": "metadataURI", "type": "string" }, + { "name": "nonce", "type": "uint256" }, + { "name": "deadline", "type": "uint256" } ] } }, @@ -939,77 +364,29 @@ "primaryType": "set_block_status_with_sig", "types": { "EIP712Domain": [ - { - "name": "name", - "type": "string" - }, - { - "name": "version", - "type": "string" - }, - { - "name": "chainId", - "type": "uint256" - }, - { - "name": "verifyingContract", - "type": "address" - } + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } ], - "set_block_status_with_sig": [ - { - "name": "byProfileId", - "type": "uint256" - }, - { - "name": "signatureDeadline", - "type": "uint256" - } - ] + "set_block_status_with_sig": [{ "name": "byProfileId", "type": "uint256" }, { "name": "signatureDeadline", "type": "uint256" }] } }, { "primaryType": "SetFollowModule", "types": { "EIP712Domain": [ - { - "name": "name", - "type": "string" - }, - { - "name": "version", - "type": "string" - }, - { - "name": "chainId", - "type": "uint256" - }, - { - "name": "verifyingContract", - "type": "address" - } + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } ], "SetFollowModule": [ - { - "name": "profileId", - "type": "uint256" - }, - { - "name": "followModule", - "type": "address" - }, - { - "name": "followModuleInitData", - "type": "bytes" - }, - { - "name": "nonce", - "type": "uint256" - }, - { - "name": "deadline", - "type": "uint256" - } + { "name": "profileId", "type": "uint256" }, + { "name": "followModule", "type": "address" }, + { "name": "followModuleInitData", "type": "bytes" }, + { "name": "nonce", "type": "uint256" }, + { "name": "deadline", "type": "uint256" } ] } }, @@ -1017,73 +394,28 @@ "primaryType": "set_profile_metadata_with_sign", "types": { "EIP712Domain": [ - { - "name": "name", - "type": "string" - }, - { - "name": "version", - "type": "string" - }, - { - "name": "chainId", - "type": "uint256" - }, - { - "name": "verifyingContract", - "type": "address" - } + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } ], - "set_profile_metadata_with_sign": [ - { - "name": "profileId", - "type": "uint256" - }, - { - "name": "signatureDeadline", - "type": "uint256" - } - ] + "set_profile_metadata_with_sign": [{ "name": "profileId", "type": "uint256" }, { "name": "signatureDeadline", "type": "uint256" }] } }, { "primaryType": "Unfollow", "types": { "EIP712Domain": [ - { - "name": "name", - "type": "string" - }, - { - "name": "version", - "type": "string" - }, - { - "name": "chainId", - "type": "uint256" - }, - { - "name": "verifyingContract", - "type": "address" - } + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } ], "Unfollow": [ - { - "name": "unfollowerProfileId", - "type": "uint256" - }, - { - "name": "idsOfProfilesToUnfollow", - "type": "uint256[]" - }, - { - "name": "nonce", - "type": "uint256" - }, - { - "name": "deadline", - "type": "uint256" - } + { "name": "unfollowerProfileId", "type": "uint256" }, + { "name": "idsOfProfilesToUnfollow", "type": "uint256[]" }, + { "name": "nonce", "type": "uint256" }, + { "name": "deadline", "type": "uint256" } ] } }, @@ -1091,191 +423,67 @@ "primaryType": "unfollow_with_sign", "types": { "EIP712Domain": [ - { - "name": "name", - "type": "string" - }, - { - "name": "version", - "type": "string" - }, - { - "name": "chainId", - "type": "uint256" - }, - { - "name": "verifyingContract", - "type": "address" - } + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } ], - "unfollow_with_sign": [ - { - "name": "unfollowerProfileId", - "type": "uint256" - }, - { - "name": "signatureDeadline", - "type": "uint256" - } - ] + "unfollow_with_sign": [{ "name": "unfollowerProfileId", "type": "uint256" }, { "name": "signatureDeadline", "type": "uint256" }] } } ] } }, - "metadata": { - "owner": "LensHub" - }, + "metadata": { "owner": "LensHub" }, "display": { "formats": { "act": { "intent": "act", "fields": [ - { - "path": "actorProfileId", - "label": "actorProfileId", - "format": "raw" - }, - { - "path": "publicationActedId", - "label": "publicationActedId", - "format": "raw" - }, - { - "path": "publicationActedProfileId", - "label": "publicationActedProfileId", - "format": "raw" - } + { "path": "actorProfileId", "label": "actorProfileId", "format": "raw" }, + { "path": "publicationActedId", "label": "publicationActedId", "format": "raw" }, + { "path": "publicationActedProfileId", "label": "publicationActedProfileId", "format": "raw" } ], - "excluded": [ - "deadline", - "actionModuleAddress", - "referrerProfileIds.[]", - "actionModuleData", - "referrerPubIds.[]" - ] - }, - "burn": { - "intent": "burn", - "fields": [ - { - "path": "tokenId", - "label": "tokenId", - "format": "raw" - } - ] + "excluded": ["deadline", "actionModuleAddress", "referrerProfileIds.[]", "actionModuleData", "referrerPubIds.[]"] }, + "burn": { "intent": "burn", "fields": [{ "path": "tokenId", "label": "tokenId", "format": "raw" }] }, "ChangeDelegatedExecutorsConfig": { "intent": "ChangeDelegatedExecutorsConfig", "fields": [ - { - "path": "delegatorProfileId", - "label": "Delegator ProfileId", - "format": "raw" - }, - { - "path": "delegatedExecutors.[]", - "label": "Delegated Executors", - "format": "raw" - }, - { - "path": "approvals.[]", - "label": "Approvals", - "format": "raw" - }, - { - "path": "configNumber", - "label": "configNumber", - "format": "raw" - }, - { - "path": "switchToGivenConfig", - "label": "switchToGivenConfig", - "format": "raw" - }, - { - "path": "nonce", - "label": "nonce", - "format": "raw" - } + { "path": "delegatorProfileId", "label": "Delegator ProfileId", "format": "raw" }, + { "path": "delegatedExecutors.[]", "label": "Delegated Executors", "format": "raw" }, + { "path": "approvals.[]", "label": "Approvals", "format": "raw" }, + { "path": "configNumber", "label": "configNumber", "format": "raw" }, + { "path": "switchToGivenConfig", "label": "switchToGivenConfig", "format": "raw" }, + { "path": "nonce", "label": "nonce", "format": "raw" } ], - "excluded": [ - "deadline" - ] + "excluded": ["deadline"] }, "collect": { "intent": "collect", "fields": [ - { - "path": "publicationCollectedProfileId", - "label": "Publication Collected ProfileId", - "format": "raw" - }, - { - "path": "publicationCollectedId", - "label": "Publication CollectedId", - "format": "raw" - }, - { - "path": "collectorProfileId", - "label": "collector ProfileId", - "format": "raw" - } + { "path": "publicationCollectedProfileId", "label": "Publication Collected ProfileId", "format": "raw" }, + { "path": "publicationCollectedId", "label": "Publication CollectedId", "format": "raw" }, + { "path": "collectorProfileId", "label": "collector ProfileId", "format": "raw" } ] }, "collect_with_sign": { "intent": "collect_with_sign", "fields": [ - { - "path": "publicationCollectedProfileId", - "label": "publicationCollectedProfileId", - "format": "raw" - }, - { - "path": "publicationCollectedId", - "label": "publicationCollectedId", - "format": "raw" - }, - { - "path": "collectorProfileId", - "label": "collectorProfileId", - "format": "raw" - }, - { - "path": "signatureDeadline", - "label": "signatureDeadline", - "format": "raw" - } + { "path": "publicationCollectedProfileId", "label": "publicationCollectedProfileId", "format": "raw" }, + { "path": "publicationCollectedId", "label": "publicationCollectedId", "format": "raw" }, + { "path": "collectorProfileId", "label": "collectorProfileId", "format": "raw" }, + { "path": "signatureDeadline", "label": "signatureDeadline", "format": "raw" } ] }, "Comment": { "intent": "Comment", "fields": [ - { - "path": "profileId", - "label": "Profile Id", - "format": "raw" - }, - { - "path": "contentURI", - "label": "content URI", - "format": "raw" - }, - { - "path": "pointedProfileId", - "label": "Pointed Profile Id", - "format": "raw" - }, - { - "path": "pointedPubId", - "label": "Pointed Pub Id", - "format": "raw" - }, - { - "path": "nonce", - "label": "nonce", - "format": "raw" - } + { "path": "profileId", "label": "Profile Id", "format": "raw" }, + { "path": "contentURI", "label": "content URI", "format": "raw" }, + { "path": "pointedProfileId", "label": "Pointed Profile Id", "format": "raw" }, + { "path": "pointedPubId", "label": "Pointed Pub Id", "format": "raw" }, + { "path": "nonce", "label": "nonce", "format": "raw" } ], "excluded": [ "referenceModuleInitData", @@ -1291,440 +499,166 @@ "comment_with_sign": { "intent": "comment_with_sign", "fields": [ - { - "path": "profile_id", - "label": "profile_id", - "format": "raw" - }, - { - "path": "profile_id_pointed", - "label": "profile_id_pointed", - "format": "raw" - }, - { - "path": "pubid_pointed", - "label": "pubid_pointed", - "format": "raw" - }, - { - "path": "signatureDeadline", - "label": "signatureDeadline", - "format": "raw" - } + { "path": "profile_id", "label": "profile_id", "format": "raw" }, + { "path": "profile_id_pointed", "label": "profile_id_pointed", "format": "raw" }, + { "path": "pubid_pointed", "label": "pubid_pointed", "format": "raw" }, + { "path": "signatureDeadline", "label": "signatureDeadline", "format": "raw" } ] }, "create_profile": { "intent": "create_profile", - "fields": [ - { - "path": "to", - "label": "to", - "format": "raw" - }, - { - "path": "followModule", - "label": "followModule", - "format": "raw" - } - ] + "fields": [{ "path": "to", "label": "to", "format": "raw" }, { "path": "followModule", "label": "followModule", "format": "raw" }] }, "Follow": { "intent": "Follow", "fields": [ - { - "path": "followerProfileId", - "label": "follower ProfileId", - "format": "raw" - }, - { - "path": "idsOfProfilesToFollow.[]", - "label": "ids Of Profiles To Follow", - "format": "raw" - }, - { - "path": "followTokenIds.[]", - "label": "follow TokenIds", - "format": "raw" - }, - { - "path": "datas.[]", - "label": "datas", - "format": "raw" - }, - { - "path": "nonce", - "label": "nonce", - "format": "raw" - } + { "path": "followerProfileId", "label": "follower ProfileId", "format": "raw" }, + { "path": "idsOfProfilesToFollow.[]", "label": "ids Of Profiles To Follow", "format": "raw" }, + { "path": "followTokenIds.[]", "label": "follow TokenIds", "format": "raw" }, + { "path": "datas.[]", "label": "datas", "format": "raw" }, + { "path": "nonce", "label": "nonce", "format": "raw" } ], - "excluded": [ - "deadline" - ] + "excluded": ["deadline"] }, "follow_with_sign": { "intent": "follow_with_sign", "fields": [ - { - "path": "followerProfileId", - "label": "followerProfileId", - "format": "raw" - }, - { - "path": "signatureDeadline", - "label": "signatureDeadline", - "format": "raw" - } + { "path": "followerProfileId", "label": "followerProfileId", "format": "raw" }, + { "path": "signatureDeadline", "label": "signatureDeadline", "format": "raw" } ] }, "link": { "intent": "link", "fields": [ - { - "path": "handle_id", - "label": "handle_id", - "format": "raw" - }, - { - "path": "profile_id", - "label": "profile_id", - "format": "raw" - } + { "path": "handle_id", "label": "handle_id", "format": "raw" }, + { "path": "profile_id", "label": "profile_id", "format": "raw" } ] }, "link_with_sig": { "intent": "link_with_sig", "fields": [ - { - "path": "handle_id", - "label": "handle_id", - "format": "raw" - }, - { - "path": "profile_id", - "label": "profile_id", - "format": "raw" - }, - { - "path": "signatureDeadline", - "label": "signatureDeadline", - "format": "raw" - } + { "path": "handle_id", "label": "handle_id", "format": "raw" }, + { "path": "profile_id", "label": "profile_id", "format": "raw" }, + { "path": "signatureDeadline", "label": "signatureDeadline", "format": "raw" } ] }, "mint": { "intent": "mint", "fields": [ - { - "path": "to", - "label": "to", - "format": "raw" - }, - { - "path": "profile_id", - "label": "profile_id", - "format": "raw" - }, - { - "path": "profile_id_pointed", - "label": "profile_id_pointed", - "format": "raw" - }, - { - "path": "pubid_pointed", - "label": "pubid_pointed", - "format": "raw" - } + { "path": "to", "label": "to", "format": "raw" }, + { "path": "profile_id", "label": "profile_id", "format": "raw" }, + { "path": "profile_id_pointed", "label": "profile_id_pointed", "format": "raw" }, + { "path": "pubid_pointed", "label": "pubid_pointed", "format": "raw" } ] }, "Mirror": { "intent": "mirror", "fields": [ - { - "path": "profileId", - "label": "profileId", - "format": "raw" - }, - { - "path": "metadataURI", - "label": "metadataURI", - "format": "raw" - }, - { - "path": "pointedProfileId", - "label": "pointedProfileId", - "format": "raw" - }, - { - "path": "nonce", - "label": "nonce", - "format": "raw" - } + { "path": "profileId", "label": "profileId", "format": "raw" }, + { "path": "metadataURI", "label": "metadataURI", "format": "raw" }, + { "path": "pointedProfileId", "label": "pointedProfileId", "format": "raw" }, + { "path": "nonce", "label": "nonce", "format": "raw" } ], - "excluded": [ - "deadline", - "pointedPubId", - "referenceModuleData", - "referrerProfileIds", - "referrerPubIds" - ] + "excluded": ["deadline", "pointedPubId", "referenceModuleData", "referrerProfileIds", "referrerPubIds"] }, "mirror_with_sig": { "intent": "mirror_with_sig", "fields": [ - { - "path": "profile_id", - "label": "profile_id", - "format": "raw" - }, - { - "path": "profile_id_pointed", - "label": "profile_id_pointed", - "format": "raw" - }, - { - "path": "pubid_pointed", - "label": "pubid_pointed", - "format": "raw" - }, - { - "path": "signatureDeadline", - "label": "signatureDeadline", - "format": "raw" - } + { "path": "profile_id", "label": "profile_id", "format": "raw" }, + { "path": "profile_id_pointed", "label": "profile_id_pointed", "format": "raw" }, + { "path": "pubid_pointed", "label": "pubid_pointed", "format": "raw" }, + { "path": "signatureDeadline", "label": "signatureDeadline", "format": "raw" } ] }, "Post": { "intent": "Post", "fields": [ - { - "path": "profileId", - "label": "Profile Id", - "format": "raw" - }, - { - "path": "contentURI", - "label": "Post URI", - "format": "raw" - }, - { - "path": "nonce", - "label": "nonce", - "format": "raw" - } + { "path": "profileId", "label": "Profile Id", "format": "raw" }, + { "path": "contentURI", "label": "Post URI", "format": "raw" }, + { "path": "nonce", "label": "nonce", "format": "raw" } ], - "excluded": [ - "referenceModuleInitData", - "actionModules", - "deadline", - "referenceModule", - "actionModulesInitDatas" - ] + "excluded": ["referenceModuleInitData", "actionModules", "deadline", "referenceModule", "actionModulesInitDatas"] }, "post_with_sign": { "intent": "post_with_sign", "fields": [ - { - "path": "profile_id", - "label": "profile_id", - "format": "raw" - }, - { - "path": "signatureDeadline", - "label": "signatureDeadline", - "format": "raw" - } + { "path": "profile_id", "label": "profile_id", "format": "raw" }, + { "path": "signatureDeadline", "label": "signatureDeadline", "format": "raw" } ] }, "Quote": { "intent": "Quote", "fields": [ - { - "path": "profileId", - "label": "profileId", - "format": "raw" - }, - { - "path": "contentURI", - "label": "contentURI", - "format": "raw" - }, - { - "path": "pointedProfileId", - "label": "pointedProfileId", - "format": "raw" - }, - { - "path": "pointedPubId", - "label": "pointedPubId", - "format": "raw" - }, - { - "path": "nonce", - "label": "nonce", - "format": "raw" - }, - { - "path": "deadline", - "label": "deadline", - "format": "raw" - } + { "path": "profileId", "label": "profileId", "format": "raw" }, + { "path": "contentURI", "label": "contentURI", "format": "raw" }, + { "path": "pointedProfileId", "label": "pointedProfileId", "format": "raw" }, + { "path": "pointedPubId", "label": "pointedPubId", "format": "raw" }, + { "path": "nonce", "label": "nonce", "format": "raw" }, + { "path": "deadline", "label": "deadline", "format": "raw" } ] }, "quote_with_sign": { "intent": "quote_with_sign", "fields": [ - { - "path": "profile_id", - "label": "profile_id", - "format": "raw" - }, - { - "path": "profile_id_pointed", - "label": "profile_id_pointed", - "format": "raw" - }, - { - "path": "pubid_pointed", - "label": "pubid_pointed", - "format": "raw" - }, - { - "path": "signatureDeadline", - "label": "signatureDeadline", - "format": "raw" - } + { "path": "profile_id", "label": "profile_id", "format": "raw" }, + { "path": "profile_id_pointed", "label": "profile_id_pointed", "format": "raw" }, + { "path": "pubid_pointed", "label": "pubid_pointed", "format": "raw" }, + { "path": "signatureDeadline", "label": "signatureDeadline", "format": "raw" } ] }, "set_block_status": { "intent": "set_block_status", "fields": [ - { - "path": "byProfileId", - "label": "byProfileId", - "format": "raw" - }, - { - "path": "signatureDeadline", - "label": "signatureDeadline", - "format": "raw" - } + { "path": "byProfileId", "label": "byProfileId", "format": "raw" }, + { "path": "signatureDeadline", "label": "signatureDeadline", "format": "raw" } ] }, "SetProfileMetadataURI": { "intent": "SetProfileMetadataURI", "fields": [ - { - "path": "profileId", - "label": "profileId", - "format": "raw" - }, - { - "path": "metadataURI", - "label": "metadataURI", - "format": "raw" - }, - { - "path": "nonce", - "label": "nonce", - "format": "raw" - } + { "path": "profileId", "label": "profileId", "format": "raw" }, + { "path": "metadataURI", "label": "metadataURI", "format": "raw" }, + { "path": "nonce", "label": "nonce", "format": "raw" } ], - "excluded": [ - "deadline" - ] + "excluded": ["deadline"] }, "set_block_status_with_sig": { "intent": "set_block_status_with_sig", "fields": [ - { - "path": "byProfileId", - "label": "byProfileId", - "format": "raw" - }, - { - "path": "signatureDeadline", - "label": "signatureDeadline", - "format": "raw" - } + { "path": "byProfileId", "label": "byProfileId", "format": "raw" }, + { "path": "signatureDeadline", "label": "signatureDeadline", "format": "raw" } ] }, "SetFollowModule": { "intent": "Set Follow Module", "fields": [ - { - "path": "profileId", - "label": "profileId", - "format": "raw" - }, - { - "path": "followModule", - "label": "followModule", - "format": "raw" - }, - { - "path": "nonce", - "label": "nonce", - "format": "raw" - } + { "path": "profileId", "label": "profileId", "format": "raw" }, + { "path": "followModule", "label": "followModule", "format": "raw" }, + { "path": "nonce", "label": "nonce", "format": "raw" } ], - "excluded": [ - "deadline", - "followModuleInitData" - ] + "excluded": ["deadline", "followModuleInitData"] }, "set_profile_metadata_with_sign": { "intent": "set_profile_metadata_with_sign", "fields": [ - { - "path": "profileId", - "label": "profileId", - "format": "raw" - }, - { - "path": "signatureDeadline", - "label": "signatureDeadline", - "format": "raw" - } + { "path": "profileId", "label": "profileId", "format": "raw" }, + { "path": "signatureDeadline", "label": "signatureDeadline", "format": "raw" } ] }, "Unfollow": { "intent": "Unfollow", "fields": [ - { - "path": "unfollowerProfileId", - "label": "Unfollower ProfileId", - "format": "raw" - }, - { - "path": "idsOfProfilesToUnfollow.[]", - "label": "ids Of Profiles To Unfollow", - "format": "raw" - }, - { - "path": "nonce", - "label": "nonce", - "format": "raw" - }, - { - "path": "deadline", - "label": "deadline", - "format": "raw" - } + { "path": "unfollowerProfileId", "label": "Unfollower ProfileId", "format": "raw" }, + { "path": "idsOfProfilesToUnfollow.[]", "label": "ids Of Profiles To Unfollow", "format": "raw" }, + { "path": "nonce", "label": "nonce", "format": "raw" }, + { "path": "deadline", "label": "deadline", "format": "raw" } ] }, "unfollow_with_sign": { "intent": "unfollow_with_sign", "fields": [ - { - "path": "unfollowerProfileId", - "label": "unfollowerProfileId", - "format": "raw" - }, - { - "path": "signatureDeadline", - "label": "signatureDeadline", - "format": "raw" - } + { "path": "unfollowerProfileId", "label": "unfollowerProfileId", "format": "raw" }, + { "path": "signatureDeadline", "label": "signatureDeadline", "format": "raw" } ] } } diff --git a/registry/lens/eip712-lens-token-handle-registry.json b/registry/lens/eip712-lens-token-handle-registry.json index c14a38ed..353839ee 100644 --- a/registry/lens/eip712-lens-token-handle-registry.json +++ b/registry/lens/eip712-lens-token-handle-registry.json @@ -2,52 +2,22 @@ "$schema": "../../specs/erc7730-v1.schema.json", "context": { "eip712": { - "deployments": [ - { - "chainId": 137, - "address": "0xd4f2f33680fccb36748fa9831851643781608844" - } - ], - "domain": { - "name": "LensHub", - "chainId": 137, - "verifyingContract": "0xd4f2f33680fccb36748fa9831851643781608844" - }, + "deployments": [{ "chainId": 137, "address": "0xd4f2f33680fccb36748fa9831851643781608844" }], + "domain": { "name": "LensHub", "chainId": 137, "verifyingContract": "0xd4f2f33680fccb36748fa9831851643781608844" }, "schemas": [ { "primaryType": "unlink_with_sig", "types": { "EIP712Domain": [ - { - "name": "name", - "type": "string" - }, - { - "name": "version", - "type": "string" - }, - { - "name": "chainId", - "type": "uint256" - }, - { - "name": "verifyingContract", - "type": "address" - } + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } ], "unlink_with_sig": [ - { - "name": "handle_id", - "type": "uint256" - }, - { - "name": "profile_id", - "type": "uint256" - }, - { - "name": "signatureDeadline", - "type": "uint256" - } + { "name": "handle_id", "type": "uint256" }, + { "name": "profile_id", "type": "uint256" }, + { "name": "signatureDeadline", "type": "uint256" } ] } }, @@ -55,93 +25,41 @@ "primaryType": "unlink", "types": { "EIP712Domain": [ - { - "name": "name", - "type": "string" - }, - { - "name": "version", - "type": "string" - }, - { - "name": "chainId", - "type": "uint256" - }, - { - "name": "verifyingContract", - "type": "address" - } + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } ], "unlink": [ - { - "name": "handleId", - "type": "uint256" - }, - { - "name": "profileId", - "type": "uint256" - }, - { - "name": "nonce", - "type": "uint256" - }, - { - "name": "deadline", - "type": "uint256" - } + { "name": "handleId", "type": "uint256" }, + { "name": "profileId", "type": "uint256" }, + { "name": "nonce", "type": "uint256" }, + { "name": "deadline", "type": "uint256" } ] } } ] } }, - "metadata": { - "owner": "TokenHandleRegistry" - }, + "metadata": { "owner": "TokenHandleRegistry" }, "display": { "formats": { "unlink_with_sig": { "intent": "unlink_with_sig", "fields": [ - { - "path": "handle_id", - "label": "handle_id", - "format": "raw" - }, - { - "path": "profile_id", - "label": "profile_id", - "format": "raw" - }, - { - "path": "signatureDeadline", - "label": "signatureDeadline", - "format": "raw" - } + { "path": "handle_id", "label": "handle_id", "format": "raw" }, + { "path": "profile_id", "label": "profile_id", "format": "raw" }, + { "path": "signatureDeadline", "label": "signatureDeadline", "format": "raw" } ] }, "unlink": { "intent": "unlink", "fields": [ - { - "path": "handleId", - "label": "handleId", - "format": "raw" - }, - { - "path": "profileId", - "label": "profileId", - "format": "raw" - }, - { - "path": "nonce", - "label": "nonce", - "format": "raw" - } + { "path": "handleId", "label": "handleId", "format": "raw" }, + { "path": "profileId", "label": "profileId", "format": "raw" }, + { "path": "nonce", "label": "nonce", "format": "raw" } ], - "excluded": [ - "deadline" - ] + "excluded": ["deadline"] } } } diff --git a/registry/lido/calldata-OssifiableProxy.json b/registry/lido/calldata-OssifiableProxy.json index f5bb4001..2cd2a72b 100644 --- a/registry/lido/calldata-OssifiableProxy.json +++ b/registry/lido/calldata-OssifiableProxy.json @@ -1,225 +1,137 @@ { - "$schema": "../../specs/erc7730-v1.schema.json", - - "context": { - "$id": "OssifiableProxy", - "contract": { - "deployments": [ - { - "chainId": 1, - "address": "0x889edC2eDab5f40e902b864aD4d7AdE8E412F9B1" - } - ], - "abi": "https://github.com/LedgerHQ/ledger-asset-dapps/blob/2eb3482cb1311f828a88e417c5095b9bbbc43fee/ethereum/lido/abis/0x889edc2edab5f40e902b864ad4d7ade8e412f9b1.abi.json" - } - }, - - "metadata": { - "owner": "Lido", - "info": { - "url": "https://lido.fi", - "legalName": "Lido DAO", - "lastUpdate": "2023-05-02T10:38:47Z" - }, - "constants": { - "stETHaddress": "0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84", - "wstETHaddress": "0x0B925eD163218f6662a35e0f0371Ac234f9E9371" - } - }, - - "display": { - "formats": { - "requestWithdrawalsWstETH(uint256[] _amounts, address _owner)": { - "intent": "Request withdrawals", - "fields": [ - { - "path": "_amounts.[]", - "label": "Amount to withdraw", - "format": "tokenAmount", - "params": { - "tokenPath": "$.metadata.constants.wstETHaddress" - } - }, - { - "path": "_owner", - "label": "Beneficiary", - "format": "addressName", - "params": { - "types": [ - "eoa" - ], - "sources": [ - "local", - "ens" - ] - } - } - ], - "required": ["_amounts", "_owner"] - }, - "requestWithdrawalsWstETHWithPermit(uint256[] _amounts, address _owner, (uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) _permit)": { - "intent": "Request withdrawals", - "fields": [ - { - "path": "_amounts.[]", - "label": "Amount to withdraw", - "format": "tokenAmount", - "params": { - "tokenPath": "$.metadata.constants.wstETHaddress" - } - }, - { - "path": "_owner", - "label": "Beneficiary", - "format": "addressName", - "params": { - "types": [ - "eoa" - ], - "sources": [ - "local", - "ens" - ] - } - } - ], - "required": ["_amounts", "_owner"], - "excluded": ["_permit.value", "_permit.deadline", "_permit.v", "_permit.r", "_permit.s"] - }, - "requestWithdrawals(uint256[] _amounts, address _owner)": { - "intent": "Request withdrawals", - "fields": [ - { - "path": "_amounts.[]", - "label": "Amount to withdraw", - "format": "tokenAmount", - "params": { - "tokenPath": "$.metadata.constants.stETHaddress" - } - }, - { - "path": "_owner", - "label": "Beneficiary", - "format": "addressName", - "params": { - "types": [ - "eoa" - ], - "sources": [ - "local", - "ens" - ] - } - } - ], - "required": ["_amounts", "_owner"] - }, - "requestWithdrawalsWithPermit(uint256[] _amounts, address _owner, (uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) _permit)": { - "intent": "Request withdrawals", - "fields": [ - { - "path": "_amounts.[]", - "label": "Amount to withdraw", - "format": "tokenAmount", - "params": { - "tokenPath": "$.metadata.constants.stETHaddress" - } - }, - { - "path": "_owner", - "label": "Beneficiary", - "format": "addressName", - "params": { - "types": [ - "eoa" - ], - "sources": [ - "local", - "ens" - ] - } - } - ], - "required": ["_amounts", "_owner"], - "excluded": ["_permit.value", "_permit.deadline", "_permit.v", "_permit.r", "_permit.s"] - }, - "claimWithdrawal(uint256 _requestId)": { - "intent": "Claim withdrawal", - "fields": [ - { - "path": "_requestId", - "label": "Request ID", - "format": "raw" - }, - { - "path": "@.from", - "label": "Beneficiary", - "format": "addressName", - "params": { - "types": [ - "eoa" - ], - "sources": [ - "local", - "ens" - ] - } - } - ], - "required": ["_requestId", "@.from"] - }, - "claimWithdrawals(uint256[] _requestIds, uint256[] _hints)": { - "intent": "Claim withdrawals", - "fields": [ - { - "path": "_requestIds.[]", - "label": "Request ID", - "format": "raw" - }, - { - "path": "@.from", - "label": "Beneficiary", - "format": "addressName", - "params": { - "types": [ - "eoa" - ], - "sources": [ - "local", - "ens" - ] - } - } - ], - "required": ["_requestIds", "@.from"], - "excluded": ["_hints"] - }, - "claimWithdrawalsTo(uint256[] _requestIds, uint256[] _hints, address _recipient)": { - "intent": "Claim withdrawals", - "fields": [ - { - "path": "_requestIds.[]", - "label": "Request ID", - "format": "raw" - }, - { - "path": "_recipient", - "label": "Beneficiary", - "format": "addressName", - "params": { - "types": [ - "eoa" - ], - "sources": [ - "local", - "ens" - ] - } - } - ], - "required": ["_requestIds", "_recipient"], - "excluded": ["_hints"] - } - } + "$schema": "../../specs/erc7730-v1.schema.json", + "context": { + "$id": "OssifiableProxy", + "contract": { + "deployments": [{ "chainId": 1, "address": "0x889edC2eDab5f40e902b864aD4d7AdE8E412F9B1" }], + "abi": "https://github.com/LedgerHQ/ledger-asset-dapps/blob/2eb3482cb1311f828a88e417c5095b9bbbc43fee/ethereum/lido/abis/0x889edc2edab5f40e902b864ad4d7ade8e412f9b1.abi.json" } + }, + "metadata": { + "owner": "Lido", + "info": { "url": "https://lido.fi", "legalName": "Lido DAO", "lastUpdate": "2023-05-02T10:38:47Z" }, + "constants": { + "stETHaddress": "0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84", + "wstETHaddress": "0x0B925eD163218f6662a35e0f0371Ac234f9E9371" + } + }, + "display": { + "formats": { + "requestWithdrawalsWstETH(uint256[] _amounts, address _owner)": { + "intent": "Request withdrawals", + "fields": [ + { + "path": "_amounts.[]", + "label": "Amount to withdraw", + "format": "tokenAmount", + "params": { "tokenPath": "$.metadata.constants.wstETHaddress" } + }, + { + "path": "_owner", + "label": "Beneficiary", + "format": "addressName", + "params": { "types": ["eoa"], "sources": ["local", "ens"] } + } + ], + "required": ["_amounts", "_owner"] + }, + "requestWithdrawalsWstETHWithPermit(uint256[] _amounts, address _owner, (uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) _permit)": { + "intent": "Request withdrawals", + "fields": [ + { + "path": "_amounts.[]", + "label": "Amount to withdraw", + "format": "tokenAmount", + "params": { "tokenPath": "$.metadata.constants.wstETHaddress" } + }, + { + "path": "_owner", + "label": "Beneficiary", + "format": "addressName", + "params": { "types": ["eoa"], "sources": ["local", "ens"] } + } + ], + "required": ["_amounts", "_owner"], + "excluded": ["_permit.value", "_permit.deadline", "_permit.v", "_permit.r", "_permit.s"] + }, + "requestWithdrawals(uint256[] _amounts, address _owner)": { + "intent": "Request withdrawals", + "fields": [ + { + "path": "_amounts.[]", + "label": "Amount to withdraw", + "format": "tokenAmount", + "params": { "tokenPath": "$.metadata.constants.stETHaddress" } + }, + { + "path": "_owner", + "label": "Beneficiary", + "format": "addressName", + "params": { "types": ["eoa"], "sources": ["local", "ens"] } + } + ], + "required": ["_amounts", "_owner"] + }, + "requestWithdrawalsWithPermit(uint256[] _amounts, address _owner, (uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) _permit)": { + "intent": "Request withdrawals", + "fields": [ + { + "path": "_amounts.[]", + "label": "Amount to withdraw", + "format": "tokenAmount", + "params": { "tokenPath": "$.metadata.constants.stETHaddress" } + }, + { + "path": "_owner", + "label": "Beneficiary", + "format": "addressName", + "params": { "types": ["eoa"], "sources": ["local", "ens"] } + } + ], + "required": ["_amounts", "_owner"], + "excluded": ["_permit.value", "_permit.deadline", "_permit.v", "_permit.r", "_permit.s"] + }, + "claimWithdrawal(uint256 _requestId)": { + "intent": "Claim withdrawal", + "fields": [ + { "path": "_requestId", "label": "Request ID", "format": "raw" }, + { + "path": "@.from", + "label": "Beneficiary", + "format": "addressName", + "params": { "types": ["eoa"], "sources": ["local", "ens"] } + } + ], + "required": ["_requestId", "@.from"] + }, + "claimWithdrawals(uint256[] _requestIds, uint256[] _hints)": { + "intent": "Claim withdrawals", + "fields": [ + { "path": "_requestIds.[]", "label": "Request ID", "format": "raw" }, + { + "path": "@.from", + "label": "Beneficiary", + "format": "addressName", + "params": { "types": ["eoa"], "sources": ["local", "ens"] } + } + ], + "required": ["_requestIds", "@.from"], + "excluded": ["_hints"] + }, + "claimWithdrawalsTo(uint256[] _requestIds, uint256[] _hints, address _recipient)": { + "intent": "Claim withdrawals", + "fields": [ + { "path": "_requestIds.[]", "label": "Request ID", "format": "raw" }, + { + "path": "_recipient", + "label": "Beneficiary", + "format": "addressName", + "params": { "types": ["eoa"], "sources": ["local", "ens"] } + } + ], + "required": ["_requestIds", "_recipient"], + "excluded": ["_hints"] + } + } + } } diff --git a/registry/lido/calldata-stETH.json b/registry/lido/calldata-stETH.json index 3d880307..35fafc02 100644 --- a/registry/lido/calldata-stETH.json +++ b/registry/lido/calldata-stETH.json @@ -1,83 +1,41 @@ { - "$schema": "../../specs/erc7730-v1.schema.json", - - "context": { - "$id": "stETH", - "contract": { - "deployments": [ - { - "chainId": 1, - "address": "0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84" - } - ], - "abi": "https://github.com/LedgerHQ/ledger-asset-dapps/blob/211e75ed27de3894f592ca73710fa0b72c3ceeae/ethereum/lido/abis/0xae7ab96520de3a18e5e111b5eaab095312d7fe84.abi.json" - } - }, - - "metadata": { - "owner": "Lido", - "info": { - "url": "https://lido.fi", - "legalName": "Lido DAO", - "lastUpdate": "2021-02-19T04:37:20Z" - } - }, - - "display": { - "formats": { - "submit(address)": { - "intent": "Stake ETH", - "fields": [ - { - "path": "@.value", - "label": "Amount to Stake", - "format": "amount" - }, - { - "path": "_referral", - "label": "Referral", - "format": "addressName", - "params": { - "types": [ - "eoa" - ], - "sources": [ - "local", - "ens" - ] - } - } - ], - "required": ["@.value"] - }, - "approve(address,uint256)" : { - "intent": "Approve a spender", - "fields": [ - { - "path": "_spender", - "label": "Spender", - "format": "addressName", - "params": { - "types": [ - "contract" - ], - "sources": [ - "local", - "ens" - ] - } - }, - { - "path": "_amount", - "label": "Max spending amount", - "format": "tokenAmount", - "params": { - "tokenPath": "@.to" - } - } - ], - "required": ["_spender", "_amount"] - } - } + "$schema": "../../specs/erc7730-v1.schema.json", + "context": { + "$id": "stETH", + "contract": { + "deployments": [{ "chainId": 1, "address": "0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84" }], + "abi": "https://github.com/LedgerHQ/ledger-asset-dapps/blob/211e75ed27de3894f592ca73710fa0b72c3ceeae/ethereum/lido/abis/0xae7ab96520de3a18e5e111b5eaab095312d7fe84.abi.json" } -} \ No newline at end of file + }, + "metadata": { "owner": "Lido", "info": { "url": "https://lido.fi", "legalName": "Lido DAO", "lastUpdate": "2021-02-19T04:37:20Z" } }, + "display": { + "formats": { + "submit(address)": { + "intent": "Stake ETH", + "fields": [ + { "path": "@.value", "label": "Amount to Stake", "format": "amount" }, + { + "path": "_referral", + "label": "Referral", + "format": "addressName", + "params": { "types": ["eoa"], "sources": ["local", "ens"] } + } + ], + "required": ["@.value"] + }, + "approve(address,uint256)": { + "intent": "Approve a spender", + "fields": [ + { + "path": "_spender", + "label": "Spender", + "format": "addressName", + "params": { "types": ["contract"], "sources": ["local", "ens"] } + }, + { "path": "_amount", "label": "Max spending amount", "format": "tokenAmount", "params": { "tokenPath": "@.to" } } + ], + "required": ["_spender", "_amount"] + } + } + } +} diff --git a/registry/lido/calldata-wstETH.json b/registry/lido/calldata-wstETH.json index 5b5c0a4c..8e9effbc 100644 --- a/registry/lido/calldata-wstETH.json +++ b/registry/lido/calldata-wstETH.json @@ -1,87 +1,46 @@ { - "$schema": "../../specs/erc7730-v1.schema.json", - - "context": { - "$id": "wstETH", - "contract": { - "deployments": [ - { - "chainId": 1, - "address": "0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0" - } - ], - "abi": "https://github.com/LedgerHQ/ledger-asset-dapps/blob/211e75ed27de3894f592ca73710fa0b72c3ceeae/ethereum/lido/abis/0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0.abi.json" - } - }, - - "metadata": { - "owner": "Lido", - "info": { - "url": "https://lido.fi", - "legalName": "Lido DAO", - "lastUpdate": "2021-02-19T04:37:20Z" - }, - "constants": { - "stETHaddress": "0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84" - } - }, - - "display": { - "formats": { - "wrap(uint256)" : { - "intent": "Exchange stETH to wstETH", - "fields": [ - { - "path": "_stETHAmount", - "label": "Amount to exchange", - "format": "tokenAmount", - "params": { - "tokenPath": "$.metadata.constants.stETHaddress" - } - } - ] - }, - "unwrap(uint256)": { - "intent" : "Exchange wstETH to stETH", - "fields": [ - { - "path": "_wstETHAmount", - "label": "Amount to exchange", - "format": "tokenAmount", - "params": { - "tokenPath": "@.to" - } - } - ] - }, - "approve(address,uint256)" : { - "intent" : "Approve spender", - "fields": [ - { - "path": "spender", - "label": "Spender", - "format": "addressName", - "params": { - "types": [ - "contract" - ], - "sources": [ - "local", - "ens" - ] - } - }, - { - "path": "amount", - "label": "Max spending amount", - "format": "tokenAmount", - "params": { - "tokenPath": "@.to" - } - } - ] - } - } + "$schema": "../../specs/erc7730-v1.schema.json", + "context": { + "$id": "wstETH", + "contract": { + "deployments": [{ "chainId": 1, "address": "0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0" }], + "abi": "https://github.com/LedgerHQ/ledger-asset-dapps/blob/211e75ed27de3894f592ca73710fa0b72c3ceeae/ethereum/lido/abis/0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0.abi.json" } - -} \ No newline at end of file + }, + "metadata": { + "owner": "Lido", + "info": { "url": "https://lido.fi", "legalName": "Lido DAO", "lastUpdate": "2021-02-19T04:37:20Z" }, + "constants": { "stETHaddress": "0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84" } + }, + "display": { + "formats": { + "wrap(uint256)": { + "intent": "Exchange stETH to wstETH", + "fields": [ + { + "path": "_stETHAmount", + "label": "Amount to exchange", + "format": "tokenAmount", + "params": { "tokenPath": "$.metadata.constants.stETHaddress" } + } + ] + }, + "unwrap(uint256)": { + "intent": "Exchange wstETH to stETH", + "fields": [{ "path": "_wstETHAmount", "label": "Amount to exchange", "format": "tokenAmount", "params": { "tokenPath": "@.to" } }] + }, + "approve(address,uint256)": { + "intent": "Approve spender", + "fields": [ + { + "path": "spender", + "label": "Spender", + "format": "addressName", + "params": { "types": ["contract"], "sources": ["local", "ens"] } + }, + { "path": "amount", "label": "Max spending amount", "format": "tokenAmount", "params": { "tokenPath": "@.to" } } + ] + } + } + } +} diff --git a/registry/makerdao/eip712-permit-DAI.json b/registry/makerdao/eip712-permit-DAI.json index f8d9cad3..65700316 100644 --- a/registry/makerdao/eip712-permit-DAI.json +++ b/registry/makerdao/eip712-permit-DAI.json @@ -1,51 +1,20 @@ { - "$schema": "../../specs/erc7730-v1.schema.json", - - "context": { - "eip712" : { - "domain": { - "name": "Dai Stablecoin", - "version": "1" - }, - "deployments": [ - { - "chainId": 42, - "address": "0x4F96Fe3b7A6Cf9725f59d353F723c1bDb64CA6Aa" - } - ] - } - }, - - "includes": "../../ercs/eip712-erc2612-permit.json", - - "metadata": { - "owner": "MakerDAO", - "info": { - "legalName": "Maker Foundation", - "url": "https://makerdao.com/", - "lastUpdate": "2017-12-18T00:00:00Z" - }, - "token": { - "name": "Dai Stablecoin", - "ticker": "DAI", - "decimals": 18 - } - }, - - "display": { - "formats": { - "Permit": { - "screens": { - "stax" : [ - { - "type": "propertyPage", - "label": "DAI Permit", - "content": ["spender", "value", "deadline"] - } - ] - } - } - } + "$schema": "../../specs/erc7730-v1.schema.json", + "context": { + "eip712": { + "domain": { "name": "Dai Stablecoin", "version": "1" }, + "deployments": [{ "chainId": 42, "address": "0x4F96Fe3b7A6Cf9725f59d353F723c1bDb64CA6Aa" }] } - -} \ No newline at end of file + }, + "includes": "../../ercs/eip712-erc2612-permit.json", + "metadata": { + "owner": "MakerDAO", + "info": { "legalName": "Maker Foundation", "url": "https://makerdao.com/", "lastUpdate": "2017-12-18T00:00:00Z" }, + "token": { "name": "Dai Stablecoin", "ticker": "DAI", "decimals": 18 } + }, + "display": { + "formats": { + "Permit": { "screens": { "stax": [{ "type": "propertyPage", "label": "DAI Permit", "content": ["spender", "value", "deadline"] }] } } + } + } +} diff --git a/registry/opensea/eip712-opensea.json b/registry/opensea/eip712-opensea.json index e30b7ab5..6d327048 100644 --- a/registry/opensea/eip712-opensea.json +++ b/registry/opensea/eip712-opensea.json @@ -2,165 +2,58 @@ "$schema": "../../specs/erc7730-v1.schema.json", "context": { "eip712": { - "deployments": [ - { - "chainId": 1, - "address": "0x7f268357a8c2552623316e2562d90e642bb538e5" - } - ], - "domain": { - "name": "OpenSea", - "chainId": 1, - "verifyingContract": "0x7f268357a8c2552623316e2562d90e642bb538e5" - }, + "deployments": [{ "chainId": 1, "address": "0x7f268357a8c2552623316e2562d90e642bb538e5" }], + "domain": { "name": "OpenSea", "chainId": 1, "verifyingContract": "0x7f268357a8c2552623316e2562d90e642bb538e5" }, "schemas": [ { "primaryType": "Order", "types": { "EIP712Domain": [ - { - "name": "name", - "type": "string" - }, - { - "name": "version", - "type": "string" - }, - { - "name": "chainId", - "type": "uint256" - }, - { - "name": "verifyingContract", - "type": "address" - } + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } ], "Order": [ - { - "name": "exchange", - "type": "address" - }, - { - "name": "maker", - "type": "address" - }, - { - "name": "taker", - "type": "address" - }, - { - "name": "makerRelayerFee", - "type": "uint256" - }, - { - "name": "takerRelayerFee", - "type": "uint256" - }, - { - "name": "makerProtocolFee", - "type": "uint256" - }, - { - "name": "takerProtocolFee", - "type": "uint256" - }, - { - "name": "feeRecipient", - "type": "address" - }, - { - "name": "feeMethod", - "type": "uint8" - }, - { - "name": "side", - "type": "uint8" - }, - { - "name": "saleKind", - "type": "uint8" - }, - { - "name": "target", - "type": "address" - }, - { - "name": "howToCall", - "type": "uint8" - }, - { - "name": "calldata", - "type": "bytes" - }, - { - "name": "replacementPattern", - "type": "bytes" - }, - { - "name": "staticTarget", - "type": "address" - }, - { - "name": "staticExtradata", - "type": "bytes" - }, - { - "name": "paymentToken", - "type": "address" - }, - { - "name": "basePrice", - "type": "uint256" - }, - { - "name": "extra", - "type": "uint256" - }, - { - "name": "listingTime", - "type": "uint256" - }, - { - "name": "expirationTime", - "type": "uint256" - }, - { - "name": "salt", - "type": "uint256" - }, - { - "name": "nonce", - "type": "uint256" - } + { "name": "exchange", "type": "address" }, + { "name": "maker", "type": "address" }, + { "name": "taker", "type": "address" }, + { "name": "makerRelayerFee", "type": "uint256" }, + { "name": "takerRelayerFee", "type": "uint256" }, + { "name": "makerProtocolFee", "type": "uint256" }, + { "name": "takerProtocolFee", "type": "uint256" }, + { "name": "feeRecipient", "type": "address" }, + { "name": "feeMethod", "type": "uint8" }, + { "name": "side", "type": "uint8" }, + { "name": "saleKind", "type": "uint8" }, + { "name": "target", "type": "address" }, + { "name": "howToCall", "type": "uint8" }, + { "name": "calldata", "type": "bytes" }, + { "name": "replacementPattern", "type": "bytes" }, + { "name": "staticTarget", "type": "address" }, + { "name": "staticExtradata", "type": "bytes" }, + { "name": "paymentToken", "type": "address" }, + { "name": "basePrice", "type": "uint256" }, + { "name": "extra", "type": "uint256" }, + { "name": "listingTime", "type": "uint256" }, + { "name": "expirationTime", "type": "uint256" }, + { "name": "salt", "type": "uint256" }, + { "name": "nonce", "type": "uint256" } ] } } ] } }, - "metadata": { - "owner": "Wyvern Exchange Contract" - }, + "metadata": { "owner": "Wyvern Exchange Contract" }, "display": { "formats": { "Order": { "intent": "OpenSea Listing", "fields": [ - { - "path": "exchange", - "label": "Contract address", - "format": "raw" - }, - { - "path": "basePrice", - "label": "Price", - "format": "raw" - }, - { - "path": "expirationTime", - "label": "Offer expiration", - "format": "raw" - } + { "path": "exchange", "label": "Contract address", "format": "raw" }, + { "path": "basePrice", "label": "Price", "format": "raw" }, + { "path": "expirationTime", "label": "Offer expiration", "format": "raw" } ], "excluded": [ "side", diff --git a/registry/paraswap/calldata-AugustusSwapper-v4.json b/registry/paraswap/calldata-AugustusSwapper-v4.json new file mode 100644 index 00000000..f5906bd8 --- /dev/null +++ b/registry/paraswap/calldata-AugustusSwapper-v4.json @@ -0,0 +1,117 @@ +{ + "context": { + "$id": "AugustusSwapper", + "contract": { + "abi": "https://github.com/LedgerHQ/ledger-asset-dapps/blob/main/ethereum/paraswap/abis/0x1bd435f3c054b6e901b7b108a0ab7617c808677b.abi.json", + "deployments": [{ "chainId": 1, "address": "0x1bd435f3c054b6e901b7b108a0ab7617c808677b" }] + } + }, + "metadata": { "owner": "Paraswap" }, + "display": { + "definitions": { + "amountIn": { "label": "Income Amount", "format": "amount" }, + "amountOut": { "label": "Outcome Amount", "format": "amount" }, + "amountInMax": { "label": "Maximum Income Amount", "format": "amount" }, + "factory": { "label": "Factory", "format": "addressName", "params": { "types": ["contract"] } }, + "amountOutMin": { "label": "Minimum Outcome Amount", "format": "amount" }, + "expectedAmount": { "label": "Expected Amount", "format": "amount" }, + "fromToken": { "format": "addressName", "label": "Origin Token", "params": { "types": ["token"] } }, + "toToken": { "format": "addressName", "label": "Destination Token", "params": { "types": ["token"] } }, + "fromAmount": { "format": "tokenAmount", "label": "Income Amount", "params": { "tokenPath": "fromToken" } }, + "toAmount": { "format": "tokenAmount", "label": "Outcome Amount", "params": { "tokenPath": "toToken" } }, + "beneficiary": { "format": "addressName", "label": "Beneficiary address", "params": { "types": ["eoa"] } } + }, + "formats": { + "0x58b9d179": { + "$id": "swapOnUniswap", + "fields": [ + { "path": "amountIn", "$ref": "$.display.definitions.amountIn" }, + { "path": "amountOutMin", "$ref": "$.display.definitions.amountOutMin" }, + { "path": "path.[]", "label": "Assets paths", "format": "addressName", "params": { "types": ["token"] } } + ], + "required": ["amountIn", "amountOutMin", "path"] + }, + "0x0863b7ac": { + "$id": "swapOnUniswapFork", + "fields": [ + { "path": "amountIn", "$ref": "$.display.definitions.amountIn" }, + { "path": "amountOutMin", "$ref": "$.display.definitions.amountOutMin" }, + { "path": "path.[]", "label": "Assets paths", "format": "addressName", "params": { "types": ["token"] } } + ], + "required": ["amountIn", "amountOutMin", "path"] + }, + "0xf9355f72": { + "$id": "buyOnUniswap", + "fields": [ + { "path": "amountOut", "$ref": "$.display.definitions.amountOut" }, + { "path": "amountInMax", "$ref": "$.display.definitions.amountInMax" }, + { "path": "path.[]", "label": "Assets paths", "format": "addressName", "params": { "types": ["token"] } } + ], + "required": ["amountOut", "amountInMax", "path"] + }, + "0x33635226": { + "$id": "buyOnUniswapFork", + "fields": [ + { "path": "amountOut", "$ref": "$.display.definitions.amountOut" }, + { "path": "amountInMax", "$ref": "$.display.definitions.amountInMax" }, + { "path": "path.[]", "label": "Assets paths", "format": "addressName", "params": { "types": ["token"] } } + ], + "required": ["factory", "initCode", "amountOut", "amountInMax", "path"] + }, + "0x8f00eccb": { + "$id": "multiSwap", + "fields": [ + { "path": "data.fromAmount", "$ref": "$.display.definitions.fromAmount", "params": { "tokenPath": "data.fromToken" } }, + { "path": "data.expectedAmount", "$ref": "$.display.definitions.expectedAmount" }, + { "path": "data.beneficiary", "$ref": "$.display.definitions.beneficiary" }, + { "path": "data.path.[]", "label": "Assets paths", "format": "addressName", "params": { "types": ["token"] } } + ], + "required": ["data.fromAmount", "data.expectedAmount", "data.beneficiary", "data.path"] + }, + "0xa27e8b6b": { + "$id": "simpleBuy", + "fields": [ + { "path": "fromToken", "$ref": "$.display.definitions.fromToken" }, + { "path": "toToken", "$ref": "$.display.definitions.toToken" }, + { "path": "fromAmount", "$ref": "$.display.definitions.fromAmount" }, + { "path": "toAmount", "$ref": "$.display.definitions.toAmount" }, + { "path": "beneficiary", "$ref": "$.display.definitions.beneficiary" } + ], + "required": ["fromToken", "fromAmount", "toAmount", "beneficiary"] + }, + "0xcfc0afeb": { + "$id": "simpleSwap", + "fields": [ + { "path": "fromToken", "$ref": "$.display.definitions.fromToken" }, + { "path": "toToken", "$ref": "$.display.definitions.toToken" }, + { "path": "fromAmount", "$ref": "$.display.definitions.fromAmount" }, + { "path": "toAmount", "$ref": "$.display.definitions.toAmount" }, + { "path": "beneficiary", "$ref": "$.display.definitions.beneficiary" } + ], + "required": ["fromToken", "fromAmount", "toAmount", "beneficiary"] + }, + "0xec1d21dd": { + "$id": "megaSwap", + "fields": [ + { "path": "data.fromToken", "$ref": "$.display.definitions.fromToken" }, + { "path": "data.fromAmount", "$ref": "$.display.definitions.fromAmount", "params": { "tokenPath": "data.fromToken" } }, + { "path": "data.expectedAmount", "$ref": "$.display.definitions.expectedAmount" }, + { "path": "data.beneficiary", "$ref": "$.display.definitions.beneficiary" }, + { "path": "data.path.[]", "label": "Assets paths", "format": "addressName", "params": { "types": ["token"] } } + ], + "required": ["data.fromToken", "data.fromAmount", "data.beneficiary", "data.path", "data.expectedAmount"] + }, + "0xf95a49eb": { + "$id": "buy", + "fields": [ + { "path": "data.fromToken", "$ref": "$.display.definitions.fromToken" }, + { "path": "data.toToken", "$ref": "$.display.definitions.toToken" }, + { "path": "data.fromAmount", "$ref": "$.display.definitions.fromAmount", "params": { "tokenPath": "data.fromToken" } }, + { "path": "data.toAmount", "$ref": "$.display.definitions.toAmount", "params": { "tokenPath": "data.toToken" } }, + { "path": "data.beneficiary", "$ref": "$.display.definitions.beneficiary" } + ], + "required": ["data.fromToken", "data.toToken", "data.fromAmount", "data.toAmount", "data.beneficiary"] + } + } + } +} diff --git a/registry/paraswap/calldata-AugustusSwapper-v5.json b/registry/paraswap/calldata-AugustusSwapper-v5.json new file mode 100644 index 00000000..08b3db74 --- /dev/null +++ b/registry/paraswap/calldata-AugustusSwapper-v5.json @@ -0,0 +1,142 @@ +{ + "context": { + "$id": "AugustusSwapper", + "contract": { + "abi": "https://github.com/LedgerHQ/ledger-asset-dapps/blob/main/ethereum/paraswap/abis/0xdef171fe48cf0115b1d80b88dc8eab59176fee57.abi.json", + "deployments": [ + { "chainId": 56, "address": "0xdef171fe48cf0115b1d80b88dc8eab59176fee57" }, + { "chainId": 1, "address": "0xdef171fe48cf0115b1d80b88dc8eab59176fee57" }, + { "chainId": 137, "address": "0xdef171fe48cf0115b1d80b88dc8eab59176fee57" } + ] + } + }, + "metadata": { "owner": "Paraswap" }, + "display": { + "definitions": { + "amountIn": { "label": "Income Amount", "format": "amount" }, + "amountOut": { "label": "Outcome Amount", "format": "amount" }, + "amountInMax": { "label": "Maximum Income Amount", "format": "amount" }, + "tokenIn": { "label": "Inbound token", "format": "addressName", "params": { "types": ["token"] } }, + "amountOutMin": { "label": "Minimum Outcome Amount", "format": "amount" }, + "fromToken": { "format": "addressName", "label": "Origin Token", "params": { "types": ["token"] } }, + "toToken": { "format": "addressName", "label": "Destination Token", "params": { "types": ["token"] } }, + "fromAmount": { "format": "tokenAmount", "label": "Income Amount", "params": { "tokenPath": "fromToken" } }, + "exchange": { "format": "addressName", "label": "Exchange address", "params": { "types": ["wallet"] } }, + "beneficiary": { "format": "addressName", "label": "Beneficiary address", "params": { "types": ["eoa"] } }, + "toAmount": { "format": "tokenAmount", "label": "Outcome Amount", "params": { "tokenPath": "toToken" } }, + "expectedAmount": { "label": "Expected Amount", "format": "amount" } + }, + "formats": { + "0x54840d1a": { + "$id": "swapOnUniswap", + "fields": [ + { "path": "amountIn", "$ref": "$.display.definitions.amountIn" }, + { "path": "amountOutMin", "$ref": "$.display.definitions.amountOutMin" }, + { "path": "path.[]", "label": "Assets paths", "format": "addressName", "params": { "types": ["token"] } } + ], + "required": ["amountIn", "amountOutMin", "path"] + }, + "0xf5661034": { + "$id": "swapOnUniswapFork", + "fields": [ + { "path": "amountIn", "$ref": "$.display.definitions.amountIn" }, + { "path": "amountOutMin", "$ref": "$.display.definitions.amountOutMin" }, + { "path": "path.[]", "label": "Assets paths", "format": "addressName", "params": { "types": ["token"] } } + ], + "required": ["amountIn", "amountOutMin", "path"] + }, + "0x935fb84b": { + "$id": "buyOnUniswap", + "fields": [ + { "path": "amountOut", "$ref": "$.display.definitions.amountOut" }, + { "path": "amountInMax", "$ref": "$.display.definitions.amountInMax" }, + { "path": "path.[]", "label": "Assets paths", "format": "addressName", "params": { "types": ["token"] } } + ], + "required": ["amountOut", "amountInMax", "path"] + }, + "0xc03786b0": { + "$id": "buyOnUniswapFork", + "fields": [ + { "path": "amountOut", "$ref": "$.display.definitions.amountOut" }, + { "path": "amountInMax", "$ref": "$.display.definitions.amountInMax" }, + { "path": "path.[]", "label": "Assets paths", "format": "addressName", "params": { "types": ["token"] } } + ], + "required": ["amountOut", "amountInMax", "path"] + }, + "0x0b86a4c1": { + "$id": "swapOnUniswapV2Fork", + "fields": [ + { "path": "tokenIn", "$ref": "$.display.definitions.tokenIn" }, + { "path": "amountIn", "$ref": "$.display.definitions.amountIn", "params": { "tokenPath": "tokenIn" } }, + { "path": "amountOutMin", "$ref": "$.display.definitions.amountOutMin" } + ], + "required": ["tokenIn", "amountIn", "amountOutMin"] + }, + "0x64466805": { + "$id": "swapOnZeroXv4", + "fields": [ + { "path": "fromToken", "$ref": "$.display.definitions.fromToken" }, + { "path": "toToken", "$ref": "$.display.definitions.toToken" }, + { "path": "fromAmount", "$ref": "$.display.definitions.fromAmount" }, + { "path": "amountOutMin", "$ref": "$.display.definitions.amountOutMin" }, + { "path": "exchange", "$ref": "$.display.definitions.exchange" } + ], + "required": ["fromToken", "toToken", "fromAmount", "amountOutMin", "exchange"] + }, + "0x2298207a": { + "$id": "simpleBuy", + "fields": [ + { "path": "data.fromToken", "$ref": "$.display.definitions.fromToken" }, + { "path": "data.toToken", "$ref": "$.display.definitions.toToken" }, + { "path": "data.fromAmount", "$ref": "$.display.definitions.fromAmount", "params": { "tokenPath": "data.fromToken" } }, + { "path": "data.toAmount", "$ref": "$.display.definitions.toAmount", "params": { "tokenPath": "data.toToken" } }, + { "path": "data.beneficiary", "$ref": "$.display.definitions.beneficiary" } + ], + "required": ["data.fromToken", "data.toToken", "data.fromAmount", "data.toAmount", "data.beneficiary"] + }, + "0x46c67b6d": { + "$id": "megaSwap", + "fields": [ + { "path": "data.fromToken", "$ref": "$.display.definitions.fromToken" }, + { "path": "data.fromAmount", "$ref": "$.display.definitions.fromAmount", "params": { "tokenPath": "data.fromToken" } }, + { "path": "data.beneficiary", "$ref": "$.display.definitions.beneficiary" }, + { "path": "data.path.[]", "label": "Assets paths", "format": "addressName", "params": { "types": ["token"] } } + ], + "required": ["data.fromAmount", "data.fromToken", "data.beneficiary", "data.path"] + }, + "0x54e3f31b": { + "$id": "simpleSwap", + "fields": [ + { "path": "data.fromToken", "$ref": "$.display.definitions.fromToken" }, + { "path": "data.toToken", "$ref": "$.display.definitions.toToken" }, + { "path": "data.fromAmount", "$ref": "$.display.definitions.fromAmount", "params": { "tokenPath": "data.fromToken" } }, + { "path": "data.toAmount", "$ref": "$.display.definitions.toAmount", "params": { "tokenPath": "data.toToken" } }, + { "path": "data.beneficiary", "$ref": "$.display.definitions.beneficiary" } + ], + "required": ["data.fromToken", "data.toToken", "fromAmount", "toAmount", "beneficiary"] + }, + "0xa94e78ef": { + "$id": "multiSwap", + "fields": [ + { "path": "data.fromToken", "$ref": "$.display.definitions.fromToken" }, + { "path": "data.fromAmount", "$ref": "$.display.definitions.fromAmount", "params": { "tokenPath": "data.fromToken" } }, + { "path": "data.expectedAmount", "$ref": "$.display.definitions.expectedAmount" }, + { "path": "data.beneficiary", "$ref": "$.display.definitions.beneficiary" }, + { "path": "data.path.[]", "label": "Assets paths", "format": "addressName", "params": { "types": ["token"] } } + ], + "required": ["data.fromToken", "data.fromAmount", "data.toAmount", "data.expectedAmount", "data.beneficiary", "data.path"] + }, + "0x81033120": { + "$id": "swapOnZeroXv2", + "fields": [ + { "path": "fromToken", "$ref": "$.display.definitions.fromToken" }, + { "path": "toToken", "$ref": "$.display.definitions.toToken" }, + { "path": "fromAmount", "$ref": "$.display.definitions.fromAmount" }, + { "path": "amountOutMin", "$ref": "$.display.definitions.amountOutMin" }, + { "path": "exchange", "$ref": "$.display.definitions.exchange" } + ], + "required": ["fromToken", "toToken", "fromAmount", "amountOutMin", "exchange"] + } + } + } +} diff --git a/registry/paraswap/calldata-AugustusSwapper.json b/registry/paraswap/calldata-AugustusSwapper.json index 6bd9d7d2..a41bbeac 100644 --- a/registry/paraswap/calldata-AugustusSwapper.json +++ b/registry/paraswap/calldata-AugustusSwapper.json @@ -1,511 +1,195 @@ { - "$schema": "../../specs/erc7730-v1.schema.json", - "context": { - "$id": "AugustusSwapper", - "contract": { - "deployments": [ - { - "chainId": 1, - "address": "0xDEF171Fe48CF0115B1d80b88dc8eAB59176FEe57" - } - ], - "abi": "https://github.com/LedgerHQ/ledger-asset-dapps/blob/211e75ed27de3894f592ca73710fa0b72c3ceeae/ethereum/paraswap/abis/0xdef171fe48cf0115b1d80b88dc8eab59176fee57.abi.json" - } - }, - "metadata": { - "owner": "Paraswap", - "info": { - "url": "https://www.paraswap.io/", - "legalName": "ParaSwap", - "lastUpdate": "2021-08-18T12:42:05Z" - }, - "constants": { - "addressAsEth": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE" - } + "$schema": "../../specs/erc7730-v1.schema.json", + "context": { + "$id": "AugustusSwapper", + "contract": { + "deployments": [{ "chainId": 1, "address": "0xDEF171Fe48CF0115B1d80b88dc8eAB59176FEe57" }], + "abi": "https://github.com/LedgerHQ/ledger-asset-dapps/blob/211e75ed27de3894f592ca73710fa0b72c3ceeae/ethereum/paraswap/abis/0xdef171fe48cf0115b1d80b88dc8eab59176fee57.abi.json" + } + }, + "metadata": { + "owner": "Paraswap", + "info": { "url": "https://www.paraswap.io/", "legalName": "ParaSwap", "lastUpdate": "2021-08-18T12:42:05Z" }, + "constants": { "addressAsEth": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE" } + }, + "display": { + "definitions": { + "sendAmount": { + "label": "Amount to Send", + "format": "tokenAmount", + "params": { "tokenPath": "fromToken", "nativeCurrencyAddress": "$.metadata.constants.addressAsEth" } + }, + "minReceiveAmount": { + "label": "Minimum to Receive", + "format": "tokenAmount", + "params": { "tokenPath": "toToken", "nativeCurrencyAddress": "$.metadata.constants.addressAsEth" } + }, + "maxSendAmount": { + "label": "Maximum to Send", + "format": "tokenAmount", + "params": { "tokenPath": "tokenIn", "nativeCurrencyAddress": "$.metadata.constants.addressAsEth" } + }, + "receiveAmount": { + "label": "Amount to Receive", + "format": "tokenAmount", + "params": { "tokenPath": "tokenOut", "nativeCurrencyAddress": "$.metadata.constants.addressAsEth" } + }, + "beneficiary": { "label": "Beneficiary", "format": "addressName", "params": { "types": ["eoa"], "sources": ["local", "ens"] } }, + "exchange": { "label": "Exchange", "format": "addressName", "params": { "types": ["contract"], "sources": ["local", "ens"] } }, + "factory": { "label": "Uniswap Factory", "format": "addressName", "params": { "types": ["contract"], "sources": ["local", "ens"] } } }, - "display": { - "definitions": { - "sendAmount": { - "label": "Amount to Send", - "format": "tokenAmount", - "params": { - "tokenPath": "fromToken", - "nativeCurrencyAddress": "$.metadata.constants.addressAsEth" - } - }, - "minReceiveAmount": { - "label": "Minimum to Receive", - "format": "tokenAmount", - "params": { - "tokenPath": "toToken", - "nativeCurrencyAddress": "$.metadata.constants.addressAsEth" - } - }, - "maxSendAmount": { - "label": "Maximum to Send", - "format": "tokenAmount", - "params": { - "tokenPath": "tokenIn", - "nativeCurrencyAddress": "$.metadata.constants.addressAsEth" - } - }, - "receiveAmount": { - "label": "Amount to Receive", - "format": "tokenAmount", - "params": { - "tokenPath": "tokenOut", - "nativeCurrencyAddress": "$.metadata.constants.addressAsEth" - } - }, - "beneficiary": { - "label": "Beneficiary", - "format": "addressName", - "params": { - "types": [ - "eoa" - ], - "sources": [ - "local", - "ens" - ] - } - }, - "exchange": { - "label": "Exchange", - "format": "addressName", - "params": { - "types": [ - "contract" - ], - "sources": [ - "local", - "ens" - ] - } - }, - "factory": { - "label": "Uniswap Factory", - "format": "addressName", - "params": { - "types": [ - "contract" - ], - "sources": [ - "local", - "ens" - ] - } - } - }, - "formats": { - "0x2298207a": { - "$id": "simpleBuy", - "intent": "Swap", - "fields": [ - { - "path": "data.fromAmount", - "$ref": "$.display.definitions.sendAmount", - "params": { - "tokenPath": "data.fromToken" - } - }, - { - "path": "data.toAmount", - "$ref": "$.display.definitions.minReceiveAmount", - "params": { - "tokenPath": "data.toToken" - } - }, - { - "path": "data.beneficiary", - "$ref": "$.display.definitions.beneficiary" - } - ], - "required": [ - "data.fromAmount", - "data.toAmount", - "data.beneficiary" - ] - }, - "0x46c67b6d": { - "$id": "megaSwap", - "intent": "Swap", - "fields": [ - { - "path": "data.fromAmount", - "$ref": "$.display.definitions.sendAmount", - "params": { - "tokenPath": "data.fromToken" - } - }, - { - "path": "data.toAmount", - "$ref": "$.display.definitions.minReceiveAmount", - "params": { - "tokenPath": "data.path.[0].path.[-1].to" - } - }, - { - "path": "data.beneficiary", - "$ref": "$.display.definitions.beneficiary" - } - ], - "required": [ - "data.fromAmount", - "data.toAmount", - "data.beneficiary" - ] - }, - "0x54840d1a": { - "$id": "swapOnUniswap", - "intent": "Swap", - "fields": [ - { - "path": "amountIn", - "$ref": "$.display.definitions.sendAmount", - "params": { - "tokenPath": "path.[0]" - } - }, - { - "path": "amountOutMin", - "$ref": "$.display.definitions.minReceiveAmount", - "params": { - "tokenPath": "path.[-1]" - } - } - ], - "required": [ - "amountIn", - "amountOutMin" - ] - }, - "0xf5661034": { - "$id": "swapOnUniswapFork", - "intent": "Swap", - "fields": [ - { - "path": "amountIn", - "$ref": "$.display.definitions.sendAmount", - "params": { - "tokenPath": "path.[0]" - } - }, - { - "path": "amountOutMin", - "$ref": "$.display.definitions.minReceiveAmount", - "params": { - "tokenPath": "path.[-1]" - } - }, - { - "path": "factory", - "$ref": "$.display.definitions.factory" - } - ], - "required": [ - "amountIn", - "amountOutMin" - ] - }, - "0x0b86a4c1": { - "$id": "swapOnUniswapV2Fork", - "intent": "Swap", - "fields": [ - { - "path": "amountIn", - "$ref": "$.display.definitions.sendAmount", - "params": { - "tokenPath": "tokenIn" - } - }, - { - "path": "amountOutMin", - "label": "Minimum to Receive", - "format": "raw" - }, - { - "path": "pools.[-1]", - "label": "Last pool", - "format": "raw" - } - ], - "required": [ - "amountIn", - "amountOutMin", - "pools" - ] - }, - "0x54e3f31b": { - "$id": "simpleSwap", - "intent": "Swap", - "fields": [ - { - "path": "data.fromAmount", - "$ref": "$.display.definitions.sendAmount", - "params": { - "tokenPath": "data.fromToken" - } - }, - { - "path": "data.toAmount", - "$ref": "$.display.definitions.minReceiveAmount", - "params": { - "tokenPath": "data.toToken" - } - }, - { - "path": "data.beneficiary", - "$ref": "$.display.definitions.beneficiary" - } - ], - "required": [ - "data.fromAmount", - "data.toAmount", - "data.beneficiary" - ] - }, - "0x64466805": { - "$id": "swapOnZeroXv4", - "intent": "Swap", - "fields": [ - { - "path": "fromAmount", - "$ref": "$.display.definitions.sendAmount", - "params": { - "tokenPath": "fromToken" - } - }, - { - "path": "amountOutMin", - "$ref": "$.display.definitions.minReceiveAmount", - "params": { - "tokenPath": "toToken" - } - }, - { - "path": "exchange", - "$ref": "$.display.definitions.exchange" - } - ], - "required": [ - "fromAmount", - "amountOutMin" - ] - }, - "0x81033120": { - "$id": "swapOnZeroXv2", - "intent": "Swap", - "fields": [ - { - "path": "fromAmount", - "$ref": "$.display.definitions.sendAmount", - "params": { - "tokenPath": "fromToken" - } - }, - { - "path": "amountOutMin", - "$ref": "$.display.definitions.minReceiveAmount", - "params": { - "tokenPath": "toToken" - } - }, - { - "path": "exchange", - "$ref": "$.display.definitions.exchange" - } - ], - "required": [ - "fromAmount", - "amountOutMin" - ] - }, - "0x935fb84b": { - "$id": "buyOnUniswap", - "intent": "Buy", - "fields": [ - { - "path": "amountInMax", - "$ref": "$.display.definitions.maxSendAmount", - "params": { - "tokenPath": "path.[0]" - } - }, - { - "path": "amountOut", - "$ref": "$.display.definitions.receiveAmount", - "params": { - "tokenPath": "path.[-1]" - } - } - ], - "required": [ - "amountInMax", - "amountOut" - ] - }, - "0xc03786b0": { - "$id": "buyOnUniswapFork", - "intent": "Buy", - "fields": [ - { - "path": "amountInMax", - "$ref": "$.display.definitions.maxSendAmount", - "params": { - "tokenPath": "path.[0]" - } - }, - { - "path": "amountOut", - "$ref": "$.display.definitions.receiveAmount", - "params": { - "tokenPath": "path.[-1]" - } - }, - { - "path": "factory", - "$ref": "$.display.definitions.factory" - } - ], - "required": [ - "amountInMax", - "amountOut" - ] - }, - "0xb2f1e6db": { - "$id": "buyOnUniswapV2Fork", - "intent": "Buy", - "fields": [ - { - "path": "amountInMax", - "$ref": "$.display.definitions.maxSendAmount", - "params": { - "tokenPath": "tokenIn" - } - }, - { - "path": "amountOut", - "label": "Amount to Receive", - "format": "raw" - }, - { - "path": "pools.[-1]", - "label": "Last pool", - "format": "raw" - } - ], - "required": [ - "amountInMax", - "amountOut", - "pools.[-1]" - ] - }, - "0x2941a712": { - "$id": "buyOnUniswapV2ForkWithPermit", - "intent": "Buy", - "fields": [ - { - "path": "amountInMax", - "$ref": "$.display.definitions.maxSendAmount", - "params": { - "tokenPath": "tokenIn" - } - }, - { - "path": "amountOut", - "label": "Amount to Receive", - "format": "raw" - }, - { - "path": "pools.[-1]", - "label": "Last pool", - "format": "raw" - } - ] - }, - "0xa94e78ef": { - "$id": "multiSwap", - "intent": "Swap", - "fields": [ - { - "path": "data.fromAmount", - "$ref": "$.display.definitions.sendAmount", - "params": { - "tokenPath": "data.fromToken" - } - }, - { - "path": "data.toAmount", - "$ref": "$.display.definitions.minReceiveAmount", - "params": { - "tokenPath": "data.path.[-1].to" - } - }, - { - "path": "data.beneficiary", - "$ref": "$.display.definitions.beneficiary" - } - ], - "required": [ - "data.fromAmount", - "data.toAmount", - "data.beneficiary" - ] - }, - "0x6b4109d3": { - "$id": "swapOnZeroXv4WithPermit", - "intent": "Swap", - "fields": [ - { - "path": "fromAmount", - "$ref": "$.display.definitions.sendAmount", - "params": { - "tokenPath": "fromToken" - } - }, - { - "path": "amountOutMin", - "$ref": "$.display.definitions.minReceiveAmount", - "params": { - "tokenPath": "toToken" - } - }, - { - "path": "exchange", - "$ref": "$.display.definitions.exchange" - } - ], - "required": [ - "fromAmount", - "amountOutMin", - "exchange" - ] - }, - "0x6e91538b": { - "$id": "swapOnUniswapV2ForkWithPermit", - "intent": "Swap", - "fields": [ - { - "path": "amountIn", - "$ref": "$.display.definitions.sendAmount", - "params": { - "tokenPath": "tokenIn" - } - }, - { - "path": "amountOutMin", - "label": "Minimum to Receive", - "format": "raw" - }, - { - "path": "pools.[-1]", - "label": "Last pool", - "format": "raw" - } - ], - "required": [] - } - } + "formats": { + "0x2298207a": { + "$id": "simpleBuy", + "intent": "Swap", + "fields": [ + { "path": "data.fromAmount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "data.fromToken" } }, + { "path": "data.toAmount", "$ref": "$.display.definitions.minReceiveAmount", "params": { "tokenPath": "data.toToken" } }, + { "path": "data.beneficiary", "$ref": "$.display.definitions.beneficiary" } + ], + "required": ["data.fromAmount", "data.toAmount", "data.beneficiary"] + }, + "0x46c67b6d": { + "$id": "megaSwap", + "intent": "Swap", + "fields": [ + { "path": "data.fromAmount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "data.fromToken" } }, + { + "path": "data.toAmount", + "$ref": "$.display.definitions.minReceiveAmount", + "params": { "tokenPath": "data.path.[0].path.[-1].to" } + }, + { "path": "data.beneficiary", "$ref": "$.display.definitions.beneficiary" } + ], + "required": ["data.fromAmount", "data.toAmount", "data.beneficiary"] + }, + "0x54840d1a": { + "$id": "swapOnUniswap", + "intent": "Swap", + "fields": [ + { "path": "amountIn", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "path.[0]" } }, + { "path": "amountOutMin", "$ref": "$.display.definitions.minReceiveAmount", "params": { "tokenPath": "path.[-1]" } } + ], + "required": ["amountIn", "amountOutMin"] + }, + "0xf5661034": { + "$id": "swapOnUniswapFork", + "intent": "Swap", + "fields": [ + { "path": "amountIn", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "path.[0]" } }, + { "path": "amountOutMin", "$ref": "$.display.definitions.minReceiveAmount", "params": { "tokenPath": "path.[-1]" } }, + { "path": "factory", "$ref": "$.display.definitions.factory" } + ], + "required": ["amountIn", "amountOutMin"] + }, + "0x0b86a4c1": { + "$id": "swapOnUniswapV2Fork", + "intent": "Swap", + "fields": [ + { "path": "amountIn", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "tokenIn" } }, + { "path": "amountOutMin", "label": "Minimum to Receive", "format": "raw" }, + { "path": "pools.[-1]", "label": "Last pool", "format": "raw" } + ], + "required": ["amountIn", "amountOutMin", "pools"] + }, + "0x54e3f31b": { + "$id": "simpleSwap", + "intent": "Swap", + "fields": [ + { "path": "data.fromAmount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "data.fromToken" } }, + { "path": "data.toAmount", "$ref": "$.display.definitions.minReceiveAmount", "params": { "tokenPath": "data.toToken" } }, + { "path": "data.beneficiary", "$ref": "$.display.definitions.beneficiary" } + ], + "required": ["data.fromAmount", "data.toAmount", "data.beneficiary"] + }, + "0x64466805": { + "$id": "swapOnZeroXv4", + "intent": "Swap", + "fields": [ + { "path": "fromAmount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "fromToken" } }, + { "path": "amountOutMin", "$ref": "$.display.definitions.minReceiveAmount", "params": { "tokenPath": "toToken" } }, + { "path": "exchange", "$ref": "$.display.definitions.exchange" } + ], + "required": ["fromAmount", "amountOutMin"] + }, + "0x81033120": { + "$id": "swapOnZeroXv2", + "intent": "Swap", + "fields": [ + { "path": "fromAmount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "fromToken" } }, + { "path": "amountOutMin", "$ref": "$.display.definitions.minReceiveAmount", "params": { "tokenPath": "toToken" } }, + { "path": "exchange", "$ref": "$.display.definitions.exchange" } + ], + "required": ["fromAmount", "amountOutMin"] + }, + "0x935fb84b": { + "$id": "buyOnUniswap", + "intent": "Buy", + "fields": [ + { "path": "amountInMax", "$ref": "$.display.definitions.maxSendAmount", "params": { "tokenPath": "path.[0]" } }, + { "path": "amountOut", "$ref": "$.display.definitions.receiveAmount", "params": { "tokenPath": "path.[-1]" } } + ], + "required": ["amountInMax", "amountOut"] + }, + "0xc03786b0": { + "$id": "buyOnUniswapFork", + "intent": "Buy", + "fields": [ + { "path": "amountInMax", "$ref": "$.display.definitions.maxSendAmount", "params": { "tokenPath": "path.[0]" } }, + { "path": "amountOut", "$ref": "$.display.definitions.receiveAmount", "params": { "tokenPath": "path.[-1]" } }, + { "path": "factory", "$ref": "$.display.definitions.factory" } + ], + "required": ["amountInMax", "amountOut"] + }, + "0xb2f1e6db": { + "$id": "buyOnUniswapV2Fork", + "intent": "Buy", + "fields": [ + { "path": "amountInMax", "$ref": "$.display.definitions.maxSendAmount", "params": { "tokenPath": "tokenIn" } }, + { "path": "amountOut", "label": "Amount to Receive", "format": "raw" }, + { "path": "pools.[-1]", "label": "Last pool", "format": "raw" } + ], + "required": ["amountInMax", "amountOut", "pools.[-1]"] + }, + "0x2941a712": { + "$id": "buyOnUniswapV2ForkWithPermit", + "intent": "Buy", + "fields": [ + { "path": "amountInMax", "$ref": "$.display.definitions.maxSendAmount", "params": { "tokenPath": "tokenIn" } }, + { "path": "amountOut", "label": "Amount to Receive", "format": "raw" }, + { "path": "pools.[-1]", "label": "Last pool", "format": "raw" } + ] + }, + "0xa94e78ef": { + "$id": "multiSwap", + "intent": "Swap", + "fields": [ + { "path": "data.fromAmount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "data.fromToken" } }, + { "path": "data.toAmount", "$ref": "$.display.definitions.minReceiveAmount", "params": { "tokenPath": "data.path.[-1].to" } }, + { "path": "data.beneficiary", "$ref": "$.display.definitions.beneficiary" } + ], + "required": ["data.fromAmount", "data.toAmount", "data.beneficiary"] + }, + "0x6b4109d3": { + "$id": "swapOnZeroXv4WithPermit", + "intent": "Swap", + "fields": [ + { "path": "fromAmount", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "fromToken" } }, + { "path": "amountOutMin", "$ref": "$.display.definitions.minReceiveAmount", "params": { "tokenPath": "toToken" } }, + { "path": "exchange", "$ref": "$.display.definitions.exchange" } + ], + "required": ["fromAmount", "amountOutMin", "exchange"] + }, + "0x6e91538b": { + "$id": "swapOnUniswapV2ForkWithPermit", + "intent": "Swap", + "fields": [ + { "path": "amountIn", "$ref": "$.display.definitions.sendAmount", "params": { "tokenPath": "tokenIn" } }, + { "path": "amountOutMin", "label": "Minimum to Receive", "format": "raw" }, + { "path": "pools.[-1]", "label": "Last pool", "format": "raw" } + ], + "required": [] + } } -} \ No newline at end of file + } +} diff --git a/registry/paraswap/eip712-paraswap.json b/registry/paraswap/eip712-paraswap.json index 5ee4dc66..48a0c9ce 100644 --- a/registry/paraswap/eip712-paraswap.json +++ b/registry/paraswap/eip712-paraswap.json @@ -3,85 +3,32 @@ "context": { "eip712": { "deployments": [ - { - "chainId": 1, - "address": "0xe92b586627cca7a83dc919cc7127196d70f55a06" - }, - { - "chainId": 10, - "address": "0x0927fd43a7a87e3e8b81df2c44b03c4756849f6d" - }, - { - "chainId": 56, - "address": "0x8dcdfe88ef0351f27437284d0710cd65b20288bb" - }, - { - "chainId": 137, - "address": "0xf3cd476c3c4d3ac5ca2724767f269070ca09a043" - }, - { - "chainId": 42161, - "address": "0x0927fd43a7a87e3e8b81df2c44b03c4756849f6d" - } + { "chainId": 1, "address": "0xe92b586627cca7a83dc919cc7127196d70f55a06" }, + { "chainId": 10, "address": "0x0927fd43a7a87e3e8b81df2c44b03c4756849f6d" }, + { "chainId": 56, "address": "0x8dcdfe88ef0351f27437284d0710cd65b20288bb" }, + { "chainId": 137, "address": "0xf3cd476c3c4d3ac5ca2724767f269070ca09a043" }, + { "chainId": 42161, "address": "0x0927fd43a7a87e3e8b81df2c44b03c4756849f6d" } ], - "domain": { - "name": "ParaSwap" - }, + "domain": { "name": "ParaSwap" }, "schemas": [ { "primaryType": "Order", "types": { "EIP712Domain": [ - { - "name": "name", - "type": "string" - }, - { - "name": "version", - "type": "string" - }, - { - "name": "chainId", - "type": "uint256" - }, - { - "name": "verifyingContract", - "type": "address" - } + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } ], "Order": [ - { - "name": "nonceAndMeta", - "type": "uint256" - }, - { - "name": "expiry", - "type": "uint128" - }, - { - "name": "makerAsset", - "type": "address" - }, - { - "name": "takerAsset", - "type": "address" - }, - { - "name": "maker", - "type": "address" - }, - { - "name": "taker", - "type": "address" - }, - { - "name": "makerAmount", - "type": "uint256" - }, - { - "name": "takerAmount", - "type": "uint256" - } + { "name": "nonceAndMeta", "type": "uint256" }, + { "name": "expiry", "type": "uint128" }, + { "name": "makerAsset", "type": "address" }, + { "name": "takerAsset", "type": "address" }, + { "name": "maker", "type": "address" }, + { "name": "taker", "type": "address" }, + { "name": "makerAmount", "type": "uint256" }, + { "name": "takerAmount", "type": "uint256" } ] } }, @@ -89,173 +36,57 @@ "primaryType": "OrderNFT", "types": { "EIP712Domain": [ - { - "name": "name", - "type": "string" - }, - { - "name": "version", - "type": "string" - }, - { - "name": "chainId", - "type": "uint256" - }, - { - "name": "verifyingContract", - "type": "address" - } + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } ], "OrderNFT": [ - { - "name": "nonceAndMeta", - "type": "uint256" - }, - { - "name": "expiry", - "type": "uint128" - }, - { - "name": "makerAsset", - "type": "uint256" - }, - { - "name": "makerAssetId", - "type": "uint256" - }, - { - "name": "takerAsset", - "type": "uint256" - }, - { - "name": "takerAssetId", - "type": "uint256" - }, - { - "name": "maker", - "type": "address" - }, - { - "name": "taker", - "type": "address" - }, - { - "name": "makerAmount", - "type": "uint256" - }, - { - "name": "takerAmount", - "type": "uint256" - } + { "name": "nonceAndMeta", "type": "uint256" }, + { "name": "expiry", "type": "uint128" }, + { "name": "makerAsset", "type": "uint256" }, + { "name": "makerAssetId", "type": "uint256" }, + { "name": "takerAsset", "type": "uint256" }, + { "name": "takerAssetId", "type": "uint256" }, + { "name": "maker", "type": "address" }, + { "name": "taker", "type": "address" }, + { "name": "makerAmount", "type": "uint256" }, + { "name": "takerAmount", "type": "uint256" } ] } } ] } }, - "metadata": { - "owner": "AugustusRFQ" - }, + "metadata": { "owner": "AugustusRFQ" }, "display": { "formats": { "Order": { "intent": "AugustusRFQ ERC20 order", "fields": [ - { - "path": "nonceAndMeta", - "label": "Nonce and metadata", - "format": "raw" - }, - { - "path": "expiry", - "label": "Expiration time", - "format": "raw" - }, - { - "path": "makerAsset", - "label": "Maker asset address", - "format": "raw" - }, - { - "path": "takerAsset", - "label": "Taker asset address", - "format": "raw" - }, - { - "path": "maker", - "label": "Maker address", - "format": "raw" - }, - { - "path": "taker", - "label": "Taker address", - "format": "raw" - }, - { - "path": "makerAmount", - "label": "Maker amount", - "format": "raw" - }, - { - "path": "takerAmount", - "label": "Taker amount", - "format": "raw" - } + { "path": "nonceAndMeta", "label": "Nonce and metadata", "format": "raw" }, + { "path": "expiry", "label": "Expiration time", "format": "raw" }, + { "path": "makerAsset", "label": "Maker asset address", "format": "raw" }, + { "path": "takerAsset", "label": "Taker asset address", "format": "raw" }, + { "path": "maker", "label": "Maker address", "format": "raw" }, + { "path": "taker", "label": "Taker address", "format": "raw" }, + { "path": "makerAmount", "label": "Maker amount", "format": "raw" }, + { "path": "takerAmount", "label": "Taker amount", "format": "raw" } ] }, "OrderNFT": { "intent": "AugustusRFQ NFT order", "fields": [ - { - "path": "nonceAndMeta", - "label": "Nonce and metadata", - "format": "raw" - }, - { - "path": "expiry", - "label": "Expiration time", - "format": "raw" - }, - { - "path": "makerAsset", - "label": "Maker asset encoded", - "format": "raw" - }, - { - "path": "makerAssetId", - "label": "Maker asset NFT ID", - "format": "raw" - }, - { - "path": "takerAsset", - "label": "Taker asset encoded", - "format": "raw" - }, - { - "path": "takerAssetId", - "label": "Taker asset NFT ID", - "format": "raw" - }, - { - "path": "maker", - "label": "Maker address", - "format": "raw" - }, - { - "path": "taker", - "label": "Taker address", - "format": "raw" - }, - { - "path": "makerAmount", - "label": "Maker amount", - "format": "raw" - }, - { - "path": "takerAmount", - "label": "Taker amount", - "format": "raw" - } + { "path": "nonceAndMeta", "label": "Nonce and metadata", "format": "raw" }, + { "path": "expiry", "label": "Expiration time", "format": "raw" }, + { "path": "makerAsset", "label": "Maker asset encoded", "format": "raw" }, + { "path": "makerAssetId", "label": "Maker asset NFT ID", "format": "raw" }, + { "path": "takerAsset", "label": "Taker asset encoded", "format": "raw" }, + { "path": "takerAssetId", "label": "Taker asset NFT ID", "format": "raw" }, + { "path": "maker", "label": "Maker address", "format": "raw" }, + { "path": "taker", "label": "Taker address", "format": "raw" }, + { "path": "makerAmount", "label": "Maker amount", "format": "raw" }, + { "path": "takerAmount", "label": "Taker amount", "format": "raw" } ] } } diff --git a/registry/permit/eip712-permit-arbitrum-arb.json b/registry/permit/eip712-permit-arbitrum-arb.json index 1bafb9d4..82e1608f 100644 --- a/registry/permit/eip712-permit-arbitrum-arb.json +++ b/registry/permit/eip712-permit-arbitrum-arb.json @@ -2,20 +2,9 @@ "includes": "../../ercs/eip712-erc2612-permit.json", "context": { "eip712": { - "deployments": [ - { - "chainId": 42161, - "address": "0x912ce59144191c1204e64559fe8253a0e49e6548" - } - ], - "domain": { - "name": "Permit", - "chainId": 42161, - "verifyingContract": "0x912ce59144191c1204e64559fe8253a0e49e6548" - } + "deployments": [{ "chainId": 42161, "address": "0x912ce59144191c1204e64559fe8253a0e49e6548" }], + "domain": { "name": "Permit", "chainId": 42161, "verifyingContract": "0x912ce59144191c1204e64559fe8253a0e49e6548" } } }, - "metadata": { - "owner": "Arbitrum" - } + "metadata": { "owner": "Arbitrum" } } diff --git a/registry/permit/eip712-permit-arbitrum-bridged-usdc.json b/registry/permit/eip712-permit-arbitrum-bridged-usdc.json index 5545f32c..bfc1c49e 100644 --- a/registry/permit/eip712-permit-arbitrum-bridged-usdc.json +++ b/registry/permit/eip712-permit-arbitrum-bridged-usdc.json @@ -2,20 +2,9 @@ "includes": "../../ercs/eip712-erc2612-permit.json", "context": { "eip712": { - "deployments": [ - { - "chainId": 42161, - "address": "0xff970a61a04b1ca14834a43f5de4533ebddb5cc8" - } - ], - "domain": { - "name": "Permit", - "chainId": 42161, - "verifyingContract": "0xff970a61a04b1ca14834a43f5de4533ebddb5cc8" - } + "deployments": [{ "chainId": 42161, "address": "0xff970a61a04b1ca14834a43f5de4533ebddb5cc8" }], + "domain": { "name": "Permit", "chainId": 42161, "verifyingContract": "0xff970a61a04b1ca14834a43f5de4533ebddb5cc8" } } }, - "metadata": { - "owner": "USDC (bridged)" - } + "metadata": { "owner": "USDC (bridged)" } } diff --git a/registry/permit/eip712-permit-avalanche_c_chain-pangolin.json b/registry/permit/eip712-permit-avalanche_c_chain-pangolin.json index c0647898..cb83c861 100644 --- a/registry/permit/eip712-permit-avalanche_c_chain-pangolin.json +++ b/registry/permit/eip712-permit-avalanche_c_chain-pangolin.json @@ -2,20 +2,9 @@ "includes": "../../ercs/eip712-erc2612-permit.json", "context": { "eip712": { - "deployments": [ - { - "chainId": 43114, - "address": "0x60781c2586d68229fde47564546784ab3faca982" - } - ], - "domain": { - "name": "Permit", - "chainId": 43114, - "verifyingContract": "0x60781c2586d68229fde47564546784ab3faca982" - } + "deployments": [{ "chainId": 43114, "address": "0x60781c2586d68229fde47564546784ab3faca982" }], + "domain": { "name": "Permit", "chainId": 43114, "verifyingContract": "0x60781c2586d68229fde47564546784ab3faca982" } } }, - "metadata": { - "owner": "Pangolin" - } + "metadata": { "owner": "Pangolin" } } diff --git a/registry/permit/eip712-permit-avalanche_c_chain-yetiswap.json b/registry/permit/eip712-permit-avalanche_c_chain-yetiswap.json index 2bab3a13..ab4a9341 100644 --- a/registry/permit/eip712-permit-avalanche_c_chain-yetiswap.json +++ b/registry/permit/eip712-permit-avalanche_c_chain-yetiswap.json @@ -1,21 +1,10 @@ { - "includes": "../../ercs/eip712-erc2612-permit.json", - "context": { + "includes": "../../ercs/eip712-erc2612-permit.json", + "context": { "eip712": { - "deployments": [ - { - "chainId": 43114, - "address": "0x488f73cddda1de3664775ffd91623637383d6404" - } - ], - "domain": { - "name": "Permit", - "chainId": 43114, - "verifyingContract": "0x488f73cddda1de3664775ffd91623637383d6404" - } + "deployments": [{ "chainId": 43114, "address": "0x488f73cddda1de3664775ffd91623637383d6404" }], + "domain": { "name": "Permit", "chainId": 43114, "verifyingContract": "0x488f73cddda1de3664775ffd91623637383d6404" } } }, - "metadata": { - "owner": "YetiSwap" - } + "metadata": { "owner": "YetiSwap" } } diff --git a/registry/permit/eip712-permit-bsc-1inch-token.json b/registry/permit/eip712-permit-bsc-1inch-token.json index cdf0c5d3..1ca6854b 100644 --- a/registry/permit/eip712-permit-bsc-1inch-token.json +++ b/registry/permit/eip712-permit-bsc-1inch-token.json @@ -2,20 +2,9 @@ "includes": "../../ercs/eip712-erc2612-permit.json", "context": { "eip712": { - "deployments": [ - { - "chainId": 56, - "address": "0x111111111117dc0aa78b770fa6a738034120c302" - } - ], - "domain": { - "name": "Permit", - "chainId": 56, - "verifyingContract": "0x111111111117dc0aa78b770fa6a738034120c302" - } + "deployments": [{ "chainId": 56, "address": "0x111111111117dc0aa78b770fa6a738034120c302" }], + "domain": { "name": "Permit", "chainId": 56, "verifyingContract": "0x111111111117dc0aa78b770fa6a738034120c302" } } }, - "metadata": { - "owner": "1INCH Token" - } + "metadata": { "owner": "1INCH Token" } } diff --git a/registry/permit/eip712-permit-bsc-polkastarter-token.json b/registry/permit/eip712-permit-bsc-polkastarter-token.json index a52cc958..520d57ac 100644 --- a/registry/permit/eip712-permit-bsc-polkastarter-token.json +++ b/registry/permit/eip712-permit-bsc-polkastarter-token.json @@ -2,20 +2,9 @@ "includes": "../../ercs/eip712-erc2612-permit.json", "context": { "eip712": { - "deployments": [ - { - "chainId": 56, - "address": "0x7e624fa0e1c4abfd309cc15719b7e2580887f570" - } - ], - "domain": { - "name": "Permit", - "chainId": 56, - "verifyingContract": "0x7e624fa0e1c4abfd309cc15719b7e2580887f570" - } + "deployments": [{ "chainId": 56, "address": "0x7e624fa0e1c4abfd309cc15719b7e2580887f570" }], + "domain": { "name": "Permit", "chainId": 56, "verifyingContract": "0x7e624fa0e1c4abfd309cc15719b7e2580887f570" } } }, - "metadata": { - "owner": "PolkastarterToken" - } + "metadata": { "owner": "PolkastarterToken" } } diff --git a/registry/permit/eip712-permit-ethereum-aave.json b/registry/permit/eip712-permit-ethereum-aave.json index 720d03ee..3e4bae1e 100644 --- a/registry/permit/eip712-permit-ethereum-aave.json +++ b/registry/permit/eip712-permit-ethereum-aave.json @@ -2,20 +2,9 @@ "includes": "../../ercs/eip712-erc2612-permit.json", "context": { "eip712": { - "deployments": [ - { - "chainId": 1, - "address": "0x7fc66500c84a76ad7e9c93437bfc5ac33e2ddae9" - } - ], - "domain": { - "name": "Permit", - "chainId": 1, - "verifyingContract": "0x7fc66500c84a76ad7e9c93437bfc5ac33e2ddae9" - } + "deployments": [{ "chainId": 1, "address": "0x7fc66500c84a76ad7e9c93437bfc5ac33e2ddae9" }], + "domain": { "name": "Permit", "chainId": 1, "verifyingContract": "0x7fc66500c84a76ad7e9c93437bfc5ac33e2ddae9" } } }, - "metadata": { - "owner": "Aave" - } + "metadata": { "owner": "Aave" } } diff --git a/registry/permit/eip712-permit-ethereum-dai.json b/registry/permit/eip712-permit-ethereum-dai.json index 4d0c9c85..50240691 100644 --- a/registry/permit/eip712-permit-ethereum-dai.json +++ b/registry/permit/eip712-permit-ethereum-dai.json @@ -2,20 +2,9 @@ "includes": "../../ercs/eip712-erc2612-permit.json", "context": { "eip712": { - "deployments": [ - { - "chainId": 1, - "address": "0x6b175474e89094c44da98b954eedeac495271d0f" - } - ], - "domain": { - "name": "Permit", - "chainId": 1, - "verifyingContract": "0x6b175474e89094c44da98b954eedeac495271d0f" - } + "deployments": [{ "chainId": 1, "address": "0x6b175474e89094c44da98b954eedeac495271d0f" }], + "domain": { "name": "Permit", "chainId": 1, "verifyingContract": "0x6b175474e89094c44da98b954eedeac495271d0f" } } }, - "metadata": { - "owner": "Dai Stablecoin v2.0" - } + "metadata": { "owner": "Dai Stablecoin v2.0" } } diff --git a/registry/permit/eip712-permit-ethereum-usdc.json b/registry/permit/eip712-permit-ethereum-usdc.json index 11661716..fb1d561e 100644 --- a/registry/permit/eip712-permit-ethereum-usdc.json +++ b/registry/permit/eip712-permit-ethereum-usdc.json @@ -2,20 +2,9 @@ "includes": "../../ercs/eip712-erc2612-permit.json", "context": { "eip712": { - "deployments": [ - { - "chainId": 1, - "address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48" - } - ], - "domain": { - "name": "Permit", - "chainId": 1, - "verifyingContract": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48" - } + "deployments": [{ "chainId": 1, "address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48" }], + "domain": { "name": "Permit", "chainId": 1, "verifyingContract": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48" } } }, - "metadata": { - "owner": "USDC" - } + "metadata": { "owner": "USDC" } } diff --git a/registry/permit/eip712-permit-fantom-mimatic.json b/registry/permit/eip712-permit-fantom-mimatic.json index 128dc33c..f36bf5f7 100644 --- a/registry/permit/eip712-permit-fantom-mimatic.json +++ b/registry/permit/eip712-permit-fantom-mimatic.json @@ -2,20 +2,9 @@ "includes": "../../ercs/eip712-erc2612-permit.json", "context": { "eip712": { - "deployments": [ - { - "chainId": 250, - "address": "0xfb98b335551a418cd0737375a2ea0ded62ea213b" - } - ], - "domain": { - "name": "Permit", - "chainId": 250, - "verifyingContract": "0xfb98b335551a418cd0737375a2ea0ded62ea213b" - } + "deployments": [{ "chainId": 250, "address": "0xfb98b335551a418cd0737375a2ea0ded62ea213b" }], + "domain": { "name": "Permit", "chainId": 250, "verifyingContract": "0xfb98b335551a418cd0737375a2ea0ded62ea213b" } } }, - "metadata": { - "owner": "miMATIC" - } + "metadata": { "owner": "miMATIC" } } diff --git a/registry/permit/eip712-permit-fantom-wootrade.json b/registry/permit/eip712-permit-fantom-wootrade.json index cc71920c..8b258fc3 100644 --- a/registry/permit/eip712-permit-fantom-wootrade.json +++ b/registry/permit/eip712-permit-fantom-wootrade.json @@ -2,20 +2,9 @@ "includes": "../../ercs/eip712-erc2612-permit.json", "context": { "eip712": { - "deployments": [ - { - "chainId": 250, - "address": "0x6626c47c00f1d87902fc13eecfac3ed06d5e8d8a" - } - ], - "domain": { - "name": "Permit", - "chainId": 250, - "verifyingContract": "0x6626c47c00f1d87902fc13eecfac3ed06d5e8d8a" - } + "deployments": [{ "chainId": 250, "address": "0x6626c47c00f1d87902fc13eecfac3ed06d5e8d8a" }], + "domain": { "name": "Permit", "chainId": 250, "verifyingContract": "0x6626c47c00f1d87902fc13eecfac3ed06d5e8d8a" } } }, - "metadata": { - "owner": "Wootrade Network" - } + "metadata": { "owner": "Wootrade Network" } } diff --git a/registry/permit/eip712-permit-optimism-bob.json b/registry/permit/eip712-permit-optimism-bob.json index a12ad3b1..cd946312 100644 --- a/registry/permit/eip712-permit-optimism-bob.json +++ b/registry/permit/eip712-permit-optimism-bob.json @@ -2,20 +2,9 @@ "includes": "../../ercs/eip712-erc2612-permit.json", "context": { "eip712": { - "deployments": [ - { - "chainId": 10, - "address": "0xb0b195aefa3650a6908f15cdac7d92f8a5791b0b" - } - ], - "domain": { - "name": "Permit", - "chainId": 10, - "verifyingContract": "0xb0b195aefa3650a6908f15cdac7d92f8a5791b0b" - } + "deployments": [{ "chainId": 10, "address": "0xb0b195aefa3650a6908f15cdac7d92f8a5791b0b" }], + "domain": { "name": "Permit", "chainId": 10, "verifyingContract": "0xb0b195aefa3650a6908f15cdac7d92f8a5791b0b" } } }, - "metadata": { - "owner": "BOB" - } + "metadata": { "owner": "BOB" } } diff --git a/registry/permit/eip712-permit-optimism-op.json b/registry/permit/eip712-permit-optimism-op.json index a34dd30d..be45c7b5 100644 --- a/registry/permit/eip712-permit-optimism-op.json +++ b/registry/permit/eip712-permit-optimism-op.json @@ -2,20 +2,9 @@ "includes": "../../ercs/eip712-erc2612-permit.json", "context": { "eip712": { - "deployments": [ - { - "chainId": 10, - "address": "0x4200000000000000000000000000000000000042" - } - ], - "domain": { - "name": "Permit", - "chainId": 10, - "verifyingContract": "0x4200000000000000000000000000000000000042" - } + "deployments": [{ "chainId": 10, "address": "0x4200000000000000000000000000000000000042" }], + "domain": { "name": "Permit", "chainId": 10, "verifyingContract": "0x4200000000000000000000000000000000000042" } } }, - "metadata": { - "owner": "Optimism" - } + "metadata": { "owner": "Optimism" } } diff --git a/registry/permit/eip712-permit-polygon-aave-dai.json b/registry/permit/eip712-permit-polygon-aave-dai.json index a3e8e342..2244a8f5 100644 --- a/registry/permit/eip712-permit-polygon-aave-dai.json +++ b/registry/permit/eip712-permit-polygon-aave-dai.json @@ -2,20 +2,9 @@ "includes": "../../ercs/eip712-erc2612-permit.json", "context": { "eip712": { - "deployments": [ - { - "chainId": 137, - "address": "0x27f8d03b3a2196956ed754badc28d73be8830a6e" - } - ], - "domain": { - "name": "Permit", - "chainId": 137, - "verifyingContract": "0x27f8d03b3a2196956ed754badc28d73be8830a6e" - } + "deployments": [{ "chainId": 137, "address": "0x27f8d03b3a2196956ed754badc28d73be8830a6e" }], + "domain": { "name": "Permit", "chainId": 137, "verifyingContract": "0x27f8d03b3a2196956ed754badc28d73be8830a6e" } } }, - "metadata": { - "owner": "Aave Matic Market DAI" - } + "metadata": { "owner": "Aave Matic Market DAI" } } diff --git a/registry/permit/eip712-permit-polygon-aave-weth.json b/registry/permit/eip712-permit-polygon-aave-weth.json index 0c2fe5de..899b9af8 100644 --- a/registry/permit/eip712-permit-polygon-aave-weth.json +++ b/registry/permit/eip712-permit-polygon-aave-weth.json @@ -2,20 +2,9 @@ "includes": "../../ercs/eip712-erc2612-permit.json", "context": { "eip712": { - "deployments": [ - { - "chainId": 137, - "address": "0x28424507fefb6f7f8e9d3860f56504e4e5f5f390" - } - ], - "domain": { - "name": "Permit", - "chainId": 137, - "verifyingContract": "0x28424507fefb6f7f8e9d3860f56504e4e5f5f390" - } + "deployments": [{ "chainId": 137, "address": "0x28424507fefb6f7f8e9d3860f56504e4e5f5f390" }], + "domain": { "name": "Permit", "chainId": 137, "verifyingContract": "0x28424507fefb6f7f8e9d3860f56504e4e5f5f390" } } }, - "metadata": { - "owner": "Aave Matic Market WETH" - } + "metadata": { "owner": "Aave Matic Market WETH" } } diff --git a/registry/poap/calldata-PoapBridge.json b/registry/poap/calldata-PoapBridge.json index 05b4f5ff..958d0ccd 100644 --- a/registry/poap/calldata-PoapBridge.json +++ b/registry/poap/calldata-PoapBridge.json @@ -1,63 +1,32 @@ { - "$schema": "../../specs/erc7730-v1.schema.json", - - "context": { - "$id": "Poap Bridge contract", - "contract": { - "abi": "https://api.etherscan.io/api?module=contract&action=getabi&address=0x0bb4d3e88243f4a057db77341e6916b0e449b158", - "deployments": [ - { - "chainId": 1, - "address": "0x0bb4d3e88243f4a057db77341e6916b0e449b158" - } - ] - } - }, - - "metadata": { - "owner": "POAP", - "info": { - "url": "https://poap.xyz/", - "legalName": "Proof of Attendance Protocol", - "lastUpdate": "2022-03-03T17:56:02Z" - } - }, - - "display": { - "formats": { - "mintToken(uint256 eventId, uint256 tokenId, address receiver, uint256 expirationTime, bytes signature)" : { - "intent": "Mint POAP", - "fields": [ - { - "path": "tokenId", - "label": "Token", - "format": "raw" - }, - { - "path": "receiver", - "label": "Beneficiary", - "format": "addressName", - "params": { - "types": [ - "eoa" - ], - "sources": [ - "local", - "ens" - ] - } - }, - { - "path": "expirationTime", - "label": "Expiration time", - "format": "date", - "params": { - "encoding": "timestamp" - } - } - ], - "required": ["tokenId", "recipient"] - } - } + "$schema": "../../specs/erc7730-v1.schema.json", + "context": { + "$id": "Poap Bridge contract", + "contract": { + "abi": "https://api.etherscan.io/api?module=contract&action=getabi&address=0x0bb4d3e88243f4a057db77341e6916b0e449b158", + "deployments": [{ "chainId": 1, "address": "0x0bb4d3e88243f4a057db77341e6916b0e449b158" }] } -} \ No newline at end of file + }, + "metadata": { + "owner": "POAP", + "info": { "url": "https://poap.xyz/", "legalName": "Proof of Attendance Protocol", "lastUpdate": "2022-03-03T17:56:02Z" } + }, + "display": { + "formats": { + "mintToken(uint256 eventId, uint256 tokenId, address receiver, uint256 expirationTime, bytes signature)": { + "intent": "Mint POAP", + "fields": [ + { "path": "tokenId", "label": "Token", "format": "raw" }, + { + "path": "receiver", + "label": "Beneficiary", + "format": "addressName", + "params": { "types": ["eoa"], "sources": ["local", "ens"] } + }, + { "path": "expirationTime", "label": "Expiration time", "format": "date", "params": { "encoding": "timestamp" } } + ], + "required": ["tokenId", "recipient"] + } + } + } +} diff --git a/registry/quickswap/calldata-QuickSwap.json b/registry/quickswap/calldata-QuickSwap.json index 381229ef..516a4188 100644 --- a/registry/quickswap/calldata-QuickSwap.json +++ b/registry/quickswap/calldata-QuickSwap.json @@ -1,690 +1,183 @@ { - "context": { - "$id": "QuickSwap", - "contract": { - "deployments": [ - { - "chainId": 1, - "address": "0xa5E0829CaCEd8fFDD4De3c43696c57F7D7A678ff" - } - ], - "abi": "https://github.com/LedgerHQ/ledger-asset-dapps/blob/211e75ed27de3894f592ca73710fa0b72c3ceeae/polygon/quickswap/abis/0xa5e0829caced8ffdd4de3c43696c57f7d7a678ff.abi.json" - } - }, - - "metadata": { - "owner": "QuickSwap", - "info": { - "legalName": "QuickSwap", - "lastUpdate": "2024-10-01T00:00:00Z", - "url": "https://quickswap.exchange" - } - }, - - "display": { - "formats": { - "0x38ed1739": { - "$id": "swapExactTokensForTokens", - "intent": "Swap", - "fields": [ - { - "path": "amountIn", - "label": "Amount to Send", - "format": "tokenAmount", - "params": { - "tokenPath": "path.[0]" - } - }, - { - "path": "amountOutMin", - "label": "Minimum amount to Receive", - "format": "tokenAmount", - "params": { - "tokenPath": "path.[1]" - } - }, - { - "path": "to", - "label": "Beneficiary", - "format": "addressName", - "params": { - "types": [ - "eoa" - ], - "sources": [ - "local", - "ens" - ] - } - }, - { - "path": "deadline", - "label": "Deadline", - "format": "date", - "params": { - "encoding": "timestamp" - } - } - ], - "required": ["amountIn", "amountOutMin", "to"] - }, - "0x18cbafe5": { - "$id": "swapExactTokensForETH", - "intent": "Swap", - "fields": [ - { - "path": "amountIn", - "label": "Amount to Send", - "format": "tokenAmount", - "params": { - "tokenPath": "path.[0]" - } - }, - { - "path": "amountOutMin", - "label": "Minimum amount to Receive", - "format": "amount" - }, - { - "path": "to", - "label": "Beneficiary", - "format": "addressName", - "params": { - "types": [ - "eoa" - ], - "sources": [ - "local", - "ens" - ] - } - }, - { - "path": "deadline", - "label": "Deadline", - "format": "date", - "params": { - "encoding": "timestamp" - } - } - ], - "required": ["amountIn", "amountOutMin", "to"] - }, - "0x7ff36ab5": { - "$id": "swapExactETHForTokens", - "intent": "Swap", - "fields": [ - { - "path": "amountOutMin", - "label": "Minimum amount to Receive", - "format": "tokenAmount", - "params": { - "tokenPath": "path.[1]" - } - }, - { - "path": "to", - "label": "Beneficiary", - "format": "addressName", - "params": { - "types": [ - "eoa" - ], - "sources": [ - "local", - "ens" - ] - } - }, - { - "path": "deadline", - "label": "Deadline", - "format": "date", - "params": { - "encoding": "timestamp" - } - } - ], - "required": ["amountOutMin", "to"] - }, - "0x8803dbee": { - "$id": "swapTokensForExactTokens", - "intent": "Swap", - "fields": [ - { - "path": "amountOut", - "label": "Amount to Receive", - "format": "tokenAmount", - "params": { - "tokenPath": "path.[1]" - } - }, - { - "path": "amountInMax", - "label": "Maximum Amount to Send", - "format": "tokenAmount", - "params": { - "tokenPath": "path.[0]" - } - }, - { - "path": "to", - "label": "Beneficiary", - "format": "addressName", - "params": { - "types": [ - "eoa" - ], - "sources": [ - "local", - "ens" - ] - } - }, - { - "path": "deadline", - "label": "Deadline", - "format": "date", - "params": { - "encoding": "timestamp" - } - } - ], - "required": ["amountOut", "amountInMax", "to"] - }, - "0x5c11d795": { - "$id": "swapExactTokensForTokensSupportingFeeOnTransferTokens", - "intent": "Swap", - "fields": [ - { - "path": "amountIn", - "label": "Amount to Send", - "format": "tokenAmount", - "params": { - "tokenPath": "path.[0]" - } - }, - { - "path": "amountOutMin", - "label": "Minimum amount to Receive", - "format": "tokenAmount", - "params": { - "tokenPath": "path.[1]" - } - }, - { - "path": "to", - "label": "Beneficiary", - "format": "addressName", - "params": { - "types": [ - "eoa" - ], - "sources": [ - "local", - "ens" - ] - } - }, - { - "path": "deadline", - "label": "Deadline", - "format": "date", - "params": { - "encoding": "timestamp" - } - } - ], - "required": ["amountIn", "amountOutMin", "to"] - }, - "0x4a25d94a": { - "$id": "swapTokensForExactETH", - "intent": "Swap", - "fields": [ - { - "path": "amountOut", - "label": "Amount to Receive", - "format": "amount" - }, - { - "path": "amountInMax", - "label": "Maximum Amount to Send", - "format": "tokenAmount", - "params": { - "tokenPath": "path.[0]" - } - }, - { - "path": "to", - "label": "Beneficiary", - "format": "addressName", - "params": { - "types": [ - "eoa" - ], - "sources": [ - "local", - "ens" - ] - } - }, - { - "path": "deadline", - "label": "Deadline", - "format": "date", - "params": { - "encoding": "timestamp" - } - } - ], - "required": ["amountOut", "amountInMax", "to"] - }, - "0xb6f9de95": { - "$id": "swapExactETHForTokensSupportingFeeOnTransferTokens", - "intent": "Swap", - "fields": [ - { - "path": "amountOutMin", - "label": "Minimum amount to Receive", - "format": "tokenAmount", - "params": { - "tokenPath": "path.[1]" - } - }, - { - "path": "to", - "label": "Beneficiary", - "format": "addressName", - "params": { - "types": [ - "eoa" - ], - "sources": [ - "local", - "ens" - ] - } - }, - { - "path": "deadline", - "label": "Deadline", - "format": "date", - "params": { - "encoding": "timestamp" - } - } - ], - "required": ["amountOutMin", "to"] - }, - "0xe8e33700": { - "$id": "addLiquidity", - "intent": "Add Liquidity", - "fields": [ - { - "path": "amountADesired", - "label": "Desired amount", - "format": "tokenAmount", - "params": { - "tokenPath": "tokenA" - } - }, - { - "path": "amountAMin", - "label": "Minimum amount", - "format": "tokenAmount", - "params": { - "tokenPath": "tokenA" - } - }, - { - "path": "amountBDesired", - "label": "Desired amount", - "format": "tokenAmount", - "params": { - "tokenPath": "tokenB" - } - }, - { - "path": "amountBMin", - "label": "Minimum amount", - "format": "tokenAmount", - "params": { - "tokenPath": "tokenB" - } - }, - { - "path": "to", - "label": "Beneficiary", - "format": "addressName", - "params": { - "types": [ - "eoa" - ], - "sources": [ - "local", - "ens" - ] - } - }, - { - "path": "deadline", - "label": "Deadline", - "format": "date", - "params": { - "encoding": "timestamp" - } - } - ], - "required": ["amountADesired", "amountAMin", "amountBDesired", "amountBMin", "to"] - }, - "0xf305d719": { - "$id": "addLiquidityETH", - "intent": "Add Liquidity", - "fields": [ - { - "path": "amountTokenDesired", - "label": "Desired amount", - "format": "tokenAmount", - "params": { - "tokenPath": "token" - } - }, - { - "path": "amountTokenMin", - "label": "Minimum amount", - "format": "tokenAmount", - "params": { - "tokenPath": "token" - } - }, - { - "path": "amountETHMin", - "label": "Minimum amount", - "format": "amount" - }, - { - "path": "to", - "label": "Beneficiary", - "format": "addressName", - "params": { - "types": [ - "eoa" - ], - "sources": [ - "local", - "ens" - ] - } - }, - { - "path": "deadline", - "label": "Deadline", - "format": "date", - "params": { - "encoding": "timestamp" - } - } - ], - "required": ["amountTokenDesired", "amountTokenMin", "amountETHMin", "to"] - }, - "0xbaa2abde": { - "$id": "removeLiquidity", - "intent": "Remove Liquidity", - "fields": [ - { - "path": "amountAMin", - "label": "Minimum amount", - "format": "tokenAmount", - "params": { - "tokenPath": "tokenA" - } - }, - { - "path": "amountBMin", - "label": "Minimum amount", - "format": "tokenAmount", - "params": { - "tokenPath": "tokenB" - } - }, - { - "path": "to", - "label": "Beneficiary", - "format": "addressName", - "params": { - "types": [ - "eoa" - ], - "sources": [ - "local", - "ens" - ] - } - }, - { - "path": "deadline", - "label": "Deadline", - "format": "date", - "params": { - "encoding": "timestamp" - } - } - ], - "required": ["amountAMin", "amountBMin", "to"] - }, - "0x02751cec": { - "$id": "removeLiquidityETH", - "intent": "Remove Liquidity", - "fields": [ - { - "path": "amountTokenMin", - "label": "Minimum amount", - "format": "tokenAmount", - "params": { - "tokenPath": "token" - } - }, - { - "path": "amountETHMin", - "label": "Minimum amount", - "format": "tokenAmount" - }, - { - "path": "to", - "label": "Beneficiary", - "format": "addressName", - "params": { - "types": [ - "eoa" - ], - "sources": [ - "local", - "ens" - ] - } - }, - { - "path": "deadline", - "label": "Deadline", - "format": "date", - "params": { - "encoding": "timestamp" - } - } - ], - "required": ["amountTokenMin", "amountETHMin", "to"] - }, - "0x2195995c": { - "$id": "removeLiquidityWithPermit", - "intent": "Remove Liquidity", - "fields": [ - { - "path": "amountAMin", - "label": "Minimum amount", - "format": "tokenAmount", - "params": { - "tokenPath": "tokenA" - } - }, - { - "path": "amountBMin", - "label": "Minimum amount", - "format": "tokenAmount", - "params": { - "tokenPath": "tokenB" - } - }, - { - "path": "to", - "label": "Beneficiary", - "format": "addressName", - "params": { - "types": [ - "eoa" - ], - "sources": [ - "local", - "ens" - ] - } - }, - { - "path": "deadline", - "label": "Deadline", - "format": "date", - "params": { - "encoding": "timestamp" - } - } - ], - "required": ["amountAMin", "amountBMin", "to"] - }, - "0xded9382a": { - "$id": "removeLiquidityETHWithPermit", - "intent": "Remove Liquidity", - "fields": [ - { - "path": "amountTokenMin", - "label": "Minimum amount", - "format": "tokenAmount", - "params": { - "tokenPath": "token" - } - }, - { - "path": "amountETHMin", - "label": "Minimum amount", - "format": "tokenAmount" - }, - { - "path": "to", - "label": "Beneficiary", - "format": "addressName", - "params": { - "types": [ - "eoa" - ], - "sources": [ - "local", - "ens" - ] - } - }, - { - "path": "deadline", - "label": "Deadline", - "format": "date", - "params": { - "encoding": "timestamp" - } - } - ], - "required": ["amountTokenMin", "amountETHMin", "to"] - }, - "0xaf2979eb": { - "$id": "removeLiquidityETHSupportingFeeOnTransferTokens", - "intent": "Remove Liquidity", - "fields": [ - { - "path": "amountTokenMin", - "label": "Minimum amount", - "format": "tokenAmount", - "params": { - "tokenPath": "token" - } - }, - { - "path": "amountETHMin", - "label": "Minimum amount", - "format": "amount" - }, - { - "path": "to", - "label": "Beneficiary", - "format": "addressName", - "params": { - "types": [ - "eoa" - ], - "sources": [ - "local", - "ens" - ] - } - }, - { - "path": "deadline", - "label": "Deadline", - "format": "date", - "params": { - "encoding": "timestamp" - } - } - ], - "required": ["amountTokenMin", "amountETHMin", "to"] - }, - "0x5b0d5984": { - "$id": "removeLiquidityETHWithPermitSupportingFeeOnTransferTokens", - "intent": "Remove Liquidity", - "fields": [ - { - "path": "amountTokenMin", - "label": "Minimum amount", - "format": "tokenAmount", - "params": { - "tokenPath": "token" - } - }, - { - "path": "amountETHMin", - "label": "Minimum amount", - "format": "amount" - }, - { - "path": "to", - "label": "Beneficiary", - "format": "addressName", - "params": { - "types": [ - "eoa" - ], - "sources": [ - "local", - "ens" - ] - } - }, - { - "path": "deadline", - "label": "Deadline", - "format": "date", - "params": { - "encoding": "timestamp" - } - } - ], - "required": ["amountTokenMin", "amountETHMin", "to"] - } - } + "context": { + "$id": "QuickSwap", + "contract": { + "deployments": [{ "chainId": 137, "address": "0xa5E0829CaCEd8fFDD4De3c43696c57F7D7A678ff" }], + "abi": "https://github.com/LedgerHQ/ledger-asset-dapps/blob/211e75ed27de3894f592ca73710fa0b72c3ceeae/polygon/quickswap/abis/0xa5e0829caced8ffdd4de3c43696c57f7d7a678ff.abi.json" } -} \ No newline at end of file + }, + "metadata": { + "owner": "QuickSwap", + "info": { "legalName": "QuickSwap", "lastUpdate": "2024-10-01T00:00:00Z", "url": "https://quickswap.exchange" } + }, + "display": { + "formats": { + "0x38ed1739": { + "$id": "swapExactTokensForTokens", + "intent": "Swap", + "fields": [ + { "path": "amountIn", "label": "Amount to Send", "format": "tokenAmount", "params": { "tokenPath": "path.[0]" } }, + { "path": "amountOutMin", "label": "Minimum to Receive", "format": "tokenAmount", "params": { "tokenPath": "path.[1]" } }, + { "path": "to", "label": "Beneficiary", "format": "addressName", "params": { "types": ["eoa"], "sources": ["local", "ens"] } }, + { "path": "deadline", "label": "Deadline", "format": "date", "params": { "encoding": "timestamp" } } + ], + "required": ["amountIn", "amountOutMin", "to"] + }, + "0x18cbafe5": { + "$id": "swapExactTokensForETH", + "intent": "Swap", + "fields": [ + { "path": "amountIn", "label": "Amount to Send", "format": "tokenAmount", "params": { "tokenPath": "path.[0]" } }, + { "path": "amountOutMin", "label": "Minimum to Receive", "format": "amount" }, + { "path": "to", "label": "Beneficiary", "format": "addressName", "params": { "types": ["eoa"], "sources": ["local", "ens"] } }, + { "path": "deadline", "label": "Deadline", "format": "date", "params": { "encoding": "timestamp" } } + ], + "required": ["amountIn", "amountOutMin", "to"] + }, + "0x7ff36ab5": { + "$id": "swapExactETHForTokens", + "intent": "Swap", + "fields": [ + { "path": "amountOutMin", "label": "Minimum to Receive", "format": "tokenAmount", "params": { "tokenPath": "path.[1]" } }, + { "path": "to", "label": "Beneficiary", "format": "addressName", "params": { "types": ["eoa"], "sources": ["local", "ens"] } }, + { "path": "deadline", "label": "Deadline", "format": "date", "params": { "encoding": "timestamp" } } + ], + "required": ["amountOutMin", "to"] + }, + "0x8803dbee": { + "$id": "swapTokensForExactTokens", + "intent": "Swap", + "fields": [ + { "path": "amountOut", "label": "Amount to Receive", "format": "tokenAmount", "params": { "tokenPath": "path.[1]" } }, + { "path": "amountInMax", "label": "Maximum to Send", "format": "tokenAmount", "params": { "tokenPath": "path.[0]" } }, + { "path": "to", "label": "Beneficiary", "format": "addressName", "params": { "types": ["eoa"], "sources": ["local", "ens"] } }, + { "path": "deadline", "label": "Deadline", "format": "date", "params": { "encoding": "timestamp" } } + ], + "required": ["amountOut", "amountInMax", "to"] + }, + "0x5c11d795": { + "$id": "swapExactTokensForTokensSupportingFeeOnTransferTokens", + "intent": "Swap", + "fields": [ + { "path": "amountIn", "label": "Amount to Send", "format": "tokenAmount", "params": { "tokenPath": "path.[0]" } }, + { "path": "amountOutMin", "label": "Minimum to Receive", "format": "tokenAmount", "params": { "tokenPath": "path.[1]" } }, + { "path": "to", "label": "Beneficiary", "format": "addressName", "params": { "types": ["eoa"], "sources": ["local", "ens"] } }, + { "path": "deadline", "label": "Deadline", "format": "date", "params": { "encoding": "timestamp" } } + ], + "required": ["amountIn", "amountOutMin", "to"] + }, + "0x4a25d94a": { + "$id": "swapTokensForExactETH", + "intent": "Swap", + "fields": [ + { "path": "amountOut", "label": "Amount to Receive", "format": "amount" }, + { "path": "amountInMax", "label": "Maximum to Send", "format": "tokenAmount", "params": { "tokenPath": "path.[0]" } }, + { "path": "to", "label": "Beneficiary", "format": "addressName", "params": { "types": ["eoa"], "sources": ["local", "ens"] } }, + { "path": "deadline", "label": "Deadline", "format": "date", "params": { "encoding": "timestamp" } } + ], + "required": ["amountOut", "amountInMax", "to"] + }, + "0xb6f9de95": { + "$id": "swapExactETHForTokensSupportingFeeOnTransferTokens", + "intent": "Swap", + "fields": [ + { "path": "amountOutMin", "label": "Minimum to Receive", "format": "tokenAmount", "params": { "tokenPath": "path.[1]" } }, + { "path": "to", "label": "Beneficiary", "format": "addressName", "params": { "types": ["eoa"], "sources": ["local", "ens"] } }, + { "path": "deadline", "label": "Deadline", "format": "date", "params": { "encoding": "timestamp" } } + ], + "required": ["amountOutMin", "to"] + }, + "0xe8e33700": { + "$id": "addLiquidity", + "intent": "Add Liquidity", + "fields": [ + { "path": "amountADesired", "label": "Desired amount", "format": "tokenAmount", "params": { "tokenPath": "tokenA" } }, + { "path": "amountAMin", "label": "Minimum amount", "format": "tokenAmount", "params": { "tokenPath": "tokenA" } }, + { "path": "amountBDesired", "label": "Desired amount", "format": "tokenAmount", "params": { "tokenPath": "tokenB" } }, + { "path": "amountBMin", "label": "Minimum amount", "format": "tokenAmount", "params": { "tokenPath": "tokenB" } }, + { "path": "to", "label": "Beneficiary", "format": "addressName", "params": { "types": ["eoa"], "sources": ["local", "ens"] } }, + { "path": "deadline", "label": "Deadline", "format": "date", "params": { "encoding": "timestamp" } } + ], + "required": ["amountADesired", "amountAMin", "amountBDesired", "amountBMin", "to"] + }, + "0xf305d719": { + "$id": "addLiquidityETH", + "intent": "Add Liquidity", + "fields": [ + { "path": "amountTokenDesired", "label": "Desired amount", "format": "tokenAmount", "params": { "tokenPath": "token" } }, + { "path": "amountTokenMin", "label": "Minimum amount", "format": "tokenAmount", "params": { "tokenPath": "token" } }, + { "path": "amountETHMin", "label": "Minimum amount", "format": "amount" }, + { "path": "to", "label": "Beneficiary", "format": "addressName", "params": { "types": ["eoa"], "sources": ["local", "ens"] } }, + { "path": "deadline", "label": "Deadline", "format": "date", "params": { "encoding": "timestamp" } } + ], + "required": ["amountTokenDesired", "amountTokenMin", "amountETHMin", "to"] + }, + "0xbaa2abde": { + "$id": "removeLiquidity", + "intent": "Remove Liquidity", + "fields": [ + { "path": "amountAMin", "label": "Minimum amount", "format": "tokenAmount", "params": { "tokenPath": "tokenA" } }, + { "path": "amountBMin", "label": "Minimum amount", "format": "tokenAmount", "params": { "tokenPath": "tokenB" } }, + { "path": "to", "label": "Beneficiary", "format": "addressName", "params": { "types": ["eoa"], "sources": ["local", "ens"] } }, + { "path": "deadline", "label": "Deadline", "format": "date", "params": { "encoding": "timestamp" } } + ], + "required": ["amountAMin", "amountBMin", "to"] + }, + "0x02751cec": { + "$id": "removeLiquidityETH", + "intent": "Remove Liquidity", + "fields": [ + { "path": "amountTokenMin", "label": "Minimum amount", "format": "tokenAmount", "params": { "tokenPath": "token" } }, + { "path": "amountETHMin", "label": "Minimum amount", "format": "tokenAmount" }, + { "path": "to", "label": "Beneficiary", "format": "addressName", "params": { "types": ["eoa"], "sources": ["local", "ens"] } }, + { "path": "deadline", "label": "Deadline", "format": "date", "params": { "encoding": "timestamp" } } + ], + "required": ["amountTokenMin", "amountETHMin", "to"] + }, + "0x2195995c": { + "$id": "removeLiquidityWithPermit", + "intent": "Remove Liquidity", + "fields": [ + { "path": "amountAMin", "label": "Minimum amount", "format": "tokenAmount", "params": { "tokenPath": "tokenA" } }, + { "path": "amountBMin", "label": "Minimum amount", "format": "tokenAmount", "params": { "tokenPath": "tokenB" } }, + { "path": "to", "label": "Beneficiary", "format": "addressName", "params": { "types": ["eoa"], "sources": ["local", "ens"] } }, + { "path": "deadline", "label": "Deadline", "format": "date", "params": { "encoding": "timestamp" } } + ], + "required": ["amountAMin", "amountBMin", "to"] + }, + "0xded9382a": { + "$id": "removeLiquidityETHWithPermit", + "intent": "Remove Liquidity", + "fields": [ + { "path": "amountTokenMin", "label": "Minimum amount", "format": "tokenAmount", "params": { "tokenPath": "token" } }, + { "path": "amountETHMin", "label": "Minimum amount", "format": "tokenAmount" }, + { "path": "to", "label": "Beneficiary", "format": "addressName", "params": { "types": ["eoa"], "sources": ["local", "ens"] } }, + { "path": "deadline", "label": "Deadline", "format": "date", "params": { "encoding": "timestamp" } } + ], + "required": ["amountTokenMin", "amountETHMin", "to"] + }, + "0xaf2979eb": { + "$id": "removeLiquidityETHSupportingFeeOnTransferTokens", + "intent": "Remove Liquidity", + "fields": [ + { "path": "amountTokenMin", "label": "Minimum amount", "format": "tokenAmount", "params": { "tokenPath": "token" } }, + { "path": "amountETHMin", "label": "Minimum amount", "format": "amount" }, + { "path": "to", "label": "Beneficiary", "format": "addressName", "params": { "types": ["eoa"], "sources": ["local", "ens"] } }, + { "path": "deadline", "label": "Deadline", "format": "date", "params": { "encoding": "timestamp" } } + ], + "required": ["amountTokenMin", "amountETHMin", "to"] + }, + "0x5b0d5984": { + "$id": "removeLiquidityETHWithPermitSupportingFeeOnTransferTokens", + "intent": "Remove Liquidity", + "fields": [ + { "path": "amountTokenMin", "label": "Minimum amount", "format": "tokenAmount", "params": { "tokenPath": "token" } }, + { "path": "amountETHMin", "label": "Minimum amount", "format": "amount" }, + { "path": "to", "label": "Beneficiary", "format": "addressName", "params": { "types": ["eoa"], "sources": ["local", "ens"] } }, + { "path": "deadline", "label": "Deadline", "format": "date", "params": { "encoding": "timestamp" } } + ], + "required": ["amountTokenMin", "amountETHMin", "to"] + } + } + } +} diff --git a/registry/rarible/eip712-rarible-erc-1155.json b/registry/rarible/eip712-rarible-erc-1155.json index abaa4664..c7585cdd 100644 --- a/registry/rarible/eip712-rarible-erc-1155.json +++ b/registry/rarible/eip712-rarible-erc-1155.json @@ -2,101 +2,38 @@ "$schema": "../../specs/erc7730-v1.schema.json", "context": { "eip712": { - "deployments": [ - { - "chainId": 1, - "address": "0xb66a603f4cfe17e3d27b87a8bfcad319856518b8" - } - ], - "domain": { - "name": "Rarible", - "chainId": 1, - "verifyingContract": "0xb66a603f4cfe17e3d27b87a8bfcad319856518b8" - }, + "deployments": [{ "chainId": 1, "address": "0xb66a603f4cfe17e3d27b87a8bfcad319856518b8" }], + "domain": { "name": "Rarible", "chainId": 1, "verifyingContract": "0xb66a603f4cfe17e3d27b87a8bfcad319856518b8" }, "schemas": [ { "primaryType": "Mint1155", "types": { "Mint1155": [ - { - "name": "tokenId", - "type": "uint256" - }, - { - "name": "supply", - "type": "uint256" - }, - { - "name": "tokenURI", - "type": "string" - }, - { - "name": "creators", - "type": "Part[]" - }, - { - "name": "royalties", - "type": "Part[]" - } + { "name": "tokenId", "type": "uint256" }, + { "name": "supply", "type": "uint256" }, + { "name": "tokenURI", "type": "string" }, + { "name": "creators", "type": "Part[]" }, + { "name": "royalties", "type": "Part[]" } ], - "Part": [ - { - "name": "account", - "type": "address" - }, - { - "name": "value", - "type": "uint96" - } - ] + "Part": [{ "name": "account", "type": "address" }, { "name": "value", "type": "uint96" }] } } ] } }, - "metadata": { - "owner": "Rarible ERC-1155 Collection" - }, + "metadata": { "owner": "Rarible ERC-1155 Collection" }, "display": { "formats": { "Mint1155": { "intent": "Lazy Mint ERC-1155", "fields": [ - { - "path": "tokenId", - "label": "Token ID", - "format": "raw" - }, - { - "path": "tokenURI", - "label": "Token URI", - "format": "raw" - }, - { - "path": "supply", - "label": "Token Supply", - "format": "raw" - }, - { - "path": "creators.[].account", - "label": "Creator account address", - "format": "raw" - }, - { - "path": "creators.[].value", - "label": "Creator value (10000 = 100%)", - "format": "raw" - }, - { - "path": "royalties.[].account", - "label": "Royalties account address", - "format": "raw" - }, - { - "path": "royalties.[].value", - "label": "Royalties value (10000 = 100%)", - "format": "raw" - } + { "path": "tokenId", "label": "Token ID", "format": "raw" }, + { "path": "tokenURI", "label": "Token URI", "format": "raw" }, + { "path": "supply", "label": "Token Supply", "format": "raw" }, + { "path": "creators.[].account", "label": "Creator account address", "format": "raw" }, + { "path": "creators.[].value", "label": "Creator value (10000 = 100%)", "format": "raw" }, + { "path": "royalties.[].account", "label": "Royalties account address", "format": "raw" }, + { "path": "royalties.[].value", "label": "Royalties value (10000 = 100%)", "format": "raw" } ] } } diff --git a/registry/rarible/eip712-rarible-erc-721.json b/registry/rarible/eip712-rarible-erc-721.json index d8c50b1a..5a1fa851 100644 --- a/registry/rarible/eip712-rarible-erc-721.json +++ b/registry/rarible/eip712-rarible-erc-721.json @@ -2,92 +2,36 @@ "$schema": "../../specs/erc7730-v1.schema.json", "context": { "eip712": { - "deployments": [ - { - "chainId": 1, - "address": "0xc9154424b823b10579895ccbe442d41b9abd96ed" - } - ], - "domain": { - "name": "Rarible", - "chainId": 1, - "verifyingContract": "0xc9154424b823b10579895ccbe442d41b9abd96ed" - }, + "deployments": [{ "chainId": 1, "address": "0xc9154424b823b10579895ccbe442d41b9abd96ed" }], + "domain": { "name": "Rarible", "chainId": 1, "verifyingContract": "0xc9154424b823b10579895ccbe442d41b9abd96ed" }, "schemas": [ { "primaryType": "Mint721", "types": { "Mint721": [ - { - "name": "tokenId", - "type": "uint256" - }, - { - "name": "tokenURI", - "type": "string" - }, - { - "name": "creators", - "type": "Part[]" - }, - { - "name": "royalties", - "type": "Part[]" - } + { "name": "tokenId", "type": "uint256" }, + { "name": "tokenURI", "type": "string" }, + { "name": "creators", "type": "Part[]" }, + { "name": "royalties", "type": "Part[]" } ], - "Part": [ - { - "name": "account", - "type": "address" - }, - { - "name": "value", - "type": "uint96" - } - ] + "Part": [{ "name": "account", "type": "address" }, { "name": "value", "type": "uint96" }] } } ] } }, - "metadata": { - "owner": "Rarible ERC-721 Collection" - }, + "metadata": { "owner": "Rarible ERC-721 Collection" }, "display": { "formats": { "Mint721": { "intent": "Lazy Mint ERC-721", "fields": [ - { - "path": "tokenId", - "label": "Token ID", - "format": "raw" - }, - { - "path": "tokenURI", - "label": "Token URI", - "format": "raw" - }, - { - "path": "creators.[].account", - "label": "Creator account address", - "format": "raw" - }, - { - "path": "creators.[].value", - "label": "Creator value (10000 = 100%)", - "format": "raw" - }, - { - "path": "royalties.[].account", - "label": "Royalties account address", - "format": "raw" - }, - { - "path": "royalties.[].value", - "label": "Royalties value (10000 = 100%)", - "format": "raw" - } + { "path": "tokenId", "label": "Token ID", "format": "raw" }, + { "path": "tokenURI", "label": "Token URI", "format": "raw" }, + { "path": "creators.[].account", "label": "Creator account address", "format": "raw" }, + { "path": "creators.[].value", "label": "Creator value (10000 = 100%)", "format": "raw" }, + { "path": "royalties.[].account", "label": "Royalties account address", "format": "raw" }, + { "path": "royalties.[].value", "label": "Royalties value (10000 = 100%)", "format": "raw" } ] } } diff --git a/registry/rarible/eip712-rarible-exchange-v2.json b/registry/rarible/eip712-rarible-exchange-v2.json index f1429e2d..7736de81 100644 --- a/registry/rarible/eip712-rarible-exchange-v2.json +++ b/registry/rarible/eip712-rarible-exchange-v2.json @@ -3,97 +3,32 @@ "context": { "eip712": { "deployments": [ - { - "chainId": 1, - "address": "0x9757f2d2b135150bbeb65308d4a91804107cd8d6" - }, - { - "chainId": 137, - "address": "0x7f19564c35c681099c0c857a7141836cf7edaa53" - } + { "chainId": 1, "address": "0x9757f2d2b135150bbeb65308d4a91804107cd8d6" }, + { "chainId": 137, "address": "0x7f19564c35c681099c0c857a7141836cf7edaa53" } ], - "domain": { - "name": "Rarible" - }, + "domain": { "name": "Rarible" }, "schemas": [ { "primaryType": "Order", "types": { - "Asset": [ - { - "name": "assetType", - "type": "AssetType" - }, - { - "name": "value", - "type": "uint256" - } - ], - "AssetType": [ - { - "name": "assetClass", - "type": "bytes4" - }, - { - "name": "data", - "type": "bytes" - } - ], + "Asset": [{ "name": "assetType", "type": "AssetType" }, { "name": "value", "type": "uint256" }], + "AssetType": [{ "name": "assetClass", "type": "bytes4" }, { "name": "data", "type": "bytes" }], "EIP712Domain": [ - { - "name": "name", - "type": "string" - }, - { - "name": "version", - "type": "string" - }, - { - "name": "chainId", - "type": "uint256" - }, - { - "name": "verifyingContract", - "type": "address" - } + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } ], "Order": [ - { - "name": "maker", - "type": "address" - }, - { - "name": "makeAsset", - "type": "Asset" - }, - { - "name": "taker", - "type": "address" - }, - { - "name": "takeAsset", - "type": "Asset" - }, - { - "name": "salt", - "type": "uint256" - }, - { - "name": "start", - "type": "uint256" - }, - { - "name": "end", - "type": "uint256" - }, - { - "name": "dataType", - "type": "bytes4" - }, - { - "name": "data", - "type": "bytes" - } + { "name": "maker", "type": "address" }, + { "name": "makeAsset", "type": "Asset" }, + { "name": "taker", "type": "address" }, + { "name": "takeAsset", "type": "Asset" }, + { "name": "salt", "type": "uint256" }, + { "name": "start", "type": "uint256" }, + { "name": "end", "type": "uint256" }, + { "name": "dataType", "type": "bytes4" }, + { "name": "data", "type": "bytes" } ] } }, @@ -101,80 +36,33 @@ "primaryType": "MetaTransaction", "types": { "EIP712Domain": [ - { - "name": "name", - "type": "string" - }, - { - "name": "version", - "type": "string" - }, - { - "name": "verifyingContract", - "type": "address" - }, - { - "name": "salt", - "type": "bytes32" - } + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "verifyingContract", "type": "address" }, + { "name": "salt", "type": "bytes32" } ], "MetaTransaction": [ - { - "name": "nonce", - "type": "uint256" - }, - { - "name": "from", - "type": "address" - }, - { - "name": "functionSignature", - "type": "bytes" - } + { "name": "nonce", "type": "uint256" }, + { "name": "from", "type": "address" }, + { "name": "functionSignature", "type": "bytes" } ] } } ] } }, - "metadata": { - "owner": "Rarible ExchangeV2" - }, + "metadata": { "owner": "Rarible ExchangeV2" }, "display": { "formats": { "Order": { "intent": "List Order", "fields": [ - { - "path": "maker", - "label": "Order maker address", - "format": "raw" - }, - { - "path": "makeAsset.value", - "label": "Order make asset value", - "format": "raw" - }, - { - "path": "taker", - "label": "Order taker address", - "format": "raw" - }, - { - "path": "takeAsset.value", - "label": "Order take asset value", - "format": "raw" - }, - { - "path": "start", - "label": "Order start time", - "format": "raw" - }, - { - "path": "end", - "label": "Order end time", - "format": "raw" - } + { "path": "maker", "label": "Order maker address", "format": "raw" }, + { "path": "makeAsset.value", "label": "Order make asset value", "format": "raw" }, + { "path": "taker", "label": "Order taker address", "format": "raw" }, + { "path": "takeAsset.value", "label": "Order take asset value", "format": "raw" }, + { "path": "start", "label": "Order start time", "format": "raw" }, + { "path": "end", "label": "Order end time", "format": "raw" } ], "excluded": [ "makeAsset.assetType.assetClass", @@ -189,20 +77,10 @@ "MetaTransaction": { "intent": "Meta Transaction", "fields": [ - { - "path": "from", - "label": "User Address", - "format": "raw" - }, - { - "path": "nonce", - "label": "Meta Transaction Nonce", - "format": "raw" - } + { "path": "from", "label": "User Address", "format": "raw" }, + { "path": "nonce", "label": "Meta Transaction Nonce", "format": "raw" } ], - "excluded": [ - "functionSignature" - ] + "excluded": ["functionSignature"] } } } diff --git a/registry/rarible/eip712-rarible-exchange-wrapper.json b/registry/rarible/eip712-rarible-exchange-wrapper.json index 49647f18..0d95c3ac 100644 --- a/registry/rarible/eip712-rarible-exchange-wrapper.json +++ b/registry/rarible/eip712-rarible-exchange-wrapper.json @@ -2,140 +2,48 @@ "$schema": "../../specs/erc7730-v1.schema.json", "context": { "eip712": { - "deployments": [ - { - "chainId": 1, - "address": "0x7f19564c35c681099c0c857a7141836cf7edaa53" - } - ], - "domain": { - "name": "Rarible", - "chainId": 1, - "verifyingContract": "0x7f19564c35c681099c0c857a7141836cf7edaa53" - }, + "deployments": [{ "chainId": 1, "address": "0x7f19564c35c681099c0c857a7141836cf7edaa53" }], + "domain": { "name": "Rarible", "chainId": 1, "verifyingContract": "0x7f19564c35c681099c0c857a7141836cf7edaa53" }, "schemas": [ { "primaryType": "Order", "types": { - "Asset": [ - { - "name": "assetType", - "type": "AssetType" - }, - { - "name": "value", - "type": "uint256" - } - ], - "AssetType": [ - { - "name": "assetClass", - "type": "bytes4" - }, - { - "name": "data", - "type": "bytes" - } - ], + "Asset": [{ "name": "assetType", "type": "AssetType" }, { "name": "value", "type": "uint256" }], + "AssetType": [{ "name": "assetClass", "type": "bytes4" }, { "name": "data", "type": "bytes" }], "EIP712Domain": [ - { - "name": "name", - "type": "string" - }, - { - "name": "version", - "type": "string" - }, - { - "name": "chainId", - "type": "uint256" - }, - { - "name": "verifyingContract", - "type": "address" - } + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } ], "Order": [ - { - "name": "maker", - "type": "address" - }, - { - "name": "makeAsset", - "type": "Asset" - }, - { - "name": "taker", - "type": "address" - }, - { - "name": "takeAsset", - "type": "Asset" - }, - { - "name": "salt", - "type": "uint256" - }, - { - "name": "start", - "type": "uint256" - }, - { - "name": "end", - "type": "uint256" - }, - { - "name": "dataType", - "type": "bytes4" - }, - { - "name": "data", - "type": "bytes" - } + { "name": "maker", "type": "address" }, + { "name": "makeAsset", "type": "Asset" }, + { "name": "taker", "type": "address" }, + { "name": "takeAsset", "type": "Asset" }, + { "name": "salt", "type": "uint256" }, + { "name": "start", "type": "uint256" }, + { "name": "end", "type": "uint256" }, + { "name": "dataType", "type": "bytes4" }, + { "name": "data", "type": "bytes" } ] } } ] } }, - "metadata": { - "owner": "RaribleExchangeWrapper" - }, + "metadata": { "owner": "RaribleExchangeWrapper" }, "display": { "formats": { "Order": { "intent": "List Order", "fields": [ - { - "path": "maker", - "label": "Order maker address", - "format": "raw" - }, - { - "path": "makeAsset.value", - "label": "Order make asset value", - "format": "raw" - }, - { - "path": "taker", - "label": "Order taker address", - "format": "raw" - }, - { - "path": "takeAsset.value", - "label": "Order take asset value", - "format": "raw" - }, - { - "path": "start", - "label": "Order start time", - "format": "raw" - }, - { - "path": "end", - "label": "Order end time", - "format": "raw" - } + { "path": "maker", "label": "Order maker address", "format": "raw" }, + { "path": "makeAsset.value", "label": "Order make asset value", "format": "raw" }, + { "path": "taker", "label": "Order taker address", "format": "raw" }, + { "path": "takeAsset.value", "label": "Order take asset value", "format": "raw" }, + { "path": "start", "label": "Order start time", "format": "raw" }, + { "path": "end", "label": "Order end time", "format": "raw" } ], "excluded": [ "makeAsset.assetType.assetClass", diff --git a/registry/smartcredit/eip712-smartcredit.json b/registry/smartcredit/eip712-smartcredit.json index 860af9ae..540af8c3 100644 --- a/registry/smartcredit/eip712-smartcredit.json +++ b/registry/smartcredit/eip712-smartcredit.json @@ -2,117 +2,45 @@ "$schema": "../../specs/erc7730-v1.schema.json", "context": { "eip712": { - "deployments": [ - { - "chainId": 1, - "address": "0x72e9d9038ce484ee986fea183f8d8df93f9ada13" - } - ], - "domain": { - "name": "SmartCredit.io", - "chainId": 1, - "verifyingContract": "0x72e9d9038ce484ee986fea183f8d8df93f9ada13" - }, + "deployments": [{ "chainId": 1, "address": "0x72e9d9038ce484ee986fea183f8d8df93f9ada13" }], + "domain": { "name": "SmartCredit.io", "chainId": 1, "verifyingContract": "0x72e9d9038ce484ee986fea183f8d8df93f9ada13" }, "schemas": [ { "primaryType": "LoanRequest", "types": { "EIP712Domain": [ - { - "name": "chainId", - "type": "uint256" - }, - { - "name": "name", - "type": "string" - }, - { - "name": "verifyingContract", - "type": "address" - }, - { - "name": "version", - "type": "string" - } + { "name": "chainId", "type": "uint256" }, + { "name": "name", "type": "string" }, + { "name": "verifyingContract", "type": "address" }, + { "name": "version", "type": "string" } ], "LoanRequest": [ - { - "name": "collateralAddress", - "type": "address" - }, - { - "name": "initialCollateralAmount", - "type": "uint256" - }, - { - "name": "loanAmount", - "type": "uint256" - }, - { - "name": "loanId", - "type": "bytes32" - }, - { - "name": "loanInterestRate", - "type": "uint64" - }, - { - "name": "loanTerm", - "type": "uint64" - }, - { - "name": "underlyingAddress", - "type": "address" - } + { "name": "collateralAddress", "type": "address" }, + { "name": "initialCollateralAmount", "type": "uint256" }, + { "name": "loanAmount", "type": "uint256" }, + { "name": "loanId", "type": "bytes32" }, + { "name": "loanInterestRate", "type": "uint64" }, + { "name": "loanTerm", "type": "uint64" }, + { "name": "underlyingAddress", "type": "address" } ] } } ] } }, - "metadata": { - "owner": "SMARTCREDIT" - }, + "metadata": { "owner": "SMARTCREDIT" }, "display": { "formats": { "LoanRequest": { "intent": "SmartCredit.io", "fields": [ - { - "path": "collateralAddress", - "label": "Collateral address", - "format": "raw" - }, - { - "path": "initialCollateralAmount", - "label": "Initial Collateral Amount", - "format": "raw" - }, - { - "path": "loanAmount", - "label": "Loan Amount", - "format": "raw" - }, - { - "path": "loanId", - "label": "Loan ID", - "format": "raw" - }, - { - "path": "loanInterestRate", - "label": "Loan interest rate", - "format": "raw" - }, - { - "path": "loanTerm", - "label": "Load Term", - "format": "raw" - }, - { - "path": "underlyingAddress", - "label": "Underlying Address", - "format": "raw" - } + { "path": "collateralAddress", "label": "Collateral address", "format": "raw" }, + { "path": "initialCollateralAmount", "label": "Initial Collateral Amount", "format": "raw" }, + { "path": "loanAmount", "label": "Loan Amount", "format": "raw" }, + { "path": "loanId", "label": "Loan ID", "format": "raw" }, + { "path": "loanInterestRate", "label": "Loan interest rate", "format": "raw" }, + { "path": "loanTerm", "label": "Load Term", "format": "raw" }, + { "path": "underlyingAddress", "label": "Underlying Address", "format": "raw" } ] } } diff --git a/registry/starkgate/calldata-StarkGate-STRK.json b/registry/starkgate/calldata-StarkGate-STRK.json index 2ec861a9..8eb1ced1 100644 --- a/registry/starkgate/calldata-StarkGate-STRK.json +++ b/registry/starkgate/calldata-StarkGate-STRK.json @@ -1,57 +1,28 @@ { - "$schema": "../../specs/erc7730-v1.schema.json", - - "context": { - "$id": "L1StarkGateSTRKbridge", - "contract": { - "abi": "https://api.etherscan.io/api?module=contract&action=getabi&address=0x6ad74D4B79A06A492C288eF66Ef868Dd981fdC85", - "deployments": [ - { - "chainId": 1, - "address": "0xcE5485Cfb26914C5dcE00B9BAF0580364daFC7a4" - } - ] - } - }, - - "metadata": { - "owner": "Starknet", - "info": { - "url": "https://starkgate.starknet.io/", - "legalName": "StarkWare", - "lastUpdate": "2024-10-01T00:00:00Z" - } - }, - - "display": { - "formats": { - "deposit(address token, uint256 amount, uint256 l2Recipient)" : { - "$id": "deposit", - "intent": "Bridge", - "fields": [ - { - "path": "token", - "label": "Token", - "format": "addressName", - "params": { - "types": [ - "token" - ] - } - }, - { - "path": "amount", - "label": "Amount", - "format": "amount" - }, - { - "path": "l2Recipient", - "label": "Recipient", - "format": "raw" - } - ], - "required": ["token", "amount", "l2Recipient"] - } - } + "$schema": "../../specs/erc7730-v1.schema.json", + "context": { + "$id": "L1StarkGateSTRKbridge", + "contract": { + "abi": "https://api.etherscan.io/api?module=contract&action=getabi&address=0x6ad74D4B79A06A492C288eF66Ef868Dd981fdC85", + "deployments": [{ "chainId": 1, "address": "0xcE5485Cfb26914C5dcE00B9BAF0580364daFC7a4" }] } + }, + "metadata": { + "owner": "Starknet", + "info": { "url": "https://starkgate.starknet.io/", "legalName": "StarkWare", "lastUpdate": "2024-10-01T00:00:00Z" } + }, + "display": { + "formats": { + "deposit(address token, uint256 amount, uint256 l2Recipient)": { + "$id": "deposit", + "intent": "Bridge", + "fields": [ + { "path": "token", "label": "Token", "format": "addressName", "params": { "types": ["token"] } }, + { "path": "amount", "label": "Amount", "format": "amount" }, + { "path": "l2Recipient", "label": "Recipient", "format": "raw" } + ], + "required": ["token", "amount", "l2Recipient"] + } + } + } } diff --git a/registry/tally/eip712-tally-arbitrum-arb-token.json b/registry/tally/eip712-tally-arbitrum-arb-token.json index dd72f9e9..d4c379d0 100644 --- a/registry/tally/eip712-tally-arbitrum-arb-token.json +++ b/registry/tally/eip712-tally-arbitrum-arb-token.json @@ -2,81 +2,33 @@ "$schema": "../../specs/erc7730-v1.schema.json", "context": { "eip712": { - "deployments": [ - { - "chainId": 42161, - "address": "0x912ce59144191c1204e64559fe8253a0e49e6548" - } - ], - "domain": { - "name": "Tally", - "chainId": 42161, - "verifyingContract": "0x912ce59144191c1204e64559fe8253a0e49e6548" - }, + "deployments": [{ "chainId": 42161, "address": "0x912ce59144191c1204e64559fe8253a0e49e6548" }], + "domain": { "name": "Tally", "chainId": 42161, "verifyingContract": "0x912ce59144191c1204e64559fe8253a0e49e6548" }, "schemas": [ { "primaryType": "Delegation", "types": { - "Delegation": [ - { - "name": "delegatee", - "type": "address" - }, - { - "name": "nonce", - "type": "uint256" - }, - { - "name": "expiry", - "type": "uint256" - } - ], + "Delegation": [{ "name": "delegatee", "type": "address" }, { "name": "nonce", "type": "uint256" }, { "name": "expiry", "type": "uint256" }], "EIP712Domain": [ - { - "name": "chainId", - "type": "uint256" - }, - { - "name": "name", - "type": "string" - }, - { - "name": "verifyingContract", - "type": "address" - }, - { - "name": "version", - "type": "string" - } + { "name": "chainId", "type": "uint256" }, + { "name": "name", "type": "string" }, + { "name": "verifyingContract", "type": "address" }, + { "name": "version", "type": "string" } ] } } ] } }, - "metadata": { - "owner": "Arbitrum" - }, + "metadata": { "owner": "Arbitrum" }, "display": { "formats": { "Delegation": { "intent": "ARB token", "fields": [ - { - "path": "delegatee", - "label": "Delegatee", - "format": "raw" - }, - { - "path": "nonce", - "label": "Nonce", - "format": "raw" - }, - { - "path": "expiry", - "label": "Expiry", - "format": "raw" - } + { "path": "delegatee", "label": "Delegatee", "format": "raw" }, + { "path": "nonce", "label": "Nonce", "format": "raw" }, + { "path": "expiry", "label": "Expiry", "format": "raw" } ] } } diff --git a/registry/tally/eip712-tally-arbitrum-core-governor.json b/registry/tally/eip712-tally-arbitrum-core-governor.json index b8ad1798..610388a7 100644 --- a/registry/tally/eip712-tally-arbitrum-core-governor.json +++ b/registry/tally/eip712-tally-arbitrum-core-governor.json @@ -2,72 +2,32 @@ "$schema": "../../specs/erc7730-v1.schema.json", "context": { "eip712": { - "deployments": [ - { - "chainId": 42161, - "address": "0xf07ded9dc292157749b6fd268e37df6ea38395b9" - } - ], - "domain": { - "name": "Tally", - "chainId": 42161, - "verifyingContract": "0xf07ded9dc292157749b6fd268e37df6ea38395b9" - }, + "deployments": [{ "chainId": 42161, "address": "0xf07ded9dc292157749b6fd268e37df6ea38395b9" }], + "domain": { "name": "Tally", "chainId": 42161, "verifyingContract": "0xf07ded9dc292157749b6fd268e37df6ea38395b9" }, "schemas": [ { "primaryType": "Ballot", "types": { - "Ballot": [ - { - "name": "proposalId", - "type": "uint256" - }, - { - "name": "support", - "type": "uint8" - } - ], + "Ballot": [{ "name": "proposalId", "type": "uint256" }, { "name": "support", "type": "uint8" }], "EIP712Domain": [ - { - "name": "chainId", - "type": "uint256" - }, - { - "name": "name", - "type": "string" - }, - { - "name": "verifyingContract", - "type": "address" - }, - { - "name": "version", - "type": "string" - } + { "name": "chainId", "type": "uint256" }, + { "name": "name", "type": "string" }, + { "name": "verifyingContract", "type": "address" }, + { "name": "version", "type": "string" } ] } } ] } }, - "metadata": { - "owner": "L2ArbitrumGovernor" - }, + "metadata": { "owner": "L2ArbitrumGovernor" }, "display": { "formats": { "Ballot": { "intent": "Arbitrum Foundation: Core Governor", "fields": [ - { - "path": "proposalId", - "label": "Proposal id", - "format": "raw" - }, - { - "path": "support", - "label": "Support", - "format": "raw" - } + { "path": "proposalId", "label": "Proposal id", "format": "raw" }, + { "path": "support", "label": "Support", "format": "raw" } ] } } diff --git a/registry/tally/eip712-tally-arbitrum-treasury-governor.json b/registry/tally/eip712-tally-arbitrum-treasury-governor.json index 467cf8b8..ff1816b5 100644 --- a/registry/tally/eip712-tally-arbitrum-treasury-governor.json +++ b/registry/tally/eip712-tally-arbitrum-treasury-governor.json @@ -2,72 +2,32 @@ "$schema": "../../specs/erc7730-v1.schema.json", "context": { "eip712": { - "deployments": [ - { - "chainId": 42161, - "address": "0x789fc99093b09ad01c34dc7251d0c89ce743e5a4" - } - ], - "domain": { - "name": "Tally", - "chainId": 42161, - "verifyingContract": "0x789fc99093b09ad01c34dc7251d0c89ce743e5a4" - }, + "deployments": [{ "chainId": 42161, "address": "0x789fc99093b09ad01c34dc7251d0c89ce743e5a4" }], + "domain": { "name": "Tally", "chainId": 42161, "verifyingContract": "0x789fc99093b09ad01c34dc7251d0c89ce743e5a4" }, "schemas": [ { "primaryType": "Ballot", "types": { - "Ballot": [ - { - "name": "proposalId", - "type": "uint256" - }, - { - "name": "support", - "type": "uint8" - } - ], + "Ballot": [{ "name": "proposalId", "type": "uint256" }, { "name": "support", "type": "uint8" }], "EIP712Domain": [ - { - "name": "chainId", - "type": "uint256" - }, - { - "name": "name", - "type": "string" - }, - { - "name": "verifyingContract", - "type": "address" - }, - { - "name": "version", - "type": "string" - } + { "name": "chainId", "type": "uint256" }, + { "name": "name", "type": "string" }, + { "name": "verifyingContract", "type": "address" }, + { "name": "version", "type": "string" } ] } } ] } }, - "metadata": { - "owner": "L2ArbitrumGovernor" - }, + "metadata": { "owner": "L2ArbitrumGovernor" }, "display": { "formats": { "Ballot": { "intent": "Arbitrum Foundation: Treasury Governor", "fields": [ - { - "path": "proposalId", - "label": "Proposal id", - "format": "raw" - }, - { - "path": "support", - "label": "Support", - "format": "raw" - } + { "path": "proposalId", "label": "Proposal id", "format": "raw" }, + { "path": "support", "label": "Support", "format": "raw" } ] } } diff --git a/registry/tally/eip712-tally-ethereum-bitcoin-governor.json b/registry/tally/eip712-tally-ethereum-bitcoin-governor.json index d4acb3b0..bf0fe8be 100644 --- a/registry/tally/eip712-tally-ethereum-bitcoin-governor.json +++ b/registry/tally/eip712-tally-ethereum-bitcoin-governor.json @@ -2,68 +2,31 @@ "$schema": "../../specs/erc7730-v1.schema.json", "context": { "eip712": { - "deployments": [ - { - "chainId": 1, - "address": "0xdbd27635a534a3d3169ef0498beb56fb9c937489" - } - ], - "domain": { - "name": "Tally", - "chainId": 1, - "verifyingContract": "0xdbd27635a534a3d3169ef0498beb56fb9c937489" - }, + "deployments": [{ "chainId": 1, "address": "0xdbd27635a534a3d3169ef0498beb56fb9c937489" }], + "domain": { "name": "Tally", "chainId": 1, "verifyingContract": "0xdbd27635a534a3d3169ef0498beb56fb9c937489" }, "schemas": [ { "primaryType": "Ballot", "types": { - "Ballot": [ - { - "name": "proposalId", - "type": "uint256" - }, - { - "name": "support", - "type": "uint8" - } - ], + "Ballot": [{ "name": "proposalId", "type": "uint256" }, { "name": "support", "type": "uint8" }], "EIP712Domain": [ - { - "name": "chainId", - "type": "uint256" - }, - { - "name": "name", - "type": "string" - }, - { - "name": "verifyingContract", - "type": "address" - } + { "name": "chainId", "type": "uint256" }, + { "name": "name", "type": "string" }, + { "name": "verifyingContract", "type": "address" } ] } } ] } }, - "metadata": { - "owner": "GTC Governor Alpha" - }, + "metadata": { "owner": "GTC Governor Alpha" }, "display": { "formats": { "Ballot": { "intent": "Gitcoin Governor", "fields": [ - { - "path": "proposalId", - "label": "Proposal id", - "format": "raw" - }, - { - "path": "support", - "label": "Support", - "format": "raw" - } + { "path": "proposalId", "label": "Proposal id", "format": "raw" }, + { "path": "support", "label": "Support", "format": "raw" } ] } } diff --git a/registry/tally/eip712-tally-ethereum-bravo-governor.json b/registry/tally/eip712-tally-ethereum-bravo-governor.json index 8cdfc0b3..1eaa37e7 100644 --- a/registry/tally/eip712-tally-ethereum-bravo-governor.json +++ b/registry/tally/eip712-tally-ethereum-bravo-governor.json @@ -2,68 +2,31 @@ "$schema": "../../specs/erc7730-v1.schema.json", "context": { "eip712": { - "deployments": [ - { - "chainId": 1, - "address": "0x408ed6354d4973f66138c91495f2f2fcbd8724c3" - } - ], - "domain": { - "name": "Tally", - "chainId": 1, - "verifyingContract": "0x408ed6354d4973f66138c91495f2f2fcbd8724c3" - }, + "deployments": [{ "chainId": 1, "address": "0x408ed6354d4973f66138c91495f2f2fcbd8724c3" }], + "domain": { "name": "Tally", "chainId": 1, "verifyingContract": "0x408ed6354d4973f66138c91495f2f2fcbd8724c3" }, "schemas": [ { "primaryType": "Ballot", "types": { - "Ballot": [ - { - "name": "proposalId", - "type": "uint256" - }, - { - "name": "support", - "type": "uint8" - } - ], + "Ballot": [{ "name": "proposalId", "type": "uint256" }, { "name": "support", "type": "uint8" }], "EIP712Domain": [ - { - "name": "chainId", - "type": "uint256" - }, - { - "name": "name", - "type": "string" - }, - { - "name": "verifyingContract", - "type": "address" - } + { "name": "chainId", "type": "uint256" }, + { "name": "name", "type": "string" }, + { "name": "verifyingContract", "type": "address" } ] } } ] } }, - "metadata": { - "owner": "Uniswap Governor Bravo" - }, + "metadata": { "owner": "Uniswap Governor Bravo" }, "display": { "formats": { "Ballot": { "intent": "Uniswap Governor", "fields": [ - { - "path": "proposalId", - "label": "Proposal id", - "format": "raw" - }, - { - "path": "support", - "label": "Support", - "format": "raw" - } + { "path": "proposalId", "label": "Proposal id", "format": "raw" }, + { "path": "support", "label": "Support", "format": "raw" } ] } } diff --git a/registry/tally/eip712-tally-ethereum-ens-governor.json b/registry/tally/eip712-tally-ethereum-ens-governor.json index d54f27a7..b5580c07 100644 --- a/registry/tally/eip712-tally-ethereum-ens-governor.json +++ b/registry/tally/eip712-tally-ethereum-ens-governor.json @@ -2,72 +2,32 @@ "$schema": "../../specs/erc7730-v1.schema.json", "context": { "eip712": { - "deployments": [ - { - "chainId": 1, - "address": "0x323a76393544d5ecca80cd6ef2a560c6a395b7e3" - } - ], - "domain": { - "name": "Tally", - "chainId": 1, - "verifyingContract": "0x323a76393544d5ecca80cd6ef2a560c6a395b7e3" - }, + "deployments": [{ "chainId": 1, "address": "0x323a76393544d5ecca80cd6ef2a560c6a395b7e3" }], + "domain": { "name": "Tally", "chainId": 1, "verifyingContract": "0x323a76393544d5ecca80cd6ef2a560c6a395b7e3" }, "schemas": [ { "primaryType": "Ballot", "types": { - "Ballot": [ - { - "name": "proposalId", - "type": "uint256" - }, - { - "name": "support", - "type": "uint8" - } - ], + "Ballot": [{ "name": "proposalId", "type": "uint256" }, { "name": "support", "type": "uint8" }], "EIP712Domain": [ - { - "name": "chainId", - "type": "uint256" - }, - { - "name": "name", - "type": "string" - }, - { - "name": "verifyingContract", - "type": "address" - }, - { - "name": "version", - "type": "string" - } + { "name": "chainId", "type": "uint256" }, + { "name": "name", "type": "string" }, + { "name": "verifyingContract", "type": "address" }, + { "name": "version", "type": "string" } ] } } ] } }, - "metadata": { - "owner": "ENS Governor" - }, + "metadata": { "owner": "ENS Governor" }, "display": { "formats": { "Ballot": { "intent": "ENS Governor", "fields": [ - { - "path": "proposalId", - "label": "Proposal id", - "format": "raw" - }, - { - "path": "support", - "label": "Support", - "format": "raw" - } + { "path": "proposalId", "label": "Proposal id", "format": "raw" }, + { "path": "support", "label": "Support", "format": "raw" } ] } } diff --git a/registry/tally/eip712-tally-ethereum-ens-token.json b/registry/tally/eip712-tally-ethereum-ens-token.json index 25b534f9..2b80c7e6 100644 --- a/registry/tally/eip712-tally-ethereum-ens-token.json +++ b/registry/tally/eip712-tally-ethereum-ens-token.json @@ -2,81 +2,33 @@ "$schema": "../../specs/erc7730-v1.schema.json", "context": { "eip712": { - "deployments": [ - { - "chainId": 1, - "address": "0xc18360217d8f7ab5e7c516566761ea12ce7f9d72" - } - ], - "domain": { - "name": "Tally", - "chainId": 1, - "verifyingContract": "0xc18360217d8f7ab5e7c516566761ea12ce7f9d72" - }, + "deployments": [{ "chainId": 1, "address": "0xc18360217d8f7ab5e7c516566761ea12ce7f9d72" }], + "domain": { "name": "Tally", "chainId": 1, "verifyingContract": "0xc18360217d8f7ab5e7c516566761ea12ce7f9d72" }, "schemas": [ { "primaryType": "Delegation", "types": { - "Delegation": [ - { - "name": "delegatee", - "type": "address" - }, - { - "name": "nonce", - "type": "uint256" - }, - { - "name": "expiry", - "type": "uint256" - } - ], + "Delegation": [{ "name": "delegatee", "type": "address" }, { "name": "nonce", "type": "uint256" }, { "name": "expiry", "type": "uint256" }], "EIP712Domain": [ - { - "name": "chainId", - "type": "uint256" - }, - { - "name": "name", - "type": "string" - }, - { - "name": "verifyingContract", - "type": "address" - }, - { - "name": "version", - "type": "string" - } + { "name": "chainId", "type": "uint256" }, + { "name": "name", "type": "string" }, + { "name": "verifyingContract", "type": "address" }, + { "name": "version", "type": "string" } ] } } ] } }, - "metadata": { - "owner": "Ethereum Name Service" - }, + "metadata": { "owner": "Ethereum Name Service" }, "display": { "formats": { "Delegation": { "intent": "ENS token", "fields": [ - { - "path": "delegatee", - "label": "Delegatee", - "format": "raw" - }, - { - "path": "nonce", - "label": "Nonce", - "format": "raw" - }, - { - "path": "expiry", - "label": "Expiry", - "format": "raw" - } + { "path": "delegatee", "label": "Delegatee", "format": "raw" }, + { "path": "nonce", "label": "Nonce", "format": "raw" }, + { "path": "expiry", "label": "Expiry", "format": "raw" } ] } } diff --git a/registry/tally/eip712-tally-ethereum-gtk-token.json b/registry/tally/eip712-tally-ethereum-gtk-token.json index dce56a3b..c52d9347 100644 --- a/registry/tally/eip712-tally-ethereum-gtk-token.json +++ b/registry/tally/eip712-tally-ethereum-gtk-token.json @@ -2,77 +2,32 @@ "$schema": "../../specs/erc7730-v1.schema.json", "context": { "eip712": { - "deployments": [ - { - "chainId": 1, - "address": "0xde30da39c46104798bb5aa3fe8b9e0e1f348163f" - } - ], - "domain": { - "name": "Tally", - "chainId": 1, - "verifyingContract": "0xde30da39c46104798bb5aa3fe8b9e0e1f348163f" - }, + "deployments": [{ "chainId": 1, "address": "0xde30da39c46104798bb5aa3fe8b9e0e1f348163f" }], + "domain": { "name": "Tally", "chainId": 1, "verifyingContract": "0xde30da39c46104798bb5aa3fe8b9e0e1f348163f" }, "schemas": [ { "primaryType": "Delegation", "types": { - "Delegation": [ - { - "name": "delegatee", - "type": "address" - }, - { - "name": "nonce", - "type": "uint256" - }, - { - "name": "expiry", - "type": "uint256" - } - ], + "Delegation": [{ "name": "delegatee", "type": "address" }, { "name": "nonce", "type": "uint256" }, { "name": "expiry", "type": "uint256" }], "EIP712Domain": [ - { - "name": "chainId", - "type": "uint256" - }, - { - "name": "name", - "type": "string" - }, - { - "name": "verifyingContract", - "type": "address" - } + { "name": "chainId", "type": "uint256" }, + { "name": "name", "type": "string" }, + { "name": "verifyingContract", "type": "address" } ] } } ] } }, - "metadata": { - "owner": "Gitcoin" - }, + "metadata": { "owner": "Gitcoin" }, "display": { "formats": { "Delegation": { "intent": "GTK token", "fields": [ - { - "path": "delegatee", - "label": "Delegatee", - "format": "raw" - }, - { - "path": "nonce", - "label": "Nonce", - "format": "raw" - }, - { - "path": "expiry", - "label": "Expiry", - "format": "raw" - } + { "path": "delegatee", "label": "Delegatee", "format": "raw" }, + { "path": "nonce", "label": "Nonce", "format": "raw" }, + { "path": "expiry", "label": "Expiry", "format": "raw" } ] } } diff --git a/registry/tally/eip712-tally-ethereum-hop-governor.json b/registry/tally/eip712-tally-ethereum-hop-governor.json index 83faefc6..b53214c6 100644 --- a/registry/tally/eip712-tally-ethereum-hop-governor.json +++ b/registry/tally/eip712-tally-ethereum-hop-governor.json @@ -2,68 +2,31 @@ "$schema": "../../specs/erc7730-v1.schema.json", "context": { "eip712": { - "deployments": [ - { - "chainId": 1, - "address": "0xed8bdb5895b8b7f9fdb3c087628fd8410e853d48" - } - ], - "domain": { - "name": "Tally", - "chainId": 1, - "verifyingContract": "0xed8bdb5895b8b7f9fdb3c087628fd8410e853d48" - }, + "deployments": [{ "chainId": 1, "address": "0xed8bdb5895b8b7f9fdb3c087628fd8410e853d48" }], + "domain": { "name": "Tally", "chainId": 1, "verifyingContract": "0xed8bdb5895b8b7f9fdb3c087628fd8410e853d48" }, "schemas": [ { "primaryType": "Ballot", "types": { - "Ballot": [ - { - "name": "proposalId", - "type": "uint256" - }, - { - "name": "support", - "type": "uint8" - } - ], + "Ballot": [{ "name": "proposalId", "type": "uint256" }, { "name": "support", "type": "uint8" }], "EIP712Domain": [ - { - "name": "chainId", - "type": "uint256" - }, - { - "name": "name", - "type": "string" - }, - { - "name": "verifyingContract", - "type": "address" - } + { "name": "chainId", "type": "uint256" }, + { "name": "name", "type": "string" }, + { "name": "verifyingContract", "type": "address" } ] } } ] } }, - "metadata": { - "owner": "HOP Governor" - }, + "metadata": { "owner": "HOP Governor" }, "display": { "formats": { "Ballot": { "intent": "Hop Governor", "fields": [ - { - "path": "proposalId", - "label": "Proposal id", - "format": "raw" - }, - { - "path": "support", - "label": "Support", - "format": "raw" - } + { "path": "proposalId", "label": "Proposal id", "format": "raw" }, + { "path": "support", "label": "Support", "format": "raw" } ] } } diff --git a/registry/tally/eip712-tally-ethereum-hop-token.json b/registry/tally/eip712-tally-ethereum-hop-token.json index 7db4f35d..8cae7d8b 100644 --- a/registry/tally/eip712-tally-ethereum-hop-token.json +++ b/registry/tally/eip712-tally-ethereum-hop-token.json @@ -2,77 +2,32 @@ "$schema": "../../specs/erc7730-v1.schema.json", "context": { "eip712": { - "deployments": [ - { - "chainId": 1, - "address": "0xc5102fe9359fd9a28f877a67e36b0f050d81a3cc" - } - ], - "domain": { - "name": "Tally", - "chainId": 1, - "verifyingContract": "0xc5102fe9359fd9a28f877a67e36b0f050d81a3cc" - }, + "deployments": [{ "chainId": 1, "address": "0xc5102fe9359fd9a28f877a67e36b0f050d81a3cc" }], + "domain": { "name": "Tally", "chainId": 1, "verifyingContract": "0xc5102fe9359fd9a28f877a67e36b0f050d81a3cc" }, "schemas": [ { "primaryType": "Delegation", "types": { - "Delegation": [ - { - "name": "delegatee", - "type": "address" - }, - { - "name": "nonce", - "type": "uint256" - }, - { - "name": "expiry", - "type": "uint256" - } - ], + "Delegation": [{ "name": "delegatee", "type": "address" }, { "name": "nonce", "type": "uint256" }, { "name": "expiry", "type": "uint256" }], "EIP712Domain": [ - { - "name": "chainId", - "type": "uint256" - }, - { - "name": "name", - "type": "string" - }, - { - "name": "verifyingContract", - "type": "address" - } + { "name": "chainId", "type": "uint256" }, + { "name": "name", "type": "string" }, + { "name": "verifyingContract", "type": "address" } ] } } ] } }, - "metadata": { - "owner": "Hop" - }, + "metadata": { "owner": "Hop" }, "display": { "formats": { "Delegation": { "intent": "HOP token", "fields": [ - { - "path": "delegatee", - "label": "Delegatee", - "format": "raw" - }, - { - "path": "nonce", - "label": "Nonce", - "format": "raw" - }, - { - "path": "expiry", - "label": "Expiry", - "format": "raw" - } + { "path": "delegatee", "label": "Delegatee", "format": "raw" }, + { "path": "nonce", "label": "Nonce", "format": "raw" }, + { "path": "expiry", "label": "Expiry", "format": "raw" } ] } } diff --git a/registry/tally/eip712-tally-ethereum-pool-token.json b/registry/tally/eip712-tally-ethereum-pool-token.json index d2280636..9d5e51d1 100644 --- a/registry/tally/eip712-tally-ethereum-pool-token.json +++ b/registry/tally/eip712-tally-ethereum-pool-token.json @@ -2,77 +2,32 @@ "$schema": "../../specs/erc7730-v1.schema.json", "context": { "eip712": { - "deployments": [ - { - "chainId": 1, - "address": "0x0cec1a9154ff802e7934fc916ed7ca50bde6844e" - } - ], - "domain": { - "name": "Tally", - "chainId": 1, - "verifyingContract": "0x0cec1a9154ff802e7934fc916ed7ca50bde6844e" - }, + "deployments": [{ "chainId": 1, "address": "0x0cec1a9154ff802e7934fc916ed7ca50bde6844e" }], + "domain": { "name": "Tally", "chainId": 1, "verifyingContract": "0x0cec1a9154ff802e7934fc916ed7ca50bde6844e" }, "schemas": [ { "primaryType": "Delegation", "types": { - "Delegation": [ - { - "name": "delegatee", - "type": "address" - }, - { - "name": "nonce", - "type": "uint256" - }, - { - "name": "expiry", - "type": "uint256" - } - ], + "Delegation": [{ "name": "delegatee", "type": "address" }, { "name": "nonce", "type": "uint256" }, { "name": "expiry", "type": "uint256" }], "EIP712Domain": [ - { - "name": "chainId", - "type": "uint256" - }, - { - "name": "name", - "type": "string" - }, - { - "name": "verifyingContract", - "type": "address" - } + { "name": "chainId", "type": "uint256" }, + { "name": "name", "type": "string" }, + { "name": "verifyingContract", "type": "address" } ] } } ] } }, - "metadata": { - "owner": "PoolTogether" - }, + "metadata": { "owner": "PoolTogether" }, "display": { "formats": { "Delegation": { "intent": "POOL token", "fields": [ - { - "path": "delegatee", - "label": "Delegatee", - "format": "raw" - }, - { - "path": "nonce", - "label": "Nonce", - "format": "raw" - }, - { - "path": "expiry", - "label": "Expiry", - "format": "raw" - } + { "path": "delegatee", "label": "Delegatee", "format": "raw" }, + { "path": "nonce", "label": "Nonce", "format": "raw" }, + { "path": "expiry", "label": "Expiry", "format": "raw" } ] } } diff --git a/registry/tally/eip712-tally-ethereum-pooltogether-governor.json b/registry/tally/eip712-tally-ethereum-pooltogether-governor.json index 08090fac..e879f81c 100644 --- a/registry/tally/eip712-tally-ethereum-pooltogether-governor.json +++ b/registry/tally/eip712-tally-ethereum-pooltogether-governor.json @@ -2,68 +2,31 @@ "$schema": "../../specs/erc7730-v1.schema.json", "context": { "eip712": { - "deployments": [ - { - "chainId": 1, - "address": "0xb3a87172f555ae2a2ab79be60b336d2f7d0187f0" - } - ], - "domain": { - "name": "Tally", - "chainId": 1, - "verifyingContract": "0xb3a87172f555ae2a2ab79be60b336d2f7d0187f0" - }, + "deployments": [{ "chainId": 1, "address": "0xb3a87172f555ae2a2ab79be60b336d2f7d0187f0" }], + "domain": { "name": "Tally", "chainId": 1, "verifyingContract": "0xb3a87172f555ae2a2ab79be60b336d2f7d0187f0" }, "schemas": [ { "primaryType": "Ballot", "types": { - "Ballot": [ - { - "name": "proposalId", - "type": "uint256" - }, - { - "name": "support", - "type": "uint8" - } - ], + "Ballot": [{ "name": "proposalId", "type": "uint256" }, { "name": "support", "type": "uint8" }], "EIP712Domain": [ - { - "name": "chainId", - "type": "uint256" - }, - { - "name": "name", - "type": "string" - }, - { - "name": "verifyingContract", - "type": "address" - } + { "name": "chainId", "type": "uint256" }, + { "name": "name", "type": "string" }, + { "name": "verifyingContract", "type": "address" } ] } } ] } }, - "metadata": { - "owner": "PoolTogether Governor Alpha" - }, + "metadata": { "owner": "PoolTogether Governor Alpha" }, "display": { "formats": { "Ballot": { "intent": "PoolTogether Governor Alpha", "fields": [ - { - "path": "proposalId", - "label": "Proposal id", - "format": "raw" - }, - { - "path": "support", - "label": "Support", - "format": "raw" - } + { "path": "proposalId", "label": "Proposal id", "format": "raw" }, + { "path": "support", "label": "Support", "format": "raw" } ] } } diff --git a/registry/tally/eip712-tally-ethereum-uni-token.json b/registry/tally/eip712-tally-ethereum-uni-token.json index fa11fb4a..92d36f0a 100644 --- a/registry/tally/eip712-tally-ethereum-uni-token.json +++ b/registry/tally/eip712-tally-ethereum-uni-token.json @@ -2,77 +2,32 @@ "$schema": "../../specs/erc7730-v1.schema.json", "context": { "eip712": { - "deployments": [ - { - "chainId": 1, - "address": "0x1f9840a85d5af5bf1d1762f925bdaddc4201f984" - } - ], - "domain": { - "name": "Tally", - "chainId": 1, - "verifyingContract": "0x1f9840a85d5af5bf1d1762f925bdaddc4201f984" - }, + "deployments": [{ "chainId": 1, "address": "0x1f9840a85d5af5bf1d1762f925bdaddc4201f984" }], + "domain": { "name": "Tally", "chainId": 1, "verifyingContract": "0x1f9840a85d5af5bf1d1762f925bdaddc4201f984" }, "schemas": [ { "primaryType": "Delegation", "types": { - "Delegation": [ - { - "name": "delegatee", - "type": "address" - }, - { - "name": "nonce", - "type": "uint256" - }, - { - "name": "expiry", - "type": "uint256" - } - ], + "Delegation": [{ "name": "delegatee", "type": "address" }, { "name": "nonce", "type": "uint256" }, { "name": "expiry", "type": "uint256" }], "EIP712Domain": [ - { - "name": "chainId", - "type": "uint256" - }, - { - "name": "name", - "type": "string" - }, - { - "name": "verifyingContract", - "type": "address" - } + { "name": "chainId", "type": "uint256" }, + { "name": "name", "type": "string" }, + { "name": "verifyingContract", "type": "address" } ] } } ] } }, - "metadata": { - "owner": "Uniswap" - }, + "metadata": { "owner": "Uniswap" }, "display": { "formats": { "Delegation": { "intent": "UNI token", "fields": [ - { - "path": "delegatee", - "label": "Delegatee", - "format": "raw" - }, - { - "path": "nonce", - "label": "Nonce", - "format": "raw" - }, - { - "path": "expiry", - "label": "Expiry", - "format": "raw" - } + { "path": "delegatee", "label": "Delegatee", "format": "raw" }, + { "path": "nonce", "label": "Nonce", "format": "raw" }, + { "path": "expiry", "label": "Expiry", "format": "raw" } ] } } diff --git a/registry/tether/calldata-usdt.json b/registry/tether/calldata-usdt.json index 556ff059..c2f8438c 100644 --- a/registry/tether/calldata-usdt.json +++ b/registry/tether/calldata-usdt.json @@ -1,32 +1,13 @@ { - "$schema": "../../specs/erc7730-v1.schema.json", - - "context": { - "$id": "Tether USD", - "contract" : { - "deployments": [ - { - "chainId": 1, - "address": "0xdAC17F958D2ee523a2206206994597C13D831ec7" - - } - ] - } - }, - - "includes": "../../ercs/calldata-erc20-tokens.json", - - "metadata": { - "owner": "Tether", - "info": { - "legalName": "Tether Limited", - "url": "https://tether.to/", - "lastUpdate": "2017-11-28T12:41:21Z" - }, - "token": { - "ticker": "USDT", - "name": "Tether USD", - "decimals": 6 - } - } -} \ No newline at end of file + "$schema": "../../specs/erc7730-v1.schema.json", + "context": { + "$id": "Tether USD", + "contract": { "deployments": [{ "chainId": 1, "address": "0xdAC17F958D2ee523a2206206994597C13D831ec7" }] } + }, + "includes": "../../ercs/calldata-erc20-tokens.json", + "metadata": { + "owner": "Tether", + "info": { "legalName": "Tether Limited", "url": "https://tether.to/", "lastUpdate": "2017-11-28T12:41:21Z" }, + "token": { "ticker": "USDT", "name": "Tether USD", "decimals": 6 } + } +} diff --git a/registry/uniswap/calldata-UniswapV3Router02.json b/registry/uniswap/calldata-UniswapV3Router02.json index 7bc363e9..6293894c 100644 --- a/registry/uniswap/calldata-UniswapV3Router02.json +++ b/registry/uniswap/calldata-UniswapV3Router02.json @@ -1,241 +1,135 @@ { - "$schema": "../../specs/erc7730-v1.schema.json", - - "context": { - "$id": "Uniswap v3 Router 2", - "contract": { - "deployments": [ - { - "chainId": 1, - "address": "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45" - } - ], - "abi": "https://github.com/LedgerHQ/ledger-asset-dapps/blob/211e75ed27de3894f592ca73710fa0b72c3ceeae/ethereum/uniswap/abis/0x68b3465833fb72a70ecdf485e0e4c7bd8665fc45.abi.json" - } - }, - - "metadata": { - "owner": "Uniswap", - "info": { - "legalName": "Uniswap Labs", - "lastUpdate": "2021-12-14T00:00:00Z", - "url": "https://uniswap.org/" - } - }, - - "display": { - "formats": { - "0xb858183f": { - "$id": "exactInput", - "intent": "Swap", - "fields": [ - { - "path": "params.amountIn", - "label": "Amount to Send", - "format": "tokenAmount", - "params": { - "tokenPath": "params.path.[0:19]" - } - }, - { - "path": "params.amountOutMinimum", - "label": "Minimum amount to Receive", - "format": "tokenAmount", - "params": { - "tokenPath": "params.path.[-20:-1]" - } - }, - { - "path": "params.recipient", - "label": "Beneficiary", - "format": "addressName", - "params": { - "types": [ - "eoa" - ], - "sources": [ - "local", - "ens" - ] - } - } - ], - "required": ["params.amountIn", "params.amountOutMinimum", "params.recipient"] - }, - "0x04e45aaf": { - "$id": "exactInputSingle", - "intent": "swap", - "fields": [ - { - "path": "params.amountIn", - "label": "Send", - "format": "tokenAmount", - "params": { - "tokenPath": "params.tokenIn" - } - }, - { - "path": "params.amountOutMinimum", - "label": "Receive Minimum", - "format": "tokenAmount", - "params": { - "tokenPath": "params.tokenOut" - } - }, - { - "path": "params.fee", - "label": "Uniswap fee", - "format": "unit", - "params": { - "decimals": 4, - "base": "%", - "prefix": false - } - }, - { - "path": "params.recipient", - "label": "Beneficiary", - "format": "addressName", - "params": { - "types": [ - "eoa" - ], - "sources": [ - "local", - "ens" - ] - } - } - ], - "required": ["params.amountIn", "params.amountOutMininimum", "params.fee", "params.recipient"] - }, - "0x09b81346": { - "$id": "exactOutput", - "intent": "Swap", - "fields": [ - { - "path": "params.amountInMaximum", - "label": "Maximum Amount to Send", - "format": "tokenAmount", - "params": { - "tokenPath": "params.path.[0:19]" - } - }, - { - "path": "params.amountOut", - "label": "Amount to Receive", - "format": "tokenAmount", - "params": { - "tokenPath": "params.path.[-20:-1]" - } - }, - { - "path": "params.recipient", - "label": "Beneficiary", - "format": "addressName", - "params": { - "types": [ - "eoa" - ], - "sources": [ - "local", - "ens" - ] - } - } - ], - "required": ["params.amountInMaximum", "params.amountOut", "params.recipient"] - }, - "0x5023b4df": { - "$id": "exactOutputSingle", - "intent": "Swap", - "fields": [ - { - "path": "params.amountInMaximum", - "label": "Maximum Amount to Send", - "format": "tokenAmount", - "params": { - "tokenPath": "params.tokenIn" - } - }, - { - "path": "params.amountOut", - "label": "Amount to Receive", - "format": "tokenAmount", - "params": { - "tokenPath": "params.tokenOut" - } - }, - { - "path": "params.fee", - "label": "Uniswap fee", - "format": "unit", - "params": { - "decimals": 4, - "base": "%", - "prefix": false - } - }, - { - "path": "params.recipient", - "label": "Beneficiary", - "format": "addressName", - "params": { - "types": [ - "eoa" - ], - "sources": [ - "local", - "ens" - ] - } - } - ] - }, - "0x472b43f3": { - "$id": "swapExactTokensForTokens", - "intent": "Swap", - "fields": [ - { - "path": "amountIn", - "label": "Amount to Send", - "format": "tokenAmount", - "params": { - "tokenPath": "path.[0]" - } - }, - { - "path": "amountOutMin", - "label": "Minimum amount to Receive", - "format": "tokenAmount", - "params": { - "tokenPath": "path.[-1]" - } - } - ] - }, - "0x42712a67": { - "$id": "swapTokensForExactTokens", - "intent": "Swap", - "fields": [ - { - "path": "amountOut", - "label": "Amount to Receive", - "format": "tokenAmount", - "params": { - "tokenPath": "path.[-1]" - } - }, - { - "path": "amountInMax", - "label": "Maximum Amount to Send", - "format": "tokenAmount", - "params": { - "tokenPath": "path.[0]" - } - } - ] - } - } + "$schema": "../../specs/erc7730-v1.schema.json", + "context": { + "$id": "Uniswap v3 Router 2", + "contract": { + "deployments": [{ "chainId": 1, "address": "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45" }], + "abi": "https://github.com/LedgerHQ/ledger-asset-dapps/blob/211e75ed27de3894f592ca73710fa0b72c3ceeae/ethereum/uniswap/abis/0x68b3465833fb72a70ecdf485e0e4c7bd8665fc45.abi.json" } + }, + "metadata": { + "owner": "Uniswap", + "info": { "legalName": "Uniswap Labs", "lastUpdate": "2021-12-14T00:00:00Z", "url": "https://uniswap.org/" } + }, + "display": { + "formats": { + "0xb858183f": { + "$id": "exactInput", + "intent": "Swap", + "fields": [ + { + "path": "params.amountIn", + "label": "Amount to Send", + "format": "tokenAmount", + "params": { "tokenPath": "params.path.[0:19]" } + }, + { + "path": "params.amountOutMinimum", + "label": "Minimum amount to Receive", + "format": "tokenAmount", + "params": { "tokenPath": "params.path.[-20:-1]" } + }, + { + "path": "params.recipient", + "label": "Beneficiary", + "format": "addressName", + "params": { "types": ["eoa"], "sources": ["local", "ens"] } + } + ], + "required": ["params.amountIn", "params.amountOutMinimum", "params.recipient"] + }, + "0x04e45aaf": { + "$id": "exactInputSingle", + "intent": "swap", + "fields": [ + { "path": "params.amountIn", "label": "Send", "format": "tokenAmount", "params": { "tokenPath": "params.tokenIn" } }, + { + "path": "params.amountOutMinimum", + "label": "Receive Minimum", + "format": "tokenAmount", + "params": { "tokenPath": "params.tokenOut" } + }, + { "path": "params.fee", "label": "Uniswap fee", "format": "unit", "params": { "decimals": 4, "base": "%", "prefix": false } }, + { + "path": "params.recipient", + "label": "Beneficiary", + "format": "addressName", + "params": { "types": ["eoa"], "sources": ["local", "ens"] } + } + ], + "required": ["params.amountIn", "params.amountOutMininimum", "params.fee", "params.recipient"] + }, + "0x09b81346": { + "$id": "exactOutput", + "intent": "Swap", + "fields": [ + { + "path": "params.amountInMaximum", + "label": "Maximum Amount to Send", + "format": "tokenAmount", + "params": { "tokenPath": "params.path.[0:19]" } + }, + { + "path": "params.amountOut", + "label": "Amount to Receive", + "format": "tokenAmount", + "params": { "tokenPath": "params.path.[-20:-1]" } + }, + { + "path": "params.recipient", + "label": "Beneficiary", + "format": "addressName", + "params": { "types": ["eoa"], "sources": ["local", "ens"] } + } + ], + "required": ["params.amountInMaximum", "params.amountOut", "params.recipient"] + }, + "0x5023b4df": { + "$id": "exactOutputSingle", + "intent": "Swap", + "fields": [ + { + "path": "params.amountInMaximum", + "label": "Maximum Amount to Send", + "format": "tokenAmount", + "params": { "tokenPath": "params.tokenIn" } + }, + { + "path": "params.amountOut", + "label": "Amount to Receive", + "format": "tokenAmount", + "params": { "tokenPath": "params.tokenOut" } + }, + { "path": "params.fee", "label": "Uniswap fee", "format": "unit", "params": { "decimals": 4, "base": "%", "prefix": false } }, + { + "path": "params.recipient", + "label": "Beneficiary", + "format": "addressName", + "params": { "types": ["eoa"], "sources": ["local", "ens"] } + } + ] + }, + "0x472b43f3": { + "$id": "swapExactTokensForTokens", + "intent": "Swap", + "fields": [ + { "path": "amountIn", "label": "Amount to Send", "format": "tokenAmount", "params": { "tokenPath": "path.[0]" } }, + { + "path": "amountOutMin", + "label": "Minimum amount to Receive", + "format": "tokenAmount", + "params": { "tokenPath": "path.[-1]" } + } + ] + }, + "0x42712a67": { + "$id": "swapTokensForExactTokens", + "intent": "Swap", + "fields": [ + { "path": "amountOut", "label": "Amount to Receive", "format": "tokenAmount", "params": { "tokenPath": "path.[-1]" } }, + { "path": "amountInMax", "label": "Maximum Amount to Send", "format": "tokenAmount", "params": { "tokenPath": "path.[0]" } } + ] + } + } + } } diff --git a/registry/uniswap/eip712-UniswapX-DutchOrder.json b/registry/uniswap/eip712-UniswapX-DutchOrder.json index 655a91a5..9044df4d 100644 --- a/registry/uniswap/eip712-UniswapX-DutchOrder.json +++ b/registry/uniswap/eip712-UniswapX-DutchOrder.json @@ -1,219 +1,99 @@ { - "$schema": "../../specs/erc7730-v1.schema.json", - - "includes": "uniswap-common-eip712.json", - - "context": { - "eip712": { - "schemas": [ - { - "types": { - "DutchOrder": [ - { - "name": "info", - "type": "OrderInfo" - }, - { - "name": "decayStartTime", - "type": "uint256" - }, - { - "name": "decayEndTime", - "type": "uint256" - }, - { - "name": "inputToken", - "type": "address" - }, - { - "name": "inputStartAmount", - "type": "uint256" - }, - { - "name": "inputEndAmount", - "type": "uint256" - }, - { - "name": "outputs", - "type": "DutchOutput[]" - } - ], - "DutchOutput": [ - { - "name": "token", - "type": "address" - }, - { - "name": "startAmount", - "type": "uint256" - }, - { - "name": "endAmount", - "type": "uint256" - }, - { - "name": "recipient", - "type": "address" - } - ], - "EIP712Domain": [ - { - "name": "name", - "type": "string" - }, - { - "name": "chainId", - "type": "uint256" - }, - { - "name": "verifyingContract", - "type": "address" - } - ], - "OrderInfo": [ - { - "name": "reactor", - "type": "address" - }, - { - "name": "swapper", - "type": "address" - }, - { - "name": "nonce", - "type": "uint256" - }, - { - "name": "deadline", - "type": "uint256" - }, - { - "name": "additionalValidationContract", - "type": "address" - }, - { - "name": "additionalValidationData", - "type": "bytes" - } - ], - "PermitWitnessTransferFrom": [ - { - "name": "permitted", - "type": "TokenPermissions" - }, - { - "name": "spender", - "type": "address" - }, - { - "name": "nonce", - "type": "uint256" - }, - { - "name": "deadline", - "type": "uint256" - }, - { - "name": "witness", - "type": "DutchOrder" - } - ], - "TokenPermissions": [ - { - "name": "token", - "type": "address" - }, - { - "name": "amount", - "type": "uint256" - } - ] - }, - "primaryType": "PermitWitnessTransferFrom" - } - ] - } - }, - "display": { - "formats": { - "PermitWitnessTransferFrom" : { - "intent": "UniswapX Dutch Order", - "fields": [ - { - "path": "spender", - "label": "Approve to spender", - "format": "addressName", - "params": { - "types": [ - "contract" - ], - "sources": [ - "local", - "ens" - ] - } - }, - { - "path": "permitted.amount", - "label": "Approve amount", - "format": "tokenAmount", - "params": { - "tokenPath": "permitted.token" - } - }, - { - "path": "witness.inputStartAmount", - "label": "Spend max", - "format": "tokenAmount", - "params": { - "tokenPath": "witness.inputToken" - } - }, - { - "path": "witness.outputs.[]", - "fields": [ - { - "path": "endAmount", - "label": "Minimum amounts to receive", - "format": "tokenAmount", - "params": { - "tokenPath": "token" - } - }, - { - "path": "recipient", - "label": "On Addresses", - "format": "addressName", - "params": { - "types": [ - "contract" - ], - "sources": [ - "local", - "ens" - ] - } - } - ] - }, - { - "path": "deadline", - "label": "Approval expire", - "format": "date", - "params": { - "encoding": "timestamp" - } - } - ], - "excluded": [ - "nonce", - "witness.info", - "witness.decayStartTime", - "witness.decayEndTime", - "witness.inputEndAmount", - "witness.outputs.[].startAmount" - ] - } + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "uniswap-common-eip712.json", + "context": { + "eip712": { + "schemas": [ + { + "types": { + "DutchOrder": [ + { "name": "info", "type": "OrderInfo" }, + { "name": "decayStartTime", "type": "uint256" }, + { "name": "decayEndTime", "type": "uint256" }, + { "name": "inputToken", "type": "address" }, + { "name": "inputStartAmount", "type": "uint256" }, + { "name": "inputEndAmount", "type": "uint256" }, + { "name": "outputs", "type": "DutchOutput[]" } + ], + "DutchOutput": [ + { "name": "token", "type": "address" }, + { "name": "startAmount", "type": "uint256" }, + { "name": "endAmount", "type": "uint256" }, + { "name": "recipient", "type": "address" } + ], + "EIP712Domain": [ + { "name": "name", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } + ], + "OrderInfo": [ + { "name": "reactor", "type": "address" }, + { "name": "swapper", "type": "address" }, + { "name": "nonce", "type": "uint256" }, + { "name": "deadline", "type": "uint256" }, + { "name": "additionalValidationContract", "type": "address" }, + { "name": "additionalValidationData", "type": "bytes" } + ], + "PermitWitnessTransferFrom": [ + { "name": "permitted", "type": "TokenPermissions" }, + { "name": "spender", "type": "address" }, + { "name": "nonce", "type": "uint256" }, + { "name": "deadline", "type": "uint256" }, + { "name": "witness", "type": "DutchOrder" } + ], + "TokenPermissions": [{ "name": "token", "type": "address" }, { "name": "amount", "type": "uint256" }] + }, + "primaryType": "PermitWitnessTransferFrom" } + ] + } + }, + "display": { + "formats": { + "PermitWitnessTransferFrom": { + "intent": "UniswapX Dutch Order", + "fields": [ + { + "path": "spender", + "label": "Approve to spender", + "format": "addressName", + "params": { "types": ["contract"], "sources": ["local", "ens"] } + }, + { + "path": "permitted.amount", + "label": "Approve amount", + "format": "tokenAmount", + "params": { "tokenPath": "permitted.token" } + }, + { + "path": "witness.inputStartAmount", + "label": "Spend max", + "format": "tokenAmount", + "params": { "tokenPath": "witness.inputToken" } + }, + { + "path": "witness.outputs.[]", + "fields": [ + { "path": "endAmount", "label": "Minimum amounts to receive", "format": "tokenAmount", "params": { "tokenPath": "token" } }, + { + "path": "recipient", + "label": "On Addresses", + "format": "addressName", + "params": { "types": ["contract"], "sources": ["local", "ens"] } + } + ] + }, + { "path": "deadline", "label": "Approval expire", "format": "date", "params": { "encoding": "timestamp" } } + ], + "excluded": [ + "nonce", + "witness.info", + "witness.decayStartTime", + "witness.decayEndTime", + "witness.inputEndAmount", + "witness.outputs.[].startAmount" + ] + } } + } } diff --git a/registry/uniswap/eip712-UniswapX-ExclusiveDutchOrder.json b/registry/uniswap/eip712-UniswapX-ExclusiveDutchOrder.json index f6e17fd4..db93d6cb 100644 --- a/registry/uniswap/eip712-UniswapX-ExclusiveDutchOrder.json +++ b/registry/uniswap/eip712-UniswapX-ExclusiveDutchOrder.json @@ -1,230 +1,103 @@ { - "$schema": "../../specs/erc7730-v1.schema.json", - - "includes": "uniswap-common-eip712.json", - - "context": { - "eip712": { - "schemas": [ - { - "types": { - "DutchOutput": [ - { - "name": "token", - "type": "address" - }, - { - "name": "startAmount", - "type": "uint256" - }, - { - "name": "endAmount", - "type": "uint256" - }, - { - "name": "recipient", - "type": "address" - } - ], - "EIP712Domain": [ - { - "name": "name", - "type": "string" - }, - { - "name": "chainId", - "type": "uint256" - }, - { - "name": "verifyingContract", - "type": "address" - } - ], - "ExclusiveDutchOrder": [ - { - "name": "info", - "type": "OrderInfo" - }, - { - "name": "decayStartTime", - "type": "uint256" - }, - { - "name": "decayEndTime", - "type": "uint256" - }, - { - "name": "exclusiveFiller", - "type": "address" - }, - { - "name": "exclusivityOverrideBps", - "type": "uint256" - }, - { - "name": "inputToken", - "type": "address" - }, - { - "name": "inputStartAmount", - "type": "uint256" - }, - { - "name": "inputEndAmount", - "type": "uint256" - }, - { - "name": "outputs", - "type": "DutchOutput[]" - } - ], - "OrderInfo": [ - { - "name": "reactor", - "type": "address" - }, - { - "name": "swapper", - "type": "address" - }, - { - "name": "nonce", - "type": "uint256" - }, - { - "name": "deadline", - "type": "uint256" - }, - { - "name": "additionalValidationContract", - "type": "address" - }, - { - "name": "additionalValidationData", - "type": "bytes" - } - ], - "PermitWitnessTransferFrom": [ - { - "name": "permitted", - "type": "TokenPermissions" - }, - { - "name": "spender", - "type": "address" - }, - { - "name": "nonce", - "type": "uint256" - }, - { - "name": "deadline", - "type": "uint256" - }, - { - "name": "witness", - "type": "ExclusiveDutchOrder" - } - ], - "TokenPermissions": [ - { - "name": "token", - "type": "address" - }, - { - "name": "amount", - "type": "uint256" - } - ] - }, - "primaryType": "PermitWitnessTransferFrom" - } - ] - } - }, - - "display": { - "formats": { - "PermitWitnessTransferFrom" : { - "intent": "UniswapX Exclusive Dutch Order", - "fields": [ - { - "path": "spender", - "label": "Approve to spender", - "format": "addressName", - "params": { - "types": [ - "contract" - ], - "sources": [ - "local", - "ens" - ] - } - }, - { - "path": "permitted.amount", - "label": "Approve amount", - "format": "tokenAmount", - "params": { - "tokenPath": "permitted.token" - } - }, - { - "path": "witness.inputStartAmount", - "label": "Spend max", - "format": "tokenAmount", - "params": { - "tokenPath": "witness.inputToken" - } - }, - { - "path": "witness.outputs.[]", - "fields": [ - { - "path": "endAmount", - "label": "Minimum amounts to receive", - "format": "tokenAmount", - "params": { - "tokenPath": "token" - } - }, - { - "path": "recipient", - "label": "On Addresses", - "format": "addressName", - "params": { - "types": [ - "contract" - ], - "sources": [ - "local", - "ens" - ] - } - } - ] - }, - { - "path": "deadline", - "label": "Approval expire", - "format": "date", - "params": { - "encoding": "timestamp" - } - } - ], - "excluded": [ - "nonce", - "witness.info", - "witness.decayStartTime", - "witness.decayEndTime", - "witness.exclusiveFiller", - "witness.exclusivityOverrideBps", - "witness.inputEndAmount", - "witness.outputs.[].startAmount" - ] - } + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "uniswap-common-eip712.json", + "context": { + "eip712": { + "schemas": [ + { + "types": { + "DutchOutput": [ + { "name": "token", "type": "address" }, + { "name": "startAmount", "type": "uint256" }, + { "name": "endAmount", "type": "uint256" }, + { "name": "recipient", "type": "address" } + ], + "EIP712Domain": [ + { "name": "name", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } + ], + "ExclusiveDutchOrder": [ + { "name": "info", "type": "OrderInfo" }, + { "name": "decayStartTime", "type": "uint256" }, + { "name": "decayEndTime", "type": "uint256" }, + { "name": "exclusiveFiller", "type": "address" }, + { "name": "exclusivityOverrideBps", "type": "uint256" }, + { "name": "inputToken", "type": "address" }, + { "name": "inputStartAmount", "type": "uint256" }, + { "name": "inputEndAmount", "type": "uint256" }, + { "name": "outputs", "type": "DutchOutput[]" } + ], + "OrderInfo": [ + { "name": "reactor", "type": "address" }, + { "name": "swapper", "type": "address" }, + { "name": "nonce", "type": "uint256" }, + { "name": "deadline", "type": "uint256" }, + { "name": "additionalValidationContract", "type": "address" }, + { "name": "additionalValidationData", "type": "bytes" } + ], + "PermitWitnessTransferFrom": [ + { "name": "permitted", "type": "TokenPermissions" }, + { "name": "spender", "type": "address" }, + { "name": "nonce", "type": "uint256" }, + { "name": "deadline", "type": "uint256" }, + { "name": "witness", "type": "ExclusiveDutchOrder" } + ], + "TokenPermissions": [{ "name": "token", "type": "address" }, { "name": "amount", "type": "uint256" }] + }, + "primaryType": "PermitWitnessTransferFrom" } + ] + } + }, + "display": { + "formats": { + "PermitWitnessTransferFrom": { + "intent": "UniswapX Exclusive Dutch Order", + "fields": [ + { + "path": "spender", + "label": "Approve to spender", + "format": "addressName", + "params": { "types": ["contract"], "sources": ["local", "ens"] } + }, + { + "path": "permitted.amount", + "label": "Approve amount", + "format": "tokenAmount", + "params": { "tokenPath": "permitted.token" } + }, + { + "path": "witness.inputStartAmount", + "label": "Spend max", + "format": "tokenAmount", + "params": { "tokenPath": "witness.inputToken" } + }, + { + "path": "witness.outputs.[]", + "fields": [ + { "path": "endAmount", "label": "Minimum amounts to receive", "format": "tokenAmount", "params": { "tokenPath": "token" } }, + { + "path": "recipient", + "label": "On Addresses", + "format": "addressName", + "params": { "types": ["contract"], "sources": ["local", "ens"] } + } + ] + }, + { "path": "deadline", "label": "Approval expire", "format": "date", "params": { "encoding": "timestamp" } } + ], + "excluded": [ + "nonce", + "witness.info", + "witness.decayStartTime", + "witness.decayEndTime", + "witness.exclusiveFiller", + "witness.exclusivityOverrideBps", + "witness.inputEndAmount", + "witness.outputs.[].startAmount" + ] + } } + } } diff --git a/registry/uniswap/eip712-UniswapX-LimitOrder.json b/registry/uniswap/eip712-UniswapX-LimitOrder.json index d2f804de..0dc8e73a 100644 --- a/registry/uniswap/eip712-UniswapX-LimitOrder.json +++ b/registry/uniswap/eip712-UniswapX-LimitOrder.json @@ -1,197 +1,79 @@ { - "$schema": "../../specs/erc7730-v1.schema.json", - "includes": "uniswap-common-eip712.json", - "context": { - "eip712": { - "schemas": [ - { - "types": { - "EIP712Domain": [ - { - "name": "name", - "type": "string" - }, - { - "name": "chainId", - "type": "uint256" - }, - { - "name": "verifyingContract", - "type": "address" - } - ], - "LimitOrder": [ - { - "name": "info", - "type": "OrderInfo" - }, - { - "name": "inputToken", - "type": "address" - }, - { - "name": "inputAmount", - "type": "uint256" - }, - { - "name": "outputs", - "type": "OutputToken[]" - } - ], - "OrderInfo": [ - { - "name": "reactor", - "type": "address" - }, - { - "name": "swapper", - "type": "address" - }, - { - "name": "nonce", - "type": "uint256" - }, - { - "name": "deadline", - "type": "uint256" - }, - { - "name": "additionalValidationContract", - "type": "address" - }, - { - "name": "additionalValidationData", - "type": "bytes" - } - ], - "OutputToken": [ - { - "name": "token", - "type": "address" - }, - { - "name": "amount", - "type": "uint256" - }, - { - "name": "recipient", - "type": "address" - } - ], - "PermitWitnessTransferFrom": [ - { - "name": "permitted", - "type": "TokenPermissions" - }, - { - "name": "spender", - "type": "address" - }, - { - "name": "nonce", - "type": "uint256" - }, - { - "name": "deadline", - "type": "uint256" - }, - { - "name": "witness", - "type": "LimitOrder" - } - ], - "TokenPermissions": [ - { - "name": "token", - "type": "address" - }, - { - "name": "amount", - "type": "uint256" - } - ] - }, - "primaryType": "PermitWitnessTransferFrom" - } - ] - } - }, - "display": { - "formats": { - "PermitWitnessTransferFrom": { - "intent": "UniswapX Limit Order", - "fields": [ - { - "path": "spender", - "label": "Approve to spender", - "format": "addressName", - "params": { - "types": [ - "contract" - ], - "sources": [ - "local", - "ens" - ] - } - }, - { - "path": "permitted.amount", - "label": "Amount allowance", - "format": "tokenAmount", - "params": { - "tokenPath": "permitted.token" - } - }, - { - "path": "witness.inputAmount", - "label": "Send", - "format": "tokenAmount", - "params": { - "tokenPath": "witness.inputToken" - } - }, - { - "path": "witness.outputs.[]", - "fields": [ - { - "path": "amount", - "label": "Min amount to receive", - "format": "tokenAmount", - "params": { - "tokenPath": "token" - } - }, - { - "path": "recipient", - "label": "On Address", - "format": "addressName", - "params": { - "types": [ - "contract" - ], - "sources": [ - "local", - "ens" - ] - } - } - ] - }, - { - "path": "deadline", - "label": "Approval expire", - "format": "date", - "params": { - "encoding": "timestamp" - } - } - ], - "excluded": [ - "nonce", - "witness.info" - ] - } + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "uniswap-common-eip712.json", + "context": { + "eip712": { + "schemas": [ + { + "types": { + "EIP712Domain": [ + { "name": "name", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } + ], + "LimitOrder": [ + { "name": "info", "type": "OrderInfo" }, + { "name": "inputToken", "type": "address" }, + { "name": "inputAmount", "type": "uint256" }, + { "name": "outputs", "type": "OutputToken[]" } + ], + "OrderInfo": [ + { "name": "reactor", "type": "address" }, + { "name": "swapper", "type": "address" }, + { "name": "nonce", "type": "uint256" }, + { "name": "deadline", "type": "uint256" }, + { "name": "additionalValidationContract", "type": "address" }, + { "name": "additionalValidationData", "type": "bytes" } + ], + "OutputToken": [{ "name": "token", "type": "address" }, { "name": "amount", "type": "uint256" }, { "name": "recipient", "type": "address" }], + "PermitWitnessTransferFrom": [ + { "name": "permitted", "type": "TokenPermissions" }, + { "name": "spender", "type": "address" }, + { "name": "nonce", "type": "uint256" }, + { "name": "deadline", "type": "uint256" }, + { "name": "witness", "type": "LimitOrder" } + ], + "TokenPermissions": [{ "name": "token", "type": "address" }, { "name": "amount", "type": "uint256" }] + }, + "primaryType": "PermitWitnessTransferFrom" } + ] + } + }, + "display": { + "formats": { + "PermitWitnessTransferFrom": { + "intent": "UniswapX Limit Order", + "fields": [ + { + "path": "spender", + "label": "Approve to spender", + "format": "addressName", + "params": { "types": ["contract"], "sources": ["local", "ens"] } + }, + { + "path": "permitted.amount", + "label": "Amount allowance", + "format": "tokenAmount", + "params": { "tokenPath": "permitted.token" } + }, + { "path": "witness.inputAmount", "label": "Send", "format": "tokenAmount", "params": { "tokenPath": "witness.inputToken" } }, + { + "path": "witness.outputs.[]", + "fields": [ + { "path": "amount", "label": "Min amount to receive", "format": "tokenAmount", "params": { "tokenPath": "token" } }, + { + "path": "recipient", + "label": "On Address", + "format": "addressName", + "params": { "types": ["contract"], "sources": ["local", "ens"] } + } + ] + }, + { "path": "deadline", "label": "Approval expire", "format": "date", "params": { "encoding": "timestamp" } } + ], + "excluded": ["nonce", "witness.info"] + } } -} \ No newline at end of file + } +} diff --git a/registry/uniswap/eip712-uniswap-permit2.json b/registry/uniswap/eip712-uniswap-permit2.json index a235fbcc..9443f462 100644 --- a/registry/uniswap/eip712-uniswap-permit2.json +++ b/registry/uniswap/eip712-uniswap-permit2.json @@ -1,214 +1,95 @@ { - "$schema": "../../specs/erc7730-v1.schema.json", - - "includes": "uniswap-common-eip712.json", - - "context": { - "eip712": { - "schemas": [ - { - "types": { - "EIP712Domain": [ - { - "name": "name", - "type": "string" - }, - { - "name": "chainId", - "type": "uint256" - }, - { - "name": "verifyingContract", - "type": "address" - } - ], - "PermitDetails": [ - { - "name": "token", - "type": "address" - }, - { - "name": "amount", - "type": "uint160" - }, - { - "name": "expiration", - "type": "uint48" - }, - { - "name": "nonce", - "type": "uint48" - } - ], - "PermitBatch": [ - { - "name": "details", - "type": "PermitDetails[]" - }, - { - "name": "spender", - "type": "address" - }, - { - "name": "sigDeadline", - "type": "uint256" - } - ] - }, - "primaryType": "PermitBatch" - }, - { - "types": { - "EIP712Domain": [ - { - "name": "name", - "type": "string" - }, - { - "name": "chainId", - "type": "uint256" - }, - { - "name": "verifyingContract", - "type": "address" - } - ], - "PermitDetails": [ - { - "name": "token", - "type": "address" - }, - { - "name": "amount", - "type": "uint160" - }, - { - "name": "expiration", - "type": "uint48" - }, - { - "name": "nonce", - "type": "uint48" - } - ], - "PermitSingle": [ - { - "name": "details", - "type": "PermitDetails" - }, - { - "name": "spender", - "type": "address" - }, - { - "name": "sigDeadline", - "type": "uint256" - } - ] - }, - "primaryType": "PermitSingle" - } + "$schema": "../../specs/erc7730-v1.schema.json", + "includes": "uniswap-common-eip712.json", + "context": { + "eip712": { + "schemas": [ + { + "types": { + "EIP712Domain": [ + { "name": "name", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } + ], + "PermitDetails": [ + { "name": "token", "type": "address" }, + { "name": "amount", "type": "uint160" }, + { "name": "expiration", "type": "uint48" }, + { "name": "nonce", "type": "uint48" } + ], + "PermitBatch": [ + { "name": "details", "type": "PermitDetails[]" }, + { "name": "spender", "type": "address" }, + { "name": "sigDeadline", "type": "uint256" } ] + }, + "primaryType": "PermitBatch" + }, + { + "types": { + "EIP712Domain": [ + { "name": "name", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } + ], + "PermitDetails": [ + { "name": "token", "type": "address" }, + { "name": "amount", "type": "uint160" }, + { "name": "expiration", "type": "uint48" }, + { "name": "nonce", "type": "uint48" } + ], + "PermitSingle": [ + { "name": "details", "type": "PermitDetails" }, + { "name": "spender", "type": "address" }, + { "name": "sigDeadline", "type": "uint256" } + ] + }, + "primaryType": "PermitSingle" } - }, - - "display": { - "formats": { - - "PermitSingle": { - "$id": "Permit2 Permit Single", - "intent": "Authorize spending of token", - "fields": [ - { - "path": "spender", - "label": "Spender", - "format": "addressName", - "params": { - "types": [ - "contract" - ], - "sources": [ - "local", - "ens" - ] - } - }, - { - "path": "details.amount", - "label": "Amount allowance", - "format": "tokenAmount", - "params": { - "tokenPath": "details.token" - } - }, - { - "path": "details.expiration", - "label": "Approval expires", - "format": "date", - "params": { - "encoding": "timestamp" - } - } - ], - "required": [ - "spender", - "details.amount" - ], - "excluded": [ - "sigDeadline" - ], - "screens": {} - }, - - "PermitBatch": { - "$id": "Permit2 Permit Batch", - "intent": "Authorize spending of tokens", - "fields": [ - { - "path": "spender", - "label": "Spender", - "format": "addressName", - "params": { - "types": [ - "contract" - ], - "sources": [ - "local", - "ens" - ] - } - }, - { - "path": "details.[]", - "fields": [ - { - "path": "amount", - "label": "Amount allowance", - "format": "tokenAmount", - "params": { - "tokenPath": "token" - } - }, - { - "path": "expiration", - "label": "Approval expires", - "format": "date", - "params": { - "encoding": "timestamp" - } - } - ] - } - ], - "required": [ - "spender", - "details" - ], - "excluded": [ - "sigDeadline" - ], - "screens": {} - } - } + ] + } + }, + "display": { + "formats": { + "PermitSingle": { + "$id": "Permit2 Permit Single", + "intent": "Authorize spending of token", + "fields": [ + { + "path": "spender", + "label": "Spender", + "format": "addressName", + "params": { "types": ["contract"], "sources": ["local", "ens"] } + }, + { "path": "details.amount", "label": "Amount allowance", "format": "tokenAmount", "params": { "tokenPath": "details.token" } }, + { "path": "details.expiration", "label": "Approval expires", "format": "date", "params": { "encoding": "timestamp" } } + ], + "required": ["spender", "details.amount"], + "excluded": ["sigDeadline"], + "screens": {} + }, + "PermitBatch": { + "$id": "Permit2 Permit Batch", + "intent": "Authorize spending of tokens", + "fields": [ + { + "path": "spender", + "label": "Spender", + "format": "addressName", + "params": { "types": ["contract"], "sources": ["local", "ens"] } + }, + { + "path": "details.[]", + "fields": [ + { "path": "amount", "label": "Amount allowance", "format": "tokenAmount", "params": { "tokenPath": "token" } }, + { "path": "expiration", "label": "Approval expires", "format": "date", "params": { "encoding": "timestamp" } } + ] + } + ], + "required": ["spender", "details"], + "excluded": ["sigDeadline"], + "screens": {} + } } -} \ No newline at end of file + } +}