Skip to content

Commit

Permalink
add missing queries
Browse files Browse the repository at this point in the history
  • Loading branch information
Pantani committed Oct 2, 2024
1 parent 2ed4610 commit a06c2e4
Show file tree
Hide file tree
Showing 49 changed files with 752 additions and 169 deletions.
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -923,8 +923,6 @@ github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:
github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc=
github.com/ianlancetaylor/demangle v0.0.0-20210905161508-09a460cdf81d/go.mod h1:aYm2/VgdVmcIU8iMfdMvDMsRAQjcfZSKFby6HOFvi/w=
github.com/ianlancetaylor/demangle v0.0.0-20230524184225-eabc099b10ab/go.mod h1:gx7rwoVhcfuVKG5uya9Hs3Sxj7EIvldVofAWIUtGouw=
github.com/ignite/modules v0.0.3-0.20241001010553-074d16791470 h1:hQyV9fCgRKSRqixQLI30IJd8BW93ML9j96kYmClYeXY=
github.com/ignite/modules v0.0.3-0.20241001010553-074d16791470/go.mod h1:dUUmof5pdx14d7YGRByjzErnaTSHYCFd1Doz+sPIjhs=
github.com/ignite/modules v0.0.3-0.20241001010902-46071e4a67ad h1:55iaGD5dHzkr7/VOXz5EncTMDgNw+1zZYSK6SxdFGSI=
github.com/ignite/modules v0.0.3-0.20241001010902-46071e4a67ad/go.mod h1:dUUmof5pdx14d7YGRByjzErnaTSHYCFd1Doz+sPIjhs=
github.com/improbable-eng/grpc-web v0.15.0 h1:BN+7z6uNXZ1tQGcNAuaU1YjsLTApzkjt2tzCixLaUPQ=
Expand Down
2 changes: 1 addition & 1 deletion localnet/clear.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def clear_home(home):
os.system('rm {}/node{}/config/write-file-atomic-*'.format(home, i))
os.system('rm {}/node{}/config/genesis.json'.format(home, i))
os.system("rm {}/node{}/config/addrbook.json".format(home, i))
os.system('spnd tendermint unsafe-reset-all --home {}/node{}'.format(home, i))
os.system('networkd tendermint unsafe-reset-all --home {}/node{}'.format(home, i))

if __name__ == "__main__":
clear_home('spn')
Expand Down
6 changes: 3 additions & 3 deletions localnet/delegate.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
conf = yaml.safe_load(confFile)

def delegate_cmd(valNumber, amount):
cmd = ["spnd", "tx", "staking", "delegate"]
cmd = ["networkd", "tx", "staking", "delegate"]
cmd.append(conf['validator_addresses'][valNumber])

stake = amount + conf['staking_denom']
Expand Down Expand Up @@ -47,7 +47,7 @@ def delegate(amounts):

print()
print('delegation performed, to show validator set:')
print('spnd q tendermint-validator-set')
print('networkd q tendermint-validator-set')
print()
print('to show consensus state')
print('spnd q ibc client self-consensus-state')
print('networkd q ibc client self-consensus-state')
20 changes: 10 additions & 10 deletions localnet/initialize_rewards.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
)

def initialize_rewards(lastBlockHeight, selfDelegationVal1, selfDelegationVal2, selfDelegationVal3):
cmd_devnull('spnd tx profile create-coordinator --from alice -y')
cmd_devnull('spnd tx launch create-chain orbit-1 orbit.com 0xaaa --from alice -y')
cmd_devnull('spnd tx project create-project orbit 1000000orbit --from alice -y')
cmd_devnull('spnd tx project mint-vouchers 1 50000orbit --from alice -y')
cmd_devnull('spnd tx reward set-rewards 1 50000v/1/orbit {} --from alice -y'.format(lastBlockHeight))
cmd_devnull('networkd tx profile create-coordinator --from alice -y')
cmd_devnull('networkd tx launch create-chain orbit-1 orbit.com 0xaaa --from alice -y')
cmd_devnull('networkd tx project create-project orbit 1000000orbit --from alice -y')
cmd_devnull('networkd tx project mint-vouchers 1 50000orbit --from alice -y')
cmd_devnull('networkd tx reward set-rewards 1 50000v/1/orbit {} --from alice -y'.format(lastBlockHeight))

gentx1 = './testnet/node1/config/gentx/gentx.json'
gentx2 = './testnet/node2/config/gentx/gentx.json'
Expand All @@ -37,14 +37,14 @@ def initialize_rewards(lastBlockHeight, selfDelegationVal1, selfDelegationVal2,
val2 = 'spn1pkdk6m2nh77nlaep84cylmkhjder3arey7rll5'
val3 = 'spn1twckcceyw43da9j247pfs3yhqsv25j38grh68q'

cmd_devnull('spnd tx launch request-add-validator 1 {} {} {} aaa foo.com --validator-address {} --from alice -y'.format(gentx1, pub1, selfDelegationVal1, val1)),
cmd_devnull('spnd tx launch request-add-validator 1 {} {} {} aaa foo.com --validator-address {} --from alice -y'.format(gentx2, pub2, selfDelegationVal2, val2)),
cmd_devnull('spnd tx launch request-add-validator 1 {} {} {} aaa foo.com --validator-address {} --from alice -y'.format(gentx3, pub3, selfDelegationVal3, val3)),
cmd_devnull('networkd tx launch request-add-validator 1 {} {} {} aaa foo.com --validator-address {} --from alice -y'.format(gentx1, pub1, selfDelegationVal1, val1)),
cmd_devnull('networkd tx launch request-add-validator 1 {} {} {} aaa foo.com --validator-address {} --from alice -y'.format(gentx2, pub2, selfDelegationVal2, val2)),
cmd_devnull('networkd tx launch request-add-validator 1 {} {} {} aaa foo.com --validator-address {} --from alice -y'.format(gentx3, pub3, selfDelegationVal3, val3)),

# Uncomment for testing incomplete validator set
# cmd_devnull('spnd tx launch request-add-validator 1 ./node3/config/gentx/gentx.json "FyTmyvZhwRjwqhY6eWykTfiE+0mwe+U0aSo3ti8DCW8=" 16000000stake aaa foo.com --validator-address spn1ezptsm3npn54qx9vvpah4nymre59ykr9exx2ul --from alice -y')
# cmd_devnull('networkd tx launch request-add-validator 1 ./node3/config/gentx/gentx.json "FyTmyvZhwRjwqhY6eWykTfiE+0mwe+U0aSo3ti8DCW8=" 16000000stake aaa foo.com --validator-address spn1ezptsm3npn54qx9vvpah4nymre59ykr9exx2ul --from alice -y')

cmd_devnull('spnd tx launch trigger-launch 1 5 --from alice -y')
cmd_devnull('networkd tx launch trigger-launch 1 5 --from alice -y')


if __name__ == "__main__":
Expand Down
8 changes: 4 additions & 4 deletions localnet/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ p2p: 26654

### Starting the Localnet

Before running any scripts, `spnd` must be built for the current branch
Before running any scripts, `networkd` must be built for the current branch
```
ignite chain build
```
Expand Down Expand Up @@ -63,7 +63,7 @@ python3 start_spn.py

Show the validator set
```
spnd q tendermint-validator-set
networkd q tendermint-validator-set
block_height: "3"
total: "3"
validators:
Expand Down Expand Up @@ -94,7 +94,7 @@ python3 delegate.py 10000000 0 0

Validator 1 has now more voting power
```
spnd q tendermint-validator-set
networkd q tendermint-validator-set
block_height: "21"
total: "3"
validators:
Expand Down Expand Up @@ -125,7 +125,7 @@ python3 undelegate.py 10000000 0 0

Validator 1 voting power is decreased back
```
spnd q tendermint-validator-set
networkd q tendermint-validator-set
block_height: "67"
total: "3"
validators:
Expand Down
20 changes: 10 additions & 10 deletions localnet/run_auction.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,25 +30,25 @@ def set_auction_json(selling_denom, selling_amount, paying_denom, start_price, m

# Fundraising
set_auction_json('v/1/orbit', '50000', 'uspn', '100', '50', date_f(start), date_f(end))
cmd('spnd tx fundraising create-batch-auction {} --from alice -y'.format(auction_file))
cmd('networkd tx fundraising create-batch-auction {} --from alice -y'.format(auction_file))
os.remove(auction_file)
cmd_devnull('spnd tx participation participate 1 4 --from bob -y')
cmd_devnull('spnd tx participation participate 1 4 --from carol -y')
cmd_devnull('spnd tx participation participate 1 4 --from dave -y')
cmd_devnull('networkd tx participation participate 1 4 --from bob -y')
cmd_devnull('networkd tx participation participate 1 4 --from carol -y')
cmd_devnull('networkd tx participation participate 1 4 --from dave -y')

# Wait auction start
print("waiting for auction start...")
time.sleep(15)

# Place bid
cmd('spnd tx fundraising bid 1 batch-many 120 10000v/1/orbit --from bob -y')
cmd('spnd tx fundraising bid 1 batch-many 80 20000v/1/orbit --from carol -y')
cmd('spnd tx fundraising bid 1 batch-many 140 20000v/1/orbit --from dave -y')
cmd('networkd tx fundraising bid 1 batch-many 120 10000v/1/orbit --from bob -y')
cmd('networkd tx fundraising bid 1 batch-many 80 20000v/1/orbit --from carol -y')
cmd('networkd tx fundraising bid 1 batch-many 140 20000v/1/orbit --from dave -y')

# Wait withdrawal delay
print("waiting for withdrawal delay...")
time.sleep(5)

cmd_devnull('spnd tx participation withdraw-allocations 1 --from bob -y')
cmd_devnull('spnd tx participation withdraw-allocations 1 --from carol -y')
cmd_devnull('spnd tx participation withdraw-allocations 1 --from dave -y')
cmd_devnull('networkd tx participation withdraw-allocations 1 --from bob -y')
cmd_devnull('networkd tx participation withdraw-allocations 1 --from carol -y')
cmd_devnull('networkd tx participation withdraw-allocations 1 --from dave -y')
8 changes: 4 additions & 4 deletions localnet/run_incentivized.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
)
print('rewards initialized')

cmd('spnd q ibc client self-consensus-state --height {} > spncs.yaml'.format(revisionHeight))
cmd('networkd q ibc client self-consensus-state --height {} > spncs.yaml'.format(revisionHeight))

# Start the testnet
print('start network')
Expand All @@ -96,9 +96,9 @@

# Create verified IBC client on SPN
print('create verified client')
cmd('spnd q tendermint-validator-set 2 --node "tcp://localhost:26659" > vs.yaml')
cmd('spnd q ibc client self-consensus-state --height 2 --node "tcp://localhost:26659" > cs.yaml')
cmd('spnd tx monitoring-consumer create-client 1 cs.yaml vs.yaml --unbonding-period {} --revision-height 2 --from alice -y'.format(unbondingTime))
cmd('networkd q tendermint-validator-set 2 --node "tcp://localhost:26659" > vs.yaml')
cmd('networkd q ibc client self-consensus-state --height 2 --node "tcp://localhost:26659" > cs.yaml')
cmd('networkd tx monitoring-consumer create-client 1 cs.yaml vs.yaml --unbonding-period {} --revision-height 2 --from alice -y'.format(unbondingTime))

# Perform IBC connection
cmd('hermes -c ./hermes/config.toml create connection spn-1 --client-a 07-tendermint-0 --client-b 07-tendermint-0')
Expand Down
20 changes: 10 additions & 10 deletions localnet/run_sale.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,25 +29,25 @@ def set_sale_json(selling_denom, selling_amount, paying_denom, price, start_time

# Fundraising
set_sale_json('v/1/orbit', '50000', 'uspn', '100', date_f(start), date_f(end))
cmd_devnull('spnd tx fundraising create-fixed-price-auction {} --from alice -y'.format(sale_file))
cmd_devnull('networkd tx fundraising create-fixed-price-auction {} --from alice -y'.format(sale_file))
os.remove(sale_file)
cmd_devnull('spnd tx participation participate 1 4 --from bob -y')
cmd_devnull('spnd tx participation participate 1 4 --from carol -y')
cmd_devnull('spnd tx participation participate 1 4 --from dave -y')
cmd_devnull('networkd tx participation participate 1 4 --from bob -y')
cmd_devnull('networkd tx participation participate 1 4 --from carol -y')
cmd_devnull('networkd tx participation participate 1 4 --from dave -y')

# Wait auction start
print("waiting for auction start...")
time.sleep(15)

# Place bid
cmd('spnd tx fundraising bid 1 fixed-price 100 10000v/1/orbit --from bob -y')
cmd('spnd tx fundraising bid 1 fixed-price 100 20000v/1/orbit --from carol -y')
cmd('spnd tx fundraising bid 1 fixed-price 100 20000v/1/orbit --from dave -y')
cmd('networkd tx fundraising bid 1 fixed-price 100 10000v/1/orbit --from bob -y')
cmd('networkd tx fundraising bid 1 fixed-price 100 20000v/1/orbit --from carol -y')
cmd('networkd tx fundraising bid 1 fixed-price 100 20000v/1/orbit --from dave -y')

# Wait withdrawal delay
print("waiting for withdrawal delay...")
time.sleep(5)

cmd_devnull('spnd tx participation withdraw-allocations 1 --from bob -y')
cmd_devnull('spnd tx participation withdraw-allocations 1 --from carol -y')
cmd_devnull('spnd tx participation withdraw-allocations 1 --from dave -y')
cmd_devnull('networkd tx participation withdraw-allocations 1 --from bob -y')
cmd_devnull('networkd tx participation withdraw-allocations 1 --from carol -y')
cmd_devnull('networkd tx participation withdraw-allocations 1 --from dave -y')
8 changes: 4 additions & 4 deletions localnet/start_spn.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def start_spn():

# Create the gentxs
for i in range(3):
gentxCmd = 'spnd gentx {valName} {selfDelegation} --chain-id {chainID} --moniker="{valName}" --home ./spn/node{i} --output-document ./gentx.json'.format(
gentxCmd = 'networkd gentx {valName} {selfDelegation} --chain-id {chainID} --moniker="{valName}" --home ./spn/node{i} --output-document ./gentx.json'.format(
valName=conf['validator_names'][i],
selfDelegation=str(conf['validator_self_delegations'][i])+conf['staking_denom'],
chainID=conf['chain_id'],
Expand All @@ -60,9 +60,9 @@ def start_spn():
save_genesis(genesis)

print('Starting the network')
subprocess.Popen(["spnd", "start", "--home", "./spn/node2"], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
subprocess.Popen(["spnd", "start", "--home", "./spn/node3"], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
subprocess.run(["spnd start --home ./spn/node1"], shell=True, check=True)
subprocess.Popen(["networkd", "start", "--home", "./spn/node2"], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
subprocess.Popen(["networkd", "start", "--home", "./spn/node3"], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
subprocess.run(["networkd start --home ./spn/node1"], shell=True, check=True)

if __name__ == "__main__":
start_spn()
14 changes: 7 additions & 7 deletions localnet/start_testnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,15 +108,15 @@ def start_testnet(
genesis['app_state']['staking']['params']['unbonding_time'] = str(unbondingTime)+"s"

# Create the gentxs
cmd_devnull('spnd gentx joe {} --chain-id {} --moniker="joe" --home ./testnet/node1 --output-document ./gentx1.json'.format(selfDelegationVal1, chainID))
cmd_devnull('networkd gentx joe {} --chain-id {} --moniker="joe" --home ./testnet/node1 --output-document ./gentx1.json'.format(selfDelegationVal1, chainID))
gentx1File = open('./gentx1.json')
gentx1 = json.load(gentx1File)

cmd_devnull('spnd gentx steve {} --chain-id {} --moniker="steve" --home ./testnet/node2 --output-document ./gentx2.json'.format(selfDelegationVal2, chainID))
cmd_devnull('networkd gentx steve {} --chain-id {} --moniker="steve" --home ./testnet/node2 --output-document ./gentx2.json'.format(selfDelegationVal2, chainID))
gentx2File = open('./gentx2.json')
gentx2 = json.load(gentx2File)

cmd_devnull('spnd gentx olivia {} --chain-id {} --moniker="olivia" --home ./testnet/node3 --output-document ./gentx3.json'.format(selfDelegationVal3, chainID))
cmd_devnull('networkd gentx olivia {} --chain-id {} --moniker="olivia" --home ./testnet/node3 --output-document ./gentx3.json'.format(selfDelegationVal3, chainID))
gentx3File = open('./gentx3.json')
gentx3 = json.load(gentx3File)

Expand All @@ -133,12 +133,12 @@ def start_testnet(
save_genesis(genesis)

print('Starting the network')
subprocess.Popen(["spnd", "start", "--home", "./testnet/node2"], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
subprocess.Popen(["spnd", "start", "--home", "./testnet/node3"], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
subprocess.Popen(["networkd", "start", "--home", "./testnet/node2"], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
subprocess.Popen(["networkd", "start", "--home", "./testnet/node3"], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
if background:
subprocess.Popen(["spnd", "start", "--home", "./testnet/node1"], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
subprocess.Popen(["networkd", "start", "--home", "./testnet/node1"], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
else:
subprocess.run(["spnd start --home ./testnet/node1"], shell=True, check=True)
subprocess.run(["networkd start --home ./testnet/node1"], shell=True, check=True)


if __name__ == "__main__":
Expand Down
6 changes: 3 additions & 3 deletions localnet/undelegate.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
conf = yaml.safe_load(confFile)

def undelegate_cmd(valNumber, amount):
cmd = ["spnd", "tx", "staking", "unbond"]
cmd = ["networkd", "tx", "staking", "unbond"]
cmd.append(conf['validator_addresses'][valNumber])

stake = amount + conf['staking_denom']
Expand Down Expand Up @@ -48,7 +48,7 @@ def undelegate(amounts):

print()
print('unbonding performed, to show validator set:')
print('spnd q tendermint-validator-set')
print('networkd q tendermint-validator-set')
print()
print('to show consensus state')
print('spnd q ibc client self-consensus-state')
print('networkd q ibc client self-consensus-state')
12 changes: 6 additions & 6 deletions localnet/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ def date_f(d):
return d.isoformat("T") + "Z"

def initialize_project():
cmd_devnull('spnd tx staking delegate {} 100000uspn --from bob -y'.format(val_address))
cmd_devnull('spnd tx staking delegate {} 100000uspn --from carol -y'.format(val_address))
cmd_devnull('spnd tx staking delegate {} 100000uspn --from dave -y'.format(val_address))
cmd_devnull('spnd tx profile create-coordinator --from alice -y')
cmd_devnull('spnd tx project create-project orbit 1000000orbit --from alice -y')
cmd_devnull('spnd tx project mint-vouchers 1 100000orbit --from alice -y')
cmd_devnull('networkd tx staking delegate {} 100000uspn --from bob -y'.format(val_address))
cmd_devnull('networkd tx staking delegate {} 100000uspn --from carol -y'.format(val_address))
cmd_devnull('networkd tx staking delegate {} 100000uspn --from dave -y'.format(val_address))
cmd_devnull('networkd tx profile create-coordinator --from alice -y')
cmd_devnull('networkd tx project create-project orbit 1000000orbit --from alice -y')
cmd_devnull('networkd tx project mint-vouchers 1 100000orbit --from alice -y')
2 changes: 1 addition & 1 deletion pkg/types/consensus_state.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Package types defines types to handle IBC handshakes in SPN modules
// Package types defines types to handle IBC handshakes in Network modules
package types

import (
Expand Down
4 changes: 2 additions & 2 deletions pkg/types/consensus_state_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ root:
hash: 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=
timestamp: "2022-01-12T07:56:35.394367Z"
`
f, err := os.CreateTemp("", "spn_consensus_state_test")
f, err := os.CreateTemp("", "network_consensus_state_test")
require.NoError(t, err)
t.Cleanup(func() {
f.Close()
Expand All @@ -109,7 +109,7 @@ timestamp: "2022-01-12T07:56:35.394367Z"

t.Run("invalid file", func(t *testing.T) {
consensusStateYAML := `foo`
f, err := os.CreateTemp("", "spn_consensus_state_test")
f, err := os.CreateTemp("", "network_consensus_state_test")
require.NoError(t, err)
t.Cleanup(func() {
f.Close()
Expand Down
2 changes: 1 addition & 1 deletion pkg/types/signature_counts.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func (m SignatureCounts) Validate() error {
return nil
}

// GetOperatorAddress returns the operator address for the signer with the SPN prefix format
// GetOperatorAddress returns the operator address for the signer with the Network prefix format
func (m SignatureCount) GetOperatorAddress(accountPrefix string) (string, error) {
_, decoded, err := bech32.DecodeAndConvert(m.OpAddress)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion pkg/types/validator_set.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Package types defines types to handle IBC handshakes in SPN modules
// Package types defines types to handle IBC handshakes in Network modules
package types

import (
Expand Down
2 changes: 1 addition & 1 deletion pkg/types/validator_set_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (

func TestParseValidatorSetFromFile(t *testing.T) {
fileFromContent := func(content string) string {
f, err := os.CreateTemp("", "spn_validator_set_test")
f, err := os.CreateTemp("", "network_validator_set_test")
require.NoError(t, err)
t.Cleanup(func() {
os.Remove(f.Name())
Expand Down
4 changes: 0 additions & 4 deletions x/launch/keeper/query_genesis_account_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package keeper_test

import (
"context"
"strconv"
"testing"

"cosmossdk.io/collections"
Expand All @@ -18,9 +17,6 @@ import (
"github.com/ignite/network/x/launch/types"
)

// Prevent strconv unused error
var _ = strconv.IntSize

func createNGenesisAccount(keeper keeper.Keeper, ctx context.Context, n int) []types.GenesisAccount {
items := make([]types.GenesisAccount, n)
for i := range items {
Expand Down
4 changes: 0 additions & 4 deletions x/launch/keeper/query_genesis_validator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package keeper_test

import (
"context"
"strconv"
"testing"

"cosmossdk.io/collections"
Expand All @@ -18,9 +17,6 @@ import (
"github.com/ignite/network/x/launch/types"
)

// Prevent strconv unused error
var _ = strconv.IntSize

func createNGenesisValidator(keeper keeper.Keeper, ctx context.Context, n int) []types.GenesisValidator {
items := make([]types.GenesisValidator, n)
for i := range items {
Expand Down
Loading

0 comments on commit a06c2e4

Please sign in to comment.