types

package
v0.0.3-0...-8a3f181 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	SellingReserveAddressPrefix string = "SellingReserveAddress"
	PayingReserveAddressPrefix  string = "PayingReserveAddress"
	VestingReserveAddressPrefix string = "VestingReserveAddress"
	ModuleAddressNameSplitter   string = "|"

	// ReserveAddressType is an address type of reserve for selling, paying, and vesting.
	// The module uses the address type of 32 bytes length, but it can be changed depending on Cosmos SDK's direction.
	ReserveAddressType = AddressType32Bytes
)
View Source
const (
	EventTypeCreateFixedPriceAuction = "create_fixed_price_auction"
	EventTypeCreateBatchAuction      = "create_batch_auction"
	EventTypeCancelAuction           = "cancel_auction"
	EventTypePlaceBid                = "place_bid"

	AttributeKeyAuctionID             = "auction_id" //nolint:golint
	AttributeKeyAuctioneerAddress     = "auctioneer_address"
	AttributeKeySellingReserveAddress = "selling_pool_address"
	AttributeKeyPayingReserveAddress  = "paying_pool_address"
	AttributeKeyVestingReserveAddress = "vesting_pool_address"
	AttributeKeyStartPrice            = "start_price"
	AttributeKeySellingCoin           = "selling_coin"
	AttributeKeyRemainingSellingCoin  = "remaining_selling_coin"
	AttributeKeyVestingSchedules      = "vesting_schedules"
	AttributeKeyPayingCoinDenom       = "paying_coin_denom"
	AttributeKeyAuctionStatus         = "auction_status"
	AttributeKeyStartTime             = "start_time"
	AttributeKeyEndTime               = "end_time"
	AttributeKeyBidderAddress         = "bidder_address"
	AttributeKeyBidPrice              = "bid_price"
	AttributeKeyBidCoin               = "bid_coin"
	AttributeKeyBidAmount             = "bid_amount"
	AttributeKeyMinBidPrice           = "min_bid_price"
	AttributeKeyMaxExtendedRound      = "maximum_extended_round"
	AttributeKeyExtendedRoundRate     = "extended_round_rate"
)

Event types for the farming module.

View Source
const (
	// ModuleName defines the module name
	ModuleName = "fundraising"

	// StoreKey defines the primary module store key
	StoreKey = ModuleName

	// MemStoreKey defines the in-memory store key
	MemStoreKey = "mem_fundraising"
)
View Source
const (
	// MaxNumVestingSchedules is the maximum number of vesting schedules in an auction
	// It prevents from a malicious auctioneer to set an infinite number of vesting schedules
	// when they create an auction
	MaxNumVestingSchedules = 100

	// MaxExtendedRound is the maximum extend rounds for a batch auction to have
	// It prevents from a batch auction to extend its rounds forever
	MaxExtendedRound = 30
)

Variables

View Source
var (
	ErrInvalidLengthAllowedBidder        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowAllowedBidder          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupAllowedBidder = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthAuction        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowAuction          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupAuction = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthBid        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowBid          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupBid = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidSigner               = sdkerrors.Register(ModuleName, 1101, "expected gov account as only signer for proposal message")
	ErrInvalidAuctionType          = sdkerrors.Register(ModuleName, 1102, "invalid auction type")
	ErrInvalidStartPrice           = sdkerrors.Register(ModuleName, 1103, "invalid start price")
	ErrInvalidVestingSchedules     = sdkerrors.Register(ModuleName, 1104, "invalid vesting schedules")
	ErrInvalidAuctionStatus        = sdkerrors.Register(ModuleName, 1105, "invalid auction status")
	ErrInvalidMaxBidAmount         = sdkerrors.Register(ModuleName, 1106, "invalid maximum bid amount")
	ErrIncorrectAuctionType        = sdkerrors.Register(ModuleName, 1107, "incorrect auction type")
	ErrIncorrectCoinDenom          = sdkerrors.Register(ModuleName, 1108, "incorrect coin denom")
	ErrEmptyAllowedBidders         = sdkerrors.Register(ModuleName, 1109, "empty bidders")
	ErrNotAllowedBidder            = sdkerrors.Register(ModuleName, 1110, "not allowed bidder")
	ErrOverMaxBidAmountLimit       = sdkerrors.Register(ModuleName, 1111, "over maximum bid amount limit")
	ErrInsufficientRemainingAmount = sdkerrors.Register(ModuleName, 1112, "insufficient remaining amount")
	ErrInsufficientMinBidPrice     = sdkerrors.Register(ModuleName, 1113, "insufficient bid price")
	ErrAuctionNotFound             = sdkerrors.Register(ModuleName, 1114, "auction not found")
	ErrBidNotFound                 = sdkerrors.Register(ModuleName, 1115, "bid not found")
	ErrAllowedBidderNotFound       = sdkerrors.Register(ModuleName, 1116, "allowed bidder not found")
	ErrVestingQueueNotFound        = sdkerrors.Register(ModuleName, 1117, "vesting queue not found")
)

x/fundraising 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 (
	// ParamsKey is the prefix to retrieve all Params
	ParamsKey = collections.NewPrefix("p_fundraising")

	// BidKey is the prefix to retrieve all Bid
	BidKey = collections.NewPrefix("bid/value/")
	// BidCountKey is the prefix to retrieve all Bid cound
	BidCountKey = collections.NewPrefix("bid/count/")

	// AuctionKey is the prefix to retrieve all Auction
	AuctionKey = collections.NewPrefix("auction/value/")
	// AuctionCountKey is the prefix to retrieve all Auction count
	AuctionCountKey = collections.NewPrefix("auction/count/")

	// AllowedBidderKey is the prefix to retrieve all AllowedBidder
	AllowedBidderKey = collections.NewPrefix("AllowedBidder/value/")

	// VestingQueueKey is the prefix to retrieve all VestingQueue
	VestingQueueKey = collections.NewPrefix("VestingQueue/value/")

	// MatchedBidsLenKey is the prefix to retrieve all MatchedBidsLen
	MatchedBidsLenKey = collections.NewPrefix("MatchedBidsLen/value/")
)
View Source
var (
	DefaultAuctionCreationFee = sdk.NewCoins(sdk.NewCoin(sdk.DefaultBondDenom, math.NewInt(100_000_000)))
	DefaultPlaceBidFee        = sdk.Coins{}
	DefaultExtendedPeriod     = uint32(1)
)
View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)
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 (
	ErrInvalidLengthVestingQueue        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowVestingQueue          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupVestingQueue = fmt.Errorf("proto: unexpected end of group")
)
View Source
var AddressType_name = map[int32]string{
	0: "ADDRESS_TYPE_32_BYTES",
	1: "ADDRESS_TYPE_20_BYTES",
}
View Source
var AddressType_value = map[string]int32{
	"ADDRESS_TYPE_32_BYTES": 0,
	"ADDRESS_TYPE_20_BYTES": 1,
}
View Source
var AuctionStatus_name = map[int32]string{
	0: "AUCTION_STATUS_UNSPECIFIED",
	1: "AUCTION_STATUS_STANDBY",
	2: "AUCTION_STATUS_STARTED",
	3: "AUCTION_STATUS_VESTING",
	4: "AUCTION_STATUS_FINISHED",
	5: "AUCTION_STATUS_CANCELLED",
}
View Source
var AuctionStatus_value = map[string]int32{
	"AUCTION_STATUS_UNSPECIFIED": 0,
	"AUCTION_STATUS_STANDBY":     1,
	"AUCTION_STATUS_STARTED":     2,
	"AUCTION_STATUS_VESTING":     3,
	"AUCTION_STATUS_FINISHED":    4,
	"AUCTION_STATUS_CANCELLED":   5,
}
View Source
var AuctionType_name = map[int32]string{
	0: "AUCTION_TYPE_UNSPECIFIED",
	1: "AUCTION_TYPE_FIXED_PRICE",
	2: "AUCTION_TYPE_BATCH",
}
View Source
var AuctionType_value = map[string]int32{
	"AUCTION_TYPE_UNSPECIFIED": 0,
	"AUCTION_TYPE_FIXED_PRICE": 1,
	"AUCTION_TYPE_BATCH":       2,
}
View Source
var BidType_name = map[int32]string{
	0: "BID_TYPE_UNSPECIFIED",
	1: "BID_TYPE_FIXED_PRICE",
	2: "BID_TYPE_BATCH_WORTH",
	3: "BID_TYPE_BATCH_MANY",
}
View Source
var BidType_value = map[string]int32{
	"BID_TYPE_UNSPECIFIED": 0,
	"BID_TYPE_FIXED_PRICE": 1,
	"BID_TYPE_BATCH_WORTH": 2,
	"BID_TYPE_BATCH_MANY":  3,
}
View Source
var Msg_serviceDesc = _Msg_serviceDesc
View Source
var Query_serviceDesc = _Query_serviceDesc

Functions

func BidsByPrice

func BidsByPrice(bids []Bid) (prices []math.LegacyDec, bidsByPrice map[string][]Bid)

func DeriveAddress

func DeriveAddress(addressType AddressType, moduleName, name string) sdk.AccAddress

DeriveAddress derives an address with the given address length type, module name, and address derivation name. It is used to derive reserve account addresses for selling, paying, and vesting.

func MarshalAuction

func MarshalAuction(cdc codec.BinaryCodec, auction AuctionI) (value []byte, err error)

MarshalAuction returns bytes from the auction interface.

func MustMarshalAuction

func MustMarshalAuction(cdc codec.BinaryCodec, auction AuctionI) []byte

MustMarshalAuction returns the marshalled auction bytes. It throws panic if it fails.

func MustParseRFC3339

func MustParseRFC3339(s string) time.Time

MustParseRFC3339 parses string time to time in RFC3339 format. This is used only for internal testing purpose.

func PackAuction

func PackAuction(auction AuctionI) (*codectypes.Any, error)

PackAuction converts AuctionI to Any.

func PayingReserveAddress

func PayingReserveAddress(auctionID uint64) sdk.AccAddress

PayingReserveAddress returns the paying reserve address with the given auction id.

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

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 SellingReserveAddress

func SellingReserveAddress(auctionID uint64) sdk.AccAddress

SellingReserveAddress returns the selling reserve address with the given auction id.

func ValidateVestingSchedules

func ValidateVestingSchedules(schedules []VestingSchedule, endTime time.Time) error

ValidateVestingSchedules validates the vesting schedules. Each weight of the vesting schedule must be positive and total weight must be equal to 1. If a number of schedule equals to zero, the auctioneer doesn't want any vesting schedule. The release times must be chronological for vesting schedules. Otherwise it returns an error.

func VestingReserveAddress

func VestingReserveAddress(auctionID uint64) sdk.AccAddress

VestingReserveAddress returns the vesting reserve address with the given auction id.

Types

type AccountKeeper

type AccountKeeper interface {
	GetAccount(ctx context.Context, addr sdk.AccAddress) sdk.AccountI
	GetModuleAddress(name string) sdk.AccAddress
}

AccountKeeper defines the expected account keeper used for simulations (noalias)

type AddressType

type AddressType int32

AddressType enumerates the available types of a address.

const (
	// ADDRESS_TYPE_32_BYTES the 32 bytes length address type of ADR 028.
	AddressType32Bytes AddressType = 0
	// ADDRESS_TYPE_20_BYTES the default 20 bytes length address type.
	AddressType20Bytes AddressType = 1
)

func (AddressType) EnumDescriptor

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

func (AddressType) String

func (x AddressType) String() string

type AllowedBidder

type AllowedBidder struct {
	// auction_id specifies the id of the auction
	AuctionId uint64 `protobuf:"varint,1,opt,name=auction_id,json=auctionId,proto3" json:"auction_id,omitempty"`
	// bidder specifies the bech32-encoded address that bids for the auction
	Bidder string `protobuf:"bytes,2,opt,name=bidder,proto3" json:"bidder,omitempty"`
	// max_bid_amount specifies the maximum bid amount that the bidder can bid
	MaxBidAmount cosmossdk_io_math.Int `protobuf:"bytes,3,opt,name=max_bid_amount,json=maxBidAmount,proto3,customtype=cosmossdk.io/math.Int" json:"max_bid_amount"`
}

AllowedBidder defines an allowed bidder for the auction.

func NewAllowedBidder

func NewAllowedBidder(auctionID uint64, bidderAddr sdk.AccAddress, maxBidAmount math.Int) AllowedBidder

NewAllowedBidder returns a new AllowedBidder.

func (*AllowedBidder) Descriptor

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

func (*AllowedBidder) Marshal

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

func (*AllowedBidder) MarshalTo

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

func (*AllowedBidder) MarshalToSizedBuffer

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

func (*AllowedBidder) ProtoMessage

func (*AllowedBidder) ProtoMessage()

func (*AllowedBidder) Reset

func (m *AllowedBidder) Reset()

func (*AllowedBidder) Size

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

func (*AllowedBidder) String

func (m *AllowedBidder) String() string

func (*AllowedBidder) Unmarshal

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

func (AllowedBidder) Validate

func (ab AllowedBidder) Validate() error

Validate validates allowed bidder object.

func (*AllowedBidder) XXX_DiscardUnknown

func (m *AllowedBidder) XXX_DiscardUnknown()

func (*AllowedBidder) XXX_Marshal

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

func (*AllowedBidder) XXX_Merge

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

