Documentation
¶
Index ¶
- Constants
- Variables
- func CloseBidConv(bidConv *bid_data.BidConv, bidMasterStore *bid_data.BidMasterStore, ...) error
- func DeactivateOffer(deal bool, bidder action.Address, ctx *action.Context, ...) error
- func ExchangeAsset(ctx *action.Context, assetName string, assetType bid_data.BidAssetType, ...) (bool, error)
- func GetBidMasterStore(ctx *action.Context) (*bid_data.BidMasterStore, error)
- func IsAssetAvailable(ctx *action.Context, assetName string, assetType bid_data.BidAssetType, ...) (bool, error)
- type BidderDecision
- type BidderDecisionTx
- func (b BidderDecisionTx) ProcessCheck(ctx *action.Context, tx action.RawTx) (bool, action.Response)
- func (b BidderDecisionTx) ProcessDeliver(ctx *action.Context, tx action.RawTx) (bool, action.Response)
- func (b BidderDecisionTx) ProcessFee(ctx *action.Context, signedTx action.SignedTx, start action.Gas, ...) (bool, action.Response)
- func (b BidderDecisionTx) Validate(ctx *action.Context, signedTx action.SignedTx) (bool, error)
- type CancelBid
- type CancelBidTx
- func (c CancelBidTx) ProcessCheck(ctx *action.Context, tx action.RawTx) (bool, action.Response)
- func (c CancelBidTx) ProcessDeliver(ctx *action.Context, tx action.RawTx) (bool, action.Response)
- func (c CancelBidTx) ProcessFee(ctx *action.Context, signedTx action.SignedTx, start action.Gas, ...) (bool, action.Response)
- func (c CancelBidTx) Validate(ctx *action.Context, signedTx action.SignedTx) (bool, error)
- type CounterOffer
- type CounterOfferTx
- func (c CounterOfferTx) ProcessCheck(ctx *action.Context, tx action.RawTx) (bool, action.Response)
- func (c CounterOfferTx) ProcessDeliver(ctx *action.Context, tx action.RawTx) (bool, action.Response)
- func (c CounterOfferTx) ProcessFee(ctx *action.Context, signedTx action.SignedTx, start action.Gas, ...) (bool, action.Response)
- func (c CounterOfferTx) Validate(ctx *action.Context, signedTx action.SignedTx) (bool, error)
- type CreateBid
- type CreateBidTx
- func (c CreateBidTx) ProcessCheck(ctx *action.Context, tx action.RawTx) (bool, action.Response)
- func (c CreateBidTx) ProcessDeliver(ctx *action.Context, tx action.RawTx) (bool, action.Response)
- func (c CreateBidTx) ProcessFee(ctx *action.Context, signedTx action.SignedTx, start action.Gas, ...) (bool, action.Response)
- func (c CreateBidTx) Validate(ctx *action.Context, signedTx action.SignedTx) (bool, error)
- type ExpireBid
- type ExpireBidTx
- func (e ExpireBidTx) ProcessCheck(ctx *action.Context, tx action.RawTx) (bool, action.Response)
- func (e ExpireBidTx) ProcessDeliver(ctx *action.Context, tx action.RawTx) (bool, action.Response)
- func (e ExpireBidTx) ProcessFee(ctx *action.Context, signedTx action.SignedTx, start action.Gas, ...) (bool, action.Response)
- func (e ExpireBidTx) Validate(ctx *action.Context, signedTx action.SignedTx) (bool, error)
- type OwnerDecision
- type OwnerDecisionTx
- func (o OwnerDecisionTx) ProcessCheck(ctx *action.Context, tx action.RawTx) (bool, action.Response)
- func (o OwnerDecisionTx) ProcessDeliver(ctx *action.Context, tx action.RawTx) (bool, action.Response)
- func (o OwnerDecisionTx) ProcessFee(ctx *action.Context, signedTx action.SignedTx, start action.Gas, ...) (bool, action.Response)
- func (o OwnerDecisionTx) Validate(ctx *action.Context, signedTx action.SignedTx) (bool, error)
Constants ¶
Variables ¶
View Source
var BidAssetMap map[bid_data.BidAssetType]bid_data.BidAsset
Functions ¶
func CloseBidConv ¶
func CloseBidConv(bidConv *bid_data.BidConv, bidMasterStore *bid_data.BidMasterStore, targetState bid_data.BidConvState) error
func DeactivateOffer ¶
func ExchangeAsset ¶
func GetBidMasterStore ¶
func GetBidMasterStore(ctx *action.Context) (*bid_data.BidMasterStore, error)
Types ¶
type BidderDecision ¶
type BidderDecision struct { BidConvId bid_data.BidConvId `json:"bidConvId"` Bidder keys.Address `json:"bidder"` Decision bid_data.BidDecision `json:"decision"` }
func (BidderDecision) Marshal ¶
func (b BidderDecision) Marshal() ([]byte, error)
func (BidderDecision) Signers ¶
func (b BidderDecision) Signers() []action.Address
func (BidderDecision) Tags ¶
func (b BidderDecision) Tags() kv.Pairs
func (BidderDecision) Type ¶
func (b BidderDecision) Type() action.Type
func (*BidderDecision) Unmarshal ¶
func (b *BidderDecision) Unmarshal(bytes []byte) error
type BidderDecisionTx ¶
type BidderDecisionTx struct { }
func (BidderDecisionTx) ProcessCheck ¶
func (BidderDecisionTx) ProcessDeliver ¶
func (BidderDecisionTx) ProcessFee ¶
type CancelBid ¶
type CancelBidTx ¶
type CancelBidTx struct { }
func (CancelBidTx) ProcessCheck ¶
func (CancelBidTx) ProcessDeliver ¶
func (CancelBidTx) ProcessFee ¶
type CounterOffer ¶
type CounterOffer struct { BidConvId bid_data.BidConvId `json:"bidConvId"` AssetOwner keys.Address `json:"assetOwner"` Amount action.Amount `json:"amount"` }
func (CounterOffer) Marshal ¶
func (c CounterOffer) Marshal() ([]byte, error)
func (CounterOffer) Signers ¶
func (c CounterOffer) Signers() []action.Address
func (CounterOffer) Tags ¶
func (c CounterOffer) Tags() kv.Pairs
func (CounterOffer) Type ¶
func (c CounterOffer) Type() action.Type
func (*CounterOffer) Unmarshal ¶
func (c *CounterOffer) Unmarshal(bytes []byte) error
type CounterOfferTx ¶
type CounterOfferTx struct { }
func (CounterOfferTx) ProcessCheck ¶
func (CounterOfferTx) ProcessDeliver ¶
func (CounterOfferTx) ProcessFee ¶
type CreateBid ¶
type CreateBid struct { BidConvId bid_data.BidConvId `json:"bidConvId"` AssetOwner keys.Address `json:"assetOwner"` AssetName string `json:"assetName"` AssetType bid_data.BidAssetType `json:"assetType"` Bidder keys.Address `json:"bidder"` Amount action.Amount `json:"amount"` Deadline int64 `json:"deadline"` }
type CreateBidTx ¶
type CreateBidTx struct { }
func (CreateBidTx) ProcessCheck ¶
func (CreateBidTx) ProcessDeliver ¶
func (CreateBidTx) ProcessFee ¶
type ExpireBid ¶
type ExpireBidTx ¶
type ExpireBidTx struct { }
func (ExpireBidTx) ProcessCheck ¶
func (ExpireBidTx) ProcessDeliver ¶
func (ExpireBidTx) ProcessFee ¶
type OwnerDecision ¶
type OwnerDecision struct { BidConvId bid_data.BidConvId `json:"bidConvId"` Owner keys.Address `json:"owner"` Decision bid_data.BidDecision `json:"decision"` }
func (OwnerDecision) Marshal ¶
func (o OwnerDecision) Marshal() ([]byte, error)
func (OwnerDecision) Signers ¶
func (o OwnerDecision) Signers() []action.Address
func (OwnerDecision) Tags ¶
func (o OwnerDecision) Tags() kv.Pairs
func (OwnerDecision) Type ¶
func (o OwnerDecision) Type() action.Type
func (*OwnerDecision) Unmarshal ¶
func (o *OwnerDecision) Unmarshal(bytes []byte) error
type OwnerDecisionTx ¶
type OwnerDecisionTx struct { }
func (OwnerDecisionTx) ProcessCheck ¶
func (OwnerDecisionTx) ProcessDeliver ¶
func (OwnerDecisionTx) ProcessFee ¶
Click to show internal directories.
Click to hide internal directories.