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

feat: balances and commitment mapper improvements #286

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
cd0818d
build(yarn): Upgrade TypeScript to 5.2.2
PetarKirov Feb 19, 2024
523b208
fix(ts-jest) Upgrade packages and fix issue jest.config
PetarKirov Feb 8, 2024
69d9369
Optimize balance_verification_circuit_data_generation, change maximum…
monyarm Nov 3, 2023
ea1015e
Changes to be in line with review
monyarm Nov 6, 2023
0824dce
build(flake.nix): Add `craneLib-nightly`
MartinNikov Jul 21, 2023
47c2f69
feat(nix/pkgs): Add `commitment_mapper_builder`
MartinNikov Jul 21, 2023
dea1902
build(flake.nix): Define custom version of `rust-nightly`
MartinNikov Jul 28, 2023
a92d1e9
build(beacon-light-client/plonky2): Update cargo lockfiles
MartinNikov Jul 28, 2023
6541aa6
config(commitment_mapper_builder): Change name to `circuits_executables`
MartinNikov Aug 2, 2023
564e8ba
build(yarn): Upgrade to v4.1.0
MartinNikov Sep 14, 2023
3bc9c3f
build(yarn|vscode): Enable yarn vscode sdk
PetarKirov Feb 8, 2024
f754af1
feat(yarn): Add `yarn-plugin-nixify` plugin
MartinNikov Sep 14, 2023
8595d67
feat(plonky2): Add `balance-verifier` packages
MartinNikov Sep 14, 2023
e0fb167
feat(plonky2): Add `get_balances_inputs` package
MartinNikov Aug 21, 2023
2d662ce
feat(balance-verifier): Add `final-layer` package
MartinNikov Sep 20, 2023
f9f75ba
WIP
monyarm Nov 3, 2023
5714812
partially working docker-compose
monyarm Nov 20, 2023
f443bba
balance_verification all levels
monyarm Nov 24, 2023
d2d0d4e
Start of terraform config
monyarm Dec 8, 2023
6438bf9
Mock mode
monyarm Dec 14, 2023
d137489
Remove unused imports and logs
Dimo99 Dec 15, 2023
e3b72b7
fix mock for changed validators
Dimo99 Dec 15, 2023
d74aac2
improved serialization and fixed some mock bugs in commitment mapper
Dimo99 Dec 15, 2023
af8c7c1
validators mock problem with loading validators
Dimo99 Dec 15, 2023
139899c
move beaconState.bin
Dimo99 Dec 15, 2023
3f5b6da
fix bug with changed validators
Dimo99 Dec 15, 2023
03f7a24
Fix some issues
monyarm Dec 18, 2023
352b559
Mock changes
Dimo99 Dec 18, 2023
8062d25
Reduce get_balances_input output when mock
monyarm Dec 18, 2023
2ba0a88
reduced output when mock
monyarm Dec 20, 2023
8257800
feat(validator-balances): Create disaggregated storage for the proofs…
Dimo99 Dec 21, 2023
9b19202
build(yarn): Install `colors`
PetarKirov Jan 10, 2024
7594147
fix(get_changed_validators): Validate mock beacon state binary size
PetarKirov Jan 10, 2024
587a282
build(nix): Add `rust-src` and `rust-analyzer` components to the rust…
PetarKirov Jan 10, 2024
63a5437
build(beacon-light-client/solidity/yarn): Add dotenv
PetarKirov Feb 19, 2024
e6f6d21
config(prettier): Add more ignored files and dirs
PetarKirov Feb 19, 2024
c154e72
config(yarn/format:check): Exclude `yarn-project.nix` file
PetarKirov Feb 19, 2024
eaa9cd7
style: Run `yarn format:write`
PetarKirov Feb 19, 2024
b1453fb
ci(gh-actions): rm `magic-nix-cache-action` and update `nix-installer…
PetarKirov Feb 19, 2024
707a1e4
fix(beacon-light-client/circom/test): Don't assume that `ts-node` in …
PetarKirov Feb 19, 2024
e0c1923
build(beacon-light-client/solidity): Add missing `@lodestar/types` dep
PetarKirov Feb 19, 2024
33e3354
build(yarn): Upgrade `@chainsafe/ssz` and `@lodestar/types`
PetarKirov Feb 28, 2024
4d05d7f
build(yarn): Add `build:{tsc,sol}` scripts to workspaces
PetarKirov Feb 28, 2024
992176d
refactor(beacon-light-client): Delete unfinished typescript prototype
PetarKirov Feb 28, 2024
e966731
build(typescript): Streamline the configuration
PetarKirov Feb 28, 2024
3cda052
build(yarn): Add missing dependencies
PetarKirov Feb 29, 2024
f6d0402
fix(typescript): Fix all build errors when running `yarn tsc`
PetarKirov Feb 29, 2024
ab0460e
feat(commitment_mapper/balance_verification): various enhancements
Xearty Feb 20, 2024
c1a7167
fix(commitment_mapper): take the correct bit from the slashed ssz leaf
Xearty Feb 23, 2024
92286b1
refactor(redis): call quit instead of disconnect
Xearty Feb 26, 2024
01585d6
feat(proof_storage): implement proof storage in typescript fix data c…
Xearty Feb 26, 2024
5c5273f
feat(proof_storage): implement aws proof storage in typescript
Xearty Feb 27, 2024
ba2828d
refactor(proof_storage): load env from the correct place
Xearty Feb 29, 2024
de187f9
fix(proof_storage): force path style
Xearty Feb 29, 2024
1f90ecd
feat: implement command-line options builder for common options
Xearty Feb 29, 2024
6be80c1
refactor: command-line options in typescript scripts
Xearty Feb 29, 2024
fbd1336
wip
Xearty Feb 29, 2024
5943c6c
feat(proof_storage): implement get_keys_count for aws s3
Xearty Mar 1, 2024
ea0c8cc
feat(proof_storage): azure auth and get_keys_count implementation
Xearty Mar 1, 2024
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
6 changes: 6 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/.yarn/** linguist-vendored
/.yarn/releases/* binary
/.yarn/plugins/**/* binary
/.pnp.* binary linguist-generated

beacon-light-client/plonky2/mock_data/beaconState.bin filter=lfs diff=lfs merge=lfs -text
6 changes: 2 additions & 4 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@ runs:
using: 'composite'
steps:
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v4
- name: Run the Magic Nix Cache
uses: DeterminateSystems/magic-nix-cache-action@v1
- uses: cachix/cachix-action@v12
uses: DeterminateSystems/nix-installer-action@v9
- uses: cachix/cachix-action@v14
with:
name: mcl-blockchain-packages
authToken: '${{ inputs.cachix_auth_token }}'
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,9 @@ dist
.tern-port

# VSCode
.vscode
.vscode/*
!.vscode/extensions.json
!.vscode/settings.json

## Stores VSCode versions used for testing VSCode extensions
.vscode-test
Expand Down
6 changes: 6 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
.direnv
node_modules
.yarn
.pnp.cjs
.pnp.loader.mjs
vendor
*.json
*.yml

# Rust files
casper-finality-proofs/target/
6 changes: 6 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"recommendations": [
"arcanis.vscode-zipfs",
"esbenp.prettier-vscode"
]
}
9 changes: 9 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"search.exclude": {
"**/.yarn": true,
"**/.pnp.*": true
},
"prettier.prettierPath": ".yarn/sdks/prettier/index.js",
"typescript.tsdk": ".yarn/sdks/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true
}
1 change: 1 addition & 0 deletions .yarn/plugins/yarn-plugin-nixify.cjs

Large diffs are not rendered by default.

893 changes: 893 additions & 0 deletions .yarn/releases/yarn-4.1.0.cjs

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions .yarn/sdks/integrations.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# This file is automatically generated by @yarnpkg/sdks.
# Manual changes might be lost!

integrations:
- vscode
20 changes: 20 additions & 0 deletions .yarn/sdks/prettier/bin-prettier.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env node

const {existsSync} = require(`fs`);
const {createRequire} = require(`module`);
const {resolve} = require(`path`);

const relPnpApiPath = "../../../.pnp.cjs";

const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absRequire = createRequire(absPnpApiPath);

if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
// Setup the environment to be able to require prettier/bin-prettier.js
require(absPnpApiPath).setup();
}
}

// Defer to the real prettier/bin-prettier.js your application uses
module.exports = absRequire(`prettier/bin-prettier.js`);
20 changes: 20 additions & 0 deletions .yarn/sdks/prettier/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env node

const {existsSync} = require(`fs`);
const {createRequire} = require(`module`);
const {resolve} = require(`path`);

const relPnpApiPath = "../../../.pnp.cjs";

const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absRequire = createRequire(absPnpApiPath);

if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
// Setup the environment to be able to require prettier
require(absPnpApiPath).setup();
}
}

// Defer to the real prettier your application uses
module.exports = absRequire(`prettier`);
7 changes: 7 additions & 0 deletions .yarn/sdks/prettier/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "prettier",
"version": "2.8.4-sdk",
"main": "./index.js",
"type": "commonjs",
"bin": "./bin-prettier.js"
}
20 changes: 20 additions & 0 deletions .yarn/sdks/typescript/bin/tsc
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env node

const {existsSync} = require(`fs`);
const {createRequire} = require(`module`);
const {resolve} = require(`path`);

const relPnpApiPath = "../../../../.pnp.cjs";

const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absRequire = createRequire(absPnpApiPath);

if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
// Setup the environment to be able to require typescript/bin/tsc
require(absPnpApiPath).setup();
}
}

// Defer to the real typescript/bin/tsc your application uses
module.exports = absRequire(`typescript/bin/tsc`);
20 changes: 20 additions & 0 deletions .yarn/sdks/typescript/bin/tsserver
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env node

const {existsSync} = require(`fs`);
const {createRequire} = require(`module`);
const {resolve} = require(`path`);

const relPnpApiPath = "../../../../.pnp.cjs";

const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absRequire = createRequire(absPnpApiPath);

if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
// Setup the environment to be able to require typescript/bin/tsserver
require(absPnpApiPath).setup();
}
}

// Defer to the real typescript/bin/tsserver your application uses
module.exports = absRequire(`typescript/bin/tsserver`);
20 changes: 20 additions & 0 deletions .yarn/sdks/typescript/lib/tsc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env node

const {existsSync} = require(`fs`);
const {createRequire} = require(`module`);
const {resolve} = require(`path`);

const relPnpApiPath = "../../../../.pnp.cjs";

const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absRequire = createRequire(absPnpApiPath);

if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
// Setup the environment to be able to require typescript/lib/tsc.js
require(absPnpApiPath).setup();
}
}

// Defer to the real typescript/lib/tsc.js your application uses
module.exports = absRequire(`typescript/lib/tsc.js`);
Loading