@bigmi/core 0.5.1 → 0.5.3

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/CHANGELOG.md CHANGED
@@ -2,6 +2,15 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.5.3](https://github.com/lifinance/bigmi/compare/v0.5.2...v0.5.3) (2025-09-22)
6
+
7
+ ### [0.5.2](https://github.com/lifinance/bigmi/compare/v0.5.1...v0.5.2) (2025-08-28)
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * imports ([6b26572](https://github.com/lifinance/bigmi/commit/6b265727d74bd84d326543a61ab52d4fb0c58ae0))
13
+
5
14
  ### [0.5.1](https://github.com/lifinance/bigmi/compare/v0.5.0...v0.5.1) (2025-08-28)
6
15
 
7
16
 
@@ -1,2 +1,2 @@
1
1
  export declare const name = "@bigmi/core";
2
- export declare const version = "0.5.1";
2
+ export declare const version = "0.5.3";
@@ -2,5 +2,5 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.version = exports.name = void 0;
4
4
  exports.name = '@bigmi/core';
5
- exports.version = '0.5.1';
5
+ exports.version = '0.5.3';
6
6
  //# sourceMappingURL=version.js.map
@@ -1,2 +1,2 @@
1
1
  export declare const name = "@bigmi/core";
2
- export declare const version = "0.5.1";
2
+ export declare const version = "0.5.3";
@@ -1,3 +1,3 @@
1
1
  export const name = '@bigmi/core';
2
- export const version = '0.5.1';
2
+ export const version = '0.5.3';
3
3
  //# sourceMappingURL=version.js.map
@@ -1,3 +1,3 @@
1
1
  export declare const name = "@bigmi/core";
2
- export declare const version = "0.5.1";
2
+ export declare const version = "0.5.3";
3
3
  //# sourceMappingURL=version.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigmi/core",
3
- "version": "0.5.1",
3
+ "version": "0.5.3",
4
4
  "description": "TypeScript library for Bitcoin apps.",
5
5
  "type": "module",
6
6
  "main": "./dist/esm/index.js",
package/package.json.tmp CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigmi/core",
3
- "version": "0.5.1",
3
+ "version": "0.5.3",
4
4
  "description": "TypeScript library for Bitcoin apps.",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
package/src/version.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  export const name = '@bigmi/core'
2
- export const version = '0.5.1'
2
+ export const version = '0.5.3'
@@ -1,17 +0,0 @@
1
- import type { SendUTXOTransactionParameters, SendUTXOTransactionReturnType } from '../actions/sendUTXOTransaction.js';
2
- import type { WaitForTransactionReceiptParameters } from '../actions/waitForTransaction.js';
3
- import type { SignPsbtParameters, SignPsbtReturnType } from '../transports/types.js';
4
- import type { UTXOTransaction } from './transaction.js';
5
- export type WaitForTransactionReceiptReturnType = UTXOTransaction;
6
- export type WithRetryParameters = {
7
- delay?: ((config: {
8
- count: number;
9
- error: Error;
10
- }) => number) | number | undefined;
11
- retryCount?: number | undefined;
12
- };
13
- export type WalletActions = {
14
- sendUTXOTransaction: (args: SendUTXOTransactionParameters) => Promise<SendUTXOTransactionReturnType>;
15
- signPbst: (args: SignPsbtParameters) => Promise<SignPsbtReturnType>;
16
- waitForTransactionReceipt: (args: WaitForTransactionReceiptParameters) => Promise<WaitForTransactionReceiptReturnType>;
17
- };
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=actions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"actions.js","sourceRoot":"","sources":["../../../src/types/actions.ts"],"names":[],"mappings":""}
@@ -1,22 +0,0 @@
1
- import type { Compute } from './utils.js';
2
- export type StorageItemMap = {
3
- recentConnectorId: string;
4
- state: any;
5
- };
6
- export type Storage<itemMap extends Record<string, unknown> = Record<string, unknown>, storageItemMap extends StorageItemMap = StorageItemMap & itemMap> = {
7
- key: string;
8
- getItem<key extends keyof storageItemMap, value extends storageItemMap[key], defaultValue extends value | null | undefined>(key: key, defaultValue?: defaultValue | undefined): (defaultValue extends null ? value | null : value) | Promise<defaultValue extends null ? value | null : value>;
9
- setItem<key extends keyof storageItemMap, value extends storageItemMap[key] | null>(key: key, value: value): void | Promise<void>;
10
- removeItem(key: keyof storageItemMap): void | Promise<void>;
11
- };
12
- export type BaseStorage = {
13
- getItem(key: string): string | null | undefined | Promise<string | null | undefined>;
14
- setItem(key: string, value: string): void | Promise<void>;
15
- removeItem(key: string): void | Promise<void>;
16
- };
17
- export type CreateStorageParameters = {
18
- deserialize?: (<type>(value: string) => type | unknown) | undefined;
19
- key?: string | undefined;
20
- serialize?: (<type>(value: type | any) => string) | undefined;
21
- storage?: Compute<BaseStorage> | undefined;
22
- };
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=storage.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"storage.js","sourceRoot":"","sources":["../../../src/types/storage.ts"],"names":[],"mappings":""}
@@ -1,20 +0,0 @@
1
- import type { SendUTXOTransactionParameters, SendUTXOTransactionReturnType } from '../actions/sendUTXOTransaction.js';
2
- import type { WaitForTransactionReceiptParameters } from '../actions/waitForTransaction.js';
3
- import type { SignPsbtParameters, SignPsbtReturnType } from '../transports/types.js';
4
- import type { UTXOTransaction } from './transaction.js';
5
- export type WaitForTransactionReceiptReturnType = UTXOTransaction;
6
- export type WithRetryParameters = {
7
- delay?: ((config: {
8
- count: number;
9
- error: Error;
10
- }) => number) | number | undefined;
11
- retryCount?: number | undefined;
12
- };
13
- export type WalletActions = {
14
- /**
15
- * Creates, signs, and sends a new transaction to the network.
16
- */
17
- sendUTXOTransaction: (args: SendUTXOTransactionParameters) => Promise<SendUTXOTransactionReturnType>;
18
- signPbst: (args: SignPsbtParameters) => Promise<SignPsbtReturnType>;
19
- waitForTransactionReceipt: (args: WaitForTransactionReceiptParameters) => Promise<WaitForTransactionReceiptReturnType>;
20
- };
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=actions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"actions.js","sourceRoot":"","sources":["../../../src/types/actions.ts"],"names":[],"mappings":""}
@@ -1,22 +0,0 @@
1
- import type { Compute } from './utils.js';
2
- export type StorageItemMap = {
3
- recentConnectorId: string;
4
- state: any;
5
- };
6
- export type Storage<itemMap extends Record<string, unknown> = Record<string, unknown>, storageItemMap extends StorageItemMap = StorageItemMap & itemMap> = {
7
- key: string;
8
- getItem<key extends keyof storageItemMap, value extends storageItemMap[key], defaultValue extends value | null | undefined>(key: key, defaultValue?: defaultValue | undefined): (defaultValue extends null ? value | null : value) | Promise<defaultValue extends null ? value | null : value>;
9
- setItem<key extends keyof storageItemMap, value extends storageItemMap[key] | null>(key: key, value: value): void | Promise<void>;
10
- removeItem(key: keyof storageItemMap): void | Promise<void>;
11
- };
12
- export type BaseStorage = {
13
- getItem(key: string): string | null | undefined | Promise<string | null | undefined>;
14
- setItem(key: string, value: string): void | Promise<void>;
15
- removeItem(key: string): void | Promise<void>;
16
- };
17
- export type CreateStorageParameters = {
18
- deserialize?: (<type>(value: string) => type | unknown) | undefined;
19
- key?: string | undefined;
20
- serialize?: (<type>(value: type | any) => string) | undefined;
21
- storage?: Compute<BaseStorage> | undefined;
22
- };
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=storage.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"storage.js","sourceRoot":"","sources":["../../../src/types/storage.ts"],"names":[],"mappings":""}
@@ -1,21 +0,0 @@
1
- import type { SendUTXOTransactionParameters, SendUTXOTransactionReturnType } from '../actions/sendUTXOTransaction.js';
2
- import type { WaitForTransactionReceiptParameters } from '../actions/waitForTransaction.js';
3
- import type { SignPsbtParameters, SignPsbtReturnType } from '../transports/types.js';
4
- import type { UTXOTransaction } from './transaction.js';
5
- export type WaitForTransactionReceiptReturnType = UTXOTransaction;
6
- export type WithRetryParameters = {
7
- delay?: ((config: {
8
- count: number;
9
- error: Error;
10
- }) => number) | number | undefined;
11
- retryCount?: number | undefined;
12
- };
13
- export type WalletActions = {
14
- /**
15
- * Creates, signs, and sends a new transaction to the network.
16
- */
17
- sendUTXOTransaction: (args: SendUTXOTransactionParameters) => Promise<SendUTXOTransactionReturnType>;
18
- signPbst: (args: SignPsbtParameters) => Promise<SignPsbtReturnType>;
19
- waitForTransactionReceipt: (args: WaitForTransactionReceiptParameters) => Promise<WaitForTransactionReceiptReturnType>;
20
- };
21
- //# sourceMappingURL=actions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../src/types/actions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,6BAA6B,EAC7B,6BAA6B,EAC9B,MAAM,mCAAmC,CAAA;AAC1C,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,kCAAkC,CAAA;AAC3F,OAAO,KAAK,EACV,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,wBAAwB,CAAA;AAC/B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAEvD,MAAM,MAAM,mCAAmC,GAAG,eAAe,CAAA;AAEjE,MAAM,MAAM,mBAAmB,GAAG;IAEhC,KAAK,CAAC,EACF,CAAC,CAAC,MAAM,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,KAAK,CAAA;KAAE,KAAK,MAAM,CAAC,GACrD,MAAM,GACN,SAAS,CAAA;IAEb,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAChC,CAAA;AAED,MAAM,MAAM,aAAa,GAAG;IAC1B;;OAEG;IACH,mBAAmB,EAAE,CACnB,IAAI,EAAE,6BAA6B,KAChC,OAAO,CAAC,6BAA6B,CAAC,CAAA;IAE3C,QAAQ,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,OAAO,CAAC,kBAAkB,CAAC,CAAA;IAEnE,yBAAyB,EAAE,CACzB,IAAI,EAAE,mCAAmC,KACtC,OAAO,CAAC,mCAAmC,CAAC,CAAA;CAClD,CAAA"}
@@ -1,23 +0,0 @@
1
- import type { Compute } from './utils.js';
2
- export type StorageItemMap = {
3
- recentConnectorId: string;
4
- state: any;
5
- };
6
- export type Storage<itemMap extends Record<string, unknown> = Record<string, unknown>, storageItemMap extends StorageItemMap = StorageItemMap & itemMap> = {
7
- key: string;
8
- getItem<key extends keyof storageItemMap, value extends storageItemMap[key], defaultValue extends value | null | undefined>(key: key, defaultValue?: defaultValue | undefined): (defaultValue extends null ? value | null : value) | Promise<defaultValue extends null ? value | null : value>;
9
- setItem<key extends keyof storageItemMap, value extends storageItemMap[key] | null>(key: key, value: value): void | Promise<void>;
10
- removeItem(key: keyof storageItemMap): void | Promise<void>;
11
- };
12
- export type BaseStorage = {
13
- getItem(key: string): string | null | undefined | Promise<string | null | undefined>;
14
- setItem(key: string, value: string): void | Promise<void>;
15
- removeItem(key: string): void | Promise<void>;
16
- };
17
- export type CreateStorageParameters = {
18
- deserialize?: (<type>(value: string) => type | unknown) | undefined;
19
- key?: string | undefined;
20
- serialize?: (<type>(value: type | any) => string) | undefined;
21
- storage?: Compute<BaseStorage> | undefined;
22
- };
23
- //# sourceMappingURL=storage.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../../src/types/storage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAEzC,MAAM,MAAM,cAAc,GAAG;IAC3B,iBAAiB,EAAE,MAAM,CAAA;IACzB,KAAK,EAAE,GAAG,CAAA;CACX,CAAA;AAED,MAAM,MAAM,OAAO,CACjB,OAAO,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAEjE,cAAc,SAAS,cAAc,GAAG,cAAc,GA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AM,GAAG,SAAS,CAAA;IACxB,SAAS,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,GAAG,GAAG,KAAK,MAAM,CAAC,GAAG,SAAS,CAAA;IAC7D,OAAO,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,GAAG,SAAS,CAAA;CAC3C,CAAA"}
@@ -1,37 +0,0 @@
1
- import type {
2
- SendUTXOTransactionParameters,
3
- SendUTXOTransactionReturnType,
4
- } from '../actions/sendUTXOTransaction.js'
5
- import type { WaitForTransactionReceiptParameters } from '../actions/waitForTransaction.js'
6
- import type {
7
- SignPsbtParameters,
8
- SignPsbtReturnType,
9
- } from '../transports/types.js'
10
- import type { UTXOTransaction } from './transaction.js'
11
-
12
- export type WaitForTransactionReceiptReturnType = UTXOTransaction
13
-
14
- export type WithRetryParameters = {
15
- // The delay (in ms) between retries.
16
- delay?:
17
- | ((config: { count: number; error: Error }) => number)
18
- | number
19
- | undefined
20
- // The max number of times to retry.
21
- retryCount?: number | undefined
22
- }
23
-
24
- export type WalletActions = {
25
- /**
26
- * Creates, signs, and sends a new transaction to the network.
27
- */
28
- sendUTXOTransaction: (
29
- args: SendUTXOTransactionParameters
30
- ) => Promise<SendUTXOTransactionReturnType>
31
-
32
- signPbst: (args: SignPsbtParameters) => Promise<SignPsbtReturnType>
33
-
34
- waitForTransactionReceipt: (
35
- args: WaitForTransactionReceiptParameters
36
- ) => Promise<WaitForTransactionReceiptReturnType>
37
- }
@@ -1,44 +0,0 @@
1
- import type { Compute } from './utils.js'
2
-
3
- export type StorageItemMap = {
4
- recentConnectorId: string
5
- state: any
6
- }
7
-
8
- export type Storage<
9
- itemMap extends Record<string, unknown> = Record<string, unknown>,
10
- ///
11
- storageItemMap extends StorageItemMap = StorageItemMap & itemMap,
12
- > = {
13
- key: string
14
- getItem<
15
- key extends keyof storageItemMap,
16
- value extends storageItemMap[key],
17
- defaultValue extends value | null | undefined,
18
- >(
19
- key: key,
20
- defaultValue?: defaultValue | undefined
21
- ):
22
- | (defaultValue extends null ? value | null : value)
23
- | Promise<defaultValue extends null ? value | null : value>
24
- setItem<
25
- key extends keyof storageItemMap,
26
- value extends storageItemMap[key] | null,
27
- >(key: key, value: value): void | Promise<void>
28
- removeItem(key: keyof storageItemMap): void | Promise<void>
29
- }
30
-
31
- export type BaseStorage = {
32
- getItem(
33
- key: string
34
- ): string | null | undefined | Promise<string | null | undefined>
35
- setItem(key: string, value: string): void | Promise<void>
36
- removeItem(key: string): void | Promise<void>
37
- }
38
-
39
- export type CreateStorageParameters = {
40
- deserialize?: (<type>(value: string) => type | unknown) | undefined
41
- key?: string | undefined
42
- serialize?: (<type>(value: type | any) => string) | undefined
43
- storage?: Compute<BaseStorage> | undefined
44
- }