Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V7 Release #535

Open
wants to merge 340 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
340 commits
Select commit Hold shift + click to select a range
c060369
Merge branch 'master' of github.com:LIT-Protocol/js-sdk into feature/…
Jun 11, 2024
6c4b9e8
chore: fmt
Jun 11, 2024
01b1b10
ref: refactor to async api and migrate usages to async impls
Jun 11, 2024
767948b
chore: fmt
Jun 11, 2024
c289093
ref(core): remove loadModule call
Jun 11, 2024
493cb9a
dev(wasm): swap hd-keys-curves for hd-keys-curves-wasm
Jun 11, 2024
d8336d5
chore: fmt
Jun 11, 2024
5b5d162
ref(wasm): remove path link in ts conf
Jun 11, 2024
9ab560e
ref: remove old script from merge
Jun 11, 2024
67fac22
test: fix get-signatures test
Jun 11, 2024
c093e88
remove test function test
Jun 11, 2024
645259b
remove tests which throw exceptions for now
Jun 11, 2024
5ff19d8
chore: fmt
Jun 11, 2024
1fbff39
ref: remove stale comment
Jun 11, 2024
dc98f43
ref: await bls combine
Jun 11, 2024
a5a608f
docs: add jsdoc headers
Jun 12, 2024
08f7181
chore: fmt
Jun 12, 2024
d522607
Merge branch 'v7' of github.com:LIT-Protocol/js-sdk into feature/lit-…
Jun 12, 2024
256511e
dev: updates for BLS verification
Jun 13, 2024
be9fff3
chore: fmt
Jun 13, 2024
ffb5d09
ref(session-sigs): fix bls verification for session signature checks
Jun 17, 2024
76be7e3
Merge branch 'master' of github.com:LIT-Protocol/js-sdk into feature/…
Jun 17, 2024
a56a6e1
chore: fmt
Jun 17, 2024
8a9c848
chore: update readme
Jun 21, 2024
e84e225
chore: fmt
Jun 21, 2024
ada06e6
dev: Fix bls verifier test
Jul 10, 2024
41fa4e3
ref: fix bls vrify unit test
Jul 11, 2024
7c5d3c5
chore: fmt
Jul 11, 2024
d8c7dc5
Merge remote-tracking branch 'origin/staging/v7' into feature/lit-238…
Jul 11, 2024
b8b4857
ref: fixes from mergnig of staging branch
Jul 11, 2024
531e84f
chore: fmt
Jul 11, 2024
9a50323
ref: change await to return and fix comment
Jul 12, 2024
e0b19b1
Merge branch 'staging/v7' of github.com:LIT-Protocol/js-sdk into feat…
Jul 12, 2024
f49705d
ref: merge staging/v7
Jul 12, 2024
6920199
Merge pull request #503 from LIT-Protocol/feature/lit-2382-js-sdk-ref…
MaximusHaximus Jul 15, 2024
7ab5da0
cleanup of dependencies and cryptographic fixes
mikelodder7 Jul 17, 2024
645d8a6
feat: remove PKPClient and its usages in PKPWalletConnect
FedericoAmura Jul 17, 2024
4724d85
clippy fixes and clean up
mikelodder7 Jul 17, 2024
e4085f6
Merge pull request #542 from LIT-Protocol/ml/cryptographic_cleanup
mikelodder7 Jul 17, 2024
ab6a1ed
chore: linting
FedericoAmura Jul 18, 2024
83b01d7
chore: update PKPCosmos readme
FedericoAmura Jul 18, 2024
e5960c1
chore: update PKPCosmos doc
FedericoAmura Jul 18, 2024
f76e7b7
chore: update PKPWalletConnect tests descriptions
FedericoAmura Jul 18, 2024
0e638e9
Merge branch 'refs/heads/staging/v7' into feat/removePKPClient
FedericoAmura Jul 18, 2024
996d6f0
feat: remove LitAuthClient dependencies
FedericoAmura Jul 19, 2024
74c57cd
feat: remove LitAuthClient
FedericoAmura Jul 19, 2024
47beccc
feat: validate relay url is valid
FedericoAmura Jul 23, 2024
c66580c
feat: restore mintPKPWithAuthMethods method but in LitRelay
FedericoAmura Jul 23, 2024
265fc72
feat: move getAuthIdByAuthMethod to lit-auth-client
FedericoAmura Jul 23, 2024
433ff0f
feat: implementation without circular dependency
FedericoAmura Jul 23, 2024
01c2df3
chore: linting
FedericoAmura Jul 23, 2024
3a46f2c
fix: remove extra await
FedericoAmura Jul 24, 2024
5b73d38
Merge branch 'master' into staging/v7
Ansonhkg Jul 25, 2024
d75f594
Merge pull request #564 from LIT-Protocol/staging/v7-merge-6.3.0
Ansonhkg Jul 25, 2024
b8c214f
Merge branch 'staging/v7' into feat/removePKPClient
Ansonhkg Jul 25, 2024
a945d32
Merge pull request #541 from LIT-Protocol/feat/removePKPClient
FedericoAmura Jul 25, 2024
9f5f72e
Merge branch 'refs/heads/staging/v7' into feature/lit-3582-js-sdk-70-…
FedericoAmura Jul 25, 2024
3382c37
feat: deprecate fetchPKPsThroughRelayer for identical fetchPKPs and g…
FedericoAmura Jul 26, 2024
4bffa80
feat: replace custom relay url map with a global one in constants
FedericoAmura Jul 26, 2024
bcce3ad
fix: use lit node client network and a random private key param for c…
FedericoAmura Jul 29, 2024
1bcb2c7
Merge pull request #547 from LIT-Protocol/feature/lit-3582-js-sdk-70-…
FedericoAmura Jul 30, 2024
2110f7d
dev: update name and publish config
Jul 31, 2024
fa38106
chore: update hd-keys-curves-wasm to 1.0.0
Jul 31, 2024
5df82e5
chore: update package metadata for publish
Jul 31, 2024
a239966
chore: version bump
Aug 1, 2024
fd42a52
dev(wasm): add wrappers for combnie and verify implementations
Aug 1, 2024
23d00e1
Merge branch 'master' into staging/v7
Ansonhkg Aug 2, 2024
95d11ad
prettier
Ansonhkg Aug 2, 2024
1fe65eb
Merge branch 'staging/v7' of github.com:LIT-Protocol/js-sdk into feat…
Aug 2, 2024
42fe73e
chore(wasm): bump package version
Aug 2, 2024
db1c0c6
chore: lint
Aug 2, 2024
fce8c8c
ref(wasm): change hd keys wasm dep to point to cargo registry
Aug 2, 2024
874a07e
chore: fmt
Aug 2, 2024
50975c5
dev: update README files for wasm info
Aug 2, 2024
f91aaee
ref(wasm): switch dep to registry version
Aug 2, 2024
adf16d3
chore: fmt
Aug 2, 2024
f3a657e
chore(wasm): bump hd-keys-curves-wasm
Aug 2, 2024
581ca7d
chore: fmt
Aug 2, 2024
53ebac5
ref: add respository field for publishing
Aug 2, 2024
cd0f419
chore: fmt
Aug 2, 2024
3db0f5b
feat: remove throwError function usage
FedericoAmura Aug 2, 2024
743d3bf
Merge pull request #573 from LIT-Protocol/feature/lit-3745-js-sdk-fix…
Aug 2, 2024
4e45fd9
Merge branch 'refs/heads/staging/v7' into feature/lit-3656-v7-js-sdk-…
FedericoAmura Aug 2, 2024
e8e1493
feat: Lit error classes comment for design
FedericoAmura Aug 5, 2024
49d9f99
feat: browser support with openagenda version of verror
FedericoAmura Aug 5, 2024
3eaa12a
feat: wrap error cause in Error object if it is not one already
FedericoAmura Aug 5, 2024
d137328
chore: removed unused imports and functions
FedericoAmura Aug 5, 2024
ab95475
feat: improve new error typing
FedericoAmura Aug 5, 2024
00845cf
fix: ELeft error throwing
FedericoAmura Aug 5, 2024
f7b44cc
fix: some throwNodeError types
FedericoAmura Aug 5, 2024
7955460
feat: unname NamedLitError for better logging
FedericoAmura Aug 5, 2024
8eca0a4
fix: jsdoc name
FedericoAmura Aug 5, 2024
e29cdfc
fix: remove unnecessary catch and throw
FedericoAmura Aug 5, 2024
1740824
chore: linting
FedericoAmura Aug 5, 2024
b4621eb
feat: replace enums with constants and their derived types for keys a…
FedericoAmura Aug 6, 2024
6b70c66
chore: linting
FedericoAmura Aug 6, 2024
95aa1c6
feat: add LitNetwork but deprecated for backwards compatibility
FedericoAmura Aug 7, 2024
1df95e1
feat: more enums removed
FedericoAmura Aug 7, 2024
3b9f8ed
feat: enums in types converted to constants
FedericoAmura Aug 7, 2024
6ef515b
feat: update rest of enums in code
FedericoAmura Aug 7, 2024
d0a5705
fix: some LitAbility imports
FedericoAmura Aug 8, 2024
2e12ec3
feat: remove unnecessary stringified conditions in error messages
FedericoAmura Aug 8, 2024
f7e56c4
feat: add eslint rule to not throw literals
FedericoAmura Aug 9, 2024
1afd154
feat: move error code and kind to verror meta to retain the structure…
FedericoAmura Aug 9, 2024
aca8337
feat: use custom errors in providers
FedericoAmura Aug 9, 2024
8a6cfef
feat: more plain JS errors replaced with custom errors
FedericoAmura Aug 9, 2024
f94fc25
feat: more js errros replaced with lit custom errors
FedericoAmura Aug 12, 2024
ab9af82
feat: more js errors replaced with lit custom errors
FedericoAmura Aug 13, 2024
31254b4
feat: replace more errors with custom ones including contracts-sdk
FedericoAmura Aug 13, 2024
9aee342
Merge branch 'master' into staging/v7
Ansonhkg Aug 13, 2024
8a57195
fix: errors tests and multierror import
FedericoAmura Aug 13, 2024
4674565
Merge branch 'refs/heads/staging/v7' into feature/lit-3656-v7-js-sdk-…
FedericoAmura Aug 13, 2024
1a532a7
fix: unnecessary import after merge
FedericoAmura Aug 13, 2024
eac6e63
Merge branch 'refs/heads/staging/v7' into feature/lit-3580-refactor-j…
FedericoAmura Aug 13, 2024
ee4bb9d
fix: Tinny environment types
FedericoAmura Aug 14, 2024
549ffba
feat: discard internalDev and localhost networks, replaced by custom
FedericoAmura Aug 15, 2024
678ad26
feat: discard LIT_TESTNET for LIT_NETWORK using custom network as pre…
FedericoAmura Aug 15, 2024
63b25d9
feat: remove unnecessary casting and fix changed network value in tes…
FedericoAmura Aug 15, 2024
743f6f1
chore: docs update
FedericoAmura Aug 15, 2024
b5ecbf1
feat: unify contants naming convention
FedericoAmura Aug 16, 2024
1f9dd60
feat: more replacements and style unification
FedericoAmura Aug 16, 2024
6735795
feat: add error handling description in readme
FedericoAmura Aug 19, 2024
c9ec2bd
chore: format
FedericoAmura Aug 19, 2024
5a232f0
Merge pull request #576 from LIT-Protocol/feature/lit-3656-v7-js-sdk-…
Ansonhkg Aug 20, 2024
eb8f733
feat: unify domain and origin default values in EthWalletProvider aut…
FedericoAmura Aug 20, 2024
6038511
Merge branch 'staging/v7' into feature/lit-3580-refactor-js-sdk-chang…
FedericoAmura Aug 20, 2024
ee8c8c6
Merge pull request #579 from LIT-Protocol/feature/lit-3580-refactor-j…
Ansonhkg Aug 20, 2024
195b5b2
feat: remove encryption package from lit-node-client
FedericoAmura Aug 22, 2024
b14dd5a
feat: remove commented re-export
FedericoAmura Aug 23, 2024
f014f43
Merge pull request #602 from LIT-Protocol/feature/lit-2967-ethwalletp…
FedericoAmura Aug 23, 2024
a9da551
Merge pull request #608 from LIT-Protocol/feature/lit-3579-v8-encrypt…
FedericoAmura Aug 23, 2024
eaf060b
remove global wasm module usage.
Aug 26, 2024
b0cbcd8
ci: update pr targets
Aug 26, 2024
3d68a56
feat: remove jszip and compression utilities
FedericoAmura Aug 27, 2024
a4e7ea3
chore: formatting
FedericoAmura Aug 27, 2024
608169f
feat: unused or duplicated dependencies removal
FedericoAmura Aug 28, 2024
3e7a991
feat: upgrade deps in package-lock.json
FedericoAmura Aug 28, 2024
07fa963
feat: upgrade cross-fetch to safe patch version
FedericoAmura Aug 28, 2024
31dceff
chore: tsconfig linting
FedericoAmura Aug 28, 2024
4b86dcd
feat: deps versions bump
FedericoAmura Aug 28, 2024
b8a7197
feat: unify tsc moduleResolution
FedericoAmura Aug 28, 2024
2d05e2a
feat: update typescript to v5
FedericoAmura Aug 28, 2024
569d996
chore: restore tsconfig.json format
FedericoAmura Aug 28, 2024
16567d4
feat: add packages used but not in dependencies
FedericoAmura Aug 28, 2024
6dcacd3
ref: fix sev attestation checks
Aug 28, 2024
6c83e9c
dev: fix digest for verification checks
Aug 28, 2024
9b255aa
ref: fix condition in adding signatures to digest
Aug 28, 2024
5f79c6f
ref: move update into condition check
Aug 28, 2024
cbc3f01
ref: remove -1 from iteration
Aug 28, 2024
0cd0caa
ref: fix signature hashing for report comparison
Aug 29, 2024
778e0fc
ref: remove FIXME
Aug 29, 2024
a884395
Merge pull request #623 from LIT-Protocol/fix/sev-report-verification
Sep 3, 2024
a011750
feat: remove cosmjs packages from contracts-sdk
FedericoAmura Sep 3, 2024
95aea0c
feat: linting and adding dep in package.json
FedericoAmura Sep 3, 2024
62a7268
feat: remove bitcoinjs-lib dependency
FedericoAmura Sep 4, 2024
f83fbbf
feat: remove secp256k1 dependency
FedericoAmura Sep 4, 2024
3e24f1b
feat: add depd to loudly mark deprecated things
FedericoAmura Sep 4, 2024
59fdac0
chore: format
FedericoAmura Sep 4, 2024
ebc7781
fix: depd import statement compatibility for builded packages
FedericoAmura Sep 5, 2024
a560feb
fix: use require for depd import statement compatibility to fix built…
FedericoAmura Sep 5, 2024
1c855e6
feat: move derive address helper function from contracts-sdk to misc
FedericoAmura Sep 6, 2024
c8968ae
fix: unify esModuleInterop between all our modules build
FedericoAmura Sep 6, 2024
f1d3f74
feat: rollback depd require to an import now that all packages use es…
FedericoAmura Sep 6, 2024
61e3109
dev: remove unused share utility.
Sep 11, 2024
1b67434
Merge pull request #619 from LIT-Protocol/fix/wasm-globals
Ansonhkg Sep 11, 2024
6348797
Merge branch 'master' into staging/v7
MaximusHaximus Sep 12, 2024
060cac8
Merge remote-tracking branch 'origin/staging/v7' into staging/v7
MaximusHaximus Sep 12, 2024
a9c1e06
fix: Resolve conflict breakage
MaximusHaximus Sep 12, 2024
840a774
chore: Initial removal of deprecated items
MaximusHaximus Sep 12, 2024
a81150a
fix: Remove code that called now-unavailable `throwError()` method, a…
MaximusHaximus Sep 12, 2024
5dd19fc
Merge pull request #621 from LIT-Protocol/feature/lit-3794-v8-remove-…
FedericoAmura Sep 13, 2024
17b154f
Merge branch 'staging/v7' into feature/lit-3795-v8-review-audit-depen…
FedericoAmura Sep 13, 2024
f850882
chore: resolve conflicts
FedericoAmura Sep 13, 2024
9f8d113
Merge pull request #622 from LIT-Protocol/feature/lit-3795-v8-review-…
Ansonhkg Sep 13, 2024
9bbc4ff
Merge branch 'master' into staging/v7
Ansonhkg Sep 16, 2024
0151ec7
feat: rename getRequestId to _getNewRequestId and made it protected t…
FedericoAmura Sep 16, 2024
e9056c6
Merge pull request #640 from LIT-Protocol/feature/lit-3879-avoid-conf…
Ansonhkg Sep 16, 2024
40a9d34
Merge branch 'master' into staging/v7
Ansonhkg Sep 19, 2024
c39dda6
feat: Merge branch 'master' into staging/v7 & add `InvalidSessionSigs…
Ansonhkg Sep 24, 2024
9330d90
feat: add `InvalidSessionSigs` error
Ansonhkg Sep 24, 2024
b1feea6
fix: remove build internalDev
Ansonhkg Sep 24, 2024
cca2158
fix: add network `custom` back to setup
Ansonhkg Sep 24, 2024
cb33f82
fix: use constant instead
Ansonhkg Sep 24, 2024
e0c57b0
Merge pull request #650 from LIT-Protocol/fix/v7-branch-fix-ci
Ansonhkg Sep 24, 2024
7b5a819
Merge branch 'master' into staging/v7
Ansonhkg Sep 25, 2024
eb12c53
feat: remove mentions of cayenne, habanero and manzano
FedericoAmura Sep 25, 2024
60848ed
chore: format
FedericoAmura Sep 25, 2024
302dd04
feat: remove `ecdsa` feature in lit-node-client-nodejs
Ansonhkg Sep 25, 2024
4322116
Merge pull request #656 from LIT-Protocol/feature/lit-3900-remove-ecdsa
Ansonhkg Sep 26, 2024
40b157d
Merge pull request #654 from LIT-Protocol/feature/lit-3900-js-sdk-rem…
FedericoAmura Sep 27, 2024
b4f1658
Merge branch 'master' into staging/v7
Ansonhkg Sep 27, 2024
4df408f
Merge branch 'master' into staging/v7
Ansonhkg Oct 1, 2024
9b3f912
feat: replace bs58 dep with ethers
FedericoAmura Oct 1, 2024
c2777b5
feat: remove vanilla js instructions and their necessary global scope…
FedericoAmura Oct 1, 2024
cf4ea12
feat: replace litWCProvider global scope variable with module scoped …
FedericoAmura Oct 1, 2024
9a5abd3
feat: replace globalThis in misc used to retrieve litCore config with…
FedericoAmura Oct 1, 2024
ddebd8b
chore: remove preinstall script to prevent unnecessary local build du…
Ansonhkg Oct 1, 2024
04f3622
feat: re-route `preinstall` from wasm package to root package.json
Ansonhkg Oct 1, 2024
821f0d3
fix: `REMOVE_LINES` was not being respected. It now comments out line…
Ansonhkg Oct 2, 2024
4e5d910
Merge branch 'master' into staging/v7
Ansonhkg Oct 2, 2024
01658d7
Merge branch 'staging/v7' into feature/lit-3913-js-sdk-investigate-wh…
Ansonhkg Oct 2, 2024
3ab9931
fix: `preinstall` script
Ansonhkg Oct 2, 2024
e4a26e1
fix: `preinstall` script
Ansonhkg Oct 2, 2024
71e1217
fix: remove `preinstall` script
Ansonhkg Oct 2, 2024
99ceb15
Merge pull request #662 from LIT-Protocol/feature/lit-3919-remove-bs5…
Ansonhkg Oct 2, 2024
c8801c5
Merge branch 'master' into staging/v7
Ansonhkg Oct 2, 2024
13e4cf6
fix: merge conflicts - use vError instaed of `throwError`
Ansonhkg Oct 2, 2024
c9d6c0d
fix: lint
Ansonhkg Oct 2, 2024
e666ce3
Merge branch 'staging/v7' into feature/lit-3918-no-globalthis-variabl…
Ansonhkg Oct 2, 2024
0d5fa42
Merge pull request #664 from LIT-Protocol/feature/lit-3913-js-sdk-inv…
Ansonhkg Oct 2, 2024
f8aaa19
Merge branch 'master' into staging/v7
Ansonhkg Oct 3, 2024
42ffd7c
fix: merge conflict resolution
FedericoAmura Oct 3, 2024
c934591
Merge branch 'master' into staging/v7
Ansonhkg Oct 4, 2024
8013aff
Merge pull request #663 from LIT-Protocol/feature/lit-3918-no-globalt…
FedericoAmura Oct 7, 2024
48beb3e
Merge branch 'master' into staging/v7
Ansonhkg Oct 8, 2024
dec6570
Merge branch 'master' into staging/v7
Ansonhkg Oct 10, 2024
7d8769a
chore: update yarn.lock
Ansonhkg Oct 10, 2024
a767002
fix: logger import
Ansonhkg Oct 10, 2024
3e61697
fmt
Ansonhkg Oct 10, 2024
a7d5f6a
fix: Removed the // @ts-expect-error assert function comments as they…
Ansonhkg Oct 10, 2024
f58a615
feat(bls): remove case 218 as we don't use it
Ansonhkg Oct 10, 2024
5453dfa
fmt
Ansonhkg Oct 10, 2024
9e57d3b
Merge pull request #683 from LIT-Protocol/fix/remove-unused-bls-case
Ansonhkg Oct 11, 2024
9657765
Merge branch 'master' into staging/v7
Ansonhkg Oct 16, 2024
894ad1b
update yarn.lock
Ansonhkg Oct 16, 2024
e80820b
fmt
Ansonhkg Oct 16, 2024
f5c1fc7
fmt
Ansonhkg Oct 16, 2024
0bf0855
Merge branch 'master' into staging/v7
Ansonhkg Oct 17, 2024
6469580
Merge branch 'master' into staging/v7
Ansonhkg Oct 22, 2024
19934aa
feat: add ci flow to ping `lit-configuration-guides` to build
Ansonhkg Oct 22, 2024
93842a9
fix(ci): enable run after above jobs are done
Ansonhkg Oct 22, 2024
2350bf1
fix(ci): indentation
Ansonhkg Oct 22, 2024
1b688e3
wip: disable needs
Ansonhkg Oct 22, 2024
561ef98
feat(ci): only trigger if there's a tag
Ansonhkg Oct 22, 2024
4fb5549
chore: update package version to `7.0.0-alpha.7.'
Ansonhkg Oct 22, 2024
d1a244e
fmt
Ansonhkg Oct 22, 2024
89c87c0
fmt
Ansonhkg Oct 22, 2024
0ee3311
wip: testing `7.0.0-alpha.8`
Ansonhkg Oct 22, 2024
5c7eb1d
fmt
Ansonhkg Oct 22, 2024
4214276
chore: Remove unused `jwt` endpoint
Ansonhkg Oct 22, 2024
e7476a3
fmt
Ansonhkg Oct 22, 2024
c78f4b8
Merge pull request #701 from LIT-Protocol/remove/verify-jwt-for-v7
Ansonhkg Oct 23, 2024
050e77f
Merge branch 'master' into staging/v7
Ansonhkg Oct 24, 2024
470ea95
chore: update version to "7.0.0-alpha.9"
Ansonhkg Oct 24, 2024
509882e
doc(v7): add API doc gen
Ansonhkg Oct 24, 2024
53a137c
doc: update jsdoc style
Ansonhkg Oct 24, 2024
4167b01
doc: update version on readme
Ansonhkg Oct 24, 2024
4d4e882
fmt
Ansonhkg Oct 25, 2024
b72c275
fix(ci): use new regen classic token
Ansonhkg Oct 25, 2024
f702464
Merge pull request #704 from LIT-Protocol/fix/ci
Ansonhkg Oct 25, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ trim_trailing_whitespace = true
[*.md]
max_line_length = off
trim_trailing_whitespace = false

[*.rs]
indent_size = 4
4 changes: 2 additions & 2 deletions .env.ci
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Tinny ENV Vars
MAX_ATTEMTPS=1
NETWORK=localchain
NETWORK=custom
DEBUG=true
WAIT_FOR_KEY_INTERVAL=3000
TIME_TO_RELEASE_KEY=10000
Expand All @@ -16,4 +16,4 @@ STOP_TESTNET=false
TESTNET_MANAGER_URL=http://127.0.0.1:8000
USE_LIT_BINARIES=true
LIT_NODE_BINARY_PATH=/usr/bin/lit_node
LIT_ACTION_BINARY_PATH=/usr/bin/lit_actions
LIT_ACTION_BINARY_PATH=/usr/bin/lit_actions
4 changes: 2 additions & 2 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Tinny ENV Vars
MAX_ATTEMPTS=1
NETWORK=cayenne
NETWORK=datil-dev
DEBUG=true
WAIT_FOR_KEY_INTERVAL=3000
LIT_OFFICAL_RPC=https://chain-rpc.litprotocol.com/http
Expand All @@ -18,4 +18,4 @@ STOP_TESTNET=false
TESTNET_MANAGER_URL=http://0.0.0.0:8000
USE_LIT_BINARIES=true
LIT_NODE_BINARY_PATH=/path/to/lit_node/binary
LIT_ACTION_BINARY_PATH=/path/to/lit_action_binary
LIT_ACTION_BINARY_PATH=/path/to/lit_action_binary
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
node_modules
packages/wasm/rust/**/*
packages/wasm/src/pkg/*
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
"type"
]
}
]
],
"no-throw-literal": "error"
}
}
49 changes: 45 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
- staging/**
- feat/**
- feature/**
- staging/**
jobs:
unit-tests:
runs-on: warp-ubuntu-latest-x64-16x
Expand All @@ -23,6 +24,12 @@ jobs:
with:
node-version: '20'
cache: 'yarn'
- name: Install rust
uses: dtolnay/rust-toolchain@1.76.0
- uses: jetli/wasm-pack-action@v0.4.0
with:
# Optional version of wasm-pack to install(eg. 'v0.9.1', 'latest')
version: 'latest'
- name: Install project dependencies
run: yarn --frozen-lockfile
- uses: nrwl/nx-set-shas@v3
Expand All @@ -49,7 +56,7 @@ jobs:
fetch-depth: 0
repository: LIT-Protocol/lit-assets
ref: ${{env.DATIL_COMMIT_HASH}}
token: ${{secrets.GH_PAT}}
token: ${{secrets.GH_PAT_FOR_SHIVA}}
path: ${{ github.workspace }}/lit-assets/
submodules: false
sparse-checkout: |
Expand All @@ -62,17 +69,21 @@ jobs:
working-directory: ${{github.workspace}}/lit-assets/blockchain/contracts
- name: Docker login
id: login
run: docker login ghcr.io/ -u ${{secrets.GH_USER}} --password ${{secrets.GH_PAT}}
run: docker login ghcr.io/ -u ${{ github.actor }} --password ${{secrets.GH_PAT_FOR_SHIVA}}
- name: Pull Shiva Container
id: shiva-pull
run: docker pull ghcr.io/lit-protocol/shiva:latest
- name: Run Shiva Container
id: shiva-runner
run: docker run -d -m 32g -p 8000:8000 -p 8545:8545 -p 7470:7470 -p 7471:7471 -p 7472:7472 -p 7473:7473 -p 7474:7474 -p 7475:7475 -v ${{github.workspace}}/lit-assets:/data -e GH_PAT=${{secrets.GH_PAT}} -e HASH=$DATIL_COMMIT_HASH -e IPFS_API_KEY=${{secrets.IPFS_API_KEY}} --name shiva ghcr.io/lit-protocol/shiva:latest
run: docker run -d -m 32g -p 8000:8000 -p 8545:8545 -p 7470:7470 -p 7471:7471 -p 7472:7472 -p 7473:7473 -p 7474:7474 -p 7475:7475 -v ${{github.workspace}}/lit-assets:/data -e GH_PAT=${{secrets.GH_PAT_FOR_SHIVA}} -e HASH=$DATIL_COMMIT_HASH -e IPFS_API_KEY=${{secrets.IPFS_API_KEY}} --name shiva ghcr.io/lit-protocol/shiva:latest
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
- uses: jetli/wasm-pack-action@v0.4.0
with:
# Optional version of wasm-pack to install(eg. 'v0.9.1', 'latest')
version: 'latest'
- name: Install project dependencies
run: yarn --frozen-lockfile
- uses: nrwl/nx-set-shas@v3
Expand All @@ -95,4 +106,34 @@ jobs:
run: docker stop shiva && docker rm shiva
- name: Post Pull Shiva Image
if: steps.shiva-pull.outputs.exit_code == 0
run: docker rmi ghcr.io/lit-protocol/shiva
run: docker rmi ghcr.io/lit-protocol/shiva
ping-lit-configuration-guides:
runs-on: ubuntu-latest
# needs: [unit-tests, integration-tests] # Make sure this job runs after others complete
steps:
- name: Get PR labels
id: pr-labels
uses: actions/github-script@v6
if: github.event_name == 'pull_request'
with:
script: |
const labels = context.payload.pull_request.labels
.map(label => label.name)
.filter(name => name.startsWith('tag:'))
.map(name => name.split(':')[1]);
if (labels.length > 0) {
core.setOutput('tag', labels[0]);
} else {
core.setOutput('skip', 'true');
}
- name: Trigger dependencies bot in lit-configuration-guides
if: steps.pr-labels.outputs.skip != 'true'
run: |
TAG="${{ steps.pr-labels.outputs.tag }}"
curl -X POST \
-H "Accept: application/vnd.github.everest-preview+json" \
-H "Authorization: token ${{ secrets.GH_PAT_LIT_CONFIGURATION_GUIDES_REPO }}" \
https://api.github.com/repos/LIT-Protocol/lit-configuration-guides/dispatches \
-d "{\"event_type\":\"dependency_update\", \"client_payload\": {\"labels\": [\"$TAG\"]}}"
env:
GH_PAT_LIT_CONFIGURATION_GUIDES_REPO: ${{ secrets.GH_PAT_LIT_CONFIGURATION_GUIDES_REPO }}
6 changes: 6 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ jobs:
with:
node-version: '18'
cache: 'yarn'
- name: Install rust
uses: dtolnay/rust-toolchain@1.76.0
- uses: jetli/wasm-pack-action@v0.4.0
with:
# Optional version of wasm-pack to install(eg. 'v0.9.1', 'latest')
version: 'latest'
- name: Install project dependencies
run: yarn install
- name: Lint
Expand Down
4 changes: 3 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@
/packages/*/dist
.nx
tools
**/*/dist
/packages/wasm/rust/*
/packages/wasm/src/pkg/*
**/*/dist
Loading
Loading