Documentation ¶
Index ¶
- type FairAuctionClient
- func (fc *FairAuctionClient) FetchStatus() (*Status, error)
- func (fc *FairAuctionClient) GetFeeAmount(minimumBid int64) (int64, error)
- func (fc *FairAuctionClient) PlaceBid(color *balance.Color, amountIotas int64) (*sctransaction.Transaction, error)
- func (fc *FairAuctionClient) SetOwnerMargin(margin int64) (*sctransaction.Transaction, error)
- func (fc *FairAuctionClient) SetWaitRequestCompletionParams(publisherHosts []string, timeout time.Duration)
- func (fc *FairAuctionClient) StartAuction(description string, color *balance.Color, tokensForSale int64, ...) (*sctransaction.Transaction, error)
- type Status
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 }
Click to show internal directories.
Click to hide internal directories.