Skip to content

Commit b0fb2ae

Browse files
authored
fix: replace yarn with bun (#167)
1 parent dfe4b50 commit b0fb2ae

File tree

4 files changed

+23
-2255
lines changed

4 files changed

+23
-2255
lines changed

bun.lockb

116 KB
Binary file not shown.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"dist"
99
],
1010
"scripts": {
11-
"start": "node dist/cli.js",
11+
"start": "bun src/cli.ts",
1212
"build": "tsup",
1313
"test": "vitest",
1414
"lint:fix": "bunx prettier . --write",
@@ -32,7 +32,7 @@
3232
"tsup": "^8.0.2",
3333
"tsx": "^4.7.2",
3434
"typescript": "^5.4.5",
35-
"vitest": "^1.5.0"
35+
"vitest": "^2.1.3"
3636
},
3737
"type": "module",
3838
"main": "./dist/index.js",
@@ -64,7 +64,7 @@
6464
"@commander-js/extra-typings": "^11.1.0",
6565
"@inquirer/prompts": "^3.3.2",
6666
"chalk": "^4.1.2",
67-
"commander": "^11.1.0",
67+
"commander": "^12.1.0",
6868
"deepmerge": "^4.3.1",
6969
"dotenv": "^16.4.1",
7070
"find-object-paths": "^1.1.0",

src/govv3/checks/state.ts

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,18 +139,34 @@ export async function deepDiff({
139139
if (type === '_eModeCategories') {
140140
if (before.collateralBitmap !== undefined) {
141141
before.collateralBitmap_decoded = (
142-
await assetIndexesToAsset(client, address, bitMapToIndexes(BigInt(before.collateralBitmap)))
142+
await assetIndexesToAsset(
143+
client,
144+
address,
145+
bitMapToIndexes(BigInt(before.collateralBitmap || 0)),
146+
)
143147
).toString();
144148
after.collateralBitmap_decoded = (
145-
await assetIndexesToAsset(client, address, bitMapToIndexes(BigInt(after.collateralBitmap)))
149+
await assetIndexesToAsset(
150+
client,
151+
address,
152+
bitMapToIndexes(BigInt(after.collateralBitmap || 0)),
153+
)
146154
).toString();
147155
}
148156
if (before.borrowableBitmap !== undefined) {
149157
before.borrowableBitmap_decoded = (
150-
await assetIndexesToAsset(client, address, bitMapToIndexes(BigInt(before.borrowableBitmap)))
158+
await assetIndexesToAsset(
159+
client,
160+
address,
161+
bitMapToIndexes(BigInt(before.borrowableBitmap || 0)),
162+
)
151163
).toString();
152164
after.borrowableBitmap_decoded = (
153-
await assetIndexesToAsset(client, address, bitMapToIndexes(BigInt(after.borrowableBitmap)))
165+
await assetIndexesToAsset(
166+
client,
167+
address,
168+
bitMapToIndexes(BigInt(after.borrowableBitmap || 0)),
169+
)
154170
).toString();
155171
}
156172
}

0 commit comments

Comments
 (0)