faclient

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2020 License: Apache-2.0, BSD-2-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FairAuctionClient

type FairAuctionClient struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(nodeClient nodeclient.NodeClient, waspApiHost string, scAddress *address.Address, sigScheme signaturescheme.SignatureScheme) *FairAuctionClient

func (*FairAuctionClient) FetchStatus

func (fc *FairAuctionClient) FetchStatus() (*Status, error)

func (*FairAuctionClient) GetFeeAmount

func (fc *FairAuctionClient) GetFeeAmount(minimumBid int64) (int64, error)

func (*FairAuctionClient) PlaceBid

func (fc *FairAuctionClient) PlaceBid(color *balance.Color, amountIotas int64) (*sctransaction.Transaction, error)

func (*FairAuctionClient) SetOwnerMargin

func (fc *FairAuctionClient) SetOwnerMargin(margin int64) (*sctransaction.Transaction, error)

func (*FairAuctionClient) SetWaitRequestCompletionParams

func (fc *FairAuctionClient) SetWaitRequestCompletionParams(publisherHosts []string, timeout time.Duration)

func (*FairAuctionClient) StartAuction

func (fc *FairAuctionClient) StartAuction(
	description string,
	color *balance.Color,
	tokensForSale int64,
	minimumBid int64,
	durationMinutes int64,
) (*sctransaction.Transaction, error)

type Status

type Status struct {
	*waspapi.SCStatus

	OwnerMarginPromille int64
	AuctionsLen         uint32
	Auctions            map[balance.Color]*fairauction.AuctionInfo
}

Jump to

Keyboard shortcuts

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