cmd

package
v0.0.0-...-4d36670 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2026 License: MIT Imports: 29 Imported by: 0

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