transactions.d.ts 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. import BN from "bn.js";
  2. import type web3 from "@solana/web3.js";
  3. import { type Connection, type PublicKey, Transaction } from "@solana/web3.js";
  4. export declare function InitializeNewWorld({
  5. payer,
  6. connection,
  7. }: {
  8. payer: PublicKey;
  9. connection: Connection;
  10. }): Promise<{
  11. transaction: Transaction;
  12. worldPda: PublicKey;
  13. worldId: BN;
  14. }>;
  15. export declare function AddEntity({
  16. payer,
  17. world,
  18. connection,
  19. }: {
  20. payer: PublicKey;
  21. world: PublicKey;
  22. connection: Connection;
  23. }): Promise<{
  24. transaction: Transaction;
  25. entityPda: PublicKey;
  26. entityId: BN;
  27. }>;
  28. export declare function InitializeComponent({
  29. payer,
  30. entity,
  31. componentId,
  32. seed,
  33. authority,
  34. anchorRemainingAccounts,
  35. }: {
  36. payer: PublicKey;
  37. entity: PublicKey;
  38. componentId: PublicKey;
  39. seed?: string;
  40. authority?: web3.PublicKey;
  41. anchorRemainingAccounts?: web3.AccountMeta[];
  42. }): Promise<{
  43. transaction: Transaction;
  44. componentPda: PublicKey;
  45. }>;
  46. interface ApplySystemInstruction {
  47. entity: PublicKey;
  48. components: PublicKey[];
  49. system: PublicKey;
  50. authority: PublicKey;
  51. seeds?: string[];
  52. extraAccounts?: web3.AccountMeta[];
  53. args?: object;
  54. }
  55. export declare function createApplySystemInstruction({
  56. entity,
  57. components,
  58. system,
  59. seeds,
  60. authority,
  61. extraAccounts,
  62. args,
  63. }: ApplySystemInstruction): web3.TransactionInstruction;
  64. export declare function ApplySystem({
  65. authority,
  66. system,
  67. entity,
  68. components,
  69. args,
  70. extraAccounts,
  71. seeds,
  72. }: {
  73. authority: PublicKey;
  74. system: PublicKey;
  75. entity: PublicKey;
  76. components: PublicKey[];
  77. args?: object;
  78. extraAccounts?: web3.AccountMeta[];
  79. seeds?: string[];
  80. }): Promise<{
  81. transaction: Transaction;
  82. }>;
  83. export {};
  84. //# sourceMappingURL=transactions.d.ts.map