From 63eafb1bfcc8a8daa7005269cb30ce0e5b211583 Mon Sep 17 00:00:00 2001 From: Github CI Bot <68245635+ldg-github-ci@users.noreply.github.com> Date: Tue, 26 Nov 2024 13:18:20 +0200 Subject: [PATCH] chore: format descriptors - 2024-11-26 07:07 (#97) Co-authored-by: ldg-github-ci --- .../paraswap/calldata-AugustusSwapper-v5.json | 345 +++++------------- 1 file changed, 89 insertions(+), 256 deletions(-) diff --git a/registry/paraswap/calldata-AugustusSwapper-v5.json b/registry/paraswap/calldata-AugustusSwapper-v5.json index bf90005..8f38ae7 100644 --- a/registry/paraswap/calldata-AugustusSwapper-v5.json +++ b/registry/paraswap/calldata-AugustusSwapper-v5.json @@ -1,260 +1,93 @@ { - "context": { - "$id": "AugustusSwapper", - "contract" : { - "abi": "https://github.com/LedgerHQ/ledger-asset-dapps/blob/main/ethereum/paraswap/abis/0xdef171fe48cf0115b1d80b88dc8eab59176fee57.abi.json", - "deployments": [ - { - "chainId": 1, - "address": "0x1bd435f3c054b6e901b7b108a0ab7617c808677b" - }, - { - "chainId": 1, - "address": "0xdef171fe48cf0115b1d80b88dc8eab59176fee57" - }, - { - "chainId": 56, - "address": "0x55a0e3b6579972055faa983482aceb4b251dcf15" - }, - { - "chainId": 56, - "address": "0xdef171fe48cf0115b1d80b88dc8eab59176fee57" - }, - { - "chainId": 137, - "address": "0x90249ed4d69d70e709ffcd8bee2c5a566f65dade" - }, - { - "chainId": 137, - "address": "0xdef171fe48cf0115b1d80b88dc8eab59176fee57" - } - ] - } - }, - - "metadata": { - "owner": "Paraswap" + "context": { + "$id": "AugustusSwapper", + "contract": { + "abi": "https://github.com/LedgerHQ/ledger-asset-dapps/blob/main/ethereum/paraswap/abis/0xdef171fe48cf0115b1d80b88dc8eab59176fee57.abi.json", + "deployments": [ + { "chainId": 1, "address": "0x1bd435f3c054b6e901b7b108a0ab7617c808677b" }, + { "chainId": 1, "address": "0xdef171fe48cf0115b1d80b88dc8eab59176fee57" }, + { "chainId": 56, "address": "0x55a0e3b6579972055faa983482aceb4b251dcf15" }, + { "chainId": 56, "address": "0xdef171fe48cf0115b1d80b88dc8eab59176fee57" }, + { "chainId": 137, "address": "0x90249ed4d69d70e709ffcd8bee2c5a566f65dade" }, + { "chainId": 137, "address": "0xdef171fe48cf0115b1d80b88dc8eab59176fee57" } + ] + } + }, + "metadata": { "owner": "Paraswap" }, + "display": { + "definitions": { + "amountIn": { "label": "Income Amount", "format": "amount" }, + "amountOut": { "label": "Outcome Amount", "format": "amount" }, + "amountOutIn": { "label": "Outcome/Income Amount", "format": "tokenAmount", "params": { "tokenPath": "fromToken" } }, + "amountInMax": { "label": "Maximum Income Amount", "format": "amount" }, + "factory": { "label": "Factory", "format": "addressName", "params": { "types": ["contract"] } }, + "tokenIn": { "label": "Inbound token", "format": "addressName", "params": { "types": ["token"] } }, + "amountOutMin": { "label": "Minimum Outcome Amount", "format": "amount" }, + "fromToken": { "format": "addressName", "label": "Origin Token", "params": { "types": ["token"] } }, + "toToken": { "format": "addressName", "label": "Destination Token", "params": { "types": ["token"] } }, + "fromAmount": { "format": "tokenAmount", "label": "Income Amount", "params": { "tokenPath": "fromToken" } }, + "exchange": { "format": "addressName", "label": "Exchange address", "params": { "types": ["wallet"] } } }, - - "display": { - "definitions": { - "amountIn": { - "label": "Income Amount", - "format": "amount" - }, - "amountOut": { - "label": "Outcome Amount", - "format": "amount" - }, - "amountOutIn": { - "label": "Outcome/Income Amount", - "format": "tokenAmount", - "params": { - "tokenPath": "fromToken" - } - }, - "amountInMax": { - "label": "Maximum Income Amount", - "format": "amount" - }, - "factory": { - "label": "Factory", - "format": "addressName", - "params": { - "types": ["contract"] - } - }, - "tokenIn": { - "label": "Inbound token", - "format": "addressName", - "params": { - "types": ["token"] - } - }, - "amountOutMin": { - "label": "Minimum Outcome Amount", - "format": "amount" - }, - "fromToken": { - "format": "addressName", - "label": "Origin Token", - "params": { - "types": ["token"] - } - }, - "toToken": { - "format": "addressName", - "label": "Destination Token", - "params": { - "types": ["token"] - } - }, - "fromAmount": { - "format": "tokenAmount", - "label": "Income Amount", - "params": { - "tokenPath": "fromToken" - } - }, - "exchange": { - "format": "addressName", - "label": "Exchange address", - "params": { - "types": ["wallet"] - } - } - }, - "formats": { - "0x54840d1a" : { - "$id": "swapOnUniswap", - "fields": [ - { - "path": "amountIn", - "$ref": "$.display.definitions.amountIn" - }, - { - "path": "amountOutMin", - "$ref": "$.display.definitions.amountOutMin" - }, - { - "path": "path.[]", - "label": "Array of addresses", - "format": "addressName", - "params": { - "types": ["wallet"] - } - } - ], - "required": ["amountIn", "amountOutMin", "path"] - }, - "0xf5661034": { - "$id": "swapOnUniswapFork", - "fields": [ - { - "path": "factory", - "$ref": "$.display.definitions.factory" - }, - { - "path": "initCode", - "format": "raw", - "label": "init code" - }, - { - "path": "amountIn", - "$ref": "$.display.definitions.amountIn" - }, - { - "path": "amountOutMin", - "$ref": "$.display.definitions.amountOutMin" - }, - { - "path": "path.[]", - "label": "Array of addresses", - "format": "addressName", - "params": { - "types": ["wallet"] - } - } - ], - "required": ["factory", "initCode", "amountIn", "amountOutMin", "path"] - }, - "0x935fb84b": { - "$id": "buyOnUniswap", - "fields": [ - { - "path": "amountOut", - "$ref": "$.display.definitions.amountOut" - }, - { - "path": "amountInMax", - "$ref": "$.display.definitions.amountInMax" - }, - { - "path": "path.[]", - "label": "Array of addresses", - "format": "addressName", - "params": { - "types": ["contract"] - } - } - ], - "required": ["amountOut", "amountInMax", "path"] - }, - "0xc03786b0": { - "$id": "buyOnUniswapFork", - "fields": [ - { - "path": "amountOut", - "$ref": "$.display.definitions.amountOut" - }, - { - "path": "amountInMax", - "$ref": "$.display.definitions.amountInMax" - }, - { - "path": "path.[]", - "label": "Array of addresses", - "format": "addressName", - "params": { - "types": ["wallet"] - } - } - ], - "required": ["factory", "initCode", "amountOut", "amountInMax", "path"] - }, - "0x0b86a4c1" : { - "$id": "swapOnUniswapV2Fork", - "fields": [ - { - "path": "tokenIn", - "$ref": "$.display.definitions.tokenIn" - }, - { - "path": "amountIn", - "$ref": "$.display.definitions.amountIn", - "params": { - "tokenPath": "tokenIn" - } - }, - { - "path": "amountOutMin", - "$ref": "$.display.definitions.amountOutMin" - } - ], - "required": ["tokenIn", "amountIn", "amountOutMin", "weth", "pools"] - }, - "0x64466805" : { - "$id": "swapOnZeroXv4", - "fields": [ - { - "path": "fromToken", - "$ref": "$.display.definitions.fromToken" - }, - { - "path": "toToken", - "$ref": "$.display.definitions.toToken" - }, - { - "path": "fromAmount", - "$ref": "$.display.definitions.fromAmount" - }, - { - "path": "amountOutMin", - "$ref": "$.display.definitions.amountOutMin" - }, - { - "path": "exchange", - "$ref": "$.display.definitions.exchange" - }, - { - "path": "payload", - "format": "raw", - "label": "payload" - } - - ], - "required": ["fromToken", "toToken", "fromAmount", "amountOutMin", "exchange", "payload"] - } - } + "formats": { + "0x54840d1a": { + "$id": "swapOnUniswap", + "fields": [ + { "path": "amountIn", "$ref": "$.display.definitions.amountIn" }, + { "path": "amountOutMin", "$ref": "$.display.definitions.amountOutMin" }, + { "path": "path.[]", "label": "Array of addresses", "format": "addressName", "params": { "types": ["wallet"] } } + ], + "required": ["amountIn", "amountOutMin", "path"] + }, + "0xf5661034": { + "$id": "swapOnUniswapFork", + "fields": [ + { "path": "factory", "$ref": "$.display.definitions.factory" }, + { "path": "initCode", "format": "raw", "label": "init code" }, + { "path": "amountIn", "$ref": "$.display.definitions.amountIn" }, + { "path": "amountOutMin", "$ref": "$.display.definitions.amountOutMin" }, + { "path": "path.[]", "label": "Array of addresses", "format": "addressName", "params": { "types": ["wallet"] } } + ], + "required": ["factory", "initCode", "amountIn", "amountOutMin", "path"] + }, + "0x935fb84b": { + "$id": "buyOnUniswap", + "fields": [ + { "path": "amountOut", "$ref": "$.display.definitions.amountOut" }, + { "path": "amountInMax", "$ref": "$.display.definitions.amountInMax" }, + { "path": "path.[]", "label": "Array of addresses", "format": "addressName", "params": { "types": ["contract"] } } + ], + "required": ["amountOut", "amountInMax", "path"] + }, + "0xc03786b0": { + "$id": "buyOnUniswapFork", + "fields": [ + { "path": "amountOut", "$ref": "$.display.definitions.amountOut" }, + { "path": "amountInMax", "$ref": "$.display.definitions.amountInMax" }, + { "path": "path.[]", "label": "Array of addresses", "format": "addressName", "params": { "types": ["wallet"] } } + ], + "required": ["factory", "initCode", "amountOut", "amountInMax", "path"] + }, + "0x0b86a4c1": { + "$id": "swapOnUniswapV2Fork", + "fields": [ + { "path": "tokenIn", "$ref": "$.display.definitions.tokenIn" }, + { "path": "amountIn", "$ref": "$.display.definitions.amountIn", "params": { "tokenPath": "tokenIn" } }, + { "path": "amountOutMin", "$ref": "$.display.definitions.amountOutMin" } + ], + "required": ["tokenIn", "amountIn", "amountOutMin", "weth", "pools"] + }, + "0x64466805": { + "$id": "swapOnZeroXv4", + "fields": [ + { "path": "fromToken", "$ref": "$.display.definitions.fromToken" }, + { "path": "toToken", "$ref": "$.display.definitions.toToken" }, + { "path": "fromAmount", "$ref": "$.display.definitions.fromAmount" }, + { "path": "amountOutMin", "$ref": "$.display.definitions.amountOutMin" }, + { "path": "exchange", "$ref": "$.display.definitions.exchange" }, + { "path": "payload", "format": "raw", "label": "payload" } + ], + "required": ["fromToken", "toToken", "fromAmount", "amountOutMin", "exchange", "payload"] + } } + } }