/** * 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, getStructDecoder, getStructEncoder, type Codec, type Decoder, type Encoder, } from '@solana/kit'; import { getCelestialBodyTypeBorshDecoder, getCelestialBodyTypeBorshEncoder, getNameDecoder, getNameEncoder, type CelestialBodyTypeBorsh, type CelestialBodyTypeBorshArgs, type Name, type NameArgs, } from '.'; export type RegisterCelestialBodyArgs = { /** `CelestialBody` name */ name: Name; /** `CelestialBody` type */ celestialBodyType: CelestialBodyTypeBorsh; }; export type RegisterCelestialBodyArgsArgs = { /** `CelestialBody` name */ name: NameArgs; /** `CelestialBody` type */ celestialBodyType: CelestialBodyTypeBorshArgs; }; export function getRegisterCelestialBodyArgsEncoder(): Encoder { return getStructEncoder([ ['name', getNameEncoder()], ['celestialBodyType', getCelestialBodyTypeBorshEncoder()], ]); } export function getRegisterCelestialBodyArgsDecoder(): Decoder { return getStructDecoder([ ['name', getNameDecoder()], ['celestialBodyType', getCelestialBodyTypeBorshDecoder()], ]); } export function getRegisterCelestialBodyArgsCodec(): Codec< RegisterCelestialBodyArgsArgs, RegisterCelestialBodyArgs > { return combineCodec( getRegisterCelestialBodyArgsEncoder(), getRegisterCelestialBodyArgsDecoder(), ); }