INNER CODE UNIT · TypeScript
DEPLOY_LOADED_DATA
blueshift-gg/doppler · packages/core/index.ts:29
const DEPLOY_LOADED_DATA = 21 + 37 + 17 + 40;
/** SIMD-0186. */
const ACCOUNT_OVERHEAD = 64;
const COMPUTE_BUDGET_PROGRAM_LEN = 'compute_budget_program'.length;
/** `FeeStructure::default()`. */
const LAMPORTS_PER_SIGNATURE = 5_000n;
/** The header is a u64. */
const MAX_SEQUENCE = (1n << 64n) - 1n;
/** `Rent::default().minimum_balance`: `(ACCOUNT_STORAGE_OVERHEAD + bytes) * DEFAULT_LAMPORTS_PER_BYTE` (solana-rent). */
export function rentExempt(bytes: number): bigint {
return BigInt(128 + bytes) * 6960n;
}
const TYPES = {
u8: { size: 1, signed: false },
u16: { size: 2, signed: false },
u32: { size: 4, signed: false },