types

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AttributeValueCategory                = ModuleName
	EventTypeDistributionStarted          = "distribution_started"
	EventTypeDistributionRun              = "distribution_run"
	EventTypeDistributionRecordsList      = "distribution_record_"
	AttributeKeyFromModuleAccount         = "module_account"
	AttributeKeyDistributionName          = "distribution_name"
	AttributeKeyDistributionRunner        = "distribution_runner"
	AttributeKeyDistributionType          = "distribution_type"
	AttributeKeyDistributionRecordType    = "type"
	AttributeKeyDistributionRecordAddress = "recipient_address"
	AttributeKeyDistributionRecordAmount  = "amount"

	EventTypeClaimCreated = "userClaim_new"
	AttributeKeyClaimUser = "userClaim_creator"
	AttributeKeyClaimType = "userClaim_type"
	AttributeKeyClaimTime = "userClaim_creationTime"
)
View Source
const (
	// ModuleName is the name of the module
	ModuleName                = "dispensation"
	MsgTypeCreateUserClaim    = "createUserClaim"
	MsgTypeRunDistribution    = "runDistribution"
	MsgTypeCreateDistribution = "createDistribution"
	// StoreKey to be used when creating the KVStore
	StoreKey = ModuleName

	// RouterKey to be used for routing msgs
	RouterKey = ModuleName

	// QuerierRoute to be used for querier msgs
	QuerierRoute       = ModuleName
	DefaultParamspace  = ModuleName
	MaxMintAmount      = "350000000000000000000000000"
	MintAmountPerBlock = "225000000000000000000"
	EcoPool            = "sif1ct2s3t8u2kffjpaekhtngzv6yc4vm97xajqyl3"
	MaxRecordsPerBlock = 20
)
View Source
const (
	QueryAllDistributions   = "distributions"
	QueryRecordsByDistrName = "records_by_name"
	QueryRecordsByRecipient = "records_by_recipient"
	QueryClaimsByType       = "claims_by_type"
)

Variables

View Source
var (
	ErrInvalid                = sdkerrors.Register(ModuleName, 1, "invalid")
	ErrFailedInputs           = sdkerrors.Register(ModuleName, 4, "Failed in collecting funds")
	ErrFailedOutputs          = sdkerrors.Register(ModuleName, 5, "Failed in distributing funds")
	ErrDistribution           = sdkerrors.Register(ModuleName, 6, "DistributionFailed")
	ErrNotFoundMintController = sdkerrors.Register(ModuleName, 7, "Mint controller not found")
)
View Source
var (
	DistributionRecordPrefixPending   = []byte{0x000} // key for storing DistributionRecords pending
	DistributionRecordPrefixCompleted = []byte{0x011} // key for storing DistributionRecords completed
	DistributionRecordPrefixFailed    = []byte{0x012} // key for storing DistributionRecords failed
	DistributionsPrefix               = []byte{0x01}  // key for storing Distributions
	UserClaimPrefix                   = []byte{0x02}  // key for storing user claims
	MintControllerPrefix              = []byte{0x03}  // key for storing the mintController
)
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 (
	ErrInvalidLengthTypes        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTypes          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
)
View Source
var DistributionStatus_name = map[int32]string{
	0: "DISTRIBUTION_STATUS_UNSPECIFIED",
	1: "DISTRIBUTION_STATUS_PENDING",
	2: "DISTRIBUTION_STATUS_COMPLETED",
	3: "DISTRIBUTION_STATUS_FAILED",
}
View Source
var DistributionStatus_value = map[string]int32{
	"DISTRIBUTION_STATUS_UNSPECIFIED": 0,
	"DISTRIBUTION_STATUS_PENDING":     1,
	"DISTRIBUTION_STATUS_COMPLETED":   2,
	"DISTRIBUTION_STATUS_FAILED":      3,
}
View Source
var DistributionType_name = map[int32]string{
	0: "DISTRIBUTION_TYPE_UNSPECIFIED",
	1: "DISTRIBUTION_TYPE_AIRDROP",
	2: "DISTRIBUTION_TYPE_VALIDATOR_SUBSIDY",
	3: "DISTRIBUTION_TYPE_LIQUIDITY_MINING",
}
View Source
var DistributionType_value = map[string]int32{
	"DISTRIBUTION_TYPE_UNSPECIFIED":       0,
	"DISTRIBUTION_TYPE_AIRDROP":           1,
	"DISTRIBUTION_TYPE_VALIDATOR_SUBSIDY": 2,
	"DISTRIBUTION_TYPE_LIQUIDITY_MINING":  3,
}
View Source
var (
	ModuleCdc = codec.NewAminoCodec(amino)
)

Functions

func GetDistributionModuleAddress

func GetDistributionModuleAddress() sdk.AccAddress

func GetDistributionRecordKey

func GetDistributionRecordKey(status DistributionStatus, name string, recipient string, distributionType DistributionType) []byte

func GetDistributionsKey

func GetDistributionsKey(name string, distributionType DistributionType, authorizedRunner string) []byte

func GetUserClaimKey

func GetUserClaimKey(userAddress string, userClaimType DistributionType) []byte

func RegisterInterfaces

func RegisterInterfaces(registry types.InterfaceRegistry)

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterCodec registers concrete types on codec

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

Types

type AccountKeeper

type AccountKeeper interface {
	SetModuleAccount(sdk.Context, authtypes.ModuleAccountI)
	GetModuleAccount(ctx sdk.Context, moduleName string) authtypes.ModuleAccountI
}

type BankKeeper

