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

Infra Escrow #8

Merged
merged 132 commits into from
Apr 10, 2023
Merged

Infra Escrow #8

merged 132 commits into from
Apr 10, 2023

Conversation

0o-de-lally
Copy link
Owner

@0o-de-lally 0o-de-lally commented Apr 5, 2023

PledgeAccounts

  • struct initialization on beneficiary project, and user accounts
  • deposit and pledge
  • beneficiary withdraw
  • logic for voting on dissolving/revoking pledge
  • use coins from accounts (not integers from scaffold)
  • transactional tests
    • init
    • deposit
    • withdraw
    • dissolve

Infrastructure Escrow

  • refactor epoch boundary
  • refactor validator rewards
  • refactor burn mechanism
  • VM initializes on genesis
  • VM withdraws
  • helper script for user to pledge
  • transactional tests
    • init on genesis
    • withdraw on epoch boundary

…session from fake data to be able to apply migrations from Move system contracts.
implement functional tests for:
- exporting db backup to json
- creating genesis blob from json
- creating genesis blob in one shot from db backup

TODO: launch test node from from genesis.blob
TODO: e2e tests from a fixture file
@0o-de-lally 0o-de-lally merged commit a72f2a5 into v6-0d-rc.1 Apr 10, 2023
0o-de-lally added a commit that referenced this pull request Apr 11, 2023
* create first stubs of Pledge Accounts, a primitive service for infra escrow.

* list pledgers on beneficiary struct

* can withdraw from all accounts

* pledge account feature complete, except for withdrawing of coins

* finalize infraescrow wrapper on pledge accounts

* Vm can withdraw funds

* infra escrow can withdraw

* adding tests, patching.

* tests for pledge, withdraw unit, withdraw e2e, revoke

* change APIs to use coins, not u64

* now using coins instead of temp values

* infra escrow and pledges use coins. add helpers to withdraw coins. patch tests to use coins. all tests passing.

* make pledge withdrawals proportionate to balances

* Refactor paying of fees based on Infra Escrow. Builds. Tests need to be ported.

* reordering the epoch boundary pipeline.

* refactor burning of excess network fees at boundary

* handle zero transaction fees cases

* update .exp files on tests

* more tests for val subsidy

* patching tests

* refactor burn.move patch tests

* patch many tests fixtures

* burn epoch recycling

* for testing, make the vm genesis initialize the infra escrow pledge accounts.

* minor refactor to epoch boundary

* test to confirm the infra escrow is being funded on the epoch prologue

* revert operator subsidy removal. test framework depends on this for funding end user accounts.

* patch testmode genesis subsidies to match test fixtures.

* cleanup: info! instead of println

* fix burn init

* update burn recycling to never change supply

* all tests passing

* remove deprecated files

* patch ignored tests. All tx tests passing.
0o-de-lally added a commit that referenced this pull request Jul 5, 2023
* create first stubs of Pledge Accounts, a primitive service for infra escrow.

* list pledgers on beneficiary struct

* can withdraw from all accounts

* pledge account feature complete, except for withdrawing of coins

* finalize infraescrow wrapper on pledge accounts

* Vm can withdraw funds

* infra escrow can withdraw

* adding tests, patching.

* tests for pledge, withdraw unit, withdraw e2e, revoke

* change APIs to use coins, not u64

* now using coins instead of temp values

* infra escrow and pledges use coins. add helpers to withdraw coins. patch tests to use coins. all tests passing.

* make pledge withdrawals proportionate to balances

* Refactor paying of fees based on Infra Escrow. Builds. Tests need to be ported.

* reordering the epoch boundary pipeline.

* refactor burning of excess network fees at boundary

* handle zero transaction fees cases

* update .exp files on tests

* more tests for val subsidy

* patching tests

* refactor burn.move patch tests

* patch many tests fixtures

* burn epoch recycling

* for testing, make the vm genesis initialize the infra escrow pledge accounts.

* minor refactor to epoch boundary

* test to confirm the infra escrow is being funded on the epoch prologue

* revert operator subsidy removal. test framework depends on this for funding end user accounts.

* patch testmode genesis subsidies to match test fixtures.

* cleanup: info! instead of println

* fix burn init

* update burn recycling to never change supply

* all tests passing

* remove deprecated files

* patch ignored tests. All tx tests passing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant