Skip to content

Commit

Permalink
Update size config
Browse files Browse the repository at this point in the history
  • Loading branch information
febo committed Aug 24, 2023
1 parent afbd51c commit 7db08e3
Show file tree
Hide file tree
Showing 9 changed files with 4 additions and 28 deletions.
4 changes: 0 additions & 4 deletions clients/js/src/generated/accounts/masterEdition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,6 @@ export function getMasterEditionGpaBuilder(
.whereField('key', Key.MasterEditionV2);
}

export function getMasterEditionSize(): number {
return 282;
}

export function findMasterEditionPda(
context: Pick<Context, 'eddsa' | 'programs'>,
seeds: {
Expand Down
4 changes: 0 additions & 4 deletions clients/js/src/generated/accounts/metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,10 +250,6 @@ export function getMetadataGpaBuilder(
.whereField('key', Key.MetadataV1);
}

export function getMetadataSize(): number {
return 679;
}

export function findMetadataPda(
context: Pick<Context, 'eddsa' | 'programs'>,
seeds: {
Expand Down
4 changes: 0 additions & 4 deletions clients/js/src/generated/accounts/metadataDelegateRecord.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,6 @@ export function getMetadataDelegateRecordGpaBuilder(
);
}

export function getMetadataDelegateRecordSize(): number {
return 98;
}

export function findMetadataDelegateRecordPda(
context: Pick<Context, 'eddsa' | 'programs'>,
seeds: {
Expand Down
4 changes: 0 additions & 4 deletions clients/js/src/generated/accounts/tokenRecord.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,6 @@ export function getTokenRecordGpaBuilder(
.whereField('key', Key.TokenRecord);
}

export function getTokenRecordSize(): number {
return 80;
}

export function findTokenRecordPda(
context: Pick<Context, 'eddsa' | 'programs'>,
seeds: {
Expand Down
2 changes: 0 additions & 2 deletions clients/rust/src/generated/accounts/master_edition.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ pub struct MasterEdition {
}

impl MasterEdition {
pub const LEN: usize = 282;

pub fn find_pda(mint: &Pubkey) -> (solana_program::pubkey::Pubkey, u8) {
solana_program::pubkey::Pubkey::find_program_address(
&[
Expand Down
2 changes: 0 additions & 2 deletions clients/rust/src/generated/accounts/metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ pub struct Metadata {
}

impl Metadata {
pub const LEN: usize = 679;

pub fn find_pda(mint: &Pubkey) -> (solana_program::pubkey::Pubkey, u8) {
solana_program::pubkey::Pubkey::find_program_address(
&[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ pub struct MetadataDelegateRecord {
}

impl MetadataDelegateRecord {
pub const LEN: usize = 98;

pub fn find_pda(
mint: &Pubkey,
delegate_role: MetadataDelegateRoleSeed,
Expand Down
2 changes: 0 additions & 2 deletions clients/rust/src/generated/accounts/token_record.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ pub struct TokenRecord {
}

impl TokenRecord {
pub const LEN: usize = 80;

pub fn find_pda(mint: &Pubkey, token: &Pubkey) -> (solana_program::pubkey::Pubkey, u8) {
solana_program::pubkey::Pubkey::find_program_address(
&[
Expand Down
8 changes: 4 additions & 4 deletions configs/kinobi.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ const metadataSeeds = [
kinobi.update(
new k.UpdateAccountsVisitor({
metadata: {
size: 679,
size: undefined,
seeds: metadataSeeds,
},
masterEditionV2: {
size: 282,
size: undefined,
name: "masterEdition",
seeds: [...metadataSeeds, k.stringConstantSeed("edition")],
},
Expand All @@ -51,7 +51,7 @@ kinobi.update(
],
},
tokenRecord: {
size: 80,
size: undefined,
seeds: [
...metadataSeeds,
k.stringConstantSeed("token_record"),
Expand All @@ -62,7 +62,7 @@ kinobi.update(
],
},
metadataDelegateRecord: {
size: 98,
size: undefined,
seeds: [
...metadataSeeds,
k.variableSeed(
Expand Down

0 comments on commit 7db08e3

Please sign in to comment.