Skip to content

Commit 01c07e4

Browse files
committed
chore: implement feedback
1 parent 30f86a8 commit 01c07e4

37 files changed

+899
-509
lines changed

nx.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@
6868
"ability-aave",
6969
"ability-debridge",
7070
"policy-send-counter",
71-
"wrapped-keys",
7271
"ability-sol-transaction-signer"
7372
],
7473
"projectsRelationship": "independent",

packages/apps/abilities-e2e/test-e2e/solana-transaction-signer.spec.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
import { formatEther } from 'viem';
22
import { bundledVincentAbility as solTransactionSignerBundledAbility } from '@lit-protocol/vincent-ability-sol-transaction-signer';
3+
import { constants } from '@lit-protocol/vincent-wrapped-keys';
4+
5+
const { LIT_PREFIX } = constants;
36

47
import {
58
disconnectVincentAbilityClients,
@@ -50,7 +53,7 @@ import { LIT_NETWORK } from '@lit-protocol/constants';
5053
import { api } from '@lit-protocol/vincent-wrapped-keys';
5154
const { getVincentRegistryAccessControlCondition } = api;
5255

53-
const SOLANA_CLUSTER = 'mainnet-beta';
56+
const SOLANA_CLUSTER = 'devnet';
5457

5558
// Extend Jest timeout to 4 minutes
5659
jest.setTimeout(240000);
@@ -300,7 +303,7 @@ describe('Solana Transaction Signer Ability E2E Tests', () => {
300303
await LIT_NODE_CLIENT.connect();
301304

302305
EVM_CONTRACT_CONDITION = await getVincentRegistryAccessControlCondition({
303-
agentWalletAddress: TEST_CONFIG.userPkp!.ethAddress!,
306+
delegatorAddress: TEST_CONFIG.userPkp!.ethAddress!,
304307
});
305308

306309
TEST_SOLANA_KEYPAIR = Keypair.generate();
@@ -339,7 +342,7 @@ describe('Solana Transaction Signer Ability E2E Tests', () => {
339342
const { ciphertext, dataToEncryptHash } = await LIT_NODE_CLIENT.encrypt({
340343
evmContractConditions: [EVM_CONTRACT_CONDITION],
341344
dataToEncrypt: new TextEncoder().encode(
342-
`vincent_${Buffer.from(TEST_SOLANA_KEYPAIR.secretKey).toString('hex')}`,
345+
`${LIT_PREFIX}${Buffer.from(TEST_SOLANA_KEYPAIR.secretKey).toString('hex')}`,
343346
),
344347
});
345348
CIPHERTEXT = ciphertext;

packages/apps/abilities-e2e/test-e2e/test-config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"appId": 63160545517,
2+
"appId": 92519500199,
33
"appVersion": 1,
44
"userPkp": {
55
"tokenId": "3642086617849255502636868489753780819830331370694537145307432406587444605687",

packages/apps/ability-sol-transaction-signer/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
},
77
"dependencies": {
88
"@lit-protocol/vincent-ability-sdk": "workspace:*",
9+
"@lit-protocol/vincent-wrapped-keys": "workspace:*",
910
"@solana/web3.js": "^1.98.4",
1011
"ethers": "^5.8.0",
1112
"tslib": "2.8.1",

packages/apps/ability-sol-transaction-signer/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
},
3232
"build": {
3333
"executor": "@nx/js:tsc",
34-
"dependsOn": ["action:build"],
34+
"dependsOn": ["wrapped-keys:build", "action:build"],
3535
"outputs": ["{options.outputPath}"],
3636
"options": {
3737
"outputPath": "packages/apps/ability-sol-transaction-signer/dist",

packages/apps/ability-sol-transaction-signer/src/generated/lit-action.js

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"ipfsCid": "QmTHgC3WvLVLRCYXfjUtZVLyJWazYTMTijsnJoPGi48JHn"
2+
"ipfsCid": "QmWPHQzpuUzzszV3Nux1gHGeP434s6PziG1S2vU4osRNxi"
33
}

packages/apps/ability-sol-transaction-signer/src/lib/vincent-ability.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import {
22
createVincentAbility,
33
supportedPoliciesForAbility,
4-
getSolanaKeyPairFromWrappedKey,
54
} from '@lit-protocol/vincent-ability-sdk';
65
import { clusterApiUrl, Transaction } from '@solana/web3.js';
6+
import { api } from '@lit-protocol/vincent-wrapped-keys';
7+
8+
const getSolanaKeyPairFromWrappedKey = api.litActionHelpers.getSolanaKeyPairFromWrappedKey;
79

810
import {
911
executeFailSchema,
@@ -79,7 +81,7 @@ export const vincentAbility = createVincentAbility({
7981

8082
try {
8183
const solanaKeypair = await getSolanaKeyPairFromWrappedKey({
82-
agentWalletPkpTokenId: tokenId,
84+
delegatorPkpTokenId: tokenId,
8385
ciphertext,
8486
dataToEncryptHash,
8587
});

packages/libs/ability-sdk/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
},
77
"dependencies": {
88
"@lit-protocol/vincent-contracts-sdk": "workspace:*",
9-
"@lit-protocol/vincent-wrapped-keys": "workspace:*",
10-
"@solana/web3.js": "^1.98.4",
119
"ethers": "5.8.0",
1210
"ethers-v6": "npm:ethers@^6",
1311
"semver": "^7.7.2",

packages/libs/ability-sdk/src/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,3 @@ export type {
3030
export type { BaseAbilityContext } from './lib/abilityCore/abilityConfig/context/types';
3131

3232
export { populateTransaction } from './lib/abilityHelpers';
33-
34-
// Wrapped Keys utilities
35-
export { getSolanaKeyPairFromWrappedKey } from './lib/wrapped-keys';

0 commit comments

Comments
 (0)