xpi-ts 0.2.22 → 0.2.24

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.
Files changed (172) hide show
  1. package/dist/cjs/lib/bitcore/crypto/point.js +2 -2
  2. package/dist/cjs/lib/bitcore/index.js +162 -162
  3. package/dist/esm/lib/bitcore/crypto/point.js +2 -2
  4. package/dist/esm/lib/bitcore/index.js +42 -42
  5. package/dist/types/index.d.ts +5 -0
  6. package/dist/types/index.d.ts.map +1 -1
  7. package/dist/types/lib/bitcore/address.d.ts +116 -0
  8. package/dist/types/lib/bitcore/address.d.ts.map +1 -1
  9. package/dist/types/lib/bitcore/block/block.d.ts +214 -0
  10. package/dist/types/lib/bitcore/block/block.d.ts.map +1 -1
  11. package/dist/types/lib/bitcore/block/blockheader.d.ts +220 -0
  12. package/dist/types/lib/bitcore/block/blockheader.d.ts.map +1 -1
  13. package/dist/types/lib/bitcore/block/merkleblock.d.ts +206 -0
  14. package/dist/types/lib/bitcore/block/merkleblock.d.ts.map +1 -1
  15. package/dist/types/lib/bitcore/crypto/bn.d.ts +224 -0
  16. package/dist/types/lib/bitcore/crypto/bn.d.ts.map +1 -1
  17. package/dist/types/lib/bitcore/crypto/ecdsa.d.ts +122 -0
  18. package/dist/types/lib/bitcore/crypto/ecdsa.d.ts.map +1 -1
  19. package/dist/types/lib/bitcore/crypto/hash.d.ts +56 -0
  20. package/dist/types/lib/bitcore/crypto/hash.d.ts.map +1 -1
  21. package/dist/types/lib/bitcore/crypto/index.d.ts +4 -0
  22. package/dist/types/lib/bitcore/crypto/index.d.ts.map +1 -1
  23. package/dist/types/lib/bitcore/crypto/musig2.d.ts +282 -0
  24. package/dist/types/lib/bitcore/crypto/musig2.d.ts.map +1 -1
  25. package/dist/types/lib/bitcore/crypto/point.d.ts +87 -0
  26. package/dist/types/lib/bitcore/crypto/point.d.ts.map +1 -1
  27. package/dist/types/lib/bitcore/crypto/random.d.ts +48 -0
  28. package/dist/types/lib/bitcore/crypto/random.d.ts.map +1 -1
  29. package/dist/types/lib/bitcore/crypto/schnorr.d.ts +203 -0
  30. package/dist/types/lib/bitcore/crypto/schnorr.d.ts.map +1 -1
  31. package/dist/types/lib/bitcore/crypto/signature.d.ts +452 -0
  32. package/dist/types/lib/bitcore/crypto/signature.d.ts.map +1 -1
  33. package/dist/types/lib/bitcore/crypto/sigtype.d.ts +46 -0
  34. package/dist/types/lib/bitcore/crypto/sigtype.d.ts.map +1 -1
  35. package/dist/types/lib/bitcore/encoding/base58.d.ts +68 -0
  36. package/dist/types/lib/bitcore/encoding/base58.d.ts.map +1 -1
  37. package/dist/types/lib/bitcore/encoding/base58check.d.ts +58 -0
  38. package/dist/types/lib/bitcore/encoding/base58check.d.ts.map +1 -1
  39. package/dist/types/lib/bitcore/encoding/bufferreader.d.ts +112 -0
  40. package/dist/types/lib/bitcore/encoding/bufferreader.d.ts.map +1 -1
  41. package/dist/types/lib/bitcore/encoding/bufferwriter.d.ts +144 -0
  42. package/dist/types/lib/bitcore/encoding/bufferwriter.d.ts.map +1 -1
  43. package/dist/types/lib/bitcore/encoding/varint.d.ts +86 -0
  44. package/dist/types/lib/bitcore/encoding/varint.d.ts.map +1 -1
  45. package/dist/types/lib/bitcore/errors.d.ts +4 -0
  46. package/dist/types/lib/bitcore/errors.d.ts.map +1 -1
  47. package/dist/types/lib/bitcore/hdprivatekey.d.ts +59 -0
  48. package/dist/types/lib/bitcore/hdprivatekey.d.ts.map +1 -1
  49. package/dist/types/lib/bitcore/hdpublickey.d.ts +145 -0
  50. package/dist/types/lib/bitcore/hdpublickey.d.ts.map +1 -1
  51. package/dist/types/lib/bitcore/index.d.ts +58 -54
  52. package/dist/types/lib/bitcore/index.d.ts.map +1 -1
  53. package/dist/types/lib/bitcore/message.d.ts +63 -0
  54. package/dist/types/lib/bitcore/message.d.ts.map +1 -1
  55. package/dist/types/lib/bitcore/mnemonic/errors.d.ts +4 -0
  56. package/dist/types/lib/bitcore/mnemonic/errors.d.ts.map +1 -1
  57. package/dist/types/lib/bitcore/mnemonic/index.d.ts +4 -0
  58. package/dist/types/lib/bitcore/mnemonic/index.d.ts.map +1 -1
  59. package/dist/types/lib/bitcore/mnemonic/mnemonic.d.ts +106 -0
  60. package/dist/types/lib/bitcore/mnemonic/mnemonic.d.ts.map +1 -1
  61. package/dist/types/lib/bitcore/mnemonic/pbkdf2.d.ts +13 -0
  62. package/dist/types/lib/bitcore/mnemonic/pbkdf2.d.ts.map +1 -1
  63. package/dist/types/lib/bitcore/mnemonic/words/english.d.ts +4 -0
  64. package/dist/types/lib/bitcore/mnemonic/words/english.d.ts.map +1 -1
  65. package/dist/types/lib/bitcore/mnemonic/words/french.d.ts +5 -0
  66. package/dist/types/lib/bitcore/mnemonic/words/french.d.ts.map +1 -1
  67. package/dist/types/lib/bitcore/mnemonic/words/index.d.ts +4 -0
  68. package/dist/types/lib/bitcore/mnemonic/words/index.d.ts.map +1 -1
  69. package/dist/types/lib/bitcore/musig2/index.d.ts +14 -0
  70. package/dist/types/lib/bitcore/musig2/index.d.ts.map +1 -1
  71. package/dist/types/lib/bitcore/musig2/session.d.ts +254 -0
  72. package/dist/types/lib/bitcore/musig2/session.d.ts.map +1 -1
  73. package/dist/types/lib/bitcore/musig2/signer.d.ts +212 -0
  74. package/dist/types/lib/bitcore/musig2/signer.d.ts.map +1 -1
  75. package/dist/types/lib/bitcore/networks.d.ts +17 -0
  76. package/dist/types/lib/bitcore/networks.d.ts.map +1 -1
  77. package/dist/types/lib/bitcore/opcode.d.ts +151 -0
  78. package/dist/types/lib/bitcore/opcode.d.ts.map +1 -1
  79. package/dist/types/lib/bitcore/privatekey.d.ts +80 -0
  80. package/dist/types/lib/bitcore/privatekey.d.ts.map +1 -1
  81. package/dist/types/lib/bitcore/publickey.d.ts +195 -0
  82. package/dist/types/lib/bitcore/publickey.d.ts.map +1 -1
  83. package/dist/types/lib/bitcore/script/chunk.d.ts +51 -0
  84. package/dist/types/lib/bitcore/script/chunk.d.ts.map +1 -1
  85. package/dist/types/lib/bitcore/script/interpreter/condition-stack.d.ts +60 -0
  86. package/dist/types/lib/bitcore/script/interpreter/condition-stack.d.ts.map +1 -1
  87. package/dist/types/lib/bitcore/script/interpreter/index.d.ts +23 -0
  88. package/dist/types/lib/bitcore/script/interpreter/index.d.ts.map +1 -1
  89. package/dist/types/lib/bitcore/script/interpreter/interpreter.d.ts +86 -0
  90. package/dist/types/lib/bitcore/script/interpreter/interpreter.d.ts.map +1 -1
  91. package/dist/types/lib/bitcore/script/interpreter/script-num.d.ts +115 -0
  92. package/dist/types/lib/bitcore/script/interpreter/script-num.d.ts.map +1 -1
  93. package/dist/types/lib/bitcore/script/interpreter/types.d.ts +119 -0
  94. package/dist/types/lib/bitcore/script/interpreter/types.d.ts.map +1 -1
  95. package/dist/types/lib/bitcore/script/taproot.d.ts +297 -0
  96. package/dist/types/lib/bitcore/script/taproot.d.ts.map +1 -1
  97. package/dist/types/lib/bitcore/script.d.ts +510 -0
  98. package/dist/types/lib/bitcore/script.d.ts.map +1 -1
  99. package/dist/types/lib/bitcore/taproot/musig2.d.ts +153 -0
  100. package/dist/types/lib/bitcore/taproot/musig2.d.ts.map +1 -1
  101. package/dist/types/lib/bitcore/transaction/input/multisig.d.ts +8 -0
  102. package/dist/types/lib/bitcore/transaction/input/multisig.d.ts.map +1 -1
  103. package/dist/types/lib/bitcore/transaction/input/multisigscripthash.d.ts +8 -0
  104. package/dist/types/lib/bitcore/transaction/input/multisigscripthash.d.ts.map +1 -1
  105. package/dist/types/lib/bitcore/transaction/input/publickey.d.ts +8 -0
  106. package/dist/types/lib/bitcore/transaction/input/publickey.d.ts.map +1 -1
  107. package/dist/types/lib/bitcore/transaction/input/publickeyhash.d.ts +14 -0
  108. package/dist/types/lib/bitcore/transaction/input/publickeyhash.d.ts.map +1 -1
  109. package/dist/types/lib/bitcore/transaction/input/taproot.d.ts +22 -0
  110. package/dist/types/lib/bitcore/transaction/input/taproot.d.ts.map +1 -1
  111. package/dist/types/lib/bitcore/transaction/input.d.ts +418 -0
  112. package/dist/types/lib/bitcore/transaction/input.d.ts.map +1 -1
  113. package/dist/types/lib/bitcore/transaction/outpoint.d.ts +110 -0
  114. package/dist/types/lib/bitcore/transaction/outpoint.d.ts.map +1 -1
  115. package/dist/types/lib/bitcore/transaction/output.d.ts +83 -0
  116. package/dist/types/lib/bitcore/transaction/output.d.ts.map +1 -1
  117. package/dist/types/lib/bitcore/transaction/sighash.d.ts +69 -0
  118. package/dist/types/lib/bitcore/transaction/sighash.d.ts.map +1 -1
  119. package/dist/types/lib/bitcore/transaction/signature.d.ts +98 -0
  120. package/dist/types/lib/bitcore/transaction/signature.d.ts.map +1 -1
  121. package/dist/types/lib/bitcore/transaction/transaction.d.ts +379 -0
  122. package/dist/types/lib/bitcore/transaction/transaction.d.ts.map +1 -1
  123. package/dist/types/lib/bitcore/transaction/unspentoutput.d.ts +61 -0
  124. package/dist/types/lib/bitcore/transaction/unspentoutput.d.ts.map +1 -1
  125. package/dist/types/lib/bitcore/unit.d.ts +140 -0
  126. package/dist/types/lib/bitcore/unit.d.ts.map +1 -1
  127. package/dist/types/lib/bitcore/uri.d.ts +34 -0
  128. package/dist/types/lib/bitcore/uri.d.ts.map +1 -1
  129. package/dist/types/lib/bitcore/util/base32.d.ts +55 -0
  130. package/dist/types/lib/bitcore/util/base32.d.ts.map +1 -1
  131. package/dist/types/lib/bitcore/util/bits.d.ts +76 -0
  132. package/dist/types/lib/bitcore/util/bits.d.ts.map +1 -1
  133. package/dist/types/lib/bitcore/util/buffer.d.ts +135 -0
  134. package/dist/types/lib/bitcore/util/buffer.d.ts.map +1 -1
  135. package/dist/types/lib/bitcore/util/convertBits.d.ts +15 -0
  136. package/dist/types/lib/bitcore/util/convertBits.d.ts.map +1 -1
  137. package/dist/types/lib/bitcore/util/js.d.ts +19 -0
  138. package/dist/types/lib/bitcore/util/js.d.ts.map +1 -1
  139. package/dist/types/lib/bitcore/util/merkle.d.ts +85 -0
  140. package/dist/types/lib/bitcore/util/merkle.d.ts.map +1 -1
  141. package/dist/types/lib/bitcore/util/preconditions.d.ts +29 -0
  142. package/dist/types/lib/bitcore/util/preconditions.d.ts.map +1 -1
  143. package/dist/types/lib/bitcore/util.d.ts +7 -0
  144. package/dist/types/lib/bitcore/util.d.ts.map +1 -1
  145. package/dist/types/lib/bitcore/xaddress.d.ts +117 -0
  146. package/dist/types/lib/bitcore/xaddress.d.ts.map +1 -1
  147. package/dist/types/lib/lokad.d.ts +292 -0
  148. package/dist/types/lib/lokad.d.ts.map +1 -1
  149. package/dist/types/lib/nft.d.ts +434 -0
  150. package/dist/types/lib/nft.d.ts.map +1 -1
  151. package/dist/types/lib/rank/api.d.ts +13 -0
  152. package/dist/types/lib/rank/api.d.ts.map +1 -1
  153. package/dist/types/lib/rank/index.d.ts +153 -0
  154. package/dist/types/lib/rank/index.d.ts.map +1 -1
  155. package/dist/types/lib/rank/opcode.d.ts +6 -2
  156. package/dist/types/lib/rank/opcode.d.ts.map +1 -1
  157. package/dist/types/lib/rank/script.d.ts +10 -0
  158. package/dist/types/lib/rank/script.d.ts.map +1 -1
  159. package/dist/types/lib/rank/transaction.d.ts +11 -0
  160. package/dist/types/lib/rank/transaction.d.ts.map +1 -1
  161. package/dist/types/lib/rpc.d.ts +176 -0
  162. package/dist/types/lib/rpc.d.ts.map +1 -1
  163. package/dist/types/utils/constants.d.ts +27 -0
  164. package/dist/types/utils/constants.d.ts.map +1 -1
  165. package/dist/types/utils/env.d.ts +15 -0
  166. package/dist/types/utils/env.d.ts.map +1 -1
  167. package/dist/types/utils/string.d.ts +57 -0
  168. package/dist/types/utils/string.d.ts.map +1 -1
  169. package/dist/types/utils/wallet.d.ts +43 -1
  170. package/dist/types/utils/wallet.d.ts.map +1 -1
  171. package/package.json +1 -1
  172. package/tsconfig.types.json +2 -1
@@ -1 +1 @@
1
- {"version":3,"file":"rpc.d.ts","sourceRoot":"","sources":["../../../lib/rpc.ts"],"names":[],"mappings":"AAmCA,MAAM,WA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AAC;CAI7C"}
@@ -1,17 +1,44 @@
1
+ /**
2
+ * Copyright 2025 The Lotusia Stewardship
3
+ * Github: https://github.com/LotusiaStewardship
4
+ * License: MIT
5
+ */
1
6
  import type { ScriptChunkPlatformUTF8 } from '../lib/rank/index.js';
7
+ /**
8
+ * BIP44 constants
9
+ */
2
10
  export declare const BIP44_PURPOSE = 44;
3
11
  export declare const BIP44_COIN_TYPE = 10605;
4
12
  export declare const BIP44_ACCOUNT = 0;
13
+ /**
14
+ * Lotus constants
15
+ */
16
+ /** Maximum relay size of an OP_RETURN payload, in bytes (OP_RETURN + OP_PUSHDATA1 + data) */
5
17
  export declare const MAX_OP_RETURN_RELAY = 223;
18
+ /** Maximum data size of the OP_RETURN payload, in bytes (OP_PUSHDATA1 + data) */
6
19
  export declare const MAX_OP_RETURN_DATA = 220;
20
+ /** Maximum number of OP_RETURN outputs allowed in a transaction by consensus */
7
21
  export declare const MAX_OP_RETURN_OUTPUTS = 3;
22
+ /**
23
+ * RANK script configuration
24
+ */
25
+ /** Minimum RANK burn value in sats */
8
26
  export declare const RANK_OUTPUT_MIN_VALID_SATS = 1000000;
27
+ /** Minimum RNKC burn value in sats */
9
28
  export declare const RNKC_MIN_FEE_RATE = 10000000;
29
+ /** Minimum RNKC comment length in bytes */
10
30
  export declare const RNKC_MIN_DATA_LENGTH = 1;
31
+ /**
32
+ * Dashboard configuration
33
+ */
34
+ /** Platform URL configuration */
11
35
  export declare const PlatformURL: {
12
36
  [key in ScriptChunkPlatformUTF8]?: {
37
+ /** Root URL for the platform */
13
38
  root: string;
39
+ /** URL for the profile */
14
40
  profile(profileId: string): string;
41
+ /** URL for the post */
15
42
  post(profileId: string, postId: string): string;
16
43
  };
17
44
  };
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../utils/constants.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAA;AAKnE,eAAO,MAAM,aA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AACjC,eAAO,MAAM,WAAW,EAAE;KACvB,GAAG,IAAI,uBAAuB,CAAC,CAAC,EAAE;QACjC,gCAAgC;QAChC,IAAI,EAAE,MAAM,CAAA;QACZ,0BAA0B;QAC1B,OAAO,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAAA;QAClC,uBAAuB;QACvB,IAAI,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAAA;KAChD;CAWF,CAAA"}
@@ -1,3 +1,18 @@
1
+ /**
2
+ * Copyright 2025 The Lotusia Stewardship
3
+ * Github: https://github.com/LotusiaStewardship
4
+ * License: MIT
5
+ */
6
+ /**
7
+ * Check if running in a browser environment
8
+ *
9
+ * @returns true if running in browser, false if running in Node.js
10
+ */
1
11
  export declare function isBrowser(): boolean;
