Skip to content

Commit

Permalink
[Infra] Add app/servicer keys to LocalNet genesis (#781)
Browse files Browse the repository at this point in the history
<!-- REMOVE this comment block after following the instructions
1. Make the title of the PR is descriptive and follows this format:
`[<Module>] <DESCRIPTION>`
2. Update the _Assigness_, _Labels_, _Projects_, _Milestone_ before
submitting the PR for review.
3. Add label(s) for the purpose (e.g. `persistence`) and, if applicable,
priority (e.g. `low`) labels as well.
4. See our custom action driven labels if you need to trigger a build or
interact with an LLM -
https://github.com/pokt-network/pocket/blob/main/docs/development/README.md#github-labels
-->

## Description

<!-- REMOVE this comment block after following the instructions
1. Add a summary of the change including: motivation, reasons, context,
dependencies, etc...
 2. If applicable, specify the key files that should be looked at.
3. If you leave the `reviewpad:summary` block below, it'll autopopulate
an AI generated summary. Alternatively, you can leave a `/reviewpad
summarize` comment to trigger it manually.
-->
<!-- reviewpad:summarize:start -->
### Summary generated by Reviewpad on 01 Jun 23 18:05 UTC
This pull request adds 2 applications and 2 servicers to the
genesis.json file for LocalNet configuration, which can be used for
testing the CLI. It is part of work on issue #754. The patch includes
changes to the CHANGELOG.md and README.md files to reflect the added
addresses. The relevant options for this pull request are
"Documentation" and "Other," specifically "added 2 applications and 2
servicers to genesis.json for LocalNet."
<!-- reviewpad:summarize:end -->

## Issue

Part of work on #754 

## Type of change

Please mark the relevant option(s):

- [ ] New feature, functionality or library
- [ ] Bug fix
- [ ] Code health or cleanup
- [ ] Major breaking change
- [X] Documentation
- [x] Other Added 2 applications and 2 servicers to genesis.json for
LocalNet

## List of changes
- Added 2 applications to genesis.json for LocalNet
- Added 2 servicers to genesis.json for LocalNet

## Testing

- [ ] `make develop_test`; if any code changes were made
- [ ] `make test_e2e` on [k8s
LocalNet](https://github.com/pokt-network/pocket/blob/main/build/localnet/README.md);
if any code changes were made
- [ ] `e2e-devnet-test` passes tests on
[DevNet](https://pocketnetwork.notion.site/How-to-DevNet-ff1598f27efe44c09f34e2aa0051f0dd);
if any code was changed
- [ ] [Docker Compose
LocalNet](https://github.com/pokt-network/pocket/blob/main/docs/development/README.md);
if any major functionality was changed or introduced
- [X] [k8s
LocalNet](https://github.com/pokt-network/pocket/blob/main/build/localnet/README.md);
if any infrastructure or configuration changes were made

## Required Checklist

- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have added, or updated, [`godoc` format
comments](https://go.dev/blog/godoc) on touched members (see:
[tip.golang.org/doc/comment](https://tip.golang.org/doc/comment))
- [x] I have tested my changes using the available tooling
- [ ] I have updated the corresponding CHANGELOG

### If Applicable Checklist

- [x] I have updated the corresponding README(s); local and/or global
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] I have added, or updated,
[mermaid.js](https://mermaid-js.github.io) diagrams in the corresponding
README(s)
- [ ] I have added, or updated, documentation and
[mermaid.js](https://mermaid-js.github.io) diagrams in `shared/docs/*`
if I updated `shared/*`README(s)
  • Loading branch information
adshmh authored Jun 1, 2023
2 parents d2acbbd + 3a2c7c6 commit 7632076
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build/docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.0.0.45] - 2023-06-01

- Added 2 applications to genesis.json in LocalNet configuration
- Added 2 servicers to genesis.json in LocalNet configuration

## [0.0.0.44] - 2023-05-25

- Update docker file to use `p1` as the binary name for the user facing client
Expand Down
15 changes: 15 additions & 0 deletions build/localnet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,21 @@ For example:
- `0010297b55fc9278e4be4f1bcfe52bf9bd0443f8` is a servicer #001.
- `314019dbb7faf8390c1f0cf4976ef1215c90b7e4` is an application #314.


#### Applications staked on LocalNet
Applications with the following addresses are staked on LocalNet, through the [applications field of the genesis.json in the LocalNet configuration](https://github.com/pokt-network/pocket/blob/main/build/localnet/manifests/configs.yaml#L4088)

- `00001fff518b1cdddd74c197d76ba5b5dedc0301`
- `00101f2ff54811e84df2d767c661f57a06349b7e`

These addresses can be used for e.g. testing the CLI.

#### Servicers staked on LocalNet
Servicers with the following addresses are staked on LocalNet, through the [servicers field of the genesis.json in the LocalNet configuration](https://github.com/pokt-network/pocket/blob/main/build/localnet/manifests/configs.yaml#L4120)

- `00002b8cea1bcc3dadc72ebecf95564ceb9c2e2a`
- `001022b138896c4c5466ac86b24a9bbe249905c2`

## How to change configuration files

Configurations can be changed in helm charts where network protocol actor configs are maintained. You can find them in [this directory](../../charts).
Expand Down
42 changes: 42 additions & 0 deletions build/localnet/manifests/configs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4095,6 +4095,26 @@ data:
"unstaking_height": -1,
"output": "88a792b7aca673620132ef01f50e62caa58eca83",
"actor_type": 1
},
{
"address": "00001fff518b1cdddd74c197d76ba5b5dedc0301",
"public_key": "05a25e527bf6f51676f61f2f1a96efaa748218ac82f54d3cdc55a4881389eb60",
"chains": ["0001"],
"staked_amount": "1000000000000",
"paused_height": -1,
"unstaking_height": -1,
"output": "00001fff518b1cdddd74c197d76ba5b5dedc0301",
"actor_type": 1
},
{
"address": "00101f2ff54811e84df2d767c661f57a06349b7e",
"public_key": "bb851ac31120a4c8848738582f358599abbc3d84638f8fa79f74aeafad1eede0",
"chains": ["0001"],
"staked_amount": "1000000000000",
"paused_height": -1,
"unstaking_height": -1,
"output": "00101f2ff54811e84df2d767c661f57a06349b7e",
"actor_type": 1
}
],
"servicers": [
Expand All @@ -4108,6 +4128,28 @@ data:
"unstaking_height": -1,
"output": "43d9ea9d9ad9c58bb96ec41340f83cb2cabb6496",
"actor_type": 2
},
{
"address": "00002b8cea1bcc3dadc72ebecf95564ceb9c2e2a",
"public_key": "d1130c5eb920af8edd5b6bfa39d33aa787f421c8ba0786de4ca4e7703553bb97",
"chains": ["0001"],
"service_url": "http://validator-001-pocket:50832",
"staked_amount": "1000000000000",
"paused_height": -1,
"unstaking_height": -1,
"output": "00002b8cea1bcc3dadc72ebecf95564ceb9c2e2a",
"actor_type": 2
},
{
"address": "001022b138896c4c5466ac86b24a9bbe249905c2",
"public_key": "56915c1270bc8d9280a633e0be51647f62388a851318381614877ef2ed84a495",
"chains": ["0001"],
"service_url": "http://validator-002-pocket:50832",
"staked_amount": "1000000000000",
"paused_height": -1,
"unstaking_height": -1,
"output": "001022b138896c4c5466ac86b24a9bbe249905c2",
"actor_type": 2
}
],
"fishermen": [
Expand Down

0 comments on commit 7632076

Please sign in to comment.