Skip to content

Commit

Permalink
add new wallet
Browse files Browse the repository at this point in the history
  • Loading branch information
affanv14 committed Jul 18, 2024
1 parent 76333e7 commit 81f56e7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions indexer/packages/postgres/__tests__/helpers/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,11 @@ export const defaultWallet2: WalletCreateObject = {
totalTradingRewards: denomToHumanReadableConversion(1),
};

export const defaultWallet3: WalletCreateObject = {
address: defaultAddress2,
totalTradingRewards: denomToHumanReadableConversion(0),
};

// ============== Assets ==============

export const defaultAsset: AssetCreateObject = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,15 @@ import {
defaultLeaderboardPnlOneDay,
defaultLeaderboardPnl1AllTime,
defaultLeaderboardPnlOneDayToUpsert,
defaultWallet3,
} from '../helpers/constants';
import { seedData } from '../helpers/mock-generators';
import { WalletTable } from '../../src';

describe('LeaderboardPnl store', () => {
beforeEach(async () => {
await seedData();
await WalletTable.create(defaultWallet3);
});

beforeAll(async () => {
Expand Down

0 comments on commit 81f56e7

Please sign in to comment.