tendermint-rpc: Update general files for v0.33

This commit is contained in:
willclarktech 2020-06-23 13:24:16 +02:00
parent 605d2e9a89
commit 6f07e90587
No known key found for this signature in database
GPG Key ID: 551A86E2E398ADF7
4 changed files with 7 additions and 7 deletions

View File

@ -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}`);
}

View File

@ -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",
},
];

View File

@ -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 {

View File

@ -1,4 +1,4 @@
export { v0_32 } from "./v0-32";
export { v0_33 } from "./v0-33";
export { Client } from "./client";
export {
AbciInfoRequest,