gill
Version:
a modern javascript/typescript client library for interacting with the Solana blockchain
29 lines • 1.4 kB
TypeScript
/**
* 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 { type Codec, type Decoder, type Encoder, type GetDiscriminatedUnionVariant, type GetDiscriminatedUnionVariantContent, type Option, type OptionOrNullable } from '@solana/kit';
import { type AssetData, type AssetDataArgs, type PrintSupply, type PrintSupplyArgs } from '.';
export type CreateArgs = {
__kind: 'V1';
assetData: AssetData;
decimals: Option<number>;
printSupply: Option<PrintSupply>;
};
export type CreateArgsArgs = {
__kind: 'V1';
assetData: AssetDataArgs;
decimals: OptionOrNullable<number>;
printSupply: OptionOrNullable<PrintSupplyArgs>;
};
export declare function getCreateArgsEncoder(): Encoder<CreateArgsArgs>;
export declare function getCreateArgsDecoder(): Decoder<CreateArgs>;
export declare function getCreateArgsCodec(): Codec<CreateArgsArgs, CreateArgs>;
export declare function createArgs(kind: 'V1', data: GetDiscriminatedUnionVariantContent<CreateArgsArgs, '__kind', 'V1'>): GetDiscriminatedUnionVariant<CreateArgsArgs, '__kind', 'V1'>;
export declare function isCreateArgs<K extends CreateArgs['__kind']>(kind: K, value: CreateArgs): value is CreateArgs & {
__kind: K;
};
//# sourceMappingURL=createArgs.d.ts.map