sdk

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2022 License: Apache-2.0 Imports: 12 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArSeedCli

type ArSeedCli struct {
	ACli *goar.Client
	SCli *gentleman.Client
}

func New

func New(arSeedUrl string) *ArSeedCli

func (*ArSeedCli) BroadcastTxData

func (a *ArSeedCli) BroadcastTxData(arId string) error

func (*ArSeedCli) BundleFee added in v1.0.0

func (a *ArSeedCli) BundleFee(size int64, currency string) (schema.RespFee, error)

func (*ArSeedCli) GetBroadcastMetaTask added in v1.0.0

func (a *ArSeedCli) GetBroadcastMetaTask(arId string) (schema.Task, error)

func (*ArSeedCli) GetBroadcastTask added in v1.0.0

func (a *ArSeedCli) GetBroadcastTask(arId string) (schema.Task, error)

func (*ArSeedCli) GetBundler added in v1.0.0

func (a *ArSeedCli) GetBundler() (string, error)

func (*ArSeedCli) GetItemIds added in v1.0.0

func (a *ArSeedCli) GetItemIds(arId string) ([]string, error)

func (*ArSeedCli) GetItemMeta added in v1.0.0

func (a *ArSeedCli) GetItemMeta(itemId string) (types.BundleItem, error)

func (*ArSeedCli) GetOrders added in v1.0.0

func (a *ArSeedCli) GetOrders(addr string) ([]schema.Order, error)

func (*ArSeedCli) GetSyncTask added in v1.0.0

func (a *ArSeedCli) GetSyncTask(arId string) (schema.Task, error)

func (*ArSeedCli) KillBroadcastMetaTask added in v1.0.0

func (a *ArSeedCli) KillBroadcastMetaTask(arId string) error

func (*ArSeedCli) KillBroadcastTask added in v1.0.0

func (a *ArSeedCli) KillBroadcastTask(arId string) error

func (*ArSeedCli) KillSyncTask added in v1.0.0

func (a *ArSeedCli) KillSyncTask(arId string) error

func (*ArSeedCli) SubmitItem added in v1.0.0

func (a *ArSeedCli) SubmitItem(itemBinary []byte, currency string) (*schema.RespOrder, error)

func (*ArSeedCli) SubmitTx

func (a *ArSeedCli) SubmitTx(arTx types.Transaction) error

func (*ArSeedCli) SyncTx added in v1.0.0

func (a *ArSeedCli) SyncTx(arId string) error

type SDK added in v1.0.1

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

func NewSDK added in v1.0.1

func NewSDK(arseedUrl, payUrl string, signer interface{}) (*SDK, error)

func (*SDK) SendDataAndPay added in v1.0.1

func (s *SDK) SendDataAndPay(data []byte, currency string, option *schema.OptionItem) (everTx *paySchema.Transaction, itemId string, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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