12
+ /**
13
+ * Check if running in Node.js environment
14
+ *
15
+ * @returns true if running in Node.js, false if running in browser
16
+ */
2
17
  export declare function isNode(): boolean;
3
18
  //# sourceMappingURL=env.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../../../utils/env.ts"],"names":[],"mappings":"AAUA,wBAAgB,SAAS,IAAI,OAAO,CAEnC;AAOD,wBAAgB,MAAM,IAAI,OAAO,CAMhC"}
1
+ {"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../../../utils/env.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH;;;;GAIG;AACH,wBAAgB,SAAS,IAAI,OAAO,CAEnC;AAED;;;;GAIG;AACH,wBAAgB,MAAM,IAAI,OAAO,CAMhC"}
@@ -1,12 +1,69 @@
1
+ /**
2
+ * Copyright 2025 The Lotusia Stewardship
3
+ * Github: https://github.com/LotusiaStewardship
4
+ * License: MIT
5
+ */
1
6
  import { Buffer } from 'buffer/';
7
+ /**
8
+ * Validate a sha256 hash
9
+ * @param str - The sha256 hash to validate
10
+ * @returns Whether the sha256 hash is valid
11
+ */
2
12
  export declare function isSha256(str: string): boolean;
13
+ /**
14
+ * Convert a number or UTF-8 string to a hex string
15
+ * @param data - The data to convert
16
+ * @returns The hex string
17
+ */
3
18
  export declare function toHex(data: number | string | Buffer): string;
