Skip to content

Commit 8a3c0b3

Browse files
committed
fix: code style
1 parent 58fcd24 commit 8a3c0b3

File tree

2 files changed

+13
-14
lines changed

2 files changed

+13
-14
lines changed
Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
1-
21
export namespace PaymentReference {
3-
export const TYPE_SHIFT = BigInt(192)
4-
export const LOW_BITS_MASK = (BigInt(1) << TYPE_SHIFT) - BigInt(1)
5-
// common prefix 0x464250526641 = hex('FBPRfA' - Flare Bridge Payment Reference / fAsset)
2+
export const TYPE_SHIFT = BigInt(192)
3+
export const LOW_BITS_MASK = (BigInt(1) << TYPE_SHIFT) - BigInt(1)
4+
// common prefix 0x464250526641 = hex('FBPRfA' - Flare Bridge Payment Reference / fAsset)
65

7-
export function isValid(reference: string | null): reference is string {
8-
return reference != null && /^0x464250526641[0-9a-zA-Z]{52}$/.test(reference)
9-
}
6+
export function isValid(reference: string | null): reference is string {
7+
return reference != null && /^0x464250526641[0-9a-zA-Z]{52}$/.test(reference)
8+
}
109

11-
export function decodeId(reference: string) {
12-
return BigInt(reference) & LOW_BITS_MASK
13-
}
10+
export function decodeId(reference: string) {
11+
return BigInt(reference) & LOW_BITS_MASK
12+
}
1413

15-
export function decodeType(reference: string) {
16-
return (BigInt(reference) >> TYPE_SHIFT) & BigInt(0xffff)
17-
}
14+
export function decodeType(reference: string) {
15+
return (BigInt(reference) >> TYPE_SHIFT) & BigInt(0xffff)
16+
}
1817
}

packages/fasset-indexer-core/src/utils/updates.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { FIRST_UNHANDLED_EVENT_BLOCK_DB_KEY } from "../config"
2-
import { EntityManager, getVar, ORM } from "../orm"
2+
import { EntityManager, getVar } from "../orm"
33

44
// back indexer db vars
55
export function backUpdateFirstUnhandledBlockName(updateName: string): string {

0 commit comments

Comments
 (0)