type BankKeeper interface {
	SendCoins(ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error
	SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
	SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error
	MintCoins(ctx sdk.Context, name string, amt sdk.Coins) error
	BurnCoins(ctx sdk.Context, name string, amt sdk.Coins) error
	GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin
	HasBalance(ctx sdk.Context, addr sdk.AccAddress, amt sdk.Coin) bool
}

type Distribution

type Distribution struct {
	DistributionType DistributionType `` /* 156-byte string literal not displayed */
	DistributionName string           `protobuf:"bytes,2,opt,name=distribution_name,json=distributionName,proto3" json:"distribution_name,omitempty"`
	Runner           string           `protobuf:"bytes,3,opt,name=runner,proto3" json:"runner,omitempty"`
}

func NewDistribution

func NewDistribution(t DistributionType, name string, authorizedRunner string) Distribution

func (*Distribution) Descriptor

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

func (*Distribution) GetDistributionName

func (m *Distribution) GetDistributionName() string

func (*Distribution) GetDistributionType

func (m *Distribution) GetDistributionType() DistributionType

func (*Distribution) GetRunner

func (m *Distribution) GetRunner() string

func (*Distribution) Marshal

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

func (*Distribution) MarshalTo

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

func (*Distribution) MarshalToSizedBuffer

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

func (*Distribution) ProtoMessage

func (*Distribution) ProtoMessage()

func (*Distribution) Reset

func (m *Distribution) Reset()

func (*Distribution) Size

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

func (*Distribution) String

func (m *Distribution) String() string

func (*Distribution) Unmarshal

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

func (Distribution) Validate

func (ar Distribution) Validate() bool

func (*Distribution) XXX_DiscardUnknown

func (m *Distribution) XXX_DiscardUnknown()

func (*Distribution) XXX_Marshal

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

func (*Distribution) XXX_Merge

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

func (*Distribution) XXX_Size

func (m *Distribution) XXX_Size() int

func (*Distribution) XXX_Unmarshal

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

type DistributionRecord

type DistributionRecord struct {
	DistributionStatus          DistributionStatus                       `` /* 164-byte string literal not displayed */
	DistributionType            DistributionType                         `` /* 156-byte string literal not displayed */
	DistributionName            string                                   `protobuf:"bytes,3,opt,name=distribution_name,json=distributionName,proto3" json:"distribution_name,omitempty"`
	RecipientAddress            string                                   `protobuf:"bytes,4,opt,name=recipient_address,json=recipientAddress,proto3" json:"recipient_address,omitempty"`
	Coins                       github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,5,rep,name=coins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"coins" yaml:"coins"`
	DistributionStartHeight     int64                                    `` /* 133-byte string literal not displayed */
	DistributionCompletedHeight int64                                    `` /* 145-byte string literal not displayed */
	AuthorizedRunner            string                                   `protobuf:"bytes,8,opt,name=authorized_runner,json=authorizedRunner,proto3" json:"authorized_runner,omitempty"`
}

func NewDistributionRecord

func NewDistributionRecord(status DistributionStatus, distributionType DistributionType, distributionName string, recipientAddress string, coins sdk.Coins, start int64, end int64, runner string) DistributionRecord

func (DistributionRecord) Add

func (*DistributionRecord) Descriptor

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

func (DistributionRecord) DoesTypeSupportClaim

func (dr DistributionRecord) DoesTypeSupportClaim() bool

func (*DistributionRecord) GetAuthorizedRunner

func (m *DistributionRecord) GetAuthorizedRunner() string

func (*DistributionRecord) GetCoins

func (*DistributionRecord) GetDistributionCompletedHeight

func (m *DistributionRecord) GetDistributionCompletedHeight() int64

func (*DistributionRecord) GetDistributionName

func (m *DistributionRecord) GetDistributionName() string

func (*DistributionRecord) GetDistributionStartHeight

func (m *DistributionRecord) GetDistributionStartHeight() int64

func (*DistributionRecord) GetDistributionStatus

func (m *DistributionRecord) GetDistributionStatus() DistributionStatus

func (*DistributionRecord) GetDistributionType

func (m *DistributionRecord) GetDistributionType() DistributionType

func (*DistributionRecord) GetRecipientAddress

func (m *DistributionRecord) GetRecipientAddress() string

func (*DistributionRecord) Marshal

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

func (*DistributionRecord) MarshalTo

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

func (*DistributionRecord) MarshalToSizedBuffer

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

func (*DistributionRecord) ProtoMessage

func (*DistributionRecord) ProtoMessage()

func (*DistributionRecord) Reset

func (m *DistributionRecord) Reset()

func (*DistributionRecord) Size

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

func (*DistributionRecord) String

func (m *DistributionRecord) String() string

func (*DistributionRecord) Unmarshal

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

func (DistributionRecord) Validate

func (dr DistributionRecord) Validate() bool

func (*DistributionRecord) XXX_DiscardUnknown

func (m *DistributionRecord) XXX_DiscardUnknown()

func (*DistributionRecord) XXX_Marshal

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

func (*DistributionRecord) XXX_Merge

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

func (*DistributionRecord) XXX_Size

func (m *DistributionRecord) XXX_Size() int

func (*DistributionRecord) XXX_Unmarshal

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

type DistributionRecords

type DistributionRecords struct {
	DistributionRecords []*DistributionRecord `protobuf:"bytes,1,rep,name=distribution_records,json=distributionRecords,proto3" json:"distribution_records,omitempty"`
}

func (*DistributionRecords) Descriptor

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

func (*DistributionRecords) GetDistributionRecords

func (m *DistributionRecords) GetDistributionRecords() []*DistributionRecord

func (*DistributionRecords) Marshal

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

func (*DistributionRecords) MarshalTo

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

func (*DistributionRecords) MarshalToSizedBuffer

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

func (*DistributionRecords) ProtoMessage

func (*DistributionRecords) ProtoMessage()

func (*DistributionRecords) Reset

func (m *DistributionRecords) Reset()

func (*DistributionRecords) Size

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

func (*DistributionRecords) String

func (m *DistributionRecords) String() string

func (*DistributionRecords) Unmarshal

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

func (*DistributionRecords) XXX_DiscardUnknown

func (m *DistributionRecords) XXX_DiscardUnknown()

func (*DistributionRecords) XXX_Marshal

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

func (*DistributionRecords) XXX_Merge

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

func (*DistributionRecords) XXX_Size

func (m *DistributionRecords) XXX_Size() int

func (*DistributionRecords) XXX_Unmarshal

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

type DistributionStatus

type DistributionStatus int32

Claim status enum

const (
	// Unspecified
	DistributionStatus_DISTRIBUTION_STATUS_UNSPECIFIED DistributionStatus = 0
	// Pending status
	DistributionStatus_DISTRIBUTION_STATUS_PENDING DistributionStatus = 1
	// Completed status
	DistributionStatus_DISTRIBUTION_STATUS_COMPLETED DistributionStatus = 2
	// Failed status
	DistributionStatus_DISTRIBUTION_STATUS_FAILED DistributionStatus = 3
)

func GetDistributionStatus

func GetDistributionStatus(status string) (DistributionStatus, bool)

func (DistributionStatus) EnumDescriptor

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

func (DistributionStatus) String

func (x DistributionStatus) String() string

type DistributionType

type DistributionType int32

Distribution type enum

const (
	// Unspecified distribution type
	DistributionType_DISTRIBUTION_TYPE_UNSPECIFIED DistributionType = 0
	// Airdrop distribution type
	DistributionType_DISTRIBUTION_TYPE_AIRDROP DistributionType = 1
	// Validator Subsidy distribution type
	DistributionType_DISTRIBUTION_TYPE_VALIDATOR_SUBSIDY DistributionType = 2
	// Liquidity mining distribution type
	DistributionType_DISTRIBUTION_TYPE_LIQUIDITY_MINING DistributionType = 3
)

func GetClaimType

func GetClaimType(claimType string) (DistributionType, bool)

func GetDistributionTypeFromShortString

func GetDistributionTypeFromShortString(distributionType string) (DistributionType, bool)

func IsValidClaimType

func IsValidClaimType(claimType string) (DistributionType, bool)

func IsValidDistributionType

func IsValidDistributionType(distributionType string) (DistributionType, bool)

func (DistributionType) EnumDescriptor

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

func (DistributionType) String

func (x DistributionType) String() string

type Distributions

type Distributions struct {
	Distributions []*Distribution `protobuf:"bytes,1,rep,name=distributions,proto3" json:"distributions,omitempty"`
}

func (*Distributions) Descriptor

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

func (*Distributions) GetDistributions

func (m *Distributions) GetDistributions() []*Distribution

func (*Distributions) Marshal

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

func (*Distributions) MarshalTo

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

func (*Distributions) MarshalToSizedBuffer

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

func (*Distributions) ProtoMessage

func (*Distributions) ProtoMessage()

func (*Distributions) Reset

func (m *Distributions) Reset()

func (*Distributions) Size

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

func (*Distributions) String

func (m *Distributions) String() string

func (*Distributions) Unmarshal

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

func (*Distributions) XXX_DiscardUnknown

func (m *Distributions) XXX_DiscardUnknown()

func (*Distributions) XXX_Marshal

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

func (*Distributions) XXX_Merge

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

func (*Distributions) XXX_Size

func (m *Distributions) XXX_Size() int

func (*Distributions) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
	DistributionRecords *DistributionRecords `protobuf:"bytes,1,opt,name=distribution_records,json=distributionRecords,proto3" json:"distribution_records,omitempty"`
	Distributions       *Distributions       `protobuf:"bytes,2,opt,name=distributions,proto3" json:"distributions,omitempty"`
	Claims              *UserClaims          `protobuf:"bytes,3,opt,name=claims,proto3" json:"claims,omitempty"`
}

func DefaultGenesisState

func DefaultGenesisState() *GenesisState

DefaultGenesisState gets the raw genesis raw message for testing

func GetGenesisStateFromAppState

func GetGenesisStateFromAppState(appState map[string]json.RawMessage) GenesisState

func NewGenesisState

func NewGenesisState() GenesisState

NewGenesisState creates a new GenesisState instance

func (*GenesisState) Descriptor

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

func (*GenesisState) GetClaims

func (m *GenesisState) GetClaims() *UserClaims

func (*GenesisState) GetDistributionRecords

func (m *GenesisState) GetDistributionRecords() *DistributionRecords

func (*GenesisState) GetDistributions

func (m *GenesisState) GetDistributions() *Distributions

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) 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 MintController added in v0.12.0

type MintController struct {
	TotalCounter types.Coin `` /* 154-byte string literal not displayed */
}

func (*MintController) Descriptor added in v0.12.0

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

func (*MintController) GetTotalCounter added in v0.12.0

func (m *MintController) GetTotalCounter() types.Coin

func (*MintController) Marshal added in v0.12.0

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

func (*MintController) MarshalTo added in v0.12.0

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

func (*MintController) MarshalToSizedBuffer added in v0.12.0

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

func (*MintController) ProtoMessage added in v0.12.0

func (*MintController) ProtoMessage()

func (*MintController) Reset added in v0.12.0

func (m *MintController) Reset()

func (*MintController) Size added in v0.12.0

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

func (*MintController) String added in v0.12.0

func (m *MintController) String() string

func (*MintController) Unmarshal added in v0.12.0

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

func (*MintController) XXX_DiscardUnknown added in v0.12.0

func (m *MintController) XXX_DiscardUnknown()

func (*MintController) XXX_Marshal added in v0.12.0

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

func (*MintController) XXX_Merge added in v0.12.0

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

func (*MintController) XXX_Size added in v0.12.0

func (m *MintController) XXX_Size() int

func (*MintController) XXX_Unmarshal added in v0.12.0

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

type MsgClient

type MsgClient interface {
	CreateDistribution(ctx context.Context, in *MsgCreateDistribution, opts ...grpc.CallOption) (*MsgCreateDistributionResponse, error)
	CreateUserClaim(ctx context.Context, in *MsgCreateUserClaim, opts ...grpc.CallOption) (*MsgCreateClaimResponse, error)
	RunDistribution(ctx context.Context, in *MsgRunDistribution, opts ...grpc.CallOption) (*MsgRunDistributionResponse, 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 MsgCreateClaimResponse

type MsgCreateClaimResponse struct {
}

func (*MsgCreateClaimResponse) Descriptor

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

func (*MsgCreateClaimResponse) Marshal

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

func (*MsgCreateClaimResponse) MarshalTo

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

func (*MsgCreateClaimResponse) MarshalToSizedBuffer

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

func (*MsgCreateClaimResponse) ProtoMessage

func (*MsgCreateClaimResponse) ProtoMessage()

func (*MsgCreateClaimResponse) Reset

func (m *MsgCreateClaimResponse) Reset()

func (*MsgCreateClaimResponse) Size

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

func (*MsgCreateClaimResponse) String

func (m *MsgCreateClaimResponse) String() string

func (*MsgCreateClaimResponse) Unmarshal

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

func (*MsgCreateClaimResponse) XXX_DiscardUnknown

func (m *MsgCreateClaimResponse) XXX_DiscardUnknown()

func (*MsgCreateClaimResponse) XXX_Marshal

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

func (*MsgCreateClaimResponse) XXX_Merge

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

func (*MsgCreateClaimResponse) XXX_Size

func (m *MsgCreateClaimResponse) XXX_Size() int

func (*MsgCreateClaimResponse) XXX_Unmarshal

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

type MsgCreateDistribution

type MsgCreateDistribution struct {
	Distributor      string                                             `protobuf:"bytes,1,opt,name=distributor,proto3" json:"distributor,omitempty"`
	AuthorizedRunner string                                             `protobuf:"bytes,2,opt,name=authorized_runner,json=authorizedRunner,proto3" json:"authorized_runner,omitempty"`
	DistributionType DistributionType                                   `` /* 156-byte string literal not displayed */
	Output           []github_com_cosmos_cosmos_sdk_x_bank_types.Output `protobuf:"bytes,4,rep,name=output,proto3,customtype=github.com/cosmos/cosmos-sdk/x/bank/types.Output" json:"output,omitempty"`
}

func NewMsgCreateDistribution

func NewMsgCreateDistribution(distributor sdk.AccAddress, DistributionType DistributionType, output []types.Output, authorizedRunner string) MsgCreateDistribution

func (*MsgCreateDistribution) Descriptor

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

func (*MsgCreateDistribution) GetAuthorizedRunner

func (m *MsgCreateDistribution) GetAuthorizedRunner() string

func (*MsgCreateDistribution) GetDistributionType

func (m *MsgCreateDistribution) GetDistributionType() DistributionType

func (*MsgCreateDistribution) GetDistributor

func (m *MsgCreateDistribution) GetDistributor() string

func (MsgCreateDistribution) GetSignBytes

func (m MsgCreateDistribution) GetSignBytes() []byte

func (MsgCreateDistribution) GetSigners

func (m MsgCreateDistribution) GetSigners() []sdk.AccAddress

func (*MsgCreateDistribution) Marshal

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

func (*MsgCreateDistribution) MarshalTo

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

func (*MsgCreateDistribution) MarshalToSizedBuffer

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

func (*MsgCreateDistribution) ProtoMessage

func (*MsgCreateDistribution) ProtoMessage()

func (*MsgCreateDistribution) Reset

func (m *MsgCreateDistribution) Reset()

func (MsgCreateDistribution) Route

func (m MsgCreateDistribution) Route() string

func (*MsgCreateDistribution) Size

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

func (*MsgCreateDistribution) String

func (m *MsgCreateDistribution) String() string

func (MsgCreateDistribution) Type

func (m MsgCreateDistribution) Type() string

func (*MsgCreateDistribution) Unmarshal

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

func (MsgCreateDistribution) ValidateBasic

func (m MsgCreateDistribution) ValidateBasic() error

func (*MsgCreateDistribution) XXX_DiscardUnknown

func (m *MsgCreateDistribution) XXX_DiscardUnknown()

func (*MsgCreateDistribution) XXX_Marshal

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

func (*MsgCreateDistribution) XXX_Merge

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

func (*MsgCreateDistribution) XXX_Size

func (m *MsgCreateDistribution) XXX_Size() int

func (*MsgCreateDistribution) XXX_Unmarshal

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

type MsgCreateDistributionResponse

type MsgCreateDistributionResponse struct {
}

func (*MsgCreateDistributionResponse) Descriptor

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

func (*MsgCreateDistributionResponse) Marshal

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

func (*MsgCreateDistributionResponse) MarshalTo

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

func (*MsgCreateDistributionResponse) MarshalToSizedBuffer

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

func (*MsgCreateDistributionResponse) ProtoMessage

func (*MsgCreateDistributionResponse) ProtoMessage()

func (*MsgCreateDistributionResponse) Reset

func (m *MsgCreateDistributionResponse) Reset()

func (*MsgCreateDistributionResponse) Size

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

func (*MsgCreateDistributionResponse) String

func (*MsgCreateDistributionResponse) Unmarshal

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

func (*MsgCreateDistributionResponse) XXX_DiscardUnknown

func (m *MsgCreateDistributionResponse) XXX_DiscardUnknown()

func (*MsgCreateDistributionResponse) XXX_Marshal

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

func (*MsgCreateDistributionResponse) XXX_Merge

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

func (*MsgCreateDistributionResponse) XXX_Size

func (m *MsgCreateDistributionResponse) XXX_Size() int

func (*MsgCreateDistributionResponse) XXX_Unmarshal

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

type MsgCreateUserClaim

type MsgCreateUserClaim struct {
	UserClaimAddress string           `protobuf:"bytes,1,opt,name=user_claim_address,json=userClaimAddress,proto3" json:"user_claim_address,omitempty"`
	UserClaimType    DistributionType `` /* 149-byte string literal not displayed */
}

func NewMsgCreateUserClaim

func NewMsgCreateUserClaim(userClaimAddress sdk.AccAddress, claimType DistributionType) MsgCreateUserClaim

func (*MsgCreateUserClaim) Descriptor

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

func (MsgCreateUserClaim) GetSignBytes

func (m MsgCreateUserClaim) GetSignBytes() []byte

func (MsgCreateUserClaim) GetSigners

func (m MsgCreateUserClaim) GetSigners() []sdk.AccAddress

func (*MsgCreateUserClaim) GetUserClaimAddress

func (m *MsgCreateUserClaim) GetUserClaimAddress() string

func (*MsgCreateUserClaim) GetUserClaimType

func (m *MsgCreateUserClaim) GetUserClaimType() DistributionType

func (*MsgCreateUserClaim) Marshal

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

func (*MsgCreateUserClaim) MarshalTo

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

func (*MsgCreateUserClaim) MarshalToSizedBuffer

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

func (*MsgCreateUserClaim) ProtoMessage

func (*MsgCreateUserClaim) ProtoMessage()

func (*MsgCreateUserClaim) Reset

func (m *MsgCreateUserClaim) Reset()

func (MsgCreateUserClaim) Route

func (m MsgCreateUserClaim) Route() string

func (*MsgCreateUserClaim) Size

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

func (*MsgCreateUserClaim) String

func (m *MsgCreateUserClaim) String() string

func (MsgCreateUserClaim) Type

func (m MsgCreateUserClaim) Type() string

func (*MsgCreateUserClaim) Unmarshal

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

func (MsgCreateUserClaim) ValidateBasic

func (m MsgCreateUserClaim) ValidateBasic() error

func (*MsgCreateUserClaim) XXX_DiscardUnknown

func (m *MsgCreateUserClaim) XXX_DiscardUnknown()

func (*MsgCreateUserClaim) XXX_Marshal

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

func (*MsgCreateUserClaim) XXX_Merge

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

func (*MsgCreateUserClaim) XXX_Size

func (m *MsgCreateUserClaim) XXX_Size() int

func (*MsgCreateUserClaim) XXX_Unmarshal

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

type MsgRunDistribution

type MsgRunDistribution struct {
	AuthorizedRunner  string           `protobuf:"bytes,1,opt,name=authorized_runner,json=authorizedRunner,proto3" json:"authorized_runner,omitempty"`
	DistributionName  string           `protobuf:"bytes,2,opt,name=distribution_name,json=distributionName,proto3" json:"distribution_name,omitempty"`
	DistributionType  DistributionType `` /* 156-byte string literal not displayed */
	DistributionCount int64            `protobuf:"varint,4,opt,name=distribution_count,json=distributionCount,proto3" json:"distribution_count,omitempty"`
}

func NewMsgRunDistribution

func NewMsgRunDistribution(runner string, distributionName string, distributionType DistributionType, distributionCount int64) MsgRunDistribution

func (*MsgRunDistribution) Descriptor

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

func (*MsgRunDistribution) GetAuthorizedRunner

func (m *MsgRunDistribution) GetAuthorizedRunner() string

func (*MsgRunDistribution) GetDistributionCount added in v0.12.0

func (m *MsgRunDistribution) GetDistributionCount() int64

func (*MsgRunDistribution) GetDistributionName

func (m *MsgRunDistribution) GetDistributionName() string

func (*MsgRunDistribution) GetDistributionType

func (m *MsgRunDistribution) GetDistributionType() DistributionType

func (MsgRunDistribution) GetSignBytes

func (m MsgRunDistribution) GetSignBytes() []byte

func (MsgRunDistribution) GetSigners

func (m MsgRunDistribution) GetSigners() []sdk.AccAddress

func (*MsgRunDistribution) Marshal

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

func (*MsgRunDistribution) MarshalTo

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

func (*MsgRunDistribution) MarshalToSizedBuffer

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

func (*MsgRunDistribution) ProtoMessage

func (*MsgRunDistribution) ProtoMessage()

func (*MsgRunDistribution) Reset

func (m *MsgRunDistribution) Reset()

func (MsgRunDistribution) Route

func (m MsgRunDistribution) Route() string

func (*MsgRunDistribution) Size

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

func (*MsgRunDistribution) String

func (m *MsgRunDistribution) String() string

func (MsgRunDistribution) Type

func (m MsgRunDistribution) Type() string

func (*MsgRunDistribution) Unmarshal

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

func (MsgRunDistribution) ValidateBasic

func (m MsgRunDistribution) ValidateBasic() error

func (*MsgRunDistribution) XXX_DiscardUnknown

func (m *MsgRunDistribution) XXX_DiscardUnknown()

func (*MsgRunDistribution) XXX_Marshal

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

func (*MsgRunDistribution) XXX_Merge

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

func (*MsgRunDistribution) XXX_Size

func (m *MsgRunDistribution) XXX_Size() int

func (*MsgRunDistribution) XXX_Unmarshal

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

type MsgRunDistributionResponse

type MsgRunDistributionResponse struct {
}

func (*MsgRunDistributionResponse) Descriptor

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

func (*MsgRunDistributionResponse) Marshal

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

func (*MsgRunDistributionResponse) MarshalTo

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

func (*MsgRunDistributionResponse) MarshalToSizedBuffer

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

func (*MsgRunDistributionResponse) ProtoMessage

func (*MsgRunDistributionResponse) ProtoMessage()

func (*MsgRunDistributionResponse) Reset

func (m *MsgRunDistributionResponse) Reset()

func (*MsgRunDistributionResponse) Size

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

func (*MsgRunDistributionResponse) String

func (m *MsgRunDistributionResponse) String() string

func (*MsgRunDistributionResponse) Unmarshal

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

func (*MsgRunDistributionResponse) XXX_DiscardUnknown

func (m *MsgRunDistributionResponse) XXX_DiscardUnknown()

func (*MsgRunDistributionResponse) XXX_Marshal

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

func (*MsgRunDistributionResponse) XXX_Merge

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

func (*MsgRunDistributionResponse) XXX_Size

func (m *MsgRunDistributionResponse) XXX_Size() int

func (*MsgRunDistributionResponse) XXX_Unmarshal

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

type MsgServer

MsgServer is the server API for Msg service.

type ParamSubspace

type ParamSubspace interface {
	WithKeyTable(table paramtypes.KeyTable) paramtypes.Subspace
	Get(ctx sdk.Context, key []byte, ptr interface{})
	GetParamSet(ctx sdk.Context, ps paramtypes.ParamSet)
	SetParamSet(ctx sdk.Context, ps paramtypes.ParamSet)
}

ParamSubspace defines the expected Subspace interface

type QueryAllDistributionsRequest

type QueryAllDistributionsRequest struct {
}

func (*QueryAllDistributionsRequest) Descriptor

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

func (*QueryAllDistributionsRequest) Marshal

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

func (*QueryAllDistributionsRequest) MarshalTo

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

func (*QueryAllDistributionsRequest) MarshalToSizedBuffer

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

func (*QueryAllDistributionsRequest) ProtoMessage

func (*QueryAllDistributionsRequest) ProtoMessage()

func (*QueryAllDistributionsRequest) Reset

func (m *QueryAllDistributionsRequest) Reset()

func (*QueryAllDistributionsRequest) Size

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

func (*QueryAllDistributionsRequest) String

func (*QueryAllDistributionsRequest) Unmarshal

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

func (*QueryAllDistributionsRequest) XXX_DiscardUnknown

func (m *QueryAllDistributionsRequest) XXX_DiscardUnknown()

func (*QueryAllDistributionsRequest) XXX_Marshal

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

func (*QueryAllDistributionsRequest) XXX_Merge

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

func (*QueryAllDistributionsRequest) XXX_Size

func (m *QueryAllDistributionsRequest) XXX_Size() int

func (*QueryAllDistributionsRequest) XXX_Unmarshal

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

type QueryAllDistributionsResponse

type QueryAllDistributionsResponse struct {
	Distributions []*Distribution `protobuf:"bytes,1,rep,name=distributions,proto3" json:"distributions,omitempty"`
	Height        int64           `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
}

func NewQueryAllDistributionsResponse

func NewQueryAllDistributionsResponse(distributions Distributions, height int64) QueryAllDistributionsResponse

func (*QueryAllDistributionsResponse) Descriptor

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

func (*QueryAllDistributionsResponse) GetDistributions

func (m *QueryAllDistributionsResponse) GetDistributions() []*Distribution

func (*QueryAllDistributionsResponse) GetHeight

func (m *QueryAllDistributionsResponse) GetHeight() int64

func (*QueryAllDistributionsResponse) Marshal

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

func (*QueryAllDistributionsResponse) MarshalTo

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

func (*QueryAllDistributionsResponse) MarshalToSizedBuffer

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

func (*QueryAllDistributionsResponse) ProtoMessage

func (*QueryAllDistributionsResponse) ProtoMessage()

func (*QueryAllDistributionsResponse) Reset

func (m *QueryAllDistributionsResponse) Reset()

func (*QueryAllDistributionsResponse) Size

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

func (*QueryAllDistributionsResponse) String

func (*QueryAllDistributionsResponse) Unmarshal

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

func (*QueryAllDistributionsResponse) XXX_DiscardUnknown

func (m *QueryAllDistributionsResponse) XXX_DiscardUnknown()

func (*QueryAllDistributionsResponse) XXX_Marshal

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

func (*QueryAllDistributionsResponse) XXX_Merge

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

func (*QueryAllDistributionsResponse) XXX_Size

func (m *QueryAllDistributionsResponse) XXX_Size() int

func (*QueryAllDistributionsResponse) XXX_Unmarshal

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

type QueryClaimsByTypeRequest

type QueryClaimsByTypeRequest struct {
	UserClaimType DistributionType `` /* 149-byte string literal not displayed */
}

func (*QueryClaimsByTypeRequest) Descriptor

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

func (*QueryClaimsByTypeRequest) GetUserClaimType

func (m *QueryClaimsByTypeRequest) GetUserClaimType() DistributionType

func (*QueryClaimsByTypeRequest) Marshal

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

func (*QueryClaimsByTypeRequest) MarshalTo

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

func (*QueryClaimsByTypeRequest) MarshalToSizedBuffer

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

func (*QueryClaimsByTypeRequest) ProtoMessage

func (*QueryClaimsByTypeRequest) ProtoMessage()

func (*QueryClaimsByTypeRequest) Reset

func (m *QueryClaimsByTypeRequest) Reset()

func (*QueryClaimsByTypeRequest) Size

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

func (*QueryClaimsByTypeRequest) String

func (m *QueryClaimsByTypeRequest) String() string

func (*QueryClaimsByTypeRequest) Unmarshal

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

func (*QueryClaimsByTypeRequest) XXX_DiscardUnknown

func (m *QueryClaimsByTypeRequest) XXX_DiscardUnknown()

func (*QueryClaimsByTypeRequest) XXX_Marshal

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

func (*QueryClaimsByTypeRequest) XXX_Merge

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

func (*QueryClaimsByTypeRequest) XXX_Size

func (m *QueryClaimsByTypeRequest) XXX_Size() int

func (*QueryClaimsByTypeRequest) XXX_Unmarshal

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

type QueryClaimsResponse

type QueryClaimsResponse struct {
	Claims []*UserClaim `protobuf:"bytes,1,rep,name=claims,proto3" json:"claims,omitempty"`
	Height int64        `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
}

func (*QueryClaimsResponse) Descriptor

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

func (*QueryClaimsResponse) GetClaims

func (m *QueryClaimsResponse) GetClaims() []*UserClaim

func (*QueryClaimsResponse) GetHeight

func (m *QueryClaimsResponse) GetHeight() int64

func (*QueryClaimsResponse) Marshal

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

func (*QueryClaimsResponse) MarshalTo

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

func (*QueryClaimsResponse) MarshalToSizedBuffer

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

func (*QueryClaimsResponse) ProtoMessage

func (*QueryClaimsResponse) ProtoMessage()

func (*QueryClaimsResponse) Reset

func (m *QueryClaimsResponse) Reset()

func (*QueryClaimsResponse) Size

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

func (*QueryClaimsResponse) String

func (m *QueryClaimsResponse) String() string

func (*QueryClaimsResponse) Unmarshal

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

func (*QueryClaimsResponse) XXX_DiscardUnknown

func (m *QueryClaimsResponse) XXX_DiscardUnknown()

func (*QueryClaimsResponse) XXX_Marshal

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

func (*QueryClaimsResponse) XXX_Merge

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

func (*QueryClaimsResponse) XXX_Size

func (m *QueryClaimsResponse) XXX_Size() int

func (*QueryClaimsResponse) XXX_Unmarshal

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

type QueryClient

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 QueryRecordsByDistributionNameRequest

type QueryRecordsByDistributionNameRequest struct {
	DistributionName string             `protobuf:"bytes,1,opt,name=distribution_name,json=distributionName,proto3" json:"distribution_name,omitempty"`
	Status           DistributionStatus `protobuf:"varint,2,opt,name=status,proto3,enum=sifnode.dispensation.v1.DistributionStatus" json:"status,omitempty"`
}

func NewQueryRecordsByDistributionName

func NewQueryRecordsByDistributionName(distributionName string, status DistributionStatus) QueryRecordsByDistributionNameRequest

func (*QueryRecordsByDistributionNameRequest) Descriptor

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

func (*QueryRecordsByDistributionNameRequest) GetDistributionName

func (m *QueryRecordsByDistributionNameRequest) GetDistributionName() string

func (*QueryRecordsByDistributionNameRequest) GetStatus

func (*QueryRecordsByDistributionNameRequest) Marshal

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

func (*QueryRecordsByDistributionNameRequest) MarshalTo

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

func (*QueryRecordsByDistributionNameRequest) MarshalToSizedBuffer

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

func (*QueryRecordsByDistributionNameRequest) ProtoMessage

func (*QueryRecordsByDistributionNameRequest) ProtoMessage()

func (*QueryRecordsByDistributionNameRequest) Reset

func (*QueryRecordsByDistributionNameRequest) Size

func (*QueryRecordsByDistributionNameRequest) String

func (*QueryRecordsByDistributionNameRequest) Unmarshal

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

func (*QueryRecordsByDistributionNameRequest) XXX_DiscardUnknown

func (m *QueryRecordsByDistributionNameRequest) XXX_DiscardUnknown()

func (*QueryRecordsByDistributionNameRequest) XXX_Marshal

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

func (*QueryRecordsByDistributionNameRequest) XXX_Merge

func (*QueryRecordsByDistributionNameRequest) XXX_Size

func (*QueryRecordsByDistributionNameRequest) XXX_Unmarshal

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

type QueryRecordsByDistributionNameResponse

type QueryRecordsByDistributionNameResponse struct {
	DistributionRecords *DistributionRecords `protobuf:"bytes,1,opt,name=distribution_records,json=distributionRecords,proto3" json:"distribution_records,omitempty"`
	Height              int64                `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
}

func NewQueryRecordsByDistributionNameResponse

func NewQueryRecordsByDistributionNameResponse(distributionRecords DistributionRecords, height int64) QueryRecordsByDistributionNameResponse

func (*QueryRecordsByDistributionNameResponse) Descriptor

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

func (*QueryRecordsByDistributionNameResponse) GetDistributionRecords

func (m *QueryRecordsByDistributionNameResponse) GetDistributionRecords() *DistributionRecords

func (*QueryRecordsByDistributionNameResponse) GetHeight

func (*QueryRecordsByDistributionNameResponse) Marshal

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

func (*QueryRecordsByDistributionNameResponse) MarshalTo

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

func (*QueryRecordsByDistributionNameResponse) MarshalToSizedBuffer

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

func (*QueryRecordsByDistributionNameResponse) ProtoMessage

func (*QueryRecordsByDistributionNameResponse) Reset

func (*QueryRecordsByDistributionNameResponse) Size

func (*QueryRecordsByDistributionNameResponse) String

func (*QueryRecordsByDistributionNameResponse) Unmarshal

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

func (*QueryRecordsByDistributionNameResponse) XXX_DiscardUnknown

func (m *QueryRecordsByDistributionNameResponse) XXX_DiscardUnknown()

func (*QueryRecordsByDistributionNameResponse) XXX_Marshal

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

func (*QueryRecordsByDistributionNameResponse) XXX_Merge

func (*QueryRecordsByDistributionNameResponse) XXX_Size

func (*QueryRecordsByDistributionNameResponse) XXX_Unmarshal

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

type QueryRecordsByRecipientAddrRequest

type QueryRecordsByRecipientAddrRequest struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}

