Skip to content

Commit 5201a94

Browse files
authored
Merge pull request iron-fish#5071 from iron-fish/staging
Staging to master v2.4.0
2 parents 8b26bfe + e57b1a0 commit 5201a94

File tree

414 files changed

+35031
-24667
lines changed

Some content is hidden

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

414 files changed

+35031
-24667
lines changed

.github/workflows/build-ironfish-rust-nodejs.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
working-directory: ./ironfish-rust-nodejs
7373

7474
- name: Upload artifact
75-
uses: actions/upload-artifact@v3
75+
uses: actions/upload-artifact@v4
7676
with:
7777
name: bindings-${{ matrix.settings.target }}
7878
path: ironfish-rust-nodejs/*.node
@@ -85,9 +85,12 @@ jobs:
8585
fail-fast: false
8686
matrix:
8787
settings:
88-
- host: macos-latest
88+
- host: macos-13
8989
target: x86_64-apple-darwin
9090

91+
- host: macos-latest
92+
target: aarch64-apple-darwin
93+
9194
- host: windows-latest
9295
target: x86_64-pc-windows-msvc
9396

@@ -124,7 +127,7 @@ jobs:
124127
node-version: 18
125128

126129
- name: Download artifacts
127-
uses: actions/download-artifact@v3
130+
uses: actions/download-artifact@v4
128131
with:
129132
name: bindings-${{ matrix.settings.target }}
130133
path: ./ironfish-rust-nodejs

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
8282

8383
steps:
8484
- name: Check out Git repository
85-
uses: actions/checkout@v3
85+
uses: actions/checkout@v4
8686

8787
- name: Use Node.js
8888
uses: actions/setup-node@v4

.github/workflows/deploy-brew.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
jobs:
99
Deploy:
1010
name: Deploy
11-
runs-on: macos-12
11+
runs-on: macos-13
1212

1313
steps:
1414
- name: Check out Git repository

.github/workflows/publish-binaries.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
fail-fast: false
1717
matrix:
1818
settings:
19-
- host: macos-latest
19+
- host: macos-13
2020
arch: x86_64
2121
system: apple
2222

@@ -29,7 +29,7 @@ jobs:
2929
arch: x86_64
3030
system: linux
3131

32-
- host: macos-latest-xlarge
32+
- host: macos-latest
3333
arch: arm64
3434
system: apple
3535

Cargo.lock

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

ironfish-cli/package.json

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ironfish",
3-
"version": "2.3.0",
3+
"version": "2.4.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",
@@ -34,7 +34,7 @@
3434
"eslint-plugin-deprecation": "2.0.0",
3535
"jest": "29.7.0",
3636
"jest-jasmine2": "29.7.0",
37-
"oclif": "2.6.0",
37+
"oclif": "3.7.2",
3838
"rimraf": "^3.0.2",
3939
"ts-jest": "29.1.1",
4040
"tsc-watch": "4.2.9",
@@ -58,26 +58,25 @@
5858
"oclif:version": "oclif readme && git add README.md"
5959
},
6060
"dependencies": {
61-
"@aws-sdk/client-cognito-identity": "3",
62-
"@aws-sdk/client-s3": "3",
63-
"@aws-sdk/client-secrets-manager": "3",
64-
"@aws-sdk/s3-request-presigner": "3",
65-
"@ironfish/rust-nodejs": "2.3.0",
66-
"@ironfish/sdk": "2.3.0",
67-
"@oclif/core": "1.23.1",
61+
"@ironfish/rust-nodejs": "2.4.0",
62+
"@ironfish/sdk": "2.4.0",
63+
"@oclif/core": "3.27.0",
64+
"@oclif/plugin-autocomplete": "1.3.10",
6865
"@oclif/plugin-help": "5.1.12",
6966
"@oclif/plugin-not-found": "2.3.1",
7067
"@oclif/plugin-warn-if-update-available": "2.0.40",
71-
"@oclif/plugin-autocomplete": "1.3.10",
68+
"@types/keccak": "3.0.4",
7269
"@types/tar": "6.1.1",
73-
"axios": "0.21.4",
70+
"axios": "1.7.2",
7471
"bech32": "2.0.0",
7572
"blessed": "0.1.81",
7673
"blru": "0.1.6",
7774
"buffer-map": "0.0.7",
7875
"chalk": "4.1.2",
76+
"cli-progress": "3.12.0",
7977
"inquirer": "8.2.5",
8078
"json-colorizer": "2.2.2",
79+
"keccak": "3.0.4",
8180
"supports-hyperlinks": "2.2.0",
8281
"tar": "6.1.11",
8382
"uuid": "8.3.2"
@@ -97,7 +96,11 @@
9796
"@oclif/plugin-warn-if-update-available",
9897
"@oclif/plugin-autocomplete"
9998
],
100-
"topics": {}
99+
"topics": {
100+
"wallet:scanning": {
101+
"description": "Turn on or off scanning for accounts"
102+
}
103+
}
101104
},
102105
"bin": {
103106
"ironfish": "./bin/run"

ironfish-cli/src/args.ts

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,24 @@
22
* License, v. 2.0. If a copy of the MPL was not distributed with this
33
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
44

5-
export function parseNumber(input: string): number | null {
6-
const parsed = Number(input)
7-
return isNaN(parsed) ? null : parsed
5+
import { parseUrl as parseUrlSdk } from '@ironfish/sdk'
6+
import { Args } from '@oclif/core'
7+
8+
type Url = {
9+
protocol: string | null
10+
hostname: string
11+
port: number | null
12+
}
13+
14+
export function parseUrl(input: string): Promise<Url> {
15+
const parsed = parseUrlSdk(input)
16+
if (parsed.hostname != null) {
17+
return Promise.resolve(parsed as Url)
18+
} else {
19+
return Promise.reject(new Error(`Invalid URL: ${input}`))
20+
}
821
}
22+
23+
export const UrlArg = Args.custom<Url>({
24+
parse: async (input: string) => parseUrl(input),
25+
})

ironfish-cli/src/commands/backup.ts

Lines changed: 0 additions & 175 deletions
This file was deleted.

0 commit comments

Comments
 (0)