func (*AllowedBidder) XXX_Size

func (m *AllowedBidder) XXX_Size() int

func (*AllowedBidder) XXX_Unmarshal

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

type AuctionI

type AuctionI interface {
	proto.Message

	GetId() uint64
	SetId(uint64) error

	GetType() AuctionType
	SetType(AuctionType) error

	GetAuctioneer() string
	SetAuctioneer(string) error

	GetSellingReserveAddress() string
	SetSellingReserveAddress(string) error

	GetPayingReserveAddress() string
	SetPayingReserveAddress(string) error

	GetStartPrice() math.LegacyDec
	SetStartPrice(math.LegacyDec) error

	GetSellingCoin() sdk.Coin
	SetSellingCoin(sdk.Coin) error

	GetPayingCoinDenom() string
	SetPayingCoinDenom(string) error

	GetVestingReserveAddress() string
	SetVestingReserveAddress(string) error

	GetVestingSchedules() []VestingSchedule
	SetVestingSchedules([]VestingSchedule) error

	GetStartTime() time.Time
	SetStartTime(time.Time) error

	GetEndTime() []time.Time
	SetEndTime([]time.Time) error

	GetStatus() AuctionStatus
	SetStatus(AuctionStatus) error

	ShouldAuctionStarted(t time.Time) bool
	ShouldAuctionClosed(t time.Time) bool

	Validate() error
}

AuctionI is an interface that inherits the BaseAuction and exposes common functions to get and set standard auction data.

func MustUnmarshalAuction

func MustUnmarshalAuction(cdc codec.BinaryCodec, value []byte) AuctionI

MustUnmarshalAuction return the unmarshalled auction from bytes. It throws panic if it fails.

func UnmarshalAuction

func UnmarshalAuction(cdc codec.BinaryCodec, value []byte) (auction AuctionI, err error)

UnmarshalAuction returns the auction from the bytes.

func UnpackAuction

func UnpackAuction(any *codectypes.Any) (AuctionI, error)

UnpackAuction converts Any to AuctionI.

func UnpackAuctions

func UnpackAuctions(auctionsAny []*codectypes.Any) ([]AuctionI, error)

UnpackAuctions converts Any slice to AuctionIs.

type AuctionStatus

type AuctionStatus int32

AuctionStatus enumerates the valid status of an auction.

const (
	// AUCTION_STATUS_UNSPECIFIED defines the default auction status
	AuctionStatusNil AuctionStatus = 0
	// AUCTION_STATUS_STANDBY defines the standby auction status
	AuctionStatusStandBy AuctionStatus = 1
	// AUCTION_STATUS_STARTED defines the started auction status
	AuctionStatusStarted AuctionStatus = 2
	// AUCTION_STATUS_VESTING defines the vesting auction status
	AuctionStatusVesting AuctionStatus = 3
	// AUCTION_STATUS_FINISHED defines the finished auction status
	AuctionStatusFinished AuctionStatus = 4
	// AUCTION_STATUS_CANCELLED defines the cancelled auction status
	AuctionStatusCancelled AuctionStatus = 5
)

func (AuctionStatus) EnumDescriptor

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

func (AuctionStatus) String

func (x AuctionStatus) String() string

type AuctionType

type AuctionType int32

AuctionType enumerates the valid types of an auction.

const (
	// AUCTION_TYPE_UNSPECIFIED defines the default auction type
	AuctionTypeNil AuctionType = 0
	// AUCTION_TYPE_FIXED_PRICE defines the fixed price auction type
	AuctionTypeFixedPrice AuctionType = 1
	// AUCTION_TYPE_BATCH defines the batch auction type
	AuctionTypeBatch AuctionType = 2
)

func (AuctionType) EnumDescriptor

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

func (AuctionType) String

func (x AuctionType) String() string

type BankKeeper

