types

package
v3.0.0-rc0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: GPL-3.0 Imports: 39 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	EventTypeActivate               = "activate"
	EventTypeInactiveStatus         = "inactive_status"
	EventTypeGroupTransition        = "group_transition"
	EventTypeGroupTransitionSuccess = "group_transition_success"
	EventTypeGroupTransitionFailed  = "group_transition_failed"
	EventTypeSigningRequestCreated  = "bandtss_signing_request_created"
	EventTypeCreateSigningFailed    = "create_signing_failed"
	EventTypeMemberDeleted          = "member_deleted"

	AttributeKeyAddress                = "address"
	AttributeKeySigningID              = "bandtss_signing_id"
	AttributeKeyCurrentGroupID         = "current_group_id"
	AttributeKeyIncomingGroupID        = "incoming_group_id"
	AttributeKeyCurrentGroupSigningID  = "current_group_signing_id"
	AttributeKeyIncomingGroupSigningID = "incoming_group_signing_id"
	AttributeKeyTransitionStatus       = "transition_status"
	AttributeKeyExecTime               = "exec_time"
	AttributeKeyGroupID                = "group_id"
	AttributeKeyIncomingGroupPubKey    = "incoming_group_pub_key"
	AttributeKeyCurrentGroupPubKey     = "current_group_pub_key"
	AttributeKeyRandomAddress          = "random_address"
	AttributeKeySignature              = "signature"
	AttributeKeyTotalFee               = "total_fee"
	AttributeKeySigningErrReason       = "signing_error_reason"
	AttributeKeySigningErrCode         = "signing_error_code"
	AttributeKeySigningErrCodespace    = "signing_error_codespace"
)
View Source
const (
	// module name
	ModuleName = "bandtss"

	// StoreKey to be used when creating the KVStore.
	StoreKey = ModuleName

	// RouterKey is the message route for the bandtss module
	RouterKey = ModuleName

	// QuerierRoute is the querier route for the bandtss module
	QuerierRoute = ModuleName
)
View Source
const (
	DefaultInactivePenaltyDuration time.Duration = time.Minute * 10   // 10 minutes
	DefaultMinTransitionDuration   time.Duration = time.Hour * 24     // 1 days
	DefaultMaxTransitionDuration   time.Duration = time.Hour * 24 * 7 // 7 days
	// compute the bandtss reward following the allocation to Oracle. If the Oracle reward amounts to 70%,
	// the bandtss reward will be determined from the remaining 10%, which is 10% * 30% = 3%.
	DefaultRewardPercentage = uint64(10)
)
View Source
const GroupTransitionPath = "transition"

GroupTransitionPath is the reserved path for transition group msg

Variables

View Source
var (
	ErrInvalidLengthBandtss        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowBandtss          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupBandtss = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrPenaltyDurationNotElapsed = errorsmod.Register(ModuleName, 2, "not allowed to activate due to penalty duration")
	ErrFeeExceedsLimit           = errorsmod.Register(ModuleName, 3, "fee exceeds limit")
	ErrNoCurrentGroup            = errorsmod.Register(ModuleName, 4, "no current group")
	ErrTransitionInProgress      = errorsmod.Register(ModuleName, 5, "group transition is in progress")
	ErrInvalidExecTime           = errorsmod.Register(ModuleName, 6, "invalid exec time")
	ErrSigningNotFound           = errorsmod.Register(ModuleName, 7, "signing not found")
	ErrMemberNotFound            = errorsmod.Register(ModuleName, 8, "member not found")
	ErrMemberAlreadyExists       = errorsmod.Register(ModuleName, 9, "member already exists")
	ErrMemberAlreadyActive       = errorsmod.Register(ModuleName, 10, "member already active")
	ErrMemberDuplicated          = errorsmod.Register(ModuleName, 11, "duplicated member found within the list")
	ErrInvalidThreshold          = errorsmod.Register(ModuleName, 12, "invalid threshold number")
	ErrContentNotAllowed         = errorsmod.Register(ModuleName, 13, "content not allowed")
	ErrInvalidIncomingGroup      = errorsmod.Register(ModuleName, 14, "invalid incoming group")
	ErrNoActiveGroup             = errorsmod.Register(ModuleName, 15, "no active group supported")
	ErrNoIncomingGroup           = errorsmod.Register(ModuleName, 16, "no incoming group")
	ErrInvalidGroupID            = errorsmod.Register(ModuleName, 17, "invalid group ID")
	ErrInvalidMember             = errorsmod.Register(ModuleName, 18, "invalid member")
)

x/bandtss module sentinel errors

View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	// global store keys
	SigningCountStoreKey    = []byte{0x00}
	CurrentGroupStoreKey    = []byte{0x01}
	GroupTransitionStoreKey = []byte{0x02}

	// store prefixes
	MemberStoreKeyPrefix           = []byte{0x10}
	SigningInfoStoreKeyPrefix      = []byte{0x11}
	SigningIDMappingStoreKeyPrefix = []byte{0x12}

	// param store key
	ParamsKey = []byte{0x90}
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var DefaultFeePerSigner = sdk.NewCoins(sdk.NewInt64Coin("uband", 10))

DefaultFeePerSigner is the default value for the signing request fee. The value is ["10uband"]

View Source
var MemberStatusFilter_name = map[int32]string{
	0: "MEMBER_STATUS_FILTER_UNSPECIFIED",
	1: "MEMBER_STATUS_FILTER_ACTIVE",
	2: "MEMBER_STATUS_FILTER_INACTIVE",
}
View Source
var MemberStatusFilter_value = map[string]int32{
	"MEMBER_STATUS_FILTER_UNSPECIFIED": 0,
	"MEMBER_STATUS_FILTER_ACTIVE":      1,
	"MEMBER_STATUS_FILTER_INACTIVE":    2,
}
View Source
var TransitionStatus_name = map[int32]string{
	0: "TRANSITION_STATUS_UNSPECIFIED",
	1: "TRANSITION_STATUS_CREATING_GROUP",
	2: "TRANSITION_STATUS_WAITING_SIGN",
	3: "TRANSITION_STATUS_WAITING_EXECUTION",
}
View Source
var TransitionStatus_value = map[string]int32{
	"TRANSITION_STATUS_UNSPECIFIED":       0,
	"TRANSITION_STATUS_CREATING_GROUP":    1,
	"TRANSITION_STATUS_WAITING_SIGN":      2,
	"TRANSITION_STATUS_WAITING_EXECUTION": 3,
}

Functions

func MemberStoreKey

func MemberStoreKey(address sdk.AccAddress, groupID tss.GroupID) []byte

MemberStoreKey returns the key for storing the member information.

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

RegisterInterfaces registers the x/tss interfaces types with the interface registry

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterLegacyAminoCodec registers the necessary x/bandtss interfaces and concrete types on the provided LegacyAmino codec. These types are used for Amino JSON serialization.

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterQueryHandlerClient

func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error

RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.

func RegisterQueryHandlerFromEndpoint

func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterQueryHandlerServer

func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error

RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func SigningIDMappingStoreKey

func SigningIDMappingStoreKey(id tss.SigningID) []byte

SigningIDMappingStoreKey returns the key for storing the tss signing ID mapping.

func SigningInfoStoreKey

func SigningInfoStoreKey(id SigningID) []byte

SigningInfoStoreKey returns the key for storing the bandtss signing info.

Types

type AccountKeeper

type AccountKeeper interface {
	GetModuleAddress(name string) sdk.AccAddress
	GetModuleAccount(ctx context.Context, name string) sdk.ModuleAccountI
	SetModuleAccount(context.Context, sdk.ModuleAccountI)
}

AccountKeeper defines the expected account keeper (noalias)

type BankKeeper

type BankKeeper interface {
	GetAllBalances(ctx context.Context, addr sdk.AccAddress) sdk.Coins

	SendCoinsFromModuleToAccount(
		ctx context.Context,
		senderModule string,
		recipientAddr sdk.AccAddress,
		amt sdk.Coins,
	) error
	SendCoinsFromAccountToModule(
		ctx context.Context,
		senderAddr sdk.AccAddress,
		recipientModule string,
		amt sdk.Coins,
	) error
	SendCoinsFromModuleToModule(ctx context.Context, senderModule, recipientModule string, amt sdk.Coins) error
}

BankKeeper defines the expected interface needed to retrieve account balances.

type CurrentGroup

type CurrentGroup struct {
	// group_id is the ID of the current group.
	GroupID github_com_bandprotocol_chain_v3_pkg_tss.GroupID `` /* 141-byte string literal not displayed */
	// active_time is the timestamp at which the group becomes the current group of the module.
	ActiveTime time.Time `protobuf:"bytes,2,opt,name=active_time,json=activeTime,proto3,stdtime" json:"active_time"`
}

CuurentGroup is a bandtss current group information.

func NewCurrentGroup

func NewCurrentGroup(id tss.GroupID, activeTime time.Time) CurrentGroup

NewCurrentGroup creates a new current group object.

func (*CurrentGroup) Descriptor

func (*CurrentGroup) Descriptor() ([]byte, []int)

func (*CurrentGroup) Equal

func (this *CurrentGroup) Equal(that interface{}) bool

func (*CurrentGroup) GetActiveTime

func (m *CurrentGroup) GetActiveTime() time.Time

func (*CurrentGroup) GetGroupID

func (*CurrentGroup) Marshal

func (m *CurrentGroup) Marshal() (dAtA []byte, err error)

func (*CurrentGroup) MarshalTo

func (m *CurrentGroup) MarshalTo(dAtA []byte) (int, error)

func (*CurrentGroup) MarshalToSizedBuffer

func (m *CurrentGroup) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CurrentGroup) ProtoMessage

func (*CurrentGroup) ProtoMessage()

func (*CurrentGroup) Reset

func (m *CurrentGroup) Reset()

func (*CurrentGroup) Size

func (m *CurrentGroup) Size() (n int)

func (*CurrentGroup) String

func (m *CurrentGroup) String() string

func (*CurrentGroup) Unmarshal

func (m *CurrentGroup) Unmarshal(dAtA []byte) error

func (*CurrentGroup) XXX_DiscardUnknown

func (m *CurrentGroup) XXX_DiscardUnknown()

func (*CurrentGroup) XXX_Marshal

func (m *CurrentGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CurrentGroup) XXX_Merge

func (m *CurrentGroup) XXX_Merge(src proto.Message)

func (*CurrentGroup) XXX_Size

func (m *CurrentGroup) XXX_Size() int

func (*CurrentGroup) XXX_Unmarshal

func (m *CurrentGroup) XXX_Unmarshal(b []byte) error

type DistrKeeper

type DistrKeeper interface {
	GetCommunityTax(ctx context.Context) (math.LegacyDec, error)
	FundCommunityPool(ctx context.Context, amount sdk.Coins, sender sdk.AccAddress) error
}

DistrKeeper defines the expected distribution keeper.

type GenesisState

type GenesisState struct {
	// params defines all the paramiters of the module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	// members is an array containing members information.
	Members []Member `protobuf:"bytes,2,rep,name=members,proto3" json:"members"`
	// current_group is the current group information.
	CurrentGroup CurrentGroup `protobuf:"bytes,3,opt,name=current_group,json=currentGroup,proto3" json:"current_group"`
}

GenesisState defines the bandtss module's genesis state.

func DefaultGenesisState

func DefaultGenesisState() *GenesisState

DefaultGenesisState returns the default genesis state.

func NewGenesisState

func NewGenesisState(
	params Params,
	members []Member,
	currentGroup CurrentGroup,
) *GenesisState

NewGenesisState creates a new GenesisState instance.

func (*GenesisState) Descriptor

func (*GenesisState) Descriptor() ([]byte, []int)

func (*GenesisState) GetCurrentGroup

func (m *GenesisState) GetCurrentGroup() CurrentGroup

func (*GenesisState) GetMembers

func (m *GenesisState) GetMembers() []Member

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) Marshal

func (m *GenesisState) Marshal() (dAtA []byte, err error)

func (*GenesisState) MarshalTo

func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)

func (*GenesisState) MarshalToSizedBuffer

func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

func (m *GenesisState) Size() (n int)

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

func (m *GenesisState) Unmarshal(dAtA []byte) error

func (GenesisState) Validate

func (gs GenesisState) Validate() error

Validate performs basic validation of genesis data returning an error for any failed validation criteria.

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GenesisState) XXX_Merge

func (m *GenesisState) XXX_Merge(src proto.Message)

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

func (m *GenesisState) XXX_Unmarshal(b []byte) error

type GroupTransition

type GroupTransition struct {
	// signing_id is a tss signing ID of group transition signing request.
	SigningID github_com_bandprotocol_chain_v3_pkg_tss.SigningID `` /* 149-byte string literal not displayed */
	// current_group_id is the ID of the group that will be replaced.
	CurrentGroupID github_com_bandprotocol_chain_v3_pkg_tss.GroupID `` /* 164-byte string literal not displayed */
	// current_group_pub_key is the public key pair that used for sign & verify transition group msg.
	CurrentGroupPubKey github_com_bandprotocol_chain_v3_pkg_tss.Point `` /* 175-byte string literal not displayed */
	// new_group_id is the ID of the new group that be a new key candidate.
	IncomingGroupID github_com_bandprotocol_chain_v3_pkg_tss.GroupID `` /* 167-byte string literal not displayed */
	// incoming_group_pub_key is the public key of the group that will be the next key of this group
	IncomingGroupPubKey github_com_bandprotocol_chain_v3_pkg_tss.Point `` /* 178-byte string literal not displayed */
	// status is an enumeration of the possible statuses of a group transition process.
	Status TransitionStatus `protobuf:"varint,6,opt,name=status,proto3,enum=band.bandtss.v1beta1.TransitionStatus" json:"status,omitempty"`
	// exec_time is the time when the transition will be executed.
	ExecTime time.Time `protobuf:"bytes,7,opt,name=exec_time,json=execTime,proto3,stdtime" json:"exec_time"`
	// is_force_transition is a flag to indicate whether the current group signs the transition message
	// before the transition is executed or not.
	IsForceTransition bool `protobuf:"varint,8,opt,name=is_force_transition,json=isForceTransition,proto3" json:"is_force_transition,omitempty"`
}

GroupTransition defines the group transition information of the current group and incoming group.

func NewGroupTransition

func NewGroupTransition(
	signingID tss.SigningID,
	currentGroupID tss.GroupID,
	incomingGroupID tss.GroupID,
	currentGroupPubKey tss.Point,
	incomingGroupPubKey tss.Point,
	status TransitionStatus,
	execTime time.Time,
	isForceTransition bool,
) GroupTransition

NewGroupTransition creates a transition object.

func (*GroupTransition) Descriptor

func (*GroupTransition) Descriptor() ([]byte, []int)

func (*GroupTransition) Equal

func (this *GroupTransition) Equal(that interface{}) bool

func (*GroupTransition) GetCurrentGroupID

func (*GroupTransition) GetCurrentGroupPubKey

func (*GroupTransition) GetExecTime

func (m *GroupTransition) GetExecTime() time.Time

func (*GroupTransition) GetIncomingGroupID

func (*GroupTransition) GetIncomingGroupPubKey

func (*GroupTransition) GetIsForceTransition

func (m *GroupTransition) GetIsForceTransition() bool

func (*GroupTransition) GetSigningID

func (*GroupTransition) GetStatus

func (m *GroupTransition) GetStatus() TransitionStatus

func (*GroupTransition) Marshal

func (m *GroupTransition) Marshal() (dAtA []byte, err error)

func (*GroupTransition) MarshalTo

func (m *GroupTransition) MarshalTo(dAtA []byte) (int, error)

func (*GroupTransition) MarshalToSizedBuffer

func (m *GroupTransition) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GroupTransition) ProtoMessage

func (*GroupTransition) ProtoMessage()

func (*GroupTransition) Reset

func (m *GroupTransition) Reset()

func (*GroupTransition) Size

func (m *GroupTransition) Size() (n int)

func (*GroupTransition) String

func (m *GroupTransition) String() string

func (*GroupTransition) Unmarshal

func (m *GroupTransition) Unmarshal(dAtA []byte) error

func (*GroupTransition) XXX_DiscardUnknown

func (m *GroupTransition) XXX_DiscardUnknown()

func (*GroupTransition) XXX_Marshal

func (m *GroupTransition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GroupTransition) XXX_Merge

func (m *GroupTransition) XXX_Merge(src proto.Message)

func (*GroupTransition) XXX_Size

func (m *GroupTransition) XXX_Size() int

func (*GroupTransition) XXX_Unmarshal

func (m *GroupTransition) XXX_Unmarshal(b []byte) error

type GroupTransitionSignatureOrder

type GroupTransitionSignatureOrder struct {
	// pub_key is the public key of new group that the current group needs to be signed.
	PubKey github_com_cometbft_cometbft_libs_bytes.HexBytes `` /* 137-byte string literal not displayed */
	// transition_time is the timestamp at which the transition is executed and the public key is active.
	TransitionTime time.Time `protobuf:"bytes,2,opt,name=transition_time,json=transitionTime,proto3,stdtime" json:"transition_time"`
}

GroupTransitionSignatureOrder defines a general signature order for group transition.

func NewGroupTransitionSignatureOrder

func NewGroupTransitionSignatureOrder(
	pubKey []byte,
	transitionTime time.Time,
) *GroupTransitionSignatureOrder

func (*GroupTransitionSignatureOrder) Descriptor

func (*GroupTransitionSignatureOrder) Descriptor() ([]byte, []int)

func (*GroupTransitionSignatureOrder) Equal

func (this *GroupTransitionSignatureOrder) Equal(that interface{}) bool

func (*GroupTransitionSignatureOrder) GetPubKey

func (*GroupTransitionSignatureOrder) GetTransitionTime

func (m *GroupTransitionSignatureOrder) GetTransitionTime() time.Time

func (*GroupTransitionSignatureOrder) IsInternal

func (rs *GroupTransitionSignatureOrder) IsInternal() bool

IsInternal returns true for GroupTransitionSignatureOrder (internal module-based request signature).

func (*GroupTransitionSignatureOrder) Marshal

func (m *GroupTransitionSignatureOrder) Marshal() (dAtA []byte, err error)

func (*GroupTransitionSignatureOrder) MarshalTo

func (m *GroupTransitionSignatureOrder) MarshalTo(dAtA []byte) (int, error)

func (*GroupTransitionSignatureOrder) MarshalToSizedBuffer

func (m *GroupTransitionSignatureOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GroupTransitionSignatureOrder) OrderRoute

func (rs *GroupTransitionSignatureOrder) OrderRoute() string

OrderRoute returns the order router key

func (*GroupTransitionSignatureOrder) OrderType

func (rs *GroupTransitionSignatureOrder) OrderType() string

OrderType of GroupTransitionSignatureOrder is "transition"

func (*GroupTransitionSignatureOrder) ProtoMessage

func (*GroupTransitionSignatureOrder) ProtoMessage()

func (*GroupTransitionSignatureOrder) Reset

func (m *GroupTransitionSignatureOrder) Reset()

func (*GroupTransitionSignatureOrder) Size

func (m *GroupTransitionSignatureOrder) Size() (n int)

func (*GroupTransitionSignatureOrder) String

func (*GroupTransitionSignatureOrder) Unmarshal

func (m *GroupTransitionSignatureOrder) Unmarshal(dAtA []byte) error

func (*GroupTransitionSignatureOrder) ValidateBasic

func (rs *GroupTransitionSignatureOrder) ValidateBasic() error

ValidateBasic performs no-op for this type

func (*GroupTransitionSignatureOrder) XXX_DiscardUnknown

func (m *GroupTransitionSignatureOrder) XXX_DiscardUnknown()

func (*GroupTransitionSignatureOrder) XXX_Marshal

func (m *GroupTransitionSignatureOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GroupTransitionSignatureOrder) XXX_Merge

func (m *GroupTransitionSignatureOrder) XXX_Merge(src proto.Message)

func (*GroupTransitionSignatureOrder) XXX_Size

func (m *GroupTransitionSignatureOrder) XXX_Size() int

func (*GroupTransitionSignatureOrder) XXX_Unmarshal

func (m *GroupTransitionSignatureOrder) XXX_Unmarshal(b []byte) error

type Member

type Member struct {
	// address is the address of the member.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// group_id is the group ID that the member belongs to.
	GroupID github_com_bandprotocol_chain_v3_pkg_tss.GroupID `` /* 141-byte string literal not displayed */
	// is_active is a flag to indicate whether a member is active or not.
	IsActive bool `protobuf:"varint,3,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"`
	// since is a block timestamp when a member status is changed (from active to inactive or vice versa).
	Since time.Time `protobuf:"bytes,4,opt,name=since,proto3,stdtime" json:"since"`
}

Member maintains member information for monitoring their liveness activity.

func NewMember

func NewMember(
	address sdk.AccAddress,
	groupID tss.GroupID,
	isActive bool,
	since time.Time,
) Member

NewMember creates a new member object.

func (*Member) Descriptor

func (*Member) Descriptor() ([]byte, []int)

func (*Member) Equal

func (this *Member) Equal(that interface{}) bool

func (*Member) GetAddress

func (m *Member) GetAddress() string

func (*Member) GetGroupID

func (*Member) GetIsActive

func (m *Member) GetIsActive() bool

func (*Member) GetSince

func (m *Member) GetSince() time.Time

func (*Member) Marshal

func (m *Member) Marshal() (dAtA []byte, err error)

func (*Member) MarshalTo

func (m *Member) MarshalTo(dAtA []byte) (int, error)

func (*Member) MarshalToSizedBuffer

func (m *Member) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Member) ProtoMessage

func (*Member) ProtoMessage()

func (*Member) Reset

func (m *Member) Reset()

func (*Member) Size

func (m *Member) Size() (n int)

func (*Member) String

func (m *Member) String() string

func (*Member) Unmarshal

func (m *Member) Unmarshal(dAtA []byte) error

func (Member) Validate

func (m Member) Validate() error

Validate performs basic validation of member information.

func (*Member) XXX_DiscardUnknown

func (m *Member) XXX_DiscardUnknown()

func (*Member) XXX_Marshal

func (m *Member) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Member) XXX_Merge

func (m *Member) XXX_Merge(src proto.Message)

func (*Member) XXX_Size

func (m *Member) XXX_Size() int

func (*Member) XXX_Unmarshal

func (m *Member) XXX_Unmarshal(b []byte) error

type MemberStatusFilter

type MemberStatusFilter int32

MemberStatusFilter defines the query options for filtering members by their active status.

const (
	// MEMBER_STATUS_FILTER_UNSPECIFIED defines a filter for unspecified active status.
	MEMBER_STATUS_FILTER_UNSPECIFIED MemberStatusFilter = 0
	// MEMBER_STATUS_FILTER_ACTIVE defines a filter for active status.
	MEMBER_STATUS_FILTER_ACTIVE MemberStatusFilter = 1
	// MEMBER_STATUS_FILTER_INACTIVE defines a filter for inactive status.
	MEMBER_STATUS_FILTER_INACTIVE MemberStatusFilter = 2
)

func (MemberStatusFilter) EnumDescriptor

func (MemberStatusFilter) EnumDescriptor() ([]byte, []int)

func (MemberStatusFilter) String

func (x MemberStatusFilter) String() string

type MsgActivate

type MsgActivate struct {
	// address is the signer of this message, who must be a member of the group.
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	// group_id is the group id of the member.
	GroupID github_com_bandprotocol_chain_v3_pkg_tss.GroupID `` /* 141-byte string literal not displayed */
}

MsgActivate is a message used to activate the status of the sender.

func NewMsgActivate

func NewMsgActivate(sender string, groupID tss.GroupID) *MsgActivate

NewMsgActivate creates a new MsgActivate instance.

func (*MsgActivate) Descriptor

func (*MsgActivate) Descriptor() ([]byte, []int)

func (*MsgActivate) GetGroupID

func (*MsgActivate) GetSender

func (m *MsgActivate) GetSender() string

func (*MsgActivate) Marshal

func (m *MsgActivate) Marshal() (dAtA []byte, err error)

func (*MsgActivate) MarshalTo

func (m *MsgActivate) MarshalTo(dAtA []byte) (int, error)

func (*MsgActivate) MarshalToSizedBuffer

func (m *MsgActivate) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgActivate) ProtoMessage

func (*MsgActivate) ProtoMessage()

func (*MsgActivate) Reset

func (m *MsgActivate) Reset()

func (*MsgActivate) Size

func (m *MsgActivate) Size() (n int)

func (*MsgActivate) String

func (m *MsgActivate) String() string

func (*MsgActivate) Unmarshal

func (m *MsgActivate) Unmarshal(dAtA []byte) error

func (MsgActivate) ValidateBasic

func (m MsgActivate) ValidateBasic() error

ValidateBasic does a sanity check on the provided data

func (*MsgActivate) XXX_DiscardUnknown

func (m *MsgActivate) XXX_DiscardUnknown()

func (*MsgActivate) XXX_Marshal

func (m *MsgActivate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgActivate) XXX_Merge

func (m *MsgActivate) XXX_Merge(src proto.Message)

func (*MsgActivate) XXX_Size

func (m *MsgActivate) XXX_Size() int

func (*MsgActivate) XXX_Unmarshal

func (m *MsgActivate) XXX_Unmarshal(b []byte) error

type MsgActivateResponse

type MsgActivateResponse struct {
}

MsgActivateResponse is response data for MsgActivate message

func (*MsgActivateResponse) Descriptor

func (*MsgActivateResponse) Descriptor() ([]byte, []int)

func (*MsgActivateResponse) Marshal

func (m *MsgActivateResponse) Marshal() (dAtA []byte, err error)

func (*MsgActivateResponse) MarshalTo

func (m *MsgActivateResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgActivateResponse) MarshalToSizedBuffer

func (m *MsgActivateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgActivateResponse) ProtoMessage

func (*MsgActivateResponse) ProtoMessage()

func (*MsgActivateResponse) Reset

func (m *MsgActivateResponse) Reset()

func (*MsgActivateResponse) Size

func (m *MsgActivateResponse) Size() (n int)

func (*MsgActivateResponse) String

func (m *MsgActivateResponse) String() string

func (*MsgActivateResponse) Unmarshal

func (m *MsgActivateResponse) Unmarshal(dAtA []byte) error

func (*MsgActivateResponse) XXX_DiscardUnknown

func (m *MsgActivateResponse) XXX_DiscardUnknown()

func (*MsgActivateResponse) XXX_Marshal

func (m *MsgActivateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgActivateResponse) XXX_Merge

func (m *MsgActivateResponse) XXX_Merge(src proto.Message)

func (*MsgActivateResponse) XXX_Size

func (m *MsgActivateResponse) XXX_Size() int

func (*MsgActivateResponse) XXX_Unmarshal

func (m *MsgActivateResponse) XXX_Unmarshal(b []byte) error

type MsgClient

type MsgClient interface {
	// RequestSignature submits a general message to be signed by a specific group.
	RequestSignature(ctx context.Context, in *MsgRequestSignature, opts ...grpc.CallOption) (*MsgRequestSignatureResponse, error)
	// Activate activates the status of the sender.
	Activate(ctx context.Context, in *MsgActivate, opts ...grpc.CallOption) (*MsgActivateResponse, error)
	// UpdateParams updates the x/bandtss parameters.
	UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
	// TransitionGroup creates a request for creating a new group and replacing current group.
	TransitionGroup(ctx context.Context, in *MsgTransitionGroup, opts ...grpc.CallOption) (*MsgTransitionGroupResponse, error)
	// ForceTransitionGroup sets the given group to the incoming group without the signature of a transition
	// message from a current group.
	ForceTransitionGroup(ctx context.Context, in *MsgForceTransitionGroup, opts ...grpc.CallOption) (*MsgForceTransitionGroupResponse, error)
}

MsgClient is the client API for Msg service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewMsgClient

func NewMsgClient(cc grpc1.ClientConn) MsgClient

type MsgForceTransitionGroup

type MsgForceTransitionGroup struct {
	// incoming_group_id is the ID of the group that the module want to transition to.
	IncomingGroupID github_com_bandprotocol_chain_v3_pkg_tss.GroupID `` /* 167-byte string literal not displayed */
	// exec_time is the time that will be substituted in place of the group.
	ExecTime time.Time `protobuf:"bytes,2,opt,name=exec_time,json=execTime,proto3,stdtime" json:"exec_time"`
	// authority is the address that controls the module (defaults to x/gov unless overwritten).
	Authority string `protobuf:"bytes,3,opt,name=authority,proto3" json:"authority,omitempty"`
}

MsgForceTransitionGroup is the Msg/ForceTransitionGroup request type.

func NewMsgForceTransitionGroup

func NewMsgForceTransitionGroup(
	incomingGroupID tss.GroupID,
	execTime time.Time,
	authority string,
) *MsgForceTransitionGroup

NewMsgForceTransitionGroup creates a new MsgForceTransitionGroup instance.

func (*MsgForceTransitionGroup) Descriptor

func (*MsgForceTransitionGroup) Descriptor() ([]byte, []int)

func (*MsgForceTransitionGroup) GetAuthority

func (m *MsgForceTransitionGroup) GetAuthority() string

func (*MsgForceTransitionGroup) GetExecTime

func (m *MsgForceTransitionGroup) GetExecTime() time.Time

func (*MsgForceTransitionGroup) GetIncomingGroupID

func (*MsgForceTransitionGroup) Marshal

func (m *MsgForceTransitionGroup) Marshal() (dAtA []byte, err error)

func (*MsgForceTransitionGroup) MarshalTo

func (m *MsgForceTransitionGroup) MarshalTo(dAtA []byte) (int, error)

func (*MsgForceTransitionGroup) MarshalToSizedBuffer

func (m *MsgForceTransitionGroup) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgForceTransitionGroup) ProtoMessage

func (*MsgForceTransitionGroup) ProtoMessage()

func (*MsgForceTransitionGroup) Reset

func (m *MsgForceTransitionGroup) Reset()

func (*MsgForceTransitionGroup) Size

func (m *MsgForceTransitionGroup) Size() (n int)

func (*MsgForceTransitionGroup) String

func (m *MsgForceTransitionGroup) String() string

func (*MsgForceTransitionGroup) Unmarshal

func (m *MsgForceTransitionGroup) Unmarshal(dAtA []byte) error

func (MsgForceTransitionGroup) ValidateBasic

func (m MsgForceTransitionGroup) ValidateBasic() error

ValidateBasic does a sanity check on the provided data

func (*MsgForceTransitionGroup) XXX_DiscardUnknown

func (m *MsgForceTransitionGroup) XXX_DiscardUnknown()

func (*MsgForceTransitionGroup) XXX_Marshal

func (m *MsgForceTransitionGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgForceTransitionGroup) XXX_Merge

func (m *MsgForceTransitionGroup) XXX_Merge(src proto.Message)

func (*MsgForceTransitionGroup) XXX_Size

func (m *MsgForceTransitionGroup) XXX_Size() int

func (*MsgForceTransitionGroup) XXX_Unmarshal

func (m *MsgForceTransitionGroup) XXX_Unmarshal(b []byte) error

type MsgForceTransitionGroupResponse

type MsgForceTransitionGroupResponse struct {
}

MsgForceTransitionGroupResponse is the Msg/ForceTransitionGroup response type.

func (*MsgForceTransitionGroupResponse) Descriptor

func (*MsgForceTransitionGroupResponse) Descriptor() ([]byte, []int)

func (*MsgForceTransitionGroupResponse) Marshal

func (m *MsgForceTransitionGroupResponse) Marshal() (dAtA []byte, err error)

func (*MsgForceTransitionGroupResponse) MarshalTo

func (m *MsgForceTransitionGroupResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgForceTransitionGroupResponse) MarshalToSizedBuffer

func (m *MsgForceTransitionGroupResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgForceTransitionGroupResponse) ProtoMessage

func (*MsgForceTransitionGroupResponse) ProtoMessage()

func (*MsgForceTransitionGroupResponse) Reset

func (*MsgForceTransitionGroupResponse) Size

func (m *MsgForceTransitionGroupResponse) Size() (n int)

func (*MsgForceTransitionGroupResponse) String

func (*MsgForceTransitionGroupResponse) Unmarshal

func (m *MsgForceTransitionGroupResponse) Unmarshal(dAtA []byte) error

func (*MsgForceTransitionGroupResponse) XXX_DiscardUnknown

func (m *MsgForceTransitionGroupResponse) XXX_DiscardUnknown()

func (*MsgForceTransitionGroupResponse) XXX_Marshal

func (m *MsgForceTransitionGroupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgForceTransitionGroupResponse) XXX_Merge

func (m *MsgForceTransitionGroupResponse) XXX_Merge(src proto.Message)

func (*MsgForceTransitionGroupResponse) XXX_Size

func (m *MsgForceTransitionGroupResponse) XXX_Size() int

func (*MsgForceTransitionGroupResponse) XXX_Unmarshal

func (m *MsgForceTransitionGroupResponse) XXX_Unmarshal(b []byte) error

type MsgRequestSignature

type MsgRequestSignature struct {
	// content is the signature order of this request signature message.
	Content *types.Any `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
	// memo is the additional note of the message.
	Memo string `protobuf:"bytes,2,opt,name=memo,proto3" json:"memo,omitempty"`
	// fee_limit is the maximum tokens that will be paid for this request.
	FeeLimit github_com_cosmos_cosmos_sdk_types.Coins `` /* 129-byte string literal not displayed */
	// sender is the requester of the signing process.
	Sender string `protobuf:"bytes,4,opt,name=sender,proto3" json:"sender,omitempty"`
}

MsgRequestSignature is a request message used for initiating the signing process.

func NewMsgRequestSignature

func NewMsgRequestSignature(
	content tsstypes.Content,
	feeLimit sdk.Coins,
	sender string,
) (*MsgRequestSignature, error)

NewMsgRequestSignature creates a new MsgRequestSignature.

func (*MsgRequestSignature) Descriptor

func (*MsgRequestSignature) Descriptor() ([]byte, []int)

func (*MsgRequestSignature) GetContent

func (m *MsgRequestSignature) GetContent() tsstypes.Content

GetContent returns the content of MsgRequestSignature.

func (*MsgRequestSignature) Marshal

func (m *MsgRequestSignature) Marshal() (dAtA []byte, err error)

func (*MsgRequestSignature) MarshalTo

func (m *MsgRequestSignature) MarshalTo(dAtA []byte) (int, error)

func (*MsgRequestSignature) MarshalToSizedBuffer

func (m *MsgRequestSignature) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgRequestSignature) ProtoMessage

func (*MsgRequestSignature) ProtoMessage()

func (*MsgRequestSignature) Reset

func (m *MsgRequestSignature) Reset()

func (*MsgRequestSignature) SetContent

func (m *MsgRequestSignature) SetContent(content tsstypes.Content) error

SetContent sets the content for MsgRequestSignature.

func (*MsgRequestSignature) Size

func (m *MsgRequestSignature) Size() (n int)

func (*MsgRequestSignature) String

func (m *MsgRequestSignature) String() string

func (*MsgRequestSignature) Unmarshal

func (m *MsgRequestSignature) Unmarshal(dAtA []byte) error

func (MsgRequestSignature) UnpackInterfaces

func (m MsgRequestSignature) UnpackInterfaces(unpacker types.AnyUnpacker) error

UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces

func (MsgRequestSignature) ValidateBasic

func (m MsgRequestSignature) ValidateBasic() error

ValidateBasic does a sanity check on the provided data

func (*MsgRequestSignature) XXX_DiscardUnknown

func (m *MsgRequestSignature) XXX_DiscardUnknown()

func (*MsgRequestSignature) XXX_Marshal

func (m *MsgRequestSignature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgRequestSignature) XXX_Merge

func (m *MsgRequestSignature) XXX_Merge(src proto.Message)

func (*MsgRequestSignature) XXX_Size

func (m *MsgRequestSignature) XXX_Size() int

func (*MsgRequestSignature) XXX_Unmarshal

func (m *MsgRequestSignature) XXX_Unmarshal(b []byte) error

type MsgRequestSignatureResponse

type MsgRequestSignatureResponse struct {
}

MsgRequestSignatureResponse is response data for MsgRequestSignature message

func (*MsgRequestSignatureResponse) Descriptor

func (*MsgRequestSignatureResponse) Descriptor() ([]byte, []int)

func (*MsgRequestSignatureResponse) Marshal

func (m *MsgRequestSignatureResponse) Marshal() (dAtA []byte, err error)

func (*MsgRequestSignatureResponse) MarshalTo

func (m *MsgRequestSignatureResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgRequestSignatureResponse) MarshalToSizedBuffer

func (m *MsgRequestSignatureResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgRequestSignatureResponse) ProtoMessage

func (*MsgRequestSignatureResponse) ProtoMessage()

func (*MsgRequestSignatureResponse) Reset

func (m *MsgRequestSignatureResponse) Reset()

func (*MsgRequestSignatureResponse) Size

func (m *MsgRequestSignatureResponse) Size() (n int)

func (*MsgRequestSignatureResponse) String

func (m *MsgRequestSignatureResponse) String() string

func (*MsgRequestSignatureResponse) Unmarshal

func (m *MsgRequestSignatureResponse) Unmarshal(dAtA []byte) error

func (*MsgRequestSignatureResponse) XXX_DiscardUnknown

func (m *MsgRequestSignatureResponse) XXX_DiscardUnknown()

func (*MsgRequestSignatureResponse) XXX_Marshal

func (m *MsgRequestSignatureResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgRequestSignatureResponse) XXX_Merge

func (m *MsgRequestSignatureResponse) XXX_Merge(src proto.Message)

func (*MsgRequestSignatureResponse) XXX_Size

func (m *MsgRequestSignatureResponse) XXX_Size() int

func (*MsgRequestSignatureResponse) XXX_Unmarshal

func (m *MsgRequestSignatureResponse) XXX_Unmarshal(b []byte) error

type MsgServer

type MsgServer interface {
	// RequestSignature submits a general message to be signed by a specific group.
	RequestSignature(context.Context, *MsgRequestSignature) (*MsgRequestSignatureResponse, error)
	// Activate activates the status of the sender.
	Activate(context.Context, *MsgActivate) (*MsgActivateResponse, error)
	// UpdateParams updates the x/bandtss parameters.
	UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
	// TransitionGroup creates a request for creating a new group and replacing current group.
	TransitionGroup(context.Context, *MsgTransitionGroup) (*MsgTransitionGroupResponse, error)
	// ForceTransitionGroup sets the given group to the incoming group without the signature of a transition
	// message from a current group.
	ForceTransitionGroup(context.Context, *MsgForceTransitionGroup) (*MsgForceTransitionGroupResponse, error)
}

MsgServer is the server API for Msg service.

type MsgTransitionGroup

type MsgTransitionGroup struct {
	// members is a list of members in this group.
	Members []string `protobuf:"bytes,1,rep,name=members,proto3" json:"members,omitempty"`
	// threshold is a minimum number of members required to produce a signature.
	Threshold uint64 `protobuf:"varint,2,opt,name=threshold,proto3" json:"threshold,omitempty"`
	// exec_time is the time that will be substituted in place of the group.
	ExecTime time.Time `protobuf:"bytes,3,opt,name=exec_time,json=execTime,proto3,stdtime" json:"exec_time"`
	// authority is the address that controls the module (defaults to x/gov unless overwritten).
	Authority string `protobuf:"bytes,4,opt,name=authority,proto3" json:"authority,omitempty"`
}

MsgTransitionGroup is the Msg/TransitionGroup request type.

func NewMsgTransitionGroup

func NewMsgTransitionGroup(
	members []string,
	threshold uint64,
	execTime time.Time,
	authority string,
) *MsgTransitionGroup

NewMsgTransitionGroup creates a new MsgTransitionGroup instance.

func (*MsgTransitionGroup) Descriptor

func (*MsgTransitionGroup) Descriptor() ([]byte, []int)

func (*MsgTransitionGroup) GetAuthority

func (m *MsgTransitionGroup) GetAuthority() string

func (*MsgTransitionGroup) GetExecTime

func (m *MsgTransitionGroup) GetExecTime() time.Time

func (*MsgTransitionGroup) GetMembers

func (m *MsgTransitionGroup) GetMembers() []string

func (*MsgTransitionGroup) GetThreshold

func (m *MsgTransitionGroup) GetThreshold() uint64

func (*MsgTransitionGroup) Marshal

func (m *MsgTransitionGroup) Marshal() (dAtA []byte, err error)

func (*MsgTransitionGroup) MarshalTo

func (m *MsgTransitionGroup) MarshalTo(dAtA []byte) (int, error)

func (*MsgTransitionGroup) MarshalToSizedBuffer

func (m *MsgTransitionGroup) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgTransitionGroup) ProtoMessage

func (*MsgTransitionGroup) ProtoMessage()

func (*MsgTransitionGroup) Reset

func (m *MsgTransitionGroup) Reset()

func (*MsgTransitionGroup) Size

func (m *MsgTransitionGroup) Size() (n int)

func (*MsgTransitionGroup) String

func (m *MsgTransitionGroup) String() string

func (*MsgTransitionGroup) Unmarshal

func (m *MsgTransitionGroup) Unmarshal(dAtA []byte) error

func (MsgTransitionGroup) ValidateBasic

func (m MsgTransitionGroup) ValidateBasic() error

ValidateBasic does a sanity check on the provided data

func (*MsgTransitionGroup) XXX_DiscardUnknown

func (m *MsgTransitionGroup) XXX_DiscardUnknown()

func (*MsgTransitionGroup) XXX_Marshal

func (m *MsgTransitionGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgTransitionGroup) XXX_Merge

func (m *MsgTransitionGroup) XXX_Merge(src proto.Message)

func (*MsgTransitionGroup) XXX_Size

func (m *MsgTransitionGroup) XXX_Size() int

func (*MsgTransitionGroup) XXX_Unmarshal

func (m *MsgTransitionGroup) XXX_Unmarshal(b []byte) error

type MsgTransitionGroupResponse

type MsgTransitionGroupResponse struct {
}

MsgTransitionGroupResponse is the Msg/TransitionGroup response type.

func (*MsgTransitionGroupResponse) Descriptor

func (*MsgTransitionGroupResponse) Descriptor() ([]byte, []int)

func (*MsgTransitionGroupResponse) Marshal

func (m *MsgTransitionGroupResponse) Marshal() (dAtA []byte, err error)

func (*MsgTransitionGroupResponse) MarshalTo

func (m *MsgTransitionGroupResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgTransitionGroupResponse) MarshalToSizedBuffer

func (m *MsgTransitionGroupResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgTransitionGroupResponse) ProtoMessage

func (*MsgTransitionGroupResponse) ProtoMessage()

func (*MsgTransitionGroupResponse) Reset

func (m *MsgTransitionGroupResponse) Reset()

func (*MsgTransitionGroupResponse) Size

func (m *MsgTransitionGroupResponse) Size() (n int)

func (*MsgTransitionGroupResponse) String

func (m *MsgTransitionGroupResponse) String() string

func (*MsgTransitionGroupResponse) Unmarshal

func (m *MsgTransitionGroupResponse) Unmarshal(dAtA []byte) error

func (*MsgTransitionGroupResponse) XXX_DiscardUnknown

func (m *MsgTransitionGroupResponse) XXX_DiscardUnknown()

func (*MsgTransitionGroupResponse) XXX_Marshal

func (m *MsgTransitionGroupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgTransitionGroupResponse) XXX_Merge

func (m *MsgTransitionGroupResponse) XXX_Merge(src proto.Message)

func (*MsgTransitionGroupResponse) XXX_Size

func (m *MsgTransitionGroupResponse) XXX_Size() int

func (*MsgTransitionGroupResponse) XXX_Unmarshal

func (m *MsgTransitionGroupResponse) XXX_Unmarshal(b []byte) error

type MsgUpdateParams

type MsgUpdateParams struct {
	// params defines the x/tss parameters to update.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	// authority is the address that controls the module (defaults to x/gov unless overwritten).
	Authority string `protobuf:"bytes,2,opt,name=authority,proto3" json:"authority,omitempty"`
}

MsgUpdateParams is the Msg/UpdateParams request type.

func NewMsgUpdateParams

func NewMsgUpdateParams(authority string, params Params) *MsgUpdateParams

NewMsgUpdateParams creates a new MsgUpdateParams instance

func (*MsgUpdateParams) Descriptor

func (*MsgUpdateParams) Descriptor() ([]byte, []int)

func (*MsgUpdateParams) GetAuthority

func (m *MsgUpdateParams) GetAuthority() string

func (*MsgUpdateParams) GetParams

func (m *MsgUpdateParams) GetParams() Params

func (*MsgUpdateParams) Marshal

func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)

func (*MsgUpdateParams) MarshalTo

func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateParams) MarshalToSizedBuffer

func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateParams) ProtoMessage

func (*MsgUpdateParams) ProtoMessage()

func (*MsgUpdateParams) Reset

func (m *MsgUpdateParams) Reset()

func (*MsgUpdateParams) Size

func (m *MsgUpdateParams) Size() (n int)

func (*MsgUpdateParams) String

func (m *MsgUpdateParams) String() string

func (*MsgUpdateParams) Unmarshal

func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error

func (*MsgUpdateParams) ValidateBasic

func (m *MsgUpdateParams) ValidateBasic() error

ValidateBasic does a sanity check on the provided data.

func (*MsgUpdateParams) XXX_DiscardUnknown

func (m *MsgUpdateParams) XXX_DiscardUnknown()

func (*MsgUpdateParams) XXX_Marshal

func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdateParams) XXX_Merge

func (m *MsgUpdateParams) XXX_Merge(src proto.Message)

func (*MsgUpdateParams) XXX_Size

func (m *MsgUpdateParams) XXX_Size() int

func (*MsgUpdateParams) XXX_Unmarshal

func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error

type MsgUpdateParamsResponse

type MsgUpdateParamsResponse struct {
}

MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.

func (*MsgUpdateParamsResponse) Descriptor

func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)

func (*MsgUpdateParamsResponse) Marshal

func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)

func (*MsgUpdateParamsResponse) MarshalTo

func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateParamsResponse) MarshalToSizedBuffer

func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateParamsResponse) ProtoMessage

func (*MsgUpdateParamsResponse) ProtoMessage()

func (*MsgUpdateParamsResponse) Reset

func (m *MsgUpdateParamsResponse) Reset()

func (*MsgUpdateParamsResponse) Size

func (m *MsgUpdateParamsResponse) Size() (n int)

func (*MsgUpdateParamsResponse) String

func (m *MsgUpdateParamsResponse) String() string

func (*MsgUpdateParamsResponse) Unmarshal

func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error

func (*MsgUpdateParamsResponse) XXX_DiscardUnknown

func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()

func (*MsgUpdateParamsResponse) XXX_Marshal

func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdateParamsResponse) XXX_Merge

func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)

func (*MsgUpdateParamsResponse) XXX_Size

func (m *MsgUpdateParamsResponse) XXX_Size() int

func (*MsgUpdateParamsResponse) XXX_Unmarshal

func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error

type Params

type Params struct {
	// reward_percentage is the percentage of block rewards allocated to active TSS members.
	// The reward proportion is calculated after being allocated to oracle rewards.
	RewardPercentage uint64 `protobuf:"varint,1,opt,name=reward_percentage,json=rewardPercentage,proto3" json:"reward_percentage,omitempty"`
	// inactive_penalty_duration is the duration where a member cannot activate back after being set to inactive.
	InactivePenaltyDuration time.Duration `` /* 134-byte string literal not displayed */
	// min_transition_duration is the minimum duration that the transition process waits before execution.
	MinTransitionDuration time.Duration `` /* 128-byte string literal not displayed */
	// max_transition_duration is the maximum duration that the transition process waits before execution.
	MaxTransitionDuration time.Duration `` /* 128-byte string literal not displayed */
	// fee_per_signer is the tokens that will be paid per signer.
	FeePerSigner github_com_cosmos_cosmos_sdk_types.Coins `` /* 143-byte string literal not displayed */
}

Params defines the set of module parameters.

func DefaultParams

func DefaultParams() Params

DefaultParams returns default parameters

func NewParams

func NewParams(
	rewardPercentage uint64,
	inactivePenaltyDuration time.Duration,
	minTransitionDuration time.Duration,
	maxTransitionDuration time.Duration,
	feePerSigner sdk.Coins,
) Params

NewParams creates a new Params instance

func (*Params) Descriptor

func (*Params) Descriptor() ([]byte, []int)

func (*Params) Equal

func (this *Params) Equal(that interface{}) bool

func (*Params) GetFeePerSigner

func (m *Params) GetFeePerSigner() github_com_cosmos_cosmos_sdk_types.Coins

func (*Params) GetInactivePenaltyDuration

func (m *Params) GetInactivePenaltyDuration() time.Duration

func (*Params) GetMaxTransitionDuration

func (m *Params) GetMaxTransitionDuration() time.Duration

func (*Params) GetMinTransitionDuration

func (m *Params) GetMinTransitionDuration() time.Duration

func (*Params) GetRewardPercentage

func (m *Params) GetRewardPercentage() uint64

func (*Params) Marshal

func (m *Params) Marshal() (dAtA []byte, err error)

func (*Params) MarshalTo

func (m *Params) MarshalTo(dAtA []byte) (int, error)

func (*Params) MarshalToSizedBuffer

func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

func (m *Params) Size() (n int)

func (*Params) String

func (m *Params) String() string

func (*Params) Unmarshal

func (m *Params) Unmarshal(dAtA []byte) error

func (Params) Validate

func (p Params) Validate() error

Validate validates the set of params

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Params) XXX_Merge

func (m *Params) XXX_Merge(src proto.Message)

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

func (m *Params) XXX_Unmarshal(b []byte) error

type QueryClient

type QueryClient interface {
	// Counts queries the number of existing signing.
	Counts(ctx context.Context, in *QueryCountsRequest, opts ...grpc.CallOption) (*QueryCountsResponse, error)
	// Members queries all members.
	Members(ctx context.Context, in *QueryMembersRequest, opts ...grpc.CallOption) (*QueryMembersResponse, error)
	// Member queries the member information of the given address.
	Member(ctx context.Context, in *QueryMemberRequest, opts ...grpc.CallOption) (*QueryMemberResponse, error)
	// CurrentGroup queries the current group information.
	CurrentGroup(ctx context.Context, in *QueryCurrentGroupRequest, opts ...grpc.CallOption) (*QueryCurrentGroupResponse, error)
	// IncomingGroup queries the incoming group information.
	IncomingGroup(ctx context.Context, in *QueryIncomingGroupRequest, opts ...grpc.CallOption) (*QueryIncomingGroupResponse, error)
	// Signing queries the signing result of the given signing request ID.
	Signing(ctx context.Context, in *QuerySigningRequest, opts ...grpc.CallOption) (*QuerySigningResponse, error)
	// GroupTransition queries the group transition information.
	GroupTransition(ctx context.Context, in *QueryGroupTransitionRequest, opts ...grpc.CallOption) (*QueryGroupTransitionResponse, error)
	// Params queries parameters of bandtss module
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
}

QueryClient is the client API for Query service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewQueryClient

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryCountsRequest

type QueryCountsRequest struct {
}

QueryCountsRequest is request type for the Query/Count RPC method.

func (*QueryCountsRequest) Descriptor

func (*QueryCountsRequest) Descriptor() ([]byte, []int)

func (*QueryCountsRequest) Marshal

func (m *QueryCountsRequest) Marshal() (dAtA []byte, err error)

func (*QueryCountsRequest) MarshalTo

func (m *QueryCountsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryCountsRequest) MarshalToSizedBuffer

func (m *QueryCountsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryCountsRequest) ProtoMessage

func (*QueryCountsRequest) ProtoMessage()

func (*QueryCountsRequest) Reset

func (m *QueryCountsRequest) Reset()

func (*QueryCountsRequest) Size

func (m *QueryCountsRequest) Size() (n int)

func (*QueryCountsRequest) String

func (m *QueryCountsRequest) String() string

func (*QueryCountsRequest) Unmarshal

func (m *QueryCountsRequest) Unmarshal(dAtA []byte) error

func (*QueryCountsRequest) XXX_DiscardUnknown

func (m *QueryCountsRequest) XXX_DiscardUnknown()

func (*QueryCountsRequest) XXX_Marshal

func (m *QueryCountsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryCountsRequest) XXX_Merge

func (m *QueryCountsRequest) XXX_Merge(src proto.Message)

func (*QueryCountsRequest) XXX_Size

func (m *QueryCountsRequest) XXX_Size() int

func (*QueryCountsRequest) XXX_Unmarshal

func (m *QueryCountsRequest) XXX_Unmarshal(b []byte) error

type QueryCountsResponse

type QueryCountsResponse struct {
	// signing_count is total number of signing request submitted to bandtss module
	SigningCount uint64 `protobuf:"varint,1,opt,name=signing_count,json=signingCount,proto3" json:"signing_count,omitempty"`
}

QueryCountsResponse is response type for the Query/Count RPC method.

func (*QueryCountsResponse) Descriptor

func (*QueryCountsResponse) Descriptor() ([]byte, []int)

func (*QueryCountsResponse) GetSigningCount

func (m *QueryCountsResponse) GetSigningCount() uint64

func (*QueryCountsResponse) Marshal

func (m *QueryCountsResponse) Marshal() (dAtA []byte, err error)

func (*QueryCountsResponse) MarshalTo

func (m *QueryCountsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryCountsResponse) MarshalToSizedBuffer

func (m *QueryCountsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryCountsResponse) ProtoMessage

func (*QueryCountsResponse) ProtoMessage()

func (*QueryCountsResponse) Reset

func (m *QueryCountsResponse) Reset()

func (*QueryCountsResponse) Size

func (m *QueryCountsResponse) Size() (n int)

func (*QueryCountsResponse) String

func (m *QueryCountsResponse) String() string

func (*QueryCountsResponse) Unmarshal

func (m *QueryCountsResponse) Unmarshal(dAtA []byte) error

func (*QueryCountsResponse) XXX_DiscardUnknown

func (m *QueryCountsResponse) XXX_DiscardUnknown()

func (*QueryCountsResponse) XXX_Marshal

func (m *QueryCountsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryCountsResponse) XXX_Merge

func (m *QueryCountsResponse) XXX_Merge(src proto.Message)

func (*QueryCountsResponse) XXX_Size

func (m *QueryCountsResponse) XXX_Size() int

func (*QueryCountsResponse) XXX_Unmarshal

func (m *QueryCountsResponse) XXX_Unmarshal(b []byte) error

type QueryCurrentGroupRequest

type QueryCurrentGroupRequest struct {
}

QueryCurrentGroupRequest is the request type for the Query/CurrentGroup RPC method.

func (*QueryCurrentGroupRequest) Descriptor

func (*QueryCurrentGroupRequest) Descriptor() ([]byte, []int)

func (*QueryCurrentGroupRequest) Marshal

func (m *QueryCurrentGroupRequest) Marshal() (dAtA []byte, err error)

func (*QueryCurrentGroupRequest) MarshalTo

func (m *QueryCurrentGroupRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryCurrentGroupRequest) MarshalToSizedBuffer

func (m *QueryCurrentGroupRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryCurrentGroupRequest) ProtoMessage

func (*QueryCurrentGroupRequest) ProtoMessage()

func (*QueryCurrentGroupRequest) Reset

func (m *QueryCurrentGroupRequest) Reset()

func (*QueryCurrentGroupRequest) Size

func (m *QueryCurrentGroupRequest) Size() (n int)

func (*QueryCurrentGroupRequest) String

func (m *QueryCurrentGroupRequest) String() string

func (*QueryCurrentGroupRequest) Unmarshal

func (m *QueryCurrentGroupRequest) Unmarshal(dAtA []byte) error

func (*QueryCurrentGroupRequest) XXX_DiscardUnknown

func (m *QueryCurrentGroupRequest) XXX_DiscardUnknown()

func (*QueryCurrentGroupRequest) XXX_Marshal

func (m *QueryCurrentGroupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryCurrentGroupRequest) XXX_Merge

func (m *QueryCurrentGroupRequest) XXX_Merge(src proto.Message)

func (*QueryCurrentGroupRequest) XXX_Size

func (m *QueryCurrentGroupRequest) XXX_Size() int

func (*QueryCurrentGroupRequest) XXX_Unmarshal

func (m *QueryCurrentGroupRequest) XXX_Unmarshal(b []byte) error

type QueryCurrentGroupResponse

type QueryCurrentGroupResponse struct {
	// group_id is the ID of the current group.
	GroupID github_com_bandprotocol_chain_v3_pkg_tss.GroupID `` /* 141-byte string literal not displayed */
	// size is the number of members in the group.
	Size_ uint64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
	// threshold is the minimum number of members needed to generate a valid signature.
	Threshold uint64 `protobuf:"varint,3,opt,name=threshold,proto3" json:"threshold,omitempty"`
	// pub_key is the public key generated by the group.
	PubKey github_com_bandprotocol_chain_v3_pkg_tss.Point `` /* 135-byte string literal not displayed */
	// status is the status of the current group.
	Status types.GroupStatus `protobuf:"varint,5,opt,name=status,proto3,enum=band.tss.v1beta1.GroupStatus" json:"status,omitempty"`
	// active_time is the timestamp at which the group becomes the current group of the module.
	ActiveTime time.Time `protobuf:"bytes,6,opt,name=active_time,json=activeTime,proto3,stdtime" json:"active_time"`
}

QueryCurrentGroupResponse is the response type for the Query/CurrentGroup RPC method.

func (*QueryCurrentGroupResponse) Descriptor

func (*QueryCurrentGroupResponse) Descriptor() ([]byte, []int)

func (*QueryCurrentGroupResponse) GetActiveTime

func (m *QueryCurrentGroupResponse) GetActiveTime() time.Time

func (*QueryCurrentGroupResponse) GetGroupID

func (*QueryCurrentGroupResponse) GetPubKey

func (*QueryCurrentGroupResponse) GetSize_

func (m *QueryCurrentGroupResponse) GetSize_() uint64

func (*QueryCurrentGroupResponse) GetStatus

func (*QueryCurrentGroupResponse) GetThreshold

func (m *QueryCurrentGroupResponse) GetThreshold() uint64

func (*QueryCurrentGroupResponse) Marshal

func (m *QueryCurrentGroupResponse) Marshal() (dAtA []byte, err error)

func (*QueryCurrentGroupResponse) MarshalTo

func (m *QueryCurrentGroupResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryCurrentGroupResponse) MarshalToSizedBuffer

func (m *QueryCurrentGroupResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryCurrentGroupResponse) ProtoMessage

func (*QueryCurrentGroupResponse) ProtoMessage()

func (*QueryCurrentGroupResponse) Reset

func (m *QueryCurrentGroupResponse) Reset()

func (*QueryCurrentGroupResponse) Size

func (m *QueryCurrentGroupResponse) Size() (n int)

func (*QueryCurrentGroupResponse) String

func (m *QueryCurrentGroupResponse) String() string

func (*QueryCurrentGroupResponse) Unmarshal

func (m *QueryCurrentGroupResponse) Unmarshal(dAtA []byte) error

func (*QueryCurrentGroupResponse) XXX_DiscardUnknown

func (m *QueryCurrentGroupResponse) XXX_DiscardUnknown()

func (*QueryCurrentGroupResponse) XXX_Marshal

func (m *QueryCurrentGroupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryCurrentGroupResponse) XXX_Merge

func (m *QueryCurrentGroupResponse) XXX_Merge(src proto.Message)

func (*QueryCurrentGroupResponse) XXX_Size

func (m *QueryCurrentGroupResponse) XXX_Size() int

func (*QueryCurrentGroupResponse) XXX_Unmarshal

func (m *QueryCurrentGroupResponse) XXX_Unmarshal(b []byte) error

type QueryGroupTransitionRequest

type QueryGroupTransitionRequest struct {
}

QueryGroupTransitionRequest is the request type for the Query/GroupTransition RPC method.

func (*QueryGroupTransitionRequest) Descriptor

func (*QueryGroupTransitionRequest) Descriptor() ([]byte, []int)

func (*QueryGroupTransitionRequest) Marshal

func (m *QueryGroupTransitionRequest) Marshal() (dAtA []byte, err error)

func (*QueryGroupTransitionRequest) MarshalTo

func (m *QueryGroupTransitionRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryGroupTransitionRequest) MarshalToSizedBuffer

func (m *QueryGroupTransitionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryGroupTransitionRequest) ProtoMessage

func (*QueryGroupTransitionRequest) ProtoMessage()

func (*QueryGroupTransitionRequest) Reset

func (m *QueryGroupTransitionRequest) Reset()

func (*QueryGroupTransitionRequest) Size

func (m *QueryGroupTransitionRequest) Size() (n int)

func (*QueryGroupTransitionRequest) String

func (m *QueryGroupTransitionRequest) String() string

func (*QueryGroupTransitionRequest) Unmarshal

func (m *QueryGroupTransitionRequest) Unmarshal(dAtA []byte) error

func (*QueryGroupTransitionRequest) XXX_DiscardUnknown

func (m *QueryGroupTransitionRequest) XXX_DiscardUnknown()

func (*QueryGroupTransitionRequest) XXX_Marshal

func (m *QueryGroupTransitionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryGroupTransitionRequest) XXX_Merge

func (m *QueryGroupTransitionRequest) XXX_Merge(src proto.Message)

func (*QueryGroupTransitionRequest) XXX_Size

func (m *QueryGroupTransitionRequest) XXX_Size() int

func (*QueryGroupTransitionRequest) XXX_Unmarshal

func (m *QueryGroupTransitionRequest) XXX_Unmarshal(b []byte) error

type QueryGroupTransitionResponse

type QueryGroupTransitionResponse struct {
	// group_transition is the group transition information.
	GroupTransition *GroupTransition `protobuf:"bytes,1,opt,name=group_transition,json=groupTransition,proto3" json:"group_transition,omitempty"`
}

QueryGroupTransitionResponse is the response type for the Query/GroupTransition RPC method.

func (*QueryGroupTransitionResponse) Descriptor

func (*QueryGroupTransitionResponse) Descriptor() ([]byte, []int)

func (*QueryGroupTransitionResponse) GetGroupTransition

func (m *QueryGroupTransitionResponse) GetGroupTransition() *GroupTransition

func (*QueryGroupTransitionResponse) Marshal

func (m *QueryGroupTransitionResponse) Marshal() (dAtA []byte, err error)

func (*QueryGroupTransitionResponse) MarshalTo

func (m *QueryGroupTransitionResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryGroupTransitionResponse) MarshalToSizedBuffer

func (m *QueryGroupTransitionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryGroupTransitionResponse) ProtoMessage

func (*QueryGroupTransitionResponse) ProtoMessage()

func (*QueryGroupTransitionResponse) Reset

func (m *QueryGroupTransitionResponse) Reset()

func (*QueryGroupTransitionResponse) Size

func (m *QueryGroupTransitionResponse) Size() (n int)

func (*QueryGroupTransitionResponse) String

func (*QueryGroupTransitionResponse) Unmarshal

func (m *QueryGroupTransitionResponse) Unmarshal(dAtA []byte) error

func (*QueryGroupTransitionResponse) XXX_DiscardUnknown

func (m *QueryGroupTransitionResponse) XXX_DiscardUnknown()

func (*QueryGroupTransitionResponse) XXX_Marshal

func (m *QueryGroupTransitionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryGroupTransitionResponse) XXX_Merge

func (m *QueryGroupTransitionResponse) XXX_Merge(src proto.Message)

func (*QueryGroupTransitionResponse) XXX_Size

func (m *QueryGroupTransitionResponse) XXX_Size() int

func (*QueryGroupTransitionResponse) XXX_Unmarshal

func (m *QueryGroupTransitionResponse) XXX_Unmarshal(b []byte) error

type QueryIncomingGroupRequest

type QueryIncomingGroupRequest struct {
}

QueryIncomingGroupRequest is the request type for the Query/IncomingGroup RPC method.

func (*QueryIncomingGroupRequest) Descriptor

func (*QueryIncomingGroupRequest) Descriptor() ([]byte, []int)

func (*QueryIncomingGroupRequest) Marshal

func (m *QueryIncomingGroupRequest) Marshal() (dAtA []byte, err error)

func (*QueryIncomingGroupRequest) MarshalTo

func (m *QueryIncomingGroupRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryIncomingGroupRequest) MarshalToSizedBuffer

func (m *QueryIncomingGroupRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryIncomingGroupRequest) ProtoMessage

func (*QueryIncomingGroupRequest) ProtoMessage()

func (*QueryIncomingGroupRequest) Reset

func (m *QueryIncomingGroupRequest) Reset()

func (*QueryIncomingGroupRequest) Size

func (m *QueryIncomingGroupRequest) Size() (n int)

func (*QueryIncomingGroupRequest) String

func (m *QueryIncomingGroupRequest) String() string

func (*QueryIncomingGroupRequest) Unmarshal

func (m *QueryIncomingGroupRequest) Unmarshal(dAtA []byte) error

func (*QueryIncomingGroupRequest) XXX_DiscardUnknown

func (m *QueryIncomingGroupRequest) XXX_DiscardUnknown()

func (*QueryIncomingGroupRequest) XXX_Marshal

func (m *QueryIncomingGroupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryIncomingGroupRequest) XXX_Merge

func (m *QueryIncomingGroupRequest) XXX_Merge(src proto.Message)

func (*QueryIncomingGroupRequest) XXX_Size

func (m *QueryIncomingGroupRequest) XXX_Size() int

func (*QueryIncomingGroupRequest) XXX_Unmarshal

func (m *QueryIncomingGroupRequest) XXX_Unmarshal(b []byte) error

type QueryIncomingGroupResponse

type QueryIncomingGroupResponse struct {
	// group_id is the ID of the incoming group.
	GroupID github_com_bandprotocol_chain_v3_pkg_tss.GroupID `` /* 141-byte string literal not displayed */
	// size is the number of members in the group.
	Size_ uint64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
	// threshold is the minimum number of members needed to generate a valid signature.
	Threshold uint64 `protobuf:"varint,3,opt,name=threshold,proto3" json:"threshold,omitempty"`
	// pub_key is the public key generated by the group.
	PubKey github_com_bandprotocol_chain_v3_pkg_tss.Point `` /* 135-byte string literal not displayed */
	// status is the status of the incoming group.
	Status types.GroupStatus `protobuf:"varint,5,opt,name=status,proto3,enum=band.tss.v1beta1.GroupStatus" json:"status,omitempty"`
}

QueryIncomingGroupResponse is the response type for the Query/IncomingGroup RPC method.

func (*QueryIncomingGroupResponse) Descriptor

func (*QueryIncomingGroupResponse) Descriptor() ([]byte, []int)

func (*QueryIncomingGroupResponse) GetGroupID

func (*QueryIncomingGroupResponse) GetPubKey

func (*QueryIncomingGroupResponse) GetSize_

func (m *QueryIncomingGroupResponse) GetSize_() uint64

func (*QueryIncomingGroupResponse) GetStatus

func (*QueryIncomingGroupResponse) GetThreshold

func (m *QueryIncomingGroupResponse) GetThreshold() uint64

func (*QueryIncomingGroupResponse) Marshal

func (m *QueryIncomingGroupResponse) Marshal() (dAtA []byte, err error)

func (*QueryIncomingGroupResponse) MarshalTo

func (m *QueryIncomingGroupResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryIncomingGroupResponse) MarshalToSizedBuffer

func (m *QueryIncomingGroupResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryIncomingGroupResponse) ProtoMessage

func (*QueryIncomingGroupResponse) ProtoMessage()

func (*QueryIncomingGroupResponse) Reset

func (m *QueryIncomingGroupResponse) Reset()

func (*QueryIncomingGroupResponse) Size

func (m *QueryIncomingGroupResponse) Size() (n int)

func (*QueryIncomingGroupResponse) String

func (m *QueryIncomingGroupResponse) String() string

func (*QueryIncomingGroupResponse) Unmarshal

func (m *QueryIncomingGroupResponse) Unmarshal(dAtA []byte) error

func (*QueryIncomingGroupResponse) XXX_DiscardUnknown

func (m *QueryIncomingGroupResponse) XXX_DiscardUnknown()

func (*QueryIncomingGroupResponse) XXX_Marshal

func (m *QueryIncomingGroupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryIncomingGroupResponse) XXX_Merge

func (m *QueryIncomingGroupResponse) XXX_Merge(src proto.Message)

func (*QueryIncomingGroupResponse) XXX_Size

func (m *QueryIncomingGroupResponse) XXX_Size() int

func (*QueryIncomingGroupResponse) XXX_Unmarshal

func (m *QueryIncomingGroupResponse) XXX_Unmarshal(b []byte) error

type QueryMemberRequest

type QueryMemberRequest struct {
	// address is the member address.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}

QueryMemberRequest is the request type for the Query/Member RPC method.

func (*QueryMemberRequest) Descriptor

func (*QueryMemberRequest) Descriptor() ([]byte, []int)

func (*QueryMemberRequest) GetAddress

func (m *QueryMemberRequest) GetAddress() string

func (*QueryMemberRequest) Marshal

func (m *QueryMemberRequest) Marshal() (dAtA []byte, err error)

func (*QueryMemberRequest) MarshalTo

func (m *QueryMemberRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryMemberRequest) MarshalToSizedBuffer

func (m *QueryMemberRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryMemberRequest) ProtoMessage

func (*QueryMemberRequest) ProtoMessage()

func (*QueryMemberRequest) Reset

func (m *QueryMemberRequest) Reset()

func (*QueryMemberRequest) Size

func (m *QueryMemberRequest) Size() (n int)

func (*QueryMemberRequest) String

func (m *QueryMemberRequest) String() string

func (*QueryMemberRequest) Unmarshal

func (m *QueryMemberRequest) Unmarshal(dAtA []byte) error

func (*QueryMemberRequest) XXX_DiscardUnknown

func (m *QueryMemberRequest) XXX_DiscardUnknown()

func (*QueryMemberRequest) XXX_Marshal

func (m *QueryMemberRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryMemberRequest) XXX_Merge

func (m *QueryMemberRequest) XXX_Merge(src proto.Message)

func (*QueryMemberRequest) XXX_Size

func (m *QueryMemberRequest) XXX_Size() int

func (*QueryMemberRequest) XXX_Unmarshal

func (m *QueryMemberRequest) XXX_Unmarshal(b []byte) error

type QueryMemberResponse

type QueryMemberResponse struct {
	// current_group_member is the member detail.
	CurrentGroupMember Member `protobuf:"bytes,1,opt,name=current_group_member,json=currentGroupMember,proto3" json:"current_group_member"`
	// incoming_group_member is the member detail.
	IncomingGroupMember Member `protobuf:"bytes,2,opt,name=incoming_group_member,json=incomingGroupMember,proto3" json:"incoming_group_member"`
}

QueryMemberResponse is the response type for the Query/Member RPC method.

func (*QueryMemberResponse) Descriptor

func (*QueryMemberResponse) Descriptor() ([]byte, []int)

func (*QueryMemberResponse) GetCurrentGroupMember

func (m *QueryMemberResponse) GetCurrentGroupMember() Member

func (*QueryMemberResponse) GetIncomingGroupMember

func (m *QueryMemberResponse) GetIncomingGroupMember() Member

func (*QueryMemberResponse) Marshal

func (m *QueryMemberResponse) Marshal() (dAtA []byte, err error)

func (*QueryMemberResponse) MarshalTo

func (m *QueryMemberResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryMemberResponse) MarshalToSizedBuffer

func (m *QueryMemberResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryMemberResponse) ProtoMessage

func (*QueryMemberResponse) ProtoMessage()

func (*QueryMemberResponse) Reset

func (m *QueryMemberResponse) Reset()

func (*QueryMemberResponse) Size

func (m *QueryMemberResponse) Size() (n int)

func (*QueryMemberResponse) String

func (m *QueryMemberResponse) String() string

func (*QueryMemberResponse) Unmarshal

func (m *QueryMemberResponse) Unmarshal(dAtA []byte) error

func (*QueryMemberResponse) XXX_DiscardUnknown

func (m *QueryMemberResponse) XXX_DiscardUnknown()

func (*QueryMemberResponse) XXX_Marshal

func (m *QueryMemberResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryMemberResponse) XXX_Merge

func (m *QueryMemberResponse) XXX_Merge(src proto.Message)

func (*QueryMemberResponse) XXX_Size

func (m *QueryMemberResponse) XXX_Size() int

func (*QueryMemberResponse) XXX_Unmarshal

func (m *QueryMemberResponse) XXX_Unmarshal(b []byte) error

type QueryMembersRequest

type QueryMembersRequest struct {
	// status define type of filter on member's status.
	Status MemberStatusFilter `protobuf:"varint,1,opt,name=status,proto3,enum=band.bandtss.v1beta1.MemberStatusFilter" json:"status,omitempty"`
	// is_incoming_group is a flag to indicate whether user query members in the incoming group
	// or the current group.
	IsIncomingGroup bool `protobuf:"varint,2,opt,name=is_incoming_group,json=isIncomingGroup,proto3" json:"is_incoming_group,omitempty"`
	// pagination defines pagination settings for the request.
	Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryMembersRequest is the request type for the Query/Members RPC method.

func (*QueryMembersRequest) Descriptor

func (*QueryMembersRequest) Descriptor() ([]byte, []int)

func (*QueryMembersRequest) GetIsIncomingGroup

func (m *QueryMembersRequest) GetIsIncomingGroup() bool

func (*QueryMembersRequest) GetPagination

func (m *QueryMembersRequest) GetPagination() *query.PageRequest

func (*QueryMembersRequest) GetStatus

func (m *QueryMembersRequest) GetStatus() MemberStatusFilter

func (*QueryMembersRequest) Marshal

func (m *QueryMembersRequest) Marshal() (dAtA []byte, err error)

func (*QueryMembersRequest) MarshalTo

func (m *QueryMembersRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryMembersRequest) MarshalToSizedBuffer

func (m *QueryMembersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryMembersRequest) ProtoMessage

func (*QueryMembersRequest) ProtoMessage()

func (*QueryMembersRequest) Reset

func (m *QueryMembersRequest) Reset()

func (*QueryMembersRequest) Size

func (m *QueryMembersRequest) Size() (n int)

func (*QueryMembersRequest) String

func (m *QueryMembersRequest) String() string

func (*QueryMembersRequest) Unmarshal

func (m *QueryMembersRequest) Unmarshal(dAtA []byte) error

func (*QueryMembersRequest) XXX_DiscardUnknown

func (m *QueryMembersRequest) XXX_DiscardUnknown()

func (*QueryMembersRequest) XXX_Marshal

func (m *QueryMembersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryMembersRequest) XXX_Merge

func (m *QueryMembersRequest) XXX_Merge(src proto.Message)

func (*QueryMembersRequest) XXX_Size

func (m *QueryMembersRequest) XXX_Size() int

func (*QueryMembersRequest) XXX_Unmarshal

func (m *QueryMembersRequest) XXX_Unmarshal(b []byte) error

type QueryMembersResponse

type QueryMembersResponse struct {
	// members are those individuals who correspond to the provided is_active status.
	Members []*Member `protobuf:"bytes,1,rep,name=members,proto3" json:"members,omitempty"`
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryMembersResponse is the response type for the Query/Members RPC method.

func (*QueryMembersResponse) Descriptor

func (*QueryMembersResponse) Descriptor() ([]byte, []int)

func (*QueryMembersResponse) GetMembers

func (m *QueryMembersResponse) GetMembers() []*Member

func (*QueryMembersResponse) GetPagination

func (m *QueryMembersResponse) GetPagination() *query.PageResponse

func (*QueryMembersResponse) Marshal

func (m *QueryMembersResponse) Marshal() (dAtA []byte, err error)

func (*QueryMembersResponse) MarshalTo

func (m *QueryMembersResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryMembersResponse) MarshalToSizedBuffer

func (m *QueryMembersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryMembersResponse) ProtoMessage

func (*QueryMembersResponse) ProtoMessage()

func (*QueryMembersResponse) Reset

func (m *QueryMembersResponse) Reset()

func (*QueryMembersResponse) Size

func (m *QueryMembersResponse) Size() (n int)

func (*QueryMembersResponse) String

func (m *QueryMembersResponse) String() string

func (*QueryMembersResponse) Unmarshal

func (m *QueryMembersResponse) Unmarshal(dAtA []byte) error

func (*QueryMembersResponse) XXX_DiscardUnknown

func (m *QueryMembersResponse) XXX_DiscardUnknown()

func (*QueryMembersResponse) XXX_Marshal

func (m *QueryMembersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryMembersResponse) XXX_Merge

func (m *QueryMembersResponse) XXX_Merge(src proto.Message)

func (*QueryMembersResponse) XXX_Size

func (m *QueryMembersResponse) XXX_Size() int

func (*QueryMembersResponse) XXX_Unmarshal

func (m *QueryMembersResponse) XXX_Unmarshal(b []byte) error

type QueryParamsRequest

type QueryParamsRequest struct {
}

QueryParamsRequest is request type for the Query/Params RPC method.

func (*QueryParamsRequest) Descriptor

func (*QueryParamsRequest) Descriptor() ([]byte, []int)

func (*QueryParamsRequest) Marshal

func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)

func (*QueryParamsRequest) MarshalTo

func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryParamsRequest) MarshalToSizedBuffer

func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size

func (m *QueryParamsRequest) Size() (n int)

func (*QueryParamsRequest) String

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal

func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error

func (*QueryParamsRequest) XXX_DiscardUnknown

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal

func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryParamsRequest) XXX_Merge

func (m *QueryParamsRequest) XXX_Merge(src proto.Message)

func (*QueryParamsRequest) XXX_Size

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal

func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error

type QueryParamsResponse

type QueryParamsResponse struct {
	// Params is the parameters of the module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

QueryParamsResponse is response type for the Query/Params RPC method.

func (*QueryParamsResponse) Descriptor

func (*QueryParamsResponse) Descriptor() ([]byte, []int)

func (*QueryParamsResponse) GetParams

func (m *QueryParamsResponse) GetParams() Params

func (*QueryParamsResponse) Marshal

func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)

func (*QueryParamsResponse) MarshalTo

func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryParamsResponse) MarshalToSizedBuffer

func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size

func (m *QueryParamsResponse) Size() (n int)

func (*QueryParamsResponse) String

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal

func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error

func (*QueryParamsResponse) XXX_DiscardUnknown

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal

func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryParamsResponse) XXX_Merge

func (m *QueryParamsResponse) XXX_Merge(src proto.Message)

func (*QueryParamsResponse) XXX_Size

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal

func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error

type QueryServer

type QueryServer interface {
	// Counts queries the number of existing signing.
	Counts(context.Context, *QueryCountsRequest) (*QueryCountsResponse, error)
	// Members queries all members.
	Members(context.Context, *QueryMembersRequest) (*QueryMembersResponse, error)
	// Member queries the member information of the given address.
	Member(context.Context, *QueryMemberRequest) (*QueryMemberResponse, error)
	// CurrentGroup queries the current group information.
	CurrentGroup(context.Context, *QueryCurrentGroupRequest) (*QueryCurrentGroupResponse, error)
	// IncomingGroup queries the incoming group information.
	IncomingGroup(context.Context, *QueryIncomingGroupRequest) (*QueryIncomingGroupResponse, error)
	// Signing queries the signing result of the given signing request ID.
	Signing(context.Context, *QuerySigningRequest) (*QuerySigningResponse, error)
	// GroupTransition queries the group transition information.
	GroupTransition(context.Context, *QueryGroupTransitionRequest) (*QueryGroupTransitionResponse, error)
	// Params queries parameters of bandtss module
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
}

QueryServer is the server API for Query service.

type QuerySigningRequest

type QuerySigningRequest struct {
	// signing_id is the ID of the signing request.
	SigningId uint64 `protobuf:"varint,1,opt,name=signing_id,json=signingId,proto3" json:"signing_id,omitempty"`
}

QuerySingingRequest is the request type for the Query/Signing RPC method.

func (*QuerySigningRequest) Descriptor

func (*QuerySigningRequest) Descriptor() ([]byte, []int)

func (*QuerySigningRequest) GetSigningId

func (m *QuerySigningRequest) GetSigningId() uint64

func (*QuerySigningRequest) Marshal

func (m *QuerySigningRequest) Marshal() (dAtA []byte, err error)

func (*QuerySigningRequest) MarshalTo

func (m *QuerySigningRequest) MarshalTo(dAtA []byte) (int, error)

func (*QuerySigningRequest) MarshalToSizedBuffer

func (m *QuerySigningRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QuerySigningRequest) ProtoMessage

func (*QuerySigningRequest) ProtoMessage()

func (*QuerySigningRequest) Reset

func (m *QuerySigningRequest) Reset()

func (*QuerySigningRequest) Size

func (m *QuerySigningRequest) Size() (n int)

func (*QuerySigningRequest) String

func (m *QuerySigningRequest) String() string

func (*QuerySigningRequest) Unmarshal

func (m *QuerySigningRequest) Unmarshal(dAtA []byte) error

func (*QuerySigningRequest) XXX_DiscardUnknown

func (m *QuerySigningRequest) XXX_DiscardUnknown()

func (*QuerySigningRequest) XXX_Marshal

func (m *QuerySigningRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QuerySigningRequest) XXX_Merge

func (m *QuerySigningRequest) XXX_Merge(src proto.Message)

func (*QuerySigningRequest) XXX_Size

func (m *QuerySigningRequest) XXX_Size() int

func (*QuerySigningRequest) XXX_Unmarshal

func (m *QuerySigningRequest) XXX_Unmarshal(b []byte) error

type QuerySigningResponse

type QuerySigningResponse struct {
	// fee_per_signer is the tokens that will be paid per signer for this bandtss signing.
	FeePerSigner github_com_cosmos_cosmos_sdk_types.Coins `` /* 143-byte string literal not displayed */
	// requester is the address of requester who paid for bandtss signing.
	Requester string `protobuf:"bytes,2,opt,name=requester,proto3" json:"requester,omitempty"`
	// current_group_signing_result is the signing result from the current group.
	CurrentGroupSigningResult *types.SigningResult `` /* 140-byte string literal not displayed */
	// incoming_group_signing_result is the signing result from the incoming group.
	IncomingGroupSigningResult *types.SigningResult `` /* 143-byte string literal not displayed */
}

QuerySigningResponse is the response type for the Query/Signing RPC method.

func (*QuerySigningResponse) Descriptor

func (*QuerySigningResponse) Descriptor() ([]byte, []int)

func (*QuerySigningResponse) GetCurrentGroupSigningResult

func (m *QuerySigningResponse) GetCurrentGroupSigningResult() *types.SigningResult

func (*QuerySigningResponse) GetFeePerSigner

func (*QuerySigningResponse) GetIncomingGroupSigningResult

func (m *QuerySigningResponse) GetIncomingGroupSigningResult() *types.SigningResult

func (*QuerySigningResponse) GetRequester

func (m *QuerySigningResponse) GetRequester() string

func (*QuerySigningResponse) Marshal

func (m *QuerySigningResponse) Marshal() (dAtA []byte, err error)

func (*QuerySigningResponse) MarshalTo

func (m *QuerySigningResponse) MarshalTo(dAtA []byte) (int, error)

func (*QuerySigningResponse) MarshalToSizedBuffer

func (m *QuerySigningResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QuerySigningResponse) ProtoMessage

func (*QuerySigningResponse) ProtoMessage()

func (*QuerySigningResponse) Reset

func (m *QuerySigningResponse) Reset()

func (*QuerySigningResponse) Size

func (m *QuerySigningResponse) Size() (n int)

func (*QuerySigningResponse) String

func (m *QuerySigningResponse) String() string

func (*QuerySigningResponse) Unmarshal

func (m *QuerySigningResponse) Unmarshal(dAtA []byte) error

func (*QuerySigningResponse) XXX_DiscardUnknown

func (m *QuerySigningResponse) XXX_DiscardUnknown()

func (*QuerySigningResponse) XXX_Marshal

func (m *QuerySigningResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QuerySigningResponse) XXX_Merge

func (m *QuerySigningResponse) XXX_Merge(src proto.Message)

func (*QuerySigningResponse) XXX_Size

func (m *QuerySigningResponse) XXX_Size() int

func (*QuerySigningResponse) XXX_Unmarshal

func (m *QuerySigningResponse) XXX_Unmarshal(b []byte) error

type Signing

type Signing struct {
	// id is the unique identifier of the bandtss signing.
	ID SigningID `protobuf:"varint,1,opt,name=id,proto3,casttype=SigningID" json:"id,omitempty"`
	// fee_per_signer is the tokens that will be paid per signer for this bandtss signing.
	FeePerSigner github_com_cosmos_cosmos_sdk_types.Coins `` /* 143-byte string literal not displayed */
	// requester is the address who pays the Bandtss signing.
	Requester string `protobuf:"bytes,3,opt,name=requester,proto3" json:"requester,omitempty"`
	// current_group_signing_id is a tss signing ID of a current group.
	CurrentGroupSigningID github_com_bandprotocol_chain_v3_pkg_tss.SigningID `` /* 189-byte string literal not displayed */
	// incoming_group_signing_id is a tss signing ID of an incoming group, if any.
	IncomingGroupSigningID github_com_bandprotocol_chain_v3_pkg_tss.SigningID `` /* 192-byte string literal not displayed */
}

Signing is a bandtss signing information.

func NewSigning

func NewSigning(
	id SigningID,
	feePerSigner sdk.Coins,
	requester sdk.AccAddress,
	currentGroupSigningID tss.SigningID,
	incomingGroupSigningID tss.SigningID,
) Signing

NewSigning creates a new signing object.

func (*Signing) Descriptor

func (*Signing) Descriptor() ([]byte, []int)

func (*Signing) Equal

func (this *Signing) Equal(that interface{}) bool

func (*Signing) GetCurrentGroupSigningID

func (m *Signing) GetCurrentGroupSigningID() github_com_bandprotocol_chain_v3_pkg_tss.SigningID

func (*Signing) GetFeePerSigner

func (m *Signing) GetFeePerSigner() github_com_cosmos_cosmos_sdk_types.Coins

func (*Signing) GetID

func (m *Signing) GetID() SigningID

func (*Signing) GetIncomingGroupSigningID

func (m *Signing) GetIncomingGroupSigningID() github_com_bandprotocol_chain_v3_pkg_tss.SigningID

func (*Signing) GetRequester

func (m *Signing) GetRequester() string

func (*Signing) Marshal

func (m *Signing) Marshal() (dAtA []byte, err error)

func (*Signing) MarshalTo

func (m *Signing) MarshalTo(dAtA []byte) (int, error)

func (*Signing) MarshalToSizedBuffer

func (m *Signing) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Signing) ProtoMessage

func (*Signing) ProtoMessage()

func (*Signing) Reset

func (m *Signing) Reset()

func (*Signing) Size

func (m *Signing) Size() (n int)

func (*Signing) String

func (m *Signing) String() string

func (*Signing) Unmarshal

func (m *Signing) Unmarshal(dAtA []byte) error

func (*Signing) XXX_DiscardUnknown

func (m *Signing) XXX_DiscardUnknown()

func (*Signing) XXX_Marshal

func (m *Signing) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Signing) XXX_Merge

func (m *Signing) XXX_Merge(src proto.Message)

func (*Signing) XXX_Size

func (m *Signing) XXX_Size() int

func (*Signing) XXX_Unmarshal

func (m *Signing) XXX_Unmarshal(b []byte) error

type SigningID

type SigningID uint64

SigningID is the type-safe unique identifier type for bandtss signing info.

type TSSKeeper

type TSSKeeper interface {
	CreateGroup(
		ctx sdk.Context,
		members []sdk.AccAddress,
		threshold uint64,
		moduleOwner string,
	) (tss.GroupID, error)

	RequestSigning(
		ctx sdk.Context,
		groupID tss.GroupID,
		originator tsstypes.Originator,
		content tsstypes.Content,
	) (tss.SigningID, error)

	MustGetMembers(ctx sdk.Context, groupID tss.GroupID) []tsstypes.Member
	GetMemberByAddress(ctx sdk.Context, groupID tss.GroupID, address string) (tsstypes.Member, error)
	ActivateMember(ctx sdk.Context, groupID tss.GroupID, address sdk.AccAddress) error
	DeactivateMember(ctx sdk.Context, groupID tss.GroupID, address sdk.AccAddress) error

	GetDEQueue(ctx sdk.Context, address sdk.AccAddress) tsstypes.DEQueue
	GetGroup(ctx sdk.Context, groupID tss.GroupID) (tsstypes.Group, error)
	MustGetGroup(ctx sdk.Context, groupID tss.GroupID) tsstypes.Group

	GetSigning(ctx sdk.Context, signingID tss.SigningID) (tsstypes.Signing, error)
	MustGetSigning(ctx sdk.Context, signingID tss.SigningID) tsstypes.Signing
	GetSigningResult(ctx sdk.Context, signingID tss.SigningID) (*tsstypes.SigningResult, error)
}

TSSKeeper defines the expected tss keeper (noalias)

type TransitionStatus

type TransitionStatus int32

TransitionStatus is an enumeration of the possible statuses of a group transition process.

const (
	// TRANSITION_STATUS_UNSPECIFIED is the status of a group transition that has not been specified.
	TRANSITION_STATUS_UNSPECIFIED TransitionStatus = 0
	// TRANSITION_STATUS_CREATING_GROUP is the status of a group transition that a new group
	// is being created.
	TRANSITION_STATUS_CREATING_GROUP TransitionStatus = 1
	// TRANSITION_STATUS_WAITING_SIGN is the status of a group transition that waits members in
	// a current group to sign the transition message.
	TRANSITION_STATUS_WAITING_SIGN TransitionStatus = 2
	// TRANSITION_STATUS_WAITING_EXECUTION is the status of a group transition that
	// a transition process is completed, either from a forceTransition or having a current-group
	// signature on a transition message, but waits for the execution time.
	TRANSITION_STATUS_WAITING_EXECUTION TransitionStatus = 3
)

func (TransitionStatus) EnumDescriptor

func (TransitionStatus) EnumDescriptor() ([]byte, []int)

func (TransitionStatus) String

func (x TransitionStatus) String() string

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) Activate

func (*UnimplementedMsgServer) ForceTransitionGroup

func (*UnimplementedMsgServer) RequestSignature

func (*UnimplementedMsgServer) TransitionGroup

func (*UnimplementedMsgServer) UpdateParams

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Counts

func (*UnimplementedQueryServer) CurrentGroup

func (*UnimplementedQueryServer) GroupTransition

func (*UnimplementedQueryServer) IncomingGroup

func (*UnimplementedQueryServer) Member

func (*UnimplementedQueryServer) Members

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) Signing

Jump to

Keyboard shortcuts

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