Documentation
¶
Index ¶
- func Execute()
- type TokenPayClient
- type TokenPayTester
- func (t *TokenPayTester) Account() common.Address
- func (t *TokenPayTester) Faucet(client *web3go.Client, amount decimal.Decimal) error
- func (t *TokenPayTester) PrepareBusinessTx(client *web3go.Client, price *big.Int) (*gethTypes.Transaction, error)
- func (t *TokenPayTester) PrepareTransferTokenTx(client *web3go.Client, businessTx *gethTypes.Transaction) (*gethTypes.Transaction, error)
- func (t *TokenPayTester) Submit(transferTokenTx, businessTx *gethTypes.Transaction) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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) 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) 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
Click to show internal directories.
Click to hide internal directories.