@ghostspeak/sdk 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/dist/.tsbuildinfo +1 -1
- package/dist/GhostSpeakClient-CyeZ6Tyb.d.ts +2061 -0
- package/dist/client.d.ts +4 -3
- package/dist/crypto.d.ts +2 -2
- package/dist/{feature-flags-CEaxXgQQ.d.ts → feature-flags-3POmoO_Z.d.ts} +833 -1190
- package/dist/index.d.ts +206 -4543
- package/dist/ipfs-types-KJcvy9Qk.d.ts +553 -0
- package/dist/minimal/core-minimal.d.ts +2037 -82
- package/dist/utils.d.ts +4 -4
- package/package.json +5 -29
- package/dist/EscrowInstructions-4P3H6ETO.js +0 -2
- package/dist/EscrowInstructions-4P3H6ETO.js.map +0 -1
- package/dist/GhostSpeakClient-4SROinEf.d.ts +0 -503
- package/dist/accounts-IUZMPYVE.js +0 -2
- package/dist/accounts-IUZMPYVE.js.map +0 -1
- package/dist/agent-GZ2OES75.js +0 -2
- package/dist/agent-GZ2OES75.js.map +0 -1
- package/dist/auctionMarketplace-W4YM7HKU.js +0 -2
- package/dist/auctionMarketplace-W4YM7HKU.js.map +0 -1
- package/dist/chunk-2KOOI5BX.js +0 -2
- package/dist/chunk-2KOOI5BX.js.map +0 -1
- package/dist/chunk-32GWTXRJ.js +0 -3
- package/dist/chunk-32GWTXRJ.js.map +0 -1
- package/dist/chunk-B4WUFVLE.js +0 -2
- package/dist/chunk-B4WUFVLE.js.map +0 -1
- package/dist/chunk-C2OTQ5YS.js +0 -2
- package/dist/chunk-C2OTQ5YS.js.map +0 -1
- package/dist/chunk-CTC4ZJ26.js +0 -5
- package/dist/chunk-CTC4ZJ26.js.map +0 -1
- package/dist/chunk-DF7LLAMH.js +0 -2
- package/dist/chunk-DF7LLAMH.js.map +0 -1
- package/dist/chunk-DJ356OUX.js +0 -2
- package/dist/chunk-DJ356OUX.js.map +0 -1
- package/dist/chunk-DK5YDBXR.js +0 -2
- package/dist/chunk-DK5YDBXR.js.map +0 -1
- package/dist/chunk-DOTF5ECA.js +0 -4
- package/dist/chunk-DOTF5ECA.js.map +0 -1
- package/dist/chunk-FKEUXXZS.js +0 -30
- package/dist/chunk-FKEUXXZS.js.map +0 -1
- package/dist/chunk-GSHXEKBW.js +0 -2
- package/dist/chunk-GSHXEKBW.js.map +0 -1
- package/dist/chunk-IZDAEOLH.js +0 -2
- package/dist/chunk-IZDAEOLH.js.map +0 -1
- package/dist/chunk-JY554RGE.js +0 -3
- package/dist/chunk-JY554RGE.js.map +0 -1
- package/dist/chunk-KK3HV2RD.js +0 -3
- package/dist/chunk-KK3HV2RD.js.map +0 -1
- package/dist/chunk-PPOCDM6G.js +0 -2
- package/dist/chunk-PPOCDM6G.js.map +0 -1
- package/dist/chunk-PUI35LBF.js +0 -2
- package/dist/chunk-PUI35LBF.js.map +0 -1
- package/dist/chunk-Q34J6YDA.js +0 -11
- package/dist/chunk-Q34J6YDA.js.map +0 -1
- package/dist/chunk-QATBFZMM.js +0 -3
- package/dist/chunk-QATBFZMM.js.map +0 -1
- package/dist/chunk-QTKN3VZV.js +0 -2
- package/dist/chunk-QTKN3VZV.js.map +0 -1
- package/dist/chunk-RFBYMTTN.js +0 -2
- package/dist/chunk-RFBYMTTN.js.map +0 -1
- package/dist/chunk-RJJPOLCK.js +0 -22
- package/dist/chunk-RJJPOLCK.js.map +0 -1
- package/dist/chunk-RTWJTEND.js +0 -2
- package/dist/chunk-RTWJTEND.js.map +0 -1
- package/dist/chunk-SR3ZJCME.js +0 -2
- package/dist/chunk-SR3ZJCME.js.map +0 -1
- package/dist/chunk-TAWXH7KX.js +0 -2
- package/dist/chunk-TAWXH7KX.js.map +0 -1
- package/dist/client.js +0 -2
- package/dist/client.js.map +0 -1
- package/dist/confidential-transfer-manager-CGS3T5DG.js +0 -2
- package/dist/confidential-transfer-manager-CGS3T5DG.js.map +0 -1
- package/dist/crypto.js +0 -2
- package/dist/crypto.js.map +0 -1
- package/dist/elgamal-3ABOJSHC.js +0 -2
- package/dist/elgamal-3ABOJSHC.js.map +0 -1
- package/dist/enhanced-client-errors-W22U3LNH.js +0 -2
- package/dist/enhanced-client-errors-W22U3LNH.js.map +0 -1
- package/dist/errors.js +0 -2
- package/dist/errors.js.map +0 -1
- package/dist/generated-U3L4KUE4.js +0 -2
- package/dist/generated-U3L4KUE4.js.map +0 -1
- package/dist/ghostspeak_wasm-3KPNJTSS.js +0 -2
- package/dist/ghostspeak_wasm-3KPNJTSS.js.map +0 -1
- package/dist/index.js +0 -97
- package/dist/index.js.map +0 -1
- package/dist/ipfs-types-BlxtJ3q2.d.ts +0 -194
- package/dist/metafile-esm.json +0 -1
- package/dist/minimal/core-minimal.js +0 -12
- package/dist/minimal/core-minimal.js.map +0 -1
- package/dist/pda-2GUWRQ5G.js +0 -2
- package/dist/pda-2GUWRQ5G.js.map +0 -1
- package/dist/registerAgentCompressed-L6ACXD2Z.js +0 -2
- package/dist/registerAgentCompressed-L6ACXD2Z.js.map +0 -1
- package/dist/token-2022-rpc-SRHRFN5Y.js +0 -2
- package/dist/token-2022-rpc-SRHRFN5Y.js.map +0 -1
- package/dist/types.js +0 -2
- package/dist/types.js.map +0 -1
- package/dist/utils.js +0 -2
- package/dist/utils.js.map +0 -1
- package/dist/zk-proof-builder-GXZ42QZA.js +0 -2
- package/dist/zk-proof-builder-GXZ42QZA.js.map +0 -1
|
@@ -1,5 +1,975 @@
|
|
|
1
|
-
import { Address } from '@solana/
|
|
2
|
-
import {
|
|
1
|
+
import { Address, Option, ReadonlyUint8Array, AccountMeta, Instruction, InstructionWithData, InstructionWithAccounts, WritableAccount, WritableSignerAccount, AccountSignerMeta, ReadonlyAccount, ReadonlySignerAccount, Rpc, GetLatestBlockhashApi, SendTransactionApi, GetAccountInfoApi, SimulateTransactionApi, GetFeeForMessageApi, GetProgramAccountsApi, GetEpochInfoApi, GetSignatureStatusesApi, GetMultipleAccountsApi, RpcSubscriptions, SignatureNotificationsApi, SlotNotificationsApi, AccountRole, TransactionSigner, Signature as Signature$1 } from '@solana/kit';
|
|
2
|
+
import { Address as Address$1 } from '@solana/addresses';
|
|
3
|
+
import { IInstruction } from '@solana/instructions';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* This code was AUTOGENERATED using the codama library.
|
|
7
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
8
|
+
* to add features, then rerun codama to update it.
|
|
9
|
+
*
|
|
10
|
+
* @see https://github.com/codama-idl/codama
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
declare enum AccountState {
|
|
14
|
+
Uninitialized = 0,
|
|
15
|
+
Initialized = 1,
|
|
16
|
+
Frozen = 2
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* This code was AUTOGENERATED using the codama library.
|
|
21
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
22
|
+
* to add features, then rerun codama to update it.
|
|
23
|
+
*
|
|
24
|
+
* @see https://github.com/codama-idl/codama
|
|
25
|
+
*/
|
|
26
|
+
|
|
27
|
+
declare enum ApplicationStatus {
|
|
28
|
+
Submitted = 0,
|
|
29
|
+
Accepted = 1,
|
|
30
|
+
Rejected = 2,
|
|
31
|
+
Withdrawn = 3
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* This code was AUTOGENERATED using the codama library.
|
|
36
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
37
|
+
* to add features, then rerun codama to update it.
|
|
38
|
+
*
|
|
39
|
+
* @see https://github.com/codama-idl/codama
|
|
40
|
+
*/
|
|
41
|
+
|
|
42
|
+
type AuctionBid = {
|
|
43
|
+
bidder: Address;
|
|
44
|
+
amount: bigint;
|
|
45
|
+
timestamp: bigint;
|
|
46
|
+
isWinning: boolean;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* This code was AUTOGENERATED using the codama library.
|
|
51
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
52
|
+
* to add features, then rerun codama to update it.
|
|
53
|
+
*
|
|
54
|
+
* @see https://github.com/codama-idl/codama
|
|
55
|
+
*/
|
|
56
|
+
|
|
57
|
+
declare enum AuctionStatus {
|
|
58
|
+
Active = 0,
|
|
59
|
+
Ended = 1,
|
|
60
|
+
Cancelled = 2,
|
|
61
|
+
Settled = 3
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* This code was AUTOGENERATED using the codama library.
|
|
66
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
67
|
+
* to add features, then rerun codama to update it.
|
|
68
|
+
*
|
|
69
|
+
* @see https://github.com/codama-idl/codama
|
|
70
|
+
*/
|
|
71
|
+
|
|
72
|
+
declare enum AuctionType {
|
|
73
|
+
English = 0,
|
|
74
|
+
Dutch = 1,
|
|
75
|
+
SealedBid = 2,
|
|
76
|
+
Vickrey = 3
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* This code was AUTOGENERATED using the codama library.
|
|
81
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
82
|
+
* to add features, then rerun codama to update it.
|
|
83
|
+
*
|
|
84
|
+
* @see https://github.com/codama-idl/codama
|
|
85
|
+
*/
|
|
86
|
+
|
|
87
|
+
/** Types of execution conditions */
|
|
88
|
+
declare enum ConditionType {
|
|
89
|
+
TimeDelay = 0,
|
|
90
|
+
TokenBalance = 1,
|
|
91
|
+
PriceThreshold = 2,
|
|
92
|
+
VoteCount = 3,
|
|
93
|
+
ExternalOracle = 4,
|
|
94
|
+
CustomLogic = 5
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* This code was AUTOGENERATED using the codama library.
|
|
99
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
100
|
+
* to add features, then rerun codama to update it.
|
|
101
|
+
*
|
|
102
|
+
* @see https://github.com/codama-idl/codama
|
|
103
|
+
*/
|
|
104
|
+
|
|
105
|
+
/** Vote delegation information */
|
|
106
|
+
type DelegationInfo = {
|
|
107
|
+
/** Original delegator */
|
|
108
|
+
delegator: Address;
|
|
109
|
+
/** Delegation timestamp */
|
|
110
|
+
delegatedAt: bigint;
|
|
111
|
+
/** Delegation scope */
|
|
112
|
+
scope: DelegationScope;
|
|
113
|
+
/** Delegation expiry */
|
|
114
|
+
expiresAt: Option<bigint>;
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* This code was AUTOGENERATED using the codama library.
|
|
119
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
120
|
+
* to add features, then rerun codama to update it.
|
|
121
|
+
*
|
|
122
|
+
* @see https://github.com/codama-idl/codama
|
|
123
|
+
*/
|
|
124
|
+
|
|
125
|
+
/** Scope of vote delegation */
|
|
126
|
+
type DelegationScope = {
|
|
127
|
+
__kind: 'All';
|
|
128
|
+
} | {
|
|
129
|
+
__kind: 'ProposalType';
|
|
130
|
+
fields: readonly [ProposalType];
|
|
131
|
+
} | {
|
|
132
|
+
__kind: 'SingleProposal';
|
|
133
|
+
} | {
|
|
134
|
+
__kind: 'Limited';
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* This code was AUTOGENERATED using the codama library.
|
|
139
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
140
|
+
* to add features, then rerun codama to update it.
|
|
141
|
+
*
|
|
142
|
+
* @see https://github.com/codama-idl/codama
|
|
143
|
+
*/
|
|
144
|
+
|
|
145
|
+
type DutchAuctionConfig = {
|
|
146
|
+
decayType: DutchAuctionDecayType;
|
|
147
|
+
priceStepCount: number;
|
|
148
|
+
stepDuration: bigint;
|
|
149
|
+
decayRateBasisPoints: number;
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* This code was AUTOGENERATED using the codama library.
|
|
154
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
155
|
+
* to add features, then rerun codama to update it.
|
|
156
|
+
*
|
|
157
|
+
* @see https://github.com/codama-idl/codama
|
|
158
|
+
*/
|
|
159
|
+
|
|
160
|
+
declare enum DutchAuctionDecayType {
|
|
161
|
+
Linear = 0,
|
|
162
|
+
Exponential = 1,
|
|
163
|
+
Stepped = 2
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* This code was AUTOGENERATED using the codama library.
|
|
168
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
169
|
+
* to add features, then rerun codama to update it.
|
|
170
|
+
*
|
|
171
|
+
* @see https://github.com/codama-idl/codama
|
|
172
|
+
*/
|
|
173
|
+
|
|
174
|
+
/** Execution conditions for transactions */
|
|
175
|
+
type ExecutionCondition = {
|
|
176
|
+
/** Condition type */
|
|
177
|
+
conditionType: ConditionType;
|
|
178
|
+
/** Target value/threshold */
|
|
179
|
+
targetValue: bigint;
|
|
180
|
+
/** Current value */
|
|
181
|
+
currentValue: bigint;
|
|
182
|
+
/** Condition met */
|
|
183
|
+
met: boolean;
|
|
184
|
+
/** Condition description */
|
|
185
|
+
description: string;
|
|
186
|
+
};
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* This code was AUTOGENERATED using the codama library.
|
|
190
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
191
|
+
* to add features, then rerun codama to update it.
|
|
192
|
+
*
|
|
193
|
+
* @see https://github.com/codama-idl/codama
|
|
194
|
+
*/
|
|
195
|
+
|
|
196
|
+
/** Execution parameters for proposals */
|
|
197
|
+
type ExecutionParams = {
|
|
198
|
+
/** Instructions to execute if passed */
|
|
199
|
+
instructions: Array<ProposalInstruction>;
|
|
200
|
+
/** Time delay before execution */
|
|
201
|
+
executionDelay: bigint;
|
|
202
|
+
/** Execution conditions */
|
|
203
|
+
executionConditions: Array<ExecutionCondition>;
|
|
204
|
+
/** Can be cancelled after approval */
|
|
205
|
+
cancellable: boolean;
|
|
206
|
+
/** Automatic execution enabled */
|
|
207
|
+
autoExecute: boolean;
|
|
208
|
+
/** Required execution authority */
|
|
209
|
+
executionAuthority: Address;
|
|
210
|
+
};
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* This code was AUTOGENERATED using the codama library.
|
|
214
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
215
|
+
* to add features, then rerun codama to update it.
|
|
216
|
+
*
|
|
217
|
+
* @see https://github.com/codama-idl/codama
|
|
218
|
+
*/
|
|
219
|
+
|
|
220
|
+
/** Account specification for proposal instruction */
|
|
221
|
+
type ProposalAccount = {
|
|
222
|
+
/** Account public key */
|
|
223
|
+
pubkey: Address;
|
|
224
|
+
/** Is signer required */
|
|
225
|
+
isSigner: boolean;
|
|
226
|
+
/** Is writable */
|
|
227
|
+
isWritable: boolean;
|
|
228
|
+
/** Account description */
|
|
229
|
+
description: string;
|
|
230
|
+
};
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* This code was AUTOGENERATED using the codama library.
|
|
234
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
235
|
+
* to add features, then rerun codama to update it.
|
|
236
|
+
*
|
|
237
|
+
* @see https://github.com/codama-idl/codama
|
|
238
|
+
*/
|
|
239
|
+
|
|
240
|
+
/** Individual instruction in proposal */
|
|
241
|
+
type ProposalInstruction = {
|
|
242
|
+
/** Target program */
|
|
243
|
+
programId: Address;
|
|
244
|
+
/** Accounts required */
|
|
245
|
+
accounts: Array<ProposalAccount>;
|
|
246
|
+
/** Instruction data */
|
|
247
|
+
data: ReadonlyUint8Array;
|
|
248
|
+
/** Instruction description */
|
|
249
|
+
description: string;
|
|
250
|
+
};
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* This code was AUTOGENERATED using the codama library.
|
|
254
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
255
|
+
* to add features, then rerun codama to update it.
|
|
256
|
+
*
|
|
257
|
+
* @see https://github.com/codama-idl/codama
|
|
258
|
+
*/
|
|
259
|
+
|
|
260
|
+
/** Proposal metadata */
|
|
261
|
+
type ProposalMetadata = {
|
|
262
|
+
/** IPFS hash for detailed proposal */
|
|
263
|
+
ipfsHash: Option<string>;
|
|
264
|
+
/** External references */
|
|
265
|
+
externalReferences: Array<string>;
|
|
266
|
+
/** Proposal tags */
|
|
267
|
+
tags: Array<string>;
|
|
268
|
+
/** Risk assessment */
|
|
269
|
+
riskAssessment: Option<string>;
|
|
270
|
+
/** Impact analysis */
|
|
271
|
+
impactAnalysis: Option<string>;
|
|
272
|
+
/** Implementation timeline */
|
|
273
|
+
implementationTimeline: Option<string>;
|
|
274
|
+
};
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* This code was AUTOGENERATED using the codama library.
|
|
278
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
279
|
+
* to add features, then rerun codama to update it.
|
|
280
|
+
*
|
|
281
|
+
* @see https://github.com/codama-idl/codama
|
|
282
|
+
*/
|
|
283
|
+
|
|
284
|
+
/** Proposal execution status */
|
|
285
|
+
declare enum ProposalStatus {
|
|
286
|
+
Draft = 0,
|
|
287
|
+
Active = 1,
|
|
288
|
+
Passed = 2,
|
|
289
|
+
Failed = 3,
|
|
290
|
+
Executed = 4,
|
|
291
|
+
Cancelled = 5,
|
|
292
|
+
Expired = 6,
|
|
293
|
+
Queued = 7
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* This code was AUTOGENERATED using the codama library.
|
|
298
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
299
|
+
* to add features, then rerun codama to update it.
|
|
300
|
+
*
|
|
301
|
+
* @see https://github.com/codama-idl/codama
|
|
302
|
+
*/
|
|
303
|
+
|
|
304
|
+
/** Types of governance proposals */
|
|
305
|
+
declare enum ProposalType {
|
|
306
|
+
ParameterUpdate = 0,
|
|
307
|
+
ProtocolUpgrade = 1,
|
|
308
|
+
TreasuryOperation = 2,
|
|
309
|
+
FeeUpdate = 3,
|
|
310
|
+
SecurityUpdate = 4,
|
|
311
|
+
GovernanceUpdate = 5,
|
|
312
|
+
EmergencyAction = 6,
|
|
313
|
+
Custom = 7
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* This code was AUTOGENERATED using the codama library.
|
|
318
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
319
|
+
* to add features, then rerun codama to update it.
|
|
320
|
+
*
|
|
321
|
+
* @see https://github.com/codama-idl/codama
|
|
322
|
+
*/
|
|
323
|
+
|
|
324
|
+
declare enum PurchaseStatus {
|
|
325
|
+
Pending = 0,
|
|
326
|
+
Confirmed = 1,
|
|
327
|
+
Completed = 2,
|
|
328
|
+
Cancelled = 3,
|
|
329
|
+
Paid = 4
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
/**
|
|
333
|
+
* This code was AUTOGENERATED using the codama library.
|
|
334
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
335
|
+
* to add features, then rerun codama to update it.
|
|
336
|
+
*
|
|
337
|
+
* @see https://github.com/codama-idl/codama
|
|
338
|
+
*/
|
|
339
|
+
|
|
340
|
+
/** Methods for calculating quorum */
|
|
341
|
+
declare enum QuorumMethod {
|
|
342
|
+
Absolute = 0,
|
|
343
|
+
Relative = 1,
|
|
344
|
+
Weighted = 2,
|
|
345
|
+
Dynamic = 3
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* This code was AUTOGENERATED using the codama library.
|
|
350
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
351
|
+
* to add features, then rerun codama to update it.
|
|
352
|
+
*
|
|
353
|
+
* @see https://github.com/codama-idl/codama
|
|
354
|
+
*/
|
|
355
|
+
|
|
356
|
+
/** Quorum requirements for proposals */
|
|
357
|
+
type QuorumRequirements = {
|
|
358
|
+
/** Minimum participation rate (0-100) */
|
|
359
|
+
minimumParticipation: number;
|
|
360
|
+
/** Approval threshold (0-100) */
|
|
361
|
+
approvalThreshold: number;
|
|
362
|
+
/** Super majority required */
|
|
363
|
+
superMajorityRequired: boolean;
|
|
364
|
+
/** Minimum total voting power */
|
|
365
|
+
minimumVotingPower: bigint;
|
|
366
|
+
/** Quorum calculation method */
|
|
367
|
+
quorumMethod: QuorumMethod;
|
|
368
|
+
};
|
|
369
|
+
|
|
370
|
+
/**
|
|
371
|
+
* This code was AUTOGENERATED using the codama library.
|
|
372
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
373
|
+
* to add features, then rerun codama to update it.
|
|
374
|
+
*
|
|
375
|
+
* @see https://github.com/codama-idl/codama
|
|
376
|
+
*/
|
|
377
|
+
|
|
378
|
+
/** Individual vote record */
|
|
379
|
+
type Vote = {
|
|
380
|
+
/** Voter public key */
|
|
381
|
+
voter: Address;
|
|
382
|
+
/** Vote choice */
|
|
383
|
+
choice: VoteChoice;
|
|
384
|
+
/** Voting power used */
|
|
385
|
+
votingPower: bigint;
|
|
386
|
+
/** Vote timestamp */
|
|
387
|
+
votedAt: bigint;
|
|
388
|
+
/** Vote reasoning (optional) */
|
|
389
|
+
reasoning: Option<string>;
|
|
390
|
+
/** Delegation info (if delegated vote) */
|
|
391
|
+
delegationInfo: Option<DelegationInfo>;
|
|
392
|
+
};
|
|
393
|
+
|
|
394
|
+
/**
|
|
395
|
+
* This code was AUTOGENERATED using the codama library.
|
|
396
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
397
|
+
* to add features, then rerun codama to update it.
|
|
398
|
+
*
|
|
399
|
+
* @see https://github.com/codama-idl/codama
|
|
400
|
+
*/
|
|
401
|
+
|
|
402
|
+
/** Vote choices */
|
|
403
|
+
declare enum VoteChoice {
|
|
404
|
+
For = 0,
|
|
405
|
+
Against = 1,
|
|
406
|
+
Abstain = 2
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
/**
|
|
410
|
+
* This code was AUTOGENERATED using the codama library.
|
|
411
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
412
|
+
* to add features, then rerun codama to update it.
|
|
413
|
+
*
|
|
414
|
+
* @see https://github.com/codama-idl/codama
|
|
415
|
+
*/
|
|
416
|
+
|
|
417
|
+
/** Voting results for proposal */
|
|
418
|
+
type VotingResults = {
|
|
419
|
+
/** Total votes for */
|
|
420
|
+
votesFor: bigint;
|
|
421
|
+
/** Total votes against */
|
|
422
|
+
votesAgainst: bigint;
|
|
423
|
+
/** Total votes abstain */
|
|
424
|
+
votesAbstain: bigint;
|
|
425
|
+
/** Total voting power */
|
|
426
|
+
totalVotingPower: bigint;
|
|
427
|
+
/** Participation rate */
|
|
428
|
+
participationRate: number;
|
|
429
|
+
/** Individual votes */
|
|
430
|
+
individualVotes: Array<Vote>;
|
|
431
|
+
/** Weighted voting enabled */
|
|
432
|
+
weightedVoting: boolean;
|
|
433
|
+
/** Quorum reached */
|
|
434
|
+
quorumReached: boolean;
|
|
435
|
+
/** Approval threshold met */
|
|
436
|
+
approvalThresholdMet: boolean;
|
|
437
|
+
};
|
|
438
|
+
|
|
439
|
+
/**
|
|
440
|
+
* This code was AUTOGENERATED using the codama library.
|
|
441
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
442
|
+
* to add features, then rerun codama to update it.
|
|
443
|
+
*
|
|
444
|
+
* @see https://github.com/codama-idl/codama
|
|
445
|
+
*/
|
|
446
|
+
|
|
447
|
+
type AuctionMarketplace = {
|
|
448
|
+
discriminator: ReadonlyUint8Array;
|
|
449
|
+
auction: Address;
|
|
450
|
+
agent: Address;
|
|
451
|
+
creator: Address;
|
|
452
|
+
auctionType: AuctionType;
|
|
453
|
+
startingPrice: bigint;
|
|
454
|
+
reservePrice: bigint;
|
|
455
|
+
isReserveHidden: boolean;
|
|
456
|
+
reserveMet: boolean;
|
|
457
|
+
currentPrice: bigint;
|
|
458
|
+
currentWinner: Option<Address>;
|
|
459
|
+
winner: Option<Address>;
|
|
460
|
+
auctionEndTime: bigint;
|
|
461
|
+
minimumBidIncrement: bigint;
|
|
462
|
+
totalBids: number;
|
|
463
|
+
status: AuctionStatus;
|
|
464
|
+
bids: Array<AuctionBid>;
|
|
465
|
+
createdAt: bigint;
|
|
466
|
+
endedAt: Option<bigint>;
|
|
467
|
+
metadataUri: string;
|
|
468
|
+
dutchConfig: Option<DutchAuctionConfig>;
|
|
469
|
+
extensionCount: number;
|
|
470
|
+
originalEndTime: bigint;
|
|
471
|
+
reservePriceLocked: boolean;
|
|
472
|
+
reserveShortfallNotified: boolean;
|
|
473
|
+
bump: number;
|
|
474
|
+
};
|
|
475
|
+
|
|
476
|
+
/**
|
|
477
|
+
* This code was AUTOGENERATED using the codama library.
|
|
478
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
479
|
+
* to add features, then rerun codama to update it.
|
|
480
|
+
*
|
|
481
|
+
* @see https://github.com/codama-idl/codama
|
|
482
|
+
*/
|
|
483
|
+
|
|
484
|
+
type GovernanceProposal = {
|
|
485
|
+
discriminator: ReadonlyUint8Array;
|
|
486
|
+
/** Proposal ID */
|
|
487
|
+
proposalId: bigint;
|
|
488
|
+
/** Proposer */
|
|
489
|
+
proposer: Address;
|
|
490
|
+
/** Proposal title */
|
|
491
|
+
title: string;
|
|
492
|
+
/** Proposal description */
|
|
493
|
+
description: string;
|
|
494
|
+
/** Proposal type */
|
|
495
|
+
proposalType: ProposalType;
|
|
496
|
+
/** Creation timestamp */
|
|
497
|
+
createdAt: bigint;
|
|
498
|
+
/** Voting start timestamp */
|
|
499
|
+
votingStartsAt: bigint;
|
|
500
|
+
/** Voting end timestamp */
|
|
501
|
+
votingEndsAt: bigint;
|
|
502
|
+
/** Execution timestamp (if approved) */
|
|
503
|
+
executionTimestamp: Option<bigint>;
|
|
504
|
+
/** Proposal status */
|
|
505
|
+
status: ProposalStatus;
|
|
506
|
+
/** Voting results */
|
|
507
|
+
votingResults: VotingResults;
|
|
508
|
+
/** Execution parameters */
|
|
509
|
+
executionParams: ExecutionParams;
|
|
510
|
+
/** Quorum requirements */
|
|
511
|
+
quorumRequirements: QuorumRequirements;
|
|
512
|
+
/** Proposal metadata */
|
|
513
|
+
metadata: ProposalMetadata;
|
|
514
|
+
/** Reserved space */
|
|
515
|
+
reserved: ReadonlyUint8Array;
|
|
516
|
+
};
|
|
517
|
+
|
|
518
|
+
/**
|
|
519
|
+
* This code was AUTOGENERATED using the codama library.
|
|
520
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
521
|
+
* to add features, then rerun codama to update it.
|
|
522
|
+
*
|
|
523
|
+
* @see https://github.com/codama-idl/codama
|
|
524
|
+
*/
|
|
525
|
+
|
|
526
|
+
type JobApplication = {
|
|
527
|
+
discriminator: ReadonlyUint8Array;
|
|
528
|
+
jobPosting: Address;
|
|
529
|
+
agent: Address;
|
|
530
|
+
agentOwner: Address;
|
|
531
|
+
coverLetter: string;
|
|
532
|
+
proposedRate: bigint;
|
|
533
|
+
estimatedDelivery: bigint;
|
|
534
|
+
portfolioItems: Array<string>;
|
|
535
|
+
status: ApplicationStatus;
|
|
536
|
+
appliedAt: bigint;
|
|
537
|
+
bump: number;
|
|
538
|
+
};
|
|
539
|
+
|
|
540
|
+
/**
|
|
541
|
+
* This code was AUTOGENERATED using the codama library.
|
|
542
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
543
|
+
* to add features, then rerun codama to update it.
|
|
544
|
+
*
|
|
545
|
+
* @see https://github.com/codama-idl/codama
|
|
546
|
+
*/
|
|
547
|
+
|
|
548
|
+
type JobPosting = {
|
|
549
|
+
discriminator: ReadonlyUint8Array;
|
|
550
|
+
employer: Address;
|
|
551
|
+
title: string;
|
|
552
|
+
description: string;
|
|
553
|
+
requirements: Array<string>;
|
|
554
|
+
budget: bigint;
|
|
555
|
+
deadline: bigint;
|
|
556
|
+
skillsNeeded: Array<string>;
|
|
557
|
+
budgetMin: bigint;
|
|
558
|
+
budgetMax: bigint;
|
|
559
|
+
paymentToken: Address;
|
|
560
|
+
jobType: string;
|
|
561
|
+
experienceLevel: string;
|
|
562
|
+
isActive: boolean;
|
|
563
|
+
applicationsCount: number;
|
|
564
|
+
createdAt: bigint;
|
|
565
|
+
updatedAt: bigint;
|
|
566
|
+
bump: number;
|
|
567
|
+
};
|
|
568
|
+
|
|
569
|
+
/**
|
|
570
|
+
* This code was AUTOGENERATED using the codama library.
|
|
571
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
572
|
+
* to add features, then rerun codama to update it.
|
|
573
|
+
*
|
|
574
|
+
* @see https://github.com/codama-idl/codama
|
|
575
|
+
*/
|
|
576
|
+
|
|
577
|
+
type ServiceListing = {
|
|
578
|
+
discriminator: ReadonlyUint8Array;
|
|
579
|
+
agent: Address;
|
|
580
|
+
owner: Address;
|
|
581
|
+
title: string;
|
|
582
|
+
description: string;
|
|
583
|
+
price: bigint;
|
|
584
|
+
tokenMint: Address;
|
|
585
|
+
serviceType: string;
|
|
586
|
+
paymentToken: Address;
|
|
587
|
+
estimatedDelivery: bigint;
|
|
588
|
+
tags: Array<string>;
|
|
589
|
+
isActive: boolean;
|
|
590
|
+
totalOrders: number;
|
|
591
|
+
rating: number;
|
|
592
|
+
createdAt: bigint;
|
|
593
|
+
updatedAt: bigint;
|
|
594
|
+
transferHook: Option<Address>;
|
|
595
|
+
bump: number;
|
|
596
|
+
};
|
|
597
|
+
|
|
598
|
+
/**
|
|
599
|
+
* This code was AUTOGENERATED using the codama library.
|
|
600
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
601
|
+
* to add features, then rerun codama to update it.
|
|
602
|
+
*
|
|
603
|
+
* @see https://github.com/codama-idl/codama
|
|
604
|
+
*/
|
|
605
|
+
|
|
606
|
+
type ServicePurchase = {
|
|
607
|
+
discriminator: ReadonlyUint8Array;
|
|
608
|
+
customer: Address;
|
|
609
|
+
agent: Address;
|
|
610
|
+
listing: Address;
|
|
611
|
+
listingId: bigint;
|
|
612
|
+
quantity: number;
|
|
613
|
+
requirements: Array<string>;
|
|
614
|
+
customInstructions: string;
|
|
615
|
+
deadline: bigint;
|
|
616
|
+
paymentAmount: bigint;
|
|
617
|
+
paymentToken: Address;
|
|
618
|
+
status: PurchaseStatus;
|
|
619
|
+
purchasedAt: bigint;
|
|
620
|
+
updatedAt: bigint;
|
|
621
|
+
transferHookApplied: boolean;
|
|
622
|
+
bump: number;
|
|
623
|
+
};
|
|
624
|
+
|
|
625
|
+
/**
|
|
626
|
+
* This code was AUTOGENERATED using the codama library.
|
|
627
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
628
|
+
* to add features, then rerun codama to update it.
|
|
629
|
+
*
|
|
630
|
+
* @see https://github.com/codama-idl/codama
|
|
631
|
+
*/
|
|
632
|
+
|
|
633
|
+
declare const GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS: Address<"GssMyhkQPePLzByJsJadbQePZc6GtzGi22aQqW5opvUX">;
|
|
634
|
+
|
|
635
|
+
/**
|
|
636
|
+
* This code was AUTOGENERATED using the codama library.
|
|
637
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
638
|
+
* to add features, then rerun codama to update it.
|
|
639
|
+
*
|
|
640
|
+
* @see https://github.com/codama-idl/codama
|
|
641
|
+
*/
|
|
642
|
+
|
|
643
|
+
type AcceptJobApplicationInstruction<TProgram extends string = typeof GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS, TAccountJobContract extends string | AccountMeta<string> = string, TAccountJobPosting extends string | AccountMeta<string> = string, TAccountJobApplication extends string | AccountMeta<string> = string, TAccountEmployer extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
644
|
+
TAccountJobContract extends string ? WritableAccount<TAccountJobContract> : TAccountJobContract,
|
|
645
|
+
TAccountJobPosting extends string ? WritableAccount<TAccountJobPosting> : TAccountJobPosting,
|
|
646
|
+
TAccountJobApplication extends string ? WritableAccount<TAccountJobApplication> : TAccountJobApplication,
|
|
647
|
+
TAccountEmployer extends string ? WritableSignerAccount<TAccountEmployer> & AccountSignerMeta<TAccountEmployer> : TAccountEmployer,
|
|
648
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
649
|
+
...TRemainingAccounts
|
|
650
|
+
]>;
|
|
651
|
+
|
|
652
|
+
/**
|
|
653
|
+
* This code was AUTOGENERATED using the codama library.
|
|
654
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
655
|
+
* to add features, then rerun codama to update it.
|
|
656
|
+
*
|
|
657
|
+
* @see https://github.com/codama-idl/codama
|
|
658
|
+
*/
|
|
659
|
+
|
|
660
|
+
type ApplyToJobInstruction<TProgram extends string = typeof GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS, TAccountJobApplication extends string | AccountMeta<string> = string, TAccountJobPosting extends string | AccountMeta<string> = string, TAccountAgent extends string | AccountMeta<string> = string, TAccountAgentOwner extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
661
|
+
TAccountJobApplication extends string ? WritableAccount<TAccountJobApplication> : TAccountJobApplication,
|
|
662
|
+
TAccountJobPosting extends string ? WritableAccount<TAccountJobPosting> : TAccountJobPosting,
|
|
663
|
+
TAccountAgent extends string ? ReadonlyAccount<TAccountAgent> : TAccountAgent,
|
|
664
|
+
TAccountAgentOwner extends string ? WritableSignerAccount<TAccountAgentOwner> & AccountSignerMeta<TAccountAgentOwner> : TAccountAgentOwner,
|
|
665
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
666
|
+
...TRemainingAccounts
|
|
667
|
+
]>;
|
|
668
|
+
|
|
669
|
+
/**
|
|
670
|
+
* This code was AUTOGENERATED using the codama library.
|
|
671
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
672
|
+
* to add features, then rerun codama to update it.
|
|
673
|
+
*
|
|
674
|
+
* @see https://github.com/codama-idl/codama
|
|
675
|
+
*/
|
|
676
|
+
|
|
677
|
+
type ApproveExtensionInstruction<TProgram extends string = typeof GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS, TAccountExtension extends string | AccountMeta<string> = string, TAccountAuthority extends string | AccountMeta<string> = string, TAccountClock extends string | AccountMeta<string> = 'SysvarC1ock11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
678
|
+
TAccountExtension extends string ? WritableAccount<TAccountExtension> : TAccountExtension,
|
|
679
|
+
TAccountAuthority extends string ? ReadonlySignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
680
|
+
TAccountClock extends string ? ReadonlyAccount<TAccountClock> : TAccountClock,
|
|
681
|
+
...TRemainingAccounts
|
|
682
|
+
]>;
|
|
683
|
+
|
|
684
|
+
/**
|
|
685
|
+
* This code was AUTOGENERATED using the codama library.
|
|
686
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
687
|
+
* to add features, then rerun codama to update it.
|
|
688
|
+
*
|
|
689
|
+
* @see https://github.com/codama-idl/codama
|
|
690
|
+
*/
|
|
691
|
+
|
|
692
|
+
type CastVoteInstruction<TProgram extends string = typeof GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS, TAccountProposal extends string | AccountMeta<string> = string, TAccountVoter extends string | AccountMeta<string> = string, TAccountVoterTokenAccount extends string | AccountMeta<string> = string, TAccountDelegateTokenAccount extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
693
|
+
TAccountProposal extends string ? WritableAccount<TAccountProposal> : TAccountProposal,
|
|
694
|
+
TAccountVoter extends string ? WritableSignerAccount<TAccountVoter> & AccountSignerMeta<TAccountVoter> : TAccountVoter,
|
|
695
|
+
TAccountVoterTokenAccount extends string ? ReadonlyAccount<TAccountVoterTokenAccount> : TAccountVoterTokenAccount,
|
|
696
|
+
TAccountDelegateTokenAccount extends string ? ReadonlyAccount<TAccountDelegateTokenAccount> : TAccountDelegateTokenAccount,
|
|
697
|
+
...TRemainingAccounts
|
|
698
|
+
]>;
|
|
699
|
+
|
|
700
|
+
/**
|
|
701
|
+
* This code was AUTOGENERATED using the codama library.
|
|
702
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
703
|
+
* to add features, then rerun codama to update it.
|
|
704
|
+
*
|
|
705
|
+
* @see https://github.com/codama-idl/codama
|
|
706
|
+
*/
|
|
707
|
+
|
|
708
|
+
type CreateJobPostingInstruction<TProgram extends string = typeof GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS, TAccountJobPosting extends string | AccountMeta<string> = string, TAccountEmployer extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
709
|
+
TAccountJobPosting extends string ? WritableAccount<TAccountJobPosting> : TAccountJobPosting,
|
|
710
|
+
TAccountEmployer extends string ? WritableSignerAccount<TAccountEmployer> & AccountSignerMeta<TAccountEmployer> : TAccountEmployer,
|
|
711
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
712
|
+
...TRemainingAccounts
|
|
713
|
+
]>;
|
|
714
|
+
|
|
715
|
+
/**
|
|
716
|
+
* This code was AUTOGENERATED using the codama library.
|
|
717
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
718
|
+
* to add features, then rerun codama to update it.
|
|
719
|
+
*
|
|
720
|
+
* @see https://github.com/codama-idl/codama
|
|
721
|
+
*/
|
|
722
|
+
|
|
723
|
+
type CreateServiceAuctionInstruction<TProgram extends string = typeof GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS, TAccountAuction extends string | AccountMeta<string> = string, TAccountAgent extends string | AccountMeta<string> = string, TAccountUserRegistry extends string | AccountMeta<string> = string, TAccountCreator extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TAccountClock extends string | AccountMeta<string> = 'SysvarC1ock11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
724
|
+
TAccountAuction extends string ? WritableAccount<TAccountAuction> : TAccountAuction,
|
|
725
|
+
TAccountAgent extends string ? ReadonlyAccount<TAccountAgent> : TAccountAgent,
|
|
726
|
+
TAccountUserRegistry extends string ? ReadonlyAccount<TAccountUserRegistry> : TAccountUserRegistry,
|
|
727
|
+
TAccountCreator extends string ? WritableSignerAccount<TAccountCreator> & AccountSignerMeta<TAccountCreator> : TAccountCreator,
|
|
728
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
729
|
+
TAccountClock extends string ? ReadonlyAccount<TAccountClock> : TAccountClock,
|
|
730
|
+
...TRemainingAccounts
|
|
731
|
+
]>;
|
|
732
|
+
|
|
733
|
+
/**
|
|
734
|
+
* This code was AUTOGENERATED using the codama library.
|
|
735
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
736
|
+
* to add features, then rerun codama to update it.
|
|
737
|
+
*
|
|
738
|
+
* @see https://github.com/codama-idl/codama
|
|
739
|
+
*/
|
|
740
|
+
|
|
741
|
+
type CreateServiceListingInstruction<TProgram extends string = typeof GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS, TAccountServiceListing extends string | AccountMeta<string> = string, TAccountAgent extends string | AccountMeta<string> = string, TAccountUserRegistry extends string | AccountMeta<string> = string, TAccountCreator extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TAccountClock extends string | AccountMeta<string> = 'SysvarC1ock11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
742
|
+
TAccountServiceListing extends string ? WritableAccount<TAccountServiceListing> : TAccountServiceListing,
|
|
743
|
+
TAccountAgent extends string ? ReadonlyAccount<TAccountAgent> : TAccountAgent,
|
|
744
|
+
TAccountUserRegistry extends string ? WritableAccount<TAccountUserRegistry> : TAccountUserRegistry,
|
|
745
|
+
TAccountCreator extends string ? WritableSignerAccount<TAccountCreator> & AccountSignerMeta<TAccountCreator> : TAccountCreator,
|
|
746
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
747
|
+
TAccountClock extends string ? ReadonlyAccount<TAccountClock> : TAccountClock,
|
|
748
|
+
...TRemainingAccounts
|
|
749
|
+
]>;
|
|
750
|
+
|
|
751
|
+
/**
|
|
752
|
+
* This code was AUTOGENERATED using the codama library.
|
|
753
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
754
|
+
* to add features, then rerun codama to update it.
|
|
755
|
+
*
|
|
756
|
+
* @see https://github.com/codama-idl/codama
|
|
757
|
+
*/
|
|
758
|
+
|
|
759
|
+
type CreateToken2022MintInstruction<TProgram extends string = typeof GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS, TAccountAuthority extends string | AccountMeta<string> = string, TAccountAgent extends string | AccountMeta<string> = string, TAccountMint extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb', TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TAccountRent extends string | AccountMeta<string> = 'SysvarRent111111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
760
|
+
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
761
|
+
TAccountAgent extends string ? ReadonlyAccount<TAccountAgent> : TAccountAgent,
|
|
762
|
+
TAccountMint extends string ? WritableSignerAccount<TAccountMint> & AccountSignerMeta<TAccountMint> : TAccountMint,
|
|
763
|
+
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
764
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
765
|
+
TAccountRent extends string ? ReadonlyAccount<TAccountRent> : TAccountRent,
|
|
766
|
+
...TRemainingAccounts
|
|
767
|
+
]>;
|
|
768
|
+
|
|
769
|
+
/**
|
|
770
|
+
* This code was AUTOGENERATED using the codama library.
|
|
771
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
772
|
+
* to add features, then rerun codama to update it.
|
|
773
|
+
*
|
|
774
|
+
* @see https://github.com/codama-idl/codama
|
|
775
|
+
*/
|
|
776
|
+
|
|
777
|
+
type DelegateVoteInstruction<TProgram extends string = typeof GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS, TAccountProposal extends string | AccountMeta<string> = string, TAccountDelegator extends string | AccountMeta<string> = string, TAccountDelegate extends string | AccountMeta<string> = string, TAccountDelegatorTokenAccount extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
778
|
+
TAccountProposal extends string ? WritableAccount<TAccountProposal> : TAccountProposal,
|
|
779
|
+
TAccountDelegator extends string ? WritableSignerAccount<TAccountDelegator> & AccountSignerMeta<TAccountDelegator> : TAccountDelegator,
|
|
780
|
+
TAccountDelegate extends string ? ReadonlyAccount<TAccountDelegate> : TAccountDelegate,
|
|
781
|
+
TAccountDelegatorTokenAccount extends string ? ReadonlyAccount<TAccountDelegatorTokenAccount> : TAccountDelegatorTokenAccount,
|
|
782
|
+
...TRemainingAccounts
|
|
783
|
+
]>;
|
|
784
|
+
|
|
785
|
+
/**
|
|
786
|
+
* This code was AUTOGENERATED using the codama library.
|
|
787
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
788
|
+
* to add features, then rerun codama to update it.
|
|
789
|
+
*
|
|
790
|
+
* @see https://github.com/codama-idl/codama
|
|
791
|
+
*/
|
|
792
|
+
|
|
793
|
+
type ExecuteProposalInstruction<TProgram extends string = typeof GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS, TAccountProposal extends string | AccountMeta<string> = string, TAccountExecutor extends string | AccountMeta<string> = string, TAccountTargetProgram extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
794
|
+
TAccountProposal extends string ? WritableAccount<TAccountProposal> : TAccountProposal,
|
|
795
|
+
TAccountExecutor extends string ? WritableSignerAccount<TAccountExecutor> & AccountSignerMeta<TAccountExecutor> : TAccountExecutor,
|
|
796
|
+
TAccountTargetProgram extends string ? ReadonlyAccount<TAccountTargetProgram> : TAccountTargetProgram,
|
|
797
|
+
...TRemainingAccounts
|
|
798
|
+
]>;
|
|
799
|
+
|
|
800
|
+
/**
|
|
801
|
+
* This code was AUTOGENERATED using the codama library.
|
|
802
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
803
|
+
* to add features, then rerun codama to update it.
|
|
804
|
+
*
|
|
805
|
+
* @see https://github.com/codama-idl/codama
|
|
806
|
+
*/
|
|
807
|
+
|
|
808
|
+
type FinalizeAuctionInstruction<TProgram extends string = typeof GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS, TAccountAuction extends string | AccountMeta<string> = string, TAccountAuthority extends string | AccountMeta<string> = string, TAccountClock extends string | AccountMeta<string> = 'SysvarC1ock11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
809
|
+
TAccountAuction extends string ? WritableAccount<TAccountAuction> : TAccountAuction,
|
|
810
|
+
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
811
|
+
TAccountClock extends string ? ReadonlyAccount<TAccountClock> : TAccountClock,
|
|
812
|
+
...TRemainingAccounts
|
|
813
|
+
]>;
|
|
814
|
+
|
|
815
|
+
/**
|
|
816
|
+
* This code was AUTOGENERATED using the codama library.
|
|
817
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
818
|
+
* to add features, then rerun codama to update it.
|
|
819
|
+
*
|
|
820
|
+
* @see https://github.com/codama-idl/codama
|
|
821
|
+
*/
|
|
822
|
+
|
|
823
|
+
type InitializeConfidentialTransferMintInstruction<TProgram extends string = typeof GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS, TAccountAuthority extends string | AccountMeta<string> = string, TAccountMint extends string | AccountMeta<string> = string, TAccountAgent extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
824
|
+
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
825
|
+
TAccountMint extends string ? WritableAccount<TAccountMint> : TAccountMint,
|
|
826
|
+
TAccountAgent extends string ? ReadonlyAccount<TAccountAgent> : TAccountAgent,
|
|
827
|
+
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
828
|
+
...TRemainingAccounts
|
|
829
|
+
]>;
|
|
830
|
+
|
|
831
|
+
/**
|
|
832
|
+
* This code was AUTOGENERATED using the codama library.
|
|
833
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
834
|
+
* to add features, then rerun codama to update it.
|
|
835
|
+
*
|
|
836
|
+
* @see https://github.com/codama-idl/codama
|
|
837
|
+
*/
|
|
838
|
+
|
|
839
|
+
type InitializeDefaultAccountStateInstruction<TProgram extends string = typeof GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS, TAccountAuthority extends string | AccountMeta<string> = string, TAccountMint extends string | AccountMeta<string> = string, TAccountAgent extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
840
|
+
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
841
|
+
TAccountMint extends string ? WritableAccount<TAccountMint> : TAccountMint,
|
|
842
|
+
TAccountAgent extends string ? ReadonlyAccount<TAccountAgent> : TAccountAgent,
|
|
843
|
+
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
844
|
+
...TRemainingAccounts
|
|
845
|
+
]>;
|
|
846
|
+
|
|
847
|
+
/**
|
|
848
|
+
* This code was AUTOGENERATED using the codama library.
|
|
849
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
850
|
+
* to add features, then rerun codama to update it.
|
|
851
|
+
*
|
|
852
|
+
* @see https://github.com/codama-idl/codama
|
|
853
|
+
*/
|
|
854
|
+
|
|
855
|
+
type InitializeGovernanceProposalInstruction<TProgram extends string = typeof GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS, TAccountProposal extends string | AccountMeta<string> = string, TAccountProposer extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
856
|
+
TAccountProposal extends string ? WritableAccount<TAccountProposal> : TAccountProposal,
|
|
857
|
+
TAccountProposer extends string ? WritableSignerAccount<TAccountProposer> & AccountSignerMeta<TAccountProposer> : TAccountProposer,
|
|
858
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
859
|
+
...TRemainingAccounts
|
|
860
|
+
]>;
|
|
861
|
+
|
|
862
|
+
/**
|
|
863
|
+
* This code was AUTOGENERATED using the codama library.
|
|
864
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
865
|
+
* to add features, then rerun codama to update it.
|
|
866
|
+
*
|
|
867
|
+
* @see https://github.com/codama-idl/codama
|
|
868
|
+
*/
|
|
869
|
+
|
|
870
|
+
type InitializeInterestBearingConfigInstruction<TProgram extends string = typeof GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS, TAccountAuthority extends string | AccountMeta<string> = string, TAccountMint extends string | AccountMeta<string> = string, TAccountAgent extends string | AccountMeta<string> = string, TAccountRateAuthority extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
871
|
+
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
872
|
+
TAccountMint extends string ? WritableAccount<TAccountMint> : TAccountMint,
|
|
873
|
+
TAccountAgent extends string ? ReadonlyAccount<TAccountAgent> : TAccountAgent,
|
|
874
|
+
TAccountRateAuthority extends string ? ReadonlyAccount<TAccountRateAuthority> : TAccountRateAuthority,
|
|
875
|
+
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
876
|
+
...TRemainingAccounts
|
|
877
|
+
]>;
|
|
878
|
+
|
|
879
|
+
/**
|
|
880
|
+
* This code was AUTOGENERATED using the codama library.
|
|
881
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
882
|
+
* to add features, then rerun codama to update it.
|
|
883
|
+
*
|
|
884
|
+
* @see https://github.com/codama-idl/codama
|
|
885
|
+
*/
|
|
886
|
+
|
|
887
|
+
type InitializeMintCloseAuthorityInstruction<TProgram extends string = typeof GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS, TAccountAuthority extends string | AccountMeta<string> = string, TAccountMint extends string | AccountMeta<string> = string, TAccountAgent extends string | AccountMeta<string> = string, TAccountCloseAuthority extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
888
|
+
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
889
|
+
TAccountMint extends string ? WritableAccount<TAccountMint> : TAccountMint,
|
|
890
|
+
TAccountAgent extends string ? ReadonlyAccount<TAccountAgent> : TAccountAgent,
|
|
891
|
+
TAccountCloseAuthority extends string ? ReadonlyAccount<TAccountCloseAuthority> : TAccountCloseAuthority,
|
|
892
|
+
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
893
|
+
...TRemainingAccounts
|
|
894
|
+
]>;
|
|
895
|
+
|
|
896
|
+
/**
|
|
897
|
+
* This code was AUTOGENERATED using the codama library.
|
|
898
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
899
|
+
* to add features, then rerun codama to update it.
|
|
900
|
+
*
|
|
901
|
+
* @see https://github.com/codama-idl/codama
|
|
902
|
+
*/
|
|
903
|
+
|
|
904
|
+
type InitializeTransferFeeConfigInstruction<TProgram extends string = typeof GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS, TAccountAuthority extends string | AccountMeta<string> = string, TAccountMint extends string | AccountMeta<string> = string, TAccountAgent extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
905
|
+
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
906
|
+
TAccountMint extends string ? WritableAccount<TAccountMint> : TAccountMint,
|
|
907
|
+
TAccountAgent extends string ? ReadonlyAccount<TAccountAgent> : TAccountAgent,
|
|
908
|
+
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
909
|
+
...TRemainingAccounts
|
|
910
|
+
]>;
|
|
911
|
+
|
|
912
|
+
/**
|
|
913
|
+
* This code was AUTOGENERATED using the codama library.
|
|
914
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
915
|
+
* to add features, then rerun codama to update it.
|
|
916
|
+
*
|
|
917
|
+
* @see https://github.com/codama-idl/codama
|
|
918
|
+
*/
|
|
919
|
+
|
|
920
|
+
type PlaceAuctionBidInstruction<TProgram extends string = typeof GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS, TAccountAuction extends string | AccountMeta<string> = string, TAccountUserRegistry extends string | AccountMeta<string> = string, TAccountBidder extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TAccountClock extends string | AccountMeta<string> = 'SysvarC1ock11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
921
|
+
TAccountAuction extends string ? WritableAccount<TAccountAuction> : TAccountAuction,
|
|
922
|
+
TAccountUserRegistry extends string ? ReadonlyAccount<TAccountUserRegistry> : TAccountUserRegistry,
|
|
923
|
+
TAccountBidder extends string ? WritableSignerAccount<TAccountBidder> & AccountSignerMeta<TAccountBidder> : TAccountBidder,
|
|
924
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
925
|
+
TAccountClock extends string ? ReadonlyAccount<TAccountClock> : TAccountClock,
|
|
926
|
+
...TRemainingAccounts
|
|
927
|
+
]>;
|
|
928
|
+
|
|
929
|
+
/**
|
|
930
|
+
* This code was AUTOGENERATED using the codama library.
|
|
931
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
932
|
+
* to add features, then rerun codama to update it.
|
|
933
|
+
*
|
|
934
|
+
* @see https://github.com/codama-idl/codama
|
|
935
|
+
*/
|
|
936
|
+
|
|
937
|
+
type PurchaseServiceInstruction<TProgram extends string = typeof GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS, TAccountServicePurchase extends string | AccountMeta<string> = string, TAccountServiceListing extends string | AccountMeta<string> = string, TAccountBuyer extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
938
|
+
TAccountServicePurchase extends string ? WritableAccount<TAccountServicePurchase> : TAccountServicePurchase,
|
|
939
|
+
TAccountServiceListing extends string ? WritableAccount<TAccountServiceListing> : TAccountServiceListing,
|
|
940
|
+
TAccountBuyer extends string ? WritableSignerAccount<TAccountBuyer> & AccountSignerMeta<TAccountBuyer> : TAccountBuyer,
|
|
941
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
942
|
+
...TRemainingAccounts
|
|
943
|
+
]>;
|
|
944
|
+
|
|
945
|
+
/**
|
|
946
|
+
* This code was AUTOGENERATED using the codama library.
|
|
947
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
948
|
+
* to add features, then rerun codama to update it.
|
|
949
|
+
*
|
|
950
|
+
* @see https://github.com/codama-idl/codama
|
|
951
|
+
*/
|
|
952
|
+
|
|
953
|
+
type TallyVotesInstruction<TProgram extends string = typeof GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS, TAccountProposal extends string | AccountMeta<string> = string, TAccountAuthority extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
954
|
+
TAccountProposal extends string ? WritableAccount<TAccountProposal> : TAccountProposal,
|
|
955
|
+
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
956
|
+
...TRemainingAccounts
|
|
957
|
+
]>;
|
|
958
|
+
|
|
959
|
+
/**
|
|
960
|
+
* This code was AUTOGENERATED using the codama library.
|
|
961
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
962
|
+
* to add features, then rerun codama to update it.
|
|
963
|
+
*
|
|
964
|
+
* @see https://github.com/codama-idl/codama
|
|
965
|
+
*/
|
|
966
|
+
|
|
967
|
+
type UpdateAgentServiceInstruction<TProgram extends string = typeof GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS, TAccountAgent extends string | AccountMeta<string> = string, TAccountOwner extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
968
|
+
TAccountAgent extends string ? WritableAccount<TAccountAgent> : TAccountAgent,
|
|
969
|
+
TAccountOwner extends string ? WritableSignerAccount<TAccountOwner> & AccountSignerMeta<TAccountOwner> : TAccountOwner,
|
|
970
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
971
|
+
...TRemainingAccounts
|
|
972
|
+
]>;
|
|
3
973
|
|
|
4
974
|
/**
|
|
5
975
|
* IPFS configuration and types for GhostSpeak SDK
|
|
@@ -24,72 +994,829 @@ interface IPFSProviderConfig {
|
|
|
24
994
|
timeout?: number;
|
|
25
995
|
}
|
|
26
996
|
/**
|
|
27
|
-
* IPFS client configuration
|
|
997
|
+
* IPFS client configuration
|
|
998
|
+
*/
|
|
999
|
+
interface IPFSConfig {
|
|
1000
|
+
/** Primary provider */
|
|
1001
|
+
provider: IPFSProviderConfig;
|
|
1002
|
+
/** Fallback providers */
|
|
1003
|
+
fallbackProviders?: IPFSProviderConfig[];
|
|
1004
|
+
/** Default IPFS gateway for retrieving content */
|
|
1005
|
+
gateway?: string;
|
|
1006
|
+
/** Additional gateways for redundancy */
|
|
1007
|
+
gateways?: string[];
|
|
1008
|
+
/** Whether to automatically pin uploaded content */
|
|
1009
|
+
autoPinning?: boolean;
|
|
1010
|
+
/** Content size threshold for IPFS (bytes) - content above this will use IPFS */
|
|
1011
|
+
sizeThreshold?: number;
|
|
1012
|
+
/** Maximum retry attempts for failed operations */
|
|
1013
|
+
maxRetries?: number;
|
|
1014
|
+
/** Retry delay in milliseconds */
|
|
1015
|
+
retryDelay?: number;
|
|
1016
|
+
/** Enable caching of IPFS content */
|
|
1017
|
+
enableCache?: boolean;
|
|
1018
|
+
/** Cache TTL in milliseconds */
|
|
1019
|
+
cacheTTL?: number;
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1022
|
+
type RpcApi = Rpc<GetLatestBlockhashApi & SendTransactionApi & GetAccountInfoApi & SimulateTransactionApi & GetFeeForMessageApi & GetProgramAccountsApi>;
|
|
1023
|
+
type ExtendedRpcApi = RpcApi & Rpc<GetEpochInfoApi & GetSignatureStatusesApi & GetMultipleAccountsApi>;
|
|
1024
|
+
type RpcSubscriptionApi = RpcSubscriptions<SignatureNotificationsApi & SlotNotificationsApi>;
|
|
1025
|
+
type Commitment = 'processed' | 'confirmed' | 'finalized';
|
|
1026
|
+
|
|
1027
|
+
interface GhostSpeakConfig {
|
|
1028
|
+
programId?: Address$1;
|
|
1029
|
+
rpc: ExtendedRpcApi;
|
|
1030
|
+
rpcSubscriptions?: RpcSubscriptionApi;
|
|
1031
|
+
commitment?: Commitment;
|
|
1032
|
+
transactionTimeout?: number;
|
|
1033
|
+
defaultFeePayer?: Address$1;
|
|
1034
|
+
retryConfig?: RetryConfig;
|
|
1035
|
+
cluster?: 'mainnet-beta' | 'devnet' | 'testnet' | 'localnet';
|
|
1036
|
+
rpcEndpoint?: string;
|
|
1037
|
+
wsEndpoint?: string;
|
|
1038
|
+
/** Token 2022 configuration options */
|
|
1039
|
+
token2022?: Token2022Config;
|
|
1040
|
+
/** IPFS configuration for large content storage */
|
|
1041
|
+
ipfsConfig?: IPFSConfig;
|
|
1042
|
+
}
|
|
1043
|
+
interface Token2022Config {
|
|
1044
|
+
/** Enable Token 2022 features by default */
|
|
1045
|
+
enabled?: boolean;
|
|
1046
|
+
/** Default behavior for transfer fees */
|
|
1047
|
+
defaultExpectTransferFees?: boolean;
|
|
1048
|
+
/** Maximum transfer fee slippage (basis points) */
|
|
1049
|
+
maxFeeSlippageBasisPoints?: number;
|
|
1050
|
+
/** Enable confidential transfers by default */
|
|
1051
|
+
enableConfidentialTransfers?: boolean;
|
|
1052
|
+
/** Default Token 2022 program address (for custom deployments) */
|
|
1053
|
+
programAddress?: Address$1;
|
|
1054
|
+
/** Cache token program detection results for this many seconds */
|
|
1055
|
+
tokenProgramCacheTtl?: number;
|
|
1056
|
+
}
|
|
1057
|
+
interface RetryConfig {
|
|
1058
|
+
maxRetries?: number;
|
|
1059
|
+
baseDelay?: number;
|
|
1060
|
+
maxDelay?: number;
|
|
1061
|
+
backoffMultiplier?: number;
|
|
1062
|
+
retryableErrors?: string[];
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1065
|
+
/**
|
|
1066
|
+
* Developer Tools for GhostSpeak SDK
|
|
1067
|
+
*
|
|
1068
|
+
* Provides debugging, inspection, and development utilities
|
|
1069
|
+
*/
|
|
1070
|
+
|
|
1071
|
+
/**
|
|
1072
|
+
* Transaction analysis result
|
|
1073
|
+
*/
|
|
1074
|
+
interface TransactionAnalysis {
|
|
1075
|
+
instructions: InstructionAnalysis[];
|
|
1076
|
+
totalAccounts: number;
|
|
1077
|
+
signerCount: number;
|
|
1078
|
+
writableAccounts: Address$1[];
|
|
1079
|
+
readonlyAccounts: Address$1[];
|
|
1080
|
+
estimatedSize: number;
|
|
1081
|
+
estimatedComputeUnits: bigint;
|
|
1082
|
+
estimatedFee: bigint;
|
|
1083
|
+
warnings: string[];
|
|
1084
|
+
}
|
|
1085
|
+
/**
|
|
1086
|
+
* Individual instruction analysis
|
|
1087
|
+
*/
|
|
1088
|
+
interface InstructionAnalysis {
|
|
1089
|
+
index: number;
|
|
1090
|
+
programId: Address$1;
|
|
1091
|
+
accountCount: number;
|
|
1092
|
+
dataSize: number;
|
|
1093
|
+
humanReadable: string;
|
|
1094
|
+
accounts: AccountInfo[];
|
|
1095
|
+
}
|
|
1096
|
+
/**
|
|
1097
|
+
* Account information in instruction
|
|
1098
|
+
*/
|
|
1099
|
+
interface AccountInfo {
|
|
1100
|
+
address: Address$1;
|
|
1101
|
+
isWritable: boolean;
|
|
1102
|
+
isSigner: boolean;
|
|
1103
|
+
role: AccountRole;
|
|
1104
|
+
}
|
|
1105
|
+
|
|
1106
|
+
/**
|
|
1107
|
+
* Type for instruction-like objects from generated code
|
|
1108
|
+
*/
|
|
1109
|
+
type InstructionLike = {
|
|
1110
|
+
programAddress: Address$1;
|
|
1111
|
+
accounts?: readonly unknown[];
|
|
1112
|
+
data?: unknown;
|
|
1113
|
+
};
|
|
1114
|
+
/**
|
|
1115
|
+
* Unified instruction builder that eliminates duplication across all instruction classes.
|
|
1116
|
+
* This is the single source of truth for instruction execution patterns.
|
|
1117
|
+
*/
|
|
1118
|
+
declare class InstructionBuilder {
|
|
1119
|
+
private rpcClient;
|
|
1120
|
+
private config;
|
|
1121
|
+
private devTools;
|
|
1122
|
+
private debugMode;
|
|
1123
|
+
constructor(config: GhostSpeakConfig);
|
|
1124
|
+
/**
|
|
1125
|
+
* Execute a single instruction with unified error handling and transaction patterns
|
|
1126
|
+
*/
|
|
1127
|
+
execute<T = string>(instructionName: string, instructionGetter: () => Promise<InstructionLike> | InstructionLike, signers: TransactionSigner[], options?: {
|
|
1128
|
+
simulate?: boolean;
|
|
1129
|
+
returnDetails?: boolean;
|
|
1130
|
+
skipPreflight?: boolean;
|
|
1131
|
+
maxRetries?: number;
|
|
1132
|
+
}): Promise<T>;
|
|
1133
|
+
/**
|
|
1134
|
+
* Execute multiple instructions in a single transaction
|
|
1135
|
+
*/
|
|
1136
|
+
executeBatch<T = string>(batchName: string, instructionGetters: (() => Promise<InstructionLike> | InstructionLike)[], signers: TransactionSigner[], options?: {
|
|
1137
|
+
simulate?: boolean;
|
|
1138
|
+
returnDetails?: boolean;
|
|
1139
|
+
skipPreflight?: boolean;
|
|
1140
|
+
}): Promise<T>;
|
|
1141
|
+
/**
|
|
1142
|
+
* Get and decode account data with unified error handling
|
|
1143
|
+
*/
|
|
1144
|
+
getAccount<T>(address: Address$1, decoderImportName: string): Promise<T | null>;
|
|
1145
|
+
/**
|
|
1146
|
+
* Get multiple accounts with unified pattern
|
|
1147
|
+
*/
|
|
1148
|
+
getAccounts<T>(addresses: Address$1[], decoderImportName: string): Promise<(T | null)[]>;
|
|
1149
|
+
/**
|
|
1150
|
+
* Get program accounts with filters
|
|
1151
|
+
*/
|
|
1152
|
+
getProgramAccounts<T>(decoderImportName: string, filters?: ({
|
|
1153
|
+
dataSize: bigint;
|
|
1154
|
+
} | {
|
|
1155
|
+
memcmp: {
|
|
1156
|
+
offset: bigint;
|
|
1157
|
+
bytes: string;
|
|
1158
|
+
encoding?: 'base58' | 'base64';
|
|
1159
|
+
};
|
|
1160
|
+
})[]): Promise<{
|
|
1161
|
+
address: Address$1;
|
|
1162
|
+
data: T;
|
|
1163
|
+
}[]>;
|
|
1164
|
+
/**
|
|
1165
|
+
* Enable debug mode for next transaction
|
|
1166
|
+
*/
|
|
1167
|
+
enableDebug(): this;
|
|
1168
|
+
/**
|
|
1169
|
+
* Debug transaction - analyze without executing
|
|
1170
|
+
*/
|
|
1171
|
+
debug(instructionName: string, instructionGetters: (() => Promise<InstructionLike> | InstructionLike)[]): Promise<TransactionAnalysis>;
|
|
1172
|
+
/**
|
|
1173
|
+
* Get human-readable explanation of transaction
|
|
1174
|
+
*/
|
|
1175
|
+
explain(instructionName: string, instructionGetters: (() => Promise<InstructionLike> | InstructionLike)[]): Promise<string>;
|
|
1176
|
+
/**
|
|
1177
|
+
* Estimate transaction cost
|
|
1178
|
+
*/
|
|
1179
|
+
estimateCost(instructionGetters: (() => Promise<InstructionLike> | InstructionLike)[]): Promise<bigint>;
|
|
1180
|
+
private sendAndConfirm;
|
|
1181
|
+
private simulateInstruction;
|
|
1182
|
+
private simulateBatch;
|
|
1183
|
+
private estimateTransactionSize;
|
|
1184
|
+
private extractRawData;
|
|
1185
|
+
}
|
|
1186
|
+
|
|
1187
|
+
/**
|
|
1188
|
+
* Solana cluster types for URL generation
|
|
1189
|
+
*/
|
|
1190
|
+
type SolanaCluster = 'mainnet-beta' | 'devnet' | 'testnet' | 'localnet';
|
|
1191
|
+
/**
|
|
1192
|
+
* Transaction result with verification URLs
|
|
1193
|
+
*/
|
|
1194
|
+
interface TransactionResult {
|
|
1195
|
+
signature: string | Signature$1;
|
|
1196
|
+
cluster: SolanaCluster;
|
|
1197
|
+
urls: {
|
|
1198
|
+
solanaExplorer: string;
|
|
1199
|
+
solscan: string;
|
|
1200
|
+
solanaFM: string;
|
|
1201
|
+
xray: string;
|
|
1202
|
+
};
|
|
1203
|
+
commitment: Commitment;
|
|
1204
|
+
timestamp: number;
|
|
1205
|
+
}
|
|
1206
|
+
|
|
1207
|
+
type Signature = string;
|
|
1208
|
+
|
|
1209
|
+
/**
|
|
1210
|
+
* Base class for all instruction modules using the unified InstructionBuilder.
|
|
1211
|
+
* This replaces the old BaseInstructions class with a much simpler pattern.
|
|
1212
|
+
*/
|
|
1213
|
+
declare abstract class BaseModule {
|
|
1214
|
+
protected builder: InstructionBuilder;
|
|
1215
|
+
protected config: GhostSpeakConfig;
|
|
1216
|
+
private _debugMode;
|
|
1217
|
+
constructor(config: GhostSpeakConfig);
|
|
1218
|
+
/**
|
|
1219
|
+
* Enable debug mode for next operation
|
|
1220
|
+
*/
|
|
1221
|
+
debug(): this;
|
|
1222
|
+
/**
|
|
1223
|
+
* Execute a single instruction
|
|
1224
|
+
*/
|
|
1225
|
+
protected execute(instructionName: string, instructionGetter: () => Promise<IInstruction> | IInstruction, signers: TransactionSigner[]): Promise<string>;
|
|
1226
|
+
/**
|
|
1227
|
+
* Execute a single instruction with detailed result
|
|
1228
|
+
*/
|
|
1229
|
+
protected executeWithDetails(instructionName: string, instructionGetter: () => Promise<IInstruction> | IInstruction, signers: TransactionSigner[]): Promise<TransactionResult>;
|
|
1230
|
+
/**
|
|
1231
|
+
* Execute multiple instructions in a batch
|
|
1232
|
+
*/
|
|
1233
|
+
protected executeBatch(batchName: string, instructionGetters: (() => Promise<IInstruction> | IInstruction)[], signers: TransactionSigner[]): Promise<Signature>;
|
|
1234
|
+
/**
|
|
1235
|
+
* Simulate an instruction
|
|
1236
|
+
*/
|
|
1237
|
+
protected simulate(instructionName: string, instructionGetter: () => Promise<IInstruction> | IInstruction, signers: TransactionSigner[]): Promise<unknown>;
|
|
1238
|
+
/**
|
|
1239
|
+
* Simulate an instruction (public accessor)
|
|
1240
|
+
*/
|
|
1241
|
+
simulateInstruction(instructionName: string, instructionGetter: () => Promise<IInstruction> | IInstruction, signers: TransactionSigner[]): Promise<unknown>;
|
|
1242
|
+
/**
|
|
1243
|
+
* Estimate transaction cost
|
|
1244
|
+
*/
|
|
1245
|
+
protected estimateCost(instructionGetters: (() => Promise<IInstruction> | IInstruction)[]): Promise<bigint>;
|
|
1246
|
+
/**
|
|
1247
|
+
* Get cost estimation for an instruction
|
|
1248
|
+
*/
|
|
1249
|
+
getCost(instructionName: string, instructionGetter: () => Promise<IInstruction> | IInstruction): Promise<bigint>;
|
|
1250
|
+
/**
|
|
1251
|
+
* Get human-readable explanation
|
|
1252
|
+
*/
|
|
1253
|
+
explain(instructionName: string, instructionGetter: () => Promise<IInstruction> | IInstruction): Promise<string>;
|
|
1254
|
+
/**
|
|
1255
|
+
* Debug analyze without executing
|
|
1256
|
+
*/
|
|
1257
|
+
analyze(instructionName: string, instructionGetter: () => Promise<IInstruction> | IInstruction): Promise<unknown>;
|
|
1258
|
+
/**
|
|
1259
|
+
* Get decoded account
|
|
1260
|
+
*/
|
|
1261
|
+
protected getAccount<T>(address: Address$1, decoderImportName: string): Promise<T | null>;
|
|
1262
|
+
/**
|
|
1263
|
+
* Get multiple decoded accounts
|
|
1264
|
+
*/
|
|
1265
|
+
protected getAccounts<T>(addresses: Address$1[], decoderImportName: string): Promise<(T | null)[]>;
|
|
1266
|
+
/**
|
|
1267
|
+
* Get program accounts
|
|
1268
|
+
*/
|
|
1269
|
+
protected getProgramAccounts<T>(decoderImportName: string, filters?: ({
|
|
1270
|
+
dataSize: bigint;
|
|
1271
|
+
} | {
|
|
1272
|
+
memcmp: {
|
|
1273
|
+
offset: bigint;
|
|
1274
|
+
bytes: string;
|
|
1275
|
+
encoding?: 'base58' | 'base64';
|
|
1276
|
+
};
|
|
1277
|
+
})[]): Promise<{
|
|
1278
|
+
address: Address$1;
|
|
1279
|
+
data: T;
|
|
1280
|
+
}[]>;
|
|
1281
|
+
/**
|
|
1282
|
+
* Get program ID
|
|
1283
|
+
*/
|
|
1284
|
+
protected get programId(): Address$1;
|
|
1285
|
+
/**
|
|
1286
|
+
* Get program ID (public accessor)
|
|
1287
|
+
*/
|
|
1288
|
+
getProgramId(): Address$1;
|
|
1289
|
+
/**
|
|
1290
|
+
* Get commitment level
|
|
1291
|
+
*/
|
|
1292
|
+
protected get commitment(): Commitment;
|
|
1293
|
+
/**
|
|
1294
|
+
* Get commitment level (public accessor)
|
|
1295
|
+
*/
|
|
1296
|
+
getCommitment(): Commitment;
|
|
1297
|
+
}
|
|
1298
|
+
|
|
1299
|
+
/**
|
|
1300
|
+
* Marketplace management module
|
|
1301
|
+
*
|
|
1302
|
+
* Provides high-level access to marketplace operations including:
|
|
1303
|
+
* - Service listings and purchases
|
|
1304
|
+
* - Job postings and applications
|
|
1305
|
+
* - Service auctions and bidding
|
|
1306
|
+
* - Marketplace queries and filtering
|
|
1307
|
+
*/
|
|
1308
|
+
declare class MarketplaceModule extends BaseModule {
|
|
1309
|
+
/**
|
|
1310
|
+
* Get create service listing instruction
|
|
1311
|
+
*/
|
|
1312
|
+
getCreateServiceListingInstruction(params: {
|
|
1313
|
+
agent: Address$1;
|
|
1314
|
+
creator: TransactionSigner;
|
|
1315
|
+
title: string;
|
|
1316
|
+
description: string;
|
|
1317
|
+
price: bigint;
|
|
1318
|
+
tokenMint: Address$1;
|
|
1319
|
+
serviceType: string;
|
|
1320
|
+
paymentToken: Address$1;
|
|
1321
|
+
estimatedDelivery: number;
|
|
1322
|
+
tags: string[];
|
|
1323
|
+
listingId: string;
|
|
1324
|
+
}): Promise<CreateServiceListingInstruction<Address$1<"GssMyhkQPePLzByJsJadbQePZc6GtzGi22aQqW5opvUX">, string, string, string, string, string, string, []>>;
|
|
1325
|
+
/**
|
|
1326
|
+
* Get purchase service instruction
|
|
1327
|
+
*/
|
|
1328
|
+
getPurchaseServiceInstruction(params: {
|
|
1329
|
+
serviceListing: Address$1;
|
|
1330
|
+
servicePurchase: Address$1;
|
|
1331
|
+
buyer: TransactionSigner;
|
|
1332
|
+
listingId: number;
|
|
1333
|
+
quantity: number;
|
|
1334
|
+
requirements: string[];
|
|
1335
|
+
customInstructions: string;
|
|
1336
|
+
deadline: number;
|
|
1337
|
+
}): PurchaseServiceInstruction<Address$1<"GssMyhkQPePLzByJsJadbQePZc6GtzGi22aQqW5opvUX">, string, string, string, string, []>;
|
|
1338
|
+
/**
|
|
1339
|
+
* Get create job posting instruction
|
|
1340
|
+
*/
|
|
1341
|
+
getCreateJobPostingInstruction(params: {
|
|
1342
|
+
jobPosting?: Address$1;
|
|
1343
|
+
employer: TransactionSigner;
|
|
1344
|
+
title: string;
|
|
1345
|
+
description: string;
|
|
1346
|
+
requirements: string[];
|
|
1347
|
+
budget: number | bigint;
|
|
1348
|
+
deadline: number | bigint;
|
|
1349
|
+
skillsNeeded: string[];
|
|
1350
|
+
budgetMin: number | bigint;
|
|
1351
|
+
budgetMax: number | bigint;
|
|
1352
|
+
paymentToken: Address$1;
|
|
1353
|
+
jobType: string;
|
|
1354
|
+
experienceLevel: string;
|
|
1355
|
+
}): Promise<CreateJobPostingInstruction<Address$1<"GssMyhkQPePLzByJsJadbQePZc6GtzGi22aQqW5opvUX">, string, string, string, []>>;
|
|
1356
|
+
/**
|
|
1357
|
+
* Get apply to job instruction
|
|
1358
|
+
*/
|
|
1359
|
+
getApplyToJobInstruction(params: {
|
|
1360
|
+
jobApplication?: Address$1;
|
|
1361
|
+
jobPosting: Address$1;
|
|
1362
|
+
agent: Address$1;
|
|
1363
|
+
agentOwner: TransactionSigner;
|
|
1364
|
+
coverLetter: string;
|
|
1365
|
+
proposedPrice: number | bigint;
|
|
1366
|
+
estimatedDuration: number;
|
|
1367
|
+
proposedRate: number | bigint;
|
|
1368
|
+
estimatedDelivery: number | bigint;
|
|
1369
|
+
portfolioItems: string[];
|
|
1370
|
+
}): Promise<ApplyToJobInstruction<Address$1<"GssMyhkQPePLzByJsJadbQePZc6GtzGi22aQqW5opvUX">, string, string, string, string, string, []>>;
|
|
1371
|
+
/**
|
|
1372
|
+
* Get accept job application instruction
|
|
1373
|
+
*/
|
|
1374
|
+
getAcceptJobApplicationInstruction(params: {
|
|
1375
|
+
jobContract?: Address$1;
|
|
1376
|
+
jobPosting: Address$1;
|
|
1377
|
+
jobApplication: Address$1;
|
|
1378
|
+
employer: TransactionSigner;
|
|
1379
|
+
}): Promise<AcceptJobApplicationInstruction<Address$1<"GssMyhkQPePLzByJsJadbQePZc6GtzGi22aQqW5opvUX">, string, string, string, string, string, []>>;
|
|
1380
|
+
/**
|
|
1381
|
+
* Get create service auction instruction
|
|
1382
|
+
*/
|
|
1383
|
+
getCreateServiceAuctionInstruction(params: {
|
|
1384
|
+
auction?: Address$1;
|
|
1385
|
+
agent: Address$1;
|
|
1386
|
+
userRegistry: Address$1;
|
|
1387
|
+
creator: TransactionSigner;
|
|
1388
|
+
systemProgram?: Address$1;
|
|
1389
|
+
clock?: Address$1;
|
|
1390
|
+
auctionType: any;
|
|
1391
|
+
startingPrice: bigint;
|
|
1392
|
+
reservePrice: bigint;
|
|
1393
|
+
isReserveHidden: boolean;
|
|
1394
|
+
currentBid: bigint;
|
|
1395
|
+
currentBidder: Address$1 | null;
|
|
1396
|
+
auctionEndTime: bigint;
|
|
1397
|
+
minimumBidIncrement: bigint;
|
|
1398
|
+
totalBids: number;
|
|
1399
|
+
dutchConfig: any;
|
|
1400
|
+
}): Promise<CreateServiceAuctionInstruction<Address$1<"GssMyhkQPePLzByJsJadbQePZc6GtzGi22aQqW5opvUX">, string, string, string, string, string, string, []>>;
|
|
1401
|
+
/**
|
|
1402
|
+
* Get place auction bid instruction
|
|
1403
|
+
*/
|
|
1404
|
+
getPlaceAuctionBidInstruction(params: {
|
|
1405
|
+
auction: Address$1;
|
|
1406
|
+
userRegistry: Address$1;
|
|
1407
|
+
bidder: TransactionSigner;
|
|
1408
|
+
systemProgram?: Address$1;
|
|
1409
|
+
clock?: Address$1;
|
|
1410
|
+
bidAmount: bigint;
|
|
1411
|
+
}): PlaceAuctionBidInstruction<Address$1<"GssMyhkQPePLzByJsJadbQePZc6GtzGi22aQqW5opvUX">, string, string, string, string, string, []>;
|
|
1412
|
+
/**
|
|
1413
|
+
* Get finalize auction instruction
|
|
1414
|
+
*/
|
|
1415
|
+
getFinalizeAuctionInstruction(params: {
|
|
1416
|
+
auction: Address$1;
|
|
1417
|
+
authority: TransactionSigner;
|
|
1418
|
+
clock?: Address$1;
|
|
1419
|
+
}): FinalizeAuctionInstruction<Address$1<"GssMyhkQPePLzByJsJadbQePZc6GtzGi22aQqW5opvUX">, string, string, string, []>;
|
|
1420
|
+
/**
|
|
1421
|
+
* Get update agent service instruction
|
|
1422
|
+
*/
|
|
1423
|
+
getUpdateAgentServiceInstruction(params: {
|
|
1424
|
+
agent: Address$1;
|
|
1425
|
+
owner: TransactionSigner;
|
|
1426
|
+
systemProgram?: Address$1;
|
|
1427
|
+
agentPubkey: Address$1;
|
|
1428
|
+
serviceEndpoint: string;
|
|
1429
|
+
isActive: boolean;
|
|
1430
|
+
lastUpdated: bigint;
|
|
1431
|
+
metadataUri: string;
|
|
1432
|
+
capabilities: string[];
|
|
1433
|
+
}): UpdateAgentServiceInstruction<Address$1<"GssMyhkQPePLzByJsJadbQePZc6GtzGi22aQqW5opvUX">, string, string, string, []>;
|
|
1434
|
+
/**
|
|
1435
|
+
* Execute create service listing with convenience wrapper
|
|
1436
|
+
*/
|
|
1437
|
+
createServiceListing(params: {
|
|
1438
|
+
signer: TransactionSigner;
|
|
1439
|
+
agentAddress: Address$1;
|
|
1440
|
+
title: string;
|
|
1441
|
+
description: string;
|
|
1442
|
+
pricePerHour: bigint;
|
|
1443
|
+
category: string;
|
|
1444
|
+
capabilities: string[];
|
|
1445
|
+
}): Promise<string>;
|
|
1446
|
+
/**
|
|
1447
|
+
* Execute create job posting with convenience wrapper
|
|
1448
|
+
*/
|
|
1449
|
+
createJobPosting(params: {
|
|
1450
|
+
signer: TransactionSigner;
|
|
1451
|
+
title: string;
|
|
1452
|
+
description: string;
|
|
1453
|
+
budget: bigint;
|
|
1454
|
+
duration: number;
|
|
1455
|
+
requiredSkills: string[];
|
|
1456
|
+
category: string;
|
|
1457
|
+
}): Promise<string>;
|
|
1458
|
+
/**
|
|
1459
|
+
* Execute create service auction with convenience wrapper
|
|
1460
|
+
*/
|
|
1461
|
+
createServiceAuction(params: {
|
|
1462
|
+
signer: TransactionSigner;
|
|
1463
|
+
serviceListingAddress: Address$1;
|
|
1464
|
+
startingPrice: bigint;
|
|
1465
|
+
reservePrice: bigint;
|
|
1466
|
+
duration: number;
|
|
1467
|
+
auctionType: 'english' | 'dutch';
|
|
1468
|
+
}): Promise<string>;
|
|
1469
|
+
/**
|
|
1470
|
+
* Get service listing account
|
|
1471
|
+
*/
|
|
1472
|
+
getServiceListing(address: Address$1): Promise<ServiceListing | null>;
|
|
1473
|
+
/**
|
|
1474
|
+
* Get job posting account
|
|
1475
|
+
*/
|
|
1476
|
+
getJobPosting(address: Address$1): Promise<JobPosting | null>;
|
|
1477
|
+
/**
|
|
1478
|
+
* Get job application account
|
|
1479
|
+
*/
|
|
1480
|
+
getJobApplication(address: Address$1): Promise<JobApplication | null>;
|
|
1481
|
+
/**
|
|
1482
|
+
* Get auction account
|
|
1483
|
+
*/
|
|
1484
|
+
getAuction(address: Address$1): Promise<AuctionMarketplace | null>;
|
|
1485
|
+
/**
|
|
1486
|
+
* Get service purchase account
|
|
1487
|
+
*/
|
|
1488
|
+
getServicePurchase(address: Address$1): Promise<ServicePurchase | null>;
|
|
1489
|
+
/**
|
|
1490
|
+
* Get all service listings
|
|
1491
|
+
*/
|
|
1492
|
+
getAllServiceListings(): Promise<{
|
|
1493
|
+
address: Address$1;
|
|
1494
|
+
data: ServiceListing;
|
|
1495
|
+
}[]>;
|
|
1496
|
+
/**
|
|
1497
|
+
* Get service listings by provider
|
|
1498
|
+
*/
|
|
1499
|
+
getServiceListingsByProvider(provider: Address$1): Promise<{
|
|
1500
|
+
address: Address$1;
|
|
1501
|
+
data: ServiceListing;
|
|
1502
|
+
}[]>;
|
|
1503
|
+
/**
|
|
1504
|
+
* Get all job postings
|
|
1505
|
+
*/
|
|
1506
|
+
getAllJobPostings(): Promise<{
|
|
1507
|
+
address: Address$1;
|
|
1508
|
+
data: JobPosting;
|
|
1509
|
+
}[]>;
|
|
1510
|
+
/**
|
|
1511
|
+
* Get job postings by client
|
|
1512
|
+
*/
|
|
1513
|
+
getJobPostingsByClient(client: Address$1): Promise<{
|
|
1514
|
+
address: Address$1;
|
|
1515
|
+
data: JobPosting;
|
|
1516
|
+
}[]>;
|
|
1517
|
+
/**
|
|
1518
|
+
* Get applications for a job posting
|
|
1519
|
+
*/
|
|
1520
|
+
getJobApplications(jobPostingAddress: Address$1): Promise<{
|
|
1521
|
+
address: Address$1;
|
|
1522
|
+
data: JobApplication;
|
|
1523
|
+
}[]>;
|
|
1524
|
+
/**
|
|
1525
|
+
* Get all auctions
|
|
1526
|
+
*/
|
|
1527
|
+
getAllAuctions(): Promise<{
|
|
1528
|
+
address: Address$1;
|
|
1529
|
+
data: AuctionMarketplace;
|
|
1530
|
+
}[]>;
|
|
1531
|
+
private deriveJobPostingPda;
|
|
1532
|
+
private deriveAuctionPda;
|
|
1533
|
+
private get nativeMint();
|
|
1534
|
+
}
|
|
1535
|
+
|
|
1536
|
+
/**
|
|
1537
|
+
* Governance management module
|
|
1538
|
+
*
|
|
1539
|
+
* Provides high-level access to governance operations including:
|
|
1540
|
+
* - Proposal creation and management
|
|
1541
|
+
* - Voting and delegation
|
|
1542
|
+
* - Proposal execution
|
|
1543
|
+
* - Vote tallying and results
|
|
28
1544
|
*/
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
1545
|
+
declare class GovernanceModule extends BaseModule {
|
|
1546
|
+
/**
|
|
1547
|
+
* Get initialize governance proposal instruction
|
|
1548
|
+
*/
|
|
1549
|
+
getInitializeGovernanceProposalInstruction(params: {
|
|
1550
|
+
proposal?: Address$1;
|
|
1551
|
+
proposer: TransactionSigner;
|
|
1552
|
+
title: string;
|
|
1553
|
+
description: string;
|
|
1554
|
+
proposalType: any;
|
|
1555
|
+
executionParams: any;
|
|
1556
|
+
proposalId: number | bigint;
|
|
1557
|
+
}): Promise<InitializeGovernanceProposalInstruction<Address$1<"GssMyhkQPePLzByJsJadbQePZc6GtzGi22aQqW5opvUX">, string, string, string, []>>;
|
|
1558
|
+
/**
|
|
1559
|
+
* Get cast vote instruction
|
|
1560
|
+
*/
|
|
1561
|
+
getCastVoteInstruction(params: {
|
|
1562
|
+
proposal: Address$1;
|
|
1563
|
+
voter: TransactionSigner;
|
|
1564
|
+
voterTokenAccount: Address$1;
|
|
1565
|
+
delegateTokenAccount?: Address$1;
|
|
1566
|
+
voteChoice: VoteChoice;
|
|
1567
|
+
reasoning: string | null;
|
|
1568
|
+
}): CastVoteInstruction<Address$1<"GssMyhkQPePLzByJsJadbQePZc6GtzGi22aQqW5opvUX">, string, string, string, string, []>;
|
|
1569
|
+
/**
|
|
1570
|
+
* Get delegate vote instruction
|
|
1571
|
+
*/
|
|
1572
|
+
getDelegateVoteInstruction(params: {
|
|
1573
|
+
proposal?: Address$1;
|
|
1574
|
+
delegator: TransactionSigner;
|
|
1575
|
+
delegate: Address$1;
|
|
1576
|
+
delegatorTokenAccount: Address$1;
|
|
1577
|
+
proposalId: number | bigint;
|
|
1578
|
+
scope: any;
|
|
1579
|
+
expiresAt: number | bigint | null;
|
|
1580
|
+
}): DelegateVoteInstruction<Address$1<"GssMyhkQPePLzByJsJadbQePZc6GtzGi22aQqW5opvUX">, string, string, string, string, []>;
|
|
1581
|
+
/**
|
|
1582
|
+
* Get execute proposal instruction
|
|
1583
|
+
*/
|
|
1584
|
+
getExecuteProposalInstruction(params: {
|
|
1585
|
+
proposal: Address$1;
|
|
1586
|
+
executor: TransactionSigner;
|
|
1587
|
+
targetProgram: Address$1;
|
|
1588
|
+
}): ExecuteProposalInstruction<Address$1<"GssMyhkQPePLzByJsJadbQePZc6GtzGi22aQqW5opvUX">, string, string, string, []>;
|
|
1589
|
+
/**
|
|
1590
|
+
* Get tally votes instruction
|
|
1591
|
+
*/
|
|
1592
|
+
getTallyVotesInstruction(params: {
|
|
1593
|
+
proposal: Address$1;
|
|
1594
|
+
authority: TransactionSigner;
|
|
1595
|
+
}): TallyVotesInstruction<Address$1<"GssMyhkQPePLzByJsJadbQePZc6GtzGi22aQqW5opvUX">, string, string, []>;
|
|
1596
|
+
/**
|
|
1597
|
+
* Create a new governance proposal
|
|
1598
|
+
*/
|
|
1599
|
+
createProposal(params: {
|
|
1600
|
+
signer: TransactionSigner;
|
|
1601
|
+
title: string;
|
|
1602
|
+
description: string;
|
|
1603
|
+
proposalType: 'parameter_change' | 'upgrade' | 'treasury';
|
|
1604
|
+
votingDuration: number;
|
|
1605
|
+
executionDelay?: number;
|
|
1606
|
+
}): Promise<string>;
|
|
1607
|
+
/**
|
|
1608
|
+
* Cast a vote on a proposal
|
|
1609
|
+
*/
|
|
1610
|
+
vote(params: {
|
|
1611
|
+
signer: TransactionSigner;
|
|
1612
|
+
proposalAddress: Address$1;
|
|
1613
|
+
choice: 'yes' | 'no' | 'abstain';
|
|
1614
|
+
reasoning?: string;
|
|
1615
|
+
tokenAccount: Address$1;
|
|
1616
|
+
}): Promise<string>;
|
|
1617
|
+
/**
|
|
1618
|
+
* Delegate voting power to another address
|
|
1619
|
+
*/
|
|
1620
|
+
delegateVotingPower(params: {
|
|
1621
|
+
signer: TransactionSigner;
|
|
1622
|
+
delegate: Address$1;
|
|
1623
|
+
amount: bigint;
|
|
1624
|
+
tokenAccount: Address$1;
|
|
1625
|
+
}): Promise<string>;
|
|
1626
|
+
/**
|
|
1627
|
+
* Execute a passed proposal
|
|
1628
|
+
*/
|
|
1629
|
+
executeProposal(params: {
|
|
1630
|
+
signer: TransactionSigner;
|
|
1631
|
+
proposalAddress: Address$1;
|
|
1632
|
+
proposalId: string;
|
|
1633
|
+
}): Promise<string>;
|
|
1634
|
+
/**
|
|
1635
|
+
* Tally votes for a proposal
|
|
1636
|
+
*/
|
|
1637
|
+
tallyVotes(params: {
|
|
1638
|
+
signer: TransactionSigner;
|
|
1639
|
+
proposalAddress: Address$1;
|
|
1640
|
+
}): Promise<string>;
|
|
1641
|
+
/**
|
|
1642
|
+
* Get governance proposal account
|
|
1643
|
+
*/
|
|
1644
|
+
getProposal(address: Address$1): Promise<GovernanceProposal | null>;
|
|
1645
|
+
/**
|
|
1646
|
+
* Get all active proposals
|
|
1647
|
+
*/
|
|
1648
|
+
getActiveProposals(): Promise<{
|
|
1649
|
+
address: Address$1;
|
|
1650
|
+
data: GovernanceProposal;
|
|
1651
|
+
}[]>;
|
|
1652
|
+
/**
|
|
1653
|
+
* Get proposals by proposer
|
|
1654
|
+
*/
|
|
1655
|
+
getProposalsByProposer(proposer: Address$1): Promise<{
|
|
1656
|
+
address: Address$1;
|
|
1657
|
+
data: GovernanceProposal;
|
|
1658
|
+
}[]>;
|
|
1659
|
+
/**
|
|
1660
|
+
* Get proposals by status
|
|
1661
|
+
*/
|
|
1662
|
+
getProposalsByStatus(_status: 'draft' | 'voting' | 'succeeded' | 'defeated' | 'executed'): Promise<{
|
|
1663
|
+
address: Address$1;
|
|
1664
|
+
data: GovernanceProposal;
|
|
1665
|
+
}[]>;
|
|
1666
|
+
private deriveProposalPda;
|
|
1667
|
+
private mapVoteChoice;
|
|
50
1668
|
}
|
|
51
1669
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
1670
|
+
/**
|
|
1671
|
+
* Token-2022 management module
|
|
1672
|
+
*
|
|
1673
|
+
* Provides high-level access to Token-2022 operations including:
|
|
1674
|
+
* - Mint creation with extensions
|
|
1675
|
+
* - Transfer fee configuration
|
|
1676
|
+
* - Confidential transfer setup
|
|
1677
|
+
* - Interest bearing configuration
|
|
1678
|
+
* - Default account state management
|
|
1679
|
+
*/
|
|
1680
|
+
declare class Token2022Module extends BaseModule {
|
|
1681
|
+
/**
|
|
1682
|
+
* Get create Token-2022 mint instruction
|
|
1683
|
+
*/
|
|
1684
|
+
getCreateToken2022MintInstruction(params: {
|
|
1685
|
+
authority: TransactionSigner;
|
|
1686
|
+
agent?: Address$1;
|
|
1687
|
+
mint: TransactionSigner;
|
|
1688
|
+
decimals: number;
|
|
1689
|
+
freezeAuthority: Address$1 | null;
|
|
1690
|
+
enableTransferFee: boolean;
|
|
1691
|
+
enableConfidentialTransfers: boolean;
|
|
1692
|
+
enableInterestBearing: boolean;
|
|
1693
|
+
}): Promise<CreateToken2022MintInstruction<Address$1<"GssMyhkQPePLzByJsJadbQePZc6GtzGi22aQqW5opvUX">, string, string, string, string, string, string, []>>;
|
|
1694
|
+
/**
|
|
1695
|
+
* Get initialize transfer fee config instruction
|
|
1696
|
+
*/
|
|
1697
|
+
getInitializeTransferFeeConfigInstruction(params: {
|
|
1698
|
+
authority: TransactionSigner;
|
|
1699
|
+
mint: Address$1;
|
|
1700
|
+
transferFeeBasisPoints: number;
|
|
1701
|
+
maximumFee: number | bigint;
|
|
1702
|
+
transferFeeAuthority: Address$1 | null;
|
|
1703
|
+
withdrawWithheldAuthority: Address$1 | null;
|
|
1704
|
+
}): Promise<InitializeTransferFeeConfigInstruction<Address$1<"GssMyhkQPePLzByJsJadbQePZc6GtzGi22aQqW5opvUX">, string, string, string, string, []>>;
|
|
1705
|
+
/**
|
|
1706
|
+
* Get initialize confidential transfer mint instruction
|
|
1707
|
+
*/
|
|
1708
|
+
getInitializeConfidentialTransferMintInstruction(params: {
|
|
1709
|
+
authority: TransactionSigner;
|
|
1710
|
+
mint: Address$1;
|
|
1711
|
+
autoApproveNewAccounts: boolean;
|
|
1712
|
+
auditorElgamalPubkey: ReadonlyUint8Array | null;
|
|
1713
|
+
}): Promise<InitializeConfidentialTransferMintInstruction<Address$1<"GssMyhkQPePLzByJsJadbQePZc6GtzGi22aQqW5opvUX">, string, string, string, string, []>>;
|
|
1714
|
+
/**
|
|
1715
|
+
* Get initialize interest bearing config instruction
|
|
1716
|
+
*/
|
|
1717
|
+
getInitializeInterestBearingConfigInstruction(params: {
|
|
1718
|
+
mint: Address$1;
|
|
1719
|
+
authority: TransactionSigner;
|
|
1720
|
+
rate: number;
|
|
1721
|
+
rateAuthority: Address$1;
|
|
1722
|
+
}): Promise<InitializeInterestBearingConfigInstruction<Address$1<"GssMyhkQPePLzByJsJadbQePZc6GtzGi22aQqW5opvUX">, string, string, string, string, string, []>>;
|
|
1723
|
+
/**
|
|
1724
|
+
* Get initialize mint close authority instruction
|
|
1725
|
+
*/
|
|
1726
|
+
getInitializeMintCloseAuthorityInstruction(params: {
|
|
1727
|
+
mint: Address$1;
|
|
1728
|
+
authority: TransactionSigner;
|
|
1729
|
+
closeAuthority: Address$1;
|
|
1730
|
+
}): Promise<InitializeMintCloseAuthorityInstruction<Address$1<"GssMyhkQPePLzByJsJadbQePZc6GtzGi22aQqW5opvUX">, string, string, string, string, string, []>>;
|
|
1731
|
+
/**
|
|
1732
|
+
* Get initialize default account state instruction
|
|
1733
|
+
*/
|
|
1734
|
+
getInitializeDefaultAccountStateInstruction(params: {
|
|
1735
|
+
mint: Address$1;
|
|
1736
|
+
authority: TransactionSigner;
|
|
1737
|
+
state: AccountState;
|
|
1738
|
+
}): Promise<InitializeDefaultAccountStateInstruction<Address$1<"GssMyhkQPePLzByJsJadbQePZc6GtzGi22aQqW5opvUX">, string, string, string, string, []>>;
|
|
1739
|
+
/**
|
|
1740
|
+
* Get approve extension instruction
|
|
1741
|
+
*/
|
|
1742
|
+
getApproveExtensionInstruction(params: {
|
|
1743
|
+
mint: Address$1;
|
|
1744
|
+
authority: TransactionSigner;
|
|
1745
|
+
extension: Address$1;
|
|
1746
|
+
}): ApproveExtensionInstruction<Address$1<"GssMyhkQPePLzByJsJadbQePZc6GtzGi22aQqW5opvUX">, string, string, string, []>;
|
|
1747
|
+
/**
|
|
1748
|
+
* Create a basic Token-2022 mint
|
|
1749
|
+
*/
|
|
1750
|
+
createMint(params: {
|
|
1751
|
+
signer: TransactionSigner;
|
|
1752
|
+
agentAddress: Address$1;
|
|
1753
|
+
decimals: number;
|
|
1754
|
+
freezeAuthority?: Address$1;
|
|
1755
|
+
}): Promise<string>;
|
|
1756
|
+
/**
|
|
1757
|
+
* Create a Token-2022 mint with transfer fees
|
|
1758
|
+
*/
|
|
1759
|
+
createMintWithTransferFees(params: {
|
|
1760
|
+
signer: TransactionSigner;
|
|
1761
|
+
agentAddress: Address$1;
|
|
1762
|
+
decimals: number;
|
|
1763
|
+
transferFeeBasisPoints: number;
|
|
1764
|
+
maxFee: bigint;
|
|
1765
|
+
withdrawWithheldAuthority?: Address$1;
|
|
1766
|
+
}): Promise<string>;
|
|
1767
|
+
/**
|
|
1768
|
+
* Create a Token-2022 mint with confidential transfers
|
|
1769
|
+
*/
|
|
1770
|
+
createMintWithConfidentialTransfers(params: {
|
|
1771
|
+
signer: TransactionSigner;
|
|
1772
|
+
agentAddress: Address$1;
|
|
1773
|
+
decimals: number;
|
|
1774
|
+
auditorElgamalPubkey?: ReadonlyUint8Array;
|
|
1775
|
+
autoApproveNewAccounts?: boolean;
|
|
1776
|
+
}): Promise<string>;
|
|
1777
|
+
/**
|
|
1778
|
+
* Create a Token-2022 mint with interest bearing
|
|
1779
|
+
*/
|
|
1780
|
+
createMintWithInterestBearing(params: {
|
|
1781
|
+
signer: TransactionSigner;
|
|
1782
|
+
agentAddress: Address$1;
|
|
1783
|
+
decimals: number;
|
|
1784
|
+
interestRate: number;
|
|
1785
|
+
rateAuthority?: Address$1;
|
|
1786
|
+
}): Promise<string>;
|
|
1787
|
+
/**
|
|
1788
|
+
* Create a full-featured Token-2022 mint with all extensions
|
|
1789
|
+
*/
|
|
1790
|
+
createAdvancedMint(params: {
|
|
1791
|
+
signer: TransactionSigner;
|
|
1792
|
+
agentAddress: Address$1;
|
|
1793
|
+
decimals: number;
|
|
1794
|
+
transferFeeBasisPoints: number;
|
|
1795
|
+
maxFee: bigint;
|
|
1796
|
+
interestRate: number;
|
|
1797
|
+
autoApproveConfidential?: boolean;
|
|
1798
|
+
defaultAccountState?: AccountState;
|
|
1799
|
+
}): Promise<string>;
|
|
1800
|
+
/**
|
|
1801
|
+
* Get Token-2022 mint account
|
|
1802
|
+
*/
|
|
1803
|
+
getMint(address: Address$1): Promise<any | null>;
|
|
1804
|
+
/**
|
|
1805
|
+
* Get all Token-2022 mints created by this program
|
|
1806
|
+
*/
|
|
1807
|
+
getAllMints(): Promise<{
|
|
1808
|
+
address: Address$1;
|
|
1809
|
+
data: any;
|
|
1810
|
+
}[]>;
|
|
1811
|
+
/**
|
|
1812
|
+
* Get mints by authority
|
|
1813
|
+
*/
|
|
1814
|
+
getMintsByAuthority(authority: Address$1): Promise<{
|
|
1815
|
+
address: Address$1;
|
|
1816
|
+
data: any;
|
|
1817
|
+
}[]>;
|
|
1818
|
+
private generateKeypair;
|
|
1819
|
+
private executeMultiple;
|
|
93
1820
|
}
|
|
94
1821
|
|
|
95
1822
|
/**
|
|
@@ -179,7 +1906,7 @@ declare class AgentBuilder {
|
|
|
179
1906
|
simulate(): Promise<unknown>;
|
|
180
1907
|
explain(): Promise<string>;
|
|
181
1908
|
execute(): Promise<{
|
|
182
|
-
address: Address;
|
|
1909
|
+
address: Address$1;
|
|
183
1910
|
signature: string;
|
|
184
1911
|
}>;
|
|
185
1912
|
private deriveAgentAddress;
|
|
@@ -191,7 +1918,7 @@ declare class EscrowBuilder {
|
|
|
191
1918
|
private module;
|
|
192
1919
|
private params;
|
|
193
1920
|
constructor(config: GhostSpeakConfig);
|
|
194
|
-
between(buyer: Address, seller: Address): this;
|
|
1921
|
+
between(buyer: Address$1, seller: Address$1): this;
|
|
195
1922
|
amount(lamports: bigint): this;
|
|
196
1923
|
description(desc: string): this;
|
|
197
1924
|
withMilestones(milestones: Array<{
|
|
@@ -203,7 +1930,7 @@ declare class EscrowBuilder {
|
|
|
203
1930
|
getCost(): Promise<bigint>;
|
|
204
1931
|
explain(): Promise<string>;
|
|
205
1932
|
execute(): Promise<{
|
|
206
|
-
address: Address;
|
|
1933
|
+
address: Address$1;
|
|
207
1934
|
signature: string;
|
|
208
1935
|
}>;
|
|
209
1936
|
private deriveEscrowAddress;
|
|
@@ -224,22 +1951,250 @@ declare class ChannelBuilder {
|
|
|
224
1951
|
getCost(): Promise<bigint>;
|
|
225
1952
|
explain(): Promise<string>;
|
|
226
1953
|
execute(): Promise<{
|
|
227
|
-
address: Address;
|
|
1954
|
+
address: Address$1;
|
|
228
1955
|
signature: string;
|
|
229
1956
|
}>;
|
|
230
1957
|
private deriveChannelAddress;
|
|
231
1958
|
}
|
|
1959
|
+
/**
|
|
1960
|
+
* Marketplace builder for fluent API
|
|
1961
|
+
*/
|
|
232
1962
|
declare class MarketplaceBuilder {
|
|
233
|
-
private
|
|
1963
|
+
private module;
|
|
1964
|
+
private params;
|
|
234
1965
|
constructor(config: GhostSpeakConfig);
|
|
1966
|
+
/**
|
|
1967
|
+
* Create a service listing
|
|
1968
|
+
*/
|
|
1969
|
+
service(): ServiceBuilder;
|
|
1970
|
+
/**
|
|
1971
|
+
* Create a job posting
|
|
1972
|
+
*/
|
|
1973
|
+
job(): JobBuilder;
|
|
1974
|
+
/**
|
|
1975
|
+
* Create an auction
|
|
1976
|
+
*/
|
|
1977
|
+
auction(): AuctionBuilder;
|
|
1978
|
+
/**
|
|
1979
|
+
* Get marketplace queries
|
|
1980
|
+
*/
|
|
1981
|
+
query(): MarketplaceQuery;
|
|
1982
|
+
debug(): this;
|
|
1983
|
+
}
|
|
1984
|
+
/**
|
|
1985
|
+
* Marketplace builder parameters interface
|
|
1986
|
+
*/
|
|
1987
|
+
interface MarketplaceBuilderParams {
|
|
1988
|
+
signer?: TransactionSigner;
|
|
1989
|
+
}
|
|
1990
|
+
/**
|
|
1991
|
+
* Service builder for fluent API
|
|
1992
|
+
*/
|
|
1993
|
+
declare class ServiceBuilder {
|
|
1994
|
+
private module;
|
|
1995
|
+
private builderParams;
|
|
1996
|
+
private params;
|
|
1997
|
+
constructor(module: MarketplaceModule, builderParams: MarketplaceBuilderParams);
|
|
1998
|
+
create(params: {
|
|
1999
|
+
title: string;
|
|
2000
|
+
description: string;
|
|
2001
|
+
agentAddress: Address$1;
|
|
2002
|
+
}): this;
|
|
2003
|
+
pricePerHour(price: bigint): this;
|
|
2004
|
+
category(cat: string): this;
|
|
2005
|
+
capabilities(caps: string[]): this;
|
|
2006
|
+
private validateParams;
|
|
2007
|
+
execute(): Promise<{
|
|
2008
|
+
address: Address$1;
|
|
2009
|
+
signature: string;
|
|
2010
|
+
}>;
|
|
2011
|
+
}
|
|
2012
|
+
/**
|
|
2013
|
+
* Job builder for fluent API
|
|
2014
|
+
*/
|
|
2015
|
+
declare class JobBuilder {
|
|
2016
|
+
private module;
|
|
2017
|
+
private builderParams;
|
|
2018
|
+
private params;
|
|
2019
|
+
constructor(module: MarketplaceModule, builderParams: MarketplaceBuilderParams);
|
|
2020
|
+
create(params: {
|
|
2021
|
+
title: string;
|
|
2022
|
+
description: string;
|
|
2023
|
+
}): this;
|
|
2024
|
+
budget(amount: bigint): this;
|
|
2025
|
+
duration(hours: number): this;
|
|
2026
|
+
skills(skillList: string[]): this;
|
|
2027
|
+
category(cat: string): this;
|
|
2028
|
+
private validateParams;
|
|
2029
|
+
execute(): Promise<{
|
|
2030
|
+
address: Address$1;
|
|
2031
|
+
signature: string;
|
|
2032
|
+
}>;
|
|
2033
|
+
}
|
|
2034
|
+
/**
|
|
2035
|
+
* Auction builder for fluent API
|
|
2036
|
+
*/
|
|
2037
|
+
declare class AuctionBuilder {
|
|
2038
|
+
private module;
|
|
2039
|
+
private builderParams;
|
|
2040
|
+
private params;
|
|
2041
|
+
constructor(module: MarketplaceModule, builderParams: MarketplaceBuilderParams);
|
|
2042
|
+
forService(serviceAddress: Address$1): this;
|
|
2043
|
+
startingPrice(price: bigint): this;
|
|
2044
|
+
reservePrice(price: bigint): this;
|
|
2045
|
+
duration(hours: number): this;
|
|
2046
|
+
english(): this;
|
|
2047
|
+
dutch(): this;
|
|
2048
|
+
private validateParams;
|
|
2049
|
+
execute(): Promise<{
|
|
2050
|
+
address: Address$1;
|
|
2051
|
+
signature: string;
|
|
2052
|
+
}>;
|
|
2053
|
+
}
|
|
2054
|
+
/**
|
|
2055
|
+
* Marketplace query helper
|
|
2056
|
+
*/
|
|
2057
|
+
declare class MarketplaceQuery {
|
|
2058
|
+
private module;
|
|
2059
|
+
constructor(module: MarketplaceModule);
|
|
2060
|
+
serviceListings(): Promise<{
|
|
2061
|
+
address: Address$1;
|
|
2062
|
+
data: ServiceListing;
|
|
2063
|
+
}[]>;
|
|
2064
|
+
serviceListingsByCategory(_category: string): Promise<{
|
|
2065
|
+
address: Address$1;
|
|
2066
|
+
data: ServiceListing;
|
|
2067
|
+
}[]>;
|
|
2068
|
+
jobPostings(): Promise<{
|
|
2069
|
+
address: Address$1;
|
|
2070
|
+
data: JobPosting;
|
|
2071
|
+
}[]>;
|
|
2072
|
+
auctions(): Promise<{
|
|
2073
|
+
address: Address$1;
|
|
2074
|
+
data: AuctionMarketplace;
|
|
2075
|
+
}[]>;
|
|
235
2076
|
}
|
|
2077
|
+
/**
|
|
2078
|
+
* Governance builder for fluent API
|
|
2079
|
+
*/
|
|
236
2080
|
declare class GovernanceBuilder {
|
|
237
|
-
private
|
|
2081
|
+
private module;
|
|
2082
|
+
private params;
|
|
238
2083
|
constructor(config: GhostSpeakConfig);
|
|
2084
|
+
/**
|
|
2085
|
+
* Create a governance proposal
|
|
2086
|
+
*/
|
|
2087
|
+
proposal(): ProposalBuilder;
|
|
2088
|
+
/**
|
|
2089
|
+
* Get governance queries
|
|
2090
|
+
*/
|
|
2091
|
+
query(): GovernanceQuery;
|
|
2092
|
+
debug(): this;
|
|
2093
|
+
}
|
|
2094
|
+
/**
|
|
2095
|
+
* Governance builder parameters interface
|
|
2096
|
+
*/
|
|
2097
|
+
interface GovernanceBuilderParams {
|
|
2098
|
+
signer?: TransactionSigner;
|
|
2099
|
+
}
|
|
2100
|
+
/**
|
|
2101
|
+
* Proposal builder for fluent API
|
|
2102
|
+
*/
|
|
2103
|
+
declare class ProposalBuilder {
|
|
2104
|
+
private module;
|
|
2105
|
+
private builderParams;
|
|
2106
|
+
private params;
|
|
2107
|
+
constructor(module: GovernanceModule, builderParams: GovernanceBuilderParams);
|
|
2108
|
+
create(params: {
|
|
2109
|
+
title: string;
|
|
2110
|
+
description: string;
|
|
2111
|
+
}): this;
|
|
2112
|
+
type(proposalType: 'parameter_change' | 'upgrade' | 'treasury'): this;
|
|
2113
|
+
votingDuration(hours: number): this;
|
|
2114
|
+
executionDelay(hours: number): this;
|
|
2115
|
+
private validateParams;
|
|
2116
|
+
execute(): Promise<{
|
|
2117
|
+
address: Address$1;
|
|
2118
|
+
signature: string;
|
|
2119
|
+
}>;
|
|
239
2120
|
}
|
|
2121
|
+
/**
|
|
2122
|
+
* Governance query helper
|
|
2123
|
+
*/
|
|
2124
|
+
declare class GovernanceQuery {
|
|
2125
|
+
private module;
|
|
2126
|
+
constructor(module: GovernanceModule);
|
|
2127
|
+
activeProposals(): Promise<{
|
|
2128
|
+
address: Address$1;
|
|
2129
|
+
data: GovernanceProposal;
|
|
2130
|
+
}[]>;
|
|
2131
|
+
proposalsByProposer(proposer: Address$1): Promise<{
|
|
2132
|
+
address: Address$1;
|
|
2133
|
+
data: GovernanceProposal;
|
|
2134
|
+
}[]>;
|
|
2135
|
+
proposalsByStatus(status: 'draft' | 'voting' | 'succeeded' | 'defeated' | 'executed'): Promise<{
|
|
2136
|
+
address: Address$1;
|
|
2137
|
+
data: GovernanceProposal;
|
|
2138
|
+
}[]>;
|
|
2139
|
+
}
|
|
2140
|
+
/**
|
|
2141
|
+
* Token2022 builder for fluent API
|
|
2142
|
+
*/
|
|
240
2143
|
declare class Token2022Builder {
|
|
241
|
-
private
|
|
2144
|
+
private module;
|
|
2145
|
+
private params;
|
|
242
2146
|
constructor(config: GhostSpeakConfig);
|
|
2147
|
+
/**
|
|
2148
|
+
* Create a basic mint
|
|
2149
|
+
*/
|
|
2150
|
+
mint(): MintBuilder;
|
|
2151
|
+
/**
|
|
2152
|
+
* Get Token2022 queries
|
|
2153
|
+
*/
|
|
2154
|
+
query(): Token2022Query;
|
|
2155
|
+
debug(): this;
|
|
2156
|
+
}
|
|
2157
|
+
/**
|
|
2158
|
+
* Token2022 builder parameters interface
|
|
2159
|
+
*/
|
|
2160
|
+
interface Token2022BuilderParams {
|
|
2161
|
+
signer?: TransactionSigner;
|
|
2162
|
+
}
|
|
2163
|
+
/**
|
|
2164
|
+
* Mint builder for fluent API
|
|
2165
|
+
*/
|
|
2166
|
+
declare class MintBuilder {
|
|
2167
|
+
private module;
|
|
2168
|
+
private builderParams;
|
|
2169
|
+
private params;
|
|
2170
|
+
constructor(module: Token2022Module, builderParams: Token2022BuilderParams);
|
|
2171
|
+
forAgent(agentAddress: Address$1): this;
|
|
2172
|
+
decimals(dec: number): this;
|
|
2173
|
+
freezeAuthority(authority: Address$1): this;
|
|
2174
|
+
withTransferFees(basisPoints: number, maxFee: bigint): this;
|
|
2175
|
+
withConfidentialTransfers(autoApprove?: boolean): this;
|
|
2176
|
+
withInterestBearing(rate: number): this;
|
|
2177
|
+
defaultAccountState(state: AccountState): this;
|
|
2178
|
+
private validateParams;
|
|
2179
|
+
execute(): Promise<{
|
|
2180
|
+
address: Address$1;
|
|
2181
|
+
signature: string;
|
|
2182
|
+
}>;
|
|
2183
|
+
}
|
|
2184
|
+
/**
|
|
2185
|
+
* Token2022 query helper
|
|
2186
|
+
*/
|
|
2187
|
+
declare class Token2022Query {
|
|
2188
|
+
private module;
|
|
2189
|
+
constructor(module: Token2022Module);
|
|
2190
|
+
allMints(): Promise<{
|
|
2191
|
+
address: Address$1;
|
|
2192
|
+
data: any;
|
|
2193
|
+
}[]>;
|
|
2194
|
+
mintsByAuthority(authority: Address$1): Promise<{
|
|
2195
|
+
address: Address$1;
|
|
2196
|
+
data: any;
|
|
2197
|
+
}[]>;
|
|
243
2198
|
}
|
|
244
2199
|
|
|
245
2200
|
/**
|
|
@@ -253,9 +2208,9 @@ declare class Token2022Builder {
|
|
|
253
2208
|
* Agent entity
|
|
254
2209
|
*/
|
|
255
2210
|
interface Agent {
|
|
256
|
-
address: Address;
|
|
2211
|
+
address: Address$1;
|
|
257
2212
|
type: AgentType;
|
|
258
|
-
owner: Address;
|
|
2213
|
+
owner: Address$1;
|
|
259
2214
|
metadata: AgentMetadata;
|
|
260
2215
|
reputation: Reputation;
|
|
261
2216
|
isActive: boolean;
|
|
@@ -296,7 +2251,7 @@ interface Reputation {
|
|
|
296
2251
|
* Rating entry
|
|
297
2252
|
*/
|
|
298
2253
|
interface Rating {
|
|
299
|
-
from: Address;
|
|
2254
|
+
from: Address$1;
|
|
300
2255
|
score: number;
|
|
301
2256
|
comment?: string;
|
|
302
2257
|
timestamp: Date;
|
|
@@ -305,9 +2260,9 @@ interface Rating {
|
|
|
305
2260
|
* Escrow entity
|
|
306
2261
|
*/
|
|
307
2262
|
interface Escrow {
|
|
308
|
-
address: Address;
|
|
309
|
-
buyer: Address;
|
|
310
|
-
seller: Address;
|
|
2263
|
+
address: Address$1;
|
|
2264
|
+
buyer: Address$1;
|
|
2265
|
+
seller: Address$1;
|
|
311
2266
|
amount: bigint;
|
|
312
2267
|
status: EscrowStatus;
|
|
313
2268
|
description: string;
|
|
@@ -338,12 +2293,12 @@ interface Milestone {
|
|
|
338
2293
|
* Channel entity
|
|
339
2294
|
*/
|
|
340
2295
|
interface Channel {
|
|
341
|
-
address: Address;
|
|
2296
|
+
address: Address$1;
|
|
342
2297
|
name: string;
|
|
343
2298
|
description: string;
|
|
344
2299
|
type: ChannelType;
|
|
345
|
-
creator: Address;
|
|
346
|
-
members: Address[];
|
|
2300
|
+
creator: Address$1;
|
|
2301
|
+
members: Address$1[];
|
|
347
2302
|
isPrivate: boolean;
|
|
348
2303
|
maxMembers: number;
|
|
349
2304
|
messageCount: number;
|
|
@@ -432,7 +2387,7 @@ declare class NetworkError extends GhostSpeakError {
|
|
|
432
2387
|
* Insufficient balance error
|
|
433
2388
|
*/
|
|
434
2389
|
declare class InsufficientBalanceError extends GhostSpeakError {
|
|
435
|
-
constructor(required: bigint, available: bigint, address: Address);
|
|
2390
|
+
constructor(required: bigint, available: bigint, address: Address$1);
|
|
436
2391
|
}
|
|
437
2392
|
/**
|
|
438
2393
|
* Validation error for invalid inputs
|