@cosmjs/tendermint-rpc
Advanced tools
Comparing version 0.30.1 to 0.31.0-alpha.1
@@ -26,3 +26,3 @@ import { JsonRpcSuccessResponse } from "@cosmjs/json-rpc"; | ||
export declare function decodeEvent(event: RpcEvent): responses.Event; | ||
declare type RpcPubkey = { | ||
type RpcPubkey = { | ||
readonly type: string; | ||
@@ -29,0 +29,0 @@ /** base64 encoded */ |
@@ -11,4 +11,4 @@ import { JsonRpcRequest, JsonRpcSuccessResponse } from "@cosmjs/json-rpc"; | ||
} | ||
export declare type Encoder<T extends requests.Request> = (req: T) => JsonRpcRequest; | ||
export declare type Decoder<T extends responses.Response> = (res: JsonRpcSuccessResponse) => T; | ||
export type Encoder<T extends requests.Request> = (req: T) => JsonRpcRequest; | ||
export type Decoder<T extends responses.Response> = (res: JsonRpcSuccessResponse) => T; | ||
export interface Params { | ||
@@ -15,0 +15,0 @@ readonly encodeAbciInfo: (req: requests.AbciInfoRequest) => JsonRpcRequest; |
@@ -28,3 +28,3 @@ /** | ||
} | ||
export declare type Request = AbciInfoRequest | AbciQueryRequest | BlockRequest | BlockSearchRequest | BlockchainRequest | BlockResultsRequest | BroadcastTxRequest | CommitRequest | GenesisRequest | HealthRequest | NumUnconfirmedTxsRequest | StatusRequest | TxRequest | TxSearchRequest | ValidatorsRequest; | ||
export type Request = AbciInfoRequest | AbciQueryRequest | BlockRequest | BlockSearchRequest | BlockchainRequest | BlockResultsRequest | BroadcastTxRequest | CommitRequest | GenesisRequest | HealthRequest | NumUnconfirmedTxsRequest | StatusRequest | TxRequest | TxSearchRequest | ValidatorsRequest; | ||
/** | ||
@@ -31,0 +31,0 @@ * Raw values must match the tendermint event name |
import { ReadonlyDate } from "readonly-date"; | ||
import { ReadonlyDateWithNanoseconds } from "../dates"; | ||
import { CommitSignature, ValidatorPubkey } from "../types"; | ||
export declare type Response = AbciInfoResponse | AbciQueryResponse | BlockResponse | BlockResultsResponse | BlockSearchResponse | BlockchainResponse | BroadcastTxAsyncResponse | BroadcastTxSyncResponse | BroadcastTxCommitResponse | CommitResponse | GenesisResponse | HealthResponse | NumUnconfirmedTxsResponse | StatusResponse | TxResponse | TxSearchResponse | ValidatorsResponse; | ||
export type Response = AbciInfoResponse | AbciQueryResponse | BlockResponse | BlockResultsResponse | BlockSearchResponse | BlockchainResponse | BroadcastTxAsyncResponse | BroadcastTxSyncResponse | BroadcastTxCommitResponse | CommitResponse | GenesisResponse | HealthResponse | NumUnconfirmedTxsResponse | StatusResponse | TxResponse | TxSearchResponse | ValidatorsResponse; | ||
export interface AbciInfoResponse { | ||
@@ -86,3 +86,3 @@ readonly data?: string; | ||
} | ||
export declare type HealthResponse = null; | ||
export type HealthResponse = null; | ||
export interface NumUnconfirmedTxsResponse { | ||
@@ -186,3 +186,3 @@ readonly total: number; | ||
*/ | ||
export declare type Evidence = any; | ||
export type Evidence = any; | ||
export interface Commit { | ||
@@ -189,0 +189,0 @@ readonly blockId: BlockId; |
@@ -33,10 +33,2 @@ "use strict"; | ||
/** | ||
* Use `Tendermint34Client.connect` or `Tendermint34Client.create` to create an instance. | ||
*/ | ||
constructor(client) { | ||
this.client = client; | ||
this.p = adaptor_1.adaptor34.params; | ||
this.r = adaptor_1.adaptor34.responses; | ||
} | ||
/** | ||
* Creates a new Tendermint client for the given endpoint. | ||
@@ -81,2 +73,10 @@ * | ||
} | ||
/** | ||
* Use `Tendermint34Client.connect` or `Tendermint34Client.create` to create an instance. | ||
*/ | ||
constructor(client) { | ||
this.client = client; | ||
this.p = adaptor_1.adaptor34.params; | ||
this.r = adaptor_1.adaptor34.responses; | ||
} | ||
disconnect() { | ||
@@ -83,0 +83,0 @@ this.client.disconnect(); |
@@ -28,3 +28,3 @@ import { JsonRpcSuccessResponse } from "@cosmjs/json-rpc"; | ||
export declare function decodeEvent(event: RpcEvent): responses.Event; | ||
declare type RpcPubkey = { | ||
type RpcPubkey = { | ||
readonly type: string; | ||
@@ -31,0 +31,0 @@ /** base64 encoded */ |
@@ -11,4 +11,4 @@ import { JsonRpcRequest, JsonRpcSuccessResponse } from "@cosmjs/json-rpc"; | ||
} | ||
export declare type Encoder<T extends requests.Request> = (req: T) => JsonRpcRequest; | ||
export declare type Decoder<T extends responses.Response> = (res: JsonRpcSuccessResponse) => T; | ||
export type Encoder<T extends requests.Request> = (req: T) => JsonRpcRequest; | ||
export type Decoder<T extends responses.Response> = (res: JsonRpcSuccessResponse) => T; | ||
export interface Params { | ||
@@ -15,0 +15,0 @@ readonly encodeAbciInfo: (req: requests.AbciInfoRequest) => JsonRpcRequest; |
@@ -28,3 +28,3 @@ /** | ||
} | ||
export declare type Request = AbciInfoRequest | AbciQueryRequest | BlockRequest | BlockSearchRequest | BlockchainRequest | BlockResultsRequest | BroadcastTxRequest | CommitRequest | GenesisRequest | HealthRequest | NumUnconfirmedTxsRequest | StatusRequest | TxRequest | TxSearchRequest | ValidatorsRequest; | ||
export type Request = AbciInfoRequest | AbciQueryRequest | BlockRequest | BlockSearchRequest | BlockchainRequest | BlockResultsRequest | BroadcastTxRequest | CommitRequest | GenesisRequest | HealthRequest | NumUnconfirmedTxsRequest | StatusRequest | TxRequest | TxSearchRequest | ValidatorsRequest; | ||
/** | ||
@@ -31,0 +31,0 @@ * Raw values must match the tendermint event name |
import { ReadonlyDate } from "readonly-date"; | ||
import { ReadonlyDateWithNanoseconds } from "../dates"; | ||
import { CommitSignature, ValidatorPubkey } from "../types"; | ||
export declare type Response = AbciInfoResponse | AbciQueryResponse | BlockResponse | BlockResultsResponse | BlockSearchResponse | BlockchainResponse | BroadcastTxAsyncResponse | BroadcastTxSyncResponse | BroadcastTxCommitResponse | CommitResponse | GenesisResponse | HealthResponse | NumUnconfirmedTxsResponse | StatusResponse | TxResponse | TxSearchResponse | ValidatorsResponse; | ||
export type Response = AbciInfoResponse | AbciQueryResponse | BlockResponse | BlockResultsResponse | BlockSearchResponse | BlockchainResponse | BroadcastTxAsyncResponse | BroadcastTxSyncResponse | BroadcastTxCommitResponse | CommitResponse | GenesisResponse | HealthResponse | NumUnconfirmedTxsResponse | StatusResponse | TxResponse | TxSearchResponse | ValidatorsResponse; | ||
export interface AbciInfoResponse { | ||
@@ -86,3 +86,3 @@ readonly data?: string; | ||
} | ||
export declare type HealthResponse = null; | ||
export type HealthResponse = null; | ||
export interface NumUnconfirmedTxsResponse { | ||
@@ -191,3 +191,3 @@ readonly total: number; | ||
*/ | ||
export declare type Evidence = any; | ||
export type Evidence = any; | ||
export interface Commit { | ||
@@ -194,0 +194,0 @@ readonly blockId: BlockId; |
@@ -33,10 +33,2 @@ "use strict"; | ||
/** | ||
* Use `Tendermint37Client.connect` or `Tendermint37Client.create` to create an instance. | ||
*/ | ||
constructor(client) { | ||
this.client = client; | ||
this.p = adaptor_1.adaptor37.params; | ||
this.r = adaptor_1.adaptor37.responses; | ||
} | ||
/** | ||
* Creates a new Tendermint client for the given endpoint. | ||
@@ -81,2 +73,10 @@ * | ||
} | ||
/** | ||
* Use `Tendermint37Client.connect` or `Tendermint37Client.create` to create an instance. | ||
*/ | ||
constructor(client) { | ||
this.client = client; | ||
this.p = adaptor_1.adaptor37.params; | ||
this.r = adaptor_1.adaptor37.responses; | ||
} | ||
disconnect() { | ||
@@ -83,0 +83,0 @@ this.client.disconnect(); |
import { Tendermint34Client } from "./tendermint34"; | ||
import { Tendermint37Client } from "./tendermint37"; | ||
/** A TendermintClient is either a Tendermint34Client or a Tendermint37Client */ | ||
export declare type TendermintClient = Tendermint34Client | Tendermint37Client; | ||
export type TendermintClient = Tendermint34Client | Tendermint37Client; | ||
export declare function isTendermint34Client(client: TendermintClient): client is Tendermint34Client; | ||
export declare function isTendermint37Client(client: TendermintClient): client is Tendermint37Client; |
@@ -13,3 +13,3 @@ import { ReadonlyDateWithNanoseconds } from "./dates"; | ||
*/ | ||
export declare type ValidatorPubkey = ValidatorEd25519Pubkey | ValidatorSecp256k1Pubkey; | ||
export type ValidatorPubkey = ValidatorEd25519Pubkey | ValidatorSecp256k1Pubkey; | ||
export declare enum BlockIdFlag { | ||
@@ -16,0 +16,0 @@ Unknown = 0, |
{ | ||
"name": "@cosmjs/tendermint-rpc", | ||
"version": "0.30.1", | ||
"version": "0.31.0-alpha.1", | ||
"description": "Tendermint RPC clients", | ||
@@ -45,9 +45,9 @@ "contributors": [ | ||
"dependencies": { | ||
"@cosmjs/crypto": "^0.30.1", | ||
"@cosmjs/encoding": "^0.30.1", | ||
"@cosmjs/json-rpc": "^0.30.1", | ||
"@cosmjs/math": "^0.30.1", | ||
"@cosmjs/socket": "^0.30.1", | ||
"@cosmjs/stream": "^0.30.1", | ||
"@cosmjs/utils": "^0.30.1", | ||
"@cosmjs/crypto": "^0.31.0-alpha.1", | ||
"@cosmjs/encoding": "^0.31.0-alpha.1", | ||
"@cosmjs/json-rpc": "^0.31.0-alpha.1", | ||
"@cosmjs/math": "^0.31.0-alpha.1", | ||
"@cosmjs/socket": "^0.31.0-alpha.1", | ||
"@cosmjs/stream": "^0.31.0-alpha.1", | ||
"@cosmjs/utils": "^0.31.0-alpha.1", | ||
"axios": "^0.21.2", | ||
@@ -64,3 +64,3 @@ "readonly-date": "^1.0.0", | ||
"@types/karma-jasmine-html-reporter": "^1", | ||
"@types/node": "^15.0.1", | ||
"@types/node": "^18", | ||
"@typescript-eslint/eslint-plugin": "^5.54.0", | ||
@@ -88,7 +88,8 @@ "@typescript-eslint/parser": "^5.54.0", | ||
"ts-node": "^8", | ||
"typedoc": "^0.22", | ||
"typescript": "~4.6", | ||
"typedoc": "^0.23", | ||
"typescript": "~4.9", | ||
"webpack": "^5.76.0", | ||
"webpack-cli": "^4.6.0" | ||
} | ||
}, | ||
"stableVersion": "0.30.1" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
305423
+ Added@cosmjs/crypto@0.31.3(transitive)
+ Added@cosmjs/encoding@0.31.3(transitive)
+ Added@cosmjs/json-rpc@0.31.3(transitive)
+ Added@cosmjs/math@0.31.3(transitive)
+ Added@cosmjs/socket@0.31.3(transitive)
+ Added@cosmjs/stream@0.31.3(transitive)
+ Added@cosmjs/utils@0.31.3(transitive)
+ Addedlibsodium-sumo@0.7.15(transitive)
+ Addedlibsodium-wrappers-sumo@0.7.15(transitive)
- Removed@cosmjs/crypto@0.30.1(transitive)
- Removed@cosmjs/encoding@0.30.1(transitive)
- Removed@cosmjs/json-rpc@0.30.1(transitive)
- Removed@cosmjs/math@0.30.1(transitive)
- Removed@cosmjs/socket@0.30.1(transitive)
- Removed@cosmjs/stream@0.30.1(transitive)
- Removed@cosmjs/utils@0.30.1(transitive)
- Removedlibsodium@0.7.15(transitive)
- Removedlibsodium-wrappers@0.7.15(transitive)
Updated@cosmjs/math@^0.31.0-alpha.1