Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
rabi-siddique committed Dec 13, 2024
1 parent 68bf36b commit 57d335d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
14 changes: 7 additions & 7 deletions src/mappings/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ export const VAULT_STATES = {
LIQUIDATED_CLOSED: 'liquidatedClosed',
};

export const VALUE_KEY = ('value');
export const STORE_KEY = ('store');
export const VSTORAGE_VALUE = ('vstorage');
export const KEY_KEY = ('key');
export const STORE_NAME_KEY = ('store_name');
export const SUBKEY_KEY = ('store_subkey');
export const UNPROVED_VALUE_KEY = ('unproved_value');
export const VALUE_KEY = 'value';
export const STORE_KEY = 'store';
export const VSTORAGE_VALUE = 'vstorage';
export const KEY_KEY = 'key';
export const STORE_NAME_KEY = 'store_name';
export const SUBKEY_KEY = 'store_subkey';
export const UNPROVED_VALUE_KEY = 'unproved_value';
export const PACKET_DATA_KEY = 'packet_data';
export const PACKET_SRC_CHANNEL_KEY = 'packet_src_channel';
export const PACKET_DST_CHANNEL_KEY = 'packet_dst_channel';
Expand Down
4 changes: 2 additions & 2 deletions src/mappings/events/vaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ export const vaultsEventKit = (block: any, data: any, module: string, path: stri
}

async function saveWallets(payload: any): Promise<Promise<any>[]> {
logger.info(`PAYLOAD: ${JSON.stringify(payload)}`)
logger.info(`PAYLOAD: ${JSON.stringify(payload)}`);
const promises: Promise<void>[] = [];
const address = path.split('.')[2];
logger.info(`WALLET PATH: ${path}`);
logger.info(`time: ${block.block.header.time as any}`)
logger.info(`time: ${block.block.header.time as any}`);
const wallet = new Wallet(path, BigInt(data.blockHeight), block.block.header.time as any, address);

if (payload.offerToPublicSubscriberPaths) {
Expand Down
4 changes: 2 additions & 2 deletions src/mappings/mappingHandlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export async function handleStateChangeEvent(cosmosEvent: CosmosEvent): Promise<
const { event, block } = cosmosEvent as CosmosEvent & { event: tendermint37.Event };

logger.info(`EVENT ${JSON.stringify(event)}`);
logger.info(`EVENT TYPE:${event.type}`)
logger.info(`EVENT TYPE:${event.type}`);

if (event.type != EVENT_TYPES.STATE_CHANGE) {
logger.warn('Not valid state_change event.');
Expand Down Expand Up @@ -217,7 +217,7 @@ export async function handleStateChangeEvent(cosmosEvent: CosmosEvent): Promise<
);

recordSaves.push(record.save());
logger.info("RECORD SAVED")
logger.info('RECORD SAVED');
}

const psmKit = psmEventKit(block, data, module, path);
Expand Down

0 comments on commit 57d335d

Please sign in to comment.