-
Notifications
You must be signed in to change notification settings - Fork 624
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
feat: draft implementation of NEP-366 #7497
Commits on Aug 29, 2022
-
Draft implementation of DelegateAction (NEP-366)
This is a draft implementation of NEP-366 (near/NEPs#366) Not done yet: * Need to implement DelegateAction for implicit accounts (nonce problem) * Need new error codes for DelegateAction * Implement Fees for DelegateAction * Add tests
Egor Ulesykiy committedAug 29, 2022 Configuration menu - View commit details
-
Copy full SHA for ce474eb - Browse repository at this point
Copy the full SHA ce474ebView commit details
Commits on Aug 31, 2022
-
Rename 'publisher_id' to 'relayer_id'
Egor Ulesykiy committedAug 31, 2022 Configuration menu - View commit details
-
Copy full SHA for 3eb7f02 - Browse repository at this point
Copy the full SHA 3eb7f02View commit details
Commits on Oct 27, 2022
-
Updated according to the discussion in NEP-366
* Removed published_id * Added sender_id to DelegateAction * All things are verified when action is processing except verification of DelegateAction count in the transaction and verification wheher DelegateAction contains the nested ones * Added block_hash, nonce, public_key fields to DelegateAction * Gas is refunded to Transaction signer, deposit is refund to Receipt predecessor (because publisher_id has been removed) Need to be done: 1. `block_hash` isn't verified because there is not access to Store from `runtime' 2. Need to apply recommendation to `action_array_serde`: https://near.zulipchat.com/#narrow/stream/295302-general/topic/recursive.20types.20in.20borsh-rs/near/305181116 3. Need to add unit tests
Egor Ulesykiy committedOct 27, 2022 Configuration menu - View commit details
-
Copy full SHA for 433b158 - Browse repository at this point
Copy the full SHA 433b158View commit details -
Egor Ulesykiy committed
Oct 27, 2022 Configuration menu - View commit details
-
Copy full SHA for a7bcf89 - Browse repository at this point
Copy the full SHA a7bcf89View commit details
Commits on Nov 1, 2022
-
Remove redundant code. Add DelegateActionMustBeOnlyOne error
Egor Ulesykiy committedNov 1, 2022 Configuration menu - View commit details
-
Copy full SHA for 529ca2c - Browse repository at this point
Copy the full SHA 529ca2cView commit details -
Add the inner actions' send fees to the total send fee
Egor Ulesykiy committedNov 1, 2022 Configuration menu - View commit details
-
Copy full SHA for cfb9780 - Browse repository at this point
Copy the full SHA cfb9780View commit details
Commits on Nov 2, 2022
-
Charge the send fee for the inner actions twice
Egor Ulesykiy committedNov 2, 2022 Configuration menu - View commit details
-
Copy full SHA for 602baca - Browse repository at this point
Copy the full SHA 602bacaView commit details
Commits on Nov 3, 2022
-
Refactor deserialization the inner actions
* Handle a nested DelegateAction while the parent one is deserialized
Egor Ulesykiy committedNov 3, 2022 Configuration menu - View commit details
-
Copy full SHA for 3b78721 - Browse repository at this point
Copy the full SHA 3b78721View commit details -
Egor Ulesykiy committed
Nov 3, 2022 Configuration menu - View commit details
-
Copy full SHA for 106dc67 - Browse repository at this point
Copy the full SHA 106dc67View commit details -
Fix delegate_cost.exec_fee todo
Egor Ulesykiy committedNov 3, 2022 Configuration menu - View commit details
-
Copy full SHA for ee124a6 - Browse repository at this point
Copy the full SHA ee124a6View commit details
Commits on Nov 8, 2022
-
Charge DelegateAction's 'send_fee' in two steps
1. Charge the inner actions' `send_fee` on Relayer shard and prepaid the `send_fee` for Sender shard 2. Burn the inner actions' `send_fee` on Sender shard (when DelegateAction is processed)
Egor Ulesykiy committedNov 8, 2022 Configuration menu - View commit details
-
Copy full SHA for 11c29fc - Browse repository at this point
Copy the full SHA 11c29fcView commit details
Commits on Nov 9, 2022
-
Fixed review issues. Added a test for DelegateAction deserialization
Egor Ulesykiy committedNov 9, 2022 Configuration menu - View commit details
-
Copy full SHA for b344298 - Browse repository at this point
Copy the full SHA b344298View commit details -
Use
signer_public_key
instead ofdelegate_action.public_key
in a ……new receipt
Egor Ulesykiy committedNov 9, 2022 Configuration menu - View commit details
-
Copy full SHA for d6ef8ba - Browse repository at this point
Copy the full SHA d6ef8baView commit details
Commits on Nov 10, 2022
-
Add tests to actions.rs. Fix tests in transaction.rs
Egor Ulesykiy committedNov 10, 2022 Configuration menu - View commit details
-
Copy full SHA for df86e3a - Browse repository at this point
Copy the full SHA df86e3aView commit details -
Return
AccountDoesNotExist
error ifsender
doesn't existEgor Ulesykiy committedNov 10, 2022 Configuration menu - View commit details
-
Copy full SHA for 59a5986 - Browse repository at this point
Copy the full SHA 59a5986View commit details -
Egor Ulesykiy committed
Nov 10, 2022 Configuration menu - View commit details
-
Copy full SHA for cd289d4 - Browse repository at this point
Copy the full SHA cd289d4View commit details
Commits on Nov 17, 2022
-
Add protocol_feature_delegate_action
The feature flag enables DelegateAction support
Egor Ulesykiy committedNov 17, 2022 Configuration menu - View commit details
-
Copy full SHA for 9a9c0da - Browse repository at this point
Copy the full SHA 9a9c0daView commit details -
Add "protocol_feature_delegate_action" to "nightly" features
Egor Ulesykiy committedNov 17, 2022 Configuration menu - View commit details
-
Copy full SHA for f34acda - Browse repository at this point
Copy the full SHA f34acdaView commit details -
Create test_delegate_action_deserialization for stable build
This test fails if "protocol_feature_delegate_action" is disabled. Therefore another version of this test has been added which works on stable build.
Egor Ulesykiy committedNov 17, 2022 Configuration menu - View commit details
-
Copy full SHA for 704c524 - Browse repository at this point
Copy the full SHA 704c524View commit details -
Egor Ulesykiy committed
Nov 17, 2022 Configuration menu - View commit details
-
Copy full SHA for 88973ce - Browse repository at this point
Copy the full SHA 88973ceView commit details -
Updated snapshots for tests::test_json_unchanged test
Cause: runtime::config_store::tests::test_json_unchanged fails The following command created the snapshots: `cargo insta test --accept -p near-primitives -- test_json_unchanged`
Egor Ulesykiy committedNov 17, 2022 Configuration menu - View commit details
-
Copy full SHA for 335537e - Browse repository at this point
Copy the full SHA 335537eView commit details -
Merge branch 'master' into NEP-366
Egor Ulesykiy committedNov 17, 2022 Configuration menu - View commit details
-
Copy full SHA for 7575c90 - Browse repository at this point
Copy the full SHA 7575c90View commit details -
Update DelegateAction feature version number
- Update PROTOCOL_VERSION - Update ProtocolFeature::DelegateAction version number
Egor Ulesykiy committedNov 17, 2022 Configuration menu - View commit details
-
Copy full SHA for 010d718 - Browse repository at this point
Copy the full SHA 010d718View commit details -
Egor Ulesykiy committed
Nov 17, 2022 Configuration menu - View commit details
-
Copy full SHA for 1935499 - Browse repository at this point
Copy the full SHA 1935499View commit details -
Update snapshots and error schema for tests
Egor Ulesykiy committedNov 17, 2022 Configuration menu - View commit details
-
Copy full SHA for 79915fd - Browse repository at this point
Copy the full SHA 79915fdView commit details
Commits on Nov 18, 2022
-
Use
safe_add_gas
inapply_delegate_action
functionEgor Ulesykiy committedNov 18, 2022 Configuration menu - View commit details
-
Copy full SHA for 155054f - Browse repository at this point
Copy the full SHA 155054fView commit details
Commits on Nov 25, 2022
-
Add comments which explain what's going on
Egor Ulesykiy committedNov 25, 2022 Configuration menu - View commit details
-
Copy full SHA for 81f4eb7 - Browse repository at this point
Copy the full SHA 81f4eb7View commit details
Commits on Jan 12, 2023
-
Rename protocol_feature_delegate_action with protocol_feature_nep366_…
…delegate_action
Egor Ulesykiy committedJan 12, 2023 Configuration menu - View commit details
-
Copy full SHA for d0c3787 - Browse repository at this point
Copy the full SHA d0c3787View commit details
Commits on Jan 16, 2023
-
Add comments and remove
new_delegate_actions
Egor Ulesykiy committedJan 16, 2023 Configuration menu - View commit details
-
Copy full SHA for e9e1f8f - Browse repository at this point
Copy the full SHA e9e1f8fView commit details -
Add "test_delegate_action_must_be_only_one" test
Egor Ulesykiy committedJan 16, 2023 Configuration menu - View commit details
-
Copy full SHA for d5cb1a0 - Browse repository at this point
Copy the full SHA d5cb1a0View commit details -
Add a test case for ACTION_DELEGATE_NUMBER
Egor Ulesykiy committedJan 16, 2023 Configuration menu - View commit details
-
Copy full SHA for c9eb505 - Browse repository at this point
Copy the full SHA c9eb505View commit details