Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: format descriptors - 2024-11-18 17:10 #92

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .jfrog/projects/deps.cache.json
Original file line number Diff line number Diff line change
@@ -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"}}}
174 changes: 61 additions & 113 deletions ercs/calldata-erc20-tokens.json
Original file line number Diff line number Diff line change
@@ -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"]
}
}
}
}
}
Loading
Loading