turing-wallet-provider 1.0.11 → 1.0.13

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 ADDED
@@ -0,0 +1,300 @@
1
+ ### connect
2
+
3
+ ```tsx
4
+ npm install turing-wallet-provider@latest
5
+
6
+ import { TuringProvider } from "turing-wallet-provider";
7
+
8
+ root.render(
9
+ <TuringProvider>
10
+ <App />
11
+ </TuringProvider>
12
+ );
13
+ ```
14
+
15
+ ```tsx
16
+ import { useTuringsWallet } from 'turing-wallet-provider';
17
+
18
+ const wallet = useTuringsWallet();
19
+ await wallet.connect();
20
+ ```
21
+
22
+ ### disconnect
23
+
24
+ ```tsx
25
+ const wallet = useTuringsWallet();
26
+ await wallet.disconnect();
27
+ ```
28
+
29
+ ### isConnected
30
+
31
+ ```tsx
32
+ const wallet = useTuringsWallet();
33
+ const ture/false = await wallet.isConnected();
34
+ ```
35
+
36
+ ### getPubKey
37
+
38
+ ```tsx
39
+ const wallet = useTuringsWallet();
40
+ const {tbcPubKey} = await wallet.getPubKey(); //tbcPubKey为string类型
41
+ ```
42
+
43
+ ### getAddress
44
+
45
+ ```tsx
46
+ const wallet = useTuringsWallet();
47
+ const {tbcAddress} = await wallet.getAddress(); //tbcAddress为string类型
48
+ ```
49
+
50
+ ### getBalance
51
+
52
+ ```tsx
53
+ const wallet = useTuringsWallet();
54
+ const {tbc} = await wallet.getBalance();//tbc为number类型,单位为tbc
55
+ ```
56
+
57
+ ### getPaymentUtxos
58
+
59
+ ```tsx
60
+ const wallet = useTuringsWallet();
61
+ try {
62
+ const utxos = await wallet.getPaymentUtxos();
63
+ console.log(utxos);
64
+ } catch (err) {
65
+ console.log(err);
66
+ }
67
+
68
+ [
69
+ {
70
+ satoshis: 205551
71
+ script: "76a914b681d8032b448405d44e82807fab2c8894eed57788ac"
72
+ txid: "c58e8b0dd25e56af0696b026c1961dccd0cab3fe42fb2f3ac934ebdc3accbb40"
73
+ vout: 0
74
+ },
75
+ {
76
+ satoshis: 19909
77
+ script: "76a914b681d8032b448405d44e82807fab2c8894eed57788ac"
78
+ txid: "4c52add57a2c9cda29501a810a1312eaee9423d28440a09acbf5d9d8d0467382"
79
+ vout: 0
80
+ }
81
+ ]//模拟的输出
82
+ ```
83
+
84
+ ### signMessage
85
+
86
+ ```tsx
87
+ const wallet = useTuringsWallet();
88
+ try{
89
+ const { address, pubKey, sig, message } = await wallet.signMessage({ message: "hello world", encoding: "base64" });//encoding可为utf-8,base64,hex
90
+ }catch(error){
91
+ console.log(err);
92
+ }
93
+
94
+ //本地验证签名
95
+ import * as tbc from "tbc-lib-js"
96
+
97
+ const msg_buf = Buffer.from(message,encoding);
98
+ const true/false = tbc.Message.verify(msg_buf,address,sig);
99
+ ```
100
+
101
+ ### sendTransaction
102
+
103
+ ```tsx
104
+ interface FTData {
105
+ ​ name :string;
106
+ symbol :string;
107
+ ​ decimal :number;
108
+ ​ amount :number;
109
+ };
110
+
111
+ interface CollectionData {
112
+ collectionName: string;
113
+ description: string;
114
+ supply: number;
115
+ file: string;//file为图片base64编码后数据
116
+ };
117
+
118
+ interface NFTData {
119
+ nftName: string;
120
+ symbol: string;
121
+ discription: string;
122
+ attributes: string;
123
+ file?: string;//file为图片base64编码后数据,若无则为引用合集图片
124
+ };
125
+
126
+ interface RequestParam = {
127
+ flag: "P2PKH" | "COLLECTION_CREATE" | "NFT_CREATE" | "NFT_TRANSFER" | "FT_MINT" | "FT_TRANSFER" | "POOLNFT_MINT" | "POOLNFT_INIT" | "POOLNFT_LP_INCREASE" |"POOLNFT_LP_CONSUME"| "POOLNFT_SWAP_TO_TOKEN" | "POOLNFT_SWAP_TO_TBC" | "POOLNFT_MERGE"|"FTLP_MERGE";
128
+ address?: string;//交易接收者地址
129
+ satoshis?: number;//单位为satoshis
130
+ collection_data?: string; //json格式传
131
+ ft_data?: string; //json格式传
132
+ nft_data?: string; //json格式传
133
+ collection_id?: string;
134
+ nft_contract_address?: string;
135
+ ft_contract_address?: string;
136
+ tbc_amount?: number;
137
+ ft_amount?: number;
138
+ merge_times?:number;
139
+ };
140
+
141
+ const params = [param:RequestParam] //目前参数里只能放一个对象,有批量发送需求再扩展
142
+ ```
143
+
144
+ #### P2PKH
145
+
146
+ ```
147
+ const params = [{
148
+ flag:"P2PKH",
149
+ satoshis: 1000,
150
+ address: "",
151
+ }] ;
152
+ const { txid, rawtx } = await wallet.sendTransaction(params);
153
+ ```
154
+
155
+ #### COLLECTION_CREATE
156
+
157
+ ```
158
+ const params = [{
159
+ flag:"COLLECTION_CREATE",
160
+ collection_data:"",
161
+ }];
162
+ const { txid, rawtx } = await wallet.sendTransaction(params);
163
+ ```
164
+
165
+ #### NFT_CREATE
166
+
167
+ ```
168
+ const params = [{
169
+ flag:"NFT_CREATE",
170
+ nft_data:"",
171
+ collection_id:""
172
+ }];
173
+ const { txid, rawtx } = await wallet.sendTransaction(params);
174
+ ```
175
+
176
+ #### NFT_TRANSFER
177
+
178
+ ```ts
179
+ const params = [{
180
+ flag:"NFT_TRANSFER",
181
+ nft_contract_address:"",
182
+ address:""
183
+ }];
184
+ const { txid, rawtx } = await wallet.sendTransaction(params);
185
+ ```
186
+
187
+ #### FT_MINT
188
+
189
+ ```
190
+ const params = [{
191
+ flag:"FT_MINT",
192
+ ft_data:""
193
+ }];
194
+ const { txid, rawtx } = await wallet.sendTransaction(params);
195
+ ```
196
+
197
+ #### FT_TRANSFER
198
+
199
+ ```
200
+ const params = [{
201
+ flag:"FT_TRANSFER",
202
+ ft_contract_address:"",
203
+ ft_amount:0.1,
204
+ address::""
205
+ }];
206
+ const { txid, rawtx } = await wallet.sendTransaction(params);
207
+ ```
208
+
209
+ #### POOLNFT_MINT
210
+
211
+ ```
212
+ const params = [{
213
+ flag:"POOLNFT_MINT",
214
+ ft_contract_address:"",
215
+ }];
216
+ const { txid, rawtx } = await wallet.sendTransaction(params);
217
+ ```
218
+
219
+ #### POOLNFT_INIT
220
+
221
+ ```
222
+ const params = [{
223
+ flag:"POOLNFT_INIT",
224
+ nft_contract_address:"",
225
+ address:"",
226
+ tbc_amount:30,
227
+ ft_amount:1000
228
+ }];
229
+ const { txid, rawtx } = await wallet.sendTransaction(params);
230
+ ```
231
+
232
+ #### POOLNFT_LP_INCREASE
233
+
234
+ ```
235
+ const params = [{
236
+ flag:"POOLNFT_LP_INCREASE",
237
+ nft_contract_address:"",
238
+ address:"",
239
+ tbc_amount:3
240
+ }];
241
+ const { txid, rawtx } = await wallet.sendTransaction(params);
242
+ ```
243
+
244
+ #### POOLNFT_LP_CONSUME
245
+
246
+ ```
247
+ const params = [{
248
+ flag:"POOLNFT_LP_CONSUME",
249
+ nft_contract_address:"",
250
+ address:""
251
+ ft_amount:100
252
+ }];
253
+ const { txid, rawtx } = await wallet.sendTransaction(params);
254
+ ```
255
+
256
+ #### POOLNFT_SWAP_TO_TOKEN
257
+
258
+ ```
259
+ const params = [{
260
+ flag:"POOLNFT_SWAP_TO_TOKEN",
261
+ nft_contract_address:"",
262
+ address:"",
263
+ tbc_amount:10
264
+ }];
265
+ const { txid, rawtx } = await wallet.sendTransaction(params);
266
+ ```
267
+
268
+ #### POOLNFT_SWAP_TO_TBC
269
+
270
+ ```
271
+ const params = [{
272
+ flag:"POOLNFT_SWAP_TO_TBC",
273
+ nft_contract_address:"",
274
+ address:"",
275
+ ft_amount:10
276
+ }];
277
+ const { txid, rawtx } = await wallet.sendTransaction(params);
278
+ ```
279
+
280
+ #### POOLNFT_MERGE
281
+
282
+ ```
283
+ const params = [{
284
+ flag:"POOLNFT_MERGE",
285
+ nft_contract_address:"",
286
+ merge_times:1; //1-10次
287
+ }];
288
+ const { txid, rawtx } = await wallet.sendTransaction(params);
289
+ ```
290
+
291
+ #### FTLP_MERGE
292
+
293
+ ```
294
+ const params = [{
295
+ flag:"POOLNFT_MERGE",
296
+ nft_contract_address:""
297
+ }];
298
+ const { txid, rawtx } = await wallet.sendTransaction(params);
299
+ ```
300
+
@@ -1,8 +1,8 @@
1
- import { ReactNode } from "react";
2
- import { TuringProviderType } from "../types/providerTypes"
3
- export declare const TuringContext: import("react").Context<TuringProviderType | undefined>;
4
- interface TuringProviderProps {
5
- children: ReactNode;
6
- }
7
- export declare const TuringProvider: (props: TuringProviderProps) => import("react/jsx-runtime").JSX.Element;
8
- export { };
1
+ import { ReactNode } from "react";
2
+ import { TuringProviderType } from "../types/providerTypes"
3
+ export declare const TuringContext: import("react").Context<TuringProviderType | undefined>;
4
+ interface TuringProviderProps {
5
+ children: ReactNode;
6
+ }
7
+ export declare const TuringProvider: (props: TuringProviderProps) => import("react/jsx-runtime").JSX.Element;
8
+ export { };
@@ -1,24 +1,24 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TuringProvider = exports.TuringContext = void 0;
4
- var jsx_runtime_1 = require("react/jsx-runtime");
5
- var react_1 = require("react");
6
- exports.TuringContext = (0, react_1.createContext)(undefined);
7
- var TuringProvider = function (props) {
8
- var children = props.children;
9
- // It takes a moment for the Turing wallet to get injected into the DOM. To use context we need an initial state;
10
- var _a = (0, react_1.useState)({ isReady: false }), TuringWallet = _a[0], setTuringWallet = _a[1];
11
- (0, react_1.useEffect)(function () {
12
- var checkTuringWallet = function () {
13
- var _a;
14
- if ("Turing" in window && ((_a = window.Turing) === null || _a === void 0 ? void 0 : _a.isReady)) {
15
- setTuringWallet(window.Turing);
16
- }
17
- };
18
- checkTuringWallet();
19
- var intervalId = setInterval(checkTuringWallet, 1000);
20
- return function () { return clearInterval(intervalId); };
21
- }, []);
22
- return ((0, jsx_runtime_1.jsx)(exports.TuringContext.Provider, { value: TuringWallet, children: children }));
23
- };
24
- exports.TuringProvider = TuringProvider;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TuringProvider = exports.TuringContext = void 0;
4
+ var jsx_runtime_1 = require("react/jsx-runtime");
5
+ var react_1 = require("react");
6
+ exports.TuringContext = (0, react_1.createContext)(undefined);
7
+ var TuringProvider = function (props) {
8
+ var children = props.children;
9
+ // It takes a moment for the Turing wallet to get injected into the DOM. To use context we need an initial state;
10
+ var _a = (0, react_1.useState)({ isReady: false }), TuringWallet = _a[0], setTuringWallet = _a[1];
11
+ (0, react_1.useEffect)(function () {
12
+ var checkTuringWallet = function () {
13
+ var _a;
14
+ if ("Turing" in window && ((_a = window.Turing) === null || _a === void 0 ? void 0 : _a.isReady)) {
15
+ setTuringWallet(window.Turing);
16
+ }
17
+ };
18
+ checkTuringWallet();
19
+ var intervalId = setInterval(checkTuringWallet, 1000);
20
+ return function () { return clearInterval(intervalId); };
21
+ }, []);
22
+ return ((0, jsx_runtime_1.jsx)(exports.TuringContext.Provider, { value: TuringWallet, children: children }));
23
+ };
24
+ exports.TuringProvider = TuringProvider;
@@ -1 +1 @@
1
- export declare const useTuringWallet: () => import("..").TuringProviderType;
1
+ export declare const useTuringWallet: () => import("..").TuringProviderType;
@@ -1,13 +1,13 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.useTuringWallet = void 0;
4
- var react_1 = require("react");
5
- var TuringWalletContext_1 = require("../context/TuringWalletContext");
6
- var useTuringWallet = function () {
7
- var context = (0, react_1.useContext)(TuringWalletContext_1.TuringContext);
8
- if (!context) {
9
- throw new Error("useTuringWallet must be used within a TuringProvider");
10
- }
11
- return context;
12
- };
13
- exports.useTuringWallet = useTuringWallet;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useTuringWallet = void 0;
4
+ var react_1 = require("react");
5
+ var TuringWalletContext_1 = require("../context/TuringWalletContext");
6
+ var useTuringWallet = function () {
7
+ var context = (0, react_1.useContext)(TuringWalletContext_1.TuringContext);
8
+ if (!context) {
9
+ throw new Error("useTuringWallet must be used within a TuringProvider");
10
+ }
11
+ return context;
12
+ };
13
+ exports.useTuringWallet = useTuringWallet;
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export * from "./context/TuringWalletContext";
2
- export * from "./hook/useTuringWallet";
3
- export * from "./types/providerTypes";
1
+ export * from "./context/TuringWalletContext";
2
+ export * from "./hook/useTuringWallet";
3
+ export * from "./types/providerTypes";
package/dist/index.js CHANGED
@@ -1,19 +1,19 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./context/TuringWalletContext"), exports);
18
- __exportStar(require("./hook/useTuringWallet"), exports);
19
- __exportStar(require("./types/providerTypes"), exports);
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./context/TuringWalletContext"), exports);
18
+ __exportStar(require("./hook/useTuringWallet"), exports);
19
+ __exportStar(require("./types/providerTypes"), exports);
@@ -1,65 +1,87 @@
1
- export type PubKey = {
2
- tbcPubKey: string;
3
- };
4
-
5
- export type Address = {
6
- tbcAddress: string;
7
- };
8
-
9
- export type Balance = {
10
- tbc: number;
11
- };
12
-
13
- export type SignedMessage = {
14
- address: string;
15
- pubKey: string;
16
- sig: string;
17
- message: string;
18
- };
19
-
20
- export type TransactionFlag = "P2PKH" | "COLLECTION_CREATE" | "NFT_CREATE" | "NFT_TRANSFER" | "FT_MINT" | "FT_TRANSFER" | "POOLNFT_MINT" | "POOLNFT_INIT" | "POOLNFT_LP_INCREASE" | "POOLNFT_LP_CONSUME" | "POOLNFT_SWAP_TO_TOKEN" | "POOLNFT_SWAP_TO_TBC" | "POOLNFT_MERGE" | "FTLP_MERGE";
21
-
22
- export type SendTransaction = {
23
- flag: TransactionFlag;
24
- satoshis?: number;
25
- address?: string;
26
- collection_data?: string;
27
- ft_data?: string;
28
- nft_data?: string;
29
- collection_id?: string;
30
- nft_contract_address?: string;
31
- ft_contract_address?: string;
32
- tbc_amount?: number;
33
- ft_amount?: number;
34
- merge_times?: number;
35
- };
36
-
37
- export type SignMessage = {
38
- message: string;
39
- encoding?: "utf8" | "hex" | "base64";
40
- };
41
-
42
- export type Utxos = {
43
- satoshis: number;
44
- script: string;
45
- txid: string;
46
- vout: number;
47
- };
48
-
49
- export type SendTransactionResponse = {
50
- txid: string;
51
- rawtx: string;
52
- };
53
-
54
- export type TuringProviderType = {
55
- isReady: boolean;
56
- connect: () => Promise<string | undefined>;
57
- disconnect: () => Promise<boolean>;
58
- isConnected: () => Promise<boolean>;
59
- getPubKey: () => Promise<PubKey | undefined>;
60
- getAddress: () => Promise<Address | undefined>;
61
- getBalance: () => Promise<Balance | undefined>;
62
- sendTransaction: (params: SendTransaction[]) => Promise<SendTransactionResponse | undefined>;
63
- signMessage: (params: SignMessage) => Promise<SignedMessage | undefined>;
64
- getPaymentUtxos: () => Promise<Utxos[] | undefined>;
65
- }
1
+ export type PubKey = {
2
+ tbcPubKey: string;
3
+ };
4
+
5
+ export type Address = {
6
+ tbcAddress: string;
7
+ };
8
+
9
+ export type Balance = {
10
+ tbc: number;
11
+ };
12
+
13
+ export type SignedMessage = {
14
+ address: string;
15
+ pubKey: string;
16
+ sig: string;
17
+ message: string;
18
+ };
19
+
20
+ export type TransactionFlag = "P2PKH" | "COLLECTION_CREATE" | "NFT_CREATE" | "NFT_TRANSFER" | "FT_MINT" | "FT_TRANSFER" | "POOLNFT_MINT" | "POOLNFT_INIT" | "POOLNFT_LP_INCREASE" | "POOLNFT_LP_CONSUME" | "POOLNFT_SWAP_TO_TOKEN" | "POOLNFT_SWAP_TO_TBC" | "POOLNFT_MERGE" | "FTLP_MERGE";
21
+
22
+ export type SendTransaction = {
23
+ flag: TransactionFlag;
24
+ satoshis?: number;
25
+ address?: string;
26
+ collection_data?: string;
27
+ ft_data?: string;
28
+ nft_data?: string;
29
+ collection_id?: string;
30
+ nft_contract_address?: string;
31
+ ft_contract_address?: string;
32
+ tbc_amount?: number;
33
+ ft_amount?: number;
34
+ merge_times?: number;
35
+ };
36
+
37
+ export type SignMessage = {
38
+ message: string;
39
+ encoding?: "utf8" | "hex" | "base64";
40
+ };
41
+
42
+ export type Utxos = {
43
+ satoshis: number;
44
+ script: string;
45
+ txid: string;
46
+ vout: number;
47
+ };
48
+
49
+ export type SendTransactionResponse = {
50
+ txid: string;
51
+ rawtx: string;
52
+ };
53
+
54
+ export type Encrypt = {
55
+ message: string;
56
+ pubKey: string;
57
+ encoding?: 'utf8' | 'hex' | 'base64';
58
+ };
59
+
60
+ export type Decrypt = {
61
+ message: string;
62
+ encoding?: 'utf8' | 'hex' | 'base64';
63
+ };
64
+
65
+ export type EncryptResponse = {
66
+ encryptedMessage: string;
67
+ };
68
+
69
+ export type DecryptResponse = {
70
+ decryptedMessage: string;
71
+ };
72
+
73
+
74
+ export type TuringProviderType = {
75
+ isReady: boolean;
76
+ connect: () => Promise<string | undefined>;
77
+ disconnect: () => Promise<boolean>;
78
+ isConnected: () => Promise<boolean>;
79
+ getPubKey: () => Promise<PubKey | undefined>;
80
+ getAddress: () => Promise<Address | undefined>;
81
+ getBalance: () => Promise<Balance | undefined>;
82
+ sendTransaction: (params: SendTransaction[]) => Promise<SendTransactionResponse | undefined>;
83
+ signMessage: (params: SignMessage) => Promise<SignedMessage | undefined>;
84
+ getPaymentUtxos: () => Promise<Utxos[] | undefined>;
85
+ encrypt: (params: Encrypt) => Promise<EncryptResponse | undefined>;
86
+ decrypt: (params: Decrypt) => Promise<DecryptResponse | undefined>;
87
+ }
@@ -1,9 +1,9 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Tbc20Status = void 0;
4
- var Tbc20Status;
5
- (function (Tbc20Status) {
6
- Tbc20Status[Tbc20Status["Invalid"] = -1] = "Invalid";
7
- Tbc20Status[Tbc20Status["Pending"] = 0] = "Pending";
8
- Tbc20Status[Tbc20Status["Valid"] = 1] = "Valid";
9
- })(Tbc20Status || (exports.Tbc20Status = Tbc20Status = {}));
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Tbc20Status = void 0;
4
+ var Tbc20Status;
5
+ (function (Tbc20Status) {
6
+ Tbc20Status[Tbc20Status["Invalid"] = -1] = "Invalid";
7
+ Tbc20Status[Tbc20Status["Pending"] = 0] = "Pending";
8
+ Tbc20Status[Tbc20Status["Valid"] = 1] = "Valid";
9
+ })(Tbc20Status || (exports.Tbc20Status = Tbc20Status = {}));
package/package.json CHANGED
@@ -1,31 +1,31 @@
1
- {
2
- "name": "turing-wallet-provider",
3
- "version": "1.0.11",
4
- "main": "dist/index.js",
5
- "types": "dist/index.d.ts",
6
- "files": [
7
- "dist"
8
- ],
9
- "scripts": {
10
- "build": "tsc"
11
- },
12
- "peerDependencies": {
13
- "react": ">=17.0.0",
14
- "react-dom": ">=17.0.0"
15
- },
16
- "devDependencies": {
17
- "typescript": "^4.5.0",
18
- "@types/react": "^17.0.0",
19
- "@types/react-dom": "^17.0.0"
20
- },
21
- "keywords": [
22
- "wallet",
23
- "turing",
24
- "tbc",
25
- "bitcoin",
26
- "turing wallet"
27
- ],
28
- "author": "Joe",
29
- "license": "ISC",
30
- "description": "A provider that makes interacting with Turing Wallet a walk in the park."
1
+ {
2
+ "name": "turing-wallet-provider",
3
+ "version": "1.0.13",
4
+ "main": "dist/index.js",
5
+ "types": "dist/index.d.ts",
6
+ "files": [
7
+ "dist"
8
+ ],
9
+ "scripts": {
10
+ "build": "tsc"
11
+ },
12
+ "peerDependencies": {
13
+ "react": ">=17.0.0",
14
+ "react-dom": ">=17.0.0"
15
+ },
16
+ "devDependencies": {
17
+ "typescript": "^4.5.0",
18
+ "@types/react": "^17.0.0",
19
+ "@types/react-dom": "^17.0.0"
20
+ },
21
+ "keywords": [
22
+ "wallet",
23
+ "turing",
24
+ "tbc",
25
+ "bitcoin",
26
+ "turing wallet"
27
+ ],
28
+ "author": "Joe",
29
+ "license": "ISC",
30
+ "description": "A provider that makes interacting with Turing Wallet a walk in the park."
31
31
  }