tendermint-rpc: Update general files for v0.33
This commit is contained in:
parent
605d2e9a89
commit
6f07e90587
@ -2,7 +2,7 @@
|
||||
// This module exposes translators for multiple tendermint versions
|
||||
// Pick a version that matches the server to properly encode the data types
|
||||
import { Adaptor } from "./adaptor";
|
||||
import { v0_32 } from "./v0-32";
|
||||
import { v0_33 } from "./v0-33";
|
||||
|
||||
/**
|
||||
* Returns an Adaptor implementation for a given tendermint version.
|
||||
@ -11,8 +11,8 @@ import { v0_32 } from "./v0-32";
|
||||
* @param version full Tendermint version string, e.g. "0.20.1"
|
||||
*/
|
||||
export function adaptorForVersion(version: string): Adaptor {
|
||||
if (version.startsWith("0.32.")) {
|
||||
return v0_32;
|
||||
if (version.startsWith("0.33.")) {
|
||||
return v0_33;
|
||||
} else {
|
||||
throw new Error(`Unsupported tendermint version: ${version}`);
|
||||
}
|
||||
|
||||
@ -18,8 +18,8 @@ export interface TendermintInstance {
|
||||
*/
|
||||
export const tendermintInstances: readonly TendermintInstance[] = [
|
||||
{
|
||||
url: "localhost:11132",
|
||||
version: "0.32.x",
|
||||
url: "localhost:11133",
|
||||
version: "0.33.x",
|
||||
appCreator: "Cosmoshi Netowoko",
|
||||
},
|
||||
];
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
/* eslint-disable @typescript-eslint/camelcase */
|
||||
// exported to access version-specific hashing
|
||||
export { v0_32 } from "./v0-32";
|
||||
export { v0_33 } from "./v0-33";
|
||||
|
||||
export { Client } from "./client";
|
||||
export {
|
||||
|
||||
2
packages/tendermint-rpc/types/index.d.ts
vendored
2
packages/tendermint-rpc/types/index.d.ts
vendored
@ -1,4 +1,4 @@
|
||||
export { v0_32 } from "./v0-32";
|
||||
export { v0_33 } from "./v0-33";
|
||||
export { Client } from "./client";
|
||||
export {
|
||||
AbciInfoRequest,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user