factory

package
v0.14.6 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2020 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustLoadListingFixture added in v0.14.4

func MustLoadListingFixture(fixtureName string) []byte

MustLoadListingFixture - load listing json from fixtures

func MustLoadProfileFixture added in v0.14.4

func MustLoadProfileFixture(fixtureName string) []byte

func MustNewBitcoinPrivKey added in v0.14.4

func MustNewBitcoinPrivKey() *btcec.PrivateKey

func MustNewCurrencyValue added in v0.14.4

func MustNewCurrencyValue(amount, code string) *repo.CurrencyValue

func MustNewCurrencyValueUsingDiv added in v0.14.4

func MustNewCurrencyValueUsingDiv(amount, code string, customDiv uint) *repo.CurrencyValue

func MustNewPeerIDProtobuf added in v0.14.4

func MustNewPeerIDProtobuf() *pb.ID

MustNewPeerIDProtobuf returns a PeerID protobuf example that is known to be valid

func MustNewProfile added in v0.14.4

func MustNewProfile() *repo.Profile

func MustNewProfileProtobuf added in v0.14.4

func MustNewProfileProtobuf() *pb.Profile

func MustNewPubkeysIdentityKeyBytes added in v0.14.4

func MustNewPubkeysIdentityKeyBytes() []byte

func MustNewPubkeysProtobuf added in v0.14.4

func MustNewPubkeysProtobuf(bitcoinKey *btcec.PrivateKey) *pb.ID_Pubkeys

func MustNewValidPeerInfo added in v0.14.4

func MustNewValidPeerInfo() *repo.PeerInfo

NewValidPeerInfo returns a PeerInfo example that is known to be valid

func MustNewValidSettings added in v0.14.4

func MustNewValidSettings() repo.SettingsData

func NewAPITime added in v0.14.4

func NewAPITime(t time.Time) *repo.APITime

func NewContract

func NewContract() *pb.RicardianContract

func NewCryptoListing

func NewCryptoListing(slug string) *pb.Listing

NewCryptoListing - return new crypto listing

func NewCurrencyConverter added in v0.14.4

func NewCurrencyConverter(reserveCode string, mockRates map[string]float64) (*repo.CurrencyConverter, error)

func NewCurrencyDefinition added in v0.14.4

func NewCurrencyDefinition(code string) repo.CurrencyDefinition

func NewDisputeCaseRecord

func NewDisputeCaseRecord() *repo.DisputeCaseRecord

func NewDisputeableContract

func NewDisputeableContract() *pb.RicardianContract

func NewDisputedContract

func NewDisputedContract() *pb.RicardianContract

func NewExpiredDisputeCaseRecord

func NewExpiredDisputeCaseRecord() *repo.DisputeCaseRecord

func NewExpiredDisputeablePurchaseRecord

func NewExpiredDisputeablePurchaseRecord() *repo.PurchaseRecord

func NewExpiredPurchaseRecord

func NewExpiredPurchaseRecord() *repo.PurchaseRecord

func NewImage

func NewImage() *pb.Listing_Item_Image

func NewListing

func NewListing(slug string) *pb.Listing

NewListing - return new pb.Listing

func NewListingWithShippingRegions added in v0.14.4

func NewListingWithShippingRegions(slug string) *pb.Listing

NewListingWithShippingRegions - return new listing with shipping region

func NewMessageWithOrderPayload added in v0.14.4

func NewMessageWithOrderPayload() repo.Message

func NewPeerIDProtobuf added in v0.14.4

func NewPeerIDProtobuf() *pb.ID

func NewPurchaseRecord

func NewPurchaseRecord() *repo.PurchaseRecord

func NewSaleRecord

func NewSaleRecord() *repo.SaleRecord

func NewUndisputeableContract

func NewUndisputeableContract() *pb.RicardianContract

func NewUtxo added in v0.14.4

func NewUtxo() wallet.Utxo

func NewValidShippingAddress added in v0.14.4

func NewValidShippingAddress() repo.ShippingAddress

Types

This section is empty.

Jump to

Keyboard shortcuts

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