From 836180f5f34eb7f7b0f992cafb670de5968f368b Mon Sep 17 00:00:00 2001 From: Max Kalashnikoff Date: Thu, 11 Jul 2024 18:47:46 +0200 Subject: [PATCH] fix: removing unstable, fixing context to be in line with ERC7715 --- .../blockchain/blockchain-permissions-api.md | 30 +++++++++---------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/docs/specs/servers/blockchain/blockchain-permissions-api.md b/docs/specs/servers/blockchain/blockchain-permissions-api.md index db3f46a1..65524c35 100644 --- a/docs/specs/servers/blockchain/blockchain-permissions-api.md +++ b/docs/specs/servers/blockchain/blockchain-permissions-api.md @@ -1,7 +1,5 @@ # Blockchain API Sessions and Permissions -This API is **unstable**, not yet production ready and can be changed at any time. - ## Sessions permissions storage ### Get permissions list for account @@ -106,26 +104,26 @@ Updating permissions context for the certain permission idenitifier. ### Request body: -The POST request body should be in JSON format and following schema: +The POST request body should be in JSON format and following schema based on the [ERC-7715](https://github.com/ethereum/ERCs/blob/a75e2d80698441f5da9e0fe98d38122a862aed89/ERCS/erc-7715.md#signers): ```typescript { pci: string, signature: string, context: { - { - signer: { - permissionType: string, - ids: [string] - }, - expiry: number, - signerData: { - userOpBuilder: string - }, - factory: string, - factoryData: string, - permissionsContext: string - } + signer: { + type: string, + data:{ + ids: string[], + } + }, + expiry: number, + signerData: { + userOpBuilder: string + }, + factory: string, + factoryData: string, + permissionsContext: string } } ```