group

package
v0.0.0-...-0666018 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DocTxMsgCreateGroup

type DocTxMsgCreateGroup struct {
	Admin    string          `bson:"admin"`
	Members  []MemberRequest `bson:"members"`
	Metadata string          `bson:"metadata"`
}

func (*DocTxMsgCreateGroup) BuildMsg

func (m *DocTxMsgCreateGroup) BuildMsg(txMsg interface{})

func (*DocTxMsgCreateGroup) GetType

func (m *DocTxMsgCreateGroup) GetType() string

func (*DocTxMsgCreateGroup) HandleTxMsg

func (m *DocTxMsgCreateGroup) HandleTxMsg(v SdkMsg) MsgDocInfo

type DocTxMsgCreateGroupPolicy

type DocTxMsgCreateGroupPolicy struct {
	Admin          string      `bson:"admin"`
	GroupId        uint64      `bson:"group_id"`
	Metadata       string      `bson:"metadata"`
	DecisionPolicy interface{} `bson:"decision_policy"`
}

func (*DocTxMsgCreateGroupPolicy) BuildMsg

func (m *DocTxMsgCreateGroupPolicy) BuildMsg(txMsg interface{})

func (*DocTxMsgCreateGroupPolicy) GetType

func (m *DocTxMsgCreateGroupPolicy) GetType() string

func (*DocTxMsgCreateGroupPolicy) HandleTxMsg

func (m *DocTxMsgCreateGroupPolicy) HandleTxMsg(v SdkMsg) MsgDocInfo

type DocTxMsgCreateGroupWithPolicy

type DocTxMsgCreateGroupWithPolicy struct {
	Admin               string          `bson:"admin"`
	Members             []MemberRequest `bson:"members"`
	GroupMetadata       string          `bson:"group_metadata"`
	GroupPolicyMetadata string          `bson:"group_policy_metadata"`
	GroupPolicyAsAdmin  bool            `bson:"group_policy_as_admin"`
	DecisionPolicy      interface{}     `bson:"decision_policy"`
}

func (*DocTxMsgCreateGroupWithPolicy) BuildMsg

func (m *DocTxMsgCreateGroupWithPolicy) BuildMsg(txMsg interface{})

func (*DocTxMsgCreateGroupWithPolicy) GetType

func (*DocTxMsgCreateGroupWithPolicy) HandleTxMsg

func (m *DocTxMsgCreateGroupWithPolicy) HandleTxMsg(v SdkMsg) MsgDocInfo

type DocTxMsgGroupExec

type DocTxMsgGroupExec struct {
	ProposalId uint64 `bson:"proposal_id"`
	Executor   string `bson:"executor"`
}

func (*DocTxMsgGroupExec) BuildMsg

func (m *DocTxMsgGroupExec) BuildMsg(txMsg interface{})

func (*DocTxMsgGroupExec) GetType

func (m *DocTxMsgGroupExec) GetType() string

func (*DocTxMsgGroupExec) HandleTxMsg

func (m *DocTxMsgGroupExec) HandleTxMsg(v SdkMsg) MsgDocInfo

type DocTxMsgGroupSubmitProposal

type DocTxMsgGroupSubmitProposal struct {
	GroupPolicyAddress string      `bson:"group_policy_address"`
	Proposers          []string    `bson:"proposers"`
	Metadata           string      `bson:"metadata"`
	Messages           interface{} `bson:"messages"`
	Exec               int32       `bson:"exec"`
}

func (*DocTxMsgGroupSubmitProposal) BuildMsg

func (m *DocTxMsgGroupSubmitProposal) BuildMsg(txMsg interface{})

func (*DocTxMsgGroupSubmitProposal) GetType

func (m *DocTxMsgGroupSubmitProposal) GetType() string

func (*DocTxMsgGroupSubmitProposal) HandleTxMsg

func (m *DocTxMsgGroupSubmitProposal) HandleTxMsg(v SdkMsg) MsgDocInfo

type DocTxMsgGroupVote

type DocTxMsgGroupVote struct {
	ProposalId uint64 `bson:"proposal_id"`
	Voter      string `bson:"voter"`
	Option     int32  `bson:"option"`
	Metadata   string `bson:"metadata"`
	Exec       int32  `bson:"exec"`
}

func (*DocTxMsgGroupVote) BuildMsg

func (m *DocTxMsgGroupVote) BuildMsg(txMsg interface{})

func (*DocTxMsgGroupVote) GetType

func (m *DocTxMsgGroupVote) GetType() string

func (*DocTxMsgGroupVote) HandleTxMsg

func (m *DocTxMsgGroupVote) HandleTxMsg(v SdkMsg) MsgDocInfo

type DocTxMsgLeaveGroup

type DocTxMsgLeaveGroup struct {
	Address string `bson:"address"`
	GroupId uint64 `bson:"group_id"`
}

func (*DocTxMsgLeaveGroup) BuildMsg

func (m *DocTxMsgLeaveGroup) BuildMsg(txMsg interface{})

func (*DocTxMsgLeaveGroup) GetType

func (m *DocTxMsgLeaveGroup) GetType() string

func (*DocTxMsgLeaveGroup) HandleTxMsg

func (m *DocTxMsgLeaveGroup) HandleTxMsg(v SdkMsg) MsgDocInfo

type DocTxMsgUpdateGroupAdmin

type DocTxMsgUpdateGroupAdmin struct {
	Admin    string `bson:"admin"`
	GroupId  uint64 `bson:"group_id"`
	NewAdmin string `bson:"new_admin"`
}

