0.0.3 • Published 4 years ago

cozval v0.0.3

Weekly downloads
45
License
MIT
Repository
github
Last release
4 years ago

cozval

cosmos validator utils

oclif Version Downloads/week License

Usage

$ npm install -g cozval
$ cozval COMMAND
running command...
$ cozval (-v|--version|version)
cozval/0.0.3 linux-x64 node-v12.20.2
$ cozval --help [COMMAND]
USAGE
  $ cozval COMMAND
...

Commands

cozval addresses

Create map of all addresses

USAGE
  $ cozval addresses

OPTIONS
  -g, --genesisURL=genesisURL  genesisURL
  -t, --test                   test only

DESCRIPTION
  ...
  getValidatorMaps() returns two maps of validator objects.
  valMapHEX:
  'A923C6451148696AFA205B733DCE9861CA454293' => {          
     moniker: 'begreen-ny',                                                    
     peer_node: '8025c3ec311463045d86c68f1875396a37587b51@valregen.ny.begreen.nu:26656',
     peer_id: '8025c3ec311463045d86c68f1875396a37587b51', 
     peer_add: 'valregen.ny.begreen.nu:26656',                       
     valoper: 'regen:valoper1xq3aq5ctyj3knu32usn66df9a67n0sf7ts5qdn',
     regen: 'regen:1xq3aq5ctyj3knu32usn66df9a67n0sf78uwl9k',
     secp256k1: {                                          
       '@type': '/cosmos.crypto.secp256k1.PubKey',        
       key: 'A3Zz4JM1OjBDM5Kn9J86u5NS1rxR6A+TQ+Zg52uGzU7Z'  
     },        
     ed25519: {                                                      
       '@type': '/cosmos.crypto.ed25519.PubKey',           
       key: 'iARPJIXVwen//D6qB5CoQT1KrTK7ffGOkIstFF3KIgk=',                                           
       type: 'tendermint/PubKeyEd25519',                    
       value: 'iARPJIXVwen//D6qB5CoQT1KrTK7ffGOkIstFF3KIgk='
     },                                                              
     valcons: 'regen:valcons14y3uv3g3fp5k473qtdenmn5cv89y2s5nz7cshu',         
     hex: 'A923C6451148696AFA205B733DCE9861CA454293',                                                                    
                                                
     valconspub: 'regen:valconspub1zcjduepq3qzy7fy96hq7nllu864q0y9ggy754tfjhd7lrr5s3vk3ghw2ygyspmhej4'
  }, 

  and valMapPK (same contents mapped on ed25519.value)

See code: src/commands/addresses.js

cozval blockstats [ENDAT] [STARTAT]

Output

USAGE
  $ cozval blockstats [ENDAT] [STARTAT]

OPTIONS
  -n, --node=node  node to query

DESCRIPTION
  ...
  Extra documentation goes here

See code: src/commands/blockstats.js

cozval help [COMMAND]

display help for cozval

USAGE
  $ cozval help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help