Skip to content

Commit

Permalink
chore(release): publish
Browse files Browse the repository at this point in the history
 - @thepowereco/[email protected]
 - @thepowereco/[email protected]
  • Loading branch information
Power DCloud committed Aug 16, 2024
1 parent 7908775 commit 5d28d3b
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 249 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.137](https://github.com/thepower/PowerTools/compare/@thepowereco/[email protected]...@thepowereco/[email protected]) (2024-08-16)

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





## [1.11.136](https://github.com/thepower/PowerTools/compare/@thepowereco/[email protected]...@thepowereco/[email protected]) (2024-08-15)


Expand Down
247 changes: 1 addition & 246 deletions 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.136 linux-x64 node-v18.20.4
@thepowereco/cli/1.11.137 linux-x64 node-v18.20.4
$ tpe --help [COMMAND]
USAGE
$ tpe COMMAND
Expand All @@ -31,13 +31,7 @@ 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 @@ -49,113 +43,8 @@ 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`](#tpe-storage-tasklist)
* [`tpe storage upload`](#tpe-storage-upload)
* [`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.136/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.136/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>] [-e
<value>] [-g <value>] [-v <value>]
FLAGS
-a, --amount=<value> (required) Amount to send
-c, --chain=<value> Chain ID
-d, --defaultChain=<value> [default: 1025] Default chain ID
-e, --token=<value> [default: SK] Token to send
-g, --gasToken=<value> Token used to pay for gas
-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
-v, --gasValue=<value> Gas value for deployment
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.136/dist/commands/acc/send-sk.js)_

## `tpe autocomplete [SHELL]`

Display autocomplete installation instructions.
Expand Down Expand Up @@ -187,98 +76,6 @@ 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> -k <value> [-c <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> 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.136/dist/commands/contract/deploy.js)_

## `tpe contract get`

Call a method on a deployed smart contract

```
USAGE
$ tpe contract get -a <value> -d <value> -m <value> [-c <value>] [-p <value>...]
FLAGS
-a, --abiPath=<value> (required) Path to the ABI file
-c, --chain=<value> 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.136/dist/commands/contract/get.js)_

## `tpe contract set`

Execute a method on a specified smart contract

```
USAGE
$ tpe contract set -a <value> -d <value> -k <value> -m <value> [-c <value>] [-r <value>...] [-p <value>]
FLAGS
-a, --abiPath=<value> (required) Path to the ABI file
-c, --chain=<value> 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.136/dist/commands/contract/set.js)_

## `tpe help [COMMAND]`

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

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

## `tpe storage tasklist`

Shows the list of all tasks for the current account

```
USAGE
$ tpe storage tasklist [-c <value>]
FLAGS
-c, --configPath=<value> [default: ./tp-cli.json] Config to read
DESCRIPTION
Shows the list of all tasks for the current account
EXAMPLES
$ tpe storage tasklist
$ tpe storage tasklist ./tp-cli.json
```

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

## `tpe storage upload`

Upload application files to the storage

```
USAGE
$ tpe storage upload [-c <value>]
FLAGS
-c, --configPath=<value> [default: ./tp-cli.json] Config to read
DESCRIPTION
Upload application files to the storage
EXAMPLES
$ tpe storage upload ./tp-cli.json
```

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

## `tpe update [CHANNEL]`

update the tpe CLI
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@thepowereco/cli",
"version": "1.11.136",
"version": "1.11.137",
"description": "the power cli",
"author": "thepower",
"main": "dist/index.js",
Expand Down Expand Up @@ -39,7 +39,7 @@
"@oclif/plugin-not-found": "^3.2.5",
"@oclif/plugin-plugins": "^5",
"@oclif/plugin-update": "^4.4.2",
"@thepowereco/tssdk": "^2.1.7",
"@thepowereco/tssdk": "^2.1.8",
"axios": "^1.7.2",
"cli-table3": "^0.6.5",
"enquirer": "^2.4.1",
Expand Down
8 changes: 8 additions & 0 deletions packages/tssdk/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.

## [2.1.8](https://github.com/thepower/power_hub/compare/@thepowereco/[email protected]...@thepowereco/[email protected]) (2024-08-16)

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





## [2.1.7](https://github.com/thepower/power_hub/compare/@thepowereco/[email protected]...@thepowereco/[email protected]) (2024-08-15)


Expand Down
2 changes: 1 addition & 1 deletion packages/tssdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@thepowereco/tssdk",
"version": "2.1.7",
"version": "2.1.8",
"main": "dist/index.js",
"description": "thepower tssdk",
"author": "thepower",
Expand Down

0 comments on commit 5d28d3b

Please sign in to comment.