priceposter

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// MaxSaltNumber is the maximum salt number we can use for randomness.
	// NOTE: max length of the salt is 4.
	// TODO(mercilex): if we used digits + alphanumerics it's more randomized
	MaxSaltNumber = big.NewInt(9999) // NOTE(mercilex): max salt length is 4
)

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func Dial

func Dial(
	grpcEndpoint string,
	chainID string,
	enableTLS bool,
	keyBase keyring.Keyring,
	validator sdk.ValAddress,
	feeder sdk.AccAddress,
	logger zerolog.Logger,
) *Client

func (*Client) Close

func (c *Client) Close()

func (*Client) SendPrices

func (c *Client) SendPrices(vp types.VotingPeriod, prices []types.Price)

func (*Client) Whoami

func (c *Client) Whoami() sdk.ValAddress

type TxService

type TxService interface {
	BroadcastTx(context.Context, *txservice.BroadcastTxRequest, ...grpc.CallOption) (*txservice.BroadcastTxResponse, error)
}

Jump to

Keyboard shortcuts

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