Skip to content

Commit

Permalink
dev: create vocdoni/DEV/34 on top of vocdoni/DEV/33
Browse files Browse the repository at this point in the history
  • Loading branch information
altergui committed May 22, 2024
1 parent 95c0c07 commit f399ae2
Showing 1 changed file with 68 additions and 67 deletions.
135 changes: 68 additions & 67 deletions vochain/genesis/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,10 @@ var testGenesis = comettypes.GenesisDoc{
}

var devGenesis = comettypes.GenesisDoc{
GenesisTime: time.Date(2024, time.April, 4, 1, 0, 0, 0, time.UTC),
ChainID: "vocdoni/DEV/33",
InitialHeight: 1,
GenesisTime: time.Date(2024, time.May, 22, 8, 0, 0, 0, time.UTC),
ChainID: "vocdoni/DEV/34",
InitialHeight: 292921,
AppHash: []byte(types.HexStringToHexBytes("715f476dbb73eebb8c6991198b3d91e63ad9975298ceae727e9663f2710e60cf")),
ConsensusParams: &comettypes.ConsensusParams{
Block: DefaultBlockParams(),
Evidence: comettypes.DefaultEvidenceParams(),
Expand All @@ -108,70 +109,70 @@ var devGenesis = comettypes.GenesisDoc{
App: 1,
},
},
AppState: jsonRawMessage(AppState{
MaxElectionSize: 100000,
NetworkCapacity: 20000,
Validators: []AppStateValidators{
{ // 0
Address: ethereumAddrFromPubKey("03c61c8399828b0c5644455e43c946979272dc3ca0859267f798268802303015f7"),
PubKey: types.HexStringToHexBytes("03c61c8399828b0c5644455e43c946979272dc3ca0859267f798268802303015f7"),
Power: 10,
Name: "",
KeyIndex: 1,
},
{ // 1
Address: ethereumAddrFromPubKey("0383fe95c5fddee9932ef0f77c180c3c5d0357dba566f2ee77de666a64d9d8c2a6"),
PubKey: types.HexStringToHexBytes("0383fe95c5fddee9932ef0f77c180c3c5d0357dba566f2ee77de666a64d9d8c2a6"),
Power: 10,
Name: "",
KeyIndex: 2,
},
{ // 2
Address: ethereumAddrFromPubKey("03503c0872bdcd804b1635cf187577ca1caddbbb14ec8eb3af68579fe4bedcf071"),
PubKey: types.HexStringToHexBytes("03503c0872bdcd804b1635cf187577ca1caddbbb14ec8eb3af68579fe4bedcf071"),
Power: 10,
Name: "",
KeyIndex: 3,
},
{ // 3
Address: ethereumAddrFromPubKey("02159b8dd9b1cea02cd0ff78ae26dc8aa4efc65f46511537d8550fe1ce407100c3"),
PubKey: types.HexStringToHexBytes("02159b8dd9b1cea02cd0ff78ae26dc8aa4efc65f46511537d8550fe1ce407100c3"),
Power: 10,
Name: "",
KeyIndex: 4,
},
},
Accounts: []Account{
{ // faucet
Address: types.HexStringToHexBytes("0x7C3a4A5f142ed27C07966b7C7C3F085521154b40"),
Balance: 1000000000,
},
{ // faucet2
Address: types.HexStringToHexBytes("0x536Da9ecd65Fc0248625b0BBDbB305d0DD841893"),
Balance: 100000000,
},
{ // faucet3
Address: types.HexStringToHexBytes("0x15A052aA90350BA95038A89A470117A9b9c35960"),
Balance: 100000000,
},
},
TxCost: TransactionCosts{
SetProcessStatus: 2,
SetProcessCensus: 2,
SetProcessQuestionIndex: 1,
RegisterKey: 1,
NewProcess: 5,
SendTokens: 1,
SetAccountInfoURI: 1,
CreateAccount: 1,
AddDelegateForAccount: 1,
DelDelegateForAccount: 1,
CollectFaucet: 1,
SetAccountSIK: 1,
DelAccountSIK: 1,
SetAccountValidator: 10000,
},
}),
// AppState: jsonRawMessage(AppState{
// MaxElectionSize: 100000,
// NetworkCapacity: 20000,
// Validators: []AppStateValidators{
// { // 0
// Address: ethereumAddrFromPubKey("03c61c8399828b0c5644455e43c946979272dc3ca0859267f798268802303015f7"),
// PubKey: types.HexStringToHexBytes("03c61c8399828b0c5644455e43c946979272dc3ca0859267f798268802303015f7"),
// Power: 10,
// Name: "",
// KeyIndex: 1,
// },
// { // 1
// Address: ethereumAddrFromPubKey("0383fe95c5fddee9932ef0f77c180c3c5d0357dba566f2ee77de666a64d9d8c2a6"),
// PubKey: types.HexStringToHexBytes("0383fe95c5fddee9932ef0f77c180c3c5d0357dba566f2ee77de666a64d9d8c2a6"),
// Power: 10,
// Name: "",
// KeyIndex: 2,
// },
// { // 2
// Address: ethereumAddrFromPubKey("03503c0872bdcd804b1635cf187577ca1caddbbb14ec8eb3af68579fe4bedcf071"),
// PubKey: types.HexStringToHexBytes("03503c0872bdcd804b1635cf187577ca1caddbbb14ec8eb3af68579fe4bedcf071"),
// Power: 10,
// Name: "",
// KeyIndex: 3,
// },
// { // 3
// Address: ethereumAddrFromPubKey("02159b8dd9b1cea02cd0ff78ae26dc8aa4efc65f46511537d8550fe1ce407100c3"),
// PubKey: types.HexStringToHexBytes("02159b8dd9b1cea02cd0ff78ae26dc8aa4efc65f46511537d8550fe1ce407100c3"),
// Power: 10,
// Name: "",
// KeyIndex: 4,
// },
// },
// Accounts: []Account{
// { // faucet
// Address: types.HexStringToHexBytes("0x7C3a4A5f142ed27C07966b7C7C3F085521154b40"),
// Balance: 1000000000,
// },
// { // faucet2
// Address: types.HexStringToHexBytes("0x536Da9ecd65Fc0248625b0BBDbB305d0DD841893"),
// Balance: 100000000,
// },
// { // faucet3
// Address: types.HexStringToHexBytes("0x15A052aA90350BA95038A89A470117A9b9c35960"),
// Balance: 100000000,
// },
// },
// TxCost: TransactionCosts{
// SetProcessStatus: 2,
// SetProcessCensus: 2,
// SetProcessQuestionIndex: 1,
// RegisterKey: 1,
// NewProcess: 5,
// SendTokens: 1,
// SetAccountInfoURI: 1,
// CreateAccount: 1,
// AddDelegateForAccount: 1,
// DelDelegateForAccount: 1,
// CollectFaucet: 1,
// SetAccountSIK: 1,
// DelAccountSIK: 1,
// SetAccountValidator: 10000,
// },
// }),
}

var stageGenesis = comettypes.GenesisDoc{
Expand Down

0 comments on commit f399ae2

Please sign in to comment.