phygital-token-sdk 0.23.0 → 1.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 +21 -0
- package/README.md +64 -12
- package/dist/generated/accounts/index.d.ts +7 -0
- package/dist/generated/accounts/index.d.ts.map +1 -1
- package/dist/generated/accounts/index.js +7 -0
- package/dist/generated/accounts/index.js.map +1 -1
- package/dist/generated/accounts/phygitalToken.d.ts +17 -7
- package/dist/generated/accounts/phygitalToken.d.ts.map +1 -1
- package/dist/generated/accounts/phygitalToken.js +18 -8
- package/dist/generated/accounts/phygitalToken.js.map +1 -1
- package/dist/generated/errors/index.d.ts +7 -0
- package/dist/generated/errors/index.d.ts.map +1 -1
- package/dist/generated/errors/index.js +7 -0
- package/dist/generated/errors/index.js.map +1 -1
- package/dist/generated/errors/phygitalToken.d.ts +27 -0
- package/dist/generated/errors/phygitalToken.d.ts.map +1 -1
- package/dist/generated/errors/phygitalToken.js +52 -25
- package/dist/generated/errors/phygitalToken.js.map +1 -1
- package/dist/generated/index.d.ts +7 -0
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/generated/index.js +7 -0
- package/dist/generated/index.js.map +1 -1
- package/dist/generated/instructions/index.d.ts +7 -0
- package/dist/generated/instructions/index.d.ts.map +1 -1
- package/dist/generated/instructions/index.js +7 -0
- package/dist/generated/instructions/index.js.map +1 -1
- package/dist/generated/instructions/initialize.d.ts +14 -7
- package/dist/generated/instructions/initialize.d.ts.map +1 -1
- package/dist/generated/instructions/initialize.js +14 -3
- package/dist/generated/instructions/initialize.js.map +1 -1
- package/dist/generated/instructions/removeOwnership.d.ts +14 -7
- package/dist/generated/instructions/removeOwnership.d.ts.map +1 -1
- package/dist/generated/instructions/removeOwnership.js +12 -3
- package/dist/generated/instructions/removeOwnership.js.map +1 -1
- package/dist/generated/instructions/setLockState.d.ts +14 -7
- package/dist/generated/instructions/setLockState.d.ts.map +1 -1
- package/dist/generated/instructions/setLockState.js +13 -3
- package/dist/generated/instructions/setLockState.js.map +1 -1
- package/dist/generated/instructions/setMint.d.ts +14 -7
- package/dist/generated/instructions/setMint.d.ts.map +1 -1
- package/dist/generated/instructions/setMint.js +14 -3
- package/dist/generated/instructions/setMint.js.map +1 -1
- package/dist/generated/instructions/transferOwnership.d.ts +14 -7
- package/dist/generated/instructions/transferOwnership.d.ts.map +1 -1
- package/dist/generated/instructions/transferOwnership.js +14 -3
- package/dist/generated/instructions/transferOwnership.js.map +1 -1
- package/dist/generated/instructions/verify.d.ts +17 -10
- package/dist/generated/instructions/verify.d.ts.map +1 -1
- package/dist/generated/instructions/verify.js +22 -8
- package/dist/generated/instructions/verify.js.map +1 -1
- package/dist/generated/programs/index.d.ts +7 -0
- package/dist/generated/programs/index.d.ts.map +1 -1
- package/dist/generated/programs/index.js +7 -0
- package/dist/generated/programs/index.js.map +1 -1
- package/dist/generated/programs/phygitalToken.d.ts +7 -0
- package/dist/generated/programs/phygitalToken.d.ts.map +1 -1
- package/dist/generated/programs/phygitalToken.js +7 -0
- package/dist/generated/programs/phygitalToken.js.map +1 -1
- package/dist/generated/types/index.d.ts +7 -0
- package/dist/generated/types/index.d.ts.map +1 -1
- package/dist/generated/types/index.js +7 -0
- package/dist/generated/types/index.js.map +1 -1
- package/dist/generated/types/phygitalTokenType.d.ts +7 -0
- package/dist/generated/types/phygitalTokenType.d.ts.map +1 -1
- package/dist/generated/types/phygitalTokenType.js +7 -0
- package/dist/generated/types/phygitalTokenType.js.map +1 -1
- package/dist/generated/types/secp256r1Pubkey.d.ts +7 -0
- package/dist/generated/types/secp256r1Pubkey.d.ts.map +1 -1
- package/dist/generated/types/secp256r1Pubkey.js +7 -0
- package/dist/generated/types/secp256r1Pubkey.js.map +1 -1
- package/dist/generated/types/secp256r1VerifyArgs.d.ts +7 -0
- package/dist/generated/types/secp256r1VerifyArgs.d.ts.map +1 -1
- package/dist/generated/types/secp256r1VerifyArgs.js +7 -0
- package/dist/generated/types/secp256r1VerifyArgs.js.map +1 -1
- package/dist/index.d.ts +5 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -8
- package/dist/index.js.map +1 -1
- package/dist/instructions/internal/secp256r1Verify.d.ts +1 -0
- package/dist/instructions/internal/secp256r1Verify.d.ts.map +1 -1
- package/dist/instructions/transfer.d.ts +21 -2
- package/dist/instructions/transfer.d.ts.map +1 -1
- package/dist/instructions/transfer.js +25 -7
- package/dist/instructions/transfer.js.map +1 -1
- package/dist/instructions/verify.d.ts +35 -17
- package/dist/instructions/verify.d.ts.map +1 -1
- package/dist/instructions/verify.js +42 -35
- package/dist/instructions/verify.js.map +1 -1
- package/dist/utils/compat.d.ts +61 -0
- package/dist/utils/compat.d.ts.map +1 -0
- package/dist/utils/compat.js +76 -0
- package/dist/utils/compat.js.map +1 -0
- package/dist/utils/consts.d.ts +9 -0
- package/dist/utils/consts.d.ts.map +1 -1
- package/dist/utils/consts.js +9 -0
- package/dist/utils/consts.js.map +1 -1
- package/dist/utils/metadata.d.ts +17 -2
- package/dist/utils/metadata.d.ts.map +1 -1
- package/dist/utils/metadata.js +62 -7
- package/dist/utils/metadata.js.map +1 -1
- package/dist/utils/parseSecp256r1Pubkey.d.ts +4 -1
- package/dist/utils/parseSecp256r1Pubkey.d.ts.map +1 -1
- package/dist/utils/parseSecp256r1Pubkey.js +4 -1
- package/dist/utils/parseSecp256r1Pubkey.js.map +1 -1
- package/dist/utils/passkey/internal.d.ts +10 -0
- package/dist/utils/passkey/internal.d.ts.map +1 -1
- package/dist/utils/passkey/internal.js +10 -0
- package/dist/utils/passkey/internal.js.map +1 -1
- package/dist/utils/passkey/nfc/apdu.d.ts +17 -0
- package/dist/utils/passkey/nfc/apdu.d.ts.map +1 -1
- package/dist/utils/passkey/nfc/apdu.js +19 -0
- package/dist/utils/passkey/nfc/apdu.js.map +1 -1
- package/dist/utils/passkey/nfc/authDataExtensions.d.ts +7 -0
- package/dist/utils/passkey/nfc/authDataExtensions.d.ts.map +1 -1
- package/dist/utils/passkey/nfc/authDataExtensions.js +15 -0
- package/dist/utils/passkey/nfc/authDataExtensions.js.map +1 -1
- package/dist/utils/passkey/nfc/authenticate.d.ts +9 -0
- package/dist/utils/passkey/nfc/authenticate.d.ts.map +1 -1
- package/dist/utils/passkey/nfc/authenticate.js +13 -0
- package/dist/utils/passkey/nfc/authenticate.js.map +1 -1
- package/dist/utils/passkey/nfc/cbor.js +24 -0
- package/dist/utils/passkey/nfc/cbor.js.map +1 -1
- package/dist/utils/passkey/nfc/errors.d.ts.map +1 -1
- package/dist/utils/passkey/secp256r1.d.ts +2 -8
- package/dist/utils/passkey/secp256r1.d.ts.map +1 -1
- package/dist/utils/passkey/secp256r1.js +2 -11
- package/dist/utils/passkey/secp256r1.js.map +1 -1
- package/dist/utils/passkey/webauthn.d.ts +25 -1
- package/dist/utils/passkey/webauthn.d.ts.map +1 -1
- package/dist/utils/passkey/webauthn.js +23 -2
- package/dist/utils/passkey/webauthn.js.map +1 -1
- package/dist/utils/pdas/token.d.ts +7 -1
- package/dist/utils/pdas/token.d.ts.map +1 -1
- package/dist/utils/pdas/token.js +7 -1
- package/dist/utils/pdas/token.js.map +1 -1
- package/dist/utils/verify.d.ts +27 -1
- package/dist/utils/verify.d.ts.map +1 -1
- package/dist/utils/verify.js +26 -3
- package/dist/utils/verify.js.map +1 -1
- package/package.json +36 -14
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Revibase
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# phygital-token-sdk
|
|
2
2
|
|
|
3
|
-
TypeScript client for the Phygital Token Solana program. Authenticate a
|
|
3
|
+
TypeScript client for the Phygital Token Solana program. Authenticate a token with a live NFC tap, or prove possession on-chain so another program can CPI `verify`.
|
|
4
4
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
@@ -8,42 +8,94 @@ TypeScript client for the Phygital Token Solana program. Authenticate a phygital
|
|
|
8
8
|
pnpm add phygital-token-sdk @solana/kit
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
`@solana/kit` is a peer. On-chain programs use the Rust crate `phygital-token-client`.
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
## Off-chain authentication
|
|
14
|
+
|
|
15
|
+
The authenticator uses the compressed secp256r1 **public key** as the WebAuthn `credential.id`.
|
|
14
16
|
|
|
15
17
|
```ts
|
|
16
18
|
import { createSolanaRpc } from "@solana/kit";
|
|
17
19
|
import {
|
|
18
20
|
startAuthentication,
|
|
19
21
|
verifyResponse,
|
|
20
|
-
|
|
22
|
+
findPhygitalTokenPda,
|
|
21
23
|
fetchPhygitalToken,
|
|
22
24
|
} from "phygital-token-sdk";
|
|
23
25
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
+
// Server: issue a short-lived challenge
|
|
26
27
|
const message = crypto.randomUUID();
|
|
27
28
|
|
|
28
|
-
//
|
|
29
|
+
// Client: native NFC modal
|
|
29
30
|
const response = await startAuthentication(message);
|
|
30
31
|
|
|
32
|
+
// Server: check the signature (no RPC)
|
|
31
33
|
const { isVerified, secp256r1PublicKey } = verifyResponse({
|
|
32
34
|
expectedMessage: message,
|
|
33
35
|
response,
|
|
34
36
|
});
|
|
35
37
|
|
|
36
38
|
if (isVerified) {
|
|
37
|
-
const
|
|
39
|
+
const rpc = createSolanaRpc("https://api.mainnet-beta.solana.com");
|
|
40
|
+
const { data } = await fetchPhygitalToken(
|
|
38
41
|
rpc,
|
|
39
|
-
await
|
|
42
|
+
await findPhygitalTokenPda(secp256r1PublicKey),
|
|
40
43
|
);
|
|
41
|
-
//
|
|
44
|
+
// Proceed with custom logic using data.owner or data.mint
|
|
42
45
|
}
|
|
43
46
|
```
|
|
44
47
|
|
|
45
|
-
|
|
48
|
+
## On-chain `verify` (CPI)
|
|
49
|
+
|
|
50
|
+
Use this when **your program** needs a possession proof. Your program CPIs `verify` with `VerifyCpiBuilder`.
|
|
51
|
+
|
|
52
|
+
The tap uses your `messageHash` (32 bytes) as the WebAuthn challenge. Hash with `buildMessageHash` first, and pass the same digest to `VerifyCpiBuilder.message_hash`. Fold in any freshness or domain separation before hashing.
|
|
53
|
+
|
|
54
|
+
### Client (TypeScript)
|
|
55
|
+
|
|
56
|
+
```ts
|
|
57
|
+
import {
|
|
58
|
+
buildMessageHash,
|
|
59
|
+
authenticatePasskeyForSecp256r1Verify,
|
|
60
|
+
buildSecp256r1VerifyInstruction,
|
|
61
|
+
} from "phygital-token-sdk";
|
|
62
|
+
|
|
63
|
+
const messageHash = buildMessageHash(message);
|
|
64
|
+
const tap = await authenticatePasskeyForSecp256r1Verify({
|
|
65
|
+
messageHash,
|
|
66
|
+
});
|
|
67
|
+
const { secp256r1VerifyInstruction, phygitalTokenPda, secp256r1VerifyArgs } =
|
|
68
|
+
await buildSecp256r1VerifyInstruction(tap);
|
|
69
|
+
|
|
70
|
+
const instructions = [
|
|
71
|
+
secp256r1VerifyInstruction, // immediately before your instruction
|
|
72
|
+
yourProgramInstruction, // use phygitalTokenPda & secp256r1VerifyArgs as inputs when generating your program instruction
|
|
73
|
+
];
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
### Program (Rust)
|
|
77
|
+
|
|
78
|
+
```rust
|
|
79
|
+
use phygital_token_client::generated::instructions::VerifyCpiBuilder;
|
|
80
|
+
|
|
81
|
+
VerifyCpiBuilder::new(phygital_token_program)
|
|
82
|
+
.phygital_token(phygital_token) // phygitalTokenPda from the tap
|
|
83
|
+
.instructions_sysvar(instructions_sysvar) // your accounts
|
|
84
|
+
.secp256r1_verify_args(secp256r1_verify_args) // from the tap
|
|
85
|
+
.message_hash(message_hash) // same digest as buildMessageHash(message)
|
|
86
|
+
// optional WebAuthn bindings (omit to skip):
|
|
87
|
+
.expected_rp_id("app.example".into())
|
|
88
|
+
.expected_origins(vec![
|
|
89
|
+
"https://app.example".into(),
|
|
90
|
+
"http://localhost:3000".into(),
|
|
91
|
+
])
|
|
92
|
+
.invoke()?;
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
Crate: `phygital-token-client`.
|
|
96
|
+
|
|
97
|
+
`expected_rp_id` / `expected_origins` are set on **your CPI**, not on the TypeScript tap helper. The tap's `rpId` only selects which WebAuthn relying party the browser uses. When `expected_origins` is set, `clientDataJSON.origin` must match one listed origin.
|
|
46
98
|
|
|
47
99
|
## License
|
|
48
100
|
|
|
49
|
-
|
|
101
|
+
MIT. See [LICENSE](./LICENSE).
|
|
@@ -1,2 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
1
8
|
export * from "./phygitalToken.js";
|
|
2
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/generated/accounts/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/generated/accounts/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,oBAAoB,CAAC"}
|
|
@@ -1,2 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
1
8
|
export * from "./phygitalToken.js";
|
|
2
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/generated/accounts/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/generated/accounts/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,oBAAoB,CAAC"}
|
|
@@ -1,28 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
1
8
|
import { fetchEncodedAccount, fetchEncodedAccounts, type Account, type Address, type EncodedAccount, type FetchAccountConfig, type FetchAccountsConfig, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type MaybeAccount, type MaybeEncodedAccount, type ReadonlyUint8Array } from "@solana/kit";
|
|
2
|
-
import { type
|
|
9
|
+
import { type Secp256r1Pubkey, type Secp256r1PubkeyArgs } from "../types/index.js";
|
|
3
10
|
export declare const PHYGITAL_TOKEN_DISCRIMINATOR: ReadonlyUint8Array;
|
|
4
11
|
export declare function getPhygitalTokenDiscriminatorBytes(): ReadonlyUint8Array;
|
|
5
12
|
export type PhygitalToken = {
|
|
6
13
|
discriminator: ReadonlyUint8Array;
|
|
7
|
-
tokenType: PhygitalTokenType;
|
|
8
14
|
owner: Address;
|
|
15
|
+
mint: Address;
|
|
9
16
|
lastSignCount: number;
|
|
10
|
-
|
|
17
|
+
tokenType: number;
|
|
18
|
+
isLocked: number;
|
|
11
19
|
publicKey: Secp256r1Pubkey;
|
|
12
20
|
identifier: Secp256r1Pubkey;
|
|
13
|
-
mint: Address;
|
|
14
21
|
};
|
|
15
22
|
export type PhygitalTokenArgs = {
|
|
16
|
-
tokenType: PhygitalTokenTypeArgs;
|
|
17
23
|
owner: Address;
|
|
24
|
+
mint: Address;
|
|
18
25
|
lastSignCount: number;
|
|
19
|
-
|
|
26
|
+
tokenType: number;
|
|
27
|
+
isLocked: number;
|
|
20
28
|
publicKey: Secp256r1PubkeyArgs;
|
|
21
29
|
identifier: Secp256r1PubkeyArgs;
|
|
22
|
-
mint: Address;
|
|
23
30
|
};
|
|
31
|
+
/** Gets the encoder for {@link PhygitalTokenArgs} account data. */
|
|
24
32
|
export declare function getPhygitalTokenEncoder(): FixedSizeEncoder<PhygitalTokenArgs>;
|
|
33
|
+
/** Gets the decoder for {@link PhygitalToken} account data. */
|
|
25
34
|
export declare function getPhygitalTokenDecoder(): FixedSizeDecoder<PhygitalToken>;
|
|
35
|
+
/** Gets the codec for {@link PhygitalToken} account data. */
|
|
26
36
|
export declare function getPhygitalTokenCodec(): FixedSizeCodec<PhygitalTokenArgs, PhygitalToken>;
|
|
27
37
|
export declare function decodePhygitalToken<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<PhygitalToken, TAddress>;
|
|
28
38
|
export declare function decodePhygitalToken<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<PhygitalToken, TAddress>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"phygitalToken.d.ts","sourceRoot":"","sources":["../../../src/generated/accounts/phygitalToken.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"phygitalToken.d.ts","sourceRoot":"","sources":["../../../src/generated/accounts/phygitalToken.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAKL,mBAAmB,EACnB,oBAAoB,EAcpB,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACxB,MAAM,aAAa,CAAC;AACrB,OAAO,EAGL,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACzB,MAAM,mBAAmB,CAAC;AAE3B,eAAO,MAAM,4BAA4B,EAAE,kBAEzC,CAAC;AAEH,wBAAgB,kCAAkC,IAAI,kBAAkB,CAIvE;AAED,MAAM,MAAM,aAAa,GAAG;IAC1B,aAAa,EAAE,kBAAkB,CAAC;IAClC,KAAK,EAAE,OAAO,CAAC;IACf,IAAI,EAAE,OAAO,CAAC;IACd,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,eAAe,CAAC;IAC3B,UAAU,EAAE,eAAe,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,EAAE,OAAO,CAAC;IACf,IAAI,EAAE,OAAO,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AY,CAAC,aAAa,EAAE,QAAQ,CAAC,CAAC,CAGhD;AAED,wBAAsB,qBAAqB,CACzC,GAAG,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAAC,EAC/C,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,EACzB,MAAM,CAAC,EAAE,mBAAmB,GAC3B,OAAO,CAAC,OAAO,CAAC,aAAa,CAAC,EAAE,CAAC,CAQnC;AAED,wBAAsB,0BAA0B,CAC9C,GAAG,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAAC,EAC/C,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,EACzB,MAAM,CAAC,EAAE,mBAAmB,GAC3B,OAAO,CAAC,YAAY,CAAC,aAAa,CAAC,EAAE,CAAC,CAGxC;AAED,wBAAgB,oBAAoB,IAAI,MAAM,CAE7C"}
|
|
@@ -1,35 +1,45 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { assertAccountExists, assertAccountsExist, combineCodec, decodeAccount, fetchEncodedAccount, fetchEncodedAccounts, fixDecoderSize, fixEncoderSize, getAddressDecoder, getAddressEncoder, getBytesDecoder, getBytesEncoder, getStructDecoder, getStructEncoder, getU32Decoder, getU32Encoder, getU8Decoder, getU8Encoder, transformEncoder, } from "@solana/kit";
|
|
9
|
+
import { getSecp256r1PubkeyDecoder, getSecp256r1PubkeyEncoder, } from "../types/index.js";
|
|
3
10
|
export const PHYGITAL_TOKEN_DISCRIMINATOR = new Uint8Array([
|
|
4
11
|
123, 198, 67, 145, 58, 49, 38, 72,
|
|
5
12
|
]);
|
|
6
13
|
export function getPhygitalTokenDiscriminatorBytes() {
|
|
7
14
|
return fixEncoderSize(getBytesEncoder(), 8).encode(PHYGITAL_TOKEN_DISCRIMINATOR);
|
|
8
15
|
}
|
|
16
|
+
/** Gets the encoder for {@link PhygitalTokenArgs} account data. */
|
|
9
17
|
export function getPhygitalTokenEncoder() {
|
|
10
18
|
return transformEncoder(getStructEncoder([
|
|
11
19
|
["discriminator", fixEncoderSize(getBytesEncoder(), 8)],
|
|
12
|
-
["tokenType", getPhygitalTokenTypeEncoder()],
|
|
13
20
|
["owner", getAddressEncoder()],
|
|
21
|
+
["mint", getAddressEncoder()],
|
|
14
22
|
["lastSignCount", getU32Encoder()],
|
|
15
|
-
["
|
|
23
|
+
["tokenType", getU8Encoder()],
|
|
24
|
+
["isLocked", getU8Encoder()],
|
|
16
25
|
["publicKey", getSecp256r1PubkeyEncoder()],
|
|
17
26
|
["identifier", getSecp256r1PubkeyEncoder()],
|
|
18
|
-
["mint", getAddressEncoder()],
|
|
19
27
|
]), (value) => ({ ...value, discriminator: PHYGITAL_TOKEN_DISCRIMINATOR }));
|
|
20
28
|
}
|
|
29
|
+
/** Gets the decoder for {@link PhygitalToken} account data. */
|
|
21
30
|
export function getPhygitalTokenDecoder() {
|
|
22
31
|
return getStructDecoder([
|
|
23
32
|
["discriminator", fixDecoderSize(getBytesDecoder(), 8)],
|
|
24
|
-
["tokenType", getPhygitalTokenTypeDecoder()],
|
|
25
33
|
["owner", getAddressDecoder()],
|
|
34
|
+
["mint", getAddressDecoder()],
|
|
26
35
|
["lastSignCount", getU32Decoder()],
|
|
27
|
-
["
|
|
36
|
+
["tokenType", getU8Decoder()],
|
|
37
|
+
["isLocked", getU8Decoder()],
|
|
28
38
|
["publicKey", getSecp256r1PubkeyDecoder()],
|
|
29
39
|
["identifier", getSecp256r1PubkeyDecoder()],
|
|
30
|
-
["mint", getAddressDecoder()],
|
|
31
40
|
]);
|
|
32
41
|
}
|
|
42
|
+
/** Gets the codec for {@link PhygitalToken} account data. */
|
|
33
43
|
export function getPhygitalTokenCodec() {
|
|
34
44
|
return combineCodec(getPhygitalTokenEncoder(), getPhygitalTokenDecoder());
|
|
35
45
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"phygitalToken.js","sourceRoot":"","sources":["../../../src/generated/accounts/phygitalToken.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"phygitalToken.js","sourceRoot":"","sources":["../../../src/generated/accounts/phygitalToken.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,YAAY,EACZ,aAAa,EACb,mBAAmB,EACnB,oBAAoB,EACpB,cAAc,EACd,cAAc,EACd,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EACb,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,gBAAgB,GAYjB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,yBAAyB,EACzB,yBAAyB,GAG1B,MAAM,mBAAmB,CAAC;AAE3B,MAAM,CAAC,MAAM,4BAA4B,GAAuB,IAAI,UAAU,CAAC;IAC7E,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE;CAClC,CAAC,CAAC;AAEH,MAAM,UAAU,kCAAkC;IAChD,OAAO,cAAc,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAChD,4BAA4B,CAC7B,CAAC;AACJ,CAAC;AAuBD,mEAAmE;AACnE,MAAM,UAAU,uBAAuB;IACrC,OAAO,gBAAgB,CACrB,gBAAgB,CAAC;QACf,CAAC,eAAe,EAAE,cAAc,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC,CAAC;QACvD,CAAC,OAAO,EAAE,iBAAiB,EAAE,CAAC;QAC9B,CAAC,MAAM,EAAE,iBAAiB,EAAE,CAAC;QAC7B,CAAC,eAAe,EAAE,aAAa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AC,YAAY,CAAC,CAAC;IAClC,OAAO,YAAY,CAAC;AACtB,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,uBAAuB,CAC3C,GAA8C,EAC9C,OAA0B,EAC1B,MAA2B;IAE3B,MAAM,YAAY,GAAG,MAAM,mBAAmB,CAAC,GAAG,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACrE,OAAO,mBAAmB,CAAC,YAAY,CAAC,CAAC;AAC3C,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,qBAAqB,CACzC,GAA+C,EAC/C,SAAyB,EACzB,MAA4B;IAE5B,MAAM,aAAa,GAAG,MAAM,0BAA0B,CACpD,GAAG,EACH,SAAS,EACT,MAAM,CACP,CAAC;IACF,mBAAmB,CAAC,aAAa,CAAC,CAAC;IACnC,OAAO,aAAa,CAAC;AACvB,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,0BAA0B,CAC9C,GAA+C,EAC/C,SAAyB,EACzB,MAA4B;IAE5B,MAAM,aAAa,GAAG,MAAM,oBAAoB,CAAC,GAAG,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC;IACzE,OAAO,aAAa,CAAC,GAAG,CAAC,CAAC,YAAY,EAAE,EAAE,CAAC,mBAAmB,CAAC,YAAY,CAAC,CAAC,CAAC;AAChF,CAAC;AAED,MAAM,UAAU,oBAAoB;IAClC,OAAO,GAAG,CAAC;AACb,CAAC"}
|
|
@@ -1,2 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
1
8
|
export * from "./phygitalToken.js";
|
|
2
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/generated/errors/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/generated/errors/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,oBAAoB,CAAC"}
|
|
@@ -1,2 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
1
8
|
export * from "./phygitalToken.js";
|
|
2
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/generated/errors/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/generated/errors/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,oBAAoB,CAAC"}
|
|
@@ -1,23 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
1
8
|
import { type Address, type SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM, type SolanaError } from "@solana/kit";
|
|
9
|
+
/** InvalidSecp256r1Instruction: No prior secp256r1 verification instruction in this transaction matches the provided client data */
|
|
2
10
|
export declare const PHYGITAL_TOKEN_ERROR__INVALID_SECP256R1_INSTRUCTION = 6000;
|
|
11
|
+
/** SignatureIndexOutOfBounds: The signature index provided is out of bounds for the secp256r1 instruction */
|
|
3
12
|
export declare const PHYGITAL_TOKEN_ERROR__SIGNATURE_INDEX_OUT_OF_BOUNDS = 6001;
|
|
13
|
+
/** InvalidSignatureOffsets: Failed to deserialize secp256r1 signature offsets from the instruction data */
|
|
4
14
|
export declare const PHYGITAL_TOKEN_ERROR__INVALID_SIGNATURE_OFFSETS = 6002;
|
|
15
|
+
/** InvalidSecp256r1PublicKey: Invalid secp256r1 public key */
|
|
5
16
|
export declare const PHYGITAL_TOKEN_ERROR__INVALID_SECP256R1_PUBLIC_KEY = 6003;
|
|
17
|
+
/** Secp256r1PubkeyMismatch: secp256r1 pubkey does not match phygital token record */
|
|
6
18
|
export declare const PHYGITAL_TOKEN_ERROR__SECP256R1_PUBKEY_MISMATCH = 6004;
|
|
19
|
+
/** OwnerMismatch: Phygital token owner mismatch */
|
|
7
20
|
export declare const PHYGITAL_TOKEN_ERROR__OWNER_MISMATCH = 6005;
|
|
21
|
+
/** InvalidSlotHash: Slot not found in SlotHashes sysvar — signature has expired or is being replayed */
|
|
8
22
|
export declare const PHYGITAL_TOKEN_ERROR__INVALID_SLOT_HASH = 6006;
|
|
23
|
+
/** StaleSignCount: WebAuthn signCount must be greater than the last accepted signCount */
|
|
9
24
|
export declare const PHYGITAL_TOKEN_ERROR__STALE_SIGN_COUNT = 6007;
|
|
25
|
+
/** ClientDataHashMismatch: Client data hash mismatch */
|
|
10
26
|
export declare const PHYGITAL_TOKEN_ERROR__CLIENT_DATA_HASH_MISMATCH = 6008;
|
|
27
|
+
/** MissingInstructionsSysvar: Missing instructions sysvar account */
|
|
11
28
|
export declare const PHYGITAL_TOKEN_ERROR__MISSING_INSTRUCTIONS_SYSVAR = 6009;
|
|
29
|
+
/** InvalidSysvarDataFormat: Invalid sysvar data format */
|
|
12
30
|
export declare const PHYGITAL_TOKEN_ERROR__INVALID_SYSVAR_DATA_FORMAT = 6010;
|
|
31
|
+
/** TokenIsCurrentlyLocked: The owner needs to unlock the phygital token to enable transfer. */
|
|
13
32
|
export declare const PHYGITAL_TOKEN_ERROR__TOKEN_IS_CURRENTLY_LOCKED = 6011;
|
|
33
|
+
/** TokenIsNotLockable: This phygital token is not lockable. */
|
|
14
34
|
export declare const PHYGITAL_TOKEN_ERROR__TOKEN_IS_NOT_LOCKABLE = 6012;
|
|
35
|
+
/** UnableToParseClientData: Unable to parse client data JSON. */
|
|
15
36
|
export declare const PHYGITAL_TOKEN_ERROR__UNABLE_TO_PARSE_CLIENT_DATA = 6013;
|
|
37
|
+
/** ChallengeHashMismatch: Challenge hash mismatch. */
|
|
16
38
|
export declare const PHYGITAL_TOKEN_ERROR__CHALLENGE_HASH_MISMATCH = 6014;
|
|
39
|
+
/** InvalidAuthenticatorData: Authenticator data is too short to contain WebAuthn flags. */
|
|
17
40
|
export declare const PHYGITAL_TOKEN_ERROR__INVALID_AUTHENTICATOR_DATA = 6015;
|
|
41
|
+
/** UserPresenceNotVerified: WebAuthn user presence flag (UP) was not set by the authenticator. */
|
|
18
42
|
export declare const PHYGITAL_TOKEN_ERROR__USER_PRESENCE_NOT_VERIFIED = 6016;
|
|
43
|
+
/** RpIdMismatch: WebAuthn rpId hash does not match the expected relying party id. */
|
|
19
44
|
export declare const PHYGITAL_TOKEN_ERROR__RP_ID_MISMATCH = 6017;
|
|
45
|
+
/** OriginMismatch: WebAuthn origin does not match any expected origin. */
|
|
20
46
|
export declare const PHYGITAL_TOKEN_ERROR__ORIGIN_MISMATCH = 6018;
|
|
47
|
+
/** UnauthorizedAuthority: Only the designated authority can perform this action. */
|
|
21
48
|
export declare const PHYGITAL_TOKEN_ERROR__UNAUTHORIZED_AUTHORITY = 6019;
|
|
22
49
|
export type PhygitalTokenError = typeof PHYGITAL_TOKEN_ERROR__CHALLENGE_HASH_MISMATCH | typeof PHYGITAL_TOKEN_ERROR__CLIENT_DATA_HASH_MISMATCH | typeof PHYGITAL_TOKEN_ERROR__INVALID_AUTHENTICATOR_DATA | typeof PHYGITAL_TOKEN_ERROR__INVALID_SECP256R1_INSTRUCTION | typeof PHYGITAL_TOKEN_ERROR__INVALID_SECP256R1_PUBLIC_KEY | typeof PHYGITAL_TOKEN_ERROR__INVALID_SIGNATURE_OFFSETS | typeof PHYGITAL_TOKEN_ERROR__INVALID_SLOT_HASH | typeof PHYGITAL_TOKEN_ERROR__INVALID_SYSVAR_DATA_FORMAT | typeof PHYGITAL_TOKEN_ERROR__MISSING_INSTRUCTIONS_SYSVAR | typeof PHYGITAL_TOKEN_ERROR__ORIGIN_MISMATCH | typeof PHYGITAL_TOKEN_ERROR__OWNER_MISMATCH | typeof PHYGITAL_TOKEN_ERROR__RP_ID_MISMATCH | typeof PHYGITAL_TOKEN_ERROR__SECP256R1_PUBKEY_MISMATCH | typeof PHYGITAL_TOKEN_ERROR__SIGNATURE_INDEX_OUT_OF_BOUNDS | typeof PHYGITAL_TOKEN_ERROR__STALE_SIGN_COUNT | typeof PHYGITAL_TOKEN_ERROR__TOKEN_IS_CURRENTLY_LOCKED | typeof PHYGITAL_TOKEN_ERROR__TOKEN_IS_NOT_LOCKABLE | typeof PHYGITAL_TOKEN_ERROR__UNABLE_TO_PARSE_CLIENT_DATA | typeof PHYGITAL_TOKEN_ERROR__UNAUTHORIZED_AUTHORITY | typeof PHYGITAL_TOKEN_ERROR__USER_PRESENCE_NOT_VERIFIED;
|
|
23
50
|
export declare function getPhygitalTokenErrorMessage(code: PhygitalTokenError): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"phygitalToken.d.ts","sourceRoot":"","sources":["../../../src/generated/errors/phygitalToken.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"phygitalToken.d.ts","sourceRoot":"","sources":["../../../src/generated/errors/phygitalToken.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAEL,KAAK,OAAO,EACZ,KAAK,uCAAuC,EAC5C,KAAK,WAAW,EACjB,MAAM,aAAa,CAAC;AAGrB,oIAAoI;AACpI,eAAO,MAAM,mDAAmD,OAAS,CAAC;AAC1E,6GAA6G;AAC7G,eAAO,MAAM,mDAAmD,OAAS,CAAC;AAC1E,2GAA2G;AAC3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3C,OAAO,+CAA+C,GACtD,OAAO,mDAAmD,GAC1D,OAAO,sCAAsC,GAC7C,OAAO,+CAA+C,GACtD,OAAO,2CAA2C,GAClD,OAAO,iDAAiD,GACxD,OAAO,4CAA4C,GACnD,OAAO,gDAAgD,CAAC;AA4B5D,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,kBAAkB,GAAG,MAAM,CAQ7E;AAED,wBAAgB,oBAAoB,CAClC,iBAAiB,SAAS,kBAAkB,EAE5C,KAAK,EAAE,OAAO,EACd,kBAAkB,EAAE;IAClB,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,cAAc,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;CAC3D,EACD,IAAI,CAAC,EAAE,iBAAiB,GACvB,KAAK,IAAI,WAAW,CAAC,OAAO,uCAAuC,CAAC,GACrE,QAAQ,CAAC;IAAE,OAAO,EAAE,QAAQ,CAAC;QAAE,IAAI,EAAE,iBAAiB,CAAA;KAAE,CAAC,CAAA;CAAE,CAAC,CAO7D"}
|
|
@@ -1,25 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
1
8
|
import { isProgramError, } from "@solana/kit";
|
|
2
9
|
import { PHYGITAL_TOKEN_PROGRAM_ADDRESS } from "../programs/index.js";
|
|
3
|
-
|
|
4
|
-
export const
|
|
5
|
-
|
|
6
|
-
export const
|
|
7
|
-
|
|
8
|
-
export const
|
|
9
|
-
|
|
10
|
-
export const
|
|
11
|
-
|
|
12
|
-
export const
|
|
13
|
-
|
|
14
|
-
export const
|
|
15
|
-
|
|
16
|
-
export const
|
|
17
|
-
|
|
18
|
-
export const
|
|
19
|
-
|
|
20
|
-
export const
|
|
21
|
-
|
|
22
|
-
export const
|
|
10
|
+
/** InvalidSecp256r1Instruction: No prior secp256r1 verification instruction in this transaction matches the provided client data */
|
|
11
|
+
export const PHYGITAL_TOKEN_ERROR__INVALID_SECP256R1_INSTRUCTION = 0x1770; // 6000
|
|
12
|
+
/** SignatureIndexOutOfBounds: The signature index provided is out of bounds for the secp256r1 instruction */
|
|
13
|
+
export const PHYGITAL_TOKEN_ERROR__SIGNATURE_INDEX_OUT_OF_BOUNDS = 0x1771; // 6001
|
|
14
|
+
/** InvalidSignatureOffsets: Failed to deserialize secp256r1 signature offsets from the instruction data */
|
|
15
|
+
export const PHYGITAL_TOKEN_ERROR__INVALID_SIGNATURE_OFFSETS = 0x1772; // 6002
|
|
16
|
+
/** InvalidSecp256r1PublicKey: Invalid secp256r1 public key */
|
|
17
|
+
export const PHYGITAL_TOKEN_ERROR__INVALID_SECP256R1_PUBLIC_KEY = 0x1773; // 6003
|
|
18
|
+
/** Secp256r1PubkeyMismatch: secp256r1 pubkey does not match phygital token record */
|
|
19
|
+
export const PHYGITAL_TOKEN_ERROR__SECP256R1_PUBKEY_MISMATCH = 0x1774; // 6004
|
|
20
|
+
/** OwnerMismatch: Phygital token owner mismatch */
|
|
21
|
+
export const PHYGITAL_TOKEN_ERROR__OWNER_MISMATCH = 0x1775; // 6005
|
|
22
|
+
/** InvalidSlotHash: Slot not found in SlotHashes sysvar — signature has expired or is being replayed */
|
|
23
|
+
export const PHYGITAL_TOKEN_ERROR__INVALID_SLOT_HASH = 0x1776; // 6006
|
|
24
|
+
/** StaleSignCount: WebAuthn signCount must be greater than the last accepted signCount */
|
|
25
|
+
export const PHYGITAL_TOKEN_ERROR__STALE_SIGN_COUNT = 0x1777; // 6007
|
|
26
|
+
/** ClientDataHashMismatch: Client data hash mismatch */
|
|
27
|
+
export const PHYGITAL_TOKEN_ERROR__CLIENT_DATA_HASH_MISMATCH = 0x1778; // 6008
|
|
28
|
+
/** MissingInstructionsSysvar: Missing instructions sysvar account */
|
|
29
|
+
export const PHYGITAL_TOKEN_ERROR__MISSING_INSTRUCTIONS_SYSVAR = 0x1779; // 6009
|
|
30
|
+
/** InvalidSysvarDataFormat: Invalid sysvar data format */
|
|
31
|
+
export const PHYGITAL_TOKEN_ERROR__INVALID_SYSVAR_DATA_FORMAT = 0x177a; // 6010
|
|
32
|
+
/** TokenIsCurrentlyLocked: The owner needs to unlock the phygital token to enable transfer. */
|
|
33
|
+
export const PHYGITAL_TOKEN_ERROR__TOKEN_IS_CURRENTLY_LOCKED = 0x177b; // 6011
|
|
34
|
+
/** TokenIsNotLockable: This phygital token is not lockable. */
|
|
35
|
+
export const PHYGITAL_TOKEN_ERROR__TOKEN_IS_NOT_LOCKABLE = 0x177c; // 6012
|
|
36
|
+
/** UnableToParseClientData: Unable to parse client data JSON. */
|
|
37
|
+
export const PHYGITAL_TOKEN_ERROR__UNABLE_TO_PARSE_CLIENT_DATA = 0x177d; // 6013
|
|
38
|
+
/** ChallengeHashMismatch: Challenge hash mismatch. */
|
|
39
|
+
export const PHYGITAL_TOKEN_ERROR__CHALLENGE_HASH_MISMATCH = 0x177e; // 6014
|
|
40
|
+
/** InvalidAuthenticatorData: Authenticator data is too short to contain WebAuthn flags. */
|
|
41
|
+
export const PHYGITAL_TOKEN_ERROR__INVALID_AUTHENTICATOR_DATA = 0x177f; // 6015
|
|
42
|
+
/** UserPresenceNotVerified: WebAuthn user presence flag (UP) was not set by the authenticator. */
|
|
43
|
+
export const PHYGITAL_TOKEN_ERROR__USER_PRESENCE_NOT_VERIFIED = 0x1780; // 6016
|
|
44
|
+
/** RpIdMismatch: WebAuthn rpId hash does not match the expected relying party id. */
|
|
45
|
+
export const PHYGITAL_TOKEN_ERROR__RP_ID_MISMATCH = 0x1781; // 6017
|
|
46
|
+
/** OriginMismatch: WebAuthn origin does not match any expected origin. */
|
|
47
|
+
export const PHYGITAL_TOKEN_ERROR__ORIGIN_MISMATCH = 0x1782; // 6018
|
|
48
|
+
/** UnauthorizedAuthority: Only the designated authority can perform this action. */
|
|
49
|
+
export const PHYGITAL_TOKEN_ERROR__UNAUTHORIZED_AUTHORITY = 0x1783; // 6019
|
|
23
50
|
let phygitalTokenErrorMessages;
|
|
24
51
|
if (process.env["NODE_ENV"] !== "production") {
|
|
25
52
|
phygitalTokenErrorMessages = {
|
|
@@ -32,14 +59,14 @@ if (process.env["NODE_ENV"] !== "production") {
|
|
|
32
59
|
[PHYGITAL_TOKEN_ERROR__INVALID_SLOT_HASH]: `Slot not found in SlotHashes sysvar — signature has expired or is being replayed`,
|
|
33
60
|
[PHYGITAL_TOKEN_ERROR__INVALID_SYSVAR_DATA_FORMAT]: `Invalid sysvar data format`,
|
|
34
61
|
[PHYGITAL_TOKEN_ERROR__MISSING_INSTRUCTIONS_SYSVAR]: `Missing instructions sysvar account`,
|
|
35
|
-
[PHYGITAL_TOKEN_ERROR__ORIGIN_MISMATCH]: `WebAuthn origin does not match
|
|
36
|
-
[PHYGITAL_TOKEN_ERROR__OWNER_MISMATCH]: `
|
|
62
|
+
[PHYGITAL_TOKEN_ERROR__ORIGIN_MISMATCH]: `WebAuthn origin does not match any expected origin.`,
|
|
63
|
+
[PHYGITAL_TOKEN_ERROR__OWNER_MISMATCH]: `Phygital token owner mismatch`,
|
|
37
64
|
[PHYGITAL_TOKEN_ERROR__RP_ID_MISMATCH]: `WebAuthn rpId hash does not match the expected relying party id.`,
|
|
38
|
-
[PHYGITAL_TOKEN_ERROR__SECP256R1_PUBKEY_MISMATCH]: `secp256r1 pubkey does not match token record`,
|
|
65
|
+
[PHYGITAL_TOKEN_ERROR__SECP256R1_PUBKEY_MISMATCH]: `secp256r1 pubkey does not match phygital token record`,
|
|
39
66
|
[PHYGITAL_TOKEN_ERROR__SIGNATURE_INDEX_OUT_OF_BOUNDS]: `The signature index provided is out of bounds for the secp256r1 instruction`,
|
|
40
67
|
[PHYGITAL_TOKEN_ERROR__STALE_SIGN_COUNT]: `WebAuthn signCount must be greater than the last accepted signCount`,
|
|
41
|
-
[PHYGITAL_TOKEN_ERROR__TOKEN_IS_CURRENTLY_LOCKED]: `The owner needs to unlock the token to enable transfer.`,
|
|
42
|
-
[PHYGITAL_TOKEN_ERROR__TOKEN_IS_NOT_LOCKABLE]: `This token is not lockable.`,
|
|
68
|
+
[PHYGITAL_TOKEN_ERROR__TOKEN_IS_CURRENTLY_LOCKED]: `The owner needs to unlock the phygital token to enable transfer.`,
|
|
69
|
+
[PHYGITAL_TOKEN_ERROR__TOKEN_IS_NOT_LOCKABLE]: `This phygital token is not lockable.`,
|
|
43
70
|
[PHYGITAL_TOKEN_ERROR__UNABLE_TO_PARSE_CLIENT_DATA]: `Unable to parse client data JSON.`,
|
|
44
71
|
[PHYGITAL_TOKEN_ERROR__UNAUTHORIZED_AUTHORITY]: `Only the designated authority can perform this action.`,
|
|
45
72
|
[PHYGITAL_TOKEN_ERROR__USER_PRESENCE_NOT_VERIFIED]: `WebAuthn user presence flag (UP) was not set by the authenticator.`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"phygitalToken.js","sourceRoot":"","sources":["../../../src/generated/errors/phygitalToken.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"phygitalToken.js","sourceRoot":"","sources":["../../../src/generated/errors/phygitalToken.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,cAAc,GAIf,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,8BAA8B,EAAE,MAAM,sBAAsB,CAAC;AAEtE,oIAAoI;AACpI,MAAM,CAAC,MAAM,mDAAmD,GAAG,MAAM,CAAC,CAAC,OAAO;AAClF,6GAA6G;AAC7G,MAAM,CAAC,MAAM,mDAAmD,GAAG,MAAM,CAAC,CAAC,OAAO;AAClF,2GAA2G;AAC3G,MAAM,CAAC,MAAM,+CAA+C,GAAG,MAAM,CAAC,CAAC,OAAO;AAC9E,8DAA8D;AAC9D,MAAM,CAAC,MAAM,kDAAkD,GAAG,MAAM,CAAC,CAAC,OAAO;AACjF,qFAAqF;AACrF,MAAM,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AAwB;IAGxB,OAAO,cAAc,CACnB,KAAK,EACL,kBAAkB,EAClB,8BAA8B,EAC9B,IAAI,CACL,CAAC;AACJ,CAAC"}
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
1
8
|
export * from "./accounts/index.js";
|
|
2
9
|
export * from "./errors/index.js";
|
|
3
10
|
export * from "./instructions/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/generated/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/generated/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC"}
|
package/dist/generated/index.js
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
1
8
|
export * from "./accounts/index.js";
|
|
2
9
|
export * from "./errors/index.js";
|
|
3
10
|
export * from "./instructions/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/generated/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/generated/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC"}
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
1
8
|
export * from "./initialize.js";
|
|
2
9
|
export * from "./removeOwnership.js";
|
|
3
10
|
export * from "./setLockState.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/generated/instructions/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/generated/instructions/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC;AACvC,cAAc,aAAa,CAAC"}
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
1
8
|
export * from "./initialize.js";
|
|
2
9
|
export * from "./removeOwnership.js";
|
|
3
10
|
export * from "./setLockState.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/generated/instructions/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/generated/instructions/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC;AACvC,cAAc,aAAa,CAAC"}
|