Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ contract BackupRecoveryFacet {
);

LibBackupRecoveryStorage.RecoveredPeerId[]
storage recovered_peer_ids = s().recovered_peer_ids;
storage recovered_peer_ids = s().recovered_peer_ids[0];
for (uint256 i = 0; i < recovered_peer_ids.length; i++) {
if (recovered_peer_ids[i].node_address == msg.sender) {
recovered_peer_ids[i].old_peer_id = old_peer_id;
Expand Down Expand Up @@ -517,7 +517,7 @@ contract BackupRecoveryFacet {
view
returns (LibBackupRecoveryStorage.RecoveredPeerId[] memory peer_ids)
{
return s().recovered_peer_ids;
return s().recovered_peer_ids[0];
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ library LibBackupRecoveryStorage {
struct RecoveryKey {
bytes pubkey;
uint256 keyType; // see rust/lit-node/src/tss/common/curve_type.rs 1 = BLS, 2 = K256, etc. Not doing this in an enum so we can add more keytypes in the future without redeploying.
// NOTE: DO NOT ADD ANYTHING TO THIS STRUCT SINCE IT IS NOT CONTAINED IN A MAPPING IN THE ROOT LEVEL STORAGE STRUCT
// AND MAY RESULT IN STORAGE POINTERS SHIFTING.
}

/**
Expand Down Expand Up @@ -99,7 +101,8 @@ library LibBackupRecoveryStorage {
// A mapping from the node address and peer id of a recovering node to the peer id
// of the node which generated the the private shares that it recovered.
// Necessary for the first DKG after the recovery
RecoveredPeerId[] recovered_peer_ids;
// Use recovered_peer_ids[0] for now.
mapping(uint256 => RecoveredPeerId[]) recovered_peer_ids;
}

function getStorage()
Expand Down
2 changes: 1 addition & 1 deletion blockchain/contracts/contracts/lit-node/PriceFeed.sol
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ contract PriceFeed {
s.baseNetworkPrices[i] = baseAmount;
s.maxNetworkPrices[i] = baseAmount * 100;
}
s.nodeCapacityConfig = LibPriceFeedStorage.NodeCapacityConfig({
s.nodeCapacityConfigs[0] = LibPriceFeedStorage.NodeCapacityConfig({
pkpSignMaxConcurrency: 75,
encSignMaxConcurrency: 300,
litActionMaxConcurrency: 50,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ library LibPriceFeedStorage {
mapping(uint256 => uint256) baseNetworkPrices;
mapping(uint256 => uint256) maxNetworkPrices;
mapping(LitActionPriceComponent => LitActionPriceConfig) litActionPriceConfigs;
NodeCapacityConfig nodeCapacityConfig;
// Use nodeCapacityConfigs[0] for now.
mapping(uint256 => NodeCapacityConfig) nodeCapacityConfigs;
}

// Return ERC721 storage struct for reading and writing
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ contract PriceFeedFacet is ERC2771 {
view
returns (LibPriceFeedStorage.NodeCapacityConfig memory)
{
return s().nodeCapacityConfig;
return s().nodeCapacityConfigs[0];
}

// get all the nodes and data needed to make a request.
Expand Down Expand Up @@ -240,7 +240,7 @@ contract PriceFeedFacet is ERC2771 {
function setNodeCapacityConfig(
LibPriceFeedStorage.NodeCapacityConfig memory config
) external onlyOwner {
s().nodeCapacityConfig = config;
s().nodeCapacityConfigs[0] = config;
}

function getLitActionPriceConfigs()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ library LibStakingStorage {
struct PendingRejoin {
address addr;
uint256 timestamp;
// NOTE: DO NOT ADD ANYTHING TO THIS STRUCT SINCE IT IS NOT CONTAINED IN A MAPPING IN THE ROOT LEVEL STORAGE STRUCT
// AND MAY RESULT IN STORAGE POINTERS SHIFTING.
}

struct Epoch {
Expand Down
4 changes: 2 additions & 2 deletions rust/lit-core/lit-blockchain-lite/abis/PKPHelper.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions rust/lit-core/lit-blockchain-lite/src/contracts/pkp_helper.rs

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions rust/lit-core/lit-blockchain/abis/PKPHelper.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions rust/lit-core/lit-blockchain/src/contracts/pkp_helper.rs

Large diffs are not rendered by default.

Loading