19
+ /**
20
+ * Check if a string is hex-encoded, with optional `length` limit
21
+ * @param str The string to check
22
+ * @param length The length of the hex string to check. If not defined, checks the full string
23
+ * @returns `true` if the string is hex-encoded, `false` otherwise
24
+ */
4
25
  export declare function isHex(str: string, length?: number): boolean;
26
+ /**
27
+ * Check if a string is base64 encoded
28
+ * @param str The string to check
29
+ * @returns `true` if the string is base64 encoded, `false` otherwise
30
+ */
5
31
  export declare function isBase64(str: string): boolean;
32
+ /**
33
+ * Decode a base64-encoded string
34
+ * @param str The base64 encoded string to decode
35
+ * @returns The decoded string
36
+ */
6
37
  export declare function decodeBase64(str: string): string;
38
+ /**
39
+ * Encode a UTF-8 string to a base64-encoded string. Optionally provide a different
40
+ * encoding scheme for the input string
41
+ * @param str The string to encode
42
+ * @returns The base64 encoded string
43
+ */
7
44
  export declare function encodeBase64(str: string, encoding?: BufferEncoding): string;
45
+ /**
46
+ * Truncate a sha256 hash to 16 + 6 characters
47
+ * @param sha256 - The sha256 hash to truncate
48
+ * @returns The truncated sha256 hash
49
+ */
8
50
  export declare function truncateSha256(sha256: string): string;
