Skip to content

Commit a42a720

Browse files
authored
Update Nuanze Client README + add Leaderboard endpoints (#455)
* remove outdated rate limits from nuanze client * Fix wallet test * Update the leaderboard Nuanze endpoints * fix lock * Convert getFollowedLeaderboard to GET query parameters.
1 parent 639f7de commit a42a720

20 files changed

Lines changed: 586 additions & 180 deletions

apps/e2e/src/nuanze-client/candlesQueries.test.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@ import {
1212
assertNonEmptyString,
1313
} from '../utils/assertions';
1414
import { debugPrint } from '../utils/debugPrint';
15-
import { delay } from '../utils/delay';
1615
import { createTestContext } from '../utils/runWithContext';
17-
import { TEST_DELAYS, TEST_TIMEOUTS } from '../utils/testConstants';
16+
import { TEST_TIMEOUTS } from '../utils/testConstants';
1817
import { RunContext } from '../utils/types';
1918

2019
/** UTC ISO 8601 with a required `Z`, as the Nuanze contract specifies. */
@@ -28,7 +27,6 @@ void describe(
2827
let ticker: string;
2928

3029
before(async () => {
31-
await delay(TEST_DELAYS.LONG);
3230
tc = createTestContext();
3331
const [first] = (await tc.nuanze.getMarkets({ venue: 'perp' })).markets;
3432
assert.ok(first, 'expected at least one perp market');

apps/e2e/src/nuanze-client/flowsQueries.test.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,8 @@ import {
1717
assertNumber,
1818
} from '../utils/assertions';
1919
import { debugPrint } from '../utils/debugPrint';
20-
import { delay } from '../utils/delay';
2120
import { createTestContext } from '../utils/runWithContext';
22-
import { TEST_DELAYS, TEST_TIMEOUTS } from '../utils/testConstants';
21+
import { TEST_TIMEOUTS } from '../utils/testConstants';
2322
import { RunContext } from '../utils/types';
2423

2524
/** UTC ISO 8601 with a required `Z`, as the Nuanze contract specifies. */
@@ -31,8 +30,7 @@ void describe(
3130
() => {
3231
let tc: RunContext;
3332

34-
before(async () => {
35-
await delay(TEST_DELAYS.LONG);
33+
before(() => {
3634
tc = createTestContext();
3735
});
3836

apps/e2e/src/nuanze-client/fundingQueries.test.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@ import {
1313
assertNumber,
1414
} from '../utils/assertions';
1515
import { debugPrint } from '../utils/debugPrint';
16-
import { delay } from '../utils/delay';
1716
import { createTestContext } from '../utils/runWithContext';
18-
import { TEST_DELAYS, TEST_TIMEOUTS } from '../utils/testConstants';
17+
import { TEST_TIMEOUTS } from '../utils/testConstants';
1918
import { RunContext } from '../utils/types';
2019

2120
/** UTC ISO 8601 with a required `Z`, as the Nuanze contract specifies. */
@@ -27,8 +26,7 @@ void describe(
2726
() => {
2827
let tc: RunContext;
2928

30-
before(async () => {
31-
await delay(TEST_DELAYS.LONG);
29+
before(() => {
3230
tc = createTestContext();
3331
});
3432

0 commit comments

Comments
 (0)