World.d.ts 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /// <reference types="node" />
  2. import * as beet from "@metaplex-foundation/beet";
  3. import * as web3 from "@solana/web3.js";
  4. import * as beetSolana from "@metaplex-foundation/beet-solana";
  5. export interface WorldArgs {
  6. id: beet.bignum;
  7. entities: beet.bignum;
  8. }
  9. export declare const worldDiscriminator: number[];
  10. export declare class World implements WorldArgs {
  11. readonly id: beet.bignum;
  12. readonly entities: beet.bignum;
  13. private constructor();
  14. static fromArgs(args: WorldArgs): World;
  15. static fromAccountInfo(
  16. accountInfo: web3.AccountInfo<Buffer>,
  17. offset?: number
  18. ): [World, number];
  19. static fromAccountAddress(
  20. connection: web3.Connection,
  21. address: web3.PublicKey,
  22. commitmentOrConfig?: web3.Commitment | web3.GetAccountInfoConfig
  23. ): Promise<World>;
  24. static gpaBuilder(programId?: web3.PublicKey): beetSolana.GpaBuilder<{
  25. id: any;
  26. accountDiscriminator: any;
  27. entities: any;
  28. }>;
  29. static deserialize(buf: Buffer, offset?: number): [World, number];
  30. serialize(): [Buffer, number];
  31. static get byteSize(): number;
  32. static getMinimumBalanceForRentExemption(
  33. connection: web3.Connection,
  34. commitment?: web3.Commitment
  35. ): Promise<number>;
  36. static hasCorrectByteSize(buf: Buffer, offset?: number): boolean;
  37. pretty(): {
  38. id:
  39. | number
  40. | {
  41. toNumber: () => number;
  42. };
  43. entities:
  44. | number
  45. | {
  46. toNumber: () => number;
  47. };
  48. };
  49. }
  50. export declare const worldBeet: beet.BeetStruct<
  51. World,
  52. WorldArgs & {
  53. accountDiscriminator: number[];
  54. }
  55. >;
  56. //# sourceMappingURL=World.d.ts.map