gasservice

package
v0.0.0-...-1305305 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountSeqResponse

type AccountSeqResponse struct {
	Pkey           string
	SequenceNumber uint64
}

type Client

type Client struct {
	HTTP *http.Client
	URL  string
}

func (*Client) GetAccountAndSequence

func (gs *Client) GetAccountAndSequence() (string, uint64, error)

func (*Client) SubmitTxe

func (gs *Client) SubmitTxe(txeOfiRfiSignedB64 string) (string, uint64, error)

type GasServiceClient

type GasServiceClient interface {
	GetAccountAndSequence() (string, uint64, error)
	SubmitTxe(txeOfiRfiSignedB64 string) (string, uint64, error)
}

type MockClient

type MockClient struct {
	HTTP *http.Client
}

func (*MockClient) GetAccountAndSequence

func (mgs *MockClient) GetAccountAndSequence() (string, uint64, error)

func (*MockClient) SubmitTxe

func (mgs *MockClient) SubmitTxe(txeOfiRfiSignedB64 string) (string, uint64, error)

type SubmitTexResponse

type SubmitTexResponse struct {
	Title  string
	Ledger uint64
	Hash   string
}

Jump to

Keyboard shortcuts

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