/** * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ import { combineCodec, getEnumDecoder, getEnumEncoder, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, } from '@solana/kit'; /** * Whether a region's authored risk tier is currently secured by faction control. * * `Safe` is the dynamic signal used to promote a non-home region to an effective * low-risk zone. `Border` leaves the region at its authored risk tier. */ export enum SafetyStatus { Safe, Border, } export type SafetyStatusArgs = SafetyStatus; export function getSafetyStatusEncoder(): FixedSizeEncoder { return getEnumEncoder(SafetyStatus); } export function getSafetyStatusDecoder(): FixedSizeDecoder { return getEnumDecoder(SafetyStatus); } export function getSafetyStatusCodec(): FixedSizeCodec< SafetyStatusArgs, SafetyStatus > { return combineCodec(getSafetyStatusEncoder(), getSafetyStatusDecoder()); }