func NewQueryRecordsByRecipientAddr

func NewQueryRecordsByRecipientAddr(address string) QueryRecordsByRecipientAddrRequest

func (*QueryRecordsByRecipientAddrRequest) Descriptor

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

func (*QueryRecordsByRecipientAddrRequest) GetAddress

func (*QueryRecordsByRecipientAddrRequest) Marshal

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

func (*QueryRecordsByRecipientAddrRequest) MarshalTo

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

func (*QueryRecordsByRecipientAddrRequest) MarshalToSizedBuffer

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

func (*QueryRecordsByRecipientAddrRequest) ProtoMessage

func (*QueryRecordsByRecipientAddrRequest) ProtoMessage()

func (*QueryRecordsByRecipientAddrRequest) Reset

func (*QueryRecordsByRecipientAddrRequest) Size

func (*QueryRecordsByRecipientAddrRequest) String

func (*QueryRecordsByRecipientAddrRequest) Unmarshal

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

func (*QueryRecordsByRecipientAddrRequest) XXX_DiscardUnknown

func (m *QueryRecordsByRecipientAddrRequest) XXX_DiscardUnknown()

func (*QueryRecordsByRecipientAddrRequest) XXX_Marshal

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

func (*QueryRecordsByRecipientAddrRequest) XXX_Merge

