Skip to content

❗️❗️[NAGA] Develop Branch #776

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

Open
wants to merge 138 commits into
base: feature/lit-3748-naga
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
138 commits
Select commit Hold shift + click to select a range
05c0fd6
yay it works
Ansonhkg Jan 11, 2025
2ed3e9a
feat: verify works
Ansonhkg Jan 11, 2025
37b54b4
feat: decrypt works
Ansonhkg Jan 11, 2025
803c87e
chore: clean up
Ansonhkg Jan 11, 2025
9d52f3b
ftm
Ansonhkg Jan 11, 2025
a9571fb
fix: type mismatch
Ansonhkg Jan 14, 2025
4f8e2b6
fix(ci): update `NAGA_COMMIT_HASH`
Ansonhkg Jan 15, 2025
06f6fad
fix(ci): update Rust version to 1.83.0 for wasm compatibility
Ansonhkg Jan 15, 2025
e7183c0
feat(lit-node-client-nodejs): LIT-4124 - Remove now-unused shareIndex…
MaximusHaximus Jan 15, 2025
bc74bf0
chore(ci): update `NAGA_COMMIT_HASH` for `rc-naga-2025-01-15` branch
Ansonhkg Jan 15, 2025
3c581d1
feat: add naga dev support
Ansonhkg Jan 16, 2025
1a31a67
fix: wrong ABI - using dev instead of prod and set hardcoded realmid …
Ansonhkg Jan 16, 2025
d67c040
fix(contracts-sdk): `PriceFeed` not found & passing realmId to PriceF…
Ansonhkg Jan 16, 2025
16a456b
chore: make REALM_ID more visible to be fixed in the future
Ansonhkg Jan 16, 2025
aa62490
add rust-toolchain.toml so we autoinstall some necessary rust stuff
glitch003 Jan 16, 2025
3d1bd01
Merge pull request #768 from LIT-Protocol/feature/js-sdk-naga-add-nag…
Ansonhkg Jan 16, 2025
eac65fa
Merge pull request #767 from LIT-Protocol/feature/lit-4132-js-sdk-nag…
Ansonhkg Jan 16, 2025
a2d2164
chore(ci): update `NAGA_COMMIT_HASH` to use `rc-naga-2025-01-16` branch
Ansonhkg Jan 16, 2025
27bc58d
Merge branch 'feature/lit-4124-js-sdk-naga-fix-bls-wasm' of https://g…
Ansonhkg Jan 16, 2025
16a1a50
feat: add naga dev support
Ansonhkg Jan 16, 2025
3e57df1
fix: wrong ABI - using dev instead of prod and set hardcoded realmid …
Ansonhkg Jan 16, 2025
c8c37c2
fix(contracts-sdk): `PriceFeed` not found & passing realmId to PriceF…
Ansonhkg Jan 16, 2025
e1be5fe
chore: make REALM_ID more visible to be fixed in the future
Ansonhkg Jan 16, 2025
dbfcc56
👀 quick update
Ansonhkg Jan 18, 2025
f1f8146
Merge branch 'naga-clean-base-2' into feature/lit-4124-js-sdk-naga-fi…
Ansonhkg Jan 22, 2025
0a3be46
feat(types): add types and export updates
Ansonhkg Jan 22, 2025
1cb2f2b
chore(client-node-js): cleanup unused imports, remove commented examp…
Ansonhkg Jan 22, 2025
7dd5c37
deprecate(client): mark `combineShares`, `getJWTParams`, `combineShar…
Ansonhkg Jan 22, 2025
926c774
feat(types): update interface and refactor optional fields
Ansonhkg Jan 22, 2025
1490ee9
feat(bls): refactor bls.rs to use `lit-bls-wasm` as a dependency and …
Ansonhkg Jan 23, 2025
90bef25
fmt
Ansonhkg Jan 23, 2025
362f7ae
fix: remove specifying `EcdsaSignedMessageShare`
Ansonhkg Jan 23, 2025
d47de80
fmt
Ansonhkg Jan 23, 2025
582c0f4
feat(parsePkpSignResponse): Determine if the object is lifted or cont…
Ansonhkg Jan 23, 2025
962ca9b
remove(rateLimitNFT): remove rate limit NFT & staking balance contracts
Ansonhkg Jan 23, 2025
dfe1cfb
test(testUseEoaSessionSigsToPkpSign): Enable validator-related functi…
Ansonhkg Jan 23, 2025
19c01dd
chore(ci): update `NAGA_COMMIT_HASH` for `rc-naga-2024-01-23` branch
Ansonhkg Jan 23, 2025
f0e2ab0
@Ansonhkg
Ansonhkg Jan 23, 2025
25fd3ed
fmt
Ansonhkg Jan 23, 2025
6539e8f
<think>
Ansonhkg Jan 23, 2025
8987b9b
<think>
Ansonhkg Jan 23, 2025
ebd9630
fmt
Ansonhkg Jan 23, 2025
30854de
<think>
Ansonhkg Jan 23, 2025
609269c
chore(package): bump version
Ansonhkg Jan 23, 2025
13382fd
fix: it should use total validator size instead of minNodeCount
Ansonhkg Jan 24, 2025
d41f62b
fix(temporarily): talk to threshold number of nodes
Ansonhkg Jan 24, 2025
ab73610
chore(ci): update `NAGA_COMMIT_HASH` to `340d6df4b42c04b908b645a598a9…
Ansonhkg Jan 24, 2025
9f6d735
👀 quick update
Ansonhkg Jan 24, 2025
8fe0caf
Revert "chore(ci): update `NAGA_COMMIT_HASH` to `340d6df4b42c04b908b6…
Ansonhkg Jan 24, 2025
fd144fa
fix(temp): talk to wholeset of nodes for testing
Ansonhkg Jan 24, 2025
b8a7ffb
chore(tinny): bump version
Ansonhkg Jan 24, 2025
fb4a5e0
Merge branch 'feat/naga-fix-bls-wasm-cleanup' into feature/lit-4143-j…
Ansonhkg Jan 24, 2025
ada1097
remove: RLI & Staking balances related logic
Ansonhkg Jan 24, 2025
0a44b83
remove: more cleanup
Ansonhkg Jan 24, 2025
493a1e4
remove: all tests related to rate limit nft
Ansonhkg Jan 24, 2025
b7c40a8
remove: tests from tests.ts
Ansonhkg Jan 24, 2025
1145fd9
feat: replace rli with payment delegation
Ansonhkg Jan 24, 2025
b8e0b60
chore: remove unused tools
Ansonhkg Jan 24, 2025
eff38ff
chore: remove unused bun command
Ansonhkg Jan 24, 2025
124aecb
fix: logger.spec.ts
Ansonhkg Jan 24, 2025
1ca2968
fix: bls tests already migrated to bls.rs
Ansonhkg Jan 24, 2025
8c4576b
fix: validator.spec.ts unit tests
Ansonhkg Jan 24, 2025
d473f17
fix: unit tests
Ansonhkg Jan 24, 2025
163646f
chore: rename ci to work
Ansonhkg Jan 24, 2025
5c69333
remove: mint nft
Ansonhkg Jan 24, 2025
ff460e2
fix(test): bls verifier
Ansonhkg Jan 28, 2025
62d1d6e
feat: cleaned contracts-sdk removing old contracts abis that now are …
FedericoAmura Jan 28, 2025
7cb65ce
feat: add event listener mocks
FedericoAmura Jan 28, 2025
9947dbf
fix: LitContracts.callLitContract params and its type checking
FedericoAmura Jan 28, 2025
ff13645
Merge pull request #780 from LIT-Protocol/feature/lit-4147-js-sdk-cle…
Ansonhkg Jan 29, 2025
00f726d
chore: update gitignore
Ansonhkg Jan 30, 2025
990569e
fix(contracts-sdk): aware of network context
Ansonhkg Jan 30, 2025
7e5ab6f
chore(tinny): better logs
Ansonhkg Jan 30, 2025
2c490b7
fix(contracts-sdk): log `resolveLitContract` won't work for custom ne…
Ansonhkg Jan 30, 2025
9895d4f
fmt
Ansonhkg Jan 30, 2025
9fd299b
chore: update comment
Ansonhkg Jan 30, 2025
a0aac03
Merge pull request #781 from LIT-Protocol/fix/contracts-sdk-unaware-o…
Ansonhkg Jan 30, 2025
b98c1da
Merge pull request #777 from LIT-Protocol/feature/lit-4143-js-sdk-sdk…
Ansonhkg Jan 30, 2025
5e00bd8
feat(lit-node-client-nodejs): LIT-3748 - Add `getMaxPricesForNodes()`…
MaximusHaximus Jan 8, 2025
6a22a29
feat(lit-node-client-nodejs): LIT-3748 - Convert price tracking to us…
MaximusHaximus Jan 15, 2025
91ee157
feat(lit-node-client-nodejs): LIT-3748 - Revise contracts SDK to not …
MaximusHaximus Jan 15, 2025
35ce69a
feat(lit-node-client-nodejs): LIT-3748 - Remove fetching of prices fr…
MaximusHaximus Jan 15, 2025
0cabcff
feat(lit-node-client-nodejs): LIT-3748 - Replace local-tests `getEoaS…
MaximusHaximus Jan 28, 2025
7da6c27
feat(lit-node-client-nodejs): LIT-3748 - Base implementation of inter…
MaximusHaximus Jan 30, 2025
c8c5254
feat(lit-node-client-nodejs): LIT-3748 - Initial migration of local-t…
MaximusHaximus Jan 30, 2025
341f39a
feat(local-tests): LIT-3748 - Update shiva contract context to includ…
MaximusHaximus Jan 30, 2025
9ecdcaa
fix(lit-node-client-nodejs): LIT-3748 - Fix error handling for node e…
MaximusHaximus Jan 30, 2025
0da6be1
fix(local-tests): LIT-3748 - Update `testUseEoaSessionSigsToRequestSi…
MaximusHaximus Jan 30, 2025
e821582
feat(event-listener): LIT-3748 - Update executeLitAction() to use `au…
MaximusHaximus Jan 30, 2025
b5075a4
feat(types): LIT-3748 - Clean up types/interfaces
MaximusHaximus Jan 30, 2025
fe4d58d
feat(local-tests): LIT-3748 - Remove getSessionSigsProps usage from p…
MaximusHaximus Jan 30, 2025
8152e32
feat(types): LIT-3748 - More types cleanup
MaximusHaximus Jan 30, 2025
c0c7370
feat(types): LIT-3748 - Suppress remaining eslint `any` related error…
MaximusHaximus Jan 30, 2025
a6e1f18
feat(local-tests): LIT-3748 - Disable wrapped-keys tests in `tests.ts…
MaximusHaximus Jan 30, 2025
e7cb3b0
feat(wrapped-keys): LIT-3748 - Disable wrapped-keys builds/publishes …
MaximusHaximus Jan 30, 2025
cdc09aa
feat(lit-node-client): LIT-3748 - Integrate minNodeCount node selecti…
MaximusHaximus Jan 30, 2025
0caece5
feat(tinny): LIT-3748 - Add ability to set `DEFAULT_MAX_PRICES` env v…
MaximusHaximus Jan 30, 2025
46c47fd
feat(lit-node-client): LIT-3748 - Re-integrate per-behavioural method…
MaximusHaximus Jan 30, 2025
7f1bb26
feat(tinny): LIT-3748 - Log errors thrown in tinny tests with stack t…
MaximusHaximus Jan 30, 2025
5148924
fix(lit-core): LIT-3748 - Show a more descriptive error than 'cannot …
MaximusHaximus Jan 30, 2025
ea0ed3a
fix(lit-node-client): LIT-3748 - Use threshold instead of this.config…
MaximusHaximus Jan 30, 2025
d63e4e1
chore(contracts-sdk): LIT-3748 - Resolve last remaining eslint errors…
MaximusHaximus Jan 30, 2025
7c542f6
Merge pull request #784 from LIT-Protocol/feature/lit-3748-naga-user-…
Ansonhkg Feb 3, 2025
333f77d
chore: remove @deprecated code
Ansonhkg Feb 4, 2025
07639ad
chore: remove unused code
Ansonhkg Feb 4, 2025
ee378d1
Merge pull request #789 from LIT-Protocol/feature/lit-4198-js-sdk-rem…
Ansonhkg Feb 4, 2025
a8454cf
fmt
Ansonhkg Feb 4, 2025
61c45b5
chore: remove cosmos and solana related code, and general clean up
Ansonhkg Feb 4, 2025
9ad04d0
chore: remove bare authSig from test
Ansonhkg Feb 4, 2025
3e1edcf
chore: bring in session helper to node client
Ansonhkg Feb 4, 2025
2eaf9e6
chore: remove jsDoc on sol and cos
Ansonhkg Feb 4, 2025
eaa14b7
chore: improve jsdoc
Ansonhkg Feb 4, 2025
83316d7
chore: consolidate siwe uri prefixes
Ansonhkg Feb 4, 2025
d158dfb
chore: Removed `DatilDev` and `DatilTest` as default arguments.
Ansonhkg Feb 5, 2025
8e5fad5
chore: Relocated `getFormattedAccessControlConditions`, `getHashedAcc…
Ansonhkg Feb 5, 2025
5ffa62c
chore: Relocated `generateSessionCapabilityObjectWithWildcards` to `a…
Ansonhkg Feb 5, 2025
8b7e478
chore: Relocated `generateSessionCapabilityObjectWithWildcards` to `a…
Ansonhkg Feb 5, 2025
72ea521
remote: ABI_LIT fomr constants
Ansonhkg Feb 5, 2025
db22d46
chore: Relocated `LITChain`, `LITCosmosChain`, `LITEVMChain`, `LITSVM…
Ansonhkg Feb 5, 2025
e395420
chore: add `CHANGE` label
Ansonhkg Feb 5, 2025
c28d5d1
remove: `/web/signing/access_control_condition` endpoint
Ansonhkg Feb 5, 2025
629fec5
chore: move types to `core`
Ansonhkg Feb 5, 2025
c916912
feat: relocated `getExpiration` as helper function
Ansonhkg Feb 5, 2025
f3880ad
breaking(lit-core):
Ansonhkg Feb 5, 2025
234b283
breaking(client):
Ansonhkg Feb 5, 2025
2ea0dcb
feat(ILitNodeClient): sync interface
Ansonhkg Feb 5, 2025
fa0894e
remove: `getRandomNodePromise`
Ansonhkg Feb 5, 2025
ae70dcd
fix: unit tests
Ansonhkg Feb 5, 2025
fbf0ccd
Merge pull request #790 from LIT-Protocol/feature/lit-4185-js-sdk-nag…
Ansonhkg Feb 6, 2025
b67fabb
chore(lit-core): LIT-4207 - eslint --fix `lit-core`
MaximusHaximus Feb 10, 2025
d5ecfda
feat(contracts-sdk): LIT-4207 - Move price feed info fetching to `pri…
MaximusHaximus Feb 10, 2025
f2aab9d
feat(lit-node-client): LIT-4207 - Remove node price tracking state fr…
MaximusHaximus Feb 10, 2025
15091e7
chore(lit-node-client): LIT-4207 - Fix method name for accuracy
MaximusHaximus Feb 10, 2025
1196d13
Merge pull request #796 from LIT-Protocol/LIT-4207-refresh-node-prices
Ansonhkg Feb 10, 2025
f3d85d4
feat: add new schemas package using zod, bring acc validation package…
FedericoAmura Feb 19, 2025
6070756
feat: migrate accs validator to new accs schemas package and remove a…
FedericoAmura Feb 20, 2025
f69dd87
feat: define supported lit chains in constants and use those values t…
FedericoAmura Feb 25, 2025
855a840
Merge pull request #801 from LIT-Protocol/feature/lit-3796-js-sdk-add…
Ansonhkg Feb 25, 2025
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
  •  
  •  
  •  
10 changes: 7 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ jobs:
node-version: '20'
cache: 'yarn'
- name: Install rust
uses: dtolnay/[email protected]
uses: actions-rs/toolchain@v1
with:
toolchain: 1.83.0
override: true
components: rust-std
- uses: jetli/[email protected]
with:
# Optional version of wasm-pack to install(eg. 'v0.9.1', 'latest')
Expand All @@ -38,12 +42,12 @@ jobs:
- name: Build
run: yarn build:dev
- name: Run Unit tests
run: yarn tools --test --unit
run: yarn test:unit
naga-integration-tests:
runs-on: ubuntu-latest
timeout-minutes: 30
env:
NAGA_COMMIT_HASH: a5afaa47ecf6d9de090c50648a44e535df091857
NAGA_COMMIT_HASH: 7afa4d33bcc127dba4aff40979166fc25fb01103
steps:
- name: Checkout repo
uses: actions/checkout@v2
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,6 @@ local-tests/build
.env

packages/wrapped-keys-lit-actions/src/generated

digest
generate-digest.ts
20 changes: 20 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,26 @@
"lit-node-client-nodejs",
"core",
],
"workbench.colorCustomizations": {
"activityBar.activeBackground": "#2f7c47",
"activityBar.background": "#2f7c47",
"activityBar.foreground": "#e7e7e7",
"activityBar.inactiveForeground": "#e7e7e799",
"activityBarBadge.background": "#422c74",
"activityBarBadge.foreground": "#e7e7e7",
"commandCenter.border": "#e7e7e799",
"sash.hoverBorder": "#2f7c47",
"statusBar.background": "#215732",
"statusBar.foreground": "#e7e7e7",
"statusBarItem.hoverBackground": "#2f7c47",
"statusBarItem.remoteBackground": "#215732",
"statusBarItem.remoteForeground": "#e7e7e7",
"titleBar.activeBackground": "#215732",
"titleBar.activeForeground": "#e7e7e7",
"titleBar.inactiveBackground": "#21573299",
"titleBar.inactiveForeground": "#e7e7e799"
},
"peacock.color": "#215732",
// "restoreTerminals.terminals": [
// {
// "splitTerminals": [
Expand Down
1 change: 0 additions & 1 deletion local-tests/build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { fileURLToPath } from 'url';

const ALLOW_LIST = [
'ethers',
'@lit-protocol/accs-schemas',
'@lit-protocol/contracts',
'crypto',
'secp256k1',
Expand Down
12 changes: 6 additions & 6 deletions local-tests/index.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
import { TinnyEnvironment } from './setup/tinny-environment';
import { runInBand, runTestsParallel } from './setup/tinny-operations';
import * as tinnyTests from './tests';
import { getEoaSessionSigs } from './setup/session-sigs/get-eoa-session-sigs';
import { getLitActionSessionSigs } from './setup/session-sigs/get-lit-action-session-sigs';
import { getPkpSessionSigs } from './setup/session-sigs/get-pkp-session-sigs';
import { getEoaAuthContext } from './setup/session-sigs/get-eoa-session-sigs';
import { getLitActionAuthContext } from './setup/session-sigs/get-lit-action-session-sigs';
import { getPkpAuthContext } from './setup/session-sigs/get-pkp-session-sigs';
import { AccessControlConditions } from './setup/accs/accs';

export {
TinnyEnvironment,
runInBand,
runTestsParallel,
tinnyTests,
getEoaSessionSigs,
getLitActionSessionSigs,
getPkpSessionSigs,
getEoaAuthContext,
getLitActionAuthContext,
getPkpAuthContext,
AccessControlConditions,
};

Expand Down
3 changes: 1 addition & 2 deletions local-tests/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lit-protocol/tinny",
"version": "0.0.5",
"version": "0.0.15",
"description": "A package to run the test script for Lit Protocol with custom commands",
"type": "module",
"main": "./index.js",
Expand All @@ -20,7 +20,6 @@
"@cypress/code-coverage": "^3.10.0",
"@cypress/react": "^6.2.0",
"@cypress/webpack-dev-server": "^2.3.0",
"@lit-protocol/accs-schemas": "0.0.7",
"@metamask/eth-sig-util": "5.0.2",
"@mysten/sui.js": "^0.37.1",
"@playwright/test": "^1.25.2",
Expand Down
16 changes: 8 additions & 8 deletions local-tests/setup/accs/accs.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import {
LPACC_EVM_ATOM,
LPACC_EVM_BASIC,
LPACC_SOL,
} from '@lit-protocol/accs-schemas';
AtomAcc,
EvmBasicAcc,
SolAcc,
} from '@lit-protocol/access-control-conditions-schemas';

export namespace AccessControlConditions {
export const getEmvBasicAccessControlConditions = ({
export const getEvmBasicAccessControlConditions = ({
userAddress,
}): LPACC_EVM_BASIC[] => {
}): EvmBasicAcc[] => {
return [
{
contractAddress: '',
Expand All @@ -25,7 +25,7 @@ export namespace AccessControlConditions {

export const getSolBasicAccessControlConditions = ({
userAddress,
}): LPACC_SOL[] => {
}): SolAcc[] => {
return [
{
method: '',
Expand All @@ -45,7 +45,7 @@ export namespace AccessControlConditions {

export const getCosmosBasicAccessControlConditions = ({
userAddress,
}): LPACC_EVM_ATOM[] => {
}): AtomAcc[] => {
return [
{
conditionType: 'cosmos',
Expand Down
Loading
Loading