From 4b406bbc27ddd59f1fc0a2b9d72e0df4ffa726f9 Mon Sep 17 00:00:00 2001 From: Evgeny Taktarov Date: Tue, 12 Nov 2024 21:12:48 +0900 Subject: [PATCH] add stETH and wstETH permits (#243) --- ethereum/permit/eip712.json | 146 ++++++++++++++++++++++++++++++++++++ 1 file changed, 146 insertions(+) diff --git a/ethereum/permit/eip712.json b/ethereum/permit/eip712.json index 6612935a..90b4a1c6 100644 --- a/ethereum/permit/eip712.json +++ b/ethereum/permit/eip712.json @@ -220,6 +220,152 @@ } } ] + }, + { + "address": "0xae7ab96520de3a18e5e111b5eaab095312d7fe84", + "contractName": "Liquid staked Ether 2.0", + "messages": [ + { + "mapper": { + "fields": [ + { + "label": "From", + "path": "owner" + }, + { + "label": "Approve to spender", + "path": "spender" + }, + { + "format": "amount", + "label": "Amount allowance", + "path": "value" + }, + { + "format": "datetime", + "label": "Approval expire", + "path": "deadline" + } + ], + "label": "Permit stETH transfers" + }, + "schema": { + "EIP712Domain": [ + { + "name": "name", + "type": "string" + }, + { + "name": "version", + "type": "string" + }, + { + "name": "chainId", + "type": "uint256" + }, + { + "name": "verifyingContract", + "type": "address" + } + ], + "Permit": [ + { + "name": "owner", + "type": "address" + }, + { + "name": "spender", + "type": "address" + }, + { + "name": "value", + "type": "uint256" + }, + { + "name": "nonce", + "type": "uint256" + }, + { + "name": "deadline", + "type": "uint256" + } + ] + } + } + ] + }, + { + "address": "0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0", + "contractName": "Wrapped liquid staked Ether 2.0", + "messages": [ + { + "mapper": { + "fields": [ + { + "label": "From", + "path": "owner" + }, + { + "label": "Approve to spender", + "path": "spender" + }, + { + "format": "amount", + "label": "Amount allowance", + "path": "value" + }, + { + "format": "datetime", + "label": "Approval expire", + "path": "deadline" + } + ], + "label": "Permit wstETH transfers" + }, + "schema": { + "EIP712Domain": [ + { + "name": "name", + "type": "string" + }, + { + "name": "version", + "type": "string" + }, + { + "name": "chainId", + "type": "uint256" + }, + { + "name": "verifyingContract", + "type": "address" + } + ], + "Permit": [ + { + "name": "owner", + "type": "address" + }, + { + "name": "spender", + "type": "address" + }, + { + "name": "value", + "type": "uint256" + }, + { + "name": "nonce", + "type": "uint256" + }, + { + "name": "deadline", + "type": "uint256" + } + ] + } + } + ] } ], "name": "Permit"