diff --git a/.jfrog/projects/deps.cache.json b/.jfrog/projects/deps.cache.json new file mode 100644 index 0000000..2b07eea --- /dev/null +++ b/.jfrog/projects/deps.cache.json @@ -0,0 +1 @@ +{"version":1,"dependencies":{"aiofiles":{"id":"h11-0.14.0-py3-none-any.whl","sha1":"c502d56dc3288212142a398704a5109749331dd8","md5":"47f19bfed53c8f9278749c532490977e","sha256":"e3fe4ac4b851c468cc8363d500db52c2ead036020723024a109d37346efaa761"},"annotated-types":{"id":"token_bucket-0.3.0-py2.py3-none-any.whl","sha1":"22e36287680b21d418daad28e9aa13f119d9f314","md5":"e242207ee93a8ff65b8dbd1a2a4af891","sha256":"6df24309e3cf5b808ae5ef714a3191ec5b54f48c34ef959e4882eef140703369"},"anyio":{"id":"cytoolz-1.0.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl","sha1":"9a6583f5cb7d360872be251bf2ada18c9ab6b0c7","md5":"77a51078a0bbeb44878d2b25004fc71a","sha256":"f29d8330aaf070304f7cd5cb7e73e198753624eb0aec278557cccd460c699b5b"},"attrs":{"id":"pycryptodome-3.21.0-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl","sha1":"ba432a08134cbe071988914ec5fba05aef16375f","md5":"48ff1b0c1b0bb94d0b2c7a1eeb371856","sha256":"0714206d467fc911042d01ea3a1847c847bc10884cf674c82e12915cfe1649f8"},"case-switcher":{"id":"erc7730-0.1.29-py3-none-any.whl","sha1":"60a2f39c93a86a814b3fbd3379526f99518241be","md5":"64304ce5f43ad801cd9831bb85facef2","sha256":"be7c1f2bf1c8c0a6f6b70c0c6776252aaeeb34ae3cf4eec22ffb550587ef09d6"},"certifi":{"id":"anyio-4.6.2.post1-py3-none-any.whl","sha1":"e9655129b67dfef0d1668dc86888a41c6a18a653","md5":"5c4961c05aff0a32162003ac90628533","sha256":"6d170c36fba3bdd840c73d3868c1e777e33676a69c3a72cf0a0d5d6d8009b61d"},"click":{"id":"typing_extensions-4.12.2-py3-none-any.whl","sha1":"0fb5b2732cc421561b1348cac1334eb6a4e0bb7f","md5":"f5db8e1f1ab10181587cfe0b9ed1fc7f","sha256":"04e5ca0351e0f3f85c6853954072df659d0d13fac324d0072316b67d7794700d"},"cytoolz":{"id":"parsimonious-0.10.0-py3-none-any.whl","sha1":"a3e20c451d5e9f54506ff1978ec53233ec939551","md5":"b7fbb37c95a16bb5093463fe87534d66","sha256":"982ab435fabe86519b57f6b35610aa4e4e977e9f02a14353edf4bbc75369fc0f"},"eip712-clearsign":{"id":"case_switcher-1.3.13-py3-none-any.whl","sha1":"750abff4b22a2bbda1a8ec6c6b47c2191c68f4ea","md5":"ec235b9995df14e714c3c513aa076f63","sha256":"564e5dba2062e38862d1766187446362bbdaf9fe80eac9675757310d190712ca"},"erc7730":{"id":"erc7730-0.1.29-py3-none-any.whl","sha1":"60a2f39c93a86a814b3fbd3379526f99518241be","md5":"64304ce5f43ad801cd9831bb85facef2","sha256":"be7c1f2bf1c8c0a6f6b70c0c6776252aaeeb34ae3cf4eec22ffb550587ef09d6"},"eth-abi":{"id":"eip712_clearsign-3.0.3-py3-none-any.whl","sha1":"673bbabf5bf8feba10025deba8cad467dc738d49","md5":"b72d4ad7f10bc5edf489bfbb8d7b9bf7","sha256":"37af75ae15ae69a60ba67f704ff2e9672b9709a28f26c67c70dd4f316a277b21"},"eth-typing":{"id":"xdg_base_dirs-6.0.2-py3-none-any.whl","sha1":"fa109de10cab263f413469debe7cd76d861a3b70","md5":"820a70c0fd112d6b70d974c97511b66f","sha256":"3c01d1b758ed4ace150ac960ac0bd13ce4542b9e2cdf01312dcda5012cfebabe"},"eth-utils":{"id":"eth_abi-5.1.0-py3-none-any.whl","sha1":"9fc8e672bfce6904554bee0517fd83ee9af42ebc","md5":"fe5a92616a38c419e3433781e069b319","sha256":"84cac2626a7db8b7d9ebe62b0fdca676ab1014cc7f777189e3c0cd721a4c16d8"},"eth_hash":{"id":"eth_utils-5.1.0-py3-none-any.whl","sha1":"e4f82703c12884c356030ba6c41a6ab68f70fd18","md5":"27bae028d8a68c2ecf377d408083cb08","sha256":"a99f1f01b51206620904c5af47fac65abc143aebd0a76bdec860381c5a3230f8"},"h11":{"id":"sniffio-1.3.1-py3-none-any.whl","sha1":"bd8d1ec2b285eed542c53ca22232e6e9e468c389","md5":"995b1c07546ce03df296f3161a60fc4b","sha256":"2f6da418d1f1e0fddd844478f41680e794e6051915791a034ff65e5f100525a2"},"hishel":{"id":"eth_hash-0.7.0-py3-none-any.whl","sha1":"9aead462c18c9eebaa3fdda700533252c7a05506","md5":"97d6f1f8223d975cf75a00bb1f6e9ff0","sha256":"b8d5a230a2b251f4a291e3164a23a14057c4a6de4b0aa4a16fa4dc9161b57e2f"},"httpcore":{"id":"certifi-2024.8.30-py3-none-any.whl","sha1":"91c57b35828accda8f622c5328b4e9da1ab2db3b","md5":"d3afde7a82448d4d4651ef029c1f4bec","sha256":"922820b53db7a7257ffbda3f597266d435245903d80737e34f8a45ff3e3230d8"},"httpx":{"id":"httpx_file-0.2.0-py3-none-any.whl","sha1":"92756118d4f05c7cbd7535d81f43364cb7b1810e","md5":"b8e6410b268ec1012490007c10fbe2f7","sha256":"9a425b351bf65aa394c02096204dc3fa8b647573a289079f927d3e3abfa3c7c8"},"httpx-file":{"id":"hishel-0.1.1-py3-none-any.whl","sha1":"70c999a2c2eecb0f361b5b3071b9cf31467960bc","md5":"9d9a438b61b140ca3b1643019e348ef4","sha256":"5b51acc340303faeef2f5cfc1658acb1db1fdc3e3ad76406265a485f9707c5d6"},"idna":{"id":"httpcore-1.0.7-py3-none-any.whl","sha1":"16998fa42fcd769f34cf10abd615140ca2eeb7b3","md5":"8bc16a77c0252a184fe6a3b3b2eb9259","sha256":"a3fff8f43dc260d5bd363d9f9cf1830fa3a458b332856f34282de498ed420edd"},"jsonschema":{"id":"httpx-0.27.2-py3-none-any.whl","sha1":"f5cc5b841a924e28e92563bd268b8e327ec4d6ac","md5":"89bbcc62e50317c291a68a35016a9240","sha256":"7bb2708e112d8fdd7829cd4243970f0c223274051cb35ee80c03301ee29a3df0"},"jsonschema-specifications":{"id":"attrs-24.2.0-py3-none-any.whl","sha1":"9182eac43082c8e9eb30bcc17359e5dd5ed927af","md5":"3e6c0ecc3068e99e21452f95480c5854","sha256":"81921eb96de3191c8258c199618104dd27ac608d9366f5e35d011eae1867ede2"},"lark":{"id":"jsonschema-4.23.0-py3-none-any.whl","sha1":"b32520738fd2046801f2b23f3e4372caecd11502","md5":"be79227c146cfb34935b5bacaafb47fa","sha256":"fbadb6f8b144a8f8cf9f0b89ba94501d143e50411a1278633f56a7acf7fd5566"},"limiter":{"id":"lark-1.2.2-py3-none-any.whl","sha1":"79eced22d210f7ecbfc5e777da3bd230da75771b","md5":"4af85318e79793d50b56aa290bb0854d","sha256":"c2276486b02f0f1b90be155f2c8ba4a8e194d42775786db622faccd652d8e80c"},"markdown-it-py":{"id":"shellingham-1.5.4-py2.py3-none-any.whl","sha1":"4a0496a09e0872bec3f05630c2ae8d576ea80b58","md5":"c7dfcd723fcc27c548ad3a7b06c976dc","sha256":"7ecfff8f2fd72616f7481040475a65b2bf8af90a56c89140852d1120324e8686"},"mdurl":{"id":"toolz-1.0.0-py3-none-any.whl","sha1":"64009bb617aae39fcd01512884781d45eacfd969","md5":"bddc0e41344ae22152489f1b7d33f6dc","sha256":"292c8f1c4e7516bf9086f8850935c799a874039c8bcf959d47b600e4c44a6236"},"parsimonious":{"id":"eth_typing-5.0.1-py3-none-any.whl","sha1":"8c71bbb0e1d368a40137d21c53b2e46b9bf883ee","md5":"001168df1a1d45003a661c8d4e9531f5","sha256":"f30d1af16aac598f216748a952eeb64fbcb6e73efa691d2de31148138afe96de"},"pycryptodome":{"id":"pygments-2.18.0-py3-none-any.whl","sha1":"edb9fdfbc4cf53d356a02beee8822dd8e9529f35","md5":"ab3c5cc3c2d21df9d3a8b9c71c01f0f1","sha256":"b8e6aca0523f3ab76fee51799c488e38782ac06eafcf95e7ba832985c8e7b13a"},"pydantic":{"id":"pydantic_string_url-1.0.2-py3-none-any.whl","sha1":"a1dda74f82a7f4a4ce78f796543bb0a75aeb8c6c","md5":"d8e35f1490064c279a70695824067610","sha256":"9f97d415aa99f392d08882f2702f7eda9b8f979bb2526dbf75df9bc9ff062f21"},"pydantic-core":{"id":"annotated_types-0.7.0-py3-none-any.whl","sha1":"ea2dd11b884eb6bc96d35b81d764010aa19eb952","md5":"b132aea373e91e5a46e3b5425c9970e2","sha256":"1f02e8b43a8fbbc3f3e0d4f0f4bfc8131bcb4eebe8849b8e5c773f3a1c582a53"},"pydantic-string-url":{"id":"limiter-0.5.0-py2.py3-none-any.whl","sha1":"f5204e11a05813745a74294e5c8128ac636a04a7","md5":"071e0f19c150883032652febbf20ded2","sha256":"920ee7587596b6421690ee2009a755a9970b743001567ae1005310d9b654985c"},"pygments":{"id":"markdown_it_py-3.0.0-py3-none-any.whl","sha1":"3982b43b7efd8f976d0d89f7ea110a7db73194c4","md5":"261d52f83b11ca9280c84c7692de7c9d","sha256":"355216845c60bd96232cd8d8c40e8f9765cc86f46880e43a8fd22dc1a1a8cab1"},"referencing":{"id":"jsonschema_specifications-2024.10.1-py3-none-any.whl","sha1":"ef511d5e9e07d1533c9ea4112c20f4fbc4519307","md5":"6e624e5607663cd4845122dea29fc258","sha256":"a09a0680616357d9a0ecf05c12ad234479f549239d0f5b55f3deea67475da9bf"},"regex":{"id":"mdurl-0.1.2-py3-none-any.whl","sha1":"a26cf93cb2fe37f85fee4ea2f1c372cde26dd8b9","md5":"7db14dc5d739bfca141f035953620659","sha256":"84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8"},"rich":{"id":"pydantic-2.9.2-py3-none-any.whl","sha1":"288b5fda213e8e786ab7c5c33328fc735238a032","md5":"fabf720ee977eea4594fd50db459ecce","sha256":"f048cec7b26778210e28a0459867920654d48e5e62db0958433636cde4254f12"},"rpds-py":{"id":"referencing-0.35.1-py3-none-any.whl","sha1":"99eff1ea1adcc39e04dbed8487bc01974766646e","md5":"32bed01ccf876e80d33106f3fe3e9958","sha256":"eda6d3234d62814d1c64e305c1331c9a3a6132da475ab6382eaa997b21ee75de"},"shellingham":{"id":"click-8.1.7-py3-none-any.whl","sha1":"d066d29afdc61b0ba89ff9a58803fce84d47682b","md5":"37a41134cc8a13400234746942d5d180","sha256":"ae74fb96c20a0277a1d615f1e4d73c8414f5a98db8b799a7931d1582f3390c28"},"sniffio":{"id":"idna-3.10-py3-none-any.whl","sha1":"9a22e84a3d5bdd391de45e4aa49c77944ef172ec","md5":"ce22685f1b296fb33e5fda362870685d","sha256":"946d195a0d259cbba61165e88e65941f16e9b36ea6ddb97f00452bae8b1287d3"},"strenum":{"id":"aiofiles-24.1.0-py3-none-any.whl","sha1":"cf4ace2787f5a90fbb72a8c10fcda6dd9ffe78c7","md5":"a1995096fc1dddf1082381ae3ea83d00","sha256":"b4ec55f4195e3eb5d7abd1bf7e061763e864dd4954231fb8539a0ef8bb8260e5"},"token-bucket":{"id":"StrEnum-0.4.15-py3-none-any.whl","sha1":"a52de23b3abeb8fe929831faaaa3161044024026","md5":"47a901c7ac420ca5c0524f1dd3b8ec35","sha256":"a30cda4af7cc6b5bf52c8055bc4bf4b2b6b14a93b574626da33df53cf7740659"},"toolz":{"id":"rpds_py-0.21.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl","sha1":"265d1df1dd636abab99fe67afb3ac1372bbd59c9","md5":"f570d2db9606e72b1beffd99712b8153","sha256":"b229ce052ddf1a01c67d68166c19cb004fb3612424921b81c46e7ea7ccf7c3bf"},"typer":{"id":"rich-13.9.4-py3-none-any.whl","sha1":"954bc53a791a812d1a45f8444ecb1e09c676a54c","md5":"1eebfe375cf10b2b31f4cb569641e872","sha256":"6049d5e6ec054bf2779ab3358186963bac2ea89175919d699e378b99738c2a90"},"typing-extensions":{"id":"pydantic_core-2.23.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl","sha1":"9ca76b2246460e77ccb11a8b10c61356e2241f43","md5":"cf1ef129632252d2e970aee567d0bfd6","sha256":"128585782e5bfa515c590ccee4b727fb76925dd04a98864182b22e89a4e6ed36"},"xdg-base-dirs":{"id":"typer-0.13.0-py3-none-any.whl","sha1":"75135ebcb3953922bf74155a50d34e817beb8b33","md5":"cc49a905b2eaf0abaa618989fe524c89","sha256":"d85fe0b777b2517cc99c8055ed735452f2659cd45e451507c76f48ce5c1d00e2"}}} \ No newline at end of file diff --git a/ercs/calldata-erc20-tokens.json b/ercs/calldata-erc20-tokens.json index d02a1cc..c4a0ea4 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 d9af57c..3e74191 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 492351f..f99182d 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 e0ece27..ed943b2 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 8d82166..11c119d 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 3477807..4060534 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 baa44bf..b8e3b13 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 c1d958c..ac8e6ec 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 1dce4c7..6a62311 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 9205102..d9649b0 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 2f38bfb..6a0317c 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 72a4da7..690ebf0 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 44f5bc8..ddcc69a 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 b12adbc..d2d8919 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 c14a38e..353839e 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 f5bb400..2cd2a72 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 3d88030..35fafc0 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 5b5c0a4..8e9effb 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 f8d9cad..6570031 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 e30b7ab..6d32704 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.json b/registry/paraswap/calldata-AugustusSwapper.json index 6bd9d7d..a41bbea 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 5ee4dc6..48a0c9c 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 1bafb9d..82e1608 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 5545f32..bfc1c49 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 c064789..cb83c86 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 2bab3a1..ab4a934 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 cdf0c5d..1ca6854 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 a52cc95..520d57a 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 720d03e..3e4bae1 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 4d0c9c8..5024069 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 1166171..fb1d561 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 128dc33..f36bf5f 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 cc71920..8b258fc 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 a12ad3b..cd94631 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 a34dd30..be45c7b 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 a3e8e34..2244a8f 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 0c2fe5d..899b9af 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 05b4f5f..958d0cc 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 381229e..4a362dd 100644 --- a/registry/quickswap/calldata-QuickSwap.json +++ b/registry/quickswap/calldata-QuickSwap.json @@ -1,690 +1,203 @@ { - "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": 1, "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 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"] + } + } + } +} diff --git a/registry/rarible/eip712-rarible-erc-1155.json b/registry/rarible/eip712-rarible-erc-1155.json index abaa466..c7585cd 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 d8c50b1..5a1fa85 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 f1429e2..7736de8 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 49647f1..0d95c3a 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 860af9a..540af8c 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 2ec861a..8eb1ced 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 dd72f9e..d4c379d 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 b8ad179..610388a 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 467cf8b..ff1816b 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 d4acb3b..bf0fe8b 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 8cdfc0b..1eaa37e 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 d54f27a..b5580c0 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 25b534f..2b80c7e 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 dce56a3..c52d934 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 83faefc..b53214c 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 7db4f35..8cae7d8 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 d228063..9d5e51d 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 08090fa..e879f81 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 fa11fb4..92d36f0 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 556ff05..c2f8438 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 7bc363e..6293894 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 655a91a..9044df4 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 f6e17fd..db93d6c 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 d2f804d..0dc8e73 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 a235fbc..9443f46 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 + } +}