@ghostspeak/sdk 1.5.1 → 1.6.0

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.
package/dist/index.js CHANGED
@@ -1,6 +1,5 @@
1
- import { fixEncoderSize, getBytesEncoder, transformEncoder, getStructEncoder, getU64Encoder, getAddressEncoder, addEncoderSizePrefix, getI64Encoder, getU8Encoder, getUtf8Encoder, getU32Encoder, getStructDecoder, fixDecoderSize, getU64Decoder, getAddressDecoder, addDecoderSizePrefix, getI64Decoder, getU8Decoder, getBytesDecoder, getUtf8Decoder, getU32Decoder, combineCodec, decodeAccount, assertAccountExists, fetchEncodedAccount, assertAccountsExist, fetchEncodedAccounts, getBooleanEncoder, getBooleanDecoder, getArrayEncoder, getArrayDecoder, getOptionEncoder, getOptionDecoder, getEnumEncoder, getEnumDecoder, getDiscriminatedUnionEncoder, getUnitEncoder, getTupleEncoder, getDiscriminatedUnionDecoder, getUnitDecoder, getTupleDecoder, getF64Encoder, getF64Decoder, getF32Encoder, getF32Decoder, getI32Encoder, getI32Decoder, getU16Encoder, getU16Decoder, containsBytes, isProgramError, getProgramDerivedAddress, createSolanaRpc, AccountRole as AccountRole$1, upgradeRoleToSigner, sendAndConfirmTransactionFactory, pipe, createTransactionMessage, setTransactionMessageFeePayerSigner, setTransactionMessageLifetimeUsingBlockhash, appendTransactionMessageInstructions, signTransactionMessageWithSigners, setTransactionMessageFeePayer, compileTransactionMessage, isTransactionSigner as isTransactionSigner$1 } from '@solana/kit';
2
- import { address, getAddressEncoder as getAddressEncoder$1, getProgramDerivedAddress as getProgramDerivedAddress$1 } from '@solana/addresses';
3
- import { AccountRole } from '@solana/instructions';
1
+ import { fixEncoderSize, getBytesEncoder, transformEncoder, getStructEncoder, getU64Encoder, getAddressEncoder, addEncoderSizePrefix, getI64Encoder, getU8Encoder, getUtf8Encoder, getU32Encoder, getStructDecoder, fixDecoderSize, getU64Decoder, getAddressDecoder, addDecoderSizePrefix, getI64Decoder, getU8Decoder, getBytesDecoder, getUtf8Decoder, getU32Decoder, combineCodec, decodeAccount, assertAccountExists, fetchEncodedAccount, assertAccountsExist, fetchEncodedAccounts, getBooleanEncoder, getBooleanDecoder, getArrayEncoder, getArrayDecoder, getOptionEncoder, getOptionDecoder, getEnumEncoder, getEnumDecoder, getDiscriminatedUnionEncoder, getUnitEncoder, getTupleEncoder, getDiscriminatedUnionDecoder, getUnitDecoder, getTupleDecoder, getF64Encoder, getF64Decoder, getF32Encoder, getF32Decoder, getI32Encoder, getI32Decoder, getU16Encoder, getU16Decoder, containsBytes, isProgramError, getProgramDerivedAddress, AccountRole, upgradeRoleToSigner, sendAndConfirmTransactionFactory, pipe, createTransactionMessage, setTransactionMessageFeePayerSigner, setTransactionMessageLifetimeUsingBlockhash, appendTransactionMessageInstructions, signTransactionMessageWithSigners, getBase64EncodedWireTransaction, setTransactionMessageFeePayer, compileTransactionMessage, isTransactionSigner as isTransactionSigner$1, createSolanaRpc, createSolanaRpcSubscriptions } from '@solana/kit';
2
+ import { address } from '@solana/addresses';
4
3
 
5
4
  var __defProp = Object.defineProperty;
