-
Notifications
You must be signed in to change notification settings - Fork 573
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2854 from iron-fish/staging
STAGING -> MASTER
- Loading branch information
Showing
177 changed files
with
5,321 additions
and
3,248 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,6 +31,7 @@ jobs: | |
- name: Cache Rust | ||
uses: Swatinem/rust-cache@v2 | ||
with: | ||
save-if: false | ||
shared-key: base | ||
|
||
- name: Check that cargo lockfile is up to date | ||
|
@@ -74,12 +75,13 @@ jobs: | |
with: | ||
shared-key: base | ||
|
||
# Build & Run test & Collect Code coverage | ||
# Run tests to collect code coverage | ||
- name: Run cargo-tarpaulin on ironfish-rust | ||
uses: actions-rs/[email protected] | ||
with: | ||
version: "0.22.0" | ||
args: --avoid-cfg-tarpaulin --manifest-path ironfish-rust/Cargo.toml --release -- --test-threads 1 | ||
run: | | ||
wget -O tarpaulin.tar.gz https://github.com/xd009642/tarpaulin/releases/download/0.22.0/cargo-tarpaulin-0.22.0-travis.tar.gz | ||
tar -xzf tarpaulin.tar.gz | ||
mv cargo-tarpaulin ~/.cargo/bin/ | ||
cargo tarpaulin -p ironfish_rust --release --out Xml --avoid-cfg-tarpaulin --skip-clean -- --test-threads 1 | ||
# Upload code coverage to Codecov | ||
- name: Upload to codecov.io | ||
|
@@ -102,12 +104,13 @@ jobs: | |
with: | ||
shared-key: zkp | ||
|
||
# Build & Run test & Collect Code coverage | ||
# Run tests to collect code coverage | ||
- name: Run cargo-tarpaulin on ironfish-zkp | ||
uses: actions-rs/[email protected] | ||
with: | ||
version: "0.22.0" | ||
args: --avoid-cfg-tarpaulin --manifest-path ironfish-zkp/Cargo.toml --release -- --test-threads 1 | ||
run: | | ||
wget -O tarpaulin.tar.gz https://github.com/xd009642/tarpaulin/releases/download/0.22.0/cargo-tarpaulin-0.22.0-travis.tar.gz | ||
tar -xzf tarpaulin.tar.gz | ||
mv cargo-tarpaulin ~/.cargo/bin/ | ||
cargo tarpaulin -p ironfish_zkp --release --out Xml --avoid-cfg-tarpaulin --skip-clean -- --test-threads 1 | ||
# Upload code coverage to Codecov | ||
- name: Upload to codecov.io | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "ironfish", | ||
"version": "0.1.55", | ||
"version": "0.1.56", | ||
"description": "CLI for running and interacting with an Iron Fish node", | ||
"author": "Iron Fish <[email protected]> (https://ironfish.network)", | ||
"main": "build/src/index.js", | ||
|
@@ -20,12 +20,12 @@ | |
"/oclif.manifest.json" | ||
], | ||
"engines": { | ||
"node": "16.x" | ||
"node": "18.x" | ||
}, | ||
"devDependencies": { | ||
"@oclif/test": "2.1.0", | ||
"@types/blessed": "0.1.17", | ||
"@types/node": "16.11.1", | ||
"@types/node": "18.11.16", | ||
"@types/tar": "6.1.1", | ||
"@types/ws": "7.4.5", | ||
"chai": "4.2.0", | ||
|
@@ -57,9 +57,9 @@ | |
"dependencies": { | ||
"@aws-sdk/client-cognito-identity": "3.215.0", | ||
"@aws-sdk/client-s3": "3.127.0", | ||
"@ironfish/rust-nodejs": "0.1.18", | ||
"@ironfish/sdk": "0.0.32", | ||
"@oclif/core": "1.16.1", | ||
"@ironfish/rust-nodejs": "0.1.19", | ||
"@ironfish/sdk": "0.0.33", | ||
"@oclif/core": "1.23.1", | ||
"@oclif/plugin-help": "5.1.12", | ||
"@oclif/plugin-not-found": "2.3.1", | ||
"@types/tar": "6.1.1", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */ | ||
import { Assert, BufferUtils } from '@ironfish/sdk' | ||
import { IronfishCommand } from '../../command' | ||
import { RemoteFlags } from '../../flags' | ||
|
||
export default class Asset extends IronfishCommand { | ||
static description = 'Get the asset info' | ||
|
||
static args = [ | ||
{ | ||
name: 'identifier', | ||
parse: (input: string): Promise<string> => Promise.resolve(input.trim()), | ||
required: true, | ||
description: 'The identifier of the asset', | ||
}, | ||
] | ||
|
||
static flags = { | ||
...RemoteFlags, | ||
} | ||
|
||
async start(): Promise<void> { | ||
const { args } = await this.parse(Asset) | ||
Assert.isString(args.id) | ||
const assetId = args.id | ||
|
||
const client = await this.sdk.connectRpc() | ||
const data = await client.getAsset({ id: assetId }) | ||
|
||
this.log(`Name: ${BufferUtils.toHuman(Buffer.from(data.content.name, 'hex'))}`) | ||
this.log(`Metadata: ${BufferUtils.toHuman(Buffer.from(data.content.metadata, 'hex'))}`) | ||
this.log(`Owner: ${data.content.owner}`) | ||
this.log(`Supply: ${data.content.supply}`) | ||
this.log(`Nonce: ${data.content.nonce}`) | ||
this.log(`Identifier: ${data.content.id}`) | ||
this.log(`Transaction Created: ${data.content.createdTransactionHash}`) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.