@actioncodes/protocol 1.0.0 → 1.0.1
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/actioncode.d.ts +13 -12
- package/dist/actioncode.d.ts.map +1 -1
- package/dist/actioncode.js +13 -5
- package/dist/adapters/base.d.ts +17 -0
- package/dist/adapters/base.d.ts.map +1 -1
- package/dist/adapters/base.js +11 -0
- package/dist/adapters/solana/solana.d.ts +2 -0
- package/dist/adapters/solana/solana.d.ts.map +1 -1
- package/dist/adapters/solana/solana.js +49 -2
- package/dist/codegen.d.ts +3 -13
- package/dist/codegen.d.ts.map +1 -1
- package/dist/codegen.js +6 -18
- package/dist/protocol.d.ts +14 -14
- package/dist/protocol.d.ts.map +1 -1
- package/dist/protocol.js +39 -30
- package/docs/actioncode/classes/ActionCode.md +51 -65
- package/docs/actioncode/interfaces/ActionCodeFields.md +13 -19
- package/docs/actioncode/interfaces/ActionCodeMetadata.md +3 -3
- package/docs/actioncode/interfaces/ActionCodeTransaction.md +6 -12
- package/docs/actioncode/type-aliases/ActionCodeStatus.md +1 -1
- package/docs/adapters/base/classes/BaseChainAdapter.md +70 -8
- package/docs/adapters/solana/solana/classes/SolanaAdapter.md +80 -10
- package/docs/adapters/solana/solana/type-aliases/SolanaTransaction.md +1 -1
- package/docs/codegen/classes/CodeGenerator.md +15 -63
- package/docs/constants/type-aliases/SupportedChain.md +1 -1
- package/docs/constants/variables/CODE_LENGTH.md +1 -1
- package/docs/constants/variables/CODE_TTL.md +1 -1
- package/docs/constants/variables/MAX_PREFIX_LENGTH.md +1 -1
- package/docs/constants/variables/MIN_PREFIX_LENGTH.md +1 -1
- package/docs/constants/variables/PROTOCOL_CODE_PREFIX.md +1 -1
- package/docs/constants/variables/PROTOCOL_PREFIX.md +1 -1
- package/docs/constants/variables/PROTOCOL_VERSION.md +1 -1
- package/docs/constants/variables/SUPPORTED_CHAINS.md +1 -1
- package/docs/meta/classes/ProtocolMetaParser.md +6 -6
- package/docs/meta/interfaces/ProtocolMetaV1.md +7 -7
- package/docs/protocol/classes/ActionCodesProtocol.md +76 -76
- package/docs/protocol/interfaces/ProtocolConfig.md +7 -7
- package/package.json +2 -1
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
# Class: ActionCodesProtocol
|
8
8
|
|
9
|
-
Defined in: [protocol.ts:31](https://github.com/otaprotocol/actioncodes/blob/
|
9
|
+
Defined in: [protocol.ts:31](https://github.com/otaprotocol/actioncodes/blob/fa975e9d2d8d3ff72314243f62c7c4bd689877da/src/protocol.ts#L31)
|
10
10
|
|
11
11
|
OTA Protocol - Main entry point for the One-Time Action Code Protocol
|
12
12
|
|
@@ -19,7 +19,7 @@ action codes across multiple blockchain networks.
|
|
19
19
|
|
20
20
|
> **new ActionCodesProtocol**(`config?`): `ActionCodesProtocol`
|
21
21
|
|
22
|
-
Defined in: [protocol.ts:35](https://github.com/otaprotocol/actioncodes/blob/
|
22
|
+
Defined in: [protocol.ts:35](https://github.com/otaprotocol/actioncodes/blob/fa975e9d2d8d3ff72314243f62c7c4bd689877da/src/protocol.ts#L35)
|
23
23
|
|
24
24
|
#### Parameters
|
25
25
|
|
@@ -35,9 +35,9 @@ Defined in: [protocol.ts:35](https://github.com/otaprotocol/actioncodes/blob/b4b
|
|
35
35
|
|
36
36
|
### attachTransaction()
|
37
37
|
|
38
|
-
> **attachTransaction**(`actionCode`, `transaction`, `txType?`): [`ActionCode`](../../actioncode/classes/ActionCode.md)
|
38
|
+
> **attachTransaction**(`actionCode`, `transaction`, `txType?`): [`ActionCode`](../../actioncode/classes/ActionCode.md)
|
39
39
|
|
40
|
-
Defined in: [protocol.ts:
|
40
|
+
Defined in: [protocol.ts:161](https://github.com/otaprotocol/actioncodes/blob/fa975e9d2d8d3ff72314243f62c7c4bd689877da/src/protocol.ts#L161)
|
41
41
|
|
42
42
|
Attach a transaction to an action code
|
43
43
|
|
@@ -45,7 +45,7 @@ Attach a transaction to an action code
|
|
45
45
|
|
46
46
|
##### actionCode
|
47
47
|
|
48
|
-
[`ActionCode`](../../actioncode/classes/ActionCode.md)
|
48
|
+
[`ActionCode`](../../actioncode/classes/ActionCode.md)
|
49
49
|
|
50
50
|
ActionCode to attach transaction to
|
51
51
|
|
@@ -63,17 +63,65 @@ Optional transaction type
|
|
63
63
|
|
64
64
|
#### Returns
|
65
65
|
|
66
|
-
[`ActionCode`](../../actioncode/classes/ActionCode.md)
|
66
|
+
[`ActionCode`](../../actioncode/classes/ActionCode.md)
|
67
67
|
|
68
68
|
Updated ActionCode
|
69
69
|
|
70
70
|
***
|
71
71
|
|
72
|
+
### createActionCode()
|
73
|
+
|
74
|
+
> **createActionCode**(`pubkey`, `signFn`, `chain`, `prefix`, `timestamp?`): `Promise`\<[`ActionCode`](../../actioncode/classes/ActionCode.md)\>
|
75
|
+
|
76
|
+
Defined in: [protocol.ts:111](https://github.com/otaprotocol/actioncodes/blob/fa975e9d2d8d3ff72314243f62c7c4bd689877da/src/protocol.ts#L111)
|
77
|
+
|
78
|
+
Create an action code
|
79
|
+
|
80
|
+
#### Parameters
|
81
|
+
|
82
|
+
##### pubkey
|
83
|
+
|
84
|
+
`string`
|
85
|
+
|
86
|
+
Wallet public key
|
87
|
+
|
88
|
+
##### signFn
|
89
|
+
|
90
|
+
(`message`) => `Promise`\<`string`\>
|
91
|
+
|
92
|
+
Chain-specific signing function (e.g.wallet.signMessage)
|
93
|
+
|
94
|
+
##### chain
|
95
|
+
|
96
|
+
`"solana"`
|
97
|
+
|
98
|
+
Target blockchain
|
99
|
+
|
100
|
+
##### prefix
|
101
|
+
|
102
|
+
`string` = `...`
|
103
|
+
|
104
|
+
Optional code prefix
|
105
|
+
|
106
|
+
##### timestamp?
|
107
|
+
|
108
|
+
`number`
|
109
|
+
|
110
|
+
Optional timestamp
|
111
|
+
|
112
|
+
#### Returns
|
113
|
+
|
114
|
+
`Promise`\<[`ActionCode`](../../actioncode/classes/ActionCode.md)\>
|
115
|
+
|
116
|
+
Promise resolving to a complete ActionCode object
|
117
|
+
|
118
|
+
***
|
119
|
+
|
72
120
|
### createProtocolMeta()
|
73
121
|
|
74
122
|
> **createProtocolMeta**(`actionCode`, `issuer?`, `params?`): [`ProtocolMetaV1`](../../meta/interfaces/ProtocolMetaV1.md)
|
75
123
|
|
76
|
-
Defined in: [protocol.ts:
|
124
|
+
Defined in: [protocol.ts:226](https://github.com/otaprotocol/actioncodes/blob/fa975e9d2d8d3ff72314243f62c7c4bd689877da/src/protocol.ts#L226)
|
77
125
|
|
78
126
|
Create protocol meta for a transaction
|
79
127
|
|
@@ -81,7 +129,7 @@ Create protocol meta for a transaction
|
|
81
129
|
|
82
130
|
##### actionCode
|
83
131
|
|
84
|
-
[`ActionCode`](../../actioncode/classes/ActionCode.md)
|
132
|
+
[`ActionCode`](../../actioncode/classes/ActionCode.md)
|
85
133
|
|
86
134
|
ActionCode to create meta for
|
87
135
|
|
@@ -109,7 +157,7 @@ ProtocolMetaV1 object
|
|
109
157
|
|
110
158
|
> **decodeProtocolMeta**(`transaction`, `chain`): `null` \| [`ProtocolMetaV1`](../../meta/interfaces/ProtocolMetaV1.md)
|
111
159
|
|
112
|
-
Defined in: [protocol.ts:
|
160
|
+
Defined in: [protocol.ts:260](https://github.com/otaprotocol/actioncodes/blob/fa975e9d2d8d3ff72314243f62c7c4bd689877da/src/protocol.ts#L260)
|
113
161
|
|
114
162
|
Decode protocol meta from a transaction
|
115
163
|
|
@@ -139,7 +187,7 @@ Decoded ProtocolMetaV1 or null
|
|
139
187
|
|
140
188
|
> **decodeProtocolMetaTyped**\<`T`\>(`transaction`, `chain`): `null` \| [`ProtocolMetaV1`](../../meta/interfaces/ProtocolMetaV1.md)
|
141
189
|
|
142
|
-
Defined in: [protocol.ts:
|
190
|
+
Defined in: [protocol.ts:341](https://github.com/otaprotocol/actioncodes/blob/fa975e9d2d8d3ff72314243f62c7c4bd689877da/src/protocol.ts#L341)
|
143
191
|
|
144
192
|
Decode protocol meta with type safety
|
145
193
|
|
@@ -175,7 +223,7 @@ Decoded ProtocolMetaV1 or null
|
|
175
223
|
|
176
224
|
> **detectTampering**\<`T`\>(`transaction`, `chain`, `authorities`, `expectedPrefix?`): `boolean`
|
177
225
|
|
178
|
-
Defined in: [protocol.ts:
|
226
|
+
Defined in: [protocol.ts:321](https://github.com/otaprotocol/actioncodes/blob/fa975e9d2d8d3ff72314243f62c7c4bd689877da/src/protocol.ts#L321)
|
179
227
|
|
180
228
|
Detect tampered transactions with type safety
|
181
229
|
|
@@ -223,7 +271,7 @@ True if transaction is valid and not tampered
|
|
223
271
|
|
224
272
|
> **encodeProtocolMeta**(`meta`, `chain`): `any`
|
225
273
|
|
226
|
-
Defined in: [protocol.ts:
|
274
|
+
Defined in: [protocol.ts:245](https://github.com/otaprotocol/actioncodes/blob/fa975e9d2d8d3ff72314243f62c7c4bd689877da/src/protocol.ts#L245)
|
227
275
|
|
228
276
|
Encode protocol meta for a specific chain
|
229
277
|
|
@@ -251,9 +299,9 @@ Chain-specific encoded meta
|
|
251
299
|
|
252
300
|
### finalizeActionCode()
|
253
301
|
|
254
|
-
> **finalizeActionCode**(`actionCode`, `txSignature`): [`ActionCode`](../../actioncode/classes/ActionCode.md)
|
302
|
+
> **finalizeActionCode**(`actionCode`, `txSignature`): [`ActionCode`](../../actioncode/classes/ActionCode.md)
|
255
303
|
|
256
|
-
Defined in: [protocol.ts:
|
304
|
+
Defined in: [protocol.ts:194](https://github.com/otaprotocol/actioncodes/blob/fa975e9d2d8d3ff72314243f62c7c4bd689877da/src/protocol.ts#L194)
|
257
305
|
|
258
306
|
Finalize an action code with transaction signature
|
259
307
|
|
@@ -261,7 +309,7 @@ Finalize an action code with transaction signature
|
|
261
309
|
|
262
310
|
##### actionCode
|
263
311
|
|
264
|
-
[`ActionCode`](../../actioncode/classes/ActionCode.md)
|
312
|
+
[`ActionCode`](../../actioncode/classes/ActionCode.md)
|
265
313
|
|
266
314
|
ActionCode to finalize
|
267
315
|
|
@@ -273,65 +321,17 @@ Transaction signature
|
|
273
321
|
|
274
322
|
#### Returns
|
275
323
|
|
276
|
-
[`ActionCode`](../../actioncode/classes/ActionCode.md)
|
324
|
+
[`ActionCode`](../../actioncode/classes/ActionCode.md)
|
277
325
|
|
278
326
|
Updated ActionCode
|
279
327
|
|
280
328
|
***
|
281
329
|
|
282
|
-
### generateActionCode()
|
283
|
-
|
284
|
-
> **generateActionCode**(`pubkey`, `signature`, `chain`, `prefix?`, `timestamp?`): [`ActionCode`](../../actioncode/classes/ActionCode.md)\<`string`\>
|
285
|
-
|
286
|
-
Defined in: [protocol.ts:90](https://github.com/otaprotocol/actioncodes/blob/b4bc06f6d42b5f06660c6f068ac123b4cd9daff7/src/protocol.ts#L90)
|
287
|
-
|
288
|
-
Generate an action code for a specific chain
|
289
|
-
|
290
|
-
#### Parameters
|
291
|
-
|
292
|
-
##### pubkey
|
293
|
-
|
294
|
-
`string`
|
295
|
-
|
296
|
-
User's public key
|
297
|
-
|
298
|
-
##### signature
|
299
|
-
|
300
|
-
`string`
|
301
|
-
|
302
|
-
User's signature
|
303
|
-
|
304
|
-
##### chain
|
305
|
-
|
306
|
-
`"solana"`
|
307
|
-
|
308
|
-
Target chain
|
309
|
-
|
310
|
-
##### prefix?
|
311
|
-
|
312
|
-
`string`
|
313
|
-
|
314
|
-
Optional prefix (defaults to config defaultPrefix)
|
315
|
-
|
316
|
-
##### timestamp?
|
317
|
-
|
318
|
-
`number`
|
319
|
-
|
320
|
-
Optional timestamp (defaults to now)
|
321
|
-
|
322
|
-
#### Returns
|
323
|
-
|
324
|
-
[`ActionCode`](../../actioncode/classes/ActionCode.md)\<`string`\>
|
325
|
-
|
326
|
-
ActionCode object
|
327
|
-
|
328
|
-
***
|
329
|
-
|
330
330
|
### getChainAdapter()
|
331
331
|
|
332
332
|
> **getChainAdapter**\<`T`\>(`chain`): `undefined` \| [`BaseChainAdapter`](../../adapters/base/classes/BaseChainAdapter.md)\<`T`\>
|
333
333
|
|
334
|
-
Defined in: [protocol.ts:77](https://github.com/otaprotocol/actioncodes/blob/
|
334
|
+
Defined in: [protocol.ts:77](https://github.com/otaprotocol/actioncodes/blob/fa975e9d2d8d3ff72314243f62c7c4bd689877da/src/protocol.ts#L77)
|
335
335
|
|
336
336
|
Get chain adapter with proper typing
|
337
337
|
|
@@ -361,7 +361,7 @@ Chain adapter or undefined
|
|
361
361
|
|
362
362
|
> **getConfig**(): [`ProtocolConfig`](../interfaces/ProtocolConfig.md)
|
363
363
|
|
364
|
-
Defined in: [protocol.ts:
|
364
|
+
Defined in: [protocol.ts:354](https://github.com/otaprotocol/actioncodes/blob/fa975e9d2d8d3ff72314243f62c7c4bd689877da/src/protocol.ts#L354)
|
365
365
|
|
366
366
|
Get protocol configuration
|
367
367
|
|
@@ -377,7 +377,7 @@ Current protocol configuration
|
|
377
377
|
|
378
378
|
> **getRegisteredChains**(): `string`[]
|
379
379
|
|
380
|
-
Defined in: [protocol.ts:59](https://github.com/otaprotocol/actioncodes/blob/
|
380
|
+
Defined in: [protocol.ts:59](https://github.com/otaprotocol/actioncodes/blob/fa975e9d2d8d3ff72314243f62c7c4bd689877da/src/protocol.ts#L59)
|
381
381
|
|
382
382
|
Get registered chain adapters
|
383
383
|
|
@@ -393,7 +393,7 @@ Array of registered chain identifiers
|
|
393
393
|
|
394
394
|
> **isChainSupported**(`chain`): `boolean`
|
395
395
|
|
396
|
-
Defined in: [protocol.ts:68](https://github.com/otaprotocol/actioncodes/blob/
|
396
|
+
Defined in: [protocol.ts:68](https://github.com/otaprotocol/actioncodes/blob/fa975e9d2d8d3ff72314243f62c7c4bd689877da/src/protocol.ts#L68)
|
397
397
|
|
398
398
|
Check if a chain is supported
|
399
399
|
|
@@ -417,7 +417,7 @@ True if chain is supported
|
|
417
417
|
|
418
418
|
> **registerAdapter**\<`T`\>(`adapter`): `void`
|
419
419
|
|
420
|
-
Defined in: [protocol.ts:51](https://github.com/otaprotocol/actioncodes/blob/
|
420
|
+
Defined in: [protocol.ts:51](https://github.com/otaprotocol/actioncodes/blob/fa975e9d2d8d3ff72314243f62c7c4bd689877da/src/protocol.ts#L51)
|
421
421
|
|
422
422
|
Register a chain adapter
|
423
423
|
|
@@ -445,7 +445,7 @@ Chain adapter implementation
|
|
445
445
|
|
446
446
|
> **updateConfig**(`updates`): `void`
|
447
447
|
|
448
|
-
Defined in: [protocol.ts:
|
448
|
+
Defined in: [protocol.ts:362](https://github.com/otaprotocol/actioncodes/blob/fa975e9d2d8d3ff72314243f62c7c4bd689877da/src/protocol.ts#L362)
|
449
449
|
|
450
450
|
Update protocol configuration
|
451
451
|
|
@@ -467,7 +467,7 @@ Configuration updates
|
|
467
467
|
|
468
468
|
> **validateActionCode**(`actionCode`): `boolean`
|
469
469
|
|
470
|
-
Defined in: [protocol.ts:
|
470
|
+
Defined in: [protocol.ts:86](https://github.com/otaprotocol/actioncodes/blob/fa975e9d2d8d3ff72314243f62c7c4bd689877da/src/protocol.ts#L86)
|
471
471
|
|
472
472
|
Validate an action code
|
473
473
|
|
@@ -475,7 +475,7 @@ Validate an action code
|
|
475
475
|
|
476
476
|
##### actionCode
|
477
477
|
|
478
|
-
[`ActionCode`](../../actioncode/classes/ActionCode.md)
|
478
|
+
[`ActionCode`](../../actioncode/classes/ActionCode.md)
|
479
479
|
|
480
480
|
ActionCode to validate
|
481
481
|
|
@@ -491,7 +491,7 @@ True if valid
|
|
491
491
|
|
492
492
|
> **validateTransaction**(`transaction`, `chain`, `authorities`, `expectedPrefix?`): `boolean`
|
493
493
|
|
494
|
-
Defined in: [protocol.ts:
|
494
|
+
Defined in: [protocol.ts:277](https://github.com/otaprotocol/actioncodes/blob/fa975e9d2d8d3ff72314243f62c7c4bd689877da/src/protocol.ts#L277)
|
495
495
|
|
496
496
|
Validate a transaction with protocol meta
|
497
497
|
|
@@ -533,7 +533,7 @@ True if transaction is valid
|
|
533
533
|
|
534
534
|
> **validateTransactionTyped**\<`T`\>(`transaction`, `chain`, `authorities`, `expectedPrefix?`): `boolean`
|
535
535
|
|
536
|
-
Defined in: [protocol.ts:
|
536
|
+
Defined in: [protocol.ts:299](https://github.com/otaprotocol/actioncodes/blob/fa975e9d2d8d3ff72314243f62c7c4bd689877da/src/protocol.ts#L299)
|
537
537
|
|
538
538
|
Type-safe transaction validation for specific chains
|
539
539
|
|
@@ -581,7 +581,7 @@ True if transaction is valid
|
|
581
581
|
|
582
582
|
> `static` **create**(): `ActionCodesProtocol`
|
583
583
|
|
584
|
-
Defined in: [protocol.ts:
|
584
|
+
Defined in: [protocol.ts:370](https://github.com/otaprotocol/actioncodes/blob/fa975e9d2d8d3ff72314243f62c7c4bd689877da/src/protocol.ts#L370)
|
585
585
|
|
586
586
|
Create a new protocol instance with default configuration
|
587
587
|
|
@@ -597,7 +597,7 @@ New protocol instance
|
|
597
597
|
|
598
598
|
> `static` **createWithConfig**(`config`): `ActionCodesProtocol`
|
599
599
|
|
600
|
-
Defined in: [protocol.ts:
|
600
|
+
Defined in: [protocol.ts:379](https://github.com/otaprotocol/actioncodes/blob/fa975e9d2d8d3ff72314243f62c7c4bd689877da/src/protocol.ts#L379)
|
601
601
|
|
602
602
|
Create a new protocol instance with custom configuration
|
603
603
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
# Interface: ProtocolConfig
|
8
8
|
|
9
|
-
Defined in: [protocol.ts:10](https://github.com/otaprotocol/actioncodes/blob/
|
9
|
+
Defined in: [protocol.ts:10](https://github.com/otaprotocol/actioncodes/blob/fa975e9d2d8d3ff72314243f62c7c4bd689877da/src/protocol.ts#L10)
|
10
10
|
|
11
11
|
OTA Protocol Configuration
|
12
12
|
|
@@ -16,7 +16,7 @@ OTA Protocol Configuration
|
|
16
16
|
|
17
17
|
> **codeLength**: `number`
|
18
18
|
|
19
|
-
Defined in: [protocol.ts:18](https://github.com/otaprotocol/actioncodes/blob/
|
19
|
+
Defined in: [protocol.ts:18](https://github.com/otaprotocol/actioncodes/blob/fa975e9d2d8d3ff72314243f62c7c4bd689877da/src/protocol.ts#L18)
|
20
20
|
|
21
21
|
Code length in digits
|
22
22
|
|
@@ -26,7 +26,7 @@ Code length in digits
|
|
26
26
|
|
27
27
|
> **codeTTL**: `number`
|
28
28
|
|
29
|
-
Defined in: [protocol.ts:16](https://github.com/otaprotocol/actioncodes/blob/
|
29
|
+
Defined in: [protocol.ts:16](https://github.com/otaprotocol/actioncodes/blob/fa975e9d2d8d3ff72314243f62c7c4bd689877da/src/protocol.ts#L16)
|
30
30
|
|
31
31
|
Code TTL in milliseconds
|
32
32
|
|
@@ -36,7 +36,7 @@ Code TTL in milliseconds
|
|
36
36
|
|
37
37
|
> **defaultPrefix**: `string`
|
38
38
|
|
39
|
-
Defined in: [protocol.ts:14](https://github.com/otaprotocol/actioncodes/blob/
|
39
|
+
Defined in: [protocol.ts:14](https://github.com/otaprotocol/actioncodes/blob/fa975e9d2d8d3ff72314243f62c7c4bd689877da/src/protocol.ts#L14)
|
40
40
|
|
41
41
|
Default prefix for action codes
|
42
42
|
|
@@ -46,7 +46,7 @@ Default prefix for action codes
|
|
46
46
|
|
47
47
|
> **maxPrefixLength**: `number`
|
48
48
|
|
49
|
-
Defined in: [protocol.ts:20](https://github.com/otaprotocol/actioncodes/blob/
|
49
|
+
Defined in: [protocol.ts:20](https://github.com/otaprotocol/actioncodes/blob/fa975e9d2d8d3ff72314243f62c7c4bd689877da/src/protocol.ts#L20)
|
50
50
|
|
51
51
|
Maximum prefix length
|
52
52
|
|
@@ -56,7 +56,7 @@ Maximum prefix length
|
|
56
56
|
|
57
57
|
> **minPrefixLength**: `number`
|
58
58
|
|
59
|
-
Defined in: [protocol.ts:22](https://github.com/otaprotocol/actioncodes/blob/
|
59
|
+
Defined in: [protocol.ts:22](https://github.com/otaprotocol/actioncodes/blob/fa975e9d2d8d3ff72314243f62c7c4bd689877da/src/protocol.ts#L22)
|
60
60
|
|
61
61
|
Minimum prefix length
|
62
62
|
|
@@ -66,6 +66,6 @@ Minimum prefix length
|
|
66
66
|
|
67
67
|
> **version**: `string`
|
68
68
|
|
69
|
-
Defined in: [protocol.ts:12](https://github.com/otaprotocol/actioncodes/blob/
|
69
|
+
Defined in: [protocol.ts:12](https://github.com/otaprotocol/actioncodes/blob/fa975e9d2d8d3ff72314243f62c7c4bd689877da/src/protocol.ts#L12)
|
70
70
|
|
71
71
|
Protocol version
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@actioncodes/protocol",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.1",
|
4
4
|
"description": "Action Codes Protocol",
|
5
5
|
"main": "src/index.js",
|
6
6
|
"types": "dist/index.d.ts",
|
@@ -80,6 +80,7 @@
|
|
80
80
|
"typescript-eslint": "^8.37.0"
|
81
81
|
},
|
82
82
|
"dependencies": {
|
83
|
+
"buffer": "^6.0.3",
|
83
84
|
"js-sha256": "^0.11.1"
|
84
85
|
},
|
85
86
|
"peerDependencies": {
|