msig

package
v1.12.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 23, 2022 License: MIT Imports: 1 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AN = zsw.AN
View Source
var ActN = zsw.ActN
View Source
var PN = zsw.PN

Functions

func NewApprove

func NewApprove(proposer zsw.AccountName, proposalName zsw.Name, level zsw.PermissionLevel) *zsw.Action

NewApprove returns a `approve` action that lives on the `eosio.msig` contract.

func NewCancel

func NewCancel(proposer zsw.AccountName, proposalName zsw.Name, canceler zsw.AccountName) *zsw.Action

NewCancel returns a `cancel` action that lives on the `zswhq.msig` contract.

func NewExec

func NewExec(proposer zsw.AccountName, proposalName zsw.Name, executer zsw.AccountName) *zsw.Action

NewExec returns a `exec` action that lives on the `zswhq.msig` contract.

func NewPropose

func NewPropose(proposer zsw.AccountName, proposalName zsw.Name, requested []zsw.PermissionLevel, transaction *zsw.Transaction) *zsw.Action

NewPropose returns a `propose` action that lives on the `zswhq.msig` contract.

func NewUnapprove

func NewUnapprove(proposer zsw.AccountName, proposalName zsw.Name, level zsw.PermissionLevel) *zsw.Action

NewUnapprove returns a `unapprove` action that lives on the `zswhq.msig` contract.

Types

type Approve

type Approve struct {
	Proposer     zsw.AccountName     `json:"proposer"`
	ProposalName zsw.Name            `json:"proposal_name"`
	Level        zsw.PermissionLevel `json:"level"`
}

type Cancel

type Cancel struct {
	Proposer     zsw.AccountName `json:"proposer"`
	ProposalName zsw.Name        `json:"proposal_name"`
	Canceler     zsw.AccountName `json:"canceler"`
}

type Exec

type Exec struct {
	Proposer     zsw.AccountName `json:"proposer"`
	ProposalName zsw.Name        `json:"proposal_name"`
	Executer     zsw.AccountName `json:"executer"`
}

type ProposalRow

type ProposalRow struct {
	ProposalName       zsw.Name              `json:"proposal_name"`
	RequestedApprovals []zsw.PermissionLevel `json:"requested_approvals"`
	ProvidedApprovals  []zsw.PermissionLevel `json:"provided_approvals"`
	PackedTransaction  zsw.HexBytes          `json:"packed_transaction"`
}

type Propose

type Propose struct {
	Proposer     zsw.AccountName       `json:"proposer"`
	ProposalName zsw.Name              `json:"proposal_name"`
	Requested    []zsw.PermissionLevel `json:"requested"`
	Transaction  *zsw.Transaction      `json:"trx"`
}

type Unapprove

type Unapprove struct {
	Proposer     zsw.AccountName     `json:"proposer"`
	ProposalName zsw.Name            `json:"proposal_name"`
	Level        zsw.PermissionLevel `json:"level"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL