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

Commit

Permalink
Initial mainnet entities setup
Browse files Browse the repository at this point in the history
  • Loading branch information
ptrus committed Aug 14, 2020
1 parent 40c0f34 commit 7390b31
Show file tree
Hide file tree
Showing 95 changed files with 178 additions and 333 deletions.
144 changes: 1 addition & 143 deletions .github/genesis_allocations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,149 +4,7 @@
# value is the quantity of tokens to assign. The tokens are whole tokens so
# when they're translated in the staking ledger they will be multiplied by 1e9

Alexxandr0: "25000"

Bambarello: "55000"

C-Surgeon: "30000"

Code-Breader: "55000"

Julia-Ju-Ju: "80000"

Ostrovmaria80: "15000"

PowerMax9999: "15000"

SebastianJ: "1000000"

Shella: "90000"

SimplyVC: "1190000"

SmartStake: "90000"

UbikCapital: "55000"

Wanderer-Cry: "55000"

WolfEdgeCapital: "110000"

ank-everstake: "150000"

aptemuyc: "30000"

ben-staked: "40000"

bi23com: "50000"

bitoven-dev: "565000"

blockdaemon: "75000"

blockdev345: "100000"

calvinzhou-rockx: "25000"

caramis: "65000"

chadbean: "90000"

chinoto: "10000"

chorus-techops: "115000"

codernpm: "150000"

culmore2015: "135000"

dcccapital: "515000"

defunctzombie: "50000"

dhruvmaloo: "115000"

flankerted: "30000"

flutterwin: "100000"

gspina: "15000"

gunray88: "50000"

gxwuyingjun: "45000"

himansh987: "100000"

huglester: "15000"

hydai: "5000"

jacky860226: "10000"

jjangg96: "5000"

joesixpack: "10000"

jonathan-geisler: "5000"

k0kk0k: "80000"

karmastic-BT: "450000"

karmastic: "40000"

kaustubhkapatral: "90000"

keefertaylor: "60000"

kwunyeung: "100000"

lqyice: "815000"

lymweb: "15000"

lyoungblood: "60000"

m4dbi7: "25000"

marssuper: "190000"

mattharrop: "85000"

mohakagr: "50000"

oceanabcde: "1265000"

ponchik69: "55000"

privatenerd: "125000"

slavaAa129: "15000"

spdd: "30000"

spherical-one: "55000"

sriney-staked: "65000"

tjanez: "10000"

validator01: "75000"

wetezos: "165000"

winslyn: "1550000"

wjdfx: "190000"

xudoubles: "15000"

y3v63n: "225000"

danielimkk: "10000"

danielimkk-ankr: "10000"
# TODO: setup mainnet alocations.

