@arkade-os/sdk 0.5.8 → 0.5.10
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 +22 -4
- package/dist/adapters/expo.cjs +7 -7
- package/dist/adapters/expo.d.cts +2 -2
- package/dist/adapters/expo.d.ts +2 -2
- package/dist/adapters/expo.js +4 -4
- package/dist/{asyncStorageTaskQueue-B5NPtkXo.d.cts → asyncStorageTaskQueue-BSUY0Lz8.d.cts} +1 -1
- package/dist/{asyncStorageTaskQueue-YPwiJyVA.d.ts → asyncStorageTaskQueue-CXKwLEgC.d.ts} +1 -1
- package/dist/{chunk-XXNPX4MK.js → chunk-4DUTRRXF.js} +3 -3
- package/dist/{chunk-XXNPX4MK.js.map → chunk-4DUTRRXF.js.map} +1 -1
- package/dist/{chunk-OLKZUJIN.js → chunk-4HCV67LR.js} +3915 -2997
- package/dist/chunk-4HCV67LR.js.map +1 -0
- package/dist/{chunk-E7LKKEVR.js → chunk-4MC7NHQT.js} +17 -12
- package/dist/chunk-4MC7NHQT.js.map +1 -0
- package/dist/{chunk-EQ3JVVUR.cjs → chunk-6GEVB7AN.cjs} +4499 -3578
- package/dist/chunk-6GEVB7AN.cjs.map +1 -0
- package/dist/{chunk-FDJ734CH.js → chunk-DPFD5KBK.js} +5 -2
- package/dist/chunk-DPFD5KBK.js.map +1 -0
- package/dist/{chunk-F5O6JI2H.js → chunk-FMX2FMYH.js} +5 -5
- package/dist/{chunk-F5O6JI2H.js.map → chunk-FMX2FMYH.js.map} +1 -1
- package/dist/{chunk-JYQXB7OH.cjs → chunk-KOXW2WGD.cjs} +55 -57
- package/dist/chunk-KOXW2WGD.cjs.map +1 -0
- package/dist/{chunk-YTOABP6J.js → chunk-MPE7FTKE.js} +21 -12
- package/dist/chunk-MPE7FTKE.js.map +1 -0
- package/dist/{chunk-L7OOPAUG.cjs → chunk-OMZZQTDM.cjs} +22 -17
- package/dist/chunk-OMZZQTDM.cjs.map +1 -0
- package/dist/{chunk-U34GU5RM.js → chunk-PXEFYEKL.js} +16 -11
- package/dist/chunk-PXEFYEKL.js.map +1 -0
- package/dist/{chunk-3F5AJ235.js → chunk-QEREPVKU.js} +10 -12
- package/dist/chunk-QEREPVKU.js.map +1 -0
- package/dist/{chunk-4IDCSOP2.cjs → chunk-SJBQW6P4.cjs} +33 -28
- package/dist/chunk-SJBQW6P4.cjs.map +1 -0
- package/dist/{chunk-5PWL7WOT.cjs → chunk-UPIQZRNJ.cjs} +11 -11
- package/dist/{chunk-5PWL7WOT.cjs.map → chunk-UPIQZRNJ.cjs.map} +1 -1
- package/dist/{chunk-JQSHFSME.cjs → chunk-UU6GNWEC.cjs} +20 -20
- package/dist/{chunk-JQSHFSME.cjs.map → chunk-UU6GNWEC.cjs.map} +1 -1
- package/dist/{chunk-SOJDUKY6.cjs → chunk-UWPYUDO4.cjs} +28 -18
- package/dist/chunk-UWPYUDO4.cjs.map +1 -0
- package/dist/{chunk-FLPWNMX3.cjs → chunk-WIZCF5IX.cjs} +5 -2
- package/dist/chunk-WIZCF5IX.cjs.map +1 -0
- package/dist/{chunk-KWR37J6L.cjs → chunk-XWKQEAZE.cjs} +14 -18
- package/dist/chunk-XWKQEAZE.cjs.map +1 -0
- package/dist/{chunk-H7GT3QC4.js → chunk-ZTZH4KEF.js} +9 -13
- package/dist/chunk-ZTZH4KEF.js.map +1 -0
- package/dist/compiler.cjs +4 -4
- package/dist/compiler.js +3 -3
- package/dist/contracts/handlers/index.cjs +11 -11
- package/dist/contracts/handlers/index.d.cts +2 -3
- package/dist/contracts/handlers/index.d.ts +2 -3
- package/dist/contracts/handlers/index.js +4 -4
- package/dist/{index-Pk3i_MMU.d.ts → index-Bq349_ly.d.cts} +2322 -99
- package/dist/{index-CKzBYoDa.d.cts → index-D4ahI0W6.d.cts} +1 -2
- package/dist/{index-czozpKPT.d.cts → index-Mn2POBPj.d.ts} +2322 -99
- package/dist/{index-COs69e8T.d.ts → index-Yh5y9G4E.d.ts} +1 -2
- package/dist/index.cjs +359 -347
- package/dist/index.d.cts +1459 -1357
- package/dist/index.d.ts +1459 -1357
- package/dist/index.js +7 -7
- package/dist/repositories/realm/index.cjs +40 -40
- package/dist/repositories/realm/index.d.cts +2 -2
- package/dist/repositories/realm/index.d.ts +2 -2
- package/dist/repositories/realm/index.js +8 -8
- package/dist/repositories/sqlite/index.cjs +38 -38
- package/dist/repositories/sqlite/index.d.cts +2 -2
- package/dist/repositories/sqlite/index.d.ts +2 -2
- package/dist/repositories/sqlite/index.js +8 -8
- package/dist/{taskRunner-DXivOJHc.d.cts → taskRunner-1wolHThW.d.cts} +1 -1
- package/dist/{taskRunner-DBOqvP33.d.ts → taskRunner-C1maPp-c.d.ts} +1 -1
- package/dist/wallet/expo/background.cjs +17 -17
- package/dist/wallet/expo/background.d.cts +3 -3
- package/dist/wallet/expo/background.d.ts +3 -3
- package/dist/wallet/expo/background.js +9 -9
- package/dist/wallet/expo/index.cjs +18 -18
- package/dist/wallet/expo/index.d.cts +3 -5
- package/dist/wallet/expo/index.d.ts +3 -5
- package/dist/wallet/expo/index.js +8 -8
- package/dist/worker/expo/index.cjs +12 -12
- package/dist/worker/expo/index.d.cts +4 -4
- package/dist/worker/expo/index.d.ts +4 -4
- package/dist/worker/expo/index.js +8 -8
- package/package.json +1 -1
- package/dist/chunk-3F5AJ235.js.map +0 -1
- package/dist/chunk-4IDCSOP2.cjs.map +0 -1
- package/dist/chunk-E7LKKEVR.js.map +0 -1
- package/dist/chunk-EQ3JVVUR.cjs.map +0 -1
- package/dist/chunk-FDJ734CH.js.map +0 -1
- package/dist/chunk-FLPWNMX3.cjs.map +0 -1
- package/dist/chunk-H7GT3QC4.js.map +0 -1
- package/dist/chunk-JYQXB7OH.cjs.map +0 -1
- package/dist/chunk-KWR37J6L.cjs.map +0 -1
- package/dist/chunk-L7OOPAUG.cjs.map +0 -1
- package/dist/chunk-OLKZUJIN.js.map +0 -1
- package/dist/chunk-SOJDUKY6.cjs.map +0 -1
- package/dist/chunk-U34GU5RM.js.map +0 -1
- package/dist/chunk-YTOABP6J.js.map +0 -1
- package/dist/delegate-gGkUnYpi.d.cts +0 -92
- package/dist/delegate-iyDum4fw.d.ts +0 -92
- package/dist/keyringDescriptorProvider-CbNzWwbS.d.ts +0 -2095
- package/dist/keyringDescriptorProvider-nC8fIjBN.d.cts +0 -2095
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import { Bytes } from '@scure/btc-signer/utils.js';
|
|
2
|
-
import { R as RelativeTimelock, V as VtxoScript, T as TapLeafScript } from './base-C-Y5t_0F.js';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* DefaultVtxo is the default implementation of a VtxoScript.
|
|
6
|
-
* It contains 1 forfeit path and 1 exit path.
|
|
7
|
-
* - forfeit = (Alice + Server)
|
|
8
|
-
* - exit = (Alice) after csvTimelock
|
|
9
|
-
*/
|
|
10
|
-
declare namespace DefaultVtxo {
|
|
11
|
-
/**
|
|
12
|
-
* Options is the options for the DefaultVtxo.Script class.
|
|
13
|
-
* csvTimelock is the exit path timelock, default is 144 blocks (1 day).
|
|
14
|
-
*/
|
|
15
|
-
interface Options {
|
|
16
|
-
pubKey: Bytes;
|
|
17
|
-
serverPubKey: Bytes;
|
|
18
|
-
csvTimelock: RelativeTimelock;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* DefaultVtxo.Script is the class letting to create the vtxo script.
|
|
22
|
-
* @example
|
|
23
|
-
* ```typescript
|
|
24
|
-
* const vtxoScript = new DefaultVtxo.Script({
|
|
25
|
-
* pubKey: new Uint8Array(32),
|
|
26
|
-
* serverPubKey: new Uint8Array(32),
|
|
27
|
-
* csvTimelock: {
|
|
28
|
-
* value: 605184n,
|
|
29
|
-
* type: "seconds"
|
|
30
|
-
* }
|
|
31
|
-
* });
|
|
32
|
-
*
|
|
33
|
-
* console.log("script pub key:", vtxoScript.pkScript)
|
|
34
|
-
* ```
|
|
35
|
-
*/
|
|
36
|
-
class Script extends VtxoScript {
|
|
37
|
-
readonly options: Options;
|
|
38
|
-
static readonly DEFAULT_TIMELOCK: RelativeTimelock;
|
|
39
|
-
readonly forfeitScript: string;
|
|
40
|
-
readonly exitScript: string;
|
|
41
|
-
/** Create the default virtual output script with one forfeit path and one exit path. */
|
|
42
|
-
constructor(options: Options);
|
|
43
|
-
/** Return the forfeit tapleaf script. */
|
|
44
|
-
forfeit(): TapLeafScript;
|
|
45
|
-
/** Return the unilateral exit tapleaf script. */
|
|
46
|
-
exit(): TapLeafScript;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* DelegateVtxo extends DefaultVtxo with an extra delegate path
|
|
52
|
-
*/
|
|
53
|
-
declare namespace DelegateVtxo {
|
|
54
|
-
/**
|
|
55
|
-
* Options extends DefaultVtxo.Options and adds a delegatePubKey
|
|
56
|
-
*/
|
|
57
|
-
interface Options extends DefaultVtxo.Options {
|
|
58
|
-
delegatePubKey: Bytes;
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* DelegateVtxo.Script extends DefaultVtxo.Script and adds a delegate path.
|
|
62
|
-
* @example
|
|
63
|
-
* ```typescript
|
|
64
|
-
* const vtxoScript = new DelegateVtxo.Script({
|
|
65
|
-
* pubKey: new Uint8Array(32),
|
|
66
|
-
* serverPubKey: new Uint8Array(32),
|
|
67
|
-
* delegatePubKey: new Uint8Array(32),
|
|
68
|
-
* csvTimelock: {
|
|
69
|
-
* value: 605184n,
|
|
70
|
-
* type: "seconds"
|
|
71
|
-
* }
|
|
72
|
-
* });
|
|
73
|
-
*
|
|
74
|
-
* console.log("script pub key:", vtxoScript.pkScript)
|
|
75
|
-
* ```
|
|
76
|
-
*/
|
|
77
|
-
class Script extends VtxoScript {
|
|
78
|
-
readonly options: Options;
|
|
79
|
-
readonly defaultVtxo: DefaultVtxo.Script;
|
|
80
|
-
readonly delegateScript: string;
|
|
81
|
-
/** Create a delegated virtual output script with forfeit, exit, and delegate paths. */
|
|
82
|
-
constructor(options: Options);
|
|
83
|
-
/** Return the forfeit tapleaf script. */
|
|
84
|
-
forfeit(): TapLeafScript;
|
|
85
|
-
/** Return the unilateral exit tapleaf script. */
|
|
86
|
-
exit(): TapLeafScript;
|
|
87
|
-
/** Return the delegate tapleaf script. */
|
|
88
|
-
delegate(): TapLeafScript;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
export { DefaultVtxo as D, DelegateVtxo as a };
|