Skip to content
This repository has been archived by the owner on Feb 19, 2024. It is now read-only.

Commit

Permalink
Merge pull request #724 from radixdlt/feature/stokenet-shutdown
Browse files Browse the repository at this point in the history
Add stokenet shutdown fork
  • Loading branch information
LukasGasior1 authored Jun 30, 2023
2 parents 948a1da + d1466e3 commit 6ce0b91
Showing 1 changed file with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@

import static com.radixdlt.constraintmachine.REInstruction.REMicroOp.MSG;

import com.google.common.collect.ImmutableSet;
import com.google.inject.AbstractModule;
import com.google.inject.multibindings.ProvidesIntoSet;
import com.radixdlt.application.system.FeeTable;
Expand All @@ -78,6 +79,7 @@
import com.radixdlt.application.validators.state.ValidatorMetaData;
import com.radixdlt.application.validators.state.ValidatorOwnerCopy;
import com.radixdlt.application.validators.state.ValidatorRegisteredCopy;
import com.radixdlt.statecomputer.forks.CandidateForkConfig;
import com.radixdlt.statecomputer.forks.ForkBuilder;
import com.radixdlt.statecomputer.forks.RERulesConfig;
import com.radixdlt.statecomputer.forks.RERulesVersion;
Expand Down Expand Up @@ -155,4 +157,30 @@ ForkBuilder stokenetV2() {
100, // 100 max validators
MSG.maxLength()));
}

@ProvidesIntoSet
ForkBuilder shutdown() {
return new ForkBuilder(
"stokenet-shtdwn",
ImmutableSet.of(new CandidateForkConfig.Threshold((short) 7900, 3)),
16005L,
Long.MAX_VALUE,
RERulesVersion.OLYMPIA_V1,
new RERulesConfig(
RESERVED_SYMBOLS,
Pattern.compile("[a-z0-9]+"),
FeeTable.create(
Amount.ofMicroTokens(Long.MAX_VALUE), Map.of()), // Highest possible fee
0L, // No txns allowed
OptionalInt.of(0),
Long.MAX_VALUE, // No more epochs
1,
Amount.ofTokens(90), // Same as prev fork
Long.MAX_VALUE, // No more unstaking
Amount.ofMicroTokens(0), // No more rewards
0, // Unused
100,
MSG.maxLength()))
.withShutdown();
}
}

0 comments on commit 6ce0b91

Please sign in to comment.