Skip to content

Commit

Permalink
Merge pull request #4329 from iron-fish/staging
Browse files Browse the repository at this point in the history
Staging to master version 1.10.0
  • Loading branch information
patnir committed Oct 2, 2023
2 parents fbf32a7 + 0305e55 commit a584239
Show file tree
Hide file tree
Showing 243 changed files with 22,801 additions and 27,632 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@
*.png -text
*.params -text
mainnet-parameters/params -text

*.pdf binary
9 changes: 9 additions & 0 deletions .github/workflows/ci-regenerate-fixtures.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,12 @@ jobs:

- name: Run slow tests
run: JEST_TIMEOUT=1000000000 yarn test:slow:coverage --maxWorkers=2 --workerIdleMemoryLimit=2000MB

- name: Report Status
if: always()
uses: ravsamhq/notify-slack-action@master
with:
status: ${{ job.status }}
notify_when: 'failure'
env:
SLACK_WEBHOOK_URL: ${{ secrets.GITHUB_ACTIONS_SLACK_WEBHOOK }}
9 changes: 8 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ repository = "https://github.com/iron-fish/ironfish"

[patch.crates-io]
bellman = { git = "https://github.com/iron-fish/bellman", rev = "1cc52ca33e6db14233f1cbc0c9c5b7c822b229ec" }

[profile.release]
debug = true
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

# Iron Fish

![Node CI](https://github.com/iron-fish/ironfish/actions/workflows/ci.yml/badge.svg)
![Rust CI](https://github.com/iron-fish/ironfish/actions/workflows/rust_ci.yml/badge.svg)
![Node CI Regenerate Fixtures](https://github.com/iron-fish/ironfish/actions/workflows/ci-regenerate-fixtures.yml/badge.svg)
[![Node CI](https://github.com/iron-fish/ironfish/actions/workflows/ci.yml/badge.svg)](https://github.com/iron-fish/ironfish/actions/workflows/ci.yml)
[![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)
[![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)
[![codecov](https://codecov.io/gh/iron-fish/ironfish/branch/master/graph/badge.svg?token=fOjPFN18xZ)](https://codecov.io/gh/iron-fish/ironfish)

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.
Expand Down
Binary file added audits/ironfish-audit-report-FINAL.pdf
Binary file not shown.
10 changes: 5 additions & 5 deletions benchmarks/benches/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use criterion::{criterion_group, criterion_main, BatchSize, Criterion};
use ironfish::{
assets::{asset::Asset, asset_identifier::NATIVE_ASSET},
test_util::make_fake_witness,
transaction::{batch_verify_transactions, verify_transaction},
transaction::{batch_verify_transactions, verify_transaction, TransactionVersion},
Note, ProposedTransaction, SaplingKey, Transaction,
};

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

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

let mut proposed = ProposedTransaction::new(key);
let mut proposed = ProposedTransaction::new(key, TransactionVersion::latest());

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

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

let mut proposed = ProposedTransaction::new(key);
let mut proposed = ProposedTransaction::new(key, TransactionVersion::latest());

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

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

let mut proposed = ProposedTransaction::new(key);
let mut proposed = ProposedTransaction::new(key, TransactionVersion::latest());

proposed.add_spend(spend_note, &witness).unwrap();
proposed.add_output(out_note).unwrap();
Expand Down
5 changes: 5 additions & 0 deletions ironfish-cli/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
/* 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/. */
module.exports = {
extends: ['ironfish'],
parserOptions: {
tsconfigRootDir: __dirname,
},
rules: {
'jest/no-standalone-expect': 'off',
'deprecation/deprecation': 'off', // enable this to warn or error to show deprecated code usage
},
plugins: ['deprecation'],
}
10 changes: 6 additions & 4 deletions ironfish-cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ironfish",
"version": "1.9.0",
"version": "1.10.0",
"description": "CLI for running and interacting with an Iron Fish node",
"author": "Iron Fish <[email protected]> (https://ironfish.network)",
"main": "build/src/index.js",
Expand Down Expand Up @@ -31,6 +31,7 @@
"chai": "4.2.0",
"cross-env": "7.0.3",
"eslint-config-ironfish": "*",
"eslint-plugin-deprecation": "2.0.0",
"jest": "29.3.1",
"jest-jasmine2": "29.3.1",
"oclif": "2.6.0",
Expand All @@ -42,6 +43,7 @@
"scripts": {
"build": "tsc -b",
"lint": "tsc -b && eslint --ext .ts,.tsx,.js,.jsx src/",
"lint:deprecated": "yarn lint --rule \"deprecation/deprecation: warn\"",
"lint:fix": "tsc -b && eslint --ext .ts,.tsx,.js,.jsx src/ --fix",
"start:dev": "node start",
"start": "yarn build && yarn start:js",
Expand All @@ -59,8 +61,8 @@
"@aws-sdk/client-s3": "3",
"@aws-sdk/client-secrets-manager": "3",
"@aws-sdk/s3-request-presigner": "3",
"@ironfish/rust-nodejs": "1.8.0",
"@ironfish/sdk": "1.9.0",
"@ironfish/rust-nodejs": "1.9.0",
"@ironfish/sdk": "1.10.0",
"@oclif/core": "1.23.1",
"@oclif/plugin-help": "5.1.12",
"@oclif/plugin-not-found": "2.3.1",
Expand Down Expand Up @@ -101,4 +103,4 @@
"url": "https://github.com/iron-fish/ironfish/issues"
},
"homepage": "https://ironfish.network"
}
}
3 changes: 2 additions & 1 deletion ironfish-cli/src/commands/chain/asset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ export default class Asset extends IronfishCommand {
this.log(`Name: ${BufferUtils.toHuman(Buffer.from(data.content.name, 'hex'))}`)
this.log(`Metadata: ${BufferUtils.toHuman(Buffer.from(data.content.metadata, 'hex'))}`)
this.log(`Creator: ${data.content.creator}`)
this.log(`Supply: ${data.content.supply}`)
this.log(`Owner: ${data.content.owner}`)
this.log(`Supply: ${data.content.supply ?? 'N/A'}`)
this.log(`Identifier: ${data.content.id}`)
this.log(`Transaction Created: ${data.content.createdTransactionHash}`)
}
Expand Down
Loading

0 comments on commit a584239

Please sign in to comment.