From f418a5257d9cbfd3af01436777f59156c0385b0d Mon Sep 17 00:00:00 2001 From: jpe7s Date: Wed, 27 Nov 2024 20:02:58 -0600 Subject: [PATCH] sync constants visibility fix. --- .../programs/glam/anchor/GlamConstants.java | 2 +- .../governance/anchor/GovernConstants.java | 8 ++-- .../meteora/dlmm/anchor/LbClmmConstants.java | 40 +++++++++---------- 3 files changed, 25 insertions(+), 25 deletions(-) diff --git a/programs/src/main/java/software/sava/anchor/programs/glam/anchor/GlamConstants.java b/programs/src/main/java/software/sava/anchor/programs/glam/anchor/GlamConstants.java index 1738507..3fd16e7 100644 --- a/programs/src/main/java/software/sava/anchor/programs/glam/anchor/GlamConstants.java +++ b/programs/src/main/java/software/sava/anchor/programs/glam/anchor/GlamConstants.java @@ -2,7 +2,7 @@ public final class GlamConstants { - private static final String SEED = """ + public static final String SEED = """ anchor"""; private GlamConstants() { diff --git a/programs/src/main/java/software/sava/anchor/programs/jupiter/governance/anchor/GovernConstants.java b/programs/src/main/java/software/sava/anchor/programs/jupiter/governance/anchor/GovernConstants.java index 6c3ecb5..0d70a9c 100644 --- a/programs/src/main/java/software/sava/anchor/programs/jupiter/governance/anchor/GovernConstants.java +++ b/programs/src/main/java/software/sava/anchor/programs/jupiter/governance/anchor/GovernConstants.java @@ -2,13 +2,13 @@ public final class GovernConstants { - private static final int MAX_OPTION = 10; + public static final int MAX_OPTION = 10; - private static final long ABSTAIN_VOTE_INDEX = 0; + public static final long ABSTAIN_VOTE_INDEX = 0; - private static final long AGAINST_VOTE_INDEX = 1; + public static final long AGAINST_VOTE_INDEX = 1; - private static final long FOR_VOTE_INDEX = 2; + public static final long FOR_VOTE_INDEX = 2; private GovernConstants() { } diff --git a/programs/src/main/java/software/sava/anchor/programs/meteora/dlmm/anchor/LbClmmConstants.java b/programs/src/main/java/software/sava/anchor/programs/meteora/dlmm/anchor/LbClmmConstants.java index 4312f65..86fd608 100644 --- a/programs/src/main/java/software/sava/anchor/programs/meteora/dlmm/anchor/LbClmmConstants.java +++ b/programs/src/main/java/software/sava/anchor/programs/meteora/dlmm/anchor/LbClmmConstants.java @@ -2,45 +2,45 @@ public final class LbClmmConstants { - private static final int BASIS_POINT_MAX = 10000; + public static final int BASIS_POINT_MAX = 10000; - private static final long MAX_BIN_PER_ARRAY = 70; + public static final long MAX_BIN_PER_ARRAY = 70; - private static final long MAX_BIN_PER_POSITION = 70; + public static final long MAX_BIN_PER_POSITION = 70; - private static final int MIN_BIN_ID = -443636; + public static final int MIN_BIN_ID = -443636; - private static final int MAX_BIN_ID = 443636; + public static final int MAX_BIN_ID = 443636; - private static final long MAX_FEE_RATE = 100000000; + public static final long MAX_FEE_RATE = 100000000; - private static final long FEE_PRECISION = 1000000000; + public static final long FEE_PRECISION = 1000000000; - private static final int MAX_PROTOCOL_SHARE = 2500; + public static final int MAX_PROTOCOL_SHARE = 2500; - private static final int HOST_FEE_BPS = 2000; + public static final int HOST_FEE_BPS = 2000; - private static final long NUM_REWARDS = 2; + public static final long NUM_REWARDS = 2; - private static final long MIN_REWARD_DURATION = 1; + public static final long MIN_REWARD_DURATION = 1; - private static final long MAX_REWARD_DURATION = 31536000; + public static final long MAX_REWARD_DURATION = 31536000; - private static final long EXTENSION_BINARRAY_BITMAP_SIZE = 12; + public static final long EXTENSION_BINARRAY_BITMAP_SIZE = 12; - private static final int BIN_ARRAY_BITMAP_SIZE = 512; + public static final int BIN_ARRAY_BITMAP_SIZE = 512; - private static final long MAX_REWARD_BIN_SPLIT = 15; + public static final long MAX_REWARD_BIN_SPLIT = 15; - private static final byte[] BIN_ARRAY = new byte[]{98, 105, 110, 95, 97, 114, 114, 97, 121}; + public static final byte[] BIN_ARRAY = new byte[]{98, 105, 110, 95, 97, 114, 114, 97, 121}; - private static final byte[] ORACLE = new byte[]{111, 114, 97, 99, 108, 101}; + public static final byte[] ORACLE = new byte[]{111, 114, 97, 99, 108, 101}; - private static final byte[] BIN_ARRAY_BITMAP_SEED = new byte[]{98, 105, 116, 109, 97, 112}; + public static final byte[] BIN_ARRAY_BITMAP_SEED = new byte[]{98, 105, 116, 109, 97, 112}; - private static final byte[] PRESET_PARAMETER = new byte[]{112, 114, 101, 115, 101, 116, 95, 112, 97, 114, 97, 109, 101, 116, 101, 114}; + public static final byte[] PRESET_PARAMETER = new byte[]{112, 114, 101, 115, 101, 116, 95, 112, 97, 114, 97, 109, 101, 116, 101, 114}; - private static final byte[] POSITION = new byte[]{112, 111, 115, 105, 116, 105, 111, 110}; + public static final byte[] POSITION = new byte[]{112, 111, 115, 105, 116, 105, 111, 110}; private LbClmmConstants() { }