Skip to content

Commit

Permalink
update kinobi generated program names
Browse files Browse the repository at this point in the history
  • Loading branch information
nhanphan committed Mar 25, 2024
1 parent 53b4bb4 commit 406c323
Show file tree
Hide file tree
Showing 42 changed files with 98 additions and 98 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ You can [**read more about Candy Machines in the official Metaplex documentation

This project contains the following programs:

- [Candy Machine Core Asset](./programs/candy-machine-core/README.md) `CMACYFENjoBMHzapRXyo1JZkVS6EtaDDzkjMrmQLvr4J`
- [Candy Guard Asset](./programs/candy-guard/README.md) `CMAGAKJ67e9hRZgfC5SFTbZH8MgEmtqazKXjmkaJjWTJ`
- [Core Candy Machine Core](./programs/candy-machine-core/README.md) `CMACYFENjoBMHzapRXyo1JZkVS6EtaDDzkjMrmQLvr4J`
- [Core Candy Guard](./programs/candy-guard/README.md) `CMAGAKJ67e9hRZgfC5SFTbZH8MgEmtqazKXjmkaJjWTJ`

You will need a Rust version compatible with BPF to compile the program, currently we recommend using Rust 1.68.0.

Expand Down
2 changes: 1 addition & 1 deletion clients/js/src/createCandyGuard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export function createCandyGuard<DA extends GuardSetArgs = DefaultGuardSetArgs>(
>
): TransactionBuilder {
const { guards, groups, ...rest } = input;
const program = context.programs.get<CandyGuardProgram>('mplCandyGuardAsset');
const program = context.programs.get<CandyGuardProgram>('mplCoreCandyGuard');
const serializer = getCandyGuardDataSerializer<
DA extends undefined ? DefaultGuardSetArgs : DA,
any
Expand Down
2 changes: 1 addition & 1 deletion clients/js/src/createCandyMachineV2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const createCandyMachineV2 = async (
newAccount: input.candyMachine,
lamports,
space,
programId: context.programs.get('mplCandyMachineCoreAsset').publicKey,
programId: context.programs.get('mplCoreCandyMachineCore').publicKey,
})
)
.add(
Expand Down
4 changes: 2 additions & 2 deletions clients/js/src/createLutForCandyMachine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {
import { getMplCoreProgramId } from '@metaplex-foundation/mpl-core';
import {
fetchCandyMachine,
getMplCandyMachineCoreAssetProgramId,
getMplCoreCandyMachineCoreProgramId,
} from './generated';
import { findCandyMachineAuthorityPda } from './hooked';

Expand Down Expand Up @@ -63,6 +63,6 @@ export const getLutAddressesForCandyMachine = async (
getSplTokenProgramId(context),
getSplAssociatedTokenProgramId(context),
getMplTokenMetadataProgramId(context),
getMplCandyMachineCoreAssetProgramId(context),
getMplCoreCandyMachineCoreProgramId(context),
]);
};
4 changes: 2 additions & 2 deletions clients/js/src/generated/accounts/allocationTracker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export function getAllocationTrackerGpaBuilder(
context: Pick<Context, 'rpc' | 'programs'>
) {
const programId = context.programs.getPublicKey(
'mplCandyGuardAsset',
'mplCoreCandyGuard',
'CMAGAKJ67e9hRZgfC5SFTbZH8MgEmtqazKXjmkaJjWTJ'
);
return gpaBuilder(context, programId)
Expand All @@ -145,7 +145,7 @@ export function findAllocationTrackerPda(
}
): Pda {
const programId = context.programs.getPublicKey(
'mplCandyGuardAsset',
'mplCoreCandyGuard',
'CMAGAKJ67e9hRZgfC5SFTbZH8MgEmtqazKXjmkaJjWTJ'
);
return context.eddsa.findPda(programId, [
Expand Down
4 changes: 2 additions & 2 deletions clients/js/src/generated/accounts/allowListProof.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export function getAllowListProofGpaBuilder(
context: Pick<Context, 'rpc' | 'programs'>
) {
const programId = context.programs.getPublicKey(
'mplCandyGuardAsset',
'mplCoreCandyGuard',
'CMAGAKJ67e9hRZgfC5SFTbZH8MgEmtqazKXjmkaJjWTJ'
);
return gpaBuilder(context, programId)
Expand Down Expand Up @@ -142,7 +142,7 @@ export function findAllowListProofPda(
}
): Pda {
const programId = context.programs.getPublicKey(
'mplCandyGuardAsset',
'mplCoreCandyGuard',
'CMAGAKJ67e9hRZgfC5SFTbZH8MgEmtqazKXjmkaJjWTJ'
);
return context.eddsa.findPda(programId, [
Expand Down
4 changes: 2 additions & 2 deletions clients/js/src/generated/accounts/candyGuard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export function getCandyGuardGpaBuilder(
context: Pick<Context, 'rpc' | 'programs'>
) {
const programId = context.programs.getPublicKey(
'mplCandyGuardAsset',
'mplCoreCandyGuard',
'CMAGAKJ67e9hRZgfC5SFTbZH8MgEmtqazKXjmkaJjWTJ'
);
return gpaBuilder(context, programId)
Expand Down Expand Up @@ -158,7 +158,7 @@ export function findCandyGuardPda(
}
): Pda {
const programId = context.programs.getPublicKey(
'mplCandyGuardAsset',
'mplCoreCandyGuard',
'CMAGAKJ67e9hRZgfC5SFTbZH8MgEmtqazKXjmkaJjWTJ'
);
return context.eddsa.findPda(programId, [
Expand Down
2 changes: 1 addition & 1 deletion clients/js/src/generated/accounts/candyMachine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export function getCandyMachineGpaBuilder(
context: Pick<Context, 'rpc' | 'programs'>
) {
const programId = context.programs.getPublicKey(
'mplCandyMachineCoreAsset',
'mplCoreCandyMachineCore',
'CMACYFENjoBMHzapRXyo1JZkVS6EtaDDzkjMrmQLvr4J'
);
return gpaBuilder(context, programId)
Expand Down
4 changes: 2 additions & 2 deletions clients/js/src/generated/accounts/freezeEscrow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ export function getFreezeEscrowGpaBuilder(
context: Pick<Context, 'rpc' | 'programs'>
) {
const programId = context.programs.getPublicKey(
'mplCandyGuardAsset',
'mplCoreCandyGuard',
'CMAGAKJ67e9hRZgfC5SFTbZH8MgEmtqazKXjmkaJjWTJ'
);
return gpaBuilder(context, programId)
Expand Down Expand Up @@ -224,7 +224,7 @@ export function findFreezeEscrowPda(
}
): Pda {
const programId = context.programs.getPublicKey(
'mplCandyGuardAsset',
'mplCoreCandyGuard',
'CMAGAKJ67e9hRZgfC5SFTbZH8MgEmtqazKXjmkaJjWTJ'
);
return context.eddsa.findPda(programId, [
Expand Down
4 changes: 2 additions & 2 deletions clients/js/src/generated/accounts/mintCounter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export function getMintCounterGpaBuilder(
context: Pick<Context, 'rpc' | 'programs'>
) {
const programId = context.programs.getPublicKey(
'mplCandyGuardAsset',
'mplCoreCandyGuard',
'CMAGAKJ67e9hRZgfC5SFTbZH8MgEmtqazKXjmkaJjWTJ'
);
return gpaBuilder(context, programId)
Expand All @@ -133,7 +133,7 @@ export function findMintCounterPda(
}
): Pda {
const programId = context.programs.getPublicKey(
'mplCandyGuardAsset',
'mplCoreCandyGuard',
'CMAGAKJ67e9hRZgfC5SFTbZH8MgEmtqazKXjmkaJjWTJ'
);
return context.eddsa.findPda(programId, [
Expand Down
4 changes: 2 additions & 2 deletions clients/js/src/generated/accounts/nftMintCounter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export function getNftMintCounterGpaBuilder(
context: Pick<Context, 'rpc' | 'programs'>
) {
const programId = context.programs.getPublicKey(
'mplCandyGuardAsset',
'mplCoreCandyGuard',
'CMAGAKJ67e9hRZgfC5SFTbZH8MgEmtqazKXjmkaJjWTJ'
);
return gpaBuilder(context, programId)
Expand Down Expand Up @@ -142,7 +142,7 @@ export function findNftMintCounterPda(
}
): Pda {
const programId = context.programs.getPublicKey(
'mplCandyGuardAsset',
'mplCoreCandyGuard',
'CMAGAKJ67e9hRZgfC5SFTbZH8MgEmtqazKXjmkaJjWTJ'
);
return context.eddsa.findPda(programId, [
Expand Down
4 changes: 2 additions & 2 deletions clients/js/src/generated/errors/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
* @see https://github.com/metaplex-foundation/kinobi
*/

export * from './mplCandyGuardAsset';
export * from './mplCandyMachineCoreAsset';
export * from './mplCoreCandyGuard';
export * from './mplCoreCandyMachineCore';
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,7 @@ nameToErrorMap.set('InvalidAccountVersion', CgInvalidAccountVersionError);
* Attempts to resolve a custom program error from the provided error code.
* @category Errors
*/
export function getMplCandyGuardAssetErrorFromCode(
export function getMplCoreCandyGuardErrorFromCode(
code: number,
program: Program,
cause?: Error
Expand All @@ -748,7 +748,7 @@ export function getMplCandyGuardAssetErrorFromCode(
* Attempts to resolve a custom program error from the provided error name, i.e. 'Unauthorized'.
* @category Errors
*/
export function getMplCandyGuardAssetErrorFromName(
export function getMplCoreCandyGuardErrorFromName(
name: string,
program: Program,
cause?: Error
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ nameToErrorMap.set('IncorrectPluginAuthority', CmIncorrectPluginAuthorityError);
* Attempts to resolve a custom program error from the provided error code.
* @category Errors
*/
export function getMplCandyMachineCoreAssetErrorFromCode(
export function getMplCoreCandyMachineCoreErrorFromCode(
code: number,
program: Program,
cause?: Error
Expand All @@ -510,7 +510,7 @@ export function getMplCandyMachineCoreAssetErrorFromCode(
* Attempts to resolve a custom program error from the provided error name, i.e. 'Unauthorized'.
* @category Errors
*/
export function getMplCandyMachineCoreAssetErrorFromName(
export function getMplCoreCandyMachineCoreErrorFromName(
name: string,
program: Program,
cause?: Error
Expand Down
2 changes: 1 addition & 1 deletion clients/js/src/generated/instructions/addConfigLines.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export function addConfigLines(
): TransactionBuilder {
// Program ID.
const programId = context.programs.getPublicKey(
'mplCandyMachineCoreAsset',
'mplCoreCandyMachineCore',
'CMACYFENjoBMHzapRXyo1JZkVS6EtaDDzkjMrmQLvr4J'
);

Expand Down
2 changes: 1 addition & 1 deletion clients/js/src/generated/instructions/createCandyGuard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export function createCandyGuard(
): TransactionBuilder {
// Program ID.
const programId = context.programs.getPublicKey(
'mplCandyGuardAsset',
'mplCoreCandyGuard',
'CMAGAKJ67e9hRZgfC5SFTbZH8MgEmtqazKXjmkaJjWTJ'
);

Expand Down
2 changes: 1 addition & 1 deletion clients/js/src/generated/instructions/deleteCandyGuard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export function deleteCandyGuard(
): TransactionBuilder {
// Program ID.
const programId = context.programs.getPublicKey(
'mplCandyGuardAsset',
'mplCoreCandyGuard',
'CMAGAKJ67e9hRZgfC5SFTbZH8MgEmtqazKXjmkaJjWTJ'
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export function deleteCandyMachine(
): TransactionBuilder {
// Program ID.
const programId = context.programs.getPublicKey(
'mplCandyMachineCoreAsset',
'mplCoreCandyMachineCore',
'CMACYFENjoBMHzapRXyo1JZkVS6EtaDDzkjMrmQLvr4J'
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ export function initializeCandyMachineV2(
): TransactionBuilder {
// Program ID.
const programId = context.programs.getPublicKey(
'mplCandyMachineCoreAsset',
'mplCoreCandyMachineCore',
'CMACYFENjoBMHzapRXyo1JZkVS6EtaDDzkjMrmQLvr4J'
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export function mintAssetFromCandyMachine(
): TransactionBuilder {
// Program ID.
const programId = context.programs.getPublicKey(
'mplCandyMachineCoreAsset',
'mplCoreCandyMachineCore',
'CMACYFENjoBMHzapRXyo1JZkVS6EtaDDzkjMrmQLvr4J'
);

Expand Down
2 changes: 1 addition & 1 deletion clients/js/src/generated/instructions/mintV2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export function mintV2(
): TransactionBuilder {
// Program ID.
const programId = context.programs.getPublicKey(
'mplCandyGuardAsset',
'mplCoreCandyGuard',
'CMAGAKJ67e9hRZgfC5SFTbZH8MgEmtqazKXjmkaJjWTJ'
);

Expand Down
2 changes: 1 addition & 1 deletion clients/js/src/generated/instructions/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export function route(
): TransactionBuilder {
// Program ID.
const programId = context.programs.getPublicKey(
'mplCandyGuardAsset',
'mplCoreCandyGuard',
'CMAGAKJ67e9hRZgfC5SFTbZH8MgEmtqazKXjmkaJjWTJ'
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export function setCandyGuardAuthority(
): TransactionBuilder {
// Program ID.
const programId = context.programs.getPublicKey(
'mplCandyGuardAsset',
'mplCoreCandyGuard',
'CMAGAKJ67e9hRZgfC5SFTbZH8MgEmtqazKXjmkaJjWTJ'
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export function setCandyMachineAuthority(
): TransactionBuilder {
// Program ID.
const programId = context.programs.getPublicKey(
'mplCandyMachineCoreAsset',
'mplCoreCandyMachineCore',
'CMACYFENjoBMHzapRXyo1JZkVS6EtaDDzkjMrmQLvr4J'
);

Expand Down
2 changes: 1 addition & 1 deletion clients/js/src/generated/instructions/setCollectionV2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export function setCollectionV2(
): TransactionBuilder {
// Program ID.
const programId = context.programs.getPublicKey(
'mplCandyMachineCoreAsset',
'mplCoreCandyMachineCore',
'CMACYFENjoBMHzapRXyo1JZkVS6EtaDDzkjMrmQLvr4J'
);

Expand Down
2 changes: 1 addition & 1 deletion clients/js/src/generated/instructions/setMintAuthority.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export function setMintAuthority(
): TransactionBuilder {
// Program ID.
const programId = context.programs.getPublicKey(
'mplCandyMachineCoreAsset',
'mplCoreCandyMachineCore',
'CMACYFENjoBMHzapRXyo1JZkVS6EtaDDzkjMrmQLvr4J'
);

Expand Down
2 changes: 1 addition & 1 deletion clients/js/src/generated/instructions/unwrap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export function unwrap(
): TransactionBuilder {
// Program ID.
const programId = context.programs.getPublicKey(
'mplCandyGuardAsset',
'mplCoreCandyGuard',
'CMAGAKJ67e9hRZgfC5SFTbZH8MgEmtqazKXjmkaJjWTJ'
);

Expand Down
2 changes: 1 addition & 1 deletion clients/js/src/generated/instructions/updateCandyGuard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export function updateCandyGuard(
): TransactionBuilder {
// Program ID.
const programId = context.programs.getPublicKey(
'mplCandyGuardAsset',
'mplCoreCandyGuard',
'CMAGAKJ67e9hRZgfC5SFTbZH8MgEmtqazKXjmkaJjWTJ'
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export function updateCandyMachine(
): TransactionBuilder {
// Program ID.
const programId = context.programs.getPublicKey(
'mplCandyMachineCoreAsset',
'mplCoreCandyMachineCore',
'CMACYFENjoBMHzapRXyo1JZkVS6EtaDDzkjMrmQLvr4J'
);

Expand Down
2 changes: 1 addition & 1 deletion clients/js/src/generated/instructions/wrap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export function wrap(
): TransactionBuilder {
// Program ID.
const programId = context.programs.getPublicKey(
'mplCandyGuardAsset',
'mplCoreCandyGuard',
'CMAGAKJ67e9hRZgfC5SFTbZH8MgEmtqazKXjmkaJjWTJ'
);

Expand Down
4 changes: 2 additions & 2 deletions clients/js/src/generated/programs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
* @see https://github.com/metaplex-foundation/kinobi
*/

export * from './mplCandyGuardAsset';
export * from './mplCandyMachineCoreAsset';
export * from './mplCoreCandyGuard';
export * from './mplCoreCandyMachineCore';
Loading

0 comments on commit 406c323

Please sign in to comment.