@ghostspeak/sdk 2.0.0 → 2.0.1

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 (102) hide show
  1. package/LICENSE +21 -0
  2. package/dist/.tsbuildinfo +1 -1
  3. package/dist/GhostSpeakClient-CyeZ6Tyb.d.ts +2061 -0
  4. package/dist/client.d.ts +4 -3
  5. package/dist/crypto.d.ts +2 -2
  6. package/dist/{feature-flags-CEaxXgQQ.d.ts → feature-flags-3POmoO_Z.d.ts} +833 -1190
  7. package/dist/index.d.ts +206 -4543
  8. package/dist/ipfs-types-KJcvy9Qk.d.ts +553 -0
  9. package/dist/minimal/core-minimal.d.ts +2037 -82
  10. package/dist/utils.d.ts +4 -4
  11. package/package.json +5 -29
  12. package/dist/EscrowInstructions-4P3H6ETO.js +0 -2
  13. package/dist/EscrowInstructions-4P3H6ETO.js.map +0 -1
  14. package/dist/GhostSpeakClient-4SROinEf.d.ts +0 -503
  15. package/dist/accounts-IUZMPYVE.js +0 -2
  16. package/dist/accounts-IUZMPYVE.js.map +0 -1
  17. package/dist/agent-GZ2OES75.js +0 -2
  18. package/dist/agent-GZ2OES75.js.map +0 -1
  19. package/dist/auctionMarketplace-W4YM7HKU.js +0 -2
  20. package/dist/auctionMarketplace-W4YM7HKU.js.map +0 -1
  21. package/dist/chunk-2KOOI5BX.js +0 -2
  22. package/dist/chunk-2KOOI5BX.js.map +0 -1
  23. package/dist/chunk-32GWTXRJ.js +0 -3
  24. package/dist/chunk-32GWTXRJ.js.map +0 -1
  25. package/dist/chunk-B4WUFVLE.js +0 -2
  26. package/dist/chunk-B4WUFVLE.js.map +0 -1
  27. package/dist/chunk-C2OTQ5YS.js +0 -2
  28. package/dist/chunk-C2OTQ5YS.js.map +0 -1
  29. package/dist/chunk-CTC4ZJ26.js +0 -5
  30. package/dist/chunk-CTC4ZJ26.js.map +0 -1
  31. package/dist/chunk-DF7LLAMH.js +0 -2
  32. package/dist/chunk-DF7LLAMH.js.map +0 -1
  33. package/dist/chunk-DJ356OUX.js +0 -2
  34. package/dist/chunk-DJ356OUX.js.map +0 -1
  35. package/dist/chunk-DK5YDBXR.js +0 -2
  36. package/dist/chunk-DK5YDBXR.js.map +0 -1
  37. package/dist/chunk-DOTF5ECA.js +0 -4
  38. package/dist/chunk-DOTF5ECA.js.map +0 -1
  39. package/dist/chunk-FKEUXXZS.js +0 -30
  40. package/dist/chunk-FKEUXXZS.js.map +0 -1
  41. package/dist/chunk-GSHXEKBW.js +0 -2
  42. package/dist/chunk-GSHXEKBW.js.map +0 -1
  43. package/dist/chunk-IZDAEOLH.js +0 -2
  44. package/dist/chunk-IZDAEOLH.js.map +0 -1
  45. package/dist/chunk-JY554RGE.js +0 -3
  46. package/dist/chunk-JY554RGE.js.map +0 -1
  47. package/dist/chunk-KK3HV2RD.js +0 -3
  48. package/dist/chunk-KK3HV2RD.js.map +0 -1
  49. package/dist/chunk-PPOCDM6G.js +0 -2
  50. package/dist/chunk-PPOCDM6G.js.map +0 -1
  51. package/dist/chunk-PUI35LBF.js +0 -2
  52. package/dist/chunk-PUI35LBF.js.map +0 -1
  53. package/dist/chunk-Q34J6YDA.js +0 -11
  54. package/dist/chunk-Q34J6YDA.js.map +0 -1
  55. package/dist/chunk-QATBFZMM.js +0 -3
  56. package/dist/chunk-QATBFZMM.js.map +0 -1
  57. package/dist/chunk-QTKN3VZV.js +0 -2
  58. package/dist/chunk-QTKN3VZV.js.map +0 -1
  59. package/dist/chunk-RFBYMTTN.js +0 -2
  60. package/dist/chunk-RFBYMTTN.js.map +0 -1
  61. package/dist/chunk-RJJPOLCK.js +0 -22
  62. package/dist/chunk-RJJPOLCK.js.map +0 -1
  63. package/dist/chunk-RTWJTEND.js +0 -2
  64. package/dist/chunk-RTWJTEND.js.map +0 -1
  65. package/dist/chunk-SR3ZJCME.js +0 -2
  66. package/dist/chunk-SR3ZJCME.js.map +0 -1
  67. package/dist/chunk-TAWXH7KX.js +0 -2
  68. package/dist/chunk-TAWXH7KX.js.map +0 -1
  69. package/dist/client.js +0 -2
  70. package/dist/client.js.map +0 -1
  71. package/dist/confidential-transfer-manager-CGS3T5DG.js +0 -2
  72. package/dist/confidential-transfer-manager-CGS3T5DG.js.map +0 -1
  73. package/dist/crypto.js +0 -2
  74. package/dist/crypto.js.map +0 -1
  75. package/dist/elgamal-3ABOJSHC.js +0 -2
  76. package/dist/elgamal-3ABOJSHC.js.map +0 -1
  77. package/dist/enhanced-client-errors-W22U3LNH.js +0 -2
  78. package/dist/enhanced-client-errors-W22U3LNH.js.map +0 -1
  79. package/dist/errors.js +0 -2
  80. package/dist/errors.js.map +0 -1
  81. package/dist/generated-U3L4KUE4.js +0 -2
  82. package/dist/generated-U3L4KUE4.js.map +0 -1
  83. package/dist/ghostspeak_wasm-3KPNJTSS.js +0 -2
  84. package/dist/ghostspeak_wasm-3KPNJTSS.js.map +0 -1
  85. package/dist/index.js +0 -97
  86. package/dist/index.js.map +0 -1
  87. package/dist/ipfs-types-BlxtJ3q2.d.ts +0 -194
  88. package/dist/metafile-esm.json +0 -1
  89. package/dist/minimal/core-minimal.js +0 -12
  90. package/dist/minimal/core-minimal.js.map +0 -1
  91. package/dist/pda-2GUWRQ5G.js +0 -2
  92. package/dist/pda-2GUWRQ5G.js.map +0 -1
  93. package/dist/registerAgentCompressed-L6ACXD2Z.js +0 -2
  94. package/dist/registerAgentCompressed-L6ACXD2Z.js.map +0 -1
  95. package/dist/token-2022-rpc-SRHRFN5Y.js +0 -2
  96. package/dist/token-2022-rpc-SRHRFN5Y.js.map +0 -1
  97. package/dist/types.js +0 -2
  98. package/dist/types.js.map +0 -1
  99. package/dist/utils.js +0 -2
  100. package/dist/utils.js.map +0 -1
  101. package/dist/zk-proof-builder-GXZ42QZA.js +0 -2
  102. package/dist/zk-proof-builder-GXZ42QZA.js.map +0 -1
