-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added docs for 15.1.0 and removed older docs (#2304)
* Added docs for 15.1.0 and removed older docs * added prepare entry in the sidebar * Added increase paid storage examples for wallet API usage
- Loading branch information
Showing
75 changed files
with
3,614 additions
and
1,387 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 |
---|---|---|
|
@@ -24,6 +24,7 @@ | |
"multisig_doc", | ||
"originate", | ||
"global_constant", | ||
"prepare", | ||
"rpc_nodes", | ||
"rpc_package", | ||
"signing", | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
46 changes: 46 additions & 0 deletions
46
website/versioned_docs/version-15.1.0/amendment_and_voting.md
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,46 @@ | ||
--- | ||
title: Amendment and Voting | ||
id: amendment_and_voting | ||
author: Davis Sawali | ||
--- | ||
|
||
In Tezos, the economic protocol can be amended by proposing and voting for changes. The protocol change will happen depending on the result of the votes. | ||
|
||
## Proposals | ||
A `Proposals` operation can be injected during a **Proposal Period**. It allows a delegate to submit a proposal identified by a protocol hash. Submitting a proposal also upvotes said proposal during the **Proposal Period**, not to be confused with *Ballot* votes in the section below. | ||
|
||
The proposal with the most support is selected and will move on to the **Exploration Period**. | ||
|
||
:::info | ||
Note: Each delegate can submit a maximum of 20 proposals | ||
::: | ||
|
||
### Example | ||
The `Proposals` operation is currently available in the Contract API, and can be used as such: | ||
```typescript | ||
const op = await Tezos.contract.proposals({ | ||
proposals: ['PROTOCOL_HASH1', 'PROTOCOL_HASH2'] | ||
}); | ||
|
||
await op.confirmation(); | ||
``` | ||
- `proposals` parameter takes in a list of Protocol hash(es) you would like to submit. | ||
|
||
## Ballot | ||
The `Ballot` operation allows delegates to cast one `Yay`, `Nay`, or `Pass` ballot on a selected proposal. Delegates are only able to cast their votes during the **Exploration period** and the **Promotion period**. | ||
|
||
### Example | ||
The `Ballot` operation is currently available in the Contract API, and can be used as such: | ||
```typescript | ||
const op = await Tezos.contract.ballot({ | ||
proposal: 'PROTOCOL_HASH', | ||
ballot: 'BALLOT_VOTE_STRING' | ||
}); | ||
|
||
await op.confirmation(); | ||
``` | ||
- `proposal` is the string that you (a delegate) would like to point your ballot towards. Information on the current proposal can be obtained by calling [this RPC endpoint](https://tezos.gitlab.io/alpha/rpc.html#get-block-id-votes-current-proposal). Alternatively, you could also get the protocol hash by using Taquito's RPC Client method `RpcClient.getCurrentProposal`. For more information on the `RpcClient` refer to [this document](https://tezostaquito.io/docs/rpc_package/) | ||
- `ballot` is your ballot vote (`yay`, `nay`, or `pass`) | ||
|
||
|
||
For more information in regards to the Amendment & Voting Process, refer to [this document](https://tezos.gitlab.io/alpha/voting.html) |
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 @@ | ||
--- | ||
title: Ballot Operation | ||
id: ballot | ||
author: Davis Sawali | ||
--- | ||
|
||
The `Ballot` operation allows delegates to cast one `Yay`, `Nay`, or `Pass` ballot on a selected proposal. Delegates are only able to cast their votes during the **Exploration period** and the **Promotion period** | ||
|
||
## Examples | ||
The `Ballot` operation is currently available in the Contract API, and can be used as such: | ||
```typescript | ||
const op = await Tezos.contract.ballot({ | ||
proposal: 'PROPOSAL_HASH', | ||
ballot: 'BALLOT_VOTE_STRING' | ||
}); | ||
|
||
await op.confirmation(); | ||
``` | ||
- `proposal` is the proposal hash string that you (a delegate) would like to point your ballot towards. Information on the current proposal can be obtained by calling [this RPC endpoint](https://tezos.gitlab.io/alpha/rpc.html#get-block-id-votes-current-proposal). Alternatively, you could also get the proposal hash by using Taquito's RPC Client method `RpcClient.getCurrentProposal`. For more information on the `RpcClient` refer to [this document](https://tezostaquito.io/docs/rpc_package/) | ||
- `ballot` is your ballot vote (`yay`, `nay`, or `pass`) | ||
|
||
|
||
For more information in regards to the Amendment (and Voting) Process refer to [this document](https://tezos.gitlab.io/alpha/voting.html) |
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
File renamed without changes.
Oops, something went wrong.