Documentation ¶
Index ¶
- Variables
- func NewApprove(proposer potato.AccountName, proposalName potato.Name, ...) *potato.Action
- func NewCancel(proposer potato.AccountName, proposalName potato.Name, ...) *potato.Action
- func NewExec(proposer potato.AccountName, proposalName potato.Name, ...) *potato.Action
- func NewPropose(proposer potato.AccountName, proposalName potato.Name, ...) *potato.Action
- func NewUnapprove(proposer potato.AccountName, proposalName potato.Name, ...) *potato.Action
- type Approve
- type Cancel
- type Exec
- type ProposalRow
- type Propose
- type Unapprove
Constants ¶
This section is empty.
Variables ¶
View Source
var AN = potato.AN
View Source
var ActN = potato.ActN
View Source
var PN = potato.PN
Functions ¶
func NewApprove ¶
func NewApprove(proposer potato.AccountName, proposalName potato.Name, level potato.PermissionLevel) *potato.Action
NewApprove returns a `approve` action that lives on the `poc.msig` contract.
func NewCancel ¶
func NewCancel(proposer potato.AccountName, proposalName potato.Name, canceler potato.AccountName) *potato.Action
NewCancel returns a `cancel` action that lives on the `poc.msig` contract.
func NewExec ¶
func NewExec(proposer potato.AccountName, proposalName potato.Name, executer potato.AccountName) *potato.Action
NewExec returns a `exec` action that lives on the `poc.msig` contract.
func NewPropose ¶
func NewPropose(proposer potato.AccountName, proposalName potato.Name, requested []potato.PermissionLevel, transaction *potato.Transaction) *potato.Action
NewPropose returns a `propose` action that lives on the `poc.msig` contract.
func NewUnapprove ¶
func NewUnapprove(proposer potato.AccountName, proposalName potato.Name, level potato.PermissionLevel) *potato.Action
NewUnapprove returns a `unapprove` action that lives on the `poc.msig` contract.
Types ¶
type Approve ¶
type Approve struct { Proposer potato.AccountName `json:"proposer"` ProposalName potato.Name `json:"proposal_name"` Level potato.PermissionLevel `json:"level"` }
type Cancel ¶
type Cancel struct { Proposer potato.AccountName `json:"proposer"` ProposalName potato.Name `json:"proposal_name"` Canceler potato.AccountName `json:"canceler"` }
type Exec ¶
type Exec struct { Proposer potato.AccountName `json:"proposer"` ProposalName potato.Name `json:"proposal_name"` Executer potato.AccountName `json:"executer"` }
type ProposalRow ¶
type ProposalRow struct { ProposalName potato.Name `json:"proposal_name"` RequestedApprovals []potato.PermissionLevel `json:"requested_approvals"` ProvidedApprovals []potato.PermissionLevel `json:"provided_approvals"` PackedTransaction potato.HexBytes `json:"packed_transaction"` }
type Propose ¶
type Propose struct { Proposer potato.AccountName `json:"proposer"` ProposalName potato.Name `json:"proposal_name"` Requested []potato.PermissionLevel `json:"requested"` Transaction *potato.Transaction `json:"trx"` }
type Unapprove ¶
type Unapprove struct { Proposer potato.AccountName `json:"proposer"` ProposalName potato.Name `json:"proposal_name"` Level potato.PermissionLevel `json:"level"` }
Click to show internal directories.
Click to hide internal directories.