Documentation ¶
Index ¶
- Constants
- Variables
- func DiscoverClient(ctx context.Context, cctx sdkclient.Context, setup SetupFn, ...) error
- func DiscoverLightClient(ctx context.Context, cctx sdkclient.Context, setup SetupFn) error
- func DiscoverQueryClient(ctx context.Context, cctx sdkclient.Context, setup SetupFn) error
- type Akash
- func (*Akash) Descriptor() ([]byte, []int)
- func (m *Akash) GetClientInfo() *ClientInfo
- func (m *Akash) Marshal() (dAtA []byte, err error)
- func (m *Akash) MarshalTo(dAtA []byte) (int, error)
- func (m *Akash) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Akash) ProtoMessage()
- func (m *Akash) Reset()
- func (m *Akash) Size() (n int)
- func (m *Akash) String() string
- func (m *Akash) Unmarshal(dAtA []byte) error
- func (m *Akash) XXX_DiscardUnknown()
- func (m *Akash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Akash) XXX_Merge(src proto.Message)
- func (m *Akash) XXX_Size() int
- func (m *Akash) XXX_Unmarshal(b []byte) error
- type ClientInfo
- func (*ClientInfo) Descriptor() ([]byte, []int)
- func (m *ClientInfo) GetApiVersion() string
- func (m *ClientInfo) Marshal() (dAtA []byte, err error)
- func (m *ClientInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *ClientInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ClientInfo) ProtoMessage()
- func (m *ClientInfo) Reset()
- func (m *ClientInfo) Size() (n int)
- func (m *ClientInfo) String() string
- func (m *ClientInfo) Unmarshal(dAtA []byte) error
- func (m *ClientInfo) XXX_DiscardUnknown()
- func (m *ClientInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ClientInfo) XXX_Merge(src proto.Message)
- func (m *ClientInfo) XXX_Size() int
- func (m *ClientInfo) XXX_Unmarshal(b []byte) error
- type RPCClient
- type SetupFn
Constants ¶
const (
VersionV1beta3 = "v1beta3"
)
Variables ¶
var ( ErrInvalidLengthAkash = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowAkash = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupAkash = fmt.Errorf("proto: unexpected end of group") )
var ( ErrDetectClientVersion = errors.New("chain-sdk: unable detect client version") ErrUnknownClientVersion = errors.New("chain-sdk: unknown client version") )
Functions ¶
func DiscoverClient ¶
func DiscoverClient(ctx context.Context, cctx sdkclient.Context, setup SetupFn, opts ...cltypes.ClientOption) error
DiscoverClient queries an RPC node to get the version of the client and executes a SetupFn function passing a new versioned Client instance as parameter. If any error occurs when calling the RPC node or the Cosmos SDK client Context is set to offline the default value of DefaultClientApiVersion will be used. An error is returned if client discovery is not successful.
func DiscoverLightClient ¶
func DiscoverQueryClient ¶
DiscoverQueryClient queries an RPC node to get the version of the client and executes a SetupFn function passing a new versioned QueryClient instance as parameter. If any error occurs when calling the RPC node or the Cosmos SDK client Context is set to offline the default value of DefaultClientApiVersion will be used. An error is returned if client discovery is not successful.
Types ¶
type Akash ¶
type Akash struct { // ClientInfo holds information about the client. ClientInfo *ClientInfo `protobuf:"bytes,1,opt,name=client_info,json=clientInfo,proto3" json:"client_info" yaml:"client_info"` }
Akash akash specific RPC parameters.
func (*Akash) Descriptor ¶
func (*Akash) GetClientInfo ¶
func (m *Akash) GetClientInfo() *ClientInfo
func (*Akash) ProtoMessage ¶
func (*Akash) ProtoMessage()
func (*Akash) XXX_DiscardUnknown ¶
func (m *Akash) XXX_DiscardUnknown()
func (*Akash) XXX_Marshal ¶
func (*Akash) XXX_Unmarshal ¶
type ClientInfo ¶
type ClientInfo struct { // ApiVersion is the version of the API running on the client. ApiVersion string `protobuf:"bytes,1,opt,name=api_version,json=apiVersion,proto3" json:"api_version" yaml:"api_version"` }
ClientInfo is the akash specific client info.
func (*ClientInfo) Descriptor ¶
func (*ClientInfo) Descriptor() ([]byte, []int)
func (*ClientInfo) GetApiVersion ¶
func (m *ClientInfo) GetApiVersion() string
func (*ClientInfo) Marshal ¶
func (m *ClientInfo) Marshal() (dAtA []byte, err error)
func (*ClientInfo) MarshalToSizedBuffer ¶
func (m *ClientInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ClientInfo) ProtoMessage ¶
func (*ClientInfo) ProtoMessage()
func (*ClientInfo) Reset ¶
func (m *ClientInfo) Reset()
func (*ClientInfo) Size ¶
func (m *ClientInfo) Size() (n int)
func (*ClientInfo) String ¶
func (m *ClientInfo) String() string
func (*ClientInfo) Unmarshal ¶
func (m *ClientInfo) Unmarshal(dAtA []byte) error
func (*ClientInfo) XXX_DiscardUnknown ¶
func (m *ClientInfo) XXX_DiscardUnknown()
func (*ClientInfo) XXX_Marshal ¶
func (m *ClientInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ClientInfo) XXX_Merge ¶
func (m *ClientInfo) XXX_Merge(src proto.Message)
func (*ClientInfo) XXX_Size ¶
func (m *ClientInfo) XXX_Size() int
func (*ClientInfo) XXX_Unmarshal ¶
func (m *ClientInfo) XXX_Unmarshal(b []byte) error