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

load stake table from toml file #2377

Merged
merged 6 commits into from
Dec 10, 2024
Merged

load stake table from toml file #2377

merged 6 commits into from
Dec 10, 2024

Conversation

imabdulbasit
Copy link
Contributor

No description provided.

@imabdulbasit imabdulbasit changed the title change lc proxy addr stake table Dec 9, 2024
@imabdulbasit
Copy link
Contributor Author

@sveitser feel free to merge this PR into yours

@imabdulbasit imabdulbasit changed the title stake table load stake table from toml file Dec 10, 2024
@imabdulbasit imabdulbasit marked this pull request as ready for review December 10, 2024 00:53
pub public_keys: Vec<PeerConfigKeys<BLSPubKey>>,
}

fn deserialize_peer_config_keys<'de, D>(
Copy link
Collaborator

@sveitser sveitser Dec 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@imabdulbasit I think I prefer to add the dummy stake amount to the toml file (which the current orchestrator config also requires anyway) instead of adding the custom deserialization code just for this. What do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SGTM! I'll remove it

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sveitser sveitser self-requested a review December 10, 2024 11:00
@sveitser sveitser merged commit 77ff146 into ma/simple-stake-table Dec 10, 2024
23 of 24 checks passed
@sveitser sveitser deleted the ab/st branch December 10, 2024 11:02
sveitser added a commit that referenced this pull request Dec 10, 2024
* Initial draft for minimal L1 stake table

* Add Schnorr verifying key

* fix solhint error: named mapping keys and values

* WIP: contract stake table types to rust types

Missing conversion from G2 Affine to BLSPubKey.

* rename: SimpleStakeTable -> PermissionedStakeTable

* PermissionedStakeTable contract: add DA flag

- Update bindings.
- Add tests for event emission.

* Allow setting an initial stake table on deployment

- The stake table isn't useful without stakers I think it makes sense to
  require it to be provided on deployment.

* deploy: load initial stake table from toml file

* Use serde instead of unsafe rust

We will add some more ergonomic code for conversion to jellyfish at some
point. This code can be used as a stop gap until then.

* Update utils/src/deployer.rs

Co-authored-by: Alysia Tech <[email protected]>

* WIP: load initial stake table from file

* Move solidity <-> jf code to contract adapter

* Load initial stake table from file

* remove unused imports

* remove unused module

* dev-node: fix arguments to deploy function

* fix clippy

* fix Cargo.toml for bindings generation

breaks if we use: `serde.workspace = true`

* combine adding and removing into single event

* update comment to match implementation (#2282)

* align comment with implementation

* added more clarity

* comment format

* clearer comment

* update comment to make it clear that there may be outdated elements in the state history

* update query-service

* db max connections = 25 for dev node tests

* update query-service

* Fix no-storage decides

* Branches -> tags

* 2368 stake table registration with fixed stake (#2365)

* add stake table tests

* remove stake types

* verify token allowance, balance and reprioritize verification order on registration

* set the fixed stake amount, added related tests, updated data types

* add more verification checks to the withdraw function

* updated errror types

* added TODO statements in comments to be explicit about outdated functions that need to be updated to the new spec

* fix env var for permissioned_stake_table

* Add test for jf / contract types conversions

* cleanup: pass rng

* load stake table from toml file (#2377)

* change lc proxy addr

* fix deploy-sequencer-contracts in docker compose

* test for stake table from toml file

* initial stake table toml file

* exclude toml file in typos

* remove custom deser

* remove unnecessary rand dependency

---------

Co-authored-by: Alysia Tech <[email protected]>
Co-authored-by: tbro <[email protected]>
Co-authored-by: imabdulbasit <[email protected]>
Co-authored-by: Artemii Gerasimovich <[email protected]>
Co-authored-by: Abdul Basit <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants