import { PublicKey } from "@solana/web3.js"; import BN from "bn.js"; export const PROGRAM_ID = new PublicKey( "9aU1jUaLwNm2nNcHBJYK5xmRtnKRmzCwgkEAtLS7PErA" ); export const PROGRAM_ID_V2 = new PublicKey( "CpX1do1a4fB36B5sETTUW1kMLYTBnuSUPNosQM8LVQRQ" ); export const SOLCAT_STAKING_PROGRAM_ID = PROGRAM_ID; export const STAKING_PROGRAM_ID_V2 = PROGRAM_ID_V2; export const SOLCAT_DECIMALS = 6; export const SCALE_FACTOR = new BN(10).pow(new BN(18)); export const DISCRIMINATOR_SIZE = 8; export const PUBKEY_SIZE = 32; export const U8_SIZE = 1; export const U16_SIZE = 2; export const U32_SIZE = 4; export const U64_SIZE = 8; export const I64_SIZE = 8; export const SOLCAT_LOCKUP_VAULT_LEN = 8 + 1 + 2 * 2 + 8 + 8 * 3; // 45 export const SOLCAT_WITHDRAW_POSITION_LEN = 8 + 1 + 4 + 32 + 8 * 2 + 1; // 62 export const SOLCAT_LOCKUP_STAKING_ACCOUNT_LEN = 8 + 1 + 32 + 4 + 32 + 2 + 8 * 2 + 1; // 96 export const SOLCAT_FLEXIBLE_STAKING_ACCOUNT_LEN = 8 + 1 + 32 + 8 * 2 + 16; // 73 export const LOCKUP_VAULT_LEN = 8 + 1 + 32 + 2 * 2 + 8 * 4; // 77 export const WITHDRAW_POSITION_LEN = 8 + 1 + 32 + 4 + 32 + 8 * 2 + 1; // 94 export const LOCKUP_STAKING_ACCOUNT_LEN = 8 + 1 + 32 + 4 + 32 * 2 + 2 + 8 * 2 + 1; // 128 export const FLEXIBLE_VAULT_LEN = 8 + 1 + 32 + 8 * 5 + 16; // 97 export const FLEXIBLE_STAKING_ACCOUNT_LEN = 8 + 1 + 32 * 2 + 8 * 2 + 16; // 105