Skip to content

Commit 1d5c53c

Browse files
committed
Merge branch 'naga' into naga_add_hardcoded_keysets
2 parents 3f0edb2 + 908cff8 commit 1d5c53c

File tree

374 files changed

+3061
-46214
lines changed

Some content is hidden

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

374 files changed

+3061
-46214
lines changed

.changeset/cute-experts-clap.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
'@lit-protocol/access-control-conditions': patch
3+
'@lit-protocol/access-control-conditions-schemas': patch
4+
'@lit-protocol/auth': patch
5+
'@lit-protocol/auth-helpers': patch
6+
'@lit-protocol/auth-services': patch
7+
'@lit-protocol/constants': patch
8+
'@lit-protocol/crypto': patch
9+
'@lit-protocol/lit-client': patch
10+
'@lit-protocol/logger': patch
11+
'@lit-protocol/networks': patch
12+
'@lit-protocol/schemas': patch
13+
'@lit-protocol/types': patch
14+
'@lit-protocol/wasm': patch
15+
'@lit-protocol/wrapped-keys': patch
16+
'@lit-protocol/wrapped-keys-lit-actions': patch
17+
---
18+
19+
Initial version after networks unification

.changeset/cyan-bears-invent.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
'@lit-protocol/access-control-conditions': patch
3+
'@lit-protocol/access-control-conditions-schemas': patch
4+
'@lit-protocol/auth': patch
5+
'@lit-protocol/auth-helpers': patch
6+
'@lit-protocol/auth-services': patch
7+
'@lit-protocol/constants': patch
8+
'@lit-protocol/crypto': patch
9+
'@lit-protocol/lit-client': patch
10+
'@lit-protocol/logger': patch
11+
'@lit-protocol/networks': patch
12+
'@lit-protocol/schemas': patch
13+
'@lit-protocol/types': patch
14+
'@lit-protocol/wasm': patch
15+
'@lit-protocol/wrapped-keys': patch
16+
'@lit-protocol/wrapped-keys-lit-actions': patch
17+
---
18+
19+
Initial release for networks unification

.changeset/pre.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@
1818
"@lit-protocol/wrapped-keys": "7.0.0",
1919
"@lit-protocol/wrapped-keys-lit-actions": "7.0.0"
2020
},
21-
"changesets": ["cute-bottles-ask"]
21+
"changesets": ["cute-bottles-ask", "cute-experts-clap", "cyan-bears-invent"]
2222
}

.env.sample

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,8 @@
1-
#Tinny ENV Vars
2-
MAX_ATTEMPTS=1
3-
NETWORK=datil-dev
4-
DEBUG=true
5-
WAIT_FOR_KEY_INTERVAL=3000
6-
LIT_OFFICAL_RPC=https://chain-rpc.litprotocol.com/http
7-
TIME_TO_RELEASE_KEY=10000
8-
RUN_IN_BAND=true
9-
RUN_IN_BAND_INTERVAL=5000
10-
PRIVATE_KEYS="0x59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d,0x5de4111afa1a4b94908f83103eb1f1706367c2e68ca870fc3fb9a804cdab365a,0x7c852118294e51e653712a81e05800f419141751be58f605c371e15141b007a6,0x47e179ec197488593b187f80a00eb0da91f1b9d0b13f8733639f19c30a34926a,0x8b3a350cf5c34c9194ca85829a2df0ec3153be0318b5e2d3348e872092edffba,0x92db14e403b83dfe3df233f83dfa3a0d7096f21ca9b0d6d6b8d88b2b4ec1564e,0x4bbbf85ce3377467afe5d46f804f221813b2bb87f24d81f60f1fcdbf7cbf4356,0xdbda1821b80551c9d65939329250298aa3472ba22feea921c0cf5d620ea67b97,0x2a871d0798f97d79848a013d4936a73bf4cc922c825d33c1cf7073dff6d409c6"
11-
NO_SETUP=false
12-
USE_SHIVA=false
13-
NETWORK_CONFIG=./networkContext.json
14-
TEST_TIMEOUT=45000
1+
# LIT_YELLOWSTONE_PRIVATE_RPC_URL=<OVERWRITE ME>
2+
# LOCAL_RPC_URL=<OVERWRITE ME>
153

