Skip to content

Commit

Permalink
🐛 Fix world Pda derivation
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielePicco committed Jan 20, 2024
1 parent 403a395 commit 4c61bf7
Show file tree
Hide file tree
Showing 30 changed files with 1,111 additions and 2,009 deletions.
59 changes: 22 additions & 37 deletions clients/bolt-sdk/lib/accounts/Entity.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,46 +3,31 @@ import * as beet from "@metaplex-foundation/beet";
import * as web3 from "@solana/web3.js";
import * as beetSolana from "@metaplex-foundation/beet-solana";
export interface EntityArgs {
id: beet.bignum;
id: beet.bignum;
}
export declare const entityDiscriminator: number[];
export declare class Entity implements EntityArgs {
readonly id: beet.bignum;
private constructor();
static fromArgs(args: EntityArgs): Entity;
static fromAccountInfo(
accountInfo: web3.AccountInfo<Buffer>,
offset?: number
): [Entity, number];
static fromAccountAddress(
connection: web3.Connection,
address: web3.PublicKey,
commitmentOrConfig?: web3.Commitment | web3.GetAccountInfoConfig
): Promise<Entity>;
static gpaBuilder(programId?: web3.PublicKey): beetSolana.GpaBuilder<{
accountDiscriminator: any;
id: any;
}>;
static deserialize(buf: Buffer, offset?: number): [Entity, number];
serialize(): [Buffer, number];
static get byteSize(): number;
static getMinimumBalanceForRentExemption(
connection: web3.Connection,
commitment?: web3.Commitment
): Promise<number>;
static hasCorrectByteSize(buf: Buffer, offset?: number): boolean;
pretty(): {
id:
| number
| {
toNumber: () => number;
readonly id: beet.bignum;
private constructor();
static fromArgs(args: EntityArgs): Entity;
static fromAccountInfo(accountInfo: web3.AccountInfo<Buffer>, offset?: number): [Entity, number];
static fromAccountAddress(connection: web3.Connection, address: web3.PublicKey, commitmentOrConfig?: web3.Commitment | web3.GetAccountInfoConfig): Promise<Entity>;
static gpaBuilder(programId?: web3.PublicKey): beetSolana.GpaBuilder<{
accountDiscriminator: any;
id: any;
}>;
static deserialize(buf: Buffer, offset?: number): [Entity, number];
serialize(): [Buffer, number];
static get byteSize(): number;
static getMinimumBalanceForRentExemption(connection: web3.Connection, commitment?: web3.Commitment): Promise<number>;
static hasCorrectByteSize(buf: Buffer, offset?: number): boolean;
pretty(): {
id: number | {
toNumber: () => number;
};
};
};
}
export declare const entityBeet: beet.BeetStruct<
Entity,
EntityArgs & {
export declare const entityBeet: beet.BeetStruct<Entity, EntityArgs & {
accountDiscriminator: number[];
}
>;
//# sourceMappingURL=Entity.d.ts.map
}>;
//# sourceMappingURL=Entity.d.ts.map
Loading

0 comments on commit 4c61bf7

Please sign in to comment.