Skip to content

Commit

Permalink
✨ Update client SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielePicco committed Feb 20, 2024
1 parent 8fd04d6 commit d0b1bd5
Show file tree
Hide file tree
Showing 39 changed files with 372 additions and 45 deletions.
65 changes: 56 additions & 9 deletions clients/bolt-sdk/idl/world.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,16 @@
"isMut": false,
"isSigner": false
},
{
"name": "authority",
"isMut": false,
"isSigner": false
},
{
"name": "instructionSysvarAccount",
"isMut": false,
"isSigner": false
},
{
"name": "systemProgram",
"isMut": false,
Expand All @@ -130,6 +140,16 @@
"name": "boltComponent",
"isMut": true,
"isSigner": false
},
{
"name": "authority",
"isMut": false,
"isSigner": false
},
{
"name": "instructionSysvarAccount",
"isMut": false,
"isSigner": false
}
],
"args": [
Expand Down Expand Up @@ -166,6 +186,16 @@
"name": "boltComponent2",
"isMut": true,
"isSigner": false
},
{
"name": "authority",
"isMut": false,
"isSigner": false
},
{
"name": "instructionSysvarAccount",
"isMut": false,
"isSigner": false
}
],
"args": [
Expand Down Expand Up @@ -212,6 +242,16 @@
"name": "boltComponent3",
"isMut": true,
"isSigner": false
},
{
"name": "authority",
"isMut": false,
"isSigner": false
},
{
"name": "instructionSysvarAccount",
"isMut": false,
"isSigner": false
}
],
"args": [
Expand All @@ -224,46 +264,53 @@
],
"accounts": [
{
"name": "Registry",
"name": "Entity",
"type": {
"kind": "struct",
"fields": [
{
"name": "worlds",
"name": "id",
"type": "u64"
}
]
}
},
{
"name": "World",
"name": "Registry",
"type": {
"kind": "struct",
"fields": [
{
"name": "id",
"type": "u64"
},
{
"name": "entities",
"name": "worlds",
"type": "u64"
}
]
}
},
{
"name": "Entity",
"name": "World",
"type": {
"kind": "struct",
"fields": [
{
"name": "id",
"type": "u64"
},
{
"name": "entities",
"type": "u64"
}
]
}
}
],
"errors": [
{
"code": 6000,
"name": "InvalidAuthority",
"msg": "Invalid authority for instruction"
}
],
"metadata": {
"address": "WorLD15A7CrDwLcLy4fRqtaTb9fbd8o8iqiEMUDse2n",
"origin": "anchor",
Expand Down
2 changes: 1 addition & 1 deletion clients/bolt-sdk/lib/accounts/Entity.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ export declare class Entity implements EntityArgs {
commitmentOrConfig?: web3.Commitment | web3.GetAccountInfoConfig
): Promise<Entity>;
static gpaBuilder(programId?: web3.PublicKey): beetSolana.GpaBuilder<{
accountDiscriminator: any;
id: any;
accountDiscriminator: any;
}>;
static deserialize(buf: Buffer, offset?: number): [Entity, number];
serialize(): [Buffer, number];
Expand Down
2 changes: 1 addition & 1 deletion clients/bolt-sdk/lib/accounts/Registry.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ export declare class Registry implements RegistryArgs {
commitmentOrConfig?: web3.Commitment | web3.GetAccountInfoConfig
): Promise<Registry>;
static gpaBuilder(programId?: web3.PublicKey): beetSolana.GpaBuilder<{
worlds: any;
accountDiscriminator: any;
worlds: any;
}>;
static deserialize(buf: Buffer, offset?: number): [Registry, number];
serialize(): [Buffer, number];
Expand Down
2 changes: 1 addition & 1 deletion clients/bolt-sdk/lib/accounts/World.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ export declare class World implements WorldArgs {
commitmentOrConfig?: web3.Commitment | web3.GetAccountInfoConfig
): Promise<World>;
static gpaBuilder(programId?: web3.PublicKey): beetSolana.GpaBuilder<{
accountDiscriminator: any;
id: any;
accountDiscriminator: any;
entities: any;
}>;
static deserialize(buf: Buffer, offset?: number): [World, number];
Expand Down
4 changes: 2 additions & 2 deletions clients/bolt-sdk/lib/accounts/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { Entity } from "./Entity";
import { Registry } from "./Registry";
import { World } from "./World";
import { Entity } from "./Entity";
export * from "./Entity";
export * from "./Registry";
export * from "./World";
export declare const accountProviders: {
Entity: typeof Entity;
Registry: typeof Registry;
World: typeof World;
Entity: typeof Entity;
};
//# sourceMappingURL=index.d.ts.map
2 changes: 1 addition & 1 deletion clients/bolt-sdk/lib/accounts/index.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions clients/bolt-sdk/lib/accounts/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion clients/bolt-sdk/lib/accounts/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions clients/bolt-sdk/lib/errors/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
type ErrorWithCode = Error & {
code: number;
};
type MaybeErrorWithCode = ErrorWithCode | null | undefined;
export declare class InvalidAuthorityError extends Error {
readonly code: number;
readonly name: string;
constructor();
}
export declare function errorFromCode(code: number): MaybeErrorWithCode;
export declare function errorFromName(name: string): MaybeErrorWithCode;
export {};
//# sourceMappingURL=index.d.ts.map
1 change: 1 addition & 0 deletions clients/bolt-sdk/lib/errors/index.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

70 changes: 70 additions & 0 deletions clients/bolt-sdk/lib/errors/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions clients/bolt-sdk/lib/errors/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions clients/bolt-sdk/lib/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export * from "./accounts";
export * from "./instructions";
export declare const PROGRAM_ADDRESS =
"WorLD15A7CrDwLcLy4fRqtaTb9fbd8o8iqiEMUDse2n";
export declare const SYSVAR_INSTRUCTIONS_PUBKEY: PublicKey;
export declare const PROGRAM_ID: PublicKey;
export declare function FindWorldRegistryPda(programId?: PublicKey): PublicKey;
export declare function FindWorldPda(id: BN, programId?: PublicKey): PublicKey;
Expand Down
2 changes: 1 addition & 1 deletion clients/bolt-sdk/lib/index.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions clients/bolt-sdk/lib/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion clients/bolt-sdk/lib/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions clients/bolt-sdk/lib/instructions/apply.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ export interface ApplyInstructionAccounts {
componentProgram: web3.PublicKey;
boltSystem: web3.PublicKey;
boltComponent: web3.PublicKey;
authority?: web3.PublicKey;
instructionSysvarAccount?: web3.PublicKey;
anchorRemainingAccounts?: web3.AccountMeta[];
}
export declare const applyInstructionDiscriminator: number[];
Expand Down
2 changes: 1 addition & 1 deletion clients/bolt-sdk/lib/instructions/apply.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 19 additions & 3 deletions clients/bolt-sdk/lib/instructions/apply.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d0b1bd5

Please sign in to comment.