/** * 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 = { NewCurrency: { address: web3.PublicKey; state: Uint8Array; }; UpdateCurrency: { address: web3.PublicKey; state: Uint8Array; }; NewHolderAccount: { address: web3.PublicKey; state: Uint8Array; }; UpdateHolderAccount: { address: web3.PublicKey; state: Uint8Array; }; }; /** * 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 isEventNewCurrency: (x: Event) => x is { __kind: "NewCurrency"; } & Omit<{ address: web3.PublicKey; state: Uint8Array; }, "void"> & { __kind: 'NewCurrency'; }; export declare const isEventUpdateCurrency: (x: Event) => x is { __kind: "UpdateCurrency"; } & Omit<{ address: web3.PublicKey; state: Uint8Array; }, "void"> & { __kind: 'UpdateCurrency'; }; export declare const isEventNewHolderAccount: (x: Event) => x is { __kind: "NewHolderAccount"; } & Omit<{ address: web3.PublicKey; state: Uint8Array; }, "void"> & { __kind: 'NewHolderAccount'; }; export declare const isEventUpdateHolderAccount: (x: Event) => x is { __kind: "UpdateHolderAccount"; } & Omit<{ address: web3.PublicKey; state: Uint8Array; }, "void"> & { __kind: 'UpdateHolderAccount'; }; /** * @category userTypes * @category generated */ export declare const eventBeet: beet.FixableBeet;