Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@proton/cli

Package Overview
Dependencies
Maintainers
3
Versions
90
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@proton/cli - npm Package Compare versions

Comparing version 0.1.13 to 0.1.14

lib/apis/createAccount.d.ts

2

lib/commands/boilerplate.js

@@ -10,3 +10,2 @@ "use strict";

const rimraf = tslib_1.__importStar(require("rimraf"));
const debug_1 = require("../debug");
const core_1 = require("@oclif/core");

@@ -34,3 +33,2 @@ const BOILERPLATE_URL = 'https://github.com/ProtonProtocol/proton-boilerplate.git';

async catch(e) {
debug_1.error(e);
core_1.CliUx.ux.styledJSON(e);

@@ -37,0 +35,0 @@ }

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const command_1 = require("@oclif/command");
const debug_1 = require("../../debug");
const constants_1 = require("../../constants");

@@ -13,3 +12,2 @@ const core_1 = require("@oclif/core");

async catch(e) {
debug_1.error(e);
core_1.CliUx.ux.styledJSON(e);

@@ -16,0 +14,0 @@ }

@@ -6,3 +6,2 @@ "use strict";

const core_1 = require("@oclif/core");
const debug_1 = require("../../debug");
const networks_1 = require("../../storage/networks");

@@ -20,3 +19,3 @@ const inquirer = tslib_1.__importStar(require("inquirer"));

type: 'list',
choices: constants_1.networks.map(_ => ({ name: _.chain })),
choices: constants_1.networks.map(_ => _.chain),
}]);

@@ -28,3 +27,2 @@ chain = responses.chain;

async catch(e) {
debug_1.error(e);
core_1.CliUx.ux.error(e);

@@ -31,0 +29,0 @@ }

@@ -7,3 +7,2 @@ "use strict";

const colors_1 = require("colors");
const debug_1 = require("../../debug");
const passwordManager_1 = tslib_1.__importDefault(require("../../storage/passwordManager"));

@@ -20,3 +19,2 @@ class AddKey extends command_1.Command {

async catch(e) {
debug_1.error(e);
core_1.CliUx.ux.error(colors_1.red(e.message));

@@ -23,0 +21,0 @@ }

import { Command } from '@oclif/command';
export default class GenerateKey extends Command {
static description: string;
run(): Promise<void>;
run(): Promise<string>;
catch(e: Error): Promise<void>;
}

@@ -19,2 +19,3 @@ "use strict";

});
return privateKey;
}

