Documentation ¶
Index ¶
- Constants
- func Connect(protoAddr string) (net.Conn, error)
- func DialerFunc(ctx context.Context, addr string) (net.Conn, error)
- func HexToBytes(str string) ([]byte, error)
- func LoadTlsCert(path string, serverName string) credentials.TransportCredentials
- func MsgResponse(data []byte) []*chaintypes.TxResponseGenericMessage
- func ProtocolAndAddress(listenAddr string) (string, string)
- type BareMetalLoadBalancedCookieAssistant
- type ClientOption
- type ClientOptions
- type CookieAssistant
- type Denom
- type DisabledCookieAssistant
- type ExpiringCookieAssistant
- type MetadataProvider
- type Network
Constants ¶
View Source
const (
SessionRenewalOffset = 2 * time.Minute
)
Variables ¶
This section is empty.
Functions ¶
func Connect ¶
Connect dials the given address and returns a net.Conn. The protoAddr argument should be prefixed with the protocol, eg. "tcp://127.0.0.1:8080" or "unix:///tmp/test.sock"
func HexToBytes ¶
func LoadTlsCert ¶
func LoadTlsCert(path string, serverName string) credentials.TransportCredentials
func MsgResponse ¶ added in v1.38.0
func MsgResponse(data []byte) []*chaintypes.TxResponseGenericMessage
func ProtocolAndAddress ¶
ProtocolAndAddress splits an address into the protocol and address components. For instance, "tcp://127.0.0.1:8080" will be split into "tcp" and "127.0.0.1:8080". If the address has no protocol prefix, the default is "tcp".
Types ¶
type BareMetalLoadBalancedCookieAssistant ¶ added in v1.48.0
type BareMetalLoadBalancedCookieAssistant struct {
// contains filtered or unexported fields
}
func (*BareMetalLoadBalancedCookieAssistant) Metadata ¶ added in v1.48.0
func (assistant *BareMetalLoadBalancedCookieAssistant) Metadata(provider MetadataProvider) (string, error)
type ClientOption ¶
type ClientOption func(opts *ClientOptions) error
func OptionGasPrices ¶
func OptionGasPrices(gasPrices string) ClientOption
func OptionTLSCert ¶
func OptionTLSCert(tlsCert credentials.TransportCredentials) ClientOption
func OptionTxFactory ¶ added in v1.47.12
func OptionTxFactory(txFactory *tx.Factory) ClientOption
type ClientOptions ¶
type ClientOptions struct { GasPrices string TLSCert credentials.TransportCredentials TxFactory *tx.Factory }
func DefaultClientOptions ¶
func DefaultClientOptions() *ClientOptions
type CookieAssistant ¶ added in v1.48.0
type CookieAssistant interface {
Metadata(provider MetadataProvider) (string, error)
}
type Denom ¶ added in v1.36.1
type Denom struct { Description string Base int Quote int MinPriceTickSize float64 MinQuantityTickSize float64 }
func LoadMetadata ¶ added in v1.36.1
type DisabledCookieAssistant ¶ added in v1.48.0
type DisabledCookieAssistant struct{}
func (*DisabledCookieAssistant) Metadata ¶ added in v1.48.0
func (assistant *DisabledCookieAssistant) Metadata(provider MetadataProvider) (string, error)
type ExpiringCookieAssistant ¶ added in v1.48.0
type ExpiringCookieAssistant struct {
// contains filtered or unexported fields
}
func MainnetKubernetesCookieAssistant ¶ added in v1.48.0
func MainnetKubernetesCookieAssistant() ExpiringCookieAssistant
func TestnetKubernetesCookieAssistant ¶ added in v1.48.0
func TestnetKubernetesCookieAssistant() ExpiringCookieAssistant
func (*ExpiringCookieAssistant) Metadata ¶ added in v1.48.0
func (assistant *ExpiringCookieAssistant) Metadata(provider MetadataProvider) (string, error)
type MetadataProvider ¶ added in v1.48.0
type MetadataProvider struct {
// contains filtered or unexported fields
}
func NewMetadataProvider ¶ added in v1.48.0
func NewMetadataProvider(f func() metadata.MD) MetadataProvider
type Network ¶ added in v1.36.1
type Network struct { LcdEndpoint string TmEndpoint string ChainGrpcEndpoint string ChainTlsCert credentials.TransportCredentials ExchangeGrpcEndpoint string ExplorerGrpcEndpoint string ExchangeTlsCert credentials.TransportCredentials ExplorerTlsCert credentials.TransportCredentials ChainId string Fee_denom string Name string // contains filtered or unexported fields }
func LoadNetwork ¶
func (*Network) ChainMetadata ¶ added in v1.48.0
func (network *Network) ChainMetadata(provider MetadataProvider) (string, error)
func (*Network) ExchangeMetadata ¶ added in v1.48.0
func (network *Network) ExchangeMetadata(provider MetadataProvider) (string, error)
func (*Network) ExplorerMetadata ¶ added in v1.48.0
func (network *Network) ExplorerMetadata(provider MetadataProvider) (string, error)
Click to show internal directories.
Click to hide internal directories.