Skip to content

Commit f9e19dc

Browse files
committed
fix linter
1 parent 85e7b98 commit f9e19dc

File tree

6 files changed

+43
-15
lines changed

6 files changed

+43
-15
lines changed

src/helpers/local_state.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
QueryClient,
66
} from '@cosmjs/stargate';
77
import { DirectSecp256k1HdWallet } from '@cosmjs/proto-signing';
8-
import { HdPath, stringToPath } from "@cosmjs/crypto";
8+
import { HdPath, stringToPath } from '@cosmjs/crypto';
99
import { RunnerTestSuite } from 'vitest';
1010
import { connectComet } from '@cosmjs/tendermint-rpc';
1111
import {

src/testcases/parallel/ibc_transfer.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ describe('Neutron / IBC transfer', () => {
3737
let gaiaWallet2: Wallet;
3838

3939
let ibcContract: string;
40-
let receiverContract: string;
4140

4241
let contractManagerQuerier: ContractManagerQuery;
4342
let bankQuerier: BankQueryClient;

src/testcases/run_in_band/revenue.test.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -261,20 +261,16 @@ describe('Neutron / Revenue', () => {
261261
let tries = 0;
262262
for (;;) {
263263
tries++;
264-
console.log(tries);
265264
if (tries > 120) {
266265
throw new Error("slinky couldn't provide NTRN price in 2 minutes");
267266
}
268267

269268
try {
270269
// we get an error until slinky get up and start filling TWAP price
271270
// no error thrown means slinky up and posts prices
272-
console.log("await revenueQuerier.paymentInfo();");
273271
await revenueQuerier.paymentInfo();
274-
console.log("break");
275272
break;
276273
} catch {
277-
console.log("waiting 1 block");
278274
await waitBlocks(1, neutronClient);
279275
}
280276
}

src/testcases/run_in_band/staking-rewards.test.ts

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ import {
77
VAL_MNEMONIC_1,
88
} from '../../helpers/constants';
99
import { expect, inject, RunnerTestSuite } from 'vitest';
10-
import { LocalState, mnemonicWithAccountToWallet } from '../../helpers/local_state';
10+
import {
11+
LocalState,
12+
mnemonicWithAccountToWallet,
13+
} from '../../helpers/local_state';
1114
import { QueryClientImpl as StakingQueryClient } from '@neutron-org/neutronjs/cosmos/staking/v1beta1/query.rpc.Query';
1215
import { Wallet } from '../../helpers/wallet';
1316
import config from '../../config.json';
@@ -71,8 +74,16 @@ describe('Neutron / Staking Rewards', () => {
7174
neutronWallet2 = await testState.nextWallet('neutron');
7275
claimRecipient = (await testState.nextWallet('neutron')).address;
7376

74-
validatorPrimary = await mnemonicWithAccountToWallet(VAL_MNEMONIC_1, 'neutron', 1);
75-
validatorSecondary = await mnemonicWithAccountToWallet(VAL_MNEMONIC_1, 'neutron', 2);
77+
validatorPrimary = await mnemonicWithAccountToWallet(
78+
VAL_MNEMONIC_1,
79+
'neutron',
80+
1,
81+
);
82+
validatorSecondary = await mnemonicWithAccountToWallet(
83+
VAL_MNEMONIC_1,
84+
'neutron',
85+
2,
86+
);
7687

7788
neutronClient1 = await SigningNeutronClient.connectWithSigner(
7889
testState.rpcNeutron,

src/testcases/run_in_band/staking-tracker.test.ts

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ import {
77
VAL_MNEMONIC_1,
88
} from '../../helpers/constants';
99
import { expect, inject, RunnerTestSuite } from 'vitest';
10-
import { LocalState, mnemonicWithAccountToWallet } from '../../helpers/local_state';
10+
import {
11+
LocalState,
12+
mnemonicWithAccountToWallet,
13+
} from '../../helpers/local_state';
1114
import { QueryClientImpl as StakingQueryClient } from '@neutron-org/neutronjs/cosmos/staking/v1beta1/query.rpc.Query';
1215
import { Wallet } from '../../helpers/wallet';
1316
import config from '../../config.json';
@@ -67,8 +70,16 @@ describe('Neutron / Staking Tracker - Extended Scenarios', () => {
6770
neutronWallet1 = await testState.nextWallet('neutron');
6871
neutronWallet2 = await testState.nextWallet('neutron');
6972

70-
validatorPrimaryWallet = await mnemonicWithAccountToWallet(VAL_MNEMONIC_1, 'neutron', 1);
71-
validatorSecondWallet = await mnemonicWithAccountToWallet(VAL_MNEMONIC_1, 'neutron', 2);
73+
validatorPrimaryWallet = await mnemonicWithAccountToWallet(
74+
VAL_MNEMONIC_1,
75+
'neutron',
76+
1,
77+
);
78+
validatorSecondWallet = await mnemonicWithAccountToWallet(
79+
VAL_MNEMONIC_1,
80+
'neutron',
81+
2,
82+
);
7283

7384
neutronClient1 = await SigningNeutronClient.connectWithSigner(
7485
testState.rpcNeutron,

src/testcases/run_in_band/staking-vault.test.ts

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ import {
77
VAL_MNEMONIC_1,
88
} from '../../helpers/constants';
99
import { expect, inject, RunnerTestSuite } from 'vitest';
10-
import { LocalState, mnemonicWithAccountToWallet } from '../../helpers/local_state';
10+
import {
11+
LocalState,
12+
mnemonicWithAccountToWallet,
13+
} from '../../helpers/local_state';
1114
import { Wallet } from '../../helpers/wallet';
1215
import config from '../../config.json';
1316
import {
@@ -102,10 +105,18 @@ describe('Neutron / Staking Vault', () => {
102105
NEUTRON_DENOM,
103106
);
104107

105-
validatorWallet1 = await mnemonicWithAccountToWallet(VAL_MNEMONIC_1, 'neutron', 1);
108+
validatorWallet1 = await mnemonicWithAccountToWallet(
109+
VAL_MNEMONIC_1,
110+
'neutron',
111+
1,
112+
);
106113
validatorAddr1 = validatorWallet1.valAddress;
107114

108-
validatorWallet2 = await mnemonicWithAccountToWallet(VAL_MNEMONIC_1, 'neutron', 2);
115+
validatorWallet2 = await mnemonicWithAccountToWallet(
116+
VAL_MNEMONIC_1,
117+
'neutron',
118+
2,
119+
);
109120
validatorAddr2 = validatorWallet2.valAddress;
110121

111122
const neutronQuerier = await createNeutronClient({

0 commit comments

Comments
 (0)