##
# BELOW ARE ALLOCATIONS FOR TEST ONLY GENESIS DOCUMENTS
Expand Down
14 changes: 8 additions & 6 deletions .github/scripts/python/generate_genesis.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def add_entities_from_directory(allocations, genesis_command, entity_dir, add_no
@click.option('--roothash-path', required=False,
default='.github/roothash_params.json',
type=click.Path(resolve_path=True))
@click.option('--chain-id-prefix', default='amber')
@click.option('--chain-id-prefix', default='mainnet')
@click.option('--test-only/--no-test-only', default=False)
@click.option('--genesis-time',
default=datetime.now().strftime(DATETIME_FORMAT),
Expand All @@ -76,23 +76,25 @@ def generate(unpacked_entities_path, test_entities_path, oasis_node_path,
timestamp = genesis_time.strftime('%Y-%m-%d-%s')
chain_id = '%s-%s' % (chain_id_prefix, timestamp)
if test_only:
chain_id = 'amber-test-%s' % timestamp
chain_id = 'mainnet-test-%s' % timestamp

genesis_command = [
# TODO: double-check all params.
oasis_node_path, 'genesis', 'init',
'--genesis.file', output_path,
'--chain.id', chain_id,
'--staking', staking_path,
'--halt.epoch', '1440',
'--staking.token_symbol', 'ROSE',
'--staking.token_value_exponent', '9',
# TODO: what halt epoch to use for mainnet?
'--halt.epoch', '999999',
'--epochtime.tendermint.interval', '600',
'--consensus.tendermint.timeout_commit', '5s',
'--consensus.tendermint.empty_block_interval', '0s',
'--consensus.tendermint.max_tx_size', '32kb',
'--consensus.tendermint.max_evidence_age_blocks', '100000',
'--consensus.tendermint.max_evidence_age_time', '172800000000000ns',
'--registry.max_node_expiration', '2',
'--consensus.backend', 'tendermint',
'--scheduler.max_validators', '70',
'--scheduler.max_validators', '100',
'--scheduler.max_validators_per_entity', '1',
]

Expand Down
2 changes: 1 addition & 1 deletion .github/scripts/python/validate_pull_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def main():
try:
validate_entity_pull_request(
gh,
'oasisprotocol/amber-network-entities',
'oasisprotocol/mainnet-entities',
pr_number
)
except InvalidEntityPR as e:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/validate-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
--output-path /tmp/staking.pre_prod.json
- name: Download oasis-node
run: curl -Lo /tmp/oasis_core_linux_amd64.tar.gz https://github.com/oasisprotocol/oasis-core/releases/download/v20.8/oasis_core_20.8_linux_amd64.tar.gz
run: curl -Lo /tmp/oasis_core_linux_amd64.tar.gz https://github.com/oasisprotocol/oasis-core/releases/download/v20.9/oasis_core_20.9_linux_amd64.tar.gz

- name: Unpack oasis-node
run: cd /tmp && tar xvf oasis_core_linux_amd64.tar.gz && chmod +x /tmp/oasis-node
Expand All @@ -52,8 +52,8 @@ jobs:
--genesis-allocations-path .github/genesis_allocations.yaml
--staking-path /tmp/staking.pre_prod.json
--roothash-path .github/roothash_params.json
--chain-id-prefix amber
--genesis-time 2020-06-18T16:00:00
--chain-id-prefix mainnet-testing
--genesis-time 2020-08-12T16:00:00
- name: Upload the "pre-production" genesis document
uses: actions/upload-artifact@v1
Expand Down
17 changes: 15 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,15 @@
# mainnet-entities
Mainnet Entity Packages
# Mainnet Network Entities

For anyone participating in the Mainnet Network, please follow these instructions
here to submit your Entity Package.

1. Fork this repo
2. Add your entity package to `entities/<your-github-username>-entity.tar.gz`
3. Open a pull request to the master branch on this repository. **You must use
the same user that you used in the entity file name (i.e.
`<your-github-username>`).
4. The pull request will be automatically validated via a github action
5. If it passes we will approve and merge

Once the Mainnet Network begins, this repository will be archived and closed to
pull-requests.
Binary file removed entities/Alexxandr0-entity.tar.gz
Binary file not shown.
Binary file removed entities/Bambarello-entity.tar.gz
Binary file not shown.
Binary file removed entities/C-Surgeon-entity.tar.gz
Binary file not shown.
Binary file removed entities/CentreDLTUM-entity.tar.gz
Binary file not shown.
Binary file removed entities/Code-Breader-entity.tar.gz
Binary file not shown.
Binary file removed entities/Julia-Ju-Ju-entity.tar.gz
Binary file not shown.
Binary file removed entities/LRUki-entity.tar.gz
Binary file not shown.
Binary file removed entities/Ostrovmaria80-entity.tar.gz
Binary file not shown.
Binary file removed entities/PowerMax9999-entity.tar.gz
Binary file not shown.
Binary file removed entities/SebastianJ-entity.tar.gz
Binary file not shown.
Binary file removed entities/Shella-entity.tar.gz
Binary file not shown.
Binary file removed entities/SimplyVC-entity.tar.gz
Binary file not shown.
Binary file removed entities/SmartStake-entity.tar.gz
Binary file not shown.
Binary file removed entities/TonyWu3027-entity.tar.gz
Binary file not shown.
Binary file removed entities/UbikCapital-entity.tar.gz
Binary file not shown.
Binary file removed entities/Wanderer-Cry-entity.tar.gz
Binary file not shown.
Binary file removed entities/WolfEdgeCapital-entity.tar.gz
Binary file not shown.
Binary file removed entities/ank-everstake-entity.tar.gz
Binary file not shown.
Binary file removed entities/aptemuyc-entity.tar.gz
Binary file not shown.
Binary file removed entities/ben-staked-entity.tar.gz
Binary file not shown.
Binary file removed entities/bi23com-entity.tar.gz
Binary file not shown.
Binary file removed entities/bitoven-dev-entity.tar.gz
Binary file not shown.
Binary file removed entities/blockdaemon-entity.tar.gz
Binary file not shown.
Binary file removed entities/blockdev345-entity.tar.gz
Binary file not shown.
Binary file removed entities/calvinzhou-rockx-entity.tar.gz
Binary file not shown.
Binary file removed entities/caramis-entity.tar.gz
Binary file not shown.
Binary file removed entities/chadbean-entity.tar.gz
Binary file not shown.
Binary file removed entities/chinoto-entity.tar.gz
Binary file not shown.
Binary file removed entities/chorus-techops-entity.tar.gz
Binary file not shown.
Binary file removed entities/codernpm-entity.tar.gz
Binary file not shown.
Binary file removed entities/culmore2015-entity.tar.gz
Binary file not shown.
Binary file removed entities/danielimkk-ankr-entity.tar.gz
Binary file not shown.
Binary file removed entities/danielimkk-entity.tar.gz
Binary file not shown.
Binary file removed entities/dcccapital-entity.tar.gz
Binary file not shown.
Binary file removed entities/defunctzombie-entity.tar.gz
Binary file not shown.
Binary file removed entities/dhruvmaloo-entity.tar.gz
Binary file not shown.
Binary file removed entities/flankerted-entity.tar.gz
Binary file not shown.
Binary file removed entities/flutterwin-entity.tar.gz
Binary file not shown.
Binary file removed entities/frankfurt-school-entity.tar.gz
Binary file not shown.
Binary file removed entities/fslf-entity.tar.gz
Binary file not shown.
Binary file removed entities/gspina-entity.tar.gz
Binary file not shown.
Binary file removed entities/gunray88-entity.tar.gz
Binary file not shown.
Binary file removed entities/gxwuyingjun-entity.tar.gz
Binary file not shown.
Binary file removed entities/himansh987-entity.tar.gz
Binary file not shown.
Binary file removed entities/huglester-entity.tar.gz
Binary file not shown.
Binary file removed entities/hydai-entity.tar.gz
Binary file not shown.
Binary file removed entities/jacky860226-entity.tar.gz
Binary file not shown.
Binary file removed entities/jjangg96-entity.tar.gz
Binary file not shown.
Binary file removed entities/joesixpack-entity.tar.gz
Binary file not shown.
Binary file removed entities/johndoe24873-entity.tar.gz
Binary file not shown.
Binary file removed entities/johnx25bd-entity.tar.gz
Binary file not shown.
Binary file removed entities/jonathan-geisler-entity.tar.gz
Binary file not shown.
Binary file removed entities/k0kk0k-entity.tar.gz
Binary file not shown.
Binary file removed entities/karmastic-BT-entity.tar.gz
Binary file not shown.
Binary file removed entities/karmastic-entity.tar.gz
Binary file not shown.
Binary file removed entities/kaustubhkapatral-entity.tar.gz
Binary file not shown.
Binary file removed entities/keefertaylor-entity.tar.gz
Binary file not shown.
Binary file removed entities/kwunyeung-entity.tar.gz
Binary file not shown.
Binary file removed entities/lqyice-entity.tar.gz
Binary file not shown.
Binary file removed entities/lymweb-entity.tar.gz
Binary file not shown.
Binary file removed entities/lyoungblood-entity.tar.gz
Binary file not shown.
Binary file removed entities/m37x-entity.tar.gz
Binary file not shown.
Binary file removed entities/m4dbi7-entity.tar.gz
Binary file not shown.
Binary file removed entities/marssuper-entity.tar.gz
Binary file not shown.
Binary file removed entities/mattharrop-entity.tar.gz
Binary file not shown.
Binary file not shown.
Binary file removed entities/mohakagr-entity.tar.gz
Binary file not shown.
Binary file removed entities/narniec-entity.tar.gz
Binary file not shown.
Binary file removed entities/oceanabcde-entity.tar.gz
Binary file not shown.
Binary file removed entities/ponchik69-entity.tar.gz
Binary file not shown.
Binary file removed entities/privatenerd-entity.tar.gz
Binary file not shown.
Binary file removed entities/sidharth747-entity.tar.gz
Binary file not shown.
Binary file removed entities/slavaAa129-entity.tar.gz
Binary file not shown.
Binary file removed entities/spdd-entity.tar.gz
Binary file not shown.
Binary file removed entities/spherical-one-entity.tar.gz
Binary file not shown.
Binary file removed entities/sriney-staked-entity.tar.gz
Binary file not shown.
Binary file removed entities/tjanez-entity.tar.gz
Binary file not shown.
Binary file removed entities/validator01-entity.tar.gz
Binary file not shown.
Binary file removed entities/wetezos-entity.tar.gz
Binary file not shown.
Binary file removed entities/winslyn-entity.tar.gz
Binary file not shown.
Binary file removed entities/wjdfx-entity.tar.gz
Binary file not shown.
Binary file removed entities/xudoubles-entity.tar.gz
Binary file not shown.
Binary file removed entities/y3v63n-entity.tar.gz
Binary file not shown.
Binary file removed entities/yuneeksehgal-entity.tar.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion go/genesis-tools/cmd/staking_genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
flag "github.com/spf13/pflag"
"github.com/spf13/viper"

"github.com/oasisprotocol/amber-network-entities/go/genesis-tools/stakinggenesis"
"github.com/oasisprotocol/mainnet-entities/go/genesis-tools/stakinggenesis"
nodeCmdCommon "github.com/oasisprotocol/oasis-core/go/oasis-node/cmd/common"
)

Expand Down
2 changes: 1 addition & 1 deletion go/genesis-tools/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
package main

import (
"github.com/oasisprotocol/amber-network-entities/go/genesis-tools/cmd"
"github.com/oasisprotocol/mainnet-entities/go/genesis-tools/cmd"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion go/genesis-tools/stakinggenesis/allocations_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"github.com/stretchr/testify/require"

"github.com/oasisprotocol/amber-network-entities/go/genesis-tools/stakinggenesis"
"github.com/oasisprotocol/mainnet-entities/go/genesis-tools/stakinggenesis"
"github.com/oasisprotocol/oasis-core/go/common/quantity"
)

Expand Down
2 changes: 1 addition & 1 deletion go/genesis-tools/stakinggenesis/ledger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"github.com/stretchr/testify/require"

"github.com/oasisprotocol/amber-network-entities/go/genesis-tools/stakinggenesis"
"github.com/oasisprotocol/mainnet-entities/go/genesis-tools/stakinggenesis"
"github.com/oasisprotocol/oasis-core/go/common/crypto/signature"
fileSigner "github.com/oasisprotocol/oasis-core/go/common/crypto/signature/signers/file"
"github.com/oasisprotocol/oasis-core/go/common/entity"
Expand Down
22 changes: 16 additions & 6 deletions go/go.mod
Original file line number Diff line number Diff line change
@@ -1,13 +1,23 @@
module github.com/oasisprotocol/amber-network-entities/go
module github.com/oasisprotocol/mainnet-entities/go

go 1.13
go 1.14

replace (
// Replace directives from oasis-core, as these don't get propagated.
github.com/gorilla/websocket => github.com/gorilla/websocket v1.4.2
github.com/tendermint/tendermint => github.com/oasisprotocol/tendermint v0.34.0-rc3-oasis1
golang.org/x/crypto/curve25519 => github.com/oasisprotocol/ed25519/extra/x25519 v0.0.0-20200528083105-55566edd6df0
golang.org/x/crypto/ed25519 => github.com/oasisprotocol/ed25519 v0.0.0-20200528083105-55566edd6df0
)

require (
github.com/oasisprotocol/oasis-core/go v0.0.0-20200611140441-8ee232fafeaf
github.com/dgraph-io/badger/v2 v2.0.3 // indirect
// https://github.com/oasisprotocol/oasis-core/releases/tag/v20.9
github.com/oasisprotocol/oasis-core/go v0.0.0-20200805122849-3e191ea91460
github.com/smartystreets/assertions v1.0.0 // indirect
github.com/spf13/cobra v1.0.0
github.com/spf13/pflag v1.0.5
github.com/spf13/viper v1.7.0
github.com/stretchr/testify v1.5.1
github.com/whyrusleeping/go-logging v0.0.1
github.com/spf13/viper v1.7.1
github.com/stretchr/testify v1.6.1
gopkg.in/yaml.v2 v2.2.5
)
Loading

0 comments on commit 7390b31

Please sign in to comment.