@xyo-network/wallet 2.22.14 → 2.22.18

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/dist/docs.json CHANGED
@@ -5,442 +5,12 @@
5
5
  "kindString": "Project",
6
6
  "flags": {},
7
7
  "originalName": "",
8
- "children": [
9
- {
10
- "id": 1,
11
- "name": "XyoWalletBase",
12
- "kind": 128,
13
- "kindString": "Class",
14
- "flags": {},
15
- "children": [
16
- {
17
- "id": 4,
18
- "name": "constructor",
19
- "kind": 512,
20
- "kindString": "Constructor",
21
- "flags": {},
22
- "sources": [
23
- {
24
- "fileName": "Wallet/Base/Base.ts",
25
- "line": 10,
26
- "character": 2,
27
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/73d1c39/packages/wallet/src/Wallet/Base/Base.ts#L10"
28
- }
29
- ],
30
- "signatures": [
31
- {
32
- "id": 5,
33
- "name": "new XyoWalletBase",
34
- "kind": 16384,
35
- "kindString": "Constructor signature",
36
- "flags": {},
37
- "parameters": [
38
- {
39
- "id": 6,
40
- "name": "phrase",
41
- "kind": 32768,
42
- "kindString": "Parameter",
43
- "flags": {},
44
- "type": {
45
- "type": "intrinsic",
46
- "name": "string"
47
- }
48
- },
49
- {
50
- "id": 7,
51
- "name": "name",
52
- "kind": 32768,
53
- "kindString": "Parameter",
54
- "flags": {},
55
- "type": {
56
- "type": "intrinsic",
57
- "name": "string"
58
- },
59
- "defaultValue": "'xyoWallet'"
60
- }
61
- ],
62
- "type": {
63
- "type": "reference",
64
- "id": 1,
65
- "name": "XyoWalletBase"
66
- }
67
- }
68
- ]
69
- },
70
- {
71
- "id": 9,
72
- "name": "_name",
73
- "kind": 1024,
74
- "kindString": "Property",
75
- "flags": {
76
- "isProtected": true
77
- },
78
- "sources": [
79
- {
80
- "fileName": "Wallet/Base/Base.ts",
81
- "line": 9,
82
- "character": 12,
83
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/73d1c39/packages/wallet/src/Wallet/Base/Base.ts#L9"
84
- }
85
- ],
86
- "type": {
87
- "type": "intrinsic",
88
- "name": "string"
89
- }
90
- },
91
- {
92
- "id": 8,
93
- "name": "_phrase",
94
- "kind": 1024,
95
- "kindString": "Property",
96
- "flags": {
97
- "isProtected": true
98
- },
99
- "sources": [
100
- {
101
- "fileName": "Wallet/Base/Base.ts",
102
- "line": 8,
103
- "character": 12,
104
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/73d1c39/packages/wallet/src/Wallet/Base/Base.ts#L8"
105
- }
106
- ],
107
- "type": {
108
- "type": "intrinsic",
109
- "name": "string"
110
- }
111
- },
112
- {
113
- "id": 10,
114
- "name": "getAccount",
115
- "kind": 2048,
116
- "kindString": "Method",
117
- "flags": {
118
- "isPublic": true
119
- },
120
- "sources": [
121
- {
122
- "fileName": "Wallet/Base/Base.ts",
123
- "line": 15,
124
- "character": 9,
125
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/73d1c39/packages/wallet/src/Wallet/Base/Base.ts#L15"
126
- }
127
- ],
128
- "signatures": [
129
- {
130
- "id": 11,
131
- "name": "getAccount",
132
- "kind": 4096,
133
- "kindString": "Call signature",
134
- "flags": {},
135
- "parameters": [
136
- {
137
- "id": 12,
138
- "name": "index",
139
- "kind": 32768,
140
- "kindString": "Parameter",
141
- "flags": {},
142
- "type": {
143
- "type": "intrinsic",
144
- "name": "number"
145
- }
146
- },
147
- {
148
- "id": 13,
149
- "name": "salt",
150
- "kind": 32768,
151
- "kindString": "Parameter",
152
- "flags": {
153
- "isOptional": true
154
- },
155
- "type": {
156
- "type": "intrinsic",
157
- "name": "string"
158
- }
159
- }
160
- ],
161
- "type": {
162
- "type": "reference",
163
- "name": "XyoAccount"
164
- }
165
- }
166
- ]
167
- },
168
- {
169
- "id": 2,
170
- "name": "generate",
171
- "kind": 2048,
172
- "kindString": "Method",
173
- "flags": {
174
- "isPublic": true,
175
- "isStatic": true
176
- },
177
- "sources": [
178
- {
179
- "fileName": "Wallet/Base/Base.ts",
180
- "line": 23,
181
- "character": 22,
182
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/73d1c39/packages/wallet/src/Wallet/Base/Base.ts#L23"
183
- }
184
- ],
185
- "signatures": [
186
- {
187
- "id": 3,
188
- "name": "generate",
189
- "kind": 4096,
190
- "kindString": "Call signature",
191
- "flags": {},
192
- "type": {
193
- "type": "reference",
194
- "typeArguments": [
195
- {
196
- "type": "reference",
197
- "id": 1,
198
- "name": "XyoWalletBase"
199
- }
200
- ],
201
- "name": "Promise",
202
- "qualifiedName": "Promise",
203
- "package": "typescript"
204
- }
205
- }
206
- ]
207
- }
208
- ],
209
- "groups": [
210
- {
211
- "title": "Constructors",
212
- "children": [
213
- 4
214
- ]
215
- },
216
- {
217
- "title": "Properties",
218
- "children": [
219
- 9,
220
- 8
221
- ]
222
- },
223
- {
224
- "title": "Methods",
225
- "children": [
226
- 10,
227
- 2
228
- ]
229
- }
230
- ],
231
- "sources": [
232
- {
233
- "fileName": "Wallet/Base/Base.ts",
234
- "line": 7,
235
- "character": 13,
236
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/73d1c39/packages/wallet/src/Wallet/Base/Base.ts#L7"
237
- }
238
- ]
239
- },
240
- {
241
- "id": 15,
242
- "name": "XyoWordsPayload",
243
- "kind": 256,
244
- "kindString": "Interface",
245
- "flags": {},
246
- "children": [
247
- {
248
- "id": 18,
249
- "name": "previousHash",
250
- "kind": 1024,
251
- "kindString": "Property",
252
- "flags": {
253
- "isOptional": true
254
- },
255
- "sources": [
256
- {
257
- "fileName": "../../payload/dist/esm/models/Base.d.ts",
258
- "line": 3,
259
- "character": 4
260
- }
261
- ],
262
- "type": {
263
- "type": "intrinsic",
264
- "name": "string"
265
- },
266
- "inheritedFrom": {
267
- "type": "reference",
268
- "name": "XyoPayload.previousHash"
269
- }
270
- },
271
- {
272
- "id": 17,
273
- "name": "schema",
274
- "kind": 1024,
275
- "kindString": "Property",
276
- "flags": {},
277
- "sources": [
278
- {
279
- "fileName": "../../payload/dist/esm/models/Base.d.ts",
280
- "line": 2,
281
- "character": 4
282
- }
283
- ],
284
- "type": {
285
- "type": "intrinsic",
286
- "name": "string"
287
- },
288
- "inheritedFrom": {
289
- "type": "reference",
290
- "name": "XyoPayload.schema"
291
- }
292
- },
293
- {
294
- "id": 19,
295
- "name": "sources",
296
- "kind": 1024,
297
- "kindString": "Property",
298
- "flags": {
299
- "isOptional": true
300
- },
301
- "sources": [
302
- {
303
- "fileName": "../../payload/dist/esm/models/Base.d.ts",
304
- "line": 4,
305
- "character": 4
306
- }
307
- ],
308
- "type": {
309
- "type": "array",
310
- "elementType": {
311
- "type": "intrinsic",
312
- "name": "string"
313
- }
314
- },
315
- "inheritedFrom": {
316
- "type": "reference",
317
- "name": "XyoPayload.sources"
318
- }
319
- },
320
- {
321
- "id": 20,
322
- "name": "timestamp",
323
- "kind": 1024,
324
- "kindString": "Property",
325
- "flags": {
326
- "isOptional": true
327
- },
328
- "sources": [
329
- {
330
- "fileName": "../../payload/dist/esm/models/Base.d.ts",
331
- "line": 5,
332
- "character": 4
333
- }
334
- ],
335
- "type": {
336
- "type": "intrinsic",
337
- "name": "number"
338
- },
339
- "inheritedFrom": {
340
- "type": "reference",
341
- "name": "XyoPayload.timestamp"
342
- }
343
- },
344
- {
345
- "id": 16,
346
- "name": "words",
347
- "kind": 1024,
348
- "kindString": "Property",
349
- "flags": {},
350
- "sources": [
351
- {
352
- "fileName": "Words/WordsPayload.ts",
353
- "line": 4,
354
- "character": 2,
355
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/73d1c39/packages/wallet/src/Words/WordsPayload.ts#L4"
356
- }
357
- ],
358
- "type": {
359
- "type": "array",
360
- "elementType": {
361
- "type": "intrinsic",
362
- "name": "string"
363
- }
364
- }
365
- }
366
- ],
367
- "groups": [
368
- {
369
- "title": "Properties",
370
- "children": [
371
- 18,
372
- 17,
373
- 19,
374
- 20,
375
- 16
376
- ]
377
- }
378
- ],
379
- "sources": [
380
- {
381
- "fileName": "Words/WordsPayload.ts",
382
- "line": 3,
383
- "character": 17,
384
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/73d1c39/packages/wallet/src/Words/WordsPayload.ts#L3"
385
- }
386
- ],
387
- "extendedTypes": [
388
- {
389
- "type": "reference",
390
- "name": "XyoPayload"
391
- }
392
- ]
393
- },
394
- {
395
- "id": 14,
396
- "name": "Words",
397
- "kind": 32,
398
- "kindString": "Variable",
399
- "flags": {
400
- "isConst": true
401
- },
402
- "sources": [
403
- {
404
- "fileName": "Words/Words.ts",
405
- "line": 5,
406
- "character": 13,
407
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/73d1c39/packages/wallet/src/Words/Words.ts#L5"
408
- }
409
- ],
410
- "type": {
411
- "type": "reference",
412
- "id": 15,
413
- "name": "XyoWordsPayload"
414
- },
415
- "defaultValue": "..."
416
- }
417
- ],
418
- "groups": [
419
- {
420
- "title": "Classes",
421
- "children": [
422
- 1
423
- ]
424
- },
425
- {
426
- "title": "Interfaces",
427
- "children": [
428
- 15
429
- ]
430
- },
431
- {
432
- "title": "Variables",
433
- "children": [
434
- 14
435
- ]
436
- }
437
- ],
438
8
  "sources": [
439
9
  {
440
10
  "fileName": "index.ts",
441
11
  "line": 1,
442
12
  "character": 0,
443
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/73d1c39/packages/wallet/src/index.ts#L1"
13
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/13fc73a/packages/wallet/src/index.ts#L1"
444
14
  }
445
15
  ]
