near-cli-rs 0.4.1 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +124 -0
- {near-cli-rs-v0.4.1-npm-package → package}/binary.js +6 -9
- {near-cli-rs-v0.4.1-npm-package → package}/install.js +1 -1
- {near-cli-rs-v0.4.1-npm-package → package}/npm-shrinkwrap.json +2 -2
- {near-cli-rs-v0.4.1-npm-package → package}/package.json +2 -3
- {near-cli-rs-v0.4.1-npm-package → package}/run.js +1 -1
- near-cli-rs-v0.4.1-npm-package/CHANGELOG.md +0 -68
- {near-cli-rs-v0.4.1-npm-package → package}/.gitignore +0 -0
- {near-cli-rs-v0.4.1-npm-package → package}/LICENSE-APACHE +0 -0
- {near-cli-rs-v0.4.1-npm-package → package}/LICENSE-MIT +0 -0
- {near-cli-rs-v0.4.1-npm-package → package}/README.md +0 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [Unreleased]
|
|
9
|
+
|
|
10
|
+
## [0.6.0](https://github.com/near/near-cli-rs/compare/v0.5.2...v0.6.0) - 2023-09-28
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
- New command export-account ([#226](https://github.com/near/near-cli-rs/pull/226))
|
|
14
|
+
- [**breaking**] Added system keychain support for windows & linux, so now all major desktop operating systems are supported! ([#232](https://github.com/near/near-cli-rs/pull/232))
|
|
15
|
+
- order networks selection based on the selected account id (bubble up more relevant networks) ([#225](https://github.com/near/near-cli-rs/pull/225))
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
- CLI must return a non-zero exit code when function call (as-transaction) fails ([#238](https://github.com/near/near-cli-rs/pull/238))
|
|
19
|
+
- legacy view-function call with --base64 was not recognized ([#237](https://github.com/near/near-cli-rs/pull/237))
|
|
20
|
+
- self update is now pointing to the right archive name ([#234](https://github.com/near/near-cli-rs/pull/234))
|
|
21
|
+
|
|
22
|
+
### Other
|
|
23
|
+
- Upgraded cargo-dist to 0.3.0 version to enable MSI Windows installer, and binary artifacts on every PR ([#241](https://github.com/near/near-cli-rs/pull/241))
|
|
24
|
+
- Switch to near-gas crate ([#240](https://github.com/near/near-cli-rs/pull/240))
|
|
25
|
+
- New command to view contract storage state ([#239](https://github.com/near/near-cli-rs/pull/239))
|
|
26
|
+
|
|
27
|
+
## [0.5.2](https://github.com/near/near-cli-rs/compare/v0.5.1...v0.5.2) - 2023-08-17
|
|
28
|
+
|
|
29
|
+
### Added
|
|
30
|
+
- Select your account when prompted interactively ([#224](https://github.com/near/near-cli-rs/pull/224))
|
|
31
|
+
- Allow to specify a custom Web Wallet URL when importing account (default to MyNearWallet) ([#218](https://github.com/near/near-cli-rs/pull/218))
|
|
32
|
+
|
|
33
|
+
### Other
|
|
34
|
+
- Upgrade cargo-dist to 0.1.0 release ([#229](https://github.com/near/near-cli-rs/pull/229))
|
|
35
|
+
|
|
36
|
+
## [0.5.1](https://github.com/near/near-cli-rs/compare/v0.5.0...v0.5.1) - 2023-06-07
|
|
37
|
+
|
|
38
|
+
### Added
|
|
39
|
+
- New `transaction sign-transaction` command [useful in combination with `... sign-later` and `transaction send-signed-transaction` commands] ([#215](https://github.com/near/near-cli-rs/pull/215))
|
|
40
|
+
|
|
41
|
+
### Other
|
|
42
|
+
- Upgraded NEAR crates to 0.17.0 release ([#216](https://github.com/near/near-cli-rs/pull/216))
|
|
43
|
+
|
|
44
|
+
## [0.5.0](https://github.com/near/near-cli-rs/compare/v0.4.3...v0.5.0) - 2023-06-05
|
|
45
|
+
|
|
46
|
+
### Added
|
|
47
|
+
- New offline mode allows to prepare transactions on devices that are not connected to the Internet ([#209](https://github.com/near/near-cli-rs/pull/209))
|
|
48
|
+
|
|
49
|
+
### Fixed
|
|
50
|
+
- Add support for no-args view-function calls for legacy JS CLI `view` command ([#213](https://github.com/near/near-cli-rs/pull/213))
|
|
51
|
+
|
|
52
|
+
## [0.4.3](https://github.com/near/near-cli-rs/compare/v0.4.2...v0.4.3) - 2023-06-02
|
|
53
|
+
|
|
54
|
+
### Added
|
|
55
|
+
- New command to send a signed transaction [potentially constructed offline] ([#206](https://github.com/near/near-cli-rs/pull/206))
|
|
56
|
+
- Extended access-key deletion with an option to delete multiple keys in a single transaction ([#207](https://github.com/near/near-cli-rs/pull/207))
|
|
57
|
+
|
|
58
|
+
### Other
|
|
59
|
+
- Updated dependencies to the most recent versions
|
|
60
|
+
|
|
61
|
+
## [0.4.2](https://github.com/near/near-cli-rs/compare/v0.4.1...v0.4.2) - 2023-05-26
|
|
62
|
+
|
|
63
|
+
### Added
|
|
64
|
+
- Added Json type ([#203](https://github.com/near/near-cli-rs/pull/203))
|
|
65
|
+
|
|
66
|
+
## [0.4.1](https://github.com/near/near-cli-rs/compare/v0.4.0...v0.4.1) - 2023-05-22
|
|
67
|
+
|
|
68
|
+
### Fixed
|
|
69
|
+
- Added extra space at the beginning of a line in interactive queries (#196)
|
|
70
|
+
|
|
71
|
+
### Other
|
|
72
|
+
- Added a guide on `send-meta-transaction` (#192)
|
|
73
|
+
|
|
74
|
+
## [0.4.0](https://github.com/near/near-cli-rs/compare/v0.3.5...v0.4.0) - 2023-05-02
|
|
75
|
+
|
|
76
|
+
### Added
|
|
77
|
+
- Meta-Transactions support (#189)
|
|
78
|
+
- Support for adding key from Ledger hardware wallet (#188)
|
|
79
|
+
|
|
80
|
+
### Fixed
|
|
81
|
+
- fixed call function with non-JSON arguments being incorrectly displayed as `null` (#187)
|
|
82
|
+
- pass right token to release-plz action (#185)
|
|
83
|
+
|
|
84
|
+
## [0.3.5](https://github.com/near/near-cli-rs/compare/v0.3.4...v0.3.5) - 2023-04-21
|
|
85
|
+
|
|
86
|
+
### Fixed
|
|
87
|
+
- Fixed self-update to use the proper archive name generated by cargo-dist
|
|
88
|
+
|
|
89
|
+
## [0.3.4](https://github.com/near/near-cli-rs/compare/v0.3.3...v0.3.4) - 2023-04-20
|
|
90
|
+
|
|
91
|
+
### Other
|
|
92
|
+
- Enable self-update on CI and NPM installer for binary releases (#183)
|
|
93
|
+
- release v0.3.3 (#182)
|
|
94
|
+
|
|
95
|
+
## [0.3.3](https://github.com/near/near-cli-rs/compare/v0.3.2...v0.3.3) - 2023-04-20
|
|
96
|
+
|
|
97
|
+
### Added
|
|
98
|
+
- Added support for Contract Storage Management Standard (#179)
|
|
99
|
+
|
|
100
|
+
### Other
|
|
101
|
+
- update release-plz-action to v0.5 (#180)
|
|
102
|
+
|
|
103
|
+
## [0.3.2](https://github.com/near/near-cli-rs/compare/v0.3.1...v0.3.2) - 2023-04-11
|
|
104
|
+
|
|
105
|
+
### Added
|
|
106
|
+
- Show contract function call result and make it usable in scripts by only writing the result to stdout, and everything else will be printed to stderr (#177)
|
|
107
|
+
- Use optimisticly latest nonce for the access key instead of the final one to avoid errors running commands one after the other (#176)
|
|
108
|
+
|
|
109
|
+
### Fixed
|
|
110
|
+
- fixed printing about saving the access key (#173)
|
|
111
|
+
|
|
112
|
+
### Other
|
|
113
|
+
- Added GitHub Actions installation instructions
|
|
114
|
+
|
|
115
|
+
## [0.3.1](https://github.com/near/near-cli-rs/compare/v0.3.0...v0.3.1) - 2023-04-06
|
|
116
|
+
|
|
117
|
+
### Other
|
|
118
|
+
- Use custom GITHUB_TOKEN to be able to trigger follow up CI jobs
|
|
119
|
+
- make a git tag with Release-plz, so it triggers binary release pipeline (#170)
|
|
120
|
+
|
|
121
|
+
## [0.3.0] - 2023-04-06
|
|
122
|
+
|
|
123
|
+
* Renamed `near-cli` binary to `near` as it has special handlers for the commands of near CLI JS, and can be used as a replacement to near CLI JS that will guide users on how to use the new commands when they type the old commands.
|
|
124
|
+
* Improved continuous integration pipelines to streamline releases (each push to `master` branch will trigger a pipeline that will create a PR suggesting to cut a new release, and once the version is ticked, crate will be published and tagged, and then binary release pipeline will kick in)
|
|
@@ -10,29 +10,27 @@ const error = (msg) => {
|
|
|
10
10
|
};
|
|
11
11
|
|
|
12
12
|
const { version } = require("./package.json");
|
|
13
|
-
// These are injected by cargo-dist
|
|
14
13
|
const name = "near-cli-rs";
|
|
15
|
-
const artifact_download_url = "https://github.com/near/near-cli-rs/releases/download/v0.
|
|
14
|
+
const artifact_download_url = "https://github.com/near/near-cli-rs/releases/download/v0.6.0";
|
|
16
15
|
|
|
17
|
-
// These are injected by cargo-dist
|
|
18
16
|
const supportedPlatforms = {
|
|
19
17
|
"aarch64-apple-darwin": {
|
|
20
|
-
"artifact_name": "near-cli-rs-
|
|
18
|
+
"artifact_name": "near-cli-rs-aarch64-apple-darwin.tar.gz",
|
|
21
19
|
"bins": ["near"],
|
|
22
20
|
"zip_ext": ".tar.gz"
|
|
23
21
|
},
|
|
24
22
|
"x86_64-apple-darwin": {
|
|
25
|
-
"artifact_name": "near-cli-rs-
|
|
23
|
+
"artifact_name": "near-cli-rs-x86_64-apple-darwin.tar.gz",
|
|
26
24
|
"bins": ["near"],
|
|
27
25
|
"zip_ext": ".tar.gz"
|
|
28
26
|
},
|
|
29
27
|
"x86_64-pc-windows-msvc": {
|
|
30
|
-
"artifact_name": "near-cli-rs-
|
|
28
|
+
"artifact_name": "near-cli-rs-x86_64-pc-windows-msvc.tar.gz",
|
|
31
29
|
"bins": ["near.exe"],
|
|
32
30
|
"zip_ext": ".tar.gz"
|
|
33
31
|
},
|
|
34
32
|
"x86_64-unknown-linux-gnu": {
|
|
35
|
-
"artifact_name": "near-cli-rs-
|
|
33
|
+
"artifact_name": "near-cli-rs-x86_64-unknown-linux-gnu.tar.gz",
|
|
36
34
|
"bins": ["near"],
|
|
37
35
|
"zip_ext": ".tar.gz"
|
|
38
36
|
}
|
|
@@ -116,10 +114,9 @@ const getBinary = () => {
|
|
|
116
114
|
return binary;
|
|
117
115
|
};
|
|
118
116
|
|
|
119
|
-
const install = () => {
|
|
117
|
+
const install = (suppressLogs) => {
|
|
120
118
|
const binary = getBinary();
|
|
121
119
|
const proxy = configureProxy(binary.url);
|
|
122
|
-
const suppressLogs = false;
|
|
123
120
|
|
|
124
121
|
return binary.install(proxy, suppressLogs);
|
|
125
122
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "near-cli-rs",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "near-cli-rs",
|
|
9
|
-
"version": "0.
|
|
9
|
+
"version": "0.6.0",
|
|
10
10
|
"license": "MIT OR Apache-2.0",
|
|
11
11
|
"hasInstallScript": true,
|
|
12
12
|
"dependencies": {
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "near-cli-rs",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "human-friendly console utility that helps to interact with NEAR Protocol from command line.",
|
|
5
5
|
"repository": "https://github.com/near/near-cli-rs",
|
|
6
6
|
"homepage": "https://near.cli.rs",
|
|
7
|
-
"contributors": ["FroVolod <frol_off@meta.ua>","Near Inc <hello@nearprotocol.com>"],
|
|
8
7
|
"license": "MIT OR Apache-2.0",
|
|
9
|
-
"
|
|
8
|
+
"contributors": ["FroVolod <frol_off@meta.ua>","Near Inc <hello@nearprotocol.com>"],
|
|
10
9
|
"bin": {
|
|
11
10
|
"near": "run.js"
|
|
12
11
|
},
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
|
|
5
|
-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
|
-
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
-
|
|
8
|
-
## [Unreleased]
|
|
9
|
-
|
|
10
|
-
## [0.4.1](https://github.com/near/near-cli-rs/compare/v0.4.0...v0.4.1) - 2023-05-22
|
|
11
|
-
|
|
12
|
-
### Fixed
|
|
13
|
-
- Added extra space at the beginning of a line in interactive queries (#196)
|
|
14
|
-
|
|
15
|
-
### Other
|
|
16
|
-
- Added a guide on `send-meta-transaction` (#192)
|
|
17
|
-
|
|
18
|
-
## [0.4.0](https://github.com/near/near-cli-rs/compare/v0.3.5...v0.4.0) - 2023-05-02
|
|
19
|
-
|
|
20
|
-
### Added
|
|
21
|
-
- Meta-Transactions support (#189)
|
|
22
|
-
- Support for adding key from Ledger hardware wallet (#188)
|
|
23
|
-
|
|
24
|
-
### Fixed
|
|
25
|
-
- fixed call function with non-JSON arguments being incorrectly displayed as `null` (#187)
|
|
26
|
-
- pass right token to release-plz action (#185)
|
|
27
|
-
|
|
28
|
-
## [0.3.5](https://github.com/near/near-cli-rs/compare/v0.3.4...v0.3.5) - 2023-04-21
|
|
29
|
-
|
|
30
|
-
### Fixed
|
|
31
|
-
- Fixed self-update to use the proper archive name generated by cargo-dist
|
|
32
|
-
|
|
33
|
-
## [0.3.4](https://github.com/near/near-cli-rs/compare/v0.3.3...v0.3.4) - 2023-04-20
|
|
34
|
-
|
|
35
|
-
### Other
|
|
36
|
-
- Enable self-update on CI and NPM installer for binary releases (#183)
|
|
37
|
-
- release v0.3.3 (#182)
|
|
38
|
-
|
|
39
|
-
## [0.3.3](https://github.com/near/near-cli-rs/compare/v0.3.2...v0.3.3) - 2023-04-20
|
|
40
|
-
|
|
41
|
-
### Added
|
|
42
|
-
- Added support for Contract Storage Management Standard (#179)
|
|
43
|
-
|
|
44
|
-
### Other
|
|
45
|
-
- update release-plz-action to v0.5 (#180)
|
|
46
|
-
|
|
47
|
-
## [0.3.2](https://github.com/near/near-cli-rs/compare/v0.3.1...v0.3.2) - 2023-04-11
|
|
48
|
-
|
|
49
|
-
### Added
|
|
50
|
-
- Show contract function call result and make it usable in scripts by only writing the result to stdout, and everything else will be printed to stderr (#177)
|
|
51
|
-
- Use optimisticly latest nonce for the access key instead of the final one to avoid errors running commands one after the other (#176)
|
|
52
|
-
|
|
53
|
-
### Fixed
|
|
54
|
-
- fixed printing about saving the access key (#173)
|
|
55
|
-
|
|
56
|
-
### Other
|
|
57
|
-
- Added GitHub Actions installation instructions
|
|
58
|
-
|
|
59
|
-
## [0.3.1](https://github.com/near/near-cli-rs/compare/v0.3.0...v0.3.1) - 2023-04-06
|
|
60
|
-
|
|
61
|
-
### Other
|
|
62
|
-
- Use custom GITHUB_TOKEN to be able to trigger follow up CI jobs
|
|
63
|
-
- make a git tag with Release-plz, so it triggers binary release pipeline (#170)
|
|
64
|
-
|
|
65
|
-
## [0.3.0] - 2023-04-06
|
|
66
|
-
|
|
67
|
-
* Renamed `near-cli` binary to `near` as it has special handlers for the commands of near CLI JS, and can be used as a replacement to near CLI JS that will guide users on how to use the new commands when they type the old commands.
|
|
68
|
-
* Improved continuous integration pipelines to streamline releases (each push to `master` branch will trigger a pipeline that will create a PR suggesting to cut a new release, and once the version is ticked, crate will be published and tagged, and then binary release pipeline will kick in)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|