51
+ /**
52
+ * Truncate a transaction id to 16 + 6 characters
53
+ * @param txid - The transaction id to truncate
54
+ * @returns The truncated transaction id
55
+ */
9
56
  export declare function truncateTxid(txid: string): string;
57
+ /**
58
+ * Truncate an address to 17 + 6 characters
59
+ * @param address - The address to truncate
60
+ * @returns The truncated address
61
+ */
10
62
  export declare function truncateAddress(address: string): string;
63
+ /**
64
+ * Truncate a block hash to 1 + 16 characters
65
+ * @param blockHash - The block hash to truncate
66
+ * @returns The truncated block hash
67
+ */
11
68
  export declare function truncateBlockHash(blockHash: string): string;
12
69
  //# sourceMappingURL=string.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"string.d.ts","sourceRoot":"","sources":["../../../utils/string.ts"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AED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,GAAE,cAAuB,UAK1E;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,UAE5C;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,UAExC;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,UAE9C;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,MAAM,UAElD"}
@@ -1,15 +1,57 @@
1
+ /**
2
+ * Copyright 2025 The Lotusia Stewardship
3
+ * Github: https://github.com/LotusiaStewardship
4
+ * License: MIT
5
+ */
1
6
  import { Address, Script, ScriptType, Mnemonic, Network } from '../lib/bitcore/index.js';
7
+ /**
8
+ * Represents a cryptocurrency wallet with all necessary cryptographic components.
9
+ */
2
10
  export interface Wallet {
11
+ /** The hierarchical deterministic private key in string format. */
3
12
  hdPrivateKey?: string;
13
+ /** The wallet's private key in WIF (Wallet Import Format). */
4
14
  privateKey?: string;
15
+ /** The wallet's public key in hexadecimal format. */
5
16
  publicKey?: string;
17
+ /** The wallet's address object. */
6
18
  address: Address;
19
+ /** The script associated with the wallet's address. */
7
20
  script: Script;
21
+ /** The script data in hexadecimal format. */
8
22
  scriptPayload: string;
23
+ /** The type of script (e.g., pubkeyhash, scripthash, taproot). */
9
24
  scriptType: ScriptType;
10
25
  }
26
+ /** A wallet with all properties of the `Wallet` interface plus keys */
11
27
  export type WalletWithKeys = Required<Wallet>;
