mirror of
https://github.com/cosmos/cosmjs.git
synced 2025-03-10 21:49:15 +00:00
eslint: Standardize file-level camelcase disabling
This commit is contained in:
parent
33a721ab6d
commit
de293f3b63
@ -1,5 +1,6 @@
|
|||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
|
|
||||||
|
/* eslint-disable @typescript-eslint/camelcase */
|
||||||
require("source-map-support").install();
|
require("source-map-support").install();
|
||||||
const defaultSpecReporterConfig = require("../../jasmine-spec-reporter.config.json");
|
const defaultSpecReporterConfig = require("../../jasmine-spec-reporter.config.json");
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
|
|
||||||
|
/* eslint-disable @typescript-eslint/camelcase */
|
||||||
require("source-map-support").install();
|
require("source-map-support").install();
|
||||||
const defaultSpecReporterConfig = require("../../jasmine-spec-reporter.config.json");
|
const defaultSpecReporterConfig = require("../../jasmine-spec-reporter.config.json");
|
||||||
|
|
||||||
|
@ -91,9 +91,7 @@ describe("CosmWasmClient.searchTx", () => {
|
|||||||
const sendMsg: MsgSend = {
|
const sendMsg: MsgSend = {
|
||||||
type: "cosmos-sdk/MsgSend",
|
type: "cosmos-sdk/MsgSend",
|
||||||
value: {
|
value: {
|
||||||
// eslint-disable-next-line @typescript-eslint/camelcase
|
|
||||||
from_address: alice.address0,
|
from_address: alice.address0,
|
||||||
// eslint-disable-next-line @typescript-eslint/camelcase
|
|
||||||
to_address: recipient,
|
to_address: recipient,
|
||||||
amount: transferAmount,
|
amount: transferAmount,
|
||||||
},
|
},
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
/* eslint-disable @typescript-eslint/camelcase */
|
||||||
import { Sha256 } from "@cosmjs/crypto";
|
import { Sha256 } from "@cosmjs/crypto";
|
||||||
import { toHex } from "@cosmjs/encoding";
|
import { toHex } from "@cosmjs/encoding";
|
||||||
import { AuthExtension, coin, coins, LcdClient, Secp256k1Wallet, setupAuthExtension } from "@cosmjs/sdk38";
|
import { AuthExtension, coin, coins, LcdClient, Secp256k1Wallet, setupAuthExtension } from "@cosmjs/sdk38";
|
||||||
@ -254,7 +255,6 @@ describe("SigningCosmWasmClient", () => {
|
|||||||
assert(state2);
|
assert(state2);
|
||||||
expect(state2).toEqual({
|
expect(state2).toEqual({
|
||||||
...state1,
|
...state1,
|
||||||
// eslint-disable-next-line @typescript-eslint/camelcase
|
|
||||||
code_id: codeId2,
|
code_id: codeId2,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
/* eslint-disable @typescript-eslint/camelcase */
|
||||||
import { Sha256 } from "@cosmjs/crypto";
|
import { Sha256 } from "@cosmjs/crypto";
|
||||||
import { toBase64, toHex } from "@cosmjs/encoding";
|
import { toBase64, toHex } from "@cosmjs/encoding";
|
||||||
import { Uint53 } from "@cosmjs/math";
|
import { Uint53 } from "@cosmjs/math";
|
||||||
@ -213,7 +214,6 @@ export class SigningCosmWasmClient extends CosmWasmClient {
|
|||||||
type: "wasm/store-code",
|
type: "wasm/store-code",
|
||||||
value: {
|
value: {
|
||||||
sender: this.senderAddress,
|
sender: this.senderAddress,
|
||||||
// eslint-disable-next-line @typescript-eslint/camelcase
|
|
||||||
wasm_byte_code: toBase64(compressed),
|
wasm_byte_code: toBase64(compressed),
|
||||||
source: source,
|
source: source,
|
||||||
builder: builder,
|
builder: builder,
|
||||||
@ -257,12 +257,9 @@ export class SigningCosmWasmClient extends CosmWasmClient {
|
|||||||
type: "wasm/instantiate",
|
type: "wasm/instantiate",
|
||||||
value: {
|
value: {
|
||||||
sender: this.senderAddress,
|
sender: this.senderAddress,
|
||||||
// eslint-disable-next-line @typescript-eslint/camelcase
|
|
||||||
code_id: new Uint53(codeId).toString(),
|
code_id: new Uint53(codeId).toString(),
|
||||||
label: label,
|
label: label,
|
||||||
// eslint-disable-next-line @typescript-eslint/camelcase
|
|
||||||
init_msg: initMsg,
|
init_msg: initMsg,
|
||||||
// eslint-disable-next-line @typescript-eslint/camelcase
|
|
||||||
init_funds: options.transferAmount || [],
|
init_funds: options.transferAmount || [],
|
||||||
admin: options.admin,
|
admin: options.admin,
|
||||||
},
|
},
|
||||||
@ -299,7 +296,6 @@ export class SigningCosmWasmClient extends CosmWasmClient {
|
|||||||
value: {
|
value: {
|
||||||
sender: this.senderAddress,
|
sender: this.senderAddress,
|
||||||
contract: contractAddress,
|
contract: contractAddress,
|
||||||
// eslint-disable-next-line @typescript-eslint/camelcase
|
|
||||||
new_admin: newAdmin,
|
new_admin: newAdmin,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
@ -366,7 +362,6 @@ export class SigningCosmWasmClient extends CosmWasmClient {
|
|||||||
value: {
|
value: {
|
||||||
sender: this.senderAddress,
|
sender: this.senderAddress,
|
||||||
contract: contractAddress,
|
contract: contractAddress,
|
||||||
// eslint-disable-next-line @typescript-eslint/camelcase
|
|
||||||
code_id: new Uint53(codeId).toString(),
|
code_id: new Uint53(codeId).toString(),
|
||||||
msg: migrateMsg,
|
msg: migrateMsg,
|
||||||
},
|
},
|
||||||
@ -405,7 +400,6 @@ export class SigningCosmWasmClient extends CosmWasmClient {
|
|||||||
sender: this.senderAddress,
|
sender: this.senderAddress,
|
||||||
contract: contractAddress,
|
contract: contractAddress,
|
||||||
msg: handleMsg,
|
msg: handleMsg,
|
||||||
// eslint-disable-next-line @typescript-eslint/camelcase
|
|
||||||
sent_funds: transferAmount || [],
|
sent_funds: transferAmount || [],
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
@ -439,9 +433,7 @@ export class SigningCosmWasmClient extends CosmWasmClient {
|
|||||||
const sendMsg: MsgSend = {
|
const sendMsg: MsgSend = {
|
||||||
type: "cosmos-sdk/MsgSend",
|
type: "cosmos-sdk/MsgSend",
|
||||||
value: {
|
value: {
|
||||||
// eslint-disable-next-line @typescript-eslint/camelcase
|
|
||||||
from_address: this.senderAddress,
|
from_address: this.senderAddress,
|
||||||
// eslint-disable-next-line @typescript-eslint/camelcase
|
|
||||||
to_address: recipientAddress,
|
to_address: recipientAddress,
|
||||||
amount: transferAmount,
|
amount: transferAmount,
|
||||||
},
|
},
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
|
|
||||||
|
/* eslint-disable @typescript-eslint/camelcase */
|
||||||
require("source-map-support").install();
|
require("source-map-support").install();
|
||||||
const defaultSpecReporterConfig = require("../../jasmine-spec-reporter.config.json");
|
const defaultSpecReporterConfig = require("../../jasmine-spec-reporter.config.json");
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
|
|
||||||
|
/* eslint-disable @typescript-eslint/camelcase */
|
||||||
require("source-map-support").install();
|
require("source-map-support").install();
|
||||||
const defaultSpecReporterConfig = require("../../jasmine-spec-reporter.config.json");
|
const defaultSpecReporterConfig = require("../../jasmine-spec-reporter.config.json");
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
|
|
||||||
|
/* eslint-disable @typescript-eslint/camelcase */
|
||||||
require("source-map-support").install();
|
require("source-map-support").install();
|
||||||
const defaultSpecReporterConfig = require("../../jasmine-spec-reporter.config.json");
|
const defaultSpecReporterConfig = require("../../jasmine-spec-reporter.config.json");
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
|
|
||||||
|
/* eslint-disable @typescript-eslint/camelcase */
|
||||||
require("source-map-support").install();
|
require("source-map-support").install();
|
||||||
const defaultSpecReporterConfig = require("../../jasmine-spec-reporter.config.json");
|
const defaultSpecReporterConfig = require("../../jasmine-spec-reporter.config.json");
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
|
|
||||||
|
/* eslint-disable @typescript-eslint/camelcase */
|
||||||
require("source-map-support").install();
|
require("source-map-support").install();
|
||||||
const defaultSpecReporterConfig = require("../../jasmine-spec-reporter.config.json");
|
const defaultSpecReporterConfig = require("../../jasmine-spec-reporter.config.json");
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
|
|
||||||
|
/* eslint-disable @typescript-eslint/camelcase */
|
||||||
require("source-map-support").install();
|
require("source-map-support").install();
|
||||||
const defaultSpecReporterConfig = require("../../jasmine-spec-reporter.config.json");
|
const defaultSpecReporterConfig = require("../../jasmine-spec-reporter.config.json");
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
|
|
||||||
|
/* eslint-disable @typescript-eslint/camelcase */
|
||||||
require("source-map-support").install();
|
require("source-map-support").install();
|
||||||
const defaultSpecReporterConfig = require("../../jasmine-spec-reporter.config.json");
|
const defaultSpecReporterConfig = require("../../jasmine-spec-reporter.config.json");
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
|
|
||||||
|
/* eslint-disable @typescript-eslint/camelcase */
|
||||||
require("source-map-support").install();
|
require("source-map-support").install();
|
||||||
const defaultSpecReporterConfig = require("../../jasmine-spec-reporter.config.json");
|
const defaultSpecReporterConfig = require("../../jasmine-spec-reporter.config.json");
|
||||||
|
|
||||||
|
@ -44,9 +44,7 @@ describe("CosmosClient.searchTx", () => {
|
|||||||
const sendMsg: MsgSend = {
|
const sendMsg: MsgSend = {
|
||||||
type: "cosmos-sdk/MsgSend",
|
type: "cosmos-sdk/MsgSend",
|
||||||
value: {
|
value: {
|
||||||
// eslint-disable-next-line @typescript-eslint/camelcase
|
|
||||||
from_address: faucet.address,
|
from_address: faucet.address,
|
||||||
// eslint-disable-next-line @typescript-eslint/camelcase
|
|
||||||
to_address: recipient,
|
to_address: recipient,
|
||||||
amount: transferAmount,
|
amount: transferAmount,
|
||||||
},
|
},
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
/* eslint-disable @typescript-eslint/camelcase */
|
||||||
import { toUtf8 } from "@cosmjs/encoding";
|
import { toUtf8 } from "@cosmjs/encoding";
|
||||||
|
|
||||||
import { Msg } from "./msgs";
|
import { Msg } from "./msgs";
|
||||||
@ -44,9 +45,7 @@ export function makeSignBytes(
|
|||||||
sequence: number,
|
sequence: number,
|
||||||
): Uint8Array {
|
): Uint8Array {
|
||||||
const signDoc: StdSignDoc = {
|
const signDoc: StdSignDoc = {
|
||||||
// eslint-disable-next-line @typescript-eslint/camelcase
|
|
||||||
account_number: accountNumber.toString(),
|
account_number: accountNumber.toString(),
|
||||||
// eslint-disable-next-line @typescript-eslint/camelcase
|
|
||||||
chain_id: chainId,
|
chain_id: chainId,
|
||||||
fee: fee,
|
fee: fee,
|
||||||
memo: memo,
|
memo: memo,
|
||||||
|
@ -247,9 +247,7 @@ describe("LcdClient", () => {
|
|||||||
const sendMsg: MsgSend = {
|
const sendMsg: MsgSend = {
|
||||||
type: "cosmos-sdk/MsgSend",
|
type: "cosmos-sdk/MsgSend",
|
||||||
value: {
|
value: {
|
||||||
// eslint-disable-next-line @typescript-eslint/camelcase
|
|
||||||
from_address: faucet.address,
|
from_address: faucet.address,
|
||||||
// eslint-disable-next-line @typescript-eslint/camelcase
|
|
||||||
to_address: recipient,
|
to_address: recipient,
|
||||||
amount: transferAmount,
|
amount: transferAmount,
|
||||||
},
|
},
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
/* eslint-disable @typescript-eslint/camelcase */
|
||||||
import { fromBase64 } from "@cosmjs/encoding";
|
import { fromBase64 } from "@cosmjs/encoding";
|
||||||
|
|
||||||
import { decodeSignature, encodeSecp256k1Signature } from "./signature";
|
import { decodeSignature, encodeSecp256k1Signature } from "./signature";
|
||||||
@ -11,7 +12,6 @@ describe("signature", () => {
|
|||||||
"1nUcIH0CLT0/nQ0mBTDrT6kMG20NY/PsH7P2gc4bpYNGLEYjBmdWevXUJouSE/9A/60QG9cYeqyTe5kFDeIPxQ==",
|
"1nUcIH0CLT0/nQ0mBTDrT6kMG20NY/PsH7P2gc4bpYNGLEYjBmdWevXUJouSE/9A/60QG9cYeqyTe5kFDeIPxQ==",
|
||||||
);
|
);
|
||||||
expect(encodeSecp256k1Signature(pubkey, signature)).toEqual({
|
expect(encodeSecp256k1Signature(pubkey, signature)).toEqual({
|
||||||
// eslint-disable-next-line @typescript-eslint/camelcase
|
|
||||||
pub_key: {
|
pub_key: {
|
||||||
type: "tendermint/PubKeySecp256k1",
|
type: "tendermint/PubKeySecp256k1",
|
||||||
value: "AtQaCqFnshaZQp6rIkvAPyzThvCvXSDO+9AzbxVErqJP",
|
value: "AtQaCqFnshaZQp6rIkvAPyzThvCvXSDO+9AzbxVErqJP",
|
||||||
@ -49,7 +49,6 @@ describe("signature", () => {
|
|||||||
describe("decodeSignature", () => {
|
describe("decodeSignature", () => {
|
||||||
it("works for secp256k1", () => {
|
it("works for secp256k1", () => {
|
||||||
const signature: StdSignature = {
|
const signature: StdSignature = {
|
||||||
// eslint-disable-next-line @typescript-eslint/camelcase
|
|
||||||
pub_key: {
|
pub_key: {
|
||||||
type: "tendermint/PubKeySecp256k1",
|
type: "tendermint/PubKeySecp256k1",
|
||||||
value: "AtQaCqFnshaZQp6rIkvAPyzThvCvXSDO+9AzbxVErqJP",
|
value: "AtQaCqFnshaZQp6rIkvAPyzThvCvXSDO+9AzbxVErqJP",
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
/* eslint-disable @typescript-eslint/camelcase */
|
||||||
import { fromBase64, toBase64 } from "@cosmjs/encoding";
|
import { fromBase64, toBase64 } from "@cosmjs/encoding";
|
||||||
|
|
||||||
import { encodeSecp256k1Pubkey } from "./pubkey";
|
import { encodeSecp256k1Pubkey } from "./pubkey";
|
||||||
@ -17,7 +18,6 @@ export function encodeSecp256k1Signature(pubkey: Uint8Array, signature: Uint8Arr
|
|||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
// eslint-disable-next-line @typescript-eslint/camelcase
|
|
||||||
pub_key: encodeSecp256k1Pubkey(pubkey),
|
pub_key: encodeSecp256k1Pubkey(pubkey),
|
||||||
signature: toBase64(signature),
|
signature: toBase64(signature),
|
||||||
};
|
};
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
/* eslint-disable @typescript-eslint/camelcase */
|
||||||
import { Coin, coins } from "./coins";
|
import { Coin, coins } from "./coins";
|
||||||
import { Account, CosmosClient, GetNonceResult, PostTxResult } from "./cosmosclient";
|
import { Account, CosmosClient, GetNonceResult, PostTxResult } from "./cosmosclient";
|
||||||
import { makeSignBytes } from "./encoding";
|
import { makeSignBytes } from "./encoding";
|
||||||
@ -81,9 +82,7 @@ export class SigningCosmosClient extends CosmosClient {
|
|||||||
const sendMsg: MsgSend = {
|
const sendMsg: MsgSend = {
|
||||||
type: "cosmos-sdk/MsgSend",
|
type: "cosmos-sdk/MsgSend",
|
||||||
value: {
|
value: {
|
||||||
// eslint-disable-next-line @typescript-eslint/camelcase
|
|
||||||
from_address: this.senderAddress,
|
from_address: this.senderAddress,
|
||||||
// eslint-disable-next-line @typescript-eslint/camelcase
|
|
||||||
to_address: recipientAddress,
|
to_address: recipientAddress,
|
||||||
amount: transferAmount,
|
amount: transferAmount,
|
||||||
},
|
},
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
|
|
||||||
|
/* eslint-disable @typescript-eslint/camelcase */
|
||||||
require("source-map-support").install();
|
require("source-map-support").install();
|
||||||
const defaultSpecReporterConfig = require("../../jasmine-spec-reporter.config.json");
|
const defaultSpecReporterConfig = require("../../jasmine-spec-reporter.config.json");
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
|
|
||||||
|
/* eslint-disable @typescript-eslint/camelcase */
|
||||||
require("source-map-support").install();
|
require("source-map-support").install();
|
||||||
const defaultSpecReporterConfig = require("../../jasmine-spec-reporter.config.json");
|
const defaultSpecReporterConfig = require("../../jasmine-spec-reporter.config.json");
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
|
|
||||||
|
/* eslint-disable @typescript-eslint/camelcase */
|
||||||
require("source-map-support").install();
|
require("source-map-support").install();
|
||||||
const defaultSpecReporterConfig = require("../../jasmine-spec-reporter.config.json");
|
const defaultSpecReporterConfig = require("../../jasmine-spec-reporter.config.json");
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
|
|
||||||
|
/* eslint-disable @typescript-eslint/camelcase */
|
||||||
require("source-map-support").install();
|
require("source-map-support").install();
|
||||||
const defaultSpecReporterConfig = require("../../jasmine-spec-reporter.config.json");
|
const defaultSpecReporterConfig = require("../../jasmine-spec-reporter.config.json");
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
/* eslint-disable @typescript-eslint/camelcase */
|
||||||
import { toAscii } from "@cosmjs/encoding";
|
import { toAscii } from "@cosmjs/encoding";
|
||||||
import { firstEvent, toListPromise } from "@cosmjs/stream";
|
import { firstEvent, toListPromise } from "@cosmjs/stream";
|
||||||
import { sleep } from "@cosmjs/utils";
|
import { sleep } from "@cosmjs/utils";
|
||||||
@ -168,7 +169,6 @@ function defaultTestSuite(rpcFactory: () => RpcClient, adaptor: Adaptor): void {
|
|||||||
// tendermint, else you get empty results
|
// tendermint, else you get empty results
|
||||||
const query = buildQuery({ tags: [{ key: "app.key", value: find }] });
|
const query = buildQuery({ tags: [{ key: "app.key", value: find }] });
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/camelcase
|
|
||||||
const s = await client.txSearch({ query: query, page: 1, per_page: 30 });
|
const s = await client.txSearch({ query: query, page: 1, per_page: 30 });
|
||||||
// should find the tx
|
// should find the tx
|
||||||
expect(s.totalCount).toEqual(1);
|
expect(s.totalCount).toEqual(1);
|
||||||
@ -217,19 +217,16 @@ function defaultTestSuite(rpcFactory: () => RpcClient, adaptor: Adaptor): void {
|
|||||||
await tendermintSearchIndexUpdated();
|
await tendermintSearchIndexUpdated();
|
||||||
|
|
||||||
// expect one page of results
|
// expect one page of results
|
||||||
// eslint-disable-next-line @typescript-eslint/camelcase
|
|
||||||
const s1 = await client.txSearch({ query: query, page: 1, per_page: 2 });
|
const s1 = await client.txSearch({ query: query, page: 1, per_page: 2 });
|
||||||
expect(s1.totalCount).toEqual(3);
|
expect(s1.totalCount).toEqual(3);
|
||||||
expect(s1.txs.length).toEqual(2);
|
expect(s1.txs.length).toEqual(2);
|
||||||
|
|
||||||
// second page
|
// second page
|
||||||
// eslint-disable-next-line @typescript-eslint/camelcase
|
|
||||||
const s2 = await client.txSearch({ query: query, page: 2, per_page: 2 });
|
const s2 = await client.txSearch({ query: query, page: 2, per_page: 2 });
|
||||||
expect(s2.totalCount).toEqual(3);
|
expect(s2.totalCount).toEqual(3);
|
||||||
expect(s2.txs.length).toEqual(1);
|
expect(s2.txs.length).toEqual(1);
|
||||||
|
|
||||||
// and all together now
|
// and all together now
|
||||||
// eslint-disable-next-line @typescript-eslint/camelcase
|
|
||||||
const sall = await client.txSearchAll({ query: query, per_page: 2 });
|
const sall = await client.txSearchAll({ query: query, per_page: 2 });
|
||||||
expect(sall.totalCount).toEqual(3);
|
expect(sall.totalCount).toEqual(3);
|
||||||
expect(sall.txs.length).toEqual(3);
|
expect(sall.txs.length).toEqual(3);
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
|
/* eslint-disable @typescript-eslint/camelcase */
|
||||||
import { Adaptor } from "../adaptor";
|
import { Adaptor } from "../adaptor";
|
||||||
import { hashBlock, hashTx } from "./hasher";
|
import { hashBlock, hashTx } from "./hasher";
|
||||||
import { Params } from "./requests";
|
import { Params } from "./requests";
|
||||||
import { Responses } from "./responses";
|
import { Responses } from "./responses";
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/camelcase
|
|
||||||
export const v0_33: Adaptor = {
|
export const v0_33: Adaptor = {
|
||||||
params: Params,
|
params: Params,
|
||||||
responses: Responses,
|
responses: Responses,
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
/* eslint-disable @typescript-eslint/camelcase */
|
||||||
import { toHex } from "@cosmjs/encoding";
|
import { toHex } from "@cosmjs/encoding";
|
||||||
import { JsonRpcRequest } from "@cosmjs/json-rpc";
|
import { JsonRpcRequest } from "@cosmjs/json-rpc";
|
||||||
|
|
||||||
@ -75,7 +76,6 @@ function encodeTxSearchParams(params: requests.TxSearchParams): RpcTxSearchParam
|
|||||||
query: params.query,
|
query: params.query,
|
||||||
prove: params.prove,
|
prove: params.prove,
|
||||||
page: may(Integer.encode, params.page),
|
page: may(Integer.encode, params.page),
|
||||||
// eslint-disable-next-line @typescript-eslint/camelcase
|
|
||||||
per_page: may(Integer.encode, params.per_page),
|
per_page: may(Integer.encode, params.per_page),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
|
|
||||||
|
/* eslint-disable @typescript-eslint/camelcase */
|
||||||
require("source-map-support").install();
|
require("source-map-support").install();
|
||||||
const defaultSpecReporterConfig = require("../../jasmine-spec-reporter.config.json");
|
const defaultSpecReporterConfig = require("../../jasmine-spec-reporter.config.json");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user