Upgrade prettier to 2.3.0
This commit is contained in:
@@ -21,11 +21,12 @@ describe("GasPrice", () => {
|
||||
"0.14utest": { amount: "0.14", denom: "utest" },
|
||||
// Test denoms
|
||||
"0.14sht": { amount: "0.14", denom: "sht" },
|
||||
"0.14testtesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttest": {
|
||||
amount: "0.14",
|
||||
denom:
|
||||
"testtesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttest",
|
||||
},
|
||||
"0.14testtesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttest":
|
||||
{
|
||||
amount: "0.14",
|
||||
denom:
|
||||
"testtesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttest",
|
||||
},
|
||||
"0.14ucoin2": { amount: "0.14", denom: "ucoin2" },
|
||||
// eslint-disable-next-line @typescript-eslint/naming-convention
|
||||
"0.14FOOBAR": { amount: "0.14", denom: "FOOBAR" },
|
||||
|
||||
@@ -228,11 +228,11 @@ describe("IbcExtension", () => {
|
||||
pendingWithoutSimapp();
|
||||
const [client, tmClient] = await makeClientWithIbc(simapp.tendermintUrl);
|
||||
|
||||
const response = await client.ibc.channel.unreceivedPackets(ibcTest.portId, ibcTest.channelId, [
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
]);
|
||||
const response = await client.ibc.channel.unreceivedPackets(
|
||||
ibcTest.portId,
|
||||
ibcTest.channelId,
|
||||
[1, 2, 3],
|
||||
);
|
||||
expect(response.sequences).toEqual([1, 2, 3].map((n) => Long.fromInt(n, true)));
|
||||
expect(response.height).toBeDefined();
|
||||
|
||||
@@ -245,15 +245,11 @@ describe("IbcExtension", () => {
|
||||
pendingWithoutSimapp();
|
||||
const [client, tmClient] = await makeClientWithIbc(simapp.tendermintUrl);
|
||||
|
||||
const response = await client.ibc.channel.unreceivedAcks(ibcTest.portId, ibcTest.channelId, [
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
5,
|
||||
6,
|
||||
7,
|
||||
]);
|
||||
const response = await client.ibc.channel.unreceivedAcks(
|
||||
ibcTest.portId,
|
||||
ibcTest.channelId,
|
||||
[1, 2, 3, 4, 5, 6, 7],
|
||||
);
|
||||
expect(response.sequences).toEqual([Long.fromInt(ibcTest.commitment.sequence, true)]);
|
||||
expect(response.height).toBeDefined();
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@ export class QueryClient {
|
||||
B extends object,
|
||||
C extends object,
|
||||
D extends object,
|
||||
E extends object
|
||||
E extends object,
|
||||
>(
|
||||
tmClient: Tendermint34Client,
|
||||
setupExtensionA: QueryExtensionSetup<A>,
|
||||
@@ -84,7 +84,7 @@ export class QueryClient {
|
||||
C extends object,
|
||||
D extends object,
|
||||
E extends object,
|
||||
F extends object
|
||||
F extends object,
|
||||
>(
|
||||
tmClient: Tendermint34Client,
|
||||
setupExtensionA: QueryExtensionSetup<A>,
|
||||
@@ -103,7 +103,7 @@ export class QueryClient {
|
||||
D extends object,
|
||||
E extends object,
|
||||
F extends object,
|
||||
G extends object
|
||||
G extends object,
|
||||
>(
|
||||
tmClient: Tendermint34Client,
|
||||
setupExtensionA: QueryExtensionSetup<A>,
|
||||
@@ -124,7 +124,7 @@ export class QueryClient {
|
||||
E extends object,
|
||||
F extends object,
|
||||
G extends object,
|
||||
H extends object
|
||||
H extends object,
|
||||
>(
|
||||
tmClient: Tendermint34Client,
|
||||
setupExtensionA: QueryExtensionSetup<A>,
|
||||
@@ -147,7 +147,7 @@ export class QueryClient {
|
||||
F extends object,
|
||||
G extends object,
|
||||
H extends object,
|
||||
I extends object
|
||||
I extends object,
|
||||
>(
|
||||
tmClient: Tendermint34Client,
|
||||
setupExtensionA: QueryExtensionSetup<A>,
|
||||
@@ -172,7 +172,7 @@ export class QueryClient {
|
||||
G extends object,
|
||||
H extends object,
|
||||
I extends object,
|
||||
J extends object
|
||||
J extends object,
|
||||
>(
|
||||
tmClient: Tendermint34Client,
|
||||
setupExtensionA: QueryExtensionSetup<A>,
|
||||
@@ -199,7 +199,7 @@ export class QueryClient {
|
||||
H extends object,
|
||||
I extends object,
|
||||
J extends object,
|
||||
K extends object
|
||||
K extends object,
|
||||
>(
|
||||
tmClient: Tendermint34Client,
|
||||
setupExtensionA: QueryExtensionSetup<A>,
|
||||
@@ -228,7 +228,7 @@ export class QueryClient {
|
||||
I extends object,
|
||||
J extends object,
|
||||
K extends object,
|
||||
L extends object
|
||||
L extends object,
|
||||
>(
|
||||
tmClient: Tendermint34Client,
|
||||
setupExtensionA: QueryExtensionSetup<A>,
|
||||
@@ -259,7 +259,7 @@ export class QueryClient {
|
||||
J extends object,
|
||||
K extends object,
|
||||
L extends object,
|
||||
M extends object
|
||||
M extends object,
|
||||
>(
|
||||
tmClient: Tendermint34Client,
|
||||
setupExtensionA: QueryExtensionSetup<A>,
|
||||
@@ -292,7 +292,7 @@ export class QueryClient {
|
||||
K extends object,
|
||||
L extends object,
|
||||
M extends object,
|
||||
N extends object
|
||||
N extends object,
|
||||
>(
|
||||
tmClient: Tendermint34Client,
|
||||
setupExtensionA: QueryExtensionSetup<A>,
|
||||
@@ -327,7 +327,7 @@ export class QueryClient {
|
||||
L extends object,
|
||||
M extends object,
|
||||
N extends object,
|
||||
O extends object
|
||||
O extends object,
|
||||
>(
|
||||
tmClient: Tendermint34Client,
|
||||
setupExtensionA: QueryExtensionSetup<A>,
|
||||
@@ -364,7 +364,7 @@ export class QueryClient {
|
||||
M extends object,
|
||||
N extends object,
|
||||
O extends object,
|
||||
P extends object
|
||||
P extends object,
|
||||
>(
|
||||
tmClient: Tendermint34Client,
|
||||
setupExtensionA: QueryExtensionSetup<A>,
|
||||
@@ -403,7 +403,7 @@ export class QueryClient {
|
||||
N extends object,
|
||||
O extends object,
|
||||
P extends object,
|
||||
Q extends object
|
||||
Q extends object,
|
||||
>(
|
||||
tmClient: Tendermint34Client,
|
||||
setupExtensionA: QueryExtensionSetup<A>,
|
||||
@@ -444,7 +444,7 @@ export class QueryClient {
|
||||
O extends object,
|
||||
P extends object,
|
||||
Q extends object,
|
||||
R extends object
|
||||
R extends object,
|
||||
>(
|
||||
tmClient: Tendermint34Client,
|
||||
setupExtensionA: QueryExtensionSetup<A>,
|
||||
|
||||
@@ -31,7 +31,7 @@ describe("SigningStargateClient", () => {
|
||||
pendingWithoutSimapp();
|
||||
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(faucet.mnemonic);
|
||||
const client = await SigningStargateClient.connectWithSigner(simapp.tendermintUrl, wallet);
|
||||
const openedClient = (client as unknown) as PrivateSigningStargateClient;
|
||||
const openedClient = client as unknown as PrivateSigningStargateClient;
|
||||
expect(openedClient.fees).toEqual({
|
||||
send: {
|
||||
amount: [
|
||||
@@ -88,7 +88,7 @@ describe("SigningStargateClient", () => {
|
||||
registry.register("/custom.MsgCustom", MsgSend);
|
||||
const options = { registry: registry };
|
||||
const client = await SigningStargateClient.connectWithSigner(simapp.tendermintUrl, wallet, options);
|
||||
const openedClient = (client as unknown) as PrivateSigningStargateClient;
|
||||
const openedClient = client as unknown as PrivateSigningStargateClient;
|
||||
expect(openedClient.registry.lookupType("/custom.MsgCustom")).toEqual(MsgSend);
|
||||
});
|
||||
|
||||
@@ -98,7 +98,7 @@ describe("SigningStargateClient", () => {
|
||||
const gasPrice = GasPrice.fromString("3.14utest");
|
||||
const options = { gasPrice: gasPrice };
|
||||
const client = await SigningStargateClient.connectWithSigner(simapp.tendermintUrl, wallet, options);
|
||||
const openedClient = (client as unknown) as PrivateSigningStargateClient;
|
||||
const openedClient = client as unknown as PrivateSigningStargateClient;
|
||||
expect(openedClient.fees).toEqual({
|
||||
send: {
|
||||
amount: [
|
||||
@@ -157,7 +157,7 @@ describe("SigningStargateClient", () => {
|
||||
};
|
||||
const options = { gasLimits: gasLimits };
|
||||
const client = await SigningStargateClient.connectWithSigner(simapp.tendermintUrl, wallet, options);
|
||||
const openedClient = (client as unknown) as PrivateSigningStargateClient;
|
||||
const openedClient = client as unknown as PrivateSigningStargateClient;
|
||||
expect(openedClient.fees).toEqual({
|
||||
send: {
|
||||
amount: [
|
||||
@@ -216,7 +216,7 @@ describe("SigningStargateClient", () => {
|
||||
};
|
||||
const options = { gasPrice: gasPrice, gasLimits: gasLimits };
|
||||
const client = await SigningStargateClient.connectWithSigner(simapp.tendermintUrl, wallet, options);
|
||||
const openedClient = (client as unknown) as PrivateSigningStargateClient;
|
||||
const openedClient = client as unknown as PrivateSigningStargateClient;
|
||||
expect(openedClient.fees).toEqual({
|
||||
send: {
|
||||
amount: [
|
||||
|
||||
@@ -53,7 +53,7 @@ describe("StargateClient", () => {
|
||||
it("caches chain ID", async () => {
|
||||
pendingWithoutSimapp();
|
||||
const client = await StargateClient.connect(simapp.tendermintUrl);
|
||||
const openedClient = (client as unknown) as PrivateStargateClient;
|
||||
const openedClient = client as unknown as PrivateStargateClient;
|
||||
const getCodeSpy = spyOn(openedClient.tmClient!, "status").and.callThrough();
|
||||
|
||||
expect(await client.getChainId()).toEqual(simapp.chainId); // from network
|
||||
|
||||
Reference in New Issue
Block a user