@@ -0,0 +1,2061 @@
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 { I as IPFSConfig, V as VoteChoice, G as GovernanceProposal } from './ipfs-types-KJcvy9Qk.js';
3
+ import { Address as Address$1 } from '@solana/addresses';
4
+ import { IInstruction } from '@solana/instructions';
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
+ name: string;
156
+ description: string;
157
+ capabilities: Array<string>;
158
+ pricingModel: PricingModel$1;
159
+ reputationScore: number;
160
+ totalJobsCompleted: number;
161
+ totalEarnings: bigint;
162
+ isActive: boolean;
163
+ createdAt: bigint;
164
+ updatedAt: bigint;
165
+ originalPrice: bigint;
166
+ genomeHash: string;
167
+ isReplicable: boolean;
168
+ replicationFee: bigint;
169
+ serviceEndpoint: string;
170
+ isVerified: boolean;
171
+ verificationTimestamp: bigint;
172
+ metadataUri: string;
173
+ frameworkOrigin: string;
174
+ supportedTokens: Array<Address>;
175
+ cnftMint: Option<Address>;
176
+ merkleTree: Option<Address>;
177
+ supportsA2a: boolean;
178
+ transferHook: Option<Address>;
179
+ parentAgent: Option<Address>;
180
+ generation: number;
181
+ bump: number;
182
+ };
183
+ declare function getAgentDecoder(): Decoder<Agent>;
184
+
185
+ /**
186
+ * This code was AUTOGENERATED using the codama library.
187
+ * Please DO NOT EDIT THIS FILE, instead use visitors
188
+ * to add features, then rerun codama to update it.
189
+ *
190
+ * @see https://github.com/codama-idl/codama
191
+ */
192
+
193
+ type AuctionMarketplace = {
194
+ discriminator: ReadonlyUint8Array;
195
+ auction: Address;
196
+ agent: Address;
197
+ creator: Address;
198
+ auctionType: AuctionType;
199
+ startingPrice: bigint;
200
+ reservePrice: bigint;
201
+ isReserveHidden: boolean;
202
+ reserveMet: boolean;
203
+ currentPrice: bigint;
204
+ currentWinner: Option<Address>;
205
+ winner: Option<Address>;
206
+ auctionEndTime: bigint;
207
+ minimumBidIncrement: bigint;
208
+ totalBids: number;
209
+ status: AuctionStatus;
210
+ bids: Array<AuctionBid>;
211
+ createdAt: bigint;
212
+ endedAt: Option<bigint>;
213
+ metadataUri: string;
214
+ dutchConfig: Option<DutchAuctionConfig>;
215
+ extensionCount: number;
216
+ originalEndTime: bigint;
217
+ reservePriceLocked: boolean;
218
+ reserveShortfallNotified: boolean;
219
+ bump: number;
220
+ };
221
+
222
+ /**
223
+ * This code was AUTOGENERATED using the codama library.
224
+ * Please DO NOT EDIT THIS FILE, instead use visitors
225
+ * to add features, then rerun codama to update it.
226
+ *
227
+ * @see https://github.com/codama-idl/codama
228
+ */
229
+
230
+ type JobApplication = {
231
+ discriminator: ReadonlyUint8Array;
232
+ jobPosting: Address;
233
+ agent: Address;
234
+ agentOwner: Address;
235
+ coverLetter: string;
236
+ proposedRate: bigint;
237
+ estimatedDelivery: bigint;
238
+ portfolioItems: Array<string>;
239
+ status: ApplicationStatus;
240
+ appliedAt: bigint;
241
+ bump: number;
242
+ };
243
+
244
+ /**
245
+ * This code was AUTOGENERATED using the codama library.
246
+ * Please DO NOT EDIT THIS FILE, instead use visitors
247
+ * to add features, then rerun codama to update it.
248
+ *
249
+ * @see https://github.com/codama-idl/codama
250
+ */
251
+
252
+ type JobPosting$1 = {
253
+ discriminator: ReadonlyUint8Array;
254
+ employer: Address;
255
+ title: string;
256
+ description: string;
257
+ requirements: Array<string>;
258
+ budget: bigint;
259
+ deadline: bigint;
260
+ skillsNeeded: Array<string>;
261
+ budgetMin: bigint;
262
+ budgetMax: bigint;
263
+ paymentToken: Address;
264
+ jobType: string;
265
+ experienceLevel: string;
266
+ isActive: boolean;
267
+ applicationsCount: number;
268
+ createdAt: bigint;
269
+ updatedAt: bigint;
270
+ bump: number;
271
+ };
272
+
273
+ /**
274
+ * This code was AUTOGENERATED using the codama library.
275
+ * Please DO NOT EDIT THIS FILE, instead use visitors
276
+ * to add features, then rerun codama to update it.
277
+ *
278
+ * @see https://github.com/codama-idl/codama
279
+ */
280
+
281
+ type ServiceListing = {
282
+ discriminator: ReadonlyUint8Array;
283
+ agent: Address;
284
+ owner: Address;
285
+ title: string;
286
+ description: string;
287
+ price: bigint;
288
+ tokenMint: Address;
289
+ serviceType: string;
290
+ paymentToken: Address;
291
+ estimatedDelivery: bigint;
292
+ tags: Array<string>;
293
+ isActive: boolean;
294
+ totalOrders: number;
295
+ rating: number;
296
+ createdAt: bigint;
297
+ updatedAt: bigint;
298
+ transferHook: Option<Address>;
299
+ bump: number;
300
+ };
301
+
302
+ /**
303
+ * This code was AUTOGENERATED using the codama library.
304
+ * Please DO NOT EDIT THIS FILE, instead use visitors
305
+ * to add features, then rerun codama to update it.
306
+ *
307
+ * @see https://github.com/codama-idl/codama
308
+ */
309
+
310
+ type ServicePurchase = {
311
+ discriminator: ReadonlyUint8Array;
312
+ customer: Address;
313
+ agent: Address;
314
+ listing: Address;
315
+ listingId: bigint;
316
+ quantity: number;
317
+ requirements: Array<string>;
318
+ customInstructions: string;
319
+ deadline: bigint;
320
+ paymentAmount: bigint;
321
+ paymentToken: Address;
322
+ status: PurchaseStatus;
323
+ purchasedAt: bigint;
324
+ updatedAt: bigint;
325
+ transferHookApplied: boolean;
326
+ bump: number;
327
+ };
328
+
329
+ /**
330
+ * This code was AUTOGENERATED using the codama library.
331
+ * Please DO NOT EDIT THIS FILE, instead use visitors
332
+ * to add features, then rerun codama to update it.
333
+ *
334
+ * @see https://github.com/codama-idl/codama
335
+ */
336
+
337
+ declare const GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS: Address<"GssMyhkQPePLzByJsJadbQePZc6GtzGi22aQqW5opvUX">;
338
+
339
+ /**
340
+ * This code was AUTOGENERATED using the codama library.
341
+ * Please DO NOT EDIT THIS FILE, instead use visitors
342
+ * to add features, then rerun codama to update it.
343
+ *
344
+ * @see https://github.com/codama-idl/codama
345
+ */
346
+
347
+ 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<[
348
+ TAccountJobContract extends string ? WritableAccount<TAccountJobContract> : TAccountJobContract,
349
+ TAccountJobPosting extends string ? WritableAccount<TAccountJobPosting> : TAccountJobPosting,
350
+ TAccountJobApplication extends string ? WritableAccount<TAccountJobApplication> : TAccountJobApplication,
351
+ TAccountEmployer extends string ? WritableSignerAccount<TAccountEmployer> & AccountSignerMeta<TAccountEmployer> : TAccountEmployer,
352
+ TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
353
+ ...TRemainingAccounts
354
+ ]>;
355
+
356
+ /**
357
+ * This code was AUTOGENERATED using the codama library.
358
+ * Please DO NOT EDIT THIS FILE, instead use visitors
359
+ * to add features, then rerun codama to update it.
360
+ *
361
+ * @see https://github.com/codama-idl/codama
362
+ */
363
+
364
+ 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<[
365
+ TAccountJobApplication extends string ? WritableAccount<TAccountJobApplication> : TAccountJobApplication,
366
+ TAccountJobPosting extends string ? WritableAccount<TAccountJobPosting> : TAccountJobPosting,
367
+ TAccountAgent extends string ? ReadonlyAccount<TAccountAgent> : TAccountAgent,
368
+ TAccountAgentOwner extends string ? WritableSignerAccount<TAccountAgentOwner> & AccountSignerMeta<TAccountAgentOwner> : TAccountAgentOwner,
369
+ TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
370
+ ...TRemainingAccounts
371
+ ]>;
372
+
373
+ /**
374
+ * This code was AUTOGENERATED using the codama library.
375
+ * Please DO NOT EDIT THIS FILE, instead use visitors
376
+ * to add features, then rerun codama to update it.
377
+ *
378
+ * @see https://github.com/codama-idl/codama
379
+ */
380
+
381
+ 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<[
382
+ TAccountExtension extends string ? WritableAccount<TAccountExtension> : TAccountExtension,
383
+ TAccountAuthority extends string ? ReadonlySignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
384
+ TAccountClock extends string ? ReadonlyAccount<TAccountClock> : TAccountClock,
385
+ ...TRemainingAccounts
386
+ ]>;
387
+
388
+ /**
389
+ * This code was AUTOGENERATED using the codama library.
390
+ * Please DO NOT EDIT THIS FILE, instead use visitors
391
+ * to add features, then rerun codama to update it.
392
+ *
393
+ * @see https://github.com/codama-idl/codama
394
+ */
395
+
396
+ 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<[
397
+ TAccountProposal extends string ? WritableAccount<TAccountProposal> : TAccountProposal,
398
+ TAccountVoter extends string ? WritableSignerAccount<TAccountVoter> & AccountSignerMeta<TAccountVoter> : TAccountVoter,
399
+ TAccountVoterTokenAccount extends string ? ReadonlyAccount<TAccountVoterTokenAccount> : TAccountVoterTokenAccount,
400
+ TAccountDelegateTokenAccount extends string ? ReadonlyAccount<TAccountDelegateTokenAccount> : TAccountDelegateTokenAccount,
401
+ ...TRemainingAccounts
402
+ ]>;
403
+
404
+ /**
405
+ * This code was AUTOGENERATED using the codama library.
406
+ * Please DO NOT EDIT THIS FILE, instead use visitors
407
+ * to add features, then rerun codama to update it.
408
+ *
409
+ * @see https://github.com/codama-idl/codama
410
+ */
411
+
412
+ 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<[
413
+ TAccountJobPosting extends string ? WritableAccount<TAccountJobPosting> : TAccountJobPosting,
414
+ TAccountEmployer extends string ? WritableSignerAccount<TAccountEmployer> & AccountSignerMeta<TAccountEmployer> : TAccountEmployer,
415
+ TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
416
+ ...TRemainingAccounts
417
+ ]>;
418
+
419
+ /**
420
+ * This code was AUTOGENERATED using the codama library.
421
+ * Please DO NOT EDIT THIS FILE, instead use visitors
422
+ * to add features, then rerun codama to update it.
423
+ *
424
+ * @see https://github.com/codama-idl/codama
425
+ */
426
+
427
+ 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<[
428
+ TAccountAuction extends string ? WritableAccount<TAccountAuction> : TAccountAuction,
429
+ TAccountAgent extends string ? ReadonlyAccount<TAccountAgent> : TAccountAgent,
430
+ TAccountUserRegistry extends string ? ReadonlyAccount<TAccountUserRegistry> : TAccountUserRegistry,
431
+ TAccountCreator extends string ? WritableSignerAccount<TAccountCreator> & AccountSignerMeta<TAccountCreator> : TAccountCreator,
432
+ TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
433
+ TAccountClock extends string ? ReadonlyAccount<TAccountClock> : TAccountClock,
434
+ ...TRemainingAccounts
435
+ ]>;
436
+
437
+ /**
438
+ * This code was AUTOGENERATED using the codama library.
439
+ * Please DO NOT EDIT THIS FILE, instead use visitors
440
+ * to add features, then rerun codama to update it.
441
+ *
442
+ * @see https://github.com/codama-idl/codama
443
+ */
444
+
445
+ 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<[
446
+ TAccountServiceListing extends string ? WritableAccount<TAccountServiceListing> : TAccountServiceListing,
447
+ TAccountAgent extends string ? ReadonlyAccount<TAccountAgent> : TAccountAgent,
448
+ TAccountUserRegistry extends string ? WritableAccount<TAccountUserRegistry> : TAccountUserRegistry,
449
+ TAccountCreator extends string ? WritableSignerAccount<TAccountCreator> & AccountSignerMeta<TAccountCreator> : TAccountCreator,
450
+ TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
451
+ TAccountClock extends string ? ReadonlyAccount<TAccountClock> : TAccountClock,
452
+ ...TRemainingAccounts
453
+ ]>;
454
+
455
+ /**
456
+ * This code was AUTOGENERATED using the codama library.
457
+ * Please DO NOT EDIT THIS FILE, instead use visitors
458
+ * to add features, then rerun codama to update it.
459
+ *
460
+ * @see https://github.com/codama-idl/codama
461
+ */
462
+
463
+ 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<[
464
+ TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
465
+ TAccountAgent extends string ? ReadonlyAccount<TAccountAgent> : TAccountAgent,
466
+ TAccountMint extends string ? WritableSignerAccount<TAccountMint> & AccountSignerMeta<TAccountMint> : TAccountMint,
467
+ TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
468
+ TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
469
+ TAccountRent extends string ? ReadonlyAccount<TAccountRent> : TAccountRent,
470
+ ...TRemainingAccounts
471
+ ]>;
472
+
473
+ /**
474
+ * This code was AUTOGENERATED using the codama library.
475
+ * Please DO NOT EDIT THIS FILE, instead use visitors
476
+ * to add features, then rerun codama to update it.
477
+ *
478
+ * @see https://github.com/codama-idl/codama
479
+ */
480
+
481
+ 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<[
482
+ TAccountProposal extends string ? WritableAccount<TAccountProposal> : TAccountProposal,
483
+ TAccountDelegator extends string ? WritableSignerAccount<TAccountDelegator> & AccountSignerMeta<TAccountDelegator> : TAccountDelegator,
484
+ TAccountDelegate extends string ? ReadonlyAccount<TAccountDelegate> : TAccountDelegate,
485
+ TAccountDelegatorTokenAccount extends string ? ReadonlyAccount<TAccountDelegatorTokenAccount> : TAccountDelegatorTokenAccount,
486
+ ...TRemainingAccounts
487
+ ]>;
488
+
489
+ /**
490
+ * This code was AUTOGENERATED using the codama library.
491
+ * Please DO NOT EDIT THIS FILE, instead use visitors
492
+ * to add features, then rerun codama to update it.
493
+ *
494
+ * @see https://github.com/codama-idl/codama
495
+ */
496
+
497
+ 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<[
498
+ TAccountProposal extends string ? WritableAccount<TAccountProposal> : TAccountProposal,
499
+ TAccountExecutor extends string ? WritableSignerAccount<TAccountExecutor> & AccountSignerMeta<TAccountExecutor> : TAccountExecutor,
500
+ TAccountTargetProgram extends string ? ReadonlyAccount<TAccountTargetProgram> : TAccountTargetProgram,
501
+ ...TRemainingAccounts
502
+ ]>;
503
+
504
+ /**
505
+ * This code was AUTOGENERATED using the codama library.
506
+ * Please DO NOT EDIT THIS FILE, instead use visitors
507
+ * to add features, then rerun codama to update it.
508
+ *
509
+ * @see https://github.com/codama-idl/codama
510
+ */
511
+
512
+ 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<[
513
+ TAccountAuction extends string ? WritableAccount<TAccountAuction> : TAccountAuction,
514
+ TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
515
+ TAccountClock extends string ? ReadonlyAccount<TAccountClock> : TAccountClock,
516
+ ...TRemainingAccounts
517
+ ]>;
518
+
519
+ /**
520
+ * This code was AUTOGENERATED using the codama library.
521
+ * Please DO NOT EDIT THIS FILE, instead use visitors
522
+ * to add features, then rerun codama to update it.
523
+ *
524
+ * @see https://github.com/codama-idl/codama
525
+ */
526
+
527
+ 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<[
528
+ TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
529
+ TAccountMint extends string ? WritableAccount<TAccountMint> : TAccountMint,
530
+ TAccountAgent extends string ? ReadonlyAccount<TAccountAgent> : TAccountAgent,
531
+ TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
532
+ ...TRemainingAccounts
533
+ ]>;
534
+
535
+ /**
536
+ * This code was AUTOGENERATED using the codama library.
537
+ * Please DO NOT EDIT THIS FILE, instead use visitors
538
+ * to add features, then rerun codama to update it.
539
+ *
540
+ * @see https://github.com/codama-idl/codama
541
+ */
542
+
543
+ 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<[
544
+ TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
545
+ TAccountMint extends string ? WritableAccount<TAccountMint> : TAccountMint,
546
+ TAccountAgent extends string ? ReadonlyAccount<TAccountAgent> : TAccountAgent,
547
+ TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
548
+ ...TRemainingAccounts
549
+ ]>;
550
+
551
+ /**
552
+ * This code was AUTOGENERATED using the codama library.
553
+ * Please DO NOT EDIT THIS FILE, instead use visitors
554
+ * to add features, then rerun codama to update it.
555
+ *
556
+ * @see https://github.com/codama-idl/codama
557
+ */
558
+
559
+ 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<[
560
+ TAccountProposal extends string ? WritableAccount<TAccountProposal> : TAccountProposal,
561
+ TAccountProposer extends string ? WritableSignerAccount<TAccountProposer> & AccountSignerMeta<TAccountProposer> : TAccountProposer,
562
+ TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
563
+ ...TRemainingAccounts
564
+ ]>;
565
+
566
+ /**
567
+ * This code was AUTOGENERATED using the codama library.
568
+ * Please DO NOT EDIT THIS FILE, instead use visitors
569
+ * to add features, then rerun codama to update it.
570
+ *
571
+ * @see https://github.com/codama-idl/codama
572
+ */
573
+
574
+ 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<[
575
+ TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
576
+ TAccountMint extends string ? WritableAccount<TAccountMint> : TAccountMint,
577
+ TAccountAgent extends string ? ReadonlyAccount<TAccountAgent> : TAccountAgent,
578
+ TAccountRateAuthority extends string ? ReadonlyAccount<TAccountRateAuthority> : TAccountRateAuthority,
579
+ TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
580
+ ...TRemainingAccounts
581
+ ]>;
582
+
583
+ /**
584
+ * This code was AUTOGENERATED using the codama library.
585
+ * Please DO NOT EDIT THIS FILE, instead use visitors
586
+ * to add features, then rerun codama to update it.
587
+ *
588
+ * @see https://github.com/codama-idl/codama
589
+ */
590
+
591
+ 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<[
592
+ TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
593
+ TAccountMint extends string ? WritableAccount<TAccountMint> : TAccountMint,
594
+ TAccountAgent extends string ? ReadonlyAccount<TAccountAgent> : TAccountAgent,
595
+ TAccountCloseAuthority extends string ? ReadonlyAccount<TAccountCloseAuthority> : TAccountCloseAuthority,
596
+ TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
597
+ ...TRemainingAccounts
598
+ ]>;
599
+
600
+ /**
601
+ * This code was AUTOGENERATED using the codama library.
602
+ * Please DO NOT EDIT THIS FILE, instead use visitors
603
+ * to add features, then rerun codama to update it.
604
+ *
605
+ * @see https://github.com/codama-idl/codama
606
+ */
607
+
608
+ type InitializeTransferFeeConfigInstruction<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<[
609
+ TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
610
+ TAccountMint extends string ? WritableAccount<TAccountMint> : TAccountMint,
611
+ TAccountAgent extends string ? ReadonlyAccount<TAccountAgent> : TAccountAgent,
612
+ TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
613
+ ...TRemainingAccounts
614
+ ]>;
615
+
616
+ /**
617
+ * This code was AUTOGENERATED using the codama library.
618
+ * Please DO NOT EDIT THIS FILE, instead use visitors
619
+ * to add features, then rerun codama to update it.
620
+ *
621
+ * @see https://github.com/codama-idl/codama
622
+ */
623
+
624
+ 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<[
625
+ TAccountAuction extends string ? WritableAccount<TAccountAuction> : TAccountAuction,
626
+ TAccountUserRegistry extends string ? ReadonlyAccount<TAccountUserRegistry> : TAccountUserRegistry,
627
+ TAccountBidder extends string ? WritableSignerAccount<TAccountBidder> & AccountSignerMeta<TAccountBidder> : TAccountBidder,
628
+ TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
629
+ TAccountClock extends string ? ReadonlyAccount<TAccountClock> : TAccountClock,
630
+ ...TRemainingAccounts
631
+ ]>;
632
+
633
+ /**
634
+ * This code was AUTOGENERATED using the codama library.
635
+ * Please DO NOT EDIT THIS FILE, instead use visitors
636
+ * to add features, then rerun codama to update it.
637
+ *
638
+ * @see https://github.com/codama-idl/codama
639
+ */
640
+
641
+ 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<[
642
+ TAccountServicePurchase extends string ? WritableAccount<TAccountServicePurchase> : TAccountServicePurchase,
643
+ TAccountServiceListing extends string ? WritableAccount<TAccountServiceListing> : TAccountServiceListing,
644
+ TAccountBuyer extends string ? WritableSignerAccount<TAccountBuyer> & AccountSignerMeta<TAccountBuyer> : TAccountBuyer,
645
+ TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
646
+ ...TRemainingAccounts
647
+ ]>;
648
+
649
+ /**
650
+ * This code was AUTOGENERATED using the codama library.
651
+ * Please DO NOT EDIT THIS FILE, instead use visitors
652
+ * to add features, then rerun codama to update it.
653
+ *
654
+ * @see https://github.com/codama-idl/codama
655
+ */
656
+
657
+ 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<[
658
+ TAccountProposal extends string ? WritableAccount<TAccountProposal> : TAccountProposal,
659
+ TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
660
+ ...TRemainingAccounts
661
+ ]>;
662
+
663
+ /**
664
+ * This code was AUTOGENERATED using the codama library.
665
+ * Please DO NOT EDIT THIS FILE, instead use visitors
666
+ * to add features, then rerun codama to update it.
667
+ *
668
+ * @see https://github.com/codama-idl/codama
669
+ */
670
+
671
+ 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<[
672
+ TAccountAgent extends string ? WritableAccount<TAccountAgent> : TAccountAgent,
673
+ TAccountOwner extends string ? WritableSignerAccount<TAccountOwner> & AccountSignerMeta<TAccountOwner> : TAccountOwner,
674
+ TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
675
+ ...TRemainingAccounts
676
+ ]>;
677
+
678
+ type RpcApi = Rpc<GetLatestBlockhashApi & SendTransactionApi & GetAccountInfoApi & SimulateTransactionApi & GetFeeForMessageApi & GetProgramAccountsApi>;
679
+ type ExtendedRpcApi = RpcApi & Rpc<GetEpochInfoApi & GetSignatureStatusesApi & GetMultipleAccountsApi>;
680
+ type RpcSubscriptionApi = RpcSubscriptions<SignatureNotificationsApi & SlotNotificationsApi>;
681
+ type Commitment = 'processed' | 'confirmed' | 'finalized';
682
+
683
+ interface GhostSpeakConfig {
684
+ programId?: Address$1;
685
+ rpc: ExtendedRpcApi;
686
+ rpcSubscriptions?: RpcSubscriptionApi;
687
+ commitment?: Commitment;
688
+ transactionTimeout?: number;
689
+ defaultFeePayer?: Address$1;
690
+ retryConfig?: RetryConfig;
691
+ cluster?: 'mainnet-beta' | 'devnet' | 'testnet' | 'localnet';
692
+ rpcEndpoint?: string;
693
+ wsEndpoint?: string;
694
+ /** Token 2022 configuration options */
695
+ token2022?: Token2022Config;
696
+ /** IPFS configuration for large content storage */
697
+ ipfsConfig?: IPFSConfig;
698
+ }
699
+ interface Token2022Config {
700
+ /** Enable Token 2022 features by default */
701
+ enabled?: boolean;
702
+ /** Default behavior for transfer fees */
703
+ defaultExpectTransferFees?: boolean;
704
+ /** Maximum transfer fee slippage (basis points) */
705
+ maxFeeSlippageBasisPoints?: number;
706
+ /** Enable confidential transfers by default */
707
+ enableConfidentialTransfers?: boolean;
708
+ /** Default Token 2022 program address (for custom deployments) */
709
+ programAddress?: Address$1;
710
+ /** Cache token program detection results for this many seconds */
711
+ tokenProgramCacheTtl?: number;
712
+ }
713
+ interface RetryConfig {
714
+ maxRetries?: number;
715
+ baseDelay?: number;
716
+ maxDelay?: number;
717
+ backoffMultiplier?: number;
718
+ retryableErrors?: string[];
719
+ }
720
+ interface AgentWithAddress {
721
+ address: Address$1;
722
+ data: Agent;
723
+ }
724
+ interface ServiceListingWithAddress {
725
+ address: Address$1;
726
+ data: ServiceListing;
727
+ }
728
+ interface AgentRegistrationData {
729
+ name: string;
730
+ description: string;
731
+ capabilities: string[];
732
+ metadataUri: string;
733
+ serviceEndpoint: string;
734
+ }
735
+ interface AgentAccount {
736
+ owner: Address$1;
737
+ name: string;
738
+ description: string;
739
+ capabilities: string[];
740
+ metadataUri: string;
741
+ serviceEndpoint: string;
742
+ isActive: boolean;
743
+ registeredAt: bigint;
744
+ reputation: number;
745
+ totalEarnings: bigint;
746
+ totalJobs: number;
747
+ successRate: number;
748
+ bump: number;
749
+ }
750
+ interface ServiceListingData {
751
+ id: string;
752
+ agent: Address$1;
753
+ title: string;
754
+ description: string;
755
+ price: bigint;
756
+ currency: Address$1;
757
+ category: string;
758
+ isActive: boolean;
759
+ createdAt: bigint;
760
+ }
761
+ interface JobPosting {
762
+ id: string;
763
+ poster: Address$1;
764
+ title: string;
765
+ description: string;
766
+ budget: bigint;
767
+ currency: Address$1;
768
+ deadline: bigint;
769
+ requirements: string[];
770
+ isActive: boolean;
771
+ createdAt: bigint;
772
+ }
773
+ interface EscrowAccount {
774
+ buyer: Address$1;
775
+ seller: Address$1;
776
+ agent: Address$1;
777
+ amount: bigint;
778
+ currency: Address$1;
779
+ status: EscrowStatus;
780
+ createdAt: bigint;
781
+ completedAt?: bigint;
782
+ }
783
+ declare enum EscrowStatus {
784
+ Active = "Active",
785
+ Completed = "Completed",
786
+ Disputed = "Disputed",
787
+ Cancelled = "Cancelled"
788
+ }
789
+ interface A2ASession {
790
+ sessionId: bigint;
791
+ initiator: Address$1;
792
+ responder: Address$1;
793
+ sessionType: string;
794
+ metadata: string;
795
+ isActive: boolean;
796
+ createdAt: bigint;
797
+ expiresAt: bigint;
798
+ }
799
+ interface A2AMessage {
800
+ messageId: bigint;
801
+ session: Address$1;
802
+ sender: Address$1;
803
+ content: string;
804
+ messageType: string;
805
+ sentAt: bigint;
806
+ }
807
+ declare enum PricingModel {
808
+ Fixed = "Fixed",
809
+ Hourly = "Hourly",
810
+ PerTask = "PerTask",
811
+ Subscription = "Subscription",
812
+ Auction = "Auction"
813
+ }
814
+ declare class GhostSpeakError extends Error {
815
+ code?: string | undefined;
816
+ constructor(message: string, code?: string | undefined);
817
+ }
818
+ interface RegisterAgentParams {
819
+ agentData: AgentRegistrationData;
820
+ }
821
+ interface CreateServiceListingParams {
822
+ title: string;
823
+ description: string;
824
+ price: bigint;
825
+ currency: Address$1;
826
+ category: string;
827
+ }
828
+ interface CreateJobPostingParams {
829
+ title: string;
830
+ description: string;
831
+ budget: bigint;
832
+ currency: Address$1;
833
+ deadline: bigint;
834
+ requirements: string[];
835
+ }
836
+ interface CreateEscrowParams {
837
+ seller: Address$1;
838
+ agent: Address$1;
839
+ amount: bigint;
840
+ currency: Address$1;
841
+ }
842
+ interface CreateA2ASessionParams {
843
+ responder: Address$1;
844
+ sessionType: string;
845
+ metadata: string;
846
+ expiresAt: bigint;
847
+ }
848
+ interface SendA2AMessageParams {
849
+ session: Address$1;
850
+ content: string;
851
+ messageType: string;
852
+ }
853
+ interface RpcResponse<T> {
854
+ value: T | null;
855
+ }
856
+ interface RpcAccountInfo {
857
+ executable: boolean;
858
+ lamports: bigint;
859
+ owner: Address$1;
860
+ rentEpoch: bigint;
861
+ space: bigint;
862
+ data: string | Uint8Array;
863
+ }
864
+ interface RpcProgramAccount {
865
+ pubkey: Address$1;
866
+ account: RpcAccountInfo;
867
+ }
868
+ interface RpcProgramAccountsResponse {
869
+ value: RpcProgramAccount[] | null;
870
+ }
871
+ interface RpcAccountInfoResponse {
872
+ value: RpcAccountInfo | null;
873
+ }
874
+ interface RpcMultipleAccountsResponse {
875
+ value: (RpcAccountInfo | null)[];
876
+ }
877
+ interface TransactionResponse {
878
+ signature: string;
879
+ confirmationStatus?: Commitment;
880
+ err?: unknown | null;
881
+ }
882
+ interface SimulatedTransactionResponse {
883
+ value: {
884
+ err?: unknown | null;
885
+ logs?: string[];
886
+ unitsConsumed?: number;
887
+ };
888
+ }
889
+ interface SolanaRpcClient {
890
+ getAccountInfo(address: Address$1, options?: {
891
+ commitment?: Commitment;
892
+ encoding?: string;
893
+ }): Promise<RpcAccountInfoResponse>;
894
+ getMultipleAccounts(addresses: Address$1[], options?: {
895
+ commitment?: Commitment;
896
+ encoding?: string;
897
+ }): Promise<RpcMultipleAccountsResponse>;
898
+ getProgramAccounts(programId: Address$1, options?: {
899
+ commitment?: Commitment;
900
+ encoding?: string;
901
+ filters?: unknown[];
902
+ }): Promise<RpcProgramAccountsResponse>;
903
+ sendTransaction(transaction: unknown, options?: {
904
+ commitment?: Commitment;
905
+ }): Promise<TransactionResponse>;
906
+ simulateTransaction(transaction: unknown, options?: {
907
+ commitment?: Commitment;
908
+ }): Promise<SimulatedTransactionResponse>;
909
+ }
910
+ interface EmergencyConfig {
911
+ emergencyDelay?: bigint;
912
+ emergencyThreshold?: number;
913
+ emergencySigners?: Address$1[];
914
+ canEmergencyPause?: boolean;
915
+ emergencyContact?: string;
916
+ }
917
+
918
+ /**
919
+ * Developer Tools for GhostSpeak SDK
920
+ *
921
+ * Provides debugging, inspection, and development utilities
922
+ */
923
+
924
+ /**
925
+ * Transaction analysis result
926
+ */
927
+ interface TransactionAnalysis {
928
+ instructions: InstructionAnalysis[];
929
+ totalAccounts: number;
930
+ signerCount: number;
931
+ writableAccounts: Address$1[];
932
+ readonlyAccounts: Address$1[];
933
+ estimatedSize: number;
934
+ estimatedComputeUnits: bigint;
935
+ estimatedFee: bigint;
936
+ warnings: string[];
937
+ }
938
+ /**
939
+ * Individual instruction analysis
940
+ */
941
+ interface InstructionAnalysis {
942
+ index: number;
943
+ programId: Address$1;
944
+ accountCount: number;
945
+ dataSize: number;
946
+ humanReadable: string;
947
+ accounts: AccountInfo[];
948
+ }
949
+ /**
950
+ * Account information in instruction
951
+ */
952
+ interface AccountInfo {
953
+ address: Address$1;
954
+ isWritable: boolean;
955
+ isSigner: boolean;
956
+ role: AccountRole;
957
+ }
958
+
959
+ /**
960
+ * Type for instruction-like objects from generated code
961
+ */
962
+ type InstructionLike = {
963
+ programAddress: Address$1;
964
+ accounts?: readonly unknown[];
965
+ data?: unknown;
966
+ };
967
+ /**
968
+ * Unified instruction builder that eliminates duplication across all instruction classes.
969
+ * This is the single source of truth for instruction execution patterns.
970
+ */
971
+ declare class InstructionBuilder {
972
+ private rpcClient;
973
+ private config;
974
+ private devTools;
975
+ private debugMode;
976
+ constructor(config: GhostSpeakConfig);
977
+ /**
978
+ * Execute a single instruction with unified error handling and transaction patterns
979
+ */
980
+ execute<T = string>(instructionName: string, instructionGetter: () => Promise<InstructionLike> | InstructionLike, signers: TransactionSigner[], options?: {
981
+ simulate?: boolean;
982
+ returnDetails?: boolean;
983
+ skipPreflight?: boolean;
984
+ maxRetries?: number;
985
+ }): Promise<T>;
986
+ /**
987
+ * Execute multiple instructions in a single transaction
988
+ */
989
+ executeBatch<T = string>(batchName: string, instructionGetters: (() => Promise<InstructionLike> | InstructionLike)[], signers: TransactionSigner[], options?: {
990
+ simulate?: boolean;
991
+ returnDetails?: boolean;
992
+ skipPreflight?: boolean;
993
+ }): Promise<T>;
994
+ /**
995
+ * Get and decode account data with unified error handling
996
+ */
997
+ getAccount<T>(address: Address$1, decoderImportName: string): Promise<T | null>;
998
+ /**
999
+ * Get multiple accounts with unified pattern
1000
+ */
1001
+ getAccounts<T>(addresses: Address$1[], decoderImportName: string): Promise<(T | null)[]>;
1002
+ /**
1003
+ * Get program accounts with filters
1004
+ */
1005
+ getProgramAccounts<T>(decoderImportName: string, filters?: ({
1006
+ dataSize: bigint;
1007
+ } | {
1008
+ memcmp: {
1009
+ offset: bigint;
1010
+ bytes: string;
1011
+ encoding?: 'base58' | 'base64';
1012
+ };
1013
+ })[]): Promise<{
1014
+ address: Address$1;
1015
+ data: T;
1016
+ }[]>;
1017
+ /**
1018
+ * Enable debug mode for next transaction
1019
+ */
1020
+ enableDebug(): this;
1021
+ /**
1022
+ * Debug transaction - analyze without executing
1023
+ */
1024
+ debug(instructionName: string, instructionGetters: (() => Promise<InstructionLike> | InstructionLike)[]): Promise<TransactionAnalysis>;
1025
+ /**
1026
+ * Get human-readable explanation of transaction
1027
+ */
1028
+ explain(instructionName: string, instructionGetters: (() => Promise<InstructionLike> | InstructionLike)[]): Promise<string>;
1029
+ /**
1030
+ * Estimate transaction cost
1031
+ */
1032
+ estimateCost(instructionGetters: (() => Promise<InstructionLike> | InstructionLike)[]): Promise<bigint>;
1033
+ private sendAndConfirm;
1034
+ private simulateInstruction;
1035
+ private simulateBatch;
1036
+ private estimateTransactionSize;
1037
+ private extractRawData;
1038
+ }
1039
+
1040
+ /**
1041
+ * Solana cluster types for URL generation
1042
+ */
1043
+ type SolanaCluster = 'mainnet-beta' | 'devnet' | 'testnet' | 'localnet';
1044
+ /**
1045
+ * Transaction result with verification URLs
1046
+ */
1047
+ interface TransactionResult {
1048
+ signature: string | Signature$1;
1049
+ cluster: SolanaCluster;
1050
+ urls: {
1051
+ solanaExplorer: string;
1052
+ solscan: string;
1053
+ solanaFM: string;
1054
+ xray: string;
1055
+ };
1056
+ commitment: Commitment;
1057
+ timestamp: number;
1058
+ }
1059
+
1060
+ type Signature = string;
1061
+
1062
+ /**
1063
+ * Base class for all instruction modules using the unified InstructionBuilder.
1064
+ * This replaces the old BaseInstructions class with a much simpler pattern.
1065
+ */
1066
+ declare abstract class BaseModule {
1067
+ protected builder: InstructionBuilder;
1068
+ protected config: GhostSpeakConfig;
1069
+ private _debugMode;
1070
+ constructor(config: GhostSpeakConfig);
1071
+ /**
1072
+ * Enable debug mode for next operation
1073
+ */
1074
+ debug(): this;
1075
+ /**
1076
+ * Execute a single instruction
1077
+ */
1078
+ protected execute(instructionName: string, instructionGetter: () => Promise<IInstruction> | IInstruction, signers: TransactionSigner[]): Promise<string>;
1079
+ /**
1080
+ * Execute a single instruction with detailed result
1081
+ */
1082
+ protected executeWithDetails(instructionName: string, instructionGetter: () => Promise<IInstruction> | IInstruction, signers: TransactionSigner[]): Promise<TransactionResult>;
1083
+ /**
1084
+ * Execute multiple instructions in a batch
1085
+ */
1086
+ protected executeBatch(batchName: string, instructionGetters: (() => Promise<IInstruction> | IInstruction)[], signers: TransactionSigner[]): Promise<Signature>;
1087
+ /**
1088
+ * Simulate an instruction
1089
+ */
1090
+ protected simulate(instructionName: string, instructionGetter: () => Promise<IInstruction> | IInstruction, signers: TransactionSigner[]): Promise<unknown>;
1091
+ /**
1092
+ * Simulate an instruction (public accessor)
1093
+ */
1094
+ simulateInstruction(instructionName: string, instructionGetter: () => Promise<IInstruction> | IInstruction, signers: TransactionSigner[]): Promise<unknown>;
1095
+ /**
1096
+ * Estimate transaction cost
1097
+ */
1098
+ protected estimateCost(instructionGetters: (() => Promise<IInstruction> | IInstruction)[]): Promise<bigint>;
1099
+ /**
1100
+ * Get cost estimation for an instruction
1101
+ */
1102
+ getCost(instructionName: string, instructionGetter: () => Promise<IInstruction> | IInstruction): Promise<bigint>;
1103
+ /**
1104
+ * Get human-readable explanation
1105
+ */
1106
+ explain(instructionName: string, instructionGetter: () => Promise<IInstruction> | IInstruction): Promise<string>;
1107
+ /**
1108
+ * Debug analyze without executing
1109
+ */
1110
+ analyze(instructionName: string, instructionGetter: () => Promise<IInstruction> | IInstruction): Promise<unknown>;
1111
+ /**
1112
+ * Get decoded account
1113
+ */
1114
+ protected getAccount<T>(address: Address$1, decoderImportName: string): Promise<T | null>;
1115
+ /**
1116
+ * Get multiple decoded accounts
1117
+ */
1118
+ protected getAccounts<T>(addresses: Address$1[], decoderImportName: string): Promise<(T | null)[]>;
1119
+ /**
1120
+ * Get program accounts
1121
+ */
1122
+ protected getProgramAccounts<T>(decoderImportName: string, filters?: ({
1123
+ dataSize: bigint;
1124
+ } | {
1125
+ memcmp: {
1126
+ offset: bigint;
1127
+ bytes: string;
1128
+ encoding?: 'base58' | 'base64';
1129
+ };
1130
+ })[]): Promise<{
1131
+ address: Address$1;
1132
+ data: T;
1133
+ }[]>;
1134
+ /**
1135
+ * Get program ID
1136
+ */
1137
+ protected get programId(): Address$1;
1138
+ /**
1139
+ * Get program ID (public accessor)
1140
+ */
1141
+ getProgramId(): Address$1;
1142
+ /**
1143
+ * Get commitment level
1144
+ */
1145
+ protected get commitment(): Commitment;
1146
+ /**
1147
+ * Get commitment level (public accessor)
1148
+ */
1149
+ getCommitment(): Commitment;
1150
+ }
1151
+
1152
+ /**
1153
+ * Marketplace management module
1154
+ *
1155
+ * Provides high-level access to marketplace operations including:
1156
+ * - Service listings and purchases
1157
+ * - Job postings and applications
1158
+ * - Service auctions and bidding
1159
+ * - Marketplace queries and filtering
1160
+ */
1161
+ declare class MarketplaceModule extends BaseModule {
1162
+ /**
1163
+ * Get create service listing instruction
1164
+ */
1165
+ getCreateServiceListingInstruction(params: {
1166
+ agent: Address$1;
1167
+ creator: TransactionSigner;
1168
+ title: string;
1169
+ description: string;
1170
+ price: bigint;
1171
+ tokenMint: Address$1;
1172
+ serviceType: string;
1173
+ paymentToken: Address$1;
1174
+ estimatedDelivery: number;
1175
+ tags: string[];
1176
+ listingId: string;
1177
+ }): Promise<CreateServiceListingInstruction<Address$1<"GssMyhkQPePLzByJsJadbQePZc6GtzGi22aQqW5opvUX">, string, string, string, string, string, string, []>>;
1178
+ /**
1179
+ * Get purchase service instruction
1180
+ */
1181
+ getPurchaseServiceInstruction(params: {
1182
+ serviceListing: Address$1;
1183
+ servicePurchase: Address$1;
1184
+ buyer: TransactionSigner;
1185
+ listingId: number;
1186
+ quantity: number;
1187
+ requirements: string[];
1188
+ customInstructions: string;
1189
+ deadline: number;
1190
+ }): PurchaseServiceInstruction<Address$1<"GssMyhkQPePLzByJsJadbQePZc6GtzGi22aQqW5opvUX">, string, string, string, string, []>;
1191
+ /**
1192
+ * Get create job posting instruction
1193
+ */
1194
+ getCreateJobPostingInstruction(params: {
1195
+ jobPosting?: Address$1;
1196
+ employer: TransactionSigner;
1197
+ title: string;
1198
+ description: string;
1199
+ requirements: string[];
1200
+ budget: number | bigint;
1201
+ deadline: number | bigint;
1202
+ skillsNeeded: string[];
1203
+ budgetMin: number | bigint;
1204
+ budgetMax: number | bigint;
1205
+ paymentToken: Address$1;
1206
+ jobType: string;
1207
+ experienceLevel: string;
1208
+ }): Promise<CreateJobPostingInstruction<Address$1<"GssMyhkQPePLzByJsJadbQePZc6GtzGi22aQqW5opvUX">, string, string, string, []>>;
1209
+ /**
1210
+ * Get apply to job instruction
1211
+ */
1212
+ getApplyToJobInstruction(params: {
1213
+ jobApplication?: Address$1;
1214
+ jobPosting: Address$1;
1215
+ agent: Address$1;
1216
+ agentOwner: TransactionSigner;
1217
+ coverLetter: string;
1218
+ proposedPrice: number | bigint;
1219
+ estimatedDuration: number;
1220
+ proposedRate: number | bigint;
1221
+ estimatedDelivery: number | bigint;
1222
+ portfolioItems: string[];
1223
+ }): Promise<ApplyToJobInstruction<Address$1<"GssMyhkQPePLzByJsJadbQePZc6GtzGi22aQqW5opvUX">, string, string, string, string, string, []>>;
1224
+ /**
1225
+ * Get accept job application instruction
1226
+ */
1227
+ getAcceptJobApplicationInstruction(params: {
1228
+ jobContract?: Address$1;
1229
+ jobPosting: Address$1;
1230
+ jobApplication: Address$1;
1231
+ employer: TransactionSigner;
1232
+ }): Promise<AcceptJobApplicationInstruction<Address$1<"GssMyhkQPePLzByJsJadbQePZc6GtzGi22aQqW5opvUX">, string, string, string, string, string, []>>;
1233
+ /**
1234
+ * Get create service auction instruction
1235
+ */
1236
+ getCreateServiceAuctionInstruction(params: {
1237
+ auction?: Address$1;
1238
+ agent: Address$1;
1239
+ userRegistry: Address$1;
1240
+ creator: TransactionSigner;
1241
+ systemProgram?: Address$1;
1242
+ clock?: Address$1;
1243
+ auctionType: any;
1244
+ startingPrice: bigint;
1245
+ reservePrice: bigint;
1246
+ isReserveHidden: boolean;
1247
+ currentBid: bigint;
1248
+ currentBidder: Address$1 | null;
1249
+ auctionEndTime: bigint;
1250
+ minimumBidIncrement: bigint;
1251
+ totalBids: number;
1252
+ dutchConfig: any;
1253
+ }): Promise<CreateServiceAuctionInstruction<Address$1<"GssMyhkQPePLzByJsJadbQePZc6GtzGi22aQqW5opvUX">, string, string, string, string, string, string, []>>;
1254
+ /**
1255
+ * Get place auction bid instruction
1256
+ */
1257
+ getPlaceAuctionBidInstruction(params: {
1258
+ auction: Address$1;
1259
+ userRegistry: Address$1;
1260
+ bidder: TransactionSigner;
1261
+ systemProgram?: Address$1;
1262
+ clock?: Address$1;
1263
+ bidAmount: bigint;
1264
+ }): PlaceAuctionBidInstruction<Address$1<"GssMyhkQPePLzByJsJadbQePZc6GtzGi22aQqW5opvUX">, string, string, string, string, string, []>;
1265
+ /**
1266
+ * Get finalize auction instruction
1267
+ */
1268
+ getFinalizeAuctionInstruction(params: {
1269
+ auction: Address$1;
1270
+ authority: TransactionSigner;
1271
+ clock?: Address$1;
1272
+ }): FinalizeAuctionInstruction<Address$1<"GssMyhkQPePLzByJsJadbQePZc6GtzGi22aQqW5opvUX">, string, string, string, []>;
1273
+ /**
1274
+ * Get update agent service instruction
1275
+ */
1276
+ getUpdateAgentServiceInstruction(params: {
1277
+ agent: Address$1;
1278
+ owner: TransactionSigner;
1279
+ systemProgram?: Address$1;
1280
+ agentPubkey: Address$1;
1281
+ serviceEndpoint: string;
1282
+ isActive: boolean;
1283
+ lastUpdated: bigint;
1284
+ metadataUri: string;
1285
+ capabilities: string[];
1286
+ }): UpdateAgentServiceInstruction<Address$1<"GssMyhkQPePLzByJsJadbQePZc6GtzGi22aQqW5opvUX">, string, string, string, []>;
1287
+ /**
1288
+ * Execute create service listing with convenience wrapper
1289
+ */
1290
+ createServiceListing(params: {
1291
+ signer: TransactionSigner;
1292
+ agentAddress: Address$1;
1293
+ title: string;
1294
+ description: string;
1295
+ pricePerHour: bigint;
1296
+ category: string;
1297
+ capabilities: string[];
1298
+ }): Promise<string>;
1299
+ /**
1300
+ * Execute create job posting with convenience wrapper
1301
+ */
1302
+ createJobPosting(params: {
1303
+ signer: TransactionSigner;
1304
+ title: string;
1305
+ description: string;
1306
+ budget: bigint;
1307
+ duration: number;
1308
+ requiredSkills: string[];
1309
+ category: string;
1310
+ }): Promise<string>;
1311
+ /**
1312
+ * Execute create service auction with convenience wrapper
1313
+ */
1314
+ createServiceAuction(params: {
1315
+ signer: TransactionSigner;
1316
+ serviceListingAddress: Address$1;
1317
+ startingPrice: bigint;
1318
+ reservePrice: bigint;
1319
+ duration: number;
1320
+ auctionType: 'english' | 'dutch';
1321
+ }): Promise<string>;
1322
+ /**
1323
+ * Get service listing account
1324
+ */
1325
+ getServiceListing(address: Address$1): Promise<ServiceListing | null>;
1326
+ /**
1327
+ * Get job posting account
1328
+ */
1329
+ getJobPosting(address: Address$1): Promise<JobPosting$1 | null>;
1330
+ /**
1331
+ * Get job application account
1332
+ */
1333
+ getJobApplication(address: Address$1): Promise<JobApplication | null>;
1334
+ /**
1335
+ * Get auction account
1336
+ */
1337
+ getAuction(address: Address$1): Promise<AuctionMarketplace | null>;
1338
+ /**
1339
+ * Get service purchase account
1340
+ */
1341
+ getServicePurchase(address: Address$1): Promise<ServicePurchase | null>;
1342
+ /**
1343
+ * Get all service listings
1344
+ */
1345
+ getAllServiceListings(): Promise<{
1346
+ address: Address$1;
1347
+ data: ServiceListing;
1348
+ }[]>;
1349
+ /**
1350
+ * Get service listings by provider
1351
+ */
1352
+ getServiceListingsByProvider(provider: Address$1): Promise<{
1353
+ address: Address$1;
1354
+ data: ServiceListing;
1355
+ }[]>;
1356
+ /**
1357
+ * Get all job postings
1358
+ */
1359
+ getAllJobPostings(): Promise<{
1360
+ address: Address$1;
1361
+ data: JobPosting$1;
1362
+ }[]>;
1363
+ /**
1364
+ * Get job postings by client
1365
+ */
1366
+ getJobPostingsByClient(client: Address$1): Promise<{
1367
+ address: Address$1;
1368
+ data: JobPosting$1;
1369
+ }[]>;
1370
+ /**
1371
+ * Get applications for a job posting
1372
+ */
1373
+ getJobApplications(jobPostingAddress: Address$1): Promise<{
1374
+ address: Address$1;
1375
+ data: JobApplication;
1376
+ }[]>;
1377
+ /**
1378
+ * Get all auctions
1379
+ */
1380
+ getAllAuctions(): Promise<{
1381
+ address: Address$1;
1382
+ data: AuctionMarketplace;
1383
+ }[]>;
1384
+ private deriveJobPostingPda;
1385
+ private deriveAuctionPda;
1386
+ private get nativeMint();
1387
+ }
1388
+
1389
+ /**
1390
+ * Governance management module
1391
+ *
1392
+ * Provides high-level access to governance operations including:
1393
+ * - Proposal creation and management
1394
+ * - Voting and delegation
1395
+ * - Proposal execution
1396
+ * - Vote tallying and results
1397
+ */
1398
+ declare class GovernanceModule extends BaseModule {
1399
+ /**
1400
+ * Get initialize governance proposal instruction
1401
+ */
1402
+ getInitializeGovernanceProposalInstruction(params: {
1403
+ proposal?: Address$1;
1404
+ proposer: TransactionSigner;
1405
+ title: string;
1406
+ description: string;
1407
+ proposalType: any;
1408
+ executionParams: any;
1409
+ proposalId: number | bigint;
1410
+ }): Promise<InitializeGovernanceProposalInstruction<Address$1<"GssMyhkQPePLzByJsJadbQePZc6GtzGi22aQqW5opvUX">, string, string, string, []>>;
1411
+ /**
1412
+ * Get cast vote instruction
1413
+ */
1414
+ getCastVoteInstruction(params: {
1415
+ proposal: Address$1;
1416
+ voter: TransactionSigner;
1417
+ voterTokenAccount: Address$1;
1418
+ delegateTokenAccount?: Address$1;
1419
+ voteChoice: VoteChoice;
1420
+ reasoning: string | null;
1421
+ }): CastVoteInstruction<Address$1<"GssMyhkQPePLzByJsJadbQePZc6GtzGi22aQqW5opvUX">, string, string, string, string, []>;
1422
+ /**
1423
+ * Get delegate vote instruction
1424
+ */
1425
+ getDelegateVoteInstruction(params: {
1426
+ proposal?: Address$1;
1427
+ delegator: TransactionSigner;
1428
+ delegate: Address$1;
1429
+ delegatorTokenAccount: Address$1;
1430
+ proposalId: number | bigint;
1431
+ scope: any;
1432
+ expiresAt: number | bigint | null;
1433
+ }): DelegateVoteInstruction<Address$1<"GssMyhkQPePLzByJsJadbQePZc6GtzGi22aQqW5opvUX">, string, string, string, string, []>;
1434
+ /**
1435
+ * Get execute proposal instruction
1436
+ */
1437
+ getExecuteProposalInstruction(params: {
1438
+ proposal: Address$1;
1439
+ executor: TransactionSigner;
1440
+ targetProgram: Address$1;
1441
+ }): ExecuteProposalInstruction<Address$1<"GssMyhkQPePLzByJsJadbQePZc6GtzGi22aQqW5opvUX">, string, string, string, []>;
1442
+ /**
1443
+ * Get tally votes instruction
1444
+ */
1445
+ getTallyVotesInstruction(params: {
1446
+ proposal: Address$1;
1447
+ authority: TransactionSigner;
1448
+ }): TallyVotesInstruction<Address$1<"GssMyhkQPePLzByJsJadbQePZc6GtzGi22aQqW5opvUX">, string, string, []>;
1449
+ /**
1450
+ * Create a new governance proposal
1451
+ */
1452
+ createProposal(params: {
1453
+ signer: TransactionSigner;
1454
+ title: string;
1455
+ description: string;
1456
+ proposalType: 'parameter_change' | 'upgrade' | 'treasury';
1457
+ votingDuration: number;
1458
+ executionDelay?: number;
1459
+ }): Promise<string>;
1460
+ /**
1461
+ * Cast a vote on a proposal
1462
+ */
1463
+ vote(params: {
1464
+ signer: TransactionSigner;
1465
+ proposalAddress: Address$1;
1466
+ choice: 'yes' | 'no' | 'abstain';
1467
+ reasoning?: string;
1468
+ tokenAccount: Address$1;
1469
+ }): Promise<string>;
1470
+ /**
1471
+ * Delegate voting power to another address
1472
+ */
1473
+ delegateVotingPower(params: {
1474
+ signer: TransactionSigner;
1475
+ delegate: Address$1;
1476
+ amount: bigint;
1477
+ tokenAccount: Address$1;
1478
+ }): Promise<string>;
1479
+ /**
1480
+ * Execute a passed proposal
1481
+ */
1482
+ executeProposal(params: {
1483
+ signer: TransactionSigner;
1484
+ proposalAddress: Address$1;
1485
+ proposalId: string;
1486
+ }): Promise<string>;
1487
+ /**
1488
+ * Tally votes for a proposal
1489
+ */
1490
+ tallyVotes(params: {
1491
+ signer: TransactionSigner;
1492
+ proposalAddress: Address$1;
1493
+ }): Promise<string>;
1494
+ /**
1495
+ * Get governance proposal account
1496
+ */
1497
+ getProposal(address: Address$1): Promise<GovernanceProposal | null>;
1498
+ /**
1499
+ * Get all active proposals
1500
+ */
1501
+ getActiveProposals(): Promise<{
1502
+ address: Address$1;
1503
+ data: GovernanceProposal;
1504
+ }[]>;
1505
+ /**
1506
+ * Get proposals by proposer
1507
+ */
1508
+ getProposalsByProposer(proposer: Address$1): Promise<{
1509
+ address: Address$1;
1510
+ data: GovernanceProposal;
1511
+ }[]>;
1512
+ /**
1513
+ * Get proposals by status
1514
+ */
1515
+ getProposalsByStatus(_status: 'draft' | 'voting' | 'succeeded' | 'defeated' | 'executed'): Promise<{
1516
+ address: Address$1;
1517
+ data: GovernanceProposal;
1518
+ }[]>;
1519
+ private deriveProposalPda;
1520
+ private mapVoteChoice;
1521
+ }
1522
+
1523
+ /**
1524
+ * Token-2022 management module
1525
+ *
1526
+ * Provides high-level access to Token-2022 operations including:
1527
+ * - Mint creation with extensions
1528
+ * - Transfer fee configuration
1529
+ * - Confidential transfer setup
1530
+ * - Interest bearing configuration
1531
+ * - Default account state management
1532
+ */
1533
+ declare class Token2022Module extends BaseModule {
1534
+ /**
1535
+ * Get create Token-2022 mint instruction
1536
+ */
1537
+ getCreateToken2022MintInstruction(params: {
1538
+ authority: TransactionSigner;
1539
+ agent?: Address$1;
1540
+ mint: TransactionSigner;
1541
+ decimals: number;
1542
+ freezeAuthority: Address$1 | null;
1543
+ enableTransferFee: boolean;
1544
+ enableConfidentialTransfers: boolean;
1545
+ enableInterestBearing: boolean;
1546
+ }): Promise<CreateToken2022MintInstruction<Address$1<"GssMyhkQPePLzByJsJadbQePZc6GtzGi22aQqW5opvUX">, string, string, string, string, string, string, []>>;
1547
+ /**
1548
+ * Get initialize transfer fee config instruction
1549
+ */
1550
+ getInitializeTransferFeeConfigInstruction(params: {
1551
+ authority: TransactionSigner;
1552
+ mint: Address$1;
1553
+ transferFeeBasisPoints: number;
1554
+ maximumFee: number | bigint;
1555
+ transferFeeAuthority: Address$1 | null;
1556
+ withdrawWithheldAuthority: Address$1 | null;
1557
+ }): Promise<InitializeTransferFeeConfigInstruction<Address$1<"GssMyhkQPePLzByJsJadbQePZc6GtzGi22aQqW5opvUX">, string, string, string, string, []>>;
1558
+ /**
1559
+ * Get initialize confidential transfer mint instruction
1560
+ */
1561
+ getInitializeConfidentialTransferMintInstruction(params: {
1562
+ authority: TransactionSigner;
1563
+ mint: Address$1;
1564
+ autoApproveNewAccounts: boolean;
1565
+ auditorElgamalPubkey: ReadonlyUint8Array | null;
1566
+ }): Promise<InitializeConfidentialTransferMintInstruction<Address$1<"GssMyhkQPePLzByJsJadbQePZc6GtzGi22aQqW5opvUX">, string, string, string, string, []>>;
1567
+ /**
1568
+ * Get initialize interest bearing config instruction
1569
+ */
1570
+ getInitializeInterestBearingConfigInstruction(params: {
1571
+ mint: Address$1;
1572
+ authority: TransactionSigner;
1573
+ rate: number;
1574
+ rateAuthority: Address$1;
1575
+ }): Promise<InitializeInterestBearingConfigInstruction<Address$1<"GssMyhkQPePLzByJsJadbQePZc6GtzGi22aQqW5opvUX">, string, string, string, string, string, []>>;
1576
+ /**
1577
+ * Get initialize mint close authority instruction
1578
+ */
1579
+ getInitializeMintCloseAuthorityInstruction(params: {
1580
+ mint: Address$1;
1581
+ authority: TransactionSigner;
1582
+ closeAuthority: Address$1;
1583
+ }): Promise<InitializeMintCloseAuthorityInstruction<Address$1<"GssMyhkQPePLzByJsJadbQePZc6GtzGi22aQqW5opvUX">, string, string, string, string, string, []>>;
1584
+ /**
1585
+ * Get initialize default account state instruction
1586
+ */
1587
+ getInitializeDefaultAccountStateInstruction(params: {
1588
+ mint: Address$1;
1589
+ authority: TransactionSigner;
1590
+ state: AccountState;
1591
+ }): Promise<InitializeDefaultAccountStateInstruction<Address$1<"GssMyhkQPePLzByJsJadbQePZc6GtzGi22aQqW5opvUX">, string, string, string, string, []>>;
1592
+ /**
1593
+ * Get approve extension instruction
1594
+ */
1595
+ getApproveExtensionInstruction(params: {
1596
+ mint: Address$1;
1597
+ authority: TransactionSigner;
1598
+ extension: Address$1;
1599
+ }): ApproveExtensionInstruction<Address$1<"GssMyhkQPePLzByJsJadbQePZc6GtzGi22aQqW5opvUX">, string, string, string, []>;
1600
+ /**
1601
+ * Create a basic Token-2022 mint
1602
+ */
1603
+ createMint(params: {
1604
+ signer: TransactionSigner;
1605
+ agentAddress: Address$1;
1606
+ decimals: number;
1607
+ freezeAuthority?: Address$1;
1608
+ }): Promise<string>;
1609
+ /**
1610
+ * Create a Token-2022 mint with transfer fees
1611
+ */
1612
+ createMintWithTransferFees(params: {
1613
+ signer: TransactionSigner;
1614
+ agentAddress: Address$1;
1615
+ decimals: number;
1616
+ transferFeeBasisPoints: number;
1617
+ maxFee: bigint;
1618
+ withdrawWithheldAuthority?: Address$1;
1619
+ }): Promise<string>;
1620
+ /**
1621
+ * Create a Token-2022 mint with confidential transfers
1622
+ */
1623
+ createMintWithConfidentialTransfers(params: {
1624
+ signer: TransactionSigner;
1625
+ agentAddress: Address$1;
1626
+ decimals: number;
1627
+ auditorElgamalPubkey?: ReadonlyUint8Array;
1628
+ autoApproveNewAccounts?: boolean;
1629
+ }): Promise<string>;
1630
+ /**
1631
+ * Create a Token-2022 mint with interest bearing
1632
+ */
1633
+ createMintWithInterestBearing(params: {
1634
+ signer: TransactionSigner;
1635
+ agentAddress: Address$1;
1636
+ decimals: number;
1637
+ interestRate: number;
1638
+ rateAuthority?: Address$1;
1639
+ }): Promise<string>;
1640
+ /**
1641
+ * Create a full-featured Token-2022 mint with all extensions
1642
+ */
1643
+ createAdvancedMint(params: {
1644
+ signer: TransactionSigner;
1645
+ agentAddress: Address$1;
1646
+ decimals: number;
1647
+ transferFeeBasisPoints: number;
1648
+ maxFee: bigint;
1649
+ interestRate: number;
1650
+ autoApproveConfidential?: boolean;
1651
+ defaultAccountState?: AccountState;
1652
+ }): Promise<string>;
1653
+ /**
1654
+ * Get Token-2022 mint account
1655
+ */
1656
+ getMint(address: Address$1): Promise<any | null>;
1657
+ /**
1658
+ * Get all Token-2022 mints created by this program
1659
+ */
1660
+ getAllMints(): Promise<{
1661
+ address: Address$1;
1662
+ data: any;
1663
+ }[]>;
1664
+ /**
1665
+ * Get mints by authority
1666
+ */
1667
+ getMintsByAuthority(authority: Address$1): Promise<{
1668
+ address: Address$1;
1669
+ data: any;
1670
+ }[]>;
1671
+ private generateKeypair;
1672
+ private executeMultiple;
1673
+ }
1674
+
1675
+ /**
1676
+ * Main GhostSpeak client with fluent API design
1677
+ *
1678
+ * Example usage:
1679
+ * ```typescript
1680
+ * const ghostspeak = new GhostSpeak()
1681
+ *
1682
+ * // Create an agent
1683
+ * const agent = await ghostspeak
1684
+ * .agent()
1685
+ * .create({ name: "My Agent", capabilities: ["coding"] })
1686
+ * .compressed()
1687
+ * .execute()
1688
+ *
1689
+ * // Create an escrow
1690
+ * const escrow = await ghostspeak
1691
+ * .escrow()
1692
+ * .between(buyer, seller)
1693
+ * .amount(sol(10))
1694
+ * .withMilestones([...])
1695
+ * .execute()
1696
+ * ```
1697
+ */
1698
+ declare class GhostSpeak {
1699
+ private config;
1700
+ constructor(config?: Partial<GhostSpeakConfig>);
1701
+ /**
1702
+ * Agent operations
1703
+ */
1704
+ agent(): AgentBuilder;
1705
+ /**
1706
+ * Escrow operations
1707
+ */
1708
+ escrow(): EscrowBuilder;
1709
+ /**
1710
+ * Channel operations
1711
+ */
1712
+ channel(): ChannelBuilder;
1713
+ /**
1714
+ * Marketplace operations
1715
+ */
1716
+ marketplace(): MarketplaceBuilder;
1717
+ /**
1718
+ * Governance operations
1719
+ */
1720
+ governance(): GovernanceBuilder;
1721
+ /**
1722
+ * Token-2022 operations
1723
+ */
1724
+ token2022(): Token2022Builder;
1725
+ /**
1726
+ * Enable development mode features
1727
+ */
1728
+ enableDevMode(): this;
1729
+ /**
1730
+ * Configure network
1731
+ */
1732
+ useNetwork(cluster: 'mainnet-beta' | 'devnet' | 'testnet' | 'localnet'): this;
1733
+ /**
1734
+ * Configure custom RPC
1735
+ */
1736
+ useRpc(endpoint: string, wsEndpoint?: string): this;
1737
+ /**
1738
+ * Get default RPC endpoint for cluster
1739
+ */
1740
+ private getDefaultRpcEndpoint;
1741
+ }
1742
+ /**
1743
+ * Agent builder for fluent API
1744
+ */
1745
+ declare class AgentBuilder {
1746
+ private module;
1747
+ private params;
1748
+ constructor(config: GhostSpeakConfig);
1749
+ create(params: {
1750
+ name: string;
1751
+ capabilities: string[];
1752
+ }): this;
1753
+ withType(agentType: number): this;
1754
+ withIPFS(): this;
1755
+ compressed(): this;
1756
+ debug(): this;
1757
+ private validateParams;
1758
+ getCost(): Promise<bigint>;
1759
+ simulate(): Promise<unknown>;
1760
+ explain(): Promise<string>;
1761
+ execute(): Promise<{
1762
+ address: Address$1;
1763
+ signature: string;
1764
+ }>;
1765
+ private deriveAgentAddress;
1766
+ }
1767
+ /**
1768
+ * Escrow builder for fluent API
1769
+ */
1770
+ declare class EscrowBuilder {
1771
+ private module;
1772
+ private params;
1773
+ constructor(config: GhostSpeakConfig);
1774
+ between(buyer: Address$1, seller: Address$1): this;
1775
+ amount(lamports: bigint): this;
1776
+ description(desc: string): this;
1777
+ withMilestones(milestones: Array<{
1778
+ amount: bigint;
1779
+ description: string;
1780
+ }>): this;
1781
+ debug(): this;
1782
+ private validateParams;
1783
+ getCost(): Promise<bigint>;
1784
+ explain(): Promise<string>;
1785
+ execute(): Promise<{
1786
+ address: Address$1;
1787
+ signature: string;
1788
+ }>;
1789
+ private deriveEscrowAddress;
1790
+ }
1791
+ /**
1792
+ * Channel builder for fluent API
1793
+ */
1794
+ declare class ChannelBuilder {
1795
+ private module;
1796
+ private params;
1797
+ constructor(config: GhostSpeakConfig);
1798
+ create(name: string): this;
1799
+ description(desc: string): this;
1800
+ private(): this;
1801
+ maxMembers(max: number): this;
1802
+ debug(): this;
1803
+ private validateParams;
1804
+ getCost(): Promise<bigint>;
1805
+ explain(): Promise<string>;
1806
+ execute(): Promise<{
1807
+ address: Address$1;
1808
+ signature: string;
1809
+ }>;
1810
+ private deriveChannelAddress;
1811
+ }
1812
+ /**
1813
+ * Marketplace builder for fluent API
1814
+ */
1815
+ declare class MarketplaceBuilder {
1816
+ private module;
1817
+ private params;
1818
+ constructor(config: GhostSpeakConfig);
1819
+ /**
1820
+ * Create a service listing
1821
+ */
1822
+ service(): ServiceBuilder;
1823
+ /**
1824
+ * Create a job posting
1825
+ */
1826
+ job(): JobBuilder;
1827
+ /**
1828
+ * Create an auction
1829
+ */
1830
+ auction(): AuctionBuilder;
1831
+ /**
1832
+ * Get marketplace queries
1833
+ */
1834
+ query(): MarketplaceQuery;
1835
+ debug(): this;
1836
+ }
1837
+ /**
1838
+ * Marketplace builder parameters interface
1839
+ */
1840
+ interface MarketplaceBuilderParams {
1841
+ signer?: TransactionSigner;
1842
+ }
1843
+ /**
1844
+ * Service builder for fluent API
1845
+ */
1846
+ declare class ServiceBuilder {
1847
+ private module;
1848
+ private builderParams;
1849
+ private params;
1850
+ constructor(module: MarketplaceModule, builderParams: MarketplaceBuilderParams);
1851
+ create(params: {
1852
+ title: string;
1853
+ description: string;
1854
+ agentAddress: Address$1;
1855
+ }): this;
1856
+ pricePerHour(price: bigint): this;
1857
+ category(cat: string): this;
1858
+ capabilities(caps: string[]): this;
1859
+ private validateParams;
1860
+ execute(): Promise<{
1861
+ address: Address$1;
1862
+ signature: string;
1863
+ }>;
1864
+ }
1865
+ /**
1866
+ * Job builder for fluent API
1867
+ */
1868
+ declare class JobBuilder {
1869
+ private module;
1870
+ private builderParams;
1871
+ private params;
1872
+ constructor(module: MarketplaceModule, builderParams: MarketplaceBuilderParams);
1873
+ create(params: {
1874
+ title: string;
1875
+ description: string;
1876
+ }): this;
1877
+ budget(amount: bigint): this;
1878
+ duration(hours: number): this;
1879
+ skills(skillList: string[]): this;
1880
+ category(cat: string): this;
1881
+ private validateParams;
1882
+ execute(): Promise<{
1883
+ address: Address$1;
1884
+ signature: string;
1885
+ }>;
1886
+ }
1887
+ /**
1888
+ * Auction builder for fluent API
1889
+ */
1890
+ declare class AuctionBuilder {
1891
+ private module;
1892
+ private builderParams;
1893
+ private params;
1894
+ constructor(module: MarketplaceModule, builderParams: MarketplaceBuilderParams);
1895
+ forService(serviceAddress: Address$1): this;
1896
+ startingPrice(price: bigint): this;
1897
+ reservePrice(price: bigint): this;
1898
+ duration(hours: number): this;
1899
+ english(): this;
1900
+ dutch(): this;
1901
+ private validateParams;
1902
+ execute(): Promise<{
1903
+ address: Address$1;
1904
+ signature: string;
1905
+ }>;
1906
+ }
1907
+ /**
1908
+ * Marketplace query helper
1909
+ */
1910
+ declare class MarketplaceQuery {
1911
+ private module;
1912
+ constructor(module: MarketplaceModule);
1913
+ serviceListings(): Promise<{
1914
+ address: Address$1;
1915
+ data: ServiceListing;
1916
+ }[]>;
1917
+ serviceListingsByCategory(_category: string): Promise<{
1918
+ address: Address$1;
1919
+ data: ServiceListing;
1920
+ }[]>;
1921
+ jobPostings(): Promise<{
1922
+ address: Address$1;
1923
+ data: JobPosting$1;
1924
+ }[]>;
1925
+ auctions(): Promise<{
1926
+ address: Address$1;
1927
+ data: AuctionMarketplace;
1928
+ }[]>;
1929
+ }
1930
+ /**
1931
+ * Governance builder for fluent API
1932
+ */
1933
+ declare class GovernanceBuilder {
1934
+ private module;
1935
+ private params;
1936
+ constructor(config: GhostSpeakConfig);
1937
+ /**
1938
+ * Create a governance proposal
1939
+ */
1940
+ proposal(): ProposalBuilder;
1941
+ /**
1942
+ * Get governance queries
1943
+ */
1944
+ query(): GovernanceQuery;
1945
+ debug(): this;
1946
+ }
1947
+ /**
1948
+ * Governance builder parameters interface
1949
+ */
1950
+ interface GovernanceBuilderParams {
1951
+ signer?: TransactionSigner;
1952
+ }
1953
+ /**
1954
+ * Proposal builder for fluent API
1955
+ */
1956
+ declare class ProposalBuilder {
1957
+ private module;
1958
+ private builderParams;
1959
+ private params;
1960
+ constructor(module: GovernanceModule, builderParams: GovernanceBuilderParams);
1961
+ create(params: {
1962
+ title: string;
1963
+ description: string;
1964
+ }): this;
1965
+ type(proposalType: 'parameter_change' | 'upgrade' | 'treasury'): this;
1966
+ votingDuration(hours: number): this;
1967
+ executionDelay(hours: number): this;
1968
+ private validateParams;
1969
+ execute(): Promise<{
1970
+ address: Address$1;
1971
+ signature: string;
1972
+ }>;
1973
+ }
1974
+ /**
1975
+ * Governance query helper
1976
+ */
1977
+ declare class GovernanceQuery {
1978
+ private module;
1979
+ constructor(module: GovernanceModule);
1980
+ activeProposals(): Promise<{
1981
+ address: Address$1;
1982
+ data: GovernanceProposal;
1983
+ }[]>;
1984
+ proposalsByProposer(proposer: Address$1): Promise<{
1985
+ address: Address$1;
1986
+ data: GovernanceProposal;
1987
+ }[]>;
1988
+ proposalsByStatus(status: 'draft' | 'voting' | 'succeeded' | 'defeated' | 'executed'): Promise<{
1989
+ address: Address$1;
1990
+ data: GovernanceProposal;
1991
+ }[]>;
1992
+ }
1993
+ /**
1994
+ * Token2022 builder for fluent API
1995
+ */
1996
+ declare class Token2022Builder {
1997
+ private module;
1998
+ private params;
1999
+ constructor(config: GhostSpeakConfig);
2000
+ /**
2001
+ * Create a basic mint
2002
+ */
2003
+ mint(): MintBuilder;
2004
+ /**
2005
+ * Get Token2022 queries
2006
+ */
2007
+ query(): Token2022Query;
2008
+ debug(): this;
2009
+ }
2010
+ /**
2011
+ * Token2022 builder parameters interface
2012
+ */
2013
+ interface Token2022BuilderParams {
2014
+ signer?: TransactionSigner;
2015
+ }
2016
+ /**
2017
+ * Mint builder for fluent API
2018
+ */
2019
+ declare class MintBuilder {
2020
+ private module;
2021
+ private builderParams;
2022
+ private params;
2023
+ constructor(module: Token2022Module, builderParams: Token2022BuilderParams);
2024
+ forAgent(agentAddress: Address$1): this;
2025
+ decimals(dec: number): this;
2026
+ freezeAuthority(authority: Address$1): this;
2027
+ withTransferFees(basisPoints: number, maxFee: bigint): this;
2028
+ withConfidentialTransfers(autoApprove?: boolean): this;
2029
+ withInterestBearing(rate: number): this;
2030
+ defaultAccountState(state: AccountState): this;
2031
+ private validateParams;
2032
+ execute(): Promise<{
2033
+ address: Address$1;
2034
+ signature: string;
2035
+ }>;
2036
+ }
2037
+ /**
2038
+ * Token2022 query helper
2039
+ */
2040
+ declare class Token2022Query {
2041
+ private module;
2042
+ constructor(module: Token2022Module);
2043
+ allMints(): Promise<{
2044
+ address: Address$1;
2045
+ data: any;
2046
+ }[]>;
2047
+ mintsByAuthority(authority: Address$1): Promise<{
2048
+ address: Address$1;
2049
+ data: any;
2050
+ }[]>;
2051
+ }
2052
+ /**
2053
+ * Convert SOL to lamports
2054
+ */
2055
+ declare function sol(amount: number): bigint;
2056
+ /**
2057
+ * Convert lamports to SOL
2058
+ */
2059
+ declare function lamportsToSol(lamports: bigint): number;
2060
+
2061
+ export { type Agent as A, BaseModule as B, type CreateServiceListingParams as C, type SimulatedTransactionResponse as D, type EscrowAccount as E, type SolanaRpcClient as F, GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS as G, type EmergencyConfig as H, InstructionBuilder as I, type JobPosting as J, type Commitment as K, type RetryConfig as L, MarketplaceModule as M, type ExtendedRpcApi as N, type RpcApi as O, PricingModel as P, type RpcSubscriptionApi as Q, type RegisterAgentParams as R, type ServiceListingWithAddress as S, Token2022Module as T, getAgentDecoder as U, type GhostSpeakConfig as a, GhostSpeak as b, GovernanceModule as c, AuctionStatus as d, AuctionType as e, type AgentWithAddress as f, type AgentRegistrationData as g, type AgentAccount as h, type ServiceListingData as i, EscrowStatus as j, type A2ASession as k, lamportsToSol as l, type A2AMessage as m, GhostSpeakError as n, type CreateJobPostingParams as o, type CreateEscrowParams as p, type CreateA2ASessionParams as q, type SendA2AMessageParams as r, sol as s, type RpcResponse as t, type RpcAccountInfo as u, type RpcProgramAccount as v, type RpcProgramAccountsResponse as w, type RpcAccountInfoResponse as x, type RpcMultipleAccountsResponse as y, type TransactionResponse as z };