@bigmi/react 0.2.1 → 0.3.0-beta.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/README.md CHANGED
@@ -50,11 +50,14 @@ import {
50
50
  getBalance,
51
51
  getBlockCount,
52
52
  sendUTXOTransaction,
53
- utxo,
54
53
  waitForTransaction,
55
54
  createClient,
56
55
  fallback,
57
56
  rpcSchema
57
+ ankr,
58
+ blockchair,
59
+ blockcypher,
60
+ mempool
58
61
  } from '@bigmi/core'
59
62
  import { useAccount } from '@bigmi/react'
60
63
 
@@ -64,19 +67,10 @@ const publicClient = createClient({
64
67
  chain: bitcoin,
65
68
  rpcSchema: rpcSchema<UTXOSchema>(),
66
69
  transport: fallback([
67
- utxo('https://api.blockchair.com', {
68
- key: 'blockchair',
69
- includeChainToURL: true,
70
- }),
71
- utxo('https://rpc.ankr.com/http/btc_blockbook/api/v2', {
72
- key: 'ankr',
73
- }),
74
- utxo('https://api.blockcypher.com/v1/btc/main', {
75
- key: 'blockcypher',
76
- }),
77
- utxo('https://mempool.space/api', {
78
- key: 'mempool',
79
- }),
70
+ blockchair(),
71
+ ankr({apiKey: 'YOUR_ANKR_API_KEY'}),
72
+ blockcypher(),
73
+ mempool(),
80
74
  ]),
81
75
  })
82
76
 
@@ -0,0 +1,2 @@
1
+ export declare const name = "@bigmi/react";
2
+ export declare const version = "0.3.0-beta.0";
@@ -0,0 +1,3 @@
1
+ export const name = '@bigmi/react';
2
+ export const version = '0.3.0-beta.0';
3
+ //# sourceMappingURL=version.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,IAAI,GAAG,cAAc,CAAA;AAClC,MAAM,CAAC,MAAM,OAAO,GAAG,cAAc,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigmi/react",
3
- "version": "0.2.1",
3
+ "version": "0.3.0-beta.0",
4
4
  "description": "React primitives for Bitcoin apps.",
5
5
  "type": "module",
6
6
  "main": "./dist/esm/index.js",
@@ -29,8 +29,8 @@
29
29
  "hooks"
30
30
  ],
31
31
  "dependencies": {
32
- "@bigmi/client": "^0.2.1",
33
- "@bigmi/core": "^0.2.1"
32
+ "@bigmi/core": "^0.3.0-beta.0",
33
+ "@bigmi/client": "^0.3.0-beta.0"
34
34
  },
35
35
  "peerDependencies": {
36
36
  "@tanstack/react-query": ">=5.68.0",
package/package.json.tmp CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigmi/react",
3
- "version": "0.2.1",
3
+ "version": "0.3.0-beta.0",
4
4
  "description": "React primitives for Bitcoin apps.",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -8,11 +8,12 @@
8
8
  "sideEffects": false,
9
9
  "scripts": {
10
10
  "watch": "tsc -w -p ./tsconfig.json",
11
- "build": "pnpm clean && pnpm build:esm && pnpm build:clean",
11
+ "build": "pnpm clean && pnpm build:version && pnpm build:esm && pnpm build:clean",
12
12
  "build:esm": "tsc --build",
13
13
  "build:prerelease": "node ../../scripts/prerelease.js && cpy '../../*.md' .",
14
14
  "build:postrelease": "node ../../scripts/postrelease.js && rm -rf *.md",
15
15
  "build:clean": "rm -rf tsconfig.tsbuildinfo ./dist/tsconfig.tsbuildinfo",
16
+ "build:version": "node ../../scripts/version.js",
16
17
  "release:build": "pnpm build",
17
18
  "clean": "pnpm build:clean && rm -rf dist",
18
19
  "check:types": "tsc --noEmit",
package/src/version.ts ADDED
@@ -0,0 +1,2 @@
1
+ export const name = '@bigmi/react'
2
+ export const version = '0.3.0-beta.0'