Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions clients/js/src/generated/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export * from './key';
export * from './oracleValidation';
export * from './permanentBurnDelegate';
export * from './permanentFreezeDelegate';
export * from './permanentFreezeExecute';
export * from './permanentTransferDelegate';
export * from './plugin';
export * from './pluginAuthorityPair';
Expand Down
22 changes: 22 additions & 0 deletions clients/js/src/generated/types/permanentFreezeExecute.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/**
* This code was AUTOGENERATED using the kinobi library.
* Please DO NOT EDIT THIS FILE, instead use visitors
* to add features, then rerun kinobi to update it.
*
* @see https://github.com/metaplex-foundation/kinobi
*/

import { Serializer, bool, struct } from '@metaplex-foundation/umi/serializers';

export type PermanentFreezeExecute = { frozen: boolean };

export type PermanentFreezeExecuteArgs = PermanentFreezeExecute;

export function getPermanentFreezeExecuteSerializer(): Serializer<
PermanentFreezeExecuteArgs,
PermanentFreezeExecute
> {
return struct<PermanentFreezeExecute>([['frozen', bool()]], {
description: 'PermanentFreezeExecute',
}) as Serializer<PermanentFreezeExecuteArgs, PermanentFreezeExecute>;
}
19 changes: 17 additions & 2 deletions clients/js/src/generated/types/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ import {
PermanentBurnDelegateArgs,
PermanentFreezeDelegate,
PermanentFreezeDelegateArgs,
PermanentFreezeExecute,
PermanentFreezeExecuteArgs,
PermanentTransferDelegate,
PermanentTransferDelegateArgs,
TransferDelegate,
Expand All @@ -62,6 +64,7 @@ import {
getImmutableMetadataSerializer,
getPermanentBurnDelegateSerializer,
getPermanentFreezeDelegateSerializer,
getPermanentFreezeExecuteSerializer,
getPermanentTransferDelegateSerializer,
getTransferDelegateSerializer,
getUpdateDelegateSerializer,
Expand All @@ -85,7 +88,8 @@ export type Plugin =
| { __kind: 'VerifiedCreators'; fields: [VerifiedCreators] }
| { __kind: 'Autograph'; fields: [Autograph] }
| { __kind: 'BubblegumV2'; fields: [BubblegumV2] }
| { __kind: 'FreezeExecute'; fields: [FreezeExecute] };
| { __kind: 'FreezeExecute'; fields: [FreezeExecute] }
| { __kind: 'PermanentFreezeExecute'; fields: [PermanentFreezeExecute] };

export type PluginArgs =
| { __kind: 'Royalties'; fields: [BaseRoyaltiesArgs] }
Expand All @@ -107,7 +111,8 @@ export type PluginArgs =
| { __kind: 'VerifiedCreators'; fields: [VerifiedCreatorsArgs] }
| { __kind: 'Autograph'; fields: [AutographArgs] }
| { __kind: 'BubblegumV2'; fields: [BubblegumV2Args] }
| { __kind: 'FreezeExecute'; fields: [FreezeExecuteArgs] };
| { __kind: 'FreezeExecute'; fields: [FreezeExecuteArgs] }
| { __kind: 'PermanentFreezeExecute'; fields: [PermanentFreezeExecuteArgs] };

export function getPluginSerializer(): Serializer<PluginArgs, Plugin> {
return dataEnum<Plugin>(
Expand Down Expand Up @@ -214,6 +219,12 @@ export function getPluginSerializer(): Serializer<PluginArgs, Plugin> {
['fields', tuple([getFreezeExecuteSerializer()])],
]),
],
[
'PermanentFreezeExecute',
struct<GetDataEnumKindContent<Plugin, 'PermanentFreezeExecute'>>([
['fields', tuple([getPermanentFreezeExecuteSerializer()])],
]),
],
],
{ description: 'Plugin' }
) as Serializer<PluginArgs, Plugin>;
Expand Down Expand Up @@ -291,6 +302,10 @@ export function plugin(
kind: 'FreezeExecute',
data: GetDataEnumKindContent<PluginArgs, 'FreezeExecute'>['fields']
): GetDataEnumKind<PluginArgs, 'FreezeExecute'>;
export function plugin(
kind: 'PermanentFreezeExecute',
data: GetDataEnumKindContent<PluginArgs, 'PermanentFreezeExecute'>['fields']
): GetDataEnumKind<PluginArgs, 'PermanentFreezeExecute'>;
export function plugin<K extends PluginArgs['__kind']>(
kind: K,
data?: any
Expand Down
1 change: 1 addition & 0 deletions clients/js/src/generated/types/pluginType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export enum PluginType {
Autograph,
BubblegumV2,
FreezeExecute,
PermanentFreezeExecute,
}

export type PluginTypeArgs = PluginType;
Expand Down
13 changes: 12 additions & 1 deletion clients/js/src/plugins/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ import {
PermanentBurnDelegate,
PermanentFreezeDelegate,
PermanentFreezeDelegateArgs,
PermanentFreezeExecute,
PermanentFreezeExecuteArgs,
PermanentTransferDelegate,
basePluginAuthority as pluginAuthority,
baseRuleSet as ruleSet,
Expand Down Expand Up @@ -98,6 +100,10 @@ export type CreatePluginArgs =
| {
type: 'FreezeExecute';
data: FreezeExecuteArgs;
}
| {
type: 'PermanentFreezeExecute';
data: PermanentFreezeExecuteArgs;
};

export type AuthorityArgsV2 = {
Expand All @@ -119,7 +125,10 @@ export type CreateOnlyPluginArgsV2 =
} & EditionArgs)
| {
type: 'BubblegumV2';
};
}
| ({
type: 'PermanentFreezeExecute';
} & PermanentFreezeExecuteArgs);

export type OwnerManagedPluginArgsV2 =
| ({
Expand Down Expand Up @@ -199,6 +208,7 @@ export type VerifiedCreatorsPlugin = BasePlugin & VerifiedCreators;
export type AutographPlugin = BasePlugin & Autograph;
export type BubblegumV2Plugin = BasePlugin & BubblegumV2;
export type FreezeExecutePlugin = BasePlugin & FreezeExecute;
export type PermanentFreezeExecutePlugin = BasePlugin & PermanentFreezeExecute;

export type CommonPluginsList = {
attributes?: AttributesPlugin;
Expand All @@ -212,6 +222,7 @@ export type CommonPluginsList = {
autograph?: AutographPlugin;
verifiedCreators?: VerifiedCreatorsPlugin;
freezeExecute?: FreezeExecutePlugin;
permanentFreezeExecute?: PermanentFreezeExecutePlugin;
};

export type AssetPluginsList = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import {
execute,
fetchAssetV1,
findAssetSignerPda,
} from '../src';
import { assertAsset, assertBurned, createUmi } from './_setupRaw';
} from '../../../src';
import { assertAsset, assertBurned, createUmi } from '../../_setupRaw';

test('it covers the freeze execute backed NFT flow', async (t) => {
// ----------------------------------
Expand Down
Loading
Loading