Documentation ¶
Index ¶
Constants ¶
View Source
const (
// TxStatusSuccess is the status emitted on a successfuly transaction for onrik/ethrpc
TxStatusSuccess = "0x1"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { ETH *ethclient.Client RPC *ethrpc.EthRPC Auth *bind.TransactOpts RTCAddress string PaymentContractAddress string ConfirmationCount int }
Client is our connection to ethereum
func NewClient ¶
func NewClient(cfg *config.TemporalConfig, connectionType string) (*Client, error)
NewClient is used to generate our Ethereum client wrapper
func (*Client) ProcessPaymentTx ¶
func (*Client) UnlockAccount ¶
UnlockAccount is used to unlck our main account
func (*Client) WaitForConfirmations ¶
func (c *Client) WaitForConfirmations(tx *types.Transaction) error
WaitForConfirmations is used to wait for enough block confirmations for a tx to be considered valid
Click to show internal directories.
Click to hide internal directories.