-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Batched Transactions #8
Conversation
Co-Authored-By: Maksym Zavershynskyi <35039879+nearmax@users.noreply.github.com>
Implementation branch in progress: https://github.com/nearprotocol/nearcore/tree/batched-tx-1 |
Something I noticed with this, does this not violate some basic logical cases? If I can run If I add a key in |
Wish wallet to use this kind of transaction after bunch of transactions were "staked/collected" instead of "signed and sent". So wallet should allow grouping even for dapps that not initially support it. |
So we actually batching actions instead of transactions. The batched actions form a transaction which is signed. Once the transaction is authorized (e.g. with a full access key), all actions are executed and they don't require public key to be present. So the first action can be delete the access key and the 2nd action is something else, e.g. a function call. This is done to support operations like deploy+migrate_call, or deploy+init. @k06a |
@evgenykuzyakov but we need at least cover approve+transferFrom ERC20 flow. Approve should be called on token smart contract and second tx should be to receiver, which will internally make transferFrom call. |
@k06a As we discussed in other channel, it should be done with something like |
@evgenykuzyakov, hope both calls will be performed from account, not from token smart contract. Else this would behave like ERC827. |
Ready to be merged |
@evgenykuzyakov can you point to the locks implementation example? |
@k06a I think locks are for the different NEP. |
Ready for review. I'll start implementing it in a meantime.