cmd

package
v0.0.0-...-56f20fd Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: MIT Imports: 29 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute is the command line entrypoint.

Types

type TokenPayClient

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

func NewTokenPayClient

func NewTokenPayClient(baseURL string) *TokenPayClient

func (*TokenPayClient) GetConfig

func (client *TokenPayClient) GetConfig() (api.TokenPayConfig, error)

func (*TokenPayClient) GetPrice

func (client *TokenPayClient) GetPrice(token common.Address) (*big.Int, error)

func (*TokenPayClient) Submit

func (client *TokenPayClient) Submit(rawTransferTokenTx, rawBusinessTx []byte) error

type TokenPayTester

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

func NewTokenPayTester

func NewTokenPayTester(backend string) (*TokenPayTester, error)

func (*TokenPayTester) Account

func (t *TokenPayTester) Account() common.Address

func (*TokenPayTester) Faucet

func (t *TokenPayTester) Faucet(client *web3go.Client, amount decimal.Decimal) error

func (*TokenPayTester) PrepareBusinessTx

func (t *TokenPayTester) PrepareBusinessTx(client *web3go.Client, price *big.Int) (*gethTypes.Transaction, error)

func (*TokenPayTester) PrepareTransferTokenTx

func (t *TokenPayTester) PrepareTransferTokenTx(client *web3go.Client, businessTx *gethTypes.Transaction) (*gethTypes.Transaction, error)

func (*TokenPayTester) Submit

func (t *TokenPayTester) Submit(transferTokenTx, businessTx *gethTypes.Transaction) error

Jump to

Keyboard shortcuts

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