Skip to content

Commit

Permalink
feat: add cubic_slashing_window_length (#1176)
Browse files Browse the repository at this point in the history
* feat: add cubic_slashing_window_length

* fix: rebase
  • Loading branch information
mateuszjasiuk authored Oct 17, 2024
1 parent 08c7e2d commit ce1cbec
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion apps/namadillo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"license": "MIT",
"private": true,
"dependencies": {
"@anomaorg/namada-indexer-client": "0.0.23",
"@anomaorg/namada-indexer-client": "0.0.27",
"@chain-registry/client": "^1.48.80",
"@cosmjs/encoding": "^0.32.3",
"@keplr-wallet/types": "^0.12.136",
Expand Down
3 changes: 1 addition & 2 deletions apps/namadillo/src/atoms/chain/functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ export const calculateUnbondingPeriod = (parameters: Parameters): string => {
const unbondingPeriodInEpochs =
Number(parameters.unbondingLength) +
Number(parameters.pipelineLength) +
// + 1 because we unbonding period starts from the next epoch
1;
Number(parameters.cubicSlashingWindowLength);
const minEpochDuration = Number(parameters.minDuration);
const maxBlockTime = Number(parameters.maxBlockTime);
const epochSwitchBlocksDelay = Number(parameters.epochSwitchBlocksDelay);
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ __metadata:
languageName: node
linkType: hard

"@anomaorg/namada-indexer-client@npm:0.0.23":
version: 0.0.23
resolution: "@anomaorg/namada-indexer-client@npm:0.0.23"
"@anomaorg/namada-indexer-client@npm:0.0.27":
version: 0.0.27
resolution: "@anomaorg/namada-indexer-client@npm:0.0.27"
dependencies:
axios: "npm:^1.6.1"
checksum: 1249a851ad5ad09daa88bc621fbc33fe520a3f5912ab02d472c4d7b52f26fb83cee2f7818c634a55abb137dfdf5226d0ecd057e24895573199da069a5111e1cd
checksum: cb491385c8da879d8be953039b2a9e58b520080e4e0035476ff828864a387ff9cbe6068de6e7ded63a9e39c3fe9fdb4ca6ed932ffcfb1028fe23342a7c8da952
languageName: node
linkType: hard

Expand Down Expand Up @@ -3665,7 +3665,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "@namada/namadillo@workspace:apps/namadillo"
dependencies:
"@anomaorg/namada-indexer-client": "npm:0.0.23"
"@anomaorg/namada-indexer-client": "npm:0.0.27"
"@chain-registry/client": "npm:^1.48.80"
"@cosmjs/encoding": "npm:^0.32.3"
"@eslint/js": "npm:^9.9.1"
Expand Down

1 comment on commit ce1cbec

@github-actions
Copy link

Choose a reason for hiding this comment

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

Please sign in to comment.