Versions in this module Expand all Collapse all v1 v1.0.1 Nov 7, 2023 v1.0.0 Oct 10, 2023 Changes in this version + const DefaultChainEndpoint + const GrantOwner + const GrantReader + const GrantWriter + var ModuleBasics = module.NewBasicManager(auth.AppModuleBasic{}, genutil.AppModuleBasic{}, bank.AppModuleBasic{}, ...) + type CreateTxOptions struct + AccountNumber uint64 + FeeAmount msg.Coins + FeeGranter msg.AccAddress + GasLimit uint64 + Memo string + Msgs []msg.Msg + Sequence uint64 + SignMode tx.SignMode + TimeoutHeight uint64 + type EncodingConfig struct + Amino *codec.LegacyAmino + InterfaceRegistry types.InterfaceRegistry + Marshaller codec.Codec + TxConfig client.TxConfig + func MakeEncodingConfig(mb module.BasicManager) EncodingConfig + type LCDClient struct + ChainID string + EncodingConfig EncodingConfig + GasAdjustment msg.Dec + GasPrice msg.DecCoin + PrivKey key.PrivKey + URL string + func New(chainID string, privateKey key.PrivKey, options ...Option) *LCDClient + func (lcd *LCDClient) BatchInsert(ctx context.Context, db, table string, columns []string, ...) (*sdk.TxResponse, error) + func (lcd *LCDClient) Broadcast(ctx context.Context, txbuilder *tx.Builder) (*sdk.TxResponse, error) + func (lcd *LCDClient) CreateAndSignTx(ctx context.Context, options CreateTxOptions) (*tx.Builder, error) + func (lcd *LCDClient) CreateDatabase(ctx context.Context, database string) (*sdk.TxResponse, error) + func (lcd *LCDClient) CreateTable(ctx context.Context, sql string) (*sdk.TxResponse, error) + func (lcd *LCDClient) Delete(ctx context.Context, db, table string, where map[string]interface{}, ...) (*sdk.TxResponse, error) + func (lcd *LCDClient) DropDatabase(ctx context.Context, db, table string) (*sdk.TxResponse, error) + func (lcd *LCDClient) DropTable(ctx context.Context, db, table string) (*sdk.TxResponse, error) + func (lcd *LCDClient) GetAddress() msg.AccAddress + func (lcd *LCDClient) GetMarshaler() codec.Codec + func (lcd *LCDClient) GetTxConfig() client.TxConfig + func (lcd *LCDClient) GrantAdmin(ctx context.Context, onDatabase string, onTable string, toUID string) (*sdk.TxResponse, error) + func (lcd *LCDClient) GrantReader(ctx context.Context, onDatabase string, onTable string, toUID string) (*sdk.TxResponse, error) + func (lcd *LCDClient) GrantWriter(ctx context.Context, onDatabase string, onTable string, toUID string) (*sdk.TxResponse, error) + func (lcd *LCDClient) Insert(ctx context.Context, db, table string, columns map[string]interface{}) (*sdk.TxResponse, error) + func (lcd *LCDClient) ListDatabases(ctx context.Context, creator string) (res *glittertypes.SQLListDatabasesResponse, err error) + func (lcd *LCDClient) ListTables(ctx context.Context, tableKeyword, uid, database string, page, pageSize *int) (res *glittertypes.SQLListTablesResponse, err error) + func (lcd *LCDClient) LoadAccount(ctx context.Context, address msg.AccAddress) (res authtypes.AccountI, err error) + func (lcd *LCDClient) Query(ctx context.Context, sql string, args ...*glittertypes.Argument) (res *glittertypes.SQLQueryResponse, err error) + func (lcd *LCDClient) QueryScan(ctx context.Context, target interface{}, sql string, ...) error + func (lcd *LCDClient) SQLExec(ctx context.Context, sql string, args []*glittertypes.Argument) (*sdk.TxResponse, error) + func (lcd *LCDClient) SQLExecWithOptions(ctx context.Context, options CreateTxOptions, sql string, ...) (*sdk.TxResponse, error) + func (lcd *LCDClient) SQLGrant(ctx context.Context, onDatabase string, onTable string, toUID string, ...) (*sdk.TxResponse, error) + func (lcd *LCDClient) ShowCreateTable(ctx context.Context, database string, table string) (res *glittertypes.ShowCreateTableResponse, err error) + func (lcd *LCDClient) SignAndBroadcastTX(ctx context.Context, options CreateTxOptions) (*sdk.TxResponse, error) + func (lcd *LCDClient) Simulate(ctx context.Context, txbuilder tx.Builder, options CreateTxOptions) (*sdktx.SimulateResponse, error) + func (lcd *LCDClient) Update(ctx context.Context, db, table string, columns map[string]interface{}, ...) (*sdk.TxResponse, error) + type Option interface + func WithChainEndpoint(endpoint string) Option + func WithGasFeeConfig(gasPrice msg.DecCoin, gasAdjustment msg.Dec) Option + func WithTimeout(duration time.Duration) Option + type QueryAccountRes struct + Account QueryAccountResData + type QueryAccountResData struct + AccountNumber msg.Int + Address msg.AccAddress + Sequence msg.Int