@masa-finance/masa-cli
Advanced tools
Comparing version 3.0.0 to 3.1.0
{ | ||
"name": "@masa-finance/masa-cli", | ||
"version": "3.0.0", | ||
"version": "3.1.0", | ||
"description": "The Masa CLI", | ||
@@ -20,3 +20,3 @@ "main": "./dist/src/index.js", | ||
"@masa-finance/masa-contracts-oracle": "^0.3.2", | ||
"@masa-finance/masa-sdk": "^4.0.0", | ||
"@masa-finance/masa-sdk": "^4.2.0", | ||
"@types/clear": "^0.1.4", | ||
@@ -23,0 +23,0 @@ "@types/figlet": "^1.5.8", |
@@ -244,35 +244,4 @@ "use strict"; | ||
{ | ||
const asbt = commander_1.program.command("asbt").description("ASBT Commands"); | ||
asbt | ||
.command("deploy") | ||
.description("Deploys ASBTs") | ||
.option("-e, --etherscan-key <etherscan-key>", "Etherscan API Key") | ||
.action(({ etherscanKey }) => (0, commands_1.asbtDeploy)(etherscanKey)); | ||
asbt | ||
.command("mint") | ||
.description("Mints ASBTs") | ||
.argument("<contract-address>", "Address of the SBT to mint on") | ||
.argument("<receiver>", "Address of the SBT receiver") | ||
.action((contractAddress, receiver) => (0, commands_1.asbtMint)(contractAddress, receiver)); | ||
asbt | ||
.command("bulk-mint") | ||
.description("Mints ASBTs from CSV files") | ||
.argument("<contract-address>", "Address of the SBT to mint on") | ||
.argument("<csv>", "Address of the SBT receiver") | ||
.action((contractAddress, csv) => (0, commands_1.asbtMintBulk)(contractAddress, csv)); | ||
asbt | ||
.command("mint-to-soulname") | ||
.description("Mints ASBTs from soulname") | ||
.argument("<contract-address>", "Address of the SBT to mint on") | ||
.argument("<soulname>", "Address of the SBT receiver") | ||
.action((contractAddress, soulname) => (0, commands_1.asbtMintFromSoulname)(contractAddress, soulname)); | ||
} | ||
{ | ||
const sssbt = commander_1.program.command("sssbt").description("SSSBT Commands"); | ||
sssbt | ||
.command("deploy") | ||
.description("Deploys SSSBTs") | ||
.option("-e, --etherscan-key <etherscan-key>", "Etherscan API Key") | ||
.action(({ etherscanKey }) => (0, commands_1.sssbtDeploy)(etherscanKey)); | ||
sssbt | ||
.command("add-authority") | ||
@@ -283,16 +252,2 @@ .description("Adds an Authority to the SSSBT") | ||
.action((contractAddress, authorityAddress) => (0, commands_1.sssbtAddAuthority)(contractAddress, authorityAddress)); | ||
sssbt | ||
.command("sign") | ||
.description("Signs SSSBTs") | ||
.argument("<contract-address>", "Address of the SBT to mint on") | ||
.argument("<receiver>", "Address of the SBT receiver") | ||
.action((contractAddress, receiver) => (0, commands_1.sssbtSign)(contractAddress, receiver)); | ||
sssbt | ||
.command("mint") | ||
.description("Mints SSSBTs") | ||
.argument("<contract-address>", "Address of the SBT to mint on") | ||
.argument("<authority-address>", "Address of the Authority") | ||
.argument("<signature-date>", "Signature date") | ||
.argument("<signature>", "Signature") | ||
.action((contractAddress, authorityAddress, signatureDate, signature) => (0, commands_1.sssbtMint)(contractAddress, authorityAddress, signatureDate, signature)); | ||
} | ||
@@ -309,25 +264,2 @@ { | ||
.action((contractAddress, authorityAddress) => (0, commands_1.sssbtAddAuthority)(contractAddress, authorityAddress)); | ||
dynamicSSSBT | ||
.command("set-state") | ||
.description("Sets a state on a dynamic SSSBTs") | ||
.argument("<contract-address>", "Address of the SBT to mint on") | ||
.argument("<state>", "State") | ||
.argument("<state-value>", "State value") | ||
.argument("<authority-address>", "Address of the Authority") | ||
.argument("<signature-date>", "Signature date") | ||
.argument("<signature>", "Signature") | ||
.action((contractAddress, state, stateValue, authorityAddress, signatureDate, signature) => (0, commands_1.dynamicSSSBTSetState)(contractAddress, state, Boolean(stateValue), authorityAddress, signatureDate, signature)); | ||
dynamicSSSBT | ||
.command("sign-set-state") | ||
.description("Signs a Set State operation on a Dynamic SSSBTs") | ||
.argument("<contract-address>", "Address of the SBT to mint on") | ||
.argument("<receiver>", "Address of the SBT receiver") | ||
.argument("<state>", "State") | ||
.argument("<state-value>", "State value") | ||
.action((contractAddress, receiver, state, stateValue) => (0, commands_1.signSetStateDynamicSSSBT)(contractAddress, receiver, state, Boolean(stateValue))); | ||
dynamicSSSBT | ||
.command("mint") | ||
.description("Mints Dynamic SSSBTs") | ||
.argument("<contract-address>", "Address of the SBT to mint on") | ||
.action((contractAddress) => (0, commands_1.dynamicSSSBTMint)(contractAddress)); | ||
} | ||
@@ -334,0 +266,0 @@ { |
@@ -1,2 +0,1 @@ | ||
export * from "./ASBT"; | ||
export * from "./SSSBT"; | ||
@@ -3,0 +2,0 @@ export { burn as sbtBurn } from "./burn"; |
@@ -18,3 +18,2 @@ "use strict"; | ||
exports.sbtList = exports.sbtInfo = exports.sbtBurn = void 0; | ||
__exportStar(require("./ASBT"), exports); | ||
__exportStar(require("./SSSBT"), exports); | ||
@@ -21,0 +20,0 @@ var burn_1 = require("./burn"); |
@@ -1,5 +0,1 @@ | ||
export { deploySSSBT as sssbtDeploy } from "./deploy"; | ||
export { signSSSBT as sssbtSign } from "./sign"; | ||
export { mintSSSBT as sssbtMint } from "./mint"; | ||
export { addAuthoritySSSBT as sssbtAddAuthority } from "./add-authority"; | ||
export { mintDynamicSSSBT as dynamicSSSBTMint, dynamicSSSBTSetState, signSetStateDynamicSSSBT, } from "./dynamic"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.signSetStateDynamicSSSBT = exports.dynamicSSSBTSetState = exports.dynamicSSSBTMint = exports.sssbtAddAuthority = exports.sssbtMint = exports.sssbtSign = exports.sssbtDeploy = void 0; | ||
var deploy_1 = require("./deploy"); | ||
Object.defineProperty(exports, "sssbtDeploy", { enumerable: true, get: function () { return deploy_1.deploySSSBT; } }); | ||
var sign_1 = require("./sign"); | ||
Object.defineProperty(exports, "sssbtSign", { enumerable: true, get: function () { return sign_1.signSSSBT; } }); | ||
var mint_1 = require("./mint"); | ||
Object.defineProperty(exports, "sssbtMint", { enumerable: true, get: function () { return mint_1.mintSSSBT; } }); | ||
exports.sssbtAddAuthority = void 0; | ||
var add_authority_1 = require("./add-authority"); | ||
Object.defineProperty(exports, "sssbtAddAuthority", { enumerable: true, get: function () { return add_authority_1.addAuthoritySSSBT; } }); | ||
var dynamic_1 = require("./dynamic"); | ||
Object.defineProperty(exports, "dynamicSSSBTMint", { enumerable: true, get: function () { return dynamic_1.mintDynamicSSSBT; } }); | ||
Object.defineProperty(exports, "dynamicSSSBTSetState", { enumerable: true, get: function () { return dynamic_1.dynamicSSSBTSetState; } }); | ||
Object.defineProperty(exports, "signSetStateDynamicSSSBT", { enumerable: true, get: function () { return dynamic_1.signSetStateDynamicSSSBT; } }); |
{ | ||
"name": "@masa-finance/masa-cli", | ||
"version": "3.0.0", | ||
"version": "3.1.0", | ||
"description": "The Masa CLI", | ||
@@ -20,3 +20,3 @@ "main": "./dist/src/index.js", | ||
"@masa-finance/masa-contracts-oracle": "^0.3.2", | ||
"@masa-finance/masa-sdk": "^4.0.0", | ||
"@masa-finance/masa-sdk": "^4.2.0", | ||
"@types/clear": "^0.1.4", | ||
@@ -23,0 +23,0 @@ "@types/figlet": "^1.5.8", |
107
README.md
@@ -50,17 +50,6 @@ # Masa CLI | ||
- [`masa sbt burn <contract-address> <sbt-id>`](#masa-sbt-burn-contract-address-sbt-id) | ||
- [`masa asbt`](#masa-asbt) | ||
- [`masa asbt deploy`](#masa-asbt-deploy) | ||
- [`masa asbt mint <contract-address> <receiver>`](#masa-asbt-mint-contract-address-receiver) | ||
- [`masa asbt bulk-mint <contract-address> <csv>`](#masa-asbt-bulk-mint-contract-address-csv) | ||
- [`masa asbt mint-to-soulname <contract-address> <soulname>`](#masa-asbt-mint-to-soulname-contract-address-soulname) | ||
- [`masa sssbt`](#masa-sssbt) | ||
- [`masa sssbt deploy`](#masa-sssbt-deploy) | ||
- [`masa sssbt add-authority <contract-address> <authority-address>`](#masa-sssbt-add-authority-contract-address-authority-address) | ||
- [`masa sssbt sign <contract-address> <receiver>`](#masa-sssbt-sign-contract-address-receiver) | ||
- [`masa sssbt mint <contract-address> <authority-address> <signature-date> <signature>`](#masa-sssbt-mint-contract-address-authority-address-signature-date-signature) | ||
- [`masa dynamic-sssbt`](#masa-dynamic-sssbt) | ||
- [`masa dynamic-sssbt add-authority <contract-address> <authority-address>`](#masa-dynamic-sssbt-add-authority-contract-address-authority-address) | ||
- [`masa dynamic-sssbt set-state <contract-address> <state> <state-value> <authority-address> <signature-date> <signature>`](#masa-dynamic-sssbt-set-state-contract-address-state-state-value-authority-address-signature-date-signature) | ||
- [`masa dynamic-sssbt sign-set-state <contract-address> <receiver> <state> <state-value>`](#masa-dynamic-sssbt-sign-set-state-contract-address-receiver-state-state-value) | ||
- [`masa dynamic-sssbt mint <contract-address>`](#masa-dynamic-sssbt-mint-contract-address) | ||
- [`masa oracle`](#masa-oracle) | ||
@@ -159,17 +148,6 @@ - [`masa oracle stake <amount>`](#masa-oracle-stake-amount) | ||
sbt burn <contract-address> <sbt-id> Burns an SBT | ||
asbt ASBT Commands | ||
asbt deploy [options] Deploys ASBTs | ||
asbt mint <contract-address> <receiver> Mints ASBTs | ||
asbt bulk-mint <contract-address> <csv> Mints ASBTs from CSV files | ||
asbt mint-to-soulname <contract-address> <soulname> Mints ASBTs from soulname | ||
sssbt SSSBT Commands | ||
sssbt deploy [options] Deploys SSSBTs | ||
sssbt add-authority <contract-address> <authority-address> Adds an Authority to the SSSBT | ||
sssbt sign <contract-address> <receiver> Signs SSSBTs | ||
sssbt mint <contract-address> <authority-address> <signature-date> <signature> Mints SSSBTs | ||
dynamic-sssbt Dynamic SSSBT Commands | ||
dynamic-sssbt add-authority <contract-address> <authority-address> Adds an Authority to the SSSBT | ||
dynamic-sssbt set-state <contract-address> <state> <state-value> <authority-address> <signature-date> <signature> Sets a state on a dynamic SSSBTs | ||
dynamic-sssbt sign-set-state <contract-address> <receiver> <state> <state-value> Signs a Set State operation on a Dynamic SSSBTs | ||
dynamic-sssbt mint <contract-address> Mints Dynamic SSSBTs | ||
oracle Oracle commands | ||
@@ -486,36 +464,2 @@ oracle stake <amount> | ||
### `masa asbt` | ||
ASBT Commands | ||
#### `masa asbt deploy` | ||
Deploys ASBTs | ||
Options: | ||
- `-e, --etherscan-key <etherscan-key>` | ||
Etherscan API Key | ||
#### `masa asbt mint <contract-address> <receiver>` | ||
Mints ASBTs | ||
- `<contract-address> Address of the SBT to mint on` | ||
- `<receiver> Address of the SBT receiver` | ||
#### `masa asbt bulk-mint <contract-address> <csv>` | ||
Mints ASBTs from CSV files | ||
- `<contract-address> Address of the SBT to mint on` | ||
- `<csv> Address of the SBT receiver` | ||
#### `masa asbt mint-to-soulname <contract-address> <soulname>` | ||
Mints ASBTs from soulname | ||
- `<contract-address> Address of the SBT to mint on` | ||
- `<soulname> Address of the SBT receiver` | ||
### `masa sssbt` | ||
@@ -525,11 +469,2 @@ | ||
#### `masa sssbt deploy` | ||
Deploys SSSBTs | ||
Options: | ||
- `-e, --etherscan-key <etherscan-key>` | ||
Etherscan API Key | ||
#### `masa sssbt add-authority <contract-address> <authority-address>` | ||
@@ -542,18 +477,2 @@ | ||
#### `masa sssbt sign <contract-address> <receiver>` | ||
Signs SSSBTs | ||
- `<contract-address> Address of the SBT to mint on` | ||
- `<receiver> Address of the SBT receiver` | ||
#### `masa sssbt mint <contract-address> <authority-address> <signature-date> <signature>` | ||
Mints SSSBTs | ||
- `<contract-address> Address of the SBT to mint on` | ||
- `<authority-address> Address of the Authority` | ||
- `<signature-date> Signature date` | ||
- `<signature> Signature` | ||
### `masa dynamic-sssbt` | ||
@@ -570,28 +489,2 @@ | ||
#### `masa dynamic-sssbt set-state <contract-address> <state> <state-value> <authority-address> <signature-date> <signature>` | ||
Sets a state on a dynamic SSSBTs | ||
- `<contract-address> Address of the SBT to mint on` | ||
- `<state> State` | ||
- `<state-value> State value` | ||
- `<authority-address> Address of the Authority` | ||
- `<signature-date> Signature date` | ||
- `<signature> Signature` | ||
#### `masa dynamic-sssbt sign-set-state <contract-address> <receiver> <state> <state-value>` | ||
Signs a Set State operation on a Dynamic SSSBTs | ||
- `<contract-address> Address of the SBT to mint on` | ||
- `<receiver> Address of the SBT receiver` | ||
- `<state> State` | ||
- `<state-value> State value` | ||
#### `masa dynamic-sssbt mint <contract-address>` | ||
Mints Dynamic SSSBTs | ||
- `<contract-address> Address of the SBT to mint on` | ||
### `masa oracle` | ||
@@ -598,0 +491,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
1
211293
150
2333
639
+ Addedaxios@1.7.8(transitive)
- Removedaxios@1.7.7(transitive)