@arkade-os/sdk 0.4.67 → 0.4.68
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/README.md +5 -0
- package/dist/adapters/expo.cjs +5 -5
- package/dist/adapters/expo.d.cts +2 -2
- package/dist/adapters/expo.d.ts +2 -2
- package/dist/adapters/expo.js +3 -3
- package/dist/adapters/indexedDB.cjs +5 -5
- package/dist/adapters/indexedDB.js +4 -4
- package/dist/{asyncStorageTaskQueue-LTpeXYaD.d.cts → asyncStorageTaskQueue-B2CcXIHU.d.cts} +2 -2
- package/dist/{asyncStorageTaskQueue-Za-e_zMk.d.ts → asyncStorageTaskQueue-DaZlVTbM.d.ts} +2 -2
- package/dist/{chunk-X3VEMUVV.js → chunk-33Q2RFET.js} +3 -3
- package/dist/{chunk-X3VEMUVV.js.map → chunk-33Q2RFET.js.map} +1 -1
- package/dist/{chunk-6TAQF6EV.js → chunk-45FKMOJH.js} +72 -120
- package/dist/chunk-45FKMOJH.js.map +1 -0
- package/dist/{chunk-3WIWNE4P.js → chunk-4CMXV5SF.js} +16 -4
- package/dist/chunk-4CMXV5SF.js.map +1 -0
- package/dist/{chunk-YDRZDZPP.cjs → chunk-4KCVS4ZN.cjs} +10 -10
- package/dist/{chunk-YDRZDZPP.cjs.map → chunk-4KCVS4ZN.cjs.map} +1 -1
- package/dist/{chunk-OIZ2V2VD.cjs → chunk-6YUACVX4.cjs} +118 -166
- package/dist/chunk-6YUACVX4.cjs.map +1 -0
- package/dist/{chunk-2JV4VQ7C.cjs → chunk-EJOFL5WH.cjs} +17 -3
- package/dist/chunk-EJOFL5WH.cjs.map +1 -0
- package/dist/{chunk-MZFUZUTQ.js → chunk-G4I6PU5H.js} +4 -4
- package/dist/{chunk-MZFUZUTQ.js.map → chunk-G4I6PU5H.js.map} +1 -1
- package/dist/{chunk-EALWOVHK.js → chunk-GQ4NMQGR.js} +4 -4
- package/dist/{chunk-EALWOVHK.js.map → chunk-GQ4NMQGR.js.map} +1 -1
- package/dist/{chunk-R2YAMONM.cjs → chunk-JGMSZIE4.cjs} +17 -17
- package/dist/{chunk-R2YAMONM.cjs.map → chunk-JGMSZIE4.cjs.map} +1 -1
- package/dist/{chunk-CO3KKSWM.cjs → chunk-PJR63FTK.cjs} +17 -17
- package/dist/{chunk-CO3KKSWM.cjs.map → chunk-PJR63FTK.cjs.map} +1 -1
- package/dist/{chunk-AEWJU6NZ.js → chunk-VBHXBI7F.js} +59 -23
- package/dist/chunk-VBHXBI7F.js.map +1 -0
- package/dist/{chunk-MJUTO3PY.cjs → chunk-WCJVKFAP.cjs} +480 -444
- package/dist/chunk-WCJVKFAP.cjs.map +1 -0
- package/dist/contracts/handlers/index.cjs +9 -9
- package/dist/contracts/handlers/index.d.cts +3 -3
- package/dist/contracts/handlers/index.d.ts +3 -3
- package/dist/contracts/handlers/index.js +2 -2
- package/dist/{delegate-cdmzb2f9.d.ts → delegate-AomVWxO_.d.ts} +1 -1
- package/dist/{delegate-Bz2e2zXY.d.cts → delegate-Bffc5f54.d.cts} +1 -1
- package/dist/{hdWalletCapable-BSjuUYOO.d.cts → hdWalletCapable-B5nRs3RH.d.cts} +2 -2
- package/dist/{hdWalletCapable-Hi12xjCJ.d.ts → hdWalletCapable-DZdIVa23.d.ts} +2 -2
- package/dist/{index-DU5o_hz7.d.cts → index-C7RZCfoY.d.cts} +17 -1
- package/dist/{index-DU5o_hz7.d.ts → index-C7RZCfoY.d.ts} +17 -1
- package/dist/{index-BiACuWaf.d.ts → index-jouvy8FD.d.ts} +96 -119
- package/dist/{index-D2GjZxBr.d.cts → index-nfyQM33h.d.cts} +96 -119
- package/dist/index.cjs +293 -289
- package/dist/index.d.cts +12 -8
- package/dist/index.d.ts +12 -8
- package/dist/index.js +4 -4
- package/dist/repositories/realm/index.cjs +19 -19
- package/dist/repositories/realm/index.d.cts +2 -2
- package/dist/repositories/realm/index.d.ts +2 -2
- package/dist/repositories/realm/index.js +5 -5
- package/dist/repositories/sqlite/index.cjs +18 -18
- package/dist/repositories/sqlite/index.d.cts +2 -2
- package/dist/repositories/sqlite/index.d.ts +2 -2
- package/dist/repositories/sqlite/index.js +5 -5
- package/dist/{taskRunner-BZJMLQ6g.d.cts → taskRunner-D2vnpPBT.d.cts} +2 -2
- package/dist/{taskRunner-DATaRQus.d.ts → taskRunner-DuwK9t8O.d.ts} +2 -2
- package/dist/wallet/expo/background.cjs +14 -14
- package/dist/wallet/expo/background.d.cts +3 -3
- package/dist/wallet/expo/background.d.ts +3 -3
- package/dist/wallet/expo/background.js +6 -6
- package/dist/wallet/expo/index.cjs +14 -14
- package/dist/wallet/expo/index.d.cts +4 -4
- package/dist/wallet/expo/index.d.ts +4 -4
- package/dist/wallet/expo/index.js +5 -5
- package/dist/worker/expo/index.cjs +9 -9
- package/dist/worker/expo/index.d.cts +4 -4
- package/dist/worker/expo/index.d.ts +4 -4
- package/dist/worker/expo/index.js +5 -5
- package/package.json +1 -1
- package/dist/chunk-2JV4VQ7C.cjs.map +0 -1
- package/dist/chunk-3WIWNE4P.js.map +0 -1
- package/dist/chunk-6TAQF6EV.js.map +0 -1
- package/dist/chunk-AEWJU6NZ.js.map +0 -1
- package/dist/chunk-MJUTO3PY.cjs.map +0 -1
- package/dist/chunk-OIZ2V2VD.cjs.map +0 -1
|
@@ -49,6 +49,18 @@ var Transaction = class extends btcSigner.Transaction {
|
|
|
49
49
|
function withArkOpts(opts) {
|
|
50
50
|
return { ...Transaction.ARK_TX_OPTS, ...opts };
|
|
51
51
|
}
|
|
52
|
+
function formatSighash(type) {
|
|
53
|
+
return `0x${type.toString(16).padStart(2, "0")}`;
|
|
54
|
+
}
|
|
55
|
+
function assertAllowedSighashTypes(tx, allowedSighashTypes = [btcSigner.SigHash.DEFAULT]) {
|
|
56
|
+
for (let i = 0; i < tx.inputsLength; i++) {
|
|
57
|
+
const declared = tx.getInput(i).sighashType;
|
|
58
|
+
if (declared === void 0) continue;
|
|
59
|
+
if (!allowedSighashTypes.includes(declared)) {
|
|
60
|
+
throw new Error(`Unallowed sighash type ${formatSighash(declared)} for input ${i}.`);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
52
64
|
function timelockToSequence(timelock) {
|
|
53
65
|
return bip68__namespace.encode(
|
|
54
66
|
timelock.type === "blocks" ? { blocks: Number(timelock.value) } : { seconds: Number(timelock.value) }
|
|
@@ -1032,7 +1044,7 @@ function resolveEventSource(override) {
|
|
|
1032
1044
|
}
|
|
1033
1045
|
|
|
1034
1046
|
// package.json
|
|
1035
|
-
var version = "0.4.
|
|
1047
|
+
var version = "0.4.68";
|
|
1036
1048
|
|
|
1037
1049
|
// src/utils/fetch.ts
|
|
1038
1050
|
var buildVersion = "0.9.9";
|
|
@@ -2465,6 +2477,7 @@ exports.VtxoScript = VtxoScript;
|
|
|
2465
2477
|
exports.VtxoTaprootTree = VtxoTaprootTree;
|
|
2466
2478
|
exports.VtxoTreeExpiry = VtxoTreeExpiry;
|
|
2467
2479
|
exports.assembleBtcdTaprootTree = assembleBtcdTaprootTree;
|
|
2480
|
+
exports.assertAllowedSighashTypes = assertAllowedSighashTypes;
|
|
2468
2481
|
exports.baseFetch = baseFetch;
|
|
2469
2482
|
exports.buildVersion = buildVersion;
|
|
2470
2483
|
exports.canRecoverOnchain = canRecoverOnchain;
|
|
@@ -2478,6 +2491,7 @@ exports.defaultEmulatorPubkey = defaultEmulatorPubkey;
|
|
|
2478
2491
|
exports.eventSourceIterator = eventSourceIterator;
|
|
2479
2492
|
exports.fetch = fetch;
|
|
2480
2493
|
exports.fetchVtxoCreatedAtByTxid = fetchVtxoCreatedAtByTxid;
|
|
2494
|
+
exports.formatSighash = formatSighash;
|
|
2481
2495
|
exports.getAllNormalizedVtxos = getAllNormalizedVtxos;
|
|
2482
2496
|
exports.getArkPsbtFields = getArkPsbtFields;
|
|
2483
2497
|
exports.getConfiguredEventSource = getConfiguredEventSource;
|
|
@@ -2513,5 +2527,5 @@ exports.toBatchExpiry = toBatchExpiry;
|
|
|
2513
2527
|
exports.toOffchainInputFeeParams = toOffchainInputFeeParams;
|
|
2514
2528
|
exports.toProviderUnavailable = toProviderUnavailable;
|
|
2515
2529
|
exports.toVirtualStatus = toVirtualStatus;
|
|
2516
|
-
//# sourceMappingURL=chunk-
|
|
2517
|
-
//# sourceMappingURL=chunk-
|
|
2530
|
+
//# sourceMappingURL=chunk-EJOFL5WH.cjs.map
|
|
2531
|
+
//# sourceMappingURL=chunk-EJOFL5WH.cjs.map
|