base

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2025 License: Apache-2.0, MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContractQueryClient

type ContractQueryClient interface {
	QueryRawContractState(ctx context.Context, contractAddress string, rawQueryData []byte, opts ...grpc.CallOption) ([]byte, error)
	QuerySmartContractState(ctx context.Context, contractAddress string, rawQueryData []byte, opts ...grpc.CallOption) ([]byte, error)
}

ContractQueryClient defines the interface for querying contract states

type QueryClient

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

QueryClient handles querying contract states

func NewQueryClient

func NewQueryClient(conn grpc.ClientConnInterface) *QueryClient

NewQueryClient creates a new QueryClient and stores the gRPC connection

func (*QueryClient) QueryRawContractState

func (q *QueryClient) QueryRawContractState(ctx context.Context, contractAddress string, rawQueryData []byte, opts ...grpc.CallOption) ([]byte, error)

QueryRawContractState queries raw contract state

func (*QueryClient) QuerySmartContractState

func (q *QueryClient) QuerySmartContractState(ctx context.Context, contractAddress string, rawQueryData []byte, opts ...grpc.CallOption) ([]byte, error)

QuerySmartContractState queries smart contract state

Jump to

Keyboard shortcuts

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