qV2Cli

command module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2024 License: MIT Imports: 9 Imported by: 0

README

qV2Cli

qV2Cli is a CLI application used to interact with the V2 permission contracts for the GoQuorum permission network. It utilizes the GoQuorum fork of geth, the communication is unsecure so please use in development only.

Features

  • Interact with V2 permission contracts on GoQuorum permissioned networks.
  • Boot up a V2 permission network.
  • Perform transactions using an address and secret key.
  • Perform transactions using Ethereum keystore with or without a password.
  • Vendor folder contains all dependencies.

Prerequisites

  • go installed on your machine.
  • Replace the permission-config.json file present in the root folder for communicating with the network with the generated file from your network (see example permission-config.json).
  • Add a new line for 'rpc' with the rpc for the network

Installation

To install qV2Cli, you can clone the repository and build the binary yourself:

git clone https://github.com/ijsingh82/qV2Cli.git
cd qV2Cli
go build -o qV2Cli

OR

git clone https://github.com/ijsingh82/qV2Cli.git
cd qV2Cli
make build

Usage

  1. Ensure that permission-config.json is present in the root folder and properly configured to communicate with your V2 permission network. Add a new line for 'rpc' with the rpc for the network see example file.

  2. Get info from the V2 contracts with commands and arugments for non trasaction calls all require arguments.

qV2Cli acct balKey [keystorePath] [password]
qV2Cli acct count

The above commands allow you to get information from the chain -h for all commands and subcommands.

  1. Transactional functions use flags with a secrect key and address or a keystore. To get all needed flags use -h.

    Keystore:

qV2Cli addAdminKey -newAdmin="TEST" -keyfile="Path/to/kestore/file" -passowrd=""
or
qV2Cli addAdminKey -a="TEST" -k="Path/to/kestore/file" -p=""
or
qV2Cli addAdmin -a="TEST" -k="secretKey" -g="guradianAddress"
or
qV2Cli addAdmin -newAdmin="TEST" -guardKey="secretKey" -guardAdd="guradianAddress"

The commands above use an Ethereum keystore for performing transactions. Optionally, you can provide a password if the keystore is encrypted.

License

This project is licensed under the MIT License.

Documentation

Overview

Copyright © 2024 Inderjit Singh

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Directories

Path Synopsis
cmd
org
upg
pkg
org
upg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL