@ghostspeak/sdk 2.0.6 → 2.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. package/README.md +152 -30
  2. package/dist/GhostSpeakClient-CWmGaM9Q.d.ts +1007 -0
  3. package/dist/StakingModule-C5rzuOWb.d.ts +2526 -0
  4. package/dist/{agent-M74TCRON.js → agent-5YLZ7DAC.js} +4 -4
  5. package/dist/{agent-M74TCRON.js.map → agent-5YLZ7DAC.js.map} +1 -1
  6. package/dist/batch-operations-45CQFEID.js +4 -0
  7. package/dist/batch-operations-45CQFEID.js.map +1 -0
  8. package/dist/browser.d.ts +45 -554
  9. package/dist/browser.js +15 -842
  10. package/dist/browser.js.map +1 -1
  11. package/dist/chunk-AL3HQN73.js +754 -0
  12. package/dist/chunk-AL3HQN73.js.map +1 -0
  13. package/dist/chunk-BF3IQ35I.js +284 -0
  14. package/dist/chunk-BF3IQ35I.js.map +1 -0
  15. package/dist/chunk-BQDGRTVP.js +168 -0
  16. package/dist/chunk-BQDGRTVP.js.map +1 -0
  17. package/dist/chunk-C5CDA3WX.js +7314 -0
  18. package/dist/chunk-C5CDA3WX.js.map +1 -0
  19. package/dist/chunk-E3FD2CNY.js +1869 -0
  20. package/dist/chunk-E3FD2CNY.js.map +1 -0
  21. package/dist/{chunk-F3DZMBUA.js → chunk-G7S6B6WB.js} +327 -493
  22. package/dist/chunk-G7S6B6WB.js.map +1 -0
  23. package/dist/chunk-IHVDQ4YI.js +4231 -0
  24. package/dist/chunk-IHVDQ4YI.js.map +1 -0
  25. package/dist/chunk-JV2SWONF.js +98 -0
  26. package/dist/chunk-JV2SWONF.js.map +1 -0
  27. package/dist/chunk-KB6CKIUK.js +231 -0
  28. package/dist/chunk-KB6CKIUK.js.map +1 -0
  29. package/dist/chunk-S74EH3KD.js +7890 -0
  30. package/dist/chunk-S74EH3KD.js.map +1 -0
  31. package/dist/chunk-SFTSZ3LC.js +156 -0
  32. package/dist/chunk-SFTSZ3LC.js.map +1 -0
  33. package/dist/chunk-SKMJJ3Q6.js +125 -0
  34. package/dist/chunk-SKMJJ3Q6.js.map +1 -0
  35. package/dist/chunk-SZGFSCNU.js +3682 -0
  36. package/dist/chunk-SZGFSCNU.js.map +1 -0
  37. package/dist/chunk-TTB4OS2D.js +69 -0
  38. package/dist/chunk-TTB4OS2D.js.map +1 -0
  39. package/dist/chunk-UP2VWCW5.js +33 -0
  40. package/dist/{chunk-NSBPE2FW.js.map → chunk-UP2VWCW5.js.map} +1 -1
  41. package/dist/{chunk-UJUGGLMT.js → chunk-VQZQCHUT.js} +5 -5
  42. package/dist/{chunk-UJUGGLMT.js.map → chunk-VQZQCHUT.js.map} +1 -1
  43. package/dist/client.d.ts +5 -4
  44. package/dist/client.js +11 -10
  45. package/dist/createAgentAuthorization-ULG47ZJI.js +5 -0
  46. package/dist/createAgentAuthorization-ULG47ZJI.js.map +1 -0
  47. package/dist/credentials.js +1 -1
  48. package/dist/crypto.js +2 -2
  49. package/dist/errors.js +1 -1
  50. package/dist/feature-flags-B1g0DCPe.d.ts +1181 -0
  51. package/dist/generated-EG5USUFG.js +9 -0
  52. package/dist/{generated-VNLHMR6Y.js.map → generated-EG5USUFG.js.map} +1 -1
  53. package/dist/{ghostspeak_wasm-SB2RPJ3D.js → ghostspeak_wasm-F227HOSM.js} +3 -3
  54. package/dist/{ghostspeak_wasm-SB2RPJ3D.js.map → ghostspeak_wasm-F227HOSM.js.map} +1 -1
  55. package/dist/index.d.ts +1209 -1506
  56. package/dist/index.js +600 -3532
  57. package/dist/index.js.map +1 -1
  58. package/dist/metafile-esm.json +1 -1
  59. package/dist/minimal/core-minimal.d.ts +2383 -1264
  60. package/dist/minimal/core-minimal.js +9 -9
  61. package/dist/minimal/core-minimal.js.map +1 -1
  62. package/dist/nacl-fast-W5BJ3KZ2.js +2229 -0
  63. package/dist/nacl-fast-W5BJ3KZ2.js.map +1 -0
  64. package/dist/pda-4KP7CURF.js +4 -0
  65. package/dist/pda-4KP7CURF.js.map +1 -0
  66. package/dist/pda-Ce7VYg4T.d.ts +25 -0
  67. package/dist/reputation-types-Yebf0Rm_.d.ts +1071 -0
  68. package/dist/revokeAuthorization-OK7E7OK3.js +5 -0
  69. package/dist/revokeAuthorization-OK7E7OK3.js.map +1 -0
  70. package/dist/signature-verification-DGxR4aYQ.d.ts +448 -0
  71. package/dist/types.js +1 -1
  72. package/dist/updateReputationWithAuth-Y4ONEVSP.js +5 -0
  73. package/dist/updateReputationWithAuth-Y4ONEVSP.js.map +1 -0
  74. package/dist/utils.d.ts +69 -203
  75. package/dist/utils.js +15 -153
  76. package/dist/utils.js.map +1 -1
  77. package/package.json +24 -31
  78. package/dist/.tsbuildinfo +0 -1
  79. package/dist/GhostSpeakClient-D_66Uzsf.d.ts +0 -707
  80. package/dist/GovernanceModule-DQYYys-H.d.ts +0 -1766
  81. package/dist/chunk-APCKGD23.js +0 -1328
  82. package/dist/chunk-APCKGD23.js.map +0 -1
  83. package/dist/chunk-ASQXX4IT.js +0 -572
  84. package/dist/chunk-ASQXX4IT.js.map +0 -1
  85. package/dist/chunk-COGZFWOT.js +0 -19657
  86. package/dist/chunk-COGZFWOT.js.map +0 -1
  87. package/dist/chunk-F3DZMBUA.js.map +0 -1
  88. package/dist/chunk-GMHIUK2R.js +0 -7526
  89. package/dist/chunk-GMHIUK2R.js.map +0 -1
  90. package/dist/chunk-IAWBZYPE.js +0 -356
  91. package/dist/chunk-IAWBZYPE.js.map +0 -1
  92. package/dist/chunk-NSBPE2FW.js +0 -15
  93. package/dist/chunk-OWYHJG6H.js +0 -13311
  94. package/dist/chunk-OWYHJG6H.js.map +0 -1
  95. package/dist/chunk-RDDPOFR5.js +0 -3
  96. package/dist/chunk-RDDPOFR5.js.map +0 -1
  97. package/dist/chunk-RERCHKZP.js +0 -35
  98. package/dist/chunk-RERCHKZP.js.map +0 -1
  99. package/dist/chunk-TVVGXYCI.js +0 -2887
  100. package/dist/chunk-TVVGXYCI.js.map +0 -1
  101. package/dist/chunk-ZGP5552B.js +0 -377
  102. package/dist/chunk-ZGP5552B.js.map +0 -1
  103. package/dist/chunk-ZWOYNHVK.js +0 -196
  104. package/dist/chunk-ZWOYNHVK.js.map +0 -1
  105. package/dist/dist/.tsbuildinfo +0 -1
  106. package/dist/elgamal-VZLWB3XK.js +0 -5
  107. package/dist/elgamal-VZLWB3XK.js.map +0 -1
  108. package/dist/feature-flags-V722ZuXO.d.ts +0 -3512
  109. package/dist/generated-VNLHMR6Y.js +0 -5
  110. package/dist/ipfs-types-BOt9ZNg4.d.ts +0 -592
  111. package/dist/multisigConfig-BzEhy6jy.d.ts +0 -58
  112. package/dist/pda-B_nS8SbD.d.ts +0 -114
  113. package/dist/pda-S4BFJVGE.js +0 -4
  114. package/dist/pda-S4BFJVGE.js.map +0 -1
  115. package/dist/system-addresses-BFNLEbFx.d.ts +0 -857
  116. package/dist/token-2022-rpc-RALH4RK7.js +0 -593
  117. package/dist/token-2022-rpc-RALH4RK7.js.map +0 -1
