Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

Trappist deployment on Rococo #138

Closed
11 of 12 tasks
hbulgarini opened this issue Mar 28, 2023 · 5 comments
Closed
11 of 12 tasks

Trappist deployment on Rococo #138

hbulgarini opened this issue Mar 28, 2023 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@hbulgarini
Copy link
Contributor

hbulgarini commented Mar 28, 2023

Trappist deploy on Rococo

Release Process

Branch & tag management

Similar to cumulus repository for each release it will be a release branch under the naming convention polkadot-v<VERSION> and a tag v<VERSION>.

Release during deployment.

polkadot-v0.9.37 (XCM v2)

Srtool

For generating the release on github with the corresponding attached artifcats for the client and the runtime srtool will be used including it's subproject srtool-actions, which permit to integrate the tool in the a Github action pipeline.

Runtime versions & upgrades.

Initial runtime version to start: 1000. On every runtime upgrade we can increase the version by 100 and in case of a patch within releases, we can increase by 10. Being:

New runtime version due to new release: 1100
New runtime version due to a patch needed after release 1100: 1110

Collators

The chain will be set up with two collators in two different cloud instances.

The deployment of the collators code will be led by the Parity DevOps team.

Both containers will be defined under a docker.yml (Example) that will be defined in the Trappist repository.

Account management.

Sudo / Root Origin

The parachain can be managed by one account that will be granted with the root origin through the Sudo pallet.

Founded Accounts

Initially, there will be 6 accounts with 1.5M HOP. (is this enough?)

HOP tokenomics.

At this point in time there is no emission mechanism for HOP or any defined tokenomics. We should decide what is the most convenient tokenomics for this project. Anyway, i don't see this as a blocker for deployment but something to consider in the near future.

Council members.

Even if the council is representative from Governance v1, for the purpose of this parachain it still might work as an useful collectives to explore. OpenGov can be a little bit too much for the purpose of this live testnet parachain.

The 6 accounts that were founded during the genesis, will also be set as the council members

Collator Aura keys

Two keys will be generated using Sr25519 for the Aura collator keys and they will be provided to the parity DevOps team to deploy.

Accounts Ownership

All pre funded accounts will be managed and owned by Delivery Services team at Parity.

Chain Specs

trappist_config()

In the chain_spec/trappist.rs file for Trappist, there is a new function trappist_config() that will contain the "production" configuration for the genesis.

Parachain Id

The parachain Id for Trappist in Rococo will be 2525 The year that the oldest trappist beer was produced.

XCM

Rockmine

Rename Statemine for Rockmine in XCM config file to keep consistency across Rococo chain.

SafeXCMVersion

The parachain will be launched with version 2 so during the next upgrade we can try the migration to version 3 on a live chain.

Faucet

Pallet Contracts team is looking for use the deployed version of Trappist on Rococo as the chain for education/hackatons workshops ,etc. For this reason i think that we should implement a faucet so users can receive tokens during these activities.

Task list -

CC: @stiiifff

@hbulgarini hbulgarini added the enhancement New feature or request label Mar 28, 2023
@hbulgarini hbulgarini self-assigned this Mar 28, 2023
@hbulgarini
Copy link
Contributor Author

Related before deploy: #137

@stiiifff stiiifff added this to the Trappist M1 / XCM v2 milestone Mar 30, 2023
@hbulgarini
Copy link
Contributor Author

hbulgarini commented Mar 31, 2023

GitLab mirroring needed for automating docker image build and publish: https://github.com/paritytech/devops/issues/2482

@stiiifff
Copy link
Contributor

stiiifff commented Apr 6, 2023

@hbulgarini Great stuff ! Here are some comments:

  • HOP Tokenomics: let's try to refine this a bit further than a fixed emission & 6 pre-funded accounts.
    • Faucet: can we think about using Polkadot Testnet Faucet and a dedicated Element channel ?
    • Can we bring more clarity on the Sudo + Council implementation ?
  • I think we could create a separate, "living" issue to serve as the roadmap for Trappist updates on Rococo, what do you think ?
  • Parachain ID: I have another idea ... let's have a chat offline.
  • Multi-runtimes: I want to make sure that Trappist can still be used as a local testnet, so shouldn't we have different runtime configurations (and chainspecs) ?

@hbulgarini
Copy link
Contributor Author

Keynotes discussion:

  • Sudo account will be managed a multisig. The multisig will be set with the 6 pre funded accounts with a 2/6 threshold. It will contain 1 M.
  • Council approval with 50% (3 over 6)
  • Add a pallet to start into maintenance mode.
  • Have a fixed supply of 10 M and do not make the token inflationary.
  • Parachain ID: The year that the oldest trappist beer was produced.
  • Implement treasury where it will receive a 80% of tx fees.
  • Collators will receive 20% of tx fees.
  • In next releases, add democracy pallet.
  • Faucet will be funded manually.
  • Add chess pallet so it gets deployed.

@stiiifff stiiifff changed the title Trappist deploy on Rococo Trappist deployment on Rococo Apr 12, 2023
@hbulgarini
Copy link
Contributor Author

Parachain deployed and running on Rococo:

https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Frococo-trappist-rpc.polkadot.io#/explorer

Pending issues to address:
#146
#242

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants