Documentation ¶
Index ¶
- Constants
- type GasPriceRsp
- type NodeClient
- func (n NodeClient) AddCommitter(address string) (string, error)
- func (n NodeClient) BitcoinTx(proposalID uint64, from string, bitcoinTxHash string) (uint64, error)
- func (n NodeClient) CommitterBitcoinTx(msg *committerTypes.MsgBitcoinTx) (*tx.BroadcastTxResponse, error)
- func (n NodeClient) GetAccountInfo(address string) (*eTypes.EthAccount, error)
- func (n NodeClient) GetEthGasPrice() (uint64, error)
- func (n NodeClient) GetGasPrice() (uint64, error)
- func (n NodeClient) QueryLastProposalID() (uint64, uint64, error)
- func (n NodeClient) QueryProposalByID(id uint64) (*committerTypes.Proposal, error)
- func (n NodeClient) SubmitProof(id uint64, from string, proofHash string, stateRootHash string, ...) (uint64, error)
- func (n NodeClient) TimeoutProposal(id uint64) error
Constants ¶
View Source
const (
DefaultBaseGasPrice = 10_000_000
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GasPriceRsp ¶
type NodeClient ¶
type NodeClient struct { PrivateKey ethsecp256k1.PrivKey Address string ChainID string GrpcConn *grpc.ClientConn RPCUrl string Denom string }
func NewNodeClient ¶
func NewNodeClient(privateKeyHex string, chainID string, address string, grpcConn *grpc.ClientConn, rpcURL string, denom string, ) *NodeClient
func (NodeClient) AddCommitter ¶
func (n NodeClient) AddCommitter(address string) (string, error)
func (NodeClient) CommitterBitcoinTx ¶
func (n NodeClient) CommitterBitcoinTx(msg *committerTypes.MsgBitcoinTx) (*tx.BroadcastTxResponse, error)
func (NodeClient) GetAccountInfo ¶
func (n NodeClient) GetAccountInfo(address string) (*eTypes.EthAccount, error)
func (NodeClient) GetEthGasPrice ¶
func (n NodeClient) GetEthGasPrice() (uint64, error)
func (NodeClient) GetGasPrice ¶
func (n NodeClient) GetGasPrice() (uint64, error)
func (NodeClient) QueryLastProposalID ¶
func (n NodeClient) QueryLastProposalID() (uint64, uint64, error)
func (NodeClient) QueryProposalByID ¶
func (n NodeClient) QueryProposalByID(id uint64) (*committerTypes.Proposal, error)
func (NodeClient) SubmitProof ¶
func (NodeClient) TimeoutProposal ¶
func (n NodeClient) TimeoutProposal(id uint64) error
Click to show internal directories.
Click to hide internal directories.