Documentation ¶
Index ¶
- type DocTxMsgCreateGroup
- type DocTxMsgCreateGroupPolicy
- type DocTxMsgCreateGroupWithPolicy
- type DocTxMsgGroupExec
- type DocTxMsgGroupSubmitProposal
- type DocTxMsgGroupVote
- type DocTxMsgLeaveGroup
- type DocTxMsgUpdateGroupAdmin
- type DocTxMsgUpdateGroupMembers
- type DocTxMsgUpdateGroupMetadata
- type DocTxMsgUpdateGroupPolicyAdmin
- type DocTxMsgUpdateGroupPolicyDecisionPolicy
- type DocTxMsgUpdateGroupPolicyMetadata
- type DocTxMsgWithdrawProposal
- type GroupClient
- type MemberRequest
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 (m *DocTxMsgCreateGroupWithPolicy) GetType() string
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 ¶
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 (m *DocTxMsgUpdateGroupPolicyAdmin) GetType() string
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 (m *DocTxMsgUpdateGroupPolicyDecisionPolicy) GetType() string
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 (m *DocTxMsgUpdateGroupPolicyMetadata) GetType() string
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 ¶
Source Files ¶
- codec.go
- create_group.go
- create_group_policy.go
- create_group_with_policy.go
- exec.go
- group.go
- leave_group.go
- submit_proposal.go
- update_group_admin.go
- update_group_members.go
- update_group_metadata.go
- update_group_policy_admin.go
- update_group_policy_decision_policy.go
- update_group_policy_metadata.go
- vote.go
- withdraw_proposal.go
Click to show internal directories.
Click to hide internal directories.