-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add Lido OssifiableProxy * Fix syntaxe Co-authored-by: Frédéric Samier <[email protected]> --------- Co-authored-by: Frédéric Samier <[email protected]>
- Loading branch information
1 parent
b4139cf
commit d6bda6a
Showing
1 changed file
with
162 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,162 @@ | ||
{ | ||
"$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" | ||
} | ||
], | ||
"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" | ||
} | ||
], | ||
"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" | ||
} | ||
], | ||
"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" | ||
} | ||
], | ||
"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" | ||
} | ||
], | ||
"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" | ||
} | ||
], | ||
"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" | ||
} | ||
], | ||
"required": ["_requestIds", "_recipient"], | ||
"excluded": ["_hints"] | ||
} | ||
} | ||
} | ||
} |