@@ -1,1766 +0,0 @@
1
- import { Address, ReadonlyUint8Array, Option, Decoder, AccountMeta, Instruction, InstructionWithData, InstructionWithAccounts, WritableAccount, WritableSignerAccount, AccountSignerMeta, ReadonlyAccount, ReadonlySignerAccount, Rpc, GetLatestBlockhashApi, SendTransactionApi, GetAccountInfoApi, SimulateTransactionApi, GetFeeForMessageApi, GetProgramAccountsApi, GetEpochInfoApi, GetSignatureStatusesApi, GetMultipleAccountsApi, RpcSubscriptions, SignatureNotificationsApi, SlotNotificationsApi, AccountRole, TransactionSigner, Signature as Signature$1 } from '@solana/kit';
2
- import { Address as Address$1 } from '@solana/addresses';
3
- import { I as IPFSConfig, V as VoteChoice, G as GovernanceProposal } from './ipfs-types-BOt9ZNg4.js';
4
- import { ParticipantType } from './types.js';
5
-
6
- /**
7
- * This code was AUTOGENERATED using the Codama library.
8
- * Please DO NOT EDIT THIS FILE, instead use visitors
9
- * to add features, then rerun Codama to update it.
10
- *
11
- * @see https://github.com/codama-idl/codama
12
- */
13
-
14
- declare enum AccountState {
15
- Uninitialized = 0,
16
- Initialized = 1,
17
- Frozen = 2
18
- }
19
-
20
- /**
21
- * This code was AUTOGENERATED using the Codama library.
22
- * Please DO NOT EDIT THIS FILE, instead use visitors
23
- * to add features, then rerun Codama to update it.
24
- *
25
- * @see https://github.com/codama-idl/codama
26
- */
27
-
28
- declare enum ApplicationStatus {
29
- Submitted = 0,
30
- Accepted = 1,
31
- Rejected = 2,
32
- Withdrawn = 3
33
- }
34
-
35
- /**
36
- * This code was AUTOGENERATED using the Codama library.
37
- * Please DO NOT EDIT THIS FILE, instead use visitors
38
- * to add features, then rerun Codama to update it.
39
- *
40
- * @see https://github.com/codama-idl/codama
41
- */
42
-
43
- type AuctionBid = {
44
- bidder: Address;
45
- amount: bigint;
46
- timestamp: bigint;
47
- isWinning: boolean;
48
- };
49
-
50
- /**
51
- * This code was AUTOGENERATED using the Codama library.
52
- * Please DO NOT EDIT THIS FILE, instead use visitors
53
- * to add features, then rerun Codama to update it.
54
- *
55
- * @see https://github.com/codama-idl/codama
56
- */
57
-
58
- declare enum AuctionStatus {
59
- Active = 0,
60
- Ended = 1,
61
- Cancelled = 2,
62
- Settled = 3
63
- }
64
-
65
- /**
66
- * This code was AUTOGENERATED using the Codama library.
67
- * Please DO NOT EDIT THIS FILE, instead use visitors
68
- * to add features, then rerun Codama to update it.
69
- *
70
- * @see https://github.com/codama-idl/codama
71
- */
72
-
73
- declare enum AuctionType {
74
- English = 0,
75
- Dutch = 1,
76
- SealedBid = 2,
77
- Vickrey = 3
78
- }
79
-
80
- /**
81
- * This code was AUTOGENERATED using the Codama library.
82
- * Please DO NOT EDIT THIS FILE, instead use visitors
83
- * to add features, then rerun Codama to update it.
84
- *
85
- * @see https://github.com/codama-idl/codama
86
- */
87
-
88
- type DutchAuctionConfig = {
89
- decayType: DutchAuctionDecayType;
90
- priceStepCount: number;
91
- stepDuration: bigint;
92
- decayRateBasisPoints: number;
93
- };
94
-
95
- /**
96
- * This code was AUTOGENERATED using the Codama library.
97
- * Please DO NOT EDIT THIS FILE, instead use visitors
98
- * to add features, then rerun Codama to update it.
99
- *
100
- * @see https://github.com/codama-idl/codama
101
- */
102
-
103
- declare enum DutchAuctionDecayType {
104
- Linear = 0,
105
- Exponential = 1,
106
- Stepped = 2
107
- }
108
-
109
- /**
110
- * This code was AUTOGENERATED using the Codama library.
111
- * Please DO NOT EDIT THIS FILE, instead use visitors
112
- * to add features, then rerun Codama to update it.
113
- *
114
- * @see https://github.com/codama-idl/codama
115
- */
116
-
117
- declare enum PricingModel$1 {
118
- Fixed = 0,
119
- Hourly = 1,
120
- PerTask = 2,
121
- Subscription = 3,
122
- Auction = 4,
123
- Dynamic = 5,
124
- RevenueShare = 6,
125
- Tiered = 7
126
- }
127
-
128
- /**
129
- * This code was AUTOGENERATED using the Codama library.
130
- * Please DO NOT EDIT THIS FILE, instead use visitors
131
- * to add features, then rerun Codama to update it.
132
- *
133
- * @see https://github.com/codama-idl/codama
134
- */
135
-
136
- declare enum PurchaseStatus {
137
- Pending = 0,
138
- Confirmed = 1,
139
- Completed = 2,
140
- Cancelled = 3,
141
- Paid = 4
142
- }
143
-
144
- /**
145
- * This code was AUTOGENERATED using the Codama library.
146
- * Please DO NOT EDIT THIS FILE, instead use visitors
147
- * to add features, then rerun Codama to update it.
148
- *
149
- * @see https://github.com/codama-idl/codama
150
- */
151
-
152
- type Agent = {
153
- discriminator: ReadonlyUint8Array;
154
- owner: Address;
155
- agentId: string;
156
- agentType: number;
157
- name: string;
158
- description: string;
159
- capabilities: Array<string>;
160
- pricingModel: PricingModel$1;
161
- reputationScore: number;
162
- totalJobsCompleted: number;
163
- totalEarnings: bigint;
164
- isActive: boolean;
165
- createdAt: bigint;
166
- updatedAt: bigint;
167
- originalPrice: bigint;
168
- genomeHash: string;
169
- isReplicable: boolean;
170
- replicationFee: bigint;
171
- serviceEndpoint: string;
172
- isVerified: boolean;
173
- verificationTimestamp: bigint;
174
- metadataUri: string;
175
- frameworkOrigin: string;
176
- supportedTokens: Array<Address>;
177
- cnftMint: Option<Address>;
178
- merkleTree: Option<Address>;
179
- supportsA2a: boolean;
180
- transferHook: Option<Address>;
181
- parentAgent: Option<Address>;
182
- generation: number;
183
- x402Enabled: boolean;
184
- x402PaymentAddress: Address;
185
- x402AcceptedTokens: Array<Address>;
186
- x402PricePerCall: bigint;
187
- x402ServiceEndpoint: string;
188
- x402TotalPayments: bigint;
189
- x402TotalCalls: bigint;
190
- lastPaymentTimestamp: bigint;
191
- apiSpecUri: string;
192
- apiVersion: string;
193
- bump: number;
194
- };
195
- /** Gets the decoder for {@link Agent} account data. */
196
- declare function getAgentDecoder(): Decoder<Agent>;
197
-
198
- /**
199
- * This code was AUTOGENERATED using the Codama library.
200
- * Please DO NOT EDIT THIS FILE, instead use visitors
201
- * to add features, then rerun Codama to update it.
202
- *
203
- * @see https://github.com/codama-idl/codama
204
- */
205
-
206
- type AuctionMarketplace = {
207
- discriminator: ReadonlyUint8Array;
208
- auction: Address;
209
- agent: Address;
210
- creator: Address;
211
- auctionType: AuctionType;
212
- startingPrice: bigint;
213
- reservePrice: bigint;
214
- isReserveHidden: boolean;
215
- reserveMet: boolean;
216
- currentPrice: bigint;
217
- currentWinner: Option<Address>;
218
- winner: Option<Address>;
219
- auctionEndTime: bigint;
220
- minimumBidIncrement: bigint;
221
- totalBids: number;
222
- status: AuctionStatus;
223
- bids: Array<AuctionBid>;
224
- createdAt: bigint;
225
- endedAt: Option<bigint>;
226
- metadataUri: string;
227
- dutchConfig: Option<DutchAuctionConfig>;
228
- extensionCount: number;
229
- originalEndTime: bigint;
230
- reservePriceLocked: boolean;
231
- reserveShortfallNotified: boolean;
232
- bump: number;
233
- };
234
-
235
- /**
236
- * This code was AUTOGENERATED using the Codama library.
237
- * Please DO NOT EDIT THIS FILE, instead use visitors
238
- * to add features, then rerun Codama to update it.
239
- *
240
- * @see https://github.com/codama-idl/codama
241
- */
242
-
243
- type JobApplication = {
244
- discriminator: ReadonlyUint8Array;
245
- jobPosting: Address;
246
- agent: Address;
247
- agentOwner: Address;
248
- coverLetter: string;
249
- proposedRate: bigint;
250
- estimatedDelivery: bigint;
251
- portfolioItems: Array<string>;
252
- status: ApplicationStatus;
253
- appliedAt: bigint;
254
- bump: number;
255
- };
256
-
257
- /**
258
- * This code was AUTOGENERATED using the Codama library.
259
- * Please DO NOT EDIT THIS FILE, instead use visitors
260
- * to add features, then rerun Codama to update it.
261
- *
262
- * @see https://github.com/codama-idl/codama
263
- */
264
-
265
- type JobPosting$1 = {
266
- discriminator: ReadonlyUint8Array;
267
- employer: Address;
268
- title: string;
269
- description: string;
270
- requirements: Array<string>;
271
- budget: bigint;
272
- deadline: bigint;
273
- skillsNeeded: Array<string>;
274
- budgetMin: bigint;
275
- budgetMax: bigint;
276
- paymentToken: Address;
277
- jobType: string;
278
- experienceLevel: string;
279
- isActive: boolean;
280
- applicationsCount: number;
281
- createdAt: bigint;
282
- updatedAt: bigint;
283
- bump: number;
284
- };
285
-
286
- /**
287
- * This code was AUTOGENERATED using the Codama library.
288
- * Please DO NOT EDIT THIS FILE, instead use visitors
289
- * to add features, then rerun Codama to update it.
290
- *
291
- * @see https://github.com/codama-idl/codama
292
- */
293
-
294
- type ServiceListing = {
295
- discriminator: ReadonlyUint8Array;
296
- agent: Address;
297
- owner: Address;
298
- title: string;
299
- description: string;
300
- price: bigint;
301
- tokenMint: Address;
302
- serviceType: string;
303
- paymentToken: Address;
304
- estimatedDelivery: bigint;
305
- tags: Array<string>;
306
- isActive: boolean;
307
- totalOrders: number;
308
- rating: number;
309
- createdAt: bigint;
310
- updatedAt: bigint;
311
- transferHook: Option<Address>;
312
- bump: number;
313
- };
314
-
315
- /**
316
- * This code was AUTOGENERATED using the Codama library.
317
- * Please DO NOT EDIT THIS FILE, instead use visitors
318
- * to add features, then rerun Codama to update it.
319
- *
320
- * @see https://github.com/codama-idl/codama
321
- */
322
-
323
- type ServicePurchase = {
324
- discriminator: ReadonlyUint8Array;
325
- customer: Address;
326
- agent: Address;
327
- listing: Address;
328
- listingId: bigint;
329
- quantity: number;
330
- requirements: Array<string>;
331
- customInstructions: string;
332
- deadline: bigint;
333
- paymentAmount: bigint;
334
- paymentToken: Address;
335
- status: PurchaseStatus;
336
- purchasedAt: bigint;
337
- updatedAt: bigint;
338
- transferHookApplied: boolean;
339
- bump: number;
340
- };
341
-
342
- /**
343
- * This code was AUTOGENERATED using the Codama library.
344
- * Please DO NOT EDIT THIS FILE, instead use visitors
345
- * to add features, then rerun Codama to update it.
346
- *
347
- * @see https://github.com/codama-idl/codama
348
- */
349
-
350
- declare const GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS: Address<"GpvFxus2eecFKcqa2bhxXeRjpstPeCEJNX216TQCcNC9">;
351
-
352
- /**
353
- * This code was AUTOGENERATED using the Codama library.
354
- * Please DO NOT EDIT THIS FILE, instead use visitors
355
- * to add features, then rerun Codama to update it.
356
- *
357
- * @see https://github.com/codama-idl/codama
358
- */
359
-
360
- type AcceptJobApplicationInstruction<TProgram extends string = typeof GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS, TAccountJobContract extends string | AccountMeta<string> = string, TAccountJobPosting extends string | AccountMeta<string> = string, TAccountJobApplication extends string | AccountMeta<string> = string, TAccountEmployer extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
361
- TAccountJobContract extends string ? WritableAccount<TAccountJobContract> : TAccountJobContract,
362
- TAccountJobPosting extends string ? WritableAccount<TAccountJobPosting> : TAccountJobPosting,
363
- TAccountJobApplication extends string ? WritableAccount<TAccountJobApplication> : TAccountJobApplication,
364
- TAccountEmployer extends string ? WritableSignerAccount<TAccountEmployer> & AccountSignerMeta<TAccountEmployer> : TAccountEmployer,
365
- TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
366
- ...TRemainingAccounts
367
- ]>;
368
-
369
- /**
370
- * This code was AUTOGENERATED using the Codama library.
371
- * Please DO NOT EDIT THIS FILE, instead use visitors
372
- * to add features, then rerun Codama to update it.
373
- *
374
- * @see https://github.com/codama-idl/codama
375
- */
376
-
377
- type ApplyToJobInstruction<TProgram extends string = typeof GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS, TAccountJobApplication extends string | AccountMeta<string> = string, TAccountJobPosting extends string | AccountMeta<string> = string, TAccountAgent extends string | AccountMeta<string> = string, TAccountAgentOwner extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
378
- TAccountJobApplication extends string ? WritableAccount<TAccountJobApplication> : TAccountJobApplication,
379
- TAccountJobPosting extends string ? WritableAccount<TAccountJobPosting> : TAccountJobPosting,
380
- TAccountAgent extends string ? ReadonlyAccount<TAccountAgent> : TAccountAgent,
381
- TAccountAgentOwner extends string ? WritableSignerAccount<TAccountAgentOwner> & AccountSignerMeta<TAccountAgentOwner> : TAccountAgentOwner,
382
- TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
383
- ...TRemainingAccounts
384
- ]>;
385
-
386
- /**
387
- * This code was AUTOGENERATED using the Codama library.
388
- * Please DO NOT EDIT THIS FILE, instead use visitors
389
- * to add features, then rerun Codama to update it.
390
- *
391
- * @see https://github.com/codama-idl/codama
392
- */
393
-
394
- type ApproveExtensionInstruction<TProgram extends string = typeof GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS, TAccountExtension extends string | AccountMeta<string> = string, TAccountAuthority extends string | AccountMeta<string> = string, TAccountClock extends string | AccountMeta<string> = "SysvarC1ock11111111111111111111111111111111", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
395
- TAccountExtension extends string ? WritableAccount<TAccountExtension> : TAccountExtension,
396
- TAccountAuthority extends string ? ReadonlySignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
397
- TAccountClock extends string ? ReadonlyAccount<TAccountClock> : TAccountClock,
398
- ...TRemainingAccounts
399
- ]>;
400
-
401
- /**
402
- * This code was AUTOGENERATED using the Codama library.
403
- * Please DO NOT EDIT THIS FILE, instead use visitors
404
- * to add features, then rerun Codama to update it.
405
- *
406
- * @see https://github.com/codama-idl/codama
407
- */
408
-
409
- type CastVoteInstruction<TProgram extends string = typeof GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS, TAccountProposal extends string | AccountMeta<string> = string, TAccountVoter extends string | AccountMeta<string> = string, TAccountVoterTokenAccount extends string | AccountMeta<string> = string, TAccountDelegateTokenAccount extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
410
- TAccountProposal extends string ? WritableAccount<TAccountProposal> : TAccountProposal,
411
- TAccountVoter extends string ? WritableSignerAccount<TAccountVoter> & AccountSignerMeta<TAccountVoter> : TAccountVoter,
412
- TAccountVoterTokenAccount extends string ? ReadonlyAccount<TAccountVoterTokenAccount> : TAccountVoterTokenAccount,
413
- TAccountDelegateTokenAccount extends string ? ReadonlyAccount<TAccountDelegateTokenAccount> : TAccountDelegateTokenAccount,
414
- ...TRemainingAccounts
415
- ]>;
416
-
417
- /**
418
- * This code was AUTOGENERATED using the Codama library.
419
- * Please DO NOT EDIT THIS FILE, instead use visitors
420
- * to add features, then rerun Codama to update it.
421
- *
422
- * @see https://github.com/codama-idl/codama
423
- */
424
-
425
- type CreateJobPostingInstruction<TProgram extends string = typeof GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS, TAccountJobPosting extends string | AccountMeta<string> = string, TAccountEmployer extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
426
- TAccountJobPosting extends string ? WritableAccount<TAccountJobPosting> : TAccountJobPosting,
427
- TAccountEmployer extends string ? WritableSignerAccount<TAccountEmployer> & AccountSignerMeta<TAccountEmployer> : TAccountEmployer,
428
- TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
429
- ...TRemainingAccounts
430
- ]>;
431
-
432
- /**
433
- * This code was AUTOGENERATED using the Codama library.
434
- * Please DO NOT EDIT THIS FILE, instead use visitors
435
- * to add features, then rerun Codama to update it.
436
- *
437
- * @see https://github.com/codama-idl/codama
438
- */
439
-
440
- type CreateServiceAuctionInstruction<TProgram extends string = typeof GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS, TAccountAuction extends string | AccountMeta<string> = string, TAccountAgent extends string | AccountMeta<string> = string, TAccountUserRegistry extends string | AccountMeta<string> = string, TAccountCreator extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TAccountClock extends string | AccountMeta<string> = "SysvarC1ock11111111111111111111111111111111", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
441
- TAccountAuction extends string ? WritableAccount<TAccountAuction> : TAccountAuction,
442
- TAccountAgent extends string ? ReadonlyAccount<TAccountAgent> : TAccountAgent,
443
- TAccountUserRegistry extends string ? ReadonlyAccount<TAccountUserRegistry> : TAccountUserRegistry,
444
- TAccountCreator extends string ? WritableSignerAccount<TAccountCreator> & AccountSignerMeta<TAccountCreator> : TAccountCreator,
445
- TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
446
- TAccountClock extends string ? ReadonlyAccount<TAccountClock> : TAccountClock,
447
- ...TRemainingAccounts
448
- ]>;
449
-
450
- /**
451
- * This code was AUTOGENERATED using the Codama library.
452
- * Please DO NOT EDIT THIS FILE, instead use visitors
453
- * to add features, then rerun Codama to update it.
454
- *
455
- * @see https://github.com/codama-idl/codama
456
- */
457
-
458
- type CreateServiceListingInstruction<TProgram extends string = typeof GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS, TAccountServiceListing extends string | AccountMeta<string> = string, TAccountAgent extends string | AccountMeta<string> = string, TAccountUserRegistry extends string | AccountMeta<string> = string, TAccountCreator extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TAccountClock extends string | AccountMeta<string> = "SysvarC1ock11111111111111111111111111111111", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
459
- TAccountServiceListing extends string ? WritableAccount<TAccountServiceListing> : TAccountServiceListing,
460
- TAccountAgent extends string ? ReadonlyAccount<TAccountAgent> : TAccountAgent,
461
- TAccountUserRegistry extends string ? WritableAccount<TAccountUserRegistry> : TAccountUserRegistry,
462
- TAccountCreator extends string ? WritableSignerAccount<TAccountCreator> & AccountSignerMeta<TAccountCreator> : TAccountCreator,
463
- TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
464
- TAccountClock extends string ? ReadonlyAccount<TAccountClock> : TAccountClock,
465
- ...TRemainingAccounts
466
- ]>;
467
-
468
- /**
469
- * This code was AUTOGENERATED using the Codama library.
470
- * Please DO NOT EDIT THIS FILE, instead use visitors
471
- * to add features, then rerun Codama to update it.
472
- *
473
- * @see https://github.com/codama-idl/codama
474
- */
475
-
476
- type CreateToken2022MintInstruction<TProgram extends string = typeof GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS, TAccountAuthority extends string | AccountMeta<string> = string, TAccountAgent extends string | AccountMeta<string> = string, TAccountMint extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb", TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TAccountRent extends string | AccountMeta<string> = "SysvarRent111111111111111111111111111111111", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
477
- TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
478
- TAccountAgent extends string ? ReadonlyAccount<TAccountAgent> : TAccountAgent,
479
- TAccountMint extends string ? WritableSignerAccount<TAccountMint> & AccountSignerMeta<TAccountMint> : TAccountMint,
480
- TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
481
- TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
482
- TAccountRent extends string ? ReadonlyAccount<TAccountRent> : TAccountRent,
483
- ...TRemainingAccounts
484
- ]>;
485
-
486
- /**
487
- * This code was AUTOGENERATED using the Codama library.
488
- * Please DO NOT EDIT THIS FILE, instead use visitors
489
- * to add features, then rerun Codama to update it.
490
- *
491
- * @see https://github.com/codama-idl/codama
492
- */
493
-
494
- type DelegateVoteInstruction<TProgram extends string = typeof GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS, TAccountProposal extends string | AccountMeta<string> = string, TAccountDelegator extends string | AccountMeta<string> = string, TAccountDelegate extends string | AccountMeta<string> = string, TAccountDelegatorTokenAccount extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
495
- TAccountProposal extends string ? WritableAccount<TAccountProposal> : TAccountProposal,
496
- TAccountDelegator extends string ? WritableSignerAccount<TAccountDelegator> & AccountSignerMeta<TAccountDelegator> : TAccountDelegator,
497
- TAccountDelegate extends string ? ReadonlyAccount<TAccountDelegate> : TAccountDelegate,
498
- TAccountDelegatorTokenAccount extends string ? ReadonlyAccount<TAccountDelegatorTokenAccount> : TAccountDelegatorTokenAccount,
499
- ...TRemainingAccounts
500
- ]>;
501
-
502
- /**
503
- * This code was AUTOGENERATED using the Codama library.
504
- * Please DO NOT EDIT THIS FILE, instead use visitors
505
- * to add features, then rerun Codama to update it.
506
- *
507
- * @see https://github.com/codama-idl/codama
508
- */
509
-
510
- type ExecuteProposalInstruction<TProgram extends string = typeof GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS, TAccountProposal extends string | AccountMeta<string> = string, TAccountExecutor extends string | AccountMeta<string> = string, TAccountTargetProgram extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
511
- TAccountProposal extends string ? WritableAccount<TAccountProposal> : TAccountProposal,
512
- TAccountExecutor extends string ? WritableSignerAccount<TAccountExecutor> & AccountSignerMeta<TAccountExecutor> : TAccountExecutor,
513
- TAccountTargetProgram extends string ? ReadonlyAccount<TAccountTargetProgram> : TAccountTargetProgram,
514
- ...TRemainingAccounts
515
- ]>;
516
-
517
- /**
518
- * This code was AUTOGENERATED using the Codama library.
519
- * Please DO NOT EDIT THIS FILE, instead use visitors
520
- * to add features, then rerun Codama to update it.
521
- *
522
- * @see https://github.com/codama-idl/codama
523
- */
524
-
525
- type FinalizeAuctionInstruction<TProgram extends string = typeof GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS, TAccountAuction extends string | AccountMeta<string> = string, TAccountAuthority extends string | AccountMeta<string> = string, TAccountClock extends string | AccountMeta<string> = "SysvarC1ock11111111111111111111111111111111", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
526
- TAccountAuction extends string ? WritableAccount<TAccountAuction> : TAccountAuction,
527
- TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
528
- TAccountClock extends string ? ReadonlyAccount<TAccountClock> : TAccountClock,
529
- ...TRemainingAccounts
530
- ]>;
531
-
532
- /**
533
- * This code was AUTOGENERATED using the Codama library.
534
- * Please DO NOT EDIT THIS FILE, instead use visitors
535
- * to add features, then rerun Codama to update it.
536
- *
537
- * @see https://github.com/codama-idl/codama
538
- */
539
-
540
- type InitializeConfidentialTransferMintInstruction<TProgram extends string = typeof GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS, TAccountAuthority extends string | AccountMeta<string> = string, TAccountMint extends string | AccountMeta<string> = string, TAccountAgent extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
541
- TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
542
- TAccountMint extends string ? WritableAccount<TAccountMint> : TAccountMint,
543
- TAccountAgent extends string ? ReadonlyAccount<TAccountAgent> : TAccountAgent,
544
- TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
545
- ...TRemainingAccounts
546
- ]>;
547
-
548
- /**
549
- * This code was AUTOGENERATED using the Codama library.
550
- * Please DO NOT EDIT THIS FILE, instead use visitors
551
- * to add features, then rerun Codama to update it.
552
- *
553
- * @see https://github.com/codama-idl/codama
554
- */
555
-
556
- type InitializeDefaultAccountStateInstruction<TProgram extends string = typeof GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS, TAccountAuthority extends string | AccountMeta<string> = string, TAccountMint extends string | AccountMeta<string> = string, TAccountAgent extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
557
- TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
558
- TAccountMint extends string ? WritableAccount<TAccountMint> : TAccountMint,
559
- TAccountAgent extends string ? ReadonlyAccount<TAccountAgent> : TAccountAgent,
560
- TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
561
- ...TRemainingAccounts
562
- ]>;
563
-
564
- /**
565
- * This code was AUTOGENERATED using the Codama library.
566
- * Please DO NOT EDIT THIS FILE, instead use visitors
567
- * to add features, then rerun Codama to update it.
568
- *
569
- * @see https://github.com/codama-idl/codama
570
- */
571
-
572
- type InitializeGovernanceProposalInstruction<TProgram extends string = typeof GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS, TAccountProposal extends string | AccountMeta<string> = string, TAccountProposer extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
573
- TAccountProposal extends string ? WritableAccount<TAccountProposal> : TAccountProposal,
574
- TAccountProposer extends string ? WritableSignerAccount<TAccountProposer> & AccountSignerMeta<TAccountProposer> : TAccountProposer,
575
- TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
576
- ...TRemainingAccounts
577
- ]>;
578
-
579
- /**
580
- * This code was AUTOGENERATED using the Codama library.
581
- * Please DO NOT EDIT THIS FILE, instead use visitors
582
- * to add features, then rerun Codama to update it.
583
- *
584
- * @see https://github.com/codama-idl/codama
585
- */
586
-
587
- type InitializeInterestBearingConfigInstruction<TProgram extends string = typeof GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS, TAccountAuthority extends string | AccountMeta<string> = string, TAccountMint extends string | AccountMeta<string> = string, TAccountAgent extends string | AccountMeta<string> = string, TAccountRateAuthority extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
588
- TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
589
- TAccountMint extends string ? WritableAccount<TAccountMint> : TAccountMint,
590
- TAccountAgent extends string ? ReadonlyAccount<TAccountAgent> : TAccountAgent,
591
- TAccountRateAuthority extends string ? ReadonlyAccount<TAccountRateAuthority> : TAccountRateAuthority,
592
- TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
593
- ...TRemainingAccounts
594
- ]>;
595
-
596
- /**
597
- * This code was AUTOGENERATED using the Codama library.
598
- * Please DO NOT EDIT THIS FILE, instead use visitors
599
- * to add features, then rerun Codama to update it.
600
- *
601
- * @see https://github.com/codama-idl/codama
602
- */
603
-
604
- type InitializeMintCloseAuthorityInstruction<TProgram extends string = typeof GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS, TAccountAuthority extends string | AccountMeta<string> = string, TAccountMint extends string | AccountMeta<string> = string, TAccountAgent extends string | AccountMeta<string> = string, TAccountCloseAuthority extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
605
- TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
606
- TAccountMint extends string ? WritableAccount<TAccountMint> : TAccountMint,
607
- TAccountAgent extends string ? ReadonlyAccount<TAccountAgent> : TAccountAgent,
608
- TAccountCloseAuthority extends string ? ReadonlyAccount<TAccountCloseAuthority> : TAccountCloseAuthority,
609
- TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
610
- ...TRemainingAccounts
611
- ]>;
612
-
613
- /**
614
- * This code was AUTOGENERATED using the Codama library.
615
- * Please DO NOT EDIT THIS FILE, instead use visitors
616
- * to add features, then rerun Codama to update it.
617
- *
618
- * @see https://github.com/codama-idl/codama
619
- */
620
-
621
- type PlaceAuctionBidInstruction<TProgram extends string = typeof GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS, TAccountAuction extends string | AccountMeta<string> = string, TAccountUserRegistry extends string | AccountMeta<string> = string, TAccountBidder extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TAccountClock extends string | AccountMeta<string> = "SysvarC1ock11111111111111111111111111111111", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
622
- TAccountAuction extends string ? WritableAccount<TAccountAuction> : TAccountAuction,
623
- TAccountUserRegistry extends string ? ReadonlyAccount<TAccountUserRegistry> : TAccountUserRegistry,
624
- TAccountBidder extends string ? WritableSignerAccount<TAccountBidder> & AccountSignerMeta<TAccountBidder> : TAccountBidder,
625
- TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
626
- TAccountClock extends string ? ReadonlyAccount<TAccountClock> : TAccountClock,
627
- ...TRemainingAccounts
628
- ]>;
629
-
630
- /**
631
- * This code was AUTOGENERATED using the Codama library.
632
- * Please DO NOT EDIT THIS FILE, instead use visitors
633
- * to add features, then rerun Codama to update it.
634
- *
635
- * @see https://github.com/codama-idl/codama
636
- */
637
-
638
- type PurchaseServiceInstruction<TProgram extends string = typeof GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS, TAccountServicePurchase extends string | AccountMeta<string> = string, TAccountServiceListing extends string | AccountMeta<string> = string, TAccountBuyer extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
639
- TAccountServicePurchase extends string ? WritableAccount<TAccountServicePurchase> : TAccountServicePurchase,
640
- TAccountServiceListing extends string ? WritableAccount<TAccountServiceListing> : TAccountServiceListing,
641
- TAccountBuyer extends string ? WritableSignerAccount<TAccountBuyer> & AccountSignerMeta<TAccountBuyer> : TAccountBuyer,
642
- TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
643
- ...TRemainingAccounts
644
- ]>;
645
-
646
- /**
647
- * This code was AUTOGENERATED using the Codama library.
648
- * Please DO NOT EDIT THIS FILE, instead use visitors
649
- * to add features, then rerun Codama to update it.
650
- *
651
- * @see https://github.com/codama-idl/codama
652
- */
653
-
654
- type TallyVotesInstruction<TProgram extends string = typeof GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS, TAccountProposal extends string | AccountMeta<string> = string, TAccountAuthority extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
655
- TAccountProposal extends string ? WritableAccount<TAccountProposal> : TAccountProposal,
656
- TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
657
- ...TRemainingAccounts
658
- ]>;
659
-
660
- /**
661
- * This code was AUTOGENERATED using the Codama library.
662
- * Please DO NOT EDIT THIS FILE, instead use visitors
663
- * to add features, then rerun Codama to update it.
664
- *
665
- * @see https://github.com/codama-idl/codama
666
- */
667
-
668
- type UpdateAgentServiceInstruction<TProgram extends string = typeof GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS, TAccountAgent extends string | AccountMeta<string> = string, TAccountOwner extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
669
- TAccountAgent extends string ? WritableAccount<TAccountAgent> : TAccountAgent,
670
- TAccountOwner extends string ? WritableSignerAccount<TAccountOwner> & AccountSignerMeta<TAccountOwner> : TAccountOwner,
671
- TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
672
- ...TRemainingAccounts
673
- ]>;
674
-
675
- type RpcApi = Rpc<GetLatestBlockhashApi & SendTransactionApi & GetAccountInfoApi & SimulateTransactionApi & GetFeeForMessageApi & GetProgramAccountsApi>;
676
- type ExtendedRpcApi = RpcApi & Rpc<GetEpochInfoApi & GetSignatureStatusesApi & GetMultipleAccountsApi>;
677
- type RpcSubscriptionApi = RpcSubscriptions<SignatureNotificationsApi & SlotNotificationsApi>;
678
- type Commitment = 'processed' | 'confirmed' | 'finalized';
679
-
680
- interface GhostSpeakConfig {
681
- programId?: Address$1;
682
- rpc: ExtendedRpcApi;
683
- rpcSubscriptions?: RpcSubscriptionApi;
684
- commitment?: Commitment;
685
- transactionTimeout?: number;
686
- defaultFeePayer?: Address$1;
687
- retryConfig?: RetryConfig;
688
- cluster?: 'mainnet-beta' | 'devnet' | 'testnet' | 'localnet';
689
- rpcEndpoint?: string;
690
- wsEndpoint?: string;
691
- /** Token 2022 configuration options */
692
- token2022?: Token2022Config;
693
- /** IPFS configuration for large content storage */
694
- ipfsConfig?: IPFSConfig;
695
- /** Credential configuration for Crossmint sync */
696
- credentials?: CredentialConfig;
697
- }
698
- interface CredentialConfig {
699
- crossmintApiKey?: string;
700
- crossmintEnvironment?: 'staging' | 'production';
701
- crossmintChain?: 'base-sepolia' | 'polygon-amoy' | 'base' | 'polygon';
702
- templates?: {
703
- agentIdentity?: string;
704
- reputation?: string;
705
- jobCompletion?: string;
706
- };
707
- }
708
- interface Token2022Config {
709
- /** Enable Token 2022 features by default */
710
- enabled?: boolean;
711
- /** Default behavior for transfer fees */
712
- defaultExpectTransferFees?: boolean;
713
- /** Maximum transfer fee slippage (basis points) */
714
- maxFeeSlippageBasisPoints?: number;
715
- /** Enable confidential transfers by default */
716
- enableConfidentialTransfers?: boolean;
717
- /** Default Token 2022 program address (for custom deployments) */
718
- programAddress?: Address$1;
719
- /** Cache token program detection results for this many seconds */
720
- tokenProgramCacheTtl?: number;
721
- }
722
- interface RetryConfig {
723
- maxRetries?: number;
724
- baseDelay?: number;
725
- maxDelay?: number;
726
- backoffMultiplier?: number;
727
- retryableErrors?: string[];
728
- }
729
- interface AgentWithAddress {
730
- address: Address$1;
731
- data: Agent;
732
- }
733
- interface ServiceListingWithAddress {
734
- address: Address$1;
735
- data: ServiceListing;
736
- }
737
- interface AgentRegistrationData {
738
- name: string;
739
- description: string;
740
- capabilities: string[];
741
- metadataUri: string;
742
- serviceEndpoint: string;
743
- }
744
- interface AgentAccount {
745
- owner: Address$1;
746
- name: string;
747
- description: string;
748
- capabilities: string[];
749
- metadataUri: string;
750
- serviceEndpoint: string;
751
- isActive: boolean;
752
- registeredAt: bigint;
753
- reputation: number;
754
- totalEarnings: bigint;
755
- totalJobs: number;
756
- successRate: number;
757
- bump: number;
758
- }
759
- interface ServiceListingData {
760
- id: string;
761
- agent: Address$1;
762
- title: string;
763
- description: string;
764
- price: bigint;
765
- currency: Address$1;
766
- category: string;
767
- isActive: boolean;
768
- createdAt: bigint;
769
- }
770
- interface JobPosting {
771
- id: string;
772
- poster: Address$1;
773
- title: string;
774
- description: string;
775
- budget: bigint;
776
- currency: Address$1;
777
- deadline: bigint;
778
- requirements: string[];
779
- isActive: boolean;
780
- createdAt: bigint;
781
- }
782
- interface EscrowAccount {
783
- buyer: Address$1;
784
- seller: Address$1;
785
- agent: Address$1;
786
- amount: bigint;
787
- currency: Address$1;
788
- status: EscrowStatus;
789
- createdAt: bigint;
790
- completedAt?: bigint;
791
- }
792
- declare enum EscrowStatus {
793
- Active = "Active",
794
- Completed = "Completed",
795
- Disputed = "Disputed",
796
- Cancelled = "Cancelled"
797
- }
798
- interface A2ASession {
799
- sessionId: bigint;
800
- initiator: Address$1;
801
- responder: Address$1;
802
- sessionType: string;
803
- metadata: string;
804
- isActive: boolean;
805
- createdAt: bigint;
806
- expiresAt: bigint;
807
- }
808
- interface A2AMessage {
809
- messageId: bigint;
810
- session: Address$1;
811
- sender: Address$1;
812
- content: string;
813
- messageType: string;
814
- sentAt: bigint;
815
- }
816
- declare enum PricingModel {
817
- Fixed = "Fixed",
818
- Hourly = "Hourly",
819
- PerTask = "PerTask",
820
- Subscription = "Subscription",
821
- Auction = "Auction"
822
- }
823
- declare class GhostSpeakError extends Error {
824
- code?: string | undefined;
825
- constructor(message: string, code?: string | undefined);
826
- }
827
- interface RegisterAgentParams {
828
- agentData: AgentRegistrationData;
829
- }
830
- interface CreateServiceListingParams {
831
- title: string;
832
- description: string;
833
- price: bigint;
834
- currency: Address$1;
835
- category: string;
836
- }
837
- interface CreateJobPostingParams {
838
- title: string;
839
- description: string;
840
- budget: bigint;
841
- currency: Address$1;
842
- deadline: bigint;
843
- requirements: string[];
844
- }
845
- interface CreateEscrowParams {
846
- seller: Address$1;
847
- agent: Address$1;
848
- amount: bigint;
849
- currency: Address$1;
850
- }
851
- interface CreateA2ASessionParams {
852
- responder: Address$1;
853
- sessionType: string;
854
- metadata: string;
855
- expiresAt: bigint;
856
- }
857
- interface SendA2AMessageParams {
858
- session: Address$1;
859
- content: string;
860
- messageType: string;
861
- }
862
- interface RpcResponse<T> {
863
- value: T | null;
864
- }
865
- interface RpcAccountInfo {
866
- executable: boolean;
867
- lamports: bigint;
868
- owner: Address$1;
869
- rentEpoch: bigint;
870
- space: bigint;
871
- data: string | Uint8Array;
872
- }
873
- interface RpcProgramAccount {
874
- pubkey: Address$1;
875
- account: RpcAccountInfo;
876
- }
877
- interface RpcProgramAccountsResponse {
878
- value: RpcProgramAccount[] | null;
879
- }
880
- interface RpcAccountInfoResponse {
881
- value: RpcAccountInfo | null;
882
- }
883
- interface RpcMultipleAccountsResponse {
884
- value: (RpcAccountInfo | null)[];
885
- }
886
- interface TransactionResponse {
887
- signature: string;
888
- confirmationStatus?: Commitment;
889
- err?: unknown | null;
890
- }
891
- interface SimulatedTransactionResponse {
892
- value: {
893
- err?: unknown | null;
894
- logs?: string[];
895
- unitsConsumed?: number;
896
- };
897
- }
898
- interface SolanaRpcClient {
899
- getAccountInfo(address: Address$1, options?: {
900
- commitment?: Commitment;
901
- encoding?: string;
902
- }): Promise<RpcAccountInfoResponse>;
903
- getMultipleAccounts(addresses: Address$1[], options?: {
904
- commitment?: Commitment;
905
- encoding?: string;
906
- }): Promise<RpcMultipleAccountsResponse>;
907
- getProgramAccounts(programId: Address$1, options?: {
908
- commitment?: Commitment;
909
- encoding?: string;
910
- filters?: unknown[];
911
- }): Promise<RpcProgramAccountsResponse>;
912
- sendTransaction(transaction: unknown, options?: {
913
- commitment?: Commitment;
914
- }): Promise<TransactionResponse>;
915
- simulateTransaction(transaction: unknown, options?: {
916
- commitment?: Commitment;
917
- }): Promise<SimulatedTransactionResponse>;
918
- }
919
- interface EmergencyConfig {
920
- emergencyDelay?: bigint;
921
- emergencyThreshold?: number;
922
- emergencySigners?: Address$1[];
923
- canEmergencyPause?: boolean;
924
- emergencyContact?: string;
925
- }
926
-
927
- /**
928
- * Developer Tools for GhostSpeak SDK
929
- *
930
- * Provides debugging, inspection, and development utilities
931
- */
932
-
933
- /**
934
- * Transaction analysis result
935
- */
936
- interface TransactionAnalysis {
937
- instructions: InstructionAnalysis[];
938
- totalAccounts: number;
939
- signerCount: number;
940
- writableAccounts: Address$1[];
941
- readonlyAccounts: Address$1[];
942
- estimatedSize: number;
943
- estimatedComputeUnits: bigint;
944
- estimatedFee: bigint;
945
- warnings: string[];
946
- }
947
- /**
948
- * Individual instruction analysis
949
- */
950
- interface InstructionAnalysis {
951
- index: number;
952
- programId: Address$1;
953
- accountCount: number;
954
- dataSize: number;
955
- humanReadable: string;
956
- accounts: AccountInfo[];
957
- }
958
- /**
959
- * Account information in instruction
960
- */
961
- interface AccountInfo {
962
- address: Address$1;
963
- isWritable: boolean;
964
- isSigner: boolean;
965
- role: AccountRole;
966
- }
967
-
968
- /**
969
- * Type for instruction-like objects from generated code
970
- */
971
- type InstructionLike = {
972
- programAddress: Address$1;
973
- accounts?: readonly unknown[];
974
- data?: unknown;
975
- };
976
- /**
977
- * Unified instruction builder that eliminates duplication across all instruction classes.
978
- * This is the single source of truth for instruction execution patterns.
979
- */
980
- declare class InstructionBuilder {
981
- private rpcClient;
982
- private config;
983
- private devTools;
984
- private debugMode;
985
- constructor(config: GhostSpeakConfig);
986
- /**
987
- * Execute a single instruction with unified error handling and transaction patterns
988
- */
989
- execute<T = string>(instructionName: string, instructionGetter: () => Promise<InstructionLike> | InstructionLike, signers: TransactionSigner[], options?: {
990
- simulate?: boolean;
991
- returnDetails?: boolean;
992
- skipPreflight?: boolean;
993
- maxRetries?: number;
994
- }): Promise<T>;
995
- /**
996
- * Execute multiple instructions in a single transaction
997
- */
998
- executeBatch<T = string>(batchName: string, instructionGetters: (() => Promise<InstructionLike> | InstructionLike)[], signers: TransactionSigner[], options?: {
999
- simulate?: boolean;
1000
- returnDetails?: boolean;
1001
- skipPreflight?: boolean;
1002
- }): Promise<T>;
1003
- /**
1004
- * Get and decode account data with unified error handling
1005
- */
1006
- getAccount<T>(address: Address$1, decoderImportName: string): Promise<T | null>;
1007
- /**
1008
- * Get multiple accounts with unified pattern
1009
- */
1010
- getAccounts<T>(addresses: Address$1[], decoderImportName: string): Promise<(T | null)[]>;
1011
- /**
1012
- * Get program accounts with filters
1013
- */
1014
- getProgramAccounts<T>(decoderImportName: string, filters?: ({
1015
- dataSize: bigint;
1016
- } | {
1017
- memcmp: {
1018
- offset: bigint;
1019
- bytes: string;
1020
- encoding?: 'base58' | 'base64';
1021
- };
1022
- })[]): Promise<{
1023
- address: Address$1;
1024
- data: T;
1025
- }[]>;
1026
- /**
1027
- * Enable debug mode for next transaction
1028
- */
1029
- enableDebug(): this;
1030
- /**
1031
- * Debug transaction - analyze without executing
1032
- */
1033
- debug(instructionName: string, instructionGetters: (() => Promise<InstructionLike> | InstructionLike)[]): Promise<TransactionAnalysis>;
1034
- /**
1035
- * Get human-readable explanation of transaction
1036
- */
1037
- explain(instructionName: string, instructionGetters: (() => Promise<InstructionLike> | InstructionLike)[]): Promise<string>;
1038
- /**
1039
- * Estimate transaction cost
1040
- */
1041
- estimateCost(instructionGetters: (() => Promise<InstructionLike> | InstructionLike)[]): Promise<bigint>;
1042
- private sendAndConfirm;
1043
- private simulateInstruction;
1044
- private simulateBatch;
1045
- private estimateTransactionSize;
1046
- private extractRawData;
1047
- /**
1048
- * Create a communication session instruction
1049
- */
1050
- createCommunicationSession(_params: {
1051
- sessionId: bigint;
1052
- initiator: Address$1;
1053
- initiatorType: ParticipantType;
1054
- responder: Address$1;
1055
- responderType: ParticipantType;
1056
- sessionType: string;
1057
- metadata: string;
1058
- expiresAt: bigint;
1059
- }): Promise<InstructionLike>;
1060
- /**
1061
- * Send a communication message instruction
1062
- */
1063
- sendCommunicationMessage(_sessionAddress: Address$1, _params: {
1064
- messageId: bigint;
1065
- senderType: unknown;
1066
- content: string;
1067
- messageType: string;
1068
- attachments: string[];
1069
- }): Promise<InstructionLike>;
1070
- /**
1071
- * Update participant status instruction
1072
- */
1073
- updateParticipantStatus(_params: {
1074
- participant: Address$1;
1075
- participantType: unknown;
1076
- servicesOffered: string[];
1077
- availability: boolean;
1078
- reputationScore: number;
1079
- }): Promise<InstructionLike>;
1080
- }
1081
-
1082
- /**
1083
- * Solana cluster types for URL generation
1084
- */
1085
- type SolanaCluster = 'mainnet-beta' | 'devnet' | 'testnet' | 'localnet';
1086
- /**
1087
- * Transaction result with verification URLs
1088
- */
1089
- interface TransactionResult {
1090
- signature: string | Signature$1;
1091
- cluster: SolanaCluster;
1092
- urls: {
1093
- solanaExplorer: string;
1094
- solscan: string;
1095
- solanaFM: string;
1096
- xray: string;
1097
- };
1098
- commitment: Commitment;
1099
- timestamp: number;
1100
- }
1101
-
1102
- type Signature = string;
1103
- type IInstruction = Instruction;
1104
-
1105
- /**
1106
- * Base class for all instruction modules using the unified InstructionBuilder.
1107
- * This replaces the old BaseInstructions class with a much simpler pattern.
1108
- */
1109
- declare abstract class BaseModule {
1110
- protected builder: InstructionBuilder;
1111
- protected config: GhostSpeakConfig;
1112
- private _debugMode;
1113
- constructor(config: GhostSpeakConfig);
1114
- /**
1115
- * Enable debug mode for next operation
1116
- */
1117
- debug(): this;
1118
- /**
1119
- * Execute a single instruction
1120
- */
1121
- protected execute(instructionName: string, instructionGetter: () => Promise<IInstruction> | IInstruction, signers: TransactionSigner[]): Promise<string>;
1122
- /**
1123
- * Execute a single instruction with detailed result
1124
- */
1125
- protected executeWithDetails(instructionName: string, instructionGetter: () => Promise<IInstruction> | IInstruction, signers: TransactionSigner[]): Promise<TransactionResult>;
1126
- /**
1127
- * Execute multiple instructions in a batch
1128
- */
1129
- protected executeBatch(batchName: string, instructionGetters: (() => Promise<IInstruction> | IInstruction)[], signers: TransactionSigner[]): Promise<Signature>;
1130
- /**
1131
- * Simulate an instruction
1132
- */
1133
- protected simulate(instructionName: string, instructionGetter: () => Promise<IInstruction> | IInstruction, signers: TransactionSigner[]): Promise<unknown>;
1134
- /**
1135
- * Simulate an instruction (public accessor)
1136
- */
1137
- simulateInstruction(instructionName: string, instructionGetter: () => Promise<IInstruction> | IInstruction, signers: TransactionSigner[]): Promise<unknown>;
1138
- /**
1139
- * Estimate transaction cost
1140
- */
1141
- protected estimateCost(instructionGetters: (() => Promise<IInstruction> | IInstruction)[]): Promise<bigint>;
1142
- /**
1143
- * Get cost estimation for an instruction
1144
- */
1145
- getCost(instructionName: string, instructionGetter: () => Promise<IInstruction> | IInstruction): Promise<bigint>;
1146
- /**
1147
- * Get human-readable explanation
1148
- */
1149
- explain(instructionName: string, instructionGetter: () => Promise<IInstruction> | IInstruction): Promise<string>;
1150
- /**
1151
- * Debug analyze without executing
1152
- */
1153
- analyze(instructionName: string, instructionGetter: () => Promise<IInstruction> | IInstruction): Promise<unknown>;
1154
- /**
1155
- * Get decoded account
1156
- */
1157
- protected getAccount<T>(address: Address$1, decoderImportName: string): Promise<T | null>;
1158
- /**
1159
- * Get multiple decoded accounts
1160
- */
1161
- protected getAccounts<T>(addresses: Address$1[], decoderImportName: string): Promise<(T | null)[]>;
1162
- /**
1163
- * Get program accounts
1164
- */
1165
- protected getProgramAccounts<T>(decoderImportName: string, filters?: ({
1166
- dataSize: bigint;
1167
- } | {
1168
- memcmp: {
1169
- offset: bigint;
1170
- bytes: string;
1171
- encoding?: 'base58' | 'base64';
1172
- };
1173
- })[]): Promise<{
1174
- address: Address$1;
1175
- data: T;
1176
- }[]>;
1177
- /**
1178
- * Get program ID
1179
- */
1180
- protected get programId(): Address$1;
1181
- /**
1182
- * Get program ID (public accessor)
1183
- */
1184
- getProgramId(): Address$1;
1185
- /**
1186
- * Get commitment level
1187
- */
1188
- protected get commitment(): Commitment;
1189
- /**
1190
- * Get commitment level (public accessor)
1191
- */
1192
- getCommitment(): Commitment;
1193
- }
1194
-
1195
- interface Token2022MintData {
1196
- mintAuthority: Address$1 | null;
1197
- supply: bigint;
1198
- decimals: number;
1199
- isInitialized: boolean;
1200
- freezeAuthority: Address$1 | null;
1201
- extensions?: Extension[];
1202
- }
1203
- interface Extension {
1204
- extensionType: string;
1205
- data: Uint8Array;
1206
- }
1207
- /**
1208
- * Token-2022 management module
1209
- *
1210
- * Provides high-level access to Token-2022 operations including:
1211
- * - Mint creation with extensions
1212
- * - Transfer fee configuration
1213
- * - Confidential transfer setup
1214
- * - Interest bearing configuration
1215
- * - Default account state management
1216
- */
1217
- declare class Token2022Module extends BaseModule {
1218
- /**
1219
- * Get create Token-2022 mint instruction
1220
- */
1221
- getCreateToken2022MintInstruction(params: {
1222
- authority: TransactionSigner;
1223
- agent?: Address$1;
1224
- mint: TransactionSigner;
1225
- decimals: number;
1226
- freezeAuthority: Address$1 | null;
1227
- enableTransferFee: boolean;
1228
- enableConfidentialTransfers: boolean;
1229
- enableInterestBearing: boolean;
1230
- transferFeeBasisPoints?: number | null;
1231
- maximumFee?: bigint | null;
1232
- transferFeeAuthority?: Address$1 | null;
1233
- withdrawWithheldAuthority?: Address$1 | null;
1234
- autoApproveNewAccounts?: boolean | null;
1235
- auditorElgamalPubkey?: ReadonlyUint8Array | null;
1236
- interestRate?: number | null;
1237
- rateAuthority?: Address$1 | null;
1238
- closeAuthority?: Address$1 | null;
1239
- defaultAccountState?: AccountState | null;
1240
- }): Promise<CreateToken2022MintInstruction<Address$1<"GpvFxus2eecFKcqa2bhxXeRjpstPeCEJNX216TQCcNC9">, string, string, string, string, string, string, []>>;
1241
- /**
1242
- * Get initialize confidential transfer mint instruction
1243
- */
1244
- getInitializeConfidentialTransferMintInstruction(params: {
1245
- authority: TransactionSigner;
1246
- mint: Address$1;
1247
- autoApproveNewAccounts: boolean;
1248
- auditorElgamalPubkey: ReadonlyUint8Array | null;
1249
- }): Promise<InitializeConfidentialTransferMintInstruction<Address$1<"GpvFxus2eecFKcqa2bhxXeRjpstPeCEJNX216TQCcNC9">, string, string, string, string, []>>;
1250
- /**
1251
- * Get initialize interest bearing config instruction
1252
- */
1253
- getInitializeInterestBearingConfigInstruction(params: {
1254
- mint: Address$1;
1255
- authority: TransactionSigner;
1256
- rate: number;
1257
- rateAuthority: Address$1;
1258
- }): Promise<InitializeInterestBearingConfigInstruction<Address$1<"GpvFxus2eecFKcqa2bhxXeRjpstPeCEJNX216TQCcNC9">, string, string, string, string, string, []>>;
1259
- /**
1260
- * Get initialize mint close authority instruction
1261
- */
1262
- getInitializeMintCloseAuthorityInstruction(params: {
1263
- mint: Address$1;
1264
- authority: TransactionSigner;
1265
- closeAuthority: Address$1;
1266
- }): Promise<InitializeMintCloseAuthorityInstruction<Address$1<"GpvFxus2eecFKcqa2bhxXeRjpstPeCEJNX216TQCcNC9">, string, string, string, string, string, []>>;
1267
- /**
1268
- * Get initialize default account state instruction
1269
- */
1270
- getInitializeDefaultAccountStateInstruction(params: {
1271
- mint: Address$1;
1272
- authority: TransactionSigner;
1273
- state: AccountState;
1274
- }): Promise<InitializeDefaultAccountStateInstruction<Address$1<"GpvFxus2eecFKcqa2bhxXeRjpstPeCEJNX216TQCcNC9">, string, string, string, string, []>>;
1275
- /**
1276
- * Get approve extension instruction
1277
- */
1278
- getApproveExtensionInstruction(params: {
1279
- mint: Address$1;
1280
- authority: TransactionSigner;
1281
- extension: Address$1;
1282
- }): ApproveExtensionInstruction<Address$1<"GpvFxus2eecFKcqa2bhxXeRjpstPeCEJNX216TQCcNC9">, string, string, string, []>;
1283
- /**
1284
- * Create a basic Token-2022 mint
1285
- */
1286
- createMint(params: {
1287
- signer: TransactionSigner;
1288
- agentAddress: Address$1;
1289
- decimals: number;
1290
- freezeAuthority?: Address$1;
1291
- }): Promise<string>;
1292
- createMintWithTransferFees(params: {
1293
- signer: TransactionSigner;
1294
- agentAddress: Address$1;
1295
- decimals: number;
1296
- transferFeeBasisPoints: number;
1297
- maxFee: bigint;
1298
- withdrawWithheldAuthority?: Address$1;
1299
- }): Promise<string>;
1300
- createMintWithConfidentialTransfers(params: {
1301
- signer: TransactionSigner;
1302
- agentAddress: Address$1;
1303
- decimals: number;
1304
- auditorElgamalPubkey?: ReadonlyUint8Array;
1305
- autoApproveNewAccounts?: boolean;
1306
- }): Promise<string>;
1307
- createMintWithInterestBearing(params: {
1308
- signer: TransactionSigner;
1309
- agentAddress: Address$1;
1310
- decimals: number;
1311
- interestRate: number;
1312
- rateAuthority?: Address$1;
1313
- }): Promise<string>;
1314
- /**
1315
- * Create a full-featured Token-2022 mint with all extensions
1316
- */
1317
- createAdvancedMint(params: {
1318
- signer: TransactionSigner;
1319
- agentAddress: Address$1;
1320
- decimals: number;
1321
- transferFeeBasisPoints: number;
1322
- maxFee: bigint;
1323
- interestRate: number;
1324
- autoApproveConfidential?: boolean;
1325
- defaultAccountState?: AccountState;
1326
- }): Promise<string>;
1327
- /**
1328
- * Get Token-2022 mint account
1329
- */
1330
- getMint(address: Address$1): Promise<Token2022MintData | null>;
1331
- /**
1332
- * Get all Token-2022 mints created by this program
1333
- */
1334
- getAllMints(): Promise<{
1335
- address: Address$1;
1336
- data: Token2022MintData;
1337
- }[]>;
1338
- /**
1339
- * Get mints by authority
1340
- */
1341
- getMintsByAuthority(authority: Address$1): Promise<{
1342
- address: Address$1;
1343
- data: Token2022MintData;
1344
- }[]>;
1345
- private generateKeypair;
1346
- private executeMultiple;
1347
- }
1348
-
1349
- /**
1350
- * Marketplace management module
1351
- *
1352
- * Provides high-level access to marketplace operations including:
1353
- * - Service listings and purchases
1354
- * - Job postings and applications
1355
- * - Service auctions and bidding
1356
- * - Marketplace queries and filtering
1357
- */
1358
- declare class MarketplaceModule extends BaseModule {
1359
- /**
1360
- * Get create service listing instruction
1361
- */
1362
- getCreateServiceListingInstruction(params: {
1363
- agent: Address$1;
1364
- creator: TransactionSigner;
1365
- title: string;
1366
- description: string;
1367
- price: bigint;
1368
- tokenMint: Address$1;
1369
- serviceType: string;
1370
- paymentToken: Address$1;
1371
- estimatedDelivery: number;
1372
- tags: string[];
1373
- listingId: string;
1374
- }): Promise<CreateServiceListingInstruction<Address$1<"GpvFxus2eecFKcqa2bhxXeRjpstPeCEJNX216TQCcNC9">, string, string, string, string, string, string, []>>;
1375
- /**
1376
- * Get purchase service instruction
1377
- */
1378
- getPurchaseServiceInstruction(params: {
1379
- serviceListing: Address$1;
1380
- servicePurchase: Address$1;
1381
- buyer: TransactionSigner;
1382
- listingId: number;
1383
- quantity: number;
1384
- requirements: string[];
1385
- customInstructions: string;
1386
- deadline: number;
1387
- }): PurchaseServiceInstruction<Address$1<"GpvFxus2eecFKcqa2bhxXeRjpstPeCEJNX216TQCcNC9">, string, string, string, string, []>;
1388
- /**
1389
- * Get create job posting instruction
1390
- */
1391
- getCreateJobPostingInstruction(params: {
1392
- jobPosting?: Address$1;
1393
- employer: TransactionSigner;
1394
- title: string;
1395
- description: string;
1396
- requirements: string[];
1397
- budget: number | bigint;
1398
- deadline: number | bigint;
1399
- skillsNeeded: string[];
1400
- budgetMin: number | bigint;
1401
- budgetMax: number | bigint;
1402
- paymentToken: Address$1;
1403
- jobType: string;
1404
- experienceLevel: string;
1405
- }): Promise<CreateJobPostingInstruction<Address$1<"GpvFxus2eecFKcqa2bhxXeRjpstPeCEJNX216TQCcNC9">, string, string, string, []>>;
1406
- /**
1407
- * Get apply to job instruction
1408
- */
1409
- getApplyToJobInstruction(params: {
1410
- jobApplication?: Address$1;
1411
- jobPosting: Address$1;
1412
- agent: Address$1;
1413
- agentOwner: TransactionSigner;
1414
- coverLetter: string;
1415
- proposedPrice: number | bigint;
1416
- estimatedDuration: number;
1417
- proposedRate: number | bigint;
1418
- estimatedDelivery: number | bigint;
1419
- portfolioItems: string[];
1420
- }): Promise<ApplyToJobInstruction<Address$1<"GpvFxus2eecFKcqa2bhxXeRjpstPeCEJNX216TQCcNC9">, string, string, string, string, string, []>>;
1421
- /**
1422
- * Get accept job application instruction
1423
- */
1424
- getAcceptJobApplicationInstruction(params: {
1425
- jobContract?: Address$1;
1426
- jobPosting: Address$1;
1427
- jobApplication: Address$1;
1428
- employer: TransactionSigner;
1429
- }): Promise<AcceptJobApplicationInstruction<Address$1<"GpvFxus2eecFKcqa2bhxXeRjpstPeCEJNX216TQCcNC9">, string, string, string, string, string, []>>;
1430
- /**
1431
- * Get create service auction instruction
1432
- */
1433
- getCreateServiceAuctionInstruction(params: {
1434
- auction?: Address$1;
1435
- agent: Address$1;
1436
- userRegistry: Address$1;
1437
- creator: TransactionSigner;
1438
- systemProgram?: Address$1;
1439
- clock?: Address$1;
1440
- auctionType: AuctionType;
1441
- startingPrice: bigint;
1442
- reservePrice: bigint;
1443
- isReserveHidden: boolean;
1444
- currentBid: bigint;
1445
- currentBidder: Address$1 | null;
1446
- auctionEndTime: bigint;
1447
- minimumBidIncrement: bigint;
1448
- totalBids: number;
1449
- dutchConfig: DutchAuctionConfig | null;
1450
- }): Promise<CreateServiceAuctionInstruction<Address$1<"GpvFxus2eecFKcqa2bhxXeRjpstPeCEJNX216TQCcNC9">, string, string, string, string, string, string, []>>;
1451
- /**
1452
- * Get place auction bid instruction
1453
- */
1454
- getPlaceAuctionBidInstruction(params: {
1455
- auction: Address$1;
1456
- userRegistry: Address$1;
1457
- bidder: TransactionSigner;
1458
- systemProgram?: Address$1;
1459
- clock?: Address$1;
1460
- bidAmount: bigint;
1461
- }): PlaceAuctionBidInstruction<Address$1<"GpvFxus2eecFKcqa2bhxXeRjpstPeCEJNX216TQCcNC9">, string, string, string, string, string, []>;
1462
- /**
1463
- * Get finalize auction instruction
1464
- */
1465
- getFinalizeAuctionInstruction(params: {
1466
- auction: Address$1;
1467
- authority: TransactionSigner;
1468
- clock?: Address$1;
1469
- }): FinalizeAuctionInstruction<Address$1<"GpvFxus2eecFKcqa2bhxXeRjpstPeCEJNX216TQCcNC9">, string, string, string, []>;
1470
- /**
1471
- * Get update agent service instruction
1472
- */
1473
- getUpdateAgentServiceInstruction(params: {
1474
- agent: Address$1;
1475
- owner: TransactionSigner;
1476
- systemProgram?: Address$1;
1477
- agentPubkey: Address$1;
1478
- serviceEndpoint: string;
1479
- isActive: boolean;
1480
- lastUpdated: bigint;
1481
- metadataUri: string;
1482
- capabilities: string[];
1483
- }): UpdateAgentServiceInstruction<Address$1<"GpvFxus2eecFKcqa2bhxXeRjpstPeCEJNX216TQCcNC9">, string, string, string, []>;
1484
- /**
1485
- * Execute create service listing with convenience wrapper
1486
- */
1487
- createServiceListing(params: {
1488
- signer: TransactionSigner;
1489
- agentAddress: Address$1;
1490
- title: string;
1491
- description: string;
1492
- pricePerHour: bigint;
1493
- category: string;
1494
- capabilities: string[];
1495
- }): Promise<string>;
1496
- /**
1497
- * Execute create job posting with convenience wrapper
1498
- */
1499
- createJobPosting(params: {
1500
- signer: TransactionSigner;
1501
- title: string;
1502
- description: string;
1503
- budget: bigint;
1504
- duration: number;
1505
- requiredSkills: string[];
1506
- category: string;
1507
- }): Promise<string>;
1508
- /**
1509
- * Execute create service auction with convenience wrapper
1510
- */
1511
- createServiceAuction(params: {
1512
- signer: TransactionSigner;
1513
- serviceListingAddress: Address$1;
1514
- startingPrice: bigint;
1515
- reservePrice: bigint;
1516
- duration: number;
1517
- auctionType: 'english' | 'dutch';
1518
- }): Promise<string>;
1519
- /**
1520
- * Get service listing account
1521
- */
1522
- getServiceListing(address: Address$1): Promise<ServiceListing | null>;
1523
- /**
1524
- * Get job posting account
1525
- */
1526
- getJobPosting(address: Address$1): Promise<JobPosting$1 | null>;
1527
- /**
1528
- * Get job application account
1529
- */
1530
- getJobApplication(address: Address$1): Promise<JobApplication | null>;
1531
- /**
1532
- * Get auction account
1533
- */
1534
- getAuction(address: Address$1): Promise<AuctionMarketplace | null>;
1535
- /**
1536
- * Get service purchase account
1537
- */
1538
- getServicePurchase(address: Address$1): Promise<ServicePurchase | null>;
1539
- /**
1540
- * Get all service listings
1541
- */
1542
- getAllServiceListings(): Promise<{
1543
- address: Address$1;
1544
- data: ServiceListing;
1545
- }[]>;
1546
- /**
1547
- * Get service listings by provider
1548
- */
1549
- getServiceListingsByProvider(provider: Address$1): Promise<{
1550
- address: Address$1;
1551
- data: ServiceListing;
1552
- }[]>;
1553
- /**
1554
- * Get all job postings
1555
- */
1556
- getAllJobPostings(): Promise<{
1557
- address: Address$1;
1558
- data: JobPosting$1;
1559
- }[]>;
1560
- /**
1561
- * Get job postings by client
1562
- */
1563
- getJobPostingsByClient(client: Address$1): Promise<{
1564
- address: Address$1;
1565
- data: JobPosting$1;
1566
- }[]>;
1567
- /**
1568
- * Get applications for a job posting
1569
- */
1570
- getJobApplications(jobPostingAddress: Address$1): Promise<{
1571
- address: Address$1;
1572
- data: JobApplication;
1573
- }[]>;
1574
- /**
1575
- * Get all auctions
1576
- */
1577
- getAllAuctions(): Promise<{
1578
- address: Address$1;
1579
- data: AuctionMarketplace;
1580
- }[]>;
1581
- /**
1582
- * Get service listing by ID (alias for getServiceListing)
1583
- */
1584
- getServiceById(address: Address$1): Promise<ServiceListing | null>;
1585
- /**
1586
- * Execute purchase service with convenience wrapper
1587
- */
1588
- purchase(signer: TransactionSigner, params: {
1589
- listingId: string;
1590
- amount: bigint;
1591
- }): Promise<string>;
1592
- private deriveJobPostingPda;
1593
- private deriveAuctionPda;
1594
- private get nativeMint();
1595
- }
1596
-
1597
- interface ProposalType {
1598
- kind: 'ConfigChange' | 'Treasury' | 'Protocol' | 'Emergency';
1599
- data?: Record<string, unknown>;
1600
- }
1601
- interface ExecutionParams {
1602
- instructions: string[];
1603
- accounts: Address$1[];
1604
- targetProgram: Address$1;
1605
- executeAfter?: bigint;
1606
- }
1607
- interface DelegationScope {
1608
- kind: 'All' | 'Proposal' | 'Category';
1609
- value?: string | number;
1610
- }
1611
- interface CreateMultisigParams {
1612
- signers: Address$1[];
1613
- threshold: number;
1614
- multisigId: bigint;
1615
- config: {
1616
- requireSequentialSigning: boolean;
1617
- allowOwnerOffCurve: boolean;
1618
- };
1619
- }
1620
- interface CreateProposalParams {
1621
- title: string;
1622
- description: string;
1623
- proposalType: ProposalType;
1624
- executionParams: ExecutionParams;
1625
- proposalId: bigint;
1626
- }
1627
- interface VoteParams {
1628
- proposalAddress: Address$1;
1629
- voteChoice: 'For' | 'Against' | 'Abstain';
1630
- reasoning?: string;
1631
- }
1632
- /**
1633
- * Governance management module
1634
- *
1635
- * Provides high-level access to governance operations including:
1636
- * - Proposal creation and management
1637
- * - Voting and delegation
1638
- * - Proposal execution
1639
- * - Vote tallying and results
1640
- */
1641
- declare class GovernanceModule extends BaseModule {
1642
- /**
1643
- * Get initialize governance proposal instruction
1644
- */
1645
- getInitializeGovernanceProposalInstruction(params: {
1646
- proposal?: Address$1;
1647
- proposer: TransactionSigner;
1648
- title: string;
1649
- description: string;
1650
- proposalType: any;
1651
- executionParams: any;
1652
- proposalId: number | bigint;
1653
- }): Promise<InitializeGovernanceProposalInstruction<Address$1<"GpvFxus2eecFKcqa2bhxXeRjpstPeCEJNX216TQCcNC9">, string, string, string, []>>;
1654
- /**
1655
- * Get cast vote instruction
1656
- */
1657
- getCastVoteInstruction(params: {
1658
- proposal: Address$1;
1659
- voter: TransactionSigner;
1660
- voterTokenAccount: Address$1;
1661
- delegateTokenAccount?: Address$1;
1662
- voteChoice: VoteChoice;
1663
- reasoning: string | null;
1664
- }): CastVoteInstruction<Address$1<"GpvFxus2eecFKcqa2bhxXeRjpstPeCEJNX216TQCcNC9">, string, string, string, string, []>;
1665
- /**
1666
- * Get delegate vote instruction
1667
- */
1668
- getDelegateVoteInstruction(params: {
1669
- proposal?: Address$1;
1670
- delegator: TransactionSigner;
1671
- delegate: Address$1;
1672
- delegatorTokenAccount: Address$1;
1673
- proposalId: number | bigint;
1674
- scope: any;
1675
- expiresAt: number | bigint | null;
1676
- }): DelegateVoteInstruction<Address$1<"GpvFxus2eecFKcqa2bhxXeRjpstPeCEJNX216TQCcNC9">, string, string, string, string, []>;
1677
- /**
1678
- * Get execute proposal instruction
1679
- */
1680
- getExecuteProposalInstruction(params: {
1681
- proposal: Address$1;
1682
- executor: TransactionSigner;
1683
- targetProgram: Address$1;
1684
- }): ExecuteProposalInstruction<Address$1<"GpvFxus2eecFKcqa2bhxXeRjpstPeCEJNX216TQCcNC9">, string, string, string, []>;
1685
- /**
1686
- * Get tally votes instruction
1687
- */
1688
- getTallyVotesInstruction(params: {
1689
- proposal: Address$1;
1690
- authority: TransactionSigner;
1691
- }): TallyVotesInstruction<Address$1<"GpvFxus2eecFKcqa2bhxXeRjpstPeCEJNX216TQCcNC9">, string, string, []>;
1692
- /**
1693
- * Create a new governance proposal
1694
- */
1695
- createProposal(params: {
1696
- signer: TransactionSigner;
1697
- title: string;
1698
- description: string;
1699
- proposalType: 'parameter_change' | 'upgrade' | 'treasury';
1700
- votingDuration: number;
1701
- executionDelay?: number;
1702
- }): Promise<string>;
1703
- /**
1704
- * Cast a vote on a proposal
1705
- */
1706
- vote(params: {
1707
- signer: TransactionSigner;
1708
- proposalAddress: Address$1;
1709
- choice: 'yes' | 'no' | 'abstain';
1710
- reasoning?: string;
1711
- tokenAccount: Address$1;
1712
- }): Promise<string>;
1713
- /**
1714
- * Delegate voting power to another address
1715
- */
1716
- delegateVotingPower(params: {
1717
- signer: TransactionSigner;
1718
- delegate: Address$1;
1719
- amount: bigint;
1720
- tokenAccount: Address$1;
1721
- }): Promise<string>;
1722
- /**
1723
- * Execute a passed proposal
1724
- */
1725
- executeProposal(params: {
1726
- signer: TransactionSigner;
1727
- proposalAddress: Address$1;
1728
- proposalId: string;
1729
- }): Promise<string>;
1730
- /**
1731
- * Tally votes for a proposal
1732
- */
1733
- tallyVotes(params: {
1734
- signer: TransactionSigner;
1735
- proposalAddress: Address$1;
1736
- }): Promise<string>;
1737
- /**
1738
- * Get governance proposal account
1739
- */
1740
- getProposal(address: Address$1): Promise<GovernanceProposal | null>;
1741
- /**
1742
- * Get all active proposals
1743
- */
1744
- getActiveProposals(): Promise<{
1745
- address: Address$1;
1746
- data: GovernanceProposal;
1747
- }[]>;
1748
- /**
1749
- * Get proposals by proposer
1750
- */
1751
- getProposalsByProposer(proposer: Address$1): Promise<{
1752
- address: Address$1;
1753
- data: GovernanceProposal;
1754
- }[]>;
1755
- /**
1756
- * Get proposals by status
1757
- */
1758
- getProposalsByStatus(_status: 'draft' | 'voting' | 'succeeded' | 'defeated' | 'executed'): Promise<{
1759
- address: Address$1;
1760
- data: GovernanceProposal;
1761
- }[]>;
1762
- private deriveProposalPda;
1763
- private mapVoteChoice;
1764
- }
1765
-
1766
- export { type ExtendedRpcApi as $, type AuctionMarketplace as A, BaseModule as B, type CreateMultisigParams as C, type DelegationScope as D, type ExecutionParams as E, type SendA2AMessageParams as F, type GhostSpeakConfig as G, type RpcResponse as H, InstructionBuilder as I, type JobPosting$1 as J, type RpcAccountInfo as K, type RpcProgramAccount as L, MarketplaceModule as M, type RpcProgramAccountsResponse as N, type RpcAccountInfoResponse as O, type ProposalType as P, type RpcMultipleAccountsResponse as Q, type RegisterAgentParams as R, type ServiceListing as S, Token2022Module as T, type TransactionResponse as U, type VoteParams as V, type SimulatedTransactionResponse as W, type SolanaRpcClient as X, type EmergencyConfig as Y, type Commitment as Z, type RetryConfig as _, GovernanceModule as a, type RpcApi as a0, type RpcSubscriptionApi as a1, getAgentDecoder as a2, AccountState as b, type Token2022MintData as c, type Agent as d, type JobApplication as e, type AuctionBid as f, GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS as g, type CreateProposalParams as h, AuctionStatus as i, AuctionType as j, type AgentWithAddress as k, type ServiceListingWithAddress as l, type AgentRegistrationData as m, type AgentAccount as n, type ServiceListingData as o, type JobPosting as p, type EscrowAccount as q, EscrowStatus as r, type A2ASession as s, type A2AMessage as t, PricingModel as u, GhostSpeakError as v, type CreateServiceListingParams as w, type CreateJobPostingParams as x, type CreateEscrowParams as y, type CreateA2ASessionParams as z };