Skip to content

Commit

Permalink
♻️ Code Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielePicco committed Dec 14, 2023
1 parent ea9fbcb commit 9e4d9ca
Show file tree
Hide file tree
Showing 42 changed files with 3,809 additions and 2,287 deletions.
26 changes: 13 additions & 13 deletions clients/bolt-sdk/.solitarc.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
const path = require('path');
const programDir = path.join(__dirname, '../../', 'programs', 'world');
const idlDir = path.join(__dirname, 'idl');
const sdkDir = path.join(__dirname, 'src', 'generated');
const binaryInstallDir = path.join(__dirname, '.crates');
const path = require("path");
const programDir = path.join(__dirname, "../../", "programs", "world");
const idlDir = path.join(__dirname, "idl");
const sdkDir = path.join(__dirname, "src", "generated");
const binaryInstallDir = path.join(__dirname, ".crates");

module.exports = {
idlGenerator: 'anchor',
programName: 'world',
programId: 'WorLD15A7CrDwLcLy4fRqtaTb9fbd8o8iqiEMUDse2n',
idlDir,
sdkDir,
binaryInstallDir,
programDir,
};
idlGenerator: "anchor",
programName: "world",
programId: "WorLD15A7CrDwLcLy4fRqtaTb9fbd8o8iqiEMUDse2n",
idlDir,
sdkDir,
binaryInstallDir,
programDir,
};
59 changes: 37 additions & 22 deletions clients/bolt-sdk/lib/accounts/Entity.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,46 @@ 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 9e4d9ca

Please sign in to comment.