transactions.d.ts 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. import BN from "bn.js";
  2. import { type PublicKey, Transaction, type Connection } from "@solana/web3.js";
  3. import type web3 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. worldPda,
  18. connection,
  19. }: {
  20. payer: PublicKey;
  21. worldPda: PublicKey;
  22. connection: Connection;
  23. }): Promise<{
  24. transaction: Transaction;
  25. entityPda: PublicKey;
  26. entityId: BN;
  27. }>;
  28. export declare function InitializeComponent({
  29. payer,
  30. entityPda,
  31. componentId,
  32. seed,
  33. authority,
  34. anchorRemainingAccounts,
  35. }: {
  36. payer: PublicKey;
  37. entityPda: 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. export declare function ApplySystem({
  47. authority,
  48. boltSystem,
  49. entityPda,
  50. components,
  51. args,
  52. extraAccounts,
  53. seed,
  54. }: {
  55. authority: PublicKey;
  56. boltSystem: PublicKey;
  57. entityPda: PublicKey;
  58. components: PublicKey[];
  59. args?: object;
  60. extraAccounts?: web3.AccountMeta[];
  61. seed?: string[];
  62. }): Promise<{
  63. transaction: Transaction;
  64. }>;
  65. //# sourceMappingURL=transactions.d.ts.map