From 670c159e8dfb80492070544bfef05bc4c6e2b6a0 Mon Sep 17 00:00:00 2001 From: Nhan Phan Date: Mon, 11 Mar 2024 11:57:31 -0700 Subject: [PATCH] wip: update core pid --- .../js/src/generated/instructions/initializeCandyMachineV2.ts | 2 +- .../js/src/generated/instructions/mintAssetFromCandyMachine.ts | 2 +- clients/js/src/generated/instructions/mintV2.ts | 2 +- clients/js/src/generated/instructions/setCollectionV2.ts | 2 +- clients/js/test/_setup.ts | 3 +-- configs/kinobi.cjs | 2 +- configs/validator.cjs | 2 +- 7 files changed, 7 insertions(+), 8 deletions(-) diff --git a/clients/js/src/generated/instructions/initializeCandyMachineV2.ts b/clients/js/src/generated/instructions/initializeCandyMachineV2.ts index db854d2..d423210 100644 --- a/clients/js/src/generated/instructions/initializeCandyMachineV2.ts +++ b/clients/js/src/generated/instructions/initializeCandyMachineV2.ts @@ -252,7 +252,7 @@ export function initializeCandyMachineV2( if (!resolvedAccounts.mplCoreProgram.value) { resolvedAccounts.mplCoreProgram.value = context.programs.getPublicKey( 'mplCore', - 'CoREzp6dAdLVRKf3EM5tWrsXM2jQwRFeu5uhzsAyjYXL' + 'CoREENxT6tW1HoK8ypY1SxRMZTcVPm7R94rH4PZNhX7d' ); resolvedAccounts.mplCoreProgram.isWritable = false; } diff --git a/clients/js/src/generated/instructions/mintAssetFromCandyMachine.ts b/clients/js/src/generated/instructions/mintAssetFromCandyMachine.ts index 6dbc52c..9b7e9e8 100644 --- a/clients/js/src/generated/instructions/mintAssetFromCandyMachine.ts +++ b/clients/js/src/generated/instructions/mintAssetFromCandyMachine.ts @@ -186,7 +186,7 @@ export function mintAssetFromCandyMachine( if (!resolvedAccounts.mplCoreProgram.value) { resolvedAccounts.mplCoreProgram.value = context.programs.getPublicKey( 'mplCore', - 'CoREzp6dAdLVRKf3EM5tWrsXM2jQwRFeu5uhzsAyjYXL' + 'CoREENxT6tW1HoK8ypY1SxRMZTcVPm7R94rH4PZNhX7d' ); resolvedAccounts.mplCoreProgram.isWritable = false; } diff --git a/clients/js/src/generated/instructions/mintV2.ts b/clients/js/src/generated/instructions/mintV2.ts index c5093b5..cc0cb7a 100644 --- a/clients/js/src/generated/instructions/mintV2.ts +++ b/clients/js/src/generated/instructions/mintV2.ts @@ -229,7 +229,7 @@ export function mintV2( if (!resolvedAccounts.mplCoreProgram.value) { resolvedAccounts.mplCoreProgram.value = context.programs.getPublicKey( 'mplCore', - 'CoREzp6dAdLVRKf3EM5tWrsXM2jQwRFeu5uhzsAyjYXL' + 'CoREENxT6tW1HoK8ypY1SxRMZTcVPm7R94rH4PZNhX7d' ); resolvedAccounts.mplCoreProgram.isWritable = false; } diff --git a/clients/js/src/generated/instructions/setCollectionV2.ts b/clients/js/src/generated/instructions/setCollectionV2.ts index cead9e9..ef267b6 100644 --- a/clients/js/src/generated/instructions/setCollectionV2.ts +++ b/clients/js/src/generated/instructions/setCollectionV2.ts @@ -179,7 +179,7 @@ export function setCollectionV2( if (!resolvedAccounts.mplCoreProgram.value) { resolvedAccounts.mplCoreProgram.value = context.programs.getPublicKey( 'mplCore', - 'CoREzp6dAdLVRKf3EM5tWrsXM2jQwRFeu5uhzsAyjYXL' + 'CoREENxT6tW1HoK8ypY1SxRMZTcVPm7R94rH4PZNhX7d' ); resolvedAccounts.mplCoreProgram.isWritable = false; } diff --git a/clients/js/test/_setup.ts b/clients/js/test/_setup.ts index b254593..d53ab9f 100644 --- a/clients/js/test/_setup.ts +++ b/clients/js/test/_setup.ts @@ -373,5 +373,4 @@ export const yesterday = (): DateTime => now() - 3600n * 24n; export const tomorrow = (): DateTime => now() + 3600n * 24n; // TODO move to mpl-core -export const isFrozen = (asset: AssetWithPlugins): boolean => - (asset.plugins?.find((p) => p.plugin.__kind === 'Freeze')?.plugin as any).fields[0].frozen || false; +export const isFrozen = (asset: AssetWithPlugins): boolean => asset.freeze?.frozen || false; diff --git a/configs/kinobi.cjs b/configs/kinobi.cjs index 9f79c09..5150ba5 100755 --- a/configs/kinobi.cjs +++ b/configs/kinobi.cjs @@ -248,7 +248,7 @@ const defaultsToCandyMachineAssetProgram = () => const defaultsToMplCoreProgram = () => k.programDefault( "mplCore", - "CoREzp6dAdLVRKf3EM5tWrsXM2jQwRFeu5uhzsAyjYXL" + "CoREENxT6tW1HoK8ypY1SxRMZTcVPm7R94rH4PZNhX7d" ); // Automatically recognize account default values. diff --git a/configs/validator.cjs b/configs/validator.cjs index b453b79..b939b1a 100755 --- a/configs/validator.cjs +++ b/configs/validator.cjs @@ -13,7 +13,7 @@ module.exports = { programs: [ { label: "MPL Core", - programId: "CoREzp6dAdLVRKf3EM5tWrsXM2jQwRFeu5uhzsAyjYXL", + programId: "CoREENxT6tW1HoK8ypY1SxRMZTcVPm7R94rH4PZNhX7d", deployPath: getProgram("mpl_core_program.so"), }, {