@actioncodes/protocol 1.2.2 → 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.
- package/LICENSE +1 -1
- package/README.md +32 -45
- package/dist/ActionCodesProtocol.d.ts +35 -0
- package/dist/ActionCodesProtocol.d.ts.map +1 -0
- package/dist/adapters/BaseChainAdapter.d.ts +22 -0
- package/dist/adapters/BaseChainAdapter.d.ts.map +1 -0
- package/dist/adapters/SolanaAdapter.d.ts +44 -0
- package/dist/adapters/SolanaAdapter.d.ts.map +1 -0
- package/dist/constants.d.ts +6 -8
- package/dist/constants.d.ts.map +1 -1
- package/dist/errors.d.ts +63 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/index.cjs +3 -0
- package/dist/index.cjs.map +25 -0
- package/dist/index.d.ts +10 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -36
- package/dist/index.js.map +25 -0
- package/dist/strategy/DelegationStrategy.d.ts +43 -0
- package/dist/strategy/DelegationStrategy.d.ts.map +1 -0
- package/dist/strategy/WalletStrategy.d.ts +8 -0
- package/dist/strategy/WalletStrategy.d.ts.map +1 -0
- package/dist/types.d.ts +40 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/utils/canonical.d.ts +5 -0
- package/dist/utils/canonical.d.ts.map +1 -0
- package/dist/utils/crypto.d.ts +13 -0
- package/dist/utils/crypto.d.ts.map +1 -0
- package/dist/utils/protocolMeta.d.ts +16 -0
- package/dist/utils/protocolMeta.d.ts.map +1 -0
- package/docs/ActionCodesProtocol/README.md +11 -0
- package/docs/ActionCodesProtocol/classes/ActionCodesProtocol.md +147 -0
- package/docs/README.md +10 -50
- package/docs/adapters/BaseChainAdapter/README.md +20 -0
- package/docs/adapters/BaseChainAdapter/classes/BaseChainAdapter.md +56 -0
- package/docs/adapters/BaseChainAdapter/interfaces/BaseContext.md +17 -0
- package/docs/adapters/BaseChainAdapter/interfaces/ChainAdapter.md +33 -0
- package/docs/adapters/BaseChainAdapter/type-aliases/ChainContext.md +23 -0
- package/docs/adapters/NodeCryptoAdapter/README.md +15 -0
- package/docs/adapters/NodeCryptoAdapter/classes/NodeCryptoAdapter.md +254 -0
- package/docs/adapters/NodeCryptoAdapter/type-aliases/NodeCryptoContext.md +27 -0
- package/docs/adapters/SolanaAdapter/README.md +16 -0
- package/docs/adapters/SolanaAdapter/classes/SolanaAdapter.md +190 -0
- package/docs/adapters/SolanaAdapter/type-aliases/SolanaContext.md +27 -0
- package/docs/adapters/SolanaAdapter/type-aliases/SolanaTransaction.md +13 -0
- package/docs/constants/README.md +8 -13
- package/docs/constants/variables/CODE_CHARSET_DIGITS.md +11 -0
- package/docs/constants/variables/CODE_DEFAULT_LENGTH.md +11 -0
- package/docs/constants/variables/CODE_MAX_LENGTH.md +11 -0
- package/docs/constants/variables/CODE_MIN_LENGTH.md +11 -0
- package/docs/constants/variables/PROTOCOL_META_MAX_BYTES.md +11 -0
- package/docs/constants/variables/PROTOCOL_NORMALIZATION.md +11 -0
- package/docs/constants/variables/SUPPORTED_CHAINS.md +3 -3
- package/docs/errors/README.md +22 -0
- package/docs/errors/classes/ExpiredCodeError.md +695 -0
- package/docs/errors/classes/InvalidCodeFormatError.md +691 -0
- package/docs/errors/classes/InvalidPubkeyFormatError.md +691 -0
- package/docs/errors/classes/InvalidSignatureError.md +687 -0
- package/docs/errors/classes/MetaMismatchError.md +695 -0
- package/docs/errors/classes/MissingMetaError.md +681 -0
- package/docs/errors/classes/ProtocolError.md +637 -0
- package/docs/errors/classes/TransactionNotSignedByIntendedOwnerError.md +691 -0
- package/docs/errors/enumerations/ProtocolErrorCode.md +121 -0
- package/docs/index/README.md +83 -41
- package/docs/modules.md +12 -9
- package/docs/strategy/WalletStrategy/README.md +11 -0
- package/docs/strategy/WalletStrategy/classes/WalletStrategy.md +67 -0
- package/docs/types/README.md +14 -0
- package/docs/types/interfaces/ActionCode.md +65 -0
- package/docs/types/interfaces/CanonicalMessageParts.md +33 -0
- package/docs/types/interfaces/CodeGenerationConfig.md +33 -0
- package/docs/types/interfaces/CodeGenerationResult.md +25 -0
- package/docs/utils/canonical/README.md +16 -0
- package/docs/utils/canonical/functions/serializeCanonical.md +21 -0
- package/docs/utils/canonical/variables/CANONICAL_MESSAGE_PREFIX.md +11 -0
- package/docs/utils/canonical/variables/CANONICAL_MESSAGE_VERSION.md +11 -0
- package/docs/utils/crypto/README.md +18 -0
- package/docs/utils/crypto/functions/base32EncodeCrockford.md +21 -0
- package/docs/utils/crypto/functions/codeHash.md +21 -0
- package/docs/utils/crypto/functions/digestToDigits.md +25 -0
- package/docs/utils/crypto/functions/generateRandomSecret.md +15 -0
- package/docs/utils/crypto/functions/hkdfSha256.md +35 -0
- package/docs/utils/crypto/functions/hmacSha256.md +25 -0
- package/docs/utils/crypto/functions/sha256.md +21 -0
- package/docs/utils/crypto/functions/truncateBits.md +25 -0
- package/docs/utils/protocolMeta/README.md +21 -0
- package/docs/utils/protocolMeta/functions/buildProtocolMeta.md +21 -0
- package/docs/utils/protocolMeta/functions/parseProtocolMeta.md +21 -0
- package/docs/utils/protocolMeta/functions/validateProtocolMetaFormat.md +21 -0
- package/docs/utils/protocolMeta/interfaces/ProtocolMetaFields.md +41 -0
- package/docs/utils/protocolMeta/variables/SCHEME.md +11 -0
- package/package.json +42 -47
- package/dist/actioncode.d.ts +0 -120
- package/dist/actioncode.d.ts.map +0 -1
- package/dist/actioncode.js +0 -186
- package/dist/adapters/base.d.ts +0 -93
- package/dist/adapters/base.d.ts.map +0 -1
- package/dist/adapters/base.js +0 -65
- package/dist/adapters/solana/index.d.ts +0 -2
- package/dist/adapters/solana/index.d.ts.map +0 -1
- package/dist/adapters/solana/index.js +0 -30
- package/dist/adapters/solana/solana.d.ts +0 -113
- package/dist/adapters/solana/solana.d.ts.map +0 -1
- package/dist/adapters/solana/solana.js +0 -537
- package/dist/codegen.d.ts +0 -76
- package/dist/codegen.d.ts.map +0 -1
- package/dist/codegen.js +0 -211
- package/dist/constants.js +0 -24
- package/dist/meta.d.ts +0 -54
- package/dist/meta.d.ts.map +0 -1
- package/dist/meta.js +0 -104
- package/dist/protocol.d.ts +0 -179
- package/dist/protocol.d.ts.map +0 -1
- package/dist/protocol.js +0 -390
- package/docs/_media/LICENSE +0 -201
- package/docs/_media/README.md +0 -28
- package/docs/actioncode/README.md +0 -21
- package/docs/actioncode/classes/ActionCode.md +0 -430
- package/docs/actioncode/interfaces/ActionCodeFields.md +0 -89
- package/docs/actioncode/interfaces/ActionCodeMetadata.md +0 -25
- package/docs/actioncode/interfaces/ActionCodeTransaction.md +0 -57
- package/docs/actioncode/type-aliases/ActionCodeStatus.md +0 -11
- package/docs/adapters/base/README.md +0 -11
- package/docs/adapters/base/classes/BaseChainAdapter.md +0 -396
- package/docs/adapters/solana/README.md +0 -19
- package/docs/adapters/solana/solana/README.md +0 -15
- package/docs/adapters/solana/solana/classes/SolanaAdapter.md +0 -506
- package/docs/adapters/solana/solana/type-aliases/SolanaTransaction.md +0 -13
- package/docs/codegen/README.md +0 -11
- package/docs/codegen/classes/CodeGenerator.md +0 -341
- package/docs/constants/type-aliases/SupportedChain.md +0 -11
- package/docs/constants/variables/CODE_LENGTH.md +0 -11
- package/docs/constants/variables/CODE_TTL.md +0 -11
- package/docs/constants/variables/MAX_PREFIX_LENGTH.md +0 -11
- package/docs/constants/variables/MIN_PREFIX_LENGTH.md +0 -11
- package/docs/constants/variables/PROTOCOL_CODE_PREFIX.md +0 -11
- package/docs/constants/variables/PROTOCOL_PREFIX.md +0 -11
- package/docs/constants/variables/PROTOCOL_VERSION.md +0 -11
- package/docs/meta/README.md +0 -15
- package/docs/meta/classes/ProtocolMetaParser.md +0 -177
- package/docs/meta/interfaces/ProtocolMetaV1.md +0 -59
- package/docs/protocol/README.md +0 -51
- package/docs/protocol/classes/ActionCodesProtocol.md +0 -676
- package/docs/protocol/interfaces/ProtocolConfig.md +0 -71
@@ -0,0 +1,190 @@
|
|
1
|
+
[**@actioncodes/protocol-v2**](../../../README.md)
|
2
|
+
|
3
|
+
***
|
4
|
+
|
5
|
+
[@actioncodes/protocol-v2](../../../modules.md) / [adapters/SolanaAdapter](../README.md) / SolanaAdapter
|
6
|
+
|
7
|
+
# Class: SolanaAdapter
|
8
|
+
|
9
|
+
Defined in: src/adapters/SolanaAdapter.ts:30
|
10
|
+
|
11
|
+
## Extends
|
12
|
+
|
13
|
+
- [`BaseChainAdapter`](../../BaseChainAdapter/classes/BaseChainAdapter.md)\<[`SolanaContext`](../type-aliases/SolanaContext.md)\>
|
14
|
+
|
15
|
+
## Constructors
|
16
|
+
|
17
|
+
### Constructor
|
18
|
+
|
19
|
+
> **new SolanaAdapter**(): `SolanaAdapter`
|
20
|
+
|
21
|
+
#### Returns
|
22
|
+
|
23
|
+
`SolanaAdapter`
|
24
|
+
|
25
|
+
#### Inherited from
|
26
|
+
|
27
|
+
[`BaseChainAdapter`](../../BaseChainAdapter/classes/BaseChainAdapter.md).[`constructor`](../../BaseChainAdapter/classes/BaseChainAdapter.md#constructor)
|
28
|
+
|
29
|
+
## Methods
|
30
|
+
|
31
|
+
### getProtocolMeta()
|
32
|
+
|
33
|
+
> **getProtocolMeta**(`tx`): `null` \| `string`
|
34
|
+
|
35
|
+
Defined in: src/adapters/SolanaAdapter.ts:81
|
36
|
+
|
37
|
+
Extract protocol metadata string (memo) from a transaction, or null
|
38
|
+
|
39
|
+
#### Parameters
|
40
|
+
|
41
|
+
##### tx
|
42
|
+
|
43
|
+
[`SolanaTransaction`](../type-aliases/SolanaTransaction.md)
|
44
|
+
|
45
|
+
#### Returns
|
46
|
+
|
47
|
+
`null` \| `string`
|
48
|
+
|
49
|
+
***
|
50
|
+
|
51
|
+
### parseMeta()
|
52
|
+
|
53
|
+
> **parseMeta**(`tx`): `null` \| [`ProtocolMetaFields`](../../../utils/protocolMeta/interfaces/ProtocolMetaFields.md)
|
54
|
+
|
55
|
+
Defined in: src/adapters/SolanaAdapter.ts:97
|
56
|
+
|
57
|
+
Get parsed ProtocolMeta object, or null if none or invalid
|
58
|
+
|
59
|
+
#### Parameters
|
60
|
+
|
61
|
+
##### tx
|
62
|
+
|
63
|
+
[`SolanaTransaction`](../type-aliases/SolanaTransaction.md)
|
64
|
+
|
65
|
+
#### Returns
|
66
|
+
|
67
|
+
`null` \| [`ProtocolMetaFields`](../../../utils/protocolMeta/interfaces/ProtocolMetaFields.md)
|
68
|
+
|
69
|
+
***
|
70
|
+
|
71
|
+
### verify()
|
72
|
+
|
73
|
+
> **verify**(`context`): `boolean`
|
74
|
+
|
75
|
+
Defined in: src/adapters/SolanaAdapter.ts:40
|
76
|
+
|
77
|
+
Verify the signature over canonical message (protocol-level)
|
78
|
+
|
79
|
+
#### Parameters
|
80
|
+
|
81
|
+
##### context
|
82
|
+
|
83
|
+
[`ChainContext`](../../BaseChainAdapter/type-aliases/ChainContext.md)\<[`SolanaContext`](../type-aliases/SolanaContext.md)\>
|
84
|
+
|
85
|
+
#### Returns
|
86
|
+
|
87
|
+
`boolean`
|
88
|
+
|
89
|
+
#### Overrides
|
90
|
+
|
91
|
+
[`BaseChainAdapter`](../../BaseChainAdapter/classes/BaseChainAdapter.md).[`verify`](../../BaseChainAdapter/classes/BaseChainAdapter.md#verify)
|
92
|
+
|
93
|
+
***
|
94
|
+
|
95
|
+
### verifyTransactionMatchesCode()
|
96
|
+
|
97
|
+
> **verifyTransactionMatchesCode**(`actionCode`, `tx`): `void`
|
98
|
+
|
99
|
+
Defined in: src/adapters/SolanaAdapter.ts:143
|
100
|
+
|
101
|
+
Validate that a transaction's memo meta aligns with the bound `actionCode`.
|
102
|
+
Throws ProtocolError if validation fails.
|
103
|
+
|
104
|
+
#### Parameters
|
105
|
+
|
106
|
+
##### actionCode
|
107
|
+
|
108
|
+
[`ActionCode`](../../../types/interfaces/ActionCode.md)
|
109
|
+
|
110
|
+
##### tx
|
111
|
+
|
112
|
+
[`SolanaTransaction`](../type-aliases/SolanaTransaction.md)
|
113
|
+
|
114
|
+
#### Returns
|
115
|
+
|
116
|
+
`void`
|
117
|
+
|
118
|
+
***
|
119
|
+
|
120
|
+
### verifyTransactionSignedByIntentOwner()
|
121
|
+
|
122
|
+
> **verifyTransactionSignedByIntentOwner**(`tx`): `void`
|
123
|
+
|
124
|
+
Defined in: src/adapters/SolanaAdapter.ts:184
|
125
|
+
|
126
|
+
Verify that the transaction is signed by the "intendedFor" pubkey
|
127
|
+
as declared in the protocol meta of the transaction.
|
128
|
+
Throws ProtocolError if validation fails.
|
129
|
+
|
130
|
+
#### Parameters
|
131
|
+
|
132
|
+
##### tx
|
133
|
+
|
134
|
+
[`SolanaTransaction`](../type-aliases/SolanaTransaction.md)
|
135
|
+
|
136
|
+
#### Returns
|
137
|
+
|
138
|
+
`void`
|
139
|
+
|
140
|
+
***
|
141
|
+
|
142
|
+
### attachProtocolMeta()
|
143
|
+
|
144
|
+
> `static` **attachProtocolMeta**\<`T`\>(`tx`, `meta`): `T`
|
145
|
+
|
146
|
+
Defined in: src/adapters/SolanaAdapter.ts:257
|
147
|
+
|
148
|
+
Attach protocol meta into a legacy or versioned transaction.
|
149
|
+
|
150
|
+
⚠️ Note: this mutates the given transaction.
|
151
|
+
|
152
|
+
#### Type Parameters
|
153
|
+
|
154
|
+
##### T
|
155
|
+
|
156
|
+
`T` *extends* [`SolanaTransaction`](../type-aliases/SolanaTransaction.md)
|
157
|
+
|
158
|
+
#### Parameters
|
159
|
+
|
160
|
+
##### tx
|
161
|
+
|
162
|
+
`T`
|
163
|
+
|
164
|
+
##### meta
|
165
|
+
|
166
|
+
[`ProtocolMetaFields`](../../../utils/protocolMeta/interfaces/ProtocolMetaFields.md)
|
167
|
+
|
168
|
+
#### Returns
|
169
|
+
|
170
|
+
`T`
|
171
|
+
|
172
|
+
***
|
173
|
+
|
174
|
+
### createProtocolMetaIx()
|
175
|
+
|
176
|
+
> `static` **createProtocolMetaIx**(`meta`): `TransactionInstruction`
|
177
|
+
|
178
|
+
Defined in: src/adapters/SolanaAdapter.ts:73
|
179
|
+
|
180
|
+
Create a Solana memo instruction carrying protocol meta (for SDK/clients)
|
181
|
+
|
182
|
+
#### Parameters
|
183
|
+
|
184
|
+
##### meta
|
185
|
+
|
186
|
+
[`ProtocolMetaFields`](../../../utils/protocolMeta/interfaces/ProtocolMetaFields.md)
|
187
|
+
|
188
|
+
#### Returns
|
189
|
+
|
190
|
+
`TransactionInstruction`
|
@@ -0,0 +1,27 @@
|
|
1
|
+
[**@actioncodes/protocol-v2**](../../../README.md)
|
2
|
+
|
3
|
+
***
|
4
|
+
|
5
|
+
[@actioncodes/protocol-v2](../../../modules.md) / [adapters/SolanaAdapter](../README.md) / SolanaContext
|
6
|
+
|
7
|
+
# Type Alias: SolanaContext
|
8
|
+
|
9
|
+
> **SolanaContext** = `object`
|
10
|
+
|
11
|
+
Defined in: src/adapters/SolanaAdapter.ts:22
|
12
|
+
|
13
|
+
## Properties
|
14
|
+
|
15
|
+
### pubkey
|
16
|
+
|
17
|
+
> **pubkey**: `string` \| `PublicKey`
|
18
|
+
|
19
|
+
Defined in: src/adapters/SolanaAdapter.ts:23
|
20
|
+
|
21
|
+
***
|
22
|
+
|
23
|
+
### signature
|
24
|
+
|
25
|
+
> **signature**: `string`
|
26
|
+
|
27
|
+
Defined in: src/adapters/SolanaAdapter.ts:24
|
@@ -0,0 +1,13 @@
|
|
1
|
+
[**@actioncodes/protocol-v2**](../../../README.md)
|
2
|
+
|
3
|
+
***
|
4
|
+
|
5
|
+
[@actioncodes/protocol-v2](../../../modules.md) / [adapters/SolanaAdapter](../README.md) / SolanaTransaction
|
6
|
+
|
7
|
+
# Type Alias: SolanaTransaction
|
8
|
+
|
9
|
+
> **SolanaTransaction** = `Transaction` \| `VersionedTransaction`
|
10
|
+
|
11
|
+
Defined in: src/adapters/SolanaAdapter.ts:28
|
12
|
+
|
13
|
+
Union of supported Solana txn types
|
package/docs/constants/README.md
CHANGED
@@ -1,22 +1,17 @@
|
|
1
|
-
[**@actioncodes/protocol**](../README.md)
|
1
|
+
[**@actioncodes/protocol-v2**](../README.md)
|
2
2
|
|
3
3
|
***
|
4
4
|
|
5
|
-
[@actioncodes/protocol](../modules.md) / constants
|
5
|
+
[@actioncodes/protocol-v2](../modules.md) / constants
|
6
6
|
|
7
7
|
# constants
|
8
8
|
|
9
|
-
## Type Aliases
|
10
|
-
|
11
|
-
- [SupportedChain](type-aliases/SupportedChain.md)
|
12
|
-
|
13
9
|
## Variables
|
14
10
|
|
15
|
-
- [CODE\
|
16
|
-
- [CODE\
|
17
|
-
- [
|
18
|
-
- [
|
19
|
-
- [PROTOCOL\
|
20
|
-
- [PROTOCOL\
|
21
|
-
- [PROTOCOL\_VERSION](variables/PROTOCOL_VERSION.md)
|
11
|
+
- [CODE\_CHARSET\_DIGITS](variables/CODE_CHARSET_DIGITS.md)
|
12
|
+
- [CODE\_DEFAULT\_LENGTH](variables/CODE_DEFAULT_LENGTH.md)
|
13
|
+
- [CODE\_MAX\_LENGTH](variables/CODE_MAX_LENGTH.md)
|
14
|
+
- [CODE\_MIN\_LENGTH](variables/CODE_MIN_LENGTH.md)
|
15
|
+
- [PROTOCOL\_META\_MAX\_BYTES](variables/PROTOCOL_META_MAX_BYTES.md)
|
16
|
+
- [PROTOCOL\_NORMALIZATION](variables/PROTOCOL_NORMALIZATION.md)
|
22
17
|
- [SUPPORTED\_CHAINS](variables/SUPPORTED_CHAINS.md)
|
@@ -0,0 +1,11 @@
|
|
1
|
+
[**@actioncodes/protocol-v2**](../../README.md)
|
2
|
+
|
3
|
+
***
|
4
|
+
|
5
|
+
[@actioncodes/protocol-v2](../../modules.md) / [constants](../README.md) / CODE\_CHARSET\_DIGITS
|
6
|
+
|
7
|
+
# Variable: CODE\_CHARSET\_DIGITS
|
8
|
+
|
9
|
+
> `const` **CODE\_CHARSET\_DIGITS**: `"0123456789"` = `"0123456789"`
|
10
|
+
|
11
|
+
Defined in: src/constants.ts:11
|
@@ -0,0 +1,11 @@
|
|
1
|
+
[**@actioncodes/protocol-v2**](../../README.md)
|
2
|
+
|
3
|
+
***
|
4
|
+
|
5
|
+
[@actioncodes/protocol-v2](../../modules.md) / [constants](../README.md) / CODE\_DEFAULT\_LENGTH
|
6
|
+
|
7
|
+
# Variable: CODE\_DEFAULT\_LENGTH
|
8
|
+
|
9
|
+
> `const` **CODE\_DEFAULT\_LENGTH**: `8` = `8`
|
10
|
+
|
11
|
+
Defined in: src/constants.ts:8
|
@@ -0,0 +1,11 @@
|
|
1
|
+
[**@actioncodes/protocol-v2**](../../README.md)
|
2
|
+
|
3
|
+
***
|
4
|
+
|
5
|
+
[@actioncodes/protocol-v2](../../modules.md) / [constants](../README.md) / CODE\_MAX\_LENGTH
|
6
|
+
|
7
|
+
# Variable: CODE\_MAX\_LENGTH
|
8
|
+
|
9
|
+
> `const` **CODE\_MAX\_LENGTH**: `24` = `24`
|
10
|
+
|
11
|
+
Defined in: src/constants.ts:7
|
@@ -0,0 +1,11 @@
|
|
1
|
+
[**@actioncodes/protocol-v2**](../../README.md)
|
2
|
+
|
3
|
+
***
|
4
|
+
|
5
|
+
[@actioncodes/protocol-v2](../../modules.md) / [constants](../README.md) / CODE\_MIN\_LENGTH
|
6
|
+
|
7
|
+
# Variable: CODE\_MIN\_LENGTH
|
8
|
+
|
9
|
+
> `const` **CODE\_MIN\_LENGTH**: `6` = `6`
|
10
|
+
|
11
|
+
Defined in: src/constants.ts:6
|
@@ -0,0 +1,11 @@
|
|
1
|
+
[**@actioncodes/protocol-v2**](../../README.md)
|
2
|
+
|
3
|
+
***
|
4
|
+
|
5
|
+
[@actioncodes/protocol-v2](../../modules.md) / [constants](../README.md) / PROTOCOL\_META\_MAX\_BYTES
|
6
|
+
|
7
|
+
# Variable: PROTOCOL\_META\_MAX\_BYTES
|
8
|
+
|
9
|
+
> `const` **PROTOCOL\_META\_MAX\_BYTES**: `256` = `256`
|
10
|
+
|
11
|
+
Defined in: src/constants.ts:4
|
@@ -0,0 +1,11 @@
|
|
1
|
+
[**@actioncodes/protocol-v2**](../../README.md)
|
2
|
+
|
3
|
+
***
|
4
|
+
|
5
|
+
[@actioncodes/protocol-v2](../../modules.md) / [constants](../README.md) / PROTOCOL\_NORMALIZATION
|
6
|
+
|
7
|
+
# Variable: PROTOCOL\_NORMALIZATION
|
8
|
+
|
9
|
+
> `const` **PROTOCOL\_NORMALIZATION**: `"NFC"` = `"NFC"`
|
10
|
+
|
11
|
+
Defined in: src/constants.ts:3
|
@@ -1,11 +1,11 @@
|
|
1
|
-
[**@actioncodes/protocol**](../../README.md)
|
1
|
+
[**@actioncodes/protocol-v2**](../../README.md)
|
2
2
|
|
3
3
|
***
|
4
4
|
|
5
|
-
[@actioncodes/protocol](../../modules.md) / [constants](../README.md) / SUPPORTED\_CHAINS
|
5
|
+
[@actioncodes/protocol-v2](../../modules.md) / [constants](../README.md) / SUPPORTED\_CHAINS
|
6
6
|
|
7
7
|
# Variable: SUPPORTED\_CHAINS
|
8
8
|
|
9
9
|
> `const` **SUPPORTED\_CHAINS**: readonly \[`"solana"`\]
|
10
10
|
|
11
|
-
Defined in:
|
11
|
+
Defined in: src/constants.ts:13
|
@@ -0,0 +1,22 @@
|
|
1
|
+
[**@actioncodes/protocol-v2**](../README.md)
|
2
|
+
|
3
|
+
***
|
4
|
+
|
5
|
+
[@actioncodes/protocol-v2](../modules.md) / errors
|
6
|
+
|
7
|
+
# errors
|
8
|
+
|
9
|
+
## Enumerations
|
10
|
+
|
11
|
+
- [ProtocolErrorCode](enumerations/ProtocolErrorCode.md)
|
12
|
+
|
13
|
+
## Classes
|
14
|
+
|
15
|
+
- [ExpiredCodeError](classes/ExpiredCodeError.md)
|
16
|
+
- [InvalidCodeFormatError](classes/InvalidCodeFormatError.md)
|
17
|
+
- [InvalidPubkeyFormatError](classes/InvalidPubkeyFormatError.md)
|
18
|
+
- [InvalidSignatureError](classes/InvalidSignatureError.md)
|
19
|
+
- [MetaMismatchError](classes/MetaMismatchError.md)
|
20
|
+
- [MissingMetaError](classes/MissingMetaError.md)
|
21
|
+
- [ProtocolError](classes/ProtocolError.md)
|
22
|
+
- [TransactionNotSignedByIntendedOwnerError](classes/TransactionNotSignedByIntendedOwnerError.md)
|