-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
{ | ||
Check warning on line 1 in registry/paraswap/calldata-AugustusSwapper-v4.json GitHub Actions / 🔎 validate descriptorsMissing Display field
Check warning on line 1 in registry/paraswap/calldata-AugustusSwapper-v4.json GitHub Actions / 🔎 validate descriptorsMissing Display field
Check warning on line 1 in registry/paraswap/calldata-AugustusSwapper-v4.json GitHub Actions / 🔎 validate descriptorsMissing Display field
Check warning on line 1 in registry/paraswap/calldata-AugustusSwapper-v4.json GitHub Actions / 🔎 validate descriptorsMissing Display field
Check warning on line 1 in registry/paraswap/calldata-AugustusSwapper-v4.json GitHub Actions / 🔎 validate descriptorsMissing Display field
Check warning on line 1 in registry/paraswap/calldata-AugustusSwapper-v4.json GitHub Actions / 🔎 validate descriptorsMissing Display field
Check warning on line 1 in registry/paraswap/calldata-AugustusSwapper-v4.json GitHub Actions / 🔎 validate descriptorsMissing Display field
Check warning on line 1 in registry/paraswap/calldata-AugustusSwapper-v4.json GitHub Actions / 🔎 validate descriptorsMissing Display field
Check warning on line 1 in registry/paraswap/calldata-AugustusSwapper-v4.json GitHub Actions / 🔎 validate descriptorsMissing Display field
Check warning on line 1 in registry/paraswap/calldata-AugustusSwapper-v4.json GitHub Actions / 🔎 validate descriptorsMissing Display field
Check failure on line 1 in registry/paraswap/calldata-AugustusSwapper-v4.json GitHub Actions / 🔎 validate descriptorsInvalid Display field
Check failure on line 1 in registry/paraswap/calldata-AugustusSwapper-v4.json GitHub Actions / 🔎 validate descriptorsInvalid Display field
Check failure on line 1 in registry/paraswap/calldata-AugustusSwapper-v4.json GitHub Actions / 🔎 validate descriptorsInvalid Display field
Check failure on line 1 in registry/paraswap/calldata-AugustusSwapper-v4.json GitHub Actions / 🔎 validate descriptorsInvalid Display field
Check failure on line 1 in registry/paraswap/calldata-AugustusSwapper-v4.json GitHub Actions / 🔎 validate descriptorsInvalid Display field
Check failure on line 1 in registry/paraswap/calldata-AugustusSwapper-v4.json GitHub Actions / 🔎 validate descriptorsInvalid Display field
Check failure on line 1 in registry/paraswap/calldata-AugustusSwapper-v4.json GitHub Actions / 🔎 validate descriptorsInvalid Display field
Check failure on line 1 in registry/paraswap/calldata-AugustusSwapper-v4.json GitHub Actions / 🔎 validate descriptorsInvalid Display field
Check failure on line 1 in registry/paraswap/calldata-AugustusSwapper-v4.json GitHub Actions / 🔎 validate descriptorsInvalid Display field
Check failure on line 1 in registry/paraswap/calldata-AugustusSwapper-v4.json GitHub Actions / 🔎 validate descriptorsInvalid Display field
|
||
"context": { | ||
"$id": "AugustusSwapper", | ||
"contract": { | ||
"abi": "https://github.com/LedgerHQ/ledger-asset-dapps/blob/main/ethereum/paraswap/abis/0x1bd435f3c054b6e901b7b108a0ab7617c808677b.abi.json", | ||
"deployments": [ | ||
{ "chainId": 1, "address": "0x1bd435f3c054b6e901b7b108a0ab7617c808677b" } | ||
] | ||
} | ||
}, | ||
"metadata": { "owner": "Paraswap" }, | ||
"display": { | ||
"definitions": { | ||
"amountIn": { "label": "Income Amount", "format": "amount" }, | ||
"amountOut": { "label": "Outcome Amount", "format": "amount" }, | ||
"amountInMax": { "label": "Maximum Income Amount", "format": "amount" }, | ||
"factory": { "label": "Factory", "format": "addressName", "params": { "types": ["contract"] } }, | ||
"amountOutMin": { "label": "Minimum Outcome Amount", "format": "amount" }, | ||
"expectedAmount": { "label": "Expected Amount", "format": "amount" }, | ||
"fromToken": { "format": "addressName", "label": "Origin Token", "params": { "types": ["token"] } }, | ||
"toToken": { "format": "addressName", "label": "Destination Token", "params": { "types": ["token"] } }, | ||
"fromAmount": { "format": "tokenAmount", "label": "Income Amount", "params": { "tokenPath": "fromToken" } }, | ||
"toAmount": { "format": "tokenAmount", "label": "Outcome Amount", "params": { "tokenPath": "toToken" } }, | ||
"beneficiary": { "format": "addressName", "label": "Beneficiary address", "params": { "types": ["eoa"] } } | ||
}, | ||
"formats": { | ||
"0x58b9d179": { | ||
"$id": "swapOnUniswap", | ||
"fields": [ | ||
{ "path": "amountIn", "$ref": "$.display.definitions.amountIn" }, | ||
{ "path": "amountOutMin", "$ref": "$.display.definitions.amountOutMin" }, | ||
{ "path": "path.[]", "label": "Assets paths", "format": "addressName", "params": { "types": ["token"] } } | ||
], | ||
"required": ["amountIn", "amountOutMin", "path"] | ||
}, | ||
"0x0863b7ac": { | ||
"$id": "swapOnUniswapFork", | ||
"fields": [ | ||
{ "path": "amountIn", "$ref": "$.display.definitions.amountIn" }, | ||
{ "path": "amountOutMin", "$ref": "$.display.definitions.amountOutMin" }, | ||
{ "path": "path.[]", "label": "Assets paths", "format": "addressName", "params": { "types": ["token"] } } | ||
], | ||
"required": ["amountIn", "amountOutMin", "path"] | ||
}, | ||
"0xf9355f72": { | ||
"$id": "buyOnUniswap", | ||
"fields": [ | ||
{ "path": "amountOut", "$ref": "$.display.definitions.amountOut" }, | ||
{ "path": "amountInMax", "$ref": "$.display.definitions.amountInMax" }, | ||
{ "path": "path.[]", "label": "Assets paths", "format": "addressName", "params": { "types": ["token"] } } | ||
], | ||
"required": ["amountOut", "amountInMax", "path"] | ||
}, | ||
"0x33635226": { | ||
"$id": "buyOnUniswapFork", | ||
"fields": [ | ||
{ "path": "amountOut", "$ref": "$.display.definitions.amountOut" }, | ||
{ "path": "amountInMax", "$ref": "$.display.definitions.amountInMax" }, | ||
{ "path": "path.[]", "label": "Assets paths", "format": "addressName", "params": { "types": ["token"] } } | ||
], | ||
"required": ["factory", "initCode", "amountOut", "amountInMax", "path"] | ||
}, | ||
"0x8f00eccb": { | ||
"$id": "multiSwap", | ||
"fields": [ | ||
{ "path": "fromToken", "$ref": "$.display.definitions.fromToken" }, | ||
{ "path": "fromAmount", "$ref": "$.display.definitions.fromAmount" }, | ||
{ "path": "toAmount", "$ref": "$.display.definitions.toAmount" }, | ||
{ "path": "expectedAmount", "$ref": "$.display.definitions.expectedAmount" }, | ||
{ "path": "data.beneficiary", "$ref": "$.display.definitions.beneficiary" }, | ||
{ "path": "path.[]", "label": "Assets paths", "format": "addressName", "params": { "types": ["token"] } } | ||
], | ||
"required": ["fromToken", "fromAmount", "toAmount", "expectedAmount", "beneficiary", "path"] | ||
}, | ||
"0xa27e8b6b": { | ||
"$id": "simpleBuy", | ||
"fields": [ | ||
{ "path": "fromToken", "$ref": "$.display.definitions.fromToken" }, | ||
{ "path": "toToken", "$ref": "$.display.definitions.toToken" }, | ||
{ "path": "fromAmount", "$ref": "$.display.definitions.fromAmount" }, | ||
{ "path": "toAmount", "$ref": "$.display.definitions.toAmount" }, | ||
{ "path": "beneficiary", "$ref": "$.display.definitions.beneficiary" } | ||
], | ||
"required": ["fromToken", "fromAmount", "toAmount", "beneficiary"] | ||
}, | ||
"0xcfc0afeb": { | ||
"$id": "simpleSwap", | ||
"fields": [ | ||
{ "path": "fromToken", "$ref": "$.display.definitions.fromToken" }, | ||
{ "path": "toToken", "$ref": "$.display.definitions.toToken" }, | ||
{ "path": "fromAmount", "$ref": "$.display.definitions.fromAmount" }, | ||
{ "path": "toAmount", "$ref": "$.display.definitions.toAmount" }, | ||
{ "path": "beneficiary", "$ref": "$.display.definitions.beneficiary" } | ||
], | ||
"required": ["fromToken", "fromAmount", "toAmount", "beneficiary"] | ||
}, | ||
"0xec1d21dd": { | ||
"$id": "megaSwap", | ||
"fields": [ | ||
{ "path": "fromToken", "$ref": "$.display.definitions.fromToken" }, | ||
{ "path": "toToken", "$ref": "$.display.definitions.toToken" }, | ||
{ "path": "fromAmount", "$ref": "$.display.definitions.fromAmount" }, | ||
{ "path": "toAmount", "$ref": "$.display.definitions.toAmount" }, | ||
{ "path": "beneficiary", "$ref": "$.display.definitions.beneficiary" }, | ||
{ "path": "path.[]", "label": "Assets paths", "format": "addressName", "params": { "types": ["token"] } } | ||
], | ||
"required": ["fromToken", "toToken", "fromAmount", "toAmount", "beneficiary", "path"] | ||
}, | ||
"0xf95a49eb": { | ||
"$id": "buy", | ||
"fields": [ | ||
{ "path": "fromToken", "$ref": "$.display.definitions.fromToken" }, | ||
{ "path": "toToken", "$ref": "$.display.definitions.toToken" }, | ||
{ "path": "fromAmount", "$ref": "$.display.definitions.fromAmount" }, | ||
{ "path": "toAmount", "$ref": "$.display.definitions.toAmount" }, | ||
{ "path": "beneficiary", "$ref": "$.display.definitions.beneficiary" } ], | ||
"required": ["fromToken", "toToken", "fromAmount", "toAmount", "beneficiary"] | ||
} | ||
} | ||
} | ||
} |