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

Create Genesis for the development chain #161

Open
vovacha opened this issue Oct 14, 2022 · 5 comments · Fixed by #196
Open

Create Genesis for the development chain #161

vovacha opened this issue Oct 14, 2022 · 5 comments · Fixed by #196
Assignees

Comments

@vovacha
Copy link
Contributor

vovacha commented Oct 14, 2022

  • Prepare genesis generation functions for the next pallets: Balances, Tokens, Control
  • Generate parachain chainspec for DEV -> image public.ecr.aws/zero.io/subzero:{version}-dev updated
  • Generate parachain chainspec for STAGE -> image public.ecr.aws/zero.io/subzero:{version}-stage updated
  • Generate accounts, save to 1Password
  • Test:
    • Check if all endowed accounts have expected balances
    • Check if all orgs were created with proper treasury addresses
    • Check if all collators have proper keys

Balances genesis:

  • mint tokens (ZERO)
  • distribute tokens across endowed accounts

Tokens genesis:

  • mint tokens (GAME, PLAY)
  • distribute tokens across endowed accounts

Control genesis:

  • create organizations using pre-defined treasury account addresses, CIDs and prime/creator account

Endowed accounts list:

  • Org prime
  • Faucet bot
  • Root

Endowed accounts distribution:

  • ZERO: 1M
  • GAME: 1M
  • PLAY: 1M

Organization's CIDs:

  • Zero treasury: QmcNp8hsRaxVDhKgbgo6Jtcb8papyPnKbqjzFtqzqxDE7j
  • GameDAO treasury: QmUWu6zoFM4j1fwT6fHGEjiuCSft2sNcbmJtT23R9su3Bk
  • Game3Foundation treasury: QmNYVx6bhRUGbMp6UEPHKhaLRwFfpsbsP4sFT9XCvMxgfz

Token distribution rules for treasury accounts are defined in figma: https://www.figma.com/file/6BD2pkVrBqO0GyJTvp1t5r/Governance-%26-Treasury-Setup?node-id=0%3A1

@vovacha vovacha self-assigned this Oct 14, 2022
@2075 2075 self-assigned this Oct 18, 2022
@2075 2075 added this to the P1 parachain setup complete milestone Oct 18, 2022
@2075
Copy link
Member

2075 commented Oct 18, 2022

Related / Prior Art: #73

@vovacha vovacha changed the title Create Genesis for all dev envs Create Genesis for the development chain Oct 25, 2022
@5-mark
Copy link
Collaborator

5-mark commented Oct 26, 2022

@vovacha I added the cid values for the 3 organisations for Genesis:

GameDAO
cid: QmcNp8hsRaxVDhKgbgo6Jtcb8papyPnKbqjzFtqzqxDE7j

Zero Network
cid: QmUWu6zoFM4j1fwT6fHGEjiuCSft2sNcbmJtT23R9su3Bk

Game3 Foundation
cid: QmNYVx6bhRUGbMp6UEPHKhaLRwFfpsbsP4sFT9XCvMxgfz

I am not sure about which organisation type, fee model & fee should be in the Genesis for these Organisations. In case of doubt please use for all:

orgType: Individual
feeModel: NoFees
accessModel: Open
memberLimit: 0

@vovacha
Copy link
Contributor Author

vovacha commented Oct 27, 2022

@5-mark who will be a prime for those orgs?

@5-mark
Copy link
Collaborator

5-mark commented Oct 27, 2022

@vovacha I once suggested in this ticket gamedaoco/gamedao-refinement#61 to add Marcos Wallet. Since this is the dev chain should be fine. @2075 would you provide a wallet id?

@vovacha vovacha linked a pull request Nov 2, 2022 that will close this issue
@vovacha
Copy link
Contributor Author

vovacha commented Nov 8, 2022

We don't have Events for block 0, so there is no information about GameDAO, Game3, and Zero organizations in the graph.

Shawn Tabrizi:

Substrate chains do not emit events when the block number is 0. This is to avoid hundreds or even thousands of events being generated in the genesis block of a Substrate chain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants