broadcaster

package
v0.0.0-...-74e6f8a Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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