Skip to content
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: Allow hashchain to be initialized with new directly #846

Merged
merged 1 commit into from
Oct 5, 2023

Conversation

birchmd
Copy link
Member

@birchmd birchmd commented Oct 4, 2023

Description

For the mainnet Aurora Engine we must use the pause_contract + start_hashchain migration procedure because it is already live. However, for new silos it will be useful to have the hashchain enabled from the start. This PR adds a new optional parameter to the new function where an initial (genesis) hashchain value can be specified and then hashchain will be enabled on all transactions going forward.

Performance / NEAR gas cost considerations

N/A; impacts new only.

Testing

Tests updated to use new for starting the hashchain by default. Some tests still use the migration procedure to ensure that is also tested.

@birchmd birchmd added C-enhancement Category: New feature or request A-engine Area: purely engine EVM related labels Oct 4, 2023
@birchmd birchmd added this pull request to the merge queue Oct 5, 2023
Merged via the queue into develop with commit 5e2ecbb Oct 5, 2023
20 checks passed
@birchmd birchmd deleted the feat/birchmd/new-init-hashchain branch October 5, 2023 13:10
aleksuss pushed a commit that referenced this pull request Oct 17, 2023
## Description

For the mainnet Aurora Engine we must use the `pause_contract` +
`start_hashchain` migration procedure because it is already live.
However, for new silos it will be useful to have the hashchain enabled
from the start. This PR adds a new optional parameter to the `new`
function where an initial (genesis) hashchain value can be specified and
then hashchain will be enabled on all transactions going forward.

## Performance / NEAR gas cost considerations

N/A; impacts `new` only.

## Testing

Tests updated to use `new` for starting the hashchain by default. Some
tests still use the migration procedure to ensure that is also tested.
@aleksuss aleksuss mentioned this pull request Oct 17, 2023
aleksuss added a commit that referenced this pull request Oct 17, 2023
## Release 3.2.0

### Changes

- Changed structure `SetEthConnectorContractAccountArgs` for setting eth
connector account. It was extended with
additional field: `withdraw_serialize_type` for defining serialization
type for withdraw arguments by [@aleksuss]. ([#834])

- Updated rocksdb up to 0.21.0 by [@aleksuss]. ([#840])

### Additions

- Added a possibility of mirroring deployed ERC-20 contracts in the main
Aurora contract in Silo mode by [@aleksuss]. ([#844])

- Allow to initialize hashchain directly with the `new` method by
[@birchmd]. ([#846])

- Added a silo logic which allows to set fixed gas costs per transaction
by [@aleksuss]. ([#746])

- Added a new type of transaction which allows to add full access key
into account of the smart contract by [@aleksuss]. ([#847])

[#746]: #746
[#834]: #834
[#840]: #840
[#844]: #844
[#846]: #846
[#847]: #847

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: i-fix-typos <146758284+i-fix-typos@users.noreply.github.com>
Co-authored-by: Evgeny Ukhanov <evgeny@aurora.dev>
Co-authored-by: Michael Birch <michael.birch@aurora.dev>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Karim <karim@aurora.dev>
Co-authored-by: Joshua J. Bouw <joshua@aurora.dev>
Co-authored-by: ForwardSlashBack <142098649+ForwardSlashBack@users.noreply.github.com>
aleksuss added a commit that referenced this pull request Oct 17, 2023
## Release 3.2.0

### Changes

- Changed structure `SetEthConnectorContractAccountArgs` for setting eth
connector account. It was extended with
additional field: `withdraw_serialize_type` for defining serialization
type for withdraw arguments by [@aleksuss]. ([#834])

- Updated rocksdb up to 0.21.0 by [@aleksuss]. ([#840])

### Additions

- Added a possibility of mirroring deployed ERC-20 contracts in the main
Aurora contract in Silo mode by [@aleksuss]. ([#844])

- Allow to initialize hashchain directly with the `new` method by
[@birchmd]. ([#846])

- Added a silo logic which allows to set fixed gas costs per transaction
by [@aleksuss]. ([#746])

- Added a new type of transaction which allows to add full access key
into account of the smart contract by [@aleksuss]. ([#847])

[#746]: #746
[#834]: #834
[#840]: #840
[#844]: #844
[#846]: #846
[#847]: #847

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: i-fix-typos <146758284+i-fix-typos@users.noreply.github.com>
Co-authored-by: Evgeny Ukhanov <evgeny@aurora.dev>
Co-authored-by: Michael Birch <michael.birch@aurora.dev>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Karim <karim@aurora.dev>
Co-authored-by: Joshua J. Bouw <joshua@aurora.dev>
Co-authored-by: ForwardSlashBack <142098649+ForwardSlashBack@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-engine Area: purely engine EVM related C-enhancement Category: New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants