Versions in this module Expand all Collapse all v0 v0.0.7 May 2, 2024 Changes in this version + var DefaultNetworkInfo = NetworkInfo + var EncodingConfig = app.MakeEncodingConfig() + func AddSignerToKeyring(kring keyring.Keyring, privKey cryptotypes.PrivKey, keyName string) error + func BroadcastMsgs(args BroadcastArgs, from sdk.AccAddress, msgs ...sdk.Msg) (*sdk.TxResponse, error) + func BroadcastMsgsWithSeq(args BroadcastArgs, from sdk.AccAddress, seq uint64, msgs ...sdk.Msg) (*sdk.TxResponse, error) + func CreateSigner(mnemonic string, kring keyring.Keyring, keyName string) (kringRecord *keyring.Record, privKey cryptotypes.PrivKey, err error) + func CreateSignerFromPrivKey(privKey cryptotypes.PrivKey, keyName string) (*keyring.Record, error) + func EnsureNibiruPrefix() + func GetGRPCConnection(grpcUrl string, grpcInsecure bool, timeoutSeconds int64) (*grpc.ClientConn, error) + func NewKeyring() keyring.Keyring + func NewRPCClient(rpcEndpt string, websocket string) (*cmtrpchttp.HTTP, error) + func PrivKeyFromMnemonic(kring keyring.Keyring, mnemonic string, keyName string) (cryptotypes.PrivKey, sdk.AccAddress, error) + func TxHashBytesToHex(txHashBz []byte) (txHashHex string) + func TxHashHexToBytes(txHashHex string) ([]byte, error) + type AccountNumbers struct + Number uint64 + Sequence uint64 + func GetAccountNumbers(address string, grpcConn *grpc.ClientConn, encCfg app.EncodingConfig) (nums AccountNumbers, err error) + type BroadcastArgs struct + Broadcaster Broadcaster + type Broadcaster interface + BroadcastTxSync func(txBytes []byte) (*sdk.TxResponse, error) + type BroadcasterGrpc struct + GRPC *grpc.ClientConn + func (b BroadcasterGrpc) BroadcastTx(txBytes []byte, mode sdktypestx.BroadcastMode) (*sdk.TxResponse, error) + func (b BroadcasterGrpc) BroadcastTxAsync(txBytes []byte) (*sdk.TxResponse, error) + func (b BroadcasterGrpc) BroadcastTxSync(txBytes []byte) (*sdk.TxResponse, error) + type BroadcasterTmRpc struct + RPC cmtrpc.Client + func (b BroadcasterTmRpc) BroadcastTxSync(txBytes []byte) (*sdk.TxResponse, error) + type INibiruClient interface + BroadcastMsgs func(from csdk.AccAddress, msgs ...csdk.Msg) (*csdk.TxResponse, error) + ClientCtx func(tmCfgRootDir string) sdkclient.Context + GetAccountNumbers func(address string) (nums AccountNumbers, err error) + type NetworkInfo struct + ChainID string + GrpcEndpoint string + LcdEndpoint string + TmRpcEndpoint string + WebsocketEndpoint string + type NibiruClient struct + AccountRetriever authtypes.AccountRetriever + ChainId string + CometRPC cmtrpcclient.Client + EncCfg app.EncodingConfig + GrpcClient *grpc.ClientConn + Keyring keyring.Keyring + Querier Querier + func NewNibiruClient(chainId string, grpcConn *grpc.ClientConn, rpcEndpt string) (NibiruClient, error) + func (nc *NibiruClient) BroadcastMsgs(from sdk.AccAddress, msgs ...sdk.Msg) (*sdk.TxResponse, error) + func (nc *NibiruClient) BroadcastMsgsGrpc(from sdk.AccAddress, msgs ...sdk.Msg) (*sdk.TxResponse, error) + func (nc *NibiruClient) BroadcastMsgsGrpcWithSeq(from sdk.AccAddress, seq uint64, msgs ...sdk.Msg) (*sdk.TxResponse, error) + func (nc *NibiruClient) BroadcastMsgsWithSeq(from sdk.AccAddress, seq uint64, msgs ...sdk.Msg) (*sdk.TxResponse, error) + func (nc *NibiruClient) ClientCtx(tmCfgRootDir string) sdkclient.Context + func (nc *NibiruClient) GetAccountNumbers(address string) (nums AccountNumbers, err error) + func (nc *NibiruClient) TxByHash(txHashHex string) (*cmtcoretypes.ResultTx, error) + type Querier struct + ClientConn *grpc.ClientConn + Epoch xepochs.QueryClient + Oracle xoracle.QueryClient + Perp xperp.QueryClient + Wasm xwasm.QueryClient + func NewQueryClient(grpcConn *grpc.ClientConn) (Querier, error)