-
Notifications
You must be signed in to change notification settings - Fork 213
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2801: Bump to cardano-node alonzo-white-1.4 r=Anviking a=Anviking # Issue Number ADP-1062 # Overview <!-- Detail in a few bullet points the work accomplished in this PR --> - [x] Bump to alonzo-white-1.4 - [x] Figure out how to fix the CLI tests - [x] Fix any newly appearing CI errors # Comments input-output-hk/cardano-haskell#53 input-output-hk/cardano-haskell#54 <!-- Additional comments or screenshots to attach if any --> <!-- Don't forget to: ✓ Self-review your changes to make sure nothing unexpected slipped through ✓ Assign yourself to the PR ✓ Assign one or several reviewer(s) ✓ Jira will detect and link to this PR once created, but you can also link this PR in the description of the corresponding ticket ✓ Acknowledge any changes required to the Wiki ✓ Finally, in the PR description delete any empty sections and all text commented in <!--, so that this text does not appear in merge commit messages. --> Co-authored-by: Johannes Lund <[email protected]> Co-authored-by: Rodney Lorrimar <[email protected]>
- Loading branch information
Showing
102 changed files
with
1,154 additions
and
706 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
The CLI is a proxy to the wallet server, which is required for | ||
most commands. Commands are turned into corresponding API calls, | ||
and submitted to an up-and-running server. Some commands do not | ||
require an active server and can be run offline (e.g. | ||
'recovery-phrase generate'). | ||
|
||
Usage: COMMAND | ||
|
||
Cardano Wallet Command-Line Interface (CLI) | ||
|
||
Available options: | ||
-h,--help Show this help text | ||
|
||
Available commands: | ||
recovery-phrase About recovery phrases | ||
key About public/private keys | ||
wallet About wallets | ||
transaction About transactions | ||
address About addresses | ||
stake-pool About stake pools | ||
network About the network |
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,19 @@ | ||
Usage: address COMMAND | ||
|
||
About addresses | ||
|
||
Available options: | ||
-h,--help Show this help text | ||
|
||
Available commands: | ||
list List all known addresses of a given | ||
wallet. | ||
create Create a new random address. Only | ||
available for random wallets. The | ||
address index is optional, give none | ||
to let the wallet generate a random | ||
one. | ||
import Import a random address generated | ||
elsewhere. Only available for random | ||
wallets. The address must belong to | ||
the target wallet. |
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,14 @@ | ||
Usage: address create | ||
[--port INT] | ||
[--address-index INDEX] | ||
WALLET_ID | ||
|
||
Create a new random address. Only available for random wallets. | ||
The address index is optional, give none to let the wallet | ||
generate a random one. | ||
|
||
Available options: | ||
-h,--help Show this help text | ||
--port INT port used for serving the wallet API. | ||
(default: 8090) | ||
--address-index INDEX A derivation index for the address |
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,9 @@ | ||
Usage: address import [--port INT] WALLET_ID ADDRESS | ||
|
||
Import a random address generated elsewhere. Only available for | ||
random wallets. The address must belong to the target wallet. | ||
|
||
Available options: | ||
-h,--help Show this help text | ||
--port INT port used for serving the wallet API. | ||
(default: 8090) |
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,10 @@ | ||
Usage: address list [--port INT] [--state STRING] WALLET_ID | ||
|
||
List all known addresses of a given wallet. | ||
|
||
Available options: | ||
-h,--help Show this help text | ||
--port INT port used for serving the wallet API. | ||
(default: 8090) | ||
--state STRING only addresses with the given state: | ||
either 'used' or 'unused'. |
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,39 @@ | ||
Usage: key COMMAND | ||
|
||
About public/private keys | ||
|
||
Available options: | ||
-h,--help Show this help text | ||
|
||
Available commands: | ||
from-recovery-phrase Convert a recovery phrase to an | ||
extended private key | ||
child Derive child keys from a parent | ||
public/private key | ||
public Get the public counterpart of a | ||
private key | ||
inspect Show information about a key | ||
hash Get the hash of a public key | ||
|
||
Example: | ||
[0;1m$ cardano-wallet recovery-phrase generate --size 15 \[0m | ||
[0;1m| cardano-wallet key from-recovery-phrase Shelley > root.prv[0m | ||
|
||
[0;1m$ cat root.prv \[0m | ||
[0;1m| cardano-wallet key child 1852H/1815H/0H \[0m | ||
[0;1m| tee acct.prv \[0m | ||
[0;1m| cardano-wallet key public --with-chain-code > acct.pub[0m | ||
|
||
[0;1m$ cardano-wallet key inspect <<< $(cat acct.prv)[0m | ||
{ | ||
"key_type": "private", | ||
"chain_code": "67bef6f80df02c7452e20e76ffb4bb57cae8aac2adf042b21a6b19e4f7b1f511", | ||
"extended_key": "90ead3efad7aacac242705ede323665387f49ed847bed025eb333708ccf6aa54403482a867daeb18f38c57d6cddd7e6fd6aed4a3209f7425a3d1c5d9987a9c5f" | ||
} | ||
|
||
[0;1m$ cardano-wallet key inspect <<< $(cat acct.pub)[0m | ||
{ | ||
"key_type": "public", | ||
"chain_code": "67bef6f80df02c7452e20e76ffb4bb57cae8aac2adf042b21a6b19e4f7b1f511", | ||
"extended_key": "d306350ee88f51fb710252e27f0c40006c58e994761b383e02d400e2be59b3cc" | ||
} |
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,11 @@ | ||
Usage: key child DERIVATION-PATH | ||
|
||
Derive child keys from a parent public/private key | ||
|
||
Available options: | ||
-h,--help Show this help text | ||
DERIVATION-PATH Slash-separated derivation path. | ||
Hardened indexes are marked with a 'H' | ||
(e.g. 1852H/1815H/0H/0). | ||
|
||
The parent key is read from stdin. |
13 changes: 13 additions & 0 deletions
13
lib/cli/test/data/Cardano/CLISpec/key from-recovery-phrase --help
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,13 @@ | ||
Usage: key from-recovery-phrase STYLE | ||
|
||
Convert a recovery phrase to an extended private key | ||
|
||
Available options: | ||
-h,--help Show this help text | ||
STYLE Byron | Icarus | Shelley | Shared | ||
|
||
The recovery phrase is read from stdin. | ||
|
||
Example: | ||
[0;1m$ cardano-wallet recovery-phrase generate \[0m | ||
[0;1m| cardano-wallet key from-recovery-phrase Icarus[0m |
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,8 @@ | ||
Usage: key inspect | ||
|
||
Show information about a key | ||
|
||
Available options: | ||
-h,--help Show this help text | ||
|
||
The parent key is read from stdin. |
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,8 @@ | ||
Usage: key public (--without-chain-code | --with-chain-code) | ||
|
||
Get the public counterpart of a private key | ||
|
||
Available options: | ||
-h,--help Show this help text | ||
|
||
The private key is read from stdin.To get extended public key pass '--with-chain-code'.To get public key pass '--without-chain-code'. |
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,12 @@ | ||
Usage: network COMMAND | ||
|
||
About the network | ||
|
||
Available options: | ||
-h,--help Show this help text | ||
|
||
Available commands: | ||
information View network information. | ||
parameters View network parameters for the | ||
current epoch. | ||
clock View NTP offset. |
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,11 @@ | ||
Usage: network clock [--port INT] [--force-ntp-check] | ||
|
||
View NTP offset. | ||
|
||
Available options: | ||
-h,--help Show this help text | ||
--port INT port used for serving the wallet API. | ||
(default: 8090) | ||
--force-ntp-check When set, will block and force an NTP | ||
check with the server. Otherwise, uses | ||
an available cached result. |
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,8 @@ | ||
Usage: network information [--port INT] | ||
|
||
View network information. | ||
|
||
Available options: | ||
-h,--help Show this help text | ||
--port INT port used for serving the wallet API. | ||
(default: 8090) |
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,8 @@ | ||
Usage: network parameters [--port INT] | ||
|
||
View network parameters for the current epoch. | ||
|
||
Available options: | ||
-h,--help Show this help text | ||
--port INT port used for serving the wallet API. | ||
(default: 8090) |
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,9 @@ | ||
Usage: recovery-phrase COMMAND | ||
|
||
About recovery phrases | ||
|
||
Available options: | ||
-h,--help Show this help text | ||
|
||
Available commands: | ||
generate Generate an English recovery phrase |
8 changes: 8 additions & 0 deletions
8
lib/cli/test/data/Cardano/CLISpec/recovery-phrase generate --help
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,8 @@ | ||
Usage: recovery-phrase generate [--size INT] | ||
|
||
Generate an English recovery phrase | ||
|
||
Available options: | ||
-h,--help Show this help text | ||
--size INT Number of mnemonic words to generate. | ||
Must be a multiple of 3. (default: 24) |
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,11 @@ | ||
Usage: stake-pool list [--port INT] [--stake STAKE] | ||
|
||
List all known stake pools. | ||
|
||
Available options: | ||
-h,--help Show this help text | ||
--port INT port used for serving the wallet API. | ||
(default: 8090) | ||
--stake STAKE The stake you intend to delegate, | ||
which affects the rewards and the | ||
ranking of pools. |
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,17 @@ | ||
Usage: transaction COMMAND | ||
|
||
About transactions | ||
|
||
Available options: | ||
-h,--help Show this help text | ||
|
||
Available commands: | ||
create Create and submit a new transaction. | ||
fees Estimate fees for a transaction. | ||
list List the transactions associated with | ||
a wallet. | ||
submit Submit an externally-signed | ||
transaction. | ||
forget Forget a pending transaction with | ||
specified id. | ||
get Get a transaction with specified id. |
23 changes: 23 additions & 0 deletions
23
lib/cli/test/data/Cardano/CLISpec/transaction create --help
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,23 @@ | ||
Usage: transaction create | ||
[--port INT] | ||
WALLET_ID | ||
(--payment PAYMENT) | ||
[--metadata JSON] | ||
[--ttl DURATION] | ||
|
||
Create and submit a new transaction. | ||
|
||
Available options: | ||
-h,--help Show this help text | ||
--port INT port used for serving the wallet API. | ||
(default: 8090) | ||
--payment PAYMENT address to send to and amount to send | ||
separated by @, e.g. | ||
'<amount>@<address>' | ||
--metadata JSON Application-specific transaction | ||
metadata as a JSON object. The value | ||
must match the schema defined in the | ||
cardano-wallet OpenAPI specification. | ||
--ttl DURATION Time-to-live value. Expressed in | ||
seconds with a trailing 's'. Default | ||
is 3600s (2 hours). |
Oops, something went wrong.