446
16
  }
package/package.json CHANGED
@@ -11,8 +11,8 @@
11
11
  },
12
12
  "dependencies": {
13
13
  "@xylabs/sdk-js": "^2.6.2",
14
- "@xyo-network/account": "^2.22.14",
15
- "@xyo-network/payload": "^2.22.14",
14
+ "@xyo-network/account": "^2.22.18",
15
+ "@xyo-network/payload": "^2.22.18",
16
16
  "sha.js": "^2.4.11"
17
17
  },
18
18
  "description": "Primary SDK for using XYO Protocol 2.0",
@@ -50,8 +50,8 @@
50
50
  "type": "git",
51
51
  "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js.git"
52
52
  },
53
- "sideEffects": true,
53
+ "sideEffects": false,
54
54
  "types": "dist/esm/index.d.ts",
55
- "version": "2.22.14",
55
+ "version": "2.22.18",
56
56
  "packageManager": "yarn@3.1.1"
57
57
  }
@@ -1,5 +0,0 @@
1
- import { XyoWalletBase } from '../Wallet';
2
- export declare class XyoWebWallet extends XyoWalletBase {
3
- static load(name?: string): XyoWalletBase;
4
- save(): void;
5
- }
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.XyoWebWallet = void 0;
4
- const sdk_js_1 = require("@xylabs/sdk-js");
5
- const Wallet_1 = require("../Wallet");
6
- class XyoWebWallet extends Wallet_1.XyoWalletBase {
7
- static load(name = 'xyoWallet') {
8
- return new Wallet_1.XyoWalletBase((0, sdk_js_1.assertEx)(localStorage.getItem(name), 'No stored wallet found'), name);
9
- }
10
- save() {
11
- localStorage.setItem(this._name, this._phrase);
12
- }
13
- }
14
- exports.XyoWebWallet = XyoWebWallet;
15
- //# sourceMappingURL=Web.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Web.js","sourceRoot":"","sources":["../../../src/WebWallet/Web.ts"],"names":[],"mappings":";;;AAAA,2CAAyC;AAEzC,sCAAyC;AAEzC,MAAa,YAAa,SAAQ,sBAAa;IACtC,MAAM,CAAC,IAAI,CAAC,IAAI,GAAG,WAAW;QACnC,OAAO,IAAI,sBAAa,CAAC,IAAA,iBAAQ,EAAC,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,wBAAwB,CAAC,EAAE,IAAI,CAAC,CAAA;IAChG,CAAC;IAEM,IAAI;QACT,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,CAAA;IAChD,CAAC;CACF;AARD,oCAQC"}
@@ -1 +0,0 @@
1
- export * from './Web';
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./Web"), exports);
5
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/WebWallet/index.ts"],"names":[],"mappings":";;;AAAA,gDAAqB"}
@@ -1,5 +0,0 @@
1
- import { XyoWalletBase } from '../Wallet';
2
- export declare class XyoWebWallet extends XyoWalletBase {
3
- static load(name?: string): XyoWalletBase;
4
- save(): void;
5
- }
@@ -1,11 +0,0 @@
1
- import { assertEx } from '@xylabs/sdk-js';
2
- import { XyoWalletBase } from '../Wallet';
3
- export class XyoWebWallet extends XyoWalletBase {
4
- static load(name = 'xyoWallet') {
5
- return new XyoWalletBase(assertEx(localStorage.getItem(name), 'No stored wallet found'), name);
6
- }
7
- save() {
8
- localStorage.setItem(this._name, this._phrase);
9
- }
10
- }
11
- //# sourceMappingURL=Web.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Web.js","sourceRoot":"","sources":["../../../src/WebWallet/Web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAEzC,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAEzC,MAAM,OAAO,YAAa,SAAQ,aAAa;IACtC,MAAM,CAAC,IAAI,CAAC,IAAI,GAAG,WAAW;QACnC,OAAO,IAAI,aAAa,CAAC,QAAQ,CAAC,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,wBAAwB,CAAC,EAAE,IAAI,CAAC,CAAA;IAChG,CAAC;IAEM,IAAI;QACT,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,CAAA;IAChD,CAAC;CACF"}
@@ -1 +0,0 @@
1
- export * from './Web';
@@ -1,2 +0,0 @@
1
- export * from './Web';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/WebWallet/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAA"}