6
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -10529,10 +10528,10 @@ function getAccountMetaFactory(programAddress, optionalAccountStrategy) {
10529
10528
  if (!account.value) {
10530
10529
  return Object.freeze({
10531
10530
  address: programAddress,
10532
- role: AccountRole$1.READONLY
10531
+ role: AccountRole.READONLY
10533
10532
  });
10534
10533
  }
10535
- const writableRole = account.isWritable ? AccountRole$1.WRITABLE : AccountRole$1.READONLY;
10534
+ const writableRole = account.isWritable ? AccountRole.WRITABLE : AccountRole.READONLY;
10536
10535
  return Object.freeze({
10537
10536
  address: expectAddress(account.value),
10538
10537
  role: isTransactionSigner(account.value) ? upgradeRoleToSigner(writableRole) : writableRole,
@@ -20599,254 +20598,6 @@ var init_generated = __esm({
20599
20598
  }
20600
20599
  });
20601
20600
 
20602
- // src/types/index.ts
20603
- var init_types2 = __esm({
20604
- "src/types/index.ts"() {
20605
- init_generated();
20606
- init_programs();
20607
- }
20608
- });
20609
-
20610
- // src/utils/rpc.ts
20611
- var rpc_exports = {};
20612
- __export(rpc_exports, {
20613
- AccountDecoder: () => AccountDecoder,
20614
- AccountFetcher: () => AccountFetcher,
20615
- GhostSpeakRpcClient: () => GhostSpeakRpcClient
20616
- });
20617
- var GhostSpeakRpcClient, AccountDecoder, AccountFetcher;
20618
- var init_rpc = __esm({
20619
- "src/utils/rpc.ts"() {
20620
- GhostSpeakRpcClient = class _GhostSpeakRpcClient {
20621
- rpc;
20622
- constructor(rpc) {
20623
- this.rpc = rpc;
20624
- }
20625
- /**
20626
- * Create a new RPC client from endpoint URL
20627
- */
20628
- static fromEndpoint(endpoint) {
20629
- const rpc = createSolanaRpc(endpoint);
20630
- return new _GhostSpeakRpcClient(rpc);
20631
- }
20632
- /**
20633
- * Get account information using 2025 patterns
20634
- */
20635
- async getAccount(address2, commitment = "confirmed") {
20636
- try {
20637
- const result = await this.rpc.getAccountInfo(address2, {
20638
- commitment,
20639
- encoding: "base64"
20640
- });
20641
- return result.value;
20642
- } catch (error) {
20643
- console.warn(`Failed to fetch account ${address2}:`, error);
20644
- return null;
20645
- }
20646
- }
20647
- /**
20648
- * Get multiple accounts efficiently
20649
- */
20650
- async getAccounts(addresses, commitment = "confirmed") {
20651
- try {
20652
- const result = await this.rpc.getMultipleAccounts(addresses, {
20653
- commitment,
20654
- encoding: "base64"
20655
- });
20656
- return result.value;
20657
- } catch (error) {
20658
- console.warn("Failed to fetch multiple accounts:", error);
20659
- return addresses.map(() => null);
20660
- }
20661
- }
20662
- /**
20663
- * Get program accounts with optional filters
20664
- */
20665
- async getProgramAccounts(programId, filters = [], commitment = "confirmed") {
20666
- try {
20667
- const result = await this.rpc.getProgramAccounts(programId, {
20668
- commitment,
20669
- encoding: "base64",
20670
- filters
20671
- });
20672
- return (result.value || []).map((item) => ({
20673
- address: item.pubkey,
20674
- account: item.account
20675
- }));
20676
- } catch (error) {
20677
- console.warn(`Failed to fetch program accounts for ${programId}:`, error);
20678
- return [];
20679
- }
20680
- }
20681
- /**
20682
- * Get and decode a single account using provided decoder
20683
- */
20684
- async getAndDecodeAccount(address2, decoder, commitment = "confirmed") {
20685
- try {
20686
- const account = await this.getAccount(address2, commitment);
20687
- if (!account?.data) {
20688
- return null;
20689
- }
20690
- const data = typeof account.data === "string" ? Uint8Array.from(atob(account.data), (c) => c.charCodeAt(0)) : account.data;
20691
- return decoder.decode(data);
20692
- } catch (error) {
20693
- console.warn(`Failed to decode account ${address2}:`, error);
20694
- return null;
20695
- }
20696
- }
20697
- /**
20698
- * Get and decode multiple accounts with the same decoder
20699
- */
20700
- async getAndDecodeAccounts(addresses, decoder, commitment = "confirmed") {
20701
- try {
20702
- const accounts = await this.getAccounts(addresses, commitment);
20703
- return accounts.map((account) => {
20704
- if (!account?.data) {
20705
- return null;
20706
- }
20707
- try {
20708
- const data = typeof account.data === "string" ? Uint8Array.from(atob(account.data), (c) => c.charCodeAt(0)) : account.data;
20709
- return decoder.decode(data);
20710
- } catch (error) {
20711
- console.warn("Failed to decode account:", error);
20712
- return null;
20713
- }
20714
- });
20715
- } catch (error) {
20716
- console.warn("Failed to decode multiple accounts:", error);
20717
- return addresses.map(() => null);
20718
- }
20719
- }
20720
- /**
20721
- * Get and decode program accounts with filtering
20722
- */
20723
- async getAndDecodeProgramAccounts(programId, decoder, filters = [], commitment = "confirmed") {
20724
- try {
20725
- const accounts = await this.getProgramAccounts(programId, filters, commitment);
20726
- const decodedAccounts = [];
20727
- for (const { address: address2, account } of accounts) {
20728
- try {
20729
- if (!account.data) continue;
20730
- const data = typeof account.data === "string" ? Uint8Array.from(atob(account.data), (c) => c.charCodeAt(0)) : account.data;
20731
- const decoded = decoder.decode(data);
20732
- decodedAccounts.push({ address: address2, data: decoded });
20733
- } catch (error) {
20734
- console.warn(`Failed to decode account ${address2}:`, error);
20735
- }
20736
- }
20737
- return decodedAccounts;
20738
- } catch (error) {
20739
- console.warn(`Failed to get program accounts for ${programId}:`, error);
20740
- return [];
20741
- }
20742
- }
20743
- /**
20744
- * Raw RPC access for advanced use cases
20745
- */
20746
- get raw() {
20747
- return this.rpc;
20748
- }
20749
- };
20750
- AccountDecoder = class {
20751
- /**
20752
- * Decode a single account's data
20753
- */
20754
- static decode(accountData, decoder) {
20755
- const data = typeof accountData === "string" ? Uint8Array.from(atob(accountData), (c) => c.charCodeAt(0)) : accountData;
20756
- return decoder.decode(data);
20757
- }
20758
- /**
20759
- * Decode multiple accounts with error handling
20760
- */
20761
- static decodeMultiple(accountsData, decoder) {
20762
- return accountsData.map((data) => {
20763
- if (!data) return null;
20764
- try {
20765
- return this.decode(data, decoder);
20766
- } catch (error) {
20767
- console.warn("Failed to decode account data:", error);
20768
- return null;
20769
- }
20770
- });
20771
- }
20772
- };
20773
- AccountFetcher = class {
20774
- constructor(rpcClient, cacheTimeoutMs = 3e4) {
20775
- this.rpcClient = rpcClient;
20776
- this.cacheTimeout = cacheTimeoutMs;
20777
- }
20778
- cache = /* @__PURE__ */ new Map();
20779
- cacheTimeout;
20780
- /**
20781
- * Fetch account with caching
20782
- */
20783
- async fetchAccount(address2, decoder, useCache = true) {
20784
- const cacheKey = `${address2}_${decoder.constructor.name}`;
20785
- if (useCache) {
20786
- const cached = this.cache.get(cacheKey);
20787
- if (cached && Date.now() - cached.timestamp < this.cacheTimeout) {
20788
- return cached.data;
20789
- }
20790
- }
20791
- const data = await this.rpcClient.getAndDecodeAccount(address2, decoder);
20792
- if (data && useCache) {
20793
- this.cache.set(cacheKey, { data, timestamp: Date.now() });
20794
- }
20795
- return data;
20796
- }
20797
- /**
20798
- * Batch fetch accounts with optimization
20799
- */
20800
- async fetchAccountsBatch(addresses, decoder, useCache = true) {
20801
- const uncachedAddresses = [];
20802
- const results = new Array(addresses.length);
20803
- if (useCache) {
20804
- addresses.forEach((address2, index) => {
20805
- const cacheKey = `${address2}_${decoder.constructor.name}`;
20806
- const cached = this.cache.get(cacheKey);
20807
- if (cached && Date.now() - cached.timestamp < this.cacheTimeout) {
20808
- results[index] = cached.data;
20809
- } else {
20810
- uncachedAddresses.push(address2);
20811
- }
20812
- });
20813
- } else {
20814
- uncachedAddresses.push(...addresses);
20815
- }
20816
- if (uncachedAddresses.length > 0) {
20817
- const freshData = await this.rpcClient.getAndDecodeAccounts(uncachedAddresses, decoder);
20818
- let uncachedIndex = 0;
20819
- addresses.forEach((address2, index) => {
20820
- if (results[index] === void 0) {
20821
- const data = freshData[uncachedIndex++];
20822
- results[index] = data;
20823
- if (data && useCache) {
20824
- const cacheKey = `${address2}_${decoder.constructor.name}`;
20825
- this.cache.set(cacheKey, { data, timestamp: Date.now() });
20826
- }
20827
- }
20828
- });
20829
- }
20830
- return results;
20831
- }
20832
- /**
20833
- * Clear cache for specific account or all
20834
- */
20835
- clearCache(address2) {
20836
- if (address2) {
20837
- for (const key of this.cache.keys()) {
20838
- if (key.startsWith(address2)) {
20839
- this.cache.delete(key);
20840
- }
20841
- }
20842
- } else {
20843
- this.cache.clear();
20844
- }
20845
- }
20846
- };
20847
- }
20848
- });
20849
-
20850
20601
  // src/utils/pda.ts
20851
20602
  var pda_exports = {};
20852
20603
  __export(pda_exports, {
@@ -21178,280 +20929,10 @@ var init_pda = __esm({
21178
20929
  "src/utils/pda.ts"() {
21179
20930
  }
21180
20931
  });
21181
- async function deriveAgentPda2(owner, agentId) {
21182
- const encoder = getAddressEncoder$1();
21183
- const seeds = [
21184
- Buffer.from("agent"),
21185
- encoder.encode(owner),
21186
- Buffer.from(agentId)
21187
- ];
21188
- const [pda] = await getProgramDerivedAddress$1({
21189
- programAddress: GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS,
21190
- seeds
21191
- });
21192
- return pda;
21193
- }
21194
- async function deriveServiceListingPda2(creator, listingId) {
21195
- const encoder = getAddressEncoder$1();
21196
- const seeds = [
21197
- Buffer.from("service_listing"),
21198
- encoder.encode(creator),
21199
- Buffer.from(listingId.toString())
21200
- // Convert to string then to bytes like Rust listing_id.as_bytes()
21201
- ];
21202
- const [pda] = await getProgramDerivedAddress$1({
21203
- programAddress: GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS,
21204
- seeds
21205
- });
21206
- return pda;
21207
- }
21208
- async function deriveWorkOrderPda2(listing, buyer) {
21209
- const encoder = getAddressEncoder$1();
21210
- const seeds = [
21211
- Buffer.from("work_order"),
21212
- encoder.encode(listing),
21213
- encoder.encode(buyer)
21214
- ];
21215
- const [pda] = await getProgramDerivedAddress$1({
21216
- programAddress: GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS,
21217
- seeds
21218
- });
21219
- return pda;
21220
- }
21221
- function serializeString(str, maxLen) {
21222
- const encoded = new TextEncoder().encode(str);
21223
- const buffer = new Uint8Array(4 + maxLen);
21224
- new DataView(buffer.buffer).setUint32(0, encoded.length, true);
21225
- buffer.set(encoded.slice(0, maxLen), 4);
21226
- return buffer;
21227
- }
21228
- function serializeVec(items, serializeItem) {
21229
- const serializedItems = items.map(serializeItem);
21230
- const totalLength = 4 + serializedItems.reduce((sum, item) => sum + item.length, 0);
21231
- const buffer = new Uint8Array(totalLength);
21232
- new DataView(buffer.buffer).setUint32(0, items.length, true);
21233
- let offset = 4;
21234
- for (const item of serializedItems) {
21235
- buffer.set(item, offset);
21236
- offset += item.length;
21237
- }
21238
- return buffer;
21239
- }
21240
- var init_utils = __esm({
21241
- "src/core/utils.ts"() {
21242
- init_types2();
21243
- }
21244
- });
21245
-
21246
- // src/core/instructions/simple-marketplace.ts
21247
- var simple_marketplace_exports = {};
21248
- __export(simple_marketplace_exports, {
21249
- createSimpleServiceListingInstruction: () => createSimpleServiceListingInstruction
21250
- });
21251
- async function createSimpleServiceListingInstruction(creator, agentId, listingId, title, price) {
21252
- const encoder = getAddressEncoder$1();
21253
- const agentPda = await deriveAgentPda2(creator.address, "");
21254
- const [listingPda] = await getProgramDerivedAddress$1({
21255
- programAddress: GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS,
21256
- seeds: [
21257
- Buffer.from("service_listing"),
21258
- encoder.encode(creator.address),
21259
- Buffer.from("")
21260
- // Empty string - Rust program bug ignores the listing_id parameter
21261
- ]
21262
- });
21263
- const [userRegistryPda] = await getProgramDerivedAddress$1({
21264
- programAddress: GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS,
21265
- seeds: [
21266
- Buffer.from("user_registry"),
21267
- encoder.encode(creator.address)
21268
- ]
21269
- });
21270
- const accounts = [
21271
- {
21272
- address: listingPda,
21273
- role: AccountRole.WRITABLE
21274
- },
21275
- {
21276
- address: agentPda,
21277
- role: AccountRole.READONLY
21278
- },
21279
- {
21280
- address: userRegistryPda,
21281
- role: AccountRole.WRITABLE
21282
- },
21283
- {
21284
- address: creator.address,
21285
- role: AccountRole.WRITABLE_SIGNER
21286
- },
21287
- {
21288
- address: "11111111111111111111111111111111",
21289
- role: AccountRole.READONLY
21290
- },
21291
- {
21292
- address: "SysvarC1ock11111111111111111111111111111111",
21293
- role: AccountRole.READONLY
21294
- }
21295
- ];
21296
- const discriminator = new Uint8Array([91, 37, 216, 26, 93, 146, 13, 182]);
21297
- const titleBytes = serializeString(title.substring(0, 10), 16);
21298
- const descriptionBytes = serializeString("Service", 16);
21299
- const priceBytes = new Uint8Array(8);
21300
- new DataView(priceBytes.buffer).setBigUint64(0, price, true);
21301
- const tokenMintBytes = new Uint8Array(32);
21302
- const serviceTypeBytes = serializeString("Service", 16);
21303
- const paymentTokenBytes = new Uint8Array(32);
21304
- const estimatedDeliveryBytes = new Uint8Array(8);
21305
- new DataView(estimatedDeliveryBytes.buffer).setBigInt64(0, BigInt(3600), true);
21306
- const tagsVecLength = new Uint8Array(4);
21307
- new DataView(tagsVecLength.buffer).setUint32(0, 1, true);
21308
- const tagBytes = serializeString("svc", 8);
21309
- const listingIdBytes = serializeString(listingId.toString().substring(0, 6), 8);
21310
- const data = new Uint8Array(
21311
- discriminator.length + titleBytes.length + descriptionBytes.length + priceBytes.length + tokenMintBytes.length + serviceTypeBytes.length + paymentTokenBytes.length + estimatedDeliveryBytes.length + tagsVecLength.length + tagBytes.length + listingIdBytes.length
21312
- );
21313
- let offset = 0;
21314
- data.set(discriminator, offset);
21315
- offset += discriminator.length;
21316
- data.set(titleBytes, offset);
21317
- offset += titleBytes.length;
21318
- data.set(descriptionBytes, offset);
21319
- offset += descriptionBytes.length;
21320
- data.set(priceBytes, offset);
21321
- offset += priceBytes.length;
21322
- data.set(tokenMintBytes, offset);
21323
- offset += tokenMintBytes.length;
21324
- data.set(serviceTypeBytes, offset);
21325
- offset += serviceTypeBytes.length;
21326
- data.set(paymentTokenBytes, offset);
21327
- offset += paymentTokenBytes.length;
21328
- data.set(estimatedDeliveryBytes, offset);
21329
- offset += estimatedDeliveryBytes.length;
21330
- data.set(tagsVecLength, offset);
21331
- offset += tagsVecLength.length;
21332
- data.set(tagBytes, offset);
21333
- offset += tagBytes.length;
21334
- data.set(listingIdBytes, offset);
21335
- return {
21336
- programAddress: GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS,
21337
- accounts,
21338
- data
21339
- };
21340
- }
21341
- var init_simple_marketplace = __esm({
21342
- "src/core/instructions/simple-marketplace.ts"() {
21343
- init_types2();
21344
- init_utils();
21345
- }
21346
- });
21347
20932
 
21348
- // src/core/instructions/fixed-marketplace.ts
21349
- var fixed_marketplace_exports = {};
21350
- __export(fixed_marketplace_exports, {
21351
- createFixedServiceListingInstruction: () => createFixedServiceListingInstruction
21352
- });
21353
- function serializeServiceListingData(data) {
21354
- const titleBytes = serializeString(data.title, 32);
21355
- const descriptionBytes = serializeString(data.description, 64);
21356
- const priceBytes = new Uint8Array(8);
21357
- new DataView(priceBytes.buffer).setBigUint64(0, data.price, true);
21358
- const tokenMintBytes = data.tokenMint;
21359
- const serviceTypeBytes = serializeString(data.serviceType, 16);
21360
- const paymentTokenBytes = data.paymentToken;
21361
- const deliveryBytes = new Uint8Array(8);
21362
- new DataView(deliveryBytes.buffer).setBigInt64(0, data.estimatedDelivery, true);
21363
- const tagsBytes = serializeVec(data.tags, (tag) => serializeString(tag, 16));
21364
- const totalSize = titleBytes.length + descriptionBytes.length + priceBytes.length + tokenMintBytes.length + serviceTypeBytes.length + paymentTokenBytes.length + deliveryBytes.length + tagsBytes.length;
21365
- const structData = new Uint8Array(totalSize);
21366
- let offset = 0;
21367
- structData.set(titleBytes, offset);
21368
- offset += titleBytes.length;
21369
- structData.set(descriptionBytes, offset);
21370
- offset += descriptionBytes.length;
21371
- structData.set(priceBytes, offset);
21372
- offset += priceBytes.length;
21373
- structData.set(tokenMintBytes, offset);
21374
- offset += tokenMintBytes.length;
21375
- structData.set(serviceTypeBytes, offset);
21376
- offset += serviceTypeBytes.length;
21377
- structData.set(paymentTokenBytes, offset);
21378
- offset += paymentTokenBytes.length;
21379
- structData.set(deliveryBytes, offset);
21380
- offset += deliveryBytes.length;
21381
- structData.set(tagsBytes, offset);
21382
- return structData;
21383
- }
21384
- async function createFixedServiceListingInstruction(creator, agentId, listingId, title, description, price) {
21385
- const encoder = getAddressEncoder$1();
21386
- const agentPda = await deriveAgentPda2(creator.address, "");
21387
- const [listingPda] = await getProgramDerivedAddress$1({
21388
- programAddress: GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS,
21389
- seeds: [
21390
- Buffer.from("service_listing"),
21391
- encoder.encode(creator.address),
21392
- Buffer.from("")
21393
- // Empty string - Rust program bug
21394
- ]
21395
- });
21396
- const [userRegistryPda] = await getProgramDerivedAddress$1({
21397
- programAddress: GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS,
21398
- seeds: [
21399
- Buffer.from("user_registry"),
21400
- encoder.encode(creator.address)
21401
- ]
21402
- });
21403
- const accounts = [
21404
- { address: listingPda, role: AccountRole.WRITABLE },
21405
- { address: agentPda, role: AccountRole.READONLY },
21406
- { address: userRegistryPda, role: AccountRole.WRITABLE },
21407
- { address: creator.address, role: AccountRole.WRITABLE_SIGNER },
21408
- { address: "11111111111111111111111111111111", role: AccountRole.READONLY },
21409
- { address: "SysvarC1ock11111111111111111111111111111111", role: AccountRole.READONLY }
21410
- ];
21411
- const discriminator = new Uint8Array([91, 37, 216, 26, 93, 146, 13, 182]);
21412
- const structData = serializeServiceListingData({
21413
- title: title.substring(0, 16),
21414
- description: description.substring(0, 32),
21415
- price,
21416
- tokenMint: new Uint8Array(32),
21417
- // Zero pubkey
21418
- serviceType: "Service",
21419
- paymentToken: new Uint8Array(32),
21420
- // Zero pubkey
21421
- estimatedDelivery: BigInt(3600),
21422
- // 1 hour
21423
- tags: ["svc"]
21424
- // Single tag
21425
- });
21426
- const listingIdBytes = serializeString(listingId.toString().substring(0, 8), 12);
21427
- const data = new Uint8Array(discriminator.length + structData.length + listingIdBytes.length);
21428
- let offset = 0;
21429
- data.set(discriminator, offset);
21430
- offset += discriminator.length;
21431
- data.set(structData, offset);
21432
- offset += structData.length;
21433
- data.set(listingIdBytes, offset);
21434
- console.log("\u{1F4CA} FIXED INSTRUCTION ANALYSIS:");
21435
- console.log("- Total size:", data.length, "bytes");
21436
- console.log("- Discriminator:", discriminator.length, "bytes");
21437
- console.log("- Struct data:", structData.length, "bytes");
21438
- console.log("- Parameter:", listingIdBytes.length, "bytes");
21439
- console.log("- Price bytes at struct offset:", Array.from(data.slice(discriminator.length + 36 + 68, discriminator.length + 36 + 68 + 8)).map((b) => b.toString(16).padStart(2, "0")).join(" "));
21440
- return {
21441
- programAddress: GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS,
21442
- accounts,
21443
- data
21444
- };
21445
- }
21446
- var init_fixed_marketplace = __esm({
21447
- "src/core/instructions/fixed-marketplace.ts"() {
21448
- init_types2();
21449
- init_utils();
21450
- }
21451
- });
21452
-
21453
- // src/client/GhostSpeakClient.ts
21454
- init_types2();
20933
+ // src/types/index.ts
20934
+ init_generated();
20935
+ init_programs();
21455
20936
 
21456
20937
  // src/client/instructions/AgentInstructions.ts
21457
20938
  init_generated();
@@ -21546,11 +21027,122 @@ function logTransactionDetails(result) {
21546
21027
  console.log(` \u26A1 XRAY (Helius): ${result.urls.xray}`);
21547
21028
  console.log("\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501");
21548
21029
  }
21030
+ var SimpleRpcClient = class {
21031
+ rpc;
21032
+ rpcSubscriptions;
21033
+ commitment;
21034
+ constructor(config) {
21035
+ this.rpc = createSolanaRpc({ url: config.endpoint });
21036
+ this.commitment = config.commitment ?? "confirmed";
21037
+ if (config.wsEndpoint) {
21038
+ this.rpcSubscriptions = createSolanaRpcSubscriptions({ url: config.wsEndpoint });
21039
+ }
21040
+ }
21041
+ /**
21042
+ * Get account information
21043
+ */
21044
+ async getAccountInfo(address2, options) {
21045
+ try {
21046
+ const result = await this.rpc.getAccountInfo(address2, {
21047
+ commitment: options?.commitment ?? this.commitment,
21048
+ encoding: "base64"
21049
+ }).send();
21050
+ if (!result.value) return null;
21051
+ return {
21052
+ executable: result.value.executable,
21053
+ lamports: result.value.lamports,
21054
+ owner: result.value.owner,
21055
+ rentEpoch: result.value.rentEpoch,
21056
+ data: result.value.data,
21057
+ space: result.value.space
21058
+ };
21059
+ } catch (error) {
21060
+ console.warn(`Failed to get account info for ${address2}:`, error);
21061
+ return null;
21062
+ }
21063
+ }
21064
+ /**
21065
+ * Get multiple accounts
21066
+ */
21067
+ async getMultipleAccounts(addresses, options) {
21068
+ try {
21069
+ const result = await this.rpc.getMultipleAccounts(addresses, {
21070
+ commitment: options?.commitment ?? this.commitment,
21071
+ encoding: "base64"
21072
+ }).send();
21073
+ return (result.value ?? []).map(
21074
+ (account) => account ? this.parseAccountInfo(account) : null
21075
+ );
21076
+ } catch (error) {
21077
+ console.warn("Failed to get multiple accounts:", error);
21078
+ return addresses.map(() => null);
21079
+ }
21080
+ }
21081
+ /**
21082
+ * Get latest blockhash
21083
+ */
21084
+ async getLatestBlockhash() {
21085
+ const result = await this.rpc.getLatestBlockhash({ commitment: this.commitment }).send();
21086
+ return result.value;
21087
+ }
21088
+ /**
21089
+ * Send transaction
21090
+ */
21091
+ async sendTransaction(transaction, options) {
21092
+ const result = await this.rpc.sendTransaction(transaction, {
21093
+ skipPreflight: options?.skipPreflight ?? false,
21094
+ preflightCommitment: options?.preflightCommitment ?? this.commitment
21095
+ }).send();
21096
+ return result;
21097
+ }
21098
+ /**
21099
+ * Get signature statuses
21100
+ */
21101
+ async getSignatureStatuses(signatures) {
21102
+ const result = await this.rpc.getSignatureStatuses(signatures).send();
21103
+ return result.value;
21104
+ }
21105
+ /**
21106
+ * Simulate transaction
21107
+ */
21108
+ async simulateTransaction(transaction, options) {
21109
+ return await this.rpc.simulateTransaction(transaction, {
21110
+ commitment: options?.commitment ?? this.commitment,
21111
+ replaceRecentBlockhash: options?.replaceRecentBlockhash ?? false
21112
+ }).send();
21113
+ }
21114
+ /**
21115
+ * Get fee for message
21116
+ */
21117
+ async getFeeForMessage(message) {
21118
+ const result = await this.rpc.getFeeForMessage(message).send();
21119
+ return Number(result.value ?? 5e3);
21120
+ }
21121
+ /**
21122
+ * Get program accounts (placeholder implementation)
21123
+ */
21124
+ async getProgramAccounts(programId, options) {
21125
+ console.warn("getProgramAccounts: Using simplified implementation");
21126
+ return [];
21127
+ }
21128
+ parseAccountInfo(accountInfo) {
21129
+ const account = accountInfo;
21130
+ return {
21131
+ executable: account.executable,
21132
+ lamports: account.lamports,
21133
+ owner: account.owner,
21134
+ rentEpoch: account.rentEpoch,
21135
+ data: account.data,
21136
+ space: account.space
21137
+ };
21138
+ }
21139
+ };
21549
21140
 
21550
21141
  // src/client/instructions/BaseInstructions.ts
21551
21142
  var BaseInstructions = class {
21552
21143
  config;
21553
21144
  _sendAndConfirmTransaction = null;
21145
+ _rpcClient = null;
21554
21146
  constructor(config) {
21555
21147
  this.config = config;
21556
21148
  }
@@ -21560,6 +21152,18 @@ var BaseInstructions = class {
21560
21152
  get rpc() {
21561
21153
  return this.config.rpc;
21562
21154
  }
21155
+ /**
21156
+ * Get or create the Solana RPC client instance
21157
+ */
21158
+ getRpcClient() {
21159
+ this._rpcClient ??= new SimpleRpcClient({
21160
+ endpoint: this.config.rpcEndpoint ?? "https://api.devnet.solana.com",
21161
+ wsEndpoint: this.config.rpcSubscriptions ? void 0 : void 0,
21162
+ // TODO: get ws endpoint from config
21163
+ commitment: this.config.commitment ?? "confirmed"
21164
+ });
21165
+ return this._rpcClient;
21166
+ }
21563
21167
  /**
21564
21168
  * Get the RPC subscriptions client
21565
21169
  */
@@ -21576,18 +21180,29 @@ var BaseInstructions = class {
21576
21180
  * Get the commitment level
21577
21181
  */
21578
21182
  get commitment() {
21579
- return this.config.commitment || "confirmed";
21183
+ return this.config.commitment ?? "confirmed";
21580
21184
  }
21581
21185
  /**
21582
21186
  * Get or create the send and confirm transaction function using factory pattern
21583
21187
  */
21584
21188
  getSendAndConfirmTransaction() {
21585
21189
  if (!this._sendAndConfirmTransaction) {
21586
- const factoryConfig = { rpc: this.rpc };
21587
21190
  if (this.rpcSubscriptions) {
21588
- factoryConfig.rpcSubscriptions = this.rpcSubscriptions;
21191
+ const factoryConfig = { rpc: this.rpc, rpcSubscriptions: this.rpcSubscriptions };
21192
+ try {
21193
+ this._sendAndConfirmTransaction = sendAndConfirmTransactionFactory(factoryConfig);
21194
+ } catch {
21195
+ this._sendAndConfirmTransaction = sendAndConfirmTransactionFactory({
21196
+ rpc: this.rpc,
21197
+ rpcSubscriptions: this.rpcSubscriptions
21198
+ });
21199
+ }
21200
+ } else {
21201
+ this._sendAndConfirmTransaction = sendAndConfirmTransactionFactory({
21202
+ rpc: this.rpc,
21203
+ rpcSubscriptions: null
21204
+ });
21589
21205
  }
21590
- this._sendAndConfirmTransaction = sendAndConfirmTransactionFactory(factoryConfig);
21591
21206
  }
21592
21207
  return this._sendAndConfirmTransaction;
21593
21208
  }
@@ -21618,7 +21233,8 @@ var BaseInstructions = class {
21618
21233
  throw new Error(`Instruction at index ${i} accounts is not an array`);
21619
21234
  }
21620
21235
  }
21621
- const { value: latestBlockhash } = await this.rpc.getLatestBlockhash().send();
21236
+ const rpcClient = this.getRpcClient();
21237
+ const latestBlockhash = await rpcClient.getLatestBlockhash();
21622
21238
  const transactionMessage = await pipe(
21623
21239
  createTransactionMessage({ version: 0 }),
21624
21240
  (tx) => setTransactionMessageFeePayerSigner(signers[0], tx),
@@ -21629,10 +21245,11 @@ var BaseInstructions = class {
21629
21245
  let result;
21630
21246
  let signature;
21631
21247
  if (!this.rpcSubscriptions) {
21632
- const transactionSignature = await this.rpc.sendTransaction(signedTransaction, {
21248
+ const wireTransaction = getBase64EncodedWireTransaction(signedTransaction);
21249
+ const transactionSignature = await rpcClient.sendTransaction(wireTransaction, {
21633
21250
  skipPreflight: false,
21634
21251
  preflightCommitment: this.commitment
21635
- }).send();
21252
+ });
21636
21253
  let confirmed = false;
21637
21254
  let attempts = 0;
21638
21255
  const maxAttempts = 30;
@@ -21640,10 +21257,10 @@ var BaseInstructions = class {
21640
21257
  let currentDelay = baseDelay;
21641
21258
  while (!confirmed && attempts < maxAttempts) {
21642
21259
  try {
21643
- const status = await this.rpc.getSignatureStatuses([transactionSignature]).send();
21644
- if (status.value[0]) {
21645
- const confirmationStatus = status.value[0].confirmationStatus;
21646
- const err = status.value[0].err;
21260
+ const statuses = await rpcClient.getSignatureStatuses([transactionSignature]);
21261
+ if (statuses[0]) {
21262
+ const confirmationStatus = statuses[0].confirmationStatus;
21263
+ const err = statuses[0].err;
21647
21264
  if (err) {
21648
21265
  throw new Error(`Transaction failed: ${JSON.stringify(err)}`);
21649
21266
  }
@@ -21658,11 +21275,12 @@ var BaseInstructions = class {
21658
21275
  await new Promise((resolve) => setTimeout(resolve, currentDelay));
21659
21276
  currentDelay = Math.min(currentDelay * 1.5, 5e3);
21660
21277
  } catch (statusError) {
21661
- if (statusError.message?.includes("Transaction failed")) {
21278
+ const errorMessage = statusError instanceof Error ? statusError.message : String(statusError);
21279
+ if (errorMessage.includes("Transaction failed")) {
21662
21280
  throw statusError;
21663
21281
  }
21664
21282
  attempts++;
21665
- console.warn(`\u26A0\uFE0F Status check failed (${attempts}/${maxAttempts}): ${statusError.message}`);
21283
+ console.warn(`\u26A0\uFE0F Status check failed (${attempts}/${maxAttempts}): ${errorMessage}`);
21666
21284
  await new Promise((resolve) => setTimeout(resolve, currentDelay * 2));
21667
21285
  }
21668
21286
  }
@@ -21689,7 +21307,7 @@ var BaseInstructions = class {
21689
21307
  throw new Error("Transaction result missing signature");
21690
21308
  }
21691
21309
  }
21692
- const cluster = this.config.cluster || (this.config.rpcEndpoint ? detectClusterFromEndpoint(this.config.rpcEndpoint) : "devnet");
21310
+ const cluster = this.config.cluster ?? (this.config.rpcEndpoint ? detectClusterFromEndpoint(this.config.rpcEndpoint) : "devnet");
21693
21311
  const transactionResult = createTransactionResult(
21694
21312
  signature,
21695
21313
  cluster,
@@ -21708,19 +21326,19 @@ var BaseInstructions = class {
21708
21326
  async estimateTransactionCost(instructions, feePayer) {
21709
21327
  try {
21710
21328
  console.log(`\u{1F4B0} Estimating REAL cost for ${instructions.length} instructions`);
21711
- const { value: latestBlockhash } = await this.rpc.getLatestBlockhash().send();
21329
+ const rpcClient = this.getRpcClient();
21330
+ const latestBlockhash = await rpcClient.getLatestBlockhash();
21712
21331
  const transactionMessage = await pipe(
21713
21332
  createTransactionMessage({ version: 0 }),
21714
- (tx) => setTransactionMessageFeePayer(feePayer || this.config.defaultFeePayer, tx),
21333
+ (tx) => setTransactionMessageFeePayer(feePayer ?? this.config.defaultFeePayer, tx),
21715
21334
  (tx) => setTransactionMessageLifetimeUsingBlockhash(latestBlockhash, tx),
21716
21335
  (tx) => appendTransactionMessageInstructions(instructions, tx)
21717
21336
  );
21718
21337
  const compiledMessage = compileTransactionMessage(transactionMessage);
21719
- const { value: fee } = await this.rpc.getFeeForMessage(compiledMessage, {
21720
- commitment: this.commitment
21721
- }).send();
21338
+ const encodedMessage = Buffer.from(compiledMessage).toString("base64");
21339
+ const fee = await rpcClient.getFeeForMessage(encodedMessage);
21722
21340
  console.log(`\u{1F4B3} Real estimated fee: ${fee} lamports`);
21723
- return BigInt(fee || 0);
21341
+ return BigInt(fee ?? 0);
21724
21342
  } catch (error) {
21725
21343
  console.warn("\u26A0\uFE0F Real fee estimation failed, using fallback:", error);
21726
21344
  const baseFee = 5000n;
@@ -21734,7 +21352,8 @@ var BaseInstructions = class {
21734
21352
  async simulateTransaction(instructions, signers) {
21735
21353
  try {
21736
21354
  console.log(`\u{1F9EA} Running REAL simulation with ${instructions.length} instructions`);
21737
- const { value: latestBlockhash } = await this.rpc.getLatestBlockhash().send();
21355
+ const rpcClient = this.getRpcClient();
21356
+ const latestBlockhash = await rpcClient.getLatestBlockhash();
21738
21357
  const transactionMessage = await pipe(
21739
21358
  createTransactionMessage({ version: 0 }),
21740
21359
  (tx) => setTransactionMessageFeePayerSigner(signers[0], tx),
@@ -21742,15 +21361,15 @@ var BaseInstructions = class {
21742
21361
  (tx) => appendTransactionMessageInstructions(instructions, tx)
21743
21362
  );
21744
21363
  const signedTransaction = await signTransactionMessageWithSigners(transactionMessage);
21745
- const { value: simulation } = await this.rpc.simulateTransaction(signedTransaction, {
21364
+ const wireTransaction = getBase64EncodedWireTransaction(signedTransaction);
21365
+ const simulation = await rpcClient.simulateTransaction(wireTransaction, {
21746
21366
  commitment: this.commitment,
21747
- encoding: "base64",
21748
21367
  replaceRecentBlockhash: true
21749
- }).send();
21368
+ });
21750
21369
  console.log(`\u2705 Real simulation completed:`);
21751
21370
  console.log(` Success: ${!simulation.err}`);
21752
- console.log(` Compute units: ${simulation.unitsConsumed || "N/A"}`);
21753
- console.log(` Logs: ${simulation.logs?.length || 0} entries`);
21371
+ console.log(` Compute units: ${simulation.unitsConsumed ?? "N/A"}`);
21372
+ console.log(` Logs: ${simulation.logs?.length ?? 0} entries`);
21754
21373
  return simulation;
21755
21374
  } catch (error) {
21756
21375
  console.error("\u274C Real simulation failed:", error);
@@ -21782,7 +21401,8 @@ var BaseInstructions = class {
21782
21401
  */
21783
21402
  async buildTransactionMessage(instructions, feePayer) {
21784
21403
  console.log("\u{1F3D7}\uFE0F Building transaction message without sending...");
21785
- const { value: latestBlockhash } = await this.rpc.getLatestBlockhash().send();
21404
+ const rpcClient = this.getRpcClient();
21405
+ const latestBlockhash = await rpcClient.getLatestBlockhash();
21786
21406
  const transactionMessage = await pipe(
21787
21407
  createTransactionMessage({ version: 0 }),
21788
21408
  (tx) => setTransactionMessageFeePayer(feePayer, tx),
@@ -21798,14 +21418,112 @@ var BaseInstructions = class {
21798
21418
  logInstructionDetails(instruction) {
21799
21419
  console.log(`\u{1F4CB} Instruction Details:`);
21800
21420
  console.log(` Program: ${instruction.programAddress}`);
21801
- console.log(` Accounts: ${instruction.accounts?.length || 0}`);
21802
- console.log(` Data size: ${instruction.data?.length || 0} bytes`);
21421
+ console.log(` Accounts: ${instruction.accounts?.length ?? 0}`);
21422
+ console.log(` Data size: ${instruction.data?.length ?? 0} bytes`);
21803
21423
  if (instruction.accounts) {
21804
21424
  instruction.accounts.forEach((account, index) => {
21805
21425
  console.log(` Account ${index}: ${JSON.stringify(account)}`);
21806
21426
  });
21807
21427
  }
21808
21428
  }
21429
+ // =====================================================
21430
+ // COMMON ACCOUNT OPERATIONS (Reduces duplication across instruction modules)
21431
+ // =====================================================
21432
+ /**
21433
+ * Get and decode a single account using provided decoder
21434
+ * Centralizes the common pattern used across all instruction modules
21435
+ */
21436
+ async getDecodedAccount(address2, decoderImportName, commitment = this.commitment) {
21437
+ try {
21438
+ const generated = await Promise.resolve().then(() => (init_generated(), generated_exports));
21439
+ const decoderGetter = generated[decoderImportName];
21440
+ if (!decoderGetter || typeof decoderGetter !== "function") {
21441
+ console.warn(`Decoder ${decoderImportName} not found in generated decoders`);
21442
+ return null;
21443
+ }
21444
+ const rpcClient = this.getRpcClient();
21445
+ const accountInfo = await rpcClient.getAccountInfo(address2, { commitment });
21446
+ if (!accountInfo) return null;
21447
+ const decoder = decoderGetter();
21448
+ const rawData = Buffer.isBuffer(accountInfo.data) || accountInfo.data instanceof Uint8Array ? accountInfo.data : Buffer.from(accountInfo.data.data ?? accountInfo.data, "base64");
21449
+ return decoder.decode(rawData);
21450
+ } catch (error) {
21451
+ console.warn(`Failed to fetch account ${address2}:`, error);
21452
+ return null;
21453
+ }
21454
+ }
21455
+ /**
21456
+ * Get and decode multiple accounts of the same type
21457
+ * Centralizes batch account fetching pattern
21458
+ */
21459
+ async getDecodedAccounts(addresses, decoderImportName, commitment = this.commitment) {
21460
+ try {
21461
+ const generated = await Promise.resolve().then(() => (init_generated(), generated_exports));
21462
+ const decoderGetter = generated[decoderImportName];
21463
+ if (!decoderGetter || typeof decoderGetter !== "function") {
21464
+ console.warn(`Decoder ${decoderImportName} not found in generated decoders`);
21465
+ return addresses.map(() => null);
21466
+ }
21467
+ const rpcClient = this.getRpcClient();
21468
+ const accounts = await rpcClient.getMultipleAccounts(addresses, { commitment });
21469
+ const decoder = decoderGetter();
21470
+ return accounts.map((accountInfo) => {
21471
+ if (!accountInfo) return null;
21472
+ try {
21473
+ const rawData = Buffer.isBuffer(accountInfo.data) || accountInfo.data instanceof Uint8Array ? accountInfo.data : Buffer.from(accountInfo.data.data ?? accountInfo.data, "base64");
21474
+ return decoder.decode(rawData);
21475
+ } catch {
21476
+ return null;
21477
+ }
21478
+ });
21479
+ } catch (error) {
21480
+ console.warn("Failed to fetch multiple accounts:", error);
21481
+ return addresses.map(() => null);
21482
+ }
21483
+ }
21484
+ /**
21485
+ * Get and decode program accounts with optional filters
21486
+ * Centralizes program account scanning pattern
21487
+ * NOTE: Temporarily simplified due to RPC client complexity
21488
+ */
21489
+ async getDecodedProgramAccounts(decoderImportName, filters = [], commitment = this.commitment) {
21490
+ console.warn(`getDecodedProgramAccounts temporarily disabled - using placeholder`);
21491
+ return [];
21492
+ }
21493
+ /**
21494
+ * Execute a single instruction with standard error handling
21495
+ * Centralizes the common instruction execution pattern
21496
+ */
21497
+ async executeInstruction(instructionGetter, signer, context) {
21498
+ try {
21499
+ const instruction = instructionGetter();
21500
+ return await this.sendTransaction(
21501
+ [instruction],
21502
+ [signer]
21503
+ );
21504
+ } catch (error) {
21505
+ const operation = context ?? "instruction execution";
21506
+ console.error(`\u274C Failed to execute ${operation}:`, error);
21507
+ throw error;
21508
+ }
21509
+ }
21510
+ /**
21511
+ * Execute a single instruction and return detailed results
21512
+ * Centralizes the common pattern for detailed transaction results
21513
+ */
21514
+ async executeInstructionWithDetails(instructionGetter, signer, context) {
21515
+ try {
21516
+ const instruction = instructionGetter();
21517
+ return await this.sendTransactionWithDetails(
21518
+ [instruction],
21519
+ [signer]
21520
+ );
21521
+ } catch (error) {
21522
+ const operation = context ?? "instruction execution";
21523
+ console.error(`\u274C Failed to execute ${operation}:`, error);
21524
+ throw error;
21525
+ }
21526
+ }
21809
21527
  };
21810
21528
 
21811
21529
  // src/client/instructions/AgentInstructions.ts
@@ -21866,96 +21584,60 @@ var AgentInstructions = class extends BaseInstructions {
21866
21584
  * Deactivate an agent
21867
21585
  */
21868
21586
  async deactivate(signer, agentAddress, agentId) {
21869
- const instruction = getDeactivateAgentInstruction({
21870
- agentAccount: agentAddress,
21587
+ return this.executeInstruction(
21588
+ () => getDeactivateAgentInstruction({
21589
+ agentAccount: agentAddress,
21590
+ signer,
21591
+ agentId
21592
+ }),
21871
21593
  signer,
21872
- agentId
21873
- });
21874
- return this.sendTransaction([instruction], [signer]);
21594
+ "agent deactivation"
21595
+ );
21875
21596
  }
21876
21597
  /**
21877
21598
  * Activate an agent
21878
21599
  */
21879
21600
  async activate(signer, agentAddress, agentId) {
21880
- const instruction = getActivateAgentInstruction({
21881
- agentAccount: agentAddress,
21601
+ return this.executeInstruction(
21602
+ () => getActivateAgentInstruction({
21603
+ agentAccount: agentAddress,
21604
+ signer,
21605
+ agentId
21606
+ }),
21882
21607
  signer,
21883
- agentId
21884
- });
21885
- return this.sendTransaction([instruction], [signer]);
21608
+ "agent activation"
21609
+ );
21886
21610
  }
21887
21611
  /**
21888
- * Get agent account information using 2025 patterns
21612
+ * Get agent account information using centralized pattern
21889
21613
  */
21890
21614
  async getAccount(agentAddress) {
21891
- try {
21892
- const { GhostSpeakRpcClient: GhostSpeakRpcClient2 } = await Promise.resolve().then(() => (init_rpc(), rpc_exports));
21893
- const { getAgentDecoder: getAgentDecoder2 } = await Promise.resolve().then(() => (init_generated(), generated_exports));
21894
- const rpcClient = new GhostSpeakRpcClient2(this.rpc);
21895
- const agent = await rpcClient.getAndDecodeAccount(
21896
- agentAddress,
21897
- getAgentDecoder2(),
21898
- this.commitment
21899
- );
21900
- return agent;
21901
- } catch (error) {
21902
- console.warn("Failed to fetch agent account:", error);
21903
- return null;
21904
- }
21615
+ return this.getDecodedAccount(agentAddress, "getAgentDecoder");
21905
21616
  }
21906
21617
  /**
21907
- * Get all agents (with pagination) using 2025 patterns
21618
+ * Get all agents (with pagination) using centralized pattern
21908
21619
  */
21909
21620
  async getAllAgents(limit = 100, offset = 0) {
21910
- try {
21911
- const { GhostSpeakRpcClient: GhostSpeakRpcClient2 } = await Promise.resolve().then(() => (init_rpc(), rpc_exports));
21912
- const { getAgentDecoder: getAgentDecoder2 } = await Promise.resolve().then(() => (init_generated(), generated_exports));
21913
- const rpcClient = new GhostSpeakRpcClient2(this.rpc);
21914
- const accounts = await rpcClient.getAndDecodeProgramAccounts(
21915
- this.programId,
21916
- getAgentDecoder2(),
21917
- [],
21918
- // No filters - get all agents
21919
- this.commitment
21920
- );
21921
- const paginatedAccounts = accounts.slice(offset, offset + limit);
21922
- return paginatedAccounts.map(({ data }) => data);
21923
- } catch (error) {
21924
- console.warn("Failed to fetch all agents:", error);
21925
- return [];
21926
- }
21621
+ const accounts = await this.getDecodedProgramAccounts("getAgentDecoder");
21622
+ const paginatedAccounts = accounts.slice(offset, offset + limit);
21623
+ return paginatedAccounts.map(({ data }) => data);
21927
21624
  }
21928
21625
  /**
21929
- * Search agents by capabilities using 2025 patterns
21626
+ * Search agents by capabilities using centralized pattern
21930
21627
  */
21931
21628
  async searchByCapabilities(capabilities) {
21932
- try {
21933
- const { GhostSpeakRpcClient: GhostSpeakRpcClient2 } = await Promise.resolve().then(() => (init_rpc(), rpc_exports));
21934
- const { getAgentDecoder: getAgentDecoder2 } = await Promise.resolve().then(() => (init_generated(), generated_exports));
21935
- const rpcClient = new GhostSpeakRpcClient2(this.rpc);
21936
- const accounts = await rpcClient.getAndDecodeProgramAccounts(
21937
- this.programId,
21938
- getAgentDecoder2(),
21939
- [],
21940
- // No RPC filters - filtering client-side for now
21941
- this.commitment
21942
- );
21943
- const filteredAgents = accounts.map(({ data }) => data).filter(
21944
- (agent) => capabilities.some(
21945
- (capability) => agent.capabilities?.includes(capability)
21946
- )
21947
- );
21948
- return filteredAgents;
21949
- } catch (error) {
21950
- console.warn("Failed to search agents by capabilities:", error);
21951
- return [];
21952
- }
21629
+ const accounts = await this.getDecodedProgramAccounts("getAgentDecoder");
21630
+ return accounts.map(({ data }) => data).filter(
21631
+ (agent) => capabilities.some(
21632
+ (capability) => agent.capabilities?.includes(capability)
21633
+ )
21634
+ );
21953
21635
  }
21954
21636
  /**
21955
21637
  * List agents (alias for getAllAgents for CLI compatibility)
21956
21638
  */
21957
21639
  async list(options = {}) {
21958
- return this.getAllAgents(options.limit || 100, options.offset || 0);
21640
+ return this.getAllAgents(options.limit ?? 100, options.offset ?? 0);
21959
21641
  }
21960
21642
  /**
21961
21643
  * Search agents (alias for searchByCapabilities for CLI compatibility)
@@ -21967,8 +21649,8 @@ var AgentInstructions = class extends BaseInstructions {
21967
21649
  * Find the PDA for an agent account
21968
21650
  */
21969
21651
  async findAgentPDA(owner, agentId) {
21970
- const { deriveAgentPda: deriveAgentPda3 } = await Promise.resolve().then(() => (init_pda(), pda_exports));
21971
- return deriveAgentPda3(this.programId, owner, agentId);
21652
+ const { deriveAgentPda: deriveAgentPda2 } = await Promise.resolve().then(() => (init_pda(), pda_exports));
21653
+ return deriveAgentPda2(this.programId, owner, agentId);
21972
21654
  }
21973
21655
  /**
21974
21656
  * Get an agent by address (alias for getAccount for CLI compatibility)
@@ -21980,23 +21662,8 @@ var AgentInstructions = class extends BaseInstructions {
21980
21662
  * List agents by owner
21981
21663
  */
21982
21664
  async listByOwner(options) {
21983
- try {
21984
- const { GhostSpeakRpcClient: GhostSpeakRpcClient2 } = await Promise.resolve().then(() => (init_rpc(), rpc_exports));
21985
- const { getAgentDecoder: getAgentDecoder2 } = await Promise.resolve().then(() => (init_generated(), generated_exports));
21986
- const rpcClient = new GhostSpeakRpcClient2(this.rpc);
21987
- const accounts = await rpcClient.getAndDecodeProgramAccounts(
21988
- this.programId,
21989
- getAgentDecoder2(),
21990
- [],
21991
- // Could use memcmp filter here for efficiency
21992
- this.commitment
21993
- );
21994
- const ownerAgents = accounts.map(({ data, address: address2 }) => ({ ...data, address: address2 })).filter((agent) => agent.owner?.toString() === options.owner.toString());
21995
- return ownerAgents;
21996
- } catch (error) {
21997
- console.warn("Failed to fetch agents by owner:", error);
21998
- return [];
21999
- }
21665
+ const accounts = await this.getDecodedProgramAccounts("getAgentDecoder");
21666
+ return accounts.map(({ data }) => data).filter((agent) => agent.owner?.toString() === options.owner.toString());
22000
21667
  }
22001
21668
  /**
22002
21669
  * Get agent status details
@@ -22007,9 +21674,10 @@ var AgentInstructions = class extends BaseInstructions {
22007
21674
  throw new Error("Agent not found");
22008
21675
  }
22009
21676
  return {
22010
- jobsCompleted: agent.totalJobs || 0,
22011
- totalEarnings: agent.totalEarnings || 0n,
22012
- successRate: agent.successRate || 100,
21677
+ jobsCompleted: agent.totalJobsCompleted ?? 0,
21678
+ totalEarnings: agent.totalEarnings ?? 0n,
21679
+ successRate: agent.reputationScore ?? 100,
21680
+ // Use reputation score as proxy for success rate
22013
21681
  lastActive: agent.isActive ? BigInt(Date.now()) : null,
22014
21682
  currentJob: null
22015
21683
  // Would need to fetch from work order accounts
@@ -22024,25 +21692,112 @@ var MarketplaceInstructions = class extends BaseInstructions {
22024
21692
  super(config);
22025
21693
  }
22026
21694
  /**
22027
- * Create a new service listing
21695
+ * Resolve service listing parameters with smart defaults
22028
21696
  */
22029
- async createServiceListing(signer, serviceListingAddress, agentAddress, userRegistryAddress, params) {
22030
- const instruction = getCreateServiceListingInstruction({
22031
- serviceListing: serviceListingAddress,
22032
- agent: agentAddress,
22033
- userRegistry: userRegistryAddress,
22034
- creator: signer,
21697
+ async _resolveServiceListingParams(params) {
21698
+ const listingId = params.listingId ?? `listing-${Date.now()}-${Math.random().toString(36).substring(7)}`;
21699
+ const defaultPaymentToken = "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v";
21700
+ return {
22035
21701
  title: params.title,
22036
21702
  description: params.description,
22037
- price: params.price,
22038
- tokenMint: params.tokenMint,
22039
- serviceType: params.serviceType,
22040
- paymentToken: params.paymentToken,
22041
- estimatedDelivery: params.estimatedDelivery,
22042
- tags: params.tags,
22043
- listingId: params.listingId
22044
- });
22045
- return this.sendTransaction([instruction], [signer]);
21703
+ amount: params.amount,
21704
+ tokenMint: params.tokenMint ?? params.paymentToken ?? defaultPaymentToken,
21705
+ serviceType: params.serviceType ?? "general",
21706
+ paymentToken: params.paymentToken ?? defaultPaymentToken,
21707
+ estimatedDelivery: params.estimatedDelivery ?? BigInt(7 * 24 * 60 * 60),
21708
+ // 7 days default
21709
+ tags: params.tags ?? [],
21710
+ listingId,
21711
+ signer: params.signer
21712
+ };
21713
+ }
21714
+ /**
21715
+ * Resolve job posting parameters with smart defaults
21716
+ */
21717
+ async _resolveJobPostingParams(params) {
21718
+ const budgetMin = params.budgetMin ?? params.amount ?? 0n;
21719
+ const budgetMax = params.budgetMax ?? params.amount ?? budgetMin * 2n;
21720
+ const defaultPaymentToken = "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v";
21721
+ return {
21722
+ title: params.title,
21723
+ description: params.description,
21724
+ amount: params.amount ?? budgetMax,
21725
+ requirements: params.requirements ?? [],
21726
+ deadline: params.deadline ?? BigInt(Math.floor(Date.now() / 1e3) + 30 * 24 * 60 * 60),
21727
+ // 30 days default
21728
+ skillsNeeded: params.skillsNeeded ?? [],
21729
+ budgetMin,
21730
+ budgetMax,
21731
+ paymentToken: params.paymentToken ?? defaultPaymentToken,
21732
+ jobType: params.jobType ?? "fixed",
21733
+ experienceLevel: params.experienceLevel ?? "any",
21734
+ signer: params.signer,
21735
+ // Keep signer as-is
21736
+ tokenMint: params.tokenMint ?? defaultPaymentToken,
21737
+ // Add tokenMint
21738
+ createdAt: params.createdAt ?? BigInt(Math.floor(Date.now() / 1e3))
21739
+ // Add createdAt
21740
+ };
21741
+ }
21742
+ /**
21743
+ * Resolve purchase parameters with smart defaults
21744
+ */
21745
+ async _resolvePurchaseParams(params) {
21746
+ return {
21747
+ serviceListingAddress: params.serviceListingAddress,
21748
+ listingId: params.listingId ?? 0n,
21749
+ quantity: params.quantity ?? 1,
21750
+ requirements: params.requirements ?? [],
21751
+ customInstructions: params.customInstructions ?? "",
21752
+ deadline: params.deadline ?? BigInt(Math.floor(Date.now() / 1e3) + 14 * 24 * 60 * 60),
21753
+ // 14 days default
21754
+ signer: params.signer
21755
+ // Keep signer as-is
21756
+ };
21757
+ }
21758
+ /**
21759
+ * Resolve job application parameters with smart defaults
21760
+ */
21761
+ async _resolveApplicationParams(params) {
21762
+ return {
21763
+ jobPostingAddress: params.jobPostingAddress,
21764
+ agentAddress: params.agentAddress,
21765
+ coverLetter: params.coverLetter ?? "I am interested in this job opportunity.",
21766
+ proposedPrice: params.proposedPrice ?? 0n,
21767
+ // Will be set based on job budget
21768
+ estimatedDuration: params.estimatedDuration ?? 7,
21769
+ // 7 days default
21770
+ proposedRate: params.proposedRate ?? 0n,
21771
+ estimatedDelivery: params.estimatedDelivery ?? BigInt(Math.floor(Date.now() / 1e3) + 7 * 24 * 60 * 60),
21772
+ portfolioItems: params.portfolioItems ?? [],
21773
+ signer: params.signer
21774
+ // Keep signer as-is
21775
+ };
21776
+ }
21777
+ /**
21778
+ * Create a new service listing
21779
+ */
21780
+ async createServiceListing(signer, serviceListingAddress, agentAddress, userRegistryAddress, params) {
21781
+ const resolvedParams = await this._resolveServiceListingParams({ ...params, signer });
21782
+ return this.executeInstruction(
21783
+ () => getCreateServiceListingInstruction({
21784
+ serviceListing: serviceListingAddress,
21785
+ agent: agentAddress,
21786
+ userRegistry: userRegistryAddress,
21787
+ creator: signer,
21788
+ title: resolvedParams.title,
21789
+ description: resolvedParams.description,
21790
+ price: resolvedParams.amount,
21791
+ tokenMint: resolvedParams.tokenMint,
21792
+ serviceType: resolvedParams.serviceType,
21793
+ paymentToken: resolvedParams.paymentToken,
21794
+ estimatedDelivery: resolvedParams.estimatedDelivery,
21795
+ tags: resolvedParams.tags,
21796
+ listingId: resolvedParams.listingId
21797
+ }),
21798
+ signer,
21799
+ "service listing creation"
21800
+ );
22046
21801
  }
22047
21802
  /**
22048
21803
  * Update a service listing
@@ -22059,13 +21814,13 @@ var MarketplaceInstructions = class extends BaseInstructions {
22059
21814
  agent: listing.agent,
22060
21815
  owner: signer,
22061
21816
  agentPubkey: listing.agent,
22062
- serviceEndpoint: updateData.title || `${listing.title} - ${listing.description}`,
21817
+ serviceEndpoint: updateData.title ?? `${listing.title} - ${listing.description}`,
22063
21818
  isActive: listing.isActive,
22064
21819
  lastUpdated: BigInt(Math.floor(Date.now() / 1e3)),
22065
- metadataUri: updateData.description || listing.description,
22066
- capabilities: updateData.tags || []
21820
+ metadataUri: updateData.description ?? listing.description,
21821
+ capabilities: updateData.tags ?? []
22067
21822
  });
22068
- return this.sendTransaction([instruction], [signer]);
21823
+ return await this.sendTransaction([instruction], [signer]);
22069
21824
  } catch (error) {
22070
21825
  console.warn("Failed to update service listing via agent service:", error);
22071
21826
  throw new Error("Service listing updates require implementing updateServiceListing instruction in the smart contract, or create a new listing");
@@ -22074,163 +21829,123 @@ var MarketplaceInstructions = class extends BaseInstructions {
22074
21829
  /**
22075
21830
  * Purchase a service
22076
21831
  */
22077
- async purchaseService(signer, servicePurchaseAddress, serviceListingAddress, listingId, quantity, requirements, customInstructions, deadline) {
22078
- const instruction = getPurchaseServiceInstruction({
22079
- servicePurchase: servicePurchaseAddress,
22080
- serviceListing: serviceListingAddress,
22081
- buyer: signer,
22082
- listingId,
22083
- quantity,
22084
- requirements,
22085
- customInstructions,
22086
- deadline
22087
- });
22088
- return this.sendTransaction([instruction], [signer]);
21832
+ async purchaseService(servicePurchaseAddress, params) {
21833
+ const resolvedParams = await this._resolvePurchaseParams(params);
21834
+ return this.executeInstruction(
21835
+ () => getPurchaseServiceInstruction({
21836
+ servicePurchase: servicePurchaseAddress,
21837
+ serviceListing: resolvedParams.serviceListingAddress,
21838
+ buyer: resolvedParams.signer,
21839
+ listingId: resolvedParams.listingId,
21840
+ quantity: resolvedParams.quantity,
21841
+ requirements: resolvedParams.requirements,
21842
+ customInstructions: resolvedParams.customInstructions,
21843
+ deadline: resolvedParams.deadline
21844
+ }),
21845
+ resolvedParams.signer,
21846
+ "service purchase"
21847
+ );
22089
21848
  }
22090
21849
  /**
22091
21850
  * Create a new job posting
22092
21851
  */
22093
- async createJobPosting(signer, jobPostingAddress, params) {
22094
- const instruction = getCreateJobPostingInstruction({
22095
- jobPosting: jobPostingAddress,
22096
- employer: signer,
22097
- title: params.title,
22098
- description: params.description,
22099
- requirements: params.requirements,
22100
- budget: params.budget,
22101
- deadline: params.deadline,
22102
- skillsNeeded: params.skillsNeeded,
22103
- budgetMin: params.budgetMin,
22104
- budgetMax: params.budgetMax,
22105
- paymentToken: params.paymentToken,
22106
- jobType: params.jobType,
22107
- experienceLevel: params.experienceLevel
22108
- });
22109
- return this.sendTransaction([instruction], [signer]);
21852
+ async createJobPosting(jobPostingAddress, params) {
21853
+ const resolvedParams = await this._resolveJobPostingParams(params);
21854
+ return this.executeInstruction(
21855
+ () => getCreateJobPostingInstruction({
21856
+ jobPosting: jobPostingAddress,
21857
+ employer: resolvedParams.signer,
21858
+ title: resolvedParams.title,
21859
+ description: resolvedParams.description,
21860
+ requirements: resolvedParams.requirements,
21861
+ budget: resolvedParams.amount,
21862
+ deadline: resolvedParams.deadline,
21863
+ skillsNeeded: resolvedParams.skillsNeeded,
21864
+ budgetMin: resolvedParams.budgetMin,
21865
+ budgetMax: resolvedParams.budgetMax,
21866
+ paymentToken: resolvedParams.paymentToken,
21867
+ jobType: resolvedParams.jobType,
21868
+ experienceLevel: resolvedParams.experienceLevel
21869
+ }),
21870
+ resolvedParams.signer,
21871
+ "job posting creation"
21872
+ );
22110
21873
  }
22111
21874
  /**
22112
21875
  * Apply to a job
22113
21876
  */
22114
- async applyToJob(signer, jobApplicationAddress, jobPostingAddress, agentAddress, coverLetter, proposedPrice, estimatedDuration, proposedRate, estimatedDelivery, portfolioItems) {
22115
- const instruction = getApplyToJobInstruction({
22116
- jobApplication: jobApplicationAddress,
22117
- jobPosting: jobPostingAddress,
22118
- agent: agentAddress,
22119
- agentOwner: signer,
22120
- coverLetter,
22121
- proposedPrice,
22122
- estimatedDuration,
22123
- proposedRate,
22124
- estimatedDelivery,
22125
- portfolioItems
22126
- });
22127
- return this.sendTransaction([instruction], [signer]);
21877
+ async applyToJob(jobApplicationAddress, params) {
21878
+ const resolvedParams = await this._resolveApplicationParams(params);
21879
+ return this.executeInstruction(
21880
+ () => getApplyToJobInstruction({
21881
+ jobApplication: jobApplicationAddress,
21882
+ jobPosting: resolvedParams.jobPostingAddress,
21883
+ agent: resolvedParams.agentAddress,
21884
+ agentOwner: resolvedParams.signer,
21885
+ coverLetter: resolvedParams.coverLetter,
21886
+ proposedPrice: resolvedParams.proposedPrice,
21887
+ estimatedDuration: resolvedParams.estimatedDuration,
21888
+ proposedRate: resolvedParams.proposedRate,
21889
+ estimatedDelivery: resolvedParams.estimatedDelivery,
21890
+ portfolioItems: resolvedParams.portfolioItems
21891
+ }),
21892
+ resolvedParams.signer,
21893
+ "job application"
21894
+ );
22128
21895
  }
22129
21896
  /**
22130
21897
  * Accept a job application
22131
21898
  */
22132
21899
  async acceptJobApplication(signer, jobContractAddress, jobPostingAddress, jobApplicationAddress) {
22133
- const instruction = getAcceptJobApplicationInstruction({
22134
- jobContract: jobContractAddress,
22135
- jobPosting: jobPostingAddress,
22136
- jobApplication: jobApplicationAddress,
22137
- employer: signer
22138
- });
22139
- return this.sendTransaction([instruction], [signer]);
21900
+ return this.executeInstruction(
21901
+ () => getAcceptJobApplicationInstruction({
21902
+ jobContract: jobContractAddress,
21903
+ jobPosting: jobPostingAddress,
21904
+ jobApplication: jobApplicationAddress,
21905
+ employer: signer
21906
+ }),
21907
+ signer,
21908
+ "job application acceptance"
21909
+ );
22140
21910
  }
22141
21911
  /**
22142
21912
  * Get a single service listing
22143
21913
  */
22144
21914
  async getServiceListing(listingAddress) {
22145
- try {
22146
- const { GhostSpeakRpcClient: GhostSpeakRpcClient2 } = await Promise.resolve().then(() => (init_rpc(), rpc_exports));
22147
- const { getServiceListingDecoder: getServiceListingDecoder2 } = await Promise.resolve().then(() => (init_generated(), generated_exports));
22148
- const rpcClient = new GhostSpeakRpcClient2(this.rpc);
22149
- const listing = await rpcClient.getAndDecodeAccount(
22150
- listingAddress,
22151
- getServiceListingDecoder2(),
22152
- this.commitment
22153
- );
22154
- return listing;
22155
- } catch (error) {
22156
- console.warn("Failed to fetch service listing:", error);
22157
- return null;
22158
- }
21915
+ return this.getDecodedAccount(listingAddress, "getServiceListingDecoder");
22159
21916
  }
22160
21917
  /**
22161
21918
  * Get all active service listings
22162
21919
  */
22163
21920
  async getServiceListings() {
22164
- try {
22165
- const { GhostSpeakRpcClient: GhostSpeakRpcClient2 } = await Promise.resolve().then(() => (init_rpc(), rpc_exports));
22166
- const { getServiceListingDecoder: getServiceListingDecoder2 } = await Promise.resolve().then(() => (init_generated(), generated_exports));
22167
- const rpcClient = new GhostSpeakRpcClient2(this.rpc);
22168
- const accounts = await rpcClient.getAndDecodeProgramAccounts(
22169
- this.programId,
22170
- getServiceListingDecoder2(),
22171
- [],
22172
- // No filters - get all listings
22173
- this.commitment
22174
- );
22175
- const activeListings = accounts.map(({ data }) => data).filter((listing) => listing.isActive);
22176
- return activeListings;
22177
- } catch (error) {
22178
- console.warn("Failed to fetch service listings:", error);
22179
- return [];
22180
- }
21921
+ const accounts = await this.getDecodedProgramAccounts("getServiceListingDecoder");
21922
+ return accounts.map(({ data }) => data).filter((listing) => listing.isActive);
22181
21923
  }
22182
21924
  /**
22183
21925
  * Get all active job postings
22184
21926
  */
22185
21927
  async getJobPostings() {
22186
- try {
22187
- const { GhostSpeakRpcClient: GhostSpeakRpcClient2 } = await Promise.resolve().then(() => (init_rpc(), rpc_exports));
22188
- const { getJobPostingDecoder: getJobPostingDecoder2 } = await Promise.resolve().then(() => (init_generated(), generated_exports));
22189
- const rpcClient = new GhostSpeakRpcClient2(this.rpc);
22190
- const accounts = await rpcClient.getAndDecodeProgramAccounts(
22191
- this.programId,
22192
- getJobPostingDecoder2(),
22193
- [],
22194
- // No filters - get all postings
22195
- this.commitment
22196
- );
22197
- const activePostings = accounts.map(({ data }) => data).filter((posting) => posting.isActive);
22198
- return activePostings;
22199
- } catch (error) {
22200
- console.warn("Failed to fetch job postings:", error);
22201
- return [];
22202
- }
21928
+ const accounts = await this.getDecodedProgramAccounts("getJobPostingDecoder");
21929
+ return accounts.map(({ data }) => data).filter((posting) => posting.isActive);
22203
21930
  }
22204
21931
  /**
22205
21932
  * Search service listings by category
22206
21933
  */
22207
21934
  async searchServicesByCategory(category) {
22208
- try {
22209
- const allListings = await this.getServiceListings();
22210
- const filteredListings = allListings.filter(
22211
- (listing) => listing.serviceType?.toLowerCase().includes(category.toLowerCase()) || listing.tags?.some((tag) => tag.toLowerCase().includes(category.toLowerCase()))
22212
- );
22213
- return filteredListings;
22214
- } catch (error) {
22215
- console.warn("Failed to search services by category:", error);
22216
- return [];
22217
- }
21935
+ const allListings = await this.getServiceListings();
21936
+ return allListings.filter(
21937
+ (listing) => listing.serviceType?.toLowerCase().includes(category.toLowerCase()) || listing.tags?.some((tag) => tag.toLowerCase().includes(category.toLowerCase()))
21938
+ );
22218
21939
  }
22219
21940
  /**
22220
21941
  * Search job postings by budget range
22221
21942
  */
22222
21943
  async searchJobsByBudget(minBudget, maxBudget) {
22223
- try {
22224
- const allPostings = await this.getJobPostings();
22225
- const filteredPostings = allPostings.filter((posting) => {
22226
- const budget = posting.budget || 0n;
22227
- return budget >= minBudget && budget <= maxBudget;
22228
- });
22229
- return filteredPostings;
22230
- } catch (error) {
22231
- console.warn("Failed to search jobs by budget:", error);
22232
- return [];
22233
- }
21944
+ const allPostings = await this.getJobPostings();
21945
+ return allPostings.filter((posting) => {
21946
+ const budget = posting.budget ?? 0n;
21947
+ return budget >= minBudget && budget <= maxBudget;
21948
+ });
22234
21949
  }
22235
21950
  };
22236
21951
 
@@ -22241,48 +21956,107 @@ var EscrowInstructions = class extends BaseInstructions {
22241
21956
  super(config);
22242
21957
  }
22243
21958
  /**
22244
- * Create a new escrow account via work order
21959
+ * Resolve escrow creation parameters with smart defaults
22245
21960
  */
22246
- async create(signer, workOrderAddress, params) {
22247
- const instruction = getCreateWorkOrderInstruction({
22248
- workOrder: workOrderAddress,
22249
- client: signer,
22250
- orderId: params.orderId,
22251
- provider: params.provider,
21961
+ async _resolveCreateParams(params) {
21962
+ const defaultPaymentToken = "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v";
21963
+ return {
22252
21964
  title: params.title,
22253
21965
  description: params.description,
22254
- requirements: params.requirements,
22255
- paymentAmount: params.paymentAmount,
22256
- paymentToken: params.paymentToken,
22257
- deadline: params.deadline
22258
- });
22259
- return this.sendTransaction([instruction], [signer]);
21966
+ amount: params.amount,
21967
+ orderId: params.orderId ?? BigInt(Date.now()),
21968
+ // Use timestamp as order ID
21969
+ provider: params.provider,
21970
+ requirements: params.requirements ?? [],
21971
+ paymentToken: params.paymentToken ?? defaultPaymentToken,
21972
+ deadline: params.deadline ?? BigInt(Math.floor(Date.now() / 1e3) + 30 * 24 * 60 * 60),
21973
+ // 30 days default
21974
+ signer: params.signer,
21975
+ tokenMint: params.tokenMint ?? defaultPaymentToken,
21976
+ createdAt: params.createdAt ?? BigInt(Math.floor(Date.now() / 1e3))
21977
+ };
21978
+ }
21979
+ /**
21980
+ * Resolve payment processing parameters with smart defaults
21981
+ */
21982
+ async _resolvePaymentParams(params) {
21983
+ const defaultTokenMint = "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v";
21984
+ const defaultPayerToken = params.payerTokenAccount ?? params.signer.address;
21985
+ const defaultProviderToken = params.providerTokenAccount ?? params.providerAgent;
21986
+ return {
21987
+ workOrderAddress: params.workOrderAddress,
21988
+ providerAgent: params.providerAgent,
21989
+ payerTokenAccount: defaultPayerToken,
21990
+ providerTokenAccount: defaultProviderToken,
21991
+ tokenMint: params.tokenMint ?? defaultTokenMint,
21992
+ amount: params.amount,
21993
+ useConfidentialTransfer: params.useConfidentialTransfer ?? false,
21994
+ signer: params.signer
21995
+ };
21996
+ }
21997
+ /**
21998
+ * Resolve delivery submission parameters with smart defaults
21999
+ */
22000
+ async _resolveDeliveryParams(params) {
22001
+ return {
22002
+ workOrderAddress: params.workOrderAddress,
22003
+ deliverables: params.deliverables ?? [],
22004
+ ipfsHash: params.ipfsHash ?? `ipfs://${Date.now()}-placeholder`,
22005
+ metadataUri: params.metadataUri ?? `https://ghostspeak.io/delivery/${Date.now()}`,
22006
+ signer: params.signer
22007
+ };
22008
+ }
22009
+ /**
22010
+ * Create a new escrow account via work order
22011
+ */
22012
+ async create(workOrderAddress, params) {
22013
+ const resolvedParams = await this._resolveCreateParams(params);
22014
+ return this.executeInstruction(
22015
+ () => getCreateWorkOrderInstruction({
22016
+ workOrder: workOrderAddress,
22017
+ client: resolvedParams.signer,
22018
+ orderId: resolvedParams.orderId,
22019
+ provider: resolvedParams.provider,
22020
+ title: resolvedParams.title,
22021
+ description: resolvedParams.description,
22022
+ requirements: resolvedParams.requirements,
22023
+ paymentAmount: resolvedParams.amount,
22024
+ paymentToken: resolvedParams.paymentToken,
22025
+ deadline: resolvedParams.deadline
22026
+ }),
22027
+ resolvedParams.signer,
22028
+ "escrow creation"
22029
+ );
22260
22030
  }
22261
22031
  /**
22262
22032
  * Release escrow funds by submitting work delivery
22263
22033
  */
22264
- async release(signer, workDeliveryAddress, workOrderAddress, deliverables, ipfsHash, metadataUri) {
22265
- const instruction = getSubmitWorkDeliveryInstruction({
22266
- workDelivery: workDeliveryAddress,
22267
- workOrder: workOrderAddress,
22268
- provider: signer,
22269
- deliverables,
22270
- ipfsHash,
22271
- metadataUri
22272
- });
22273
- return this.sendTransaction([instruction], [signer]);
22034
+ async release(workDeliveryAddress, params) {
22035
+ const resolvedParams = await this._resolveDeliveryParams(params);
22036
+ return this.executeInstruction(
22037
+ () => getSubmitWorkDeliveryInstruction({
22038
+ workDelivery: workDeliveryAddress,
22039
+ workOrder: resolvedParams.workOrderAddress,
22040
+ provider: resolvedParams.signer,
22041
+ deliverables: resolvedParams.deliverables,
22042
+ ipfsHash: resolvedParams.ipfsHash,
22043
+ metadataUri: resolvedParams.metadataUri
22044
+ }),
22045
+ resolvedParams.signer,
22046
+ "work delivery submission"
22047
+ );
22274
22048
  }
22275
22049
  /**
22276
22050
  * Cancel escrow and refund to buyer
22277
22051
  */
22278
22052
  async cancel(signer, escrowAddress) {
22279
22053
  console.warn("Work order cancellation requires dispute resolution. Use dispute() method instead.");
22280
- return this.dispute(signer, escrowAddress, "Buyer requested cancellation");
22054
+ return this.dispute({ signer, escrowAddress, reason: "Buyer requested cancellation" });
22281
22055
  }
22282
22056
  /**
22283
22057
  * Dispute an escrow (requires arbitration)
22284
22058
  */
22285
- async dispute(signer, escrowAddress, reason) {
22059
+ async dispute(params) {
22286
22060
  try {
22287
22061
  const { getFileDisputeInstruction: getFileDisputeInstruction2 } = await Promise.resolve().then(() => (init_generated(), generated_exports));
22288
22062
  const timestamp = BigInt(Math.floor(Date.now() / 1e3));
@@ -22290,23 +22064,26 @@ var EscrowInstructions = class extends BaseInstructions {
22290
22064
  const [disputeAddress] = await findProgramDerivedAddress2(
22291
22065
  [
22292
22066
  "dispute",
22293
- escrowAddress,
22067
+ params.escrowAddress,
22294
22068
  timestamp.toString()
22295
22069
  ],
22296
22070
  this.programId
22297
22071
  );
22298
- const instruction = getFileDisputeInstruction2({
22299
- dispute: disputeAddress,
22300
- transaction: escrowAddress,
22301
- // Use escrow address as transaction reference
22302
- userRegistry: escrowAddress,
22303
- // Placeholder - should be actual user registry
22304
- complainant: signer,
22305
- respondent: escrowAddress,
22306
- // Placeholder - should be actual respondent
22307
- reason
22308
- });
22309
- return this.sendTransaction([instruction], [signer]);
22072
+ return await this.executeInstruction(
22073
+ () => getFileDisputeInstruction2({
22074
+ dispute: disputeAddress,
22075
+ transaction: params.escrowAddress,
22076
+ // Use escrow address as transaction reference
22077
+ userRegistry: params.escrowAddress,
22078
+ // Placeholder - should be actual user registry
22079
+ complainant: params.signer,
22080
+ respondent: params.escrowAddress,
22081
+ // Placeholder - should be actual respondent
22082
+ reason: params.reason
22083
+ }),
22084
+ params.signer,
22085
+ "dispute filing"
22086
+ );
22310
22087
  } catch (error) {
22311
22088
  console.warn("Dispute filing failed. This may indicate the smart contract needs additional implementation:", error);
22312
22089
  return `mock_dispute_${Date.now()}_${Math.random().toString(36).substring(7)}`;
@@ -22315,86 +22092,52 @@ var EscrowInstructions = class extends BaseInstructions {
22315
22092
  /**
22316
22093
  * Process payment through escrow
22317
22094
  */
22318
- async processPayment(signer, paymentAddress, workOrderAddress, providerAgent, payerTokenAccount, providerTokenAccount, tokenMint, amount, useConfidentialTransfer = false) {
22319
- const instruction = getProcessPaymentInstruction({
22320
- payment: paymentAddress,
22321
- workOrder: workOrderAddress,
22322
- providerAgent,
22323
- payer: signer,
22324
- payerTokenAccount,
22325
- providerTokenAccount,
22326
- tokenMint,
22327
- amount,
22328
- useConfidentialTransfer
22329
- });
22330
- return this.sendTransaction([instruction], [signer]);
22331
- }
22332
- /**
22333
- * Get work order (escrow) account information using 2025 patterns
22334
- */
22335
- async getAccount(workOrderAddress) {
22336
- try {
22337
- const { GhostSpeakRpcClient: GhostSpeakRpcClient2 } = await Promise.resolve().then(() => (init_rpc(), rpc_exports));
22338
- const { getWorkOrderDecoder: getWorkOrderDecoder2 } = await Promise.resolve().then(() => (init_generated(), generated_exports));
22339
- const rpcClient = new GhostSpeakRpcClient2(this.rpc);
22340
- const workOrder = await rpcClient.getAndDecodeAccount(
22341
- workOrderAddress,
22342
- getWorkOrderDecoder2(),
22343
- this.commitment
22344
- );
22345
- return workOrder;
22346
- } catch (error) {
22347
- console.warn("Failed to fetch work order account:", error);
22348
- return null;
22349
- }
22350
- }
22351
- /**
22352
- * Get all escrows for a user using 2025 patterns
22353
- */
22354
- async getEscrowsForUser(userAddress) {
22355
- try {
22356
- const { GhostSpeakRpcClient: GhostSpeakRpcClient2 } = await Promise.resolve().then(() => (init_rpc(), rpc_exports));
22357
- const { getWorkOrderDecoder: getWorkOrderDecoder2 } = await Promise.resolve().then(() => (init_generated(), generated_exports));
22358
- const rpcClient = new GhostSpeakRpcClient2(this.rpc);
22359
- const accounts = await rpcClient.getAndDecodeProgramAccounts(
22360
- this.programId,
22361
- getWorkOrderDecoder2(),
22362
- [],
22363
- // No RPC filters - filtering client-side
22364
- this.commitment
22365
- );
22366
- const userWorkOrders = accounts.map(({ data }) => data).filter(
22367
- (workOrder) => workOrder.client === userAddress || workOrder.provider === userAddress
22368
- );
22369
- return userWorkOrders;
22370
- } catch (error) {
22371
- console.warn("Failed to fetch user escrows:", error);
22372
- return [];
22373
- }
22095
+ async processPayment(paymentAddress, params) {
22096
+ const resolvedParams = await this._resolvePaymentParams(params);
22097
+ return this.executeInstruction(
22098
+ () => getProcessPaymentInstruction({
22099
+ payment: paymentAddress,
22100
+ workOrder: resolvedParams.workOrderAddress,
22101
+ providerAgent: resolvedParams.providerAgent,
22102
+ payer: resolvedParams.signer,
22103
+ payerTokenAccount: resolvedParams.payerTokenAccount,
22104
+ providerTokenAccount: resolvedParams.providerTokenAccount,
22105
+ tokenMint: resolvedParams.tokenMint,
22106
+ amount: resolvedParams.amount,
22107
+ useConfidentialTransfer: resolvedParams.useConfidentialTransfer
22108
+ }),
22109
+ resolvedParams.signer,
22110
+ "payment processing"
22111
+ );
22374
22112
  }
22375
22113
  /**
22376
- * Get all active escrows using 2025 patterns
22114
+ * Get work order (escrow) account information using centralized pattern
22115
+ */
22116
+ async getAccount(workOrderAddress) {
22117
+ return this.getDecodedAccount(workOrderAddress, "getWorkOrderDecoder");
22118
+ }
22119
+ /**
22120
+ * Get all escrows for a user using centralized pattern
22121
+ */
22122
+ async getEscrowsForUser(userAddress) {
22123
+ const accounts = await this.getDecodedProgramAccounts("getWorkOrderDecoder");
22124
+ return accounts.map(({ data }) => data).filter(
22125
+ (workOrder) => workOrder.client === userAddress || workOrder.provider === userAddress
22126
+ );
22127
+ }
22128
+ /**
22129
+ * Get all active escrows using centralized pattern
22377
22130
  */
22378
22131
  async getActiveEscrows() {
22132
+ const accounts = await this.getDecodedProgramAccounts("getWorkOrderDecoder");
22379
22133
  try {
22380
- const { GhostSpeakRpcClient: GhostSpeakRpcClient2 } = await Promise.resolve().then(() => (init_rpc(), rpc_exports));
22381
- const { getWorkOrderDecoder: getWorkOrderDecoder2 } = await Promise.resolve().then(() => (init_generated(), generated_exports));
22382
- const rpcClient = new GhostSpeakRpcClient2(this.rpc);
22383
- const accounts = await rpcClient.getAndDecodeProgramAccounts(
22384
- this.programId,
22385
- getWorkOrderDecoder2(),
22386
- [],
22387
- // No RPC filters - filtering client-side
22388
- this.commitment
22389
- );
22390
22134
  const { WorkOrderStatus: WorkOrderStatus2 } = await Promise.resolve().then(() => (init_generated(), generated_exports));
22391
- const activeWorkOrders = accounts.map(({ data }) => data).filter(
22135
+ return accounts.map(({ data }) => data).filter(
22392
22136
  (workOrder) => workOrder.status === WorkOrderStatus2.Open || workOrder.status === WorkOrderStatus2.InProgress || workOrder.status === WorkOrderStatus2.Submitted
22393
22137
  );
22394
- return activeWorkOrders;
22395
22138
  } catch (error) {
22396
- console.warn("Failed to fetch active escrows:", error);
22397
- return [];
22139
+ console.warn("Failed to load WorkOrderStatus enum, returning all escrows:", error);
22140
+ return accounts.map(({ data }) => data);
22398
22141
  }
22399
22142
  }
22400
22143
  };
@@ -22409,68 +22152,92 @@ var A2AInstructions = class extends BaseInstructions {
22409
22152
  /**
22410
22153
  * Create a new A2A communication session
22411
22154
  */
22412
- async createSession(signer, sessionAddress, params) {
22413
- const instruction = getCreateA2aSessionInstruction({
22414
- session: sessionAddress,
22415
- creator: signer,
22416
- sessionId: params.sessionId,
22417
- initiator: params.initiator,
22418
- responder: params.responder,
22419
- sessionType: params.sessionType,
22420
- metadata: params.metadata,
22421
- expiresAt: params.expiresAt
22422
- });
22423
- return this.sendTransaction([instruction], [signer]);
22155
+ async createSession(sessionAddress, params) {
22156
+ return this.executeInstruction(
22157
+ () => getCreateA2aSessionInstruction({
22158
+ session: sessionAddress,
22159
+ creator: params.signer,
22160
+ sessionId: params.sessionId,
22161
+ initiator: params.initiator,
22162
+ responder: params.responder,
22163
+ sessionType: params.sessionType,
22164
+ metadata: params.metadata,
22165
+ expiresAt: params.expiresAt
22166
+ }),
22167
+ params.signer,
22168
+ "A2A session creation"
22169
+ );
22424
22170
  }
22425
22171
  /**
22426
22172
  * Send a message in an A2A session
22427
22173
  */
22428
- async sendMessage(signer, sessionAddress, params) {
22429
- const accountInfo = await this.rpc.getAccountInfo(sessionAddress, {
22430
- commitment: "confirmed",
22431
- encoding: "base64"
22432
- }).send();
22433
- if (!accountInfo.value) {
22434
- throw new Error("Session account not found");
22174
+ async sendMessage(sessionAddress, params) {
22175
+ try {
22176
+ const rpcClient = this.getRpcClient();
22177
+ const accountInfo = await rpcClient.getAccountInfo(sessionAddress, {
22178
+ commitment: "confirmed",
22179
+ encoding: "base64"
22180
+ });
22181
+ if (!accountInfo) {
22182
+ throw new Error("Session account not found");
22183
+ }
22184
+ let sessionBuffer;
22185
+ if (Buffer.isBuffer(accountInfo.data)) {
22186
+ sessionBuffer = accountInfo.data;
22187
+ } else if (accountInfo.data instanceof Uint8Array) {
22188
+ sessionBuffer = Buffer.from(accountInfo.data);
22189
+ } else if (typeof accountInfo.data === "string") {
22190
+ sessionBuffer = Buffer.from(accountInfo.data, "base64");
22191
+ } else {
22192
+ sessionBuffer = Buffer.from(accountInfo.data.data ?? accountInfo.data, "base64");
22193
+ }
22194
+ const sessionCreatedAt = sessionBuffer.readBigInt64LE(8);
22195
+ const messageAddress = await deriveA2AMessagePda(
22196
+ this.programId,
22197
+ sessionAddress,
22198
+ sessionCreatedAt
22199
+ );
22200
+ return await this.executeInstruction(
22201
+ () => getSendA2aMessageInstruction({
22202
+ message: messageAddress,
22203
+ session: sessionAddress,
22204
+ sender: params.signer,
22205
+ messageId: params.messageId,
22206
+ sessionId: params.sessionId,
22207
+ senderArg: params.sender,
22208
+ // Renamed to avoid conflict
22209
+ content: params.content,
22210
+ messageType: params.messageType,
22211
+ timestamp: params.timestamp
22212
+ }),
22213
+ params.signer,
22214
+ "A2A message sending"
22215
+ );
22216
+ } catch (error) {
22217
+ console.error("\u274C Failed to send A2A message:", error);
22218
+ throw error;
22435
22219
  }
22436
- const sessionBuffer = Buffer.from(accountInfo.value.data[0], "base64");
22437
- const sessionCreatedAt = sessionBuffer.readBigInt64LE(8);
22438
- const messageAddress = await deriveA2AMessagePda(
22439
- this.programId,
22440
- sessionAddress,
22441
- sessionCreatedAt
22442
- );
22443
- const instruction = getSendA2aMessageInstruction({
22444
- message: messageAddress,
22445
- session: sessionAddress,
22446
- sender: signer,
22447
- messageId: params.messageId,
22448
- sessionId: params.sessionId,
22449
- senderArg: params.sender,
22450
- // Renamed to avoid conflict
22451
- content: params.content,
22452
- messageType: params.messageType,
22453
- timestamp: params.timestamp
22454
- });
22455
- return this.sendTransaction([instruction], [signer]);
22456
22220
  }
22457
22221
  /**
22458
22222
  * Update A2A status
22459
22223
  */
22460
- async updateStatus(signer, statusAddress, sessionAddress, statusId, agent, status, capabilities, availability, lastUpdated) {
22461
- const instruction = getUpdateA2aStatusInstruction({
22462
- status: statusAddress,
22463
- session: sessionAddress,
22464
- updater: signer,
22465
- statusId,
22466
- agent,
22467
- statusArg: status,
22468
- // Renamed to avoid conflict
22469
- capabilities,
22470
- availability,
22471
- lastUpdated
22472
- });
22473
- return this.sendTransaction([instruction], [signer]);
22224
+ async updateStatus(statusAddress, params) {
22225
+ return this.executeInstruction(
22226
+ () => getUpdateA2aStatusInstruction({
22227
+ status: statusAddress,
22228
+ session: params.sessionAddress,
22229
+ updater: params.signer,
22230
+ statusId: params.statusId,
22231
+ agent: params.agent,
22232
+ statusArg: params.status,
22233
+ // Renamed to avoid conflict
22234
+ capabilities: params.capabilities,
22235
+ availability: params.availability,
22236
+ lastUpdated: params.lastUpdated
22237
+ }),
22238
+ params.signer,
22239
+ "A2A status update"
22240
+ );
22474
22241
  }
22475
22242
  /**
22476
22243
  * Close an A2A session
@@ -22481,84 +22248,43 @@ var A2AInstructions = class extends BaseInstructions {
22481
22248
  throw new Error("Session not found");
22482
22249
  }
22483
22250
  return this.updateStatus(
22484
- signer,
22485
22251
  sessionAddress,
22486
22252
  // Using session address as status address for simplicity
22487
- sessionAddress,
22488
- session.sessionId,
22489
- signer.address,
22490
- "closed",
22491
- [],
22492
- false,
22493
- // Set availability to false
22494
- BigInt(Math.floor(Date.now() / 1e3))
22253
+ {
22254
+ signer,
22255
+ sessionAddress,
22256
+ statusId: session.sessionId,
22257
+ agent: signer.address,
22258
+ status: "closed",
22259
+ capabilities: [],
22260
+ availability: false,
22261
+ // Set availability to false
22262
+ lastUpdated: BigInt(Math.floor(Date.now() / 1e3))
22263
+ }
22495
22264
  );
22496
22265
  }
22497
22266
  /**
22498
22267
  * Get A2A session information
22499
22268
  */
22500
22269
  async getSession(sessionAddress) {
22501
- try {
22502
- const { GhostSpeakRpcClient: GhostSpeakRpcClient2 } = await Promise.resolve().then(() => (init_rpc(), rpc_exports));
22503
- const { getA2ASessionDecoder: getA2ASessionDecoder2 } = await Promise.resolve().then(() => (init_generated(), generated_exports));
22504
- const rpcClient = new GhostSpeakRpcClient2(this.rpc);
22505
- const session = await rpcClient.getAndDecodeAccount(
22506
- sessionAddress,
22507
- getA2ASessionDecoder2(),
22508
- this.commitment
22509
- );
22510
- return session;
22511
- } catch (error) {
22512
- console.warn("Failed to fetch A2A session:", error);
22513
- return null;
22514
- }
22270
+ return this.getDecodedAccount(sessionAddress, "getA2ASessionDecoder");
22515
22271
  }
22516
22272
  /**
22517
22273
  * Get all messages in an A2A session
22518
22274
  */
22519
22275
  async getMessages(sessionAddress) {
22520
- try {
22521
- const { GhostSpeakRpcClient: GhostSpeakRpcClient2 } = await Promise.resolve().then(() => (init_rpc(), rpc_exports));
22522
- const { getA2AMessageDecoder: getA2AMessageDecoder2 } = await Promise.resolve().then(() => (init_generated(), generated_exports));
22523
- const rpcClient = new GhostSpeakRpcClient2(this.rpc);
22524
- const accounts = await rpcClient.getAndDecodeProgramAccounts(
22525
- this.programId,
22526
- getA2AMessageDecoder2(),
22527
- [],
22528
- // No RPC filters - filtering client-side for session
22529
- this.commitment
22530
- );
22531
- const sessionMessages = accounts.map(({ data }) => data).filter((message) => message.session === sessionAddress).sort((a, b) => Number(a.sentAt - b.sentAt));
22532
- return sessionMessages;
22533
- } catch (error) {
22534
- console.warn("Failed to fetch A2A messages:", error);
22535
- return [];
22536
- }
22276
+ const accounts = await this.getDecodedProgramAccounts("getA2AMessageDecoder");
22277
+ return accounts.map(({ data }) => data).filter((message) => message.session === sessionAddress).sort((a, b) => Number(a.sentAt - b.sentAt));
22537
22278
  }
22538
22279
  /**
22539
22280
  * Get all active sessions for an agent
22540
22281
  */
22541
22282
  async getActiveSessions(agentAddress) {
22542
- try {
22543
- const { GhostSpeakRpcClient: GhostSpeakRpcClient2 } = await Promise.resolve().then(() => (init_rpc(), rpc_exports));
22544
- const { getA2ASessionDecoder: getA2ASessionDecoder2 } = await Promise.resolve().then(() => (init_generated(), generated_exports));
22545
- const rpcClient = new GhostSpeakRpcClient2(this.rpc);
22546
- const accounts = await rpcClient.getAndDecodeProgramAccounts(
22547
- this.programId,
22548
- getA2ASessionDecoder2(),
22549
- [],
22550
- // No RPC filters - filtering client-side
22551
- this.commitment
22552
- );
22553
- const currentTimestamp = BigInt(Math.floor(Date.now() / 1e3));
22554
- const activeSessions = accounts.map(({ data }) => data).filter(
22555
- (session) => (session.initiator === agentAddress || session.responder === agentAddress) && session.isActive && (session.expiresAt === 0n || session.expiresAt > currentTimestamp)
22556
- );
22557
- return activeSessions;
22558
- } catch (error) {
22559
- console.warn("Failed to fetch active A2A sessions:", error);
22560
- return [];
22561
- }
22283
+ const accounts = await this.getDecodedProgramAccounts("getA2ASessionDecoder");
22284
+ const currentTimestamp = BigInt(Math.floor(Date.now() / 1e3));
22285
+ return accounts.map(({ data }) => data).filter(
22286
+ (session) => (session.initiator === agentAddress || session.responder === agentAddress) && session.isActive && (session.expiresAt === 0n || session.expiresAt > currentTimestamp)
22287
+ );
22562
22288
  }
22563
22289
  /**
22564
22290
  * Subscribe to new messages in a session (real-time)
@@ -22629,56 +22355,60 @@ var AuctionInstructions = class extends BaseInstructions {
22629
22355
  * )
22630
22356
  * ```
22631
22357
  */
22632
- async createServiceAuction(creator, auctionPda, userRegistry, params) {
22358
+ async createServiceAuction(auctionPda, userRegistry, params) {
22633
22359
  console.log("\u{1F3D7}\uFE0F Creating service auction...");
22634
22360
  console.log(` Auction Type: ${params.auctionData.auctionType}`);
22635
22361
  console.log(` Starting Price: ${params.auctionData.startingPrice} lamports`);
22636
22362
  console.log(` Reserve Price: ${params.auctionData.reservePrice} lamports`);
22637
22363
  console.log(` Duration: ${Number(params.auctionData.auctionEndTime - BigInt(Math.floor(Date.now() / 1e3)))} seconds`);
22638
22364
  this.validateCreateAuctionParams(params);
22639
- const instruction = getCreateServiceAuctionInstruction({
22640
- auction: auctionPda,
22641
- agent: params.agent,
22642
- userRegistry,
22643
- creator,
22644
- systemProgram: "11111111111111111111111111111112",
22645
- clock: "SysvarC1ock11111111111111111111111111111111",
22646
- auctionType: params.auctionData.auctionType,
22647
- startingPrice: params.auctionData.startingPrice,
22648
- reservePrice: params.auctionData.reservePrice,
22649
- currentBid: params.auctionData.startingPrice,
22650
- currentBidder: null,
22651
- auctionEndTime: params.auctionData.auctionEndTime,
22652
- minimumBidIncrement: params.auctionData.minimumBidIncrement,
22653
- totalBids: 0
22654
- });
22655
- const signature = await this.sendTransaction([instruction], [creator]);
22656
- console.log(`\u2705 Service auction created with signature: ${signature}`);
22657
- return signature;
22365
+ return this.executeInstruction(
22366
+ () => getCreateServiceAuctionInstruction({
22367
+ auction: auctionPda,
22368
+ agent: params.agent,
22369
+ userRegistry,
22370
+ creator: params.signer,
22371
+ systemProgram: "11111111111111111111111111111112",
22372
+ clock: "SysvarC1ock11111111111111111111111111111111",
22373
+ auctionType: params.auctionData.auctionType,
22374
+ startingPrice: params.auctionData.startingPrice,
22375
+ reservePrice: params.auctionData.reservePrice,
22376
+ currentBid: params.auctionData.startingPrice,
22377
+ currentBidder: null,
22378
+ auctionEndTime: params.auctionData.auctionEndTime,
22379
+ minimumBidIncrement: params.auctionData.minimumBidIncrement,
22380
+ totalBids: 0
22381
+ }),
22382
+ params.signer,
22383
+ "service auction creation"
22384
+ );
22658
22385
  }
22659
22386
  /**
22660
22387
  * Create auction with full transaction details and URLs
22661
22388
  */
22662
- async createServiceAuctionWithDetails(creator, auctionPda, userRegistry, params) {
22389
+ async createServiceAuctionWithDetails(auctionPda, userRegistry, params) {
22663
22390
  console.log("\u{1F3D7}\uFE0F Creating service auction with detailed results...");
22664
22391
  this.validateCreateAuctionParams(params);
22665
- const instruction = getCreateServiceAuctionInstruction({
22666
- auction: auctionPda,
22667
- agent: params.agent,
22668
- userRegistry,
22669
- creator,
22670
- systemProgram: "11111111111111111111111111111112",
22671
- clock: "SysvarC1ock11111111111111111111111111111111",
22672
- auctionType: params.auctionData.auctionType,
22673
- startingPrice: params.auctionData.startingPrice,
22674
- reservePrice: params.auctionData.reservePrice,
22675
- currentBid: params.auctionData.startingPrice,
22676
- currentBidder: null,
22677
- auctionEndTime: params.auctionData.auctionEndTime,
22678
- minimumBidIncrement: params.auctionData.minimumBidIncrement,
22679
- totalBids: 0
22680
- });
22681
- return this.sendTransactionWithDetails([instruction], [creator]);
22392
+ return this.executeInstructionWithDetails(
22393
+ () => getCreateServiceAuctionInstruction({
22394
+ auction: auctionPda,
22395
+ agent: params.agent,
22396
+ userRegistry,
22397
+ creator: params.signer,
22398
+ systemProgram: "11111111111111111111111111111112",
22399
+ clock: "SysvarC1ock11111111111111111111111111111111",
22400
+ auctionType: params.auctionData.auctionType,
22401
+ startingPrice: params.auctionData.startingPrice,
22402
+ reservePrice: params.auctionData.reservePrice,
22403
+ currentBid: params.auctionData.startingPrice,
22404
+ currentBidder: null,
22405
+ auctionEndTime: params.auctionData.auctionEndTime,
22406
+ minimumBidIncrement: params.auctionData.minimumBidIncrement,
22407
+ totalBids: 0
22408
+ }),
22409
+ params.signer,
22410
+ "service auction creation"
22411
+ );
22682
22412
  }
22683
22413
  // =====================================================
22684
22414
  // BIDDING
@@ -22708,46 +22438,50 @@ var AuctionInstructions = class extends BaseInstructions {
22708
22438
  * )
22709
22439
  * ```
22710
22440
  */
22711
- async placeAuctionBid(bidder, auction, userRegistry, params) {
22441
+ async placeAuctionBid(userRegistry, params) {
22712
22442
  console.log("\u{1F4B0} Placing auction bid...");
22713
- console.log(` Auction: ${auction}`);
22443
+ console.log(` Auction: ${params.auction}`);
22714
22444
  console.log(` Bid Amount: ${params.bidAmount} lamports`);
22715
- const auctionData = await this.getAuction(auction);
22445
+ const auctionData = await this.getAuction(params.auction);
22716
22446
  if (!auctionData) {
22717
22447
  throw new Error("Auction not found");
22718
22448
  }
22719
22449
  this.validateBidParams(params, auctionData);
22720
- const instruction = getPlaceAuctionBidInstruction({
22721
- auction,
22722
- userRegistry,
22723
- bidder,
22724
- systemProgram: "11111111111111111111111111111112",
22725
- clock: "SysvarC1ock11111111111111111111111111111111",
22726
- bidAmount: params.bidAmount
22727
- });
22728
- const signature = await this.sendTransaction([instruction], [bidder]);
22729
- console.log(`\u2705 Auction bid placed with signature: ${signature}`);
22730
- return signature;
22450
+ return this.executeInstruction(
22451
+ () => getPlaceAuctionBidInstruction({
22452
+ auction: params.auction,
22453
+ userRegistry,
22454
+ bidder: params.signer,
22455
+ systemProgram: "11111111111111111111111111111112",
22456
+ clock: "SysvarC1ock11111111111111111111111111111111",
22457
+ bidAmount: params.bidAmount
22458
+ }),
22459
+ params.signer,
22460
+ "auction bid placement"
22461
+ );
22731
22462
  }
22732
22463
  /**
22733
22464
  * Place bid with detailed transaction results
22734
22465
  */
22735
- async placeAuctionBidWithDetails(bidder, auction, userRegistry, params) {
22466
+ async placeAuctionBidWithDetails(userRegistry, params) {
22736
22467
  console.log("\u{1F4B0} Placing auction bid with detailed results...");
22737
- const auctionData = await this.getAuction(auction);
22468
+ const auctionData = await this.getAuction(params.auction);
22738
22469
  if (!auctionData) {
22739
22470
  throw new Error("Auction not found");
22740
22471
  }
22741
22472
  this.validateBidParams(params, auctionData);
22742
- const instruction = getPlaceAuctionBidInstruction({
22743
- auction,
22744
- userRegistry,
22745
- bidder,
22746
- systemProgram: "11111111111111111111111111111112",
22747
- clock: "SysvarC1ock11111111111111111111111111111111",
22748
- bidAmount: params.bidAmount
22749
- });
22750
- return this.sendTransactionWithDetails([instruction], [bidder]);
22473
+ return this.executeInstructionWithDetails(
22474
+ () => getPlaceAuctionBidInstruction({
22475
+ auction: params.auction,
22476
+ userRegistry,
22477
+ bidder: params.signer,
22478
+ systemProgram: "11111111111111111111111111111112",
22479
+ clock: "SysvarC1ock11111111111111111111111111111111",
22480
+ bidAmount: params.bidAmount
22481
+ }),
22482
+ params.signer,
22483
+ "auction bid placement"
22484
+ );
22751
22485
  }
22752
22486
  // =====================================================
22753
22487
  // AUCTION FINALIZATION
@@ -22770,39 +22504,43 @@ var AuctionInstructions = class extends BaseInstructions {
22770
22504
  * )
22771
22505
  * ```
22772
22506
  */
22773
- async finalizeAuction(authority, auction) {
22507
+ async finalizeAuction(params) {
22774
22508
  console.log("\u{1F3C1} Finalizing auction...");
22775
- console.log(` Auction: ${auction}`);
22776
- const auctionData = await this.getAuction(auction);
22509
+ console.log(` Auction: ${params.auction}`);
22510
+ const auctionData = await this.getAuction(params.auction);
22777
22511
  if (!auctionData) {
22778
22512
  throw new Error("Auction not found");
22779
22513
  }
22780
22514
  this.validateAuctionCanBeFinalized(auctionData);
22781
- const instruction = getFinalizeAuctionInstruction({
22782
- auction,
22783
- authority,
22784
- clock: "SysvarC1ock11111111111111111111111111111111"
22785
- });
22786
- const signature = await this.sendTransaction([instruction], [authority]);
22787
- console.log(`\u2705 Auction finalized with signature: ${signature}`);
22788
- return signature;
22515
+ return this.executeInstruction(
22516
+ () => getFinalizeAuctionInstruction({
22517
+ auction: params.auction,
22518
+ authority: params.signer,
22519
+ clock: "SysvarC1ock11111111111111111111111111111111"
22520
+ }),
22521
+ params.signer,
22522
+ "auction finalization"
22523
+ );
22789
22524
  }
22790
22525
  /**
22791
22526
  * Finalize auction with detailed transaction results
22792
22527
  */
22793
- async finalizeAuctionWithDetails(authority, auction) {
22528
+ async finalizeAuctionWithDetails(params) {
22794
22529
  console.log("\u{1F3C1} Finalizing auction with detailed results...");
22795
- const auctionData = await this.getAuction(auction);
22530
+ const auctionData = await this.getAuction(params.auction);
22796
22531
  if (!auctionData) {
22797
22532
  throw new Error("Auction not found");
22798
22533
  }
22799
22534
  this.validateAuctionCanBeFinalized(auctionData);
22800
- const instruction = getFinalizeAuctionInstruction({
22801
- auction,
22802
- authority,
22803
- clock: "SysvarC1ock11111111111111111111111111111111"
22804
- });
22805
- return this.sendTransactionWithDetails([instruction], [authority]);
22535
+ return this.executeInstructionWithDetails(
22536
+ () => getFinalizeAuctionInstruction({
22537
+ auction: params.auction,
22538
+ authority: params.signer,
22539
+ clock: "SysvarC1ock11111111111111111111111111111111"
22540
+ }),
22541
+ params.signer,
22542
+ "auction finalization"
22543
+ );
22806
22544
  }
22807
22545
  // =====================================================
22808
22546
  // AUCTION QUERYING & MONITORING
@@ -22814,19 +22552,7 @@ var AuctionInstructions = class extends BaseInstructions {
22814
22552
  * @returns Auction account data or null if not found
22815
22553
  */
22816
22554
  async getAuction(auctionAddress) {
22817
- try {
22818
- const { GhostSpeakRpcClient: GhostSpeakRpcClient2 } = await Promise.resolve().then(() => (init_rpc(), rpc_exports));
22819
- const rpcClient = new GhostSpeakRpcClient2(this.rpc);
22820
- const auction = await rpcClient.getAndDecodeAccount(
22821
- auctionAddress,
22822
- getAuctionMarketplaceDecoder(),
22823
- this.commitment
22824
- );
22825
- return auction;
22826
- } catch (error) {
22827
- console.warn(`Failed to fetch auction ${auctionAddress}:`, error);
22828
- return null;
22829
- }
22555
+ return this.getDecodedAccount(auctionAddress, "getAuctionMarketplaceDecoder");
22830
22556
  }
22831
22557
  /**
22832
22558
  * Get auction summary with computed fields
@@ -22882,23 +22608,10 @@ var AuctionInstructions = class extends BaseInstructions {
22882
22608
  */
22883
22609
  async listAuctions(filter, limit = 50) {
22884
22610
  console.log("\u{1F4CB} Listing auctions...");
22885
- try {
22886
- const { GhostSpeakRpcClient: GhostSpeakRpcClient2 } = await Promise.resolve().then(() => (init_rpc(), rpc_exports));
22887
- const rpcClient = new GhostSpeakRpcClient2(this.rpc);
22888
- const accounts = await rpcClient.getAndDecodeProgramAccounts(
22889
- this.programId,
22890
- getAuctionMarketplaceDecoder(),
22891
- [],
22892
- // No RPC filters - filtering client-side
22893
- this.commitment
22894
- );
22895
- let auctions = accounts.map(({ address: address2, data }) => this.auctionToSummary(address2, data)).filter((summary) => this.applyAuctionFilter(summary, filter)).slice(0, limit);
22896
- console.log(`\u2705 Found ${auctions.length} auctions`);
22897
- return auctions;
22898
- } catch (error) {
22899
- console.warn("Failed to list auctions:", error);
22900
- return [];
22901
- }
22611
+ const accounts = await this.getDecodedProgramAccounts("getAuctionMarketplaceDecoder");
22612
+ const auctions = accounts.map(({ address: address2, data }) => this.auctionToSummary(address2, data)).filter((summary) => this.applyAuctionFilter(summary, filter)).slice(0, limit);
22613
+ console.log(`\u2705 Found ${auctions.length} auctions`);
22614
+ return auctions;
22902
22615
  }
22903
22616
  /**
22904
22617
  * Get active auctions ending soon
@@ -22980,7 +22693,7 @@ var AuctionInstructions = class extends BaseInstructions {
22980
22693
  }
22981
22694
  const currentPrice = auction.currentPrice;
22982
22695
  const increment = auction.minimumBidIncrement;
22983
- const timeRemaining = auction.timeRemaining || 0n;
22696
+ const timeRemaining = auction.timeRemaining ?? 0n;
22984
22697
  switch (strategy) {
22985
22698
  case "conservative":
22986
22699
  return currentPrice + increment;
@@ -23051,10 +22764,6 @@ var AuctionInstructions = class extends BaseInstructions {
23051
22764
  auctionToSummary(auctionAddress, auction) {
23052
22765
  const now = BigInt(Math.floor(Date.now() / 1e3));
23053
22766
  const timeRemaining = auction.auctionEndTime > now ? auction.auctionEndTime - now : 0n;
23054
- now >= auction.auctionEndTime;
23055
- const hasBids = auction.bids.length > 0;
23056
- hasBids ? auction.bids[auction.bids.length - 1] : null;
23057
- const currentPrice = auction.currentPrice;
23058
22767
  return {
23059
22768
  auction: auctionAddress,
23060
22769
  agent: auction.agent,
@@ -23062,7 +22771,7 @@ var AuctionInstructions = class extends BaseInstructions {
23062
22771
  auctionType: auction.auctionType,
23063
22772
  startingPrice: auction.startingPrice,
23064
22773
  reservePrice: auction.reservePrice,
23065
- currentPrice,
22774
+ currentPrice: auction.currentPrice,
23066
22775
  currentWinner: auction.currentWinner?.__option === "Some" ? auction.currentWinner.value : void 0,
23067
22776
  winner: auction.winner?.__option === "Some" ? auction.winner.value : void 0,
23068
22777
  auctionEndTime: auction.auctionEndTime,
@@ -23132,7 +22841,7 @@ var DisputeInstructions = class extends BaseInstructions {
23132
22841
  const instruction = getFileDisputeInstruction({
23133
22842
  dispute: disputePda,
23134
22843
  transaction: params.transaction,
23135
- userRegistry: params.userRegistry || await this.deriveUserRegistry(complainant),
22844
+ userRegistry: params.userRegistry ?? await this.deriveUserRegistry(complainant),
23136
22845
  complainant,
23137
22846
  respondent: params.respondent,
23138
22847
  systemProgram: "11111111111111111111111111111112",
@@ -23152,7 +22861,7 @@ var DisputeInstructions = class extends BaseInstructions {
23152
22861
  const instruction = getFileDisputeInstruction({
23153
22862
  dispute: disputePda,
23154
22863
  transaction: params.transaction,
23155
- userRegistry: params.userRegistry || await this.deriveUserRegistry(complainant),
22864
+ userRegistry: params.userRegistry ?? await this.deriveUserRegistry(complainant),
23156
22865
  complainant,
23157
22866
  respondent: params.respondent,
23158
22867
  systemProgram: "11111111111111111111111111111112",
@@ -23201,7 +22910,7 @@ var DisputeInstructions = class extends BaseInstructions {
23201
22910
  this.validateEvidenceSubmissionAllowed(disputeData);
23202
22911
  const instruction = getSubmitDisputeEvidenceInstruction({
23203
22912
  dispute: params.dispute,
23204
- userRegistry: params.userRegistry || await this.deriveUserRegistry(submitter),
22913
+ userRegistry: params.userRegistry ?? await this.deriveUserRegistry(submitter),
23205
22914
  submitter,
23206
22915
  clock: "SysvarC1ock11111111111111111111111111111111",
23207
22916
  evidenceType: params.evidenceType,
@@ -23224,7 +22933,7 @@ var DisputeInstructions = class extends BaseInstructions {
23224
22933
  this.validateEvidenceSubmissionAllowed(disputeData);
23225
22934
  const instruction = getSubmitDisputeEvidenceInstruction({
23226
22935
  dispute: params.dispute,
23227
- userRegistry: params.userRegistry || await this.deriveUserRegistry(submitter),
22936
+ userRegistry: params.userRegistry ?? await this.deriveUserRegistry(submitter),
23228
22937
  submitter,
23229
22938
  clock: "SysvarC1ock11111111111111111111111111111111",
23230
22939
  evidenceType: params.evidenceType,
@@ -23271,7 +22980,7 @@ var DisputeInstructions = class extends BaseInstructions {
23271
22980
  this.validateDisputeCanBeResolved(disputeData);
23272
22981
  const instruction = getResolveDisputeInstruction({
23273
22982
  dispute: params.dispute,
23274
- arbitratorRegistry: params.userRegistry || await this.deriveUserRegistry(moderator),
22983
+ arbitratorRegistry: params.userRegistry ?? await this.deriveUserRegistry(moderator),
23275
22984
  arbitrator: moderator,
23276
22985
  clock: "SysvarC1ock11111111111111111111111111111111",
23277
22986
  resolution: params.resolution,
@@ -23294,7 +23003,7 @@ var DisputeInstructions = class extends BaseInstructions {
23294
23003
  this.validateDisputeCanBeResolved(disputeData);
23295
23004
  const instruction = getResolveDisputeInstruction({
23296
23005
  dispute: params.dispute,
23297
- arbitratorRegistry: params.userRegistry || await this.deriveUserRegistry(moderator),
23006
+ arbitratorRegistry: params.userRegistry ?? await this.deriveUserRegistry(moderator),
23298
23007
  arbitrator: moderator,
23299
23008
  clock: "SysvarC1ock11111111111111111111111111111111",
23300
23009
  resolution: params.resolution,
@@ -23312,19 +23021,10 @@ var DisputeInstructions = class extends BaseInstructions {
23312
23021
  * @returns Dispute account data or null if not found
23313
23022
  */
23314
23023
  async getDispute(disputeAddress) {
23315
- try {
23316
- const { GhostSpeakRpcClient: GhostSpeakRpcClient2 } = await Promise.resolve().then(() => (init_rpc(), rpc_exports));
23317
- const rpcClient = new GhostSpeakRpcClient2(this.rpc);
23318
- const dispute = await rpcClient.getAndDecodeAccount(
23319
- disputeAddress,
23320
- getDisputeCaseDecoder(),
23321
- this.commitment
23322
- );
23323
- return dispute;
23324
- } catch (error) {
23325
- console.warn(`Failed to fetch dispute ${disputeAddress}:`, error);
23326
- return null;
23327
- }
23024
+ return this.getDecodedAccount(
23025
+ disputeAddress,
23026
+ "getDisputeCaseDecoder"
23027
+ );
23328
23028
  }
23329
23029
  /**
23330
23030
  * Get dispute summary with computed fields
@@ -23376,14 +23076,10 @@ var DisputeInstructions = class extends BaseInstructions {
23376
23076
  async listDisputes(filter, limit = 50) {
23377
23077
  console.log("\u{1F4CB} Listing disputes...");
23378
23078
  try {
23379
- const { GhostSpeakRpcClient: GhostSpeakRpcClient2 } = await Promise.resolve().then(() => (init_rpc(), rpc_exports));
23380
- const rpcClient = new GhostSpeakRpcClient2(this.rpc);
23381
- const accounts = await rpcClient.getAndDecodeProgramAccounts(
23382
- this.programId,
23383
- getDisputeCaseDecoder(),
23384
- [],
23079
+ const accounts = await this.getDecodedProgramAccounts(
23080
+ "getDisputeCaseDecoder",
23081
+ []
23385
23082
  // No RPC filters - filtering client-side
23386
- this.commitment
23387
23083
  );
23388
23084
  let disputes = accounts.map(({ address: address2, data }) => this.disputeToSummary(address2, data)).filter((summary) => this.applyDisputeFilter(summary, filter)).slice(0, limit);
23389
23085
  console.log(`\u2705 Found ${disputes.length} disputes`);
@@ -23512,6 +23208,7 @@ var DisputeInstructions = class extends BaseInstructions {
23512
23208
  }
23513
23209
  }
23514
23210
  async deriveUserRegistry(user) {
23211
+ console.log(`Deriving user registry for ${user}`);
23515
23212
  return "11111111111111111111111111111111";
23516
23213
  }
23517
23214
  disputeToSummary(disputeAddress, dispute) {
@@ -23768,19 +23465,10 @@ var GovernanceInstructions = class extends BaseInstructions {
23768
23465
  * @returns Multisig account data or null if not found
23769
23466
  */
23770
23467
  async getMultisig(multisigAddress) {
23771
- try {
23772
- const { GhostSpeakRpcClient: GhostSpeakRpcClient2 } = await Promise.resolve().then(() => (init_rpc(), rpc_exports));
23773
- const rpcClient = new GhostSpeakRpcClient2(this.rpc);
23774
- const multisig = await rpcClient.getAndDecodeAccount(
23775
- multisigAddress,
23776
- getMultisigDecoder(),
23777
- this.commitment
23778
- );
23779
- return multisig;
23780
- } catch (error) {
23781
- console.warn(`Failed to fetch multisig ${multisigAddress}:`, error);
23782
- return null;
23783
- }
23468
+ return this.getDecodedAccount(
23469
+ multisigAddress,
23470
+ "getMultisigDecoder"
23471
+ );
23784
23472
  }
23785
23473
  /**
23786
23474
  * Get proposal account data
@@ -23789,19 +23477,10 @@ var GovernanceInstructions = class extends BaseInstructions {
23789
23477
  * @returns Proposal account data or null if not found
23790
23478
  */
23791
23479
  async getProposal(proposalAddress) {
23792
- try {
23793
- const { GhostSpeakRpcClient: GhostSpeakRpcClient2 } = await Promise.resolve().then(() => (init_rpc(), rpc_exports));
23794
- const rpcClient = new GhostSpeakRpcClient2(this.rpc);
23795
- const proposal = await rpcClient.getAndDecodeAccount(
23796
- proposalAddress,
23797
- getGovernanceProposalDecoder(),
23798
- this.commitment
23799
- );
23800
- return proposal;
23801
- } catch (error) {
23802
- console.warn(`Failed to fetch proposal ${proposalAddress}:`, error);
23803
- return null;
23804
- }
23480
+ return this.getDecodedAccount(
23481
+ proposalAddress,
23482
+ "getGovernanceProposalDecoder"
23483
+ );
23805
23484
  }
23806
23485
  /**
23807
23486
  * Get RBAC config account data
@@ -23810,19 +23489,10 @@ var GovernanceInstructions = class extends BaseInstructions {
23810
23489
  * @returns RBAC config data or null if not found
23811
23490
  */
23812
23491
  async getRbacConfig(rbacAddress) {
23813
- try {
23814
- const { GhostSpeakRpcClient: GhostSpeakRpcClient2 } = await Promise.resolve().then(() => (init_rpc(), rpc_exports));
23815
- const rpcClient = new GhostSpeakRpcClient2(this.rpc);
23816
- const rbacConfig = await rpcClient.getAndDecodeAccount(
23817
- rbacAddress,
23818
- getRbacConfigDecoder(),
23819
- this.commitment
23820
- );
23821
- return rbacConfig;
23822
- } catch (error) {
23823
- console.warn(`Failed to fetch RBAC config ${rbacAddress}:`, error);
23824
- return null;
23825
- }
23492
+ return this.getDecodedAccount(
23493
+ rbacAddress,
23494
+ "getRbacConfigDecoder"
23495
+ );
23826
23496
  }
23827
23497
  /**
23828
23498
  * Get multisig summary with computed fields
@@ -23842,7 +23512,7 @@ var GovernanceInstructions = class extends BaseInstructions {
23842
23512
  createdAt: multisig.createdAt,
23843
23513
  updatedAt: multisig.updatedAt,
23844
23514
  config: multisig.config,
23845
- emergencyConfig: {},
23515
+ emergencyConfig: void 0,
23846
23516
  // Not in the generated type
23847
23517
  pendingTransactions: 0,
23848
23518
  // Not in the generated type
@@ -23870,8 +23540,8 @@ var GovernanceInstructions = class extends BaseInstructions {
23870
23540
  proposalId: proposal.proposalId,
23871
23541
  proposalType: proposal.proposalType,
23872
23542
  proposer: proposal.proposer,
23873
- title: proposal.title || "Untitled Proposal",
23874
- description: proposal.description || "No description",
23543
+ title: proposal.title ?? "Untitled Proposal",
23544
+ description: proposal.description ?? "No description",
23875
23545
  status: proposal.status,
23876
23546
  createdAt: proposal.createdAt,
23877
23547
  votingEndsAt,
@@ -23895,14 +23565,10 @@ var GovernanceInstructions = class extends BaseInstructions {
23895
23565
  async listMultisigs(filter, limit = 50) {
23896
23566
  console.log("\u{1F4CB} Listing multisigs...");
23897
23567
  try {
23898
- const { GhostSpeakRpcClient: GhostSpeakRpcClient2 } = await Promise.resolve().then(() => (init_rpc(), rpc_exports));
23899
- const rpcClient = new GhostSpeakRpcClient2(this.rpc);
23900
- const accounts = await rpcClient.getAndDecodeProgramAccounts(
23901
- this.programId,
23902
- getMultisigDecoder(),
23903
- [],
23568
+ const accounts = await this.getDecodedProgramAccounts(
23569
+ "getMultisigDecoder",
23570
+ []
23904
23571
  // No RPC filters - filtering client-side
23905
- this.commitment
23906
23572
  );
23907
23573
  let multisigs = accounts.map(({ address: address2, data }) => this.multisigToSummary(address2, data)).filter((summary) => this.applyMultisigFilter(summary, filter)).slice(0, limit);
23908
23574
  console.log(`\u2705 Found ${multisigs.length} multisigs`);
@@ -23922,14 +23588,10 @@ var GovernanceInstructions = class extends BaseInstructions {
23922
23588
  async listProposals(filter, limit = 50) {
23923
23589
  console.log("\u{1F4CB} Listing proposals...");
23924
23590
  try {
23925
- const { GhostSpeakRpcClient: GhostSpeakRpcClient2 } = await Promise.resolve().then(() => (init_rpc(), rpc_exports));
23926
- const rpcClient = new GhostSpeakRpcClient2(this.rpc);
23927
- const accounts = await rpcClient.getAndDecodeProgramAccounts(
23928
- this.programId,
23929
- getGovernanceProposalDecoder(),
23930
- [],
23591
+ const accounts = await this.getDecodedProgramAccounts(
23592
+ "getGovernanceProposalDecoder",
23593
+ []
23931
23594
  // No RPC filters - filtering client-side
23932
- this.commitment
23933
23595
  );
23934
23596
  let proposals = accounts.map(({ address: address2, data }) => this.proposalToSummary(address2, data)).filter((summary) => this.applyProposalFilter(summary, filter)).slice(0, limit);
23935
23597
  console.log(`\u2705 Found ${proposals.length} proposals`);
@@ -24060,7 +23722,7 @@ var GovernanceInstructions = class extends BaseInstructions {
24060
23722
  createdAt: multisig.createdAt,
24061
23723
  updatedAt: multisig.updatedAt,
24062
23724
  config: multisig.config,
24063
- emergencyConfig: {},
23725
+ emergencyConfig: void 0,
24064
23726
  pendingTransactions: 0,
24065
23727
  isActive: multisig.signers.length >= multisig.threshold
24066
23728
  };
@@ -24077,8 +23739,8 @@ var GovernanceInstructions = class extends BaseInstructions {
24077
23739
  proposalId: proposal.proposalId,
24078
23740
  proposalType: proposal.proposalType,
24079
23741
  proposer: proposal.proposer,
24080
- title: proposal.title || "Untitled Proposal",
24081
- description: proposal.description || "No description",
23742
+ title: proposal.title ?? "Untitled Proposal",
23743
+ description: proposal.description ?? "No description",
24082
23744
  status: proposal.status,
24083
23745
  createdAt: proposal.createdAt,
24084
23746
  votingEndsAt,
@@ -24133,7 +23795,7 @@ var BulkDealsInstructions = class extends BaseInstructions {
24133
23795
  console.log(` Volume Range: ${params.minimumVolume} - ${params.maximumVolume}`);
24134
23796
  const instruction = getCreateBulkDealInstruction({
24135
23797
  deal: bulkDealPda,
24136
- agent: params.agent || bulkDealPda,
23798
+ agent: params.agent ?? bulkDealPda,
24137
23799
  // Placeholder - should be provided
24138
23800
  userRegistry: await this.deriveUserRegistry(creator),
24139
23801
  customer: creator,
@@ -24196,6 +23858,7 @@ var BulkDealsInstructions = class extends BaseInstructions {
24196
23858
  return null;
24197
23859
  }
24198
23860
  async deriveUserRegistry(user) {
23861
+ console.log(`Deriving user registry for ${user}`);
24199
23862
  return "11111111111111111111111111111111";
24200
23863
  }
24201
23864
  };
@@ -24422,19 +24085,10 @@ var AnalyticsInstructions = class extends BaseInstructions {
24422
24085
  * @returns Dashboard account data or null if not found
24423
24086
  */
24424
24087
  async getDashboard(dashboardAddress) {
24425
- try {
24426
- const { GhostSpeakRpcClient: GhostSpeakRpcClient2 } = await Promise.resolve().then(() => (init_rpc(), rpc_exports));
24427
- const rpcClient = new GhostSpeakRpcClient2(this.rpc);
24428
- const dashboard = await rpcClient.getAndDecodeAccount(
24429
- dashboardAddress,
24430
- getAnalyticsDashboardDecoder(),
24431
- this.commitment
24432
- );
24433
- return dashboard;
24434
- } catch (error) {
24435
- console.warn(`Failed to fetch dashboard ${dashboardAddress}:`, error);
24436
- return null;
24437
- }
24088
+ return this.getDecodedAccount(
24089
+ dashboardAddress,
24090
+ "getAnalyticsDashboardDecoder"
24091
+ );
24438
24092
  }
24439
24093
  /**
24440
24094
  * Get market analytics account data
@@ -24443,19 +24097,10 @@ var AnalyticsInstructions = class extends BaseInstructions {
24443
24097
  * @returns Market analytics data or null if not found
24444
24098
  */
24445
24099
  async getMarketAnalytics(marketAnalyticsAddress) {
24446
- try {
24447
- const { GhostSpeakRpcClient: GhostSpeakRpcClient2 } = await Promise.resolve().then(() => (init_rpc(), rpc_exports));
24448
- const rpcClient = new GhostSpeakRpcClient2(this.rpc);
24449
- const marketAnalytics = await rpcClient.getAndDecodeAccount(
24450
- marketAnalyticsAddress,
24451
- getMarketAnalyticsDecoder(),
24452
- this.commitment
24453
- );
24454
- return marketAnalytics;
24455
- } catch (error) {
24456
- console.warn(`Failed to fetch market analytics ${marketAnalyticsAddress}:`, error);
24457
- return null;
24458
- }
24100
+ return this.getDecodedAccount(
24101
+ marketAnalyticsAddress,
24102
+ "getMarketAnalyticsDecoder"
24103
+ );
24459
24104
  }
24460
24105
  /**
24461
24106
  * Get dashboard summary with computed performance metrics
@@ -24472,13 +24117,13 @@ var AnalyticsInstructions = class extends BaseInstructions {
24472
24117
  } catch (error) {
24473
24118
  console.warn("Failed to parse dashboard metrics:", error);
24474
24119
  }
24475
- const revenue = BigInt(metricsData.revenue || "0");
24476
- const transactionCount = metricsData.transactionCount || 0;
24477
- const successRate = metricsData.successRate || 0;
24478
- const averageResponseTime = metricsData.averageResponseTime || 0;
24479
- const customerRating = metricsData.customerRating || 0;
24480
- const utilizationRate = metricsData.utilizationRate || 0;
24481
- const agentId = metricsData.agentId || dashboard.owner;
24120
+ const revenue = BigInt(metricsData.revenue ?? "0");
24121
+ const transactionCount = metricsData.transactionCount ?? 0;
24122
+ const successRate = metricsData.successRate ?? 0;
24123
+ const averageResponseTime = metricsData.averageResponseTime ?? 0;
24124
+ const customerRating = metricsData.customerRating ?? 0;
24125
+ const utilizationRate = metricsData.utilizationRate ?? 0;
24126
+ const agentId = metricsData.agentId ?? dashboard.owner;
24482
24127
  const performanceGrade = this.calculatePerformanceGrade(
24483
24128
  successRate,
24484
24129
  customerRating,
@@ -24628,8 +24273,9 @@ var AnalyticsInstructions = class extends BaseInstructions {
24628
24273
  }
24629
24274
  determineTrendDirection(metricsData) {
24630
24275
  if (metricsData.previousMetrics) {
24631
- const currentScore = metricsData.successRate || 0;
24632
- const previousScore = metricsData.previousMetrics.successRate || 0;
24276
+ const currentScore = metricsData.successRate ?? 0;
24277
+ const previousMetrics = metricsData.previousMetrics;
24278
+ const previousScore = previousMetrics.successRate ?? 0;
24633
24279
  if (currentScore > previousScore + 0.05) return 0 /* Increasing */;
24634
24280
  if (currentScore < previousScore - 0.05) return 1 /* Decreasing */;
24635
24281
  return 2 /* Stable */;
@@ -24637,6 +24283,7 @@ var AnalyticsInstructions = class extends BaseInstructions {
24637
24283
  return 3 /* Unknown */;
24638
24284
  }
24639
24285
  async deriveUserRegistry(user) {
24286
+ console.log(`Deriving user registry for ${user}`);
24640
24287
  return "11111111111111111111111111111111";
24641
24288
  }
24642
24289
  async deriveMarketAnalyticsPda() {
@@ -24836,6 +24483,7 @@ var ComplianceInstructions = class extends BaseInstructions {
24836
24483
  console.log("\u{1F4CB} Processing data subject request...");
24837
24484
  console.log(` Request Type: ${requestType}`);
24838
24485
  console.log(` Data Subject: ${dataSubject}`);
24486
+ console.log(` Request Details: ${requestDetails}`);
24839
24487
  const requestId = `dsr_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`;
24840
24488
  const now = BigInt(Math.floor(Date.now() / 1e3));
24841
24489
  const estimatedCompletion = now + BigInt(30 * 24 * 3600);
@@ -24995,7 +24643,7 @@ var GhostSpeakClient = class _GhostSpeakClient {
24995
24643
  static create(rpc, programId) {
24996
24644
  return new _GhostSpeakClient({
24997
24645
  rpc,
24998
- programId: programId || GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS
24646
+ programId: programId ?? GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS
24999
24647
  });
25000
24648
  }
25001
24649
  // Convenience methods for common operations
@@ -25021,7 +24669,7 @@ var GhostSpeakClient = class _GhostSpeakClient {
25021
24669
  * Create a new job posting
25022
24670
  */
25023
24671
  async createJobPosting(signer, jobPostingAddress, params) {
25024
- return this.marketplace.createJobPosting(signer, jobPostingAddress, params);
24672
+ return this.marketplace.createJobPosting(jobPostingAddress, { ...params, signer });
25025
24673
  }
25026
24674
  /**
25027
24675
  * Get all active service listings
@@ -25039,7 +24687,7 @@ var GhostSpeakClient = class _GhostSpeakClient {
25039
24687
  * Create an escrow account
25040
24688
  */
25041
24689
  async createEscrow(signer, workOrderAddress, params) {
25042
- return this.escrow.create(signer, workOrderAddress, params);
24690
+ return this.escrow.create(workOrderAddress, { ...params, signer });
25043
24691
  }
25044
24692
  /**
25045
24693
  * Get escrow account information
@@ -25051,13 +24699,13 @@ var GhostSpeakClient = class _GhostSpeakClient {
25051
24699
  * Create an A2A communication session
25052
24700
  */
25053
24701
  async createA2ASession(signer, sessionAddress, params) {
25054
- return this.a2a.createSession(signer, sessionAddress, params);
24702
+ return this.a2a.createSession(sessionAddress, { ...params, signer });
25055
24703
  }
25056
24704
  /**
25057
24705
  * Send a message in an A2A session
25058
24706
  */
25059
24707
  async sendA2AMessage(signer, sessionAddress, params) {
25060
- return this.a2a.sendMessage(signer, sessionAddress, params);
24708
+ return this.a2a.sendMessage(sessionAddress, { ...params, signer });
25061
24709
  }
25062
24710
  /**
25063
24711
  * Get A2A session information
@@ -25074,372 +24722,10 @@ var GhostSpeakClient = class _GhostSpeakClient {
25074
24722
  };
25075
24723
 
25076
24724
  // src/index.ts
25077
- init_rpc();
25078
24725
  init_pda();
25079
24726
  init_generated();
25080
24727
  var GHOSTSPEAK_PROGRAM_ID = address("AJVoWJ4JC1xJR9ufGBGuMgFpHMLouB29sFRTJRvEK1ZR");
25081
24728
 
25082
- // src/core/instructions/agent.ts
25083
- init_types2();
25084
- init_utils();
25085
- async function createRegisterAgentInstruction(signer, agentId, agentType, metadataUri) {
25086
- const agentPda = await deriveAgentPda2(signer.address, "");
25087
- const encoder = getAddressEncoder$1();
25088
- const [userRegistryPda] = await getProgramDerivedAddress$1({
25089
- programAddress: GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS,
25090
- seeds: [
25091
- Buffer.from("user_registry"),
25092
- encoder.encode(signer.address)
25093
- ]
25094
- });
25095
- const accounts = [
25096
- {
25097
- address: agentPda,
25098
- role: AccountRole.WRITABLE
25099
- // init account
25100
- },
25101
- {
25102
- address: userRegistryPda,
25103
- role: AccountRole.WRITABLE
25104
- // init_if_needed
25105
- },
25106
- {
25107
- address: signer.address,
25108
- role: AccountRole.WRITABLE_SIGNER
25109
- },
25110
- {
25111
- address: "11111111111111111111111111111111",
25112
- // System Program
25113
- role: AccountRole.READONLY
25114
- },
25115
- {
25116
- address: "SysvarC1ock11111111111111111111111111111111",
25117
- // Clock
25118
- role: AccountRole.READONLY
25119
- }
25120
- ];
25121
- const discriminator = new Uint8Array([135, 157, 66, 195, 2, 113, 175, 30]);
25122
- const agentTypeBytes = new Uint8Array([agentType]);
25123
- const metadataUriBytes = serializeString(metadataUri, 256);
25124
- const agentIdBytes = serializeString(agentId, 64);
25125
- const data = new Uint8Array(
25126
- discriminator.length + agentTypeBytes.length + metadataUriBytes.length + agentIdBytes.length
25127
- );
25128
- let offset = 0;
25129
- data.set(discriminator, offset);
25130
- offset += discriminator.length;
25131
- data.set(agentTypeBytes, offset);
25132
- offset += agentTypeBytes.length;
25133
- data.set(metadataUriBytes, offset);
25134
- offset += metadataUriBytes.length;
25135
- data.set(agentIdBytes, offset);
25136
- return {
25137
- programAddress: GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS,
25138
- accounts,
25139
- data
25140
- };
25141
- }
25142
- async function createUpdateAgentInstruction(signer, agentId, name, description, capabilities) {
25143
- const agentPda = await deriveAgentPda2(signer.address, agentId);
25144
- const accounts = [
25145
- {
25146
- address: agentPda,
25147
- role: AccountRole.WRITABLE
25148
- },
25149
- {
25150
- address: signer.address,
25151
- role: AccountRole.WRITABLE_SIGNER
25152
- }
25153
- ];
25154
- const discriminator = new Uint8Array([65, 42, 123, 32, 163, 229, 57, 177]);
25155
- const agentIdBytes = serializeString(agentId, 64);
25156
- const nameOption = name ? new Uint8Array([1, ...serializeString(name, 128)]) : new Uint8Array([0]);
25157
- const descOption = description ? new Uint8Array([1, ...serializeString(description, 512)]) : new Uint8Array([0]);
25158
- const capsOption = capabilities ? new Uint8Array([1, ...serializeVec(capabilities, (cap) => serializeString(cap, 64))]) : new Uint8Array([0]);
25159
- const totalSize = discriminator.length + agentIdBytes.length + nameOption.length + descOption.length + capsOption.length;
25160
- const data = new Uint8Array(totalSize);
25161
- let offset = 0;
25162
- data.set(discriminator, offset);
25163
- offset += discriminator.length;
25164
- data.set(agentIdBytes, offset);
25165
- offset += agentIdBytes.length;
25166
- data.set(nameOption, offset);
25167
- offset += nameOption.length;
25168
- data.set(descOption, offset);
25169
- offset += descOption.length;
25170
- data.set(capsOption, offset);
25171
- return {
25172
- programAddress: GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS,
25173
- accounts,
25174
- data
25175
- };
25176
- }
25177
- async function createActivateAgentInstruction(signer, agentId) {
25178
- const agentPda = await deriveAgentPda2(signer.address, agentId);
25179
- const accounts = [
25180
- {
25181
- address: agentPda,
25182
- role: AccountRole.WRITABLE
25183
- },
25184
- {
25185
- address: signer.address,
25186
- role: AccountRole.WRITABLE_SIGNER
25187
- },
25188
- {
25189
- address: "SysvarC1ock11111111111111111111111111111111",
25190
- // Clock
25191
- role: AccountRole.READONLY
25192
- }
25193
- ];
25194
- const discriminator = new Uint8Array([252, 139, 87, 21, 195, 152, 29, 217]);
25195
- const agentIdBytes = serializeString(agentId, 64);
25196
- const data = new Uint8Array(discriminator.length + agentIdBytes.length);
25197
- data.set(discriminator, 0);
25198
- data.set(agentIdBytes, discriminator.length);
25199
- return {
25200
- programAddress: GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS,
25201
- accounts,
25202
- data
25203
- };
25204
- }
25205
-
25206
- // src/core/instructions/marketplace.ts
25207
- init_types2();
25208
- init_utils();
25209
- async function createServiceListingInstruction(creator, agentId, listingId, name, description, price, deliveryTime, category) {
25210
- const encoder = getAddressEncoder$1();
25211
- const agentPda = await deriveAgentPda2(creator.address, "");
25212
- const listingPda = await deriveServiceListingPda2(creator.address, listingId);
25213
- const [userRegistryPda] = await getProgramDerivedAddress$1({
25214
- programAddress: GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS,
25215
- seeds: [
25216
- Buffer.from("user_registry"),
25217
- encoder.encode(creator.address)
25218
- ]
25219
- });
25220
- const accounts = [
25221
- {
25222
- address: listingPda,
25223
- role: AccountRole.WRITABLE
25224
- },
25225
- {
25226
- address: agentPda,
25227
- role: AccountRole.READONLY
25228
- },
25229
- {
25230
- address: userRegistryPda,
25231
- role: AccountRole.WRITABLE
25232
- },
25233
- {
25234
- address: creator.address,
25235
- role: AccountRole.WRITABLE_SIGNER
25236
- },
25237
- {
25238
- address: "11111111111111111111111111111111",
25239
- // System Program
25240
- role: AccountRole.READONLY
25241
- },
25242
- {
25243
- address: "SysvarC1ock11111111111111111111111111111111",
25244
- // Clock
25245
- role: AccountRole.READONLY
25246
- }
25247
- ];
25248
- const discriminator = new Uint8Array([91, 37, 216, 26, 93, 146, 13, 182]);
25249
- const titleBytes = serializeString(name.substring(0, 16), 20);
25250
- const descriptionBytes = serializeString(description.substring(0, 32), 40);
25251
- const priceBytes = new Uint8Array(8);
25252
- new DataView(priceBytes.buffer).setBigUint64(0, price, true);
25253
- const tokenMintBytes = new Uint8Array(32);
25254
- const paymentTokenBytes = new Uint8Array(32);
25255
- const serviceTypeBytes = serializeString(category.substring(0, 8), 12);
25256
- const estimatedDeliveryBytes = new Uint8Array(8);
25257
- new DataView(estimatedDeliveryBytes.buffer).setBigInt64(0, BigInt(deliveryTime), true);
25258
- const tagsBytes = serializeVec([category.substring(0, 4)], (tag) => serializeString(tag, 8));
25259
- const listingIdStringBytes = serializeString(listingId.toString().substring(0, 4), 8);
25260
- const dataSize = discriminator.length + titleBytes.length + descriptionBytes.length + priceBytes.length + tokenMintBytes.length + // token_mint
25261
- serviceTypeBytes.length + paymentTokenBytes.length + // payment_token
25262
- estimatedDeliveryBytes.length + tagsBytes.length + listingIdStringBytes.length;
25263
- const data = new Uint8Array(dataSize);
25264
- let offset = 0;
25265
- data.set(discriminator, offset);
25266
- offset += discriminator.length;
25267
- data.set(titleBytes, offset);
25268
- offset += titleBytes.length;
25269
- data.set(descriptionBytes, offset);
25270
- offset += descriptionBytes.length;
25271
- data.set(priceBytes, offset);
25272
- offset += priceBytes.length;
25273
- data.set(tokenMintBytes, offset);
25274
- offset += tokenMintBytes.length;
25275
- data.set(serviceTypeBytes, offset);
25276
- offset += serviceTypeBytes.length;
25277
- data.set(paymentTokenBytes, offset);
25278
- offset += paymentTokenBytes.length;
25279
- data.set(estimatedDeliveryBytes, offset);
25280
- offset += estimatedDeliveryBytes.length;
25281
- data.set(tagsBytes, offset);
25282
- offset += tagsBytes.length;
25283
- data.set(listingIdStringBytes, offset);
25284
- return {
25285
- programAddress: GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS,
25286
- accounts,
25287
- data
25288
- };
25289
- }
25290
- async function createWorkOrderFromListingInstruction(buyer, listing, seller, amount) {
25291
- throw new Error("Work order from listing instruction not yet implemented");
25292
- }
25293
- async function createCompleteWorkOrderInstruction(signer, workOrderId, deliverableUri) {
25294
- throw new Error("Complete work order instruction not yet implemented");
25295
- }
25296
- async function createReleaseEscrowInstruction(signer, escrowId) {
25297
- throw new Error("Release escrow instruction not yet implemented");
25298
- }
25299
-
25300
- // src/core/instructions/work-order.ts
25301
- init_types2();
25302
- init_utils();
25303
- async function createPurchaseServiceInstruction(buyer, listing, seller, amount) {
25304
- const workOrderPda = await deriveWorkOrderPda2(listing, buyer.address);
25305
- const accounts = [
25306
- {
25307
- address: workOrderPda,
25308
- role: AccountRole.WRITABLE
25309
- },
25310
- {
25311
- address: listing,
25312
- role: AccountRole.READONLY
25313
- },
25314
- {
25315
- address: buyer.address,
25316
- role: AccountRole.WRITABLE_SIGNER
25317
- },
25318
- {
25319
- address: seller,
25320
- role: AccountRole.WRITABLE
25321
- },
25322
- {
25323
- address: "11111111111111111111111111111111",
25324
- // System Program
25325
- role: AccountRole.READONLY
25326
- },
25327
- {
25328
- address: "SysvarC1ock11111111111111111111111111111111",
25329
- // Clock
25330
- role: AccountRole.READONLY
25331
- }
25332
- ];
25333
- const discriminator = new Uint8Array([194, 57, 126, 134, 253, 24, 15, 4]);
25334
- const amountBytes = new Uint8Array(8);
25335
- new DataView(amountBytes.buffer).setBigUint64(0, amount, true);
25336
- const data = new Uint8Array(discriminator.length + amountBytes.length);
25337
- data.set(discriminator, 0);
25338
- data.set(amountBytes, discriminator.length);
25339
- return {
25340
- programAddress: GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS,
25341
- accounts,
25342
- data
25343
- };
25344
- }
25345
-
25346
- // src/core/client-simple.ts
25347
- var GhostSpeakClient2 = class {
25348
- endpoint;
25349
- constructor(config = {}) {
25350
- this.endpoint = config.endpoint || "https://api.devnet.solana.com";
25351
- }
25352
- /**
25353
- * Register a new agent on-chain
25354
- */
25355
- async registerAgent(signer, agentId, agentType, metadataUri) {
25356
- return await createRegisterAgentInstruction(
25357
- signer,
25358
- agentId,
25359
- agentType,
25360
- metadataUri
25361
- );
25362
- }
25363
- /**
25364
- * Update agent information
25365
- */
25366
- async updateAgent(signer, agentId, updates) {
25367
- return await createUpdateAgentInstruction(
25368
- signer,
25369
- agentId,
25370
- updates.name,
25371
- updates.description,
25372
- updates.capabilities
25373
- );
25374
- }
25375
- /**
25376
- * Activate an agent
25377
- */
25378
- async activateAgent(signer, agentId) {
25379
- return await createActivateAgentInstruction(
25380
- signer,
25381
- agentId
25382
- );
25383
- }
25384
- /**
25385
- * Create a service listing
25386
- */
25387
- async createServiceListing(signer, agentId, listingId, listingData) {
25388
- return await createServiceListingInstruction(
25389
- signer,
25390
- agentId,
25391
- listingId,
25392
- listingData.name,
25393
- listingData.description,
25394
- listingData.price,
25395
- listingData.deliveryTime,
25396
- listingData.category
25397
- );
25398
- }
25399
- /**
25400
- * Create a simple service listing (minimal version to avoid serialization issues)
25401
- */
25402
- async createSimpleServiceListing(signer, agentId, listingId, title, price) {
25403
- const { createSimpleServiceListingInstruction: createSimpleServiceListingInstruction2 } = await Promise.resolve().then(() => (init_simple_marketplace(), simple_marketplace_exports));
25404
- return await createSimpleServiceListingInstruction2(
25405
- signer,
25406
- agentId,
25407
- listingId,
25408
- title,
25409
- price
25410
- );
25411
- }
25412
- /**
25413
- * Create service listing with fixed Anchor struct serialization
25414
- */
25415
- async createFixedServiceListing(signer, agentId, listingId, title, description, price) {
25416
- const { createFixedServiceListingInstruction: createFixedServiceListingInstruction2 } = await Promise.resolve().then(() => (init_fixed_marketplace(), fixed_marketplace_exports));
25417
- return await createFixedServiceListingInstruction2(
25418
- signer,
25419
- agentId,
25420
- listingId,
25421
- title,
25422
- description,
25423
- price
25424
- );
25425
- }
25426
- /**
25427
- * Purchase a service (create work order)
25428
- */
25429
- async purchaseService(buyer, listing, seller, amount) {
25430
- return await createPurchaseServiceInstruction(
25431
- buyer,
25432
- listing,
25433
- seller,
25434
- amount
25435
- );
25436
- }
25437
- // RPC will be handled by the CLI or test scripts for now
25438
- };
25439
-
25440
- // src/index.ts
25441
- init_utils();
25442
-
25443
- export { A2AInstructions, A2_A_MESSAGE_DISCRIMINATOR, A2_A_SESSION_DISCRIMINATOR, A2_A_STATUS_DISCRIMINATOR, ACCEPT_JOB_APPLICATION_DISCRIMINATOR, ACTIVATE_AGENT_DISCRIMINATOR, ADD_TOP_AGENT_DISCRIMINATOR, AGENT_DISCRIMINATOR, AGENT_INCENTIVES_DISCRIMINATOR, AGENT_TREE_CONFIG_DISCRIMINATOR, AGENT_VERIFICATION_DISCRIMINATOR, ANALYTICS_DASHBOARD_DISCRIMINATOR, APPLY_TO_JOB_DISCRIMINATOR, APPROVE_EXTENSION_DISCRIMINATOR, ARBITRATOR_REGISTRY_DISCRIMINATOR, AUCTION_MARKETPLACE_DISCRIMINATOR, AUDIT_TRAIL_DISCRIMINATOR, AccountDecoder, AccountFetcher, ActivationRequirementType, AgentInstructions, AnalyticsInstructions, ApplicationStatus, AuctionInstructions, AuctionStatus, AuctionType, AuditAction, AuthenticationLevel, AuthenticationMethod, BULK_DEAL_DISCRIMINATOR, BackupFrequency, BiometricStorageMethod, BiometricType, BulkDealsInstructions, CHANNEL_DISCRIMINATOR, COMPLIANCE_REPORT_DISCRIMINATOR, CREATE_A2A_SESSION_DISCRIMINATOR, CREATE_ANALYTICS_DASHBOARD_DISCRIMINATOR, CREATE_BULK_DEAL_DISCRIMINATOR, CREATE_CHANNEL_DISCRIMINATOR, CREATE_DYNAMIC_PRICING_ENGINE_DISCRIMINATOR, CREATE_INCENTIVE_PROGRAM_DISCRIMINATOR, CREATE_JOB_POSTING_DISCRIMINATOR, CREATE_MARKET_ANALYTICS_DISCRIMINATOR, CREATE_MULTISIG_DISCRIMINATOR, CREATE_REPLICATION_TEMPLATE_DISCRIMINATOR, CREATE_ROYALTY_STREAM_DISCRIMINATOR, CREATE_SERVICE_AUCTION_DISCRIMINATOR, CREATE_SERVICE_LISTING_DISCRIMINATOR, CREATE_WORK_ORDER_DISCRIMINATOR, ChannelType, ComplianceInstructions, ConditionType, ConstraintOperator, ContractStatus, DEACTIVATE_AGENT_DISCRIMINATOR, DISPUTE_CASE_DISCRIMINATOR, DISTRIBUTE_INCENTIVES_DISCRIMINATOR, DYNAMIC_PRICING_ENGINE_DISCRIMINATOR, DataAccessLevel, DealType, DegradationHandling, Deliverable, DisputeInstructions, DisputeStatus, EXECUTE_BULK_DEAL_BATCH_DISCRIMINATOR, EXPORT_ACTION_DISCRIMINATOR, EXPORT_AUDIT_CONTEXT_DISCRIMINATOR, EXPORT_BIOMETRIC_QUALITY_DISCRIMINATOR, EXPORT_COMPLIANCE_STATUS_DISCRIMINATOR, EXPORT_DYNAMIC_PRICING_CONFIG_DISCRIMINATOR, EXPORT_MULTISIG_CONFIG_DISCRIMINATOR, EXPORT_REPORT_ENTRY_DISCRIMINATOR, EXPORT_RESOURCE_CONSTRAINTS_DISCRIMINATOR, EXPORT_RULE_CONDITION_DISCRIMINATOR, EXTENSION_DISCRIMINATOR, EnforcementLevel, EscrowInstructions, ExtensionStatus, ExtensionType, FILE_DISPUTE_DISCRIMINATOR, FINALIZE_AUCTION_DISCRIMINATOR, GENERATE_COMPLIANCE_REPORT_DISCRIMINATOR, GHOSTSPEAK_MARKETPLACE_ERROR__ACCESS_DENIED, GHOSTSPEAK_MARKETPLACE_ERROR__ACCOUNT_ALREADY_INITIALIZED, GHOSTSPEAK_MARKETPLACE_ERROR__ACCOUNT_NOT_INITIALIZED, GHOSTSPEAK_MARKETPLACE_ERROR__AGENT_ALREADY_ACTIVE, GHOSTSPEAK_MARKETPLACE_ERROR__AGENT_ALREADY_REGISTERED, GHOSTSPEAK_MARKETPLACE_ERROR__AGENT_NOT_ACTIVE, GHOSTSPEAK_MARKETPLACE_ERROR__AGENT_NOT_FOUND, GHOSTSPEAK_MARKETPLACE_ERROR__ALREADY_VOTED, GHOSTSPEAK_MARKETPLACE_ERROR__ANALYTICS_NOT_ENABLED, GHOSTSPEAK_MARKETPLACE_ERROR__APPLICATION_ALREADY_PROCESSED, GHOSTSPEAK_MARKETPLACE_ERROR__APPLICATION_NOT_FOUND, GHOSTSPEAK_MARKETPLACE_ERROR__ARITHMETIC_OVERFLOW, GHOSTSPEAK_MARKETPLACE_ERROR__ARITHMETIC_UNDERFLOW, GHOSTSPEAK_MARKETPLACE_ERROR__AUCTION_ALREADY_ENDED, GHOSTSPEAK_MARKETPLACE_ERROR__AUCTION_DURATION_TOO_LONG, GHOSTSPEAK_MARKETPLACE_ERROR__AUCTION_DURATION_TOO_SHORT, GHOSTSPEAK_MARKETPLACE_ERROR__AUCTION_ENDED, GHOSTSPEAK_MARKETPLACE_ERROR__AUCTION_NOT_ACTIVE, GHOSTSPEAK_MARKETPLACE_ERROR__AUCTION_NOT_ENDED, GHOSTSPEAK_MARKETPLACE_ERROR__BID_INCREMENT_TOO_LOW, GHOSTSPEAK_MARKETPLACE_ERROR__BID_TOO_LOW, GHOSTSPEAK_MARKETPLACE_ERROR__BULK_DEAL_NOT_FOUND, GHOSTSPEAK_MARKETPLACE_ERROR__CANNOT_CANCEL_AUCTION_WITH_BIDS, GHOSTSPEAK_MARKETPLACE_ERROR__CAPABILITY_TOO_LONG, GHOSTSPEAK_MARKETPLACE_ERROR__CHANNEL_ALREADY_EXISTS, GHOSTSPEAK_MARKETPLACE_ERROR__CHANNEL_NOT_FOUND, GHOSTSPEAK_MARKETPLACE_ERROR__COMPLETION_PROOF_TOO_LONG, GHOSTSPEAK_MARKETPLACE_ERROR__COMPLIANCE_CHECK_FAILED, GHOSTSPEAK_MARKETPLACE_ERROR__COMPUTE_BUDGET_EXCEEDED, GHOSTSPEAK_MARKETPLACE_ERROR__DATA_CORRUPTION_DETECTED, GHOSTSPEAK_MARKETPLACE_ERROR__DEADLINE_PASSED, GHOSTSPEAK_MARKETPLACE_ERROR__DEAL_ALREADY_FINALIZED, GHOSTSPEAK_MARKETPLACE_ERROR__DEAL_EXPIRED, GHOSTSPEAK_MARKETPLACE_ERROR__DEAL_FULL, GHOSTSPEAK_MARKETPLACE_ERROR__DEAL_NOT_ACTIVE, GHOSTSPEAK_MARKETPLACE_ERROR__DESCRIPTION_TOO_LONG, GHOSTSPEAK_MARKETPLACE_ERROR__DISPUTE_ALREADY_RESOLVED, GHOSTSPEAK_MARKETPLACE_ERROR__DISPUTE_CASE_NOT_FOUND, GHOSTSPEAK_MARKETPLACE_ERROR__DISPUTE_DETAILS_TOO_LONG, GHOSTSPEAK_MARKETPLACE_ERROR__DISPUTE_REASON_TOO_LONG, GHOSTSPEAK_MARKETPLACE_ERROR__DISPUTE_WINDOW_EXPIRED, GHOSTSPEAK_MARKETPLACE_ERROR__DIVISION_BY_ZERO, GHOSTSPEAK_MARKETPLACE_ERROR__ESCROW_ALREADY_RELEASED, GHOSTSPEAK_MARKETPLACE_ERROR__ESCROW_NOT_FOUND, GHOSTSPEAK_MARKETPLACE_ERROR__EVIDENCE_WINDOW_EXPIRED, GHOSTSPEAK_MARKETPLACE_ERROR__EXTENSION_ALREADY_ENABLED, GHOSTSPEAK_MARKETPLACE_ERROR__EXTENSION_NOT_FOUND, GHOSTSPEAK_MARKETPLACE_ERROR__FEATURE_NOT_ENABLED, GHOSTSPEAK_MARKETPLACE_ERROR__GOVERNANCE_PROPOSAL_INVALID, GHOSTSPEAK_MARKETPLACE_ERROR__INCENTIVE_POOL_EXHAUSTED, GHOSTSPEAK_MARKETPLACE_ERROR__INPUT_TOO_LONG, GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_BALANCE, GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_FUNDS, GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_PARTICIPANTS, GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_VOTING_POWER, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_A2_A_PROTOCOL_MESSAGE, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_ACCOUNT_OWNER, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_AGENT_OWNER, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_AGENT_STATUS, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_AMOUNT, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_APPLICATION_STATUS, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_BID, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_CHANNEL_CONFIGURATION, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_CONFIGURATION, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_CONTRACT_STATUS, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_DEADLINE, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_DEAL_STATUS, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_DELIVERY_STATUS, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_DISCOUNT_PERCENTAGE, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_DISPUTE_STATUS, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_DURATION, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_ESCROW_AMOUNT, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_ESCROW_STATUS, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_EXPIRATION, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_EXTENSION_CONFIGURATION, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_EXTENSION_STATUS, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_GENOME_HASH, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_INCENTIVE_CONFIGURATION, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_INPUT_FORMAT, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_INPUT_LENGTH, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_JOB_STATUS, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_MAX_PARTICIPANTS, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_MESSAGE_STATUS, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_METADATA_URI, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_METRICS_DATA, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_MIN_PARTICIPANTS, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_NEGOTIATION_STATUS, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_OFFER, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_OFFER_AMOUNT, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_PARAMETER, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_PARTICIPANT_COUNT, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_PAYMENT_AMOUNT, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_PERCENTAGE, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_PERIOD, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_PRICE_CONFIGURATION, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_PRICE_RANGE, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_RATING, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_REPLICATION_CONFIG, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_REPORT_DATA, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_REPORT_STATUS, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_REPUTATION_SCORE, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_ROYALTY_PERCENTAGE, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_SERVICE_CONFIGURATION, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_SERVICE_ENDPOINT, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_SERVICE_TYPE, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_STARTING_PRICE, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_STATE_TRANSITION, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_STATUS_TRANSITION, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_TASK_CONFIGURATION, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_TASK_STATUS, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_TRANSACTION_STATUS, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_VALUE, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_VOLUME, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_VOLUME_TIER, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_WORK_ORDER_STATUS, GHOSTSPEAK_MARKETPLACE_ERROR__IPFS_HASH_TOO_LONG, GHOSTSPEAK_MARKETPLACE_ERROR__JOB_ALREADY_FILLED, GHOSTSPEAK_MARKETPLACE_ERROR__JOB_NOT_ACTIVE, GHOSTSPEAK_MARKETPLACE_ERROR__LISTING_ALREADY_ACTIVE, GHOSTSPEAK_MARKETPLACE_ERROR__LISTING_NOT_ACTIVE, GHOSTSPEAK_MARKETPLACE_ERROR__MAINTENANCE_MODE_ACTIVE, GHOSTSPEAK_MARKETPLACE_ERROR__MAXIMUM_RETRIES_EXCEEDED, GHOSTSPEAK_MARKETPLACE_ERROR__MESSAGE_NOT_FOUND, GHOSTSPEAK_MARKETPLACE_ERROR__MESSAGE_TOO_LONG, GHOSTSPEAK_MARKETPLACE_ERROR__METADATA_URI_TOO_LONG, GHOSTSPEAK_MARKETPLACE_ERROR__METRICS_TOO_LONG, GHOSTSPEAK_MARKETPLACE_ERROR__NAME_TOO_LONG, GHOSTSPEAK_MARKETPLACE_ERROR__NEGOTIATION_EXPIRED, GHOSTSPEAK_MARKETPLACE_ERROR__NEGOTIATION_NOT_FOUND, GHOSTSPEAK_MARKETPLACE_ERROR__NO_DELIVERABLES, GHOSTSPEAK_MARKETPLACE_ERROR__NO_PARTICIPANTS, GHOSTSPEAK_MARKETPLACE_ERROR__OPERATION_NOT_SUPPORTED, GHOSTSPEAK_MARKETPLACE_ERROR__OPERATION_TIMED_OUT, GHOSTSPEAK_MARKETPLACE_ERROR__OVERLAPPING_VOLUME_TIERS, GHOSTSPEAK_MARKETPLACE_ERROR__PAYMENT_ALREADY_PROCESSED, GHOSTSPEAK_MARKETPLACE_ERROR__PRICE_MODEL_NOT_SUPPORTED, GHOSTSPEAK_MARKETPLACE_ERROR__PROTOCOL_VERSION_MISMATCH, GHOSTSPEAK_MARKETPLACE_ERROR__RATE_LIMIT_EXCEEDED, GHOSTSPEAK_MARKETPLACE_ERROR__REPLICATION_NOT_ALLOWED, GHOSTSPEAK_MARKETPLACE_ERROR__REPORT_NOT_FOUND, GHOSTSPEAK_MARKETPLACE_ERROR__REQUIREMENT_TOO_LONG, GHOSTSPEAK_MARKETPLACE_ERROR__RESOLUTION_NOTES_TOO_LONG, GHOSTSPEAK_MARKETPLACE_ERROR__RESOURCE_LOCKED, GHOSTSPEAK_MARKETPLACE_ERROR__ROYALTY_CONFIGURATION_INVALID, GHOSTSPEAK_MARKETPLACE_ERROR__SERVICE_NOT_ACTIVE, GHOSTSPEAK_MARKETPLACE_ERROR__SERVICE_NOT_FOUND, GHOSTSPEAK_MARKETPLACE_ERROR__SIGNATURE_VERIFICATION_FAILED, GHOSTSPEAK_MARKETPLACE_ERROR__STRING_TOO_LONG, GHOSTSPEAK_MARKETPLACE_ERROR__TASK_ALREADY_COMPLETED, GHOSTSPEAK_MARKETPLACE_ERROR__TASK_DEADLINE_EXCEEDED, GHOSTSPEAK_MARKETPLACE_ERROR__TASK_ID_TOO_LONG, GHOSTSPEAK_MARKETPLACE_ERROR__TASK_NOT_FOUND, GHOSTSPEAK_MARKETPLACE_ERROR__TERM_TOO_LONG, GHOSTSPEAK_MARKETPLACE_ERROR__TITLE_TOO_LONG, GHOSTSPEAK_MARKETPLACE_ERROR__TOKEN_TRANSFER_FAILED, GHOSTSPEAK_MARKETPLACE_ERROR__TOO_MANY_AUDIT_ENTRIES, GHOSTSPEAK_MARKETPLACE_ERROR__TOO_MANY_BIDS, GHOSTSPEAK_MARKETPLACE_ERROR__TOO_MANY_CAPABILITIES, GHOSTSPEAK_MARKETPLACE_ERROR__TOO_MANY_COUNTER_OFFERS, GHOSTSPEAK_MARKETPLACE_ERROR__TOO_MANY_DELIVERABLES, GHOSTSPEAK_MARKETPLACE_ERROR__TOO_MANY_EVIDENCE_ITEMS, GHOSTSPEAK_MARKETPLACE_ERROR__TOO_MANY_EVIDENCE_SUBMISSIONS, GHOSTSPEAK_MARKETPLACE_ERROR__TOO_MANY_REQUIREMENTS, GHOSTSPEAK_MARKETPLACE_ERROR__TOO_MANY_TERMS, GHOSTSPEAK_MARKETPLACE_ERROR__TOO_MANY_TOP_AGENTS, GHOSTSPEAK_MARKETPLACE_ERROR__TOO_MANY_VOLUME_TIERS, GHOSTSPEAK_MARKETPLACE_ERROR__UNAUTHORIZED_ACCESS, GHOSTSPEAK_MARKETPLACE_ERROR__UNAUTHORIZED_ARBITRATOR, GHOSTSPEAK_MARKETPLACE_ERROR__UPDATE_FREQUENCY_TOO_HIGH, GHOSTSPEAK_MARKETPLACE_ERROR__VALUE_BELOW_MINIMUM, GHOSTSPEAK_MARKETPLACE_ERROR__VALUE_EXCEEDS_MAXIMUM, GHOSTSPEAK_MARKETPLACE_ERROR__VOTING_PERIOD_ENDED, GHOSTSPEAK_MARKETPLACE_ERROR__WORK_ORDER_ALREADY_EXISTS, GHOSTSPEAK_MARKETPLACE_ERROR__WORK_ORDER_NOT_FOUND, GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS, GHOSTSPEAK_PROGRAM_ID, GOVERNANCE_PROPOSAL_DISCRIMINATOR, GhostSpeakClient, GhostSpeakRpcClient, GhostspeakMarketplaceAccount, GhostspeakMarketplaceInstruction, GovernanceInstructions, INCENTIVE_PROGRAM_DISCRIMINATOR, INITIALIZE_AUDIT_TRAIL_DISCRIMINATOR, INITIALIZE_GOVERNANCE_PROPOSAL_DISCRIMINATOR, INITIALIZE_RBAC_CONFIG_DISCRIMINATOR, INITIATE_NEGOTIATION_DISCRIMINATOR, JOB_APPLICATION_DISCRIMINATOR, JOB_CONTRACT_DISCRIMINATOR, JOB_POSTING_DISCRIMINATOR, LIST_AGENT_FOR_RESALE_DISCRIMINATOR, MAKE_COUNTER_OFFER_DISCRIMINATOR, MANAGE_AGENT_STATUS_DISCRIMINATOR, MARKET_ANALYTICS_DISCRIMINATOR, MESSAGE_DISCRIMINATOR, MULTISIG_DISCRIMINATOR, MarketplaceInstructions, MessageType, NEGOTIATION_CHATBOT_DISCRIMINATOR, NegotiationStatus, NotificationMethod, NotificationPriority, NotificationTargetType, NotificationTiming, PAYMENT_DISCRIMINATOR, PLACE_AUCTION_BID_DISCRIMINATOR, PROCESS_PAYMENT_DISCRIMINATOR, PURCHASE_SERVICE_DISCRIMINATOR, PermissionConstraintType, PolicyStatus, PolicyType, PricingAlgorithm, PricingModel, ProposalStatus, ProposalType, PurchaseStatus, QuorumMethod, RBAC_CONFIG_DISCRIMINATOR, REGISTER_AGENT_COMPRESSED_DISCRIMINATOR, REGISTER_AGENT_DISCRIMINATOR, REGISTER_EXTENSION_DISCRIMINATOR, REPLICATE_AGENT_DISCRIMINATOR, REPLICATION_RECORD_DISCRIMINATOR, REPLICATION_TEMPLATE_DISCRIMINATOR, RESALE_MARKET_DISCRIMINATOR, RESOLVE_DISPUTE_DISCRIMINATOR, ROYALTY_STREAM_DISCRIMINATOR, ReportStatus, ReportType, ReportingFrequency, RiskCategory, RiskLevel, RoleStatus, RoleType, RuleEffect, SEND_A2A_MESSAGE_DISCRIMINATOR, SEND_MESSAGE_DISCRIMINATOR, SERVICE_LISTING_DISCRIMINATOR, SERVICE_PURCHASE_DISCRIMINATOR, SUBMIT_DISPUTE_EVIDENCE_DISCRIMINATOR, SUBMIT_WORK_DELIVERY_DISCRIMINATOR, ScopeInheritance, ScopeType, SecurityEventType, GhostSpeakClient2 as SimplifiedClient, SodConstraintType, StepUpTrigger, TimeLockType, TransactionPriority, TransactionStatus, TransactionType, TrendDirection, UPDATE_A2A_STATUS_DISCRIMINATOR, UPDATE_AGENT_DISCRIMINATOR, UPDATE_AGENT_REPUTATION_DISCRIMINATOR, UPDATE_AGENT_SERVICE_DISCRIMINATOR, UPDATE_ANALYTICS_DASHBOARD_DISCRIMINATOR, UPDATE_DYNAMIC_PRICING_DISCRIMINATOR, UPDATE_MARKET_ANALYTICS_DISCRIMINATOR, USER_REGISTRY_DISCRIMINATOR, UnlockMethod, VERIFY_AGENT_DISCRIMINATOR, ValueType, ViolationSeverity, VoteChoice, WORK_DELIVERY_DISCRIMINATOR, WORK_ORDER_DISCRIMINATOR, WorkOrderStatus, createActivateAgentInstruction, createCompleteWorkOrderInstruction, createPurchaseServiceInstruction, createRegisterAgentInstruction, createReleaseEscrowInstruction, createServiceListingInstruction, createUpdateAgentInstruction, createWorkOrderFromListingInstruction, decodeA2AMessage, decodeA2ASession, decodeA2AStatus, decodeAgent, decodeAgentIncentives, decodeAgentTreeConfig, decodeAgentVerification, decodeAnalyticsDashboard, decodeArbitratorRegistry, decodeAuctionMarketplace, decodeAuditTrail, decodeBulkDeal, decodeChannel, decodeComplianceReport, decodeDisputeCase, decodeDynamicPricingEngine, decodeExtension, decodeGovernanceProposal, decodeIncentiveProgram, decodeJobApplication, decodeJobContract, decodeJobPosting, decodeMarketAnalytics, decodeMessage, decodeMultisig, decodeNegotiationChatbot, decodePayment, decodeRbacConfig, decodeReplicationRecord, decodeReplicationTemplate, decodeResaleMarket, decodeRoyaltyStream, decodeServiceListing, decodeServicePurchase, decodeUserRegistry, decodeWorkDelivery, decodeWorkOrder, delegationScope, deriveA2AMessagePda, deriveA2ASessionPda, deriveAgentPda2 as deriveAgentPda, deriveServiceListingPda2 as deriveServiceListingPda, deriveWorkOrderPda2 as deriveWorkOrderPda, fetchA2AMessage, fetchA2ASession, fetchA2AStatus, fetchAgent, fetchAgentIncentives, fetchAgentTreeConfig, fetchAgentVerification, fetchAllA2AMessage, fetchAllA2ASession, fetchAllA2AStatus, fetchAllAgent, fetchAllAgentIncentives, fetchAllAgentTreeConfig, fetchAllAgentVerification, fetchAllAnalyticsDashboard, fetchAllArbitratorRegistry, fetchAllAuctionMarketplace, fetchAllAuditTrail, fetchAllBulkDeal, fetchAllChannel, fetchAllComplianceReport, fetchAllDisputeCase, fetchAllDynamicPricingEngine, fetchAllExtension, fetchAllGovernanceProposal, fetchAllIncentiveProgram, fetchAllJobApplication, fetchAllJobContract, fetchAllJobPosting, fetchAllMarketAnalytics, fetchAllMaybeA2AMessage, fetchAllMaybeA2ASession, fetchAllMaybeA2AStatus, fetchAllMaybeAgent, fetchAllMaybeAgentIncentives, fetchAllMaybeAgentTreeConfig, fetchAllMaybeAgentVerification, fetchAllMaybeAnalyticsDashboard, fetchAllMaybeArbitratorRegistry, fetchAllMaybeAuctionMarketplace, fetchAllMaybeAuditTrail, fetchAllMaybeBulkDeal, fetchAllMaybeChannel, fetchAllMaybeComplianceReport, fetchAllMaybeDisputeCase, fetchAllMaybeDynamicPricingEngine, fetchAllMaybeExtension, fetchAllMaybeGovernanceProposal, fetchAllMaybeIncentiveProgram, fetchAllMaybeJobApplication, fetchAllMaybeJobContract, fetchAllMaybeJobPosting, fetchAllMaybeMarketAnalytics, fetchAllMaybeMessage, fetchAllMaybeMultisig, fetchAllMaybeNegotiationChatbot, fetchAllMaybePayment, fetchAllMaybeRbacConfig, fetchAllMaybeReplicationRecord, fetchAllMaybeReplicationTemplate, fetchAllMaybeResaleMarket, fetchAllMaybeRoyaltyStream, fetchAllMaybeServiceListing, fetchAllMaybeServicePurchase, fetchAllMaybeUserRegistry, fetchAllMaybeWorkDelivery, fetchAllMaybeWorkOrder, fetchAllMessage, fetchAllMultisig, fetchAllNegotiationChatbot, fetchAllPayment, fetchAllRbacConfig, fetchAllReplicationRecord, fetchAllReplicationTemplate, fetchAllResaleMarket, fetchAllRoyaltyStream, fetchAllServiceListing, fetchAllServicePurchase, fetchAllUserRegistry, fetchAllWorkDelivery, fetchAllWorkOrder, fetchAnalyticsDashboard, fetchArbitratorRegistry, fetchAuctionMarketplace, fetchAuditTrail, fetchBulkDeal, fetchChannel, fetchComplianceReport, fetchDisputeCase, fetchDynamicPricingEngine, fetchExtension, fetchGovernanceProposal, fetchIncentiveProgram, fetchJobApplication, fetchJobContract, fetchJobPosting, fetchMarketAnalytics, fetchMaybeA2AMessage, fetchMaybeA2ASession, fetchMaybeA2AStatus, fetchMaybeAgent, fetchMaybeAgentIncentives, fetchMaybeAgentTreeConfig, fetchMaybeAgentVerification, fetchMaybeAnalyticsDashboard, fetchMaybeArbitratorRegistry, fetchMaybeAuctionMarketplace, fetchMaybeAuditTrail, fetchMaybeBulkDeal, fetchMaybeChannel, fetchMaybeComplianceReport, fetchMaybeDisputeCase, fetchMaybeDynamicPricingEngine, fetchMaybeExtension, fetchMaybeGovernanceProposal, fetchMaybeIncentiveProgram, fetchMaybeJobApplication, fetchMaybeJobContract, fetchMaybeJobPosting, fetchMaybeMarketAnalytics, fetchMaybeMessage, fetchMaybeMultisig, fetchMaybeNegotiationChatbot, fetchMaybePayment, fetchMaybeRbacConfig, fetchMaybeReplicationRecord, fetchMaybeReplicationTemplate, fetchMaybeResaleMarket, fetchMaybeRoyaltyStream, fetchMaybeServiceListing, fetchMaybeServicePurchase, fetchMaybeUserRegistry, fetchMaybeWorkDelivery, fetchMaybeWorkOrder, fetchMessage, fetchMultisig, fetchNegotiationChatbot, fetchPayment, fetchRbacConfig, fetchReplicationRecord, fetchReplicationTemplate, fetchResaleMarket, fetchRoyaltyStream, fetchServiceListing, fetchServicePurchase, fetchUserRegistry, fetchWorkDelivery, fetchWorkOrder, getA2AMessageCodec, getA2AMessageDecoder, getA2AMessageDiscriminatorBytes, getA2AMessageEncoder, getA2AMessageSentEventCodec, getA2AMessageSentEventDecoder, getA2AMessageSentEventEncoder, getA2ASessionCodec, getA2ASessionCreatedEventCodec, getA2ASessionCreatedEventDecoder, getA2ASessionCreatedEventEncoder, getA2ASessionDecoder, getA2ASessionDiscriminatorBytes, getA2ASessionEncoder, getA2AStatusCodec, getA2AStatusDecoder, getA2AStatusDiscriminatorBytes, getA2AStatusEncoder, getA2AStatusUpdatedEventCodec, getA2AStatusUpdatedEventDecoder, getA2AStatusUpdatedEventEncoder, getAcceptJobApplicationDiscriminatorBytes, getAcceptJobApplicationInstruction, getAcceptJobApplicationInstructionAsync, getAcceptJobApplicationInstructionDataCodec, getAcceptJobApplicationInstructionDataDecoder, getAcceptJobApplicationInstructionDataEncoder, getAccessAuditConfigCodec, getAccessAuditConfigDecoder, getAccessAuditConfigEncoder, getAccessPolicyCodec, getAccessPolicyDecoder, getAccessPolicyEncoder, getAccountLockoutPoliciesCodec, getAccountLockoutPoliciesDecoder, getAccountLockoutPoliciesEncoder, getActionCodec, getActionDecoder, getActionEncoder, getActionExportCodec, getActionExportDecoder, getActionExportEncoder, getActivateAgentDiscriminatorBytes, getActivateAgentInstruction, getActivateAgentInstructionAsync, getActivateAgentInstructionDataCodec, getActivateAgentInstructionDataDecoder, getActivateAgentInstructionDataEncoder, getActivationRequirementCodec, getActivationRequirementDecoder, getActivationRequirementEncoder, getActivationRequirementTypeCodec, getActivationRequirementTypeDecoder, getActivationRequirementTypeEncoder, getAddTopAgentDiscriminatorBytes, getAddTopAgentInstruction, getAddTopAgentInstructionDataCodec, getAddTopAgentInstructionDataDecoder, getAddTopAgentInstructionDataEncoder, getAgentCodec, getAgentDecoder, getAgentDiscriminatorBytes, getAgentEncoder, getAgentIncentivesCodec, getAgentIncentivesDecoder, getAgentIncentivesDiscriminatorBytes, getAgentIncentivesEncoder, getAgentIncentivesSize, getAgentListedForResaleEventCodec, getAgentListedForResaleEventDecoder, getAgentListedForResaleEventEncoder, getAgentRegisteredEventCodec, getAgentRegisteredEventDecoder, getAgentRegisteredEventEncoder, getAgentReplicatedEventCodec, getAgentReplicatedEventDecoder, getAgentReplicatedEventEncoder, getAgentServiceUpdatedEventCodec, getAgentServiceUpdatedEventDecoder, getAgentServiceUpdatedEventEncoder, getAgentStatusChangedEventCodec, getAgentStatusChangedEventDecoder, getAgentStatusChangedEventEncoder, getAgentTreeConfigCodec, getAgentTreeConfigDecoder, getAgentTreeConfigDiscriminatorBytes, getAgentTreeConfigEncoder, getAgentTreeConfigSize, getAgentUpdatedEventCodec, getAgentUpdatedEventDecoder, getAgentUpdatedEventEncoder, getAgentVerificationCodec, getAgentVerificationDataCodec, getAgentVerificationDataDecoder, getAgentVerificationDataEncoder, getAgentVerificationDecoder, getAgentVerificationDiscriminatorBytes, getAgentVerificationEncoder, getAgingPolicyCodec, getAgingPolicyDecoder, getAgingPolicyEncoder, getAnalyticsDashboardCodec, getAnalyticsDashboardCreatedEventCodec, getAnalyticsDashboardCreatedEventDecoder, getAnalyticsDashboardCreatedEventEncoder, getAnalyticsDashboardDecoder, getAnalyticsDashboardDiscriminatorBytes, getAnalyticsDashboardEncoder, getAnalyticsDashboardUpdatedEventCodec, getAnalyticsDashboardUpdatedEventDecoder, getAnalyticsDashboardUpdatedEventEncoder, getApplicationStatusCodec, getApplicationStatusDecoder, getApplicationStatusEncoder, getApplyToJobDiscriminatorBytes, getApplyToJobInstruction, getApplyToJobInstructionAsync, getApplyToJobInstructionDataCodec, getApplyToJobInstructionDataDecoder, getApplyToJobInstructionDataEncoder, getApprovalLevelCodec, getApprovalLevelDecoder, getApprovalLevelEncoder, getApproveExtensionDiscriminatorBytes, getApproveExtensionInstruction, getApproveExtensionInstructionDataCodec, getApproveExtensionInstructionDataDecoder, getApproveExtensionInstructionDataEncoder, getArbitratorRegistryCodec, getArbitratorRegistryDecoder, getArbitratorRegistryDiscriminatorBytes, getArbitratorRegistryEncoder, getAuctionBidCodec, getAuctionBidDecoder, getAuctionBidEncoder, getAuctionBidPlacedEventCodec, getAuctionBidPlacedEventDecoder, getAuctionBidPlacedEventEncoder, getAuctionFailedEventCodec, getAuctionFailedEventDecoder, getAuctionFailedEventEncoder, getAuctionFinalizedEventCodec, getAuctionFinalizedEventDecoder, getAuctionFinalizedEventEncoder, getAuctionMarketplaceCodec, getAuctionMarketplaceDecoder, getAuctionMarketplaceDiscriminatorBytes, getAuctionMarketplaceEncoder, getAuctionStatusCodec, getAuctionStatusDecoder, getAuctionStatusEncoder, getAuctionTypeCodec, getAuctionTypeDecoder, getAuctionTypeEncoder, getAuditActionCodec, getAuditActionDecoder, getAuditActionEncoder, getAuditConfigCodec, getAuditConfigDecoder, getAuditConfigEncoder, getAuditContextCodec, getAuditContextDecoder, getAuditContextEncoder, getAuditContextExportCodec, getAuditContextExportDecoder, getAuditContextExportEncoder, getAuditEntryCodec, getAuditEntryDecoder, getAuditEntryEncoder, getAuditTrailCodec, getAuditTrailDecoder, getAuditTrailDiscriminatorBytes, getAuditTrailEncoder, getAuditTrailInitializedEventCodec, getAuditTrailInitializedEventDecoder, getAuditTrailInitializedEventEncoder, getAuthenticationLevelCodec, getAuthenticationLevelDecoder, getAuthenticationLevelEncoder, getAuthenticationMethodCodec, getAuthenticationMethodDecoder, getAuthenticationMethodEncoder, getAuthenticationPoliciesCodec, getAuthenticationPoliciesDecoder, getAuthenticationPoliciesEncoder, getAuthenticationStrengthCodec, getAuthenticationStrengthDecoder, getAuthenticationStrengthEncoder, getAuthorizationPoliciesCodec, getAuthorizationPoliciesDecoder, getAuthorizationPoliciesEncoder, getBackupFrequencyCodec, getBackupFrequencyDecoder, getBackupFrequencyEncoder, getBiometricPoliciesCodec, getBiometricPoliciesDecoder, getBiometricPoliciesEncoder, getBiometricProtectionCodec, getBiometricProtectionDecoder, getBiometricProtectionEncoder, getBiometricQualityCodec, getBiometricQualityDecoder, getBiometricQualityEncoder, getBiometricQualityExportCodec, getBiometricQualityExportDecoder, getBiometricQualityExportEncoder, getBiometricStorageMethodCodec, getBiometricStorageMethodDecoder, getBiometricStorageMethodEncoder, getBiometricTypeCodec, getBiometricTypeDecoder, getBiometricTypeEncoder, getBulkDealBatchExecutedEventCodec, getBulkDealBatchExecutedEventDecoder, getBulkDealBatchExecutedEventEncoder, getBulkDealCodec, getBulkDealCreatedEventCodec, getBulkDealCreatedEventDecoder, getBulkDealCreatedEventEncoder, getBulkDealDecoder, getBulkDealDiscriminatorBytes, getBulkDealEncoder, getChannelCodec, getChannelCreatedEventCodec, getChannelCreatedEventDecoder, getChannelCreatedEventEncoder, getChannelDecoder, getChannelDiscriminatorBytes, getChannelEncoder, getChannelTypeCodec, getChannelTypeDecoder, getChannelTypeEncoder, getComplianceFlagsCodec, getComplianceFlagsDecoder, getComplianceFlagsEncoder, getComplianceMetricsCodec, getComplianceMetricsDecoder, getComplianceMetricsEncoder, getCompliancePoliciesCodec, getCompliancePoliciesDecoder, getCompliancePoliciesEncoder, getComplianceReportCodec, getComplianceReportDecoder, getComplianceReportDiscriminatorBytes, getComplianceReportEncoder, getComplianceReportGeneratedEventCodec, getComplianceReportGeneratedEventDecoder, getComplianceReportGeneratedEventEncoder, getComplianceStatusCodec, getComplianceStatusDecoder, getComplianceStatusEncoder, getComplianceStatusExportCodec, getComplianceStatusExportDecoder, getComplianceStatusExportEncoder, getCompressedAgentCreatedEventCodec, getCompressedAgentCreatedEventDecoder, getCompressedAgentCreatedEventEncoder, getConditionTypeCodec, getConditionTypeDecoder, getConditionTypeEncoder, getConstraintConditionCodec, getConstraintConditionDecoder, getConstraintConditionEncoder, getConstraintOperatorCodec, getConstraintOperatorDecoder, getConstraintOperatorEncoder, getContractStatusCodec, getContractStatusDecoder, getContractStatusEncoder, getCounterOfferMadeEventCodec, getCounterOfferMadeEventDecoder, getCounterOfferMadeEventEncoder, getCreateA2aSessionDiscriminatorBytes, getCreateA2aSessionInstruction, getCreateA2aSessionInstructionAsync, getCreateA2aSessionInstructionDataCodec, getCreateA2aSessionInstructionDataDecoder, getCreateA2aSessionInstructionDataEncoder, getCreateAnalyticsDashboardDiscriminatorBytes, getCreateAnalyticsDashboardInstruction, getCreateAnalyticsDashboardInstructionAsync, getCreateAnalyticsDashboardInstructionDataCodec, getCreateAnalyticsDashboardInstructionDataDecoder, getCreateAnalyticsDashboardInstructionDataEncoder, getCreateBulkDealDiscriminatorBytes, getCreateBulkDealInstruction, getCreateBulkDealInstructionAsync, getCreateBulkDealInstructionDataCodec, getCreateBulkDealInstructionDataDecoder, getCreateBulkDealInstructionDataEncoder, getCreateChannelDiscriminatorBytes, getCreateChannelInstruction, getCreateChannelInstructionDataCodec, getCreateChannelInstructionDataDecoder, getCreateChannelInstructionDataEncoder, getCreateDynamicPricingEngineDiscriminatorBytes, getCreateDynamicPricingEngineInstruction, getCreateDynamicPricingEngineInstructionAsync, getCreateDynamicPricingEngineInstructionDataCodec, getCreateDynamicPricingEngineInstructionDataDecoder, getCreateDynamicPricingEngineInstructionDataEncoder, getCreateIncentiveProgramDiscriminatorBytes, getCreateIncentiveProgramInstruction, getCreateIncentiveProgramInstructionAsync, getCreateIncentiveProgramInstructionDataCodec, getCreateIncentiveProgramInstructionDataDecoder, getCreateIncentiveProgramInstructionDataEncoder, getCreateJobPostingDiscriminatorBytes, getCreateJobPostingInstruction, getCreateJobPostingInstructionAsync, getCreateJobPostingInstructionDataCodec, getCreateJobPostingInstructionDataDecoder, getCreateJobPostingInstructionDataEncoder, getCreateMarketAnalyticsDiscriminatorBytes, getCreateMarketAnalyticsInstruction, getCreateMarketAnalyticsInstructionAsync, getCreateMarketAnalyticsInstructionDataCodec, getCreateMarketAnalyticsInstructionDataDecoder, getCreateMarketAnalyticsInstructionDataEncoder, getCreateMultisigDiscriminatorBytes, getCreateMultisigInstruction, getCreateMultisigInstructionAsync, getCreateMultisigInstructionDataCodec, getCreateMultisigInstructionDataDecoder, getCreateMultisigInstructionDataEncoder, getCreateReplicationTemplateDiscriminatorBytes, getCreateReplicationTemplateInstruction, getCreateReplicationTemplateInstructionAsync, getCreateReplicationTemplateInstructionDataCodec, getCreateReplicationTemplateInstructionDataDecoder, getCreateReplicationTemplateInstructionDataEncoder, getCreateRoyaltyStreamDiscriminatorBytes, getCreateRoyaltyStreamInstruction, getCreateRoyaltyStreamInstructionAsync, getCreateRoyaltyStreamInstructionDataCodec, getCreateRoyaltyStreamInstructionDataDecoder, getCreateRoyaltyStreamInstructionDataEncoder, getCreateServiceAuctionDiscriminatorBytes, getCreateServiceAuctionInstruction, getCreateServiceAuctionInstructionAsync, getCreateServiceAuctionInstructionDataCodec, getCreateServiceAuctionInstructionDataDecoder, getCreateServiceAuctionInstructionDataEncoder, getCreateServiceListingDiscriminatorBytes, getCreateServiceListingInstruction, getCreateServiceListingInstructionAsync, getCreateServiceListingInstructionDataCodec, getCreateServiceListingInstructionDataDecoder, getCreateServiceListingInstructionDataEncoder, getCreateWorkOrderDiscriminatorBytes, getCreateWorkOrderInstruction, getCreateWorkOrderInstructionDataCodec, getCreateWorkOrderInstructionDataDecoder, getCreateWorkOrderInstructionDataEncoder, getDataAccessLevelCodec, getDataAccessLevelDecoder, getDataAccessLevelEncoder, getDataProtectionPoliciesCodec, getDataProtectionPoliciesDecoder, getDataProtectionPoliciesEncoder, getDeactivateAgentDiscriminatorBytes, getDeactivateAgentInstruction, getDeactivateAgentInstructionAsync, getDeactivateAgentInstructionDataCodec, getDeactivateAgentInstructionDataDecoder, getDeactivateAgentInstructionDataEncoder, getDealTypeCodec, getDealTypeDecoder, getDealTypeEncoder, getDegradationHandlingCodec, getDegradationHandlingDecoder, getDegradationHandlingEncoder, getDelegationInfoCodec, getDelegationInfoDecoder, getDelegationInfoEncoder, getDelegationScopeCodec, getDelegationScopeDecoder, getDelegationScopeEncoder, getDeliverableCodec, getDeliverableDecoder, getDeliverableEncoder, getDisputeCaseCodec, getDisputeCaseDecoder, getDisputeCaseDiscriminatorBytes, getDisputeCaseEncoder, getDisputeEvidenceCodec, getDisputeEvidenceDecoder, getDisputeEvidenceEncoder, getDisputeEvidenceSubmittedEventCodec, getDisputeEvidenceSubmittedEventDecoder, getDisputeEvidenceSubmittedEventEncoder, getDisputeFiledEventCodec, getDisputeFiledEventDecoder, getDisputeFiledEventEncoder, getDisputeResolvedEventCodec, getDisputeResolvedEventDecoder, getDisputeResolvedEventEncoder, getDisputeStatusCodec, getDisputeStatusDecoder, getDisputeStatusEncoder, getDistributeIncentivesDiscriminatorBytes, getDistributeIncentivesInstruction, getDistributeIncentivesInstructionDataCodec, getDistributeIncentivesInstructionDataDecoder, getDistributeIncentivesInstructionDataEncoder, getDynamicPricingConfigCodec, getDynamicPricingConfigDecoder, getDynamicPricingConfigEncoder, getDynamicPricingConfigExportCodec, getDynamicPricingConfigExportDecoder, getDynamicPricingConfigExportEncoder, getDynamicPricingEngineCodec, getDynamicPricingEngineCreatedEventCodec, getDynamicPricingEngineCreatedEventDecoder, getDynamicPricingEngineCreatedEventEncoder, getDynamicPricingEngineDecoder, getDynamicPricingEngineDiscriminatorBytes, getDynamicPricingEngineEncoder, getDynamicPricingUpdatedEventCodec, getDynamicPricingUpdatedEventDecoder, getDynamicPricingUpdatedEventEncoder, getEmergencyAccessConfigCodec, getEmergencyAccessConfigDecoder, getEmergencyAccessConfigEncoder, getEmergencyConfigCodec, getEmergencyConfigDecoder, getEmergencyConfigEncoder, getEnforcementLevelCodec, getEnforcementLevelDecoder, getEnforcementLevelEncoder, getExecuteBulkDealBatchDiscriminatorBytes, getExecuteBulkDealBatchInstruction, getExecuteBulkDealBatchInstructionAsync, getExecuteBulkDealBatchInstructionDataCodec, getExecuteBulkDealBatchInstructionDataDecoder, getExecuteBulkDealBatchInstructionDataEncoder, getExecutionConditionCodec, getExecutionConditionDecoder, getExecutionConditionEncoder, getExecutionParamsCodec, getExecutionParamsDecoder, getExecutionParamsEncoder, getExportActionDiscriminatorBytes, getExportActionInstruction, getExportActionInstructionDataCodec, getExportActionInstructionDataDecoder, getExportActionInstructionDataEncoder, getExportAuditContextDiscriminatorBytes, getExportAuditContextInstruction, getExportAuditContextInstructionDataCodec, getExportAuditContextInstructionDataDecoder, getExportAuditContextInstructionDataEncoder, getExportBiometricQualityDiscriminatorBytes, getExportBiometricQualityInstruction, getExportBiometricQualityInstructionDataCodec, getExportBiometricQualityInstructionDataDecoder, getExportBiometricQualityInstructionDataEncoder, getExportComplianceStatusDiscriminatorBytes, getExportComplianceStatusInstruction, getExportComplianceStatusInstructionDataCodec, getExportComplianceStatusInstructionDataDecoder, getExportComplianceStatusInstructionDataEncoder, getExportDynamicPricingConfigDiscriminatorBytes, getExportDynamicPricingConfigInstruction, getExportDynamicPricingConfigInstructionDataCodec, getExportDynamicPricingConfigInstructionDataDecoder, getExportDynamicPricingConfigInstructionDataEncoder, getExportMultisigConfigDiscriminatorBytes, getExportMultisigConfigInstruction, getExportMultisigConfigInstructionDataCodec, getExportMultisigConfigInstructionDataDecoder, getExportMultisigConfigInstructionDataEncoder, getExportReportEntryDiscriminatorBytes, getExportReportEntryInstruction, getExportReportEntryInstructionDataCodec, getExportReportEntryInstructionDataDecoder, getExportReportEntryInstructionDataEncoder, getExportResourceConstraintsDiscriminatorBytes, getExportResourceConstraintsInstruction, getExportResourceConstraintsInstructionDataCodec, getExportResourceConstraintsInstructionDataDecoder, getExportResourceConstraintsInstructionDataEncoder, getExportRuleConditionDiscriminatorBytes, getExportRuleConditionInstruction, getExportRuleConditionInstructionDataCodec, getExportRuleConditionInstructionDataDecoder, getExportRuleConditionInstructionDataEncoder, getExtensionApprovedEventCodec, getExtensionApprovedEventDecoder, getExtensionApprovedEventEncoder, getExtensionCodec, getExtensionDecoder, getExtensionDiscriminatorBytes, getExtensionEncoder, getExtensionMetadataCodec, getExtensionMetadataDecoder, getExtensionMetadataEncoder, getExtensionRegisteredEventCodec, getExtensionRegisteredEventDecoder, getExtensionRegisteredEventEncoder, getExtensionStatusCodec, getExtensionStatusDecoder, getExtensionStatusEncoder, getExtensionTypeCodec, getExtensionTypeDecoder, getExtensionTypeEncoder, getFileDisputeDiscriminatorBytes, getFileDisputeInstruction, getFileDisputeInstructionAsync, getFileDisputeInstructionDataCodec, getFileDisputeInstructionDataDecoder, getFileDisputeInstructionDataEncoder, getFinalizeAuctionDiscriminatorBytes, getFinalizeAuctionInstruction, getFinalizeAuctionInstructionDataCodec, getFinalizeAuctionInstructionDataDecoder, getFinalizeAuctionInstructionDataEncoder, getGenerateComplianceReportDiscriminatorBytes, getGenerateComplianceReportInstruction, getGenerateComplianceReportInstructionAsync, getGenerateComplianceReportInstructionDataCodec, getGenerateComplianceReportInstructionDataDecoder, getGenerateComplianceReportInstructionDataEncoder, getGeographicRegionCodec, getGeographicRegionDecoder, getGeographicRegionEncoder, getGhostspeakMarketplaceErrorMessage, getGovernanceProposalCodec, getGovernanceProposalCreatedEventCodec, getGovernanceProposalCreatedEventDecoder, getGovernanceProposalCreatedEventEncoder, getGovernanceProposalDecoder, getGovernanceProposalDiscriminatorBytes, getGovernanceProposalEncoder, getHierarchicalBoundaryCodec, getHierarchicalBoundaryDecoder, getHierarchicalBoundaryEncoder, getIncentiveConfigCodec, getIncentiveConfigDecoder, getIncentiveConfigEncoder, getIncentiveDistributedEventCodec, getIncentiveDistributedEventDecoder, getIncentiveDistributedEventEncoder, getIncentiveProgramCodec, getIncentiveProgramCreatedEventCodec, getIncentiveProgramCreatedEventDecoder, getIncentiveProgramCreatedEventEncoder, getIncentiveProgramDecoder, getIncentiveProgramDiscriminatorBytes, getIncentiveProgramEncoder, getIncentiveProgramSize, getIncidentResponsePoliciesCodec, getIncidentResponsePoliciesDecoder, getIncidentResponsePoliciesEncoder, getInitializeAuditTrailDiscriminatorBytes, getInitializeAuditTrailInstruction, getInitializeAuditTrailInstructionAsync, getInitializeAuditTrailInstructionDataCodec, getInitializeAuditTrailInstructionDataDecoder, getInitializeAuditTrailInstructionDataEncoder, getInitializeGovernanceProposalDiscriminatorBytes, getInitializeGovernanceProposalInstruction, getInitializeGovernanceProposalInstructionAsync, getInitializeGovernanceProposalInstructionDataCodec, getInitializeGovernanceProposalInstructionDataDecoder, getInitializeGovernanceProposalInstructionDataEncoder, getInitializeRbacConfigDiscriminatorBytes, getInitializeRbacConfigInstruction, getInitializeRbacConfigInstructionAsync, getInitializeRbacConfigInstructionDataCodec, getInitializeRbacConfigInstructionDataDecoder, getInitializeRbacConfigInstructionDataEncoder, getInitiateNegotiationDiscriminatorBytes, getInitiateNegotiationInstruction, getInitiateNegotiationInstructionAsync, getInitiateNegotiationInstructionDataCodec, getInitiateNegotiationInstructionDataDecoder, getInitiateNegotiationInstructionDataEncoder, getJobApplicationAcceptedEventCodec, getJobApplicationAcceptedEventDecoder, getJobApplicationAcceptedEventEncoder, getJobApplicationCodec, getJobApplicationDecoder, getJobApplicationDiscriminatorBytes, getJobApplicationEncoder, getJobApplicationSubmittedEventCodec, getJobApplicationSubmittedEventDecoder, getJobApplicationSubmittedEventEncoder, getJobContractCodec, getJobContractDecoder, getJobContractDiscriminatorBytes, getJobContractEncoder, getJobContractSize, getJobPostingCodec, getJobPostingCreatedEventCodec, getJobPostingCreatedEventDecoder, getJobPostingCreatedEventEncoder, getJobPostingDecoder, getJobPostingDiscriminatorBytes, getJobPostingEncoder, getLatitudeRangeCodec, getLatitudeRangeDecoder, getLatitudeRangeEncoder, getListAgentForResaleDiscriminatorBytes, getListAgentForResaleInstruction, getListAgentForResaleInstructionAsync, getListAgentForResaleInstructionDataCodec, getListAgentForResaleInstructionDataDecoder, getListAgentForResaleInstructionDataEncoder, getLocationConstraintsCodec, getLocationConstraintsDecoder, getLocationConstraintsEncoder, getLongitudeRangeCodec, getLongitudeRangeDecoder, getLongitudeRangeEncoder, getMakeCounterOfferDiscriminatorBytes, getMakeCounterOfferInstruction, getMakeCounterOfferInstructionDataCodec, getMakeCounterOfferInstructionDataDecoder, getMakeCounterOfferInstructionDataEncoder, getManageAgentStatusDiscriminatorBytes, getManageAgentStatusInstruction, getManageAgentStatusInstructionAsync, getManageAgentStatusInstructionDataCodec, getManageAgentStatusInstructionDataDecoder, getManageAgentStatusInstructionDataEncoder, getMarketAnalyticsCodec, getMarketAnalyticsCreatedEventCodec, getMarketAnalyticsCreatedEventDecoder, getMarketAnalyticsCreatedEventEncoder, getMarketAnalyticsDecoder, getMarketAnalyticsDiscriminatorBytes, getMarketAnalyticsEncoder, getMarketAnalyticsUpdatedEventCodec, getMarketAnalyticsUpdatedEventDecoder, getMarketAnalyticsUpdatedEventEncoder, getMessageCodec, getMessageDecoder, getMessageDiscriminatorBytes, getMessageEncoder, getMessageSentEventCodec, getMessageSentEventDecoder, getMessageSentEventEncoder, getMessageTypeCodec, getMessageTypeDecoder, getMessageTypeEncoder, getMultisigCodec, getMultisigConfigCodec, getMultisigConfigDecoder, getMultisigConfigEncoder, getMultisigConfigExportCodec, getMultisigConfigExportDecoder, getMultisigConfigExportEncoder, getMultisigCreatedEventCodec, getMultisigCreatedEventDecoder, getMultisigCreatedEventEncoder, getMultisigDecoder, getMultisigDiscriminatorBytes, getMultisigEncoder, getMultisigSignatureCodec, getMultisigSignatureDecoder, getMultisigSignatureEncoder, getNegotiationChatbotCodec, getNegotiationChatbotDecoder, getNegotiationChatbotDiscriminatorBytes, getNegotiationChatbotEncoder, getNegotiationInitiatedEventCodec, getNegotiationInitiatedEventDecoder, getNegotiationInitiatedEventEncoder, getNegotiationStatusCodec, getNegotiationStatusDecoder, getNegotiationStatusEncoder, getNetworkSecurityPoliciesCodec, getNetworkSecurityPoliciesDecoder, getNetworkSecurityPoliciesEncoder, getNotificationMethodCodec, getNotificationMethodDecoder, getNotificationMethodEncoder, getNotificationPriorityCodec, getNotificationPriorityDecoder, getNotificationPriorityEncoder, getNotificationRequirementCodec, getNotificationRequirementDecoder, getNotificationRequirementEncoder, getNotificationTargetCodec, getNotificationTargetDecoder, getNotificationTargetEncoder, getNotificationTargetTypeCodec, getNotificationTargetTypeDecoder, getNotificationTargetTypeEncoder, getNotificationTimingCodec, getNotificationTimingDecoder, getNotificationTimingEncoder, getPasswordPoliciesCodec, getPasswordPoliciesDecoder, getPasswordPoliciesEncoder, getPaymentCodec, getPaymentDecoder, getPaymentDiscriminatorBytes, getPaymentEncoder, getPaymentProcessedEventCodec, getPaymentProcessedEventDecoder, getPaymentProcessedEventEncoder, getPendingTransactionCodec, getPendingTransactionDecoder, getPendingTransactionEncoder, getPermissionCodec, getPermissionConstraintCodec, getPermissionConstraintDecoder, getPermissionConstraintEncoder, getPermissionConstraintTypeCodec, getPermissionConstraintTypeDecoder, getPermissionConstraintTypeEncoder, getPermissionDecoder, getPermissionEncoder, getPermissionMetadataCodec, getPermissionMetadataDecoder, getPermissionMetadataEncoder, getPermissionScopeCodec, getPermissionScopeDecoder, getPermissionScopeEncoder, getPlaceAuctionBidDiscriminatorBytes, getPlaceAuctionBidInstruction, getPlaceAuctionBidInstructionDataCodec, getPlaceAuctionBidInstructionDataDecoder, getPlaceAuctionBidInstructionDataEncoder, getPolicyMetadataCodec, getPolicyMetadataDecoder, getPolicyMetadataEncoder, getPolicyRuleCodec, getPolicyRuleDecoder, getPolicyRuleEncoder, getPolicyScopeCodec, getPolicyScopeDecoder, getPolicyScopeEncoder, getPolicyStatusCodec, getPolicyStatusDecoder, getPolicyStatusEncoder, getPolicyTypeCodec, getPolicyTypeDecoder, getPolicyTypeEncoder, getPricingAlgorithmCodec, getPricingAlgorithmDecoder, getPricingAlgorithmEncoder, getPricingModelCodec, getPricingModelDecoder, getPricingModelEncoder, getProcessPaymentDiscriminatorBytes, getProcessPaymentInstruction, getProcessPaymentInstructionAsync, getProcessPaymentInstructionDataCodec, getProcessPaymentInstructionDataDecoder, getProcessPaymentInstructionDataEncoder, getProposalAccountCodec, getProposalAccountDecoder, getProposalAccountEncoder, getProposalInstructionCodec, getProposalInstructionDecoder, getProposalInstructionEncoder, getProposalMetadataCodec, getProposalMetadataDecoder, getProposalMetadataEncoder, getProposalStatusCodec, getProposalStatusDecoder, getProposalStatusEncoder, getProposalTypeCodec, getProposalTypeDecoder, getProposalTypeEncoder, getPurchaseServiceDiscriminatorBytes, getPurchaseServiceInstruction, getPurchaseServiceInstructionAsync, getPurchaseServiceInstructionDataCodec, getPurchaseServiceInstructionDataDecoder, getPurchaseServiceInstructionDataEncoder, getPurchaseStatusCodec, getPurchaseStatusDecoder, getPurchaseStatusEncoder, getQuorumMethodCodec, getQuorumMethodDecoder, getQuorumMethodEncoder, getQuorumRequirementsCodec, getQuorumRequirementsDecoder, getQuorumRequirementsEncoder, getRbacConfigCodec, getRbacConfigDecoder, getRbacConfigDiscriminatorBytes, getRbacConfigEncoder, getRbacConfigInitializedEventCodec, getRbacConfigInitializedEventDecoder, getRbacConfigInitializedEventEncoder, getRegisterAgentCompressedDiscriminatorBytes, getRegisterAgentCompressedInstruction, getRegisterAgentCompressedInstructionAsync, getRegisterAgentCompressedInstructionDataCodec, getRegisterAgentCompressedInstructionDataDecoder, getRegisterAgentCompressedInstructionDataEncoder, getRegisterAgentDiscriminatorBytes, getRegisterAgentInstruction, getRegisterAgentInstructionAsync, getRegisterAgentInstructionDataCodec, getRegisterAgentInstructionDataDecoder, getRegisterAgentInstructionDataEncoder, getRegisterExtensionDiscriminatorBytes, getRegisterExtensionInstruction, getRegisterExtensionInstructionAsync, getRegisterExtensionInstructionDataCodec, getRegisterExtensionInstructionDataDecoder, getRegisterExtensionInstructionDataEncoder, getReplicateAgentDiscriminatorBytes, getReplicateAgentInstruction, getReplicateAgentInstructionAsync, getReplicateAgentInstructionDataCodec, getReplicateAgentInstructionDataDecoder, getReplicateAgentInstructionDataEncoder, getReplicationRecordCodec, getReplicationRecordDecoder, getReplicationRecordDiscriminatorBytes, getReplicationRecordEncoder, getReplicationTemplateCodec, getReplicationTemplateCreatedEventCodec, getReplicationTemplateCreatedEventDecoder, getReplicationTemplateCreatedEventEncoder, getReplicationTemplateDecoder, getReplicationTemplateDiscriminatorBytes, getReplicationTemplateEncoder, getReportDataCodec, getReportDataDecoder, getReportDataEncoder, getReportEntryCodec, getReportEntryDecoder, getReportEntryEncoder, getReportEntryExportCodec, getReportEntryExportDecoder, getReportEntryExportEncoder, getReportStatusCodec, getReportStatusDecoder, getReportStatusEncoder, getReportSummaryCodec, getReportSummaryDecoder, getReportSummaryEncoder, getReportTypeCodec, getReportTypeDecoder, getReportTypeEncoder, getReportingFrequencyCodec, getReportingFrequencyDecoder, getReportingFrequencyEncoder, getResaleMarketCodec, getResaleMarketDecoder, getResaleMarketDiscriminatorBytes, getResaleMarketEncoder, getResolveDisputeDiscriminatorBytes, getResolveDisputeInstruction, getResolveDisputeInstructionAsync, getResolveDisputeInstructionDataCodec, getResolveDisputeInstructionDataDecoder, getResolveDisputeInstructionDataEncoder, getResourceConstraintsCodec, getResourceConstraintsDecoder, getResourceConstraintsEncoder, getResourceConstraintsExportCodec, getResourceConstraintsExportDecoder, getResourceConstraintsExportEncoder, getReviewScheduleCodec, getReviewScheduleDecoder, getReviewScheduleEncoder, getRiskAcceptanceCodec, getRiskAcceptanceDecoder, getRiskAcceptanceEncoder, getRiskAssessmentCodec, getRiskAssessmentDecoder, getRiskAssessmentEncoder, getRiskCategoryCodec, getRiskCategoryDecoder, getRiskCategoryEncoder, getRiskFactorCodec, getRiskFactorDecoder, getRiskFactorEncoder, getRiskIndicatorCodec, getRiskIndicatorDecoder, getRiskIndicatorEncoder, getRiskLevelCodec, getRiskLevelDecoder, getRiskLevelEncoder, getRoleCodec, getRoleConstraintsCodec, getRoleConstraintsDecoder, getRoleConstraintsEncoder, getRoleDecoder, getRoleEncoder, getRoleMetadataCodec, getRoleMetadataDecoder, getRoleMetadataEncoder, getRoleStatusCodec, getRoleStatusDecoder, getRoleStatusEncoder, getRoleTypeCodec, getRoleTypeDecoder, getRoleTypeEncoder, getRoyaltyConfigCodec, getRoyaltyConfigDecoder, getRoyaltyConfigEncoder, getRoyaltyStreamCodec, getRoyaltyStreamCreatedEventCodec, getRoyaltyStreamCreatedEventDecoder, getRoyaltyStreamCreatedEventEncoder, getRoyaltyStreamDecoder, getRoyaltyStreamDiscriminatorBytes, getRoyaltyStreamEncoder, getRoyaltyStreamSize, getRuleConditionCodec, getRuleConditionDecoder, getRuleConditionEncoder, getRuleConditionExportCodec, getRuleConditionExportDecoder, getRuleConditionExportEncoder, getRuleEffectCodec, getRuleEffectDecoder, getRuleEffectEncoder, getScopeBoundariesCodec, getScopeBoundariesDecoder, getScopeBoundariesEncoder, getScopeInheritanceCodec, getScopeInheritanceDecoder, getScopeInheritanceEncoder, getScopeTypeCodec, getScopeTypeDecoder, getScopeTypeEncoder, getSecurityEventTypeCodec, getSecurityEventTypeDecoder, getSecurityEventTypeEncoder, getSecurityPoliciesCodec, getSecurityPoliciesDecoder, getSecurityPoliciesEncoder, getSendA2aMessageDiscriminatorBytes, getSendA2aMessageInstruction, getSendA2aMessageInstructionDataCodec, getSendA2aMessageInstructionDataDecoder, getSendA2aMessageInstructionDataEncoder, getSendMessageDiscriminatorBytes, getSendMessageInstruction, getSendMessageInstructionDataCodec, getSendMessageInstructionDataDecoder, getSendMessageInstructionDataEncoder, getServiceAuctionCreatedEventCodec, getServiceAuctionCreatedEventDecoder, getServiceAuctionCreatedEventEncoder, getServiceListingCodec, getServiceListingCreatedEventCodec, getServiceListingCreatedEventDecoder, getServiceListingCreatedEventEncoder, getServiceListingDecoder, getServiceListingDiscriminatorBytes, getServiceListingEncoder, getServicePurchaseCodec, getServicePurchaseDecoder, getServicePurchaseDiscriminatorBytes, getServicePurchaseEncoder, getServicePurchasedEventCodec, getServicePurchasedEventDecoder, getServicePurchasedEventEncoder, getSessionConstraintsCodec, getSessionConstraintsDecoder, getSessionConstraintsEncoder, getSessionPoliciesCodec, getSessionPoliciesDecoder, getSessionPoliciesEncoder, getSodConstraintCodec, getSodConstraintDecoder, getSodConstraintEncoder, getSodConstraintTypeCodec, getSodConstraintTypeDecoder, getSodConstraintTypeEncoder, getStepUpTriggerCodec, getStepUpTriggerDecoder, getStepUpTriggerEncoder, getSubmissionDetailsCodec, getSubmissionDetailsDecoder, getSubmissionDetailsEncoder, getSubmitDisputeEvidenceDiscriminatorBytes, getSubmitDisputeEvidenceInstruction, getSubmitDisputeEvidenceInstructionAsync, getSubmitDisputeEvidenceInstructionDataCodec, getSubmitDisputeEvidenceInstructionDataDecoder, getSubmitDisputeEvidenceInstructionDataEncoder, getSubmitWorkDeliveryDiscriminatorBytes, getSubmitWorkDeliveryInstruction, getSubmitWorkDeliveryInstructionAsync, getSubmitWorkDeliveryInstructionDataCodec, getSubmitWorkDeliveryInstructionDataDecoder, getSubmitWorkDeliveryInstructionDataEncoder, getTimeConstraintsCodec, getTimeConstraintsDecoder, getTimeConstraintsEncoder, getTimeLockCodec, getTimeLockDecoder, getTimeLockEncoder, getTimeLockTypeCodec, getTimeLockTypeDecoder, getTimeLockTypeEncoder, getTopAgentAddedEventCodec, getTopAgentAddedEventDecoder, getTopAgentAddedEventEncoder, getTransactionPriorityCodec, getTransactionPriorityDecoder, getTransactionPriorityEncoder, getTransactionStatusCodec, getTransactionStatusDecoder, getTransactionStatusEncoder, getTransactionTypeCodec, getTransactionTypeDecoder, getTransactionTypeEncoder, getTrendDirectionCodec, getTrendDirectionDecoder, getTrendDirectionEncoder, getUnlockMethodCodec, getUnlockMethodDecoder, getUnlockMethodEncoder, getUpdateA2aStatusDiscriminatorBytes, getUpdateA2aStatusInstruction, getUpdateA2aStatusInstructionAsync, getUpdateA2aStatusInstructionDataCodec, getUpdateA2aStatusInstructionDataDecoder, getUpdateA2aStatusInstructionDataEncoder, getUpdateAgentDiscriminatorBytes, getUpdateAgentInstruction, getUpdateAgentInstructionAsync, getUpdateAgentInstructionDataCodec, getUpdateAgentInstructionDataDecoder, getUpdateAgentInstructionDataEncoder, getUpdateAgentReputationDiscriminatorBytes, getUpdateAgentReputationInstruction, getUpdateAgentReputationInstructionAsync, getUpdateAgentReputationInstructionDataCodec, getUpdateAgentReputationInstructionDataDecoder, getUpdateAgentReputationInstructionDataEncoder, getUpdateAgentServiceDiscriminatorBytes, getUpdateAgentServiceInstruction, getUpdateAgentServiceInstructionAsync, getUpdateAgentServiceInstructionDataCodec, getUpdateAgentServiceInstructionDataDecoder, getUpdateAgentServiceInstructionDataEncoder, getUpdateAnalyticsDashboardDiscriminatorBytes, getUpdateAnalyticsDashboardInstruction, getUpdateAnalyticsDashboardInstructionAsync, getUpdateAnalyticsDashboardInstructionDataCodec, getUpdateAnalyticsDashboardInstructionDataDecoder, getUpdateAnalyticsDashboardInstructionDataEncoder, getUpdateDynamicPricingDiscriminatorBytes, getUpdateDynamicPricingInstruction, getUpdateDynamicPricingInstructionDataCodec, getUpdateDynamicPricingInstructionDataDecoder, getUpdateDynamicPricingInstructionDataEncoder, getUpdateMarketAnalyticsDiscriminatorBytes, getUpdateMarketAnalyticsInstruction, getUpdateMarketAnalyticsInstructionDataCodec, getUpdateMarketAnalyticsInstructionDataDecoder, getUpdateMarketAnalyticsInstructionDataEncoder, getUserRegistryCodec, getUserRegistryDecoder, getUserRegistryDiscriminatorBytes, getUserRegistryEncoder, getUserRegistrySize, getValueTypeCodec, getValueTypeDecoder, getValueTypeEncoder, getVerifyAgentDiscriminatorBytes, getVerifyAgentInstruction, getVerifyAgentInstructionAsync, getVerifyAgentInstructionDataCodec, getVerifyAgentInstructionDataDecoder, getVerifyAgentInstructionDataEncoder, getViolationSeverityCodec, getViolationSeverityDecoder, getViolationSeverityEncoder, getVolumeTierCodec, getVolumeTierDecoder, getVolumeTierEncoder, getVoteChoiceCodec, getVoteChoiceDecoder, getVoteChoiceEncoder, getVoteCodec, getVoteDecoder, getVoteEncoder, getVotingResultsCodec, getVotingResultsDecoder, getVotingResultsEncoder, getWorkDeliveryCodec, getWorkDeliveryDecoder, getWorkDeliveryDiscriminatorBytes, getWorkDeliveryEncoder, getWorkDeliverySubmittedEventCodec, getWorkDeliverySubmittedEventDecoder, getWorkDeliverySubmittedEventEncoder, getWorkOrderCodec, getWorkOrderCreatedEventCodec, getWorkOrderCreatedEventDecoder, getWorkOrderCreatedEventEncoder, getWorkOrderDecoder, getWorkOrderDiscriminatorBytes, getWorkOrderEncoder, getWorkOrderStatusCodec, getWorkOrderStatusDecoder, getWorkOrderStatusEncoder, identifyGhostspeakMarketplaceAccount, identifyGhostspeakMarketplaceInstruction, isDelegationScope, isGhostspeakMarketplaceError, parseAcceptJobApplicationInstruction, parseActivateAgentInstruction, parseAddTopAgentInstruction, parseApplyToJobInstruction, parseApproveExtensionInstruction, parseCreateA2aSessionInstruction, parseCreateAnalyticsDashboardInstruction, parseCreateBulkDealInstruction, parseCreateChannelInstruction, parseCreateDynamicPricingEngineInstruction, parseCreateIncentiveProgramInstruction, parseCreateJobPostingInstruction, parseCreateMarketAnalyticsInstruction, parseCreateMultisigInstruction, parseCreateReplicationTemplateInstruction, parseCreateRoyaltyStreamInstruction, parseCreateServiceAuctionInstruction, parseCreateServiceListingInstruction, parseCreateWorkOrderInstruction, parseDeactivateAgentInstruction, parseDistributeIncentivesInstruction, parseExecuteBulkDealBatchInstruction, parseExportActionInstruction, parseExportAuditContextInstruction, parseExportBiometricQualityInstruction, parseExportComplianceStatusInstruction, parseExportDynamicPricingConfigInstruction, parseExportMultisigConfigInstruction, parseExportReportEntryInstruction, parseExportResourceConstraintsInstruction, parseExportRuleConditionInstruction, parseFileDisputeInstruction, parseFinalizeAuctionInstruction, parseGenerateComplianceReportInstruction, parseInitializeAuditTrailInstruction, parseInitializeGovernanceProposalInstruction, parseInitializeRbacConfigInstruction, parseInitiateNegotiationInstruction, parseListAgentForResaleInstruction, parseMakeCounterOfferInstruction, parseManageAgentStatusInstruction, parsePlaceAuctionBidInstruction, parseProcessPaymentInstruction, parsePurchaseServiceInstruction, parseRegisterAgentCompressedInstruction, parseRegisterAgentInstruction, parseRegisterExtensionInstruction, parseReplicateAgentInstruction, parseResolveDisputeInstruction, parseSendA2aMessageInstruction, parseSendMessageInstruction, parseSubmitDisputeEvidenceInstruction, parseSubmitWorkDeliveryInstruction, parseUpdateA2aStatusInstruction, parseUpdateAgentInstruction, parseUpdateAgentReputationInstruction, parseUpdateAgentServiceInstruction, parseUpdateAnalyticsDashboardInstruction, parseUpdateDynamicPricingInstruction, parseUpdateMarketAnalyticsInstruction, parseVerifyAgentInstruction, serializeString, serializeVec };
24729
+ export { A2AInstructions, A2_A_MESSAGE_DISCRIMINATOR, A2_A_SESSION_DISCRIMINATOR, A2_A_STATUS_DISCRIMINATOR, ACCEPT_JOB_APPLICATION_DISCRIMINATOR, ACTIVATE_AGENT_DISCRIMINATOR, ADD_TOP_AGENT_DISCRIMINATOR, AGENT_DISCRIMINATOR, AGENT_INCENTIVES_DISCRIMINATOR, AGENT_TREE_CONFIG_DISCRIMINATOR, AGENT_VERIFICATION_DISCRIMINATOR, ANALYTICS_DASHBOARD_DISCRIMINATOR, APPLY_TO_JOB_DISCRIMINATOR, APPROVE_EXTENSION_DISCRIMINATOR, ARBITRATOR_REGISTRY_DISCRIMINATOR, AUCTION_MARKETPLACE_DISCRIMINATOR, AUDIT_TRAIL_DISCRIMINATOR, ActivationRequirementType, AgentInstructions, AnalyticsInstructions, ApplicationStatus, AuctionInstructions, AuctionStatus, AuctionType, AuditAction, AuthenticationLevel, AuthenticationMethod, BULK_DEAL_DISCRIMINATOR, BackupFrequency, BiometricStorageMethod, BiometricType, BulkDealsInstructions, CHANNEL_DISCRIMINATOR, COMPLIANCE_REPORT_DISCRIMINATOR, CREATE_A2A_SESSION_DISCRIMINATOR, CREATE_ANALYTICS_DASHBOARD_DISCRIMINATOR, CREATE_BULK_DEAL_DISCRIMINATOR, CREATE_CHANNEL_DISCRIMINATOR, CREATE_DYNAMIC_PRICING_ENGINE_DISCRIMINATOR, CREATE_INCENTIVE_PROGRAM_DISCRIMINATOR, CREATE_JOB_POSTING_DISCRIMINATOR, CREATE_MARKET_ANALYTICS_DISCRIMINATOR, CREATE_MULTISIG_DISCRIMINATOR, CREATE_REPLICATION_TEMPLATE_DISCRIMINATOR, CREATE_ROYALTY_STREAM_DISCRIMINATOR, CREATE_SERVICE_AUCTION_DISCRIMINATOR, CREATE_SERVICE_LISTING_DISCRIMINATOR, CREATE_WORK_ORDER_DISCRIMINATOR, ChannelType, ComplianceInstructions, ConditionType, ConstraintOperator, ContractStatus, DEACTIVATE_AGENT_DISCRIMINATOR, DISPUTE_CASE_DISCRIMINATOR, DISTRIBUTE_INCENTIVES_DISCRIMINATOR, DYNAMIC_PRICING_ENGINE_DISCRIMINATOR, DataAccessLevel, DealType, DegradationHandling, Deliverable, DisputeInstructions, DisputeStatus, EXECUTE_BULK_DEAL_BATCH_DISCRIMINATOR, EXPORT_ACTION_DISCRIMINATOR, EXPORT_AUDIT_CONTEXT_DISCRIMINATOR, EXPORT_BIOMETRIC_QUALITY_DISCRIMINATOR, EXPORT_COMPLIANCE_STATUS_DISCRIMINATOR, EXPORT_DYNAMIC_PRICING_CONFIG_DISCRIMINATOR, EXPORT_MULTISIG_CONFIG_DISCRIMINATOR, EXPORT_REPORT_ENTRY_DISCRIMINATOR, EXPORT_RESOURCE_CONSTRAINTS_DISCRIMINATOR, EXPORT_RULE_CONDITION_DISCRIMINATOR, EXTENSION_DISCRIMINATOR, EnforcementLevel, EscrowInstructions, ExtensionStatus, ExtensionType, FILE_DISPUTE_DISCRIMINATOR, FINALIZE_AUCTION_DISCRIMINATOR, GENERATE_COMPLIANCE_REPORT_DISCRIMINATOR, GHOSTSPEAK_MARKETPLACE_ERROR__ACCESS_DENIED, GHOSTSPEAK_MARKETPLACE_ERROR__ACCOUNT_ALREADY_INITIALIZED, GHOSTSPEAK_MARKETPLACE_ERROR__ACCOUNT_NOT_INITIALIZED, GHOSTSPEAK_MARKETPLACE_ERROR__AGENT_ALREADY_ACTIVE, GHOSTSPEAK_MARKETPLACE_ERROR__AGENT_ALREADY_REGISTERED, GHOSTSPEAK_MARKETPLACE_ERROR__AGENT_NOT_ACTIVE, GHOSTSPEAK_MARKETPLACE_ERROR__AGENT_NOT_FOUND, GHOSTSPEAK_MARKETPLACE_ERROR__ALREADY_VOTED, GHOSTSPEAK_MARKETPLACE_ERROR__ANALYTICS_NOT_ENABLED, GHOSTSPEAK_MARKETPLACE_ERROR__APPLICATION_ALREADY_PROCESSED, GHOSTSPEAK_MARKETPLACE_ERROR__APPLICATION_NOT_FOUND, GHOSTSPEAK_MARKETPLACE_ERROR__ARITHMETIC_OVERFLOW, GHOSTSPEAK_MARKETPLACE_ERROR__ARITHMETIC_UNDERFLOW, GHOSTSPEAK_MARKETPLACE_ERROR__AUCTION_ALREADY_ENDED, GHOSTSPEAK_MARKETPLACE_ERROR__AUCTION_DURATION_TOO_LONG, GHOSTSPEAK_MARKETPLACE_ERROR__AUCTION_DURATION_TOO_SHORT, GHOSTSPEAK_MARKETPLACE_ERROR__AUCTION_ENDED, GHOSTSPEAK_MARKETPLACE_ERROR__AUCTION_NOT_ACTIVE, GHOSTSPEAK_MARKETPLACE_ERROR__AUCTION_NOT_ENDED, GHOSTSPEAK_MARKETPLACE_ERROR__BID_INCREMENT_TOO_LOW, GHOSTSPEAK_MARKETPLACE_ERROR__BID_TOO_LOW, GHOSTSPEAK_MARKETPLACE_ERROR__BULK_DEAL_NOT_FOUND, GHOSTSPEAK_MARKETPLACE_ERROR__CANNOT_CANCEL_AUCTION_WITH_BIDS, GHOSTSPEAK_MARKETPLACE_ERROR__CAPABILITY_TOO_LONG, GHOSTSPEAK_MARKETPLACE_ERROR__CHANNEL_ALREADY_EXISTS, GHOSTSPEAK_MARKETPLACE_ERROR__CHANNEL_NOT_FOUND, GHOSTSPEAK_MARKETPLACE_ERROR__COMPLETION_PROOF_TOO_LONG, GHOSTSPEAK_MARKETPLACE_ERROR__COMPLIANCE_CHECK_FAILED, GHOSTSPEAK_MARKETPLACE_ERROR__COMPUTE_BUDGET_EXCEEDED, GHOSTSPEAK_MARKETPLACE_ERROR__DATA_CORRUPTION_DETECTED, GHOSTSPEAK_MARKETPLACE_ERROR__DEADLINE_PASSED, GHOSTSPEAK_MARKETPLACE_ERROR__DEAL_ALREADY_FINALIZED, GHOSTSPEAK_MARKETPLACE_ERROR__DEAL_EXPIRED, GHOSTSPEAK_MARKETPLACE_ERROR__DEAL_FULL, GHOSTSPEAK_MARKETPLACE_ERROR__DEAL_NOT_ACTIVE, GHOSTSPEAK_MARKETPLACE_ERROR__DESCRIPTION_TOO_LONG, GHOSTSPEAK_MARKETPLACE_ERROR__DISPUTE_ALREADY_RESOLVED, GHOSTSPEAK_MARKETPLACE_ERROR__DISPUTE_CASE_NOT_FOUND, GHOSTSPEAK_MARKETPLACE_ERROR__DISPUTE_DETAILS_TOO_LONG, GHOSTSPEAK_MARKETPLACE_ERROR__DISPUTE_REASON_TOO_LONG, GHOSTSPEAK_MARKETPLACE_ERROR__DISPUTE_WINDOW_EXPIRED, GHOSTSPEAK_MARKETPLACE_ERROR__DIVISION_BY_ZERO, GHOSTSPEAK_MARKETPLACE_ERROR__ESCROW_ALREADY_RELEASED, GHOSTSPEAK_MARKETPLACE_ERROR__ESCROW_NOT_FOUND, GHOSTSPEAK_MARKETPLACE_ERROR__EVIDENCE_WINDOW_EXPIRED, GHOSTSPEAK_MARKETPLACE_ERROR__EXTENSION_ALREADY_ENABLED, GHOSTSPEAK_MARKETPLACE_ERROR__EXTENSION_NOT_FOUND, GHOSTSPEAK_MARKETPLACE_ERROR__FEATURE_NOT_ENABLED, GHOSTSPEAK_MARKETPLACE_ERROR__GOVERNANCE_PROPOSAL_INVALID, GHOSTSPEAK_MARKETPLACE_ERROR__INCENTIVE_POOL_EXHAUSTED, GHOSTSPEAK_MARKETPLACE_ERROR__INPUT_TOO_LONG, GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_BALANCE, GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_FUNDS, GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_PARTICIPANTS, GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_VOTING_POWER, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_A2_A_PROTOCOL_MESSAGE, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_ACCOUNT_OWNER, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_AGENT_OWNER, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_AGENT_STATUS, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_AMOUNT, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_APPLICATION_STATUS, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_BID, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_CHANNEL_CONFIGURATION, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_CONFIGURATION, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_CONTRACT_STATUS, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_DEADLINE, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_DEAL_STATUS, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_DELIVERY_STATUS, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_DISCOUNT_PERCENTAGE, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_DISPUTE_STATUS, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_DURATION, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_ESCROW_AMOUNT, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_ESCROW_STATUS, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_EXPIRATION, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_EXTENSION_CONFIGURATION, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_EXTENSION_STATUS, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_GENOME_HASH, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_INCENTIVE_CONFIGURATION, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_INPUT_FORMAT, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_INPUT_LENGTH, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_JOB_STATUS, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_MAX_PARTICIPANTS, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_MESSAGE_STATUS, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_METADATA_URI, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_METRICS_DATA, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_MIN_PARTICIPANTS, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_NEGOTIATION_STATUS, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_OFFER, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_OFFER_AMOUNT, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_PARAMETER, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_PARTICIPANT_COUNT, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_PAYMENT_AMOUNT, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_PERCENTAGE, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_PERIOD, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_PRICE_CONFIGURATION, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_PRICE_RANGE, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_RATING, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_REPLICATION_CONFIG, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_REPORT_DATA, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_REPORT_STATUS, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_REPUTATION_SCORE, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_ROYALTY_PERCENTAGE, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_SERVICE_CONFIGURATION, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_SERVICE_ENDPOINT, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_SERVICE_TYPE, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_STARTING_PRICE, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_STATE_TRANSITION, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_STATUS_TRANSITION, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_TASK_CONFIGURATION, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_TASK_STATUS, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_TRANSACTION_STATUS, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_VALUE, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_VOLUME, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_VOLUME_TIER, GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_WORK_ORDER_STATUS, GHOSTSPEAK_MARKETPLACE_ERROR__IPFS_HASH_TOO_LONG, GHOSTSPEAK_MARKETPLACE_ERROR__JOB_ALREADY_FILLED, GHOSTSPEAK_MARKETPLACE_ERROR__JOB_NOT_ACTIVE, GHOSTSPEAK_MARKETPLACE_ERROR__LISTING_ALREADY_ACTIVE, GHOSTSPEAK_MARKETPLACE_ERROR__LISTING_NOT_ACTIVE, GHOSTSPEAK_MARKETPLACE_ERROR__MAINTENANCE_MODE_ACTIVE, GHOSTSPEAK_MARKETPLACE_ERROR__MAXIMUM_RETRIES_EXCEEDED, GHOSTSPEAK_MARKETPLACE_ERROR__MESSAGE_NOT_FOUND, GHOSTSPEAK_MARKETPLACE_ERROR__MESSAGE_TOO_LONG, GHOSTSPEAK_MARKETPLACE_ERROR__METADATA_URI_TOO_LONG, GHOSTSPEAK_MARKETPLACE_ERROR__METRICS_TOO_LONG, GHOSTSPEAK_MARKETPLACE_ERROR__NAME_TOO_LONG, GHOSTSPEAK_MARKETPLACE_ERROR__NEGOTIATION_EXPIRED, GHOSTSPEAK_MARKETPLACE_ERROR__NEGOTIATION_NOT_FOUND, GHOSTSPEAK_MARKETPLACE_ERROR__NO_DELIVERABLES, GHOSTSPEAK_MARKETPLACE_ERROR__NO_PARTICIPANTS, GHOSTSPEAK_MARKETPLACE_ERROR__OPERATION_NOT_SUPPORTED, GHOSTSPEAK_MARKETPLACE_ERROR__OPERATION_TIMED_OUT, GHOSTSPEAK_MARKETPLACE_ERROR__OVERLAPPING_VOLUME_TIERS, GHOSTSPEAK_MARKETPLACE_ERROR__PAYMENT_ALREADY_PROCESSED, GHOSTSPEAK_MARKETPLACE_ERROR__PRICE_MODEL_NOT_SUPPORTED, GHOSTSPEAK_MARKETPLACE_ERROR__PROTOCOL_VERSION_MISMATCH, GHOSTSPEAK_MARKETPLACE_ERROR__RATE_LIMIT_EXCEEDED, GHOSTSPEAK_MARKETPLACE_ERROR__REPLICATION_NOT_ALLOWED, GHOSTSPEAK_MARKETPLACE_ERROR__REPORT_NOT_FOUND, GHOSTSPEAK_MARKETPLACE_ERROR__REQUIREMENT_TOO_LONG, GHOSTSPEAK_MARKETPLACE_ERROR__RESOLUTION_NOTES_TOO_LONG, GHOSTSPEAK_MARKETPLACE_ERROR__RESOURCE_LOCKED, GHOSTSPEAK_MARKETPLACE_ERROR__ROYALTY_CONFIGURATION_INVALID, GHOSTSPEAK_MARKETPLACE_ERROR__SERVICE_NOT_ACTIVE, GHOSTSPEAK_MARKETPLACE_ERROR__SERVICE_NOT_FOUND, GHOSTSPEAK_MARKETPLACE_ERROR__SIGNATURE_VERIFICATION_FAILED, GHOSTSPEAK_MARKETPLACE_ERROR__STRING_TOO_LONG, GHOSTSPEAK_MARKETPLACE_ERROR__TASK_ALREADY_COMPLETED, GHOSTSPEAK_MARKETPLACE_ERROR__TASK_DEADLINE_EXCEEDED, GHOSTSPEAK_MARKETPLACE_ERROR__TASK_ID_TOO_LONG, GHOSTSPEAK_MARKETPLACE_ERROR__TASK_NOT_FOUND, GHOSTSPEAK_MARKETPLACE_ERROR__TERM_TOO_LONG, GHOSTSPEAK_MARKETPLACE_ERROR__TITLE_TOO_LONG, GHOSTSPEAK_MARKETPLACE_ERROR__TOKEN_TRANSFER_FAILED, GHOSTSPEAK_MARKETPLACE_ERROR__TOO_MANY_AUDIT_ENTRIES, GHOSTSPEAK_MARKETPLACE_ERROR__TOO_MANY_BIDS, GHOSTSPEAK_MARKETPLACE_ERROR__TOO_MANY_CAPABILITIES, GHOSTSPEAK_MARKETPLACE_ERROR__TOO_MANY_COUNTER_OFFERS, GHOSTSPEAK_MARKETPLACE_ERROR__TOO_MANY_DELIVERABLES, GHOSTSPEAK_MARKETPLACE_ERROR__TOO_MANY_EVIDENCE_ITEMS, GHOSTSPEAK_MARKETPLACE_ERROR__TOO_MANY_EVIDENCE_SUBMISSIONS, GHOSTSPEAK_MARKETPLACE_ERROR__TOO_MANY_REQUIREMENTS, GHOSTSPEAK_MARKETPLACE_ERROR__TOO_MANY_TERMS, GHOSTSPEAK_MARKETPLACE_ERROR__TOO_MANY_TOP_AGENTS, GHOSTSPEAK_MARKETPLACE_ERROR__TOO_MANY_VOLUME_TIERS, GHOSTSPEAK_MARKETPLACE_ERROR__UNAUTHORIZED_ACCESS, GHOSTSPEAK_MARKETPLACE_ERROR__UNAUTHORIZED_ARBITRATOR, GHOSTSPEAK_MARKETPLACE_ERROR__UPDATE_FREQUENCY_TOO_HIGH, GHOSTSPEAK_MARKETPLACE_ERROR__VALUE_BELOW_MINIMUM, GHOSTSPEAK_MARKETPLACE_ERROR__VALUE_EXCEEDS_MAXIMUM, GHOSTSPEAK_MARKETPLACE_ERROR__VOTING_PERIOD_ENDED, GHOSTSPEAK_MARKETPLACE_ERROR__WORK_ORDER_ALREADY_EXISTS, GHOSTSPEAK_MARKETPLACE_ERROR__WORK_ORDER_NOT_FOUND, GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS, GHOSTSPEAK_PROGRAM_ID, GOVERNANCE_PROPOSAL_DISCRIMINATOR, GhostSpeakClient, GhostspeakMarketplaceAccount, GhostspeakMarketplaceInstruction, GovernanceInstructions, INCENTIVE_PROGRAM_DISCRIMINATOR, INITIALIZE_AUDIT_TRAIL_DISCRIMINATOR, INITIALIZE_GOVERNANCE_PROPOSAL_DISCRIMINATOR, INITIALIZE_RBAC_CONFIG_DISCRIMINATOR, INITIATE_NEGOTIATION_DISCRIMINATOR, JOB_APPLICATION_DISCRIMINATOR, JOB_CONTRACT_DISCRIMINATOR, JOB_POSTING_DISCRIMINATOR, LIST_AGENT_FOR_RESALE_DISCRIMINATOR, MAKE_COUNTER_OFFER_DISCRIMINATOR, MANAGE_AGENT_STATUS_DISCRIMINATOR, MARKET_ANALYTICS_DISCRIMINATOR, MESSAGE_DISCRIMINATOR, MULTISIG_DISCRIMINATOR, MarketplaceInstructions, MessageType, NEGOTIATION_CHATBOT_DISCRIMINATOR, NegotiationStatus, NotificationMethod, NotificationPriority, NotificationTargetType, NotificationTiming, PAYMENT_DISCRIMINATOR, PLACE_AUCTION_BID_DISCRIMINATOR, PROCESS_PAYMENT_DISCRIMINATOR, PURCHASE_SERVICE_DISCRIMINATOR, PermissionConstraintType, PolicyStatus, PolicyType, PricingAlgorithm, PricingModel, ProposalStatus, ProposalType, PurchaseStatus, QuorumMethod, RBAC_CONFIG_DISCRIMINATOR, REGISTER_AGENT_COMPRESSED_DISCRIMINATOR, REGISTER_AGENT_DISCRIMINATOR, REGISTER_EXTENSION_DISCRIMINATOR, REPLICATE_AGENT_DISCRIMINATOR, REPLICATION_RECORD_DISCRIMINATOR, REPLICATION_TEMPLATE_DISCRIMINATOR, RESALE_MARKET_DISCRIMINATOR, RESOLVE_DISPUTE_DISCRIMINATOR, ROYALTY_STREAM_DISCRIMINATOR, ReportStatus, ReportType, ReportingFrequency, RiskCategory, RiskLevel, RoleStatus, RoleType, RuleEffect, SEND_A2A_MESSAGE_DISCRIMINATOR, SEND_MESSAGE_DISCRIMINATOR, SERVICE_LISTING_DISCRIMINATOR, SERVICE_PURCHASE_DISCRIMINATOR, SUBMIT_DISPUTE_EVIDENCE_DISCRIMINATOR, SUBMIT_WORK_DELIVERY_DISCRIMINATOR, ScopeInheritance, ScopeType, SecurityEventType, SodConstraintType, StepUpTrigger, TimeLockType, TransactionPriority, TransactionStatus, TransactionType, TrendDirection, UPDATE_A2A_STATUS_DISCRIMINATOR, UPDATE_AGENT_DISCRIMINATOR, UPDATE_AGENT_REPUTATION_DISCRIMINATOR, UPDATE_AGENT_SERVICE_DISCRIMINATOR, UPDATE_ANALYTICS_DASHBOARD_DISCRIMINATOR, UPDATE_DYNAMIC_PRICING_DISCRIMINATOR, UPDATE_MARKET_ANALYTICS_DISCRIMINATOR, USER_REGISTRY_DISCRIMINATOR, UnlockMethod, VERIFY_AGENT_DISCRIMINATOR, ValueType, ViolationSeverity, VoteChoice, WORK_DELIVERY_DISCRIMINATOR, WORK_ORDER_DISCRIMINATOR, WorkOrderStatus, decodeA2AMessage, decodeA2ASession, decodeA2AStatus, decodeAgent, decodeAgentIncentives, decodeAgentTreeConfig, decodeAgentVerification, decodeAnalyticsDashboard, decodeArbitratorRegistry, decodeAuctionMarketplace, decodeAuditTrail, decodeBulkDeal, decodeChannel, decodeComplianceReport, decodeDisputeCase, decodeDynamicPricingEngine, decodeExtension, decodeGovernanceProposal, decodeIncentiveProgram, decodeJobApplication, decodeJobContract, decodeJobPosting, decodeMarketAnalytics, decodeMessage, decodeMultisig, decodeNegotiationChatbot, decodePayment, decodeRbacConfig, decodeReplicationRecord, decodeReplicationTemplate, decodeResaleMarket, decodeRoyaltyStream, decodeServiceListing, decodeServicePurchase, decodeUserRegistry, decodeWorkDelivery, decodeWorkOrder, delegationScope, deriveA2AMessagePda, deriveA2ASessionPda, fetchA2AMessage, fetchA2ASession, fetchA2AStatus, fetchAgent, fetchAgentIncentives, fetchAgentTreeConfig, fetchAgentVerification, fetchAllA2AMessage, fetchAllA2ASession, fetchAllA2AStatus, fetchAllAgent, fetchAllAgentIncentives, fetchAllAgentTreeConfig, fetchAllAgentVerification, fetchAllAnalyticsDashboard, fetchAllArbitratorRegistry, fetchAllAuctionMarketplace, fetchAllAuditTrail, fetchAllBulkDeal, fetchAllChannel, fetchAllComplianceReport, fetchAllDisputeCase, fetchAllDynamicPricingEngine, fetchAllExtension, fetchAllGovernanceProposal, fetchAllIncentiveProgram, fetchAllJobApplication, fetchAllJobContract, fetchAllJobPosting, fetchAllMarketAnalytics, fetchAllMaybeA2AMessage, fetchAllMaybeA2ASession, fetchAllMaybeA2AStatus, fetchAllMaybeAgent, fetchAllMaybeAgentIncentives, fetchAllMaybeAgentTreeConfig, fetchAllMaybeAgentVerification, fetchAllMaybeAnalyticsDashboard, fetchAllMaybeArbitratorRegistry, fetchAllMaybeAuctionMarketplace, fetchAllMaybeAuditTrail, fetchAllMaybeBulkDeal, fetchAllMaybeChannel, fetchAllMaybeComplianceReport, fetchAllMaybeDisputeCase, fetchAllMaybeDynamicPricingEngine, fetchAllMaybeExtension, fetchAllMaybeGovernanceProposal, fetchAllMaybeIncentiveProgram, fetchAllMaybeJobApplication, fetchAllMaybeJobContract, fetchAllMaybeJobPosting, fetchAllMaybeMarketAnalytics, fetchAllMaybeMessage, fetchAllMaybeMultisig, fetchAllMaybeNegotiationChatbot, fetchAllMaybePayment, fetchAllMaybeRbacConfig, fetchAllMaybeReplicationRecord, fetchAllMaybeReplicationTemplate, fetchAllMaybeResaleMarket, fetchAllMaybeRoyaltyStream, fetchAllMaybeServiceListing, fetchAllMaybeServicePurchase, fetchAllMaybeUserRegistry, fetchAllMaybeWorkDelivery, fetchAllMaybeWorkOrder, fetchAllMessage, fetchAllMultisig, fetchAllNegotiationChatbot, fetchAllPayment, fetchAllRbacConfig, fetchAllReplicationRecord, fetchAllReplicationTemplate, fetchAllResaleMarket, fetchAllRoyaltyStream, fetchAllServiceListing, fetchAllServicePurchase, fetchAllUserRegistry, fetchAllWorkDelivery, fetchAllWorkOrder, fetchAnalyticsDashboard, fetchArbitratorRegistry, fetchAuctionMarketplace, fetchAuditTrail, fetchBulkDeal, fetchChannel, fetchComplianceReport, fetchDisputeCase, fetchDynamicPricingEngine, fetchExtension, fetchGovernanceProposal, fetchIncentiveProgram, fetchJobApplication, fetchJobContract, fetchJobPosting, fetchMarketAnalytics, fetchMaybeA2AMessage, fetchMaybeA2ASession, fetchMaybeA2AStatus, fetchMaybeAgent, fetchMaybeAgentIncentives, fetchMaybeAgentTreeConfig, fetchMaybeAgentVerification, fetchMaybeAnalyticsDashboard, fetchMaybeArbitratorRegistry, fetchMaybeAuctionMarketplace, fetchMaybeAuditTrail, fetchMaybeBulkDeal, fetchMaybeChannel, fetchMaybeComplianceReport, fetchMaybeDisputeCase, fetchMaybeDynamicPricingEngine, fetchMaybeExtension, fetchMaybeGovernanceProposal, fetchMaybeIncentiveProgram, fetchMaybeJobApplication, fetchMaybeJobContract, fetchMaybeJobPosting, fetchMaybeMarketAnalytics, fetchMaybeMessage, fetchMaybeMultisig, fetchMaybeNegotiationChatbot, fetchMaybePayment, fetchMaybeRbacConfig, fetchMaybeReplicationRecord, fetchMaybeReplicationTemplate, fetchMaybeResaleMarket, fetchMaybeRoyaltyStream, fetchMaybeServiceListing, fetchMaybeServicePurchase, fetchMaybeUserRegistry, fetchMaybeWorkDelivery, fetchMaybeWorkOrder, fetchMessage, fetchMultisig, fetchNegotiationChatbot, fetchPayment, fetchRbacConfig, fetchReplicationRecord, fetchReplicationTemplate, fetchResaleMarket, fetchRoyaltyStream, fetchServiceListing, fetchServicePurchase, fetchUserRegistry, fetchWorkDelivery, fetchWorkOrder, getA2AMessageCodec, getA2AMessageDecoder, getA2AMessageDiscriminatorBytes, getA2AMessageEncoder, getA2AMessageSentEventCodec, getA2AMessageSentEventDecoder, getA2AMessageSentEventEncoder, getA2ASessionCodec, getA2ASessionCreatedEventCodec, getA2ASessionCreatedEventDecoder, getA2ASessionCreatedEventEncoder, getA2ASessionDecoder, getA2ASessionDiscriminatorBytes, getA2ASessionEncoder, getA2AStatusCodec, getA2AStatusDecoder, getA2AStatusDiscriminatorBytes, getA2AStatusEncoder, getA2AStatusUpdatedEventCodec, getA2AStatusUpdatedEventDecoder, getA2AStatusUpdatedEventEncoder, getAcceptJobApplicationDiscriminatorBytes, getAcceptJobApplicationInstruction, getAcceptJobApplicationInstructionAsync, getAcceptJobApplicationInstructionDataCodec, getAcceptJobApplicationInstructionDataDecoder, getAcceptJobApplicationInstructionDataEncoder, getAccessAuditConfigCodec, getAccessAuditConfigDecoder, getAccessAuditConfigEncoder, getAccessPolicyCodec, getAccessPolicyDecoder, getAccessPolicyEncoder, getAccountLockoutPoliciesCodec, getAccountLockoutPoliciesDecoder, getAccountLockoutPoliciesEncoder, getActionCodec, getActionDecoder, getActionEncoder, getActionExportCodec, getActionExportDecoder, getActionExportEncoder, getActivateAgentDiscriminatorBytes, getActivateAgentInstruction, getActivateAgentInstructionAsync, getActivateAgentInstructionDataCodec, getActivateAgentInstructionDataDecoder, getActivateAgentInstructionDataEncoder, getActivationRequirementCodec, getActivationRequirementDecoder, getActivationRequirementEncoder, getActivationRequirementTypeCodec, getActivationRequirementTypeDecoder, getActivationRequirementTypeEncoder, getAddTopAgentDiscriminatorBytes, getAddTopAgentInstruction, getAddTopAgentInstructionDataCodec, getAddTopAgentInstructionDataDecoder, getAddTopAgentInstructionDataEncoder, getAgentCodec, getAgentDecoder, getAgentDiscriminatorBytes, getAgentEncoder, getAgentIncentivesCodec, getAgentIncentivesDecoder, getAgentIncentivesDiscriminatorBytes, getAgentIncentivesEncoder, getAgentIncentivesSize, getAgentListedForResaleEventCodec, getAgentListedForResaleEventDecoder, getAgentListedForResaleEventEncoder, getAgentRegisteredEventCodec, getAgentRegisteredEventDecoder, getAgentRegisteredEventEncoder, getAgentReplicatedEventCodec, getAgentReplicatedEventDecoder, getAgentReplicatedEventEncoder, getAgentServiceUpdatedEventCodec, getAgentServiceUpdatedEventDecoder, getAgentServiceUpdatedEventEncoder, getAgentStatusChangedEventCodec, getAgentStatusChangedEventDecoder, getAgentStatusChangedEventEncoder, getAgentTreeConfigCodec, getAgentTreeConfigDecoder, getAgentTreeConfigDiscriminatorBytes, getAgentTreeConfigEncoder, getAgentTreeConfigSize, getAgentUpdatedEventCodec, getAgentUpdatedEventDecoder, getAgentUpdatedEventEncoder, getAgentVerificationCodec, getAgentVerificationDataCodec, getAgentVerificationDataDecoder, getAgentVerificationDataEncoder, getAgentVerificationDecoder, getAgentVerificationDiscriminatorBytes, getAgentVerificationEncoder, getAgingPolicyCodec, getAgingPolicyDecoder, getAgingPolicyEncoder, getAnalyticsDashboardCodec, getAnalyticsDashboardCreatedEventCodec, getAnalyticsDashboardCreatedEventDecoder, getAnalyticsDashboardCreatedEventEncoder, getAnalyticsDashboardDecoder, getAnalyticsDashboardDiscriminatorBytes, getAnalyticsDashboardEncoder, getAnalyticsDashboardUpdatedEventCodec, getAnalyticsDashboardUpdatedEventDecoder, getAnalyticsDashboardUpdatedEventEncoder, getApplicationStatusCodec, getApplicationStatusDecoder, getApplicationStatusEncoder, getApplyToJobDiscriminatorBytes, getApplyToJobInstruction, getApplyToJobInstructionAsync, getApplyToJobInstructionDataCodec, getApplyToJobInstructionDataDecoder, getApplyToJobInstructionDataEncoder, getApprovalLevelCodec, getApprovalLevelDecoder, getApprovalLevelEncoder, getApproveExtensionDiscriminatorBytes, getApproveExtensionInstruction, getApproveExtensionInstructionDataCodec, getApproveExtensionInstructionDataDecoder, getApproveExtensionInstructionDataEncoder, getArbitratorRegistryCodec, getArbitratorRegistryDecoder, getArbitratorRegistryDiscriminatorBytes, getArbitratorRegistryEncoder, getAuctionBidCodec, getAuctionBidDecoder, getAuctionBidEncoder, getAuctionBidPlacedEventCodec, getAuctionBidPlacedEventDecoder, getAuctionBidPlacedEventEncoder, getAuctionFailedEventCodec, getAuctionFailedEventDecoder, getAuctionFailedEventEncoder, getAuctionFinalizedEventCodec, getAuctionFinalizedEventDecoder, getAuctionFinalizedEventEncoder, getAuctionMarketplaceCodec, getAuctionMarketplaceDecoder, getAuctionMarketplaceDiscriminatorBytes, getAuctionMarketplaceEncoder, getAuctionStatusCodec, getAuctionStatusDecoder, getAuctionStatusEncoder, getAuctionTypeCodec, getAuctionTypeDecoder, getAuctionTypeEncoder, getAuditActionCodec, getAuditActionDecoder, getAuditActionEncoder, getAuditConfigCodec, getAuditConfigDecoder, getAuditConfigEncoder, getAuditContextCodec, getAuditContextDecoder, getAuditContextEncoder, getAuditContextExportCodec, getAuditContextExportDecoder, getAuditContextExportEncoder, getAuditEntryCodec, getAuditEntryDecoder, getAuditEntryEncoder, getAuditTrailCodec, getAuditTrailDecoder, getAuditTrailDiscriminatorBytes, getAuditTrailEncoder, getAuditTrailInitializedEventCodec, getAuditTrailInitializedEventDecoder, getAuditTrailInitializedEventEncoder, getAuthenticationLevelCodec, getAuthenticationLevelDecoder, getAuthenticationLevelEncoder, getAuthenticationMethodCodec, getAuthenticationMethodDecoder, getAuthenticationMethodEncoder, getAuthenticationPoliciesCodec, getAuthenticationPoliciesDecoder, getAuthenticationPoliciesEncoder, getAuthenticationStrengthCodec, getAuthenticationStrengthDecoder, getAuthenticationStrengthEncoder, getAuthorizationPoliciesCodec, getAuthorizationPoliciesDecoder, getAuthorizationPoliciesEncoder, getBackupFrequencyCodec, getBackupFrequencyDecoder, getBackupFrequencyEncoder, getBiometricPoliciesCodec, getBiometricPoliciesDecoder, getBiometricPoliciesEncoder, getBiometricProtectionCodec, getBiometricProtectionDecoder, getBiometricProtectionEncoder, getBiometricQualityCodec, getBiometricQualityDecoder, getBiometricQualityEncoder, getBiometricQualityExportCodec, getBiometricQualityExportDecoder, getBiometricQualityExportEncoder, getBiometricStorageMethodCodec, getBiometricStorageMethodDecoder, getBiometricStorageMethodEncoder, getBiometricTypeCodec, getBiometricTypeDecoder, getBiometricTypeEncoder, getBulkDealBatchExecutedEventCodec, getBulkDealBatchExecutedEventDecoder, getBulkDealBatchExecutedEventEncoder, getBulkDealCodec, getBulkDealCreatedEventCodec, getBulkDealCreatedEventDecoder, getBulkDealCreatedEventEncoder, getBulkDealDecoder, getBulkDealDiscriminatorBytes, getBulkDealEncoder, getChannelCodec, getChannelCreatedEventCodec, getChannelCreatedEventDecoder, getChannelCreatedEventEncoder, getChannelDecoder, getChannelDiscriminatorBytes, getChannelEncoder, getChannelTypeCodec, getChannelTypeDecoder, getChannelTypeEncoder, getComplianceFlagsCodec, getComplianceFlagsDecoder, getComplianceFlagsEncoder, getComplianceMetricsCodec, getComplianceMetricsDecoder, getComplianceMetricsEncoder, getCompliancePoliciesCodec, getCompliancePoliciesDecoder, getCompliancePoliciesEncoder, getComplianceReportCodec, getComplianceReportDecoder, getComplianceReportDiscriminatorBytes, getComplianceReportEncoder, getComplianceReportGeneratedEventCodec, getComplianceReportGeneratedEventDecoder, getComplianceReportGeneratedEventEncoder, getComplianceStatusCodec, getComplianceStatusDecoder, getComplianceStatusEncoder, getComplianceStatusExportCodec, getComplianceStatusExportDecoder, getComplianceStatusExportEncoder, getCompressedAgentCreatedEventCodec, getCompressedAgentCreatedEventDecoder, getCompressedAgentCreatedEventEncoder, getConditionTypeCodec, getConditionTypeDecoder, getConditionTypeEncoder, getConstraintConditionCodec, getConstraintConditionDecoder, getConstraintConditionEncoder, getConstraintOperatorCodec, getConstraintOperatorDecoder, getConstraintOperatorEncoder, getContractStatusCodec, getContractStatusDecoder, getContractStatusEncoder, getCounterOfferMadeEventCodec, getCounterOfferMadeEventDecoder, getCounterOfferMadeEventEncoder, getCreateA2aSessionDiscriminatorBytes, getCreateA2aSessionInstruction, getCreateA2aSessionInstructionAsync, getCreateA2aSessionInstructionDataCodec, getCreateA2aSessionInstructionDataDecoder, getCreateA2aSessionInstructionDataEncoder, getCreateAnalyticsDashboardDiscriminatorBytes, getCreateAnalyticsDashboardInstruction, getCreateAnalyticsDashboardInstructionAsync, getCreateAnalyticsDashboardInstructionDataCodec, getCreateAnalyticsDashboardInstructionDataDecoder, getCreateAnalyticsDashboardInstructionDataEncoder, getCreateBulkDealDiscriminatorBytes, getCreateBulkDealInstruction, getCreateBulkDealInstructionAsync, getCreateBulkDealInstructionDataCodec, getCreateBulkDealInstructionDataDecoder, getCreateBulkDealInstructionDataEncoder, getCreateChannelDiscriminatorBytes, getCreateChannelInstruction, getCreateChannelInstructionDataCodec, getCreateChannelInstructionDataDecoder, getCreateChannelInstructionDataEncoder, getCreateDynamicPricingEngineDiscriminatorBytes, getCreateDynamicPricingEngineInstruction, getCreateDynamicPricingEngineInstructionAsync, getCreateDynamicPricingEngineInstructionDataCodec, getCreateDynamicPricingEngineInstructionDataDecoder, getCreateDynamicPricingEngineInstructionDataEncoder, getCreateIncentiveProgramDiscriminatorBytes, getCreateIncentiveProgramInstruction, getCreateIncentiveProgramInstructionAsync, getCreateIncentiveProgramInstructionDataCodec, getCreateIncentiveProgramInstructionDataDecoder, getCreateIncentiveProgramInstructionDataEncoder, getCreateJobPostingDiscriminatorBytes, getCreateJobPostingInstruction, getCreateJobPostingInstructionAsync, getCreateJobPostingInstructionDataCodec, getCreateJobPostingInstructionDataDecoder, getCreateJobPostingInstructionDataEncoder, getCreateMarketAnalyticsDiscriminatorBytes, getCreateMarketAnalyticsInstruction, getCreateMarketAnalyticsInstructionAsync, getCreateMarketAnalyticsInstructionDataCodec, getCreateMarketAnalyticsInstructionDataDecoder, getCreateMarketAnalyticsInstructionDataEncoder, getCreateMultisigDiscriminatorBytes, getCreateMultisigInstruction, getCreateMultisigInstructionAsync, getCreateMultisigInstructionDataCodec, getCreateMultisigInstructionDataDecoder, getCreateMultisigInstructionDataEncoder, getCreateReplicationTemplateDiscriminatorBytes, getCreateReplicationTemplateInstruction, getCreateReplicationTemplateInstructionAsync, getCreateReplicationTemplateInstructionDataCodec, getCreateReplicationTemplateInstructionDataDecoder, getCreateReplicationTemplateInstructionDataEncoder, getCreateRoyaltyStreamDiscriminatorBytes, getCreateRoyaltyStreamInstruction, getCreateRoyaltyStreamInstructionAsync, getCreateRoyaltyStreamInstructionDataCodec, getCreateRoyaltyStreamInstructionDataDecoder, getCreateRoyaltyStreamInstructionDataEncoder, getCreateServiceAuctionDiscriminatorBytes, getCreateServiceAuctionInstruction, getCreateServiceAuctionInstructionAsync, getCreateServiceAuctionInstructionDataCodec, getCreateServiceAuctionInstructionDataDecoder, getCreateServiceAuctionInstructionDataEncoder, getCreateServiceListingDiscriminatorBytes, getCreateServiceListingInstruction, getCreateServiceListingInstructionAsync, getCreateServiceListingInstructionDataCodec, getCreateServiceListingInstructionDataDecoder, getCreateServiceListingInstructionDataEncoder, getCreateWorkOrderDiscriminatorBytes, getCreateWorkOrderInstruction, getCreateWorkOrderInstructionDataCodec, getCreateWorkOrderInstructionDataDecoder, getCreateWorkOrderInstructionDataEncoder, getDataAccessLevelCodec, getDataAccessLevelDecoder, getDataAccessLevelEncoder, getDataProtectionPoliciesCodec, getDataProtectionPoliciesDecoder, getDataProtectionPoliciesEncoder, getDeactivateAgentDiscriminatorBytes, getDeactivateAgentInstruction, getDeactivateAgentInstructionAsync, getDeactivateAgentInstructionDataCodec, getDeactivateAgentInstructionDataDecoder, getDeactivateAgentInstructionDataEncoder, getDealTypeCodec, getDealTypeDecoder, getDealTypeEncoder, getDegradationHandlingCodec, getDegradationHandlingDecoder, getDegradationHandlingEncoder, getDelegationInfoCodec, getDelegationInfoDecoder, getDelegationInfoEncoder, getDelegationScopeCodec, getDelegationScopeDecoder, getDelegationScopeEncoder, getDeliverableCodec, getDeliverableDecoder, getDeliverableEncoder, getDisputeCaseCodec, getDisputeCaseDecoder, getDisputeCaseDiscriminatorBytes, getDisputeCaseEncoder, getDisputeEvidenceCodec, getDisputeEvidenceDecoder, getDisputeEvidenceEncoder, getDisputeEvidenceSubmittedEventCodec, getDisputeEvidenceSubmittedEventDecoder, getDisputeEvidenceSubmittedEventEncoder, getDisputeFiledEventCodec, getDisputeFiledEventDecoder, getDisputeFiledEventEncoder, getDisputeResolvedEventCodec, getDisputeResolvedEventDecoder, getDisputeResolvedEventEncoder, getDisputeStatusCodec, getDisputeStatusDecoder, getDisputeStatusEncoder, getDistributeIncentivesDiscriminatorBytes, getDistributeIncentivesInstruction, getDistributeIncentivesInstructionDataCodec, getDistributeIncentivesInstructionDataDecoder, getDistributeIncentivesInstructionDataEncoder, getDynamicPricingConfigCodec, getDynamicPricingConfigDecoder, getDynamicPricingConfigEncoder, getDynamicPricingConfigExportCodec, getDynamicPricingConfigExportDecoder, getDynamicPricingConfigExportEncoder, getDynamicPricingEngineCodec, getDynamicPricingEngineCreatedEventCodec, getDynamicPricingEngineCreatedEventDecoder, getDynamicPricingEngineCreatedEventEncoder, getDynamicPricingEngineDecoder, getDynamicPricingEngineDiscriminatorBytes, getDynamicPricingEngineEncoder, getDynamicPricingUpdatedEventCodec, getDynamicPricingUpdatedEventDecoder, getDynamicPricingUpdatedEventEncoder, getEmergencyAccessConfigCodec, getEmergencyAccessConfigDecoder, getEmergencyAccessConfigEncoder, getEmergencyConfigCodec, getEmergencyConfigDecoder, getEmergencyConfigEncoder, getEnforcementLevelCodec, getEnforcementLevelDecoder, getEnforcementLevelEncoder, getExecuteBulkDealBatchDiscriminatorBytes, getExecuteBulkDealBatchInstruction, getExecuteBulkDealBatchInstructionAsync, getExecuteBulkDealBatchInstructionDataCodec, getExecuteBulkDealBatchInstructionDataDecoder, getExecuteBulkDealBatchInstructionDataEncoder, getExecutionConditionCodec, getExecutionConditionDecoder, getExecutionConditionEncoder, getExecutionParamsCodec, getExecutionParamsDecoder, getExecutionParamsEncoder, getExportActionDiscriminatorBytes, getExportActionInstruction, getExportActionInstructionDataCodec, getExportActionInstructionDataDecoder, getExportActionInstructionDataEncoder, getExportAuditContextDiscriminatorBytes, getExportAuditContextInstruction, getExportAuditContextInstructionDataCodec, getExportAuditContextInstructionDataDecoder, getExportAuditContextInstructionDataEncoder, getExportBiometricQualityDiscriminatorBytes, getExportBiometricQualityInstruction, getExportBiometricQualityInstructionDataCodec, getExportBiometricQualityInstructionDataDecoder, getExportBiometricQualityInstructionDataEncoder, getExportComplianceStatusDiscriminatorBytes, getExportComplianceStatusInstruction, getExportComplianceStatusInstructionDataCodec, getExportComplianceStatusInstructionDataDecoder, getExportComplianceStatusInstructionDataEncoder, getExportDynamicPricingConfigDiscriminatorBytes, getExportDynamicPricingConfigInstruction, getExportDynamicPricingConfigInstructionDataCodec, getExportDynamicPricingConfigInstructionDataDecoder, getExportDynamicPricingConfigInstructionDataEncoder, getExportMultisigConfigDiscriminatorBytes, getExportMultisigConfigInstruction, getExportMultisigConfigInstructionDataCodec, getExportMultisigConfigInstructionDataDecoder, getExportMultisigConfigInstructionDataEncoder, getExportReportEntryDiscriminatorBytes, getExportReportEntryInstruction, getExportReportEntryInstructionDataCodec, getExportReportEntryInstructionDataDecoder, getExportReportEntryInstructionDataEncoder, getExportResourceConstraintsDiscriminatorBytes, getExportResourceConstraintsInstruction, getExportResourceConstraintsInstructionDataCodec, getExportResourceConstraintsInstructionDataDecoder, getExportResourceConstraintsInstructionDataEncoder, getExportRuleConditionDiscriminatorBytes, getExportRuleConditionInstruction, getExportRuleConditionInstructionDataCodec, getExportRuleConditionInstructionDataDecoder, getExportRuleConditionInstructionDataEncoder, getExtensionApprovedEventCodec, getExtensionApprovedEventDecoder, getExtensionApprovedEventEncoder, getExtensionCodec, getExtensionDecoder, getExtensionDiscriminatorBytes, getExtensionEncoder, getExtensionMetadataCodec, getExtensionMetadataDecoder, getExtensionMetadataEncoder, getExtensionRegisteredEventCodec, getExtensionRegisteredEventDecoder, getExtensionRegisteredEventEncoder, getExtensionStatusCodec, getExtensionStatusDecoder, getExtensionStatusEncoder, getExtensionTypeCodec, getExtensionTypeDecoder, getExtensionTypeEncoder, getFileDisputeDiscriminatorBytes, getFileDisputeInstruction, getFileDisputeInstructionAsync, getFileDisputeInstructionDataCodec, getFileDisputeInstructionDataDecoder, getFileDisputeInstructionDataEncoder, getFinalizeAuctionDiscriminatorBytes, getFinalizeAuctionInstruction, getFinalizeAuctionInstructionDataCodec, getFinalizeAuctionInstructionDataDecoder, getFinalizeAuctionInstructionDataEncoder, getGenerateComplianceReportDiscriminatorBytes, getGenerateComplianceReportInstruction, getGenerateComplianceReportInstructionAsync, getGenerateComplianceReportInstructionDataCodec, getGenerateComplianceReportInstructionDataDecoder, getGenerateComplianceReportInstructionDataEncoder, getGeographicRegionCodec, getGeographicRegionDecoder, getGeographicRegionEncoder, getGhostspeakMarketplaceErrorMessage, getGovernanceProposalCodec, getGovernanceProposalCreatedEventCodec, getGovernanceProposalCreatedEventDecoder, getGovernanceProposalCreatedEventEncoder, getGovernanceProposalDecoder, getGovernanceProposalDiscriminatorBytes, getGovernanceProposalEncoder, getHierarchicalBoundaryCodec, getHierarchicalBoundaryDecoder, getHierarchicalBoundaryEncoder, getIncentiveConfigCodec, getIncentiveConfigDecoder, getIncentiveConfigEncoder, getIncentiveDistributedEventCodec, getIncentiveDistributedEventDecoder, getIncentiveDistributedEventEncoder, getIncentiveProgramCodec, getIncentiveProgramCreatedEventCodec, getIncentiveProgramCreatedEventDecoder, getIncentiveProgramCreatedEventEncoder, getIncentiveProgramDecoder, getIncentiveProgramDiscriminatorBytes, getIncentiveProgramEncoder, getIncentiveProgramSize, getIncidentResponsePoliciesCodec, getIncidentResponsePoliciesDecoder, getIncidentResponsePoliciesEncoder, getInitializeAuditTrailDiscriminatorBytes, getInitializeAuditTrailInstruction, getInitializeAuditTrailInstructionAsync, getInitializeAuditTrailInstructionDataCodec, getInitializeAuditTrailInstructionDataDecoder, getInitializeAuditTrailInstructionDataEncoder, getInitializeGovernanceProposalDiscriminatorBytes, getInitializeGovernanceProposalInstruction, getInitializeGovernanceProposalInstructionAsync, getInitializeGovernanceProposalInstructionDataCodec, getInitializeGovernanceProposalInstructionDataDecoder, getInitializeGovernanceProposalInstructionDataEncoder, getInitializeRbacConfigDiscriminatorBytes, getInitializeRbacConfigInstruction, getInitializeRbacConfigInstructionAsync, getInitializeRbacConfigInstructionDataCodec, getInitializeRbacConfigInstructionDataDecoder, getInitializeRbacConfigInstructionDataEncoder, getInitiateNegotiationDiscriminatorBytes, getInitiateNegotiationInstruction, getInitiateNegotiationInstructionAsync, getInitiateNegotiationInstructionDataCodec, getInitiateNegotiationInstructionDataDecoder, getInitiateNegotiationInstructionDataEncoder, getJobApplicationAcceptedEventCodec, getJobApplicationAcceptedEventDecoder, getJobApplicationAcceptedEventEncoder, getJobApplicationCodec, getJobApplicationDecoder, getJobApplicationDiscriminatorBytes, getJobApplicationEncoder, getJobApplicationSubmittedEventCodec, getJobApplicationSubmittedEventDecoder, getJobApplicationSubmittedEventEncoder, getJobContractCodec, getJobContractDecoder, getJobContractDiscriminatorBytes, getJobContractEncoder, getJobContractSize, getJobPostingCodec, getJobPostingCreatedEventCodec, getJobPostingCreatedEventDecoder, getJobPostingCreatedEventEncoder, getJobPostingDecoder, getJobPostingDiscriminatorBytes, getJobPostingEncoder, getLatitudeRangeCodec, getLatitudeRangeDecoder, getLatitudeRangeEncoder, getListAgentForResaleDiscriminatorBytes, getListAgentForResaleInstruction, getListAgentForResaleInstructionAsync, getListAgentForResaleInstructionDataCodec, getListAgentForResaleInstructionDataDecoder, getListAgentForResaleInstructionDataEncoder, getLocationConstraintsCodec, getLocationConstraintsDecoder, getLocationConstraintsEncoder, getLongitudeRangeCodec, getLongitudeRangeDecoder, getLongitudeRangeEncoder, getMakeCounterOfferDiscriminatorBytes, getMakeCounterOfferInstruction, getMakeCounterOfferInstructionDataCodec, getMakeCounterOfferInstructionDataDecoder, getMakeCounterOfferInstructionDataEncoder, getManageAgentStatusDiscriminatorBytes, getManageAgentStatusInstruction, getManageAgentStatusInstructionAsync, getManageAgentStatusInstructionDataCodec, getManageAgentStatusInstructionDataDecoder, getManageAgentStatusInstructionDataEncoder, getMarketAnalyticsCodec, getMarketAnalyticsCreatedEventCodec, getMarketAnalyticsCreatedEventDecoder, getMarketAnalyticsCreatedEventEncoder, getMarketAnalyticsDecoder, getMarketAnalyticsDiscriminatorBytes, getMarketAnalyticsEncoder, getMarketAnalyticsUpdatedEventCodec, getMarketAnalyticsUpdatedEventDecoder, getMarketAnalyticsUpdatedEventEncoder, getMessageCodec, getMessageDecoder, getMessageDiscriminatorBytes, getMessageEncoder, getMessageSentEventCodec, getMessageSentEventDecoder, getMessageSentEventEncoder, getMessageTypeCodec, getMessageTypeDecoder, getMessageTypeEncoder, getMultisigCodec, getMultisigConfigCodec, getMultisigConfigDecoder, getMultisigConfigEncoder, getMultisigConfigExportCodec, getMultisigConfigExportDecoder, getMultisigConfigExportEncoder, getMultisigCreatedEventCodec, getMultisigCreatedEventDecoder, getMultisigCreatedEventEncoder, getMultisigDecoder, getMultisigDiscriminatorBytes, getMultisigEncoder, getMultisigSignatureCodec, getMultisigSignatureDecoder, getMultisigSignatureEncoder, getNegotiationChatbotCodec, getNegotiationChatbotDecoder, getNegotiationChatbotDiscriminatorBytes, getNegotiationChatbotEncoder, getNegotiationInitiatedEventCodec, getNegotiationInitiatedEventDecoder, getNegotiationInitiatedEventEncoder, getNegotiationStatusCodec, getNegotiationStatusDecoder, getNegotiationStatusEncoder, getNetworkSecurityPoliciesCodec, getNetworkSecurityPoliciesDecoder, getNetworkSecurityPoliciesEncoder, getNotificationMethodCodec, getNotificationMethodDecoder, getNotificationMethodEncoder, getNotificationPriorityCodec, getNotificationPriorityDecoder, getNotificationPriorityEncoder, getNotificationRequirementCodec, getNotificationRequirementDecoder, getNotificationRequirementEncoder, getNotificationTargetCodec, getNotificationTargetDecoder, getNotificationTargetEncoder, getNotificationTargetTypeCodec, getNotificationTargetTypeDecoder, getNotificationTargetTypeEncoder, getNotificationTimingCodec, getNotificationTimingDecoder, getNotificationTimingEncoder, getPasswordPoliciesCodec, getPasswordPoliciesDecoder, getPasswordPoliciesEncoder, getPaymentCodec, getPaymentDecoder, getPaymentDiscriminatorBytes, getPaymentEncoder, getPaymentProcessedEventCodec, getPaymentProcessedEventDecoder, getPaymentProcessedEventEncoder, getPendingTransactionCodec, getPendingTransactionDecoder, getPendingTransactionEncoder, getPermissionCodec, getPermissionConstraintCodec, getPermissionConstraintDecoder, getPermissionConstraintEncoder, getPermissionConstraintTypeCodec, getPermissionConstraintTypeDecoder, getPermissionConstraintTypeEncoder, getPermissionDecoder, getPermissionEncoder, getPermissionMetadataCodec, getPermissionMetadataDecoder, getPermissionMetadataEncoder, getPermissionScopeCodec, getPermissionScopeDecoder, getPermissionScopeEncoder, getPlaceAuctionBidDiscriminatorBytes, getPlaceAuctionBidInstruction, getPlaceAuctionBidInstructionDataCodec, getPlaceAuctionBidInstructionDataDecoder, getPlaceAuctionBidInstructionDataEncoder, getPolicyMetadataCodec, getPolicyMetadataDecoder, getPolicyMetadataEncoder, getPolicyRuleCodec, getPolicyRuleDecoder, getPolicyRuleEncoder, getPolicyScopeCodec, getPolicyScopeDecoder, getPolicyScopeEncoder, getPolicyStatusCodec, getPolicyStatusDecoder, getPolicyStatusEncoder, getPolicyTypeCodec, getPolicyTypeDecoder, getPolicyTypeEncoder, getPricingAlgorithmCodec, getPricingAlgorithmDecoder, getPricingAlgorithmEncoder, getPricingModelCodec, getPricingModelDecoder, getPricingModelEncoder, getProcessPaymentDiscriminatorBytes, getProcessPaymentInstruction, getProcessPaymentInstructionAsync, getProcessPaymentInstructionDataCodec, getProcessPaymentInstructionDataDecoder, getProcessPaymentInstructionDataEncoder, getProposalAccountCodec, getProposalAccountDecoder, getProposalAccountEncoder, getProposalInstructionCodec, getProposalInstructionDecoder, getProposalInstructionEncoder, getProposalMetadataCodec, getProposalMetadataDecoder, getProposalMetadataEncoder, getProposalStatusCodec, getProposalStatusDecoder, getProposalStatusEncoder, getProposalTypeCodec, getProposalTypeDecoder, getProposalTypeEncoder, getPurchaseServiceDiscriminatorBytes, getPurchaseServiceInstruction, getPurchaseServiceInstructionAsync, getPurchaseServiceInstructionDataCodec, getPurchaseServiceInstructionDataDecoder, getPurchaseServiceInstructionDataEncoder, getPurchaseStatusCodec, getPurchaseStatusDecoder, getPurchaseStatusEncoder, getQuorumMethodCodec, getQuorumMethodDecoder, getQuorumMethodEncoder, getQuorumRequirementsCodec, getQuorumRequirementsDecoder, getQuorumRequirementsEncoder, getRbacConfigCodec, getRbacConfigDecoder, getRbacConfigDiscriminatorBytes, getRbacConfigEncoder, getRbacConfigInitializedEventCodec, getRbacConfigInitializedEventDecoder, getRbacConfigInitializedEventEncoder, getRegisterAgentCompressedDiscriminatorBytes, getRegisterAgentCompressedInstruction, getRegisterAgentCompressedInstructionAsync, getRegisterAgentCompressedInstructionDataCodec, getRegisterAgentCompressedInstructionDataDecoder, getRegisterAgentCompressedInstructionDataEncoder, getRegisterAgentDiscriminatorBytes, getRegisterAgentInstruction, getRegisterAgentInstructionAsync, getRegisterAgentInstructionDataCodec, getRegisterAgentInstructionDataDecoder, getRegisterAgentInstructionDataEncoder, getRegisterExtensionDiscriminatorBytes, getRegisterExtensionInstruction, getRegisterExtensionInstructionAsync, getRegisterExtensionInstructionDataCodec, getRegisterExtensionInstructionDataDecoder, getRegisterExtensionInstructionDataEncoder, getReplicateAgentDiscriminatorBytes, getReplicateAgentInstruction, getReplicateAgentInstructionAsync, getReplicateAgentInstructionDataCodec, getReplicateAgentInstructionDataDecoder, getReplicateAgentInstructionDataEncoder, getReplicationRecordCodec, getReplicationRecordDecoder, getReplicationRecordDiscriminatorBytes, getReplicationRecordEncoder, getReplicationTemplateCodec, getReplicationTemplateCreatedEventCodec, getReplicationTemplateCreatedEventDecoder, getReplicationTemplateCreatedEventEncoder, getReplicationTemplateDecoder, getReplicationTemplateDiscriminatorBytes, getReplicationTemplateEncoder, getReportDataCodec, getReportDataDecoder, getReportDataEncoder, getReportEntryCodec, getReportEntryDecoder, getReportEntryEncoder, getReportEntryExportCodec, getReportEntryExportDecoder, getReportEntryExportEncoder, getReportStatusCodec, getReportStatusDecoder, getReportStatusEncoder, getReportSummaryCodec, getReportSummaryDecoder, getReportSummaryEncoder, getReportTypeCodec, getReportTypeDecoder, getReportTypeEncoder, getReportingFrequencyCodec, getReportingFrequencyDecoder, getReportingFrequencyEncoder, getResaleMarketCodec, getResaleMarketDecoder, getResaleMarketDiscriminatorBytes, getResaleMarketEncoder, getResolveDisputeDiscriminatorBytes, getResolveDisputeInstruction, getResolveDisputeInstructionAsync, getResolveDisputeInstructionDataCodec, getResolveDisputeInstructionDataDecoder, getResolveDisputeInstructionDataEncoder, getResourceConstraintsCodec, getResourceConstraintsDecoder, getResourceConstraintsEncoder, getResourceConstraintsExportCodec, getResourceConstraintsExportDecoder, getResourceConstraintsExportEncoder, getReviewScheduleCodec, getReviewScheduleDecoder, getReviewScheduleEncoder, getRiskAcceptanceCodec, getRiskAcceptanceDecoder, getRiskAcceptanceEncoder, getRiskAssessmentCodec, getRiskAssessmentDecoder, getRiskAssessmentEncoder, getRiskCategoryCodec, getRiskCategoryDecoder, getRiskCategoryEncoder, getRiskFactorCodec, getRiskFactorDecoder, getRiskFactorEncoder, getRiskIndicatorCodec, getRiskIndicatorDecoder, getRiskIndicatorEncoder, getRiskLevelCodec, getRiskLevelDecoder, getRiskLevelEncoder, getRoleCodec, getRoleConstraintsCodec, getRoleConstraintsDecoder, getRoleConstraintsEncoder, getRoleDecoder, getRoleEncoder, getRoleMetadataCodec, getRoleMetadataDecoder, getRoleMetadataEncoder, getRoleStatusCodec, getRoleStatusDecoder, getRoleStatusEncoder, getRoleTypeCodec, getRoleTypeDecoder, getRoleTypeEncoder, getRoyaltyConfigCodec, getRoyaltyConfigDecoder, getRoyaltyConfigEncoder, getRoyaltyStreamCodec, getRoyaltyStreamCreatedEventCodec, getRoyaltyStreamCreatedEventDecoder, getRoyaltyStreamCreatedEventEncoder, getRoyaltyStreamDecoder, getRoyaltyStreamDiscriminatorBytes, getRoyaltyStreamEncoder, getRoyaltyStreamSize, getRuleConditionCodec, getRuleConditionDecoder, getRuleConditionEncoder, getRuleConditionExportCodec, getRuleConditionExportDecoder, getRuleConditionExportEncoder, getRuleEffectCodec, getRuleEffectDecoder, getRuleEffectEncoder, getScopeBoundariesCodec, getScopeBoundariesDecoder, getScopeBoundariesEncoder, getScopeInheritanceCodec, getScopeInheritanceDecoder, getScopeInheritanceEncoder, getScopeTypeCodec, getScopeTypeDecoder, getScopeTypeEncoder, getSecurityEventTypeCodec, getSecurityEventTypeDecoder, getSecurityEventTypeEncoder, getSecurityPoliciesCodec, getSecurityPoliciesDecoder, getSecurityPoliciesEncoder, getSendA2aMessageDiscriminatorBytes, getSendA2aMessageInstruction, getSendA2aMessageInstructionDataCodec, getSendA2aMessageInstructionDataDecoder, getSendA2aMessageInstructionDataEncoder, getSendMessageDiscriminatorBytes, getSendMessageInstruction, getSendMessageInstructionDataCodec, getSendMessageInstructionDataDecoder, getSendMessageInstructionDataEncoder, getServiceAuctionCreatedEventCodec, getServiceAuctionCreatedEventDecoder, getServiceAuctionCreatedEventEncoder, getServiceListingCodec, getServiceListingCreatedEventCodec, getServiceListingCreatedEventDecoder, getServiceListingCreatedEventEncoder, getServiceListingDecoder, getServiceListingDiscriminatorBytes, getServiceListingEncoder, getServicePurchaseCodec, getServicePurchaseDecoder, getServicePurchaseDiscriminatorBytes, getServicePurchaseEncoder, getServicePurchasedEventCodec, getServicePurchasedEventDecoder, getServicePurchasedEventEncoder, getSessionConstraintsCodec, getSessionConstraintsDecoder, getSessionConstraintsEncoder, getSessionPoliciesCodec, getSessionPoliciesDecoder, getSessionPoliciesEncoder, getSodConstraintCodec, getSodConstraintDecoder, getSodConstraintEncoder, getSodConstraintTypeCodec, getSodConstraintTypeDecoder, getSodConstraintTypeEncoder, getStepUpTriggerCodec, getStepUpTriggerDecoder, getStepUpTriggerEncoder, getSubmissionDetailsCodec, getSubmissionDetailsDecoder, getSubmissionDetailsEncoder, getSubmitDisputeEvidenceDiscriminatorBytes, getSubmitDisputeEvidenceInstruction, getSubmitDisputeEvidenceInstructionAsync, getSubmitDisputeEvidenceInstructionDataCodec, getSubmitDisputeEvidenceInstructionDataDecoder, getSubmitDisputeEvidenceInstructionDataEncoder, getSubmitWorkDeliveryDiscriminatorBytes, getSubmitWorkDeliveryInstruction, getSubmitWorkDeliveryInstructionAsync, getSubmitWorkDeliveryInstructionDataCodec, getSubmitWorkDeliveryInstructionDataDecoder, getSubmitWorkDeliveryInstructionDataEncoder, getTimeConstraintsCodec, getTimeConstraintsDecoder, getTimeConstraintsEncoder, getTimeLockCodec, getTimeLockDecoder, getTimeLockEncoder, getTimeLockTypeCodec, getTimeLockTypeDecoder, getTimeLockTypeEncoder, getTopAgentAddedEventCodec, getTopAgentAddedEventDecoder, getTopAgentAddedEventEncoder, getTransactionPriorityCodec, getTransactionPriorityDecoder, getTransactionPriorityEncoder, getTransactionStatusCodec, getTransactionStatusDecoder, getTransactionStatusEncoder, getTransactionTypeCodec, getTransactionTypeDecoder, getTransactionTypeEncoder, getTrendDirectionCodec, getTrendDirectionDecoder, getTrendDirectionEncoder, getUnlockMethodCodec, getUnlockMethodDecoder, getUnlockMethodEncoder, getUpdateA2aStatusDiscriminatorBytes, getUpdateA2aStatusInstruction, getUpdateA2aStatusInstructionAsync, getUpdateA2aStatusInstructionDataCodec, getUpdateA2aStatusInstructionDataDecoder, getUpdateA2aStatusInstructionDataEncoder, getUpdateAgentDiscriminatorBytes, getUpdateAgentInstruction, getUpdateAgentInstructionAsync, getUpdateAgentInstructionDataCodec, getUpdateAgentInstructionDataDecoder, getUpdateAgentInstructionDataEncoder, getUpdateAgentReputationDiscriminatorBytes, getUpdateAgentReputationInstruction, getUpdateAgentReputationInstructionAsync, getUpdateAgentReputationInstructionDataCodec, getUpdateAgentReputationInstructionDataDecoder, getUpdateAgentReputationInstructionDataEncoder, getUpdateAgentServiceDiscriminatorBytes, getUpdateAgentServiceInstruction, getUpdateAgentServiceInstructionAsync, getUpdateAgentServiceInstructionDataCodec, getUpdateAgentServiceInstructionDataDecoder, getUpdateAgentServiceInstructionDataEncoder, getUpdateAnalyticsDashboardDiscriminatorBytes, getUpdateAnalyticsDashboardInstruction, getUpdateAnalyticsDashboardInstructionAsync, getUpdateAnalyticsDashboardInstructionDataCodec, getUpdateAnalyticsDashboardInstructionDataDecoder, getUpdateAnalyticsDashboardInstructionDataEncoder, getUpdateDynamicPricingDiscriminatorBytes, getUpdateDynamicPricingInstruction, getUpdateDynamicPricingInstructionDataCodec, getUpdateDynamicPricingInstructionDataDecoder, getUpdateDynamicPricingInstructionDataEncoder, getUpdateMarketAnalyticsDiscriminatorBytes, getUpdateMarketAnalyticsInstruction, getUpdateMarketAnalyticsInstructionDataCodec, getUpdateMarketAnalyticsInstructionDataDecoder, getUpdateMarketAnalyticsInstructionDataEncoder, getUserRegistryCodec, getUserRegistryDecoder, getUserRegistryDiscriminatorBytes, getUserRegistryEncoder, getUserRegistrySize, getValueTypeCodec, getValueTypeDecoder, getValueTypeEncoder, getVerifyAgentDiscriminatorBytes, getVerifyAgentInstruction, getVerifyAgentInstructionAsync, getVerifyAgentInstructionDataCodec, getVerifyAgentInstructionDataDecoder, getVerifyAgentInstructionDataEncoder, getViolationSeverityCodec, getViolationSeverityDecoder, getViolationSeverityEncoder, getVolumeTierCodec, getVolumeTierDecoder, getVolumeTierEncoder, getVoteChoiceCodec, getVoteChoiceDecoder, getVoteChoiceEncoder, getVoteCodec, getVoteDecoder, getVoteEncoder, getVotingResultsCodec, getVotingResultsDecoder, getVotingResultsEncoder, getWorkDeliveryCodec, getWorkDeliveryDecoder, getWorkDeliveryDiscriminatorBytes, getWorkDeliveryEncoder, getWorkDeliverySubmittedEventCodec, getWorkDeliverySubmittedEventDecoder, getWorkDeliverySubmittedEventEncoder, getWorkOrderCodec, getWorkOrderCreatedEventCodec, getWorkOrderCreatedEventDecoder, getWorkOrderCreatedEventEncoder, getWorkOrderDecoder, getWorkOrderDiscriminatorBytes, getWorkOrderEncoder, getWorkOrderStatusCodec, getWorkOrderStatusDecoder, getWorkOrderStatusEncoder, identifyGhostspeakMarketplaceAccount, identifyGhostspeakMarketplaceInstruction, isDelegationScope, isGhostspeakMarketplaceError, parseAcceptJobApplicationInstruction, parseActivateAgentInstruction, parseAddTopAgentInstruction, parseApplyToJobInstruction, parseApproveExtensionInstruction, parseCreateA2aSessionInstruction, parseCreateAnalyticsDashboardInstruction, parseCreateBulkDealInstruction, parseCreateChannelInstruction, parseCreateDynamicPricingEngineInstruction, parseCreateIncentiveProgramInstruction, parseCreateJobPostingInstruction, parseCreateMarketAnalyticsInstruction, parseCreateMultisigInstruction, parseCreateReplicationTemplateInstruction, parseCreateRoyaltyStreamInstruction, parseCreateServiceAuctionInstruction, parseCreateServiceListingInstruction, parseCreateWorkOrderInstruction, parseDeactivateAgentInstruction, parseDistributeIncentivesInstruction, parseExecuteBulkDealBatchInstruction, parseExportActionInstruction, parseExportAuditContextInstruction, parseExportBiometricQualityInstruction, parseExportComplianceStatusInstruction, parseExportDynamicPricingConfigInstruction, parseExportMultisigConfigInstruction, parseExportReportEntryInstruction, parseExportResourceConstraintsInstruction, parseExportRuleConditionInstruction, parseFileDisputeInstruction, parseFinalizeAuctionInstruction, parseGenerateComplianceReportInstruction, parseInitializeAuditTrailInstruction, parseInitializeGovernanceProposalInstruction, parseInitializeRbacConfigInstruction, parseInitiateNegotiationInstruction, parseListAgentForResaleInstruction, parseMakeCounterOfferInstruction, parseManageAgentStatusInstruction, parsePlaceAuctionBidInstruction, parseProcessPaymentInstruction, parsePurchaseServiceInstruction, parseRegisterAgentCompressedInstruction, parseRegisterAgentInstruction, parseRegisterExtensionInstruction, parseReplicateAgentInstruction, parseResolveDisputeInstruction, parseSendA2aMessageInstruction, parseSendMessageInstruction, parseSubmitDisputeEvidenceInstruction, parseSubmitWorkDeliveryInstruction, parseUpdateA2aStatusInstruction, parseUpdateAgentInstruction, parseUpdateAgentReputationInstruction, parseUpdateAgentServiceInstruction, parseUpdateAnalyticsDashboardInstruction, parseUpdateDynamicPricingInstruction, parseUpdateMarketAnalyticsInstruction, parseVerifyAgentInstruction };
25444
24730
  //# sourceMappingURL=index.js.map
25445
24731
  //# sourceMappingURL=index.js.map