@omnisat/lasereyes 0.0.2 → 0.0.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/README.md +2 -20
- package/package.json +1 -2
package/README.md
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
# @omnisat/lasereyes
|
|
2
|
-

|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
# Laser Eyes
|
|
4
|
+
# Laser Eyes
|
|
6
5
|
## React Hooks for Bitcoin
|
|
7
6
|
|
|
8
7
|
Laser Eyes is a collection of React Hooks containing everything you need to start working with Bitcoin.
|
|
@@ -58,15 +57,11 @@ Get All inscriptions
|
|
|
58
57
|
Get All Tokens
|
|
59
58
|
```lasereyes.getAllBRC20Tokens()```
|
|
60
59
|
|
|
61
|
-
|
|
62
60
|
### Write Methods
|
|
63
61
|
|
|
64
62
|
Send Bitcoin
|
|
65
63
|
```lasereyes.sendBTC(toPK, btc_in_sats, ...)```
|
|
66
64
|
|
|
67
|
-
Pay & Inscribe
|
|
68
|
-
```lasereyes.pay_inscribe(...)````
|
|
69
|
-
|
|
70
65
|
Transferable: The amount has been inscribed into one or more TRANSFER inscriptions (can be transferred immediately).
|
|
71
66
|
Available: The amount that is available as a part of a balance (including both minted and received) but not transferable yet.
|
|
72
67
|
To spend an available amount, you must first inscribe a certain amount into a TRANSFER inscription.
|
|
@@ -78,12 +73,6 @@ Once a number of TRANSFER inscriptions are chosen, proceed to send them by asser
|
|
|
78
73
|
|
|
79
74
|
sign the tx to send.
|
|
80
75
|
|
|
81
|
-
Deploy a Inscription
|
|
82
|
-
```lasereyes.deploy(...)```
|
|
83
|
-
|
|
84
|
-
Mint a deployed Inscription
|
|
85
|
-
```lasereyes.mint(...)```
|
|
86
|
-
|
|
87
76
|
Sign a message
|
|
88
77
|
```lasereyes.signMessage(...)```
|
|
89
78
|
|
|
@@ -93,10 +82,3 @@ Sign a single PSBT
|
|
|
93
82
|
Sign an array of PSBT
|
|
94
83
|
```lasereyes.signPsbts(...)```
|
|
95
84
|
|
|
96
|
-
### Events
|
|
97
|
-
|
|
98
|
-
`networkChanged`
|
|
99
|
-
Testnet, mainnet
|
|
100
|
-
|
|
101
|
-
`accountsChanged`
|
|
102
|
-
user changes account pub keys
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@omnisat/lasereyes",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -27,7 +27,6 @@
|
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/react": "^18.0.27",
|
|
29
29
|
"@types/react-dom": "^18.2.0",
|
|
30
|
-
"tsconfig": "workspace:*",
|
|
31
30
|
"tsup": "^6.7.0",
|
|
32
31
|
"typescript": "^4.9.5"
|
|
33
32
|
}
|