type BankKeeper interface {
	SendCoins(ctx context.Context, from, to sdk.AccAddress, amt sdk.Coins) error
	SpendableCoins(ctx context.Context, addr sdk.AccAddress) sdk.Coins
	SendCoinsFromAccountToModule(ctx context.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error
	InputOutputCoins(ctx context.Context, input banktypes.Input, outputs []banktypes.Output) error
	MintCoins(ctx context.Context, moduleName string, amt sdk.Coins) error
	SendCoinsFromModuleToAccount(ctx context.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
}

BankKeeper defines the expected interface needed to retrieve account balances.

type BaseAuction

type BaseAuction struct {
	// auction_id specifies index of the auction
	AuctionId uint64 `protobuf:"varint,1,opt,name=auction_id,json=auctionId,proto3" json:"auction_id,omitempty"`
	// type specifies the auction type
	// type 1 is fixed price and 2 is batch auction
	Type AuctionType `protobuf:"varint,2,opt,name=type,proto3,enum=modules.fundraising.v1.AuctionType" json:"type,omitempty"`
	// auctioneer specifies the bech32-encoded address that creates the auction
	Auctioneer string `protobuf:"bytes,3,opt,name=auctioneer,proto3" json:"auctioneer,omitempty"`
	// selling_reserve_address specifies the bech32-encoded address that has all
	// the selling coin
	SellingReserveAddress string `` /* 126-byte string literal not displayed */
	// paying_reserve_address specifies the bech32-encoded address that has all
	// the paying coin
	PayingReserveAddress string `protobuf:"bytes,5,opt,name=paying_reserve_address,json=payingReserveAddress,proto3" json:"paying_reserve_address,omitempty"`
	// start_price specifies the starting price of the auction
	// it is determined by the proportion of the price of paying coin denom
	StartPrice cosmossdk_io_math.LegacyDec `protobuf:"bytes,6,opt,name=start_price,json=startPrice,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"start_price"`
	// selling_coin specifies the selling coin for the auction
	SellingCoin types.Coin `` /* 137-byte string literal not displayed */
	// paying_coin_denom specifies the paying coin denom that bidders use to bid
	// for
	PayingCoinDenom string `protobuf:"bytes,8,opt,name=paying_coin_denom,json=payingCoinDenom,proto3" json:"paying_coin_denom,omitempty"`
	// vesting_reserve_address specifies the bech32-encoded vesting address that
	// holds vesting amounts of coin
	VestingReserveAddress string `` /* 126-byte string literal not displayed */
	// vesting_schedules specifies the vesting schedules for the auction
	VestingSchedules []VestingSchedule `protobuf:"bytes,10,rep,name=vesting_schedules,json=vestingSchedules,proto3" json:"vesting_schedules"`
	// start_time specifies the start time of the plan
	StartTime time.Time `protobuf:"bytes,11,opt,name=start_time,json=startTime,proto3,stdtime" json:"start_time"`
	// end_time specifies the end time of the plan
	EndTime []time.Time `protobuf:"bytes,12,rep,name=end_time,json=endTime,proto3,stdtime" json:"end_time"`
	// status specifies the auction status
	Status AuctionStatus `protobuf:"varint,13,opt,name=status,proto3,enum=modules.fundraising.v1.AuctionStatus" json:"status,omitempty"`
}

BaseAuction defines a base auction type. It contains all the necessary fields for basic auction functionality. Any custom auction type should extend this type for additional functionality (e.g. batch auction, fixed price auction).

func NewBaseAuction

func NewBaseAuction(
	auctionID uint64, typ AuctionType, auctioneerAddr string,
	sellingPoolAddr string, payingPoolAddr string,
	startPrice math.LegacyDec, sellingCoin sdk.Coin, payingCoinDenom string,
	vestingPoolAddr string, vestingSchedules []VestingSchedule,
	startTime time.Time, endTime []time.Time, status AuctionStatus,
) *BaseAuction

NewBaseAuction creates a new BaseAuction object

func (*BaseAuction) Descriptor

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

func (BaseAuction) GetAuctioneer

func (ba BaseAuction) GetAuctioneer() string

func (BaseAuction) GetEndTime

func (ba BaseAuction) GetEndTime() []time.Time

func (BaseAuction) GetId

func (ba BaseAuction) GetId() uint64

func (BaseAuction) GetPayingCoinDenom

func (ba BaseAuction) GetPayingCoinDenom() string

func (BaseAuction) GetPayingReserveAddress

func (ba BaseAuction) GetPayingReserveAddress() string

func (BaseAuction) GetSellingCoin

func (ba BaseAuction) GetSellingCoin() sdk.Coin

func (BaseAuction) GetSellingReserveAddress

func (ba BaseAuction) GetSellingReserveAddress() string

func (BaseAuction) GetStartPrice

func (ba BaseAuction) GetStartPrice() math.LegacyDec

func (BaseAuction) GetStartTime

func (ba BaseAuction) GetStartTime() time.Time

func (BaseAuction) GetStatus

func (ba BaseAuction) GetStatus() AuctionStatus

func (BaseAuction) GetType

func (ba BaseAuction) GetType() AuctionType

func (BaseAuction) GetVestingReserveAddress

func (ba BaseAuction) GetVestingReserveAddress() string

func (BaseAuction) GetVestingSchedules

func (ba BaseAuction) GetVestingSchedules() []VestingSchedule

func (*BaseAuction) Marshal

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

func (*BaseAuction) MarshalTo

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

func (*BaseAuction) MarshalToSizedBuffer

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

func (*BaseAuction) ProtoMessage

func (*BaseAuction) ProtoMessage()

func (*BaseAuction) Reset

func (m *BaseAuction) Reset()

func (*BaseAuction) SetAuctioneer

func (ba *BaseAuction) SetAuctioneer(addr string) error

func (*BaseAuction) SetEndTime

func (ba *BaseAuction) SetEndTime(t []time.Time) error

func (*BaseAuction) SetId

func (ba *BaseAuction) SetId(auctionID uint64) error

func (*BaseAuction) SetPayingCoinDenom

func (ba *BaseAuction) SetPayingCoinDenom(denom string) error

func (*BaseAuction) SetPayingReserveAddress

func (ba *BaseAuction) SetPayingReserveAddress(addr string) error

func (*BaseAuction) SetSellingCoin

func (ba *BaseAuction) SetSellingCoin(coin sdk.Coin) error

func (*BaseAuction) SetSellingReserveAddress

func (ba *BaseAuction) SetSellingReserveAddress(addr string) error

func (*BaseAuction) SetStartPrice

func (ba *BaseAuction) SetStartPrice(price math.LegacyDec) error

func (*BaseAuction) SetStartTime

func (ba *BaseAuction) SetStartTime(t time.Time) error

func (*BaseAuction) SetStatus

func (ba *BaseAuction) SetStatus(status AuctionStatus) error

func (*BaseAuction) SetType

func (ba *BaseAuction) SetType(typ AuctionType) error

func (*BaseAuction) SetVestingReserveAddress

func (ba *BaseAuction) SetVestingReserveAddress(addr string) error

func (*BaseAuction) SetVestingSchedules

func (ba *BaseAuction) SetVestingSchedules(schedules []VestingSchedule) error

func (BaseAuction) ShouldAuctionClosed

func (ba BaseAuction) ShouldAuctionClosed(t time.Time) bool

ShouldAuctionClosed returns true if the end time is equal or before the given time t.

func (BaseAuction) ShouldAuctionStarted

func (ba BaseAuction) ShouldAuctionStarted(t time.Time) bool

ShouldAuctionStarted returns true if the start time is equal or before the given time t.

func (*BaseAuction) Size

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

func (*BaseAuction) String

func (m *BaseAuction) String() string

func (*BaseAuction) Unmarshal

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

func (BaseAuction) Validate

func (ba BaseAuction) Validate() error

Validate checks for errors on the Auction fields

func (*BaseAuction) XXX_DiscardUnknown

func (m *BaseAuction) XXX_DiscardUnknown()

func (*BaseAuction) XXX_Marshal

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

func (*BaseAuction) XXX_Merge

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

func (*BaseAuction) XXX_Size

func (m *BaseAuction) XXX_Size() int

func (*BaseAuction) XXX_Unmarshal

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

type BatchAuction

type BatchAuction struct {
	*BaseAuction `protobuf:"bytes,1,opt,name=base_auction,json=baseAuction,proto3,embedded=base_auction" json:"base_auction,omitempty"`
	// min_bid_price specifies the minimum bid price
	MinBidPrice cosmossdk_io_math.LegacyDec `protobuf:"bytes,2,opt,name=min_bid_price,json=minBidPrice,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"min_bid_price"`
	// matched_price specifies the matched price of the auction
	MatchedPrice cosmossdk_io_math.LegacyDec `` /* 126-byte string literal not displayed */
	// max_extended_round specifies a maximum number of extended rounds
	MaxExtendedRound uint32 `protobuf:"varint,4,opt,name=max_extended_round,json=maxExtendedRound,proto3" json:"max_extended_round,omitempty"`
	// extended_round_rate specifies the rate that decides if the auction needs
	// another round
	ExtendedRoundRate cosmossdk_io_math.LegacyDec `` /* 143-byte string literal not displayed */
}

BatchAuction defines a batch auction type. It allows bidders to participate in the auction by placing their limit orders with a bid price they are willing to bid within the auction period. They can place multiple bids with different bid prices and if they want to modify their existing bid, they only have an option to modify with a higher bid price. Under the hood, an order book is created to record the bids to calculate the matched bidders.

func NewBatchAuction

func NewBatchAuction(baseAuction *BaseAuction, minBidPrice math.LegacyDec, matchedPrice math.LegacyDec, maxExtendedRound uint32, extendedRoundRate math.LegacyDec) *BatchAuction

NewBatchAuction returns a new batch auction.

func (*BatchAuction) Descriptor

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

func (*BatchAuction) Marshal

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

func (*BatchAuction) MarshalTo

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

func (*BatchAuction) MarshalToSizedBuffer

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

func (*BatchAuction) ProtoMessage

func (*BatchAuction) ProtoMessage()

func (*BatchAuction) Reset

func (m *BatchAuction) Reset()

func (*BatchAuction) Size

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

func (*BatchAuction) String

func (m *BatchAuction) String() string

func (*BatchAuction) Unmarshal

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

func (*BatchAuction) XXX_DiscardUnknown

func (m *BatchAuction) XXX_DiscardUnknown()

func (*BatchAuction) XXX_Marshal

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

func (*BatchAuction) XXX_Merge

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

func (*BatchAuction) XXX_Size

func (m *BatchAuction) XXX_Size() int

func (*BatchAuction) XXX_Unmarshal

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

type Bid

type Bid struct {
	// auction_id specifies the id of the auction
	AuctionId uint64 `protobuf:"varint,1,opt,name=auction_id,json=auctionId,proto3" json:"auction_id,omitempty"`
	// bidder specifies the bech32-encoded address that bids for the auction
	Bidder string `protobuf:"bytes,2,opt,name=bidder,proto3" json:"bidder,omitempty"`
	// bid_id specifies an index of a bid for the bidder
	BidId uint64 `protobuf:"varint,3,opt,name=bid_id,json=bidId,proto3" json:"bid_id,omitempty"`
	// type specifies the bid type; type 1 is fixed price, 2 is how-much-worth, 3
	// is how-many-coins
	Type BidType `protobuf:"varint,4,opt,name=type,proto3,enum=modules.fundraising.v1.BidType" json:"type,omitempty"`
	// price specifies the bid price in which price the bidder places the bid
	Price cosmossdk_io_math.LegacyDec `protobuf:"bytes,5,opt,name=price,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"price"`
	// coin specifies the amount of coin that the bidder bids
	// for a fixed price auction, the denom is of the paying coin.
	// for a batch auction of how-much-worth, the denom is of the paying coin.
	// for a batch auction of how-many-coins, the denom is of the selling coin.
	Coin types.Coin `protobuf:"bytes,6,opt,name=coin,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coin" json:"coin"`
	// is_matched specifies the bid that is a winning bid and enables the bidder
	// to purchase the selling coin
	IsMatched bool `protobuf:"varint,7,opt,name=is_matched,json=isMatched,proto3" json:"is_matched,omitempty"`
}

Bid defines a standard bid for an auction.

func NewBid

func NewBid(auctionID uint64, bidder sdk.AccAddress, bidID uint64, bidType BidType, price math.LegacyDec, coin sdk.Coin, isMatched bool) Bid

NewBid returns a new Bid.

func SortBids

func SortBids(bids []Bid) []Bid

SortBids sorts bid array by bid price in descending order.

func (Bid) ConvertToPayingAmount

func (b Bid) ConvertToPayingAmount(denom string) (amount math.Int)

ConvertToPayingAmount converts to paying amount depending on the bid coin denom. Note that we take as many coins as possible by ceiling numbers from bidder.

func (Bid) ConvertToSellingAmount

func (b Bid) ConvertToSellingAmount(denom string) (amount math.Int)

ConvertToSellingAmount converts to selling amount depending on the bid coin denom. Note that we take as little coins as possible to prevent from overflowing the remaining selling coin.

func (*Bid) Descriptor

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

func (*Bid) Marshal

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

func (*Bid) MarshalTo

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

func (*Bid) MarshalToSizedBuffer

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

func (*Bid) ProtoMessage

func (*Bid) ProtoMessage()

func (*Bid) Reset

func (m *Bid) Reset()

func (*Bid) SetMatched

func (b *Bid) SetMatched(status bool)

func (*Bid) Size

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

func (*Bid) String

func (m *Bid) String() string

func (*Bid) Unmarshal

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

func (Bid) Validate

func (b Bid) Validate() error

Validate validates Bid.

func (*Bid) XXX_DiscardUnknown

func (m *Bid) XXX_DiscardUnknown()

func (*Bid) XXX_Marshal

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

func (*Bid) XXX_Merge

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

func (*Bid) XXX_Size

func (m *Bid) XXX_Size() int

func (*Bid) XXX_Unmarshal

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

type BidType

type BidType int32

BidType enumerates the valid types of a bid.

const (
	// BID_TYPE_UNSPECIFIED defines the default bid type
	BidTypeNil BidType = 0
	// BID_TYPE_FIXED_PRICE defines a bid type for a fixed price auction type
	BidTypeFixedPrice BidType = 1
	// BID_TYPE_BATCH_WORTH defines a bid type for How-Much-Worth-to-Buy of a
	// batch auction
	BidTypeBatchWorth BidType = 2
	// BID_TYPE_BATCH_MANY defines a bid type for How-Many-Coins-to-Buy of a batch
	// auction
	BidTypeBatchMany BidType = 3
)

func (BidType) EnumDescriptor

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

func (BidType) String

func (x BidType) String() string

type BidderMatchResult

type BidderMatchResult struct {
	PayingAmount  math.Int
	MatchedAmount math.Int
}

type DistrKeeper

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

DistrKeeper defines the contract needed to be fulfilled for distribution keeper.

type FixedPriceAuction

type FixedPriceAuction struct {
	*BaseAuction `protobuf:"bytes,1,opt,name=base_auction,json=baseAuction,proto3,embedded=base_auction" json:"base_auction,omitempty"`
	// remaining_selling_coin specifies the remaining amount of selling coin to sell
	RemainingSellingCoin types.Coin `` /* 166-byte string literal not displayed */
}

FixedPriceAuction defines the fixed price auction type. It is the most simpliest way to raise funds. An auctioneer sets the starting price for each selling amounts of coin and bidders bid to purchase based on the fixed price.

func NewFixedPriceAuction

func NewFixedPriceAuction(baseAuction *BaseAuction, remainingSellingCoin sdk.Coin) *FixedPriceAuction

NewFixedPriceAuction returns a new fixed price auction.

func (*FixedPriceAuction) Descriptor

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

func (*FixedPriceAuction) Marshal

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

func (*FixedPriceAuction) MarshalTo

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

func (*FixedPriceAuction) MarshalToSizedBuffer

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

func (*FixedPriceAuction) ProtoMessage

func (*FixedPriceAuction) ProtoMessage()

func (*FixedPriceAuction) Reset

func (m *FixedPriceAuction) Reset()

func (*FixedPriceAuction) Size

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

func (*FixedPriceAuction) String

func (m *FixedPriceAuction) String() string

func (*FixedPriceAuction) Unmarshal

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

func (*FixedPriceAuction) XXX_DiscardUnknown

func (m *FixedPriceAuction) XXX_DiscardUnknown()

func (*FixedPriceAuction) XXX_Marshal

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

func (*FixedPriceAuction) XXX_Merge

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

func (*FixedPriceAuction) XXX_Size

func (m *FixedPriceAuction) XXX_Size() int

func (*FixedPriceAuction) XXX_Unmarshal

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

type FundraisingHooks

type FundraisingHooks interface {
	BeforeFixedPriceAuctionCreated(
		ctx context.Context,
		auctioneer string,
		startPrice math.LegacyDec,
		sellingCoin sdk.Coin,
		payingCoinDenom string,
		vestingSchedules []VestingSchedule,
		startTime time.Time,
		endTime time.Time,
	) error

	AfterFixedPriceAuctionCreated(
		ctx context.Context,
		auctionID uint64,
		auctioneer string,
		startPrice math.LegacyDec,
		sellingCoin sdk.Coin,
		payingCoinDenom string,
		vestingSchedules []VestingSchedule,
		startTime time.Time,
		endTime time.Time,
	) error

	BeforeBatchAuctionCreated(
		ctx context.Context,
		auctioneer string,
		startPrice math.LegacyDec,
		minBidPrice math.LegacyDec,
		sellingCoin sdk.Coin,
		payingCoinDenom string,
		vestingSchedules []VestingSchedule,
		maxExtendedRound uint32,
		extendedRoundRate math.LegacyDec,
		startTime time.Time,
		endTime time.Time,
	) error

	AfterBatchAuctionCreated(
		ctx context.Context,
		auctionID uint64,
		auctioneer string,
		startPrice math.LegacyDec,
		minBidPrice math.LegacyDec,
		sellingCoin sdk.Coin,
		payingCoinDenom string,
		vestingSchedules []VestingSchedule,
		maxExtendedRound uint32,
		extendedRoundRate math.LegacyDec,
		startTime time.Time,
		endTime time.Time,
	) error

	BeforeAuctionCanceled(
		ctx context.Context,
		auctionID uint64,
		auctioneer string,
	) error

	BeforeBidPlaced(
		ctx context.Context,
		auctionID uint64,
		bidID uint64,
		bidder string,
		bidType BidType,
		price math.LegacyDec,
		coin sdk.Coin,
	) error

	BeforeBidModified(
		ctx context.Context,
		auctionID uint64,
		bidID uint64,
		bidder string,
		bidType BidType,
		price math.LegacyDec,
		coin sdk.Coin,
	) error

	BeforeAllowedBiddersAdded(
		ctx context.Context,
		allowedBidders []AllowedBidder,
	) error

	BeforeAllowedBidderUpdated(
		ctx context.Context,
		auctionID uint64,
		bidder sdk.AccAddress,
		maxBidAmount math.Int,
	) error

	BeforeSellingCoinsAllocated(
		ctx context.Context,
		auctionID uint64,
		allocationMap map[string]math.Int,
		refundMap map[string]math.Int,
	) error
}

FundraisingHooks event hooks for fundraising auction and bid objects (noalias)

type FundraisingHooksWrapper

type FundraisingHooksWrapper struct{ FundraisingHooks }

func (FundraisingHooksWrapper) IsOnePerModuleType

func (FundraisingHooksWrapper) IsOnePerModuleType()

IsOnePerModuleType implements the depinject.OnePerModuleType interface.

type GenesisState

type GenesisState struct {
	// params defines all the parameters of the module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	// auction_list define the auction interface for genesis state; the module
	// supports FixedPriceAuction or BatchAuction
	AuctionList []*types.Any `protobuf:"bytes,2,rep,name=auction_list,json=auctionList,proto3" json:"auction_list,omitempty"`
	// allowed_bidder_list define the allowed bidder records for the auction
	AllowedBidderList []AllowedBidder `protobuf:"bytes,3,rep,name=allowed_bidder_list,json=allowedBidderList,proto3" json:"allowed_bidder_list"`
	// bid_list define the bid records used for genesis state
	BidList []Bid `protobuf:"bytes,4,rep,name=bid_list,json=bidList,proto3" json:"bid_list"`
	// vesting_queue_list define the vesting queue records used for genesis state
	VestingQueueList []VestingQueue `protobuf:"bytes,5,rep,name=vesting_queue_list,json=vestingQueueList,proto3" json:"vesting_queue_list"`
}

GenesisState defines the fundraising module's genesis state.

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default genesis state

func (*GenesisState) Descriptor

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

func (*GenesisState) GetAllowedBidderList

func (m *GenesisState) GetAllowedBidderList() []AllowedBidder

func (*GenesisState) GetAuctionList

func (m *GenesisState) GetAuctionList() []*types.Any

func (*GenesisState) GetBidList

func (m *GenesisState) GetBidList() []Bid

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetVestingQueueList

func (m *GenesisState) GetVestingQueueList() []VestingQueue

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 genesis state validation returning an error upon any failure.

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 MatchResult

type MatchResult struct {
	MatchPrice          math.LegacyDec
	MatchedAmount       math.Int
	MatchedBids         []Bid
	MatchResultByBidder map[string]*BidderMatchResult
}

func Match

func Match(matchPrice math.LegacyDec, prices []math.LegacyDec, bidsByPrice map[string][]Bid, sellingAmt math.Int, allowedBidders []AllowedBidder) (res *MatchResult, matched bool)

Match returns the match result for all bids that correspond with the auction.

type MsgAddAllowedBidder

type MsgAddAllowedBidder struct {
	// auction_id specifies the auction id
	AuctionId uint64 `protobuf:"varint,1,opt,name=auction_id,json=auctionId,proto3" json:"auction_id,omitempty"`
	// bidder specifies the bech32-encoded address that bids for the auction
	Bidder string `protobuf:"bytes,2,opt,name=bidder,proto3" json:"bidder,omitempty"`
	// max_bid_amount specifies the maximum bid amount that the bidder can bid
	MaxBidAmount cosmossdk_io_math.Int `protobuf:"bytes,3,opt,name=max_bid_amount,json=maxBidAmount,proto3,customtype=cosmossdk.io/math.Int" json:"max_bid_amount"`
}

MsgAddAllowedBidder defines a SDK message for adding an allowed bidder to the auction.

func NewMsgAddAllowedBidder

func NewMsgAddAllowedBidder(auctionID uint64, bidder string, maxBidAmount math.Int) *MsgAddAllowedBidder

func (*MsgAddAllowedBidder) Descriptor

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

func (*MsgAddAllowedBidder) GetAuctionId

func (m *MsgAddAllowedBidder) GetAuctionId() uint64

func (*MsgAddAllowedBidder) GetBidder

func (m *MsgAddAllowedBidder) GetBidder() string

func (*MsgAddAllowedBidder) Marshal

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

func (*MsgAddAllowedBidder) MarshalTo

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

func (*MsgAddAllowedBidder) MarshalToSizedBuffer

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

func (*MsgAddAllowedBidder) ProtoMessage

func (*MsgAddAllowedBidder) ProtoMessage()

func (*MsgAddAllowedBidder) Reset

func (m *MsgAddAllowedBidder) Reset()

func (*MsgAddAllowedBidder) Size

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

func (*MsgAddAllowedBidder) String

func (m *MsgAddAllowedBidder) String() string

func (MsgAddAllowedBidder) Type

func (msg MsgAddAllowedBidder) Type() string

func (*MsgAddAllowedBidder) Unmarshal

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

func (*MsgAddAllowedBidder) XXX_DiscardUnknown

func (m *MsgAddAllowedBidder) XXX_DiscardUnknown()

func (*MsgAddAllowedBidder) XXX_Marshal

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

func (*MsgAddAllowedBidder) XXX_Merge

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

func (*MsgAddAllowedBidder) XXX_Size

func (m *MsgAddAllowedBidder) XXX_Size() int

func (*MsgAddAllowedBidder) XXX_Unmarshal

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

type MsgAddAllowedBidderResponse

type MsgAddAllowedBidderResponse struct {
}

MsgAddAllowedBidderResponse defines the Msg/MsgAddAllowedBidderResponse response type.

func (*MsgAddAllowedBidderResponse) Descriptor

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

func (*MsgAddAllowedBidderResponse) Marshal

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

func (*MsgAddAllowedBidderResponse) MarshalTo

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

func (*MsgAddAllowedBidderResponse) MarshalToSizedBuffer

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

func (*MsgAddAllowedBidderResponse) ProtoMessage

func (*MsgAddAllowedBidderResponse) ProtoMessage()

func (*MsgAddAllowedBidderResponse) Reset

func (m *MsgAddAllowedBidderResponse) Reset()

func (*MsgAddAllowedBidderResponse) Size

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

func (*MsgAddAllowedBidderResponse) String

func (m *MsgAddAllowedBidderResponse) String() string

func (*MsgAddAllowedBidderResponse) Unmarshal

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

func (*MsgAddAllowedBidderResponse) XXX_DiscardUnknown

func (m *MsgAddAllowedBidderResponse) XXX_DiscardUnknown()

func (*MsgAddAllowedBidderResponse) XXX_Marshal

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

func (*MsgAddAllowedBidderResponse) XXX_Merge

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

func (*MsgAddAllowedBidderResponse) XXX_Size

func (m *MsgAddAllowedBidderResponse) XXX_Size() int

func (*MsgAddAllowedBidderResponse) XXX_Unmarshal

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

type MsgCancelAuction

type MsgCancelAuction struct {
	// auctioneer specifies the bech32-encoded address that is in charge of the
	// auction
	Auctioneer string `protobuf:"bytes,1,opt,name=auctioneer,proto3" json:"auctioneer,omitempty"`
	// auction_id specifies the auction id
	AuctionId uint64 `protobuf:"varint,2,opt,name=auction_id,json=auctionId,proto3" json:"auction_id,omitempty"`
}

MsgCancelAuction defines a SDK message for cancelling the auction. Cancelling is only allowed when the auction hasn't started yet.

func NewMsgCancelAuction

func NewMsgCancelAuction(auctioneer string, auctionID uint64) *MsgCancelAuction

func (*MsgCancelAuction) Descriptor

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

func (*MsgCancelAuction) GetAuctionId

func (m *MsgCancelAuction) GetAuctionId() uint64

func (*MsgCancelAuction) GetAuctioneer

func (m *MsgCancelAuction) GetAuctioneer() string

func (*MsgCancelAuction) Marshal

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

func (*MsgCancelAuction) MarshalTo

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

func (*MsgCancelAuction) MarshalToSizedBuffer

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

func (*MsgCancelAuction) ProtoMessage

func (*MsgCancelAuction) ProtoMessage()

func (*MsgCancelAuction) Reset

func (m *MsgCancelAuction) Reset()

func (*MsgCancelAuction) Size

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

func (*MsgCancelAuction) String

func (m *MsgCancelAuction) String() string

func (MsgCancelAuction) Type

func (msg MsgCancelAuction) Type() string

func (*MsgCancelAuction) Unmarshal

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

func (*MsgCancelAuction) XXX_DiscardUnknown

func (m *MsgCancelAuction) XXX_DiscardUnknown()

func (*MsgCancelAuction) XXX_Marshal

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

func (*MsgCancelAuction) XXX_Merge

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

func (*MsgCancelAuction) XXX_Size

func (m *MsgCancelAuction) XXX_Size() int

func (*MsgCancelAuction) XXX_Unmarshal

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

type MsgCancelAuctionResponse

type MsgCancelAuctionResponse struct {
}

MsgCancelAuctionResponse defines the Msg/MsgCancelAuctionResponse response type.

func (*MsgCancelAuctionResponse) Descriptor

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

func (*MsgCancelAuctionResponse) Marshal

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

func (*MsgCancelAuctionResponse) MarshalTo

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

func (*MsgCancelAuctionResponse) MarshalToSizedBuffer

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

func (*MsgCancelAuctionResponse) ProtoMessage

func (*MsgCancelAuctionResponse) ProtoMessage()

func (*MsgCancelAuctionResponse) Reset

func (m *MsgCancelAuctionResponse) Reset()

func (*MsgCancelAuctionResponse) Size

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

func (*MsgCancelAuctionResponse) String

func (m *MsgCancelAuctionResponse) String() string

func (*MsgCancelAuctionResponse) Unmarshal

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

func (*MsgCancelAuctionResponse) XXX_DiscardUnknown

func (m *MsgCancelAuctionResponse) XXX_DiscardUnknown()

func (*MsgCancelAuctionResponse) XXX_Marshal

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

func (*MsgCancelAuctionResponse) XXX_Merge

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

func (*MsgCancelAuctionResponse) XXX_Size

func (m *MsgCancelAuctionResponse) XXX_Size() int

func (*MsgCancelAuctionResponse) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// UpdateParams defines a (governance) operation for updating the module
	// parameters. The authority defaults to the x/gov module account.
	UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
	// CreateFixedPriceAuction submits a create fixed price auction message.
	CreateFixedPriceAuction(ctx context.Context, in *MsgCreateFixedPriceAuction, opts ...grpc.CallOption) (*MsgCreateFixedPriceAuctionResponse, error)
	// CreateBatchAuction submits a create batch auction message.
	CreateBatchAuction(ctx context.Context, in *MsgCreateBatchAuction, opts ...grpc.CallOption) (*MsgCreateBatchAuctionResponse, error)
	// CancelAuction defines a method to cancel the auction message.
	CancelAuction(ctx context.Context, in *MsgCancelAuction, opts ...grpc.CallOption) (*MsgCancelAuctionResponse, error)
	// PlaceBid defines a method to place a bid message.
	PlaceBid(ctx context.Context, in *MsgPlaceBid, opts ...grpc.CallOption) (*MsgPlaceBidResponse, error)
	// ModifyBid defines a method to modify the bid message.
	ModifyBid(ctx context.Context, in *MsgModifyBid, opts ...grpc.CallOption) (*MsgModifyBidResponse, error)
	// AddAllowedBidder defines a method sto add a single allowed bidder message.
	// This is for the testing purpose and it must not be used in mainnet.
	AddAllowedBidder(ctx context.Context, in *MsgAddAllowedBidder, opts ...grpc.CallOption) (*MsgAddAllowedBidderResponse, 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 MsgCreateBatchAuction

type MsgCreateBatchAuction struct {
	// auctioneer specifies the bech32-encoded address that creates the auction
	Auctioneer string `protobuf:"bytes,1,opt,name=auctioneer,proto3" json:"auctioneer,omitempty"`
	// start_price specifies the starting price of the auction
	StartPrice cosmossdk_io_math.LegacyDec `protobuf:"bytes,2,opt,name=start_price,json=startPrice,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"start_price"`
	// min_bid_price specifies the minibum bid price
	MinBidPrice cosmossdk_io_math.LegacyDec `protobuf:"bytes,3,opt,name=min_bid_price,json=minBidPrice,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"min_bid_price"`
	// selling_coin specifies the selling coin for the auction
	SellingCoin types.Coin `` /* 137-byte string literal not displayed */
	// paying_coin_denom specifies the paying coin denom that bidders use to bid
	// for
	PayingCoinDenom string `protobuf:"bytes,5,opt,name=paying_coin_denom,json=payingCoinDenom,proto3" json:"paying_coin_denom,omitempty"`
	// vesting_schedules specifies the vesting schedules for the auction
	VestingSchedules []VestingSchedule `protobuf:"bytes,6,rep,name=vesting_schedules,json=vestingSchedules,proto3" json:"vesting_schedules"`
	// max_extended_round specifies the maximum number of extended rounds for
	// the auction
	MaxExtendedRound uint32 `protobuf:"varint,7,opt,name=max_extended_round,json=maxExtendedRound,proto3" json:"max_extended_round,omitempty"`
	// extended_round_rate specifies the rate that decides if the auction needs
	// another round
	ExtendedRoundRate cosmossdk_io_math.LegacyDec `` /* 143-byte string literal not displayed */
	// start_time specifies the start time of the plan
	StartTime time.Time `protobuf:"bytes,9,opt,name=start_time,json=startTime,proto3,stdtime" json:"start_time"`
	// end_time specifies the end time of the plan
	EndTime time.Time `protobuf:"bytes,10,opt,name=end_time,json=endTime,proto3,stdtime" json:"end_time"`
}

MsgCreateBatchAuction defines a SDK message for creating an batch auction.

See: https://github.com/ignite/modules/tree/main/x/fundraising/spec/04_messages.md

func NewMsgCreateBatchAuction

func NewMsgCreateBatchAuction(
	auctioneer string,
	startPrice math.LegacyDec,
	minBidPrice math.LegacyDec,
	sellingCoin sdk.Coin,
	payingCoinDenom string,
	vestingSchedules []VestingSchedule,
	maxExtendedRound uint32,
	extendedRoundRate math.LegacyDec,
	startTime time.Time,
	endTime time.Time,
) *MsgCreateBatchAuction

func (*MsgCreateBatchAuction) Descriptor

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

func (*MsgCreateBatchAuction) GetAuctioneer

func (m *MsgCreateBatchAuction) GetAuctioneer() string

func (*MsgCreateBatchAuction) GetEndTime

func (m *MsgCreateBatchAuction) GetEndTime() time.Time

func (*MsgCreateBatchAuction) GetMaxExtendedRound

func (m *MsgCreateBatchAuction) GetMaxExtendedRound() uint32

func (*MsgCreateBatchAuction) GetPayingCoinDenom

func (m *MsgCreateBatchAuction) GetPayingCoinDenom() string

func (*MsgCreateBatchAuction) GetSellingCoin

func (m *MsgCreateBatchAuction) GetSellingCoin() types.Coin

func (*MsgCreateBatchAuction) GetStartTime

func (m *MsgCreateBatchAuction) GetStartTime() time.Time

func (*MsgCreateBatchAuction) GetVestingSchedules

func (m *MsgCreateBatchAuction) GetVestingSchedules() []VestingSchedule

func (*MsgCreateBatchAuction) Marshal

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

func (*MsgCreateBatchAuction) MarshalTo

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

func (*MsgCreateBatchAuction) MarshalToSizedBuffer

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

func (*MsgCreateBatchAuction) ProtoMessage

func (*MsgCreateBatchAuction) ProtoMessage()

func (*MsgCreateBatchAuction) Reset

func (m *MsgCreateBatchAuction) Reset()

func (*MsgCreateBatchAuction) Size

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

func (*MsgCreateBatchAuction) String

func (m *MsgCreateBatchAuction) String() string

func (MsgCreateBatchAuction) Type

func (msg MsgCreateBatchAuction) Type() string

func (*MsgCreateBatchAuction) Unmarshal

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

func (MsgCreateBatchAuction) Validate

func (msg MsgCreateBatchAuction) Validate() error

func (*MsgCreateBatchAuction) XXX_DiscardUnknown

func (m *MsgCreateBatchAuction) XXX_DiscardUnknown()

func (*MsgCreateBatchAuction) XXX_Marshal

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

func (*MsgCreateBatchAuction) XXX_Merge

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

func (*MsgCreateBatchAuction) XXX_Size

func (m *MsgCreateBatchAuction) XXX_Size() int

func (*MsgCreateBatchAuction) XXX_Unmarshal

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

type MsgCreateBatchAuctionResponse

type MsgCreateBatchAuctionResponse struct {
}

MsgCreateBatchAuctionResponse defines the Msg/MsgCreateBatchAuctionResponse response type.

func (*MsgCreateBatchAuctionResponse) Descriptor

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

func (*MsgCreateBatchAuctionResponse) Marshal

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

func (*MsgCreateBatchAuctionResponse) MarshalTo

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

func (*MsgCreateBatchAuctionResponse) MarshalToSizedBuffer

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

func (*MsgCreateBatchAuctionResponse) ProtoMessage

func (*MsgCreateBatchAuctionResponse) ProtoMessage()

func (*MsgCreateBatchAuctionResponse) Reset

func (m *MsgCreateBatchAuctionResponse) Reset()

func (*MsgCreateBatchAuctionResponse) Size

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

func (*MsgCreateBatchAuctionResponse) String

func (*MsgCreateBatchAuctionResponse) Unmarshal

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

func (*MsgCreateBatchAuctionResponse) XXX_DiscardUnknown

func (m *MsgCreateBatchAuctionResponse) XXX_DiscardUnknown()

func (*MsgCreateBatchAuctionResponse) XXX_Marshal

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

func (*MsgCreateBatchAuctionResponse) XXX_Merge

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

func (*MsgCreateBatchAuctionResponse) XXX_Size

func (m *MsgCreateBatchAuctionResponse) XXX_Size() int

func (*MsgCreateBatchAuctionResponse) XXX_Unmarshal

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

type MsgCreateFixedPriceAuction

type MsgCreateFixedPriceAuction struct {
	// auctioneer specifies the bech32-encoded address that creates the auction
	Auctioneer string `protobuf:"bytes,1,opt,name=auctioneer,proto3" json:"auctioneer,omitempty"`
	// start_price specifies the starting price of the auction
	StartPrice cosmossdk_io_math.LegacyDec `protobuf:"bytes,2,opt,name=start_price,json=startPrice,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"start_price"`
	// selling_coin specifies the selling coin for the auction
	SellingCoin types.Coin `` /* 137-byte string literal not displayed */
	// paying_coin_denom specifies the paying coin denom that bidders use to bid
	// for
	PayingCoinDenom string `protobuf:"bytes,4,opt,name=paying_coin_denom,json=payingCoinDenom,proto3" json:"paying_coin_denom,omitempty"`
	// vesting_schedules specifies the vesting schedules for the auction
	VestingSchedules []VestingSchedule `protobuf:"bytes,5,rep,name=vesting_schedules,json=vestingSchedules,proto3" json:"vesting_schedules"`
	// start_time specifies the start time of the plan
	StartTime time.Time `protobuf:"bytes,6,opt,name=start_time,json=startTime,proto3,stdtime" json:"start_time"`
	// end_time specifies the end time of the plan
	EndTime time.Time `protobuf:"bytes,7,opt,name=end_time,json=endTime,proto3,stdtime" json:"end_time"`
}

MsgCreateFixedPriceAuction defines a SDK message for creating a fixed price auction.

func NewMsgCreateFixedPriceAuction

func NewMsgCreateFixedPriceAuction(
	auctioneer string,
	startPrice math.LegacyDec,
	sellingCoin sdk.Coin,
	payingCoinDenom string,
	vestingSchedules []VestingSchedule,
	startTime time.Time,
	endTime time.Time,
) *MsgCreateFixedPriceAuction

func (*MsgCreateFixedPriceAuction) Descriptor

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

func (*MsgCreateFixedPriceAuction) GetAuctioneer

func (m *MsgCreateFixedPriceAuction) GetAuctioneer() string

func (*MsgCreateFixedPriceAuction) GetEndTime

func (m *MsgCreateFixedPriceAuction) GetEndTime() time.Time

func (*MsgCreateFixedPriceAuction) GetPayingCoinDenom

func (m *MsgCreateFixedPriceAuction) GetPayingCoinDenom() string

func (*MsgCreateFixedPriceAuction) GetSellingCoin

func (m *MsgCreateFixedPriceAuction) GetSellingCoin() types.Coin

func (*MsgCreateFixedPriceAuction) GetStartTime

func (m *MsgCreateFixedPriceAuction) GetStartTime() time.Time

func (*MsgCreateFixedPriceAuction) GetVestingSchedules

func (m *MsgCreateFixedPriceAuction) GetVestingSchedules() []VestingSchedule

func (*MsgCreateFixedPriceAuction) Marshal

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

func (*MsgCreateFixedPriceAuction) MarshalTo

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

func (*MsgCreateFixedPriceAuction) MarshalToSizedBuffer

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

func (*MsgCreateFixedPriceAuction) ProtoMessage

func (*MsgCreateFixedPriceAuction) ProtoMessage()

func (*MsgCreateFixedPriceAuction) Reset

func (m *MsgCreateFixedPriceAuction) Reset()

func (*MsgCreateFixedPriceAuction) Size

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

func (*MsgCreateFixedPriceAuction) String

func (m *MsgCreateFixedPriceAuction) String() string

func (MsgCreateFixedPriceAuction) Type

func (*MsgCreateFixedPriceAuction) Unmarshal

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

func (MsgCreateFixedPriceAuction) Validate

func (msg MsgCreateFixedPriceAuction) Validate() error

func (*MsgCreateFixedPriceAuction) XXX_DiscardUnknown

func (m *MsgCreateFixedPriceAuction) XXX_DiscardUnknown()

func (*MsgCreateFixedPriceAuction) XXX_Marshal

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

func (*MsgCreateFixedPriceAuction) XXX_Merge

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

func (*MsgCreateFixedPriceAuction) XXX_Size

func (m *MsgCreateFixedPriceAuction) XXX_Size() int

func (*MsgCreateFixedPriceAuction) XXX_Unmarshal

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

type MsgCreateFixedPriceAuctionResponse

type MsgCreateFixedPriceAuctionResponse struct {
}

MsgCreateFixedPriceAuctionResponse defines the Msg/MsgCreateFixedPriceAuctionResponse response type.

func (*MsgCreateFixedPriceAuctionResponse) Descriptor

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

func (*MsgCreateFixedPriceAuctionResponse) Marshal

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

func (*MsgCreateFixedPriceAuctionResponse) MarshalTo

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

func (*MsgCreateFixedPriceAuctionResponse) MarshalToSizedBuffer

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

func (*MsgCreateFixedPriceAuctionResponse) ProtoMessage

func (*MsgCreateFixedPriceAuctionResponse) ProtoMessage()

func (*MsgCreateFixedPriceAuctionResponse) Reset

func (*MsgCreateFixedPriceAuctionResponse) Size

func (*MsgCreateFixedPriceAuctionResponse) String

func (*MsgCreateFixedPriceAuctionResponse) Unmarshal

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

func (*MsgCreateFixedPriceAuctionResponse) XXX_DiscardUnknown

func (m *MsgCreateFixedPriceAuctionResponse) XXX_DiscardUnknown()

func (*MsgCreateFixedPriceAuctionResponse) XXX_Marshal

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

func (*MsgCreateFixedPriceAuctionResponse) XXX_Merge

func (*MsgCreateFixedPriceAuctionResponse) XXX_Size

func (*MsgCreateFixedPriceAuctionResponse) XXX_Unmarshal

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

type MsgModifyBid

type MsgModifyBid struct {
	// auction_id specifies the auction id
	AuctionId uint64 `protobuf:"varint,1,opt,name=auction_id,json=auctionId,proto3" json:"auction_id,omitempty"`
	// bidder specifies the bech32-encoded address that bids for the auction
	Bidder string `protobuf:"bytes,2,opt,name=bidder,proto3" json:"bidder,omitempty"`
	// bid_id specifies the bid id
	BidId uint64 `protobuf:"varint,3,opt,name=bid_id,json=bidId,proto3" json:"bid_id,omitempty"`
	// price specifies the bid price.
	// the bide price must be above or equal to the original value that the bidder
	// placed.
	Price cosmossdk_io_math.LegacyDec `protobuf:"bytes,4,opt,name=price,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"price"`
	// coin specifies the paying amount of coin or the selling amount that the
	// bidder bids
	Coin types.Coin `protobuf:"bytes,5,opt,name=coin,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coin" json:"coin"`
}

MsgModifyBid defines a SDK message for modifying an existing bid for the auction.

func NewMsgModifyBid

func NewMsgModifyBid(
	auctionID uint64,
	bidder string,
	bidID uint64,
	price math.LegacyDec,
	coin sdk.Coin,
) *MsgModifyBid

func (*MsgModifyBid) Descriptor

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

func (*MsgModifyBid) GetAuctionId

func (m *MsgModifyBid) GetAuctionId() uint64

func (*MsgModifyBid) GetBidId

func (m *MsgModifyBid) GetBidId() uint64

func (*MsgModifyBid) GetBidder

func (m *MsgModifyBid) GetBidder() string

func (*MsgModifyBid) GetCoin

func (m *MsgModifyBid) GetCoin() types.Coin

func (*MsgModifyBid) Marshal

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

func (*MsgModifyBid) MarshalTo

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

func (*MsgModifyBid) MarshalToSizedBuffer

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

func (*MsgModifyBid) ProtoMessage

func (*MsgModifyBid) ProtoMessage()

func (*MsgModifyBid) Reset

func (m *MsgModifyBid) Reset()

func (*MsgModifyBid) Size

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

func (*MsgModifyBid) String

func (m *MsgModifyBid) String() string

func (MsgModifyBid) Type

func (msg MsgModifyBid) Type() string

func (*MsgModifyBid) Unmarshal

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

func (MsgModifyBid) Validate

func (msg MsgModifyBid) Validate() error

func (*MsgModifyBid) XXX_DiscardUnknown

func (m *MsgModifyBid) XXX_DiscardUnknown()

func (*MsgModifyBid) XXX_Marshal

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

func (*MsgModifyBid) XXX_Merge

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

func (*MsgModifyBid) XXX_Size

func (m *MsgModifyBid) XXX_Size() int

func (*MsgModifyBid) XXX_Unmarshal

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

type MsgModifyBidResponse

type MsgModifyBidResponse struct {
}

MsgModifyBidResponse defines the Msg/MsgModifyBidResponse response type.

func (*MsgModifyBidResponse) Descriptor

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

func (*MsgModifyBidResponse) Marshal

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

func (*MsgModifyBidResponse) MarshalTo

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

func (*MsgModifyBidResponse) MarshalToSizedBuffer

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

func (*MsgModifyBidResponse) ProtoMessage

func (*MsgModifyBidResponse) ProtoMessage()

func (*MsgModifyBidResponse) Reset

func (m *MsgModifyBidResponse) Reset()

func (*MsgModifyBidResponse) Size

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

func (*MsgModifyBidResponse) String

func (m *MsgModifyBidResponse) String() string

func (*MsgModifyBidResponse) Unmarshal

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

func (*MsgModifyBidResponse) XXX_DiscardUnknown

func (m *MsgModifyBidResponse) XXX_DiscardUnknown()

func (*MsgModifyBidResponse) XXX_Marshal

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

func (*MsgModifyBidResponse) XXX_Merge

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

func (*MsgModifyBidResponse) XXX_Size

func (m *MsgModifyBidResponse) XXX_Size() int

func (*MsgModifyBidResponse) XXX_Unmarshal

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

type MsgPlaceBid

type MsgPlaceBid struct {
	// auction_id specifies the auction id
	AuctionId uint64 `protobuf:"varint,1,opt,name=auction_id,json=auctionId,proto3" json:"auction_id,omitempty"`
	// bidder specifies the bech32-encoded address that bids for the auction
	Bidder string `protobuf:"bytes,2,opt,name=bidder,proto3" json:"bidder,omitempty"`
	// type specifies the bid type; type 1 is fixed price, 2 is how-much-worth, 3
	// is how-many-coins
	BidType BidType `protobuf:"varint,3,opt,name=bid_type,json=bidType,proto3,enum=modules.fundraising.v1.BidType" json:"bid_type,omitempty"`
	// price specifies the bid price.
	// The bid price must be the start price for fixed price auction whereas
	// the bide price can be any value that the bidder places.
	Price cosmossdk_io_math.LegacyDec `protobuf:"bytes,4,opt,name=price,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"price"`
	// coin specifies the paying amount of coin or the selling amount that the
	// bidder bids
	Coin types.Coin `protobuf:"bytes,5,opt,name=coin,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coin" json:"coin"`
}

MsgPlaceBid defines a SDK message for placing a bid for the auction.

func NewMsgPlaceBid

func NewMsgPlaceBid(
	auctionID uint64,
	bidder string,
	bidType BidType,
	price math.LegacyDec,
	coin sdk.Coin,
) *MsgPlaceBid

func (*MsgPlaceBid) Descriptor

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

func (*MsgPlaceBid) GetAuctionId

func (m *MsgPlaceBid) GetAuctionId() uint64

func (*MsgPlaceBid) GetBidType

func (m *MsgPlaceBid) GetBidType() BidType

func (*MsgPlaceBid) GetBidder

func (m *MsgPlaceBid) GetBidder() string

func (*MsgPlaceBid) GetCoin

func (m *MsgPlaceBid) GetCoin() types.Coin

func (*MsgPlaceBid) Marshal

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

func (*MsgPlaceBid) MarshalTo

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

func (*MsgPlaceBid) MarshalToSizedBuffer

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

func (*MsgPlaceBid) ProtoMessage

func (*MsgPlaceBid) ProtoMessage()

func (*MsgPlaceBid) Reset

func (m *MsgPlaceBid) Reset()

func (*MsgPlaceBid) Size

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

func (*MsgPlaceBid) String

func (m *MsgPlaceBid) String() string

func (MsgPlaceBid) Type

func (msg MsgPlaceBid) Type() string

func (*MsgPlaceBid) Unmarshal

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

func (MsgPlaceBid) Validate

func (msg MsgPlaceBid) Validate() error

func (*MsgPlaceBid) XXX_DiscardUnknown

func (m *MsgPlaceBid) XXX_DiscardUnknown()

func (*MsgPlaceBid) XXX_Marshal

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

func (*MsgPlaceBid) XXX_Merge

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

func (*MsgPlaceBid) XXX_Size

func (m *MsgPlaceBid) XXX_Size() int

func (*MsgPlaceBid) XXX_Unmarshal

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

type MsgPlaceBidResponse

type MsgPlaceBidResponse struct {
}

MsgPlaceBidResponse defines the Msg/MsgPlaceBidResponse response type.

func (*MsgPlaceBidResponse) Descriptor

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

func (*MsgPlaceBidResponse) Marshal

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

func (*MsgPlaceBidResponse) MarshalTo

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

func (*MsgPlaceBidResponse) MarshalToSizedBuffer

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

func (*MsgPlaceBidResponse) ProtoMessage

func (*MsgPlaceBidResponse) ProtoMessage()

func (*MsgPlaceBidResponse) Reset

func (m *MsgPlaceBidResponse) Reset()

func (*MsgPlaceBidResponse) Size

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

func (*MsgPlaceBidResponse) String

func (m *MsgPlaceBidResponse) String() string

func (*MsgPlaceBidResponse) Unmarshal

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

func (*MsgPlaceBidResponse) XXX_DiscardUnknown

func (m *MsgPlaceBidResponse) XXX_DiscardUnknown()

func (*MsgPlaceBidResponse) XXX_Marshal

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

func (*MsgPlaceBidResponse) XXX_Merge

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

func (*MsgPlaceBidResponse) XXX_Size

func (m *MsgPlaceBidResponse) XXX_Size() int

func (*MsgPlaceBidResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// UpdateParams defines a (governance) operation for updating the module
	// parameters. The authority defaults to the x/gov module account.
	UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
	// CreateFixedPriceAuction submits a create fixed price auction message.
	CreateFixedPriceAuction(context.Context, *MsgCreateFixedPriceAuction) (*MsgCreateFixedPriceAuctionResponse, error)
	// CreateBatchAuction submits a create batch auction message.
	CreateBatchAuction(context.Context, *MsgCreateBatchAuction) (*MsgCreateBatchAuctionResponse, error)
	// CancelAuction defines a method to cancel the auction message.
	CancelAuction(context.Context, *MsgCancelAuction) (*MsgCancelAuctionResponse, error)
	// PlaceBid defines a method to place a bid message.
	PlaceBid(context.Context, *MsgPlaceBid) (*MsgPlaceBidResponse, error)
	// ModifyBid defines a method to modify the bid message.
	ModifyBid(context.Context, *MsgModifyBid) (*MsgModifyBidResponse, error)
	// AddAllowedBidder defines a method sto add a single allowed bidder message.
	// This is for the testing purpose and it must not be used in mainnet.
	AddAllowedBidder(context.Context, *MsgAddAllowedBidder) (*MsgAddAllowedBidderResponse, error)
}

MsgServer is the server API for Msg service.

type MsgUpdateParams

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

MsgUpdateParams is the Msg/UpdateParams request type.

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) 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 MultiFundraisingHooks

type MultiFundraisingHooks []FundraisingHooks

MultiFundraisingHooks combines multiple fundraising hooks. All hook functions are run in array sequence

func NewMultiFundraisingHooks

func NewMultiFundraisingHooks(hooks ...FundraisingHooks) MultiFundraisingHooks

func (MultiFundraisingHooks) AfterBatchAuctionCreated

func (h MultiFundraisingHooks) AfterBatchAuctionCreated(
	ctx context.Context,
	auctionID uint64,
	auctioneer string,
	startPrice math.LegacyDec,
	minBidPrice math.LegacyDec,
	sellingCoin sdk.Coin,
	payingCoinDenom string,
	vestingSchedules []VestingSchedule,
	maxExtendedRound uint32,
	extendedRoundRate math.LegacyDec,
	startTime time.Time,
	endTime time.Time,
) error

func (MultiFundraisingHooks) AfterFixedPriceAuctionCreated

func (h MultiFundraisingHooks) AfterFixedPriceAuctionCreated(
	ctx context.Context,
	auctionID uint64,
	auctioneer string,
	startPrice math.LegacyDec,
	sellingCoin sdk.Coin,
	payingCoinDenom string,
	vestingSchedules []VestingSchedule,
	startTime,
	endTime time.Time,
) error

func (MultiFundraisingHooks) BeforeAllowedBidderUpdated

func (h MultiFundraisingHooks) BeforeAllowedBidderUpdated(
	ctx context.Context,
	auctionID uint64,
	bidder sdk.AccAddress,
	maxBidAmount math.Int,
) error

func (MultiFundraisingHooks) BeforeAllowedBiddersAdded

func (h MultiFundraisingHooks) BeforeAllowedBiddersAdded(
	ctx context.Context,
	allowedBidders []AllowedBidder,
) error

func (MultiFundraisingHooks) BeforeAuctionCanceled

func (h MultiFundraisingHooks) BeforeAuctionCanceled(
	ctx context.Context,
	auctionID uint64,
	auctioneer string,
) error

func (MultiFundraisingHooks) BeforeBatchAuctionCreated

func (h MultiFundraisingHooks) BeforeBatchAuctionCreated(
	ctx context.Context,
	auctioneer string,
	startPrice math.LegacyDec,
	minBidPrice math.LegacyDec,
	sellingCoin sdk.Coin,
	payingCoinDenom string,
	vestingSchedules []VestingSchedule,
	maxExtendedRound uint32,
	extendedRoundRate math.LegacyDec,
	startTime time.Time,
	endTime time.Time,
) error

func (MultiFundraisingHooks) BeforeBidModified

func (h MultiFundraisingHooks) BeforeBidModified(
	ctx context.Context,
	auctionID uint64,
	bidID uint64,
	bidder string,
	bidType BidType,
	price math.LegacyDec,
	coin sdk.Coin,
) error

func (MultiFundraisingHooks) BeforeBidPlaced

func (h MultiFundraisingHooks) BeforeBidPlaced(
	ctx context.Context,
	auctionID uint64,
	bidID uint64,
	bidder string,
	bidType BidType,
	price math.LegacyDec,
	coin sdk.Coin,
) error

func (MultiFundraisingHooks) BeforeFixedPriceAuctionCreated

func (h MultiFundraisingHooks) BeforeFixedPriceAuctionCreated(
	ctx context.Context,
	auctioneer string,
	startPrice math.LegacyDec,
	sellingCoin sdk.Coin,
	payingCoinDenom string,
	vestingSchedules []VestingSchedule,
	startTime,
	endTime time.Time,
) error

func (MultiFundraisingHooks) BeforeSellingCoinsAllocated

func (h MultiFundraisingHooks) BeforeSellingCoinsAllocated(
	ctx context.Context,
	auctionID uint64,
	allocationMap map[string]math.Int,
	refundMap map[string]math.Int,
) error

type ParamSubspace

type ParamSubspace interface {
	Get(context.Context, []byte, interface{})
	Set(context.Context, []byte, interface{})
}

ParamSubspace defines the expected Subspace interface for parameters.

type Params

type Params struct {
	// auction_creation_fee specifies the fee for auction creation.
	// this prevents from spamming attack and it is collected in the community
	// pool
	AuctionCreationFee github_com_cosmos_cosmos_sdk_types.Coins `` /* 161-byte string literal not displayed */
	// place_bid_fee specifies the fee for placing a bid for an auction.
	// this prevents from spamming attack and it is collected in the community
	// pool
	PlaceBidFee github_com_cosmos_cosmos_sdk_types.Coins `` /* 140-byte string literal not displayed */
	// extended_period specifies the extended period that determines how long
	// the extended auction round lasts
	ExtendedPeriod uint32 `protobuf:"varint,3,opt,name=extended_period,json=extendedPeriod,proto3" json:"extended_period,omitempty"`
}

Params defines the parameters for the module.

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters.

func NewParams

func NewParams(
	auctionCreationFee,
	placeBidFee sdk.Coins,
	extendedPeriod uint32,
) 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) GetAuctionCreationFee

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

func (*Params) GetExtendedPeriod

func (m *Params) GetExtendedPeriod() uint32

func (*Params) GetPlaceBidFee

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

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 QueryAllAllowedBidderRequest

type QueryAllAllowedBidderRequest struct {
	AuctionId uint64 `protobuf:"varint,1,opt,name=auction_id,json=auctionId,proto3" json:"auction_id,omitempty"`
	// pagination defines the pagination in the request
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryAllowedBidderRequest is the request type for the Query/AllowedBidder RPC method.

func (*QueryAllAllowedBidderRequest) Descriptor

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

func (*QueryAllAllowedBidderRequest) GetAuctionId

func (m *QueryAllAllowedBidderRequest) GetAuctionId() uint64

func (*QueryAllAllowedBidderRequest) GetPagination

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

func (*QueryAllAllowedBidderRequest) Marshal

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

func (*QueryAllAllowedBidderRequest) MarshalTo

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

func (*QueryAllAllowedBidderRequest) MarshalToSizedBuffer

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

func (*QueryAllAllowedBidderRequest) ProtoMessage

func (*QueryAllAllowedBidderRequest) ProtoMessage()

func (*QueryAllAllowedBidderRequest) Reset

func (m *QueryAllAllowedBidderRequest) Reset()

func (*QueryAllAllowedBidderRequest) Size

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

func (*QueryAllAllowedBidderRequest) String

func (*QueryAllAllowedBidderRequest) Unmarshal

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

func (*QueryAllAllowedBidderRequest) XXX_DiscardUnknown

func (m *QueryAllAllowedBidderRequest) XXX_DiscardUnknown()

func (*QueryAllAllowedBidderRequest) XXX_Marshal

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

func (*QueryAllAllowedBidderRequest) XXX_Merge

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

func (*QueryAllAllowedBidderRequest) XXX_Size

func (m *QueryAllAllowedBidderRequest) XXX_Size() int

func (*QueryAllAllowedBidderRequest) XXX_Unmarshal

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

type QueryAllAllowedBidderResponse

type QueryAllAllowedBidderResponse struct {
	AllowedBidder []AllowedBidder `protobuf:"bytes,1,rep,name=allowed_bidder,json=allowedBidder,proto3" json:"allowed_bidder"`
	// pagination defines the pagination in the response
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryAllowedBidderResponse is the response type for the Query/AllowedBidder RPC method.

func (*QueryAllAllowedBidderResponse) Descriptor

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

func (*QueryAllAllowedBidderResponse) GetAllowedBidder

func (m *QueryAllAllowedBidderResponse) GetAllowedBidder() []AllowedBidder

func (*QueryAllAllowedBidderResponse) GetPagination

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

func (*QueryAllAllowedBidderResponse) Marshal

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

func (*QueryAllAllowedBidderResponse) MarshalTo

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

func (*QueryAllAllowedBidderResponse) MarshalToSizedBuffer

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

func (*QueryAllAllowedBidderResponse) ProtoMessage

func (*QueryAllAllowedBidderResponse) ProtoMessage()

func (*QueryAllAllowedBidderResponse) Reset

func (m *QueryAllAllowedBidderResponse) Reset()

func (*QueryAllAllowedBidderResponse) Size

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

func (*QueryAllAllowedBidderResponse) String

func (*QueryAllAllowedBidderResponse) Unmarshal

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

func (*QueryAllAllowedBidderResponse) XXX_DiscardUnknown

func (m *QueryAllAllowedBidderResponse) XXX_DiscardUnknown()

func (*QueryAllAllowedBidderResponse) XXX_Marshal

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

func (*QueryAllAllowedBidderResponse) XXX_Merge

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

func (*QueryAllAllowedBidderResponse) XXX_Size

func (m *QueryAllAllowedBidderResponse) XXX_Size() int

func (*QueryAllAllowedBidderResponse) XXX_Unmarshal

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

type QueryAllAuctionRequest

type QueryAllAuctionRequest struct {
	Status     string             `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	Type       string             `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryAllAuctionRequest is request type for the Query/Auctions RPC method.

func (*QueryAllAuctionRequest) Descriptor

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

func (*QueryAllAuctionRequest) GetPagination

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

func (*QueryAllAuctionRequest) GetStatus

func (m *QueryAllAuctionRequest) GetStatus() string

func (*QueryAllAuctionRequest) GetType

func (m *QueryAllAuctionRequest) GetType() string

func (*QueryAllAuctionRequest) Marshal

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

func (*QueryAllAuctionRequest) MarshalTo

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

func (*QueryAllAuctionRequest) MarshalToSizedBuffer

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

func (*QueryAllAuctionRequest) ProtoMessage

func (*QueryAllAuctionRequest) ProtoMessage()

func (*QueryAllAuctionRequest) Reset

func (m *QueryAllAuctionRequest) Reset()

func (*QueryAllAuctionRequest) Size

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

func (*QueryAllAuctionRequest) String

func (m *QueryAllAuctionRequest) String() string

func (*QueryAllAuctionRequest) Unmarshal

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

func (*QueryAllAuctionRequest) XXX_DiscardUnknown

func (m *QueryAllAuctionRequest) XXX_DiscardUnknown()

func (*QueryAllAuctionRequest) XXX_Marshal

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

func (*QueryAllAuctionRequest) XXX_Merge

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

func (*QueryAllAuctionRequest) XXX_Size

func (m *QueryAllAuctionRequest) XXX_Size() int

func (*QueryAllAuctionRequest) XXX_Unmarshal

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

type QueryAllAuctionResponse

type QueryAllAuctionResponse struct {
	// auctions specifies the existing auctions
	Auction []*types.Any `protobuf:"bytes,1,rep,name=auction,proto3" json:"auction,omitempty"`
	// pagination defines the pagination in the response
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryAllAuctionResponse is response type for the Query/Auctions RPC method.

func (*QueryAllAuctionResponse) Descriptor

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

func (*QueryAllAuctionResponse) GetAuction

func (m *QueryAllAuctionResponse) GetAuction() []*types.Any

func (*QueryAllAuctionResponse) GetPagination

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

func (*QueryAllAuctionResponse) Marshal

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

func (*QueryAllAuctionResponse) MarshalTo

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

func (*QueryAllAuctionResponse) MarshalToSizedBuffer

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

func (*QueryAllAuctionResponse) ProtoMessage

func (*QueryAllAuctionResponse) ProtoMessage()

func (*QueryAllAuctionResponse) Reset

func (m *QueryAllAuctionResponse) Reset()

func (*QueryAllAuctionResponse) Size

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

func (*QueryAllAuctionResponse) String

func (m *QueryAllAuctionResponse) String() string

func (*QueryAllAuctionResponse) Unmarshal

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

func (*QueryAllAuctionResponse) XXX_DiscardUnknown

func (m *QueryAllAuctionResponse) XXX_DiscardUnknown()

func (*QueryAllAuctionResponse) XXX_Marshal

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

func (*QueryAllAuctionResponse) XXX_Merge

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

func (*QueryAllAuctionResponse) XXX_Size

func (m *QueryAllAuctionResponse) XXX_Size() int

func (*QueryAllAuctionResponse) XXX_Unmarshal

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

type QueryAllBidRequest

type QueryAllBidRequest struct {
	AuctionId uint64 `protobuf:"varint,1,opt,name=auction_id,json=auctionId,proto3" json:"auction_id,omitempty"`
	Bidder    string `protobuf:"bytes,2,opt,name=bidder,proto3" json:"bidder,omitempty"`
	IsMatched string `protobuf:"bytes,3,opt,name=is_matched,json=isMatched,proto3" json:"is_matched,omitempty"`
	// pagination defines the pagination in the request
	Pagination *query.PageRequest `protobuf:"bytes,4,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryBidsRequest is request type for the Query/Bids RPC method.

func (*QueryAllBidRequest) Descriptor

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

func (*QueryAllBidRequest) GetAuctionId

func (m *QueryAllBidRequest) GetAuctionId() uint64

func (*QueryAllBidRequest) GetBidder

func (m *QueryAllBidRequest) GetBidder() string

func (*QueryAllBidRequest) GetIsMatched

func (m *QueryAllBidRequest) GetIsMatched() string

func (*QueryAllBidRequest) GetPagination

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

func (*QueryAllBidRequest) Marshal

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

func (*QueryAllBidRequest) MarshalTo

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

func (*QueryAllBidRequest) MarshalToSizedBuffer

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

func (*QueryAllBidRequest) ProtoMessage

func (*QueryAllBidRequest) ProtoMessage()

func (*QueryAllBidRequest) Reset

func (m *QueryAllBidRequest) Reset()

func (*QueryAllBidRequest) Size

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

func (*QueryAllBidRequest) String

func (m *QueryAllBidRequest) String() string

func (*QueryAllBidRequest) Unmarshal

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

func (*QueryAllBidRequest) XXX_DiscardUnknown

func (m *QueryAllBidRequest) XXX_DiscardUnknown()

func (*QueryAllBidRequest) XXX_Marshal

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

func (*QueryAllBidRequest) XXX_Merge

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

func (*QueryAllBidRequest) XXX_Size

func (m *QueryAllBidRequest) XXX_Size() int

func (*QueryAllBidRequest) XXX_Unmarshal

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

type QueryAllBidResponse

type QueryAllBidResponse struct {
	// bids specifies the existing bids
	Bid []Bid `protobuf:"bytes,1,rep,name=bid,proto3" json:"bid"`
	// pagination defines the pagination in the response
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryBidsResponse is response type for the Query/Bids RPC method.

func (*QueryAllBidResponse) Descriptor

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

func (*QueryAllBidResponse) GetBid

func (m *QueryAllBidResponse) GetBid() []Bid

func (*QueryAllBidResponse) GetPagination

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

func (*QueryAllBidResponse) Marshal

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

func (*QueryAllBidResponse) MarshalTo

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

func (*QueryAllBidResponse) MarshalToSizedBuffer

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

func (*QueryAllBidResponse) ProtoMessage

func (*QueryAllBidResponse) ProtoMessage()

func (*QueryAllBidResponse) Reset

func (m *QueryAllBidResponse) Reset()

func (*QueryAllBidResponse) Size

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

func (*QueryAllBidResponse) String

func (m *QueryAllBidResponse) String() string

func (*QueryAllBidResponse) Unmarshal

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

func (*QueryAllBidResponse) XXX_DiscardUnknown

func (m *QueryAllBidResponse) XXX_DiscardUnknown()

func (*QueryAllBidResponse) XXX_Marshal

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

func (*QueryAllBidResponse) XXX_Merge

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

func (*QueryAllBidResponse) XXX_Size

func (m *QueryAllBidResponse) XXX_Size() int

func (*QueryAllBidResponse) XXX_Unmarshal

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

type QueryAllVestingQueueRequest

type QueryAllVestingQueueRequest struct {
	AuctionId uint64 `protobuf:"varint,1,opt,name=auction_id,json=auctionId,proto3" json:"auction_id,omitempty"`
	// pagination defines the pagination in the request
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryAllVestingQueueRequest is request type for the Query/Vestings RPC method.

func (*QueryAllVestingQueueRequest) Descriptor

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

func (*QueryAllVestingQueueRequest) GetAuctionId

func (m *QueryAllVestingQueueRequest) GetAuctionId() uint64

func (*QueryAllVestingQueueRequest) GetPagination

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

func (*QueryAllVestingQueueRequest) Marshal

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

func (*QueryAllVestingQueueRequest) MarshalTo

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

func (*QueryAllVestingQueueRequest) MarshalToSizedBuffer

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

func (*QueryAllVestingQueueRequest) ProtoMessage

func (*QueryAllVestingQueueRequest) ProtoMessage()

func (*QueryAllVestingQueueRequest) Reset

func (m *QueryAllVestingQueueRequest) Reset()

func (*QueryAllVestingQueueRequest) Size

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

func (*QueryAllVestingQueueRequest) String

func (m *QueryAllVestingQueueRequest) String() string

func (*QueryAllVestingQueueRequest) Unmarshal

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

func (*QueryAllVestingQueueRequest) XXX_DiscardUnknown

func (m *QueryAllVestingQueueRequest) XXX_DiscardUnknown()

func (*QueryAllVestingQueueRequest) XXX_Marshal

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

func (*QueryAllVestingQueueRequest) XXX_Merge

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

func (*QueryAllVestingQueueRequest) XXX_Size

func (m *QueryAllVestingQueueRequest) XXX_Size() int

func (*QueryAllVestingQueueRequest) XXX_Unmarshal

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

type QueryAllVestingQueueResponse

type QueryAllVestingQueueResponse struct {
	// vestings specifies the existing vestings
	VestingQueue []VestingQueue `protobuf:"bytes,1,rep,name=vesting_queue,json=vestingQueue,proto3" json:"vesting_queue"`
	// pagination defines the pagination in the response
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryAllVestingQueueResponse is response type for the Query/Vestings RPC method.

func (*QueryAllVestingQueueResponse) Descriptor

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

func (*QueryAllVestingQueueResponse) GetPagination

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

func (*QueryAllVestingQueueResponse) GetVestingQueue

func (m *QueryAllVestingQueueResponse) GetVestingQueue() []VestingQueue

func (*QueryAllVestingQueueResponse) Marshal

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

func (*QueryAllVestingQueueResponse) MarshalTo

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

func (*QueryAllVestingQueueResponse) MarshalToSizedBuffer

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

func (*QueryAllVestingQueueResponse) ProtoMessage

func (*QueryAllVestingQueueResponse) ProtoMessage()

func (*QueryAllVestingQueueResponse) Reset

func (m *QueryAllVestingQueueResponse) Reset()

func (*QueryAllVestingQueueResponse) Size

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

func (*QueryAllVestingQueueResponse) String

func (*QueryAllVestingQueueResponse) Unmarshal

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

func (*QueryAllVestingQueueResponse) XXX_DiscardUnknown

func (m *QueryAllVestingQueueResponse) XXX_DiscardUnknown()

func (*QueryAllVestingQueueResponse) XXX_Marshal

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

func (*QueryAllVestingQueueResponse) XXX_Merge

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

func (*QueryAllVestingQueueResponse) XXX_Size

func (m *QueryAllVestingQueueResponse) XXX_Size() int

func (*QueryAllVestingQueueResponse) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// Parameters queries the parameters of the module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// Queries a list of Auction items.
	ListAuction(ctx context.Context, in *QueryAllAuctionRequest, opts ...grpc.CallOption) (*QueryAllAuctionResponse, error)
	GetAuction(ctx context.Context, in *QueryGetAuctionRequest, opts ...grpc.CallOption) (*QueryGetAuctionResponse, error)
	// Queries a list of AllowedBidder items.
	ListAllowedBidder(ctx context.Context, in *QueryAllAllowedBidderRequest, opts ...grpc.CallOption) (*QueryAllAllowedBidderResponse, error)
	GetAllowedBidder(ctx context.Context, in *QueryGetAllowedBidderRequest, opts ...grpc.CallOption) (*QueryGetAllowedBidderResponse, error)
	// Queries a list of Bid items.
	ListBid(ctx context.Context, in *QueryAllBidRequest, opts ...grpc.CallOption) (*QueryAllBidResponse, error)
	GetBid(ctx context.Context, in *QueryGetBidRequest, opts ...grpc.CallOption) (*QueryGetBidResponse, error)
	// Queries a list of VestingQueue items.
	ListVestingQueue(ctx context.Context, in *QueryAllVestingQueueRequest, opts ...grpc.CallOption) (*QueryAllVestingQueueResponse, 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 QueryGetAllowedBidderRequest

type QueryGetAllowedBidderRequest struct {
	AuctionId uint64 `protobuf:"varint,1,opt,name=auction_id,json=auctionId,proto3" json:"auction_id,omitempty"`
	Bidder    string `protobuf:"bytes,2,opt,name=bidder,proto3" json:"bidder,omitempty"`
}

QueryAllowedBidderRequest is the request type for the Query/AllowedBidder RPC method.

func (*QueryGetAllowedBidderRequest) Descriptor

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

func (*QueryGetAllowedBidderRequest) GetAuctionId

func (m *QueryGetAllowedBidderRequest) GetAuctionId() uint64

func (*QueryGetAllowedBidderRequest) GetBidder

func (m *QueryGetAllowedBidderRequest) GetBidder() string

func (*QueryGetAllowedBidderRequest) Marshal

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

func (*QueryGetAllowedBidderRequest) MarshalTo

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

func (*QueryGetAllowedBidderRequest) MarshalToSizedBuffer

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

func (*QueryGetAllowedBidderRequest) ProtoMessage

func (*QueryGetAllowedBidderRequest) ProtoMessage()

func (*QueryGetAllowedBidderRequest) Reset

func (m *QueryGetAllowedBidderRequest) Reset()

func (*QueryGetAllowedBidderRequest) Size

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

func (*QueryGetAllowedBidderRequest) String

func (*QueryGetAllowedBidderRequest) Unmarshal

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

func (*QueryGetAllowedBidderRequest) XXX_DiscardUnknown

func (m *QueryGetAllowedBidderRequest) XXX_DiscardUnknown()

func (*QueryGetAllowedBidderRequest) XXX_Marshal

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

func (*QueryGetAllowedBidderRequest) XXX_Merge

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

func (*QueryGetAllowedBidderRequest) XXX_Size

func (m *QueryGetAllowedBidderRequest) XXX_Size() int

func (*QueryGetAllowedBidderRequest) XXX_Unmarshal

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

type QueryGetAllowedBidderResponse

type QueryGetAllowedBidderResponse struct {
	AllowedBidder AllowedBidder `protobuf:"bytes,1,opt,name=allowed_bidder,json=allowedBidder,proto3" json:"allowed_bidder"`
}

QueryAllowedBidderResponse is the response type for the Query/AllowedBidder RPC method.

func (*QueryGetAllowedBidderResponse) Descriptor

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

func (*QueryGetAllowedBidderResponse) GetAllowedBidder

func (m *QueryGetAllowedBidderResponse) GetAllowedBidder() AllowedBidder

func (*QueryGetAllowedBidderResponse) Marshal

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

func (*QueryGetAllowedBidderResponse) MarshalTo

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

func (*QueryGetAllowedBidderResponse) MarshalToSizedBuffer

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

func (*QueryGetAllowedBidderResponse) ProtoMessage

func (*QueryGetAllowedBidderResponse) ProtoMessage()

func (*QueryGetAllowedBidderResponse) Reset

func (m *QueryGetAllowedBidderResponse) Reset()

func (*QueryGetAllowedBidderResponse) Size

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

func (*QueryGetAllowedBidderResponse) String

func (*QueryGetAllowedBidderResponse) Unmarshal

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

func (*QueryGetAllowedBidderResponse) XXX_DiscardUnknown

func (m *QueryGetAllowedBidderResponse) XXX_DiscardUnknown()

func (*QueryGetAllowedBidderResponse) XXX_Marshal

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

func (*QueryGetAllowedBidderResponse) XXX_Merge

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

func (*QueryGetAllowedBidderResponse) XXX_Size

func (m *QueryGetAllowedBidderResponse) XXX_Size() int

func (*QueryGetAllowedBidderResponse) XXX_Unmarshal

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

type QueryGetAuctionRequest

type QueryGetAuctionRequest struct {
	AuctionId uint64 `protobuf:"varint,1,opt,name=auction_id,json=auctionId,proto3" json:"auction_id,omitempty"`
}

QueryGetAuctionRequest is the request type for the Query/Auction RPC method.

func (*QueryGetAuctionRequest) Descriptor

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

func (*QueryGetAuctionRequest) GetAuctionId

func (m *QueryGetAuctionRequest) GetAuctionId() uint64

func (*QueryGetAuctionRequest) Marshal

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

func (*QueryGetAuctionRequest) MarshalTo

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

func (*QueryGetAuctionRequest) MarshalToSizedBuffer

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

func (*QueryGetAuctionRequest) ProtoMessage

func (*QueryGetAuctionRequest) ProtoMessage()

func (*QueryGetAuctionRequest) Reset

func (m *QueryGetAuctionRequest) Reset()

func (*QueryGetAuctionRequest) Size

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

func (*QueryGetAuctionRequest) String

func (m *QueryGetAuctionRequest) String() string

func (*QueryGetAuctionRequest) Unmarshal

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

func (*QueryGetAuctionRequest) XXX_DiscardUnknown

func (m *QueryGetAuctionRequest) XXX_DiscardUnknown()

func (*QueryGetAuctionRequest) XXX_Marshal

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

func (*QueryGetAuctionRequest) XXX_Merge

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

func (*QueryGetAuctionRequest) XXX_Size

func (m *QueryGetAuctionRequest) XXX_Size() int

func (*QueryGetAuctionRequest) XXX_Unmarshal

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

type QueryGetAuctionResponse

type QueryGetAuctionResponse struct {
	Auction *types.Any `protobuf:"bytes,1,opt,name=auction,proto3" json:"auction,omitempty"`
}

QueryGetAuctionResponse is the response type for the Query/Auction RPC method.

func (*QueryGetAuctionResponse) Descriptor

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

func (*QueryGetAuctionResponse) GetAuction

func (m *QueryGetAuctionResponse) GetAuction() *types.Any

func (*QueryGetAuctionResponse) Marshal

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

func (*QueryGetAuctionResponse) MarshalTo

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

func (*QueryGetAuctionResponse) MarshalToSizedBuffer

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

func (*QueryGetAuctionResponse) ProtoMessage

func (*QueryGetAuctionResponse) ProtoMessage()

func (*QueryGetAuctionResponse) Reset

func (m *QueryGetAuctionResponse) Reset()

func (*QueryGetAuctionResponse) Size

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

func (*QueryGetAuctionResponse) String

func (m *QueryGetAuctionResponse) String() string

func (*QueryGetAuctionResponse) Unmarshal

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

func (*QueryGetAuctionResponse) XXX_DiscardUnknown

func (m *QueryGetAuctionResponse) XXX_DiscardUnknown()

func (*QueryGetAuctionResponse) XXX_Marshal

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

func (*QueryGetAuctionResponse) XXX_Merge

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

func (*QueryGetAuctionResponse) XXX_Size

func (m *QueryGetAuctionResponse) XXX_Size() int

func (*QueryGetAuctionResponse) XXX_Unmarshal

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

type QueryGetBidRequest

type QueryGetBidRequest struct {
	AuctionId uint64 `protobuf:"varint,1,opt,name=auction_id,json=auctionId,proto3" json:"auction_id,omitempty"`
	BidId     uint64 `protobuf:"varint,2,opt,name=bid_id,json=bidId,proto3" json:"bid_id,omitempty"`
}

QueryGetBidRequest is the request type for the Query/Sequence RPC method.

func (*QueryGetBidRequest) Descriptor

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

func (*QueryGetBidRequest) GetAuctionId

func (m *QueryGetBidRequest) GetAuctionId() uint64

func (*QueryGetBidRequest) GetBidId

func (m *QueryGetBidRequest) GetBidId() uint64

func (*QueryGetBidRequest) Marshal

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

func (*QueryGetBidRequest) MarshalTo

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

func (*QueryGetBidRequest) MarshalToSizedBuffer

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

func (*QueryGetBidRequest) ProtoMessage

func (*QueryGetBidRequest) ProtoMessage()

func (*QueryGetBidRequest) Reset

func (m *QueryGetBidRequest) Reset()

func (*QueryGetBidRequest) Size

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

func (*QueryGetBidRequest) String

func (m *QueryGetBidRequest) String() string

func (*QueryGetBidRequest) Unmarshal

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

func (*QueryGetBidRequest) XXX_DiscardUnknown

func (m *QueryGetBidRequest) XXX_DiscardUnknown()

func (*QueryGetBidRequest) XXX_Marshal

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

func (*QueryGetBidRequest) XXX_Merge

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

func (*QueryGetBidRequest) XXX_Size

func (m *QueryGetBidRequest) XXX_Size() int

func (*QueryGetBidRequest) XXX_Unmarshal

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

type QueryGetBidResponse

type QueryGetBidResponse struct {
	// bid specifies specific bid
	Bid Bid `protobuf:"bytes,1,opt,name=bid,proto3" json:"bid"`
}

QueryGetBidResponse is response type for the Query/Sequence RPC method.

func (*QueryGetBidResponse) Descriptor

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

func (*QueryGetBidResponse) GetBid

func (m *QueryGetBidResponse) GetBid() Bid

func (*QueryGetBidResponse) Marshal

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

func (*QueryGetBidResponse) MarshalTo

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

func (*QueryGetBidResponse) MarshalToSizedBuffer

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

func (*QueryGetBidResponse) ProtoMessage

func (*QueryGetBidResponse) ProtoMessage()

func (*QueryGetBidResponse) Reset

func (m *QueryGetBidResponse) Reset()

func (*QueryGetBidResponse) Size

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

func (*QueryGetBidResponse) String

func (m *QueryGetBidResponse) String() string

func (*QueryGetBidResponse) Unmarshal

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

func (*QueryGetBidResponse) XXX_DiscardUnknown

func (m *QueryGetBidResponse) XXX_DiscardUnknown()

func (*QueryGetBidResponse) XXX_Marshal

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

func (*QueryGetBidResponse) XXX_Merge

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

func (*QueryGetBidResponse) XXX_Size

func (m *QueryGetBidResponse) XXX_Size() int

func (*QueryGetBidResponse) XXX_Unmarshal

func (m *QueryGetBidResponse) 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 holds all the parameters of this 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 {
	// Parameters queries the parameters of the module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// Queries a list of Auction items.
	ListAuction(context.Context, *QueryAllAuctionRequest) (*QueryAllAuctionResponse, error)
	GetAuction(context.Context, *QueryGetAuctionRequest) (*QueryGetAuctionResponse, error)
	// Queries a list of AllowedBidder items.
	ListAllowedBidder(context.Context, *QueryAllAllowedBidderRequest) (*QueryAllAllowedBidderResponse, error)
	GetAllowedBidder(context.Context, *QueryGetAllowedBidderRequest) (*QueryGetAllowedBidderResponse, error)
	// Queries a list of Bid items.
	ListBid(context.Context, *QueryAllBidRequest) (*QueryAllBidResponse, error)
	GetBid(context.Context, *QueryGetBidRequest) (*QueryGetBidResponse, error)
	// Queries a list of VestingQueue items.
	ListVestingQueue(context.Context, *QueryAllVestingQueueRequest) (*QueryAllVestingQueueResponse, error)
}

QueryServer is the server API for Query service.

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) AddAllowedBidder

func (*UnimplementedMsgServer) CancelAuction

func (*UnimplementedMsgServer) CreateBatchAuction

func (*UnimplementedMsgServer) CreateFixedPriceAuction

func (*UnimplementedMsgServer) ModifyBid

func (*UnimplementedMsgServer) PlaceBid

func (*UnimplementedMsgServer) UpdateParams

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) GetAllowedBidder

func (*UnimplementedQueryServer) GetAuction

func (*UnimplementedQueryServer) GetBid

func (*UnimplementedQueryServer) ListAllowedBidder

func (*UnimplementedQueryServer) ListAuction

func (*UnimplementedQueryServer) ListBid

func (*UnimplementedQueryServer) ListVestingQueue

func (*UnimplementedQueryServer) Params

type VestingQueue

type VestingQueue struct {
	// auction_id specifies the id of the auction
	AuctionId uint64 `protobuf:"varint,1,opt,name=auction_id,json=auctionId,proto3" json:"auction_id,omitempty"`
	// auctioneer specifies the bech32-encoded address that creates the auction
	Auctioneer string `protobuf:"bytes,2,opt,name=auctioneer,proto3" json:"auctioneer,omitempty"`
	// paying_coin specifies the paying amount of coin
	PayingCoin types.Coin `` /* 134-byte string literal not displayed */
	// release_time specifies the timestamp of the vesting schedule
	ReleaseTime time.Time `protobuf:"bytes,4,opt,name=release_time,json=releaseTime,proto3,stdtime" json:"release_time"`
	// released specifies the status of distribution
	Released bool `protobuf:"varint,5,opt,name=released,proto3" json:"released,omitempty"`
}

VestingQueue defines the vesting queue.

func NewVestingQueue

func NewVestingQueue(auctionID uint64, auctioneer sdk.AccAddress, payingCoin sdk.Coin, releaseTime time.Time, released bool) VestingQueue

NewVestingQueue returns a new VestingQueue.

func (*VestingQueue) Descriptor

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

func (*VestingQueue) GetAuctionId

func (m *VestingQueue) GetAuctionId() uint64

func (*VestingQueue) GetAuctioneer

func (m *VestingQueue) GetAuctioneer() string

func (*VestingQueue) GetPayingCoin

func (m *VestingQueue) GetPayingCoin() types.Coin

func (*VestingQueue) GetReleaseTime

func (m *VestingQueue) GetReleaseTime() time.Time

func (*VestingQueue) GetReleased

func (m *VestingQueue) GetReleased() bool

func (*VestingQueue) Marshal

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

func (*VestingQueue) MarshalTo

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

func (*VestingQueue) MarshalToSizedBuffer

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

func (*VestingQueue) ProtoMessage

func (*VestingQueue) ProtoMessage()

func (*VestingQueue) Reset

func (m *VestingQueue) Reset()

func (*VestingQueue) SetReleased

func (vq *VestingQueue) SetReleased(status bool)

SetReleased sets released status of the vesting queue.

func (VestingQueue) ShouldRelease

func (vq VestingQueue) ShouldRelease(t time.Time) bool

ShouldRelease returns true when the vesting queue is ready to release the paying coin. It checks if the release time is equal or before the given time t and released value is false.

func (*VestingQueue) Size

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

func (*VestingQueue) String

func (m *VestingQueue) String() string

func (*VestingQueue) Unmarshal

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

func (VestingQueue) Validate

func (q VestingQueue) Validate() error

Validate validates VestingQueue.

func (*VestingQueue) XXX_DiscardUnknown

func (m *VestingQueue) XXX_DiscardUnknown()

func (*VestingQueue) XXX_Marshal

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

func (*VestingQueue) XXX_Merge

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

func (*VestingQueue) XXX_Size

func (m *VestingQueue) XXX_Size() int

func (*VestingQueue) XXX_Unmarshal

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

type VestingSchedule

type VestingSchedule struct {
	// release_time specifies the time for distribution of the vesting coin
	ReleaseTime time.Time `protobuf:"bytes,1,opt,name=release_time,json=releaseTime,proto3,stdtime" json:"release_time"`
	// weight specifies the vesting weight for the schedule
	Weight cosmossdk_io_math.LegacyDec `protobuf:"bytes,2,opt,name=weight,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"weight"`
}

VestingSchedule defines the vesting schedule for the owner of an auction.

func (*VestingSchedule) Descriptor

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

func (*VestingSchedule) GetReleaseTime

func (m *VestingSchedule) GetReleaseTime() time.Time

func (*VestingSchedule) Marshal

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

func (*VestingSchedule) MarshalTo

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

func (*VestingSchedule) MarshalToSizedBuffer

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

func (*VestingSchedule) ProtoMessage

func (*VestingSchedule) ProtoMessage()

func (*VestingSchedule) Reset

func (m *VestingSchedule) Reset()

func (*VestingSchedule) Size

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

func (*VestingSchedule) String

func (m *VestingSchedule) String() string

func (*VestingSchedule) Unmarshal

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

func (*VestingSchedule) XXX_DiscardUnknown

func (m *VestingSchedule) XXX_DiscardUnknown()

func (*VestingSchedule) XXX_Marshal

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

func (*VestingSchedule) XXX_Merge

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

func (*VestingSchedule) XXX_Size

func (m *VestingSchedule) XXX_Size() int

func (*VestingSchedule) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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