@ghostspeak/sdk 1.5.0 → 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/.tsbuildinfo +1 -1
- package/dist/index.d.ts +1974 -1888
- package/dist/index.js +905 -1620
- package/dist/index.js.map +1 -1
- package/package.json +11 -10
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,
|
|
2
|
-
import { address
|
|
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
|
|
10531
|
+
role: AccountRole.READONLY
|
|
10533
10532
|
});
|
|
10534
10533
|
}
|
|
10535
|
-
const writableRole = account.isWritable ? AccountRole
|
|
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, {
|
|
@@ -21073,7 +20824,7 @@ async function deriveA2AMessagePda(programId, session, sessionCreatedAt) {
|
|
|
21073
20824
|
});
|
|
21074
20825
|
return address2;
|
|
21075
20826
|
}
|
|
21076
|
-
async function deriveUserRegistryPda(programId) {
|
|
20827
|
+
async function deriveUserRegistryPda(programId, signer) {
|
|
21077
20828
|
const [address2] = await getProgramDerivedAddress({
|
|
21078
20829
|
programAddress: programId,
|
|
21079
20830
|
seeds: [
|
|
@@ -21091,8 +20842,9 @@ async function deriveUserRegistryPda(programId) {
|
|
|
21091
20842
|
116,
|
|
21092
20843
|
114,
|
|
21093
20844
|
121
|
|
21094
|
-
]))
|
|
20845
|
+
])),
|
|
21095
20846
|
// 'user_registry'
|
|
20847
|
+
getAddressEncoder().encode(signer)
|
|
21096
20848
|
]
|
|
21097
20849
|
});
|
|
21098
20850
|
return address2;
|
|
@@ -21177,280 +20929,10 @@ var init_pda = __esm({
|
|
|
21177
20929
|
"src/utils/pda.ts"() {
|
|
21178
20930
|
}
|
|
21179
20931
|
});
|
|
21180
|
-
async function deriveAgentPda2(owner, agentId) {
|
|
21181
|
-
const encoder = getAddressEncoder$1();
|
|
21182
|
-
const seeds = [
|
|
21183
|
-
Buffer.from("agent"),
|
|
21184
|
-
encoder.encode(owner),
|
|
21185
|
-
Buffer.from(agentId)
|
|
21186
|
-
];
|
|
21187
|
-
const [pda] = await getProgramDerivedAddress$1({
|
|
21188
|
-
programAddress: GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS,
|
|
21189
|
-
seeds
|
|
21190
|
-
});
|
|
21191
|
-
return pda;
|
|
21192
|
-
}
|
|
21193
|
-
async function deriveServiceListingPda2(creator, listingId) {
|
|
21194
|
-
const encoder = getAddressEncoder$1();
|
|
21195
|
-
const seeds = [
|
|
21196
|
-
Buffer.from("service_listing"),
|
|
21197
|
-
encoder.encode(creator),
|
|
21198
|
-
Buffer.from(listingId.toString())
|
|
21199
|
-
// Convert to string then to bytes like Rust listing_id.as_bytes()
|
|
21200
|
-
];
|
|
21201
|
-
const [pda] = await getProgramDerivedAddress$1({
|
|
21202
|
-
programAddress: GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS,
|
|
21203
|
-
seeds
|
|
21204
|
-
});
|
|
21205
|
-
return pda;
|
|
21206
|
-
}
|
|
21207
|
-
async function deriveWorkOrderPda2(listing, buyer) {
|
|
21208
|
-
const encoder = getAddressEncoder$1();
|
|
21209
|
-
const seeds = [
|
|
21210
|
-
Buffer.from("work_order"),
|
|
21211
|
-
encoder.encode(listing),
|
|
21212
|
-
encoder.encode(buyer)
|
|
21213
|
-
];
|
|
21214
|
-
const [pda] = await getProgramDerivedAddress$1({
|
|
21215
|
-
programAddress: GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS,
|
|
21216
|
-
seeds
|
|
21217
|
-
});
|
|
21218
|
-
return pda;
|
|
21219
|
-
}
|
|
21220
|
-
function serializeString(str, maxLen) {
|
|
21221
|
-
const encoded = new TextEncoder().encode(str);
|
|
21222
|
-
const buffer = new Uint8Array(4 + maxLen);
|
|
21223
|
-
new DataView(buffer.buffer).setUint32(0, encoded.length, true);
|
|
21224
|
-
buffer.set(encoded.slice(0, maxLen), 4);
|
|
21225
|
-
return buffer;
|
|
21226
|
-
}
|
|
21227
|
-
function serializeVec(items, serializeItem) {
|
|
21228
|
-
const serializedItems = items.map(serializeItem);
|
|
21229
|
-
const totalLength = 4 + serializedItems.reduce((sum, item) => sum + item.length, 0);
|
|
21230
|
-
const buffer = new Uint8Array(totalLength);
|
|
21231
|
-
new DataView(buffer.buffer).setUint32(0, items.length, true);
|
|
21232
|
-
let offset = 4;
|
|
21233
|
-
for (const item of serializedItems) {
|
|
21234
|
-
buffer.set(item, offset);
|
|
21235
|
-
offset += item.length;
|
|
21236
|
-
}
|
|
21237
|
-
return buffer;
|
|
21238
|
-
}
|
|
21239
|
-
var init_utils = __esm({
|
|
21240
|
-
"src/core/utils.ts"() {
|
|
21241
|
-
init_types2();
|
|
21242
|
-
}
|
|
21243
|
-
});
|
|
21244
|
-
|
|
21245
|
-
// src/core/instructions/simple-marketplace.ts
|
|
21246
|
-
var simple_marketplace_exports = {};
|
|
21247
|
-
__export(simple_marketplace_exports, {
|
|
21248
|
-
createSimpleServiceListingInstruction: () => createSimpleServiceListingInstruction
|
|
21249
|
-
});
|
|
21250
|
-
async function createSimpleServiceListingInstruction(creator, agentId, listingId, title, price) {
|
|
21251
|
-
const encoder = getAddressEncoder$1();
|
|
21252
|
-
const agentPda = await deriveAgentPda2(creator.address, "");
|
|
21253
|
-
const [listingPda] = await getProgramDerivedAddress$1({
|
|
21254
|
-
programAddress: GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS,
|
|
21255
|
-
seeds: [
|
|
21256
|
-
Buffer.from("service_listing"),
|
|
21257
|
-
encoder.encode(creator.address),
|
|
21258
|
-
Buffer.from("")
|
|
21259
|
-
// Empty string - Rust program bug ignores the listing_id parameter
|
|
21260
|
-
]
|
|
21261
|
-
});
|
|
21262
|
-
const [userRegistryPda] = await getProgramDerivedAddress$1({
|
|
21263
|
-
programAddress: GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS,
|
|
21264
|
-
seeds: [
|
|
21265
|
-
Buffer.from("user_registry"),
|
|
21266
|
-
encoder.encode(creator.address)
|
|
21267
|
-
]
|
|
21268
|
-
});
|
|
21269
|
-
const accounts = [
|
|
21270
|
-
{
|
|
21271
|
-
address: listingPda,
|
|
21272
|
-
role: AccountRole.WRITABLE
|
|
21273
|
-
},
|
|
21274
|
-
{
|
|
21275
|
-
address: agentPda,
|
|
21276
|
-
role: AccountRole.READONLY
|
|
21277
|
-
},
|
|
21278
|
-
{
|
|
21279
|
-
address: userRegistryPda,
|
|
21280
|
-
role: AccountRole.WRITABLE
|
|
21281
|
-
},
|
|
21282
|
-
{
|
|
21283
|
-
address: creator.address,
|
|
21284
|
-
role: AccountRole.WRITABLE_SIGNER
|
|
21285
|
-
},
|
|
21286
|
-
{
|
|
21287
|
-
address: "11111111111111111111111111111111",
|
|
21288
|
-
role: AccountRole.READONLY
|
|
21289
|
-
},
|
|
21290
|
-
{
|
|
21291
|
-
address: "SysvarC1ock11111111111111111111111111111111",
|
|
21292
|
-
role: AccountRole.READONLY
|
|
21293
|
-
}
|
|
21294
|
-
];
|
|
21295
|
-
const discriminator = new Uint8Array([91, 37, 216, 26, 93, 146, 13, 182]);
|
|
21296
|
-
const titleBytes = serializeString(title.substring(0, 10), 16);
|
|
21297
|
-
const descriptionBytes = serializeString("Service", 16);
|
|
21298
|
-
const priceBytes = new Uint8Array(8);
|
|
21299
|
-
new DataView(priceBytes.buffer).setBigUint64(0, price, true);
|
|
21300
|
-
const tokenMintBytes = new Uint8Array(32);
|
|
21301
|
-
const serviceTypeBytes = serializeString("Service", 16);
|
|
21302
|
-
const paymentTokenBytes = new Uint8Array(32);
|
|
21303
|
-
const estimatedDeliveryBytes = new Uint8Array(8);
|
|
21304
|
-
new DataView(estimatedDeliveryBytes.buffer).setBigInt64(0, BigInt(3600), true);
|
|
21305
|
-
const tagsVecLength = new Uint8Array(4);
|
|
21306
|
-
new DataView(tagsVecLength.buffer).setUint32(0, 1, true);
|
|
21307
|
-
const tagBytes = serializeString("svc", 8);
|
|
21308
|
-
const listingIdBytes = serializeString(listingId.toString().substring(0, 6), 8);
|
|
21309
|
-
const data = new Uint8Array(
|
|
21310
|
-
discriminator.length + titleBytes.length + descriptionBytes.length + priceBytes.length + tokenMintBytes.length + serviceTypeBytes.length + paymentTokenBytes.length + estimatedDeliveryBytes.length + tagsVecLength.length + tagBytes.length + listingIdBytes.length
|
|
21311
|
-
);
|
|
21312
|
-
let offset = 0;
|
|
21313
|
-
data.set(discriminator, offset);
|
|
21314
|
-
offset += discriminator.length;
|
|
21315
|
-
data.set(titleBytes, offset);
|
|
21316
|
-
offset += titleBytes.length;
|
|
21317
|
-
data.set(descriptionBytes, offset);
|
|
21318
|
-
offset += descriptionBytes.length;
|
|
21319
|
-
data.set(priceBytes, offset);
|
|
21320
|
-
offset += priceBytes.length;
|
|
21321
|
-
data.set(tokenMintBytes, offset);
|
|
21322
|
-
offset += tokenMintBytes.length;
|
|
21323
|
-
data.set(serviceTypeBytes, offset);
|
|
21324
|
-
offset += serviceTypeBytes.length;
|
|
21325
|
-
data.set(paymentTokenBytes, offset);
|
|
21326
|
-
offset += paymentTokenBytes.length;
|
|
21327
|
-
data.set(estimatedDeliveryBytes, offset);
|
|
21328
|
-
offset += estimatedDeliveryBytes.length;
|
|
21329
|
-
data.set(tagsVecLength, offset);
|
|
21330
|
-
offset += tagsVecLength.length;
|
|
21331
|
-
data.set(tagBytes, offset);
|
|
21332
|
-
offset += tagBytes.length;
|
|
21333
|
-
data.set(listingIdBytes, offset);
|
|
21334
|
-
return {
|
|
21335
|
-
programAddress: GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS,
|
|
21336
|
-
accounts,
|
|
21337
|
-
data
|
|
21338
|
-
};
|
|
21339
|
-
}
|
|
21340
|
-
var init_simple_marketplace = __esm({
|
|
21341
|
-
"src/core/instructions/simple-marketplace.ts"() {
|
|
21342
|
-
init_types2();
|
|
21343
|
-
init_utils();
|
|
21344
|
-
}
|
|
21345
|
-
});
|
|
21346
|
-
|
|
21347
|
-
// src/core/instructions/fixed-marketplace.ts
|
|
21348
|
-
var fixed_marketplace_exports = {};
|
|
21349
|
-
__export(fixed_marketplace_exports, {
|
|
21350
|
-
createFixedServiceListingInstruction: () => createFixedServiceListingInstruction
|
|
21351
|
-
});
|
|
21352
|
-
function serializeServiceListingData(data) {
|
|
21353
|
-
const titleBytes = serializeString(data.title, 32);
|
|
21354
|
-
const descriptionBytes = serializeString(data.description, 64);
|
|
21355
|
-
const priceBytes = new Uint8Array(8);
|
|
21356
|
-
new DataView(priceBytes.buffer).setBigUint64(0, data.price, true);
|
|
21357
|
-
const tokenMintBytes = data.tokenMint;
|
|
21358
|
-
const serviceTypeBytes = serializeString(data.serviceType, 16);
|
|
21359
|
-
const paymentTokenBytes = data.paymentToken;
|
|
21360
|
-
const deliveryBytes = new Uint8Array(8);
|
|
21361
|
-
new DataView(deliveryBytes.buffer).setBigInt64(0, data.estimatedDelivery, true);
|
|
21362
|
-
const tagsBytes = serializeVec(data.tags, (tag) => serializeString(tag, 16));
|
|
21363
|
-
const totalSize = titleBytes.length + descriptionBytes.length + priceBytes.length + tokenMintBytes.length + serviceTypeBytes.length + paymentTokenBytes.length + deliveryBytes.length + tagsBytes.length;
|
|
21364
|
-
const structData = new Uint8Array(totalSize);
|
|
21365
|
-
let offset = 0;
|
|
21366
|
-
structData.set(titleBytes, offset);
|
|
21367
|
-
offset += titleBytes.length;
|
|
21368
|
-
structData.set(descriptionBytes, offset);
|
|
21369
|
-
offset += descriptionBytes.length;
|
|
21370
|
-
structData.set(priceBytes, offset);
|
|
21371
|
-
offset += priceBytes.length;
|
|
21372
|
-
structData.set(tokenMintBytes, offset);
|
|
21373
|
-
offset += tokenMintBytes.length;
|
|
21374
|
-
structData.set(serviceTypeBytes, offset);
|
|
21375
|
-
offset += serviceTypeBytes.length;
|
|
21376
|
-
structData.set(paymentTokenBytes, offset);
|
|
21377
|
-
offset += paymentTokenBytes.length;
|
|
21378
|
-
structData.set(deliveryBytes, offset);
|
|
21379
|
-
offset += deliveryBytes.length;
|
|
21380
|
-
structData.set(tagsBytes, offset);
|
|
21381
|
-
return structData;
|
|
21382
|
-
}
|
|
21383
|
-
async function createFixedServiceListingInstruction(creator, agentId, listingId, title, description, price) {
|
|
21384
|
-
const encoder = getAddressEncoder$1();
|
|
21385
|
-
const agentPda = await deriveAgentPda2(creator.address, "");
|
|
21386
|
-
const [listingPda] = await getProgramDerivedAddress$1({
|
|
21387
|
-
programAddress: GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS,
|
|
21388
|
-
seeds: [
|
|
21389
|
-
Buffer.from("service_listing"),
|
|
21390
|
-
encoder.encode(creator.address),
|
|
21391
|
-
Buffer.from("")
|
|
21392
|
-
// Empty string - Rust program bug
|
|
21393
|
-
]
|
|
21394
|
-
});
|
|
21395
|
-
const [userRegistryPda] = await getProgramDerivedAddress$1({
|
|
21396
|
-
programAddress: GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS,
|
|
21397
|
-
seeds: [
|
|
21398
|
-
Buffer.from("user_registry"),
|
|
21399
|
-
encoder.encode(creator.address)
|
|
21400
|
-
]
|
|
21401
|
-
});
|
|
21402
|
-
const accounts = [
|
|
21403
|
-
{ address: listingPda, role: AccountRole.WRITABLE },
|
|
21404
|
-
{ address: agentPda, role: AccountRole.READONLY },
|
|
21405
|
-
{ address: userRegistryPda, role: AccountRole.WRITABLE },
|
|
21406
|
-
{ address: creator.address, role: AccountRole.WRITABLE_SIGNER },
|
|
21407
|
-
{ address: "11111111111111111111111111111111", role: AccountRole.READONLY },
|
|
21408
|
-
{ address: "SysvarC1ock11111111111111111111111111111111", role: AccountRole.READONLY }
|
|
21409
|
-
];
|
|
21410
|
-
const discriminator = new Uint8Array([91, 37, 216, 26, 93, 146, 13, 182]);
|
|
21411
|
-
const structData = serializeServiceListingData({
|
|
21412
|
-
title: title.substring(0, 16),
|
|
21413
|
-
description: description.substring(0, 32),
|
|
21414
|
-
price,
|
|
21415
|
-
tokenMint: new Uint8Array(32),
|
|
21416
|
-
// Zero pubkey
|
|
21417
|
-
serviceType: "Service",
|
|
21418
|
-
paymentToken: new Uint8Array(32),
|
|
21419
|
-
// Zero pubkey
|
|
21420
|
-
estimatedDelivery: BigInt(3600),
|
|
21421
|
-
// 1 hour
|
|
21422
|
-
tags: ["svc"]
|
|
21423
|
-
// Single tag
|
|
21424
|
-
});
|
|
21425
|
-
const listingIdBytes = serializeString(listingId.toString().substring(0, 8), 12);
|
|
21426
|
-
const data = new Uint8Array(discriminator.length + structData.length + listingIdBytes.length);
|
|
21427
|
-
let offset = 0;
|
|
21428
|
-
data.set(discriminator, offset);
|
|
21429
|
-
offset += discriminator.length;
|
|
21430
|
-
data.set(structData, offset);
|
|
21431
|
-
offset += structData.length;
|
|
21432
|
-
data.set(listingIdBytes, offset);
|
|
21433
|
-
console.log("\u{1F4CA} FIXED INSTRUCTION ANALYSIS:");
|
|
21434
|
-
console.log("- Total size:", data.length, "bytes");
|
|
21435
|
-
console.log("- Discriminator:", discriminator.length, "bytes");
|
|
21436
|
-
console.log("- Struct data:", structData.length, "bytes");
|
|
21437
|
-
console.log("- Parameter:", listingIdBytes.length, "bytes");
|
|
21438
|
-
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(" "));
|
|
21439
|
-
return {
|
|
21440
|
-
programAddress: GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS,
|
|
21441
|
-
accounts,
|
|
21442
|
-
data
|
|
21443
|
-
};
|
|
21444
|
-
}
|
|
21445
|
-
var init_fixed_marketplace = __esm({
|
|
21446
|
-
"src/core/instructions/fixed-marketplace.ts"() {
|
|
21447
|
-
init_types2();
|
|
21448
|
-
init_utils();
|
|
21449
|
-
}
|
|
21450
|
-
});
|
|
21451
20932
|
|
|
21452
|
-
// src/
|
|
21453
|
-
|
|
20933
|
+
// src/types/index.ts
|
|
20934
|
+
init_generated();
|
|
20935
|
+
init_programs();
|
|
21454
20936
|
|
|
21455
20937
|
// src/client/instructions/AgentInstructions.ts
|
|
21456
20938
|
init_generated();
|
|
@@ -21545,11 +21027,122 @@ function logTransactionDetails(result) {
|
|
|
21545
21027
|
console.log(` \u26A1 XRAY (Helius): ${result.urls.xray}`);
|
|
21546
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");
|
|
21547
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
|
+
};
|
|
21548
21140
|
|
|
21549
21141
|
// src/client/instructions/BaseInstructions.ts
|
|
21550
21142
|
var BaseInstructions = class {
|
|
21551
21143
|
config;
|
|
21552
21144
|
_sendAndConfirmTransaction = null;
|
|
21145
|
+
_rpcClient = null;
|
|
21553
21146
|
constructor(config) {
|
|
21554
21147
|
this.config = config;
|
|
21555
21148
|
}
|
|
@@ -21559,6 +21152,18 @@ var BaseInstructions = class {
|
|
|
21559
21152
|
get rpc() {
|
|
21560
21153
|
return this.config.rpc;
|
|
21561
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
|
+
}
|
|
21562
21167
|
/**
|
|
21563
21168
|
* Get the RPC subscriptions client
|
|
21564
21169
|
*/
|
|
@@ -21575,18 +21180,29 @@ var BaseInstructions = class {
|
|
|
21575
21180
|
* Get the commitment level
|
|
21576
21181
|
*/
|
|
21577
21182
|
get commitment() {
|
|
21578
|
-
return this.config.commitment
|
|
21183
|
+
return this.config.commitment ?? "confirmed";
|
|
21579
21184
|
}
|
|
21580
21185
|
/**
|
|
21581
21186
|
* Get or create the send and confirm transaction function using factory pattern
|
|
21582
21187
|
*/
|
|
21583
21188
|
getSendAndConfirmTransaction() {
|
|
21584
21189
|
if (!this._sendAndConfirmTransaction) {
|
|
21585
|
-
const factoryConfig = { rpc: this.rpc };
|
|
21586
21190
|
if (this.rpcSubscriptions) {
|
|
21587
|
-
factoryConfig
|
|
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
|
+
});
|
|
21588
21205
|
}
|
|
21589
|
-
this._sendAndConfirmTransaction = sendAndConfirmTransactionFactory(factoryConfig);
|
|
21590
21206
|
}
|
|
21591
21207
|
return this._sendAndConfirmTransaction;
|
|
21592
21208
|
}
|
|
@@ -21617,7 +21233,8 @@ var BaseInstructions = class {
|
|
|
21617
21233
|
throw new Error(`Instruction at index ${i} accounts is not an array`);
|
|
21618
21234
|
}
|
|
21619
21235
|
}
|
|
21620
|
-
const
|
|
21236
|
+
const rpcClient = this.getRpcClient();
|
|
21237
|
+
const latestBlockhash = await rpcClient.getLatestBlockhash();
|
|
21621
21238
|
const transactionMessage = await pipe(
|
|
21622
21239
|
createTransactionMessage({ version: 0 }),
|
|
21623
21240
|
(tx) => setTransactionMessageFeePayerSigner(signers[0], tx),
|
|
@@ -21628,10 +21245,11 @@ var BaseInstructions = class {
|
|
|
21628
21245
|
let result;
|
|
21629
21246
|
let signature;
|
|
21630
21247
|
if (!this.rpcSubscriptions) {
|
|
21631
|
-
const
|
|
21248
|
+
const wireTransaction = getBase64EncodedWireTransaction(signedTransaction);
|
|
21249
|
+
const transactionSignature = await rpcClient.sendTransaction(wireTransaction, {
|
|
21632
21250
|
skipPreflight: false,
|
|
21633
21251
|
preflightCommitment: this.commitment
|
|
21634
|
-
})
|
|
21252
|
+
});
|
|
21635
21253
|
let confirmed = false;
|
|
21636
21254
|
let attempts = 0;
|
|
21637
21255
|
const maxAttempts = 30;
|
|
@@ -21639,10 +21257,10 @@ var BaseInstructions = class {
|
|
|
21639
21257
|
let currentDelay = baseDelay;
|
|
21640
21258
|
while (!confirmed && attempts < maxAttempts) {
|
|
21641
21259
|
try {
|
|
21642
|
-
const
|
|
21643
|
-
if (
|
|
21644
|
-
const confirmationStatus =
|
|
21645
|
-
const err =
|
|
21260
|
+
const statuses = await rpcClient.getSignatureStatuses([transactionSignature]);
|
|
21261
|
+
if (statuses[0]) {
|
|
21262
|
+
const confirmationStatus = statuses[0].confirmationStatus;
|
|
21263
|
+
const err = statuses[0].err;
|
|
21646
21264
|
if (err) {
|
|
21647
21265
|
throw new Error(`Transaction failed: ${JSON.stringify(err)}`);
|
|
21648
21266
|
}
|
|
@@ -21657,11 +21275,12 @@ var BaseInstructions = class {
|
|
|
21657
21275
|
await new Promise((resolve) => setTimeout(resolve, currentDelay));
|
|
21658
21276
|
currentDelay = Math.min(currentDelay * 1.5, 5e3);
|
|
21659
21277
|
} catch (statusError) {
|
|
21660
|
-
|
|
21278
|
+
const errorMessage = statusError instanceof Error ? statusError.message : String(statusError);
|
|
21279
|
+
if (errorMessage.includes("Transaction failed")) {
|
|
21661
21280
|
throw statusError;
|
|
21662
21281
|
}
|
|
21663
21282
|
attempts++;
|
|
21664
|
-
console.warn(`\u26A0\uFE0F Status check failed (${attempts}/${maxAttempts}): ${
|
|
21283
|
+
console.warn(`\u26A0\uFE0F Status check failed (${attempts}/${maxAttempts}): ${errorMessage}`);
|
|
21665
21284
|
await new Promise((resolve) => setTimeout(resolve, currentDelay * 2));
|
|
21666
21285
|
}
|
|
21667
21286
|
}
|
|
@@ -21688,7 +21307,7 @@ var BaseInstructions = class {
|
|
|
21688
21307
|
throw new Error("Transaction result missing signature");
|
|
21689
21308
|
}
|
|
21690
21309
|
}
|
|
21691
|
-
const cluster = this.config.cluster
|
|
21310
|
+
const cluster = this.config.cluster ?? (this.config.rpcEndpoint ? detectClusterFromEndpoint(this.config.rpcEndpoint) : "devnet");
|
|
21692
21311
|
const transactionResult = createTransactionResult(
|
|
21693
21312
|
signature,
|
|
21694
21313
|
cluster,
|
|
@@ -21707,19 +21326,19 @@ var BaseInstructions = class {
|
|
|
21707
21326
|
async estimateTransactionCost(instructions, feePayer) {
|
|
21708
21327
|
try {
|
|
21709
21328
|
console.log(`\u{1F4B0} Estimating REAL cost for ${instructions.length} instructions`);
|
|
21710
|
-
const
|
|
21329
|
+
const rpcClient = this.getRpcClient();
|
|
21330
|
+
const latestBlockhash = await rpcClient.getLatestBlockhash();
|
|
21711
21331
|
const transactionMessage = await pipe(
|
|
21712
21332
|
createTransactionMessage({ version: 0 }),
|
|
21713
|
-
(tx) => setTransactionMessageFeePayer(feePayer
|
|
21333
|
+
(tx) => setTransactionMessageFeePayer(feePayer ?? this.config.defaultFeePayer, tx),
|
|
21714
21334
|
(tx) => setTransactionMessageLifetimeUsingBlockhash(latestBlockhash, tx),
|
|
21715
21335
|
(tx) => appendTransactionMessageInstructions(instructions, tx)
|
|
21716
21336
|
);
|
|
21717
21337
|
const compiledMessage = compileTransactionMessage(transactionMessage);
|
|
21718
|
-
const
|
|
21719
|
-
|
|
21720
|
-
}).send();
|
|
21338
|
+
const encodedMessage = Buffer.from(compiledMessage).toString("base64");
|
|
21339
|
+
const fee = await rpcClient.getFeeForMessage(encodedMessage);
|
|
21721
21340
|
console.log(`\u{1F4B3} Real estimated fee: ${fee} lamports`);
|
|
21722
|
-
return BigInt(fee
|
|
21341
|
+
return BigInt(fee ?? 0);
|
|
21723
21342
|
} catch (error) {
|
|
21724
21343
|
console.warn("\u26A0\uFE0F Real fee estimation failed, using fallback:", error);
|
|
21725
21344
|
const baseFee = 5000n;
|
|
@@ -21733,7 +21352,8 @@ var BaseInstructions = class {
|
|
|
21733
21352
|
async simulateTransaction(instructions, signers) {
|
|
21734
21353
|
try {
|
|
21735
21354
|
console.log(`\u{1F9EA} Running REAL simulation with ${instructions.length} instructions`);
|
|
21736
|
-
const
|
|
21355
|
+
const rpcClient = this.getRpcClient();
|
|
21356
|
+
const latestBlockhash = await rpcClient.getLatestBlockhash();
|
|
21737
21357
|
const transactionMessage = await pipe(
|
|
21738
21358
|
createTransactionMessage({ version: 0 }),
|
|
21739
21359
|
(tx) => setTransactionMessageFeePayerSigner(signers[0], tx),
|
|
@@ -21741,15 +21361,15 @@ var BaseInstructions = class {
|
|
|
21741
21361
|
(tx) => appendTransactionMessageInstructions(instructions, tx)
|
|
21742
21362
|
);
|
|
21743
21363
|
const signedTransaction = await signTransactionMessageWithSigners(transactionMessage);
|
|
21744
|
-
const
|
|
21364
|
+
const wireTransaction = getBase64EncodedWireTransaction(signedTransaction);
|
|
21365
|
+
const simulation = await rpcClient.simulateTransaction(wireTransaction, {
|
|
21745
21366
|
commitment: this.commitment,
|
|
21746
|
-
encoding: "base64",
|
|
21747
21367
|
replaceRecentBlockhash: true
|
|
21748
|
-
})
|
|
21368
|
+
});
|
|
21749
21369
|
console.log(`\u2705 Real simulation completed:`);
|
|
21750
21370
|
console.log(` Success: ${!simulation.err}`);
|
|
21751
|
-
console.log(` Compute units: ${simulation.unitsConsumed
|
|
21752
|
-
console.log(` Logs: ${simulation.logs?.length
|
|
21371
|
+
console.log(` Compute units: ${simulation.unitsConsumed ?? "N/A"}`);
|
|
21372
|
+
console.log(` Logs: ${simulation.logs?.length ?? 0} entries`);
|
|
21753
21373
|
return simulation;
|
|
21754
21374
|
} catch (error) {
|
|
21755
21375
|
console.error("\u274C Real simulation failed:", error);
|
|
@@ -21781,7 +21401,8 @@ var BaseInstructions = class {
|
|
|
21781
21401
|
*/
|
|
21782
21402
|
async buildTransactionMessage(instructions, feePayer) {
|
|
21783
21403
|
console.log("\u{1F3D7}\uFE0F Building transaction message without sending...");
|
|
21784
|
-
const
|
|
21404
|
+
const rpcClient = this.getRpcClient();
|
|
21405
|
+
const latestBlockhash = await rpcClient.getLatestBlockhash();
|
|
21785
21406
|
const transactionMessage = await pipe(
|
|
21786
21407
|
createTransactionMessage({ version: 0 }),
|
|
21787
21408
|
(tx) => setTransactionMessageFeePayer(feePayer, tx),
|
|
@@ -21797,14 +21418,112 @@ var BaseInstructions = class {
|
|
|
21797
21418
|
logInstructionDetails(instruction) {
|
|
21798
21419
|
console.log(`\u{1F4CB} Instruction Details:`);
|
|
21799
21420
|
console.log(` Program: ${instruction.programAddress}`);
|
|
21800
|
-
console.log(` Accounts: ${instruction.accounts?.length
|
|
21801
|
-
console.log(` Data size: ${instruction.data?.length
|
|
21421
|
+
console.log(` Accounts: ${instruction.accounts?.length ?? 0}`);
|
|
21422
|
+
console.log(` Data size: ${instruction.data?.length ?? 0} bytes`);
|
|
21802
21423
|
if (instruction.accounts) {
|
|
21803
21424
|
instruction.accounts.forEach((account, index) => {
|
|
21804
21425
|
console.log(` Account ${index}: ${JSON.stringify(account)}`);
|
|
21805
21426
|
});
|
|
21806
21427
|
}
|
|
21807
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
|
+
}
|
|
21808
21527
|
};
|
|
21809
21528
|
|
|
21810
21529
|
// src/client/instructions/AgentInstructions.ts
|
|
@@ -21815,17 +21534,15 @@ var AgentInstructions = class extends BaseInstructions {
|
|
|
21815
21534
|
/**
|
|
21816
21535
|
* Register a new AI agent
|
|
21817
21536
|
*/
|
|
21818
|
-
async register(signer,
|
|
21537
|
+
async register(signer, params) {
|
|
21819
21538
|
const agentType = typeof params.agentType === "number" && !isNaN(params.agentType) ? params.agentType : 1;
|
|
21820
21539
|
try {
|
|
21821
|
-
const instruction =
|
|
21822
|
-
agentAccount: agentAddress,
|
|
21823
|
-
userRegistry: userRegistryAddress,
|
|
21540
|
+
const instruction = await getRegisterAgentInstructionAsync({
|
|
21824
21541
|
signer,
|
|
21825
21542
|
agentType,
|
|
21826
21543
|
metadataUri: params.metadataUri,
|
|
21827
21544
|
agentId: params.agentId
|
|
21828
|
-
});
|
|
21545
|
+
}, { programAddress: this.programId });
|
|
21829
21546
|
this.logInstructionDetails(instruction);
|
|
21830
21547
|
const signature = await this.sendTransaction([instruction], [signer]);
|
|
21831
21548
|
return signature;
|
|
@@ -21867,96 +21584,60 @@ var AgentInstructions = class extends BaseInstructions {
|
|
|
21867
21584
|
* Deactivate an agent
|
|
21868
21585
|
*/
|
|
21869
21586
|
async deactivate(signer, agentAddress, agentId) {
|
|
21870
|
-
|
|
21871
|
-
|
|
21587
|
+
return this.executeInstruction(
|
|
21588
|
+
() => getDeactivateAgentInstruction({
|
|
21589
|
+
agentAccount: agentAddress,
|
|
21590
|
+
signer,
|
|
21591
|
+
agentId
|
|
21592
|
+
}),
|
|
21872
21593
|
signer,
|
|
21873
|
-
|
|
21874
|
-
|
|
21875
|
-
return this.sendTransaction([instruction], [signer]);
|
|
21594
|
+
"agent deactivation"
|
|
21595
|
+
);
|
|
21876
21596
|
}
|
|
21877
21597
|
/**
|
|
21878
21598
|
* Activate an agent
|
|
21879
21599
|
*/
|
|
21880
21600
|
async activate(signer, agentAddress, agentId) {
|
|
21881
|
-
|
|
21882
|
-
|
|
21601
|
+
return this.executeInstruction(
|
|
21602
|
+
() => getActivateAgentInstruction({
|
|
21603
|
+
agentAccount: agentAddress,
|
|
21604
|
+
signer,
|
|
21605
|
+
agentId
|
|
21606
|
+
}),
|
|
21883
21607
|
signer,
|
|
21884
|
-
|
|
21885
|
-
|
|
21886
|
-
return this.sendTransaction([instruction], [signer]);
|
|
21608
|
+
"agent activation"
|
|
21609
|
+
);
|
|
21887
21610
|
}
|
|
21888
21611
|
/**
|
|
21889
|
-
* Get agent account information using
|
|
21612
|
+
* Get agent account information using centralized pattern
|
|
21890
21613
|
*/
|
|
21891
21614
|
async getAccount(agentAddress) {
|
|
21892
|
-
|
|
21893
|
-
const { GhostSpeakRpcClient: GhostSpeakRpcClient2 } = await Promise.resolve().then(() => (init_rpc(), rpc_exports));
|
|
21894
|
-
const { getAgentDecoder: getAgentDecoder2 } = await Promise.resolve().then(() => (init_generated(), generated_exports));
|
|
21895
|
-
const rpcClient = new GhostSpeakRpcClient2(this.rpc);
|
|
21896
|
-
const agent = await rpcClient.getAndDecodeAccount(
|
|
21897
|
-
agentAddress,
|
|
21898
|
-
getAgentDecoder2(),
|
|
21899
|
-
this.commitment
|
|
21900
|
-
);
|
|
21901
|
-
return agent;
|
|
21902
|
-
} catch (error) {
|
|
21903
|
-
console.warn("Failed to fetch agent account:", error);
|
|
21904
|
-
return null;
|
|
21905
|
-
}
|
|
21615
|
+
return this.getDecodedAccount(agentAddress, "getAgentDecoder");
|
|
21906
21616
|
}
|
|
21907
21617
|
/**
|
|
21908
|
-
* Get all agents (with pagination) using
|
|
21618
|
+
* Get all agents (with pagination) using centralized pattern
|
|
21909
21619
|
*/
|
|
21910
21620
|
async getAllAgents(limit = 100, offset = 0) {
|
|
21911
|
-
|
|
21912
|
-
|
|
21913
|
-
|
|
21914
|
-
const rpcClient = new GhostSpeakRpcClient2(this.rpc);
|
|
21915
|
-
const accounts = await rpcClient.getAndDecodeProgramAccounts(
|
|
21916
|
-
this.programId,
|
|
21917
|
-
getAgentDecoder2(),
|
|
21918
|
-
[],
|
|
21919
|
-
// No filters - get all agents
|
|
21920
|
-
this.commitment
|
|
21921
|
-
);
|
|
21922
|
-
const paginatedAccounts = accounts.slice(offset, offset + limit);
|
|
21923
|
-
return paginatedAccounts.map(({ data }) => data);
|
|
21924
|
-
} catch (error) {
|
|
21925
|
-
console.warn("Failed to fetch all agents:", error);
|
|
21926
|
-
return [];
|
|
21927
|
-
}
|
|
21621
|
+
const accounts = await this.getDecodedProgramAccounts("getAgentDecoder");
|
|
21622
|
+
const paginatedAccounts = accounts.slice(offset, offset + limit);
|
|
21623
|
+
return paginatedAccounts.map(({ data }) => data);
|
|
21928
21624
|
}
|
|
21929
21625
|
/**
|
|
21930
|
-
* Search agents by capabilities using
|
|
21626
|
+
* Search agents by capabilities using centralized pattern
|
|
21931
21627
|
*/
|
|
21932
21628
|
async searchByCapabilities(capabilities) {
|
|
21933
|
-
|
|
21934
|
-
|
|
21935
|
-
|
|
21936
|
-
|
|
21937
|
-
|
|
21938
|
-
|
|
21939
|
-
getAgentDecoder2(),
|
|
21940
|
-
[],
|
|
21941
|
-
// No RPC filters - filtering client-side for now
|
|
21942
|
-
this.commitment
|
|
21943
|
-
);
|
|
21944
|
-
const filteredAgents = accounts.map(({ data }) => data).filter(
|
|
21945
|
-
(agent) => capabilities.some(
|
|
21946
|
-
(capability) => agent.capabilities?.includes(capability)
|
|
21947
|
-
)
|
|
21948
|
-
);
|
|
21949
|
-
return filteredAgents;
|
|
21950
|
-
} catch (error) {
|
|
21951
|
-
console.warn("Failed to search agents by capabilities:", error);
|
|
21952
|
-
return [];
|
|
21953
|
-
}
|
|
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
|
+
);
|
|
21954
21635
|
}
|
|
21955
21636
|
/**
|
|
21956
21637
|
* List agents (alias for getAllAgents for CLI compatibility)
|
|
21957
21638
|
*/
|
|
21958
21639
|
async list(options = {}) {
|
|
21959
|
-
return this.getAllAgents(options.limit
|
|
21640
|
+
return this.getAllAgents(options.limit ?? 100, options.offset ?? 0);
|
|
21960
21641
|
}
|
|
21961
21642
|
/**
|
|
21962
21643
|
* Search agents (alias for searchByCapabilities for CLI compatibility)
|
|
@@ -21968,8 +21649,8 @@ var AgentInstructions = class extends BaseInstructions {
|
|
|
21968
21649
|
* Find the PDA for an agent account
|
|
21969
21650
|
*/
|
|
21970
21651
|
async findAgentPDA(owner, agentId) {
|
|
21971
|
-
const { deriveAgentPda:
|
|
21972
|
-
return
|
|
21652
|
+
const { deriveAgentPda: deriveAgentPda2 } = await Promise.resolve().then(() => (init_pda(), pda_exports));
|
|
21653
|
+
return deriveAgentPda2(this.programId, owner, agentId);
|
|
21973
21654
|
}
|
|
21974
21655
|
/**
|
|
21975
21656
|
* Get an agent by address (alias for getAccount for CLI compatibility)
|
|
@@ -21981,23 +21662,8 @@ var AgentInstructions = class extends BaseInstructions {
|
|
|
21981
21662
|
* List agents by owner
|
|
21982
21663
|
*/
|
|
21983
21664
|
async listByOwner(options) {
|
|
21984
|
-
|
|
21985
|
-
|
|
21986
|
-
const { getAgentDecoder: getAgentDecoder2 } = await Promise.resolve().then(() => (init_generated(), generated_exports));
|
|
21987
|
-
const rpcClient = new GhostSpeakRpcClient2(this.rpc);
|
|
21988
|
-
const accounts = await rpcClient.getAndDecodeProgramAccounts(
|
|
21989
|
-
this.programId,
|
|
21990
|
-
getAgentDecoder2(),
|
|
21991
|
-
[],
|
|
21992
|
-
// Could use memcmp filter here for efficiency
|
|
21993
|
-
this.commitment
|
|
21994
|
-
);
|
|
21995
|
-
const ownerAgents = accounts.map(({ data, address: address2 }) => ({ ...data, address: address2 })).filter((agent) => agent.owner?.toString() === options.owner.toString());
|
|
21996
|
-
return ownerAgents;
|
|
21997
|
-
} catch (error) {
|
|
21998
|
-
console.warn("Failed to fetch agents by owner:", error);
|
|
21999
|
-
return [];
|
|
22000
|
-
}
|
|
21665
|
+
const accounts = await this.getDecodedProgramAccounts("getAgentDecoder");
|
|
21666
|
+
return accounts.map(({ data }) => data).filter((agent) => agent.owner?.toString() === options.owner.toString());
|
|
22001
21667
|
}
|
|
22002
21668
|
/**
|
|
22003
21669
|
* Get agent status details
|
|
@@ -22008,9 +21674,10 @@ var AgentInstructions = class extends BaseInstructions {
|
|
|
22008
21674
|
throw new Error("Agent not found");
|
|
22009
21675
|
}
|
|
22010
21676
|
return {
|
|
22011
|
-
jobsCompleted: agent.
|
|
22012
|
-
totalEarnings: agent.totalEarnings
|
|
22013
|
-
successRate: agent.
|
|
21677
|
+
jobsCompleted: agent.totalJobsCompleted ?? 0,
|
|
21678
|
+
totalEarnings: agent.totalEarnings ?? 0n,
|
|
21679
|
+
successRate: agent.reputationScore ?? 100,
|
|
21680
|
+
// Use reputation score as proxy for success rate
|
|
22014
21681
|
lastActive: agent.isActive ? BigInt(Date.now()) : null,
|
|
22015
21682
|
currentJob: null
|
|
22016
21683
|
// Would need to fetch from work order accounts
|
|
@@ -22025,25 +21692,112 @@ var MarketplaceInstructions = class extends BaseInstructions {
|
|
|
22025
21692
|
super(config);
|
|
22026
21693
|
}
|
|
22027
21694
|
/**
|
|
22028
|
-
*
|
|
21695
|
+
* Resolve service listing parameters with smart defaults
|
|
22029
21696
|
*/
|
|
22030
|
-
async
|
|
22031
|
-
const
|
|
22032
|
-
|
|
22033
|
-
|
|
22034
|
-
userRegistry: userRegistryAddress,
|
|
22035
|
-
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 {
|
|
22036
21701
|
title: params.title,
|
|
22037
21702
|
description: params.description,
|
|
22038
|
-
|
|
22039
|
-
tokenMint: params.tokenMint,
|
|
22040
|
-
serviceType: params.serviceType,
|
|
22041
|
-
paymentToken: params.paymentToken,
|
|
22042
|
-
estimatedDelivery: params.estimatedDelivery,
|
|
22043
|
-
|
|
22044
|
-
|
|
22045
|
-
|
|
22046
|
-
|
|
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
|
+
);
|
|
22047
21801
|
}
|
|
22048
21802
|
/**
|
|
22049
21803
|
* Update a service listing
|
|
@@ -22060,13 +21814,13 @@ var MarketplaceInstructions = class extends BaseInstructions {
|
|
|
22060
21814
|
agent: listing.agent,
|
|
22061
21815
|
owner: signer,
|
|
22062
21816
|
agentPubkey: listing.agent,
|
|
22063
|
-
serviceEndpoint: updateData.title
|
|
21817
|
+
serviceEndpoint: updateData.title ?? `${listing.title} - ${listing.description}`,
|
|
22064
21818
|
isActive: listing.isActive,
|
|
22065
21819
|
lastUpdated: BigInt(Math.floor(Date.now() / 1e3)),
|
|
22066
|
-
metadataUri: updateData.description
|
|
22067
|
-
capabilities: updateData.tags
|
|
21820
|
+
metadataUri: updateData.description ?? listing.description,
|
|
21821
|
+
capabilities: updateData.tags ?? []
|
|
22068
21822
|
});
|
|
22069
|
-
return this.sendTransaction([instruction], [signer]);
|
|
21823
|
+
return await this.sendTransaction([instruction], [signer]);
|
|
22070
21824
|
} catch (error) {
|
|
22071
21825
|
console.warn("Failed to update service listing via agent service:", error);
|
|
22072
21826
|
throw new Error("Service listing updates require implementing updateServiceListing instruction in the smart contract, or create a new listing");
|
|
@@ -22075,163 +21829,123 @@ var MarketplaceInstructions = class extends BaseInstructions {
|
|
|
22075
21829
|
/**
|
|
22076
21830
|
* Purchase a service
|
|
22077
21831
|
*/
|
|
22078
|
-
async purchaseService(
|
|
22079
|
-
const
|
|
22080
|
-
|
|
22081
|
-
|
|
22082
|
-
|
|
22083
|
-
|
|
22084
|
-
|
|
22085
|
-
|
|
22086
|
-
|
|
22087
|
-
|
|
22088
|
-
|
|
22089
|
-
|
|
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
|
+
);
|
|
22090
21848
|
}
|
|
22091
21849
|
/**
|
|
22092
21850
|
* Create a new job posting
|
|
22093
21851
|
*/
|
|
22094
|
-
async createJobPosting(
|
|
22095
|
-
const
|
|
22096
|
-
|
|
22097
|
-
|
|
22098
|
-
|
|
22099
|
-
|
|
22100
|
-
|
|
22101
|
-
|
|
22102
|
-
|
|
22103
|
-
|
|
22104
|
-
|
|
22105
|
-
|
|
22106
|
-
|
|
22107
|
-
|
|
22108
|
-
|
|
22109
|
-
|
|
22110
|
-
|
|
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
|
+
);
|
|
22111
21873
|
}
|
|
22112
21874
|
/**
|
|
22113
21875
|
* Apply to a job
|
|
22114
21876
|
*/
|
|
22115
|
-
async applyToJob(
|
|
22116
|
-
const
|
|
22117
|
-
|
|
22118
|
-
|
|
22119
|
-
|
|
22120
|
-
|
|
22121
|
-
|
|
22122
|
-
|
|
22123
|
-
|
|
22124
|
-
|
|
22125
|
-
|
|
22126
|
-
|
|
22127
|
-
|
|
22128
|
-
|
|
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
|
+
);
|
|
22129
21895
|
}
|
|
22130
21896
|
/**
|
|
22131
21897
|
* Accept a job application
|
|
22132
21898
|
*/
|
|
22133
21899
|
async acceptJobApplication(signer, jobContractAddress, jobPostingAddress, jobApplicationAddress) {
|
|
22134
|
-
|
|
22135
|
-
|
|
22136
|
-
|
|
22137
|
-
|
|
22138
|
-
|
|
22139
|
-
|
|
22140
|
-
|
|
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
|
+
);
|
|
22141
21910
|
}
|
|
22142
21911
|
/**
|
|
22143
21912
|
* Get a single service listing
|
|
22144
21913
|
*/
|
|
22145
21914
|
async getServiceListing(listingAddress) {
|
|
22146
|
-
|
|
22147
|
-
const { GhostSpeakRpcClient: GhostSpeakRpcClient2 } = await Promise.resolve().then(() => (init_rpc(), rpc_exports));
|
|
22148
|
-
const { getServiceListingDecoder: getServiceListingDecoder2 } = await Promise.resolve().then(() => (init_generated(), generated_exports));
|
|
22149
|
-
const rpcClient = new GhostSpeakRpcClient2(this.rpc);
|
|
22150
|
-
const listing = await rpcClient.getAndDecodeAccount(
|
|
22151
|
-
listingAddress,
|
|
22152
|
-
getServiceListingDecoder2(),
|
|
22153
|
-
this.commitment
|
|
22154
|
-
);
|
|
22155
|
-
return listing;
|
|
22156
|
-
} catch (error) {
|
|
22157
|
-
console.warn("Failed to fetch service listing:", error);
|
|
22158
|
-
return null;
|
|
22159
|
-
}
|
|
21915
|
+
return this.getDecodedAccount(listingAddress, "getServiceListingDecoder");
|
|
22160
21916
|
}
|
|
22161
21917
|
/**
|
|
22162
21918
|
* Get all active service listings
|
|
22163
21919
|
*/
|
|
22164
21920
|
async getServiceListings() {
|
|
22165
|
-
|
|
22166
|
-
|
|
22167
|
-
const { getServiceListingDecoder: getServiceListingDecoder2 } = await Promise.resolve().then(() => (init_generated(), generated_exports));
|
|
22168
|
-
const rpcClient = new GhostSpeakRpcClient2(this.rpc);
|
|
22169
|
-
const accounts = await rpcClient.getAndDecodeProgramAccounts(
|
|
22170
|
-
this.programId,
|
|
22171
|
-
getServiceListingDecoder2(),
|
|
22172
|
-
[],
|
|
22173
|
-
// No filters - get all listings
|
|
22174
|
-
this.commitment
|
|
22175
|
-
);
|
|
22176
|
-
const activeListings = accounts.map(({ data }) => data).filter((listing) => listing.isActive);
|
|
22177
|
-
return activeListings;
|
|
22178
|
-
} catch (error) {
|
|
22179
|
-
console.warn("Failed to fetch service listings:", error);
|
|
22180
|
-
return [];
|
|
22181
|
-
}
|
|
21921
|
+
const accounts = await this.getDecodedProgramAccounts("getServiceListingDecoder");
|
|
21922
|
+
return accounts.map(({ data }) => data).filter((listing) => listing.isActive);
|
|
22182
21923
|
}
|
|
22183
21924
|
/**
|
|
22184
21925
|
* Get all active job postings
|
|
22185
21926
|
*/
|
|
22186
21927
|
async getJobPostings() {
|
|
22187
|
-
|
|
22188
|
-
|
|
22189
|
-
const { getJobPostingDecoder: getJobPostingDecoder2 } = await Promise.resolve().then(() => (init_generated(), generated_exports));
|
|
22190
|
-
const rpcClient = new GhostSpeakRpcClient2(this.rpc);
|
|
22191
|
-
const accounts = await rpcClient.getAndDecodeProgramAccounts(
|
|
22192
|
-
this.programId,
|
|
22193
|
-
getJobPostingDecoder2(),
|
|
22194
|
-
[],
|
|
22195
|
-
// No filters - get all postings
|
|
22196
|
-
this.commitment
|
|
22197
|
-
);
|
|
22198
|
-
const activePostings = accounts.map(({ data }) => data).filter((posting) => posting.isActive);
|
|
22199
|
-
return activePostings;
|
|
22200
|
-
} catch (error) {
|
|
22201
|
-
console.warn("Failed to fetch job postings:", error);
|
|
22202
|
-
return [];
|
|
22203
|
-
}
|
|
21928
|
+
const accounts = await this.getDecodedProgramAccounts("getJobPostingDecoder");
|
|
21929
|
+
return accounts.map(({ data }) => data).filter((posting) => posting.isActive);
|
|
22204
21930
|
}
|
|
22205
21931
|
/**
|
|
22206
21932
|
* Search service listings by category
|
|
22207
21933
|
*/
|
|
22208
21934
|
async searchServicesByCategory(category) {
|
|
22209
|
-
|
|
22210
|
-
|
|
22211
|
-
|
|
22212
|
-
|
|
22213
|
-
);
|
|
22214
|
-
return filteredListings;
|
|
22215
|
-
} catch (error) {
|
|
22216
|
-
console.warn("Failed to search services by category:", error);
|
|
22217
|
-
return [];
|
|
22218
|
-
}
|
|
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
|
+
);
|
|
22219
21939
|
}
|
|
22220
21940
|
/**
|
|
22221
21941
|
* Search job postings by budget range
|
|
22222
21942
|
*/
|
|
22223
21943
|
async searchJobsByBudget(minBudget, maxBudget) {
|
|
22224
|
-
|
|
22225
|
-
|
|
22226
|
-
const
|
|
22227
|
-
|
|
22228
|
-
|
|
22229
|
-
});
|
|
22230
|
-
return filteredPostings;
|
|
22231
|
-
} catch (error) {
|
|
22232
|
-
console.warn("Failed to search jobs by budget:", error);
|
|
22233
|
-
return [];
|
|
22234
|
-
}
|
|
21944
|
+
const allPostings = await this.getJobPostings();
|
|
21945
|
+
return allPostings.filter((posting) => {
|
|
21946
|
+
const budget = posting.budget ?? 0n;
|
|
21947
|
+
return budget >= minBudget && budget <= maxBudget;
|
|
21948
|
+
});
|
|
22235
21949
|
}
|
|
22236
21950
|
};
|
|
22237
21951
|
|
|
@@ -22242,48 +21956,107 @@ var EscrowInstructions = class extends BaseInstructions {
|
|
|
22242
21956
|
super(config);
|
|
22243
21957
|
}
|
|
22244
21958
|
/**
|
|
22245
|
-
*
|
|
21959
|
+
* Resolve escrow creation parameters with smart defaults
|
|
22246
21960
|
*/
|
|
22247
|
-
async
|
|
22248
|
-
const
|
|
22249
|
-
|
|
22250
|
-
client: signer,
|
|
22251
|
-
orderId: params.orderId,
|
|
22252
|
-
provider: params.provider,
|
|
21961
|
+
async _resolveCreateParams(params) {
|
|
21962
|
+
const defaultPaymentToken = "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v";
|
|
21963
|
+
return {
|
|
22253
21964
|
title: params.title,
|
|
22254
21965
|
description: params.description,
|
|
22255
|
-
|
|
22256
|
-
|
|
22257
|
-
|
|
22258
|
-
|
|
22259
|
-
|
|
22260
|
-
|
|
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
|
+
);
|
|
22261
22030
|
}
|
|
22262
22031
|
/**
|
|
22263
22032
|
* Release escrow funds by submitting work delivery
|
|
22264
22033
|
*/
|
|
22265
|
-
async release(
|
|
22266
|
-
const
|
|
22267
|
-
|
|
22268
|
-
|
|
22269
|
-
|
|
22270
|
-
|
|
22271
|
-
|
|
22272
|
-
|
|
22273
|
-
|
|
22274
|
-
|
|
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
|
+
);
|
|
22275
22048
|
}
|
|
22276
22049
|
/**
|
|
22277
22050
|
* Cancel escrow and refund to buyer
|
|
22278
22051
|
*/
|
|
22279
22052
|
async cancel(signer, escrowAddress) {
|
|
22280
22053
|
console.warn("Work order cancellation requires dispute resolution. Use dispute() method instead.");
|
|
22281
|
-
return this.dispute(signer, escrowAddress, "Buyer requested cancellation");
|
|
22054
|
+
return this.dispute({ signer, escrowAddress, reason: "Buyer requested cancellation" });
|
|
22282
22055
|
}
|
|
22283
22056
|
/**
|
|
22284
22057
|
* Dispute an escrow (requires arbitration)
|
|
22285
22058
|
*/
|
|
22286
|
-
async dispute(
|
|
22059
|
+
async dispute(params) {
|
|
22287
22060
|
try {
|
|
22288
22061
|
const { getFileDisputeInstruction: getFileDisputeInstruction2 } = await Promise.resolve().then(() => (init_generated(), generated_exports));
|
|
22289
22062
|
const timestamp = BigInt(Math.floor(Date.now() / 1e3));
|
|
@@ -22291,23 +22064,26 @@ var EscrowInstructions = class extends BaseInstructions {
|
|
|
22291
22064
|
const [disputeAddress] = await findProgramDerivedAddress2(
|
|
22292
22065
|
[
|
|
22293
22066
|
"dispute",
|
|
22294
|
-
escrowAddress,
|
|
22067
|
+
params.escrowAddress,
|
|
22295
22068
|
timestamp.toString()
|
|
22296
22069
|
],
|
|
22297
22070
|
this.programId
|
|
22298
22071
|
);
|
|
22299
|
-
|
|
22300
|
-
|
|
22301
|
-
|
|
22302
|
-
|
|
22303
|
-
|
|
22304
|
-
|
|
22305
|
-
|
|
22306
|
-
|
|
22307
|
-
|
|
22308
|
-
|
|
22309
|
-
|
|
22310
|
-
|
|
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
|
+
);
|
|
22311
22087
|
} catch (error) {
|
|
22312
22088
|
console.warn("Dispute filing failed. This may indicate the smart contract needs additional implementation:", error);
|
|
22313
22089
|
return `mock_dispute_${Date.now()}_${Math.random().toString(36).substring(7)}`;
|
|
@@ -22316,86 +22092,52 @@ var EscrowInstructions = class extends BaseInstructions {
|
|
|
22316
22092
|
/**
|
|
22317
22093
|
* Process payment through escrow
|
|
22318
22094
|
*/
|
|
22319
|
-
async processPayment(
|
|
22320
|
-
const
|
|
22321
|
-
|
|
22322
|
-
|
|
22323
|
-
|
|
22324
|
-
|
|
22325
|
-
|
|
22326
|
-
|
|
22327
|
-
|
|
22328
|
-
|
|
22329
|
-
|
|
22330
|
-
|
|
22331
|
-
|
|
22332
|
-
|
|
22333
|
-
|
|
22334
|
-
|
|
22335
|
-
|
|
22336
|
-
async getAccount(workOrderAddress) {
|
|
22337
|
-
try {
|
|
22338
|
-
const { GhostSpeakRpcClient: GhostSpeakRpcClient2 } = await Promise.resolve().then(() => (init_rpc(), rpc_exports));
|
|
22339
|
-
const { getWorkOrderDecoder: getWorkOrderDecoder2 } = await Promise.resolve().then(() => (init_generated(), generated_exports));
|
|
22340
|
-
const rpcClient = new GhostSpeakRpcClient2(this.rpc);
|
|
22341
|
-
const workOrder = await rpcClient.getAndDecodeAccount(
|
|
22342
|
-
workOrderAddress,
|
|
22343
|
-
getWorkOrderDecoder2(),
|
|
22344
|
-
this.commitment
|
|
22345
|
-
);
|
|
22346
|
-
return workOrder;
|
|
22347
|
-
} catch (error) {
|
|
22348
|
-
console.warn("Failed to fetch work order account:", error);
|
|
22349
|
-
return null;
|
|
22350
|
-
}
|
|
22351
|
-
}
|
|
22352
|
-
/**
|
|
22353
|
-
* Get all escrows for a user using 2025 patterns
|
|
22354
|
-
*/
|
|
22355
|
-
async getEscrowsForUser(userAddress) {
|
|
22356
|
-
try {
|
|
22357
|
-
const { GhostSpeakRpcClient: GhostSpeakRpcClient2 } = await Promise.resolve().then(() => (init_rpc(), rpc_exports));
|
|
22358
|
-
const { getWorkOrderDecoder: getWorkOrderDecoder2 } = await Promise.resolve().then(() => (init_generated(), generated_exports));
|
|
22359
|
-
const rpcClient = new GhostSpeakRpcClient2(this.rpc);
|
|
22360
|
-
const accounts = await rpcClient.getAndDecodeProgramAccounts(
|
|
22361
|
-
this.programId,
|
|
22362
|
-
getWorkOrderDecoder2(),
|
|
22363
|
-
[],
|
|
22364
|
-
// No RPC filters - filtering client-side
|
|
22365
|
-
this.commitment
|
|
22366
|
-
);
|
|
22367
|
-
const userWorkOrders = accounts.map(({ data }) => data).filter(
|
|
22368
|
-
(workOrder) => workOrder.client === userAddress || workOrder.provider === userAddress
|
|
22369
|
-
);
|
|
22370
|
-
return userWorkOrders;
|
|
22371
|
-
} catch (error) {
|
|
22372
|
-
console.warn("Failed to fetch user escrows:", error);
|
|
22373
|
-
return [];
|
|
22374
|
-
}
|
|
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
|
+
);
|
|
22375
22112
|
}
|
|
22376
22113
|
/**
|
|
22377
|
-
* Get
|
|
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
|
|
22378
22130
|
*/
|
|
22379
22131
|
async getActiveEscrows() {
|
|
22132
|
+
const accounts = await this.getDecodedProgramAccounts("getWorkOrderDecoder");
|
|
22380
22133
|
try {
|
|
22381
|
-
const { GhostSpeakRpcClient: GhostSpeakRpcClient2 } = await Promise.resolve().then(() => (init_rpc(), rpc_exports));
|
|
22382
|
-
const { getWorkOrderDecoder: getWorkOrderDecoder2 } = await Promise.resolve().then(() => (init_generated(), generated_exports));
|
|
22383
|
-
const rpcClient = new GhostSpeakRpcClient2(this.rpc);
|
|
22384
|
-
const accounts = await rpcClient.getAndDecodeProgramAccounts(
|
|
22385
|
-
this.programId,
|
|
22386
|
-
getWorkOrderDecoder2(),
|
|
22387
|
-
[],
|
|
22388
|
-
// No RPC filters - filtering client-side
|
|
22389
|
-
this.commitment
|
|
22390
|
-
);
|
|
22391
22134
|
const { WorkOrderStatus: WorkOrderStatus2 } = await Promise.resolve().then(() => (init_generated(), generated_exports));
|
|
22392
|
-
|
|
22135
|
+
return accounts.map(({ data }) => data).filter(
|
|
22393
22136
|
(workOrder) => workOrder.status === WorkOrderStatus2.Open || workOrder.status === WorkOrderStatus2.InProgress || workOrder.status === WorkOrderStatus2.Submitted
|
|
22394
22137
|
);
|
|
22395
|
-
return activeWorkOrders;
|
|
22396
22138
|
} catch (error) {
|
|
22397
|
-
console.warn("Failed to
|
|
22398
|
-
return
|
|
22139
|
+
console.warn("Failed to load WorkOrderStatus enum, returning all escrows:", error);
|
|
22140
|
+
return accounts.map(({ data }) => data);
|
|
22399
22141
|
}
|
|
22400
22142
|
}
|
|
22401
22143
|
};
|
|
@@ -22410,68 +22152,92 @@ var A2AInstructions = class extends BaseInstructions {
|
|
|
22410
22152
|
/**
|
|
22411
22153
|
* Create a new A2A communication session
|
|
22412
22154
|
*/
|
|
22413
|
-
async createSession(
|
|
22414
|
-
|
|
22415
|
-
|
|
22416
|
-
|
|
22417
|
-
|
|
22418
|
-
|
|
22419
|
-
|
|
22420
|
-
|
|
22421
|
-
|
|
22422
|
-
|
|
22423
|
-
|
|
22424
|
-
|
|
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
|
+
);
|
|
22425
22170
|
}
|
|
22426
22171
|
/**
|
|
22427
22172
|
* Send a message in an A2A session
|
|
22428
22173
|
*/
|
|
22429
|
-
async sendMessage(
|
|
22430
|
-
|
|
22431
|
-
|
|
22432
|
-
|
|
22433
|
-
|
|
22434
|
-
|
|
22435
|
-
|
|
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;
|
|
22436
22219
|
}
|
|
22437
|
-
const sessionBuffer = Buffer.from(accountInfo.value.data[0], "base64");
|
|
22438
|
-
const sessionCreatedAt = sessionBuffer.readBigInt64LE(8);
|
|
22439
|
-
const messageAddress = await deriveA2AMessagePda(
|
|
22440
|
-
this.programId,
|
|
22441
|
-
sessionAddress,
|
|
22442
|
-
sessionCreatedAt
|
|
22443
|
-
);
|
|
22444
|
-
const instruction = getSendA2aMessageInstruction({
|
|
22445
|
-
message: messageAddress,
|
|
22446
|
-
session: sessionAddress,
|
|
22447
|
-
sender: signer,
|
|
22448
|
-
messageId: params.messageId,
|
|
22449
|
-
sessionId: params.sessionId,
|
|
22450
|
-
senderArg: params.sender,
|
|
22451
|
-
// Renamed to avoid conflict
|
|
22452
|
-
content: params.content,
|
|
22453
|
-
messageType: params.messageType,
|
|
22454
|
-
timestamp: params.timestamp
|
|
22455
|
-
});
|
|
22456
|
-
return this.sendTransaction([instruction], [signer]);
|
|
22457
22220
|
}
|
|
22458
22221
|
/**
|
|
22459
22222
|
* Update A2A status
|
|
22460
22223
|
*/
|
|
22461
|
-
async updateStatus(
|
|
22462
|
-
|
|
22463
|
-
|
|
22464
|
-
|
|
22465
|
-
|
|
22466
|
-
|
|
22467
|
-
|
|
22468
|
-
|
|
22469
|
-
|
|
22470
|
-
|
|
22471
|
-
|
|
22472
|
-
|
|
22473
|
-
|
|
22474
|
-
|
|
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
|
+
);
|
|
22475
22241
|
}
|
|
22476
22242
|
/**
|
|
22477
22243
|
* Close an A2A session
|
|
@@ -22482,84 +22248,43 @@ var A2AInstructions = class extends BaseInstructions {
|
|
|
22482
22248
|
throw new Error("Session not found");
|
|
22483
22249
|
}
|
|
22484
22250
|
return this.updateStatus(
|
|
22485
|
-
signer,
|
|
22486
22251
|
sessionAddress,
|
|
22487
22252
|
// Using session address as status address for simplicity
|
|
22488
|
-
|
|
22489
|
-
|
|
22490
|
-
|
|
22491
|
-
|
|
22492
|
-
|
|
22493
|
-
|
|
22494
|
-
|
|
22495
|
-
|
|
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
|
+
}
|
|
22496
22264
|
);
|
|
22497
22265
|
}
|
|
22498
22266
|
/**
|
|
22499
22267
|
* Get A2A session information
|
|
22500
22268
|
*/
|
|
22501
22269
|
async getSession(sessionAddress) {
|
|
22502
|
-
|
|
22503
|
-
const { GhostSpeakRpcClient: GhostSpeakRpcClient2 } = await Promise.resolve().then(() => (init_rpc(), rpc_exports));
|
|
22504
|
-
const { getA2ASessionDecoder: getA2ASessionDecoder2 } = await Promise.resolve().then(() => (init_generated(), generated_exports));
|
|
22505
|
-
const rpcClient = new GhostSpeakRpcClient2(this.rpc);
|
|
22506
|
-
const session = await rpcClient.getAndDecodeAccount(
|
|
22507
|
-
sessionAddress,
|
|
22508
|
-
getA2ASessionDecoder2(),
|
|
22509
|
-
this.commitment
|
|
22510
|
-
);
|
|
22511
|
-
return session;
|
|
22512
|
-
} catch (error) {
|
|
22513
|
-
console.warn("Failed to fetch A2A session:", error);
|
|
22514
|
-
return null;
|
|
22515
|
-
}
|
|
22270
|
+
return this.getDecodedAccount(sessionAddress, "getA2ASessionDecoder");
|
|
22516
22271
|
}
|
|
22517
22272
|
/**
|
|
22518
22273
|
* Get all messages in an A2A session
|
|
22519
22274
|
*/
|
|
22520
22275
|
async getMessages(sessionAddress) {
|
|
22521
|
-
|
|
22522
|
-
|
|
22523
|
-
const { getA2AMessageDecoder: getA2AMessageDecoder2 } = await Promise.resolve().then(() => (init_generated(), generated_exports));
|
|
22524
|
-
const rpcClient = new GhostSpeakRpcClient2(this.rpc);
|
|
22525
|
-
const accounts = await rpcClient.getAndDecodeProgramAccounts(
|
|
22526
|
-
this.programId,
|
|
22527
|
-
getA2AMessageDecoder2(),
|
|
22528
|
-
[],
|
|
22529
|
-
// No RPC filters - filtering client-side for session
|
|
22530
|
-
this.commitment
|
|
22531
|
-
);
|
|
22532
|
-
const sessionMessages = accounts.map(({ data }) => data).filter((message) => message.session === sessionAddress).sort((a, b) => Number(a.sentAt - b.sentAt));
|
|
22533
|
-
return sessionMessages;
|
|
22534
|
-
} catch (error) {
|
|
22535
|
-
console.warn("Failed to fetch A2A messages:", error);
|
|
22536
|
-
return [];
|
|
22537
|
-
}
|
|
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));
|
|
22538
22278
|
}
|
|
22539
22279
|
/**
|
|
22540
22280
|
* Get all active sessions for an agent
|
|
22541
22281
|
*/
|
|
22542
22282
|
async getActiveSessions(agentAddress) {
|
|
22543
|
-
|
|
22544
|
-
|
|
22545
|
-
|
|
22546
|
-
|
|
22547
|
-
|
|
22548
|
-
this.programId,
|
|
22549
|
-
getA2ASessionDecoder2(),
|
|
22550
|
-
[],
|
|
22551
|
-
// No RPC filters - filtering client-side
|
|
22552
|
-
this.commitment
|
|
22553
|
-
);
|
|
22554
|
-
const currentTimestamp = BigInt(Math.floor(Date.now() / 1e3));
|
|
22555
|
-
const activeSessions = accounts.map(({ data }) => data).filter(
|
|
22556
|
-
(session) => (session.initiator === agentAddress || session.responder === agentAddress) && session.isActive && (session.expiresAt === 0n || session.expiresAt > currentTimestamp)
|
|
22557
|
-
);
|
|
22558
|
-
return activeSessions;
|
|
22559
|
-
} catch (error) {
|
|
22560
|
-
console.warn("Failed to fetch active A2A sessions:", error);
|
|
22561
|
-
return [];
|
|
22562
|
-
}
|
|
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
|
+
);
|
|
22563
22288
|
}
|
|
22564
22289
|
/**
|
|
22565
22290
|
* Subscribe to new messages in a session (real-time)
|
|
@@ -22630,56 +22355,60 @@ var AuctionInstructions = class extends BaseInstructions {
|
|
|
22630
22355
|
* )
|
|
22631
22356
|
* ```
|
|
22632
22357
|
*/
|
|
22633
|
-
async createServiceAuction(
|
|
22358
|
+
async createServiceAuction(auctionPda, userRegistry, params) {
|
|
22634
22359
|
console.log("\u{1F3D7}\uFE0F Creating service auction...");
|
|
22635
22360
|
console.log(` Auction Type: ${params.auctionData.auctionType}`);
|
|
22636
22361
|
console.log(` Starting Price: ${params.auctionData.startingPrice} lamports`);
|
|
22637
22362
|
console.log(` Reserve Price: ${params.auctionData.reservePrice} lamports`);
|
|
22638
22363
|
console.log(` Duration: ${Number(params.auctionData.auctionEndTime - BigInt(Math.floor(Date.now() / 1e3)))} seconds`);
|
|
22639
22364
|
this.validateCreateAuctionParams(params);
|
|
22640
|
-
|
|
22641
|
-
|
|
22642
|
-
|
|
22643
|
-
|
|
22644
|
-
|
|
22645
|
-
|
|
22646
|
-
|
|
22647
|
-
|
|
22648
|
-
|
|
22649
|
-
|
|
22650
|
-
|
|
22651
|
-
|
|
22652
|
-
|
|
22653
|
-
|
|
22654
|
-
|
|
22655
|
-
|
|
22656
|
-
|
|
22657
|
-
|
|
22658
|
-
|
|
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
|
+
);
|
|
22659
22385
|
}
|
|
22660
22386
|
/**
|
|
22661
22387
|
* Create auction with full transaction details and URLs
|
|
22662
22388
|
*/
|
|
22663
|
-
async createServiceAuctionWithDetails(
|
|
22389
|
+
async createServiceAuctionWithDetails(auctionPda, userRegistry, params) {
|
|
22664
22390
|
console.log("\u{1F3D7}\uFE0F Creating service auction with detailed results...");
|
|
22665
22391
|
this.validateCreateAuctionParams(params);
|
|
22666
|
-
|
|
22667
|
-
|
|
22668
|
-
|
|
22669
|
-
|
|
22670
|
-
|
|
22671
|
-
|
|
22672
|
-
|
|
22673
|
-
|
|
22674
|
-
|
|
22675
|
-
|
|
22676
|
-
|
|
22677
|
-
|
|
22678
|
-
|
|
22679
|
-
|
|
22680
|
-
|
|
22681
|
-
|
|
22682
|
-
|
|
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
|
+
);
|
|
22683
22412
|
}
|
|
22684
22413
|
// =====================================================
|
|
22685
22414
|
// BIDDING
|
|
@@ -22709,46 +22438,50 @@ var AuctionInstructions = class extends BaseInstructions {
|
|
|
22709
22438
|
* )
|
|
22710
22439
|
* ```
|
|
22711
22440
|
*/
|
|
22712
|
-
async placeAuctionBid(
|
|
22441
|
+
async placeAuctionBid(userRegistry, params) {
|
|
22713
22442
|
console.log("\u{1F4B0} Placing auction bid...");
|
|
22714
|
-
console.log(` Auction: ${auction}`);
|
|
22443
|
+
console.log(` Auction: ${params.auction}`);
|
|
22715
22444
|
console.log(` Bid Amount: ${params.bidAmount} lamports`);
|
|
22716
|
-
const auctionData = await this.getAuction(auction);
|
|
22445
|
+
const auctionData = await this.getAuction(params.auction);
|
|
22717
22446
|
if (!auctionData) {
|
|
22718
22447
|
throw new Error("Auction not found");
|
|
22719
22448
|
}
|
|
22720
22449
|
this.validateBidParams(params, auctionData);
|
|
22721
|
-
|
|
22722
|
-
|
|
22723
|
-
|
|
22724
|
-
|
|
22725
|
-
|
|
22726
|
-
|
|
22727
|
-
|
|
22728
|
-
|
|
22729
|
-
|
|
22730
|
-
|
|
22731
|
-
|
|
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
|
+
);
|
|
22732
22462
|
}
|
|
22733
22463
|
/**
|
|
22734
22464
|
* Place bid with detailed transaction results
|
|
22735
22465
|
*/
|
|
22736
|
-
async placeAuctionBidWithDetails(
|
|
22466
|
+
async placeAuctionBidWithDetails(userRegistry, params) {
|
|
22737
22467
|
console.log("\u{1F4B0} Placing auction bid with detailed results...");
|
|
22738
|
-
const auctionData = await this.getAuction(auction);
|
|
22468
|
+
const auctionData = await this.getAuction(params.auction);
|
|
22739
22469
|
if (!auctionData) {
|
|
22740
22470
|
throw new Error("Auction not found");
|
|
22741
22471
|
}
|
|
22742
22472
|
this.validateBidParams(params, auctionData);
|
|
22743
|
-
|
|
22744
|
-
|
|
22745
|
-
|
|
22746
|
-
|
|
22747
|
-
|
|
22748
|
-
|
|
22749
|
-
|
|
22750
|
-
|
|
22751
|
-
|
|
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
|
+
);
|
|
22752
22485
|
}
|
|
22753
22486
|
// =====================================================
|
|
22754
22487
|
// AUCTION FINALIZATION
|
|
@@ -22771,39 +22504,43 @@ var AuctionInstructions = class extends BaseInstructions {
|
|
|
22771
22504
|
* )
|
|
22772
22505
|
* ```
|
|
22773
22506
|
*/
|
|
22774
|
-
async finalizeAuction(
|
|
22507
|
+
async finalizeAuction(params) {
|
|
22775
22508
|
console.log("\u{1F3C1} Finalizing auction...");
|
|
22776
|
-
console.log(` Auction: ${auction}`);
|
|
22777
|
-
const auctionData = await this.getAuction(auction);
|
|
22509
|
+
console.log(` Auction: ${params.auction}`);
|
|
22510
|
+
const auctionData = await this.getAuction(params.auction);
|
|
22778
22511
|
if (!auctionData) {
|
|
22779
22512
|
throw new Error("Auction not found");
|
|
22780
22513
|
}
|
|
22781
22514
|
this.validateAuctionCanBeFinalized(auctionData);
|
|
22782
|
-
|
|
22783
|
-
|
|
22784
|
-
|
|
22785
|
-
|
|
22786
|
-
|
|
22787
|
-
|
|
22788
|
-
|
|
22789
|
-
|
|
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
|
+
);
|
|
22790
22524
|
}
|
|
22791
22525
|
/**
|
|
22792
22526
|
* Finalize auction with detailed transaction results
|
|
22793
22527
|
*/
|
|
22794
|
-
async finalizeAuctionWithDetails(
|
|
22528
|
+
async finalizeAuctionWithDetails(params) {
|
|
22795
22529
|
console.log("\u{1F3C1} Finalizing auction with detailed results...");
|
|
22796
|
-
const auctionData = await this.getAuction(auction);
|
|
22530
|
+
const auctionData = await this.getAuction(params.auction);
|
|
22797
22531
|
if (!auctionData) {
|
|
22798
22532
|
throw new Error("Auction not found");
|
|
22799
22533
|
}
|
|
22800
22534
|
this.validateAuctionCanBeFinalized(auctionData);
|
|
22801
|
-
|
|
22802
|
-
|
|
22803
|
-
|
|
22804
|
-
|
|
22805
|
-
|
|
22806
|
-
|
|
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
|
+
);
|
|
22807
22544
|
}
|
|
22808
22545
|
// =====================================================
|
|
22809
22546
|
// AUCTION QUERYING & MONITORING
|
|
@@ -22815,19 +22552,7 @@ var AuctionInstructions = class extends BaseInstructions {
|
|
|
22815
22552
|
* @returns Auction account data or null if not found
|
|
22816
22553
|
*/
|
|
22817
22554
|
async getAuction(auctionAddress) {
|
|
22818
|
-
|
|
22819
|
-
const { GhostSpeakRpcClient: GhostSpeakRpcClient2 } = await Promise.resolve().then(() => (init_rpc(), rpc_exports));
|
|
22820
|
-
const rpcClient = new GhostSpeakRpcClient2(this.rpc);
|
|
22821
|
-
const auction = await rpcClient.getAndDecodeAccount(
|
|
22822
|
-
auctionAddress,
|
|
22823
|
-
getAuctionMarketplaceDecoder(),
|
|
22824
|
-
this.commitment
|
|
22825
|
-
);
|
|
22826
|
-
return auction;
|
|
22827
|
-
} catch (error) {
|
|
22828
|
-
console.warn(`Failed to fetch auction ${auctionAddress}:`, error);
|
|
22829
|
-
return null;
|
|
22830
|
-
}
|
|
22555
|
+
return this.getDecodedAccount(auctionAddress, "getAuctionMarketplaceDecoder");
|
|
22831
22556
|
}
|
|
22832
22557
|
/**
|
|
22833
22558
|
* Get auction summary with computed fields
|
|
@@ -22883,23 +22608,10 @@ var AuctionInstructions = class extends BaseInstructions {
|
|
|
22883
22608
|
*/
|
|
22884
22609
|
async listAuctions(filter, limit = 50) {
|
|
22885
22610
|
console.log("\u{1F4CB} Listing auctions...");
|
|
22886
|
-
|
|
22887
|
-
|
|
22888
|
-
|
|
22889
|
-
|
|
22890
|
-
this.programId,
|
|
22891
|
-
getAuctionMarketplaceDecoder(),
|
|
22892
|
-
[],
|
|
22893
|
-
// No RPC filters - filtering client-side
|
|
22894
|
-
this.commitment
|
|
22895
|
-
);
|
|
22896
|
-
let auctions = accounts.map(({ address: address2, data }) => this.auctionToSummary(address2, data)).filter((summary) => this.applyAuctionFilter(summary, filter)).slice(0, limit);
|
|
22897
|
-
console.log(`\u2705 Found ${auctions.length} auctions`);
|
|
22898
|
-
return auctions;
|
|
22899
|
-
} catch (error) {
|
|
22900
|
-
console.warn("Failed to list auctions:", error);
|
|
22901
|
-
return [];
|
|
22902
|
-
}
|
|
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;
|
|
22903
22615
|
}
|
|
22904
22616
|
/**
|
|
22905
22617
|
* Get active auctions ending soon
|
|
@@ -22981,7 +22693,7 @@ var AuctionInstructions = class extends BaseInstructions {
|
|
|
22981
22693
|
}
|
|
22982
22694
|
const currentPrice = auction.currentPrice;
|
|
22983
22695
|
const increment = auction.minimumBidIncrement;
|
|
22984
|
-
const timeRemaining = auction.timeRemaining
|
|
22696
|
+
const timeRemaining = auction.timeRemaining ?? 0n;
|
|
22985
22697
|
switch (strategy) {
|
|
22986
22698
|
case "conservative":
|
|
22987
22699
|
return currentPrice + increment;
|
|
@@ -23052,10 +22764,6 @@ var AuctionInstructions = class extends BaseInstructions {
|
|
|
23052
22764
|
auctionToSummary(auctionAddress, auction) {
|
|
23053
22765
|
const now = BigInt(Math.floor(Date.now() / 1e3));
|
|
23054
22766
|
const timeRemaining = auction.auctionEndTime > now ? auction.auctionEndTime - now : 0n;
|
|
23055
|
-
now >= auction.auctionEndTime;
|
|
23056
|
-
const hasBids = auction.bids.length > 0;
|
|
23057
|
-
hasBids ? auction.bids[auction.bids.length - 1] : null;
|
|
23058
|
-
const currentPrice = auction.currentPrice;
|
|
23059
22767
|
return {
|
|
23060
22768
|
auction: auctionAddress,
|
|
23061
22769
|
agent: auction.agent,
|
|
@@ -23063,7 +22771,7 @@ var AuctionInstructions = class extends BaseInstructions {
|
|
|
23063
22771
|
auctionType: auction.auctionType,
|
|
23064
22772
|
startingPrice: auction.startingPrice,
|
|
23065
22773
|
reservePrice: auction.reservePrice,
|
|
23066
|
-
currentPrice,
|
|
22774
|
+
currentPrice: auction.currentPrice,
|
|
23067
22775
|
currentWinner: auction.currentWinner?.__option === "Some" ? auction.currentWinner.value : void 0,
|
|
23068
22776
|
winner: auction.winner?.__option === "Some" ? auction.winner.value : void 0,
|
|
23069
22777
|
auctionEndTime: auction.auctionEndTime,
|
|
@@ -23133,7 +22841,7 @@ var DisputeInstructions = class extends BaseInstructions {
|
|
|
23133
22841
|
const instruction = getFileDisputeInstruction({
|
|
23134
22842
|
dispute: disputePda,
|
|
23135
22843
|
transaction: params.transaction,
|
|
23136
|
-
userRegistry: params.userRegistry
|
|
22844
|
+
userRegistry: params.userRegistry ?? await this.deriveUserRegistry(complainant),
|
|
23137
22845
|
complainant,
|
|
23138
22846
|
respondent: params.respondent,
|
|
23139
22847
|
systemProgram: "11111111111111111111111111111112",
|
|
@@ -23153,7 +22861,7 @@ var DisputeInstructions = class extends BaseInstructions {
|
|
|
23153
22861
|
const instruction = getFileDisputeInstruction({
|
|
23154
22862
|
dispute: disputePda,
|
|
23155
22863
|
transaction: params.transaction,
|
|
23156
|
-
userRegistry: params.userRegistry
|
|
22864
|
+
userRegistry: params.userRegistry ?? await this.deriveUserRegistry(complainant),
|
|
23157
22865
|
complainant,
|
|
23158
22866
|
respondent: params.respondent,
|
|
23159
22867
|
systemProgram: "11111111111111111111111111111112",
|
|
@@ -23202,7 +22910,7 @@ var DisputeInstructions = class extends BaseInstructions {
|
|
|
23202
22910
|
this.validateEvidenceSubmissionAllowed(disputeData);
|
|
23203
22911
|
const instruction = getSubmitDisputeEvidenceInstruction({
|
|
23204
22912
|
dispute: params.dispute,
|
|
23205
|
-
userRegistry: params.userRegistry
|
|
22913
|
+
userRegistry: params.userRegistry ?? await this.deriveUserRegistry(submitter),
|
|
23206
22914
|
submitter,
|
|
23207
22915
|
clock: "SysvarC1ock11111111111111111111111111111111",
|
|
23208
22916
|
evidenceType: params.evidenceType,
|
|
@@ -23225,7 +22933,7 @@ var DisputeInstructions = class extends BaseInstructions {
|
|
|
23225
22933
|
this.validateEvidenceSubmissionAllowed(disputeData);
|
|
23226
22934
|
const instruction = getSubmitDisputeEvidenceInstruction({
|
|
23227
22935
|
dispute: params.dispute,
|
|
23228
|
-
userRegistry: params.userRegistry
|
|
22936
|
+
userRegistry: params.userRegistry ?? await this.deriveUserRegistry(submitter),
|
|
23229
22937
|
submitter,
|
|
23230
22938
|
clock: "SysvarC1ock11111111111111111111111111111111",
|
|
23231
22939
|
evidenceType: params.evidenceType,
|
|
@@ -23272,7 +22980,7 @@ var DisputeInstructions = class extends BaseInstructions {
|
|
|
23272
22980
|
this.validateDisputeCanBeResolved(disputeData);
|
|
23273
22981
|
const instruction = getResolveDisputeInstruction({
|
|
23274
22982
|
dispute: params.dispute,
|
|
23275
|
-
arbitratorRegistry: params.userRegistry
|
|
22983
|
+
arbitratorRegistry: params.userRegistry ?? await this.deriveUserRegistry(moderator),
|
|
23276
22984
|
arbitrator: moderator,
|
|
23277
22985
|
clock: "SysvarC1ock11111111111111111111111111111111",
|
|
23278
22986
|
resolution: params.resolution,
|
|
@@ -23295,7 +23003,7 @@ var DisputeInstructions = class extends BaseInstructions {
|
|
|
23295
23003
|
this.validateDisputeCanBeResolved(disputeData);
|
|
23296
23004
|
const instruction = getResolveDisputeInstruction({
|
|
23297
23005
|
dispute: params.dispute,
|
|
23298
|
-
arbitratorRegistry: params.userRegistry
|
|
23006
|
+
arbitratorRegistry: params.userRegistry ?? await this.deriveUserRegistry(moderator),
|
|
23299
23007
|
arbitrator: moderator,
|
|
23300
23008
|
clock: "SysvarC1ock11111111111111111111111111111111",
|
|
23301
23009
|
resolution: params.resolution,
|
|
@@ -23313,19 +23021,10 @@ var DisputeInstructions = class extends BaseInstructions {
|
|
|
23313
23021
|
* @returns Dispute account data or null if not found
|
|
23314
23022
|
*/
|
|
23315
23023
|
async getDispute(disputeAddress) {
|
|
23316
|
-
|
|
23317
|
-
|
|
23318
|
-
|
|
23319
|
-
|
|
23320
|
-
disputeAddress,
|
|
23321
|
-
getDisputeCaseDecoder(),
|
|
23322
|
-
this.commitment
|
|
23323
|
-
);
|
|
23324
|
-
return dispute;
|
|
23325
|
-
} catch (error) {
|
|
23326
|
-
console.warn(`Failed to fetch dispute ${disputeAddress}:`, error);
|
|
23327
|
-
return null;
|
|
23328
|
-
}
|
|
23024
|
+
return this.getDecodedAccount(
|
|
23025
|
+
disputeAddress,
|
|
23026
|
+
"getDisputeCaseDecoder"
|
|
23027
|
+
);
|
|
23329
23028
|
}
|
|
23330
23029
|
/**
|
|
23331
23030
|
* Get dispute summary with computed fields
|
|
@@ -23377,14 +23076,10 @@ var DisputeInstructions = class extends BaseInstructions {
|
|
|
23377
23076
|
async listDisputes(filter, limit = 50) {
|
|
23378
23077
|
console.log("\u{1F4CB} Listing disputes...");
|
|
23379
23078
|
try {
|
|
23380
|
-
const
|
|
23381
|
-
|
|
23382
|
-
|
|
23383
|
-
this.programId,
|
|
23384
|
-
getDisputeCaseDecoder(),
|
|
23385
|
-
[],
|
|
23079
|
+
const accounts = await this.getDecodedProgramAccounts(
|
|
23080
|
+
"getDisputeCaseDecoder",
|
|
23081
|
+
[]
|
|
23386
23082
|
// No RPC filters - filtering client-side
|
|
23387
|
-
this.commitment
|
|
23388
23083
|
);
|
|
23389
23084
|
let disputes = accounts.map(({ address: address2, data }) => this.disputeToSummary(address2, data)).filter((summary) => this.applyDisputeFilter(summary, filter)).slice(0, limit);
|
|
23390
23085
|
console.log(`\u2705 Found ${disputes.length} disputes`);
|
|
@@ -23513,6 +23208,7 @@ var DisputeInstructions = class extends BaseInstructions {
|
|
|
23513
23208
|
}
|
|
23514
23209
|
}
|
|
23515
23210
|
async deriveUserRegistry(user) {
|
|
23211
|
+
console.log(`Deriving user registry for ${user}`);
|
|
23516
23212
|
return "11111111111111111111111111111111";
|
|
23517
23213
|
}
|
|
23518
23214
|
disputeToSummary(disputeAddress, dispute) {
|
|
@@ -23769,19 +23465,10 @@ var GovernanceInstructions = class extends BaseInstructions {
|
|
|
23769
23465
|
* @returns Multisig account data or null if not found
|
|
23770
23466
|
*/
|
|
23771
23467
|
async getMultisig(multisigAddress) {
|
|
23772
|
-
|
|
23773
|
-
|
|
23774
|
-
|
|
23775
|
-
|
|
23776
|
-
multisigAddress,
|
|
23777
|
-
getMultisigDecoder(),
|
|
23778
|
-
this.commitment
|
|
23779
|
-
);
|
|
23780
|
-
return multisig;
|
|
23781
|
-
} catch (error) {
|
|
23782
|
-
console.warn(`Failed to fetch multisig ${multisigAddress}:`, error);
|
|
23783
|
-
return null;
|
|
23784
|
-
}
|
|
23468
|
+
return this.getDecodedAccount(
|
|
23469
|
+
multisigAddress,
|
|
23470
|
+
"getMultisigDecoder"
|
|
23471
|
+
);
|
|
23785
23472
|
}
|
|
23786
23473
|
/**
|
|
23787
23474
|
* Get proposal account data
|
|
@@ -23790,19 +23477,10 @@ var GovernanceInstructions = class extends BaseInstructions {
|
|
|
23790
23477
|
* @returns Proposal account data or null if not found
|
|
23791
23478
|
*/
|
|
23792
23479
|
async getProposal(proposalAddress) {
|
|
23793
|
-
|
|
23794
|
-
|
|
23795
|
-
|
|
23796
|
-
|
|
23797
|
-
proposalAddress,
|
|
23798
|
-
getGovernanceProposalDecoder(),
|
|
23799
|
-
this.commitment
|
|
23800
|
-
);
|
|
23801
|
-
return proposal;
|
|
23802
|
-
} catch (error) {
|
|
23803
|
-
console.warn(`Failed to fetch proposal ${proposalAddress}:`, error);
|
|
23804
|
-
return null;
|
|
23805
|
-
}
|
|
23480
|
+
return this.getDecodedAccount(
|
|
23481
|
+
proposalAddress,
|
|
23482
|
+
"getGovernanceProposalDecoder"
|
|
23483
|
+
);
|
|
23806
23484
|
}
|
|
23807
23485
|
/**
|
|
23808
23486
|
* Get RBAC config account data
|
|
@@ -23811,19 +23489,10 @@ var GovernanceInstructions = class extends BaseInstructions {
|
|
|
23811
23489
|
* @returns RBAC config data or null if not found
|
|
23812
23490
|
*/
|
|
23813
23491
|
async getRbacConfig(rbacAddress) {
|
|
23814
|
-
|
|
23815
|
-
|
|
23816
|
-
|
|
23817
|
-
|
|
23818
|
-
rbacAddress,
|
|
23819
|
-
getRbacConfigDecoder(),
|
|
23820
|
-
this.commitment
|
|
23821
|
-
);
|
|
23822
|
-
return rbacConfig;
|
|
23823
|
-
} catch (error) {
|
|
23824
|
-
console.warn(`Failed to fetch RBAC config ${rbacAddress}:`, error);
|
|
23825
|
-
return null;
|
|
23826
|
-
}
|
|
23492
|
+
return this.getDecodedAccount(
|
|
23493
|
+
rbacAddress,
|
|
23494
|
+
"getRbacConfigDecoder"
|
|
23495
|
+
);
|
|
23827
23496
|
}
|
|
23828
23497
|
/**
|
|
23829
23498
|
* Get multisig summary with computed fields
|
|
@@ -23843,7 +23512,7 @@ var GovernanceInstructions = class extends BaseInstructions {
|
|
|
23843
23512
|
createdAt: multisig.createdAt,
|
|
23844
23513
|
updatedAt: multisig.updatedAt,
|
|
23845
23514
|
config: multisig.config,
|
|
23846
|
-
emergencyConfig:
|
|
23515
|
+
emergencyConfig: void 0,
|
|
23847
23516
|
// Not in the generated type
|
|
23848
23517
|
pendingTransactions: 0,
|
|
23849
23518
|
// Not in the generated type
|
|
@@ -23871,8 +23540,8 @@ var GovernanceInstructions = class extends BaseInstructions {
|
|
|
23871
23540
|
proposalId: proposal.proposalId,
|
|
23872
23541
|
proposalType: proposal.proposalType,
|
|
23873
23542
|
proposer: proposal.proposer,
|
|
23874
|
-
title: proposal.title
|
|
23875
|
-
description: proposal.description
|
|
23543
|
+
title: proposal.title ?? "Untitled Proposal",
|
|
23544
|
+
description: proposal.description ?? "No description",
|
|
23876
23545
|
status: proposal.status,
|
|
23877
23546
|
createdAt: proposal.createdAt,
|
|
23878
23547
|
votingEndsAt,
|
|
@@ -23896,14 +23565,10 @@ var GovernanceInstructions = class extends BaseInstructions {
|
|
|
23896
23565
|
async listMultisigs(filter, limit = 50) {
|
|
23897
23566
|
console.log("\u{1F4CB} Listing multisigs...");
|
|
23898
23567
|
try {
|
|
23899
|
-
const
|
|
23900
|
-
|
|
23901
|
-
|
|
23902
|
-
this.programId,
|
|
23903
|
-
getMultisigDecoder(),
|
|
23904
|
-
[],
|
|
23568
|
+
const accounts = await this.getDecodedProgramAccounts(
|
|
23569
|
+
"getMultisigDecoder",
|
|
23570
|
+
[]
|
|
23905
23571
|
// No RPC filters - filtering client-side
|
|
23906
|
-
this.commitment
|
|
23907
23572
|
);
|
|
23908
23573
|
let multisigs = accounts.map(({ address: address2, data }) => this.multisigToSummary(address2, data)).filter((summary) => this.applyMultisigFilter(summary, filter)).slice(0, limit);
|
|
23909
23574
|
console.log(`\u2705 Found ${multisigs.length} multisigs`);
|
|
@@ -23923,14 +23588,10 @@ var GovernanceInstructions = class extends BaseInstructions {
|
|
|
23923
23588
|
async listProposals(filter, limit = 50) {
|
|
23924
23589
|
console.log("\u{1F4CB} Listing proposals...");
|
|
23925
23590
|
try {
|
|
23926
|
-
const
|
|
23927
|
-
|
|
23928
|
-
|
|
23929
|
-
this.programId,
|
|
23930
|
-
getGovernanceProposalDecoder(),
|
|
23931
|
-
[],
|
|
23591
|
+
const accounts = await this.getDecodedProgramAccounts(
|
|
23592
|
+
"getGovernanceProposalDecoder",
|
|
23593
|
+
[]
|
|
23932
23594
|
// No RPC filters - filtering client-side
|
|
23933
|
-
this.commitment
|
|
23934
23595
|
);
|
|
23935
23596
|
let proposals = accounts.map(({ address: address2, data }) => this.proposalToSummary(address2, data)).filter((summary) => this.applyProposalFilter(summary, filter)).slice(0, limit);
|
|
23936
23597
|
console.log(`\u2705 Found ${proposals.length} proposals`);
|
|
@@ -24061,7 +23722,7 @@ var GovernanceInstructions = class extends BaseInstructions {
|
|
|
24061
23722
|
createdAt: multisig.createdAt,
|
|
24062
23723
|
updatedAt: multisig.updatedAt,
|
|
24063
23724
|
config: multisig.config,
|
|
24064
|
-
emergencyConfig:
|
|
23725
|
+
emergencyConfig: void 0,
|
|
24065
23726
|
pendingTransactions: 0,
|
|
24066
23727
|
isActive: multisig.signers.length >= multisig.threshold
|
|
24067
23728
|
};
|
|
@@ -24078,8 +23739,8 @@ var GovernanceInstructions = class extends BaseInstructions {
|
|
|
24078
23739
|
proposalId: proposal.proposalId,
|
|
24079
23740
|
proposalType: proposal.proposalType,
|
|
24080
23741
|
proposer: proposal.proposer,
|
|
24081
|
-
title: proposal.title
|
|
24082
|
-
description: proposal.description
|
|
23742
|
+
title: proposal.title ?? "Untitled Proposal",
|
|
23743
|
+
description: proposal.description ?? "No description",
|
|
24083
23744
|
status: proposal.status,
|
|
24084
23745
|
createdAt: proposal.createdAt,
|
|
24085
23746
|
votingEndsAt,
|
|
@@ -24134,7 +23795,7 @@ var BulkDealsInstructions = class extends BaseInstructions {
|
|
|
24134
23795
|
console.log(` Volume Range: ${params.minimumVolume} - ${params.maximumVolume}`);
|
|
24135
23796
|
const instruction = getCreateBulkDealInstruction({
|
|
24136
23797
|
deal: bulkDealPda,
|
|
24137
|
-
agent: params.agent
|
|
23798
|
+
agent: params.agent ?? bulkDealPda,
|
|
24138
23799
|
// Placeholder - should be provided
|
|
24139
23800
|
userRegistry: await this.deriveUserRegistry(creator),
|
|
24140
23801
|
customer: creator,
|
|
@@ -24197,6 +23858,7 @@ var BulkDealsInstructions = class extends BaseInstructions {
|
|
|
24197
23858
|
return null;
|
|
24198
23859
|
}
|
|
24199
23860
|
async deriveUserRegistry(user) {
|
|
23861
|
+
console.log(`Deriving user registry for ${user}`);
|
|
24200
23862
|
return "11111111111111111111111111111111";
|
|
24201
23863
|
}
|
|
24202
23864
|
};
|
|
@@ -24423,19 +24085,10 @@ var AnalyticsInstructions = class extends BaseInstructions {
|
|
|
24423
24085
|
* @returns Dashboard account data or null if not found
|
|
24424
24086
|
*/
|
|
24425
24087
|
async getDashboard(dashboardAddress) {
|
|
24426
|
-
|
|
24427
|
-
|
|
24428
|
-
|
|
24429
|
-
|
|
24430
|
-
dashboardAddress,
|
|
24431
|
-
getAnalyticsDashboardDecoder(),
|
|
24432
|
-
this.commitment
|
|
24433
|
-
);
|
|
24434
|
-
return dashboard;
|
|
24435
|
-
} catch (error) {
|
|
24436
|
-
console.warn(`Failed to fetch dashboard ${dashboardAddress}:`, error);
|
|
24437
|
-
return null;
|
|
24438
|
-
}
|
|
24088
|
+
return this.getDecodedAccount(
|
|
24089
|
+
dashboardAddress,
|
|
24090
|
+
"getAnalyticsDashboardDecoder"
|
|
24091
|
+
);
|
|
24439
24092
|
}
|
|
24440
24093
|
/**
|
|
24441
24094
|
* Get market analytics account data
|
|
@@ -24444,19 +24097,10 @@ var AnalyticsInstructions = class extends BaseInstructions {
|
|
|
24444
24097
|
* @returns Market analytics data or null if not found
|
|
24445
24098
|
*/
|
|
24446
24099
|
async getMarketAnalytics(marketAnalyticsAddress) {
|
|
24447
|
-
|
|
24448
|
-
|
|
24449
|
-
|
|
24450
|
-
|
|
24451
|
-
marketAnalyticsAddress,
|
|
24452
|
-
getMarketAnalyticsDecoder(),
|
|
24453
|
-
this.commitment
|
|
24454
|
-
);
|
|
24455
|
-
return marketAnalytics;
|
|
24456
|
-
} catch (error) {
|
|
24457
|
-
console.warn(`Failed to fetch market analytics ${marketAnalyticsAddress}:`, error);
|
|
24458
|
-
return null;
|
|
24459
|
-
}
|
|
24100
|
+
return this.getDecodedAccount(
|
|
24101
|
+
marketAnalyticsAddress,
|
|
24102
|
+
"getMarketAnalyticsDecoder"
|
|
24103
|
+
);
|
|
24460
24104
|
}
|
|
24461
24105
|
/**
|
|
24462
24106
|
* Get dashboard summary with computed performance metrics
|
|
@@ -24473,13 +24117,13 @@ var AnalyticsInstructions = class extends BaseInstructions {
|
|
|
24473
24117
|
} catch (error) {
|
|
24474
24118
|
console.warn("Failed to parse dashboard metrics:", error);
|
|
24475
24119
|
}
|
|
24476
|
-
const revenue = BigInt(metricsData.revenue
|
|
24477
|
-
const transactionCount = metricsData.transactionCount
|
|
24478
|
-
const successRate = metricsData.successRate
|
|
24479
|
-
const averageResponseTime = metricsData.averageResponseTime
|
|
24480
|
-
const customerRating = metricsData.customerRating
|
|
24481
|
-
const utilizationRate = metricsData.utilizationRate
|
|
24482
|
-
const agentId = metricsData.agentId
|
|
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;
|
|
24483
24127
|
const performanceGrade = this.calculatePerformanceGrade(
|
|
24484
24128
|
successRate,
|
|
24485
24129
|
customerRating,
|
|
@@ -24629,8 +24273,9 @@ var AnalyticsInstructions = class extends BaseInstructions {
|
|
|
24629
24273
|
}
|
|
24630
24274
|
determineTrendDirection(metricsData) {
|
|
24631
24275
|
if (metricsData.previousMetrics) {
|
|
24632
|
-
const currentScore = metricsData.successRate
|
|
24633
|
-
const
|
|
24276
|
+
const currentScore = metricsData.successRate ?? 0;
|
|
24277
|
+
const previousMetrics = metricsData.previousMetrics;
|
|
24278
|
+
const previousScore = previousMetrics.successRate ?? 0;
|
|
24634
24279
|
if (currentScore > previousScore + 0.05) return 0 /* Increasing */;
|
|
24635
24280
|
if (currentScore < previousScore - 0.05) return 1 /* Decreasing */;
|
|
24636
24281
|
return 2 /* Stable */;
|
|
@@ -24638,6 +24283,7 @@ var AnalyticsInstructions = class extends BaseInstructions {
|
|
|
24638
24283
|
return 3 /* Unknown */;
|
|
24639
24284
|
}
|
|
24640
24285
|
async deriveUserRegistry(user) {
|
|
24286
|
+
console.log(`Deriving user registry for ${user}`);
|
|
24641
24287
|
return "11111111111111111111111111111111";
|
|
24642
24288
|
}
|
|
24643
24289
|
async deriveMarketAnalyticsPda() {
|
|
@@ -24837,6 +24483,7 @@ var ComplianceInstructions = class extends BaseInstructions {
|
|
|
24837
24483
|
console.log("\u{1F4CB} Processing data subject request...");
|
|
24838
24484
|
console.log(` Request Type: ${requestType}`);
|
|
24839
24485
|
console.log(` Data Subject: ${dataSubject}`);
|
|
24486
|
+
console.log(` Request Details: ${requestDetails}`);
|
|
24840
24487
|
const requestId = `dsr_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`;
|
|
24841
24488
|
const now = BigInt(Math.floor(Date.now() / 1e3));
|
|
24842
24489
|
const estimatedCompletion = now + BigInt(30 * 24 * 3600);
|
|
@@ -24996,15 +24643,15 @@ var GhostSpeakClient = class _GhostSpeakClient {
|
|
|
24996
24643
|
static create(rpc, programId) {
|
|
24997
24644
|
return new _GhostSpeakClient({
|
|
24998
24645
|
rpc,
|
|
24999
|
-
programId: programId
|
|
24646
|
+
programId: programId ?? GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS
|
|
25000
24647
|
});
|
|
25001
24648
|
}
|
|
25002
24649
|
// Convenience methods for common operations
|
|
25003
24650
|
/**
|
|
25004
24651
|
* Register a new AI agent
|
|
25005
24652
|
*/
|
|
25006
|
-
async registerAgent(signer,
|
|
25007
|
-
return this.agent.register(signer,
|
|
24653
|
+
async registerAgent(signer, params) {
|
|
24654
|
+
return this.agent.register(signer, params);
|
|
25008
24655
|
}
|
|
25009
24656
|
/**
|
|
25010
24657
|
* Get agent account information
|
|
@@ -25022,7 +24669,7 @@ var GhostSpeakClient = class _GhostSpeakClient {
|
|
|
25022
24669
|
* Create a new job posting
|
|
25023
24670
|
*/
|
|
25024
24671
|
async createJobPosting(signer, jobPostingAddress, params) {
|
|
25025
|
-
return this.marketplace.createJobPosting(
|
|
24672
|
+
return this.marketplace.createJobPosting(jobPostingAddress, { ...params, signer });
|
|
25026
24673
|
}
|
|
25027
24674
|
/**
|
|
25028
24675
|
* Get all active service listings
|
|
@@ -25040,7 +24687,7 @@ var GhostSpeakClient = class _GhostSpeakClient {
|
|
|
25040
24687
|
* Create an escrow account
|
|
25041
24688
|
*/
|
|
25042
24689
|
async createEscrow(signer, workOrderAddress, params) {
|
|
25043
|
-
return this.escrow.create(
|
|
24690
|
+
return this.escrow.create(workOrderAddress, { ...params, signer });
|
|
25044
24691
|
}
|
|
25045
24692
|
/**
|
|
25046
24693
|
* Get escrow account information
|
|
@@ -25052,13 +24699,13 @@ var GhostSpeakClient = class _GhostSpeakClient {
|
|
|
25052
24699
|
* Create an A2A communication session
|
|
25053
24700
|
*/
|
|
25054
24701
|
async createA2ASession(signer, sessionAddress, params) {
|
|
25055
|
-
return this.a2a.createSession(
|
|
24702
|
+
return this.a2a.createSession(sessionAddress, { ...params, signer });
|
|
25056
24703
|
}
|
|
25057
24704
|
/**
|
|
25058
24705
|
* Send a message in an A2A session
|
|
25059
24706
|
*/
|
|
25060
24707
|
async sendA2AMessage(signer, sessionAddress, params) {
|
|
25061
|
-
return this.a2a.sendMessage(
|
|
24708
|
+
return this.a2a.sendMessage(sessionAddress, { ...params, signer });
|
|
25062
24709
|
}
|
|
25063
24710
|
/**
|
|
25064
24711
|
* Get A2A session information
|
|
@@ -25075,372 +24722,10 @@ var GhostSpeakClient = class _GhostSpeakClient {
|
|
|
25075
24722
|
};
|
|
25076
24723
|
|
|
25077
24724
|
// src/index.ts
|
|
25078
|
-
init_rpc();
|
|
25079
24725
|
init_pda();
|
|
25080
24726
|
init_generated();
|
|
25081
24727
|
var GHOSTSPEAK_PROGRAM_ID = address("AJVoWJ4JC1xJR9ufGBGuMgFpHMLouB29sFRTJRvEK1ZR");
|
|
25082
24728
|
|
|
25083
|
-
// src/core/instructions/agent.ts
|
|
25084
|
-
init_types2();
|
|
25085
|
-
init_utils();
|
|
25086
|
-
async function createRegisterAgentInstruction(signer, agentId, agentType, metadataUri) {
|
|
25087
|
-
const agentPda = await deriveAgentPda2(signer.address, "");
|
|
25088
|
-
const encoder = getAddressEncoder$1();
|
|
25089
|
-
const [userRegistryPda] = await getProgramDerivedAddress$1({
|
|
25090
|
-
programAddress: GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS,
|
|
25091
|
-
seeds: [
|
|
25092
|
-
Buffer.from("user_registry"),
|
|
25093
|
-
encoder.encode(signer.address)
|
|
25094
|
-
]
|
|
25095
|
-
});
|
|
25096
|
-
const accounts = [
|
|
25097
|
-
{
|
|
25098
|
-
address: agentPda,
|
|
25099
|
-
role: AccountRole.WRITABLE
|
|
25100
|
-
// init account
|
|
25101
|
-
},
|
|
25102
|
-
{
|
|
25103
|
-
address: userRegistryPda,
|
|
25104
|
-
role: AccountRole.WRITABLE
|
|
25105
|
-
// init_if_needed
|
|
25106
|
-
},
|
|
25107
|
-
{
|
|
25108
|
-
address: signer.address,
|
|
25109
|
-
role: AccountRole.WRITABLE_SIGNER
|
|
25110
|
-
},
|
|
25111
|
-
{
|
|
25112
|
-
address: "11111111111111111111111111111111",
|
|
25113
|
-
// System Program
|
|
25114
|
-
role: AccountRole.READONLY
|
|
25115
|
-
},
|
|
25116
|
-
{
|
|
25117
|
-
address: "SysvarC1ock11111111111111111111111111111111",
|
|
25118
|
-
// Clock
|
|
25119
|
-
role: AccountRole.READONLY
|
|
25120
|
-
}
|
|
25121
|
-
];
|
|
25122
|
-
const discriminator = new Uint8Array([135, 157, 66, 195, 2, 113, 175, 30]);
|
|
25123
|
-
const agentTypeBytes = new Uint8Array([agentType]);
|
|
25124
|
-
const metadataUriBytes = serializeString(metadataUri, 256);
|
|
25125
|
-
const agentIdBytes = serializeString(agentId, 64);
|
|
25126
|
-
const data = new Uint8Array(
|
|
25127
|
-
discriminator.length + agentTypeBytes.length + metadataUriBytes.length + agentIdBytes.length
|
|
25128
|
-
);
|
|
25129
|
-
let offset = 0;
|
|
25130
|
-
data.set(discriminator, offset);
|
|
25131
|
-
offset += discriminator.length;
|
|
25132
|
-
data.set(agentTypeBytes, offset);
|
|
25133
|
-
offset += agentTypeBytes.length;
|
|
25134
|
-
data.set(metadataUriBytes, offset);
|
|
25135
|
-
offset += metadataUriBytes.length;
|
|
25136
|
-
data.set(agentIdBytes, offset);
|
|
25137
|
-
return {
|
|
25138
|
-
programAddress: GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS,
|
|
25139
|
-
accounts,
|
|
25140
|
-
data
|
|
25141
|
-
};
|
|
25142
|
-
}
|
|
25143
|
-
async function createUpdateAgentInstruction(signer, agentId, name, description, capabilities) {
|
|
25144
|
-
const agentPda = await deriveAgentPda2(signer.address, agentId);
|
|
25145
|
-
const accounts = [
|
|
25146
|
-
{
|
|
25147
|
-
address: agentPda,
|
|
25148
|
-
role: AccountRole.WRITABLE
|
|
25149
|
-
},
|
|
25150
|
-
{
|
|
25151
|
-
address: signer.address,
|
|
25152
|
-
role: AccountRole.WRITABLE_SIGNER
|
|
25153
|
-
}
|
|
25154
|
-
];
|
|
25155
|
-
const discriminator = new Uint8Array([65, 42, 123, 32, 163, 229, 57, 177]);
|
|
25156
|
-
const agentIdBytes = serializeString(agentId, 64);
|
|
25157
|
-
const nameOption = name ? new Uint8Array([1, ...serializeString(name, 128)]) : new Uint8Array([0]);
|
|
25158
|
-
const descOption = description ? new Uint8Array([1, ...serializeString(description, 512)]) : new Uint8Array([0]);
|
|
25159
|
-
const capsOption = capabilities ? new Uint8Array([1, ...serializeVec(capabilities, (cap) => serializeString(cap, 64))]) : new Uint8Array([0]);
|
|
25160
|
-
const totalSize = discriminator.length + agentIdBytes.length + nameOption.length + descOption.length + capsOption.length;
|
|
25161
|
-
const data = new Uint8Array(totalSize);
|
|
25162
|
-
let offset = 0;
|
|
25163
|
-
data.set(discriminator, offset);
|
|
25164
|
-
offset += discriminator.length;
|
|
25165
|
-
data.set(agentIdBytes, offset);
|
|
25166
|
-
offset += agentIdBytes.length;
|
|
25167
|
-
data.set(nameOption, offset);
|
|
25168
|
-
offset += nameOption.length;
|
|
25169
|
-
data.set(descOption, offset);
|
|
25170
|
-
offset += descOption.length;
|
|
25171
|
-
data.set(capsOption, offset);
|
|
25172
|
-
return {
|
|
25173
|
-
programAddress: GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS,
|
|
25174
|
-
accounts,
|
|
25175
|
-
data
|
|
25176
|
-
};
|
|
25177
|
-
}
|
|
25178
|
-
async function createActivateAgentInstruction(signer, agentId) {
|
|
25179
|
-
const agentPda = await deriveAgentPda2(signer.address, agentId);
|
|
25180
|
-
const accounts = [
|
|
25181
|
-
{
|
|
25182
|
-
address: agentPda,
|
|
25183
|
-
role: AccountRole.WRITABLE
|
|
25184
|
-
},
|
|
25185
|
-
{
|
|
25186
|
-
address: signer.address,
|
|
25187
|
-
role: AccountRole.WRITABLE_SIGNER
|
|
25188
|
-
},
|
|
25189
|
-
{
|
|
25190
|
-
address: "SysvarC1ock11111111111111111111111111111111",
|
|
25191
|
-
// Clock
|
|
25192
|
-
role: AccountRole.READONLY
|
|
25193
|
-
}
|
|
25194
|
-
];
|
|
25195
|
-
const discriminator = new Uint8Array([252, 139, 87, 21, 195, 152, 29, 217]);
|
|
25196
|
-
const agentIdBytes = serializeString(agentId, 64);
|
|
25197
|
-
const data = new Uint8Array(discriminator.length + agentIdBytes.length);
|
|
25198
|
-
data.set(discriminator, 0);
|
|
25199
|
-
data.set(agentIdBytes, discriminator.length);
|
|
25200
|
-
return {
|
|
25201
|
-
programAddress: GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS,
|
|
25202
|
-
accounts,
|
|
25203
|
-
data
|
|
25204
|
-
};
|
|
25205
|
-
}
|
|
25206
|
-
|
|
25207
|
-
// src/core/instructions/marketplace.ts
|
|
25208
|
-
init_types2();
|
|
25209
|
-
init_utils();
|
|
25210
|
-
async function createServiceListingInstruction(creator, agentId, listingId, name, description, price, deliveryTime, category) {
|
|
25211
|
-
const encoder = getAddressEncoder$1();
|
|
25212
|
-
const agentPda = await deriveAgentPda2(creator.address, "");
|
|
25213
|
-
const listingPda = await deriveServiceListingPda2(creator.address, listingId);
|
|
25214
|
-
const [userRegistryPda] = await getProgramDerivedAddress$1({
|
|
25215
|
-
programAddress: GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS,
|
|
25216
|
-
seeds: [
|
|
25217
|
-
Buffer.from("user_registry"),
|
|
25218
|
-
encoder.encode(creator.address)
|
|
25219
|
-
]
|
|
25220
|
-
});
|
|
25221
|
-
const accounts = [
|
|
25222
|
-
{
|
|
25223
|
-
address: listingPda,
|
|
25224
|
-
role: AccountRole.WRITABLE
|
|
25225
|
-
},
|
|
25226
|
-
{
|
|
25227
|
-
address: agentPda,
|
|
25228
|
-
role: AccountRole.READONLY
|
|
25229
|
-
},
|
|
25230
|
-
{
|
|
25231
|
-
address: userRegistryPda,
|
|
25232
|
-
role: AccountRole.WRITABLE
|
|
25233
|
-
},
|
|
25234
|
-
{
|
|
25235
|
-
address: creator.address,
|
|
25236
|
-
role: AccountRole.WRITABLE_SIGNER
|
|
25237
|
-
},
|
|
25238
|
-
{
|
|
25239
|
-
address: "11111111111111111111111111111111",
|
|
25240
|
-
// System Program
|
|
25241
|
-
role: AccountRole.READONLY
|
|
25242
|
-
},
|
|
25243
|
-
{
|
|
25244
|
-
address: "SysvarC1ock11111111111111111111111111111111",
|
|
25245
|
-
// Clock
|
|
25246
|
-
role: AccountRole.READONLY
|
|
25247
|
-
}
|
|
25248
|
-
];
|
|
25249
|
-
const discriminator = new Uint8Array([91, 37, 216, 26, 93, 146, 13, 182]);
|
|
25250
|
-
const titleBytes = serializeString(name.substring(0, 16), 20);
|
|
25251
|
-
const descriptionBytes = serializeString(description.substring(0, 32), 40);
|
|
25252
|
-
const priceBytes = new Uint8Array(8);
|
|
25253
|
-
new DataView(priceBytes.buffer).setBigUint64(0, price, true);
|
|
25254
|
-
const tokenMintBytes = new Uint8Array(32);
|
|
25255
|
-
const paymentTokenBytes = new Uint8Array(32);
|
|
25256
|
-
const serviceTypeBytes = serializeString(category.substring(0, 8), 12);
|
|
25257
|
-
const estimatedDeliveryBytes = new Uint8Array(8);
|
|
25258
|
-
new DataView(estimatedDeliveryBytes.buffer).setBigInt64(0, BigInt(deliveryTime), true);
|
|
25259
|
-
const tagsBytes = serializeVec([category.substring(0, 4)], (tag) => serializeString(tag, 8));
|
|
25260
|
-
const listingIdStringBytes = serializeString(listingId.toString().substring(0, 4), 8);
|
|
25261
|
-
const dataSize = discriminator.length + titleBytes.length + descriptionBytes.length + priceBytes.length + tokenMintBytes.length + // token_mint
|
|
25262
|
-
serviceTypeBytes.length + paymentTokenBytes.length + // payment_token
|
|
25263
|
-
estimatedDeliveryBytes.length + tagsBytes.length + listingIdStringBytes.length;
|
|
25264
|
-
const data = new Uint8Array(dataSize);
|
|
25265
|
-
let offset = 0;
|
|
25266
|
-
data.set(discriminator, offset);
|
|
25267
|
-
offset += discriminator.length;
|
|
25268
|
-
data.set(titleBytes, offset);
|
|
25269
|
-
offset += titleBytes.length;
|
|
25270
|
-
data.set(descriptionBytes, offset);
|
|
25271
|
-
offset += descriptionBytes.length;
|
|
25272
|
-
data.set(priceBytes, offset);
|
|
25273
|
-
offset += priceBytes.length;
|
|
25274
|
-
data.set(tokenMintBytes, offset);
|
|
25275
|
-
offset += tokenMintBytes.length;
|
|
25276
|
-
data.set(serviceTypeBytes, offset);
|
|
25277
|
-
offset += serviceTypeBytes.length;
|
|
25278
|
-
data.set(paymentTokenBytes, offset);
|
|
25279
|
-
offset += paymentTokenBytes.length;
|
|
25280
|
-
data.set(estimatedDeliveryBytes, offset);
|
|
25281
|
-
offset += estimatedDeliveryBytes.length;
|
|
25282
|
-
data.set(tagsBytes, offset);
|
|
25283
|
-
offset += tagsBytes.length;
|
|
25284
|
-
data.set(listingIdStringBytes, offset);
|
|
25285
|
-
return {
|
|
25286
|
-
programAddress: GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS,
|
|
25287
|
-
accounts,
|
|
25288
|
-
data
|
|
25289
|
-
};
|
|
25290
|
-
}
|
|
25291
|
-
async function createWorkOrderFromListingInstruction(buyer, listing, seller, amount) {
|
|
25292
|
-
throw new Error("Work order from listing instruction not yet implemented");
|
|
25293
|
-
}
|
|
25294
|
-
async function createCompleteWorkOrderInstruction(signer, workOrderId, deliverableUri) {
|
|
25295
|
-
throw new Error("Complete work order instruction not yet implemented");
|
|
25296
|
-
}
|
|
25297
|
-
async function createReleaseEscrowInstruction(signer, escrowId) {
|
|
25298
|
-
throw new Error("Release escrow instruction not yet implemented");
|
|
25299
|
-
}
|
|
25300
|
-
|
|
25301
|
-
// src/core/instructions/work-order.ts
|
|
25302
|
-
init_types2();
|
|
25303
|
-
init_utils();
|
|
25304
|
-
async function createPurchaseServiceInstruction(buyer, listing, seller, amount) {
|
|
25305
|
-
const workOrderPda = await deriveWorkOrderPda2(listing, buyer.address);
|
|
25306
|
-
const accounts = [
|
|
25307
|
-
{
|
|
25308
|
-
address: workOrderPda,
|
|
25309
|
-
role: AccountRole.WRITABLE
|
|
25310
|
-
},
|
|
25311
|
-
{
|
|
25312
|
-
address: listing,
|
|
25313
|
-
role: AccountRole.READONLY
|
|
25314
|
-
},
|
|
25315
|
-
{
|
|
25316
|
-
address: buyer.address,
|
|
25317
|
-
role: AccountRole.WRITABLE_SIGNER
|
|
25318
|
-
},
|
|
25319
|
-
{
|
|
25320
|
-
address: seller,
|
|
25321
|
-
role: AccountRole.WRITABLE
|
|
25322
|
-
},
|
|
25323
|
-
{
|
|
25324
|
-
address: "11111111111111111111111111111111",
|
|
25325
|
-
// System Program
|
|
25326
|
-
role: AccountRole.READONLY
|
|
25327
|
-
},
|
|
25328
|
-
{
|
|
25329
|
-
address: "SysvarC1ock11111111111111111111111111111111",
|
|
25330
|
-
// Clock
|
|
25331
|
-
role: AccountRole.READONLY
|
|
25332
|
-
}
|
|
25333
|
-
];
|
|
25334
|
-
const discriminator = new Uint8Array([194, 57, 126, 134, 253, 24, 15, 4]);
|
|
25335
|
-
const amountBytes = new Uint8Array(8);
|
|
25336
|
-
new DataView(amountBytes.buffer).setBigUint64(0, amount, true);
|
|
25337
|
-
const data = new Uint8Array(discriminator.length + amountBytes.length);
|
|
25338
|
-
data.set(discriminator, 0);
|
|
25339
|
-
data.set(amountBytes, discriminator.length);
|
|
25340
|
-
return {
|
|
25341
|
-
programAddress: GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS,
|
|
25342
|
-
accounts,
|
|
25343
|
-
data
|
|
25344
|
-
};
|
|
25345
|
-
}
|
|
25346
|
-
|
|
25347
|
-
// src/core/client-simple.ts
|
|
25348
|
-
var GhostSpeakClient2 = class {
|
|
25349
|
-
endpoint;
|
|
25350
|
-
constructor(config = {}) {
|
|
25351
|
-
this.endpoint = config.endpoint || "https://api.devnet.solana.com";
|
|
25352
|
-
}
|
|
25353
|
-
/**
|
|
25354
|
-
* Register a new agent on-chain
|
|
25355
|
-
*/
|
|
25356
|
-
async registerAgent(signer, agentId, agentType, metadataUri) {
|
|
25357
|
-
return await createRegisterAgentInstruction(
|
|
25358
|
-
signer,
|
|
25359
|
-
agentId,
|
|
25360
|
-
agentType,
|
|
25361
|
-
metadataUri
|
|
25362
|
-
);
|
|
25363
|
-
}
|
|
25364
|
-
/**
|
|
25365
|
-
* Update agent information
|
|
25366
|
-
*/
|
|
25367
|
-
async updateAgent(signer, agentId, updates) {
|
|
25368
|
-
return await createUpdateAgentInstruction(
|
|
25369
|
-
signer,
|
|
25370
|
-
agentId,
|
|
25371
|
-
updates.name,
|
|
25372
|
-
updates.description,
|
|
25373
|
-
updates.capabilities
|
|
25374
|
-
);
|
|
25375
|
-
}
|
|
25376
|
-
/**
|
|
25377
|
-
* Activate an agent
|
|
25378
|
-
*/
|
|
25379
|
-
async activateAgent(signer, agentId) {
|
|
25380
|
-
return await createActivateAgentInstruction(
|
|
25381
|
-
signer,
|
|
25382
|
-
agentId
|
|
25383
|
-
);
|
|
25384
|
-
}
|
|
25385
|
-
/**
|
|
25386
|
-
* Create a service listing
|
|
25387
|
-
*/
|
|
25388
|
-
async createServiceListing(signer, agentId, listingId, listingData) {
|
|
25389
|
-
return await createServiceListingInstruction(
|
|
25390
|
-
signer,
|
|
25391
|
-
agentId,
|
|
25392
|
-
listingId,
|
|
25393
|
-
listingData.name,
|
|
25394
|
-
listingData.description,
|
|
25395
|
-
listingData.price,
|
|
25396
|
-
listingData.deliveryTime,
|
|
25397
|
-
listingData.category
|
|
25398
|
-
);
|
|
25399
|
-
}
|
|
25400
|
-
/**
|
|
25401
|
-
* Create a simple service listing (minimal version to avoid serialization issues)
|
|
25402
|
-
*/
|
|
25403
|
-
async createSimpleServiceListing(signer, agentId, listingId, title, price) {
|
|
25404
|
-
const { createSimpleServiceListingInstruction: createSimpleServiceListingInstruction2 } = await Promise.resolve().then(() => (init_simple_marketplace(), simple_marketplace_exports));
|
|
25405
|
-
return await createSimpleServiceListingInstruction2(
|
|
25406
|
-
signer,
|
|
25407
|
-
agentId,
|
|
25408
|
-
listingId,
|
|
25409
|
-
title,
|
|
25410
|
-
price
|
|
25411
|
-
);
|
|
25412
|
-
}
|
|
25413
|
-
/**
|
|
25414
|
-
* Create service listing with fixed Anchor struct serialization
|
|
25415
|
-
*/
|
|
25416
|
-
async createFixedServiceListing(signer, agentId, listingId, title, description, price) {
|
|
25417
|
-
const { createFixedServiceListingInstruction: createFixedServiceListingInstruction2 } = await Promise.resolve().then(() => (init_fixed_marketplace(), fixed_marketplace_exports));
|
|
25418
|
-
return await createFixedServiceListingInstruction2(
|
|
25419
|
-
signer,
|
|
25420
|
-
agentId,
|
|
25421
|
-
listingId,
|
|
25422
|
-
title,
|
|
25423
|
-
description,
|
|
25424
|
-
price
|
|
25425
|
-
);
|
|
25426
|
-
}
|
|
25427
|
-
/**
|
|
25428
|
-
* Purchase a service (create work order)
|
|
25429
|
-
*/
|
|
25430
|
-
async purchaseService(buyer, listing, seller, amount) {
|
|
25431
|
-
return await createPurchaseServiceInstruction(
|
|
25432
|
-
buyer,
|
|
25433
|
-
listing,
|
|
25434
|
-
seller,
|
|
25435
|
-
amount
|
|
25436
|
-
);
|
|
25437
|
-
}
|
|
25438
|
-
// RPC will be handled by the CLI or test scripts for now
|
|
25439
|
-
};
|
|
25440
|
-
|
|
25441
|
-
// src/index.ts
|
|
25442
|
-
init_utils();
|
|
25443
|
-
|
|
25444
|
-
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 };
|
|
25445
24730
|
//# sourceMappingURL=index.js.map
|
|
25446
24731
|
//# sourceMappingURL=index.js.map
|