mirror of
https://github.com/cosmos/cosmjs.git
synced 2025-03-10 13:47:12 +00:00
Remove IpPortString
This commit is contained in:
parent
1cdfc35fe1
commit
0855c56fdc
@ -34,7 +34,7 @@
|
||||
`adaptor34`. Export the `Adaptor` type.
|
||||
- @cosmjs/tendermint-rpc: Export `DateTime` class.
|
||||
- @cosmjs/tendermint-rpc: Remove types `QueryString`, `Base64String`,
|
||||
`HexString`, `IntegerString`. Use `string` instead.
|
||||
`HexString`, `IntegerString` and `IpPortString`. Use `string` instead.
|
||||
|
||||
## 0.23.1 (2020-10-27)
|
||||
|
||||
|
@ -18,7 +18,7 @@ import {
|
||||
} from "../../encodings";
|
||||
import * as responses from "../../responses";
|
||||
import { SubscriptionEvent } from "../../rpcclients";
|
||||
import { IpPortString, TxBytes, TxHash, ValidatorPubkey, ValidatorSignature } from "../../types";
|
||||
import { TxBytes, TxHash, ValidatorPubkey, ValidatorSignature } from "../../types";
|
||||
import { hashTx } from "./hasher";
|
||||
|
||||
interface AbciInfoResult {
|
||||
@ -500,7 +500,8 @@ function decodeValidatorInfo(data: RpcValidatorInfo): responses.Validator {
|
||||
interface RpcNodeInfo {
|
||||
/** hex encoded */
|
||||
readonly id: string;
|
||||
readonly listen_addr: IpPortString;
|
||||
/** IP and port */
|
||||
readonly listen_addr: string;
|
||||
readonly network: string;
|
||||
readonly version: string;
|
||||
readonly channels: string; // ???
|
||||
|
@ -74,7 +74,6 @@ export {
|
||||
} from "./responses";
|
||||
export { HttpClient, WebsocketClient } from "./rpcclients"; // TODO: Why do we export those outside of this package?
|
||||
export {
|
||||
IpPortString,
|
||||
TxBytes,
|
||||
TxHash,
|
||||
ValidatorEd25519Pubkey,
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { ReadonlyDate } from "readonly-date";
|
||||
|
||||
import { IpPortString, TxBytes, TxHash, ValidatorPubkey, ValidatorSignature } from "./types";
|
||||
import { TxBytes, TxHash, ValidatorPubkey, ValidatorSignature } from "./types";
|
||||
|
||||
export type Response =
|
||||
| AbciInfoResponse
|
||||
@ -283,7 +283,8 @@ export interface Header {
|
||||
|
||||
export interface NodeInfo {
|
||||
readonly id: Uint8Array;
|
||||
readonly listenAddr: IpPortString;
|
||||
/** IP and port */
|
||||
readonly listenAddr: string;
|
||||
readonly network: string;
|
||||
readonly version: string;
|
||||
readonly channels: string; // ???
|
||||
|
@ -16,8 +16,6 @@ export type TxBytes = Uint8Array & As<"tx-bytes">;
|
||||
*/
|
||||
export type TxHash = Uint8Array & As<"tx-hash">;
|
||||
|
||||
export type IpPortString = string & As<"ipport">;
|
||||
|
||||
export interface ValidatorEd25519Pubkey {
|
||||
readonly algorithm: "ed25519";
|
||||
readonly data: Uint8Array;
|
||||
|
1
packages/tendermint-rpc/types/index.d.ts
vendored
1
packages/tendermint-rpc/types/index.d.ts
vendored
@ -74,7 +74,6 @@ export {
|
||||
} from "./responses";
|
||||
export { HttpClient, WebsocketClient } from "./rpcclients";
|
||||
export {
|
||||
IpPortString,
|
||||
TxBytes,
|
||||
TxHash,
|
||||
ValidatorEd25519Pubkey,
|
||||
|
5
packages/tendermint-rpc/types/responses.d.ts
vendored
5
packages/tendermint-rpc/types/responses.d.ts
vendored
@ -1,5 +1,5 @@
|
||||
import { ReadonlyDate } from "readonly-date";
|
||||
import { IpPortString, TxBytes, TxHash, ValidatorPubkey, ValidatorSignature } from "./types";
|
||||
import { TxBytes, TxHash, ValidatorPubkey, ValidatorSignature } from "./types";
|
||||
export declare type Response =
|
||||
| AbciInfoResponse
|
||||
| AbciQueryResponse
|
||||
@ -219,7 +219,8 @@ export interface Header {
|
||||
}
|
||||
export interface NodeInfo {
|
||||
readonly id: Uint8Array;
|
||||
readonly listenAddr: IpPortString;
|
||||
/** IP and port */
|
||||
readonly listenAddr: string;
|
||||
readonly network: string;
|
||||
readonly version: string;
|
||||
readonly channels: string;
|
||||
|
1
packages/tendermint-rpc/types/types.d.ts
vendored
1
packages/tendermint-rpc/types/types.d.ts
vendored
@ -9,7 +9,6 @@ export declare type TxBytes = Uint8Array & As<"tx-bytes">;
|
||||
* A raw tendermint transaction hash, currently 20 bytes
|
||||
*/
|
||||
export declare type TxHash = Uint8Array & As<"tx-hash">;
|
||||
export declare type IpPortString = string & As<"ipport">;
|
||||
export interface ValidatorEd25519Pubkey {
|
||||
readonly algorithm: "ed25519";
|
||||
readonly data: Uint8Array;
|
||||
|
Loading…
x
Reference in New Issue
Block a user