-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support the new sns sale payment flow for the ticketing system (#…
…156) * update deps * sns new_sale_ticket * test * rename to pay * more args in pay * doc sns pay * doc new-sale-ticket * changelog * fmt * remove --ticket-creation-time * fix test * fix typos
- Loading branch information
Showing
17 changed files
with
331 additions
and
166 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
Large diffs are not rendered by default.
Oops, something went wrong.
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,25 @@ | ||
# quill sns new-sale-ticket | ||
|
||
Attempt to create a new sale ticket. If there is already an open ticket, it will return the details of the existing ticket. | ||
|
||
|
||
## Basic usage | ||
|
||
The basic syntax for running `quill sns new-sale-ticket` commands is: | ||
|
||
```bash | ||
quill sns new-sale-ticket --amount-icp-e8s <AMOUNT_ICP_E8S> [option] | ||
``` | ||
|
||
## Flags | ||
|
||
| Flag | Description | | ||
|-----------------|-----------------------------| | ||
| `-h`, `--help` | Displays usage information. | | ||
|
||
## Options | ||
|
||
| Option | Description | | ||
|-----------------------------|-----------------------------------------------------------| | ||
| `--amount-icp-e8s <AMOUNT>` | The amount of ICP tokens to participate in this sns sale. | | ||
| `--subaccount <SUBACCOUNT>` | The subaccount you will use to pay for this ticket. | |
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,38 @@ | ||
# quill sns pay | ||
|
||
Signs messages to pay for an open sale ticket that you can create using `quill sns new-sale-ticket`. | ||
|
||
This operation consists of two messages: | ||
|
||
First, transfer ICP to the sale canister on the NNS ledger, under the subaccount for your principal. | ||
|
||
Second, the sale canister is notified that the transfer has been made. | ||
|
||
## Basic usage | ||
|
||
The basic syntax for running `quill sns pay` commands is: | ||
|
||
```bash | ||
quill sns pay --amount-icp-e8s <AMOUNT_ICP_E8S> --ticket-id <TICKET_ID> [option] | ||
``` | ||
|
||
## Flags | ||
|
||
| Flag | Description | | ||
|-----------------|-----------------------------| | ||
| `-h`, `--help` | Displays usage information. | | ||
| `--notify-only` | No transfer will be made. | | ||
|
||
## Options | ||
|
||
| Option | Description | | ||
|-------------------------------------------------|---------------------------------------| | ||
| `--amount-icp-e8s <AMOUNT>` | The amount of ICP to transfer. | | ||
| `--subaccount <SUBACCOUNT>` | Pay from this subaccount. | | ||
| `--ticket-id` | The ticket_id of the sale ticket. | | ||
|
||
## Remarks | ||
|
||
Once the pay has been finalized, if it was successful, you will receive your neurons automatically. Your neuron's share of the governance tokens at sale finalization will be proportional to your share of the contributed ICP. | ||
|
||
If `--notify-only` is specified, only the notification message will be generated. This is useful if there was an error previously submitting the notification which you have since rectified, or if you have made the transfer with another tool. |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.