Documentation ¶
Index ¶
- func PrivateKeyToAccAddress(privateKeyHex string) (cosmostypes.AccAddress, error)
- type CosmosClient
- func (c *CosmosClient) BroadcastTx(msg cosmostypes.Msg, adjustGas bool) (*cosmostypes.TxResponse, error)
- func (c *CosmosClient) BroadcastTxDispute(msgs []dkgnet.MsgFileDispute, adjustGas bool, id int) (*cosmostypes.TxResponse, error)
- func (c *CosmosClient) BroadcastTxs(msg *dkgnet.MsgRefundMsgRequest, adjustGas bool, numOfP int, id int) (*cosmostypes.TxResponse, error)
- func (c *CosmosClient) GetAccAddress() cosmostypes.AccAddress
- func (c *CosmosClient) GetAddress() string
- func (c *CosmosClient) GetPK() string
- func (c *CosmosClient) WaitForTx(hash string, rate time.Duration) (*tx.GetTxResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrivateKeyToAccAddress ¶
func PrivateKeyToAccAddress(privateKeyHex string) (cosmostypes.AccAddress, error)
Types ¶
type CosmosClient ¶
type CosmosClient struct {
// contains filtered or unexported fields
}
func NewCosmosClient ¶
func NewCosmosClient( endpoint string, privateKeyHex string, chainID string, ) (*CosmosClient, error)
func (*CosmosClient) BroadcastTx ¶
func (c *CosmosClient) BroadcastTx(msg cosmostypes.Msg, adjustGas bool) (*cosmostypes.TxResponse, error)
func (*CosmosClient) BroadcastTxDispute ¶
func (c *CosmosClient) BroadcastTxDispute(msgs []dkgnet.MsgFileDispute, adjustGas bool, id int) (*cosmostypes.TxResponse, error)
func (*CosmosClient) BroadcastTxs ¶
func (c *CosmosClient) BroadcastTxs(msg *dkgnet.MsgRefundMsgRequest, adjustGas bool, numOfP int, id int) (*cosmostypes.TxResponse, error)
func (*CosmosClient) GetAccAddress ¶
func (c *CosmosClient) GetAccAddress() cosmostypes.AccAddress
func (*CosmosClient) GetAddress ¶
func (c *CosmosClient) GetAddress() string
func (*CosmosClient) GetPK ¶
func (c *CosmosClient) GetPK() string
func (*CosmosClient) WaitForTx ¶
func (c *CosmosClient) WaitForTx(hash string, rate time.Duration) (*tx.GetTxResponse, error)
Click to show internal directories.
Click to hide internal directories.