Skip to content

Commit a584239

Browse files
authored
Merge pull request #4329 from iron-fish/staging
Staging to master version 1.10.0
2 parents fbf32a7 + 0305e55 commit a584239

File tree

243 files changed

+22801
-27632
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

243 files changed

+22801
-27632
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@
88
*.png -text
99
*.params -text
1010
mainnet-parameters/params -text
11+
12+
*.pdf binary

.github/workflows/ci-regenerate-fixtures.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,12 @@ jobs:
3737

3838
- name: Run slow tests
3939
run: JEST_TIMEOUT=1000000000 yarn test:slow:coverage --maxWorkers=2 --workerIdleMemoryLimit=2000MB
40+
41+
- name: Report Status
42+
if: always()
43+
uses: ravsamhq/notify-slack-action@master
44+
with:
45+
status: ${{ job.status }}
46+
notify_when: 'failure'
47+
env:
48+
SLACK_WEBHOOK_URL: ${{ secrets.GITHUB_ACTIONS_SLACK_WEBHOOK }}

Cargo.lock

Lines changed: 8 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,6 @@ repository = "https://github.com/iron-fish/ironfish"
1818

1919
[patch.crates-io]
2020
bellman = { git = "https://github.com/iron-fish/bellman", rev = "1cc52ca33e6db14233f1cbc0c9c5b7c822b229ec" }
21+
22+
[profile.release]
23+
debug = true

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
# Iron Fish
44

