Allow multiple receiver_id for FunctionCallPermission struct #475
nujabes403
started this conversation in
Ideas
Replies: 1 comment 5 replies
-
Is it possible to add two keys in a single batched tx? That could solve the UX problem, or is there any issue beyond the first step of adding the keys? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Near Protocol provides a great user experience through the use of FunctionCall Keys for signing transactions. With this feature, it is possible to log in to a dApp site using only the Function Call Key, without the need for a Full Access Key, making it more convenient for users.
However, most dApps are composed of multiple contracts, and this can lead to inconvenience for users who need to sign transactions with multiple Function Call Keys. For example, Ref Finance requires at least two Function Call Keys for the Ref-Exchange contract and the Ref-Farming contract. This can negatively impact the user experience.
Let's consider a specific gaming dApp composed of several contracts such as an "Auction Contract", "Character Movement and Attack Contract", and "Item Enhancement Contract". If we can create a single FunctionCall Key that can sign functions of the "Auction", "Movement", "Attack", and "Item Enhancement" contracts, we could provide a very convenient user experience by allowing users to access the game with just one Function Call Key.
Therefore, I propose changing the type of receiver_id in the FunctionCallPermission struct from String to Vec to improve the user experience.
cf) method_names may need to be updated to a 2D array type as well.
Beta Was this translation helpful? Give feedback.
All reactions