@ghostspeak/sdk 2.0.5 → 2.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +152 -30
- package/dist/GhostSpeakClient-CWmGaM9Q.d.ts +1007 -0
- package/dist/StakingModule-C5rzuOWb.d.ts +2526 -0
- package/dist/{agent-M74TCRON.js → agent-5YLZ7DAC.js} +4 -4
- package/dist/{agent-M74TCRON.js.map → agent-5YLZ7DAC.js.map} +1 -1
- package/dist/batch-operations-45CQFEID.js +4 -0
- package/dist/batch-operations-45CQFEID.js.map +1 -0
- package/dist/browser.d.ts +45 -554
- package/dist/browser.js +15 -842
- package/dist/browser.js.map +1 -1
- package/dist/chunk-AL3HQN73.js +754 -0
- package/dist/chunk-AL3HQN73.js.map +1 -0
- package/dist/chunk-BF3IQ35I.js +284 -0
- package/dist/chunk-BF3IQ35I.js.map +1 -0
- package/dist/chunk-BQDGRTVP.js +168 -0
- package/dist/chunk-BQDGRTVP.js.map +1 -0
- package/dist/chunk-C5CDA3WX.js +7314 -0
- package/dist/chunk-C5CDA3WX.js.map +1 -0
- package/dist/chunk-E3FD2CNY.js +1869 -0
- package/dist/chunk-E3FD2CNY.js.map +1 -0
- package/dist/{chunk-V3SOFUAZ.js → chunk-G7S6B6WB.js} +327 -493
- package/dist/chunk-G7S6B6WB.js.map +1 -0
- package/dist/chunk-IHVDQ4YI.js +4231 -0
- package/dist/chunk-IHVDQ4YI.js.map +1 -0
- package/dist/chunk-JV2SWONF.js +98 -0
- package/dist/chunk-JV2SWONF.js.map +1 -0
- package/dist/chunk-KB6CKIUK.js +231 -0
- package/dist/chunk-KB6CKIUK.js.map +1 -0
- package/dist/chunk-RIZZPLLB.js +343 -0
- package/dist/chunk-RIZZPLLB.js.map +1 -0
- package/dist/chunk-S74EH3KD.js +7890 -0
- package/dist/chunk-S74EH3KD.js.map +1 -0
- package/dist/chunk-SFTSZ3LC.js +156 -0
- package/dist/chunk-SFTSZ3LC.js.map +1 -0
- package/dist/chunk-SKMJJ3Q6.js +125 -0
- package/dist/chunk-SKMJJ3Q6.js.map +1 -0
- package/dist/chunk-SZGFSCNU.js +3682 -0
- package/dist/chunk-SZGFSCNU.js.map +1 -0
- package/dist/chunk-TTB4OS2D.js +69 -0
- package/dist/chunk-TTB4OS2D.js.map +1 -0
- package/dist/chunk-UP2VWCW5.js +33 -0
- package/dist/{chunk-NSBPE2FW.js.map → chunk-UP2VWCW5.js.map} +1 -1
- package/dist/{chunk-UJUGGLMT.js → chunk-VQZQCHUT.js} +5 -5
- package/dist/{chunk-UJUGGLMT.js.map → chunk-VQZQCHUT.js.map} +1 -1
- package/dist/client.d.ts +6 -4
- package/dist/client.js +12 -10
- package/dist/createAgentAuthorization-ULG47ZJI.js +5 -0
- package/dist/createAgentAuthorization-ULG47ZJI.js.map +1 -0
- package/dist/credentials.d.ts +155 -0
- package/dist/credentials.js +4 -0
- package/dist/credentials.js.map +1 -0
- package/dist/crypto.js +2 -2
- package/dist/errors.js +1 -1
- package/dist/feature-flags-B1g0DCPe.d.ts +1181 -0
- package/dist/generated-EG5USUFG.js +9 -0
- package/dist/{generated-VNLHMR6Y.js.map → generated-EG5USUFG.js.map} +1 -1
- package/dist/{ghostspeak_wasm-SB2RPJ3D.js → ghostspeak_wasm-F227HOSM.js} +3 -3
- package/dist/{ghostspeak_wasm-SB2RPJ3D.js.map → ghostspeak_wasm-F227HOSM.js.map} +1 -1
- package/dist/index.d.ts +1210 -1506
- package/dist/index.js +601 -3532
- package/dist/index.js.map +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/minimal/core-minimal.d.ts +2383 -1264
- package/dist/minimal/core-minimal.js +9 -9
- package/dist/minimal/core-minimal.js.map +1 -1
- package/dist/nacl-fast-W5BJ3KZ2.js +2229 -0
- package/dist/nacl-fast-W5BJ3KZ2.js.map +1 -0
- package/dist/pda-4KP7CURF.js +4 -0
- package/dist/pda-4KP7CURF.js.map +1 -0
- package/dist/pda-Ce7VYg4T.d.ts +25 -0
- package/dist/reputation-types-Yebf0Rm_.d.ts +1071 -0
- package/dist/revokeAuthorization-OK7E7OK3.js +5 -0
- package/dist/revokeAuthorization-OK7E7OK3.js.map +1 -0
- package/dist/signature-verification-DGxR4aYQ.d.ts +448 -0
- package/dist/types.js +1 -1
- package/dist/updateReputationWithAuth-Y4ONEVSP.js +5 -0
- package/dist/updateReputationWithAuth-Y4ONEVSP.js.map +1 -0
- package/dist/utils.d.ts +69 -203
- package/dist/utils.js +15 -153
- package/dist/utils.js.map +1 -1
- package/package.json +28 -31
- package/dist/.tsbuildinfo +0 -1
- package/dist/GhostSpeakClient-hsGuGg__.d.ts +0 -860
- package/dist/GovernanceModule-DQYYys-H.d.ts +0 -1766
- package/dist/chunk-ASQXX4IT.js +0 -572
- package/dist/chunk-ASQXX4IT.js.map +0 -1
- package/dist/chunk-COGZFWOT.js +0 -19657
- package/dist/chunk-COGZFWOT.js.map +0 -1
- package/dist/chunk-FKRN4PW5.js +0 -1667
- package/dist/chunk-FKRN4PW5.js.map +0 -1
- package/dist/chunk-GMHIUK2R.js +0 -7526
- package/dist/chunk-GMHIUK2R.js.map +0 -1
- package/dist/chunk-IAWBZYPE.js +0 -356
- package/dist/chunk-IAWBZYPE.js.map +0 -1
- package/dist/chunk-NSBPE2FW.js +0 -15
- package/dist/chunk-OWYHJG6H.js +0 -13311
- package/dist/chunk-OWYHJG6H.js.map +0 -1
- package/dist/chunk-RDDPOFR5.js +0 -3
- package/dist/chunk-RDDPOFR5.js.map +0 -1
- package/dist/chunk-RERCHKZP.js +0 -35
- package/dist/chunk-RERCHKZP.js.map +0 -1
- package/dist/chunk-TVVGXYCI.js +0 -2887
- package/dist/chunk-TVVGXYCI.js.map +0 -1
- package/dist/chunk-V3SOFUAZ.js.map +0 -1
- package/dist/chunk-ZGP5552B.js +0 -377
- package/dist/chunk-ZGP5552B.js.map +0 -1
- package/dist/chunk-ZWOYNHVK.js +0 -196
- package/dist/chunk-ZWOYNHVK.js.map +0 -1
- package/dist/dist/.tsbuildinfo +0 -1
- package/dist/elgamal-VZLWB3XK.js +0 -5
- package/dist/elgamal-VZLWB3XK.js.map +0 -1
- package/dist/feature-flags-V722ZuXO.d.ts +0 -3512
- package/dist/generated-VNLHMR6Y.js +0 -5
- package/dist/ipfs-types-BOt9ZNg4.d.ts +0 -592
- package/dist/multisigConfig-BzEhy6jy.d.ts +0 -58
- package/dist/pda-B_nS8SbD.d.ts +0 -114
- package/dist/pda-S4BFJVGE.js +0 -4
- package/dist/pda-S4BFJVGE.js.map +0 -1
- package/dist/system-addresses-BFNLEbFx.d.ts +0 -857
- package/dist/token-2022-rpc-RALH4RK7.js +0 -593
- package/dist/token-2022-rpc-RALH4RK7.js.map +0 -1
package/dist/pda-B_nS8SbD.d.ts
DELETED
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import { Address } from '@solana/addresses';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Utility functions for Program Derived Addresses (PDAs)
|
|
5
|
-
* Based on generated patterns from Codama
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* Derive agent PDA (original function)
|
|
9
|
-
* Pattern: ['agent', owner, agentId]
|
|
10
|
-
* NOTE: Uses raw UTF-8 bytes to match smart contract's agent_id.as_bytes()
|
|
11
|
-
*/
|
|
12
|
-
declare function deriveAgentPdaOriginal(programId: Address, owner: Address, agentId: string): Promise<Address>;
|
|
13
|
-
/**
|
|
14
|
-
* Derive agent PDA (SDK compatible version)
|
|
15
|
-
* Pattern: ['agent', owner, agentId]
|
|
16
|
-
*/
|
|
17
|
-
declare function deriveAgentPda(params: {
|
|
18
|
-
owner: Address;
|
|
19
|
-
agentId: string;
|
|
20
|
-
programAddress: Address;
|
|
21
|
-
}): Promise<[Address, number]>;
|
|
22
|
-
/**
|
|
23
|
-
* Derive service listing PDA
|
|
24
|
-
* Pattern: ['service_listing', creator, listingId]
|
|
25
|
-
*/
|
|
26
|
-
declare function deriveServiceListingPda(programId: Address, creator: Address, listingId: string): Promise<Address>;
|
|
27
|
-
/**
|
|
28
|
-
* Derive job posting PDA
|
|
29
|
-
* Pattern: ['job_posting', employer, jobId]
|
|
30
|
-
*/
|
|
31
|
-
declare function deriveJobPostingPda(programId: Address, employer: Address, jobId: string): Promise<Address>;
|
|
32
|
-
/**
|
|
33
|
-
* Derive job application PDA
|
|
34
|
-
* Pattern: ['job_application', jobPosting, applicant]
|
|
35
|
-
*/
|
|
36
|
-
declare function deriveJobApplicationPda(programId: Address, jobPosting: Address, applicant: Address): Promise<Address>;
|
|
37
|
-
/**
|
|
38
|
-
* Derive work order PDA (used for escrow functionality)
|
|
39
|
-
* Pattern: ['work_order', client, orderId] (little-endian bytes)
|
|
40
|
-
* NOTE: Smart contract expects orderId as little-endian bytes, not U64 encoded
|
|
41
|
-
*/
|
|
42
|
-
declare function deriveWorkOrderPda(programId: Address, client: Address, orderId: bigint): Promise<Address>;
|
|
43
|
-
/**
|
|
44
|
-
* Derive work delivery PDA
|
|
45
|
-
* Pattern: ['work_delivery', workOrder, provider]
|
|
46
|
-
*/
|
|
47
|
-
declare function deriveWorkDeliveryPda(programId: Address, workOrder: Address, provider: Address): Promise<Address>;
|
|
48
|
-
/**
|
|
49
|
-
* Derive payment PDA
|
|
50
|
-
* Pattern: ['payment', workOrder, payer]
|
|
51
|
-
*/
|
|
52
|
-
declare function derivePaymentPda(programId: Address, workOrder: Address, payer: Address): Promise<Address>;
|
|
53
|
-
/**
|
|
54
|
-
* Derive A2A session PDA (wrapper for SDK compatibility)
|
|
55
|
-
* This function wraps deriveChannelPda to match the expected signature
|
|
56
|
-
*/
|
|
57
|
-
declare function deriveA2ASessionPda(params: {
|
|
58
|
-
channelId: string;
|
|
59
|
-
programAddress: Address;
|
|
60
|
-
}): Promise<[Address, number]>;
|
|
61
|
-
/**
|
|
62
|
-
* Derive channel PDA (for enhanced channels)
|
|
63
|
-
* Pattern: ['channel', channelId]
|
|
64
|
-
*/
|
|
65
|
-
declare function deriveChannelPda(programId: Address, channelId: string): Promise<Address>;
|
|
66
|
-
/**
|
|
67
|
-
* Derive A2A message PDA
|
|
68
|
-
* Pattern: ['a2a_message', session, session.created_at]
|
|
69
|
-
* NOTE: Fixed to match smart contract expectation - uses session.created_at as little-endian bytes
|
|
70
|
-
*/
|
|
71
|
-
declare function deriveA2AMessagePda(programId: Address, session: Address, sessionCreatedAt: bigint): Promise<Address>;
|
|
72
|
-
/**
|
|
73
|
-
* Derive user registry PDA
|
|
74
|
-
* Pattern: ['user_registry', signer]
|
|
75
|
-
* NOTE: Fixed to match smart contract expectations - includes signer address
|
|
76
|
-
*/
|
|
77
|
-
declare function deriveUserRegistryPda(programId: Address, signer: Address): Promise<Address>;
|
|
78
|
-
/**
|
|
79
|
-
* Derive service purchase PDA
|
|
80
|
-
* Pattern: ['service_purchase', serviceListing, buyer]
|
|
81
|
-
*/
|
|
82
|
-
declare function deriveServicePurchasePda(programId: Address, serviceListing: Address, buyer: Address): Promise<Address>;
|
|
83
|
-
/**
|
|
84
|
-
* Derive agent verification PDA
|
|
85
|
-
* Pattern: ['agent_verification', agent, verifier]
|
|
86
|
-
*/
|
|
87
|
-
declare function deriveAgentVerificationPda(programId: Address, agent: Address, verifier: Address): Promise<Address>;
|
|
88
|
-
/**
|
|
89
|
-
* Generic PDA finder for custom use cases
|
|
90
|
-
* Pattern: seeds array with automatic encoding
|
|
91
|
-
*/
|
|
92
|
-
declare function findProgramDerivedAddress(seeds: (string | Address | Uint8Array)[], programId: Address): Promise<[Address, number]>;
|
|
93
|
-
/**
|
|
94
|
-
* Derive escrow PDA (SDK compatible version)
|
|
95
|
-
* Pattern: ['escrow', escrowId/taskId]
|
|
96
|
-
*/
|
|
97
|
-
declare function deriveEscrowPDA(params: {
|
|
98
|
-
client: Address;
|
|
99
|
-
provider: Address;
|
|
100
|
-
escrowId: string;
|
|
101
|
-
programAddress: Address;
|
|
102
|
-
}): Promise<[Address, number]>;
|
|
103
|
-
/**
|
|
104
|
-
* Derive escrow PDA (simple version for EscrowModule)
|
|
105
|
-
* Pattern: ['escrow', buyer, seller, nonce]
|
|
106
|
-
*/
|
|
107
|
-
declare function deriveEscrowPda(programId: Address, buyer: Address, seller: Address, nonce: number): Promise<Address>;
|
|
108
|
-
/**
|
|
109
|
-
* Derive message PDA
|
|
110
|
-
* Pattern: ['message', channel, nonce]
|
|
111
|
-
*/
|
|
112
|
-
declare function deriveMessagePda(programId: Address, channel: Address, nonce: number): Promise<Address>;
|
|
113
|
-
|
|
114
|
-
export { deriveServiceListingPda as a, deriveAgentPdaOriginal as b, deriveEscrowPda as c, deriveAgentPda as d, deriveChannelPda as e, findProgramDerivedAddress as f, deriveMessagePda as g, deriveJobPostingPda as h, deriveUserRegistryPda as i, deriveA2AMessagePda as j, deriveA2ASessionPda as k, deriveWorkOrderPda as l, deriveEscrowPDA as m, deriveJobApplicationPda as n, deriveWorkDeliveryPda as o, derivePaymentPda as p, deriveServicePurchasePda as q, deriveAgentVerificationPda as r };
|
package/dist/pda-S4BFJVGE.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export { deriveA2AMessagePda, deriveA2ASessionPda, deriveA2ASessionPdaOriginal, deriveAgentPda, deriveAgentPdaOriginal, deriveAgentTreeConfigPda, deriveAgentVerificationPda, deriveAuctionPda, deriveChannelPda, deriveEscrowPDA, deriveEscrowPDAOriginal, deriveEscrowPda, deriveJobApplicationPda, deriveJobPostingPda, deriveMessagePda, derivePaymentPda, deriveReplicationRecordPda, deriveReplicationTemplatePda, deriveServiceListingPda, deriveServicePurchasePda, deriveTokenAccountPda, deriveUserRegistryPda, deriveWorkDeliveryPDA, deriveWorkDeliveryPda, deriveWorkOrderPDA, deriveWorkOrderPda, findProgramDerivedAddress } from './chunk-ASQXX4IT.js';
|
|
2
|
-
import './chunk-NSBPE2FW.js';
|
|
3
|
-
//# sourceMappingURL=pda-S4BFJVGE.js.map
|
|
4
|
-
//# sourceMappingURL=pda-S4BFJVGE.js.map
|
package/dist/pda-S4BFJVGE.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"pda-S4BFJVGE.js"}
|