Skip to content

Commit 41a854b

Browse files
authored
Merge pull request #628 from LIT-Protocol/feature/lit-3701-js-sdk-refactor-contract-sdk-connection-logic-for-respecting
Feature/lit 3701 js sdk refactor contract sdk ethers client bootstrapping
2 parents daf704a + bd499eb commit 41a854b

File tree

3 files changed

+203
-169
lines changed

3 files changed

+203
-169
lines changed

local-tests/setup/shiva-client.ts

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { LitContractResolverContext } from '@lit-protocol/types';
22
import { ethers } from 'ethers';
3+
import { PKPPermissions } from '../../dist/packages/contracts-sdk/src/abis/PKPPermissions.sol/PKPPermissions';
34
import {
45
TestNetCreateRequest,
56
TestNetInfo,
@@ -97,6 +98,31 @@ export class TestnetClient {
9798
skipFetchSetup: true,
9899
}),
99100
environment: 0, // test deployment uses env value 0 in test common
101+
contractContext: {
102+
Allowlist: {},
103+
Multisender: {},
104+
Staking: {
105+
abi: JSON.parse(testNetConfig.contractAbis.staking),
106+
},
107+
StakingBalances: {
108+
abi: JSON.parse(testNetConfig.contractAbis.stakingBalances),
109+
},
110+
PKPNFT: {
111+
abi: JSON.parse(testNetConfig.contractAbis.pkpnft),
112+
},
113+
PKPPermissions: {
114+
abi: JSON.parse(testNetConfig.contractAbis.pkpPermissions),
115+
},
116+
PKPHelper: {
117+
abi: JSON.parse(testNetConfig.contractAbis.pkpHelper),
118+
},
119+
LITToken: {
120+
abi: JSON.parse(testNetConfig.contractAbis.litToken),
121+
},
122+
PKPNFTMetadata: {},
123+
RateLimitNFT: {},
124+
PubkeyRouter: {},
125+
},
100126
};
101127
return networkContext;
102128
}

0 commit comments

Comments
 (0)