16-
#Shiva Client ENV Vars
17-
STOP_TESTNET=false
18-
TESTNET_MANAGER_URL=http://0.0.0.0:8000
19-
USE_LIT_BINARIES=true
20-
LIT_NODE_BINARY_PATH=/path/to/lit_node/binary
21-
LIT_ACTION_BINARY_PATH=/path/to/lit_action_binary
4+
LOG_LEVEL=silent
5+
LIVE_MASTER_ACCOUNT=
6+
LOCAL_MASTER_ACCOUNT=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80
7+
8+
NODE_NO_WARNINGS=1

.github/workflows/e2e.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@ jobs:
4848
run: bun run build
4949

5050
- name: Run health check for naga-dev
51-
run: NETWORK=naga-dev bun run test:e2e all --timeout 5000000
51+
run: NETWORK=naga-dev bun run test:e2e all
5252
timeout-minutes: 10
5353

5454
- name: Run health check for naga-test
55-
run: NETWORK=naga-test bun run test:e2e all --timeout 5000000
55+
run: NETWORK=naga-test bun run test:e2e all
5656
timeout-minutes: 10
5757

5858
- name: Run health check for naga-staging
59-
run: NETWORK=naga-staging bun run test:e2e all --timeout 5000000
59+
run: NETWORK=naga-staging bun run test:e2e all
6060
timeout-minutes: 10

bun.lock

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"name": "@lit-protocol/js-sdk",
66
"dependencies": {
77
"@dotenvx/dotenvx": "^1.6.4",
8-
"@lit-protocol/contracts": "^0.4.0",
8+
"@lit-protocol/contracts": "^0.5.0",
99
"@lit-protocol/nacl": "7.1.1",
1010
"@lit-protocol/uint8arrays": "7.1.1",
1111
"@metamask/eth-sig-util": "5.0.2",
@@ -96,22 +96,22 @@
9696
},
9797
"packages/access-control-conditions": {
9898
"name": "@lit-protocol/access-control-conditions",
99-
"version": "8.0.0-alpha.14",
99+
"version": "8.0.0-beta.6",
100100
"dependencies": {
101101
"ethers": "^5.7.1",
102102
"zod": "3.24.3",
103103
},
104104
},
105105
"packages/access-control-conditions-schemas": {
106106
"name": "@lit-protocol/access-control-conditions-schemas",
107-
"version": "8.0.0-alpha.14",
107+
"version": "8.0.0-beta.6",
108108
"dependencies": {
109109
"zod": "3.24.3",
110110
},
111111
},
112112
"packages/auth": {
113113
"name": "@lit-protocol/auth",
114-
"version": "8.0.0-alpha.14",
114+
"version": "8.0.0-beta.6",
115115
"dependencies": {
116116
"@noble/curves": "^1.8.1",
117117
"@simplewebauthn/browser": "^7.2.0",
@@ -133,7 +133,7 @@
133133
},
134134
"packages/auth-helpers": {
135135
"name": "@lit-protocol/auth-helpers",
136-
"version": "8.0.0-alpha.15",
136+
"version": "8.0.0-beta.6",
137137
"dependencies": {
138138
"@wagmi/core": "^2.17.1",
139139
"ethers": "^5.7.1",
@@ -145,7 +145,7 @@
145145
},
146146
"packages/auth-services": {
147147
"name": "@lit-protocol/auth-services",
148-
"version": "1.0.0-alpha.23",
148+
"version": "2.0.0-beta.9",
149149
"dependencies": {
150150
"@elysiajs/bearer": "^1.2.0",
151151
"@elysiajs/cors": "^1.2.0",
@@ -184,15 +184,15 @@
184184
},
185185
"packages/constants": {
186186
"name": "@lit-protocol/constants",
187-
"version": "8.0.0-alpha.14",
187+
"version": "8.0.0-beta.6",
188188
"dependencies": {
189189
"@openagenda/verror": "^3.1.4",
190190
"zod": "3.24.3",
191191
},
192192
},
193193
"packages/crypto": {
194194
"name": "@lit-protocol/crypto",
195-
"version": "8.0.0-alpha.15",
195+
"version": "8.0.0-beta.6",
196196
"dependencies": {
197197
"@lit-protocol/nacl": "7.1.1",
198198
"@lit-protocol/uint8arrays": "7.1.1",
@@ -203,7 +203,7 @@
203203
},
204204
"packages/lit-client": {
205205
"name": "@lit-protocol/lit-client",
206-
"version": "8.0.0-alpha.18",
206+
"version": "8.0.0-beta.6",
207207
"dependencies": {
208208
"@lit-protocol/uint8arrays": "7.1.1",
209209
"bs58": "^6.0.0",
@@ -213,14 +213,14 @@
213213
},
214214
"packages/logger": {
215215
"name": "@lit-protocol/logger",
216-
"version": "8.0.0-alpha.14",
216+
"version": "8.0.0-beta.6",
217217
"dependencies": {
218218
"pino": "^9.6.0",
219219
},
220220
},
221221
"packages/networks": {
222222
"name": "@lit-protocol/networks",
223-
"version": "8.0.0-alpha.27",
223+
"version": "8.0.0-beta.6",
224224
"dependencies": {
225225
"@lit-protocol/contracts": "^0.4.0",
226226
"@lit-protocol/nacl": "7.1.1",
@@ -238,7 +238,7 @@
238238
},
239239
"packages/schemas": {
240240
"name": "@lit-protocol/schemas",
241-
"version": "8.0.0-alpha.15",
241+
"version": "8.0.0-beta.6",
242242
"dependencies": {
243243
"ethers": "^5.7.1",
244244
"siwe": "^2.3.2",
@@ -248,27 +248,27 @@
248248
},
249249
"packages/types": {
250250
"name": "@lit-protocol/types",
251-
"version": "8.0.0-alpha.14",
251+
"version": "8.0.0-beta.6",
252252
"dependencies": {
253253
"ethers": "^5.7.1",
254254
"zod": "3.24.3",
255255
},
256256
},
257257
"packages/wasm": {
258258
"name": "@lit-protocol/wasm",
259-
"version": "8.0.0-alpha.14",
259+
"version": "8.0.0-beta.6",
260260
"dependencies": {
261261
"ethers": "^5.7.1",
262262
"pako": "^2.1.0",
263263
},
264264
},
265265
"packages/wrapped-keys": {
266266
"name": "@lit-protocol/wrapped-keys",
267-
"version": "8.0.0-alpha.12",
267+
"version": "8.0.0-beta.6",
268268
},
269269
"packages/wrapped-keys-lit-actions": {
270270
"name": "@lit-protocol/wrapped-keys-lit-actions",
271-
"version": "8.0.0-alpha.12",
271+
"version": "8.0.0-beta.6",
272272
},
273273
},
274274
"packages": {
@@ -1090,7 +1090,7 @@
10901090

10911091
"@lit-protocol/constants": ["@lit-protocol/constants@workspace:packages/constants"],
10921092

1093-
"@lit-protocol/contracts": ["@lit-protocol/contracts@0.4.0", "", { "peerDependencies": { "typescript": "^5.0.0" } }, "sha512-+PLkQNab2+n7AS6gLUD+b2JoVMTMSB2BDFRoO5epQuli/wd4HBH7XiwBb15111Ta7fn/+TR0R27YJLoDPNYCPg=="],
1093+
"@lit-protocol/contracts": ["@lit-protocol/contracts@0.5.0", "", { "peerDependencies": { "typescript": "^5.0.0" } }, "sha512-dXQkG5elAME73DulVEKUu/z43nfrCXj5F5rHW/2TsNbj/Da0206fWoeikHm6lJtfqeKpXkaPn6BN98LY6hwWpQ=="],
10941094

10951095
"@lit-protocol/crypto": ["@lit-protocol/crypto@workspace:packages/crypto"],
10961096

@@ -5028,6 +5028,8 @@
50285028

50295029
"@lerna/write-log-file/write-file-atomic": ["write-file-atomic@4.0.2", "", { "dependencies": { "imurmurhash": "^0.1.4", "signal-exit": "^3.0.7" } }, "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg=="],
50305030

5031+
"@lit-protocol/auth-services/@lit-protocol/contracts": ["@lit-protocol/contracts@0.4.0", "", { "peerDependencies": { "typescript": "^5.0.0" } }, "sha512-+PLkQNab2+n7AS6gLUD+b2JoVMTMSB2BDFRoO5epQuli/wd4HBH7XiwBb15111Ta7fn/+TR0R27YJLoDPNYCPg=="],
5032+
50315033
"@lit-protocol/auth-services/@simplewebauthn/typescript-types": ["@simplewebauthn/typescript-types@8.3.4", "", {}, "sha512-38xtca0OqfRVNloKBrFB5LEM6PN5vzFbJG6rAutPVrtGHFYxPdiV3btYWq0eAZAZmP+dqFPYJxJWeJrGfmYHng=="],
50325034

50335035
"@lit-protocol/auth-services/ethers": ["ethers@5.7.2", "", { "dependencies": { "@ethersproject/abi": "5.7.0", "@ethersproject/abstract-provider": "5.7.0", "@ethersproject/abstract-signer": "5.7.0", "@ethersproject/address": "5.7.0", "@ethersproject/base64": "5.7.0", "@ethersproject/basex": "5.7.0", "@ethersproject/bignumber": "5.7.0", "@ethersproject/bytes": "5.7.0", "@ethersproject/constants": "5.7.0", "@ethersproject/contracts": "5.7.0", "@ethersproject/hash": "5.7.0", "@ethersproject/hdnode": "5.7.0", "@ethersproject/json-wallets": "5.7.0", "@ethersproject/keccak256": "5.7.0", "@ethersproject/logger": "5.7.0", "@ethersproject/networks": "5.7.1", "@ethersproject/pbkdf2": "5.7.0", "@ethersproject/properties": "5.7.0", "@ethersproject/providers": "5.7.2", "@ethersproject/random": "5.7.0", "@ethersproject/rlp": "5.7.0", "@ethersproject/sha2": "5.7.0", "@ethersproject/signing-key": "5.7.0", "@ethersproject/solidity": "5.7.0", "@ethersproject/strings": "5.7.0", "@ethersproject/transactions": "5.7.0", "@ethersproject/units": "5.7.0", "@ethersproject/wallet": "5.7.0", "@ethersproject/web": "5.7.1", "@ethersproject/wordlists": "5.7.0" } }, "sha512-wswUsmWo1aOK8rR7DIKiWSw9DbLWe6x98Jrn8wcTflTVvaXhAMaB5zGAXy0GYQEQp9iO1iSHWVyARQm11zUtyg=="],
@@ -5038,6 +5040,8 @@
50385040

50395041
"@lit-protocol/nacl/tslib": ["tslib@1.14.1", "", {}, "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg=="],
50405042

5043+
"@lit-protocol/networks/@lit-protocol/contracts": ["@lit-protocol/contracts@0.4.0", "", { "peerDependencies": { "typescript": "^5.0.0" } }, "sha512-+PLkQNab2+n7AS6gLUD+b2JoVMTMSB2BDFRoO5epQuli/wd4HBH7XiwBb15111Ta7fn/+TR0R27YJLoDPNYCPg=="],
5044+
50415045
"@lit-protocol/uint8arrays/@lit-protocol/constants": ["@lit-protocol/constants@7.1.1", "", { "dependencies": { "@ethersproject/abstract-provider": "5.7.0", "@lit-protocol/accs-schemas": "^0.0.24", "@lit-protocol/contracts": "^0.0.74", "@lit-protocol/types": "7.1.1", "@openagenda/verror": "^3.1.4", "depd": "^2.0.0", "ethers": "^5.7.1", "siwe": "^2.3.2", "tslib": "1.14.1" } }, "sha512-wJY5r8D0FdvtkQtcjx5JfPC3Qeb5SZ1m72HTcvJdqaJaBgaPP4eg2JSUg9uNJ+knOCyfdiBPl47XlWTGqe1X4Q=="],
50425046

50435047
"@lit-protocol/uint8arrays/@lit-protocol/contracts": ["@lit-protocol/contracts@0.0.74", "", { "peerDependencies": { "typescript": "^5.0.0" } }, "sha512-8uV038gzBp7ew7a4884SVt9Zhu8CtiTb+A8dKNnByxVoT1kFt4O4DmsaniV8p9AGjNR13IWfpU1NFChmPHVIpQ=="],
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
config:
2-
target: "dummy"
2+
target: 'dummy'
33
phases:
44
# Over 60s, ramp up to creating 50 vusers per second
55
- duration: 60
66
arrivalRate: 5
77
rampTo: 150
8-
name: "Ramp Up"
8+
name: 'Ramp Up'
99
# Over 300s, create 50 vusers per second
1010
- duration: 300
1111
arrivalRate: 150
12-
name: "Sustained Encrypt & Decrypt"
12+
name: 'Sustained Encrypt & Decrypt'
1313
# Over 60s, ramp down to creating 5 vusers per second
1414
- duration: 60
1515
arrivalRate: 20
16-
name: "Ramp Down"
17-
processor: "../src/processors/multi-endpoints.ts"
16+
name: 'Ramp Down'
17+
processor: '../src/processors/multi-endpoints.ts'
1818

1919
scenarios:
20-
- name: "Encrypt & Decrypt Stress Test"
20+
- name: 'Encrypt & Decrypt Stress Test'
2121
weight: 100
2222
flow:
23-
- function: "runEncryptDecryptTest"
24-
- think: 0.1
23+
- function: 'runEncryptDecryptTest'
24+
- think: 0.1

e2e/artillery/configs/execute.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
config:
2-
target: "dummy"
2+
target: 'dummy'
33
phases:
44
# Over 60s, ramp up to creating 50 vusers per second
55
- duration: 60
66
arrivalRate: 5
77
rampTo: 100
8-
name: "Ramp Up"
8+
name: 'Ramp Up'
99
# Over 300s, create 50 vusers per second
1010
- duration: 300
1111
arrivalRate: 100
12-
name: "Sustained Encrypt & Decrypt"
12+
name: 'Sustained Encrypt & Decrypt'
1313
# Over 60s, ramp down to creating 5 vusers per second
1414
- duration: 60
1515
arrivalRate: 20
16-
name: "Ramp Down"
17-
processor: "../src/processors/multi-endpoints.ts"
16+
name: 'Ramp Down'
17+
processor: '../src/processors/multi-endpoints.ts'
1818

1919
scenarios:
20-
- name: "Execute JS Stress Test"
20+
- name: 'Execute JS Stress Test'
2121
weight: 100
2222
flow:
23-
- function: "runExecuteJSTest"
24-
- think: 0.1
23+
- function: 'runExecuteJSTest'
24+
- think: 0.1

e2e/artillery/configs/mix.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
11
config:
2-
target: "dummy"
2+
target: 'dummy'
33
phases:
44
# Over 60s, ramp up to creating 50 vusers per second
55
- duration: 60
66
arrivalRate: 5
77
rampTo: 75
8-
name: "Ramp Up"
8+
name: 'Ramp Up'
99
# Over 300s, create 50 vusers per second
1010
- duration: 300
1111
arrivalRate: 75
12-
name: "Sustained Encrypt & Decrypt"
12+
name: 'Sustained Encrypt & Decrypt'
1313
# Over 60s, ramp down to creating 5 vusers per second
1414
- duration: 60
1515
arrivalRate: 20
16-
name: "Ramp Down"
17-
processor: "../src/processors/multi-endpoints.ts"
16+
name: 'Ramp Down'
17+
processor: '../src/processors/multi-endpoints.ts'
1818

1919
scenarios:
20-
- name: "PKP Sign Stress Test"
20+
- name: 'PKP Sign Stress Test'
2121
weight: 50
2222
flow:
23-
- function: "runPkpSignTest"
23+
- function: 'runPkpSignTest'
2424
- think: 0.1
25-
- name: "Encrypt & Decrypt Stress Test"
25+
- name: 'Encrypt & Decrypt Stress Test'
2626
weight: 25
2727
flow:
28-
- function: "runEncryptDecryptTest"
28+
- function: 'runEncryptDecryptTest'
2929
- think: 0.1
30-
- name: "Execute JS Stress Test"
30+
- name: 'Execute JS Stress Test'
3131
weight: 25
3232
flow:
33-
- function: "runExecuteJSTest"
34-
- think: 0.1
33+
- function: 'runExecuteJSTest'
34+
- think: 0.1

e2e/artillery/configs/pkp-sign.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ config:
55
- duration: 60
66
arrivalRate: 5
77
rampTo: 80
8-
name: "Ramp Up"
8+
name: 'Ramp Up'
99
# Over 300s, create 50 vusers per second
1010
- duration: 300
1111
arrivalRate: 80
12-
name: "Sustained PKP Signing"
12+
name: 'Sustained PKP Signing'
1313
# Over 60s, ramp down to creating 5 vusers per second
1414
- duration: 60
1515
arrivalRate: 20

0 commit comments

Comments
 (0)