Skip to content

Commit

Permalink
chore(release): publish
Browse files Browse the repository at this point in the history
 - @thepowereco/[email protected]
  • Loading branch information
Power DCloud committed Jun 19, 2024
1 parent 8569859 commit 5ba4f54
Show file tree
Hide file tree
Showing 3 changed files with 251 additions and 2 deletions.
8 changes: 8 additions & 0 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [1.11.127](https://github.com/thepower/PowerTools/compare/@thepowereco/[email protected]...@thepowereco/[email protected]) (2024-06-19)

**Note:** Version bump only for package @thepowereco/cli





## [1.11.126](https://github.com/thepower/PowerTools/compare/@thepowereco/[email protected]...@thepowereco/[email protected]) (2024-06-19)

**Note:** Version bump only for package @thepowereco/cli
Expand Down
243 changes: 242 additions & 1 deletion packages/cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ $ npm install -g @thepowereco/cli
$ tpe COMMAND
running command...
$ tpe (--version)
@thepowereco/cli/1.11.126 linux-x64 node-v18.20.3
@thepowereco/cli/1.11.127 linux-x64 node-v18.20.3
$ tpe --help [COMMAND]
USAGE
$ tpe COMMAND
Expand All @@ -31,7 +31,13 @@ USAGE
# Commands

<!-- commands -->
* [`tpe acc get-balance`](#tpe-acc-get-balance)
* [`tpe acc register`](#tpe-acc-register)
* [`tpe acc send-sk`](#tpe-acc-send-sk)
* [`tpe autocomplete [SHELL]`](#tpe-autocomplete-shell)
* [`tpe contract deploy`](#tpe-contract-deploy)
* [`tpe contract get`](#tpe-contract-get)
* [`tpe contract set`](#tpe-contract-set)
* [`tpe help [COMMAND]`](#tpe-help-command)
* [`tpe plugins`](#tpe-plugins)
* [`tpe plugins add PLUGIN`](#tpe-plugins-add-plugin)
Expand All @@ -43,8 +49,109 @@ USAGE
* [`tpe plugins uninstall [PLUGIN]`](#tpe-plugins-uninstall-plugin)
* [`tpe plugins unlink [PLUGIN]`](#tpe-plugins-unlink-plugin)
* [`tpe plugins update`](#tpe-plugins-update)
* [`tpe storage tasklist [CONFIGPATH]`](#tpe-storage-tasklist-configpath)
* [`tpe storage upload [CONFIGPATH]`](#tpe-storage-upload-configpath)
* [`tpe update [CHANNEL]`](#tpe-update-channel)

## `tpe acc get-balance`

Get the balance of a wallet address

```
USAGE
$ tpe acc get-balance [-a <value> | -k <value>] [-c <value>] [-d <value>] [-p <value>]
FLAGS
-a, --address=<value> Wallet address
-c, --chain=<value> Chain ID
-d, --defaultChain=<value> [default: 1025] Default chain ID
-k, --keyFilePath=<value> Path to the key file
-p, --password=<value> Password for the key file
DESCRIPTION
Get the balance of a wallet address
EXAMPLES
$ tpe acc get-balance --address AA100000001677748249 --chain 1
$ tpe acc get-balance -a AA100000001677748249 -c 1
$ tpe acc get-balance --address AA100000001677748249 --defaultChain 1025
$ tpe acc get-balance --keyFilePath ./path/to/keyfile.pem --password mypassword
```

_See code: [dist/commands/acc/get-balance.js](https://github.com/thepower/PowerTools/blob/v1.11.127/dist/commands/acc/get-balance.js)_

## `tpe acc register`

Register a new account on the specified blockchain or network

```
USAGE
$ tpe acc register [-c <value> | -n devnet|testnet|appchain] [-f <value> | -x] [-h <value>] [-p <value>] [-r
<value>] [-s <value>]
FLAGS
-c, --chain=<value> Specify the chain
-f, --filePath=<value> Path to save the exported file
-h, --hint=<value> Hint for the account password
-n, --network=<option> Specify the network
<options: devnet|testnet|appchain>
-p, --password=<value> Password for the account
-r, --referrer=<value> Referrer for the account
-s, --seed=<value> Seed for the account
-x, --noSave Do not save the exported file
DESCRIPTION
Register a new account on the specified blockchain or network
EXAMPLES
$ tpe acc register --chain 1 --password mypassword --filePath /path/to/save
Register a new account on a specified chain with a password and save the data to a specified file path.
$ tpe acc register --network devnet --referrer myreferrer
Register a new account on the devnet network with a specified referrer.
$ tpe acc register
Interactively register a new account by selecting the network and chain.
$ tpe acc register --chain 1 --no-save
Register a new account on a specified chain without saving the data to a file.
```

_See code: [dist/commands/acc/register.js](https://github.com/thepower/PowerTools/blob/v1.11.127/dist/commands/acc/register.js)_

## `tpe acc send-sk`

Send SK tokens to a specified address

```
USAGE
$ tpe acc send-sk -a <value> -k <value> -t <value> [-c <value>] [-d <value>] [-m <value>] [-p <value>]
FLAGS
-a, --amount=<value> (required) Amount to send
-c, --chain=<value> Chain ID
-d, --defaultChain=<value> [default: 1025] Default chain ID
-k, --keyFilePath=<value> (required) Path to the key file
-m, --message=<value> Message to include
-p, --password=<value> Password for the key file
-t, --to=<value> (required) Recipient address
DESCRIPTION
Send SK tokens to a specified address
EXAMPLES
$ tpe acc send-sk --amount 100 --to AA100000001677748249 --keyFilePath ./path/to/keyfile.pem --password mypassword
$ tpe acc send-sk -a 100 -t AA100000001677748249 -k ./path/to/keyfile.pem -p mypassword
$ tpe acc send-sk --amount 100 --to AA100000001677748249 --chain 1 --keyFilePath ./path/to/keyfile.pem
```

_See code: [dist/commands/acc/send-sk.js](https://github.com/thepower/PowerTools/blob/v1.11.127/dist/commands/acc/send-sk.js)_

## `tpe autocomplete [SHELL]`

Display autocomplete installation instructions.
Expand Down Expand Up @@ -76,6 +183,98 @@ EXAMPLES

_See code: [@oclif/plugin-autocomplete](https://github.com/oclif/plugin-autocomplete/blob/v3.1.4/src/commands/autocomplete/index.ts)_

## `tpe contract deploy`

Deploy a smart contract to the blockchain

```
USAGE
$ tpe contract deploy -a <value> -b <value> -c <value> -k <value> [-t <value>] [-v <value>] [-i <value>...] [-p
<value>]
FLAGS
-a, --abiPath=<value> (required) Path to the ABI file
-b, --binPath=<value> (required) Path to the binary file
-c, --chain=<value> (required) Chain ID to deploy on
-i, --initParams=<value>... [default: ] Initialization parameters
-k, --keyFilePath=<value> (required) Path to the key file
-p, --password=<value> Password for the key file
-t, --gasToken=<value> [default: SK] Token used to pay for gas
-v, --gasValue=<value> [default: 2000000000] Gas value for deployment
DESCRIPTION
Deploy a smart contract to the blockchain
EXAMPLES
$ tpe contract deploy --abiPath ./path/to/abi.json --binPath ./path/to/bin --chain 1 --keyFilePath ./path/to/keyfile.pem --password mypassword
$ tpe contract deploy -a ./path/to/abi.json -b ./path/to/bin -c 1 -k ./path/to/keyfile.pem -p mypassword --gasToken SK --gasValue 2000000000
$ tpe contract deploy --abiPath ./path/to/abi.json --binPath ./path/to/bin --chain 1 --keyFilePath ./path/to/keyfile.pem --initParams param1 param2
```

_See code: [dist/commands/contract/deploy.js](https://github.com/thepower/PowerTools/blob/v1.11.127/dist/commands/contract/deploy.js)_

## `tpe contract get`

Call a method on a deployed smart contract

```
USAGE
$ tpe contract get -a <value> -d <value> -c <value> -m <value> [-p <value>...]
FLAGS
-a, --abiPath=<value> (required) Path to the ABI file
-c, --chain=<value> (required) Chain ID
-d, --address=<value> (required) Smart contract address
-m, --method=<value> (required) Method name to call
-p, --params=<value>... [default: ] Parameters for the method
DESCRIPTION
Call a method on a deployed smart contract
EXAMPLES
$ tpe contract get --abiPath ./path/to/abi.json --address AA100000001677748249 --chain 1 --method getBalance --params 0x456...
$ tpe contract get -a ./path/to/abi.json -d AA100000001677748249 -c 1 -m getBalance -p 0x456...
$ tpe contract get --abiPath ./path/to/abi.json --address AA100000001677748249 --chain 1 --method getInfo
```

_See code: [dist/commands/contract/get.js](https://github.com/thepower/PowerTools/blob/v1.11.127/dist/commands/contract/get.js)_

## `tpe contract set`

Execute a method on a specified smart contract

```
USAGE
$ tpe contract set -a <value> -d <value> -c <value> -k <value> -m <value> [-r <value>...] [-p <value>]
FLAGS
-a, --abiPath=<value> (required) Path to the ABI file
-c, --chain=<value> (required) Chain ID
-d, --address=<value> (required) Smart contract address
-k, --keyFilePath=<value> (required) Path to the key file
-m, --method=<value> (required) Method name to call
-p, --password=<value> Password for the key file
-r, --params=<value>... [default: ] Parameters for the method
DESCRIPTION
Execute a method on a specified smart contract
EXAMPLES
$ tpe contract set --abiPath ./path/to/abi.json
--address AA100000001677748249 --chain 1 --keyFilePath ./path/to/keyfile.pem --method set --params value1 value2 --password mypassword
$ tpe contract set -a ./path/to/abi.json -d AA100000001677748249 -c 1 -k ./path/to/keyfile.pem -m set -r value1 value2 -p mypassword
$ tpe contract set --abiPath ./path/to/abi.json
--address AA100000001677748249 --chain 1 --keyFilePath ./path/to/keyfile.pem --method setData --params param1 param2
```

_See code: [dist/commands/contract/set.js](https://github.com/thepower/PowerTools/blob/v1.11.127/dist/commands/contract/set.js)_

## `tpe help [COMMAND]`

Display help for tpe.
Expand Down Expand Up @@ -385,6 +584,48 @@ DESCRIPTION

_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.3.2/src/commands/plugins/update.ts)_

## `tpe storage tasklist [CONFIGPATH]`

Shows the list of all tasks for the current account

```
USAGE
$ tpe storage tasklist [CONFIGPATH]
ARGUMENTS
CONFIGPATH Config to read
DESCRIPTION
Shows the list of all tasks for the current account
EXAMPLES
$ tpe storage tasklist
$ tpe storage tasklist ./config.json
```

_See code: [dist/commands/storage/tasklist.js](https://github.com/thepower/PowerTools/blob/v1.11.127/dist/commands/storage/tasklist.js)_

## `tpe storage upload [CONFIGPATH]`

Upload application files to the storage

```
USAGE
$ tpe storage upload [CONFIGPATH]
ARGUMENTS
CONFIGPATH Config to read
DESCRIPTION
Upload application files to the storage
EXAMPLES
$ tpe storage upload ./config.json
```

_See code: [dist/commands/storage/upload.js](https://github.com/thepower/PowerTools/blob/v1.11.127/dist/commands/storage/upload.js)_

## `tpe update [CHANNEL]`

update the tpe CLI
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@thepowereco/cli",
"version": "1.11.126",
"version": "1.11.127",
"description": "the power cli",
"author": "thepower",
"main": "dist/index.js",
Expand Down

0 comments on commit 5ba4f54

Please sign in to comment.