deviantfactions

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Listing

type Listing struct {
	Owner        string
	TokenId      string
	AskToken     terra.Token
	Price        decimal.Decimal
	BlockCreated int64
	BlockExpires int64
}

type Market

type Market struct {
	*terra.Contract
}

func NewMarket

func NewMarket(q *terra.Querier) (*Market, error)

func (*Market) AllListedTokens

func (m *Market) AllListedTokens(ctx context.Context, collectionIds []string) ([]Listing, error)

func (*Market) ListedTokensByUser

func (m *Market) ListedTokensByUser(ctx context.Context, address cosmos.AccAddress) ([]string, error)

func (*Market) NewCancelTokenListingMessage

func (m *Market) NewCancelTokenListingMessage(sender cosmos.AccAddress, tokenId string) (cosmos.Msg, error)

func (*Market) NewListTokenMessage

func (m *Market) NewListTokenMessage(sender cosmos.AccAddress, tokenId string, AskToken terra.NativeToken, AskPrice decimal.Decimal, BlocksToListFor int64) (cosmos.Msg, error)

func (*Market) TokensByUser

func (m *Market) TokensByUser(ctx context.Context, address cosmos.AccAddress) ([]string, error)

Jump to

Keyboard shortcuts

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