tokenlon

package
v0.0.0-...-c1ed682 Latest Latest
Warning

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

Go to latest
Published: May 22, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrWrongResult = fmt.Errorf("wrong result")

Functions

This section is empty.

Types

type Etherscan

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

func NewEtherscan

func NewEtherscan(token string) (esc Etherscan)

type Response

type Response struct {
	Message string
	Status  string
	Result  TransactionReceipt
}

type Swapped

type Swapped struct {
	ID               graphql.String
	Source           graphql.String
	TransactionHash  graphql.String
	UserAddr         graphql.String
	MakerAssetAddr   graphql.String
	TakerAssetAddr   graphql.String
	TakerAssetAmount graphql.BigInt
	MakerAssetAmount graphql.BigInt
	ReceivedAmount   graphql.BigInt
	SettleAmount     graphql.BigInt
	// GasUsed          graphql.BigInt
	GasPrice    graphql.BigInt
	BlockNumber graphql.BigInt
	FeeFactor   graphql.Int
}

Swapped represents graphql model of swapped

type TokenlonClient

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

func NewTokenlonClient

func NewTokenlonClient(token string) (tl TokenlonClient)

NewTokenlonClient returns TokenlonClient

func (*TokenlonClient) Swappeds

func (tl *TokenlonClient) Swappeds(ctx context.Context, count, skip int, order string) (swappeds []Swapped, err error)

Swappeds query of swappeds by given query, the order should looks like [column asc|desc]

type TransactionReceipt

type TransactionReceipt struct {
	GasUsed string
}

Jump to

Keyboard shortcuts

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