/** * 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 Event} type as well as the de/serializer. * However don't refer to it in your code but use the {@link Event} type instead. * * @category userTypes * @category enums * @category generated * @private */ export type EventRecord = { SwitchComplete: { address: web3.PublicKey; state: Uint8Array; wallet: web3.PublicKey; }; InitArtist: { address: web3.PublicKey; state: Uint8Array; }; ModifyArtist: { address: web3.PublicKey; state: Uint8Array; }; InitSwitch: { address: web3.PublicKey; state: Uint8Array; }; ModifySwitch: { address: web3.PublicKey; state: Uint8Array; }; RemoveSwitch: { address: web3.PublicKey; }; InitBurner: { address: web3.PublicKey; state: Uint8Array; }; ModifyBurner: { address: web3.PublicKey; state: Uint8Array; }; RemoveArtist: { address: web3.PublicKey; }; RemoveBurner: { address: web3.PublicKey; }; }; /** * Union type respresenting the Event data enum defined in Rust. * * NOTE: that it includes a `__kind` property which allows to narrow types in * switch/if statements. * Additionally `isEvent*` type guards are exposed below to narrow to a specific variant. * * @category userTypes * @category enums * @category generated */ export type Event = beet.DataEnumKeyAsKind; export declare const isEventSwitchComplete: (x: Event) => x is { __kind: "SwitchComplete"; } & Omit<{ address: web3.PublicKey; state: Uint8Array; wallet: web3.PublicKey; }, "void"> & { __kind: 'SwitchComplete'; }; export declare const isEventInitArtist: (x: Event) => x is { __kind: "InitArtist"; } & Omit<{ address: web3.PublicKey; state: Uint8Array; }, "void"> & { __kind: 'InitArtist'; }; export declare const isEventModifyArtist: (x: Event) => x is { __kind: "ModifyArtist"; } & Omit<{ address: web3.PublicKey; state: Uint8Array; }, "void"> & { __kind: 'ModifyArtist'; }; export declare const isEventInitSwitch: (x: Event) => x is { __kind: "InitSwitch"; } & Omit<{ address: web3.PublicKey; state: Uint8Array; }, "void"> & { __kind: 'InitSwitch'; }; export declare const isEventModifySwitch: (x: Event) => x is { __kind: "ModifySwitch"; } & Omit<{ address: web3.PublicKey; state: Uint8Array; }, "void"> & { __kind: 'ModifySwitch'; }; export declare const isEventRemoveSwitch: (x: Event) => x is { __kind: "RemoveSwitch"; } & Omit<{ address: web3.PublicKey; }, "void"> & { __kind: 'RemoveSwitch'; }; export declare const isEventInitBurner: (x: Event) => x is { __kind: "InitBurner"; } & Omit<{ address: web3.PublicKey; state: Uint8Array; }, "void"> & { __kind: 'InitBurner'; }; export declare const isEventModifyBurner: (x: Event) => x is { __kind: "ModifyBurner"; } & Omit<{ address: web3.PublicKey; state: Uint8Array; }, "void"> & { __kind: 'ModifyBurner'; }; export declare const isEventRemoveArtist: (x: Event) => x is { __kind: "RemoveArtist"; } & Omit<{ address: web3.PublicKey; }, "void"> & { __kind: 'RemoveArtist'; }; export declare const isEventRemoveBurner: (x: Event) => x is { __kind: "RemoveBurner"; } & Omit<{ address: web3.PublicKey; }, "void"> & { __kind: 'RemoveBurner'; }; /** * @category userTypes * @category generated */ export declare const eventBeet: beet.FixableBeet; //# sourceMappingURL=Event.d.ts.map