func (*DocTxMsgUpdateGroupAdmin) BuildMsg

func (m *DocTxMsgUpdateGroupAdmin) BuildMsg(txMsg interface{})

func (*DocTxMsgUpdateGroupAdmin) GetType

func (m *DocTxMsgUpdateGroupAdmin) GetType() string

func (*DocTxMsgUpdateGroupAdmin) HandleTxMsg

func (m *DocTxMsgUpdateGroupAdmin) HandleTxMsg(v SdkMsg) MsgDocInfo

type DocTxMsgUpdateGroupMembers

type DocTxMsgUpdateGroupMembers struct {
	Admin         string          `bson:"admin"`
	GroupId       uint64          `bson:"group_id"`
	MemberUpdates []MemberRequest `bson:"member_updates"`
}

func (*DocTxMsgUpdateGroupMembers) BuildMsg

func (m *DocTxMsgUpdateGroupMembers) BuildMsg(txMsg interface{})

func (*DocTxMsgUpdateGroupMembers) GetType

func (m *DocTxMsgUpdateGroupMembers) GetType() string

func (*DocTxMsgUpdateGroupMembers) HandleTxMsg

func (m *DocTxMsgUpdateGroupMembers) HandleTxMsg(v SdkMsg) MsgDocInfo

type DocTxMsgUpdateGroupMetadata

type DocTxMsgUpdateGroupMetadata struct {
	Admin    string `bson:"admin"`
	GroupId  uint64 `bson:"group_id"`
	Metadata string `bson:"metadata"`
}

func (*DocTxMsgUpdateGroupMetadata) BuildMsg

func (m *DocTxMsgUpdateGroupMetadata) BuildMsg(txMsg interface{})

func (*DocTxMsgUpdateGroupMetadata) GetType

func (m *DocTxMsgUpdateGroupMetadata) GetType() string

func (*DocTxMsgUpdateGroupMetadata) HandleTxMsg

func (m *DocTxMsgUpdateGroupMetadata) HandleTxMsg(v SdkMsg) MsgDocInfo

type DocTxMsgUpdateGroupPolicyAdmin

type DocTxMsgUpdateGroupPolicyAdmin struct {
	Admin              string `bson:"admin"`
	GroupPolicyAddress string `bson:"group_policy_address"`
	NewAdmin           string `bson:"new_admin"`
}

func (*DocTxMsgUpdateGroupPolicyAdmin) BuildMsg

func (m *DocTxMsgUpdateGroupPolicyAdmin) BuildMsg(txMsg interface{})

func (*DocTxMsgUpdateGroupPolicyAdmin) GetType

func (*DocTxMsgUpdateGroupPolicyAdmin) HandleTxMsg

func (m *DocTxMsgUpdateGroupPolicyAdmin) HandleTxMsg(v SdkMsg) MsgDocInfo

type DocTxMsgUpdateGroupPolicyDecisionPolicy

type DocTxMsgUpdateGroupPolicyDecisionPolicy struct {
	Admin              string      `bson:"admin"`
	GroupPolicyAddress string      `bson:"group_policy_address"`
	DecisionPolicy     interface{} `bson:"decision_policy"`
}

func (*DocTxMsgUpdateGroupPolicyDecisionPolicy) BuildMsg

func (m *DocTxMsgUpdateGroupPolicyDecisionPolicy) BuildMsg(txMsg interface{})

func (*DocTxMsgUpdateGroupPolicyDecisionPolicy) GetType

func (*DocTxMsgUpdateGroupPolicyDecisionPolicy) HandleTxMsg

func (m *DocTxMsgUpdateGroupPolicyDecisionPolicy) HandleTxMsg(v SdkMsg) MsgDocInfo

type DocTxMsgUpdateGroupPolicyMetadata

type DocTxMsgUpdateGroupPolicyMetadata struct {
	Admin              string `bson:"admin"`
	GroupPolicyAddress string `bson:"group_policy_address"`
	Metadata           string `bson:"metadata"`
}

func (*DocTxMsgUpdateGroupPolicyMetadata) BuildMsg

func (m *DocTxMsgUpdateGroupPolicyMetadata) BuildMsg(txMsg interface{})

func (*DocTxMsgUpdateGroupPolicyMetadata) GetType

func (*DocTxMsgUpdateGroupPolicyMetadata) HandleTxMsg

func (m *DocTxMsgUpdateGroupPolicyMetadata) HandleTxMsg(v SdkMsg) MsgDocInfo

type DocTxMsgWithdrawProposal

type DocTxMsgWithdrawProposal struct {
	ProposalId uint64 `bson:"proposal_id"`
	Address    string `bson:"address"`
}

func (*DocTxMsgWithdrawProposal) BuildMsg

func (m *DocTxMsgWithdrawProposal) BuildMsg(txMsg interface{})

func (*DocTxMsgWithdrawProposal) GetType

func (m *DocTxMsgWithdrawProposal) GetType() string

func (*DocTxMsgWithdrawProposal) HandleTxMsg

func (m *DocTxMsgWithdrawProposal) HandleTxMsg(v SdkMsg) MsgDocInfo

type GroupClient

type GroupClient struct {
}

func NewClient

func NewClient() GroupClient

func (GroupClient) HandleTxMsg

func (params GroupClient) HandleTxMsg(v types.Msg) (MsgDocInfo, bool)

type MemberRequest

type MemberRequest struct {
	Address  string `bson:"address"`
	Weight   string `bson:"weight"`
	Metadata string `bson:"metadata"`
}

Jump to

Keyboard shortcuts

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