Skip to content

Commit

Permalink
chore: format descriptors - 2024-12-03 07:07 (#103)
Browse files Browse the repository at this point in the history
Co-authored-by: ldg-github-ci <[email protected]>
  • Loading branch information
ldg-github-ci and ldg-github-ci authored Dec 3, 2024
1 parent 473fd9e commit 639528b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 39 deletions.
15 changes: 7 additions & 8 deletions registry/paraswap/calldata-AugustusSwapper-v4.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
"$id": "AugustusSwapper",
"contract": {
"abi": "https://github.com/LedgerHQ/ledger-asset-dapps/blob/main/ethereum/paraswap/abis/0x1bd435f3c054b6e901b7b108a0ab7617c808677b.abi.json",
"deployments": [
{ "chainId": 1, "address": "0x1bd435f3c054b6e901b7b108a0ab7617c808677b" }
]
"deployments": [{ "chainId": 1, "address": "0x1bd435f3c054b6e901b7b108a0ab7617c808677b" }]
}
},
"metadata": { "owner": "Paraswap" },
Expand Down Expand Up @@ -78,7 +76,7 @@
{ "path": "fromAmount", "$ref": "$.display.definitions.fromAmount" },
{ "path": "toAmount", "$ref": "$.display.definitions.toAmount" },
{ "path": "beneficiary", "$ref": "$.display.definitions.beneficiary" }
],
],
"required": ["fromToken", "fromAmount", "toAmount", "beneficiary"]
},
"0xcfc0afeb": {
Expand All @@ -89,7 +87,7 @@
{ "path": "fromAmount", "$ref": "$.display.definitions.fromAmount" },
{ "path": "toAmount", "$ref": "$.display.definitions.toAmount" },
{ "path": "beneficiary", "$ref": "$.display.definitions.beneficiary" }
],
],
"required": ["fromToken", "fromAmount", "toAmount", "beneficiary"]
},
"0xec1d21dd": {
Expand All @@ -100,17 +98,18 @@
{ "path": "data.expectedAmount", "$ref": "$.display.definitions.expectedAmount" },
{ "path": "data.beneficiary", "$ref": "$.display.definitions.beneficiary" },
{ "path": "data.path.[]", "label": "Assets paths", "format": "addressName", "params": { "types": ["token"] } }
],
],
"required": ["data.fromToken", "data.fromAmount", "data.beneficiary", "data.path", "data.expectedAmount"]
},
"0xf95a49eb": {
"$id": "buy",
"fields": [
{ "path": "data.fromToken", "$ref": "$.display.definitions.fromToken"},
{ "path": "data.fromToken", "$ref": "$.display.definitions.fromToken" },
{ "path": "data.toToken", "$ref": "$.display.definitions.toToken" },
{ "path": "data.fromAmount", "$ref": "$.display.definitions.fromAmount", "params": { "tokenPath": "data.fromToken" } },
{ "path": "data.toAmount", "$ref": "$.display.definitions.toAmount", "params": { "tokenPath": "data.toToken" } },
{ "path": "data.beneficiary", "$ref": "$.display.definitions.beneficiary" } ],
{ "path": "data.beneficiary", "$ref": "$.display.definitions.beneficiary" }
],
"required": ["data.fromToken", "data.toToken", "data.fromAmount", "data.toAmount", "data.beneficiary"]
}
}
Expand Down
14 changes: 7 additions & 7 deletions registry/paraswap/calldata-AugustusSwapper-v5.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,22 +86,22 @@
"0x2298207a": {
"$id": "simpleBuy",
"fields": [
{ "path": "data.fromToken", "$ref": "$.display.definitions.fromToken"},
{ "path": "data.toToken", "$ref": "$.display.definitions.toToken"},
{ "path": "data.fromToken", "$ref": "$.display.definitions.fromToken" },
{ "path": "data.toToken", "$ref": "$.display.definitions.toToken" },
{ "path": "data.fromAmount", "$ref": "$.display.definitions.fromAmount", "params": { "tokenPath": "data.fromToken" } },
{ "path": "data.toAmount", "$ref": "$.display.definitions.toAmount", "params": { "tokenPath": "data.toToken" } },
{ "path": "data.beneficiary", "$ref": "$.display.definitions.beneficiary" }
],
],
"required": ["data.fromToken", "data.toToken", "data.fromAmount", "data.toAmount", "data.beneficiary"]
},
"0x46c67b6d": {
"$id": "megaSwap",
"fields": [
{ "path": "data.fromToken", "$ref": "$.display.definitions.fromToken"},
{ "path": "data.fromToken", "$ref": "$.display.definitions.fromToken" },
{ "path": "data.fromAmount", "$ref": "$.display.definitions.fromAmount", "params": { "tokenPath": "data.fromToken" } },
{ "path": "data.beneficiary", "$ref": "$.display.definitions.beneficiary" },
{ "path": "data.path.[]", "label": "Assets paths", "format": "addressName", "params": { "types": ["token"] } }
],
],
"required": ["data.fromAmount", "data.fromToken", "data.beneficiary", "data.path"]
},
"0x54e3f31b": {
Expand All @@ -112,7 +112,7 @@
{ "path": "data.fromAmount", "$ref": "$.display.definitions.fromAmount", "params": { "tokenPath": "data.fromToken" } },
{ "path": "data.toAmount", "$ref": "$.display.definitions.toAmount", "params": { "tokenPath": "data.toToken" } },
{ "path": "data.beneficiary", "$ref": "$.display.definitions.beneficiary" }
],
],
"required": ["data.fromToken", "data.toToken", "fromAmount", "toAmount", "beneficiary"]
},
"0xa94e78ef": {
Expand All @@ -134,7 +134,7 @@
{ "path": "fromAmount", "$ref": "$.display.definitions.fromAmount" },
{ "path": "amountOutMin", "$ref": "$.display.definitions.amountOutMin" },
{ "path": "exchange", "$ref": "$.display.definitions.exchange" }
],
],
"required": ["fromToken", "toToken", "fromAmount", "amountOutMin", "exchange"]
}
}
Expand Down
28 changes: 4 additions & 24 deletions registry/quickswap/calldata-QuickSwap.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,7 @@
"intent": "Swap",
"fields": [
{ "path": "amountIn", "label": "Amount to Send", "format": "tokenAmount", "params": { "tokenPath": "path.[0]" } },
{
"path": "amountOutMin",
"label": "Minimum to Receive",
"format": "tokenAmount",
"params": { "tokenPath": "path.[1]" }
},
{ "path": "amountOutMin", "label": "Minimum to Receive", "format": "tokenAmount", "params": { "tokenPath": "path.[1]" } },
{ "path": "to", "label": "Beneficiary", "format": "addressName", "params": { "types": ["eoa"], "sources": ["local", "ens"] } },
{ "path": "deadline", "label": "Deadline", "format": "date", "params": { "encoding": "timestamp" } }
],
Expand All @@ -43,12 +38,7 @@
"$id": "swapExactETHForTokens",
"intent": "Swap",
"fields": [
{
"path": "amountOutMin",
"label": "Minimum to Receive",
"format": "tokenAmount",
"params": { "tokenPath": "path.[1]" }
},
{ "path": "amountOutMin", "label": "Minimum to Receive", "format": "tokenAmount", "params": { "tokenPath": "path.[1]" } },
{ "path": "to", "label": "Beneficiary", "format": "addressName", "params": { "types": ["eoa"], "sources": ["local", "ens"] } },
{ "path": "deadline", "label": "Deadline", "format": "date", "params": { "encoding": "timestamp" } }
],
Expand All @@ -70,12 +60,7 @@
"intent": "Swap",
"fields": [
{ "path": "amountIn", "label": "Amount to Send", "format": "tokenAmount", "params": { "tokenPath": "path.[0]" } },
{
"path": "amountOutMin",
"label": "Minimum to Receive",
"format": "tokenAmount",
"params": { "tokenPath": "path.[1]" }
},
{ "path": "amountOutMin", "label": "Minimum to Receive", "format": "tokenAmount", "params": { "tokenPath": "path.[1]" } },
{ "path": "to", "label": "Beneficiary", "format": "addressName", "params": { "types": ["eoa"], "sources": ["local", "ens"] } },
{ "path": "deadline", "label": "Deadline", "format": "date", "params": { "encoding": "timestamp" } }
],
Expand All @@ -96,12 +81,7 @@
"$id": "swapExactETHForTokensSupportingFeeOnTransferTokens",
"intent": "Swap",
"fields": [
{
"path": "amountOutMin",
"label": "Minimum to Receive",
"format": "tokenAmount",
"params": { "tokenPath": "path.[1]" }
},
{ "path": "amountOutMin", "label": "Minimum to Receive", "format": "tokenAmount", "params": { "tokenPath": "path.[1]" } },
{ "path": "to", "label": "Beneficiary", "format": "addressName", "params": { "types": ["eoa"], "sources": ["local", "ens"] } },
{ "path": "deadline", "label": "Deadline", "format": "date", "params": { "encoding": "timestamp" } }
],
Expand Down

0 comments on commit 639528b

Please sign in to comment.