5-
![Node CI](https://github.com/iron-fish/ironfish/actions/workflows/ci.yml/badge.svg)
6-
![Rust CI](https://github.com/iron-fish/ironfish/actions/workflows/rust_ci.yml/badge.svg)
7-
![Node CI Regenerate Fixtures](https://github.com/iron-fish/ironfish/actions/workflows/ci-regenerate-fixtures.yml/badge.svg)
5+
[![Node CI](https://github.com/iron-fish/ironfish/actions/workflows/ci.yml/badge.svg)](https://github.com/iron-fish/ironfish/actions/workflows/ci.yml)
6+
[![Rust CI](https://github.com/iron-fish/ironfish/actions/workflows/rust_ci.yml/badge.svg)](https://github.com/iron-fish/ironfish/actions/workflows/rust_ci.yml)
7+
[![Node CI Regenerate Fixtures](https://github.com/iron-fish/ironfish/actions/workflows/ci-regenerate-fixtures.yml/badge.svg)](https://github.com/iron-fish/ironfish/actions/workflows/ci-regenerate-fixtures.yml)
88
[![codecov](https://codecov.io/gh/iron-fish/ironfish/branch/master/graph/badge.svg?token=fOjPFN18xZ)](https://codecov.io/gh/iron-fish/ironfish)
99

1010
Iron Fish is a Layer 1 blockchain that provides the strongest privacy guarantees on every single transaction. Leveraging zero-knowledge proofs (zk-SNARKs), and the highest industry standards for encryption.
905 KB
Binary file not shown.

benchmarks/benches/transaction.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use criterion::{criterion_group, criterion_main, BatchSize, Criterion};
33
use ironfish::{
44
assets::{asset::Asset, asset_identifier::NATIVE_ASSET},
55
test_util::make_fake_witness,
6-
transaction::{batch_verify_transactions, verify_transaction},
6+
transaction::{batch_verify_transactions, verify_transaction, TransactionVersion},
77
Note, ProposedTransaction, SaplingKey, Transaction,
88
};
99

@@ -24,7 +24,7 @@ pub fn simple(c: &mut Criterion) {
2424
},
2525
// Benchmark
2626
|(key, spend_note, witness, out_note)| {
27-
let mut proposed = ProposedTransaction::new(key);
27+
let mut proposed = ProposedTransaction::new(key, TransactionVersion::latest());
2828

2929
proposed.add_spend(spend_note, &witness).unwrap();
3030
proposed.add_output(out_note).unwrap();
@@ -60,7 +60,7 @@ pub fn all_descriptions(c: &mut Criterion) {
6060
|(key, spend_note, witness, out_note, asset)| {
6161
let asset_value = 10;
6262

63-
let mut proposed = ProposedTransaction::new(key);
63+
let mut proposed = ProposedTransaction::new(key, TransactionVersion::latest());
6464

6565
proposed.add_spend(spend_note, &witness).unwrap();
6666
proposed.add_output(out_note).unwrap();
@@ -92,7 +92,7 @@ pub fn verify(c: &mut Criterion) {
9292

9393
let out_note = Note::new(public_address, 41, "", NATIVE_ASSET, public_address);
9494

95-
let mut proposed = ProposedTransaction::new(key);
95+
let mut proposed = ProposedTransaction::new(key, TransactionVersion::latest());
9696

9797
proposed.add_spend(spend_note, &witness).unwrap();
9898
proposed.add_output(out_note).unwrap();
@@ -127,7 +127,7 @@ pub fn batch_verify(c: &mut Criterion) {
127127

128128
let out_note = Note::new(public_address, 41, "", NATIVE_ASSET, public_address);
129129

130-
let mut proposed = ProposedTransaction::new(key);
130+
let mut proposed = ProposedTransaction::new(key, TransactionVersion::latest());
131131

132132
proposed.add_spend(spend_note, &witness).unwrap();
133133
proposed.add_output(out_note).unwrap();

ironfish-cli/.eslintrc.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
1+
/* This Source Code Form is subject to the terms of the Mozilla Public
2+
* License, v. 2.0. If a copy of the MPL was not distributed with this
3+
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
14
module.exports = {
25
extends: ['ironfish'],
36
parserOptions: {
47
tsconfigRootDir: __dirname,
58
},
69
rules: {
710
'jest/no-standalone-expect': 'off',
11+
'deprecation/deprecation': 'off', // enable this to warn or error to show deprecated code usage
812
},
13+
plugins: ['deprecation'],
914
}

ironfish-cli/package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ironfish",
3-
"version": "1.9.0",
3+
"version": "1.10.0",
44
"description": "CLI for running and interacting with an Iron Fish node",
55
"author": "Iron Fish <[email protected]> (https://ironfish.network)",
66
"main": "build/src/index.js",
@@ -31,6 +31,7 @@
3131
"chai": "4.2.0",
3232
"cross-env": "7.0.3",
3333
"eslint-config-ironfish": "*",
34+
"eslint-plugin-deprecation": "2.0.0",
3435
"jest": "29.3.1",
3536
"jest-jasmine2": "29.3.1",
3637
"oclif": "2.6.0",
@@ -42,6 +43,7 @@
4243
"scripts": {
4344
"build": "tsc -b",
4445
"lint": "tsc -b && eslint --ext .ts,.tsx,.js,.jsx src/",
46+
"lint:deprecated": "yarn lint --rule \"deprecation/deprecation: warn\"",
4547
"lint:fix": "tsc -b && eslint --ext .ts,.tsx,.js,.jsx src/ --fix",
4648
"start:dev": "node start",
4749
"start": "yarn build && yarn start:js",
@@ -59,8 +61,8 @@
5961
"@aws-sdk/client-s3": "3",
6062
"@aws-sdk/client-secrets-manager": "3",
6163
"@aws-sdk/s3-request-presigner": "3",
62-
"@ironfish/rust-nodejs": "1.8.0",
63-
"@ironfish/sdk": "1.9.0",
64+
"@ironfish/rust-nodejs": "1.9.0",
65+
"@ironfish/sdk": "1.10.0",
6466
"@oclif/core": "1.23.1",
6567
"@oclif/plugin-help": "5.1.12",
6668
"@oclif/plugin-not-found": "2.3.1",
@@ -101,4 +103,4 @@
101103
"url": "https://github.com/iron-fish/ironfish/issues"
102104
},
103105
"homepage": "https://ironfish.network"
104-
}
106+
}

ironfish-cli/src/commands/chain/asset.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ export default class Asset extends IronfishCommand {
3232
this.log(`Name: ${BufferUtils.toHuman(Buffer.from(data.content.name, 'hex'))}`)
3333
this.log(`Metadata: ${BufferUtils.toHuman(Buffer.from(data.content.metadata, 'hex'))}`)
3434
this.log(`Creator: ${data.content.creator}`)
35-
this.log(`Supply: ${data.content.supply}`)
35+
this.log(`Owner: ${data.content.owner}`)
36+
this.log(`Supply: ${data.content.supply ?? 'N/A'}`)
3637
this.log(`Identifier: ${data.content.id}`)
3738
this.log(`Transaction Created: ${data.content.createdTransactionHash}`)
3839
}

0 commit comments

Comments
 (0)