@actioncodes/protocol 1.2.1 → 2.0.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.
Files changed (144) hide show
  1. package/LICENSE +2 -2
  2. package/README.md +32 -45
  3. package/dist/ActionCodesProtocol.d.ts +35 -0
  4. package/dist/ActionCodesProtocol.d.ts.map +1 -0
  5. package/dist/adapters/BaseChainAdapter.d.ts +22 -0
  6. package/dist/adapters/BaseChainAdapter.d.ts.map +1 -0
  7. package/dist/adapters/SolanaAdapter.d.ts +44 -0
  8. package/dist/adapters/SolanaAdapter.d.ts.map +1 -0
  9. package/dist/constants.d.ts +6 -8
  10. package/dist/constants.d.ts.map +1 -1
  11. package/dist/errors.d.ts +63 -0
  12. package/dist/errors.d.ts.map +1 -0
  13. package/dist/index.cjs +3 -0
  14. package/dist/index.cjs.map +25 -0
  15. package/dist/index.d.ts +10 -8
  16. package/dist/index.d.ts.map +1 -1
  17. package/dist/index.js +3 -23
  18. package/dist/index.js.map +25 -0
  19. package/dist/strategy/DelegationStrategy.d.ts +43 -0
  20. package/dist/strategy/DelegationStrategy.d.ts.map +1 -0
  21. package/dist/strategy/WalletStrategy.d.ts +8 -0
  22. package/dist/strategy/WalletStrategy.d.ts.map +1 -0
  23. package/dist/types.d.ts +40 -0
  24. package/dist/types.d.ts.map +1 -0
  25. package/dist/utils/canonical.d.ts +5 -0
  26. package/dist/utils/canonical.d.ts.map +1 -0
  27. package/dist/utils/crypto.d.ts +13 -0
  28. package/dist/utils/crypto.d.ts.map +1 -0
  29. package/dist/utils/protocolMeta.d.ts +16 -0
  30. package/dist/utils/protocolMeta.d.ts.map +1 -0
  31. package/docs/ActionCodesProtocol/README.md +11 -0
  32. package/docs/ActionCodesProtocol/classes/ActionCodesProtocol.md +147 -0
  33. package/docs/README.md +10 -50
  34. package/docs/adapters/BaseChainAdapter/README.md +20 -0
  35. package/docs/adapters/BaseChainAdapter/classes/BaseChainAdapter.md +56 -0
  36. package/docs/adapters/BaseChainAdapter/interfaces/BaseContext.md +17 -0
  37. package/docs/adapters/BaseChainAdapter/interfaces/ChainAdapter.md +33 -0
  38. package/docs/adapters/BaseChainAdapter/type-aliases/ChainContext.md +23 -0
  39. package/docs/adapters/NodeCryptoAdapter/README.md +15 -0
  40. package/docs/adapters/NodeCryptoAdapter/classes/NodeCryptoAdapter.md +254 -0
  41. package/docs/adapters/NodeCryptoAdapter/type-aliases/NodeCryptoContext.md +27 -0
  42. package/docs/adapters/SolanaAdapter/README.md +16 -0
  43. package/docs/adapters/SolanaAdapter/classes/SolanaAdapter.md +190 -0
  44. package/docs/adapters/SolanaAdapter/type-aliases/SolanaContext.md +27 -0
  45. package/docs/adapters/SolanaAdapter/type-aliases/SolanaTransaction.md +13 -0
  46. package/docs/constants/README.md +8 -13
  47. package/docs/constants/variables/CODE_CHARSET_DIGITS.md +11 -0
  48. package/docs/constants/variables/CODE_DEFAULT_LENGTH.md +11 -0
  49. package/docs/constants/variables/CODE_MAX_LENGTH.md +11 -0
  50. package/docs/constants/variables/CODE_MIN_LENGTH.md +11 -0
  51. package/docs/constants/variables/PROTOCOL_META_MAX_BYTES.md +11 -0
  52. package/docs/constants/variables/PROTOCOL_NORMALIZATION.md +11 -0
  53. package/docs/constants/variables/SUPPORTED_CHAINS.md +3 -3
  54. package/docs/errors/README.md +22 -0
  55. package/docs/errors/classes/ExpiredCodeError.md +695 -0
  56. package/docs/errors/classes/InvalidCodeFormatError.md +691 -0
  57. package/docs/errors/classes/InvalidPubkeyFormatError.md +691 -0
  58. package/docs/errors/classes/InvalidSignatureError.md +687 -0
  59. package/docs/errors/classes/MetaMismatchError.md +695 -0
  60. package/docs/errors/classes/MissingMetaError.md +681 -0
  61. package/docs/errors/classes/ProtocolError.md +637 -0
  62. package/docs/errors/classes/TransactionNotSignedByIntendedOwnerError.md +691 -0
  63. package/docs/errors/enumerations/ProtocolErrorCode.md +121 -0
  64. package/docs/index/README.md +83 -41
  65. package/docs/modules.md +12 -9
  66. package/docs/strategy/WalletStrategy/README.md +11 -0
  67. package/docs/strategy/WalletStrategy/classes/WalletStrategy.md +67 -0
  68. package/docs/types/README.md +14 -0
  69. package/docs/types/interfaces/ActionCode.md +65 -0
  70. package/docs/types/interfaces/CanonicalMessageParts.md +33 -0
  71. package/docs/types/interfaces/CodeGenerationConfig.md +33 -0
  72. package/docs/types/interfaces/CodeGenerationResult.md +25 -0
  73. package/docs/utils/canonical/README.md +16 -0
  74. package/docs/utils/canonical/functions/serializeCanonical.md +21 -0
  75. package/docs/utils/canonical/variables/CANONICAL_MESSAGE_PREFIX.md +11 -0
  76. package/docs/utils/canonical/variables/CANONICAL_MESSAGE_VERSION.md +11 -0
  77. package/docs/utils/crypto/README.md +18 -0
  78. package/docs/utils/crypto/functions/base32EncodeCrockford.md +21 -0
  79. package/docs/utils/crypto/functions/codeHash.md +21 -0
  80. package/docs/utils/crypto/functions/digestToDigits.md +25 -0
  81. package/docs/utils/crypto/functions/generateRandomSecret.md +15 -0
  82. package/docs/utils/crypto/functions/hkdfSha256.md +35 -0
  83. package/docs/utils/crypto/functions/hmacSha256.md +25 -0
  84. package/docs/utils/crypto/functions/sha256.md +21 -0
  85. package/docs/utils/crypto/functions/truncateBits.md +25 -0
  86. package/docs/utils/protocolMeta/README.md +21 -0
  87. package/docs/utils/protocolMeta/functions/buildProtocolMeta.md +21 -0
  88. package/docs/utils/protocolMeta/functions/parseProtocolMeta.md +21 -0
  89. package/docs/utils/protocolMeta/functions/validateProtocolMetaFormat.md +21 -0
  90. package/docs/utils/protocolMeta/interfaces/ProtocolMetaFields.md +41 -0
  91. package/docs/utils/protocolMeta/variables/SCHEME.md +11 -0
  92. package/package.json +42 -47
  93. package/dist/actioncode.d.ts +0 -120
  94. package/dist/actioncode.d.ts.map +0 -1
  95. package/dist/actioncode.js +0 -173
  96. package/dist/adapters/base.d.ts +0 -93
  97. package/dist/adapters/base.d.ts.map +0 -1
  98. package/dist/adapters/base.js +0 -52
  99. package/dist/adapters/solana/index.d.ts +0 -2
  100. package/dist/adapters/solana/index.d.ts.map +0 -1
  101. package/dist/adapters/solana/index.js +0 -17
  102. package/dist/adapters/solana/solana.d.ts +0 -113
  103. package/dist/adapters/solana/solana.d.ts.map +0 -1
  104. package/dist/adapters/solana/solana.js +0 -524
  105. package/dist/codegen.d.ts +0 -76
  106. package/dist/codegen.d.ts.map +0 -1
  107. package/dist/codegen.js +0 -198
  108. package/dist/constants.js +0 -11
  109. package/dist/meta.d.ts +0 -54
  110. package/dist/meta.d.ts.map +0 -1
  111. package/dist/meta.js +0 -91
  112. package/dist/protocol.d.ts +0 -179
  113. package/dist/protocol.d.ts.map +0 -1
  114. package/dist/protocol.js +0 -377
  115. package/docs/_media/LICENSE +0 -201
  116. package/docs/_media/README.md +0 -28
  117. package/docs/actioncode/README.md +0 -21
  118. package/docs/actioncode/classes/ActionCode.md +0 -430
  119. package/docs/actioncode/interfaces/ActionCodeFields.md +0 -89
  120. package/docs/actioncode/interfaces/ActionCodeMetadata.md +0 -25
  121. package/docs/actioncode/interfaces/ActionCodeTransaction.md +0 -57
  122. package/docs/actioncode/type-aliases/ActionCodeStatus.md +0 -11
  123. package/docs/adapters/base/README.md +0 -11
  124. package/docs/adapters/base/classes/BaseChainAdapter.md +0 -396
  125. package/docs/adapters/solana/README.md +0 -19
  126. package/docs/adapters/solana/solana/README.md +0 -15
  127. package/docs/adapters/solana/solana/classes/SolanaAdapter.md +0 -506
  128. package/docs/adapters/solana/solana/type-aliases/SolanaTransaction.md +0 -13
  129. package/docs/codegen/README.md +0 -11
  130. package/docs/codegen/classes/CodeGenerator.md +0 -341
  131. package/docs/constants/type-aliases/SupportedChain.md +0 -11
  132. package/docs/constants/variables/CODE_LENGTH.md +0 -11
  133. package/docs/constants/variables/CODE_TTL.md +0 -11
  134. package/docs/constants/variables/MAX_PREFIX_LENGTH.md +0 -11
  135. package/docs/constants/variables/MIN_PREFIX_LENGTH.md +0 -11
  136. package/docs/constants/variables/PROTOCOL_CODE_PREFIX.md +0 -11
  137. package/docs/constants/variables/PROTOCOL_PREFIX.md +0 -11
  138. package/docs/constants/variables/PROTOCOL_VERSION.md +0 -11
  139. package/docs/meta/README.md +0 -15
  140. package/docs/meta/classes/ProtocolMetaParser.md +0 -177
  141. package/docs/meta/interfaces/ProtocolMetaV1.md +0 -59
  142. package/docs/protocol/README.md +0 -51
  143. package/docs/protocol/classes/ActionCodesProtocol.md +0 -676
  144. package/docs/protocol/interfaces/ProtocolConfig.md +0 -71
