Skip to content

Commit adad62d

Browse files
committed
✨ Add extra seed for entity initialization
1 parent 2674482 commit adad62d

37 files changed

+1194
-2015
lines changed

Anchor.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ world = "WorLD15A7CrDwLcLy4fRqtaTb9fbd8o8iqiEMUDse2n"
2121
url = "https://api.apr.dev"
2222

2323
[provider]
24-
cluster = "devnet"
24+
cluster = "localnet"
2525
wallet = "~/.config/solana/id.json"
2626

2727
[scripts]

clients/bolt-sdk/idl/world.json

+8-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,14 @@
7373
"isSigner": false
7474
}
7575
],
76-
"args": []
76+
"args": [
77+
{
78+
"name": "extraSeeds",
79+
"type": {
80+
"option": "string"
81+
}
82+
}
83+
]
7784
},
7885
{
7986
"name": "initializeComponent",

clients/bolt-sdk/lib/accounts/Entity.d.ts

+22-37
Original file line numberDiff line numberDiff line change
@@ -3,46 +3,31 @@ import * as beet from "@metaplex-foundation/beet";
33
import * as web3 from "@solana/web3.js";
44
import * as beetSolana from "@metaplex-foundation/beet-solana";
55
export interface EntityArgs {
6-
id: beet.bignum;
6+
id: beet.bignum;
77
}
88
export declare const entityDiscriminator: number[];
99
export declare class Entity implements EntityArgs {
10-
readonly id: beet.bignum;
11-
private constructor();
12-
static fromArgs(args: EntityArgs): Entity;
13-
static fromAccountInfo(
14-
accountInfo: web3.AccountInfo<Buffer>,
15-
offset?: number
16-
): [Entity, number];
17-
static fromAccountAddress(
18-
connection: web3.Connection,
19-
address: web3.PublicKey,
20-
commitmentOrConfig?: web3.Commitment | web3.GetAccountInfoConfig
21-
): Promise<Entity>;
22-
static gpaBuilder(programId?: web3.PublicKey): beetSolana.GpaBuilder<{
23-
accountDiscriminator: any;
24-
id: any;
25-
}>;
26-
static deserialize(buf: Buffer, offset?: number): [Entity, number];
27-
serialize(): [Buffer, number];
28-
static get byteSize(): number;
29-
static getMinimumBalanceForRentExemption(
30-
connection: web3.Connection,
31-
commitment?: web3.Commitment
32-
): Promise<number>;
33-
static hasCorrectByteSize(buf: Buffer, offset?: number): boolean;
34-
pretty(): {
35-
id:
36-
| number
37-
| {
38-
toNumber: () => number;
10+
readonly id: beet.bignum;
11+
private constructor();
12+
static fromArgs(args: EntityArgs): Entity;
13+
static fromAccountInfo(accountInfo: web3.AccountInfo<Buffer>, offset?: number): [Entity, number];
14+
static fromAccountAddress(connection: web3.Connection, address: web3.PublicKey, commitmentOrConfig?: web3.Commitment | web3.GetAccountInfoConfig): Promise<Entity>;
15+
static gpaBuilder(programId?: web3.PublicKey): beetSolana.GpaBuilder<{
16+
accountDiscriminator: any;
17+
id: any;
18+
}>;
19+
static deserialize(buf: Buffer, offset?: number): [Entity, number];
20+
serialize(): [Buffer, number];
21+
static get byteSize(): number;
22+
static getMinimumBalanceForRentExemption(connection: web3.Connection, commitment?: web3.Commitment): Promise<number>;
23+
static hasCorrectByteSize(buf: Buffer, offset?: number): boolean;
24+
pretty(): {
25+
id: number | {
26+
toNumber: () => number;
3927
};
40-
};
28+
};
4129
}
42-
export declare const entityBeet: beet.BeetStruct<
43-
Entity,
44-
EntityArgs & {
30+
export declare const entityBeet: beet.BeetStruct<Entity, EntityArgs & {
4531
accountDiscriminator: number[];
46-
}
47-
>;
48-
//# sourceMappingURL=Entity.d.ts.map
32+
}>;
33+
//# sourceMappingURL=Entity.d.ts.map

0 commit comments

Comments
 (0)