@ledgerhq/revault-sdk 0.29.11 → 0.29.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/bake.cjs +16 -4
- package/lib/bake.cjs.map +1 -1
- package/lib/bake.d.cts +72 -2
- package/lib/bake.d.ts +72 -2
- package/lib/bake.js +14 -2
- package/lib/bake.js.map +1 -1
- package/lib/{crypto-CKLQSwr3.cjs → crypto-12UztU2T.cjs} +3 -3
- package/lib/{crypto-CKLQSwr3.cjs.map → crypto-12UztU2T.cjs.map} +1 -1
- package/lib/{crypto-hrnmToQa.js → crypto-BUAUyEPl.js} +2 -2
- package/lib/{crypto-hrnmToQa.js.map → crypto-BUAUyEPl.js.map} +1 -1
- package/lib/crypto.cjs +1 -1
- package/lib/crypto.js +1 -2
- package/lib/{device-DMdUA_7n.cjs → device-BWSC26gt.cjs} +22 -14
- package/lib/device-BWSC26gt.cjs.map +1 -0
- package/lib/{device-CQB6rcaQ.js → device-CnwyjFdY.js} +17 -15
- package/lib/device-CnwyjFdY.js.map +1 -0
- package/lib/device.cjs +2 -1
- package/lib/device.d.cts +2 -2
- package/lib/device.d.ts +2 -2
- package/lib/device.js +1 -2
- package/lib/engine.cjs +31 -34
- package/lib/engine.cjs.map +1 -1
- package/lib/engine.d.cts +2 -2
- package/lib/engine.d.ts +2 -2
- package/lib/engine.js +29 -32
- package/lib/engine.js.map +1 -1
- package/lib/{index-CXTNydcn.d.ts → index-B4-2j2Wc.d.ts} +1 -1
- package/lib/{index-Dmz16pyp.d.cts → index-Bk2lcsFR.d.cts} +2 -1
- package/lib/{index-C_YBAG0l.d.ts → index-C9beP7g-.d.ts} +2 -1
- package/lib/{index-D8zJ3Ysz.d.cts → index-CGIwLtSY.d.cts} +1 -1
- package/lib/index.cjs +1 -1
- package/lib/onboarding.cjs +2 -2
- package/lib/onboarding.d.cts +10 -1
- package/lib/onboarding.d.ts +10 -1
- package/lib/onboarding.js +1 -1
- package/lib/{rolldown-runtime-y5ARvAq5.cjs → rolldown-runtime-Gi87jfEt.cjs} +1 -1
- package/lib/{types-B4YDSE9A.d.ts → types-CfYB9MxO.d.ts} +1 -1
- package/lib/{types-B7ILvJLO.d.cts → types-DKgBom7c.d.cts} +1 -1
- package/lib/{utils-qv4hwX4J.cjs → utils-AeGt6yXB.cjs} +2 -2
- package/lib/{utils-qv4hwX4J.cjs.map → utils-AeGt6yXB.cjs.map} +1 -1
- package/package.json +14 -14
- package/lib/device-CQB6rcaQ.js.map +0 -1
- package/lib/device-DMdUA_7n.cjs.map +0 -1
package/lib/bake.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_rolldown_runtime = require("./rolldown-runtime-
|
|
3
|
-
const require_utils = require("./utils-
|
|
4
|
-
const require_crypto = require("./crypto-
|
|
2
|
+
const require_rolldown_runtime = require("./rolldown-runtime-Gi87jfEt.cjs");
|
|
3
|
+
const require_utils = require("./utils-AeGt6yXB.cjs");
|
|
4
|
+
const require_crypto = require("./crypto-12UztU2T.cjs");
|
|
5
5
|
let invariant = require("invariant");
|
|
6
6
|
invariant = require_rolldown_runtime.__toESM(invariant, 1);
|
|
7
7
|
let ts_pattern = require("ts-pattern");
|
|
@@ -374,6 +374,7 @@ async function bakeWorkspace(options, logger) {
|
|
|
374
374
|
};
|
|
375
375
|
}),
|
|
376
376
|
...rule.threshold !== void 0 ? { threshold: rule.threshold } : {},
|
|
377
|
+
...rule.fiatThreshold !== void 0 ? { fiatThreshold: rule.fiatThreshold } : {},
|
|
377
378
|
...rule.whitelistNames !== void 0 ? { whitelistIds: rule.whitelistNames.map(whitelistIdFromName) } : {}
|
|
378
379
|
};
|
|
379
380
|
}
|
|
@@ -774,7 +775,7 @@ async function bakeWorkspace(options, logger) {
|
|
|
774
775
|
}
|
|
775
776
|
}
|
|
776
777
|
async function resolveDevicesIndexes(users) {
|
|
777
|
-
return
|
|
778
|
+
return users.reduce((acc, cur) => acc.then(async (acc) => {
|
|
778
779
|
acc.push(await withDeviceIndex(cur));
|
|
779
780
|
return acc;
|
|
780
781
|
}), Promise.resolve([]));
|
|
@@ -1040,6 +1041,7 @@ async function recipeWorkspace(options, logger) {
|
|
|
1040
1041
|
};
|
|
1041
1042
|
}),
|
|
1042
1043
|
...threshold,
|
|
1044
|
+
...rule.fiatThreshold !== void 0 ? { fiatThreshold: rule.fiatThreshold } : {},
|
|
1043
1045
|
...rule.whitelistIds && rule.whitelistIds.length > 0 ? { whitelistNames: rule.whitelistIds.map(whitelistNameFromId) } : {}
|
|
1044
1046
|
};
|
|
1045
1047
|
}
|
|
@@ -1122,6 +1124,16 @@ const zManifestGovernanceRule = zod.default.object({
|
|
|
1122
1124
|
min: zod.default.string().nullable(),
|
|
1123
1125
|
max: zod.default.string().nullable()
|
|
1124
1126
|
}).optional(),
|
|
1127
|
+
fiatThreshold: zod.default.object({
|
|
1128
|
+
max: zod.default.string(),
|
|
1129
|
+
currency: zod.default.enum([
|
|
1130
|
+
"USD",
|
|
1131
|
+
"EUR",
|
|
1132
|
+
"GBP",
|
|
1133
|
+
"JPY",
|
|
1134
|
+
"CHF"
|
|
1135
|
+
])
|
|
1136
|
+
}).strict().optional(),
|
|
1125
1137
|
whitelistNames: zod.default.array(zod.default.string()).optional()
|
|
1126
1138
|
}).strict();
|
|
1127
1139
|
const zManifestPolicyAsset = zod.default.object({
|