@thru/programs 0.2.36 → 0.2.37
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/passkey-manager/index.cjs +1 -3
- package/dist/passkey-manager/index.cjs.map +1 -1
- package/dist/passkey-manager/index.d.cts +2 -6
- package/dist/passkey-manager/index.d.ts +2 -6
- package/dist/passkey-manager/index.js +2 -3
- package/dist/passkey-manager/index.js.map +1 -1
- package/package.json +2 -2
- package/src/passkey-manager/context.ts +2 -8
- package/src/passkey-manager/index.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thru/programs",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.37",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./token": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@thru/sdk": "0.2.
|
|
28
|
+
"@thru/sdk": "0.2.37"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"tsup": "^8.5.1",
|
|
@@ -3,12 +3,6 @@ import { bytesEqual, compareBytes, uniqueAccounts } from './encoding';
|
|
|
3
3
|
import { PASSKEY_MANAGER_PROGRAM_ADDRESS } from './constants';
|
|
4
4
|
import type { AccountContext } from './types';
|
|
5
5
|
|
|
6
|
-
/**
|
|
7
|
-
* Default fee payer address (manager profile).
|
|
8
|
-
*/
|
|
9
|
-
export const FEE_PAYER_ADDRESS =
|
|
10
|
-
'taVcZv3wB2m-euBpMHm2rF9fQRY_fO_g7WdOjs70CxDh_S';
|
|
11
|
-
|
|
12
6
|
/**
|
|
13
7
|
* Build account context for passkey manager transactions.
|
|
14
8
|
* Handles account deduplication, sorting, and index lookup.
|
|
@@ -17,10 +11,10 @@ export function buildAccountContext(params: {
|
|
|
17
11
|
walletAddress: string;
|
|
18
12
|
readWriteAccounts: Uint8Array[];
|
|
19
13
|
readOnlyAccounts: Uint8Array[];
|
|
20
|
-
feePayerAddress
|
|
14
|
+
feePayerAddress: string;
|
|
21
15
|
programAddress?: string;
|
|
22
16
|
}): AccountContext {
|
|
23
|
-
const feePayerBytes = decodeAddress(params.feePayerAddress
|
|
17
|
+
const feePayerBytes = decodeAddress(params.feePayerAddress);
|
|
24
18
|
const programBytes = decodeAddress(params.programAddress ?? PASSKEY_MANAGER_PROGRAM_ADDRESS);
|
|
25
19
|
const walletBytes = decodeAddress(params.walletAddress);
|
|
26
20
|
|
|
@@ -61,7 +61,7 @@ export { createValidateChallenge, VALIDATE_CHALLENGE_DOMAIN } from './challenge'
|
|
|
61
61
|
export { createWalletSeed, deriveWalletAddress, createCredentialLookupSeed, deriveCredentialLookupAddress } from './seeds';
|
|
62
62
|
|
|
63
63
|
// Account context building
|
|
64
|
-
export { buildAccountContext, buildPasskeyReadWriteAccounts
|
|
64
|
+
export { buildAccountContext, buildPasskeyReadWriteAccounts } from './context';
|
|
65
65
|
export { decodeAddress, encodeAddress } from '@thru/sdk/helpers';
|
|
66
66
|
|
|
67
67
|
// Account parsing
|