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

docs(specs): Subnet on mainnet #1148

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

CubikRuubik
Copy link

@CubikRuubik CubikRuubik commented Sep 25, 2024

This PR adds info to the existing deploy a subnet guide about additional steps to deploy your own custom ipc subnet with owned ipc stack of smart contracts.
This includes:

  • deploying ipc stack of smart contracts
  • required changes to config.toml file
  • changes in creating subnet and starting validator of the subnet commands

@CubikRuubik CubikRuubik requested a review from a team as a code owner September 25, 2024 14:18
@cryptoAtwill
Copy link
Contributor

@CubikRuubik would you mind add some description for others to onboard the PR faster?

@CubikRuubik
Copy link
Author

@cryptoAtwill, sure thing. Done

- Set your `NETWORK` variable to `mainnet` value.

```
export NETWORK = mainnet
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why mainnet, from the description, I think it's trying to deploy to calibration?

keystore_path = "~/.ipc"

[[subnets]]
id = "/r314"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe calibration chain id here?

- If you intend to deploy on the mainnet, simply replace the `--parent` flag value from `/r314159` to `/r314`.

```
ipc-cli subnet create --parent /r314 --min-validator-stake 1 --min-validators 4 --bottomup-check-period 300 --from <PLEASE PUT ACCOUNT ADDRESS> --permission-mode collateral --supply-source-kind native
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rmb to change the chain id

@@ -210,6 +261,24 @@ cargo make --makefile infra/fendermint/Makefile.toml \
child-validator
```

To start a validator on mainnet, use the addresses of the previously deployed contracts in the `PARENT_GATEWAY` and `PARENT_REGISTRY` fields:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

calibration you mean?

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

Successfully merging this pull request may close these issues.

2 participants