@arkade-os/sdk 0.4.48 → 0.4.49
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/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/{ark-CjE0KkGp.d.cts → ark-nkSiPYNf.d.cts} +86 -24
- package/dist/{ark-CjE0KkGp.d.ts → ark-nkSiPYNf.d.ts} +86 -24
- package/dist/{asyncStorageTaskQueue-D9SOPMPC.d.ts → asyncStorageTaskQueue-DCaEE83p.d.ts} +1 -1
- package/dist/{asyncStorageTaskQueue-CeLZhZFU.d.cts → asyncStorageTaskQueue-DdxhsEz6.d.cts} +1 -1
- package/dist/{chunk-ENZ4YPR2.cjs → chunk-2LAJ3RTH.cjs} +491 -418
- package/dist/chunk-2LAJ3RTH.cjs.map +1 -0
- package/dist/{chunk-NYR5H6GR.js → chunk-5QVBJUOG.js} +154 -81
- package/dist/chunk-5QVBJUOG.js.map +1 -0
- package/dist/{chunk-SYDANBJI.cjs → chunk-6UI5BFE7.cjs} +9 -9
- package/dist/{chunk-SYDANBJI.cjs.map → chunk-6UI5BFE7.cjs.map} +1 -1
- package/dist/{chunk-G6J6AEMH.js → chunk-BLJQV3N4.js} +4 -4
- package/dist/{chunk-G6J6AEMH.js.map → chunk-BLJQV3N4.js.map} +1 -1
- package/dist/{chunk-BHHLRZCS.js → chunk-CPO2UB7L.js} +4 -4
- package/dist/{chunk-BHHLRZCS.js.map → chunk-CPO2UB7L.js.map} +1 -1
- package/dist/{chunk-7TXSPRN5.cjs → chunk-E7HB3GKK.cjs} +31 -2
- package/dist/chunk-E7HB3GKK.cjs.map +1 -0
- package/dist/{chunk-ZDDBTFVO.js → chunk-EFNLTS6Q.js} +29 -3
- package/dist/chunk-EFNLTS6Q.js.map +1 -0
- package/dist/{chunk-XFMGIFBL.js → chunk-HN25T276.js} +4 -4
- package/dist/{chunk-XFMGIFBL.js.map → chunk-HN25T276.js.map} +1 -1
- package/dist/{chunk-5XMVTK5S.cjs → chunk-LJQ2VQBE.cjs} +211 -230
- package/dist/chunk-LJQ2VQBE.cjs.map +1 -0
- package/dist/{chunk-4VVTRPH3.js → chunk-MBSYQ3WX.js} +183 -201
- package/dist/chunk-MBSYQ3WX.js.map +1 -0
- package/dist/{chunk-EB3ALGTM.cjs → chunk-QDXQULVM.cjs} +13 -13
- package/dist/{chunk-EB3ALGTM.cjs.map → chunk-QDXQULVM.cjs.map} +1 -1
- package/dist/{chunk-ENDNQPZA.cjs → chunk-XOLH3LFO.cjs} +17 -17
- package/dist/{chunk-ENDNQPZA.cjs.map → chunk-XOLH3LFO.cjs.map} +1 -1
- package/dist/contracts/handlers/index.cjs +8 -8
- 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-D3dY-2vS.d.cts → delegate-Cqqw1T1J.d.cts} +1 -1
- package/dist/{delegate-DhGZk1r2.d.ts → delegate-D6Orvyq7.d.ts} +1 -1
- package/dist/{index-DK4_iWYy.d.ts → index-CWoogah0.d.ts} +2 -2
- package/dist/{index-D6RQROds.d.cts → index-Yd4hecbM.d.cts} +2 -2
- package/dist/index.cjs +181 -181
- package/dist/index.d.cts +8 -8
- package/dist/index.d.ts +8 -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-Brnak0Rc.d.cts → taskRunner-BjB5QINR.d.cts} +1 -1
- package/dist/{taskRunner-B-2MHCYG.d.ts → taskRunner-Dw7xs60Q.d.ts} +1 -1
- 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/{wallet-B5bwixQa.d.ts → wallet-CGkWu3xV.d.cts} +2 -2
- package/dist/{wallet-DiOrtYic.d.cts → wallet-DyUHrPyN.d.ts} +2 -2
- 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-4VVTRPH3.js.map +0 -1
- package/dist/chunk-5XMVTK5S.cjs.map +0 -1
- package/dist/chunk-7TXSPRN5.cjs.map +0 -1
- package/dist/chunk-ENZ4YPR2.cjs.map +0 -1
- package/dist/chunk-NYR5H6GR.js.map +0 -1
- package/dist/chunk-ZDDBTFVO.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkE7HB3GKK_cjs = require('./chunk-E7HB3GKK.cjs');
|
|
4
4
|
var chunk5BLDMQED_cjs = require('./chunk-5BLDMQED.cjs');
|
|
5
5
|
var btcSigner = require('@scure/btc-signer');
|
|
6
6
|
var secp256k1_js = require('@noble/curves/secp256k1.js');
|
|
@@ -136,7 +136,7 @@ var VtxoTreeExpiry = {
|
|
|
136
136
|
if (!checkKeyMatch(unknown[0], "expiry" /* VtxoTreeExpiry */)) return null;
|
|
137
137
|
const v = btcSigner.ScriptNum(6, true).decode(unknown[1]);
|
|
138
138
|
if (!v) return null;
|
|
139
|
-
return
|
|
139
|
+
return chunkE7HB3GKK_cjs.sequenceToTimelock(Number(v));
|
|
140
140
|
})
|
|
141
141
|
};
|
|
142
142
|
var encodedPsbtFieldKey = Object.fromEntries(
|
|
@@ -161,7 +161,7 @@ function checkKeyMatch(key, arkPsbtFieldKey, prefixOnly = false) {
|
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
// package.json
|
|
164
|
-
var version = "0.4.
|
|
164
|
+
var version = "0.4.49";
|
|
165
165
|
|
|
166
166
|
// src/utils/fetch.ts
|
|
167
167
|
var buildVersion = "0.9.9";
|
|
@@ -465,8 +465,8 @@ function prepareCoinAsIntentProofInput(coin) {
|
|
|
465
465
|
if (!("tapTree" in coin)) {
|
|
466
466
|
return coin;
|
|
467
467
|
}
|
|
468
|
-
const vtxoScript =
|
|
469
|
-
const sequence =
|
|
468
|
+
const vtxoScript = chunkE7HB3GKK_cjs.VtxoScript.decode(coin.tapTree);
|
|
469
|
+
const sequence = chunkE7HB3GKK_cjs.getSequence(coin.intentTapLeafScript);
|
|
470
470
|
const unknown = [VtxoTaprootTree.encode(coin.tapTree)];
|
|
471
471
|
if (coin.extraWitness) {
|
|
472
472
|
unknown.push(ConditionWitness.encode(coin.extraWitness));
|
|
@@ -736,7 +736,7 @@ var SettlementEventType = /* @__PURE__ */ ((SettlementEventType2) => {
|
|
|
736
736
|
return SettlementEventType2;
|
|
737
737
|
})(SettlementEventType || {});
|
|
738
738
|
var RestArkProvider = class {
|
|
739
|
-
constructor(serverUrl =
|
|
739
|
+
constructor(serverUrl = chunkE7HB3GKK_cjs.DEFAULT_ARKADE_SERVER_URL) {
|
|
740
740
|
this.serverUrl = serverUrl;
|
|
741
741
|
}
|
|
742
742
|
serverUrl;
|
|
@@ -2644,7 +2644,7 @@ var ChainTxType = /* @__PURE__ */ ((ChainTxType2) => {
|
|
|
2644
2644
|
return ChainTxType2;
|
|
2645
2645
|
})(ChainTxType || {});
|
|
2646
2646
|
var RestIndexerProvider = class {
|
|
2647
|
-
constructor(serverUrl =
|
|
2647
|
+
constructor(serverUrl = chunkE7HB3GKK_cjs.DEFAULT_ARKADE_SERVER_URL) {
|
|
2648
2648
|
this.serverUrl = serverUrl;
|
|
2649
2649
|
}
|
|
2650
2650
|
serverUrl;
|
|
@@ -2786,9 +2786,9 @@ var RestIndexerProvider = class {
|
|
|
2786
2786
|
yield {
|
|
2787
2787
|
txid: data.event.txid,
|
|
2788
2788
|
scripts: data.event.scripts || [],
|
|
2789
|
-
newVtxos: (data.event.newVtxos || []).map(
|
|
2790
|
-
spentVtxos: (data.event.spentVtxos || []).map(
|
|
2791
|
-
sweptVtxos: (data.event.sweptVtxos || []).map(
|
|
2789
|
+
newVtxos: (data.event.newVtxos || []).map(chunkE7HB3GKK_cjs.convertVtxo),
|
|
2790
|
+
spentVtxos: (data.event.spentVtxos || []).map(chunkE7HB3GKK_cjs.convertVtxo),
|
|
2791
|
+
sweptVtxos: (data.event.sweptVtxos || []).map(chunkE7HB3GKK_cjs.convertVtxo),
|
|
2792
2792
|
tx: data.event.tx,
|
|
2793
2793
|
checkpointTxs: data.event.checkpointTxs
|
|
2794
2794
|
};
|
|
@@ -2934,7 +2934,7 @@ var RestIndexerProvider = class {
|
|
|
2934
2934
|
throw new Error("Invalid vtxos data received");
|
|
2935
2935
|
}
|
|
2936
2936
|
return {
|
|
2937
|
-
vtxos: data.vtxos.map(
|
|
2937
|
+
vtxos: data.vtxos.map(chunkE7HB3GKK_cjs.convertVtxo),
|
|
2938
2938
|
page: data.page
|
|
2939
2939
|
};
|
|
2940
2940
|
}
|
|
@@ -3145,5 +3145,5 @@ exports.maybeArkError = maybeArkError;
|
|
|
3145
3145
|
exports.rateGate = rateGate;
|
|
3146
3146
|
exports.sdkVersion = sdkVersion;
|
|
3147
3147
|
exports.setArkPsbtField = setArkPsbtField;
|
|
3148
|
-
//# sourceMappingURL=chunk-
|
|
3149
|
-
//# sourceMappingURL=chunk-
|
|
3148
|
+
//# sourceMappingURL=chunk-QDXQULVM.cjs.map
|
|
3149
|
+
//# sourceMappingURL=chunk-QDXQULVM.cjs.map
|