@@ -1,430 +0,0 @@
1
- [**@actioncodes/protocol**](../../README.md)
2
-
3
- ***
4
-
5
- [@actioncodes/protocol](../../modules.md) / [actioncode](../README.md) / ActionCode
6
-
7
- # Class: ActionCode
8
-
9
- Defined in: [actioncode.ts:35](https://github.com/otaprotocol/actioncodes/blob/7fa582d3aecdeca51131d2fc9eec0802298f9a4d/src/actioncode.ts#L35)
10
-
11
- ## Constructors
12
-
13
- ### Constructor
14
-
15
- > **new ActionCode**(`fields`): `ActionCode`
16
-
17
- Defined in: [actioncode.ts:36](https://github.com/otaprotocol/actioncodes/blob/7fa582d3aecdeca51131d2fc9eec0802298f9a4d/src/actioncode.ts#L36)
18
-
19
- #### Parameters
20
-
21
- ##### fields
22
-
23
- [`ActionCodeFields`](../interfaces/ActionCodeFields.md)
24
-
25
- #### Returns
26
-
27
- `ActionCode`
28
-
29
- ## Accessors
30
-
31
- ### chain
32
-
33
- #### Get Signature
34
-
35
- > **get** **chain**(): `string`
36
-
37
- Defined in: [actioncode.ts:102](https://github.com/otaprotocol/actioncodes/blob/7fa582d3aecdeca51131d2fc9eec0802298f9a4d/src/actioncode.ts#L102)
38
-
39
- Get the target chain for this action code
40
-
41
- ##### Returns
42
-
43
- `string`
44
-
45
- Chain identifier (e.g., "solana", "evm")
46
-
47
- ***
48
-
49
- ### code
50
-
51
- #### Get Signature
52
-
53
- > **get** **code**(): `string`
54
-
55
- Defined in: [actioncode.ts:118](https://github.com/otaprotocol/actioncodes/blob/7fa582d3aecdeca51131d2fc9eec0802298f9a4d/src/actioncode.ts#L118)
56
-
57
- Get the action code string
58
-
59
- ##### Returns
60
-
61
- `string`
62
-
63
- The 8-character action code
64
-
65
- ***
66
-
67
- ### codeHash
68
-
69
- #### Get Signature
70
-
71
- > **get** **codeHash**(): `string`
72
-
73
- Defined in: [actioncode.ts:224](https://github.com/otaprotocol/actioncodes/blob/7fa582d3aecdeca51131d2fc9eec0802298f9a4d/src/actioncode.ts#L224)
74
-
75
- Get the code hash for this action code
76
- it is also used in the protocol meta as the code id
77
-
78
- ##### Returns
79
-
80
- `string`
81
-
82
- Code hash string
83
-
84
- ***
85
-
86
- ### description
87
-
88
- #### Get Signature
89
-
90
- > **get** **description**(): `undefined` \| `string`
91
-
92
- Defined in: [actioncode.ts:158](https://github.com/otaprotocol/actioncodes/blob/7fa582d3aecdeca51131d2fc9eec0802298f9a4d/src/actioncode.ts#L158)
93
-
94
- Get a human-readable description of the action
95
-
96
- ##### Returns
97
-
98
- `undefined` \| `string`
99
-
100
- Description string or undefined
101
-
102
- ***
103
-
104
- ### displayString
105
-
106
- #### Get Signature
107
-
108
- > **get** **displayString**(): `string`
109
-
110
- Defined in: [actioncode.ts:190](https://github.com/otaprotocol/actioncodes/blob/7fa582d3aecdeca51131d2fc9eec0802298f9a4d/src/actioncode.ts#L190)
111
-
112
- Get a human-readable display string for the action code
113
-
114
- ##### Returns
115
-
116
- `string`
117
-
118
- Formatted display string
119
-
120
- ***
121
-
122
- ### encoded
123
-
124
- #### Get Signature
125
-
126
- > **get** **encoded**(): `string`
127
-
128
- Defined in: [actioncode.ts:50](https://github.com/otaprotocol/actioncodes/blob/7fa582d3aecdeca51131d2fc9eec0802298f9a4d/src/actioncode.ts#L50)
129
-
130
- ##### Returns
131
-
132
- `string`
133
-
134
- ***
135
-
136
- ### expired
137
-
138
- #### Get Signature
139
-
140
- > **get** **expired**(): `boolean`
141
-
142
- Defined in: [actioncode.ts:94](https://github.com/otaprotocol/actioncodes/blob/7fa582d3aecdeca51131d2fc9eec0802298f9a4d/src/actioncode.ts#L94)
143
-
144
- Check if the action code has expired
145
-
146
- ##### Returns
147
-
148
- `boolean`
149
-
150
- True if the code has expired
151
-
152
- ***
153
-
154
- ### intentType
155
-
156
- #### Get Signature
157
-
158
- > **get** **intentType**(): `"transaction"` \| `"sign-only"`
159
-
160
- Defined in: [actioncode.ts:228](https://github.com/otaprotocol/actioncodes/blob/7fa582d3aecdeca51131d2fc9eec0802298f9a4d/src/actioncode.ts#L228)
161
-
162
- ##### Returns
163
-
164
- `"transaction"` \| `"sign-only"`
165
-
166
- ***
167
-
168
- ### json
169
-
170
- #### Get Signature
171
-
172
- > **get** **json**(): [`ActionCodeFields`](../interfaces/ActionCodeFields.md)
173
-
174
- Defined in: [actioncode.ts:75](https://github.com/otaprotocol/actioncodes/blob/7fa582d3aecdeca51131d2fc9eec0802298f9a4d/src/actioncode.ts#L75)
175
-
176
- ##### Returns
177
-
178
- [`ActionCodeFields`](../interfaces/ActionCodeFields.md)
179
-
180
- ***
181
-
182
- ### metadata
183
-
184
- #### Get Signature
185
-
186
- > **get** **metadata**(): `undefined` \| [`ActionCodeMetadata`](../interfaces/ActionCodeMetadata.md)
187
-
188
- Defined in: [actioncode.ts:150](https://github.com/otaprotocol/actioncodes/blob/7fa582d3aecdeca51131d2fc9eec0802298f9a4d/src/actioncode.ts#L150)
189
-
190
- Get metadata associated with this action code
191
-
192
- ##### Returns
193
-
194
- `undefined` \| [`ActionCodeMetadata`](../interfaces/ActionCodeMetadata.md)
195
-
196
- Metadata object or undefined
197
-
198
- ***
199
-
200
- ### params
201
-
202
- #### Get Signature
203
-
204
- > **get** **params**(): `undefined` \| `Record`\<`string`, `any`\>
205
-
206
- Defined in: [actioncode.ts:166](https://github.com/otaprotocol/actioncodes/blob/7fa582d3aecdeca51131d2fc9eec0802298f9a4d/src/actioncode.ts#L166)
207
-
208
- Get parameters associated with this action
209
-
210
- ##### Returns
211
-
212
- `undefined` \| `Record`\<`string`, `any`\>
213
-
214
- Parameters object or undefined
215
-
216
- ***
217
-
218
- ### prefix
219
-
220
- #### Get Signature
221
-
222
- > **get** **prefix**(): `string`
223
-
224
- Defined in: [actioncode.ts:126](https://github.com/otaprotocol/actioncodes/blob/7fa582d3aecdeca51131d2fc9eec0802298f9a4d/src/actioncode.ts#L126)
225
-
226
- Get the prefix used for this action code
227
-
228
- ##### Returns
229
-
230
- `string`
231
-
232
- Normalized prefix
233
-
234
- ***
235
-
236
- ### pubkey
237
-
238
- #### Get Signature
239
-
240
- > **get** **pubkey**(): `string`
241
-
242
- Defined in: [actioncode.ts:134](https://github.com/otaprotocol/actioncodes/blob/7fa582d3aecdeca51131d2fc9eec0802298f9a4d/src/actioncode.ts#L134)
243
-
244
- Get the user's public key
245
-
246
- ##### Returns
247
-
248
- `string`
249
-
250
- User's public key
251
-
252
- ***
253
-
254
- ### remainingTime
255
-
256
- #### Get Signature
257
-
258
- > **get** **remainingTime**(): `number`
259
-
260
- Defined in: [actioncode.ts:85](https://github.com/otaprotocol/actioncodes/blob/7fa582d3aecdeca51131d2fc9eec0802298f9a4d/src/actioncode.ts#L85)
261
-
262
- Get remaining time in milliseconds until expiration
263
-
264
- ##### Returns
265
-
266
- `number`
267
-
268
- Remaining time in milliseconds, or 0 if expired
269
-
270
- ***
271
-
272
- ### remainingTimeString
273
-
274
- #### Get Signature
275
-
276
- > **get** **remainingTimeString**(): `string`
277
-
278
- Defined in: [actioncode.ts:203](https://github.com/otaprotocol/actioncodes/blob/7fa582d3aecdeca51131d2fc9eec0802298f9a4d/src/actioncode.ts#L203)
279
-
280
- Get a formatted time string showing remaining time
281
-
282
- ##### Returns
283
-
284
- `string`
285
-
286
- Human-readable time string (e.g., "1m 30s remaining")
287
-
288
- ***
289
-
290
- ### signature
291
-
292
- #### Get Signature
293
-
294
- > **get** **signature**(): `string`
295
-
296
- Defined in: [actioncode.ts:182](https://github.com/otaprotocol/actioncodes/blob/7fa582d3aecdeca51131d2fc9eec0802298f9a4d/src/actioncode.ts#L182)
297
-
298
- Get the user's signature
299
-
300
- ##### Returns
301
-
302
- `string`
303
-
304
- User's signature string
305
-
306
- ***
307
-
308
- ### status
309
-
310
- #### Get Signature
311
-
312
- > **get** **status**(): [`ActionCodeStatus`](../type-aliases/ActionCodeStatus.md)
313
-
314
- Defined in: [actioncode.ts:110](https://github.com/otaprotocol/actioncodes/blob/7fa582d3aecdeca51131d2fc9eec0802298f9a4d/src/actioncode.ts#L110)
315
-
316
- Get the current status of the action code
317
-
318
- ##### Returns
319
-
320
- [`ActionCodeStatus`](../type-aliases/ActionCodeStatus.md)
321
-
322
- Current status
323
-
324
- ***
325
-
326
- ### timestamp
327
-
328
- #### Get Signature
329
-
330
- > **get** **timestamp**(): `number`
331
-
332
- Defined in: [actioncode.ts:174](https://github.com/otaprotocol/actioncodes/blob/7fa582d3aecdeca51131d2fc9eec0802298f9a4d/src/actioncode.ts#L174)
333
-
334
- Get the timestamp when the code was generated
335
-
336
- ##### Returns
337
-
338
- `number`
339
-
340
- Timestamp in milliseconds
341
-
342
- ***
343
-
344
- ### transaction
345
-
346
- #### Get Signature
347
-
348
- > **get** **transaction**(): `undefined` \| [`ActionCodeTransaction`](../interfaces/ActionCodeTransaction.md)
349
-
350
- Defined in: [actioncode.ts:142](https://github.com/otaprotocol/actioncodes/blob/7fa582d3aecdeca51131d2fc9eec0802298f9a4d/src/actioncode.ts#L142)
351
-
352
- Get the transaction data (chain-specific)
353
-
354
- ##### Returns
355
-
356
- `undefined` \| [`ActionCodeTransaction`](../interfaces/ActionCodeTransaction.md)
357
-
358
- Transaction data or undefined
359
-
360
- ## Methods
361
-
362
- ### isValid()
363
-
364
- > **isValid**(`protocol`): `boolean`
365
-
366
- Defined in: [actioncode.ts:54](https://github.com/otaprotocol/actioncodes/blob/7fa582d3aecdeca51131d2fc9eec0802298f9a4d/src/actioncode.ts#L54)
367
-
368
- #### Parameters
369
-
370
- ##### protocol
371
-
372
- [`ActionCodesProtocol`](../../protocol/classes/ActionCodesProtocol.md)
373
-
374
- #### Returns
375
-
376
- `boolean`
377
-
378
- ***
379
-
380
- ### updateStatus()
381
-
382
- > **updateStatus**(`status`): `void`
383
-
384
- Defined in: [actioncode.ts:71](https://github.com/otaprotocol/actioncodes/blob/7fa582d3aecdeca51131d2fc9eec0802298f9a4d/src/actioncode.ts#L71)
385
-
386
- #### Parameters
387
-
388
- ##### status
389
-
390
- [`ActionCodeStatus`](../type-aliases/ActionCodeStatus.md)
391
-
392
- #### Returns
393
-
394
- `void`
395
-
396
- ***
397
-
398
- ### fromEncoded()
399
-
400
- > `static` **fromEncoded**(`encoded`): `ActionCode`
401
-
402
- Defined in: [actioncode.ts:45](https://github.com/otaprotocol/actioncodes/blob/7fa582d3aecdeca51131d2fc9eec0802298f9a4d/src/actioncode.ts#L45)
403
-
404
- #### Parameters
405
-
406
- ##### encoded
407
-
408
- `string`
409
-
410
- #### Returns
411
-
412
- `ActionCode`
413
-
414
- ***
415
-
416
- ### fromPayload()
417
-
418
- > `static` **fromPayload**(`input`): `ActionCode`
419
-
420
- Defined in: [actioncode.ts:38](https://github.com/otaprotocol/actioncodes/blob/7fa582d3aecdeca51131d2fc9eec0802298f9a4d/src/actioncode.ts#L38)
421
-
422
- #### Parameters
423
-
424
- ##### input
425
-
426
- [`ActionCodeFields`](../interfaces/ActionCodeFields.md)
427
-
428
- #### Returns
429
-
430
- `ActionCode`
@@ -1,89 +0,0 @@
1
- [**@actioncodes/protocol**](../../README.md)
2
-
3
- ***
4
-
5
- [@actioncodes/protocol](../../modules.md) / [actioncode](../README.md) / ActionCodeFields
6
-
7
- # Interface: ActionCodeFields
8
-
9
- Defined in: [actioncode.ts:22](https://github.com/otaprotocol/actioncodes/blob/7fa582d3aecdeca51131d2fc9eec0802298f9a4d/src/actioncode.ts#L22)
10
-
11
- ## Properties
12
-
13
- ### chain
14
-
15
- > **chain**: `"solana"`
16
-
17
- Defined in: [actioncode.ts:28](https://github.com/otaprotocol/actioncodes/blob/7fa582d3aecdeca51131d2fc9eec0802298f9a4d/src/actioncode.ts#L28)
18
-
19
- ***
20
-
21
- ### code
22
-
23
- > **code**: `string`
24
-
25
- Defined in: [actioncode.ts:23](https://github.com/otaprotocol/actioncodes/blob/7fa582d3aecdeca51131d2fc9eec0802298f9a4d/src/actioncode.ts#L23)
26
-
27
- ***
28
-
29
- ### expiresAt
30
-
31
- > **expiresAt**: `number`
32
-
33
- Defined in: [actioncode.ts:31](https://github.com/otaprotocol/actioncodes/blob/7fa582d3aecdeca51131d2fc9eec0802298f9a4d/src/actioncode.ts#L31)
34
-
35
- ***
36
-
37
- ### metadata?
38
-
39
- > `optional` **metadata**: [`ActionCodeMetadata`](ActionCodeMetadata.md)
40
-
41
- Defined in: [actioncode.ts:30](https://github.com/otaprotocol/actioncodes/blob/7fa582d3aecdeca51131d2fc9eec0802298f9a4d/src/actioncode.ts#L30)
42
-
43
- ***
44
-
45
- ### prefix
46
-
47
- > **prefix**: `string`
48
-
49
- Defined in: [actioncode.ts:24](https://github.com/otaprotocol/actioncodes/blob/7fa582d3aecdeca51131d2fc9eec0802298f9a4d/src/actioncode.ts#L24)
50
-
51
- ***
52
-
53
- ### pubkey
54
-
55
- > **pubkey**: `string`
56
-
57
- Defined in: [actioncode.ts:25](https://github.com/otaprotocol/actioncodes/blob/7fa582d3aecdeca51131d2fc9eec0802298f9a4d/src/actioncode.ts#L25)
58
-
59
- ***
60
-
61
- ### signature
62
-
63
- > **signature**: `string`
64
-
65
- Defined in: [actioncode.ts:27](https://github.com/otaprotocol/actioncodes/blob/7fa582d3aecdeca51131d2fc9eec0802298f9a4d/src/actioncode.ts#L27)
66
-
67
- ***
68
-
69
- ### status
70
-
71
- > **status**: [`ActionCodeStatus`](../type-aliases/ActionCodeStatus.md)
72
-
73
- Defined in: [actioncode.ts:32](https://github.com/otaprotocol/actioncodes/blob/7fa582d3aecdeca51131d2fc9eec0802298f9a4d/src/actioncode.ts#L32)
74
-
75
- ***
76
-
77
- ### timestamp
78
-
79
- > **timestamp**: `number`
80
-
81
- Defined in: [actioncode.ts:26](https://github.com/otaprotocol/actioncodes/blob/7fa582d3aecdeca51131d2fc9eec0802298f9a4d/src/actioncode.ts#L26)
82
-
83
- ***
84
-
85
- ### transaction?
86
-
87
- > `optional` **transaction**: [`ActionCodeTransaction`](ActionCodeTransaction.md)
88
-
89
- Defined in: [actioncode.ts:29](https://github.com/otaprotocol/actioncodes/blob/7fa582d3aecdeca51131d2fc9eec0802298f9a4d/src/actioncode.ts#L29)
@@ -1,25 +0,0 @@
1
- [**@actioncodes/protocol**](../../README.md)
2
-
3
- ***
4
-
5
- [@actioncodes/protocol](../../modules.md) / [actioncode](../README.md) / ActionCodeMetadata
6
-
7
- # Interface: ActionCodeMetadata
8
-
9
- Defined in: [actioncode.ts:8](https://github.com/otaprotocol/actioncodes/blob/7fa582d3aecdeca51131d2fc9eec0802298f9a4d/src/actioncode.ts#L8)
10
-
11
- ## Properties
12
-
13
- ### description?
14
-
15
- > `optional` **description**: `string`
16
-
17
- Defined in: [actioncode.ts:9](https://github.com/otaprotocol/actioncodes/blob/7fa582d3aecdeca51131d2fc9eec0802298f9a4d/src/actioncode.ts#L9)
18
-
19
- ***
20
-
21
- ### params?
22
-
23
- > `optional` **params**: `Record`\<`string`, `any`\>
24
-
25
- Defined in: [actioncode.ts:10](https://github.com/otaprotocol/actioncodes/blob/7fa582d3aecdeca51131d2fc9eec0802298f9a4d/src/actioncode.ts#L10)
@@ -1,57 +0,0 @@
1
- [**@actioncodes/protocol**](../../README.md)
2
-
3
- ***
4
-
5
- [@actioncodes/protocol](../../modules.md) / [actioncode](../README.md) / ActionCodeTransaction
6
-
7
- # Interface: ActionCodeTransaction
8
-
9
- Defined in: [actioncode.ts:13](https://github.com/otaprotocol/actioncodes/blob/7fa582d3aecdeca51131d2fc9eec0802298f9a4d/src/actioncode.ts#L13)
10
-
11
- ## Properties
12
-
13
- ### intentType?
14
-
15
- > `optional` **intentType**: `"transaction"` \| `"sign-only"`
16
-
17
- Defined in: [actioncode.ts:19](https://github.com/otaprotocol/actioncodes/blob/7fa582d3aecdeca51131d2fc9eec0802298f9a4d/src/actioncode.ts#L19)
18
-
19
- ***
20
-
21
- ### message?
22
-
23
- > `optional` **message**: `string`
24
-
25
- Defined in: [actioncode.ts:17](https://github.com/otaprotocol/actioncodes/blob/7fa582d3aecdeca51131d2fc9eec0802298f9a4d/src/actioncode.ts#L17)
26
-
27
- ***
28
-
29
- ### signedMessage?
30
-
31
- > `optional` **signedMessage**: `string`
32
-
33
- Defined in: [actioncode.ts:18](https://github.com/otaprotocol/actioncodes/blob/7fa582d3aecdeca51131d2fc9eec0802298f9a4d/src/actioncode.ts#L18)
34
-
35
- ***
36
-
37
- ### transaction?
38
-
39
- > `optional` **transaction**: `string`
40
-
41
- Defined in: [actioncode.ts:14](https://github.com/otaprotocol/actioncodes/blob/7fa582d3aecdeca51131d2fc9eec0802298f9a4d/src/actioncode.ts#L14)
42
-
43
- ***
44
-
45
- ### txSignature?
46
-
47
- > `optional` **txSignature**: `string`
48
-
49
- Defined in: [actioncode.ts:15](https://github.com/otaprotocol/actioncodes/blob/7fa582d3aecdeca51131d2fc9eec0802298f9a4d/src/actioncode.ts#L15)
50
-
51
- ***
52
-
53
- ### txType?
54
-
55
- > `optional` **txType**: `string`
56
-
57
- Defined in: [actioncode.ts:16](https://github.com/otaprotocol/actioncodes/blob/7fa582d3aecdeca51131d2fc9eec0802298f9a4d/src/actioncode.ts#L16)
@@ -1,11 +0,0 @@
1
- [**@actioncodes/protocol**](../../README.md)
2
-
3
- ***
4
-
5
- [@actioncodes/protocol](../../modules.md) / [actioncode](../README.md) / ActionCodeStatus
6
-
7
- # Type Alias: ActionCodeStatus
8
-
9
- > **ActionCodeStatus** = `"pending"` \| `"resolved"` \| `"finalized"` \| `"expired"` \| `"error"`
10
-
11
- Defined in: [actioncode.ts:6](https://github.com/otaprotocol/actioncodes/blob/7fa582d3aecdeca51131d2fc9eec0802298f9a4d/src/actioncode.ts#L6)
@@ -1,11 +0,0 @@
1
- [**@actioncodes/protocol**](../../README.md)
2
-
3
- ***
4
-
5
- [@actioncodes/protocol](../../modules.md) / adapters/base
6
-
7
- # adapters/base
8
-
9
- ## Classes
10
-
11
- - [BaseChainAdapter](classes/BaseChainAdapter.md)