12
- export declare function createWallet({ mnemonic, path, network, scriptType, }: {
28
+ /**
29
+ * Creates a cryptocurrency wallet with the specified configuration.
30
+ *
31
+ * @param {Object} options - Configuration options for wallet creation
32
+ * @param {Mnemonic | string} [options.mnemonic] - BIP39 mnemonic phrase. If not provided, a new one is generated.
33
+ * @param {string} [options.path] - BIP44 derivation path. Defaults to `m/44'/{BIP44_COIN_TYPE}'/0'/0/0`
34
+ * @param {Network} [options.network=Networks.mainnet] - The network to use (mainnet, testnet, regtest)
35
+ * @param {ScriptType} [options.scriptType='p2pkh'] - The script type for the wallet address (p2pkh, p2tr-commitment, etc.)
36
+ *
37
+ * @returns {Wallet | WalletWithKeys} A wallet object containing address, script, and optionally cryptographic keys.
38
+ * When a mnemonic is provided, returns a WalletWithKeys with all key material.
39
+ * Otherwise returns a Wallet with minimal key information.
40
+ *
41
+ * @example
42
+ * // Create a wallet with a new mnemonic
43
+ * const wallet = createWallet({ network: Networks.testnet })
44
+ *
45
+ * @example
46
+ * // Create a Taproot wallet from an existing mnemonic
47
+ * const wallet = createWallet({
48
+ * mnemonic: 'abandon abandon abandon...',
49
+ * scriptType: 'p2tr-commitment',
50
+ * network: Networks.mainnet
51
+ * })
52
+ */
53
+ export declare function createWallet({ mnemonic, path, network, // Default to mainnet
54
+ scriptType, }: {
13
55
  mnemonic?: Mnemonic | string;
14
56
  path?: string;
15
57
  network?: Network;
@@ -1 +1 @@
1
- {"version":3,"file":"wallet.d.ts","sourceRoot":"","sources":["../../../utils/wallet.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,OAAO,EAEP,MAAM,EACN,UAAU,EACV,QAAQ,EACR,OAAO,EAER,MAAM,yBAAyB,CAAA;AAKhC,MAAM,WAAW,MAAM;IAErB,YAAY,CAAC,EAAE,MAAM,CAAA;IAErB,UAAU,CAAC,EAAE,MAAM,CAAA;IAEnB,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB,OAAO,EAAE,OAAO,CAAA;IAEhB,MAAM,EAAE,MAAM,CAAA;IAEd,aAAa,EAAE,MAAM,CAAA;IAErB,UAAU,EAAE,UAAU,CAAA;CACvB;AAGD,MAAM,MAAM,cAAc,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAA;AA2B7C,wBAAgB,YAAY,CAAC,EAC3B,QAAQ,EACR,IAAI,EACJ,OAA0B,EAC1B,UAAoB,GACrB,EAAE;IACD,QAAQ,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAA;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,UAAU,CAAC,EAAE,UAAU,CAAA;CACxB,GAAG,MAAM,GAAG,cAAc,CAiC1B"}
1
+ {"version":3,"file":"wallet.d.ts","sourceRoot":"","sources":["../../../utils/wallet.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,OAAO,EAEP,MAAM,EACN,UAAU,EACV,QAAQ,EACR,OAAO,EAER,MAAM,yBAAyB,CAAA;AAEhC;;GAEG;AACH,MAAM,WAAW,MAAM;IACrB,mEAAmE;IACnE,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,8DAA8D;IAC9D,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,qDAAqD;IACrD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,mCAAmC;IACnC,OAAO,EAAE,OAAO,CAAA;IAChB,uDAAuD;IACvD,MAAM,EAAE,MAAM,CAAA;IACd,6CAA6C;IAC7C,aAAa,EAAE,MAAM,CAAA;IACrB,kEAAkE;IAClE,UAAU,EAAE,UAAU,CAAA;CACvB;AAED,uEAAuE;AACvE,MAAM,MAAM,cAAc,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAA;AAE7C;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,YAAY,CAAC,EAC3B,QAAQ,EACR,IAAI,EACJ,OAA0B,EAAE,qBAAqB;AACjD,UAAoB,GACrB,EAAE;IACD,QAAQ,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAA;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,UAAU,CAAC,EAAE,UAAU,CAAA;CACxB,GAAG,MAAM,GAAG,cAAc,CAiC1B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xpi-ts",
3
- "version": "0.2.22",
3
+ "version": "0.2.24",
4
4
  "description": "Bitcore-compatible wallet SDK for Lotus",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",
@@ -6,6 +6,7 @@
6
6
  "outDir": "./dist/types",
7
7
  "declaration": true,
8
8
  "declarationMap": true,
9
- "emitDeclarationOnly": true
9
+ "emitDeclarationOnly": true,
10
+ "removeComments": false,
10
11
  }
11
12
  }