Skip to content

Commit

Permalink
add cenotaph to api
Browse files Browse the repository at this point in the history
  • Loading branch information
brady.ouren committed Jul 17, 2024
1 parent d57d035 commit 3132c9f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions api/src/api/util/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export function parseEtchingResponse(rune: DbRuneWithChainTip): EtchingResponse
const total_burns = rune.total_burns == null ? '0' : rune.total_burns;
if (
rune.terms_amount == null ||
rune.cenotaph ||

Check warning on line 17 in api/src/api/util/helpers.ts

View check run for this annotation

Codecov / codecov/patch

api/src/api/util/helpers.ts#L17

Added line #L17 was not covered by tests
(rune.terms_cap && BigNumber(total_mints).gte(rune.terms_cap)) ||
(rune.terms_height_start && BigNumber(rune.chain_tip).lt(rune.terms_height_start)) ||
(rune.terms_height_end && BigNumber(rune.chain_tip).gt(rune.terms_height_end)) ||
Expand Down
1 change: 1 addition & 0 deletions api/src/pg/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ type DbRune = {
divisibility: number;
premine: string;
symbol: string;
cenotaph: boolean;

Check warning on line 20 in api/src/pg/types.ts

View check run for this annotation

Codecov / codecov/patch

api/src/pg/types.ts#L20

Added line #L20 was not covered by tests
terms_amount: string | null;
terms_cap: string | null;
terms_height_start: string | null;
Expand Down

0 comments on commit 3132c9f

Please sign in to comment.