beta

command module
v0.0.0-...-c573acc Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

README

Beta CLI for Fabric

This CLI is used in sample-scenario.

Command List

ConfigCommand
  • config ... Manage configuration file
    • init ... Initialize account config, msp.Id
CrossCommand
  • cross ... Cross Framework related commands
    • create-contract-tx ... Create a new contract transaction
    • tx-auth-state ... Query the state of a client in a given path
    • ibc-signtx ... Sign the cross-chain transaction on other chain via the chain
    • coordinator-state ... Query the state of a coordinator in a given path
IBCCommand
  • ibc
    • channel ... Query the ChannelState of IBC
ERC20Command

This command corresponds to QueryClient in ./contracts/erc20/modules/erc20mgr/types/query.pb.go and req.Method in HandleContractCall()

  • erc20 ... ERC20 commands
    • mint ... Mint token
    • approve ... Approve token
    • allowance ... Get allowance
    • balance-of ... Get balance
    • total-supply ... Get totalSupply
    • transfer ... Transfer token from owner account to recipient
FabricCommand
  • fabric
    • id ... Get id in contract module

Development

Not all of them need to be developed from scratch. Project-specific commands are FabricCommand and ERC20Command. But CrossCommand needs to be tweaked as a specification.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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