/** * This code was GENERATED using the solita package. * Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality. * * See: https://github.com/metaplex-foundation/solita */ import * as web3 from '@solana/web3.js'; import * as beet from '@metaplex-foundation/beet'; /** * This type is used to derive the {@link Service} type as well as the de/serializer. * However don't refer to it in your code but use the {@link Service} type instead. * * @category userTypes * @category enums * @category generated * @private */ export type ServiceRecord = { AssemblerConfig: { assemblerId: web3.PublicKey; }; Staking: { poolId: web3.PublicKey; }; Missions: { poolId: web3.PublicKey; }; GuildKit: { kitId: web3.PublicKey; }; }; /** * Union type respresenting the Service data enum defined in Rust. * * NOTE: that it includes a `__kind` property which allows to narrow types in * switch/if statements. * Additionally `isService*` type guards are exposed below to narrow to a specific variant. * * @category userTypes * @category enums * @category generated */ export type Service = beet.DataEnumKeyAsKind; export declare const isServiceAssemblerConfig: (x: Service) => x is { __kind: "AssemblerConfig"; } & Omit<{ assemblerId: web3.PublicKey; }, "void"> & { __kind: 'AssemblerConfig'; }; export declare const isServiceStaking: (x: Service) => x is { __kind: "Staking"; } & Omit<{ poolId: web3.PublicKey; }, "void"> & { __kind: 'Staking'; }; export declare const isServiceMissions: (x: Service) => x is { __kind: "Missions"; } & Omit<{ poolId: web3.PublicKey; }, "void"> & { __kind: 'Missions'; }; export declare const isServiceGuildKit: (x: Service) => x is { __kind: "GuildKit"; } & Omit<{ kitId: web3.PublicKey; }, "void"> & { __kind: 'GuildKit'; }; export declare const serviceBeet: beet.FixableBeet;