Skip to content

Commit e28a6bd

Browse files
authored
Merge pull request #10 from hadronlabs-org/mainnet-config
Mainnet deployment documentation
2 parents 9385d2d + a51ce5d commit e28a6bd

File tree

3 files changed

+164
-43
lines changed

3 files changed

+164
-43
lines changed

docs/deployments/mainnet.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# neutron-1 [mainnet]
2+
3+
## Cosmos Hub Instance
4+
5+
Current Cosmos Hub Drop instance is running on `cosmoshub-4` mainnet.
6+
7+
### Contracts
8+
9+
| Contract | Address | Checksum |
10+
| ----------------------------- | -------------------------------------------------------------------- | ---------------------------------------------------------------- |
11+
| `factory` | `neutron1rtydk5vlppj2nmw98ctpgee6hxe5va7mc9x3lng8xm75p3dus80s7pkvmu` | 82DD53F3E448E9A142F0F4FFD802C266AD6B2803C0A614E91EDBE38EFE5B6B31 |
12+
| `core_contract` | `neutron16m3hjh7l04kap086jgwthduma0r5l0wh8kc6kaqk92ge9n5aqvys9q6lxr` | 19E555870765ADB32DC51E0BD25398B561CC459B68CC2E0EECC6C4B943167169 |
13+
| `distribution_contract` | `neutron1dj0l8w0v4w6c8xshyeqhxx740nkc0p2x0e37cdsynsr49zvd2v8qze22va` | E1D8891A9967EADA49DB7433FB86E2BBB3BADBDD5746D444CEA402BBDECA0180 |
14+
| `puppeteer_contract` | `neutron15v5acjfttf3umzatmj7rqfjy6yzcgekh266ehjsxclvaem0hpd7q9qpscr` | D4E62CB36C3E8D2C70B5C7B77A088A1635969C14D7A0FAF099206415A70D1739 |
15+
| `rewards_manager_contract` | `neutron1ydg7c33j0de7np2nk8gf4qwr8gvmmngjan2ymdtthzpwu22zajwqd234gt` | 3866E7302D1E8BB5415AFFB949697309386925EB181BDB437DF89CDCBC28F536 |
16+
| `rewards_pump_contract` | `neutron1e8x80ytpu5dxghsh4jx5d96dyulvvmfjk0da0flurtfwgq37d8ws7a9du4` | BD5E764A14C4E287EBE179228DE01D09D1228E67525220EA1CECE6FF15BF8155 |
17+
| `staker_contract` | `neutron1nzpya9llld5hqjaaz09zcx3mntd5zznw9q4wgdv9llw3at6rdq8qu98dhe` | 8F85F1BB32A9C38BED6FE25DD96BEB2DE0327199E3037160149CB28D6A551485 |
18+
| `strategy_contract` | `neutron1fsk7se2mmg32m62z2gcaf0c5k85qkqv2k6k6r66kfj9nj9xfdyts38u2fv` | 9DCD683DF7EEBC05AD50B46298CC1A33C2827A5AC6A0617FE7E63AD1B50D874F |
19+
| `token_contract` | `neutron1k6hr0f83e7un2wjf29cspk7j69jrnskk65k3ek2nj9dztrlzpj6q00rtsa` | 20367209D9155F3F97CAE02288DDCD79F9BBE47D74334D7F291DDCA6F5260570 |
20+
| `validators_set_contract` | `neutron1vsg7uaxlqwrh04445ajjxkz0fn4cwd6dplmd9n9hmqrvr3ke9ddq5c54ca` | 476173A4F60C598DFB7332D9EF60D773775354AFD744DD9380E28855B35F582F |
21+
| `unbonding_pump_contract` | `neutron1g80pqyddnej6hp0szl6an98zudtkmr08mhhm2g33dj2ut6dzlkts4fzl87` | BD5E764A14C4E287EBE179228DE01D09D1228E67525220EA1CECE6FF15BF8155 |
22+
| `withdrawal_manager_contract` | `neutron1gcklauurx4ckyp0t8a6axl0500vy3n09y5utpspjg8ruxnln8erq2uumck` | 35F6F4B9E2C2B9326D15F0CFC1A1056C7D4E4B08B02D80DAADFD0D473A4E9E5E |
23+
| `withdrawal_voucher_contract` | `neutron1f4c2l9u8yekp99mexyhf7wxgrq3gjtuzgrqe90xaq75v7quulptqzef6up` | C4C18236B69F155A0D3D5EAF917FC0A7298B9D8AD25AA69AF997E82D2C6CDDEF |
24+
| `splitter_contract` | `neutron1sy2ku4gyk6mag5lsxp9y5a5lsalc85mz5vzl6dkzpkmzpvdd3usqc8e7qw` | D9F208D338C67F79099536FC9A9E8A7D13723ECB32552713C0ADEA3893194B68 |
25+
26+
### Denoms
27+
28+
| Symbol | Denom |
29+
| ------- | ----------------------------------------------------------------------------------- |
30+
| `ATOM` | `ibc/C4CFF46FD6DE35CA4CF4CE031E643C8FDC9BA4B99AE598E9B0ED98FE3A2319F9` |
31+
| `dATOM` | `factory/neutron1k6hr0f83e7un2wjf29cspk7j69jrnskk65k3ek2nj9dztrlzpj6q00rtsa/udatom` |
32+
33+
### ICA addresses
34+
35+
| Contract | Address |
36+
| ------------------------- | ------------------------------------------------------------------- |
37+
| `puppeteer_contract` | `cosmos1srjdd7y6duuukmaenghucasqlycddcc65qdj34k6spq8pwk4h6ms7j4w4j` |
38+
| `unbonding_pump_contract` | `cosmos16nc8rqe7mwhrl3lu0hydfhspaemg8au6y646r8a08rg0la8xm9rqawkvzy` |
39+
| `rewards_pump_contract` | `cosmos10h8f0f98kyqa4nw58es97vmm8r6d8yrrg7ghup88ytr57jjwur2s47g2k3` |
40+
| `staker_contract` | `cosmos1h9hxhrtv5hqa572v2xejc98fr637ewm0unxnyk692twdfm554glqfkkp6z` |

docs/deployments/overview.md

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
# Overview
2+
3+
## Introduction
4+
5+
To ensure the integrity and security of contracts uploaded to the network, it is necessary to verify the SHA256 checksums of both the local binary file of the contract and the contract deployed on the network. This document outlines the steps for performing this verification.
6+
7+
## Bulding Drop
8+
9+
### Requirements
10+
11+
- Git
12+
- Rust > 1.78
13+
14+
### Building
15+
16+
The contracts were built using the git tag `v1.0.0`.
17+
18+
To build the drop protocol contracts, simply clone the contracts repository and run `make build`:
19+
20+
```
21+
$ git clone --branch v1.0.0 https://github.com/hadronlabs-org/drop-contracts.git
22+
.....
23+
$ cd drop-contracts
24+
.....
25+
$ make build
26+
```
27+
28+
After the build completes, all contracts will be located in the `artifacts` directory.
29+
30+
## Tools
31+
32+
### CLI
33+
34+
1. **Command to obtain the checksum of the file:**
35+
36+
```
37+
sha256sum <contract file name>
38+
```
39+
40+
2. **Command to obtain the code id of the deployed contract:**
41+
42+
```
43+
neutrond q wasm contract <address of the deployed contract> --node https://rpc-talzor.neutron-1.neutron.org:443
44+
45+
```
46+
47+
3. **Command to obtain the checksum of the deployed contract:**
48+
```
49+
neutrond q wasm code-info <code-id of the deployed contract> --node https://rpc-talzor.neutron-1.neutron.org:443
50+
```
51+
52+
In the obtained output, the checksum is contained in the `data_hash` field.
53+
54+
### Celatone
55+
56+
Or you can use [Celatone](https://neutron.celat.one/neutron-1). Search for contract using its address, and on the "Contract Information" click on contract's code id in the "From Code" field. But the most reliable way to get all required contract information is to use CLI with right RPC node.
57+
58+
## Example Procedure
59+
60+
1. Obtain the checksum of the local binary contract file:
61+
62+
```
63+
sha256sum core.wasm
64+
```
65+
66+
2. Obtain the code id of the deployed contract:
67+
68+
```
69+
neutrond q wasm contract neutron16m3hjh7l04kap086jgwthduma0r5l0wh8kc6kaqk92ge9n5aqvys9q6lxr --node https://rpc-talzor.neutron-1.neutron.org:443
70+
```
71+
72+
3. Obtain the checksum of the deployed contract:
73+
74+
```
75+
neutrond q wasm code-info 1720 --node https://rpc-talzor.neutron-1.neutron.org:443
76+
```
77+
78+
4. Compare the obtained checksums to confirm integrity.
79+
80+
## Contracts and Their Checksums
81+
82+
You can find contracts checksums, code id and addresses on the next two pages: [testnet](./testnet.md) and [mainnet](./mainnet.md).

sidebars.js

Lines changed: 42 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -13,50 +13,49 @@
1313

1414
/** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */
1515
const sidebars = {
16-
docs: [
16+
docs: [
17+
{
18+
label: "Drop",
19+
type: "category",
20+
items: [
21+
"introduction",
1722
{
18-
label: 'Drop',
19-
type: 'category',
20-
items: [
21-
'introduction',
22-
{
23-
label: 'About',
24-
type: 'category',
25-
items: [
26-
'about/alliance',
27-
'about/droplets',
28-
],
29-
},
30-
{
31-
label: 'For Partners',
32-
type: 'category',
33-
items: [
34-
'integrations/overview',
35-
'integrations/referral',
36-
'integrations/lsm_staking',
37-
],
38-
},
39-
{
40-
label: 'Validators',
41-
type: 'category',
42-
items: [
43-
'validators/overview',
44-
'validators/valset',
45-
'validators/onboard',
46-
'validators/roadmap',
47-
'validators/faq',
48-
],
49-
},
50-
{
51-
label: 'Deployments',
52-
type: 'category',
53-
items: [
54-
'deployments/testnet',
55-
],
56-
}
57-
]
58-
}
59-
]
23+
label: "About",
24+
type: "category",
25+
items: ["about/alliance", "about/droplets"],
26+
},
27+
{
28+
label: "For Partners",
29+
type: "category",
30+
items: [
31+
"integrations/overview",
32+
"integrations/referral",
33+
"integrations/lsm_staking",
34+
],
35+
},
36+
{
37+
label: "Validators",
38+
type: "category",
39+
items: [
40+
"validators/overview",
41+
"validators/valset",
42+
"validators/onboard",
43+
"validators/roadmap",
44+
"validators/faq",
45+
],
46+
},
47+
{
48+
label: "Deployments",
49+
type: "category",
50+
items: [
51+
"deployments/overview",
52+
"deployments/mainnet",
53+
"deployments/testnet",
54+
],
55+
},
56+
],
57+
},
58+
],
6059
};
6160

6261
module.exports = sidebars;

0 commit comments

Comments
 (0)