@bigmi/core 0.3.0-beta.5 → 0.3.0

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,17 @@
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.3.0](https://github.com/lifinance/bigmi/compare/v0.2.1...v0.3.0) (2025-05-28)
6
+
7
+
8
+ ### ⚠ BREAKING CHANGES
9
+
10
+ * add getUTXOs action (#16)
11
+
12
+ ### Features
13
+
14
+ * add getUTXOs action ([#16](https://github.com/lifinance/bigmi/issues/16)) ([e884c02](https://github.com/lifinance/bigmi/commit/e884c02ad902123a9daf2edaeea2ab777c315925))
15
+
5
16
  ### [0.2.1](https://github.com/lifinance/bigmi/compare/v0.2.0...v0.2.1) (2025-05-14)
6
17
 
7
18
 
@@ -40,8 +40,8 @@ export type AnkrVout = {
40
40
  hex: string;
41
41
  addresses: string[];
42
42
  isAddress: boolean;
43
- scriptPubKey?: {
44
- address: string;
43
+ scriptPubKey: {
44
+ address?: string;
45
45
  asm: string;
46
46
  desc: string;
47
47
  hex: string;
@@ -12,31 +12,30 @@ export type UTXOTransaction = {
12
12
  version: number;
13
13
  vsize: number;
14
14
  weight: number;
15
- vin: {
15
+ vin: ({
16
+ coinbase: string;
17
+ sequence: number;
18
+ txinwitness?: string[];
19
+ } | {
20
+ txid: string;
21
+ vout: number;
16
22
  scriptSig?: {
17
23
  asm: string;
18
24
  hex: string;
19
25
  };
20
26
  sequence: number;
21
- txid: string;
22
- txinwitness: string[];
23
- vout: number;
24
- }[];
27
+ txinwitness?: string[];
28
+ })[];
25
29
  vout: {
26
30
  n: number;
27
- scriptPubKey?: {
28
- address: string;
29
- asm: string;
30
- desc: string;
31
- hex: string;
32
- type: string;
33
- } | {
31
+ value: number;
32
+ scriptPubKey: {
33
+ address?: string;
34
34
  asm: string;
35
35
  desc: string;
36
36
  hex: string;
37
37
  type: string;
38
38
  };
39
- value: number;
40
39
  }[];
41
40
  };
42
41
  export type UTXO = {
@@ -1,2 +1,2 @@
1
1
  export declare const name = "@bigmi/core";
2
- export declare const version = "0.3.0-beta.5";
2
+ export declare const version = "0.3.0";
@@ -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.3.0-beta.5';
5
+ exports.version = '0.3.0';
6
6
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,IAAI,GAAG,aAAa,CAAA;AACpB,QAAA,OAAO,GAAG,cAAc,CAAA"}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,IAAI,GAAG,aAAa,CAAA;AACpB,QAAA,OAAO,GAAG,OAAO,CAAA"}
@@ -40,8 +40,8 @@ export type AnkrVout = {
40
40
  hex: string;
41
41
  addresses: string[];
42
42
  isAddress: boolean;
43
- scriptPubKey?: {
44
- address: string;
43
+ scriptPubKey: {
44
+ address?: string;
45
45
  asm: string;
46
46
  desc: string;
47
47
  hex: string;
@@ -12,31 +12,30 @@ export type UTXOTransaction = {
12
12
  version: number;
13
13
  vsize: number;
14
14
  weight: number;
15
- vin: {
15
+ vin: ({
16
+ coinbase: string;
17
+ sequence: number;
18
+ txinwitness?: string[];
19
+ } | {
20
+ txid: string;
21
+ vout: number;
16
22
  scriptSig?: {
17
23
  asm: string;
18
24
  hex: string;
19
25
  };
20
26
  sequence: number;
21
- txid: string;
22
- txinwitness: string[];
23
- vout: number;
24
- }[];
27
+ txinwitness?: string[];
28
+ })[];
25
29
  vout: {
26
30
  n: number;
27
- scriptPubKey?: {
28
- address: string;
29
- asm: string;
30
- desc: string;
31
- hex: string;
32
- type: string;
33
- } | {
31
+ value: number;
32
+ scriptPubKey: {
33
+ address?: string;
34
34
  asm: string;
35
35
  desc: string;
36
36
  hex: string;
37
37
  type: string;
38
38
  };
39
- value: number;
40
39
  }[];
41
40
  };
42
41
  export type UTXO = {
@@ -1,2 +1,2 @@
1
1
  export declare const name = "@bigmi/core";
2
- export declare const version = "0.3.0-beta.5";
2
+ export declare const version = "0.3.0";
@@ -1,3 +1,3 @@
1
1
  export const name = '@bigmi/core';
2
- export const version = '0.3.0-beta.5';
2
+ export const version = '0.3.0';
3
3
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,IAAI,GAAG,aAAa,CAAA;AACjC,MAAM,CAAC,MAAM,OAAO,GAAG,cAAc,CAAA"}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,IAAI,GAAG,aAAa,CAAA;AACjC,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAA"}
@@ -40,8 +40,8 @@ export type AnkrVout = {
40
40
  hex: string;
41
41
  addresses: string[];
42
42
  isAddress: boolean;
43
- scriptPubKey?: {
44
- address: string;
43
+ scriptPubKey: {
44
+ address?: string;
45
45
  asm: string;
46
46
  desc: string;
47
47
  hex: string;
@@ -1 +1 @@
1
- {"version":3,"file":"ankr.types.d.ts","sourceRoot":"","sources":["../../../../src/transports/ankr/ankr.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,mBAAmB,GAAG;IAChC,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;IACf,aAAa,EAAE,MAAM,CAAA;IACrB,SAAS,EAAE,MAAM,CAAA;IACjB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,cAAc,EAAE,MAAM,CAAA;IACtB,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM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CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;IACX,gBAAgB,CAAC,EAAE;QACjB,IAAI,EAAE,MAAM,CAAA;QACZ,GAAG,EAAE,MAAM,CAAA;QACX,QAAQ,EAAE,MAAM,CAAA;QAChB,IAAI,EAAE,MAAM,CAAA;QACZ,IAAI,EAAE,MAAM,CAAA;QACZ,OAAO,EAAE,MAAM,CAAA;KAChB,CAAA;CACF,CAAA;AAED,MAAM,MAAM,2BAA2B,GAAG;IACxC,YAAY,EAAE,eAAe,EAAE,CAAA;CAChC,GAAG,mBAAmB,CAAA"}
@@ -12,31 +12,30 @@ export type UTXOTransaction = {
12
12
  version: number;
13
13
  vsize: number;
14
14
  weight: number;
15
- vin: {
15
+ vin: ({
16
+ coinbase: string;
17
+ sequence: number;
18
+ txinwitness?: string[];
19
+ } | {
20
+ txid: string;
21
+ vout: number;
16
22
  scriptSig?: {
17
23
  asm: string;
18
24
  hex: string;
19
25
  };
20
26
  sequence: number;
21
- txid: string;
22
- txinwitness: string[];
23
- vout: number;
24
- }[];
27
+ txinwitness?: string[];
28
+ })[];
25
29
  vout: {
26
30
  n: number;
27
- scriptPubKey?: {
28
- address: string;
29
- asm: string;
30
- desc: string;
31
- hex: string;
32
- type: string;
33
- } | {
31
+ value: number;
32
+ scriptPubKey: {
33
+ address?: string;
34
34
  asm: string;
35
35
  desc: string;
36
36
  hex: string;
37
37
  type: string;
38
38
  };
39
- value: number;
40
39
  }[];
41
40
  };
42
41
  export type UTXO = {
@@ -1 +1 @@
1
- {"version":3,"file":"transaction.d.ts","sourceRoot":"","sources":["../../../src/types/transaction.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;I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;AAED,MAAM,MAAM,IAAI,GAAG;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,EAAE,MAAM,CAAA;CAClB,CAAA"}
@@ -1,3 +1,3 @@
1
1
  export declare const name = "@bigmi/core";
2
- export declare const version = "0.3.0-beta.5";
2
+ export declare const version = "0.3.0";
3
3
  //# sourceMappingURL=version.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI,gBAAgB,CAAA;AACjC,eAAO,MAAM,OAAO,iBAAiB,CAAA"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI,gBAAgB,CAAA;AACjC,eAAO,MAAM,OAAO,UAAU,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigmi/core",
3
- "version": "0.3.0-beta.5",
3
+ "version": "0.3.0",
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.3.0-beta.5",
3
+ "version": "0.3.0",
4
4
  "description": "TypeScript library for Bitcoin apps.",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -43,8 +43,8 @@ export type AnkrVout = {
43
43
  hex: string
44
44
  addresses: string[]
45
45
  isAddress: boolean
46
- scriptPubKey?: {
47
- address: string
46
+ scriptPubKey: {
47
+ address?: string
48
48
  asm: string
49
49
  desc: string
50
50
  hex: string
@@ -12,33 +12,33 @@ export type UTXOTransaction = {
12
12
  version: number
13
13
  vsize: number
14
14
  weight: number
15
- vin: {
16
- scriptSig?: {
17
- asm: string
18
- hex: string
19
- }
20
- sequence: number
21
- txid: string
22
- txinwitness: string[]
23
- vout: number
24
- }[]
25
- vout: {
26
- n: number
27
- scriptPubKey?:
28
- | {
29
- address: string
30
- asm: string
31
- desc: string
32
- hex: string
33
- type: string
34
- }
35
- | {
15
+ vin: (
16
+ | {
17
+ coinbase: string
18
+ sequence: number
19
+ txinwitness?: string[]
20
+ }
21
+ | {
22
+ txid: string
23
+ vout: number
24
+ scriptSig?: {
36
25
  asm: string
37
- desc: string
38
26
  hex: string
39
- type: string
40
27
  }
28
+ sequence: number
29
+ txinwitness?: string[]
30
+ }
31
+ )[]
32
+ vout: {
33
+ n: number
41
34
  value: number
35
+ scriptPubKey: {
36
+ address?: string
37
+ asm: string
38
+ desc: string
39
+ hex: string
40
+ type: string
41
+ }
42
42
  }[]
43
43
  }
44
44
 
package/src/version.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  export const name = '@bigmi/core'
2
- export const version = '0.3.0-beta.5'
2
+ export const version = '0.3.0'