@ghostspeak/sdk 1.6.2 → 1.6.3
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 +434 -26
- package/dist/index.js +1910 -389
- package/dist/index.js.map +1 -1
- package/package.json +5 -3
package/dist/index.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
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 bs58 from 'bs58';
|
|
2
3
|
import { address } from '@solana/addresses';
|
|
4
|
+
import { SYSVAR_CLOCK_ADDRESS as SYSVAR_CLOCK_ADDRESS$1 } from '@solana/sysvars';
|
|
3
5
|
|
|
4
6
|
var __defProp = Object.defineProperty;
|
|
5
7
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -51,13 +53,13 @@ function decodeA2AMessage(encodedAccount) {
|
|
|
51
53
|
getA2AMessageDecoder()
|
|
52
54
|
);
|
|
53
55
|
}
|
|
54
|
-
async function fetchA2AMessage(rpc,
|
|
55
|
-
const maybeAccount = await fetchMaybeA2AMessage(rpc,
|
|
56
|
+
async function fetchA2AMessage(rpc, address3, config) {
|
|
57
|
+
const maybeAccount = await fetchMaybeA2AMessage(rpc, address3, config);
|
|
56
58
|
assertAccountExists(maybeAccount);
|
|
57
59
|
return maybeAccount;
|
|
58
60
|
}
|
|
59
|
-
async function fetchMaybeA2AMessage(rpc,
|
|
60
|
-
const maybeAccount = await fetchEncodedAccount(rpc,
|
|
61
|
+
async function fetchMaybeA2AMessage(rpc, address3, config) {
|
|
62
|
+
const maybeAccount = await fetchEncodedAccount(rpc, address3, config);
|
|
61
63
|
return decodeA2AMessage(maybeAccount);
|
|
62
64
|
}
|
|
63
65
|
async function fetchAllA2AMessage(rpc, addresses, config) {
|
|
@@ -129,13 +131,13 @@ function decodeA2ASession(encodedAccount) {
|
|
|
129
131
|
getA2ASessionDecoder()
|
|
130
132
|
);
|
|
131
133
|
}
|
|
132
|
-
async function fetchA2ASession(rpc,
|
|
133
|
-
const maybeAccount = await fetchMaybeA2ASession(rpc,
|
|
134
|
+
async function fetchA2ASession(rpc, address3, config) {
|
|
135
|
+
const maybeAccount = await fetchMaybeA2ASession(rpc, address3, config);
|
|
134
136
|
assertAccountExists(maybeAccount);
|
|
135
137
|
return maybeAccount;
|
|
136
138
|
}
|
|
137
|
-
async function fetchMaybeA2ASession(rpc,
|
|
138
|
-
const maybeAccount = await fetchEncodedAccount(rpc,
|
|
139
|
+
async function fetchMaybeA2ASession(rpc, address3, config) {
|
|
140
|
+
const maybeAccount = await fetchEncodedAccount(rpc, address3, config);
|
|
139
141
|
return decodeA2ASession(maybeAccount);
|
|
140
142
|
}
|
|
141
143
|
async function fetchAllA2ASession(rpc, addresses, config) {
|
|
@@ -207,13 +209,13 @@ function decodeA2AStatus(encodedAccount) {
|
|
|
207
209
|
getA2AStatusDecoder()
|
|
208
210
|
);
|
|
209
211
|
}
|
|
210
|
-
async function fetchA2AStatus(rpc,
|
|
211
|
-
const maybeAccount = await fetchMaybeA2AStatus(rpc,
|
|
212
|
+
async function fetchA2AStatus(rpc, address3, config) {
|
|
213
|
+
const maybeAccount = await fetchMaybeA2AStatus(rpc, address3, config);
|
|
212
214
|
assertAccountExists(maybeAccount);
|
|
213
215
|
return maybeAccount;
|
|
214
216
|
}
|
|
215
|
-
async function fetchMaybeA2AStatus(rpc,
|
|
216
|
-
const maybeAccount = await fetchEncodedAccount(rpc,
|
|
217
|
+
async function fetchMaybeA2AStatus(rpc, address3, config) {
|
|
218
|
+
const maybeAccount = await fetchEncodedAccount(rpc, address3, config);
|
|
217
219
|
return decodeA2AStatus(maybeAccount);
|
|
218
220
|
}
|
|
219
221
|
async function fetchAllA2AStatus(rpc, addresses, config) {
|
|
@@ -5992,6 +5994,21 @@ var init_types = __esm({
|
|
|
5992
5994
|
init_ruleCondition();
|
|
5993
5995
|
}
|
|
5994
5996
|
});
|
|
5997
|
+
|
|
5998
|
+
// src/generated/accounts/agent.ts
|
|
5999
|
+
var agent_exports = {};
|
|
6000
|
+
__export(agent_exports, {
|
|
6001
|
+
AGENT_DISCRIMINATOR: () => AGENT_DISCRIMINATOR,
|
|
6002
|
+
decodeAgent: () => decodeAgent,
|
|
6003
|
+
fetchAgent: () => fetchAgent,
|
|
6004
|
+
fetchAllAgent: () => fetchAllAgent,
|
|
6005
|
+
fetchAllMaybeAgent: () => fetchAllMaybeAgent,
|
|
6006
|
+
fetchMaybeAgent: () => fetchMaybeAgent,
|
|
6007
|
+
getAgentCodec: () => getAgentCodec,
|
|
6008
|
+
getAgentDecoder: () => getAgentDecoder,
|
|
6009
|
+
getAgentDiscriminatorBytes: () => getAgentDiscriminatorBytes,
|
|
6010
|
+
getAgentEncoder: () => getAgentEncoder
|
|
6011
|
+
});
|
|
5995
6012
|
function getAgentDiscriminatorBytes() {
|
|
5996
6013
|
return fixEncoderSize(getBytesEncoder(), 8).encode(AGENT_DISCRIMINATOR);
|
|
5997
6014
|
}
|
|
@@ -6089,13 +6106,13 @@ function decodeAgent(encodedAccount) {
|
|
|
6089
6106
|
getAgentDecoder()
|
|
6090
6107
|
);
|
|
6091
6108
|
}
|
|
6092
|
-
async function fetchAgent(rpc,
|
|
6093
|
-
const maybeAccount = await fetchMaybeAgent(rpc,
|
|
6109
|
+
async function fetchAgent(rpc, address3, config) {
|
|
6110
|
+
const maybeAccount = await fetchMaybeAgent(rpc, address3, config);
|
|
6094
6111
|
assertAccountExists(maybeAccount);
|
|
6095
6112
|
return maybeAccount;
|
|
6096
6113
|
}
|
|
6097
|
-
async function fetchMaybeAgent(rpc,
|
|
6098
|
-
const maybeAccount = await fetchEncodedAccount(rpc,
|
|
6114
|
+
async function fetchMaybeAgent(rpc, address3, config) {
|
|
6115
|
+
const maybeAccount = await fetchEncodedAccount(rpc, address3, config);
|
|
6099
6116
|
return decodeAgent(maybeAccount);
|
|
6100
6117
|
}
|
|
6101
6118
|
async function fetchAllAgent(rpc, addresses, config) {
|
|
@@ -6168,13 +6185,13 @@ function decodeAgentIncentives(encodedAccount) {
|
|
|
6168
6185
|
getAgentIncentivesDecoder()
|
|
6169
6186
|
);
|
|
6170
6187
|
}
|
|
6171
|
-
async function fetchAgentIncentives(rpc,
|
|
6172
|
-
const maybeAccount = await fetchMaybeAgentIncentives(rpc,
|
|
6188
|
+
async function fetchAgentIncentives(rpc, address3, config) {
|
|
6189
|
+
const maybeAccount = await fetchMaybeAgentIncentives(rpc, address3, config);
|
|
6173
6190
|
assertAccountExists(maybeAccount);
|
|
6174
6191
|
return maybeAccount;
|
|
6175
6192
|
}
|
|
6176
|
-
async function fetchMaybeAgentIncentives(rpc,
|
|
6177
|
-
const maybeAccount = await fetchEncodedAccount(rpc,
|
|
6193
|
+
async function fetchMaybeAgentIncentives(rpc, address3, config) {
|
|
6194
|
+
const maybeAccount = await fetchEncodedAccount(rpc, address3, config);
|
|
6178
6195
|
return decodeAgentIncentives(maybeAccount);
|
|
6179
6196
|
}
|
|
6180
6197
|
async function fetchAllAgentIncentives(rpc, addresses, config) {
|
|
@@ -6245,13 +6262,13 @@ function decodeAgentTreeConfig(encodedAccount) {
|
|
|
6245
6262
|
getAgentTreeConfigDecoder()
|
|
6246
6263
|
);
|
|
6247
6264
|
}
|
|
6248
|
-
async function fetchAgentTreeConfig(rpc,
|
|
6249
|
-
const maybeAccount = await fetchMaybeAgentTreeConfig(rpc,
|
|
6265
|
+
async function fetchAgentTreeConfig(rpc, address3, config) {
|
|
6266
|
+
const maybeAccount = await fetchMaybeAgentTreeConfig(rpc, address3, config);
|
|
6250
6267
|
assertAccountExists(maybeAccount);
|
|
6251
6268
|
return maybeAccount;
|
|
6252
6269
|
}
|
|
6253
|
-
async function fetchMaybeAgentTreeConfig(rpc,
|
|
6254
|
-
const maybeAccount = await fetchEncodedAccount(rpc,
|
|
6270
|
+
async function fetchMaybeAgentTreeConfig(rpc, address3, config) {
|
|
6271
|
+
const maybeAccount = await fetchEncodedAccount(rpc, address3, config);
|
|
6255
6272
|
return decodeAgentTreeConfig(maybeAccount);
|
|
6256
6273
|
}
|
|
6257
6274
|
async function fetchAllAgentTreeConfig(rpc, addresses, config) {
|
|
@@ -6331,13 +6348,13 @@ function decodeAgentVerification(encodedAccount) {
|
|
|
6331
6348
|
getAgentVerificationDecoder()
|
|
6332
6349
|
);
|
|
6333
6350
|
}
|
|
6334
|
-
async function fetchAgentVerification(rpc,
|
|
6335
|
-
const maybeAccount = await fetchMaybeAgentVerification(rpc,
|
|
6351
|
+
async function fetchAgentVerification(rpc, address3, config) {
|
|
6352
|
+
const maybeAccount = await fetchMaybeAgentVerification(rpc, address3, config);
|
|
6336
6353
|
assertAccountExists(maybeAccount);
|
|
6337
6354
|
return maybeAccount;
|
|
6338
6355
|
}
|
|
6339
|
-
async function fetchMaybeAgentVerification(rpc,
|
|
6340
|
-
const maybeAccount = await fetchEncodedAccount(rpc,
|
|
6356
|
+
async function fetchMaybeAgentVerification(rpc, address3, config) {
|
|
6357
|
+
const maybeAccount = await fetchEncodedAccount(rpc, address3, config);
|
|
6341
6358
|
return decodeAgentVerification(maybeAccount);
|
|
6342
6359
|
}
|
|
6343
6360
|
async function fetchAllAgentVerification(rpc, addresses, config) {
|
|
@@ -6413,13 +6430,13 @@ function decodeAnalyticsDashboard(encodedAccount) {
|
|
|
6413
6430
|
getAnalyticsDashboardDecoder()
|
|
6414
6431
|
);
|
|
6415
6432
|
}
|
|
6416
|
-
async function fetchAnalyticsDashboard(rpc,
|
|
6417
|
-
const maybeAccount = await fetchMaybeAnalyticsDashboard(rpc,
|
|
6433
|
+
async function fetchAnalyticsDashboard(rpc, address3, config) {
|
|
6434
|
+
const maybeAccount = await fetchMaybeAnalyticsDashboard(rpc, address3, config);
|
|
6418
6435
|
assertAccountExists(maybeAccount);
|
|
6419
6436
|
return maybeAccount;
|
|
6420
6437
|
}
|
|
6421
|
-
async function fetchMaybeAnalyticsDashboard(rpc,
|
|
6422
|
-
const maybeAccount = await fetchEncodedAccount(rpc,
|
|
6438
|
+
async function fetchMaybeAnalyticsDashboard(rpc, address3, config) {
|
|
6439
|
+
const maybeAccount = await fetchEncodedAccount(rpc, address3, config);
|
|
6423
6440
|
return decodeAnalyticsDashboard(maybeAccount);
|
|
6424
6441
|
}
|
|
6425
6442
|
async function fetchAllAnalyticsDashboard(rpc, addresses, config) {
|
|
@@ -6492,13 +6509,13 @@ function decodeArbitratorRegistry(encodedAccount) {
|
|
|
6492
6509
|
getArbitratorRegistryDecoder()
|
|
6493
6510
|
);
|
|
6494
6511
|
}
|
|
6495
|
-
async function fetchArbitratorRegistry(rpc,
|
|
6496
|
-
const maybeAccount = await fetchMaybeArbitratorRegistry(rpc,
|
|
6512
|
+
async function fetchArbitratorRegistry(rpc, address3, config) {
|
|
6513
|
+
const maybeAccount = await fetchMaybeArbitratorRegistry(rpc, address3, config);
|
|
6497
6514
|
assertAccountExists(maybeAccount);
|
|
6498
6515
|
return maybeAccount;
|
|
6499
6516
|
}
|
|
6500
|
-
async function fetchMaybeArbitratorRegistry(rpc,
|
|
6501
|
-
const maybeAccount = await fetchEncodedAccount(rpc,
|
|
6517
|
+
async function fetchMaybeArbitratorRegistry(rpc, address3, config) {
|
|
6518
|
+
const maybeAccount = await fetchEncodedAccount(rpc, address3, config);
|
|
6502
6519
|
return decodeArbitratorRegistry(maybeAccount);
|
|
6503
6520
|
}
|
|
6504
6521
|
async function fetchAllArbitratorRegistry(rpc, addresses, config) {
|
|
@@ -6531,6 +6548,21 @@ var init_arbitratorRegistry = __esm({
|
|
|
6531
6548
|
]);
|
|
6532
6549
|
}
|
|
6533
6550
|
});
|
|
6551
|
+
|
|
6552
|
+
// src/generated/accounts/auctionMarketplace.ts
|
|
6553
|
+
var auctionMarketplace_exports = {};
|
|
6554
|
+
__export(auctionMarketplace_exports, {
|
|
6555
|
+
AUCTION_MARKETPLACE_DISCRIMINATOR: () => AUCTION_MARKETPLACE_DISCRIMINATOR,
|
|
6556
|
+
decodeAuctionMarketplace: () => decodeAuctionMarketplace,
|
|
6557
|
+
fetchAllAuctionMarketplace: () => fetchAllAuctionMarketplace,
|
|
6558
|
+
fetchAllMaybeAuctionMarketplace: () => fetchAllMaybeAuctionMarketplace,
|
|
6559
|
+
fetchAuctionMarketplace: () => fetchAuctionMarketplace,
|
|
6560
|
+
fetchMaybeAuctionMarketplace: () => fetchMaybeAuctionMarketplace,
|
|
6561
|
+
getAuctionMarketplaceCodec: () => getAuctionMarketplaceCodec,
|
|
6562
|
+
getAuctionMarketplaceDecoder: () => getAuctionMarketplaceDecoder,
|
|
6563
|
+
getAuctionMarketplaceDiscriminatorBytes: () => getAuctionMarketplaceDiscriminatorBytes,
|
|
6564
|
+
getAuctionMarketplaceEncoder: () => getAuctionMarketplaceEncoder
|
|
6565
|
+
});
|
|
6534
6566
|
function getAuctionMarketplaceDiscriminatorBytes() {
|
|
6535
6567
|
return fixEncoderSize(getBytesEncoder(), 8).encode(
|
|
6536
6568
|
AUCTION_MARKETPLACE_DISCRIMINATOR
|
|
@@ -6597,13 +6629,13 @@ function decodeAuctionMarketplace(encodedAccount) {
|
|
|
6597
6629
|
getAuctionMarketplaceDecoder()
|
|
6598
6630
|
);
|
|
6599
6631
|
}
|
|
6600
|
-
async function fetchAuctionMarketplace(rpc,
|
|
6601
|
-
const maybeAccount = await fetchMaybeAuctionMarketplace(rpc,
|
|
6632
|
+
async function fetchAuctionMarketplace(rpc, address3, config) {
|
|
6633
|
+
const maybeAccount = await fetchMaybeAuctionMarketplace(rpc, address3, config);
|
|
6602
6634
|
assertAccountExists(maybeAccount);
|
|
6603
6635
|
return maybeAccount;
|
|
6604
6636
|
}
|
|
6605
|
-
async function fetchMaybeAuctionMarketplace(rpc,
|
|
6606
|
-
const maybeAccount = await fetchEncodedAccount(rpc,
|
|
6637
|
+
async function fetchMaybeAuctionMarketplace(rpc, address3, config) {
|
|
6638
|
+
const maybeAccount = await fetchEncodedAccount(rpc, address3, config);
|
|
6607
6639
|
return decodeAuctionMarketplace(maybeAccount);
|
|
6608
6640
|
}
|
|
6609
6641
|
async function fetchAllAuctionMarketplace(rpc, addresses, config) {
|
|
@@ -6682,13 +6714,13 @@ function decodeAuditTrail(encodedAccount) {
|
|
|
6682
6714
|
getAuditTrailDecoder()
|
|
6683
6715
|
);
|
|
6684
6716
|
}
|
|
6685
|
-
async function fetchAuditTrail(rpc,
|
|
6686
|
-
const maybeAccount = await fetchMaybeAuditTrail(rpc,
|
|
6717
|
+
async function fetchAuditTrail(rpc, address3, config) {
|
|
6718
|
+
const maybeAccount = await fetchMaybeAuditTrail(rpc, address3, config);
|
|
6687
6719
|
assertAccountExists(maybeAccount);
|
|
6688
6720
|
return maybeAccount;
|
|
6689
6721
|
}
|
|
6690
|
-
async function fetchMaybeAuditTrail(rpc,
|
|
6691
|
-
const maybeAccount = await fetchEncodedAccount(rpc,
|
|
6722
|
+
async function fetchMaybeAuditTrail(rpc, address3, config) {
|
|
6723
|
+
const maybeAccount = await fetchEncodedAccount(rpc, address3, config);
|
|
6692
6724
|
return decodeAuditTrail(maybeAccount);
|
|
6693
6725
|
}
|
|
6694
6726
|
async function fetchAllAuditTrail(rpc, addresses, config) {
|
|
@@ -6773,13 +6805,13 @@ function decodeBulkDeal(encodedAccount) {
|
|
|
6773
6805
|
getBulkDealDecoder()
|
|
6774
6806
|
);
|
|
6775
6807
|
}
|
|
6776
|
-
async function fetchBulkDeal(rpc,
|
|
6777
|
-
const maybeAccount = await fetchMaybeBulkDeal(rpc,
|
|
6808
|
+
async function fetchBulkDeal(rpc, address3, config) {
|
|
6809
|
+
const maybeAccount = await fetchMaybeBulkDeal(rpc, address3, config);
|
|
6778
6810
|
assertAccountExists(maybeAccount);
|
|
6779
6811
|
return maybeAccount;
|
|
6780
6812
|
}
|
|
6781
|
-
async function fetchMaybeBulkDeal(rpc,
|
|
6782
|
-
const maybeAccount = await fetchEncodedAccount(rpc,
|
|
6813
|
+
async function fetchMaybeBulkDeal(rpc, address3, config) {
|
|
6814
|
+
const maybeAccount = await fetchEncodedAccount(rpc, address3, config);
|
|
6783
6815
|
return decodeBulkDeal(maybeAccount);
|
|
6784
6816
|
}
|
|
6785
6817
|
async function fetchAllBulkDeal(rpc, addresses, config) {
|
|
@@ -6850,13 +6882,13 @@ function decodeChannel(encodedAccount) {
|
|
|
6850
6882
|
getChannelDecoder()
|
|
6851
6883
|
);
|
|
6852
6884
|
}
|
|
6853
|
-
async function fetchChannel(rpc,
|
|
6854
|
-
const maybeAccount = await fetchMaybeChannel(rpc,
|
|
6885
|
+
async function fetchChannel(rpc, address3, config) {
|
|
6886
|
+
const maybeAccount = await fetchMaybeChannel(rpc, address3, config);
|
|
6855
6887
|
assertAccountExists(maybeAccount);
|
|
6856
6888
|
return maybeAccount;
|
|
6857
6889
|
}
|
|
6858
|
-
async function fetchMaybeChannel(rpc,
|
|
6859
|
-
const maybeAccount = await fetchEncodedAccount(rpc,
|
|
6890
|
+
async function fetchMaybeChannel(rpc, address3, config) {
|
|
6891
|
+
const maybeAccount = await fetchEncodedAccount(rpc, address3, config);
|
|
6860
6892
|
return decodeChannel(maybeAccount);
|
|
6861
6893
|
}
|
|
6862
6894
|
async function fetchAllChannel(rpc, addresses, config) {
|
|
@@ -6934,13 +6966,13 @@ function decodeComplianceReport(encodedAccount) {
|
|
|
6934
6966
|
getComplianceReportDecoder()
|
|
6935
6967
|
);
|
|
6936
6968
|
}
|
|
6937
|
-
async function fetchComplianceReport(rpc,
|
|
6938
|
-
const maybeAccount = await fetchMaybeComplianceReport(rpc,
|
|
6969
|
+
async function fetchComplianceReport(rpc, address3, config) {
|
|
6970
|
+
const maybeAccount = await fetchMaybeComplianceReport(rpc, address3, config);
|
|
6939
6971
|
assertAccountExists(maybeAccount);
|
|
6940
6972
|
return maybeAccount;
|
|
6941
6973
|
}
|
|
6942
|
-
async function fetchMaybeComplianceReport(rpc,
|
|
6943
|
-
const maybeAccount = await fetchEncodedAccount(rpc,
|
|
6974
|
+
async function fetchMaybeComplianceReport(rpc, address3, config) {
|
|
6975
|
+
const maybeAccount = await fetchEncodedAccount(rpc, address3, config);
|
|
6944
6976
|
return decodeComplianceReport(maybeAccount);
|
|
6945
6977
|
}
|
|
6946
6978
|
async function fetchAllComplianceReport(rpc, addresses, config) {
|
|
@@ -7035,13 +7067,13 @@ function decodeDisputeCase(encodedAccount) {
|
|
|
7035
7067
|
getDisputeCaseDecoder()
|
|
7036
7068
|
);
|
|
7037
7069
|
}
|
|
7038
|
-
async function fetchDisputeCase(rpc,
|
|
7039
|
-
const maybeAccount = await fetchMaybeDisputeCase(rpc,
|
|
7070
|
+
async function fetchDisputeCase(rpc, address3, config) {
|
|
7071
|
+
const maybeAccount = await fetchMaybeDisputeCase(rpc, address3, config);
|
|
7040
7072
|
assertAccountExists(maybeAccount);
|
|
7041
7073
|
return maybeAccount;
|
|
7042
7074
|
}
|
|
7043
|
-
async function fetchMaybeDisputeCase(rpc,
|
|
7044
|
-
const maybeAccount = await fetchEncodedAccount(rpc,
|
|
7075
|
+
async function fetchMaybeDisputeCase(rpc, address3, config) {
|
|
7076
|
+
const maybeAccount = await fetchEncodedAccount(rpc, address3, config);
|
|
7045
7077
|
return decodeDisputeCase(maybeAccount);
|
|
7046
7078
|
}
|
|
7047
7079
|
async function fetchAllDisputeCase(rpc, addresses, config) {
|
|
@@ -7118,17 +7150,17 @@ function decodeDynamicPricingEngine(encodedAccount) {
|
|
|
7118
7150
|
getDynamicPricingEngineDecoder()
|
|
7119
7151
|
);
|
|
7120
7152
|
}
|
|
7121
|
-
async function fetchDynamicPricingEngine(rpc,
|
|
7153
|
+
async function fetchDynamicPricingEngine(rpc, address3, config) {
|
|
7122
7154
|
const maybeAccount = await fetchMaybeDynamicPricingEngine(
|
|
7123
7155
|
rpc,
|
|
7124
|
-
|
|
7156
|
+
address3,
|
|
7125
7157
|
config
|
|
7126
7158
|
);
|
|
7127
7159
|
assertAccountExists(maybeAccount);
|
|
7128
7160
|
return maybeAccount;
|
|
7129
7161
|
}
|
|
7130
|
-
async function fetchMaybeDynamicPricingEngine(rpc,
|
|
7131
|
-
const maybeAccount = await fetchEncodedAccount(rpc,
|
|
7162
|
+
async function fetchMaybeDynamicPricingEngine(rpc, address3, config) {
|
|
7163
|
+
const maybeAccount = await fetchEncodedAccount(rpc, address3, config);
|
|
7132
7164
|
return decodeDynamicPricingEngine(maybeAccount);
|
|
7133
7165
|
}
|
|
7134
7166
|
async function fetchAllDynamicPricingEngine(rpc, addresses, config) {
|
|
@@ -7211,13 +7243,13 @@ function decodeExtension(encodedAccount) {
|
|
|
7211
7243
|
getExtensionDecoder()
|
|
7212
7244
|
);
|
|
7213
7245
|
}
|
|
7214
|
-
async function fetchExtension(rpc,
|
|
7215
|
-
const maybeAccount = await fetchMaybeExtension(rpc,
|
|
7246
|
+
async function fetchExtension(rpc, address3, config) {
|
|
7247
|
+
const maybeAccount = await fetchMaybeExtension(rpc, address3, config);
|
|
7216
7248
|
assertAccountExists(maybeAccount);
|
|
7217
7249
|
return maybeAccount;
|
|
7218
7250
|
}
|
|
7219
|
-
async function fetchMaybeExtension(rpc,
|
|
7220
|
-
const maybeAccount = await fetchEncodedAccount(rpc,
|
|
7251
|
+
async function fetchMaybeExtension(rpc, address3, config) {
|
|
7252
|
+
const maybeAccount = await fetchEncodedAccount(rpc, address3, config);
|
|
7221
7253
|
return decodeExtension(maybeAccount);
|
|
7222
7254
|
}
|
|
7223
7255
|
async function fetchAllExtension(rpc, addresses, config) {
|
|
@@ -7305,13 +7337,13 @@ function decodeGovernanceProposal(encodedAccount) {
|
|
|
7305
7337
|
getGovernanceProposalDecoder()
|
|
7306
7338
|
);
|
|
7307
7339
|
}
|
|
7308
|
-
async function fetchGovernanceProposal(rpc,
|
|
7309
|
-
const maybeAccount = await fetchMaybeGovernanceProposal(rpc,
|
|
7340
|
+
async function fetchGovernanceProposal(rpc, address3, config) {
|
|
7341
|
+
const maybeAccount = await fetchMaybeGovernanceProposal(rpc, address3, config);
|
|
7310
7342
|
assertAccountExists(maybeAccount);
|
|
7311
7343
|
return maybeAccount;
|
|
7312
7344
|
}
|
|
7313
|
-
async function fetchMaybeGovernanceProposal(rpc,
|
|
7314
|
-
const maybeAccount = await fetchEncodedAccount(rpc,
|
|
7345
|
+
async function fetchMaybeGovernanceProposal(rpc, address3, config) {
|
|
7346
|
+
const maybeAccount = await fetchEncodedAccount(rpc, address3, config);
|
|
7315
7347
|
return decodeGovernanceProposal(maybeAccount);
|
|
7316
7348
|
}
|
|
7317
7349
|
async function fetchAllGovernanceProposal(rpc, addresses, config) {
|
|
@@ -7389,13 +7421,13 @@ function decodeIncentiveProgram(encodedAccount) {
|
|
|
7389
7421
|
getIncentiveProgramDecoder()
|
|
7390
7422
|
);
|
|
7391
7423
|
}
|
|
7392
|
-
async function fetchIncentiveProgram(rpc,
|
|
7393
|
-
const maybeAccount = await fetchMaybeIncentiveProgram(rpc,
|
|
7424
|
+
async function fetchIncentiveProgram(rpc, address3, config) {
|
|
7425
|
+
const maybeAccount = await fetchMaybeIncentiveProgram(rpc, address3, config);
|
|
7394
7426
|
assertAccountExists(maybeAccount);
|
|
7395
7427
|
return maybeAccount;
|
|
7396
7428
|
}
|
|
7397
|
-
async function fetchMaybeIncentiveProgram(rpc,
|
|
7398
|
-
const maybeAccount = await fetchEncodedAccount(rpc,
|
|
7429
|
+
async function fetchMaybeIncentiveProgram(rpc, address3, config) {
|
|
7430
|
+
const maybeAccount = await fetchEncodedAccount(rpc, address3, config);
|
|
7399
7431
|
return decodeIncentiveProgram(maybeAccount);
|
|
7400
7432
|
}
|
|
7401
7433
|
async function fetchAllIncentiveProgram(rpc, addresses, config) {
|
|
@@ -7487,13 +7519,13 @@ function decodeJobApplication(encodedAccount) {
|
|
|
7487
7519
|
getJobApplicationDecoder()
|
|
7488
7520
|
);
|
|
7489
7521
|
}
|
|
7490
|
-
async function fetchJobApplication(rpc,
|
|
7491
|
-
const maybeAccount = await fetchMaybeJobApplication(rpc,
|
|
7522
|
+
async function fetchJobApplication(rpc, address3, config) {
|
|
7523
|
+
const maybeAccount = await fetchMaybeJobApplication(rpc, address3, config);
|
|
7492
7524
|
assertAccountExists(maybeAccount);
|
|
7493
7525
|
return maybeAccount;
|
|
7494
7526
|
}
|
|
7495
|
-
async function fetchMaybeJobApplication(rpc,
|
|
7496
|
-
const maybeAccount = await fetchEncodedAccount(rpc,
|
|
7527
|
+
async function fetchMaybeJobApplication(rpc, address3, config) {
|
|
7528
|
+
const maybeAccount = await fetchEncodedAccount(rpc, address3, config);
|
|
7497
7529
|
return decodeJobApplication(maybeAccount);
|
|
7498
7530
|
}
|
|
7499
7531
|
async function fetchAllJobApplication(rpc, addresses, config) {
|
|
@@ -7576,13 +7608,13 @@ function decodeJobContract(encodedAccount) {
|
|
|
7576
7608
|
getJobContractDecoder()
|
|
7577
7609
|
);
|
|
7578
7610
|
}
|
|
7579
|
-
async function fetchJobContract(rpc,
|
|
7580
|
-
const maybeAccount = await fetchMaybeJobContract(rpc,
|
|
7611
|
+
async function fetchJobContract(rpc, address3, config) {
|
|
7612
|
+
const maybeAccount = await fetchMaybeJobContract(rpc, address3, config);
|
|
7581
7613
|
assertAccountExists(maybeAccount);
|
|
7582
7614
|
return maybeAccount;
|
|
7583
7615
|
}
|
|
7584
|
-
async function fetchMaybeJobContract(rpc,
|
|
7585
|
-
const maybeAccount = await fetchEncodedAccount(rpc,
|
|
7616
|
+
async function fetchMaybeJobContract(rpc, address3, config) {
|
|
7617
|
+
const maybeAccount = await fetchEncodedAccount(rpc, address3, config);
|
|
7586
7618
|
return decodeJobContract(maybeAccount);
|
|
7587
7619
|
}
|
|
7588
7620
|
async function fetchAllJobContract(rpc, addresses, config) {
|
|
@@ -7694,13 +7726,13 @@ function decodeJobPosting(encodedAccount) {
|
|
|
7694
7726
|
getJobPostingDecoder()
|
|
7695
7727
|
);
|
|
7696
7728
|
}
|
|
7697
|
-
async function fetchJobPosting(rpc,
|
|
7698
|
-
const maybeAccount = await fetchMaybeJobPosting(rpc,
|
|
7729
|
+
async function fetchJobPosting(rpc, address3, config) {
|
|
7730
|
+
const maybeAccount = await fetchMaybeJobPosting(rpc, address3, config);
|
|
7699
7731
|
assertAccountExists(maybeAccount);
|
|
7700
7732
|
return maybeAccount;
|
|
7701
7733
|
}
|
|
7702
|
-
async function fetchMaybeJobPosting(rpc,
|
|
7703
|
-
const maybeAccount = await fetchEncodedAccount(rpc,
|
|
7734
|
+
async function fetchMaybeJobPosting(rpc, address3, config) {
|
|
7735
|
+
const maybeAccount = await fetchEncodedAccount(rpc, address3, config);
|
|
7704
7736
|
return decodeJobPosting(maybeAccount);
|
|
7705
7737
|
}
|
|
7706
7738
|
async function fetchAllJobPosting(rpc, addresses, config) {
|
|
@@ -7778,13 +7810,13 @@ function decodeMarketAnalytics(encodedAccount) {
|
|
|
7778
7810
|
getMarketAnalyticsDecoder()
|
|
7779
7811
|
);
|
|
7780
7812
|
}
|
|
7781
|
-
async function fetchMarketAnalytics(rpc,
|
|
7782
|
-
const maybeAccount = await fetchMaybeMarketAnalytics(rpc,
|
|
7813
|
+
async function fetchMarketAnalytics(rpc, address3, config) {
|
|
7814
|
+
const maybeAccount = await fetchMaybeMarketAnalytics(rpc, address3, config);
|
|
7783
7815
|
assertAccountExists(maybeAccount);
|
|
7784
7816
|
return maybeAccount;
|
|
7785
7817
|
}
|
|
7786
|
-
async function fetchMaybeMarketAnalytics(rpc,
|
|
7787
|
-
const maybeAccount = await fetchEncodedAccount(rpc,
|
|
7818
|
+
async function fetchMaybeMarketAnalytics(rpc, address3, config) {
|
|
7819
|
+
const maybeAccount = await fetchEncodedAccount(rpc, address3, config);
|
|
7788
7820
|
return decodeMarketAnalytics(maybeAccount);
|
|
7789
7821
|
}
|
|
7790
7822
|
async function fetchAllMarketAnalytics(rpc, addresses, config) {
|
|
@@ -7856,13 +7888,13 @@ function decodeMessage(encodedAccount) {
|
|
|
7856
7888
|
getMessageDecoder()
|
|
7857
7889
|
);
|
|
7858
7890
|
}
|
|
7859
|
-
async function fetchMessage(rpc,
|
|
7860
|
-
const maybeAccount = await fetchMaybeMessage(rpc,
|
|
7891
|
+
async function fetchMessage(rpc, address3, config) {
|
|
7892
|
+
const maybeAccount = await fetchMaybeMessage(rpc, address3, config);
|
|
7861
7893
|
assertAccountExists(maybeAccount);
|
|
7862
7894
|
return maybeAccount;
|
|
7863
7895
|
}
|
|
7864
|
-
async function fetchMaybeMessage(rpc,
|
|
7865
|
-
const maybeAccount = await fetchEncodedAccount(rpc,
|
|
7896
|
+
async function fetchMaybeMessage(rpc, address3, config) {
|
|
7897
|
+
const maybeAccount = await fetchEncodedAccount(rpc, address3, config);
|
|
7866
7898
|
return decodeMessage(maybeAccount);
|
|
7867
7899
|
}
|
|
7868
7900
|
async function fetchAllMessage(rpc, addresses, config) {
|
|
@@ -7937,13 +7969,13 @@ function decodeMultisig(encodedAccount) {
|
|
|
7937
7969
|
getMultisigDecoder()
|
|
7938
7970
|
);
|
|
7939
7971
|
}
|
|
7940
|
-
async function fetchMultisig(rpc,
|
|
7941
|
-
const maybeAccount = await fetchMaybeMultisig(rpc,
|
|
7972
|
+
async function fetchMultisig(rpc, address3, config) {
|
|
7973
|
+
const maybeAccount = await fetchMaybeMultisig(rpc, address3, config);
|
|
7942
7974
|
assertAccountExists(maybeAccount);
|
|
7943
7975
|
return maybeAccount;
|
|
7944
7976
|
}
|
|
7945
|
-
async function fetchMaybeMultisig(rpc,
|
|
7946
|
-
const maybeAccount = await fetchEncodedAccount(rpc,
|
|
7977
|
+
async function fetchMaybeMultisig(rpc, address3, config) {
|
|
7978
|
+
const maybeAccount = await fetchEncodedAccount(rpc, address3, config);
|
|
7947
7979
|
return decodeMultisig(maybeAccount);
|
|
7948
7980
|
}
|
|
7949
7981
|
async function fetchAllMultisig(rpc, addresses, config) {
|
|
@@ -8033,13 +8065,13 @@ function decodeNegotiationChatbot(encodedAccount) {
|
|
|
8033
8065
|
getNegotiationChatbotDecoder()
|
|
8034
8066
|
);
|
|
8035
8067
|
}
|
|
8036
|
-
async function fetchNegotiationChatbot(rpc,
|
|
8037
|
-
const maybeAccount = await fetchMaybeNegotiationChatbot(rpc,
|
|
8068
|
+
async function fetchNegotiationChatbot(rpc, address3, config) {
|
|
8069
|
+
const maybeAccount = await fetchMaybeNegotiationChatbot(rpc, address3, config);
|
|
8038
8070
|
assertAccountExists(maybeAccount);
|
|
8039
8071
|
return maybeAccount;
|
|
8040
8072
|
}
|
|
8041
|
-
async function fetchMaybeNegotiationChatbot(rpc,
|
|
8042
|
-
const maybeAccount = await fetchEncodedAccount(rpc,
|
|
8073
|
+
async function fetchMaybeNegotiationChatbot(rpc, address3, config) {
|
|
8074
|
+
const maybeAccount = await fetchEncodedAccount(rpc, address3, config);
|
|
8043
8075
|
return decodeNegotiationChatbot(maybeAccount);
|
|
8044
8076
|
}
|
|
8045
8077
|
async function fetchAllNegotiationChatbot(rpc, addresses, config) {
|
|
@@ -8118,13 +8150,13 @@ function decodePayment(encodedAccount) {
|
|
|
8118
8150
|
getPaymentDecoder()
|
|
8119
8151
|
);
|
|
8120
8152
|
}
|
|
8121
|
-
async function fetchPayment(rpc,
|
|
8122
|
-
const maybeAccount = await fetchMaybePayment(rpc,
|
|
8153
|
+
async function fetchPayment(rpc, address3, config) {
|
|
8154
|
+
const maybeAccount = await fetchMaybePayment(rpc, address3, config);
|
|
8123
8155
|
assertAccountExists(maybeAccount);
|
|
8124
8156
|
return maybeAccount;
|
|
8125
8157
|
}
|
|
8126
|
-
async function fetchMaybePayment(rpc,
|
|
8127
|
-
const maybeAccount = await fetchEncodedAccount(rpc,
|
|
8158
|
+
async function fetchMaybePayment(rpc, address3, config) {
|
|
8159
|
+
const maybeAccount = await fetchEncodedAccount(rpc, address3, config);
|
|
8128
8160
|
return decodePayment(maybeAccount);
|
|
8129
8161
|
}
|
|
8130
8162
|
async function fetchAllPayment(rpc, addresses, config) {
|
|
@@ -8198,13 +8230,13 @@ function decodeRbacConfig(encodedAccount) {
|
|
|
8198
8230
|
getRbacConfigDecoder()
|
|
8199
8231
|
);
|
|
8200
8232
|
}
|
|
8201
|
-
async function fetchRbacConfig(rpc,
|
|
8202
|
-
const maybeAccount = await fetchMaybeRbacConfig(rpc,
|
|
8233
|
+
async function fetchRbacConfig(rpc, address3, config) {
|
|
8234
|
+
const maybeAccount = await fetchMaybeRbacConfig(rpc, address3, config);
|
|
8203
8235
|
assertAccountExists(maybeAccount);
|
|
8204
8236
|
return maybeAccount;
|
|
8205
8237
|
}
|
|
8206
|
-
async function fetchMaybeRbacConfig(rpc,
|
|
8207
|
-
const maybeAccount = await fetchEncodedAccount(rpc,
|
|
8238
|
+
async function fetchMaybeRbacConfig(rpc, address3, config) {
|
|
8239
|
+
const maybeAccount = await fetchEncodedAccount(rpc, address3, config);
|
|
8208
8240
|
return decodeRbacConfig(maybeAccount);
|
|
8209
8241
|
}
|
|
8210
8242
|
async function fetchAllRbacConfig(rpc, addresses, config) {
|
|
@@ -8278,13 +8310,13 @@ function decodeReplicationRecord(encodedAccount) {
|
|
|
8278
8310
|
getReplicationRecordDecoder()
|
|
8279
8311
|
);
|
|
8280
8312
|
}
|
|
8281
|
-
async function fetchReplicationRecord(rpc,
|
|
8282
|
-
const maybeAccount = await fetchMaybeReplicationRecord(rpc,
|
|
8313
|
+
async function fetchReplicationRecord(rpc, address3, config) {
|
|
8314
|
+
const maybeAccount = await fetchMaybeReplicationRecord(rpc, address3, config);
|
|
8283
8315
|
assertAccountExists(maybeAccount);
|
|
8284
8316
|
return maybeAccount;
|
|
8285
8317
|
}
|
|
8286
|
-
async function fetchMaybeReplicationRecord(rpc,
|
|
8287
|
-
const maybeAccount = await fetchEncodedAccount(rpc,
|
|
8318
|
+
async function fetchMaybeReplicationRecord(rpc, address3, config) {
|
|
8319
|
+
const maybeAccount = await fetchEncodedAccount(rpc, address3, config);
|
|
8288
8320
|
return decodeReplicationRecord(maybeAccount);
|
|
8289
8321
|
}
|
|
8290
8322
|
async function fetchAllReplicationRecord(rpc, addresses, config) {
|
|
@@ -8381,17 +8413,17 @@ function decodeReplicationTemplate(encodedAccount) {
|
|
|
8381
8413
|
getReplicationTemplateDecoder()
|
|
8382
8414
|
);
|
|
8383
8415
|
}
|
|
8384
|
-
async function fetchReplicationTemplate(rpc,
|
|
8416
|
+
async function fetchReplicationTemplate(rpc, address3, config) {
|
|
8385
8417
|
const maybeAccount = await fetchMaybeReplicationTemplate(
|
|
8386
8418
|
rpc,
|
|
8387
|
-
|
|
8419
|
+
address3,
|
|
8388
8420
|
config
|
|
8389
8421
|
);
|
|
8390
8422
|
assertAccountExists(maybeAccount);
|
|
8391
8423
|
return maybeAccount;
|
|
8392
8424
|
}
|
|
8393
|
-
async function fetchMaybeReplicationTemplate(rpc,
|
|
8394
|
-
const maybeAccount = await fetchEncodedAccount(rpc,
|
|
8425
|
+
async function fetchMaybeReplicationTemplate(rpc, address3, config) {
|
|
8426
|
+
const maybeAccount = await fetchEncodedAccount(rpc, address3, config);
|
|
8395
8427
|
return decodeReplicationTemplate(maybeAccount);
|
|
8396
8428
|
}
|
|
8397
8429
|
async function fetchAllReplicationTemplate(rpc, addresses, config) {
|
|
@@ -8469,13 +8501,13 @@ function decodeResaleMarket(encodedAccount) {
|
|
|
8469
8501
|
getResaleMarketDecoder()
|
|
8470
8502
|
);
|
|
8471
8503
|
}
|
|
8472
|
-
async function fetchResaleMarket(rpc,
|
|
8473
|
-
const maybeAccount = await fetchMaybeResaleMarket(rpc,
|
|
8504
|
+
async function fetchResaleMarket(rpc, address3, config) {
|
|
8505
|
+
const maybeAccount = await fetchMaybeResaleMarket(rpc, address3, config);
|
|
8474
8506
|
assertAccountExists(maybeAccount);
|
|
8475
8507
|
return maybeAccount;
|
|
8476
8508
|
}
|
|
8477
|
-
async function fetchMaybeResaleMarket(rpc,
|
|
8478
|
-
const maybeAccount = await fetchEncodedAccount(rpc,
|
|
8509
|
+
async function fetchMaybeResaleMarket(rpc, address3, config) {
|
|
8510
|
+
const maybeAccount = await fetchEncodedAccount(rpc, address3, config);
|
|
8479
8511
|
return decodeResaleMarket(maybeAccount);
|
|
8480
8512
|
}
|
|
8481
8513
|
async function fetchAllResaleMarket(rpc, addresses, config) {
|
|
@@ -8545,13 +8577,13 @@ function decodeRoyaltyStream(encodedAccount) {
|
|
|
8545
8577
|
getRoyaltyStreamDecoder()
|
|
8546
8578
|
);
|
|
8547
8579
|
}
|
|
8548
|
-
async function fetchRoyaltyStream(rpc,
|
|
8549
|
-
const maybeAccount = await fetchMaybeRoyaltyStream(rpc,
|
|
8580
|
+
async function fetchRoyaltyStream(rpc, address3, config) {
|
|
8581
|
+
const maybeAccount = await fetchMaybeRoyaltyStream(rpc, address3, config);
|
|
8550
8582
|
assertAccountExists(maybeAccount);
|
|
8551
8583
|
return maybeAccount;
|
|
8552
8584
|
}
|
|
8553
|
-
async function fetchMaybeRoyaltyStream(rpc,
|
|
8554
|
-
const maybeAccount = await fetchEncodedAccount(rpc,
|
|
8585
|
+
async function fetchMaybeRoyaltyStream(rpc, address3, config) {
|
|
8586
|
+
const maybeAccount = await fetchEncodedAccount(rpc, address3, config);
|
|
8555
8587
|
return decodeRoyaltyStream(maybeAccount);
|
|
8556
8588
|
}
|
|
8557
8589
|
async function fetchAllRoyaltyStream(rpc, addresses, config) {
|
|
@@ -8655,13 +8687,13 @@ function decodeServiceListing(encodedAccount) {
|
|
|
8655
8687
|
getServiceListingDecoder()
|
|
8656
8688
|
);
|
|
8657
8689
|
}
|
|
8658
|
-
async function fetchServiceListing(rpc,
|
|
8659
|
-
const maybeAccount = await fetchMaybeServiceListing(rpc,
|
|
8690
|
+
async function fetchServiceListing(rpc, address3, config) {
|
|
8691
|
+
const maybeAccount = await fetchMaybeServiceListing(rpc, address3, config);
|
|
8660
8692
|
assertAccountExists(maybeAccount);
|
|
8661
8693
|
return maybeAccount;
|
|
8662
8694
|
}
|
|
8663
|
-
async function fetchMaybeServiceListing(rpc,
|
|
8664
|
-
const maybeAccount = await fetchEncodedAccount(rpc,
|
|
8695
|
+
async function fetchMaybeServiceListing(rpc, address3, config) {
|
|
8696
|
+
const maybeAccount = await fetchEncodedAccount(rpc, address3, config);
|
|
8665
8697
|
return decodeServiceListing(maybeAccount);
|
|
8666
8698
|
}
|
|
8667
8699
|
async function fetchAllServiceListing(rpc, addresses, config) {
|
|
@@ -8765,13 +8797,13 @@ function decodeServicePurchase(encodedAccount) {
|
|
|
8765
8797
|
getServicePurchaseDecoder()
|
|
8766
8798
|
);
|
|
8767
8799
|
}
|
|
8768
|
-
async function fetchServicePurchase(rpc,
|
|
8769
|
-
const maybeAccount = await fetchMaybeServicePurchase(rpc,
|
|
8800
|
+
async function fetchServicePurchase(rpc, address3, config) {
|
|
8801
|
+
const maybeAccount = await fetchMaybeServicePurchase(rpc, address3, config);
|
|
8770
8802
|
assertAccountExists(maybeAccount);
|
|
8771
8803
|
return maybeAccount;
|
|
8772
8804
|
}
|
|
8773
|
-
async function fetchMaybeServicePurchase(rpc,
|
|
8774
|
-
const maybeAccount = await fetchEncodedAccount(rpc,
|
|
8805
|
+
async function fetchMaybeServicePurchase(rpc, address3, config) {
|
|
8806
|
+
const maybeAccount = await fetchEncodedAccount(rpc, address3, config);
|
|
8775
8807
|
return decodeServicePurchase(maybeAccount);
|
|
8776
8808
|
}
|
|
8777
8809
|
async function fetchAllServicePurchase(rpc, addresses, config) {
|
|
@@ -8868,13 +8900,13 @@ function decodeUserRegistry(encodedAccount) {
|
|
|
8868
8900
|
getUserRegistryDecoder()
|
|
8869
8901
|
);
|
|
8870
8902
|
}
|
|
8871
|
-
async function fetchUserRegistry(rpc,
|
|
8872
|
-
const maybeAccount = await fetchMaybeUserRegistry(rpc,
|
|
8903
|
+
async function fetchUserRegistry(rpc, address3, config) {
|
|
8904
|
+
const maybeAccount = await fetchMaybeUserRegistry(rpc, address3, config);
|
|
8873
8905
|
assertAccountExists(maybeAccount);
|
|
8874
8906
|
return maybeAccount;
|
|
8875
8907
|
}
|
|
8876
|
-
async function fetchMaybeUserRegistry(rpc,
|
|
8877
|
-
const maybeAccount = await fetchEncodedAccount(rpc,
|
|
8908
|
+
async function fetchMaybeUserRegistry(rpc, address3, config) {
|
|
8909
|
+
const maybeAccount = await fetchEncodedAccount(rpc, address3, config);
|
|
8878
8910
|
return decodeUserRegistry(maybeAccount);
|
|
8879
8911
|
}
|
|
8880
8912
|
async function fetchAllUserRegistry(rpc, addresses, config) {
|
|
@@ -8945,13 +8977,13 @@ function decodeWorkDelivery(encodedAccount) {
|
|
|
8945
8977
|
getWorkDeliveryDecoder()
|
|
8946
8978
|
);
|
|
8947
8979
|
}
|
|
8948
|
-
async function fetchWorkDelivery(rpc,
|
|
8949
|
-
const maybeAccount = await fetchMaybeWorkDelivery(rpc,
|
|
8980
|
+
async function fetchWorkDelivery(rpc, address3, config) {
|
|
8981
|
+
const maybeAccount = await fetchMaybeWorkDelivery(rpc, address3, config);
|
|
8950
8982
|
assertAccountExists(maybeAccount);
|
|
8951
8983
|
return maybeAccount;
|
|
8952
8984
|
}
|
|
8953
|
-
async function fetchMaybeWorkDelivery(rpc,
|
|
8954
|
-
const maybeAccount = await fetchEncodedAccount(rpc,
|
|
8985
|
+
async function fetchMaybeWorkDelivery(rpc, address3, config) {
|
|
8986
|
+
const maybeAccount = await fetchEncodedAccount(rpc, address3, config);
|
|
8955
8987
|
return decodeWorkDelivery(maybeAccount);
|
|
8956
8988
|
}
|
|
8957
8989
|
async function fetchAllWorkDelivery(rpc, addresses, config) {
|
|
@@ -9038,13 +9070,13 @@ function decodeWorkOrder(encodedAccount) {
|
|
|
9038
9070
|
getWorkOrderDecoder()
|
|
9039
9071
|
);
|
|
9040
9072
|
}
|
|
9041
|
-
async function fetchWorkOrder(rpc,
|
|
9042
|
-
const maybeAccount = await fetchMaybeWorkOrder(rpc,
|
|
9073
|
+
async function fetchWorkOrder(rpc, address3, config) {
|
|
9074
|
+
const maybeAccount = await fetchMaybeWorkOrder(rpc, address3, config);
|
|
9043
9075
|
assertAccountExists(maybeAccount);
|
|
9044
9076
|
return maybeAccount;
|
|
9045
9077
|
}
|
|
9046
|
-
async function fetchMaybeWorkOrder(rpc,
|
|
9047
|
-
const maybeAccount = await fetchEncodedAccount(rpc,
|
|
9078
|
+
async function fetchMaybeWorkOrder(rpc, address3, config) {
|
|
9079
|
+
const maybeAccount = await fetchEncodedAccount(rpc, address3, config);
|
|
9048
9080
|
return decodeWorkOrder(maybeAccount);
|
|
9049
9081
|
}
|
|
9050
9082
|
async function fetchAllWorkOrder(rpc, addresses, config) {
|
|
@@ -10654,7 +10686,7 @@ function getAcceptJobApplicationInstruction(input, config) {
|
|
|
10654
10686
|
}
|
|
10655
10687
|
function parseAcceptJobApplicationInstruction(instruction) {
|
|
10656
10688
|
if (instruction.accounts.length < 5) {
|
|
10657
|
-
throw new Error("
|
|
10689
|
+
throw new Error("Invalid number of accounts provided");
|
|
10658
10690
|
}
|
|
10659
10691
|
let accountIndex = 0;
|
|
10660
10692
|
const getNextAccount = () => {
|
|
@@ -10734,9 +10766,7 @@ async function getActivateAgentInstructionAsync(input, config) {
|
|
|
10734
10766
|
seeds: [
|
|
10735
10767
|
getBytesEncoder().encode(new Uint8Array([97, 103, 101, 110, 116])),
|
|
10736
10768
|
getAddressEncoder().encode(expectAddress(accounts.signer.value)),
|
|
10737
|
-
|
|
10738
|
-
expectSome(args.agentId)
|
|
10739
|
-
)
|
|
10769
|
+
getUtf8Encoder().encode(expectSome(args.agentId))
|
|
10740
10770
|
]
|
|
10741
10771
|
});
|
|
10742
10772
|
}
|
|
@@ -10785,7 +10815,7 @@ function getActivateAgentInstruction(input, config) {
|
|
|
10785
10815
|
}
|
|
10786
10816
|
function parseActivateAgentInstruction(instruction) {
|
|
10787
10817
|
if (instruction.accounts.length < 3) {
|
|
10788
|
-
throw new Error("
|
|
10818
|
+
throw new Error("Invalid number of accounts provided");
|
|
10789
10819
|
}
|
|
10790
10820
|
let accountIndex = 0;
|
|
10791
10821
|
const getNextAccount = () => {
|
|
@@ -10874,7 +10904,7 @@ function getAddTopAgentInstruction(input, config) {
|
|
|
10874
10904
|
}
|
|
10875
10905
|
function parseAddTopAgentInstruction(instruction) {
|
|
10876
10906
|
if (instruction.accounts.length < 3) {
|
|
10877
|
-
throw new Error("
|
|
10907
|
+
throw new Error("Invalid number of accounts provided");
|
|
10878
10908
|
}
|
|
10879
10909
|
let accountIndex = 0;
|
|
10880
10910
|
const getNextAccount = () => {
|
|
@@ -11043,7 +11073,7 @@ function getApplyToJobInstruction(input, config) {
|
|
|
11043
11073
|
}
|
|
11044
11074
|
function parseApplyToJobInstruction(instruction) {
|
|
11045
11075
|
if (instruction.accounts.length < 5) {
|
|
11046
|
-
throw new Error("
|
|
11076
|
+
throw new Error("Invalid number of accounts provided");
|
|
11047
11077
|
}
|
|
11048
11078
|
let accountIndex = 0;
|
|
11049
11079
|
const getNextAccount = () => {
|
|
@@ -11127,7 +11157,7 @@ function getApproveExtensionInstruction(input, config) {
|
|
|
11127
11157
|
}
|
|
11128
11158
|
function parseApproveExtensionInstruction(instruction) {
|
|
11129
11159
|
if (instruction.accounts.length < 3) {
|
|
11130
|
-
throw new Error("
|
|
11160
|
+
throw new Error("Invalid number of accounts provided");
|
|
11131
11161
|
}
|
|
11132
11162
|
let accountIndex = 0;
|
|
11133
11163
|
const getNextAccount = () => {
|
|
@@ -11263,7 +11293,7 @@ function getCreateA2aSessionInstruction(input, config) {
|
|
|
11263
11293
|
}
|
|
11264
11294
|
function parseCreateA2aSessionInstruction(instruction) {
|
|
11265
11295
|
if (instruction.accounts.length < 3) {
|
|
11266
|
-
throw new Error("
|
|
11296
|
+
throw new Error("Invalid number of accounts provided");
|
|
11267
11297
|
}
|
|
11268
11298
|
let accountIndex = 0;
|
|
11269
11299
|
const getNextAccount = () => {
|
|
@@ -11434,7 +11464,7 @@ function getCreateAnalyticsDashboardInstruction(input, config) {
|
|
|
11434
11464
|
}
|
|
11435
11465
|
function parseCreateAnalyticsDashboardInstruction(instruction) {
|
|
11436
11466
|
if (instruction.accounts.length < 5) {
|
|
11437
|
-
throw new Error("
|
|
11467
|
+
throw new Error("Invalid number of accounts provided");
|
|
11438
11468
|
}
|
|
11439
11469
|
let accountIndex = 0;
|
|
11440
11470
|
const getNextAccount = () => {
|
|
@@ -11612,7 +11642,7 @@ function getCreateBulkDealInstruction(input, config) {
|
|
|
11612
11642
|
}
|
|
11613
11643
|
function parseCreateBulkDealInstruction(instruction) {
|
|
11614
11644
|
if (instruction.accounts.length < 6) {
|
|
11615
|
-
throw new Error("
|
|
11645
|
+
throw new Error("Invalid number of accounts provided");
|
|
11616
11646
|
}
|
|
11617
11647
|
let accountIndex = 0;
|
|
11618
11648
|
const getNextAccount = () => {
|
|
@@ -11711,7 +11741,7 @@ function getCreateChannelInstruction(input, config) {
|
|
|
11711
11741
|
}
|
|
11712
11742
|
function parseCreateChannelInstruction(instruction) {
|
|
11713
11743
|
if (instruction.accounts.length < 3) {
|
|
11714
|
-
throw new Error("
|
|
11744
|
+
throw new Error("Invalid number of accounts provided");
|
|
11715
11745
|
}
|
|
11716
11746
|
let accountIndex = 0;
|
|
11717
11747
|
const getNextAccount = () => {
|
|
@@ -11861,7 +11891,7 @@ function getCreateDynamicPricingEngineInstruction(input, config) {
|
|
|
11861
11891
|
}
|
|
11862
11892
|
function parseCreateDynamicPricingEngineInstruction(instruction) {
|
|
11863
11893
|
if (instruction.accounts.length < 4) {
|
|
11864
|
-
throw new Error("
|
|
11894
|
+
throw new Error("Invalid number of accounts provided");
|
|
11865
11895
|
}
|
|
11866
11896
|
let accountIndex = 0;
|
|
11867
11897
|
const getNextAccount = () => {
|
|
@@ -12012,7 +12042,7 @@ function getCreateIncentiveProgramInstruction(input, config) {
|
|
|
12012
12042
|
}
|
|
12013
12043
|
function parseCreateIncentiveProgramInstruction(instruction) {
|
|
12014
12044
|
if (instruction.accounts.length < 3) {
|
|
12015
|
-
throw new Error("
|
|
12045
|
+
throw new Error("Invalid number of accounts provided");
|
|
12016
12046
|
}
|
|
12017
12047
|
let accountIndex = 0;
|
|
12018
12048
|
const getNextAccount = () => {
|
|
@@ -12183,7 +12213,7 @@ function getCreateJobPostingInstruction(input, config) {
|
|
|
12183
12213
|
}
|
|
12184
12214
|
function parseCreateJobPostingInstruction(instruction) {
|
|
12185
12215
|
if (instruction.accounts.length < 3) {
|
|
12186
|
-
throw new Error("
|
|
12216
|
+
throw new Error("Invalid number of accounts provided");
|
|
12187
12217
|
}
|
|
12188
12218
|
let accountIndex = 0;
|
|
12189
12219
|
const getNextAccount = () => {
|
|
@@ -12342,7 +12372,7 @@ function getCreateMarketAnalyticsInstruction(input, config) {
|
|
|
12342
12372
|
}
|
|
12343
12373
|
function parseCreateMarketAnalyticsInstruction(instruction) {
|
|
12344
12374
|
if (instruction.accounts.length < 4) {
|
|
12345
|
-
throw new Error("
|
|
12375
|
+
throw new Error("Invalid number of accounts provided");
|
|
12346
12376
|
}
|
|
12347
12377
|
let accountIndex = 0;
|
|
12348
12378
|
const getNextAccount = () => {
|
|
@@ -12478,7 +12508,7 @@ function getCreateMultisigInstruction(input, config) {
|
|
|
12478
12508
|
}
|
|
12479
12509
|
function parseCreateMultisigInstruction(instruction) {
|
|
12480
12510
|
if (instruction.accounts.length < 3) {
|
|
12481
|
-
throw new Error("
|
|
12511
|
+
throw new Error("Invalid number of accounts provided");
|
|
12482
12512
|
}
|
|
12483
12513
|
let accountIndex = 0;
|
|
12484
12514
|
const getNextAccount = () => {
|
|
@@ -12663,7 +12693,7 @@ function getCreateReplicationTemplateInstruction(input, config) {
|
|
|
12663
12693
|
}
|
|
12664
12694
|
function parseCreateReplicationTemplateInstruction(instruction) {
|
|
12665
12695
|
if (instruction.accounts.length < 5) {
|
|
12666
|
-
throw new Error("
|
|
12696
|
+
throw new Error("Invalid number of accounts provided");
|
|
12667
12697
|
}
|
|
12668
12698
|
let accountIndex = 0;
|
|
12669
12699
|
const getNextAccount = () => {
|
|
@@ -12815,7 +12845,7 @@ function getCreateRoyaltyStreamInstruction(input, config) {
|
|
|
12815
12845
|
}
|
|
12816
12846
|
function parseCreateRoyaltyStreamInstruction(instruction) {
|
|
12817
12847
|
if (instruction.accounts.length < 4) {
|
|
12818
|
-
throw new Error("
|
|
12848
|
+
throw new Error("Invalid number of accounts provided");
|
|
12819
12849
|
}
|
|
12820
12850
|
let accountIndex = 0;
|
|
12821
12851
|
const getNextAccount = () => {
|
|
@@ -12981,7 +13011,7 @@ function getCreateServiceAuctionInstruction(input, config) {
|
|
|
12981
13011
|
}
|
|
12982
13012
|
function parseCreateServiceAuctionInstruction(instruction) {
|
|
12983
13013
|
if (instruction.accounts.length < 6) {
|
|
12984
|
-
throw new Error("
|
|
13014
|
+
throw new Error("Invalid number of accounts provided");
|
|
12985
13015
|
}
|
|
12986
13016
|
let accountIndex = 0;
|
|
12987
13017
|
const getNextAccount = () => {
|
|
@@ -13111,9 +13141,7 @@ async function getCreateServiceListingInstructionAsync(input, config) {
|
|
|
13111
13141
|
])
|
|
13112
13142
|
),
|
|
13113
13143
|
getAddressEncoder().encode(expectAddress(accounts.creator.value)),
|
|
13114
|
-
|
|
13115
|
-
expectSome(args.listingId)
|
|
13116
|
-
)
|
|
13144
|
+
getUtf8Encoder().encode(expectSome(args.listingId))
|
|
13117
13145
|
]
|
|
13118
13146
|
});
|
|
13119
13147
|
}
|
|
@@ -13202,7 +13230,7 @@ function getCreateServiceListingInstruction(input, config) {
|
|
|
13202
13230
|
}
|
|
13203
13231
|
function parseCreateServiceListingInstruction(instruction) {
|
|
13204
13232
|
if (instruction.accounts.length < 6) {
|
|
13205
|
-
throw new Error("
|
|
13233
|
+
throw new Error("Invalid number of accounts provided");
|
|
13206
13234
|
}
|
|
13207
13235
|
let accountIndex = 0;
|
|
13208
13236
|
const getNextAccount = () => {
|
|
@@ -13323,7 +13351,7 @@ function getCreateWorkOrderInstruction(input, config) {
|
|
|
13323
13351
|
}
|
|
13324
13352
|
function parseCreateWorkOrderInstruction(instruction) {
|
|
13325
13353
|
if (instruction.accounts.length < 4) {
|
|
13326
|
-
throw new Error("
|
|
13354
|
+
throw new Error("Invalid number of accounts provided");
|
|
13327
13355
|
}
|
|
13328
13356
|
let accountIndex = 0;
|
|
13329
13357
|
const getNextAccount = () => {
|
|
@@ -13400,9 +13428,7 @@ async function getDeactivateAgentInstructionAsync(input, config) {
|
|
|
13400
13428
|
seeds: [
|
|
13401
13429
|
getBytesEncoder().encode(new Uint8Array([97, 103, 101, 110, 116])),
|
|
13402
13430
|
getAddressEncoder().encode(expectAddress(accounts.signer.value)),
|
|
13403
|
-
|
|
13404
|
-
expectSome(args.agentId)
|
|
13405
|
-
)
|
|
13431
|
+
getUtf8Encoder().encode(expectSome(args.agentId))
|
|
13406
13432
|
]
|
|
13407
13433
|
});
|
|
13408
13434
|
}
|
|
@@ -13451,7 +13477,7 @@ function getDeactivateAgentInstruction(input, config) {
|
|
|
13451
13477
|
}
|
|
13452
13478
|
function parseDeactivateAgentInstruction(instruction) {
|
|
13453
13479
|
if (instruction.accounts.length < 3) {
|
|
13454
|
-
throw new Error("
|
|
13480
|
+
throw new Error("Invalid number of accounts provided");
|
|
13455
13481
|
}
|
|
13456
13482
|
let accountIndex = 0;
|
|
13457
13483
|
const getNextAccount = () => {
|
|
@@ -13547,7 +13573,7 @@ function getDistributeIncentivesInstruction(input, config) {
|
|
|
13547
13573
|
}
|
|
13548
13574
|
function parseDistributeIncentivesInstruction(instruction) {
|
|
13549
13575
|
if (instruction.accounts.length < 3) {
|
|
13550
|
-
throw new Error("
|
|
13576
|
+
throw new Error("Invalid number of accounts provided");
|
|
13551
13577
|
}
|
|
13552
13578
|
let accountIndex = 0;
|
|
13553
13579
|
const getNextAccount = () => {
|
|
@@ -13696,7 +13722,7 @@ function getExecuteBulkDealBatchInstruction(input, config) {
|
|
|
13696
13722
|
}
|
|
13697
13723
|
function parseExecuteBulkDealBatchInstruction(instruction) {
|
|
13698
13724
|
if (instruction.accounts.length < 4) {
|
|
13699
|
-
throw new Error("
|
|
13725
|
+
throw new Error("Invalid number of accounts provided");
|
|
13700
13726
|
}
|
|
13701
13727
|
let accountIndex = 0;
|
|
13702
13728
|
const getNextAccount = () => {
|
|
@@ -13782,7 +13808,7 @@ function getExportActionInstruction(input, config) {
|
|
|
13782
13808
|
}
|
|
13783
13809
|
function parseExportActionInstruction(instruction) {
|
|
13784
13810
|
if (instruction.accounts.length < 1) {
|
|
13785
|
-
throw new Error("
|
|
13811
|
+
throw new Error("Invalid number of accounts provided");
|
|
13786
13812
|
}
|
|
13787
13813
|
let accountIndex = 0;
|
|
13788
13814
|
const getNextAccount = () => {
|
|
@@ -13864,7 +13890,7 @@ function getExportAuditContextInstruction(input, config) {
|
|
|
13864
13890
|
}
|
|
13865
13891
|
function parseExportAuditContextInstruction(instruction) {
|
|
13866
13892
|
if (instruction.accounts.length < 1) {
|
|
13867
|
-
throw new Error("
|
|
13893
|
+
throw new Error("Invalid number of accounts provided");
|
|
13868
13894
|
}
|
|
13869
13895
|
let accountIndex = 0;
|
|
13870
13896
|
const getNextAccount = () => {
|
|
@@ -13951,7 +13977,7 @@ function getExportBiometricQualityInstruction(input, config) {
|
|
|
13951
13977
|
}
|
|
13952
13978
|
function parseExportBiometricQualityInstruction(instruction) {
|
|
13953
13979
|
if (instruction.accounts.length < 1) {
|
|
13954
|
-
throw new Error("
|
|
13980
|
+
throw new Error("Invalid number of accounts provided");
|
|
13955
13981
|
}
|
|
13956
13982
|
let accountIndex = 0;
|
|
13957
13983
|
const getNextAccount = () => {
|
|
@@ -14038,7 +14064,7 @@ function getExportComplianceStatusInstruction(input, config) {
|
|
|
14038
14064
|
}
|
|
14039
14065
|
function parseExportComplianceStatusInstruction(instruction) {
|
|
14040
14066
|
if (instruction.accounts.length < 1) {
|
|
14041
|
-
throw new Error("
|
|
14067
|
+
throw new Error("Invalid number of accounts provided");
|
|
14042
14068
|
}
|
|
14043
14069
|
let accountIndex = 0;
|
|
14044
14070
|
const getNextAccount = () => {
|
|
@@ -14125,7 +14151,7 @@ function getExportDynamicPricingConfigInstruction(input, config) {
|
|
|
14125
14151
|
}
|
|
14126
14152
|
function parseExportDynamicPricingConfigInstruction(instruction) {
|
|
14127
14153
|
if (instruction.accounts.length < 1) {
|
|
14128
|
-
throw new Error("
|
|
14154
|
+
throw new Error("Invalid number of accounts provided");
|
|
14129
14155
|
}
|
|
14130
14156
|
let accountIndex = 0;
|
|
14131
14157
|
const getNextAccount = () => {
|
|
@@ -14212,7 +14238,7 @@ function getExportMultisigConfigInstruction(input, config) {
|
|
|
14212
14238
|
}
|
|
14213
14239
|
function parseExportMultisigConfigInstruction(instruction) {
|
|
14214
14240
|
if (instruction.accounts.length < 1) {
|
|
14215
|
-
throw new Error("
|
|
14241
|
+
throw new Error("Invalid number of accounts provided");
|
|
14216
14242
|
}
|
|
14217
14243
|
let accountIndex = 0;
|
|
14218
14244
|
const getNextAccount = () => {
|
|
@@ -14296,7 +14322,7 @@ function getExportReportEntryInstruction(input, config) {
|
|
|
14296
14322
|
}
|
|
14297
14323
|
function parseExportReportEntryInstruction(instruction) {
|
|
14298
14324
|
if (instruction.accounts.length < 1) {
|
|
14299
|
-
throw new Error("
|
|
14325
|
+
throw new Error("Invalid number of accounts provided");
|
|
14300
14326
|
}
|
|
14301
14327
|
let accountIndex = 0;
|
|
14302
14328
|
const getNextAccount = () => {
|
|
@@ -14381,7 +14407,7 @@ function getExportResourceConstraintsInstruction(input, config) {
|
|
|
14381
14407
|
}
|
|
14382
14408
|
function parseExportResourceConstraintsInstruction(instruction) {
|
|
14383
14409
|
if (instruction.accounts.length < 1) {
|
|
14384
|
-
throw new Error("
|
|
14410
|
+
throw new Error("Invalid number of accounts provided");
|
|
14385
14411
|
}
|
|
14386
14412
|
let accountIndex = 0;
|
|
14387
14413
|
const getNextAccount = () => {
|
|
@@ -14468,7 +14494,7 @@ function getExportRuleConditionInstruction(input, config) {
|
|
|
14468
14494
|
}
|
|
14469
14495
|
function parseExportRuleConditionInstruction(instruction) {
|
|
14470
14496
|
if (instruction.accounts.length < 1) {
|
|
14471
|
-
throw new Error("
|
|
14497
|
+
throw new Error("Invalid number of accounts provided");
|
|
14472
14498
|
}
|
|
14473
14499
|
let accountIndex = 0;
|
|
14474
14500
|
const getNextAccount = () => {
|
|
@@ -14646,7 +14672,7 @@ function getFileDisputeInstruction(input, config) {
|
|
|
14646
14672
|
}
|
|
14647
14673
|
function parseFileDisputeInstruction(instruction) {
|
|
14648
14674
|
if (instruction.accounts.length < 7) {
|
|
14649
|
-
throw new Error("
|
|
14675
|
+
throw new Error("Invalid number of accounts provided");
|
|
14650
14676
|
}
|
|
14651
14677
|
let accountIndex = 0;
|
|
14652
14678
|
const getNextAccount = () => {
|
|
@@ -14732,7 +14758,7 @@ function getFinalizeAuctionInstruction(input, config) {
|
|
|
14732
14758
|
}
|
|
14733
14759
|
function parseFinalizeAuctionInstruction(instruction) {
|
|
14734
14760
|
if (instruction.accounts.length < 3) {
|
|
14735
|
-
throw new Error("
|
|
14761
|
+
throw new Error("Invalid number of accounts provided");
|
|
14736
14762
|
}
|
|
14737
14763
|
let accountIndex = 0;
|
|
14738
14764
|
const getNextAccount = () => {
|
|
@@ -14889,7 +14915,7 @@ function getGenerateComplianceReportInstruction(input, config) {
|
|
|
14889
14915
|
}
|
|
14890
14916
|
function parseGenerateComplianceReportInstruction(instruction) {
|
|
14891
14917
|
if (instruction.accounts.length < 4) {
|
|
14892
|
-
throw new Error("
|
|
14918
|
+
throw new Error("Invalid number of accounts provided");
|
|
14893
14919
|
}
|
|
14894
14920
|
let accountIndex = 0;
|
|
14895
14921
|
const getNextAccount = () => {
|
|
@@ -15028,7 +15054,7 @@ function getInitializeAuditTrailInstruction(input, config) {
|
|
|
15028
15054
|
}
|
|
15029
15055
|
function parseInitializeAuditTrailInstruction(instruction) {
|
|
15030
15056
|
if (instruction.accounts.length < 4) {
|
|
15031
|
-
throw new Error("
|
|
15057
|
+
throw new Error("Invalid number of accounts provided");
|
|
15032
15058
|
}
|
|
15033
15059
|
let accountIndex = 0;
|
|
15034
15060
|
const getNextAccount = () => {
|
|
@@ -15189,7 +15215,7 @@ function getInitializeGovernanceProposalInstruction(input, config) {
|
|
|
15189
15215
|
}
|
|
15190
15216
|
function parseInitializeGovernanceProposalInstruction(instruction) {
|
|
15191
15217
|
if (instruction.accounts.length < 3) {
|
|
15192
|
-
throw new Error("
|
|
15218
|
+
throw new Error("Invalid number of accounts provided");
|
|
15193
15219
|
}
|
|
15194
15220
|
let accountIndex = 0;
|
|
15195
15221
|
const getNextAccount = () => {
|
|
@@ -15321,7 +15347,7 @@ function getInitializeRbacConfigInstruction(input, config) {
|
|
|
15321
15347
|
}
|
|
15322
15348
|
function parseInitializeRbacConfigInstruction(instruction) {
|
|
15323
15349
|
if (instruction.accounts.length < 3) {
|
|
15324
|
-
throw new Error("
|
|
15350
|
+
throw new Error("Invalid number of accounts provided");
|
|
15325
15351
|
}
|
|
15326
15352
|
let accountIndex = 0;
|
|
15327
15353
|
const getNextAccount = () => {
|
|
@@ -15459,7 +15485,7 @@ function getInitiateNegotiationInstruction(input, config) {
|
|
|
15459
15485
|
}
|
|
15460
15486
|
function parseInitiateNegotiationInstruction(instruction) {
|
|
15461
15487
|
if (instruction.accounts.length < 4) {
|
|
15462
|
-
throw new Error("
|
|
15488
|
+
throw new Error("Invalid number of accounts provided");
|
|
15463
15489
|
}
|
|
15464
15490
|
let accountIndex = 0;
|
|
15465
15491
|
const getNextAccount = () => {
|
|
@@ -15594,7 +15620,7 @@ function getListAgentForResaleInstruction(input, config) {
|
|
|
15594
15620
|
}
|
|
15595
15621
|
function parseListAgentForResaleInstruction(instruction) {
|
|
15596
15622
|
if (instruction.accounts.length < 4) {
|
|
15597
|
-
throw new Error("
|
|
15623
|
+
throw new Error("Invalid number of accounts provided");
|
|
15598
15624
|
}
|
|
15599
15625
|
let accountIndex = 0;
|
|
15600
15626
|
const getNextAccount = () => {
|
|
@@ -15683,7 +15709,7 @@ function getMakeCounterOfferInstruction(input, config) {
|
|
|
15683
15709
|
}
|
|
15684
15710
|
function parseMakeCounterOfferInstruction(instruction) {
|
|
15685
15711
|
if (instruction.accounts.length < 2) {
|
|
15686
|
-
throw new Error("
|
|
15712
|
+
throw new Error("Invalid number of accounts provided");
|
|
15687
15713
|
}
|
|
15688
15714
|
let accountIndex = 0;
|
|
15689
15715
|
const getNextAccount = () => {
|
|
@@ -15806,7 +15832,7 @@ function getManageAgentStatusInstruction(input, config) {
|
|
|
15806
15832
|
}
|
|
15807
15833
|
function parseManageAgentStatusInstruction(instruction) {
|
|
15808
15834
|
if (instruction.accounts.length < 3) {
|
|
15809
|
-
throw new Error("
|
|
15835
|
+
throw new Error("Invalid number of accounts provided");
|
|
15810
15836
|
}
|
|
15811
15837
|
let accountIndex = 0;
|
|
15812
15838
|
const getNextAccount = () => {
|
|
@@ -15902,7 +15928,7 @@ function getPlaceAuctionBidInstruction(input, config) {
|
|
|
15902
15928
|
}
|
|
15903
15929
|
function parsePlaceAuctionBidInstruction(instruction) {
|
|
15904
15930
|
if (instruction.accounts.length < 5) {
|
|
15905
|
-
throw new Error("
|
|
15931
|
+
throw new Error("Invalid number of accounts provided");
|
|
15906
15932
|
}
|
|
15907
15933
|
let accountIndex = 0;
|
|
15908
15934
|
const getNextAccount = () => {
|
|
@@ -16074,7 +16100,7 @@ function getProcessPaymentInstruction(input, config) {
|
|
|
16074
16100
|
}
|
|
16075
16101
|
function parseProcessPaymentInstruction(instruction) {
|
|
16076
16102
|
if (instruction.accounts.length < 9) {
|
|
16077
|
-
throw new Error("
|
|
16103
|
+
throw new Error("Invalid number of accounts provided");
|
|
16078
16104
|
}
|
|
16079
16105
|
let accountIndex = 0;
|
|
16080
16106
|
const getNextAccount = () => {
|
|
@@ -16252,7 +16278,7 @@ function getPurchaseServiceInstruction(input, config) {
|
|
|
16252
16278
|
}
|
|
16253
16279
|
function parsePurchaseServiceInstruction(instruction) {
|
|
16254
16280
|
if (instruction.accounts.length < 4) {
|
|
16255
|
-
throw new Error("
|
|
16281
|
+
throw new Error("Invalid number of accounts provided");
|
|
16256
16282
|
}
|
|
16257
16283
|
let accountIndex = 0;
|
|
16258
16284
|
const getNextAccount = () => {
|
|
@@ -16340,9 +16366,7 @@ async function getRegisterAgentInstructionAsync(input, config) {
|
|
|
16340
16366
|
seeds: [
|
|
16341
16367
|
getBytesEncoder().encode(new Uint8Array([97, 103, 101, 110, 116])),
|
|
16342
16368
|
getAddressEncoder().encode(expectAddress(accounts.signer.value)),
|
|
16343
|
-
|
|
16344
|
-
expectSome(args.agentId)
|
|
16345
|
-
)
|
|
16369
|
+
getUtf8Encoder().encode(expectSome(args.agentId))
|
|
16346
16370
|
]
|
|
16347
16371
|
});
|
|
16348
16372
|
}
|
|
@@ -16428,7 +16452,7 @@ function getRegisterAgentInstruction(input, config) {
|
|
|
16428
16452
|
}
|
|
16429
16453
|
function parseRegisterAgentInstruction(instruction) {
|
|
16430
16454
|
if (instruction.accounts.length < 5) {
|
|
16431
|
-
throw new Error("
|
|
16455
|
+
throw new Error("Invalid number of accounts provided");
|
|
16432
16456
|
}
|
|
16433
16457
|
let accountIndex = 0;
|
|
16434
16458
|
const getNextAccount = () => {
|
|
@@ -16650,7 +16674,7 @@ function getRegisterAgentCompressedInstruction(input, config) {
|
|
|
16650
16674
|
}
|
|
16651
16675
|
function parseRegisterAgentCompressedInstruction(instruction) {
|
|
16652
16676
|
if (instruction.accounts.length < 8) {
|
|
16653
|
-
throw new Error("
|
|
16677
|
+
throw new Error("Invalid number of accounts provided");
|
|
16654
16678
|
}
|
|
16655
16679
|
let accountIndex = 0;
|
|
16656
16680
|
const getNextAccount = () => {
|
|
@@ -16815,7 +16839,7 @@ function getRegisterExtensionInstruction(input, config) {
|
|
|
16815
16839
|
}
|
|
16816
16840
|
function parseRegisterExtensionInstruction(instruction) {
|
|
16817
16841
|
if (instruction.accounts.length < 5) {
|
|
16818
|
-
throw new Error("
|
|
16842
|
+
throw new Error("Invalid number of accounts provided");
|
|
16819
16843
|
}
|
|
16820
16844
|
let accountIndex = 0;
|
|
16821
16845
|
const getNextAccount = () => {
|
|
@@ -17021,7 +17045,7 @@ function getReplicateAgentInstruction(input, config) {
|
|
|
17021
17045
|
}
|
|
17022
17046
|
function parseReplicateAgentInstruction(instruction) {
|
|
17023
17047
|
if (instruction.accounts.length < 5) {
|
|
17024
|
-
throw new Error("
|
|
17048
|
+
throw new Error("Invalid number of accounts provided");
|
|
17025
17049
|
}
|
|
17026
17050
|
let accountIndex = 0;
|
|
17027
17051
|
const getNextAccount = () => {
|
|
@@ -17181,7 +17205,7 @@ function getResolveDisputeInstruction(input, config) {
|
|
|
17181
17205
|
}
|
|
17182
17206
|
function parseResolveDisputeInstruction(instruction) {
|
|
17183
17207
|
if (instruction.accounts.length < 4) {
|
|
17184
|
-
throw new Error("
|
|
17208
|
+
throw new Error("Invalid number of accounts provided");
|
|
17185
17209
|
}
|
|
17186
17210
|
let accountIndex = 0;
|
|
17187
17211
|
const getNextAccount = () => {
|
|
@@ -17283,7 +17307,7 @@ function getSendA2aMessageInstruction(input, config) {
|
|
|
17283
17307
|
}
|
|
17284
17308
|
function parseSendA2aMessageInstruction(instruction) {
|
|
17285
17309
|
if (instruction.accounts.length < 4) {
|
|
17286
|
-
throw new Error("
|
|
17310
|
+
throw new Error("Invalid number of accounts provided");
|
|
17287
17311
|
}
|
|
17288
17312
|
let accountIndex = 0;
|
|
17289
17313
|
const getNextAccount = () => {
|
|
@@ -17379,7 +17403,7 @@ function getSendMessageInstruction(input, config) {
|
|
|
17379
17403
|
}
|
|
17380
17404
|
function parseSendMessageInstruction(instruction) {
|
|
17381
17405
|
if (instruction.accounts.length < 4) {
|
|
17382
|
-
throw new Error("
|
|
17406
|
+
throw new Error("Invalid number of accounts provided");
|
|
17383
17407
|
}
|
|
17384
17408
|
let accountIndex = 0;
|
|
17385
17409
|
const getNextAccount = () => {
|
|
@@ -17530,7 +17554,7 @@ function getSubmitDisputeEvidenceInstruction(input, config) {
|
|
|
17530
17554
|
}
|
|
17531
17555
|
function parseSubmitDisputeEvidenceInstruction(instruction) {
|
|
17532
17556
|
if (instruction.accounts.length < 4) {
|
|
17533
|
-
throw new Error("
|
|
17557
|
+
throw new Error("Invalid number of accounts provided");
|
|
17534
17558
|
}
|
|
17535
17559
|
let accountIndex = 0;
|
|
17536
17560
|
const getNextAccount = () => {
|
|
@@ -17691,7 +17715,7 @@ function getSubmitWorkDeliveryInstruction(input, config) {
|
|
|
17691
17715
|
}
|
|
17692
17716
|
function parseSubmitWorkDeliveryInstruction(instruction) {
|
|
17693
17717
|
if (instruction.accounts.length < 5) {
|
|
17694
|
-
throw new Error("
|
|
17718
|
+
throw new Error("Invalid number of accounts provided");
|
|
17695
17719
|
}
|
|
17696
17720
|
let accountIndex = 0;
|
|
17697
17721
|
const getNextAccount = () => {
|
|
@@ -17844,7 +17868,7 @@ function getUpdateA2aStatusInstruction(input, config) {
|
|
|
17844
17868
|
}
|
|
17845
17869
|
function parseUpdateA2aStatusInstruction(instruction) {
|
|
17846
17870
|
if (instruction.accounts.length < 4) {
|
|
17847
|
-
throw new Error("
|
|
17871
|
+
throw new Error("Invalid number of accounts provided");
|
|
17848
17872
|
}
|
|
17849
17873
|
let accountIndex = 0;
|
|
17850
17874
|
const getNextAccount = () => {
|
|
@@ -17925,9 +17949,7 @@ async function getUpdateAgentInstructionAsync(input, config) {
|
|
|
17925
17949
|
seeds: [
|
|
17926
17950
|
getBytesEncoder().encode(new Uint8Array([97, 103, 101, 110, 116])),
|
|
17927
17951
|
getAddressEncoder().encode(expectAddress(accounts.signer.value)),
|
|
17928
|
-
|
|
17929
|
-
expectSome(args.agentId)
|
|
17930
|
-
)
|
|
17952
|
+
getUtf8Encoder().encode(expectSome(args.agentId))
|
|
17931
17953
|
]
|
|
17932
17954
|
});
|
|
17933
17955
|
}
|
|
@@ -17976,7 +17998,7 @@ function getUpdateAgentInstruction(input, config) {
|
|
|
17976
17998
|
}
|
|
17977
17999
|
function parseUpdateAgentInstruction(instruction) {
|
|
17978
18000
|
if (instruction.accounts.length < 3) {
|
|
17979
|
-
throw new Error("
|
|
18001
|
+
throw new Error("Invalid number of accounts provided");
|
|
17980
18002
|
}
|
|
17981
18003
|
let accountIndex = 0;
|
|
17982
18004
|
const getNextAccount = () => {
|
|
@@ -18108,7 +18130,7 @@ function getUpdateAgentReputationInstruction(input, config) {
|
|
|
18108
18130
|
}
|
|
18109
18131
|
function parseUpdateAgentReputationInstruction(instruction) {
|
|
18110
18132
|
if (instruction.accounts.length < 3) {
|
|
18111
|
-
throw new Error("
|
|
18133
|
+
throw new Error("Invalid number of accounts provided");
|
|
18112
18134
|
}
|
|
18113
18135
|
let accountIndex = 0;
|
|
18114
18136
|
const getNextAccount = () => {
|
|
@@ -18266,7 +18288,7 @@ function getUpdateAgentServiceInstruction(input, config) {
|
|
|
18266
18288
|
}
|
|
18267
18289
|
function parseUpdateAgentServiceInstruction(instruction) {
|
|
18268
18290
|
if (instruction.accounts.length < 3) {
|
|
18269
|
-
throw new Error("
|
|
18291
|
+
throw new Error("Invalid number of accounts provided");
|
|
18270
18292
|
}
|
|
18271
18293
|
let accountIndex = 0;
|
|
18272
18294
|
const getNextAccount = () => {
|
|
@@ -18415,7 +18437,7 @@ function getUpdateAnalyticsDashboardInstruction(input, config) {
|
|
|
18415
18437
|
}
|
|
18416
18438
|
function parseUpdateAnalyticsDashboardInstruction(instruction) {
|
|
18417
18439
|
if (instruction.accounts.length < 4) {
|
|
18418
|
-
throw new Error("
|
|
18440
|
+
throw new Error("Invalid number of accounts provided");
|
|
18419
18441
|
}
|
|
18420
18442
|
let accountIndex = 0;
|
|
18421
18443
|
const getNextAccount = () => {
|
|
@@ -18515,7 +18537,7 @@ function getUpdateDynamicPricingInstruction(input, config) {
|
|
|
18515
18537
|
}
|
|
18516
18538
|
function parseUpdateDynamicPricingInstruction(instruction) {
|
|
18517
18539
|
if (instruction.accounts.length < 2) {
|
|
18518
|
-
throw new Error("
|
|
18540
|
+
throw new Error("Invalid number of accounts provided");
|
|
18519
18541
|
}
|
|
18520
18542
|
let accountIndex = 0;
|
|
18521
18543
|
const getNextAccount = () => {
|
|
@@ -18610,7 +18632,7 @@ function getUpdateMarketAnalyticsInstruction(input, config) {
|
|
|
18610
18632
|
}
|
|
18611
18633
|
function parseUpdateMarketAnalyticsInstruction(instruction) {
|
|
18612
18634
|
if (instruction.accounts.length < 3) {
|
|
18613
|
-
throw new Error("
|
|
18635
|
+
throw new Error("Invalid number of accounts provided");
|
|
18614
18636
|
}
|
|
18615
18637
|
let accountIndex = 0;
|
|
18616
18638
|
const getNextAccount = () => {
|
|
@@ -18790,7 +18812,7 @@ function getVerifyAgentInstruction(input, config) {
|
|
|
18790
18812
|
}
|
|
18791
18813
|
function parseVerifyAgentInstruction(instruction) {
|
|
18792
18814
|
if (instruction.accounts.length < 5) {
|
|
18793
|
-
throw new Error("
|
|
18815
|
+
throw new Error("Invalid number of accounts provided");
|
|
18794
18816
|
}
|
|
18795
18817
|
let accountIndex = 0;
|
|
18796
18818
|
const getNextAccount = () => {
|
|
@@ -20616,19 +20638,19 @@ __export(pda_exports, {
|
|
|
20616
20638
|
findProgramDerivedAddress: () => findProgramDerivedAddress
|
|
20617
20639
|
});
|
|
20618
20640
|
async function deriveAgentPda(programId, owner, agentId) {
|
|
20619
|
-
const [
|
|
20641
|
+
const [address3] = await getProgramDerivedAddress({
|
|
20620
20642
|
programAddress: programId,
|
|
20621
20643
|
seeds: [
|
|
20622
20644
|
getBytesEncoder().encode(new Uint8Array([97, 103, 101, 110, 116])),
|
|
20623
20645
|
// 'agent'
|
|
20624
20646
|
getAddressEncoder().encode(owner),
|
|
20625
|
-
|
|
20647
|
+
getUtf8Encoder().encode(agentId)
|
|
20626
20648
|
]
|
|
20627
20649
|
});
|
|
20628
|
-
return
|
|
20650
|
+
return address3;
|
|
20629
20651
|
}
|
|
20630
20652
|
async function deriveServiceListingPda(programId, creator, listingId) {
|
|
20631
|
-
const [
|
|
20653
|
+
const [address3] = await getProgramDerivedAddress({
|
|
20632
20654
|
programAddress: programId,
|
|
20633
20655
|
seeds: [
|
|
20634
20656
|
getBytesEncoder().encode(new Uint8Array([
|
|
@@ -20650,13 +20672,13 @@ async function deriveServiceListingPda(programId, creator, listingId) {
|
|
|
20650
20672
|
])),
|
|
20651
20673
|
// 'service_listing'
|
|
20652
20674
|
getAddressEncoder().encode(creator),
|
|
20653
|
-
|
|
20675
|
+
getUtf8Encoder().encode(listingId)
|
|
20654
20676
|
]
|
|
20655
20677
|
});
|
|
20656
|
-
return
|
|
20678
|
+
return address3;
|
|
20657
20679
|
}
|
|
20658
20680
|
async function deriveJobPostingPda(programId, employer, jobId) {
|
|
20659
|
-
const [
|
|
20681
|
+
const [address3] = await getProgramDerivedAddress({
|
|
20660
20682
|
programAddress: programId,
|
|
20661
20683
|
seeds: [
|
|
20662
20684
|
getBytesEncoder().encode(new Uint8Array([
|
|
@@ -20674,13 +20696,13 @@ async function deriveJobPostingPda(programId, employer, jobId) {
|
|
|
20674
20696
|
])),
|
|
20675
20697
|
// 'job_posting'
|
|
20676
20698
|
getAddressEncoder().encode(employer),
|
|
20677
|
-
|
|
20699
|
+
getUtf8Encoder().encode(jobId)
|
|
20678
20700
|
]
|
|
20679
20701
|
});
|
|
20680
|
-
return
|
|
20702
|
+
return address3;
|
|
20681
20703
|
}
|
|
20682
20704
|
async function deriveJobApplicationPda(programId, jobPosting, applicant) {
|
|
20683
|
-
const [
|
|
20705
|
+
const [address3] = await getProgramDerivedAddress({
|
|
20684
20706
|
programAddress: programId,
|
|
20685
20707
|
seeds: [
|
|
20686
20708
|
getBytesEncoder().encode(new Uint8Array([
|
|
@@ -20705,10 +20727,13 @@ async function deriveJobApplicationPda(programId, jobPosting, applicant) {
|
|
|
20705
20727
|
getAddressEncoder().encode(applicant)
|
|
20706
20728
|
]
|
|
20707
20729
|
});
|
|
20708
|
-
return
|
|
20730
|
+
return address3;
|
|
20709
20731
|
}
|
|
20710
|
-
async function deriveWorkOrderPda(programId,
|
|
20711
|
-
const
|
|
20732
|
+
async function deriveWorkOrderPda(programId, client, orderId) {
|
|
20733
|
+
const orderIdBytes = new Uint8Array(8);
|
|
20734
|
+
const dataView = new DataView(orderIdBytes.buffer);
|
|
20735
|
+
dataView.setBigUint64(0, orderId, true);
|
|
20736
|
+
const [address3] = await getProgramDerivedAddress({
|
|
20712
20737
|
programAddress: programId,
|
|
20713
20738
|
seeds: [
|
|
20714
20739
|
getBytesEncoder().encode(new Uint8Array([
|
|
@@ -20724,14 +20749,14 @@ async function deriveWorkOrderPda(programId, employer, orderId) {
|
|
|
20724
20749
|
114
|
|
20725
20750
|
])),
|
|
20726
20751
|
// 'work_order'
|
|
20727
|
-
getAddressEncoder().encode(
|
|
20728
|
-
|
|
20752
|
+
getAddressEncoder().encode(client),
|
|
20753
|
+
orderIdBytes
|
|
20729
20754
|
]
|
|
20730
20755
|
});
|
|
20731
|
-
return
|
|
20756
|
+
return address3;
|
|
20732
20757
|
}
|
|
20733
20758
|
async function deriveWorkDeliveryPda(programId, workOrder, provider) {
|
|
20734
|
-
const [
|
|
20759
|
+
const [address3] = await getProgramDerivedAddress({
|
|
20735
20760
|
programAddress: programId,
|
|
20736
20761
|
seeds: [
|
|
20737
20762
|
getBytesEncoder().encode(new Uint8Array([
|
|
@@ -20754,10 +20779,10 @@ async function deriveWorkDeliveryPda(programId, workOrder, provider) {
|
|
|
20754
20779
|
getAddressEncoder().encode(provider)
|
|
20755
20780
|
]
|
|
20756
20781
|
});
|
|
20757
|
-
return
|
|
20782
|
+
return address3;
|
|
20758
20783
|
}
|
|
20759
20784
|
async function derivePaymentPda(programId, workOrder, payer) {
|
|
20760
|
-
const [
|
|
20785
|
+
const [address3] = await getProgramDerivedAddress({
|
|
20761
20786
|
programAddress: programId,
|
|
20762
20787
|
seeds: [
|
|
20763
20788
|
getBytesEncoder().encode(new Uint8Array([
|
|
@@ -20774,10 +20799,10 @@ async function derivePaymentPda(programId, workOrder, payer) {
|
|
|
20774
20799
|
getAddressEncoder().encode(payer)
|
|
20775
20800
|
]
|
|
20776
20801
|
});
|
|
20777
|
-
return
|
|
20802
|
+
return address3;
|
|
20778
20803
|
}
|
|
20779
20804
|
async function deriveA2ASessionPda(programId, creator) {
|
|
20780
|
-
const [
|
|
20805
|
+
const [address3] = await getProgramDerivedAddress({
|
|
20781
20806
|
programAddress: programId,
|
|
20782
20807
|
seeds: [
|
|
20783
20808
|
getBytesEncoder().encode(new Uint8Array([
|
|
@@ -20797,10 +20822,10 @@ async function deriveA2ASessionPda(programId, creator) {
|
|
|
20797
20822
|
getAddressEncoder().encode(creator)
|
|
20798
20823
|
]
|
|
20799
20824
|
});
|
|
20800
|
-
return
|
|
20825
|
+
return address3;
|
|
20801
20826
|
}
|
|
20802
20827
|
async function deriveA2AMessagePda(programId, session, sessionCreatedAt) {
|
|
20803
|
-
const [
|
|
20828
|
+
const [address3] = await getProgramDerivedAddress({
|
|
20804
20829
|
programAddress: programId,
|
|
20805
20830
|
seeds: [
|
|
20806
20831
|
getBytesEncoder().encode(new Uint8Array([
|
|
@@ -20822,10 +20847,10 @@ async function deriveA2AMessagePda(programId, session, sessionCreatedAt) {
|
|
|
20822
20847
|
// Fixed: use session.created_at
|
|
20823
20848
|
]
|
|
20824
20849
|
});
|
|
20825
|
-
return
|
|
20850
|
+
return address3;
|
|
20826
20851
|
}
|
|
20827
20852
|
async function deriveUserRegistryPda(programId, signer) {
|
|
20828
|
-
const [
|
|
20853
|
+
const [address3] = await getProgramDerivedAddress({
|
|
20829
20854
|
programAddress: programId,
|
|
20830
20855
|
seeds: [
|
|
20831
20856
|
getBytesEncoder().encode(new Uint8Array([
|
|
@@ -20847,10 +20872,10 @@ async function deriveUserRegistryPda(programId, signer) {
|
|
|
20847
20872
|
getAddressEncoder().encode(signer)
|
|
20848
20873
|
]
|
|
20849
20874
|
});
|
|
20850
|
-
return
|
|
20875
|
+
return address3;
|
|
20851
20876
|
}
|
|
20852
20877
|
async function deriveServicePurchasePda(programId, serviceListing, buyer) {
|
|
20853
|
-
const [
|
|
20878
|
+
const [address3] = await getProgramDerivedAddress({
|
|
20854
20879
|
programAddress: programId,
|
|
20855
20880
|
seeds: [
|
|
20856
20881
|
getBytesEncoder().encode(new Uint8Array([
|
|
@@ -20876,10 +20901,10 @@ async function deriveServicePurchasePda(programId, serviceListing, buyer) {
|
|
|
20876
20901
|
getAddressEncoder().encode(buyer)
|
|
20877
20902
|
]
|
|
20878
20903
|
});
|
|
20879
|
-
return
|
|
20904
|
+
return address3;
|
|
20880
20905
|
}
|
|
20881
20906
|
async function deriveAgentVerificationPda(programId, agent, verifier) {
|
|
20882
|
-
const [
|
|
20907
|
+
const [address3] = await getProgramDerivedAddress({
|
|
20883
20908
|
programAddress: programId,
|
|
20884
20909
|
seeds: [
|
|
20885
20910
|
getBytesEncoder().encode(new Uint8Array([
|
|
@@ -20907,7 +20932,7 @@ async function deriveAgentVerificationPda(programId, agent, verifier) {
|
|
|
20907
20932
|
getAddressEncoder().encode(verifier)
|
|
20908
20933
|
]
|
|
20909
20934
|
});
|
|
20910
|
-
return
|
|
20935
|
+
return address3;
|
|
20911
20936
|
}
|
|
20912
20937
|
async function findProgramDerivedAddress(seeds, programId) {
|
|
20913
20938
|
const encodedSeeds = seeds.map((seed) => {
|
|
@@ -21043,23 +21068,25 @@ var SimpleRpcClient = class {
|
|
|
21043
21068
|
/**
|
|
21044
21069
|
* Get account information
|
|
21045
21070
|
*/
|
|
21046
|
-
async getAccountInfo(
|
|
21071
|
+
async getAccountInfo(address3, options) {
|
|
21047
21072
|
try {
|
|
21048
|
-
const result = await this.rpc.getAccountInfo(
|
|
21073
|
+
const result = await this.rpc.getAccountInfo(address3, {
|
|
21049
21074
|
commitment: options?.commitment ?? this.commitment,
|
|
21050
21075
|
encoding: "base64"
|
|
21051
21076
|
}).send();
|
|
21052
21077
|
if (!result.value) return null;
|
|
21078
|
+
const dataArray = result.value.data;
|
|
21079
|
+
const base64Data = Array.isArray(dataArray) ? dataArray[0] : dataArray;
|
|
21053
21080
|
return {
|
|
21054
21081
|
executable: result.value.executable,
|
|
21055
21082
|
lamports: result.value.lamports,
|
|
21056
21083
|
owner: result.value.owner,
|
|
21057
21084
|
rentEpoch: result.value.rentEpoch,
|
|
21058
|
-
data:
|
|
21085
|
+
data: Buffer.from(base64Data, "base64"),
|
|
21059
21086
|
space: result.value.space
|
|
21060
21087
|
};
|
|
21061
21088
|
} catch (error) {
|
|
21062
|
-
console.warn(`Failed to get account info for ${
|
|
21089
|
+
console.warn(`Failed to get account info for ${address3}:`, error);
|
|
21063
21090
|
return null;
|
|
21064
21091
|
}
|
|
21065
21092
|
}
|
|
@@ -21091,11 +21118,44 @@ var SimpleRpcClient = class {
|
|
|
21091
21118
|
* Send transaction
|
|
21092
21119
|
*/
|
|
21093
21120
|
async sendTransaction(transaction, options) {
|
|
21094
|
-
|
|
21095
|
-
|
|
21096
|
-
|
|
21097
|
-
|
|
21098
|
-
|
|
21121
|
+
try {
|
|
21122
|
+
console.log("\u{1F50D} Debug - Sending transaction to RPC:");
|
|
21123
|
+
console.log(` Transaction length: ${transaction.length}`);
|
|
21124
|
+
console.log(` First 50 chars: ${transaction.substring(0, 50)}...`);
|
|
21125
|
+
console.log(` Options: ${JSON.stringify(options)}`);
|
|
21126
|
+
const requestBody = {
|
|
21127
|
+
jsonrpc: "2.0",
|
|
21128
|
+
id: Math.floor(Math.random() * 1e5),
|
|
21129
|
+
method: "sendTransaction",
|
|
21130
|
+
params: [
|
|
21131
|
+
transaction,
|
|
21132
|
+
// base64-encoded transaction
|
|
21133
|
+
{
|
|
21134
|
+
skipPreflight: options?.skipPreflight ?? false,
|
|
21135
|
+
preflightCommitment: options?.preflightCommitment ?? this.commitment,
|
|
21136
|
+
encoding: "base64"
|
|
21137
|
+
}
|
|
21138
|
+
]
|
|
21139
|
+
};
|
|
21140
|
+
console.log("\u{1F50D} Debug - RPC request:");
|
|
21141
|
+
console.log(` Method: ${requestBody.method}`);
|
|
21142
|
+
console.log(` Transaction (first 50): ${transaction.substring(0, 50)}...`);
|
|
21143
|
+
console.log(` Params count: ${requestBody.params.length}`);
|
|
21144
|
+
const response = await globalThis.fetch(this.endpoint, {
|
|
21145
|
+
method: "POST",
|
|
21146
|
+
headers: { "Content-Type": "application/json" },
|
|
21147
|
+
body: JSON.stringify(requestBody)
|
|
21148
|
+
});
|
|
21149
|
+
const data = await response.json();
|
|
21150
|
+
if (data.error) {
|
|
21151
|
+
console.error("\u{1F534} RPC error response:", data.error);
|
|
21152
|
+
throw new Error(`RPC Error: ${data.error.message}`);
|
|
21153
|
+
}
|
|
21154
|
+
return data.result;
|
|
21155
|
+
} catch (error) {
|
|
21156
|
+
console.error("\u{1F534} RPC sendTransaction error:", error);
|
|
21157
|
+
throw error;
|
|
21158
|
+
}
|
|
21099
21159
|
}
|
|
21100
21160
|
/**
|
|
21101
21161
|
* Get signature statuses
|
|
@@ -21131,13 +21191,19 @@ var SimpleRpcClient = class {
|
|
|
21131
21191
|
console.log(`Options: ${JSON.stringify(options)}`);
|
|
21132
21192
|
const rpcOptions = {
|
|
21133
21193
|
commitment: options?.commitment ?? this.commitment,
|
|
21194
|
+
encoding: "base64",
|
|
21195
|
+
// Always use base64 for large data
|
|
21134
21196
|
...options?.filters && { filters: options.filters }
|
|
21135
21197
|
};
|
|
21198
|
+
const programIdStr = programId.toString();
|
|
21199
|
+
if (!programIdStr || programIdStr.includes("/") || programIdStr.length < 32) {
|
|
21200
|
+
throw new Error(`Invalid program ID format: ${programIdStr}. Expected base58 Solana address.`);
|
|
21201
|
+
}
|
|
21136
21202
|
const requestBody = {
|
|
21137
21203
|
jsonrpc: "2.0",
|
|
21138
21204
|
id: Math.floor(Math.random() * 1e5),
|
|
21139
21205
|
method: "getProgramAccounts",
|
|
21140
|
-
params: [
|
|
21206
|
+
params: [programIdStr, rpcOptions]
|
|
21141
21207
|
};
|
|
21142
21208
|
const response = await globalThis.fetch(this.endpoint, {
|
|
21143
21209
|
method: "POST",
|
|
@@ -21166,13 +21232,15 @@ var SimpleRpcClient = class {
|
|
|
21166
21232
|
}
|
|
21167
21233
|
parseAccountInfo(accountInfo) {
|
|
21168
21234
|
const account = accountInfo;
|
|
21235
|
+
const dataArray = account.data;
|
|
21236
|
+
const base64Data = Array.isArray(dataArray) ? dataArray[0] : dataArray;
|
|
21169
21237
|
return {
|
|
21170
21238
|
executable: account.executable,
|
|
21171
21239
|
lamports: BigInt(account.lamports),
|
|
21172
21240
|
// Cast to Lamports branded type
|
|
21173
21241
|
owner: account.owner,
|
|
21174
21242
|
rentEpoch: account.rentEpoch,
|
|
21175
|
-
data:
|
|
21243
|
+
data: Buffer.from(base64Data, "base64"),
|
|
21176
21244
|
space: account.space
|
|
21177
21245
|
};
|
|
21178
21246
|
}
|
|
@@ -21246,11 +21314,27 @@ var BaseInstructions = class {
|
|
|
21246
21314
|
}
|
|
21247
21315
|
return this._sendAndConfirmTransaction;
|
|
21248
21316
|
}
|
|
21317
|
+
/**
|
|
21318
|
+
* Calculate estimated transaction size for validation
|
|
21319
|
+
*/
|
|
21320
|
+
estimateTransactionSize(instructions) {
|
|
21321
|
+
let totalSize = 64;
|
|
21322
|
+
for (const instruction of instructions) {
|
|
21323
|
+
totalSize += 32;
|
|
21324
|
+
totalSize += (instruction.accounts?.length ?? 0) * 32;
|
|
21325
|
+
totalSize += instruction.data?.length ?? 0;
|
|
21326
|
+
}
|
|
21327
|
+
return totalSize;
|
|
21328
|
+
}
|
|
21249
21329
|
/**
|
|
21250
21330
|
* Send a transaction with instructions and signers using REAL Web3.js v2 patterns
|
|
21251
21331
|
* Returns transaction result with verification URLs
|
|
21252
21332
|
*/
|
|
21253
21333
|
async sendTransaction(instructions, signers) {
|
|
21334
|
+
const estimatedSize = this.estimateTransactionSize(instructions);
|
|
21335
|
+
if (estimatedSize > 1232) {
|
|
21336
|
+
console.warn(`\u26A0\uFE0F Transaction size (${estimatedSize} bytes) may exceed Solana limit (1232 bytes)`);
|
|
21337
|
+
}
|
|
21254
21338
|
return this.sendTransactionWithDetails(instructions, signers).then((result) => result.signature);
|
|
21255
21339
|
}
|
|
21256
21340
|
/**
|
|
@@ -21282,10 +21366,21 @@ var BaseInstructions = class {
|
|
|
21282
21366
|
(tx) => appendTransactionMessageInstructions(instructions, tx)
|
|
21283
21367
|
);
|
|
21284
21368
|
const signedTransaction = await signTransactionMessageWithSigners(transactionMessage);
|
|
21369
|
+
console.log("\u{1F4DD} Debug - Instruction data:");
|
|
21370
|
+
instructions.forEach((instr, idx) => {
|
|
21371
|
+
console.log(` Instruction ${idx}: data length = ${instr.data?.length ?? 0} bytes`);
|
|
21372
|
+
if (instr.data) {
|
|
21373
|
+
const hexData = Buffer.from(instr.data).toString("hex").substring(0, 100);
|
|
21374
|
+
console.log(` Data (hex): ${hexData}...`);
|
|
21375
|
+
}
|
|
21376
|
+
});
|
|
21285
21377
|
let result;
|
|
21286
21378
|
let signature;
|
|
21287
21379
|
if (!this.rpcSubscriptions) {
|
|
21288
21380
|
const wireTransaction = getBase64EncodedWireTransaction(signedTransaction);
|
|
21381
|
+
console.log("\u{1F50D} Debug - Wire transaction:");
|
|
21382
|
+
console.log(` Base64 length: ${wireTransaction.length}`);
|
|
21383
|
+
console.log(` First 100 chars: ${wireTransaction.substring(0, 100)}`);
|
|
21289
21384
|
const transactionSignature = await rpcClient.sendTransaction(wireTransaction, {
|
|
21290
21385
|
skipPreflight: false,
|
|
21291
21386
|
preflightCommitment: this.commitment
|
|
@@ -21473,7 +21568,7 @@ var BaseInstructions = class {
|
|
|
21473
21568
|
* Get and decode a single account using provided decoder
|
|
21474
21569
|
* Centralizes the common pattern used across all instruction modules
|
|
21475
21570
|
*/
|
|
21476
|
-
async getDecodedAccount(
|
|
21571
|
+
async getDecodedAccount(address3, decoderImportName, commitment = this.commitment) {
|
|
21477
21572
|
try {
|
|
21478
21573
|
const generated = await Promise.resolve().then(() => (init_generated(), generated_exports));
|
|
21479
21574
|
const decoderGetter = generated[decoderImportName];
|
|
@@ -21482,13 +21577,16 @@ var BaseInstructions = class {
|
|
|
21482
21577
|
return null;
|
|
21483
21578
|
}
|
|
21484
21579
|
const rpcClient = this.getRpcClient();
|
|
21485
|
-
const accountInfo = await rpcClient.getAccountInfo(
|
|
21580
|
+
const accountInfo = await rpcClient.getAccountInfo(address3, { commitment });
|
|
21486
21581
|
if (!accountInfo) return null;
|
|
21487
21582
|
const decoder = decoderGetter();
|
|
21488
21583
|
const rawData = Buffer.isBuffer(accountInfo.data) || accountInfo.data instanceof Uint8Array ? accountInfo.data : Buffer.from(accountInfo.data.data ?? accountInfo.data, "base64");
|
|
21489
21584
|
return decoder.decode(rawData);
|
|
21490
21585
|
} catch (error) {
|
|
21491
|
-
|
|
21586
|
+
if (error instanceof Error && error.message.includes("expected 8 bytes, got")) {
|
|
21587
|
+
throw error;
|
|
21588
|
+
}
|
|
21589
|
+
console.warn(`Failed to fetch account ${address3}:`, error);
|
|
21492
21590
|
return null;
|
|
21493
21591
|
}
|
|
21494
21592
|
}
|
|
@@ -21531,7 +21629,8 @@ var BaseInstructions = class {
|
|
|
21531
21629
|
console.log(`Getting program accounts with decoder: ${decoderImportName}`);
|
|
21532
21630
|
console.log(`Filters: ${JSON.stringify(filters)}`);
|
|
21533
21631
|
console.log(`Commitment: ${commitment}`);
|
|
21534
|
-
const
|
|
21632
|
+
const rpcClient = this.getRpcClient();
|
|
21633
|
+
const accounts = await rpcClient.getProgramAccounts(this.config.programId, {
|
|
21535
21634
|
commitment,
|
|
21536
21635
|
filters
|
|
21537
21636
|
});
|
|
@@ -21599,8 +21698,229 @@ var BaseInstructions = class {
|
|
|
21599
21698
|
throw error;
|
|
21600
21699
|
}
|
|
21601
21700
|
}
|
|
21701
|
+
/**
|
|
21702
|
+
* Get raw account data without decoding (for discriminator validation)
|
|
21703
|
+
*/
|
|
21704
|
+
async getRawAccount(address3, commitment = this.commitment) {
|
|
21705
|
+
try {
|
|
21706
|
+
const rpcClient = this.getRpcClient();
|
|
21707
|
+
const accountInfo = await rpcClient.getAccountInfo(address3, { commitment });
|
|
21708
|
+
if (!accountInfo) {
|
|
21709
|
+
return null;
|
|
21710
|
+
}
|
|
21711
|
+
const data = Buffer.isBuffer(accountInfo.data) || accountInfo.data instanceof Uint8Array ? accountInfo.data : Buffer.from(accountInfo.data.data ?? accountInfo.data, "base64");
|
|
21712
|
+
return {
|
|
21713
|
+
exists: true,
|
|
21714
|
+
address: address3,
|
|
21715
|
+
data: new Uint8Array(data),
|
|
21716
|
+
owner: accountInfo.owner,
|
|
21717
|
+
executable: accountInfo.executable ?? false,
|
|
21718
|
+
lamports: BigInt(accountInfo.lamports ?? 0),
|
|
21719
|
+
programAddress: accountInfo.owner,
|
|
21720
|
+
space: data.length
|
|
21721
|
+
};
|
|
21722
|
+
} catch (error) {
|
|
21723
|
+
console.warn(`Failed to fetch raw account ${address3}:`, error);
|
|
21724
|
+
return null;
|
|
21725
|
+
}
|
|
21726
|
+
}
|
|
21727
|
+
/**
|
|
21728
|
+
* Get all program accounts without filtering (for recovery operations)
|
|
21729
|
+
*/
|
|
21730
|
+
async getAllProgramAccounts(commitment = this.commitment) {
|
|
21731
|
+
try {
|
|
21732
|
+
const rpcClient = this.getRpcClient();
|
|
21733
|
+
const accounts = await rpcClient.getProgramAccounts(this.config.programId, {
|
|
21734
|
+
commitment
|
|
21735
|
+
});
|
|
21736
|
+
return accounts.map(({ pubkey, account }) => ({
|
|
21737
|
+
exists: true,
|
|
21738
|
+
address: pubkey,
|
|
21739
|
+
data: Buffer.isBuffer(account.data) || account.data instanceof Uint8Array ? new Uint8Array(account.data) : new Uint8Array(Buffer.from(account.data.data ?? account.data, "base64")),
|
|
21740
|
+
owner: account.owner,
|
|
21741
|
+
executable: account.executable ?? false,
|
|
21742
|
+
lamports: BigInt(account.lamports ?? 0),
|
|
21743
|
+
programAddress: account.owner,
|
|
21744
|
+
space: Buffer.isBuffer(account.data) || account.data instanceof Uint8Array ? account.data.length : Buffer.from(account.data.data ?? account.data, "base64").length
|
|
21745
|
+
}));
|
|
21746
|
+
} catch (error) {
|
|
21747
|
+
console.error("Failed to get all program accounts:", error);
|
|
21748
|
+
return [];
|
|
21749
|
+
}
|
|
21750
|
+
}
|
|
21602
21751
|
};
|
|
21603
21752
|
|
|
21753
|
+
// src/utils/discriminator-validator.ts
|
|
21754
|
+
function validateAccountDiscriminator(accountData, expectedDiscriminator) {
|
|
21755
|
+
if (accountData.length < expectedDiscriminator.length) {
|
|
21756
|
+
return {
|
|
21757
|
+
isValid: false,
|
|
21758
|
+
expectedLength: expectedDiscriminator.length,
|
|
21759
|
+
actualLength: accountData.length,
|
|
21760
|
+
canDecode: false,
|
|
21761
|
+
needsMigration: true,
|
|
21762
|
+
errorMessage: `Account too small. Expected at least ${expectedDiscriminator.length} bytes, got ${accountData.length}`
|
|
21763
|
+
};
|
|
21764
|
+
}
|
|
21765
|
+
const actualDiscriminator = accountData.slice(0, expectedDiscriminator.length);
|
|
21766
|
+
const isValid = actualDiscriminator.every((byte, index) => byte === expectedDiscriminator[index]);
|
|
21767
|
+
if (isValid) {
|
|
21768
|
+
return {
|
|
21769
|
+
isValid: true,
|
|
21770
|
+
expectedLength: expectedDiscriminator.length,
|
|
21771
|
+
actualLength: actualDiscriminator.length,
|
|
21772
|
+
canDecode: true,
|
|
21773
|
+
needsMigration: false
|
|
21774
|
+
};
|
|
21775
|
+
}
|
|
21776
|
+
if (actualDiscriminator.length >= 2) {
|
|
21777
|
+
const first2Bytes = actualDiscriminator.slice(0, 2);
|
|
21778
|
+
if (first2Bytes[0] !== 0 || first2Bytes[1] !== 0) {
|
|
21779
|
+
return {
|
|
21780
|
+
isValid: false,
|
|
21781
|
+
expectedLength: expectedDiscriminator.length,
|
|
21782
|
+
actualLength: 2,
|
|
21783
|
+
// Legacy format
|
|
21784
|
+
canDecode: false,
|
|
21785
|
+
needsMigration: true,
|
|
21786
|
+
errorMessage: `Legacy discriminator format detected. Account needs migration.`
|
|
21787
|
+
};
|
|
21788
|
+
}
|
|
21789
|
+
}
|
|
21790
|
+
return {
|
|
21791
|
+
isValid: false,
|
|
21792
|
+
expectedLength: expectedDiscriminator.length,
|
|
21793
|
+
actualLength: actualDiscriminator.length,
|
|
21794
|
+
canDecode: false,
|
|
21795
|
+
needsMigration: true,
|
|
21796
|
+
errorMessage: `Discriminator mismatch. Expected [${Array.from(expectedDiscriminator).join(", ")}], got [${Array.from(actualDiscriminator).join(", ")}]`
|
|
21797
|
+
};
|
|
21798
|
+
}
|
|
21799
|
+
async function safeDecodeAccount(rpc, address3, decoder, expectedDiscriminator, accountType = "account") {
|
|
21800
|
+
try {
|
|
21801
|
+
const rpcClient = rpc;
|
|
21802
|
+
const response = await rpcClient.getAccountInfo(address3, { encoding: "base64" }).send();
|
|
21803
|
+
if (!response.value) {
|
|
21804
|
+
return {
|
|
21805
|
+
account: null,
|
|
21806
|
+
validation: {
|
|
21807
|
+
isValid: false,
|
|
21808
|
+
expectedLength: expectedDiscriminator.length,
|
|
21809
|
+
actualLength: 0,
|
|
21810
|
+
canDecode: false,
|
|
21811
|
+
needsMigration: false,
|
|
21812
|
+
errorMessage: `${accountType} account not found`
|
|
21813
|
+
},
|
|
21814
|
+
needsAttention: false
|
|
21815
|
+
};
|
|
21816
|
+
}
|
|
21817
|
+
const rawData = response.value.data[0];
|
|
21818
|
+
if (typeof rawData !== "string") {
|
|
21819
|
+
throw new Error("Expected base64 string from RPC response");
|
|
21820
|
+
}
|
|
21821
|
+
const accountData = Buffer.from(rawData, "base64");
|
|
21822
|
+
const validation = validateAccountDiscriminator(accountData, expectedDiscriminator);
|
|
21823
|
+
if (validation.canDecode) {
|
|
21824
|
+
try {
|
|
21825
|
+
const account = decoder(accountData);
|
|
21826
|
+
return { account, validation, needsAttention: false };
|
|
21827
|
+
} catch (decodeError) {
|
|
21828
|
+
return {
|
|
21829
|
+
account: null,
|
|
21830
|
+
validation: {
|
|
21831
|
+
...validation,
|
|
21832
|
+
canDecode: false,
|
|
21833
|
+
errorMessage: `Decoding failed: ${decodeError instanceof Error ? decodeError.message : String(decodeError)}`
|
|
21834
|
+
},
|
|
21835
|
+
needsAttention: true
|
|
21836
|
+
};
|
|
21837
|
+
}
|
|
21838
|
+
}
|
|
21839
|
+
return {
|
|
21840
|
+
account: null,
|
|
21841
|
+
validation,
|
|
21842
|
+
needsAttention: validation.needsMigration
|
|
21843
|
+
};
|
|
21844
|
+
} catch (error) {
|
|
21845
|
+
return {
|
|
21846
|
+
account: null,
|
|
21847
|
+
validation: {
|
|
21848
|
+
isValid: false,
|
|
21849
|
+
expectedLength: expectedDiscriminator.length,
|
|
21850
|
+
actualLength: 0,
|
|
21851
|
+
canDecode: false,
|
|
21852
|
+
needsMigration: false,
|
|
21853
|
+
errorMessage: `Failed to fetch account: ${error instanceof Error ? error.message : String(error)}`
|
|
21854
|
+
},
|
|
21855
|
+
needsAttention: true
|
|
21856
|
+
};
|
|
21857
|
+
}
|
|
21858
|
+
}
|
|
21859
|
+
function createDiscriminatorErrorMessage(validation, accountType, address3) {
|
|
21860
|
+
if (validation.needsMigration) {
|
|
21861
|
+
return [
|
|
21862
|
+
`\u26A0\uFE0F ${accountType} account needs attention: ${address3}`,
|
|
21863
|
+
` Issue: ${validation.errorMessage}`,
|
|
21864
|
+
` Resolution: Account may need to be recreated with current program version`,
|
|
21865
|
+
` Use 'ghost diagnose account ${address3}' for detailed analysis`
|
|
21866
|
+
].join("\n");
|
|
21867
|
+
}
|
|
21868
|
+
if (!validation.canDecode) {
|
|
21869
|
+
return [
|
|
21870
|
+
`\u274C Failed to decode ${accountType} account: ${address3}`,
|
|
21871
|
+
` Issue: ${validation.errorMessage}`,
|
|
21872
|
+
` This may indicate a corrupt or incompatible account`
|
|
21873
|
+
].join("\n");
|
|
21874
|
+
}
|
|
21875
|
+
return `\u2705 ${accountType} account is valid: ${address3}`;
|
|
21876
|
+
}
|
|
21877
|
+
async function safeDecodeAgent(encodedAccount) {
|
|
21878
|
+
try {
|
|
21879
|
+
const { AGENT_DISCRIMINATOR: AGENT_DISCRIMINATOR2, getAgentDecoder: getAgentDecoder2 } = await Promise.resolve().then(() => (init_agent(), agent_exports));
|
|
21880
|
+
const validation = validateAccountDiscriminator(encodedAccount.data, AGENT_DISCRIMINATOR2);
|
|
21881
|
+
if (validation.canDecode) {
|
|
21882
|
+
try {
|
|
21883
|
+
const decoder = getAgentDecoder2();
|
|
21884
|
+
const data = decoder.decode(encodedAccount.data);
|
|
21885
|
+
return { exists: true, data };
|
|
21886
|
+
} catch (decodeError) {
|
|
21887
|
+
console.warn(`Failed to decode Agent account ${encodedAccount.address}:`, decodeError);
|
|
21888
|
+
return { exists: false };
|
|
21889
|
+
}
|
|
21890
|
+
}
|
|
21891
|
+
return { exists: false };
|
|
21892
|
+
} catch (error) {
|
|
21893
|
+
console.warn(`Safe decode failed for ${encodedAccount.address}:`, error);
|
|
21894
|
+
return null;
|
|
21895
|
+
}
|
|
21896
|
+
}
|
|
21897
|
+
function inspectAccountData(encodedAccount, address3) {
|
|
21898
|
+
if (!("exists" in encodedAccount) || !encodedAccount.exists) {
|
|
21899
|
+
return {
|
|
21900
|
+
address: address3,
|
|
21901
|
+
dataLength: 0,
|
|
21902
|
+
discriminator: null,
|
|
21903
|
+
discriminatorLength: 0,
|
|
21904
|
+
isAgentAccount: false,
|
|
21905
|
+
needsMigration: false,
|
|
21906
|
+
rawData: new Uint8Array(0)
|
|
21907
|
+
};
|
|
21908
|
+
}
|
|
21909
|
+
const data = "data" in encodedAccount ? encodedAccount.data : new Uint8Array(0);
|
|
21910
|
+
const discriminatorLength = Math.min(data.length, 8);
|
|
21911
|
+
const discriminator = discriminatorLength > 0 ? data.slice(0, discriminatorLength) : null;
|
|
21912
|
+
return {
|
|
21913
|
+
address: address3,
|
|
21914
|
+
dataLength: data.length,
|
|
21915
|
+
discriminator,
|
|
21916
|
+
discriminatorLength,
|
|
21917
|
+
isAgentAccount: false,
|
|
21918
|
+
// Would need more logic to determine this
|
|
21919
|
+
needsMigration: discriminatorLength > 0 && discriminatorLength < 8,
|
|
21920
|
+
rawData: data
|
|
21921
|
+
};
|
|
21922
|
+
}
|
|
21923
|
+
|
|
21604
21924
|
// src/client/instructions/AgentInstructions.ts
|
|
21605
21925
|
var AgentInstructions = class extends BaseInstructions {
|
|
21606
21926
|
constructor(config) {
|
|
@@ -21611,6 +21931,11 @@ var AgentInstructions = class extends BaseInstructions {
|
|
|
21611
21931
|
*/
|
|
21612
21932
|
async register(signer, params) {
|
|
21613
21933
|
const agentType = typeof params.agentType === "number" && !isNaN(params.agentType) ? params.agentType : 1;
|
|
21934
|
+
console.log("\u{1F50D} Debug - Agent registration params:");
|
|
21935
|
+
console.log(` Signer address: ${signer.address}`);
|
|
21936
|
+
console.log(` Agent ID: ${params.agentId}`);
|
|
21937
|
+
console.log(` Agent type: ${agentType}`);
|
|
21938
|
+
console.log(` Metadata URI: ${params.metadataUri?.substring(0, 50)}...`);
|
|
21614
21939
|
try {
|
|
21615
21940
|
const instruction = await getRegisterAgentInstructionAsync({
|
|
21616
21941
|
signer,
|
|
@@ -21626,17 +21951,126 @@ var AgentInstructions = class extends BaseInstructions {
|
|
|
21626
21951
|
throw error;
|
|
21627
21952
|
}
|
|
21628
21953
|
}
|
|
21954
|
+
/**
|
|
21955
|
+
* Create a new agent (user-friendly wrapper for register)
|
|
21956
|
+
*/
|
|
21957
|
+
async create(signer, params) {
|
|
21958
|
+
const agentId = `agent_${Date.now()}_${Math.floor(Math.random() * 1e3)}`;
|
|
21959
|
+
const agentTypeMap = {
|
|
21960
|
+
"data-analysis": 1,
|
|
21961
|
+
"writing": 2,
|
|
21962
|
+
"coding": 3,
|
|
21963
|
+
"translation": 4,
|
|
21964
|
+
"image-processing": 5,
|
|
21965
|
+
"automation": 6,
|
|
21966
|
+
"research": 7,
|
|
21967
|
+
"customer-service": 8,
|
|
21968
|
+
"financial-analysis": 9,
|
|
21969
|
+
"content-moderation": 10
|
|
21970
|
+
};
|
|
21971
|
+
const agentType = agentTypeMap[params.category] || 1;
|
|
21972
|
+
const metadata = {
|
|
21973
|
+
name: params.name,
|
|
21974
|
+
description: params.description,
|
|
21975
|
+
capabilities: params.capabilities,
|
|
21976
|
+
serviceEndpoint: params.serviceEndpoint,
|
|
21977
|
+
agentId,
|
|
21978
|
+
// Store agent_id for future updates
|
|
21979
|
+
createdAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
21980
|
+
};
|
|
21981
|
+
let metadataUri;
|
|
21982
|
+
if (params.metadataUri) {
|
|
21983
|
+
metadataUri = params.metadataUri;
|
|
21984
|
+
} else {
|
|
21985
|
+
const metadataJson = JSON.stringify(metadata);
|
|
21986
|
+
const metadataBase64 = Buffer.from(metadataJson).toString("base64");
|
|
21987
|
+
const fullDataUri = `data:application/json;base64,${metadataBase64}`;
|
|
21988
|
+
const maxMetadataSize = 800;
|
|
21989
|
+
if (fullDataUri.length > maxMetadataSize) {
|
|
21990
|
+
console.warn(`\u26A0\uFE0F Metadata size (${fullDataUri.length} chars) exceeds safe limit (${maxMetadataSize}). Compressing...`);
|
|
21991
|
+
const compressionRatio = maxMetadataSize / fullDataUri.length;
|
|
21992
|
+
const maxDescLength = Math.floor(80 * compressionRatio);
|
|
21993
|
+
const compressedMetadata = {
|
|
21994
|
+
n: params.name.substring(0, Math.min(30, params.name.length)),
|
|
21995
|
+
// name
|
|
21996
|
+
d: params.description?.substring(0, maxDescLength),
|
|
21997
|
+
// description
|
|
21998
|
+
c: params.capabilities?.slice(0, 3).join(","),
|
|
21999
|
+
// capabilities as string
|
|
22000
|
+
e: params.serviceEndpoint?.substring(0, 50),
|
|
22001
|
+
// endpoint
|
|
22002
|
+
t: Math.floor(Date.now() / 1e3)
|
|
22003
|
+
// timestamp
|
|
22004
|
+
};
|
|
22005
|
+
const compressedJson = JSON.stringify(compressedMetadata);
|
|
22006
|
+
const compressedBase64 = Buffer.from(compressedJson).toString("base64");
|
|
22007
|
+
metadataUri = `data:application/json;base64,${compressedBase64}`;
|
|
22008
|
+
if (metadataUri.length > maxMetadataSize) {
|
|
22009
|
+
compressedMetadata.d = compressedMetadata.d?.substring(0, 20) + "...";
|
|
22010
|
+
const recompressedJson = JSON.stringify(compressedMetadata);
|
|
22011
|
+
const recompressedBase64 = Buffer.from(recompressedJson).toString("base64");
|
|
22012
|
+
metadataUri = `data:application/json;base64,${recompressedBase64}`;
|
|
22013
|
+
}
|
|
22014
|
+
console.log(`\u2705 Compressed metadata: ${fullDataUri.length} \u2192 ${metadataUri.length} chars`);
|
|
22015
|
+
console.log(` Trimmed description from ${params.description.length} to ${compressedMetadata.d?.length} chars`);
|
|
22016
|
+
if (params.description.length > 100) {
|
|
22017
|
+
console.log(`\u{1F4A1} Consider storing full metadata off-chain (IPFS) for large descriptions`);
|
|
22018
|
+
}
|
|
22019
|
+
} else {
|
|
22020
|
+
metadataUri = fullDataUri;
|
|
22021
|
+
}
|
|
22022
|
+
}
|
|
22023
|
+
const signature = await this.register(signer, {
|
|
22024
|
+
agentType,
|
|
22025
|
+
metadataUri,
|
|
22026
|
+
agentId
|
|
22027
|
+
});
|
|
22028
|
+
const agentPda = await this.findAgentPDA(signer.address, agentId);
|
|
22029
|
+
console.log("\u2705 Agent created successfully");
|
|
22030
|
+
console.log(` Address: ${agentPda}`);
|
|
22031
|
+
console.log(` Signature: ${signature}`);
|
|
22032
|
+
return agentPda;
|
|
22033
|
+
}
|
|
21629
22034
|
/**
|
|
21630
22035
|
* Update an existing agent
|
|
21631
22036
|
*/
|
|
21632
|
-
async update(signer, agentAddress,
|
|
21633
|
-
const
|
|
22037
|
+
async update(signer, agentAddress, params) {
|
|
22038
|
+
const agent = await this.getAccount(agentAddress);
|
|
22039
|
+
if (!agent) {
|
|
22040
|
+
throw new Error("Agent not found");
|
|
22041
|
+
}
|
|
22042
|
+
let agentId = "agent_default";
|
|
22043
|
+
let currentMetadata = {};
|
|
22044
|
+
if (agent.metadataUri?.startsWith("data:application/json")) {
|
|
22045
|
+
try {
|
|
22046
|
+
const base64Data = agent.metadataUri.split(",")[1] ?? "";
|
|
22047
|
+
const parsed = JSON.parse(Buffer.from(base64Data, "base64").toString());
|
|
22048
|
+
currentMetadata = parsed;
|
|
22049
|
+
if (typeof parsed.agentId === "string") {
|
|
22050
|
+
agentId = parsed.agentId;
|
|
22051
|
+
}
|
|
22052
|
+
} catch {
|
|
22053
|
+
}
|
|
22054
|
+
}
|
|
22055
|
+
console.warn("\u26A0\uFE0F Agent update may fail if original agent_id is not available");
|
|
22056
|
+
const updatedMetadata = {
|
|
22057
|
+
...currentMetadata,
|
|
22058
|
+
...params.description && { description: params.description },
|
|
22059
|
+
...params.capabilities && { capabilities: params.capabilities },
|
|
22060
|
+
...params.serviceEndpoint && { serviceEndpoint: params.serviceEndpoint },
|
|
22061
|
+
agentId,
|
|
22062
|
+
// Preserve agent_id in metadata for future updates
|
|
22063
|
+
updatedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
22064
|
+
};
|
|
22065
|
+
const metadataUri = params.metadataUri ?? `data:application/json;base64,${Buffer.from(JSON.stringify(updatedMetadata)).toString("base64")}`;
|
|
21634
22066
|
const instruction = getUpdateAgentInstruction({
|
|
21635
22067
|
agentAccount: agentAddress,
|
|
21636
22068
|
signer,
|
|
21637
|
-
agentType:
|
|
22069
|
+
agentType: 1,
|
|
22070
|
+
// Default agent type
|
|
21638
22071
|
metadataUri,
|
|
21639
22072
|
agentId
|
|
22073
|
+
// Use the retrieved or default agent_id
|
|
21640
22074
|
});
|
|
21641
22075
|
return this.sendTransaction([instruction], [signer]);
|
|
21642
22076
|
}
|
|
@@ -21684,37 +22118,123 @@ var AgentInstructions = class extends BaseInstructions {
|
|
|
21684
22118
|
);
|
|
21685
22119
|
}
|
|
21686
22120
|
/**
|
|
21687
|
-
* Get agent account information using centralized pattern
|
|
22121
|
+
* Get agent account information using centralized pattern with discriminator validation
|
|
21688
22122
|
*/
|
|
21689
22123
|
async getAccount(agentAddress) {
|
|
21690
|
-
|
|
22124
|
+
try {
|
|
22125
|
+
const account = await this.getDecodedAccount(agentAddress, "getAgentDecoder");
|
|
22126
|
+
return account;
|
|
22127
|
+
} catch (error) {
|
|
22128
|
+
console.warn(`Standard Agent account decoding failed for ${agentAddress}:`, error instanceof Error ? error.message : String(error));
|
|
22129
|
+
try {
|
|
22130
|
+
const { AGENT_DISCRIMINATOR: AGENT_DISCRIMINATOR2, getAgentDecoder: getAgentDecoder2 } = await Promise.resolve().then(() => (init_agent(), agent_exports));
|
|
22131
|
+
const result = await safeDecodeAccount(
|
|
22132
|
+
this.rpc,
|
|
22133
|
+
agentAddress,
|
|
22134
|
+
(data) => getAgentDecoder2().decode(data),
|
|
22135
|
+
AGENT_DISCRIMINATOR2,
|
|
22136
|
+
"Agent"
|
|
22137
|
+
);
|
|
22138
|
+
if (result.needsAttention) {
|
|
22139
|
+
const errorMessage = createDiscriminatorErrorMessage(
|
|
22140
|
+
result.validation,
|
|
22141
|
+
"Agent",
|
|
22142
|
+
agentAddress
|
|
22143
|
+
);
|
|
22144
|
+
console.warn(errorMessage);
|
|
22145
|
+
}
|
|
22146
|
+
return result.account;
|
|
22147
|
+
} catch (fallbackError) {
|
|
22148
|
+
console.error(`Safe decode also failed for Agent ${agentAddress}:`, fallbackError instanceof Error ? fallbackError.message : String(fallbackError));
|
|
22149
|
+
return null;
|
|
22150
|
+
}
|
|
22151
|
+
}
|
|
21691
22152
|
}
|
|
21692
22153
|
/**
|
|
21693
|
-
* Get all agents (with pagination) using centralized pattern
|
|
22154
|
+
* Get all agents (with pagination) using centralized pattern with discriminator validation
|
|
21694
22155
|
*/
|
|
21695
22156
|
async getAllAgents(limit = 100, offset = 0) {
|
|
21696
|
-
|
|
21697
|
-
|
|
21698
|
-
|
|
22157
|
+
try {
|
|
22158
|
+
const { AGENT_DISCRIMINATOR: AGENT_DISCRIMINATOR2 } = await Promise.resolve().then(() => (init_generated(), generated_exports));
|
|
22159
|
+
const filters = [{
|
|
22160
|
+
memcmp: {
|
|
22161
|
+
offset: 0,
|
|
22162
|
+
bytes: bs58.encode(Buffer.from(AGENT_DISCRIMINATOR2))
|
|
22163
|
+
}
|
|
22164
|
+
}];
|
|
22165
|
+
const accounts = await this.getDecodedProgramAccounts("getAgentDecoder", filters);
|
|
22166
|
+
const paginatedAccounts = accounts.slice(offset, offset + limit);
|
|
22167
|
+
return paginatedAccounts.map(({ data }) => data);
|
|
22168
|
+
} catch (error) {
|
|
22169
|
+
console.warn("Standard getAllAgents failed, attempting recovery:", error);
|
|
22170
|
+
console.error("getAllAgents failed, this likely indicates discriminator mismatch issues");
|
|
22171
|
+
console.error("Consider running: ghost diagnose agents --verbose");
|
|
22172
|
+
return [];
|
|
22173
|
+
}
|
|
21699
22174
|
}
|
|
21700
22175
|
/**
|
|
21701
22176
|
* Search agents by capabilities using centralized pattern
|
|
21702
22177
|
*/
|
|
21703
22178
|
async searchByCapabilities(capabilities) {
|
|
21704
|
-
const
|
|
22179
|
+
const { AGENT_DISCRIMINATOR: AGENT_DISCRIMINATOR2 } = await Promise.resolve().then(() => (init_generated(), generated_exports));
|
|
22180
|
+
const filters = [{
|
|
22181
|
+
memcmp: {
|
|
22182
|
+
offset: 0,
|
|
22183
|
+
bytes: bs58.encode(Buffer.from(AGENT_DISCRIMINATOR2))
|
|
22184
|
+
}
|
|
22185
|
+
}];
|
|
22186
|
+
const accounts = await this.getDecodedProgramAccounts("getAgentDecoder", filters);
|
|
21705
22187
|
return accounts.filter(
|
|
21706
22188
|
({ data }) => capabilities.some(
|
|
21707
22189
|
(capability) => data.capabilities?.includes(capability)
|
|
21708
22190
|
)
|
|
21709
|
-
).map(({ address:
|
|
22191
|
+
).map(({ address: address3, data }) => ({ address: address3, data }));
|
|
21710
22192
|
}
|
|
21711
22193
|
/**
|
|
21712
|
-
* List agents (alias for getAllAgents for CLI compatibility)
|
|
22194
|
+
* List agents (alias for getAllAgents for CLI compatibility) with discriminator validation
|
|
21713
22195
|
*/
|
|
21714
22196
|
async list(options = {}) {
|
|
21715
|
-
|
|
21716
|
-
|
|
21717
|
-
|
|
22197
|
+
try {
|
|
22198
|
+
const { AGENT_DISCRIMINATOR: AGENT_DISCRIMINATOR2 } = await Promise.resolve().then(() => (init_generated(), generated_exports));
|
|
22199
|
+
const filters = [{
|
|
22200
|
+
memcmp: {
|
|
22201
|
+
offset: 0,
|
|
22202
|
+
bytes: bs58.encode(Buffer.from(AGENT_DISCRIMINATOR2))
|
|
22203
|
+
}
|
|
22204
|
+
}];
|
|
22205
|
+
const accounts = await this.getDecodedProgramAccounts("getAgentDecoder", filters);
|
|
22206
|
+
const paginatedAccounts = accounts.slice(options.offset ?? 0, (options.offset ?? 0) + (options.limit ?? 100));
|
|
22207
|
+
return paginatedAccounts.map(({ address: address3, data }) => ({ address: address3, data }));
|
|
22208
|
+
} catch (error) {
|
|
22209
|
+
console.warn("Standard list failed, attempting recovery with safe decoding:", error);
|
|
22210
|
+
try {
|
|
22211
|
+
const allAccounts = await this.getAllProgramAccounts();
|
|
22212
|
+
const validAgents = [];
|
|
22213
|
+
for (const encodedAccount of allAccounts) {
|
|
22214
|
+
const safeResult = await safeDecodeAgent({
|
|
22215
|
+
address: encodedAccount.address,
|
|
22216
|
+
data: new Uint8Array(encodedAccount.data)
|
|
22217
|
+
});
|
|
22218
|
+
if (safeResult && "exists" in safeResult && safeResult.exists && safeResult.data) {
|
|
22219
|
+
validAgents.push({
|
|
22220
|
+
address: encodedAccount.address,
|
|
22221
|
+
data: safeResult.data
|
|
22222
|
+
});
|
|
22223
|
+
} else {
|
|
22224
|
+
console.log(`Skipping invalid account ${encodedAccount.address}`);
|
|
22225
|
+
}
|
|
22226
|
+
}
|
|
22227
|
+
const paginatedAgents = validAgents.slice(
|
|
22228
|
+
options.offset ?? 0,
|
|
22229
|
+
(options.offset ?? 0) + (options.limit ?? 100)
|
|
22230
|
+
);
|
|
22231
|
+
console.log(`Recovered ${validAgents.length} valid agents, returning ${paginatedAgents.length} after pagination`);
|
|
22232
|
+
return paginatedAgents;
|
|
22233
|
+
} catch (fallbackError) {
|
|
22234
|
+
console.error("Both standard and fallback list failed:", fallbackError);
|
|
22235
|
+
return [];
|
|
22236
|
+
}
|
|
22237
|
+
}
|
|
21718
22238
|
}
|
|
21719
22239
|
/**
|
|
21720
22240
|
* Search agents (alias for searchByCapabilities for CLI compatibility)
|
|
@@ -21740,7 +22260,139 @@ var AgentInstructions = class extends BaseInstructions {
|
|
|
21740
22260
|
*/
|
|
21741
22261
|
async listByOwner(options) {
|
|
21742
22262
|
const accounts = await this.getDecodedProgramAccounts("getAgentDecoder");
|
|
21743
|
-
return accounts.filter(({ data }) => data.owner?.toString() === options.owner.toString()).map(({ address:
|
|
22263
|
+
return accounts.filter(({ data }) => data.owner?.toString() === options.owner.toString()).map(({ address: address3, data }) => ({ address: address3, data }));
|
|
22264
|
+
}
|
|
22265
|
+
/**
|
|
22266
|
+
* Check if user has admin privileges
|
|
22267
|
+
*/
|
|
22268
|
+
async isAdmin(userAddress) {
|
|
22269
|
+
const PROTOCOL_ADMIN = "AJVoWJ4JC1xJR9ufGBGuMgFpHMLouB29sFRTJRvEK1ZR";
|
|
22270
|
+
return userAddress.toString() === PROTOCOL_ADMIN;
|
|
22271
|
+
}
|
|
22272
|
+
/**
|
|
22273
|
+
* Get unverified agents
|
|
22274
|
+
*/
|
|
22275
|
+
async getUnverifiedAgents() {
|
|
22276
|
+
const accounts = await this.getDecodedProgramAccounts("getAgentDecoder");
|
|
22277
|
+
return accounts.filter(({ data }) => !data.isVerified).map(({ address: address3, data }) => ({ address: address3, data }));
|
|
22278
|
+
}
|
|
22279
|
+
/**
|
|
22280
|
+
* Reject agent verification
|
|
22281
|
+
*/
|
|
22282
|
+
async rejectVerification(signer, agentAddress, params) {
|
|
22283
|
+
const agent = await this.getAccount(agentAddress);
|
|
22284
|
+
if (!agent) {
|
|
22285
|
+
throw new Error("Agent not found");
|
|
22286
|
+
}
|
|
22287
|
+
const rejectionMetadata = JSON.stringify({
|
|
22288
|
+
status: "rejected",
|
|
22289
|
+
reason: params.reason,
|
|
22290
|
+
rejectedAt: Date.now(),
|
|
22291
|
+
rejectedBy: signer.address
|
|
22292
|
+
});
|
|
22293
|
+
return this.update(
|
|
22294
|
+
signer,
|
|
22295
|
+
agentAddress,
|
|
22296
|
+
{
|
|
22297
|
+
metadataUri: `data:application/json;base64,${Buffer.from(rejectionMetadata).toString("base64")}`
|
|
22298
|
+
}
|
|
22299
|
+
);
|
|
22300
|
+
}
|
|
22301
|
+
/**
|
|
22302
|
+
* Request additional information from agent
|
|
22303
|
+
*/
|
|
22304
|
+
async requestAdditionalInfo(signer, agentAddress, params) {
|
|
22305
|
+
const agent = await this.getAccount(agentAddress);
|
|
22306
|
+
if (!agent) {
|
|
22307
|
+
throw new Error("Agent not found");
|
|
22308
|
+
}
|
|
22309
|
+
const requestMetadata = JSON.stringify({
|
|
22310
|
+
status: "pending_info",
|
|
22311
|
+
request: params.request,
|
|
22312
|
+
requestedAt: Date.now(),
|
|
22313
|
+
requestedBy: signer.address
|
|
22314
|
+
});
|
|
22315
|
+
return this.update(
|
|
22316
|
+
signer,
|
|
22317
|
+
agentAddress,
|
|
22318
|
+
{
|
|
22319
|
+
metadataUri: `data:application/json;base64,${Buffer.from(requestMetadata).toString("base64")}`
|
|
22320
|
+
}
|
|
22321
|
+
);
|
|
22322
|
+
}
|
|
22323
|
+
/**
|
|
22324
|
+
* Get agent analytics
|
|
22325
|
+
*/
|
|
22326
|
+
async getAnalytics(agentAddress) {
|
|
22327
|
+
if (agentAddress) {
|
|
22328
|
+
const agent = await this.getAccount(agentAddress);
|
|
22329
|
+
if (!agent) {
|
|
22330
|
+
throw new Error("Agent not found");
|
|
22331
|
+
}
|
|
22332
|
+
return {
|
|
22333
|
+
totalEarnings: Number(agent.totalEarnings || 0),
|
|
22334
|
+
jobsCompleted: agent.totalJobsCompleted || 0,
|
|
22335
|
+
successRate: 95,
|
|
22336
|
+
// Placeholder - not stored in Agent
|
|
22337
|
+
averageRating: agent.reputationScore || 4.5,
|
|
22338
|
+
totalTransactions: agent.totalJobsCompleted || 0,
|
|
22339
|
+
uniqueClients: 0,
|
|
22340
|
+
// Placeholder - not stored in Agent
|
|
22341
|
+
totalVolume: agent.totalEarnings || 0n,
|
|
22342
|
+
activeAgents: 1,
|
|
22343
|
+
totalJobs: agent.totalJobsCompleted || 0,
|
|
22344
|
+
totalAgents: 1,
|
|
22345
|
+
verifiedAgents: agent.isVerified ? 1 : 0,
|
|
22346
|
+
jobsByCategory: {},
|
|
22347
|
+
earningsTrend: [],
|
|
22348
|
+
topClients: [],
|
|
22349
|
+
topCategories: [],
|
|
22350
|
+
topPerformers: [{ agent: agentAddress.toString(), earnings: Number(agent.totalEarnings || 0) }],
|
|
22351
|
+
growthMetrics: {
|
|
22352
|
+
weeklyGrowth: 0,
|
|
22353
|
+
monthlyGrowth: 0,
|
|
22354
|
+
userGrowth: 0,
|
|
22355
|
+
revenueGrowth: 0
|
|
22356
|
+
},
|
|
22357
|
+
insights: ["Agent analytics loaded successfully"]
|
|
22358
|
+
};
|
|
22359
|
+
} else {
|
|
22360
|
+
const allAgents = await this.getAllAgents();
|
|
22361
|
+
const verifiedCount = allAgents.filter((a) => a.isVerified).length;
|
|
22362
|
+
const totalEarnings = allAgents.reduce((sum, a) => sum + Number(a.totalEarnings || 0), 0);
|
|
22363
|
+
const totalJobs = allAgents.reduce((sum, a) => sum + (a.totalJobsCompleted || 0), 0);
|
|
22364
|
+
return {
|
|
22365
|
+
totalEarnings,
|
|
22366
|
+
jobsCompleted: totalJobs,
|
|
22367
|
+
successRate: 95,
|
|
22368
|
+
averageRating: 4.5,
|
|
22369
|
+
totalTransactions: totalJobs * 2,
|
|
22370
|
+
// Estimate
|
|
22371
|
+
uniqueClients: Math.floor(totalJobs * 0.7),
|
|
22372
|
+
// Estimate
|
|
22373
|
+
totalVolume: BigInt(totalEarnings),
|
|
22374
|
+
activeAgents: allAgents.filter((a) => a.isActive).length,
|
|
22375
|
+
totalJobs,
|
|
22376
|
+
totalAgents: allAgents.length,
|
|
22377
|
+
verifiedAgents: verifiedCount,
|
|
22378
|
+
jobsByCategory: {},
|
|
22379
|
+
earningsTrend: [],
|
|
22380
|
+
topClients: [],
|
|
22381
|
+
topCategories: ["Development", "Design", "Marketing"],
|
|
22382
|
+
topPerformers: allAgents.sort((a, b) => Number(b.totalEarnings || 0) - Number(a.totalEarnings || 0)).slice(0, 5).map((a) => ({ agent: a.owner?.toString() || "", earnings: Number(a.totalEarnings || 0) })),
|
|
22383
|
+
growthMetrics: {
|
|
22384
|
+
weeklyGrowth: 15,
|
|
22385
|
+
monthlyGrowth: 45,
|
|
22386
|
+
userGrowth: 30,
|
|
22387
|
+
revenueGrowth: 50
|
|
22388
|
+
},
|
|
22389
|
+
insights: [
|
|
22390
|
+
`${verifiedCount} of ${allAgents.length} agents are verified`,
|
|
22391
|
+
`Average success rate: 95%`,
|
|
22392
|
+
`Total platform volume: ${totalEarnings}`
|
|
22393
|
+
]
|
|
22394
|
+
};
|
|
22395
|
+
}
|
|
21744
22396
|
}
|
|
21745
22397
|
/**
|
|
21746
22398
|
* Get agent status details
|
|
@@ -21996,7 +22648,7 @@ var MarketplaceInstructions = class extends BaseInstructions {
|
|
|
21996
22648
|
*/
|
|
21997
22649
|
async getServiceListings() {
|
|
21998
22650
|
const accounts = await this.getDecodedProgramAccounts("getServiceListingDecoder");
|
|
21999
|
-
return accounts.filter(({ data }) => data.isActive).map(({ address:
|
|
22651
|
+
return accounts.filter(({ data }) => data.isActive).map(({ address: address3, data }) => ({ address: address3, data }));
|
|
22000
22652
|
}
|
|
22001
22653
|
/**
|
|
22002
22654
|
* Get all active job postings
|
|
@@ -22059,8 +22711,13 @@ var EscrowInstructions = class extends BaseInstructions {
|
|
|
22059
22711
|
*/
|
|
22060
22712
|
async _resolvePaymentParams(params) {
|
|
22061
22713
|
const defaultTokenMint = "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v";
|
|
22714
|
+
const tokenMint = params.tokenMint ?? defaultTokenMint;
|
|
22062
22715
|
const defaultPayerToken = params.payerTokenAccount ?? params.signer.address;
|
|
22063
22716
|
const defaultProviderToken = params.providerTokenAccount ?? params.providerAgent;
|
|
22717
|
+
console.log("\u{1F50D} Debug - Payment params resolution:");
|
|
22718
|
+
console.log(` Token mint: ${tokenMint}`);
|
|
22719
|
+
console.log(` Payer token: ${defaultPayerToken}`);
|
|
22720
|
+
console.log(` Provider token: ${defaultProviderToken}`);
|
|
22064
22721
|
return {
|
|
22065
22722
|
workOrderAddress: params.workOrderAddress,
|
|
22066
22723
|
providerAgent: params.providerAgent,
|
|
@@ -22087,42 +22744,52 @@ var EscrowInstructions = class extends BaseInstructions {
|
|
|
22087
22744
|
/**
|
|
22088
22745
|
* Create a new escrow account via work order
|
|
22089
22746
|
*/
|
|
22090
|
-
async create(
|
|
22747
|
+
async create(params) {
|
|
22091
22748
|
const resolvedParams = await this._resolveCreateParams(params);
|
|
22092
|
-
|
|
22093
|
-
|
|
22094
|
-
|
|
22095
|
-
|
|
22096
|
-
|
|
22097
|
-
provider: resolvedParams.provider,
|
|
22098
|
-
title: resolvedParams.title,
|
|
22099
|
-
description: resolvedParams.description,
|
|
22100
|
-
requirements: resolvedParams.requirements,
|
|
22101
|
-
paymentAmount: resolvedParams.amount,
|
|
22102
|
-
paymentToken: resolvedParams.paymentToken,
|
|
22103
|
-
deadline: resolvedParams.deadline
|
|
22104
|
-
}),
|
|
22105
|
-
resolvedParams.signer,
|
|
22106
|
-
"escrow creation"
|
|
22749
|
+
const { deriveWorkOrderPda: deriveWorkOrderPda2 } = await Promise.resolve().then(() => (init_pda(), pda_exports));
|
|
22750
|
+
const workOrderAddress = await deriveWorkOrderPda2(
|
|
22751
|
+
this.config.programId,
|
|
22752
|
+
resolvedParams.signer.address,
|
|
22753
|
+
resolvedParams.orderId
|
|
22107
22754
|
);
|
|
22755
|
+
const instruction = getCreateWorkOrderInstruction({
|
|
22756
|
+
workOrder: workOrderAddress,
|
|
22757
|
+
client: resolvedParams.signer,
|
|
22758
|
+
orderId: resolvedParams.orderId,
|
|
22759
|
+
provider: resolvedParams.provider,
|
|
22760
|
+
title: resolvedParams.title,
|
|
22761
|
+
description: resolvedParams.description,
|
|
22762
|
+
requirements: resolvedParams.requirements,
|
|
22763
|
+
paymentAmount: resolvedParams.amount,
|
|
22764
|
+
paymentToken: resolvedParams.paymentToken,
|
|
22765
|
+
deadline: resolvedParams.deadline
|
|
22766
|
+
});
|
|
22767
|
+
const result = await this.sendTransactionWithDetails(
|
|
22768
|
+
[instruction],
|
|
22769
|
+
[resolvedParams.signer]
|
|
22770
|
+
);
|
|
22771
|
+
console.log(`\u2705 Escrow created with signature: ${result.signature}`);
|
|
22772
|
+
console.log(` Work order address: ${workOrderAddress.toString()}`);
|
|
22773
|
+
return workOrderAddress.toString();
|
|
22108
22774
|
}
|
|
22109
22775
|
/**
|
|
22110
22776
|
* Release escrow funds by submitting work delivery
|
|
22111
22777
|
*/
|
|
22112
22778
|
async release(workDeliveryAddress, params) {
|
|
22113
22779
|
const resolvedParams = await this._resolveDeliveryParams(params);
|
|
22114
|
-
|
|
22115
|
-
|
|
22116
|
-
|
|
22117
|
-
|
|
22118
|
-
|
|
22119
|
-
|
|
22120
|
-
|
|
22121
|
-
|
|
22122
|
-
|
|
22123
|
-
|
|
22124
|
-
|
|
22780
|
+
const instruction = getSubmitWorkDeliveryInstruction({
|
|
22781
|
+
workDelivery: workDeliveryAddress,
|
|
22782
|
+
workOrder: resolvedParams.workOrderAddress,
|
|
22783
|
+
provider: resolvedParams.signer,
|
|
22784
|
+
deliverables: resolvedParams.deliverables,
|
|
22785
|
+
ipfsHash: resolvedParams.ipfsHash,
|
|
22786
|
+
metadataUri: resolvedParams.metadataUri
|
|
22787
|
+
});
|
|
22788
|
+
const result = await this.sendTransactionWithDetails(
|
|
22789
|
+
[instruction],
|
|
22790
|
+
[resolvedParams.signer]
|
|
22125
22791
|
);
|
|
22792
|
+
return result.signature;
|
|
22126
22793
|
}
|
|
22127
22794
|
/**
|
|
22128
22795
|
* Cancel escrow and refund to buyer
|
|
@@ -22172,21 +22839,22 @@ var EscrowInstructions = class extends BaseInstructions {
|
|
|
22172
22839
|
*/
|
|
22173
22840
|
async processPayment(paymentAddress, params) {
|
|
22174
22841
|
const resolvedParams = await this._resolvePaymentParams(params);
|
|
22175
|
-
|
|
22176
|
-
|
|
22177
|
-
|
|
22178
|
-
|
|
22179
|
-
|
|
22180
|
-
|
|
22181
|
-
|
|
22182
|
-
|
|
22183
|
-
|
|
22184
|
-
|
|
22185
|
-
|
|
22186
|
-
|
|
22187
|
-
|
|
22188
|
-
|
|
22842
|
+
const instruction = getProcessPaymentInstruction({
|
|
22843
|
+
payment: paymentAddress,
|
|
22844
|
+
workOrder: resolvedParams.workOrderAddress,
|
|
22845
|
+
providerAgent: resolvedParams.providerAgent,
|
|
22846
|
+
payer: resolvedParams.signer,
|
|
22847
|
+
payerTokenAccount: resolvedParams.payerTokenAccount,
|
|
22848
|
+
providerTokenAccount: resolvedParams.providerTokenAccount,
|
|
22849
|
+
tokenMint: resolvedParams.tokenMint,
|
|
22850
|
+
amount: resolvedParams.amount,
|
|
22851
|
+
useConfidentialTransfer: resolvedParams.useConfidentialTransfer
|
|
22852
|
+
});
|
|
22853
|
+
const result = await this.sendTransactionWithDetails(
|
|
22854
|
+
[instruction],
|
|
22855
|
+
[resolvedParams.signer]
|
|
22189
22856
|
);
|
|
22857
|
+
return result.signature;
|
|
22190
22858
|
}
|
|
22191
22859
|
/**
|
|
22192
22860
|
* Get work order (escrow) account information using centralized pattern
|
|
@@ -22395,6 +23063,43 @@ var A2AInstructions = class extends BaseInstructions {
|
|
|
22395
23063
|
|
|
22396
23064
|
// src/client/instructions/AuctionInstructions.ts
|
|
22397
23065
|
init_generated();
|
|
23066
|
+
address("11111111111111111111111111111111");
|
|
23067
|
+
var SYSTEM_PROGRAM_ADDRESS_32 = address("11111111111111111111111111111111");
|
|
23068
|
+
var SYSVAR_CLOCK_ADDRESS = SYSVAR_CLOCK_ADDRESS$1;
|
|
23069
|
+
address("SysvarRecentB1ockHashes11111111111111111111");
|
|
23070
|
+
address("SysvarStakeHistory1111111111111111111111111");
|
|
23071
|
+
address("Sysvar1nstructions1111111111111111111111111");
|
|
23072
|
+
address("TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA");
|
|
23073
|
+
address("TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb");
|
|
23074
|
+
address("ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL");
|
|
23075
|
+
var NATIVE_MINT_ADDRESS = address("So11111111111111111111111111111111111111112");
|
|
23076
|
+
address("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s");
|
|
23077
|
+
|
|
23078
|
+
// src/utils/auction-helpers.ts
|
|
23079
|
+
init_generated();
|
|
23080
|
+
async function deriveAuctionPda(programId, agent, creator) {
|
|
23081
|
+
const [address3] = await getProgramDerivedAddress({
|
|
23082
|
+
programAddress: programId,
|
|
23083
|
+
seeds: [
|
|
23084
|
+
getBytesEncoder().encode(new TextEncoder().encode("auction")),
|
|
23085
|
+
getAddressEncoder().encode(agent),
|
|
23086
|
+
getAddressEncoder().encode(creator)
|
|
23087
|
+
]
|
|
23088
|
+
});
|
|
23089
|
+
return address3;
|
|
23090
|
+
}
|
|
23091
|
+
async function deriveUserRegistryPda2(programId, user) {
|
|
23092
|
+
const [address3] = await getProgramDerivedAddress({
|
|
23093
|
+
programAddress: programId,
|
|
23094
|
+
seeds: [
|
|
23095
|
+
getBytesEncoder().encode(new TextEncoder().encode("user_registry")),
|
|
23096
|
+
getAddressEncoder().encode(user)
|
|
23097
|
+
]
|
|
23098
|
+
});
|
|
23099
|
+
return address3;
|
|
23100
|
+
}
|
|
23101
|
+
|
|
23102
|
+
// src/client/instructions/AuctionInstructions.ts
|
|
22398
23103
|
var AuctionInstructions = class extends BaseInstructions {
|
|
22399
23104
|
constructor(config) {
|
|
22400
23105
|
super(config);
|
|
@@ -22402,6 +23107,80 @@ var AuctionInstructions = class extends BaseInstructions {
|
|
|
22402
23107
|
// =====================================================
|
|
22403
23108
|
// AUCTION CREATION
|
|
22404
23109
|
// =====================================================
|
|
23110
|
+
/**
|
|
23111
|
+
* Create a new auction (simplified interface)
|
|
23112
|
+
*/
|
|
23113
|
+
async create(signer, params) {
|
|
23114
|
+
const auctionPda = await deriveAuctionPda(
|
|
23115
|
+
this.programId,
|
|
23116
|
+
params.agentAddress,
|
|
23117
|
+
signer.address
|
|
23118
|
+
);
|
|
23119
|
+
const userRegistryPda = await deriveUserRegistryPda2(
|
|
23120
|
+
this.programId,
|
|
23121
|
+
signer.address
|
|
23122
|
+
);
|
|
23123
|
+
const auctionTypeMap = {
|
|
23124
|
+
"data-analysis": 0 /* English */,
|
|
23125
|
+
"writing": 0 /* English */,
|
|
23126
|
+
"coding": 1 /* Dutch */,
|
|
23127
|
+
"translation": 0 /* English */,
|
|
23128
|
+
"automation": 2 /* SealedBid */,
|
|
23129
|
+
"default": 0 /* English */
|
|
23130
|
+
};
|
|
23131
|
+
const auctionType = auctionTypeMap[params.category] || auctionTypeMap["default"];
|
|
23132
|
+
const metadata = {
|
|
23133
|
+
title: params.title,
|
|
23134
|
+
description: params.description,
|
|
23135
|
+
category: params.category,
|
|
23136
|
+
requirements: params.requirements,
|
|
23137
|
+
createdAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
23138
|
+
};
|
|
23139
|
+
const metadataUri = `data:application/json;base64,${Buffer.from(JSON.stringify(metadata)).toString("base64")}`;
|
|
23140
|
+
const auctionParams = {
|
|
23141
|
+
auctionData: {
|
|
23142
|
+
auctionType,
|
|
23143
|
+
startingPrice: params.startPrice,
|
|
23144
|
+
reservePrice: params.startPrice,
|
|
23145
|
+
// Set reserve equal to start for simplicity
|
|
23146
|
+
auctionEndTime: BigInt(Math.floor(Date.now() / 1e3)) + params.duration,
|
|
23147
|
+
minimumBidIncrement: params.minIncrement
|
|
23148
|
+
},
|
|
23149
|
+
metadataUri,
|
|
23150
|
+
agent: params.agentAddress,
|
|
23151
|
+
signer
|
|
23152
|
+
};
|
|
23153
|
+
const signature = await this.createServiceAuction(
|
|
23154
|
+
auctionPda,
|
|
23155
|
+
userRegistryPda,
|
|
23156
|
+
auctionParams
|
|
23157
|
+
);
|
|
23158
|
+
console.log("\u2705 Auction created successfully");
|
|
23159
|
+
console.log(` Address: ${auctionPda}`);
|
|
23160
|
+
console.log(` Signature: ${signature}`);
|
|
23161
|
+
return auctionPda;
|
|
23162
|
+
}
|
|
23163
|
+
/**
|
|
23164
|
+
* Place a bid on an auction (simplified interface)
|
|
23165
|
+
*/
|
|
23166
|
+
async placeBid(signer, auctionAddress, bidAmount) {
|
|
23167
|
+
const auction = await this.getAuction(auctionAddress);
|
|
23168
|
+
if (!auction) {
|
|
23169
|
+
throw new Error("Auction not found");
|
|
23170
|
+
}
|
|
23171
|
+
const userRegistryPda = await deriveUserRegistryPda2(
|
|
23172
|
+
this.programId,
|
|
23173
|
+
signer.address
|
|
23174
|
+
);
|
|
23175
|
+
return this.placeAuctionBid(
|
|
23176
|
+
userRegistryPda,
|
|
23177
|
+
{
|
|
23178
|
+
auction: auctionAddress,
|
|
23179
|
+
bidAmount,
|
|
23180
|
+
signer
|
|
23181
|
+
}
|
|
23182
|
+
);
|
|
23183
|
+
}
|
|
22405
23184
|
/**
|
|
22406
23185
|
* Create a new service auction
|
|
22407
23186
|
*
|
|
@@ -22446,8 +23225,8 @@ var AuctionInstructions = class extends BaseInstructions {
|
|
|
22446
23225
|
agent: params.agent,
|
|
22447
23226
|
userRegistry,
|
|
22448
23227
|
creator: params.signer,
|
|
22449
|
-
systemProgram:
|
|
22450
|
-
clock:
|
|
23228
|
+
systemProgram: SYSTEM_PROGRAM_ADDRESS_32,
|
|
23229
|
+
clock: SYSVAR_CLOCK_ADDRESS,
|
|
22451
23230
|
auctionType: params.auctionData.auctionType,
|
|
22452
23231
|
startingPrice: params.auctionData.startingPrice,
|
|
22453
23232
|
reservePrice: params.auctionData.reservePrice,
|
|
@@ -22473,8 +23252,8 @@ var AuctionInstructions = class extends BaseInstructions {
|
|
|
22473
23252
|
agent: params.agent,
|
|
22474
23253
|
userRegistry,
|
|
22475
23254
|
creator: params.signer,
|
|
22476
|
-
systemProgram:
|
|
22477
|
-
clock:
|
|
23255
|
+
systemProgram: SYSTEM_PROGRAM_ADDRESS_32,
|
|
23256
|
+
clock: SYSVAR_CLOCK_ADDRESS,
|
|
22478
23257
|
auctionType: params.auctionData.auctionType,
|
|
22479
23258
|
startingPrice: params.auctionData.startingPrice,
|
|
22480
23259
|
reservePrice: params.auctionData.reservePrice,
|
|
@@ -22530,8 +23309,8 @@ var AuctionInstructions = class extends BaseInstructions {
|
|
|
22530
23309
|
auction: params.auction,
|
|
22531
23310
|
userRegistry,
|
|
22532
23311
|
bidder: params.signer,
|
|
22533
|
-
systemProgram:
|
|
22534
|
-
clock:
|
|
23312
|
+
systemProgram: SYSTEM_PROGRAM_ADDRESS_32,
|
|
23313
|
+
clock: SYSVAR_CLOCK_ADDRESS,
|
|
22535
23314
|
bidAmount: params.bidAmount
|
|
22536
23315
|
}),
|
|
22537
23316
|
params.signer,
|
|
@@ -22553,8 +23332,8 @@ var AuctionInstructions = class extends BaseInstructions {
|
|
|
22553
23332
|
auction: params.auction,
|
|
22554
23333
|
userRegistry,
|
|
22555
23334
|
bidder: params.signer,
|
|
22556
|
-
systemProgram:
|
|
22557
|
-
clock:
|
|
23335
|
+
systemProgram: SYSTEM_PROGRAM_ADDRESS_32,
|
|
23336
|
+
clock: SYSVAR_CLOCK_ADDRESS,
|
|
22558
23337
|
bidAmount: params.bidAmount
|
|
22559
23338
|
}),
|
|
22560
23339
|
params.signer,
|
|
@@ -22594,7 +23373,7 @@ var AuctionInstructions = class extends BaseInstructions {
|
|
|
22594
23373
|
() => getFinalizeAuctionInstruction({
|
|
22595
23374
|
auction: params.auction,
|
|
22596
23375
|
authority: params.signer,
|
|
22597
|
-
clock:
|
|
23376
|
+
clock: SYSVAR_CLOCK_ADDRESS
|
|
22598
23377
|
}),
|
|
22599
23378
|
params.signer,
|
|
22600
23379
|
"auction finalization"
|
|
@@ -22614,7 +23393,7 @@ var AuctionInstructions = class extends BaseInstructions {
|
|
|
22614
23393
|
() => getFinalizeAuctionInstruction({
|
|
22615
23394
|
auction: params.auction,
|
|
22616
23395
|
authority: params.signer,
|
|
22617
|
-
clock:
|
|
23396
|
+
clock: SYSVAR_CLOCK_ADDRESS
|
|
22618
23397
|
}),
|
|
22619
23398
|
params.signer,
|
|
22620
23399
|
"auction finalization"
|
|
@@ -22624,13 +23403,40 @@ var AuctionInstructions = class extends BaseInstructions {
|
|
|
22624
23403
|
// AUCTION QUERYING & MONITORING
|
|
22625
23404
|
// =====================================================
|
|
22626
23405
|
/**
|
|
22627
|
-
* Get auction account data
|
|
23406
|
+
* Get auction account data with discriminator validation
|
|
22628
23407
|
*
|
|
22629
23408
|
* @param auctionAddress - The auction account address
|
|
22630
23409
|
* @returns Auction account data or null if not found
|
|
22631
23410
|
*/
|
|
22632
23411
|
async getAuction(auctionAddress) {
|
|
22633
|
-
|
|
23412
|
+
try {
|
|
23413
|
+
const account = await this.getDecodedAccount(auctionAddress, "getAuctionMarketplaceDecoder");
|
|
23414
|
+
return account;
|
|
23415
|
+
} catch (error) {
|
|
23416
|
+
console.warn(`Standard Auction account decoding failed for ${auctionAddress}:`, error instanceof Error ? error.message : String(error));
|
|
23417
|
+
try {
|
|
23418
|
+
const { AUCTION_MARKETPLACE_DISCRIMINATOR: AUCTION_MARKETPLACE_DISCRIMINATOR2, getAuctionMarketplaceDecoder: getAuctionMarketplaceDecoder2 } = await Promise.resolve().then(() => (init_auctionMarketplace(), auctionMarketplace_exports));
|
|
23419
|
+
const result = await safeDecodeAccount(
|
|
23420
|
+
this.rpc,
|
|
23421
|
+
auctionAddress,
|
|
23422
|
+
(data) => getAuctionMarketplaceDecoder2().decode(data),
|
|
23423
|
+
AUCTION_MARKETPLACE_DISCRIMINATOR2,
|
|
23424
|
+
"AuctionMarketplace"
|
|
23425
|
+
);
|
|
23426
|
+
if (result.needsAttention) {
|
|
23427
|
+
const errorMessage = createDiscriminatorErrorMessage(
|
|
23428
|
+
result.validation,
|
|
23429
|
+
"AuctionMarketplace",
|
|
23430
|
+
auctionAddress
|
|
23431
|
+
);
|
|
23432
|
+
console.warn(errorMessage);
|
|
23433
|
+
}
|
|
23434
|
+
return result.account;
|
|
23435
|
+
} catch (fallbackError) {
|
|
23436
|
+
console.error(`Safe decode also failed for AuctionMarketplace ${auctionAddress}:`, fallbackError instanceof Error ? fallbackError.message : String(fallbackError));
|
|
23437
|
+
return null;
|
|
23438
|
+
}
|
|
23439
|
+
}
|
|
22634
23440
|
}
|
|
22635
23441
|
/**
|
|
22636
23442
|
* Get auction summary with computed fields
|
|
@@ -22687,7 +23493,7 @@ var AuctionInstructions = class extends BaseInstructions {
|
|
|
22687
23493
|
async listAuctions(filter, limit = 50) {
|
|
22688
23494
|
console.log("\u{1F4CB} Listing auctions...");
|
|
22689
23495
|
const accounts = await this.getDecodedProgramAccounts("getAuctionMarketplaceDecoder");
|
|
22690
|
-
const auctions = accounts.map(({ address:
|
|
23496
|
+
const auctions = accounts.map(({ address: address3, data }) => this.auctionToSummary(address3, data)).filter((summary) => this.applyAuctionFilter(summary, filter)).slice(0, limit);
|
|
22691
23497
|
console.log(`\u2705 Found ${auctions.length} auctions`);
|
|
22692
23498
|
return auctions;
|
|
22693
23499
|
}
|
|
@@ -22861,6 +23667,12 @@ var AuctionInstructions = class extends BaseInstructions {
|
|
|
22861
23667
|
// Generate metadata URI
|
|
22862
23668
|
};
|
|
22863
23669
|
}
|
|
23670
|
+
/**
|
|
23671
|
+
* List auctions (alias for listAuctions for CLI compatibility)
|
|
23672
|
+
*/
|
|
23673
|
+
async list(options = {}) {
|
|
23674
|
+
return this.listAuctions(options.filter, options.limit);
|
|
23675
|
+
}
|
|
22864
23676
|
applyAuctionFilter(summary, filter) {
|
|
22865
23677
|
if (!filter) return true;
|
|
22866
23678
|
if (filter.status && summary.status !== filter.status) return false;
|
|
@@ -22922,8 +23734,8 @@ var DisputeInstructions = class extends BaseInstructions {
|
|
|
22922
23734
|
userRegistry: params.userRegistry ?? await this.deriveUserRegistry(complainant),
|
|
22923
23735
|
complainant,
|
|
22924
23736
|
respondent: params.respondent,
|
|
22925
|
-
systemProgram:
|
|
22926
|
-
clock:
|
|
23737
|
+
systemProgram: SYSTEM_PROGRAM_ADDRESS_32,
|
|
23738
|
+
clock: SYSVAR_CLOCK_ADDRESS,
|
|
22927
23739
|
reason: params.reason
|
|
22928
23740
|
});
|
|
22929
23741
|
const signature = await this.sendTransaction([instruction], [complainant]);
|
|
@@ -22942,8 +23754,8 @@ var DisputeInstructions = class extends BaseInstructions {
|
|
|
22942
23754
|
userRegistry: params.userRegistry ?? await this.deriveUserRegistry(complainant),
|
|
22943
23755
|
complainant,
|
|
22944
23756
|
respondent: params.respondent,
|
|
22945
|
-
systemProgram:
|
|
22946
|
-
clock:
|
|
23757
|
+
systemProgram: SYSTEM_PROGRAM_ADDRESS_32,
|
|
23758
|
+
clock: SYSVAR_CLOCK_ADDRESS,
|
|
22947
23759
|
reason: params.reason
|
|
22948
23760
|
});
|
|
22949
23761
|
return this.sendTransactionWithDetails([instruction], [complainant]);
|
|
@@ -23159,7 +23971,7 @@ var DisputeInstructions = class extends BaseInstructions {
|
|
|
23159
23971
|
[]
|
|
23160
23972
|
// No RPC filters - filtering client-side
|
|
23161
23973
|
);
|
|
23162
|
-
let disputes = accounts.map(({ address:
|
|
23974
|
+
let disputes = accounts.map(({ address: address3, data }) => this.disputeToSummary(address3, data)).filter((summary) => this.applyDisputeFilter(summary, filter)).slice(0, limit);
|
|
23163
23975
|
console.log(`\u2705 Found ${disputes.length} disputes`);
|
|
23164
23976
|
return disputes;
|
|
23165
23977
|
} catch (error) {
|
|
@@ -23201,6 +24013,59 @@ var DisputeInstructions = class extends BaseInstructions {
|
|
|
23201
24013
|
topMediators: []
|
|
23202
24014
|
};
|
|
23203
24015
|
}
|
|
24016
|
+
/**
|
|
24017
|
+
* Escalate a dispute to human review
|
|
24018
|
+
*
|
|
24019
|
+
* Escalates a dispute when automated resolution fails or when either party
|
|
24020
|
+
* is unsatisfied with the initial resolution. This triggers human moderator
|
|
24021
|
+
* review with potential governance intervention.
|
|
24022
|
+
*
|
|
24023
|
+
* @param signer - The party escalating the dispute
|
|
24024
|
+
* @param disputeAddress - The dispute account address
|
|
24025
|
+
* @param escalationReason - Reason for escalation
|
|
24026
|
+
* @returns Transaction signature
|
|
24027
|
+
*
|
|
24028
|
+
* @example
|
|
24029
|
+
* ```typescript
|
|
24030
|
+
* const signature = await client.dispute.escalateDispute(
|
|
24031
|
+
* signer,
|
|
24032
|
+
* disputeAddress,
|
|
24033
|
+
* "AI resolution seems biased, requesting human review"
|
|
24034
|
+
* )
|
|
24035
|
+
* ```
|
|
24036
|
+
*/
|
|
24037
|
+
async escalateDispute(signer, disputeAddress, escalationReason) {
|
|
24038
|
+
console.log("\u{1F6A8} Escalating dispute to human review...");
|
|
24039
|
+
try {
|
|
24040
|
+
const dispute = await this.getDecodedAccount(disputeAddress, "getDisputeCaseDecoder");
|
|
24041
|
+
if (!dispute) {
|
|
24042
|
+
throw new Error("Dispute not found");
|
|
24043
|
+
}
|
|
24044
|
+
if (dispute.status === 3 /* Resolved */ || dispute.status === 5 /* Closed */) {
|
|
24045
|
+
throw new Error("Cannot escalate resolved or cancelled disputes");
|
|
24046
|
+
}
|
|
24047
|
+
const signature = await this.submitEvidence(
|
|
24048
|
+
signer,
|
|
24049
|
+
{
|
|
24050
|
+
dispute: disputeAddress,
|
|
24051
|
+
evidenceType: "escalation_request",
|
|
24052
|
+
evidenceData: JSON.stringify({
|
|
24053
|
+
reason: escalationReason,
|
|
24054
|
+
requestedBy: signer.address,
|
|
24055
|
+
timestamp: Date.now(),
|
|
24056
|
+
requiresHumanReview: true,
|
|
24057
|
+
escalationLevel: 2
|
|
24058
|
+
})
|
|
24059
|
+
}
|
|
24060
|
+
);
|
|
24061
|
+
console.log("\u2705 Dispute escalated successfully");
|
|
24062
|
+
console.log("\u{1F504} Human moderator will review within 24 hours");
|
|
24063
|
+
return signature;
|
|
24064
|
+
} catch (error) {
|
|
24065
|
+
console.error("\u274C Failed to escalate dispute:", error);
|
|
24066
|
+
throw error;
|
|
24067
|
+
}
|
|
24068
|
+
}
|
|
23204
24069
|
/**
|
|
23205
24070
|
* Monitor dispute for status updates
|
|
23206
24071
|
*
|
|
@@ -23231,17 +24096,6 @@ var DisputeInstructions = class extends BaseInstructions {
|
|
|
23231
24096
|
isActive = false;
|
|
23232
24097
|
};
|
|
23233
24098
|
}
|
|
23234
|
-
/**
|
|
23235
|
-
* Escalate dispute to human review
|
|
23236
|
-
*
|
|
23237
|
-
* @param disputeAddress - The dispute to escalate
|
|
23238
|
-
* @param escalationReason - Reason for escalation
|
|
23239
|
-
*/
|
|
23240
|
-
async escalateDispute(disputeAddress, escalationReason) {
|
|
23241
|
-
console.log(`\u{1F4C8} Escalating dispute ${disputeAddress}`);
|
|
23242
|
-
console.log(` Reason: ${escalationReason}`);
|
|
23243
|
-
console.log("\u26A0\uFE0F Dispute escalation not fully implemented");
|
|
23244
|
-
}
|
|
23245
24099
|
// =====================================================
|
|
23246
24100
|
// VALIDATION HELPERS
|
|
23247
24101
|
// =====================================================
|
|
@@ -23286,8 +24140,8 @@ var DisputeInstructions = class extends BaseInstructions {
|
|
|
23286
24140
|
}
|
|
23287
24141
|
}
|
|
23288
24142
|
async deriveUserRegistry(user) {
|
|
23289
|
-
const { deriveUserRegistryPda:
|
|
23290
|
-
return
|
|
24143
|
+
const { deriveUserRegistryPda: deriveUserRegistryPda3 } = await Promise.resolve().then(() => (init_pda(), pda_exports));
|
|
24144
|
+
return deriveUserRegistryPda3(this.config.programId, user.address);
|
|
23291
24145
|
}
|
|
23292
24146
|
disputeToSummary(disputeAddress, dispute) {
|
|
23293
24147
|
const now = BigInt(Math.floor(Date.now() / 1e3));
|
|
@@ -23370,7 +24224,7 @@ var GovernanceInstructions = class extends BaseInstructions {
|
|
|
23370
24224
|
const instruction = getCreateMultisigInstruction({
|
|
23371
24225
|
multisig: multisigPda,
|
|
23372
24226
|
owner: creator,
|
|
23373
|
-
systemProgram:
|
|
24227
|
+
systemProgram: SYSTEM_PROGRAM_ADDRESS_32,
|
|
23374
24228
|
multisigId: params.multisigId,
|
|
23375
24229
|
threshold: params.threshold,
|
|
23376
24230
|
signers: params.signers,
|
|
@@ -23389,7 +24243,7 @@ var GovernanceInstructions = class extends BaseInstructions {
|
|
|
23389
24243
|
const instruction = getCreateMultisigInstruction({
|
|
23390
24244
|
multisig: multisigPda,
|
|
23391
24245
|
owner: creator,
|
|
23392
|
-
systemProgram:
|
|
24246
|
+
systemProgram: SYSTEM_PROGRAM_ADDRESS_32,
|
|
23393
24247
|
multisigId: params.multisigId,
|
|
23394
24248
|
threshold: params.threshold,
|
|
23395
24249
|
signers: params.signers,
|
|
@@ -23440,7 +24294,7 @@ var GovernanceInstructions = class extends BaseInstructions {
|
|
|
23440
24294
|
const instruction = getInitializeGovernanceProposalInstruction({
|
|
23441
24295
|
proposal: proposalPda,
|
|
23442
24296
|
proposer,
|
|
23443
|
-
systemProgram:
|
|
24297
|
+
systemProgram: SYSTEM_PROGRAM_ADDRESS_32,
|
|
23444
24298
|
proposalId: params.proposalId,
|
|
23445
24299
|
title: params.title,
|
|
23446
24300
|
description: params.description,
|
|
@@ -23460,7 +24314,7 @@ var GovernanceInstructions = class extends BaseInstructions {
|
|
|
23460
24314
|
const instruction = getInitializeGovernanceProposalInstruction({
|
|
23461
24315
|
proposal: proposalPda,
|
|
23462
24316
|
proposer,
|
|
23463
|
-
systemProgram:
|
|
24317
|
+
systemProgram: SYSTEM_PROGRAM_ADDRESS_32,
|
|
23464
24318
|
proposalId: params.proposalId,
|
|
23465
24319
|
title: params.title,
|
|
23466
24320
|
description: params.description,
|
|
@@ -23512,7 +24366,7 @@ var GovernanceInstructions = class extends BaseInstructions {
|
|
|
23512
24366
|
const instruction = getInitializeRbacConfigInstruction({
|
|
23513
24367
|
rbacConfig: rbacPda,
|
|
23514
24368
|
authority: admin,
|
|
23515
|
-
systemProgram:
|
|
24369
|
+
systemProgram: SYSTEM_PROGRAM_ADDRESS_32,
|
|
23516
24370
|
initialRoles: params.initialRoles
|
|
23517
24371
|
});
|
|
23518
24372
|
const signature = await this.sendTransaction([instruction], [admin]);
|
|
@@ -23528,7 +24382,7 @@ var GovernanceInstructions = class extends BaseInstructions {
|
|
|
23528
24382
|
const instruction = getInitializeRbacConfigInstruction({
|
|
23529
24383
|
rbacConfig: rbacPda,
|
|
23530
24384
|
authority: admin,
|
|
23531
|
-
systemProgram:
|
|
24385
|
+
systemProgram: SYSTEM_PROGRAM_ADDRESS_32,
|
|
23532
24386
|
initialRoles: params.initialRoles
|
|
23533
24387
|
});
|
|
23534
24388
|
return this.sendTransactionWithDetails([instruction], [admin]);
|
|
@@ -23648,7 +24502,7 @@ var GovernanceInstructions = class extends BaseInstructions {
|
|
|
23648
24502
|
[]
|
|
23649
24503
|
// No RPC filters - filtering client-side
|
|
23650
24504
|
);
|
|
23651
|
-
let multisigs = accounts.map(({ address:
|
|
24505
|
+
let multisigs = accounts.map(({ address: address3, data }) => this.multisigToSummary(address3, data)).filter((summary) => this.applyMultisigFilter(summary, filter)).slice(0, limit);
|
|
23652
24506
|
console.log(`\u2705 Found ${multisigs.length} multisigs`);
|
|
23653
24507
|
return multisigs;
|
|
23654
24508
|
} catch (error) {
|
|
@@ -23671,7 +24525,7 @@ var GovernanceInstructions = class extends BaseInstructions {
|
|
|
23671
24525
|
[]
|
|
23672
24526
|
// No RPC filters - filtering client-side
|
|
23673
24527
|
);
|
|
23674
|
-
let proposals = accounts.map(({ address:
|
|
24528
|
+
let proposals = accounts.map(({ address: address3, data }) => this.proposalToSummary(address3, data)).filter((summary) => this.applyProposalFilter(summary, filter)).slice(0, limit);
|
|
23675
24529
|
console.log(`\u2705 Found ${proposals.length} proposals`);
|
|
23676
24530
|
return proposals;
|
|
23677
24531
|
} catch (error) {
|
|
@@ -23877,8 +24731,8 @@ var BulkDealsInstructions = class extends BaseInstructions {
|
|
|
23877
24731
|
// Placeholder - should be provided
|
|
23878
24732
|
userRegistry: await this.deriveUserRegistry(creator),
|
|
23879
24733
|
customer: creator,
|
|
23880
|
-
systemProgram:
|
|
23881
|
-
clock:
|
|
24734
|
+
systemProgram: SYSTEM_PROGRAM_ADDRESS_32,
|
|
24735
|
+
clock: SYSVAR_CLOCK_ADDRESS,
|
|
23882
24736
|
dealId: params.dealId,
|
|
23883
24737
|
dealType: params.dealType,
|
|
23884
24738
|
totalVolume: Number(params.minimumVolume),
|
|
@@ -23912,7 +24766,7 @@ var BulkDealsInstructions = class extends BaseInstructions {
|
|
|
23912
24766
|
deal: params.bulkDeal,
|
|
23913
24767
|
userRegistry: await this.deriveUserRegistry(executor),
|
|
23914
24768
|
authority: executor,
|
|
23915
|
-
clock:
|
|
24769
|
+
clock: SYSVAR_CLOCK_ADDRESS,
|
|
23916
24770
|
batchSize: params.batchSize
|
|
23917
24771
|
});
|
|
23918
24772
|
const signature = await this.sendTransaction([instruction], [executor]);
|
|
@@ -23936,8 +24790,8 @@ var BulkDealsInstructions = class extends BaseInstructions {
|
|
|
23936
24790
|
return null;
|
|
23937
24791
|
}
|
|
23938
24792
|
async deriveUserRegistry(user) {
|
|
23939
|
-
const { deriveUserRegistryPda:
|
|
23940
|
-
return
|
|
24793
|
+
const { deriveUserRegistryPda: deriveUserRegistryPda3 } = await Promise.resolve().then(() => (init_pda(), pda_exports));
|
|
24794
|
+
return deriveUserRegistryPda3(this.config.programId, user.address);
|
|
23941
24795
|
}
|
|
23942
24796
|
};
|
|
23943
24797
|
|
|
@@ -23997,8 +24851,8 @@ var AnalyticsInstructions = class extends BaseInstructions {
|
|
|
23997
24851
|
dashboard: dashboardPda,
|
|
23998
24852
|
userRegistry: await this.deriveUserRegistry(creator),
|
|
23999
24853
|
owner: creator,
|
|
24000
|
-
systemProgram:
|
|
24001
|
-
clock:
|
|
24854
|
+
systemProgram: SYSTEM_PROGRAM_ADDRESS_32,
|
|
24855
|
+
clock: SYSVAR_CLOCK_ADDRESS,
|
|
24002
24856
|
dashboardId: params.dashboardId,
|
|
24003
24857
|
metrics: JSON.stringify(metricsData)
|
|
24004
24858
|
});
|
|
@@ -24052,7 +24906,7 @@ var AnalyticsInstructions = class extends BaseInstructions {
|
|
|
24052
24906
|
dashboard: params.dashboard,
|
|
24053
24907
|
userRegistry: await this.deriveUserRegistry(updater),
|
|
24054
24908
|
owner: updater,
|
|
24055
|
-
clock:
|
|
24909
|
+
clock: SYSVAR_CLOCK_ADDRESS,
|
|
24056
24910
|
newMetrics: JSON.stringify(metricsData)
|
|
24057
24911
|
});
|
|
24058
24912
|
const signature = await this.sendTransaction([instruction], [updater]);
|
|
@@ -24086,8 +24940,8 @@ var AnalyticsInstructions = class extends BaseInstructions {
|
|
|
24086
24940
|
const instruction = getCreateMarketAnalyticsInstruction({
|
|
24087
24941
|
marketAnalytics: marketAnalyticsPda,
|
|
24088
24942
|
authority: creator,
|
|
24089
|
-
systemProgram:
|
|
24090
|
-
clock:
|
|
24943
|
+
systemProgram: SYSTEM_PROGRAM_ADDRESS_32,
|
|
24944
|
+
clock: SYSVAR_CLOCK_ADDRESS,
|
|
24091
24945
|
periodStart,
|
|
24092
24946
|
periodEnd
|
|
24093
24947
|
});
|
|
@@ -24115,7 +24969,7 @@ var AnalyticsInstructions = class extends BaseInstructions {
|
|
|
24115
24969
|
const instruction = getUpdateMarketAnalyticsInstruction({
|
|
24116
24970
|
marketAnalytics: params.marketAnalytics,
|
|
24117
24971
|
authority: updater,
|
|
24118
|
-
clock:
|
|
24972
|
+
clock: SYSVAR_CLOCK_ADDRESS,
|
|
24119
24973
|
volume: params.totalRevenue,
|
|
24120
24974
|
price: params.averageTransactionValue
|
|
24121
24975
|
});
|
|
@@ -24146,7 +25000,7 @@ var AnalyticsInstructions = class extends BaseInstructions {
|
|
|
24146
25000
|
const instruction = getAddTopAgentInstruction({
|
|
24147
25001
|
marketAnalytics: await this.deriveMarketAnalyticsPda(),
|
|
24148
25002
|
authority,
|
|
24149
|
-
clock:
|
|
25003
|
+
clock: SYSVAR_CLOCK_ADDRESS,
|
|
24150
25004
|
agent: params.agent
|
|
24151
25005
|
});
|
|
24152
25006
|
const signature = await this.sendTransaction([instruction], [authority]);
|
|
@@ -24361,13 +25215,13 @@ var AnalyticsInstructions = class extends BaseInstructions {
|
|
|
24361
25215
|
return 3 /* Unknown */;
|
|
24362
25216
|
}
|
|
24363
25217
|
async deriveUserRegistry(user) {
|
|
24364
|
-
const { deriveUserRegistryPda:
|
|
24365
|
-
return
|
|
25218
|
+
const { deriveUserRegistryPda: deriveUserRegistryPda3 } = await Promise.resolve().then(() => (init_pda(), pda_exports));
|
|
25219
|
+
return deriveUserRegistryPda3(this.config.programId, user.address);
|
|
24366
25220
|
}
|
|
24367
25221
|
async deriveMarketAnalyticsPda() {
|
|
24368
25222
|
const { findProgramDerivedAddress: findProgramDerivedAddress2 } = await Promise.resolve().then(() => (init_pda(), pda_exports));
|
|
24369
|
-
const [
|
|
24370
|
-
return
|
|
25223
|
+
const [address3] = await findProgramDerivedAddress2(["market_analytics"], this.config.programId);
|
|
25224
|
+
return address3;
|
|
24371
25225
|
}
|
|
24372
25226
|
};
|
|
24373
25227
|
|
|
@@ -24418,7 +25272,7 @@ var ComplianceInstructions = class extends BaseInstructions {
|
|
|
24418
25272
|
report: reportPda,
|
|
24419
25273
|
auditTrail: await this.deriveAuditTrailPda(),
|
|
24420
25274
|
authority,
|
|
24421
|
-
systemProgram:
|
|
25275
|
+
systemProgram: SYSTEM_PROGRAM_ADDRESS_32,
|
|
24422
25276
|
reportId: params.reportId,
|
|
24423
25277
|
reportType: params.reportType,
|
|
24424
25278
|
dateRangeStart: params.startPeriod,
|
|
@@ -24449,7 +25303,7 @@ var ComplianceInstructions = class extends BaseInstructions {
|
|
|
24449
25303
|
auditTrail: auditTrailPda,
|
|
24450
25304
|
entity: params.entityId,
|
|
24451
25305
|
authority: auditor,
|
|
24452
|
-
systemProgram:
|
|
25306
|
+
systemProgram: SYSTEM_PROGRAM_ADDRESS_32,
|
|
24453
25307
|
entityType: "Agent",
|
|
24454
25308
|
// Default entity type
|
|
24455
25309
|
config: {
|
|
@@ -24721,8 +25575,161 @@ var ComplianceInstructions = class extends BaseInstructions {
|
|
|
24721
25575
|
}
|
|
24722
25576
|
async deriveAuditTrailPda() {
|
|
24723
25577
|
const { findProgramDerivedAddress: findProgramDerivedAddress2 } = await Promise.resolve().then(() => (init_pda(), pda_exports));
|
|
24724
|
-
const [
|
|
24725
|
-
return
|
|
25578
|
+
const [address3] = await findProgramDerivedAddress2(["audit_trail"], this.config.programId);
|
|
25579
|
+
return address3;
|
|
25580
|
+
}
|
|
25581
|
+
};
|
|
25582
|
+
|
|
25583
|
+
// src/client/instructions/ChannelInstructions.ts
|
|
25584
|
+
init_generated();
|
|
25585
|
+
var ChannelInstructions = class extends BaseInstructions {
|
|
25586
|
+
constructor(config) {
|
|
25587
|
+
super(config);
|
|
25588
|
+
}
|
|
25589
|
+
/**
|
|
25590
|
+
* Create a new communication channel with smart defaults
|
|
25591
|
+
*/
|
|
25592
|
+
async create(signer, params) {
|
|
25593
|
+
let visibility = "public";
|
|
25594
|
+
if (params.visibility) {
|
|
25595
|
+
visibility = params.visibility;
|
|
25596
|
+
} else if (params.isPublic !== void 0) {
|
|
25597
|
+
visibility = params.isPublic ? "public" : "private";
|
|
25598
|
+
}
|
|
25599
|
+
let participants = params.participants ?? [];
|
|
25600
|
+
if (participants.length === 0) {
|
|
25601
|
+
participants = [signer.address];
|
|
25602
|
+
}
|
|
25603
|
+
if (participants.length > 10) {
|
|
25604
|
+
throw new Error(`Too many participants (${participants.length}). Maximum allowed: 10`);
|
|
25605
|
+
}
|
|
25606
|
+
const channelId = `channel_${Date.now()}_${Math.floor(Math.random() * 1e3)}`;
|
|
25607
|
+
const channelAddress = await this.deriveChannelPda(signer.address, channelId);
|
|
25608
|
+
let channelType = visibility === "private" ? 3 /* Private */ : 2 /* Public */;
|
|
25609
|
+
if (params.channelType !== void 0) {
|
|
25610
|
+
channelType = params.channelType;
|
|
25611
|
+
}
|
|
25612
|
+
console.log("\u{1F50D} Debug - Channel creation params:");
|
|
25613
|
+
console.log(` Channel ID: ${channelId}`);
|
|
25614
|
+
console.log(` Visibility: ${visibility}`);
|
|
25615
|
+
console.log(` Participants: ${participants.length}`);
|
|
25616
|
+
console.log(` Channel Type: ${channelType}`);
|
|
25617
|
+
const instruction = getCreateChannelInstruction({
|
|
25618
|
+
channel: channelAddress,
|
|
25619
|
+
creator: signer,
|
|
25620
|
+
channelId: BigInt(channelId.replace(/[^0-9]/g, "") || Date.now()),
|
|
25621
|
+
// Extract numeric part for generated instruction
|
|
25622
|
+
participants,
|
|
25623
|
+
channelType,
|
|
25624
|
+
isPrivate: visibility === "private"
|
|
25625
|
+
});
|
|
25626
|
+
const signature = await this.sendTransaction([instruction], [signer]);
|
|
25627
|
+
return { channelId: channelAddress, signature };
|
|
25628
|
+
}
|
|
25629
|
+
/**
|
|
25630
|
+
* Send a message to a channel (supports both object params and string content)
|
|
25631
|
+
*/
|
|
25632
|
+
async sendMessage(signer, channelAddress, contentOrParams, _metadata) {
|
|
25633
|
+
let params;
|
|
25634
|
+
if (typeof contentOrParams === "string") {
|
|
25635
|
+
params = {
|
|
25636
|
+
channelId: channelAddress,
|
|
25637
|
+
// Will be ignored, using channelAddress directly
|
|
25638
|
+
content: contentOrParams,
|
|
25639
|
+
messageType: 0,
|
|
25640
|
+
// Default to text message
|
|
25641
|
+
attachments: []
|
|
25642
|
+
};
|
|
25643
|
+
} else {
|
|
25644
|
+
params = contentOrParams;
|
|
25645
|
+
}
|
|
25646
|
+
const channel = await this.getChannel(channelAddress);
|
|
25647
|
+
if (!channel) {
|
|
25648
|
+
throw new Error("Channel not found");
|
|
25649
|
+
}
|
|
25650
|
+
const messageCount = Number(channel.messageCount ?? 0);
|
|
25651
|
+
const messageCountBytes = new Uint8Array(8);
|
|
25652
|
+
const dataView = new DataView(messageCountBytes.buffer);
|
|
25653
|
+
dataView.setBigUint64(0, BigInt(messageCount), true);
|
|
25654
|
+
const messagePda = await getProgramDerivedAddress({
|
|
25655
|
+
programAddress: this.config.programId,
|
|
25656
|
+
seeds: [
|
|
25657
|
+
new TextEncoder().encode("message"),
|
|
25658
|
+
getAddressEncoder().encode(channelAddress),
|
|
25659
|
+
messageCountBytes
|
|
25660
|
+
// Use message count bytes, not a string ID
|
|
25661
|
+
]
|
|
25662
|
+
});
|
|
25663
|
+
const instruction = getSendMessageInstruction({
|
|
25664
|
+
channel: channelAddress,
|
|
25665
|
+
sender: signer,
|
|
25666
|
+
message: messagePda[0],
|
|
25667
|
+
content: params.content,
|
|
25668
|
+
messageType: params.messageType ?? 0,
|
|
25669
|
+
// Default to text message
|
|
25670
|
+
isEncrypted: false
|
|
25671
|
+
});
|
|
25672
|
+
return this.sendTransaction([instruction], [signer]);
|
|
25673
|
+
}
|
|
25674
|
+
/**
|
|
25675
|
+
* List channels by participant
|
|
25676
|
+
*/
|
|
25677
|
+
async listByParticipant(params) {
|
|
25678
|
+
const accounts = await this.getDecodedProgramAccounts("getChannelDecoder");
|
|
25679
|
+
return accounts.filter(({ data }) => {
|
|
25680
|
+
if (!data.participants) return false;
|
|
25681
|
+
return data.participants.some((p) => p.toString() === params.participant.toString());
|
|
25682
|
+
}).map(({ address: address3, data }) => ({
|
|
25683
|
+
address: address3,
|
|
25684
|
+
data,
|
|
25685
|
+
participantCount: data.participants?.length ?? 0,
|
|
25686
|
+
messageCount: Number(data.messageCount ?? 0),
|
|
25687
|
+
lastActivity: BigInt(data.lastActivity ?? 0)
|
|
25688
|
+
}));
|
|
25689
|
+
}
|
|
25690
|
+
/**
|
|
25691
|
+
* Get channel details
|
|
25692
|
+
*/
|
|
25693
|
+
async getChannel(channelAddress) {
|
|
25694
|
+
return this.getDecodedAccount(channelAddress, "getChannelDecoder");
|
|
25695
|
+
}
|
|
25696
|
+
/**
|
|
25697
|
+
* List all public channels
|
|
25698
|
+
*/
|
|
25699
|
+
async listPublicChannels(limit = 50) {
|
|
25700
|
+
const accounts = await this.getDecodedProgramAccounts("getChannelDecoder");
|
|
25701
|
+
return accounts.filter(({ data }) => !data.isPrivate).slice(0, limit).map(({ address: address3, data }) => ({
|
|
25702
|
+
address: address3,
|
|
25703
|
+
data,
|
|
25704
|
+
participantCount: data.participants?.length ?? 0,
|
|
25705
|
+
messageCount: Number(data.messageCount ?? 0),
|
|
25706
|
+
lastActivity: BigInt(data.lastActivity ?? 0)
|
|
25707
|
+
}));
|
|
25708
|
+
}
|
|
25709
|
+
/**
|
|
25710
|
+
* Get messages from a channel (paginated)
|
|
25711
|
+
*/
|
|
25712
|
+
async getChannelMessages(_channelAddress, _options) {
|
|
25713
|
+
return [];
|
|
25714
|
+
}
|
|
25715
|
+
/**
|
|
25716
|
+
* Derive channel PDA
|
|
25717
|
+
*/
|
|
25718
|
+
async deriveChannelPda(creator, channelId) {
|
|
25719
|
+
const { getProgramDerivedAddress: getProgramDerivedAddress45, getAddressEncoder: getAddressEncoder153 } = await import('@solana/kit');
|
|
25720
|
+
const channelIdNumber = BigInt(channelId.replace(/[^0-9]/g, "") || Date.now());
|
|
25721
|
+
const channelIdBytes = new Uint8Array(8);
|
|
25722
|
+
const dataView = new DataView(channelIdBytes.buffer);
|
|
25723
|
+
dataView.setBigUint64(0, channelIdNumber, true);
|
|
25724
|
+
const [pda] = await getProgramDerivedAddress45({
|
|
25725
|
+
programAddress: this.programId,
|
|
25726
|
+
seeds: [
|
|
25727
|
+
new TextEncoder().encode("channel"),
|
|
25728
|
+
getAddressEncoder153().encode(creator),
|
|
25729
|
+
channelIdBytes
|
|
25730
|
+
]
|
|
25731
|
+
});
|
|
25732
|
+
return pda;
|
|
24726
25733
|
}
|
|
24727
25734
|
};
|
|
24728
25735
|
|
|
@@ -24739,6 +25746,7 @@ var GhostSpeakClient = class _GhostSpeakClient {
|
|
|
24739
25746
|
bulkDeals;
|
|
24740
25747
|
analytics;
|
|
24741
25748
|
compliance;
|
|
25749
|
+
channel;
|
|
24742
25750
|
constructor(config) {
|
|
24743
25751
|
this.config = {
|
|
24744
25752
|
programId: GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS,
|
|
@@ -24755,6 +25763,7 @@ var GhostSpeakClient = class _GhostSpeakClient {
|
|
|
24755
25763
|
this.bulkDeals = new BulkDealsInstructions(this.config);
|
|
24756
25764
|
this.analytics = new AnalyticsInstructions(this.config);
|
|
24757
25765
|
this.compliance = new ComplianceInstructions(this.config);
|
|
25766
|
+
this.channel = new ChannelInstructions(this.config);
|
|
24758
25767
|
}
|
|
24759
25768
|
/**
|
|
24760
25769
|
* Create a new GhostSpeak client instance
|
|
@@ -24805,8 +25814,8 @@ var GhostSpeakClient = class _GhostSpeakClient {
|
|
|
24805
25814
|
/**
|
|
24806
25815
|
* Create an escrow account
|
|
24807
25816
|
*/
|
|
24808
|
-
async createEscrow(signer,
|
|
24809
|
-
return this.escrow.create(
|
|
25817
|
+
async createEscrow(signer, params) {
|
|
25818
|
+
return this.escrow.create({ ...params, signer });
|
|
24810
25819
|
}
|
|
24811
25820
|
/**
|
|
24812
25821
|
* Get escrow account information
|
|
@@ -24840,11 +25849,523 @@ var GhostSpeakClient = class _GhostSpeakClient {
|
|
|
24840
25849
|
}
|
|
24841
25850
|
};
|
|
24842
25851
|
|
|
25852
|
+
// src/utils/account-migration.ts
|
|
25853
|
+
async function createMigrationPlan(encodedAccount, address3) {
|
|
25854
|
+
const plan = {
|
|
25855
|
+
address: address3,
|
|
25856
|
+
currentState: "not_exists",
|
|
25857
|
+
migrationType: "none",
|
|
25858
|
+
issues: [],
|
|
25859
|
+
recommendations: [],
|
|
25860
|
+
canAutoMigrate: false
|
|
25861
|
+
};
|
|
25862
|
+
if (!("exists" in encodedAccount) || !encodedAccount.exists) {
|
|
25863
|
+
plan.recommendations.push("Account does not exist - no migration needed");
|
|
25864
|
+
return plan;
|
|
25865
|
+
}
|
|
25866
|
+
const { AGENT_DISCRIMINATOR: AGENT_DISCRIMINATOR2 } = await Promise.resolve().then(() => (init_agent(), agent_exports));
|
|
25867
|
+
const validation = validateAccountDiscriminator(encodedAccount.data, AGENT_DISCRIMINATOR2);
|
|
25868
|
+
const inspection = inspectAccountData(encodedAccount, address3);
|
|
25869
|
+
if (validation.isValid) {
|
|
25870
|
+
plan.currentState = "valid";
|
|
25871
|
+
plan.recommendations.push("Account is already in the correct format");
|
|
25872
|
+
return plan;
|
|
25873
|
+
}
|
|
25874
|
+
if (validation.needsMigration) {
|
|
25875
|
+
plan.currentState = "needs_migration";
|
|
25876
|
+
plan.issues.push(`Discriminator length mismatch: expected 8 bytes, got ${validation.actualLength} bytes`);
|
|
25877
|
+
} else {
|
|
25878
|
+
plan.currentState = "invalid";
|
|
25879
|
+
plan.issues.push("Account has invalid or corrupted discriminator");
|
|
25880
|
+
}
|
|
25881
|
+
if (inspection.discriminatorLength === 2) {
|
|
25882
|
+
plan.migrationType = "recreate";
|
|
25883
|
+
plan.issues.push("Account uses legacy 2-byte discriminator format");
|
|
25884
|
+
plan.recommendations.push("Recreate account using current register_agent instruction");
|
|
25885
|
+
plan.recommendations.push("Export existing data first if valuable");
|
|
25886
|
+
} else if (inspection.discriminatorLength === 0) {
|
|
25887
|
+
plan.migrationType = "unsupported";
|
|
25888
|
+
plan.issues.push("Account has no discriminator - may not be an Agent account");
|
|
25889
|
+
plan.recommendations.push("Verify this is actually an Agent account");
|
|
25890
|
+
} else if (inspection.discriminatorLength < 8) {
|
|
25891
|
+
plan.migrationType = "unsupported";
|
|
25892
|
+
plan.issues.push(`Partial discriminator detected (${inspection.discriminatorLength} bytes)`);
|
|
25893
|
+
plan.recommendations.push("Account data may be corrupted - consider recreation");
|
|
25894
|
+
} else {
|
|
25895
|
+
plan.migrationType = "data_conversion";
|
|
25896
|
+
plan.issues.push("Discriminator has correct length but wrong values");
|
|
25897
|
+
plan.recommendations.push("May be from a different program version");
|
|
25898
|
+
plan.recommendations.push("Check if this account belongs to the correct program");
|
|
25899
|
+
}
|
|
25900
|
+
plan.canAutoMigrate = plan.migrationType === "recreate" && inspection.dataLength > 8;
|
|
25901
|
+
return plan;
|
|
25902
|
+
}
|
|
25903
|
+
function extractLegacyData(encodedAccount) {
|
|
25904
|
+
if (!("exists" in encodedAccount) || !encodedAccount.exists || !("data" in encodedAccount) || encodedAccount.data.length < 2) {
|
|
25905
|
+
return null;
|
|
25906
|
+
}
|
|
25907
|
+
const data = "data" in encodedAccount ? encodedAccount.data : new Uint8Array(0);
|
|
25908
|
+
try {
|
|
25909
|
+
if (data.length >= 2) {
|
|
25910
|
+
return {
|
|
25911
|
+
discriminator: data.slice(0, 2)
|
|
25912
|
+
// Add more extraction logic here based on known legacy formats
|
|
25913
|
+
// This would need to be customized based on actual legacy account structures
|
|
25914
|
+
};
|
|
25915
|
+
}
|
|
25916
|
+
} catch (error) {
|
|
25917
|
+
console.warn("Failed to extract legacy data:", error);
|
|
25918
|
+
}
|
|
25919
|
+
return null;
|
|
25920
|
+
}
|
|
25921
|
+
async function createMigrationReport(accounts) {
|
|
25922
|
+
const plans = await Promise.all(accounts.map(
|
|
25923
|
+
({ address: address3, encodedAccount }) => createMigrationPlan(encodedAccount, address3)
|
|
25924
|
+
));
|
|
25925
|
+
const summary = {
|
|
25926
|
+
total: plans.length,
|
|
25927
|
+
valid: plans.filter((p) => p.currentState === "valid").length,
|
|
25928
|
+
needsMigration: plans.filter((p) => p.currentState === "needs_migration").length,
|
|
25929
|
+
invalid: plans.filter((p) => p.currentState === "invalid").length,
|
|
25930
|
+
canAutoMigrate: plans.filter((p) => p.canAutoMigrate).length
|
|
25931
|
+
};
|
|
25932
|
+
const recommendations = [];
|
|
25933
|
+
if (summary.needsMigration > 0) {
|
|
25934
|
+
recommendations.push(`${summary.needsMigration} accounts need migration`);
|
|
25935
|
+
}
|
|
25936
|
+
if (summary.canAutoMigrate > 0) {
|
|
25937
|
+
recommendations.push(`${summary.canAutoMigrate} accounts can be auto-migrated`);
|
|
25938
|
+
}
|
|
25939
|
+
if (summary.invalid > 0) {
|
|
25940
|
+
recommendations.push(`${summary.invalid} accounts have invalid data and should be investigated`);
|
|
25941
|
+
}
|
|
25942
|
+
if (summary.needsMigration === 0 && summary.invalid === 0) {
|
|
25943
|
+
recommendations.push("All accounts are in the correct format");
|
|
25944
|
+
} else {
|
|
25945
|
+
recommendations.push("Consider running migration utilities to fix account format issues");
|
|
25946
|
+
recommendations.push("Backup important account data before migration");
|
|
25947
|
+
}
|
|
25948
|
+
return {
|
|
25949
|
+
summary,
|
|
25950
|
+
plans,
|
|
25951
|
+
recommendations
|
|
25952
|
+
};
|
|
25953
|
+
}
|
|
25954
|
+
async function simulateMigration(encodedAccount, address3) {
|
|
25955
|
+
const plan = await createMigrationPlan(encodedAccount, address3);
|
|
25956
|
+
const simulation = {
|
|
25957
|
+
wouldSucceed: false,
|
|
25958
|
+
estimatedSteps: [],
|
|
25959
|
+
warnings: [],
|
|
25960
|
+
requiredActions: []
|
|
25961
|
+
};
|
|
25962
|
+
if (plan.currentState === "valid") {
|
|
25963
|
+
simulation.wouldSucceed = true;
|
|
25964
|
+
simulation.estimatedSteps.push("No migration needed - account is already valid");
|
|
25965
|
+
return { plan, simulation };
|
|
25966
|
+
}
|
|
25967
|
+
switch (plan.migrationType) {
|
|
25968
|
+
case "recreate":
|
|
25969
|
+
simulation.estimatedSteps.push("1. Extract existing account data");
|
|
25970
|
+
simulation.estimatedSteps.push("2. Create new account with correct format");
|
|
25971
|
+
simulation.estimatedSteps.push("3. Transfer any salvageable data");
|
|
25972
|
+
simulation.estimatedSteps.push("4. Close old account");
|
|
25973
|
+
simulation.requiredActions.push("User must re-register the agent");
|
|
25974
|
+
simulation.warnings.push("Some data may be lost during recreation");
|
|
25975
|
+
simulation.wouldSucceed = plan.canAutoMigrate;
|
|
25976
|
+
break;
|
|
25977
|
+
case "data_conversion":
|
|
25978
|
+
simulation.estimatedSteps.push("1. Analyze existing data format");
|
|
25979
|
+
simulation.estimatedSteps.push("2. Convert to new format");
|
|
25980
|
+
simulation.estimatedSteps.push("3. Update discriminator");
|
|
25981
|
+
simulation.warnings.push("Data conversion is experimental");
|
|
25982
|
+
simulation.requiredActions.push("Manual verification required");
|
|
25983
|
+
simulation.wouldSucceed = false;
|
|
25984
|
+
break;
|
|
25985
|
+
case "unsupported":
|
|
25986
|
+
simulation.estimatedSteps.push("1. Manual investigation required");
|
|
25987
|
+
simulation.estimatedSteps.push("2. Determine if account is recoverable");
|
|
25988
|
+
simulation.warnings.push("Account may not be recoverable");
|
|
25989
|
+
simulation.requiredActions.push("Manual inspection and possible recreation");
|
|
25990
|
+
simulation.wouldSucceed = false;
|
|
25991
|
+
break;
|
|
25992
|
+
default:
|
|
25993
|
+
simulation.estimatedSteps.push("No migration strategy available");
|
|
25994
|
+
simulation.wouldSucceed = false;
|
|
25995
|
+
}
|
|
25996
|
+
return { plan, simulation };
|
|
25997
|
+
}
|
|
25998
|
+
function getMigrationInstructions(plan) {
|
|
25999
|
+
const instructions = [];
|
|
26000
|
+
switch (plan.migrationType) {
|
|
26001
|
+
case "none":
|
|
26002
|
+
instructions.push("\u2705 No migration needed - your account is up to date");
|
|
26003
|
+
break;
|
|
26004
|
+
case "recreate":
|
|
26005
|
+
instructions.push("\u{1F504} Account Recreation Required:");
|
|
26006
|
+
instructions.push("1. Use the CLI command: `ghost agent register` to create a new account");
|
|
26007
|
+
instructions.push("2. Configure your agent with the same settings as before");
|
|
26008
|
+
instructions.push("3. The old account will be automatically replaced");
|
|
26009
|
+
instructions.push("\u26A0\uFE0F Note: You may need to re-verify your agent after recreation");
|
|
26010
|
+
break;
|
|
26011
|
+
case "data_conversion":
|
|
26012
|
+
instructions.push("\u{1F527} Data Conversion Required:");
|
|
26013
|
+
instructions.push("1. Contact support for assistance with account conversion");
|
|
26014
|
+
instructions.push("2. Manual intervention may be required");
|
|
26015
|
+
instructions.push("3. Backup your account data before proceeding");
|
|
26016
|
+
break;
|
|
26017
|
+
case "unsupported":
|
|
26018
|
+
instructions.push("\u274C Migration Not Supported:");
|
|
26019
|
+
instructions.push("1. This account cannot be automatically migrated");
|
|
26020
|
+
instructions.push("2. Consider creating a new account");
|
|
26021
|
+
instructions.push("3. Contact support if this account contains important data");
|
|
26022
|
+
break;
|
|
26023
|
+
}
|
|
26024
|
+
return instructions;
|
|
26025
|
+
}
|
|
26026
|
+
init_agent();
|
|
26027
|
+
async function runAccountDiagnostics(encodedAccount, address3) {
|
|
26028
|
+
const timestamp = (/* @__PURE__ */ new Date()).toISOString();
|
|
26029
|
+
const accountExists = "exists" in encodedAccount && encodedAccount.exists;
|
|
26030
|
+
let discriminatorValidation, inspection, migrationPlan, migrationSimulation;
|
|
26031
|
+
if (accountExists) {
|
|
26032
|
+
const { AGENT_DISCRIMINATOR: AGENT_DISCRIMINATOR2 } = await Promise.resolve().then(() => (init_agent(), agent_exports));
|
|
26033
|
+
discriminatorValidation = validateAccountDiscriminator(encodedAccount.data, AGENT_DISCRIMINATOR2);
|
|
26034
|
+
inspection = inspectAccountData(encodedAccount, address3);
|
|
26035
|
+
migrationPlan = await createMigrationPlan(encodedAccount, address3);
|
|
26036
|
+
migrationSimulation = await simulateMigration(encodedAccount, address3);
|
|
26037
|
+
} else {
|
|
26038
|
+
discriminatorValidation = {
|
|
26039
|
+
isValid: false,
|
|
26040
|
+
actualLength: 0,
|
|
26041
|
+
expectedLength: 8,
|
|
26042
|
+
canDecode: false,
|
|
26043
|
+
needsMigration: false,
|
|
26044
|
+
errorMessage: "Account does not exist"
|
|
26045
|
+
};
|
|
26046
|
+
inspection = {
|
|
26047
|
+
address: address3,
|
|
26048
|
+
dataLength: 0,
|
|
26049
|
+
discriminator: null,
|
|
26050
|
+
discriminatorLength: 0,
|
|
26051
|
+
isAgentAccount: false,
|
|
26052
|
+
needsMigration: false,
|
|
26053
|
+
rawData: new Uint8Array(0)
|
|
26054
|
+
};
|
|
26055
|
+
migrationPlan = {
|
|
26056
|
+
address: address3,
|
|
26057
|
+
currentState: "not_exists",
|
|
26058
|
+
migrationType: "none",
|
|
26059
|
+
issues: ["Account does not exist"],
|
|
26060
|
+
recommendations: ["Create account using register_agent instruction"],
|
|
26061
|
+
canAutoMigrate: false
|
|
26062
|
+
};
|
|
26063
|
+
migrationSimulation = {
|
|
26064
|
+
plan: migrationPlan,
|
|
26065
|
+
simulation: {
|
|
26066
|
+
wouldSucceed: false,
|
|
26067
|
+
estimatedSteps: ["Account must be created first"],
|
|
26068
|
+
warnings: [],
|
|
26069
|
+
requiredActions: ["Use register_agent instruction"]
|
|
26070
|
+
}
|
|
26071
|
+
};
|
|
26072
|
+
}
|
|
26073
|
+
const recommendations = [];
|
|
26074
|
+
if (!accountExists) {
|
|
26075
|
+
recommendations.push("Account does not exist - create using register_agent");
|
|
26076
|
+
} else if (discriminatorValidation.isValid) {
|
|
26077
|
+
recommendations.push("Account is valid - no action needed");
|
|
26078
|
+
} else {
|
|
26079
|
+
recommendations.push(...getMigrationInstructions(migrationPlan));
|
|
26080
|
+
}
|
|
26081
|
+
const debugInfo = {
|
|
26082
|
+
expectedDiscriminator: Array.from(AGENT_DISCRIMINATOR),
|
|
26083
|
+
actualDiscriminator: inspection.discriminator ? Array.from(inspection.discriminator) : null,
|
|
26084
|
+
dataPreview: Array.from(inspection.rawData.slice(0, 32)),
|
|
26085
|
+
programId: accountExists && "owner" in encodedAccount ? encodedAccount.owner : void 0
|
|
26086
|
+
};
|
|
26087
|
+
return {
|
|
26088
|
+
address: address3,
|
|
26089
|
+
timestamp,
|
|
26090
|
+
accountExists,
|
|
26091
|
+
discriminatorValidation,
|
|
26092
|
+
inspection,
|
|
26093
|
+
migrationPlan,
|
|
26094
|
+
migrationSimulation,
|
|
26095
|
+
recommendations,
|
|
26096
|
+
debugInfo
|
|
26097
|
+
};
|
|
26098
|
+
}
|
|
26099
|
+
async function runBatchDiagnostics(accounts) {
|
|
26100
|
+
const timestamp = (/* @__PURE__ */ new Date()).toISOString();
|
|
26101
|
+
const reports = await Promise.all(accounts.map(
|
|
26102
|
+
({ address: address3, encodedAccount }) => runAccountDiagnostics(encodedAccount, address3)
|
|
26103
|
+
));
|
|
26104
|
+
const summary = {
|
|
26105
|
+
total: reports.length,
|
|
26106
|
+
valid: reports.filter((r) => r.accountExists && r.discriminatorValidation.isValid).length,
|
|
26107
|
+
invalid: reports.filter((r) => r.accountExists && !r.discriminatorValidation.isValid).length,
|
|
26108
|
+
needsMigration: reports.filter((r) => r.migrationPlan.currentState === "needs_migration").length,
|
|
26109
|
+
notExists: reports.filter((r) => !r.accountExists).length
|
|
26110
|
+
};
|
|
26111
|
+
const globalRecommendations = [];
|
|
26112
|
+
if (summary.notExists > 0) {
|
|
26113
|
+
globalRecommendations.push(`${summary.notExists} accounts need to be created`);
|
|
26114
|
+
}
|
|
26115
|
+
if (summary.needsMigration > 0) {
|
|
26116
|
+
globalRecommendations.push(`${summary.needsMigration} accounts need migration`);
|
|
26117
|
+
}
|
|
26118
|
+
if (summary.invalid > 0) {
|
|
26119
|
+
globalRecommendations.push(`${summary.invalid} accounts have data issues`);
|
|
26120
|
+
}
|
|
26121
|
+
if (summary.valid === summary.total) {
|
|
26122
|
+
globalRecommendations.push("All accounts are healthy");
|
|
26123
|
+
}
|
|
26124
|
+
return {
|
|
26125
|
+
summary,
|
|
26126
|
+
reports,
|
|
26127
|
+
globalRecommendations,
|
|
26128
|
+
timestamp
|
|
26129
|
+
};
|
|
26130
|
+
}
|
|
26131
|
+
async function diagnoseAccountFromChain(rpc, address3, options) {
|
|
26132
|
+
try {
|
|
26133
|
+
const encodedAccount = await fetchEncodedAccount(rpc, address3);
|
|
26134
|
+
const report = await runAccountDiagnostics(encodedAccount, address3);
|
|
26135
|
+
if (options?.logToConsole) {
|
|
26136
|
+
console.group(`\u{1F50D} Account Diagnostics: ${address3}`);
|
|
26137
|
+
console.log("Exists:", report.accountExists);
|
|
26138
|
+
console.log("Valid:", report.discriminatorValidation.isValid);
|
|
26139
|
+
console.log("Needs Migration:", report.migrationPlan.currentState === "needs_migration");
|
|
26140
|
+
console.log("Recommendations:");
|
|
26141
|
+
report.recommendations.forEach((rec) => console.log(` - ${rec}`));
|
|
26142
|
+
if (!report.discriminatorValidation.isValid) {
|
|
26143
|
+
console.log("Issues:");
|
|
26144
|
+
if (Array.isArray(report.migrationPlan.issues)) {
|
|
26145
|
+
report.migrationPlan.issues.forEach((issue) => console.log(` - ${issue}`));
|
|
26146
|
+
}
|
|
26147
|
+
}
|
|
26148
|
+
console.groupEnd();
|
|
26149
|
+
}
|
|
26150
|
+
return report;
|
|
26151
|
+
} catch (err) {
|
|
26152
|
+
console.error(`Failed to diagnose account ${address3}:`, err);
|
|
26153
|
+
return {
|
|
26154
|
+
address: address3,
|
|
26155
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
26156
|
+
accountExists: false,
|
|
26157
|
+
discriminatorValidation: {
|
|
26158
|
+
isValid: false,
|
|
26159
|
+
actualLength: 0,
|
|
26160
|
+
expectedLength: 8,
|
|
26161
|
+
canDecode: false,
|
|
26162
|
+
needsMigration: false,
|
|
26163
|
+
errorMessage: `Failed to fetch account: ${err instanceof Error ? err.message : String(err)}`
|
|
26164
|
+
},
|
|
26165
|
+
inspection: {
|
|
26166
|
+
address: address3,
|
|
26167
|
+
dataLength: 0,
|
|
26168
|
+
discriminator: null,
|
|
26169
|
+
discriminatorLength: 0,
|
|
26170
|
+
isAgentAccount: false,
|
|
26171
|
+
needsMigration: false,
|
|
26172
|
+
rawData: new Uint8Array(0)
|
|
26173
|
+
},
|
|
26174
|
+
migrationPlan: {
|
|
26175
|
+
address: address3,
|
|
26176
|
+
currentState: "invalid",
|
|
26177
|
+
migrationType: "unsupported",
|
|
26178
|
+
issues: [`Failed to fetch account: ${err instanceof Error ? err.message : String(err)}`],
|
|
26179
|
+
recommendations: ["Check network connection and account address"],
|
|
26180
|
+
canAutoMigrate: false
|
|
26181
|
+
},
|
|
26182
|
+
migrationSimulation: {
|
|
26183
|
+
plan: {
|
|
26184
|
+
address: address3,
|
|
26185
|
+
currentState: "invalid",
|
|
26186
|
+
migrationType: "unsupported",
|
|
26187
|
+
issues: [`Failed to fetch account: ${err instanceof Error ? err.message : String(err)}`],
|
|
26188
|
+
recommendations: ["Check network connection and account address"],
|
|
26189
|
+
canAutoMigrate: false
|
|
26190
|
+
},
|
|
26191
|
+
simulation: {
|
|
26192
|
+
wouldSucceed: false,
|
|
26193
|
+
estimatedSteps: ["Fix network connectivity issues"],
|
|
26194
|
+
warnings: ["Account could not be fetched"],
|
|
26195
|
+
requiredActions: ["Verify account address and network connection"]
|
|
26196
|
+
}
|
|
26197
|
+
},
|
|
26198
|
+
recommendations: ["Check network connection and account address"],
|
|
26199
|
+
debugInfo: {
|
|
26200
|
+
expectedDiscriminator: Array.from(AGENT_DISCRIMINATOR),
|
|
26201
|
+
actualDiscriminator: null,
|
|
26202
|
+
dataPreview: [],
|
|
26203
|
+
programId: void 0
|
|
26204
|
+
}
|
|
26205
|
+
};
|
|
26206
|
+
}
|
|
26207
|
+
}
|
|
26208
|
+
async function diagnoseBatchFromChain(rpc, addresses, options) {
|
|
26209
|
+
const maxConcurrent = options?.maxConcurrent ?? 10;
|
|
26210
|
+
const reports = [];
|
|
26211
|
+
for (let i = 0; i < addresses.length; i += maxConcurrent) {
|
|
26212
|
+
const batch = addresses.slice(i, i + maxConcurrent);
|
|
26213
|
+
const batchPromises = batch.map(
|
|
26214
|
+
(address3) => diagnoseAccountFromChain(rpc, address3, { logToConsole: false })
|
|
26215
|
+
);
|
|
26216
|
+
const batchReports = await Promise.allSettled(batchPromises);
|
|
26217
|
+
for (const result of batchReports) {
|
|
26218
|
+
if (result.status === "fulfilled") {
|
|
26219
|
+
reports.push(result.value);
|
|
26220
|
+
} else {
|
|
26221
|
+
console.error("Failed to diagnose account:", result.reason);
|
|
26222
|
+
reports.push({
|
|
26223
|
+
address: "unknown",
|
|
26224
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
26225
|
+
accountExists: false,
|
|
26226
|
+
discriminatorValidation: {
|
|
26227
|
+
isValid: false,
|
|
26228
|
+
actualLength: 0,
|
|
26229
|
+
expectedLength: 8,
|
|
26230
|
+
canDecode: false,
|
|
26231
|
+
needsMigration: false,
|
|
26232
|
+
errorMessage: "Failed to fetch account"
|
|
26233
|
+
},
|
|
26234
|
+
inspection: {
|
|
26235
|
+
address: "unknown",
|
|
26236
|
+
dataLength: 0,
|
|
26237
|
+
discriminator: null,
|
|
26238
|
+
discriminatorLength: 0,
|
|
26239
|
+
isAgentAccount: false,
|
|
26240
|
+
needsMigration: false,
|
|
26241
|
+
rawData: new Uint8Array(0)
|
|
26242
|
+
},
|
|
26243
|
+
migrationPlan: {
|
|
26244
|
+
address: "unknown",
|
|
26245
|
+
currentState: "invalid",
|
|
26246
|
+
migrationType: "unsupported",
|
|
26247
|
+
issues: ["Failed to fetch account"],
|
|
26248
|
+
recommendations: ["Check network connection"],
|
|
26249
|
+
canAutoMigrate: false
|
|
26250
|
+
},
|
|
26251
|
+
migrationSimulation: {
|
|
26252
|
+
plan: {
|
|
26253
|
+
address: "unknown",
|
|
26254
|
+
currentState: "invalid",
|
|
26255
|
+
migrationType: "unsupported",
|
|
26256
|
+
issues: ["Failed to fetch account"],
|
|
26257
|
+
recommendations: ["Check network connection"],
|
|
26258
|
+
canAutoMigrate: false
|
|
26259
|
+
},
|
|
26260
|
+
simulation: {
|
|
26261
|
+
wouldSucceed: false,
|
|
26262
|
+
estimatedSteps: ["Fix fetch issues"],
|
|
26263
|
+
warnings: ["Account could not be fetched"],
|
|
26264
|
+
requiredActions: ["Check network"]
|
|
26265
|
+
}
|
|
26266
|
+
},
|
|
26267
|
+
recommendations: ["Check network connection"],
|
|
26268
|
+
debugInfo: {
|
|
26269
|
+
expectedDiscriminator: Array.from(AGENT_DISCRIMINATOR),
|
|
26270
|
+
actualDiscriminator: null,
|
|
26271
|
+
dataPreview: [],
|
|
26272
|
+
programId: void 0
|
|
26273
|
+
}
|
|
26274
|
+
});
|
|
26275
|
+
}
|
|
26276
|
+
}
|
|
26277
|
+
}
|
|
26278
|
+
const batchReport = await runBatchDiagnostics(
|
|
26279
|
+
reports.map((report) => ({
|
|
26280
|
+
address: report.address,
|
|
26281
|
+
encodedAccount: {
|
|
26282
|
+
exists: report.accountExists,
|
|
26283
|
+
data: report.inspection.rawData,
|
|
26284
|
+
address: report.address,
|
|
26285
|
+
owner: report.debugInfo.programId ?? "",
|
|
26286
|
+
executable: false,
|
|
26287
|
+
lamports: 0n,
|
|
26288
|
+
programAddress: report.debugInfo.programId ?? "",
|
|
26289
|
+
space: report.inspection.rawData.length
|
|
26290
|
+
}
|
|
26291
|
+
}))
|
|
26292
|
+
);
|
|
26293
|
+
if (options?.logToConsole) {
|
|
26294
|
+
console.group("\u{1F50D} Batch Diagnostics Summary");
|
|
26295
|
+
console.log("Total accounts:", batchReport.summary.total);
|
|
26296
|
+
console.log("Valid accounts:", batchReport.summary.valid);
|
|
26297
|
+
console.log("Invalid accounts:", batchReport.summary.invalid);
|
|
26298
|
+
console.log("Need migration:", batchReport.summary.needsMigration);
|
|
26299
|
+
console.log("Do not exist:", batchReport.summary.notExists);
|
|
26300
|
+
console.log("Global recommendations:");
|
|
26301
|
+
batchReport.globalRecommendations.forEach((rec) => console.log(` - ${rec}`));
|
|
26302
|
+
console.groupEnd();
|
|
26303
|
+
}
|
|
26304
|
+
return batchReport;
|
|
26305
|
+
}
|
|
26306
|
+
function exportDiagnosticReport(report, filename) {
|
|
26307
|
+
const json = JSON.stringify(report, null, 2);
|
|
26308
|
+
if (filename) {
|
|
26309
|
+
console.log(`Diagnostic report would be saved as: ${filename}`);
|
|
26310
|
+
console.log("Report data:", json);
|
|
26311
|
+
}
|
|
26312
|
+
return json;
|
|
26313
|
+
}
|
|
26314
|
+
|
|
24843
26315
|
// src/index.ts
|
|
24844
26316
|
init_pda();
|
|
24845
26317
|
init_generated();
|
|
24846
26318
|
var GHOSTSPEAK_PROGRAM_ID = address("AJVoWJ4JC1xJR9ufGBGuMgFpHMLouB29sFRTJRvEK1ZR");
|
|
24847
26319
|
|
|
24848
|
-
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 };
|
|
26320
|
+
// src/utils/governance-helpers.ts
|
|
26321
|
+
init_generated();
|
|
26322
|
+
async function deriveMultisigPda(programId, authority, multisigId) {
|
|
26323
|
+
const [pda] = await getProgramDerivedAddress({
|
|
26324
|
+
programAddress: programId,
|
|
26325
|
+
seeds: [
|
|
26326
|
+
getBytesEncoder().encode(new Uint8Array([109, 117, 108, 116, 105, 115, 105, 103])),
|
|
26327
|
+
// 'multisig'
|
|
26328
|
+
getAddressEncoder().encode(authority),
|
|
26329
|
+
new Uint8Array(new BigUint64Array([multisigId]).buffer)
|
|
26330
|
+
]
|
|
26331
|
+
});
|
|
26332
|
+
return pda;
|
|
26333
|
+
}
|
|
26334
|
+
async function deriveProposalPda(programId, multisig, proposalId) {
|
|
26335
|
+
const [pda] = await getProgramDerivedAddress({
|
|
26336
|
+
programAddress: programId,
|
|
26337
|
+
seeds: [
|
|
26338
|
+
getBytesEncoder().encode(new Uint8Array([112, 114, 111, 112, 111, 115, 97, 108])),
|
|
26339
|
+
// 'proposal'
|
|
26340
|
+
getAddressEncoder().encode(multisig),
|
|
26341
|
+
new Uint8Array(new BigUint64Array([proposalId]).buffer)
|
|
26342
|
+
]
|
|
26343
|
+
});
|
|
26344
|
+
return pda;
|
|
26345
|
+
}
|
|
26346
|
+
var PERMISSION_TEMPLATES = {
|
|
26347
|
+
// Member permissions
|
|
26348
|
+
MEMBER: {
|
|
26349
|
+
VOTE: { action: "vote", resource: "proposal" },
|
|
26350
|
+
VIEW: { action: "view", resource: "all" },
|
|
26351
|
+
COMMENT: { action: "comment", resource: "proposal" }
|
|
26352
|
+
},
|
|
26353
|
+
// Moderator permissions
|
|
26354
|
+
MODERATOR: {
|
|
26355
|
+
CANCEL_PROPOSAL: { action: "cancel", resource: "proposal" },
|
|
26356
|
+
MODERATE_COMMENTS: { action: "moderate", resource: "comments" },
|
|
26357
|
+
VIEW_REPORTS: { action: "view", resource: "reports" }
|
|
26358
|
+
}
|
|
26359
|
+
};
|
|
26360
|
+
({
|
|
26361
|
+
MODERATOR: {
|
|
26362
|
+
permissions: [
|
|
26363
|
+
...Object.values(PERMISSION_TEMPLATES.MEMBER),
|
|
26364
|
+
...Object.values(PERMISSION_TEMPLATES.MODERATOR)
|
|
26365
|
+
]
|
|
26366
|
+
}
|
|
26367
|
+
});
|
|
26368
|
+
|
|
26369
|
+
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, NATIVE_MINT_ADDRESS, 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, createDiscriminatorErrorMessage, createMigrationPlan, createMigrationReport, 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, deriveMultisigPda, deriveProposalPda, diagnoseAccountFromChain, diagnoseBatchFromChain, exportDiagnosticReport, extractLegacyData, 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, getMigrationInstructions, 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, inspectAccountData, 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, runAccountDiagnostics, runBatchDiagnostics, safeDecodeAgent, simulateMigration, validateAccountDiscriminator };
|
|
24849
26370
|
//# sourceMappingURL=index.js.map
|
|
24850
26371
|
//# sourceMappingURL=index.js.map
|