@@ -21,0 +22,0 @@ async catch(e) {

@@ -8,3 +8,2 @@ "use strict";

const colors_1 = require("colors");
const debug_1 = require("../../debug");
const passwordManager_1 = tslib_1.__importDefault(require("../../storage/passwordManager"));

@@ -29,3 +28,2 @@ class RemoveKey extends command_1.Command {

async catch(e) {
debug_1.error(e);
core_1.CliUx.ux.error(colors_1.red(e.message));

@@ -32,0 +30,0 @@ }

@@ -5,3 +5,2 @@ "use strict";

const core_1 = require("@oclif/core");
const debug_1 = require("../debug");
const packageJson = require('../../package.json');

@@ -13,3 +12,2 @@ class Version extends command_1.Command {

async catch(e) {
debug_1.error(e);
core_1.CliUx.ux.styledJSON(e);

@@ -16,0 +14,0 @@ }

@@ -1,1 +0,1 @@

{"version":"0.1.13","commands":{"boilerplate":{"id":"boilerplate","description":"Boilerplate a new Proton Project with contract, frontend and tests","strict":true,"pluginName":"@proton/cli","pluginAlias":"@proton/cli","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false}},"args":[{"name":"folder"}]},"version":{"id":"version","description":"Version of CLI","strict":true,"pluginName":"@proton/cli","pluginAlias":"@proton/cli","pluginType":"core","aliases":[],"flags":{},"args":[]},"account":{"id":"account","description":"Get Account Information","strict":true,"pluginName":"@proton/cli","pluginAlias":"@proton/cli","pluginType":"core","aliases":[],"flags":{"raw":{"name":"raw","type":"boolean","char":"r","allowNo":false}},"args":[{"name":"accountName","required":true}]},"chain":{"id":"chain","description":"Get Current Chain","strict":true,"pluginName":"@proton/cli","pluginAlias":"@proton/cli","pluginType":"core","aliases":["network"],"flags":{},"args":[]},"chain:info":{"id":"chain:info","description":"Get Chain Info","strict":true,"pluginName":"@proton/cli","pluginAlias":"@proton/cli","pluginType":"core","aliases":[],"flags":{},"args":[]},"chain:list":{"id":"chain:list","description":"All Networks","strict":true,"pluginName":"@proton/cli","pluginAlias":"@proton/cli","pluginType":"core","aliases":[],"flags":{},"args":[]},"chain:set":{"id":"chain:set","description":"Set Chain","strict":true,"pluginName":"@proton/cli","pluginAlias":"@proton/cli","pluginType":"core","aliases":[],"flags":{"chain":{"name":"chain","type":"option","multiple":false,"options":["proton","proton-test"]}},"args":[]},"contract:contract":{"id":"contract:contract","description":"Set Contract","strict":true,"pluginName":"@proton/cli","pluginAlias":"@proton/cli","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"account","required":true},{"name":"directory","required":true}]},"keys:add":{"id":"keys:add","description":"Add Key","strict":true,"pluginName":"@proton/cli","pluginAlias":"@proton/cli","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"privateKey","required":false}]},"keys:generate":{"id":"keys:generate","description":"Generate Key","strict":true,"pluginName":"@proton/cli","pluginAlias":"@proton/cli","pluginType":"core","aliases":[],"flags":{},"args":[]},"keys:list":{"id":"keys:list","description":"List All Key","strict":true,"pluginName":"@proton/cli","pluginAlias":"@proton/cli","pluginType":"core","aliases":[],"flags":{},"args":[]},"keys:lock":{"id":"keys:lock","description":"Lock Keys with password","strict":true,"pluginName":"@proton/cli","pluginAlias":"@proton/cli","pluginType":"core","aliases":[],"flags":{},"args":[]},"keys:remove":{"id":"keys:remove","description":"Remove Key","strict":true,"pluginName":"@proton/cli","pluginAlias":"@proton/cli","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"privateKey","required":false}]},"keys:reset":{"id":"keys:reset","description":"Reset password (Caution: deletes all private keys stored)","strict":true,"pluginName":"@proton/cli","pluginAlias":"@proton/cli","pluginType":"core","aliases":[],"flags":{},"args":[]},"keys:unlock":{"id":"keys:unlock","description":"Unlock all keys (Caution: Your keys will be stored in plaintext on disk)","strict":true,"pluginName":"@proton/cli","pluginAlias":"@proton/cli","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"password","required":false}]},"multisig:contract":{"id":"multisig:contract","description":"Multisig Contract","strict":true,"pluginName":"@proton/cli","pluginAlias":"@proton/cli","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"directory","required":true}]},"system:newaccount":{"id":"system:newaccount","description":"System NewAccount","strict":true,"pluginName":"@proton/cli","pluginAlias":"@proton/cli","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"net":{"name":"net","type":"option","char":"n","multiple":false,"default":"10.0000 SYS"},"cpu":{"name":"cpu","type":"option","char":"c","multiple":false,"default":"10.0000 SYS"},"ram":{"name":"ram","type":"option","char":"r","multiple":false,"default":12288},"transfer":{"name":"transfer","type":"boolean","char":"t","allowNo":false},"code":{"name":"code","type":"boolean","allowNo":false}},"args":[{"name":"account","required":true},{"name":"owner","required":true},{"name":"active","required":true}]}}}
{"version":"0.1.14","commands":{"boilerplate":{"id":"boilerplate","description":"Boilerplate a new Proton Project with contract, frontend and tests","strict":true,"pluginName":"@proton/cli","pluginAlias":"@proton/cli","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false}},"args":[{"name":"folder"}]},"version":{"id":"version","description":"Version of CLI","strict":true,"pluginName":"@proton/cli","pluginAlias":"@proton/cli","pluginType":"core","aliases":[],"flags":{},"args":[]},"account:create":{"id":"account:create","description":"Create New Account","strict":true,"pluginName":"@proton/cli","pluginAlias":"@proton/cli","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"accountName","required":true}]},"account":{"id":"account","description":"Get Account Information","strict":true,"pluginName":"@proton/cli","pluginAlias":"@proton/cli","pluginType":"core","aliases":[],"flags":{"raw":{"name":"raw","type":"boolean","char":"r","allowNo":false}},"args":[{"name":"accountName","required":true}]},"chain:get":{"id":"chain:get","description":"Get Current Chain","strict":true,"pluginName":"@proton/cli","pluginAlias":"@proton/cli","pluginType":"core","aliases":["network"],"flags":{},"args":[]},"chain:info":{"id":"chain:info","description":"Get Chain Info","strict":true,"pluginName":"@proton/cli","pluginAlias":"@proton/cli","pluginType":"core","aliases":[],"flags":{},"args":[]},"chain:list":{"id":"chain:list","description":"All Networks","strict":true,"pluginName":"@proton/cli","pluginAlias":"@proton/cli","pluginType":"core","aliases":[],"flags":{},"args":[]},"chain:set":{"id":"chain:set","description":"Set Chain","strict":true,"pluginName":"@proton/cli","pluginAlias":"@proton/cli","pluginType":"core","aliases":[],"flags":{"chain":{"name":"chain","type":"option","multiple":false,"options":["proton","proton-test"]}},"args":[]},"contract:contract":{"id":"contract:contract","description":"Set Contract","strict":true,"pluginName":"@proton/cli","pluginAlias":"@proton/cli","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"account","required":true},{"name":"directory","required":true}]},"keys:add":{"id":"keys:add","description":"Add Key","strict":true,"pluginName":"@proton/cli","pluginAlias":"@proton/cli","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"privateKey","required":false}]},"keys:generate":{"id":"keys:generate","description":"Generate Key","strict":true,"pluginName":"@proton/cli","pluginAlias":"@proton/cli","pluginType":"core","aliases":[],"flags":{},"args":[]},"keys:list":{"id":"keys:list","description":"List All Key","strict":true,"pluginName":"@proton/cli","pluginAlias":"@proton/cli","pluginType":"core","aliases":[],"flags":{},"args":[]},"keys:lock":{"id":"keys:lock","description":"Lock Keys with password","strict":true,"pluginName":"@proton/cli","pluginAlias":"@proton/cli","pluginType":"core","aliases":[],"flags":{},"args":[]},"keys:remove":{"id":"keys:remove","description":"Remove Key","strict":true,"pluginName":"@proton/cli","pluginAlias":"@proton/cli","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"privateKey","required":false}]},"keys:reset":{"id":"keys:reset","description":"Reset password (Caution: deletes all private keys stored)","strict":true,"pluginName":"@proton/cli","pluginAlias":"@proton/cli","pluginType":"core","aliases":[],"flags":{},"args":[]},"keys:unlock":{"id":"keys:unlock","description":"Unlock all keys (Caution: Your keys will be stored in plaintext on disk)","strict":true,"pluginName":"@proton/cli","pluginAlias":"@proton/cli","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"password","required":false}]},"multisig:contract":{"id":"multisig:contract","description":"Multisig Contract","strict":true,"pluginName":"@proton/cli","pluginAlias":"@proton/cli","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"directory","required":true}]},"system:newaccount":{"id":"system:newaccount","description":"System NewAccount","strict":true,"pluginName":"@proton/cli","pluginAlias":"@proton/cli","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"net":{"name":"net","type":"option","char":"n","multiple":false,"default":"10.0000 SYS"},"cpu":{"name":"cpu","type":"option","char":"c","multiple":false,"default":"10.0000 SYS"},"ram":{"name":"ram","type":"option","char":"r","multiple":false,"default":12288},"transfer":{"name":"transfer","type":"boolean","char":"t","allowNo":false},"code":{"name":"code","type":"boolean","allowNo":false}},"args":[{"name":"account","required":true},{"name":"owner","required":true},{"name":"active","required":true}]},"table":{"id":"table","description":"Get Table Storage Rows","strict":true,"pluginName":"@proton/cli","pluginAlias":"@proton/cli","pluginType":"core","aliases":[],"flags":{"lowerBound":{"name":"lowerBound","type":"option","char":"l","multiple":false},"upperBound":{"name":"upperBound","type":"option","char":"u","multiple":false},"keyType":{"name":"keyType","type":"option","char":"k","multiple":false},"reverse":{"name":"reverse","type":"boolean","char":"r","allowNo":false},"showPayer":{"name":"showPayer","type":"boolean","char":"p","allowNo":false},"limit":{"name":"limit","type":"option","char":"c","multiple":false,"default":100},"indexPosition":{"name":"indexPosition","type":"option","char":"i","multiple":false,"default":1}},"args":[{"name":"contractName","required":true},{"name":"tableName","required":false},{"name":"scope","required":false}]}}}
{
"name": "@proton/cli",
"description": "Proton CLI",
"version": "0.1.13",
"version": "0.1.14",
"author": "Syed Jafri @jafri",

@@ -24,2 +24,3 @@ "bin": {

"rimraf": "^3.0.2",
"secure-enclave": "^0.4.1",
"ts-dedent": "^2.2.0"

@@ -70,3 +71,7 @@ },

"@oclif/plugin-help"
]
],
"flexibleTaxonomy": true,
"hooks": {
"command_incomplete": "./lib/hooks/command_incomplete.js"
}
},