func (*QueryRecordsByRecipientAddrRequest) XXX_Size

func (*QueryRecordsByRecipientAddrRequest) XXX_Unmarshal

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

type QueryRecordsByRecipientAddrResponse

type QueryRecordsByRecipientAddrResponse struct {
	DistributionRecords *DistributionRecords `protobuf:"bytes,1,opt,name=distribution_records,json=distributionRecords,proto3" json:"distribution_records,omitempty"`
	Height              int64                `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
}

func NewQueryRecordsByRecipientAddrResponse

func NewQueryRecordsByRecipientAddrResponse(distributionRecords DistributionRecords, height int64) QueryRecordsByRecipientAddrResponse

func (*QueryRecordsByRecipientAddrResponse) Descriptor

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

func (*QueryRecordsByRecipientAddrResponse) GetDistributionRecords

func (m *QueryRecordsByRecipientAddrResponse) GetDistributionRecords() *DistributionRecords

func (*QueryRecordsByRecipientAddrResponse) GetHeight

func (*QueryRecordsByRecipientAddrResponse) Marshal

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

func (*QueryRecordsByRecipientAddrResponse) MarshalTo

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

func (*QueryRecordsByRecipientAddrResponse) MarshalToSizedBuffer

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

func (*QueryRecordsByRecipientAddrResponse) ProtoMessage

func (*QueryRecordsByRecipientAddrResponse) ProtoMessage()

func (*QueryRecordsByRecipientAddrResponse) Reset

func (*QueryRecordsByRecipientAddrResponse) Size

func (*QueryRecordsByRecipientAddrResponse) String

func (*QueryRecordsByRecipientAddrResponse) Unmarshal

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

func (*QueryRecordsByRecipientAddrResponse) XXX_DiscardUnknown

func (m *QueryRecordsByRecipientAddrResponse) XXX_DiscardUnknown()

func (*QueryRecordsByRecipientAddrResponse) XXX_Marshal

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

func (*QueryRecordsByRecipientAddrResponse) XXX_Merge

func (*QueryRecordsByRecipientAddrResponse) XXX_Size

func (*QueryRecordsByRecipientAddrResponse) XXX_Unmarshal

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

type QueryUserClaims

type QueryUserClaims struct {
	UserClaimType DistributionType `json:"user_claim_type"`
}

func NewQueryUserClaims

func NewQueryUserClaims(userClaimType DistributionType) QueryUserClaims

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) CreateDistribution

func (*UnimplementedMsgServer) CreateUserClaim

func (*UnimplementedMsgServer) RunDistribution

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) AllDistributions

func (*UnimplementedQueryServer) ClaimsByType

type UserClaim

type UserClaim struct {
	UserAddress   string                                    `protobuf:"bytes,1,opt,name=user_address,json=userAddress,proto3" json:"user_address,omitempty"`
	UserClaimType DistributionType                          `` /* 149-byte string literal not displayed */
	UserClaimTime *github_com_gogo_protobuf_types.Timestamp `` /* 154-byte string literal not displayed */
}

func NewUserClaim

func NewUserClaim(userAddress string, userClaimType DistributionType, t time.Time) (UserClaim, error)

func (*UserClaim) Descriptor

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

func (*UserClaim) GetUserAddress

func (m *UserClaim) GetUserAddress() string

func (*UserClaim) GetUserClaimType

func (m *UserClaim) GetUserClaimType() DistributionType

func (*UserClaim) Marshal

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

func (*UserClaim) MarshalTo

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

func (*UserClaim) MarshalToSizedBuffer

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

func (*UserClaim) ProtoMessage

func (*UserClaim) ProtoMessage()

func (*UserClaim) Reset

func (m *UserClaim) Reset()

func (*UserClaim) Size

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

func (*UserClaim) String

func (m *UserClaim) String() string

func (*UserClaim) Unmarshal

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

func (UserClaim) Validate

func (uc UserClaim) Validate() bool

func (*UserClaim) XXX_DiscardUnknown

func (m *UserClaim) XXX_DiscardUnknown()

func (*UserClaim) XXX_Marshal

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

func (*UserClaim) XXX_Merge

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

func (*UserClaim) XXX_Size

func (m *UserClaim) XXX_Size() int

func (*UserClaim) XXX_Unmarshal

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

type UserClaims

type UserClaims struct {
	UserClaims []*UserClaim `protobuf:"bytes,1,rep,name=user_claims,json=userClaims,proto3" json:"user_claims,omitempty"`
}

func (*UserClaims) Descriptor

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

func (*UserClaims) GetUserClaims

func (m *UserClaims) GetUserClaims() []*UserClaim

func (*UserClaims) Marshal

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

func (*UserClaims) MarshalTo

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

func (*UserClaims) MarshalToSizedBuffer

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

func (*UserClaims) ProtoMessage

func (*UserClaims) ProtoMessage()

func (*UserClaims) Reset

func (m *UserClaims) Reset()

func (*UserClaims) Size

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

func (*UserClaims) String

func (m *UserClaims) String() string

func (*UserClaims) Unmarshal

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

func (*UserClaims) XXX_DiscardUnknown

func (m *UserClaims) XXX_DiscardUnknown()

func (*UserClaims) XXX_Marshal

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

func (*UserClaims) XXX_Merge

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

func (*UserClaims) XXX_Size

func (m *UserClaims) XXX_Size() int

func (*UserClaims) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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