Skip to content

Commit ada1097

Browse files
committed
remove: RLI & Staking balances related logic
1 parent fb4a5e0 commit ada1097

File tree

248 files changed

+20583
-101675
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

248 files changed

+20583
-101675
lines changed

local-tests/setup/networkContext-InternalDev.json

Lines changed: 14058 additions & 0 deletions
Large diffs are not rendered by default.

local-tests/setup/networkContext.example.json

Lines changed: 1127 additions & 3745 deletions
Large diffs are not rendered by default.

local-tests/setup/networkContext.json

Lines changed: 3246 additions & 5794 deletions
Large diffs are not rendered by default.

local-tests/setup/shiva-client.d.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ type ContractAbis = {
44
erc20: string;
55
backupRecovery: string;
66
staking: string;
7-
stakingBalances: string;
8-
rateLimitNft: string;
97
pkpnft: string;
108
pubkeyRouter: string;
119
pkpPermissions: string;
@@ -18,8 +16,6 @@ type ContractAddresses = {
1816
litToken: string;
1917
backupRecovery: string;
2018
staking: string;
21-
stakingBalances: string;
22-
rateLimitNft: string;
2319
pkpnft: string;
2420
pubkeyRouter: string;
2521
pkpPermissions: string;

local-tests/setup/shiva-client.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
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';
43
import {
54
TestNetCreateRequest,
65
TestNetInfo,
@@ -104,9 +103,6 @@ export class TestnetClient {
104103
Staking: {
105104
abi: JSON.parse(testNetConfig.contractAbis.staking),
106105
},
107-
StakingBalances: {
108-
abi: JSON.parse(testNetConfig.contractAbis.stakingBalances),
109-
},
110106
PKPNFT: {
111107
abi: JSON.parse(testNetConfig.contractAbis.pkpnft),
112108
},
@@ -120,8 +116,8 @@ export class TestnetClient {
120116
abi: JSON.parse(testNetConfig.contractAbis.litToken),
121117
},
122118
PKPNFTMetadata: {},
123-
RateLimitNFT: {},
124119
PubkeyRouter: {},
120+
PriceFeed: {},
125121
},
126122
};
127123
return networkContext;

local-tests/setup/tinny-environment.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ export class TinnyEnvironment {
7272
// (8) "0x23618e81E3f5cdF7f54C3d65f7FBc0aBf5B21E8f" (10000.000000000000000000 ETH)
7373
// (9) "0xa0Ee7A142d267C1f36714E4a8F75612F20a79720" (10000.000000000000000000 ETH)
7474
PRIVATE_KEYS:
75-
process.env['PRIVATE_KEYS']?.split(',') || DEFAULT_ANVIL_PRIVATE_KEYS,
75+
process.env['NETWORK'] === LIT_NETWORK.Custom
76+
? DEFAULT_ANVIL_PRIVATE_KEYS
77+
: process.env['PRIVATE_KEYS']?.split(',') || DEFAULT_ANVIL_PRIVATE_KEYS,
7678
KEY_IN_USE: new Array(),
7779
NO_SETUP: process.env['NO_SETUP'] === 'true',
7880
USE_SHIVA: process.env['USE_SHIVA'] === 'true',

local-tests/setup/tinny-person.ts

Lines changed: 0 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -175,53 +175,4 @@ export class TinnyPerson {
175175
this.wallet.address
176176
);
177177
}
178-
179-
/**
180-
* ====================================
181-
* Mint a Capacity Credits NFT
182-
* ====================================
183-
*/
184-
async mintCapacityCreditsNFT() {
185-
console.log('[𐬺🧪 Tinny Person𐬺] Mint a Capacity Credits NFT ');
186-
const capacityTokenId = (
187-
await this.contractsClient.mintCapacityCreditsNFT({
188-
requestsPerKilosecond:
189-
this.envConfig.processEnvs.REQUEST_PER_KILOSECOND,
190-
daysUntilUTCMidnightExpiration: 2,
191-
})
192-
).capacityTokenIdStr;
193-
194-
return capacityTokenId;
195-
}
196-
197-
/**
198-
* ====================================
199-
* Mint a Capacity Credits NFT and get a capacity delegation authSig with it
200-
* ====================================
201-
*/
202-
async createCapacityDelegationAuthSig(
203-
addresses: string[] = []
204-
): Promise<AuthSig> {
205-
console.log(
206-
'[𐬺🧪 Tinny Person𐬺] Mint a Capacity Credits NFT and get a capacity delegation authSig with it'
207-
);
208-
209-
const capacityTokenId = (
210-
await this.contractsClient.mintCapacityCreditsNFT({
211-
requestsPerKilosecond:
212-
this.envConfig.processEnvs.REQUEST_PER_KILOSECOND,
213-
daysUntilUTCMidnightExpiration: 2,
214-
})
215-
).capacityTokenIdStr;
216-
217-
this.contractsClient.signer = this.wallet;
218-
await this.contractsClient.connect();
219-
return (
220-
await this.envConfig.litNodeClient.createCapacityDelegationAuthSig({
221-
dAppOwnerWallet: this.wallet,
222-
capacityTokenId: capacityTokenId,
223-
...(addresses.length && { delegateeAddresses: addresses }),
224-
})
225-
).capacityDelegationAuthSig;
226-
}
227178
}

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
"publish:tinny": "cd ./local-tests && npm publish",
2828
"gen:docs": "node ./tools/scripts/gen-doc.mjs",
2929
"gen:readme": "yarn node ./tools/scripts/gen-readme.mjs",
30-
"update:contracts-sdk": "yarn node ./packages/contracts-sdk/tools.mjs",
3130
"tools": "yarn node ./tools/scripts/tools.mjs",
3231
"graph": "nx graph",
3332
"v": "node ./tools/scripts/get-npm-version.mjs",

packages/access-control-conditions/package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,5 @@
2121
"tags": [
2222
"universal"
2323
],
24-
"version": "8.0.0-alpha.0",
25-
"main": "./dist/src/index.js",
26-
"typings": "./dist/src/index.d.ts"
27-
}
24+
"version": "8.0.0-alpha.0"
25+
}

packages/auth-browser/package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,5 @@
3131
"tags": [
3232
"browser"
3333
],
34-
"version": "8.0.0-alpha.0",
35-
"main": "./dist/src/index.js",
36-
"typings": "./dist/src/index.d.ts"
37-
}
34+
"version": "8.0.0-alpha.0"
35+
}

0 commit comments

Comments
 (0)