@@ -73,0 +78,0 @@ "repository": "ProtonProtocol/proton-cli",

@@ -17,3 +17,3 @@ @proton/cli

# Installation
From Scratch
Install NodeJS + NPM + CLI
```

@@ -23,3 +23,3 @@ curl -Ls https://raw.githubusercontent.com/ProtonProtocol/proton-cli/master/install.sh | sh

NPM
Install CLI (NPM)
```

@@ -29,3 +29,3 @@ npm i -g @proton/cli

yarn
Install CLI (Yarn)
```

@@ -41,3 +41,3 @@ yarn global add @proton/cli

$ proton (--version)
@proton/cli/0.1.13 darwin-arm64 node-v17.6.0
@proton/cli/0.1.14 darwin-arm64 node-v17.6.0
$ proton --help [COMMAND]

@@ -52,4 +52,5 @@ USAGE

* [`proton account ACCOUNTNAME`](#proton-account-accountname)
* [`proton account:create ACCOUNTNAME`](#proton-accountcreate-accountname)
* [`proton boilerplate [FOLDER]`](#proton-boilerplate-folder)
* [`proton chain`](#proton-chain)
* [`proton chain:get`](#proton-chainget)
* [`proton chain:info`](#proton-chaininfo)

@@ -70,2 +71,3 @@ * [`proton chain:list`](#proton-chainlist)

* [`proton system:newaccount ACCOUNT OWNER ACTIVE`](#proton-systemnewaccount-account-owner-active)
* [`proton table CONTRACTNAME [TABLENAME] [SCOPE]`](#proton-table-contractname-tablename-scope)
* [`proton version`](#proton-version)

@@ -88,4 +90,18 @@

_See code: [src/commands/account/index.ts](https://github.com/ProtonProtocol/proton-cli/blob/v0.1.13/src/commands/account/index.ts)_
_See code: [src/commands/account/index.ts](https://github.com/ProtonProtocol/proton-cli/blob/v0.1.14/src/commands/account/index.ts)_
## `proton account:create ACCOUNTNAME`
Create New Account
```
USAGE
$ proton account:create [ACCOUNTNAME]
DESCRIPTION
Create New Account
```
_See code: [src/commands/account/create.ts](https://github.com/ProtonProtocol/proton-cli/blob/v0.1.14/src/commands/account/create.ts)_
## `proton boilerplate [FOLDER]`

@@ -106,5 +122,5 @@

_See code: [src/commands/boilerplate.ts](https://github.com/ProtonProtocol/proton-cli/blob/v0.1.13/src/commands/boilerplate.ts)_
_See code: [src/commands/boilerplate.ts](https://github.com/ProtonProtocol/proton-cli/blob/v0.1.14/src/commands/boilerplate.ts)_
## `proton chain`
## `proton chain:get`

@@ -115,3 +131,3 @@ Get Current Chain

USAGE
$ proton chain
$ proton chain:get

@@ -125,3 +141,3 @@ DESCRIPTION

_See code: [src/commands/chain/index.ts](https://github.com/ProtonProtocol/proton-cli/blob/v0.1.13/src/commands/chain/index.ts)_
_See code: [src/commands/chain/get.ts](https://github.com/ProtonProtocol/proton-cli/blob/v0.1.14/src/commands/chain/get.ts)_

@@ -140,3 +156,3 @@ ## `proton chain:info`

_See code: [src/commands/chain/info.ts](https://github.com/ProtonProtocol/proton-cli/blob/v0.1.13/src/commands/chain/info.ts)_
_See code: [src/commands/chain/info.ts](https://github.com/ProtonProtocol/proton-cli/blob/v0.1.14/src/commands/chain/info.ts)_

@@ -155,3 +171,3 @@ ## `proton chain:list`

_See code: [src/commands/chain/list.ts](https://github.com/ProtonProtocol/proton-cli/blob/v0.1.13/src/commands/chain/list.ts)_
_See code: [src/commands/chain/list.ts](https://github.com/ProtonProtocol/proton-cli/blob/v0.1.14/src/commands/chain/list.ts)_

@@ -173,3 +189,3 @@ ## `proton chain:set`

_See code: [src/commands/chain/set.ts](https://github.com/ProtonProtocol/proton-cli/blob/v0.1.13/src/commands/chain/set.ts)_
_See code: [src/commands/chain/set.ts](https://github.com/ProtonProtocol/proton-cli/blob/v0.1.14/src/commands/chain/set.ts)_

@@ -188,3 +204,3 @@ ## `proton contract:contract ACCOUNT DIRECTORY`

_See code: [src/commands/contract/contract.ts](https://github.com/ProtonProtocol/proton-cli/blob/v0.1.13/src/commands/contract/contract.ts)_
_See code: [src/commands/contract/contract.ts](https://github.com/ProtonProtocol/proton-cli/blob/v0.1.14/src/commands/contract/contract.ts)_

@@ -223,3 +239,3 @@ ## `proton help [COMMAND]`

_See code: [src/commands/keys/add.ts](https://github.com/ProtonProtocol/proton-cli/blob/v0.1.13/src/commands/keys/add.ts)_
_See code: [src/commands/keys/add.ts](https://github.com/ProtonProtocol/proton-cli/blob/v0.1.14/src/commands/keys/add.ts)_

@@ -238,3 +254,3 @@ ## `proton keys:generate`

_See code: [src/commands/keys/generate.ts](https://github.com/ProtonProtocol/proton-cli/blob/v0.1.13/src/commands/keys/generate.ts)_
_See code: [src/commands/keys/generate.ts](https://github.com/ProtonProtocol/proton-cli/blob/v0.1.14/src/commands/keys/generate.ts)_

@@ -253,3 +269,3 @@ ## `proton keys:list`

_See code: [src/commands/keys/list.ts](https://github.com/ProtonProtocol/proton-cli/blob/v0.1.13/src/commands/keys/list.ts)_
_See code: [src/commands/keys/list.ts](https://github.com/ProtonProtocol/proton-cli/blob/v0.1.14/src/commands/keys/list.ts)_

@@ -268,3 +284,3 @@ ## `proton keys:lock`

_See code: [src/commands/keys/lock.ts](https://github.com/ProtonProtocol/proton-cli/blob/v0.1.13/src/commands/keys/lock.ts)_
_See code: [src/commands/keys/lock.ts](https://github.com/ProtonProtocol/proton-cli/blob/v0.1.14/src/commands/keys/lock.ts)_

@@ -283,3 +299,3 @@ ## `proton keys:remove [PRIVATEKEY]`

_See code: [src/commands/keys/remove.ts](https://github.com/ProtonProtocol/proton-cli/blob/v0.1.13/src/commands/keys/remove.ts)_
_See code: [src/commands/keys/remove.ts](https://github.com/ProtonProtocol/proton-cli/blob/v0.1.14/src/commands/keys/remove.ts)_

@@ -298,3 +314,3 @@ ## `proton keys:reset`

_See code: [src/commands/keys/reset.ts](https://github.com/ProtonProtocol/proton-cli/blob/v0.1.13/src/commands/keys/reset.ts)_
_See code: [src/commands/keys/reset.ts](https://github.com/ProtonProtocol/proton-cli/blob/v0.1.14/src/commands/keys/reset.ts)_

@@ -313,3 +329,3 @@ ## `proton keys:unlock [PASSWORD]`

_See code: [src/commands/keys/unlock.ts](https://github.com/ProtonProtocol/proton-cli/blob/v0.1.13/src/commands/keys/unlock.ts)_
_See code: [src/commands/keys/unlock.ts](https://github.com/ProtonProtocol/proton-cli/blob/v0.1.14/src/commands/keys/unlock.ts)_

@@ -328,3 +344,3 @@ ## `proton multisig:contract DIRECTORY`

_See code: [src/commands/multisig/contract.ts](https://github.com/ProtonProtocol/proton-cli/blob/v0.1.13/src/commands/multisig/contract.ts)_
_See code: [src/commands/multisig/contract.ts](https://github.com/ProtonProtocol/proton-cli/blob/v0.1.14/src/commands/multisig/contract.ts)_

@@ -366,4 +382,28 @@ ## `proton network`

_See code: [src/commands/system/newaccount.ts](https://github.com/ProtonProtocol/proton-cli/blob/v0.1.13/src/commands/system/newaccount.ts)_
_See code: [src/commands/system/newaccount.ts](https://github.com/ProtonProtocol/proton-cli/blob/v0.1.14/src/commands/system/newaccount.ts)_
## `proton table CONTRACTNAME [TABLENAME] [SCOPE]`
Get Table Storage Rows
```
USAGE
$ proton table [CONTRACTNAME] [TABLENAME] [SCOPE] [-l <value>] [-u <value>] [-k <value>] [-r] [-p] [-c
<value>] [-i <value>]
FLAGS
-c, --limit=<value> [default: 100]
-i, --indexPosition=<value> [default: 1]
-k, --keyType=<value>
-l, --lowerBound=<value>
-p, --showPayer
-r, --reverse
-u, --upperBound=<value>
DESCRIPTION
Get Table Storage Rows
```
_See code: [src/commands/table/index.ts](https://github.com/ProtonProtocol/proton-cli/blob/v0.1.14/src/commands/table/index.ts)_
## `proton version`

@@ -381,3 +421,3 @@

_See code: [src/commands/version.ts](https://github.com/ProtonProtocol/proton-cli/blob/v0.1.13/src/commands/version.ts)_
_See code: [src/commands/version.ts](https://github.com/ProtonProtocol/proton-cli/blob/v0.1.14/src/commands/version.ts)_
<!-- commandsstop -->
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc