Skip to content
Closed
Show file tree
Hide file tree
Changes from 5 commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
220 changes: 14 additions & 206 deletions local-tests/setup/networkContext.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"Allowlist": {
"address": "0xf5059a5D33d5853360D16C683c16e67980206f36",
"address": "0x9e491001d8b466cb3D0d4423930b4E115137C26B",
"abi": [
{
"inputs": [],
Expand Down Expand Up @@ -231,7 +231,7 @@
"name": "Allowlist"
},
"LITToken": {
"address": "0x0DCd1Bf9A1b36cE34237eEaFef220932846BCD82",
"address": "0xd78089bAAe410f5d0eae31D0D56157c73a3Ff98B",
"abi": [
{
"inputs": [
Expand Down Expand Up @@ -1279,7 +1279,7 @@
"name": "LITToken"
},
"Multisender": {
"address": "0xFD471836031dc5108809D173A067e8486B9047A3",
"address": "0xe113C4318330A7B30ecfc554415E62A720eaeb3A",
"abi": [
{
"anonymous": false,
Expand Down Expand Up @@ -1388,7 +1388,7 @@
"name": "Multisender"
},
"PKPHelper": {
"address": "0x202CCe504e04bEd6fC0521238dDf04Bc9E8E15aB",
"address": "0x13e23D381B3f7952D510A9275e7e6F5F1BED40F8",
"abi": [
{
"inputs": [
Expand Down Expand Up @@ -2370,7 +2370,7 @@
"name": "PKPHelper"
},
"PKPNFT": {
"address": "0x9d4454B023096f34B160D6B654540c56A1F81688",
"address": "0xF4e4D17f6386D655BE861B06FF4c05ff1a8950e8",
"abi": [
{
"inputs": [
Expand Down Expand Up @@ -3569,7 +3569,7 @@
"name": "PKPNFT"
},
"PKPNFTMetadata": {
"address": "0x922D6956C99E12DFeB3224DEA977D0939758A1Fe",
"address": "0x829153d42CAF4de6b3aDD39002790A7498bbCA38",
"abi": [
{
"inputs": [
Expand Down Expand Up @@ -3727,7 +3727,7 @@
"name": "PKPNFTMetadata"
},
"PKPPermissions": {
"address": "0x0355B7B8cb128fA5692729Ab3AAa199C1753f726",
"address": "0xCE1f66d900794626a6933D8b01A0AA2Cb349b3b5",
"abi": [
{
"inputs": [
Expand Down Expand Up @@ -5017,7 +5017,7 @@
"name": "PKPPermissions"
},
"PubkeyRouter": {
"address": "0xc351628EB244ec633d5f21fBD6621e1a683B1181",
"address": "0x4AD54D7757605ae56330556D0C268397a41F90D7",
"abi": [
{
"inputs": [
Expand Down Expand Up @@ -5933,7 +5933,7 @@
"name": "PubkeyRouter"
},
"RateLimitNFT": {
"address": "0xb7278A61aa25c888815aFC32Ad3cC52fF24fE575",
"address": "0xDBb5BB4836752B33D6D9a0ddd133989e6BdBb97f",
"abi": [
{
"inputs": [
Expand Down Expand Up @@ -7322,7 +7322,7 @@
"name": "RateLimitNFT"
},
"Staking": {
"address": "0x67d269191c92Caf3cD7723F116c85e6E9bf55933",
"address": "0x4A031f223f1BDcc1eC2aB6f6346ca9E501d0C11D",
"abi": [
{
"inputs": [
Expand Down Expand Up @@ -10263,7 +10263,7 @@
"name": "Staking"
},
"StakingBalances": {
"address": "0xc6e7DF5E7b4f2A278906862b61205850344D4e7d",
"address": "0x60d5184AB5f7F9010998851CF931aB4CD9bFB99a",
"abi": [
{
"inputs": [
Expand Down Expand Up @@ -11504,187 +11504,8 @@
],
"name": "StakingBalances"
},
"CloneNet": {
"address": "0x1613beB3B2C4f22Ee086B2b38C1476A3cE7f78E8",
"abi": [
{
"type": "error",
"inputs": [],
"name": "CallerNotOwner"
},
{
"type": "function",
"inputs": [
{
"name": "stakingContractAddress",
"internalType": "address",
"type": "address"
}
],
"name": "adminAddActiveStakingContract",
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"inputs": [
{
"name": "stakingContractAddress",
"internalType": "address",
"type": "address"
}
],
"name": "adminRemoveActiveStakingContract",
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"inputs": [],
"name": "getActiveStakingContracts",
"outputs": [
{
"name": "",
"internalType": "address[]",
"type": "address[]"
}
],
"stateMutability": "view"
},
{
"type": "function",
"inputs": [],
"name": "getAllActiveUnkickedValidatorStructsAndCounts",
"outputs": [
{
"name": "",
"internalType": "struct LibStakingStorage.KeyedStakingAggregateDetails[]",
"type": "tuple[]",
"components": [
{
"name": "stakingContractAddress",
"internalType": "address",
"type": "address"
},
{
"name": "details",
"internalType": "struct LibStakingStorage.StakingAggregateDetails",
"type": "tuple",
"components": [
{
"name": "epoch",
"internalType": "struct LibStakingStorage.Epoch",
"type": "tuple",
"components": [
{
"name": "epochLength",
"internalType": "uint256",
"type": "uint256"
},
{
"name": "number",
"internalType": "uint256",
"type": "uint256"
},
{
"name": "endTime",
"internalType": "uint256",
"type": "uint256"
},
{
"name": "retries",
"internalType": "uint256",
"type": "uint256"
},
{
"name": "timeout",
"internalType": "uint256",
"type": "uint256"
},
{
"name": "startTime",
"internalType": "uint256",
"type": "uint256"
}
]
},
{
"name": "currentValidatorCountForConsensus",
"internalType": "uint256",
"type": "uint256"
},
{
"name": "activeUnkickedValidators",
"internalType": "struct LibStakingStorage.Validator[]",
"type": "tuple[]",
"components": [
{
"name": "ip",
"internalType": "uint32",
"type": "uint32"
},
{
"name": "ipv6",
"internalType": "uint128",
"type": "uint128"
},
{
"name": "port",
"internalType": "uint32",
"type": "uint32"
},
{
"name": "nodeAddress",
"internalType": "address",
"type": "address"
},
{
"name": "reward",
"internalType": "uint256",
"type": "uint256"
},
{
"name": "senderPubKey",
"internalType": "uint256",
"type": "uint256"
},
{
"name": "receiverPubKey",
"internalType": "uint256",
"type": "uint256"
},
{
"name": "lastActiveEpoch",
"internalType": "uint256",
"type": "uint256"
}
]
}
]
}
]
}
],
"stateMutability": "view"
},
{
"type": "function",
"inputs": [],
"name": "numActiveStakingContracts",
"outputs": [
{
"name": "",
"internalType": "uint256",
"type": "uint256"
}
],
"stateMutability": "view"
}
],
"name": "CloneNet"
},
"ContractResolver": {
"address": "0x5FbDB2315678afecb367f032d93F642f64180aa3",
"address": "0x8b62F63AFd74d81c25504634d1539d1Abc78c52E",
"abi": [
{
"inputs": [
Expand Down Expand Up @@ -11867,19 +11688,6 @@
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "CLONE_NET_CONTRACT",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "DEFAULT_ADMIN_ROLE",
Expand Down Expand Up @@ -12370,7 +12178,7 @@
"name": "ContractResolver"
},
"PriceFeed": {
"address": "0xF8e31cb472bc70500f08Cd84917E5A1912Ec8397",
"address": "0x229E5A0694b79A5254244178eF38b5B019dc7B63",
"abi": [
{
"inputs": [
Expand Down Expand Up @@ -13156,7 +12964,7 @@
"name": "PriceFeed"
},
"Ledger": {
"address": "0xe8D2A1E88c91DCd5433208d4152Cc4F399a7e91d",
"address": "0xDCC4973Fe2D38be9cb3480967a8916789C9beac8",
"abi": [
{
"inputs": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// DEBUG=true LIT_RPC_URL=https://yellowstone-rpc.litprotocol.com NETWORK=custom yarn test:local --filter=testUseEoaSessionSigsToEncryptDecryptString
import { getEoaSessionSigs } from 'local-tests/setup/session-sigs/get-eoa-session-sigs';
import { LIT_ABILITY } from '@lit-protocol/constants';
import { ILitNodeClient } from '@lit-protocol/types';
Expand Down
2 changes: 1 addition & 1 deletion local-tests/tests/testUseEoaSessionSigsToPkpSign.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const testUseEoaSessionSigsToPkpSign = async (
signature
);

console.log("recoveredPubKey:", recoveredPubKey);
console.log('recoveredPubKey:', recoveredPubKey);

// FIXME: Consider adding these assertions back after the v flipping PR is merged
// if (recoveredPubKey !== `0x${runWithSessionSigs.publicKey.toLowerCase()}`) {
Expand Down
12 changes: 6 additions & 6 deletions packages/constants/src/lib/constants/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ const deprecated = depd('lit-js-sdk:constants:mappers');
*/
export const NETWORK_CONTEXT_BY_NETWORK: {
[key in LIT_NETWORK_VALUES]:
| typeof datilDev
| typeof datilTest
| typeof datil;
| typeof datilDev
| typeof datilTest
| typeof datil;
} = {
'datil-dev': datilDev,
'datil-test': datilTest,
Expand All @@ -34,13 +34,13 @@ export const GLOBAL_OVERWRITE_IPFS_CODE_BY_NETWORK: {

/**
* Product IDs used for price feed and node selection
*
*
* - DECRYPTION (0): Used for decryption operations
* - SIGN (1): Used for signing operations
* - SIGN (1): Used for signing operations
* - LA (2): Used for Lit Actions execution
*/
export const PRODUCT_IDS = {
DECRYPTION: 0, // For decryption operations
SIGN: 1, // For signing operations
LA: 2, // For Lit Actions execution
} as const;
} as const;
Loading
Loading