@pulseai/sdk 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +70 -0
- package/dist/index.d.ts +3161 -0
- package/dist/index.js +4330 -0
- package/dist/index.js.map +1 -0
- package/package.json +46 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,3161 @@
|
|
|
1
|
+
import * as viem from 'viem';
|
|
2
|
+
import { Address, PublicClient, WalletClient, Chain, Account, Transport, Hex, Hash } from 'viem';
|
|
3
|
+
|
|
4
|
+
type PulseAddresses = {
|
|
5
|
+
pulseExtension: Address;
|
|
6
|
+
serviceMarketplace: Address;
|
|
7
|
+
jobEngine: Address;
|
|
8
|
+
feeDistributor: Address;
|
|
9
|
+
identityRegistry: Address;
|
|
10
|
+
reputationRegistry: Address;
|
|
11
|
+
usdm: Address;
|
|
12
|
+
};
|
|
13
|
+
/** Full Pulse contract addresses on MegaETH Testnet. */
|
|
14
|
+
declare const TESTNET_ADDRESSES: PulseAddresses;
|
|
15
|
+
/** Full Pulse contract addresses on MegaETH Mainnet (partial placeholders). */
|
|
16
|
+
declare const MAINNET_ADDRESSES: PulseAddresses;
|
|
17
|
+
/** Default indexer URLs by network. */
|
|
18
|
+
declare const DEFAULT_INDEXER_URLS: {
|
|
19
|
+
readonly testnet: "https://pulse-indexer.up.railway.app";
|
|
20
|
+
readonly mainnet: "https://pulse-indexer.up.railway.app";
|
|
21
|
+
};
|
|
22
|
+
/** ERC-8004 testnet addresses (deployed on MegaETH Testnet). */
|
|
23
|
+
declare const testnetERC8004: {
|
|
24
|
+
identityRegistry: Address;
|
|
25
|
+
reputationRegistry: Address;
|
|
26
|
+
};
|
|
27
|
+
/** ERC-8004 mainnet addresses (deployed on MegaETH Mainnet). */
|
|
28
|
+
declare const mainnetERC8004: {
|
|
29
|
+
identityRegistry: Address;
|
|
30
|
+
reputationRegistry: Address;
|
|
31
|
+
};
|
|
32
|
+
/** USDm token address on MegaETH Mainnet. */
|
|
33
|
+
declare const USDM_MAINNET: Address;
|
|
34
|
+
/** Fee constants matching on-chain values. */
|
|
35
|
+
declare const FEE_BPS = 500n;
|
|
36
|
+
declare const BPS_DENOMINATOR = 10000n;
|
|
37
|
+
declare const TREASURY_BPS = 8000n;
|
|
38
|
+
declare const RISK_POOL_BPS = 2000n;
|
|
39
|
+
declare const ACCEPT_TIMEOUT: bigint;
|
|
40
|
+
declare const EVALUATION_TIMEOUT: bigint;
|
|
41
|
+
|
|
42
|
+
type PulseClient = {
|
|
43
|
+
publicClient: PublicClient;
|
|
44
|
+
walletClient: WalletClient | undefined;
|
|
45
|
+
addresses: PulseAddresses;
|
|
46
|
+
chain: Chain;
|
|
47
|
+
};
|
|
48
|
+
type CreatePulseClientOptions = {
|
|
49
|
+
chain: Chain;
|
|
50
|
+
addresses: PulseAddresses;
|
|
51
|
+
transport?: Transport;
|
|
52
|
+
account?: Account | Address;
|
|
53
|
+
};
|
|
54
|
+
type CreatePresetPulseClientOptions = {
|
|
55
|
+
account?: Account | Address;
|
|
56
|
+
indexerUrl?: string;
|
|
57
|
+
transport?: Transport;
|
|
58
|
+
};
|
|
59
|
+
type PresetPulseClient = PulseClient & {
|
|
60
|
+
indexerUrl: string;
|
|
61
|
+
};
|
|
62
|
+
declare function createPulseClient(options: CreatePulseClientOptions): PulseClient;
|
|
63
|
+
declare function createTestnetClient(options?: CreatePresetPulseClientOptions): PresetPulseClient;
|
|
64
|
+
declare function createMainnetClient(options?: CreatePresetPulseClientOptions): PresetPulseClient;
|
|
65
|
+
|
|
66
|
+
declare enum JobStatus {
|
|
67
|
+
Created = 0,
|
|
68
|
+
Accepted = 1,
|
|
69
|
+
InProgress = 2,
|
|
70
|
+
Delivered = 3,
|
|
71
|
+
Evaluated = 4,
|
|
72
|
+
Completed = 5,
|
|
73
|
+
Disputed = 6,
|
|
74
|
+
Cancelled = 7
|
|
75
|
+
}
|
|
76
|
+
declare enum ServiceType {
|
|
77
|
+
TextGeneration = 0,
|
|
78
|
+
ImageGeneration = 1,
|
|
79
|
+
DataAnalysis = 2,
|
|
80
|
+
CodeGeneration = 3,
|
|
81
|
+
Translation = 4,
|
|
82
|
+
Custom = 5
|
|
83
|
+
}
|
|
84
|
+
type PulseAgentData = {
|
|
85
|
+
operator: Address;
|
|
86
|
+
warrenMasterContract: Address;
|
|
87
|
+
registeredAt: bigint;
|
|
88
|
+
active: boolean;
|
|
89
|
+
};
|
|
90
|
+
type JobOffering = {
|
|
91
|
+
agentId: bigint;
|
|
92
|
+
serviceType: ServiceType;
|
|
93
|
+
priceUSDm: bigint;
|
|
94
|
+
slaMinutes: number;
|
|
95
|
+
description: string;
|
|
96
|
+
requirementsSchemaURI: string;
|
|
97
|
+
active: boolean;
|
|
98
|
+
};
|
|
99
|
+
type Job = {
|
|
100
|
+
offeringId: bigint;
|
|
101
|
+
buyerAgentId: bigint;
|
|
102
|
+
providerAgentId: bigint;
|
|
103
|
+
priceUSDm: bigint;
|
|
104
|
+
status: JobStatus;
|
|
105
|
+
warrenTermsHash: Hex;
|
|
106
|
+
deliverableHash: Hex;
|
|
107
|
+
createdAt: bigint;
|
|
108
|
+
acceptedAt: bigint;
|
|
109
|
+
deliveredAt: bigint;
|
|
110
|
+
evaluatedAt: bigint;
|
|
111
|
+
settledAt: bigint;
|
|
112
|
+
slaMinutes: number;
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
/** Register a new agent in the ERC-8004 Identity Registry. */
|
|
116
|
+
declare function registerAgent(client: PulseClient, agentURI: string): Promise<{
|
|
117
|
+
agentId: bigint;
|
|
118
|
+
txHash: Hash;
|
|
119
|
+
}>;
|
|
120
|
+
/** Initialize an agent in the Pulse extension. */
|
|
121
|
+
declare function initAgent(client: PulseClient, agentId: bigint, operator: Address): Promise<Hash>;
|
|
122
|
+
/** Update the operator for an agent. */
|
|
123
|
+
declare function setOperator(client: PulseClient, agentId: bigint, newOperator: Address): Promise<Hash>;
|
|
124
|
+
/** Set the WARREN contract address for an agent. */
|
|
125
|
+
declare function setWarrenContract(client: PulseClient, agentId: bigint, warrenAddr: Address): Promise<Hash>;
|
|
126
|
+
/** Get agent data including ERC-8004 owner and Pulse extension data. */
|
|
127
|
+
declare function getAgent(client: PulseClient, agentId: bigint): Promise<{
|
|
128
|
+
owner: Address;
|
|
129
|
+
pulseData: PulseAgentData;
|
|
130
|
+
active: boolean;
|
|
131
|
+
}>;
|
|
132
|
+
|
|
133
|
+
type ListOfferingParams = {
|
|
134
|
+
agentId: bigint;
|
|
135
|
+
serviceType: ServiceType;
|
|
136
|
+
priceUSDm: bigint;
|
|
137
|
+
slaMinutes: number;
|
|
138
|
+
description: string;
|
|
139
|
+
requirementsSchemaURI?: string;
|
|
140
|
+
};
|
|
141
|
+
/** List a new service offering. */
|
|
142
|
+
declare function listOffering(client: PulseClient, params: ListOfferingParams): Promise<{
|
|
143
|
+
offeringId: bigint;
|
|
144
|
+
txHash: Hash;
|
|
145
|
+
}>;
|
|
146
|
+
/** Update mutable fields of an offering. */
|
|
147
|
+
declare function updateOffering(client: PulseClient, offeringId: bigint, priceUSDm: bigint, slaMinutes: number, description: string): Promise<Hash>;
|
|
148
|
+
/** Deactivate an offering. */
|
|
149
|
+
declare function deactivateOffering(client: PulseClient, offeringId: bigint): Promise<Hash>;
|
|
150
|
+
/** Activate a previously deactivated offering. */
|
|
151
|
+
declare function activateOffering(client: PulseClient, offeringId: bigint): Promise<Hash>;
|
|
152
|
+
/** Get an offering by ID. */
|
|
153
|
+
declare function getOffering(client: PulseClient, offeringId: bigint): Promise<JobOffering>;
|
|
154
|
+
/** Get the total number of offerings. */
|
|
155
|
+
declare function getOfferingCount(client: PulseClient): Promise<bigint>;
|
|
156
|
+
|
|
157
|
+
type CreateJobParams = {
|
|
158
|
+
offeringId: bigint;
|
|
159
|
+
buyerAgentId: bigint;
|
|
160
|
+
warrenTermsHash: Hex;
|
|
161
|
+
};
|
|
162
|
+
/**
|
|
163
|
+
* Create a job: approve USDm + call createJob.
|
|
164
|
+
* Reads the offering price automatically.
|
|
165
|
+
*/
|
|
166
|
+
declare function createJob(client: PulseClient, params: CreateJobParams): Promise<{
|
|
167
|
+
jobId: bigint;
|
|
168
|
+
txHash: Hash;
|
|
169
|
+
}>;
|
|
170
|
+
/**
|
|
171
|
+
* Accept a job as provider: generate EIP-712 signature + call acceptJob.
|
|
172
|
+
*/
|
|
173
|
+
declare function acceptJob(client: PulseClient, jobId: bigint, warrenTermsHash: Hex): Promise<Hash>;
|
|
174
|
+
/** Submit a deliverable hash for an in-progress job. */
|
|
175
|
+
declare function submitDeliverable(client: PulseClient, jobId: bigint, deliverableHash: Hex): Promise<Hash>;
|
|
176
|
+
/** Evaluate a delivered job. */
|
|
177
|
+
declare function evaluate(client: PulseClient, jobId: bigint, approved: boolean, feedback: string): Promise<Hash>;
|
|
178
|
+
/** Settle an evaluated (or auto-approved) job. */
|
|
179
|
+
declare function settle(client: PulseClient, jobId: bigint): Promise<Hash>;
|
|
180
|
+
/** Cancel a job (buyer or anyone after timeout). */
|
|
181
|
+
declare function cancelJob(client: PulseClient, jobId: bigint): Promise<Hash>;
|
|
182
|
+
/** Get a job by ID. */
|
|
183
|
+
declare function getJob(client: PulseClient, jobId: bigint): Promise<Job>;
|
|
184
|
+
/** Get the total number of jobs. */
|
|
185
|
+
declare function getJobCount(client: PulseClient): Promise<bigint>;
|
|
186
|
+
|
|
187
|
+
/** Deploy raw content to a SSTORE2 Page contract. */
|
|
188
|
+
declare function deployWarrenPage(client: PulseClient, content: string): Promise<{
|
|
189
|
+
pageAddress: Address;
|
|
190
|
+
txHash: Hash;
|
|
191
|
+
}>;
|
|
192
|
+
/** Deploy a Master contract wrapping a Page for WARREN loader compatibility. */
|
|
193
|
+
declare function deployWarrenMaster(client: PulseClient, agentId: bigint, pageAddress: Address, contentSize: number, siteType?: number): Promise<{
|
|
194
|
+
masterAddress: Address;
|
|
195
|
+
txHash: Hash;
|
|
196
|
+
}>;
|
|
197
|
+
/** Read content from a deployed SSTORE2 Page contract. */
|
|
198
|
+
declare function readWarrenPage(client: PulseClient, pageAddress: Address): Promise<string>;
|
|
199
|
+
/** Read content from a Master contract (resolves rootChunk then reads Page). */
|
|
200
|
+
declare function readWarrenMaster(client: PulseClient, masterAddress: Address): Promise<string>;
|
|
201
|
+
/** Deploy AgentCard to WARREN (Page + Master) and link to PulseExtension. */
|
|
202
|
+
declare function deployAgentCard(client: PulseClient, agentId: bigint, params: AgentCardParams): Promise<{
|
|
203
|
+
masterAddress: Address;
|
|
204
|
+
pageAddress: Address;
|
|
205
|
+
hash: Hex;
|
|
206
|
+
txHash: Hash;
|
|
207
|
+
}>;
|
|
208
|
+
/** Deploy Job Terms to WARREN (Page + Master). Returns hash for use in createJob(). */
|
|
209
|
+
declare function deployJobTerms(client: PulseClient, agentId: bigint, params: JobTermsParams): Promise<{
|
|
210
|
+
masterAddress: Address;
|
|
211
|
+
pageAddress: Address;
|
|
212
|
+
hash: Hex;
|
|
213
|
+
txHash: Hash;
|
|
214
|
+
}>;
|
|
215
|
+
/** Deploy deliverable to WARREN + submit on-chain + register with indexer. */
|
|
216
|
+
declare function deployDeliverable(client: PulseClient, agentId: bigint, jobId: bigint, params: DeliverableParams, indexerUrl?: string): Promise<{
|
|
217
|
+
masterAddress: Address;
|
|
218
|
+
pageAddress: Address;
|
|
219
|
+
hash: Hex;
|
|
220
|
+
txHash: Hash;
|
|
221
|
+
}>;
|
|
222
|
+
/** Read deliverable from WARREN via indexer lookup. */
|
|
223
|
+
declare function readDeliverable(client: PulseClient, jobId: bigint, indexerUrl: string): Promise<DeliverableData>;
|
|
224
|
+
/** Deploy requirements to WARREN + register with indexer (link_type='requirements'). */
|
|
225
|
+
declare function deployRequirements(client: PulseClient, agentId: bigint, jobId: bigint, params: RequirementsParams, indexerUrl?: string): Promise<{
|
|
226
|
+
masterAddress: Address;
|
|
227
|
+
pageAddress: Address;
|
|
228
|
+
hash: Hex;
|
|
229
|
+
txHash: Hash;
|
|
230
|
+
}>;
|
|
231
|
+
/** Read requirements from WARREN via indexer lookup. */
|
|
232
|
+
declare function readRequirements(client: PulseClient, jobId: bigint, indexerUrl: string): Promise<RequirementsData | null>;
|
|
233
|
+
|
|
234
|
+
type AgentCardParams = {
|
|
235
|
+
name: string;
|
|
236
|
+
description: string;
|
|
237
|
+
serviceCategory: string;
|
|
238
|
+
capabilities: string[];
|
|
239
|
+
priceRange: {
|
|
240
|
+
min: bigint;
|
|
241
|
+
max: bigint;
|
|
242
|
+
currency?: string;
|
|
243
|
+
};
|
|
244
|
+
owner: Address;
|
|
245
|
+
version?: number;
|
|
246
|
+
};
|
|
247
|
+
type JobTermsParams = {
|
|
248
|
+
jobId: bigint;
|
|
249
|
+
offeringId: bigint;
|
|
250
|
+
agreedPrice: bigint;
|
|
251
|
+
slaMinutes: number;
|
|
252
|
+
qualityCriteria: string;
|
|
253
|
+
refundConditions?: string;
|
|
254
|
+
buyerAgent: Address;
|
|
255
|
+
providerAgent: Address;
|
|
256
|
+
};
|
|
257
|
+
/**
|
|
258
|
+
* Create an AgentCard JSON and compute its keccak256 hash.
|
|
259
|
+
* The hash can be stored on-chain; the JSON can be deployed to WARREN.
|
|
260
|
+
*/
|
|
261
|
+
declare function createAgentCard(params: AgentCardParams): {
|
|
262
|
+
json: string;
|
|
263
|
+
hash: Hex;
|
|
264
|
+
};
|
|
265
|
+
/**
|
|
266
|
+
* Create Job Terms JSON and compute its keccak256 hash.
|
|
267
|
+
* The hash is stored as warrenTermsHash in JobEngine.createJob().
|
|
268
|
+
*/
|
|
269
|
+
declare function createJobTerms(params: JobTermsParams): {
|
|
270
|
+
json: string;
|
|
271
|
+
hash: Hex;
|
|
272
|
+
};
|
|
273
|
+
/** Verify that a JSON content string matches an expected keccak256 hash. */
|
|
274
|
+
declare function verifyContentHash(content: string, expectedHash: Hex): boolean;
|
|
275
|
+
type DeliverableParams = {
|
|
276
|
+
type: 'inline' | 'url';
|
|
277
|
+
content?: string;
|
|
278
|
+
url?: string;
|
|
279
|
+
contentHash?: Hex;
|
|
280
|
+
mimeType?: string;
|
|
281
|
+
jobId: bigint;
|
|
282
|
+
};
|
|
283
|
+
type DeliverableData = {
|
|
284
|
+
type: 'inline' | 'url';
|
|
285
|
+
content?: string;
|
|
286
|
+
url?: string;
|
|
287
|
+
contentHash?: string;
|
|
288
|
+
mimeType?: string;
|
|
289
|
+
jobId: string;
|
|
290
|
+
size: number;
|
|
291
|
+
timestamp: number;
|
|
292
|
+
};
|
|
293
|
+
declare function createDeliverable(params: DeliverableParams): {
|
|
294
|
+
json: string;
|
|
295
|
+
hash: Hex;
|
|
296
|
+
};
|
|
297
|
+
type RequirementsParams = {
|
|
298
|
+
jobId: bigint;
|
|
299
|
+
offeringId: bigint;
|
|
300
|
+
requirements: Record<string, unknown>;
|
|
301
|
+
};
|
|
302
|
+
type RequirementsData = {
|
|
303
|
+
jobId: string;
|
|
304
|
+
offeringId: string;
|
|
305
|
+
requirements: Record<string, unknown>;
|
|
306
|
+
timestamp: number;
|
|
307
|
+
};
|
|
308
|
+
declare function createRequirements(params: RequirementsParams): {
|
|
309
|
+
json: string;
|
|
310
|
+
hash: Hex;
|
|
311
|
+
};
|
|
312
|
+
|
|
313
|
+
type JobContext = {
|
|
314
|
+
jobId: bigint;
|
|
315
|
+
offeringId: bigint;
|
|
316
|
+
buyerAgentId: bigint;
|
|
317
|
+
providerAgentId: bigint;
|
|
318
|
+
priceUsdm: string;
|
|
319
|
+
slaMinutes: number;
|
|
320
|
+
requirements?: Record<string, unknown>;
|
|
321
|
+
};
|
|
322
|
+
type ExecuteJobResult = {
|
|
323
|
+
type: 'inline' | 'url';
|
|
324
|
+
content?: string;
|
|
325
|
+
url?: string;
|
|
326
|
+
mimeType?: string;
|
|
327
|
+
};
|
|
328
|
+
type ValidationResult = {
|
|
329
|
+
valid: boolean;
|
|
330
|
+
reason?: string;
|
|
331
|
+
};
|
|
332
|
+
interface OfferingHandler {
|
|
333
|
+
offeringId: number;
|
|
334
|
+
autoAccept?: boolean;
|
|
335
|
+
validateRequirements?(context: JobContext): Promise<ValidationResult>;
|
|
336
|
+
executeJob(context: JobContext): Promise<ExecuteJobResult>;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
/**
|
|
340
|
+
* EIP-712 type definition matching MemoLib.sol MEMO_TYPEHASH:
|
|
341
|
+
* "Memo(uint256 jobId,address signer,bytes32 contentHash,uint64 timestamp,uint256 nonce)"
|
|
342
|
+
*/
|
|
343
|
+
declare const MEMO_TYPES: {
|
|
344
|
+
readonly Memo: readonly [{
|
|
345
|
+
readonly name: "jobId";
|
|
346
|
+
readonly type: "uint256";
|
|
347
|
+
}, {
|
|
348
|
+
readonly name: "signer";
|
|
349
|
+
readonly type: "address";
|
|
350
|
+
}, {
|
|
351
|
+
readonly name: "contentHash";
|
|
352
|
+
readonly type: "bytes32";
|
|
353
|
+
}, {
|
|
354
|
+
readonly name: "timestamp";
|
|
355
|
+
readonly type: "uint64";
|
|
356
|
+
}, {
|
|
357
|
+
readonly name: "nonce";
|
|
358
|
+
readonly type: "uint256";
|
|
359
|
+
}];
|
|
360
|
+
};
|
|
361
|
+
/** EIP-712 domain matching JobEngine's __EIP712_init("PulseJobEngine", "1"). */
|
|
362
|
+
declare const PULSE_DOMAIN: {
|
|
363
|
+
readonly name: "PulseJobEngine";
|
|
364
|
+
readonly version: "1";
|
|
365
|
+
};
|
|
366
|
+
type SignMemoParams = {
|
|
367
|
+
jobId: bigint;
|
|
368
|
+
contentHash: Hex;
|
|
369
|
+
nonce: bigint;
|
|
370
|
+
verifyingContract: Address;
|
|
371
|
+
chainId: number;
|
|
372
|
+
};
|
|
373
|
+
/**
|
|
374
|
+
* Sign a deterministic Memo for acceptJob using EIP-712 typed data.
|
|
375
|
+
* Uses timestamp=0 convention (no block.timestamp prediction needed).
|
|
376
|
+
*/
|
|
377
|
+
declare function signMemo(walletClient: WalletClient, params: SignMemoParams): Promise<Hex>;
|
|
378
|
+
|
|
379
|
+
/**
|
|
380
|
+
* Parse a human USDm amount into 18-decimal base units.
|
|
381
|
+
* Example: parseUsdm('10.00') => 10000000000000000000n
|
|
382
|
+
*/
|
|
383
|
+
declare function parseUsdm(value: string): bigint;
|
|
384
|
+
/**
|
|
385
|
+
* Format 18-decimal base units into a human USDm string.
|
|
386
|
+
* Always includes at least 2 decimal digits.
|
|
387
|
+
* Example: formatUsdm(10000000000000000000n) => '10.00'
|
|
388
|
+
*/
|
|
389
|
+
declare function formatUsdm(amount: bigint): string;
|
|
390
|
+
|
|
391
|
+
declare const megaethTestnet: {
|
|
392
|
+
blockExplorers?: {
|
|
393
|
+
[key: string]: {
|
|
394
|
+
name: string;
|
|
395
|
+
url: string;
|
|
396
|
+
apiUrl?: string | undefined;
|
|
397
|
+
};
|
|
398
|
+
default: {
|
|
399
|
+
name: string;
|
|
400
|
+
url: string;
|
|
401
|
+
apiUrl?: string | undefined;
|
|
402
|
+
};
|
|
403
|
+
} | undefined | undefined;
|
|
404
|
+
blockTime?: number | undefined | undefined;
|
|
405
|
+
contracts?: {
|
|
406
|
+
[x: string]: viem.ChainContract | {
|
|
407
|
+
[sourceId: number]: viem.ChainContract | undefined;
|
|
408
|
+
} | undefined;
|
|
409
|
+
ensRegistry?: viem.ChainContract | undefined;
|
|
410
|
+
ensUniversalResolver?: viem.ChainContract | undefined;
|
|
411
|
+
multicall3?: viem.ChainContract | undefined;
|
|
412
|
+
erc6492Verifier?: viem.ChainContract | undefined;
|
|
413
|
+
} | undefined;
|
|
414
|
+
ensTlds?: readonly string[] | undefined;
|
|
415
|
+
id: 6343;
|
|
416
|
+
name: "MegaETH Testnet";
|
|
417
|
+
nativeCurrency: {
|
|
418
|
+
readonly name: "ETH";
|
|
419
|
+
readonly symbol: "ETH";
|
|
420
|
+
readonly decimals: 18;
|
|
421
|
+
};
|
|
422
|
+
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
423
|
+
rpcUrls: {
|
|
424
|
+
readonly default: {
|
|
425
|
+
readonly http: readonly ["https://carrot.megaeth.com/rpc"];
|
|
426
|
+
};
|
|
427
|
+
};
|
|
428
|
+
sourceId?: number | undefined | undefined;
|
|
429
|
+
testnet?: boolean | undefined | undefined;
|
|
430
|
+
custom?: Record<string, unknown> | undefined;
|
|
431
|
+
extendSchema?: Record<string, unknown> | undefined;
|
|
432
|
+
fees?: viem.ChainFees<undefined> | undefined;
|
|
433
|
+
formatters?: undefined;
|
|
434
|
+
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
435
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
436
|
+
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
437
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
438
|
+
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
439
|
+
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
440
|
+
}] | undefined;
|
|
441
|
+
serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
|
|
442
|
+
verifyHash?: ((client: viem.Client, parameters: viem.VerifyHashActionParameters) => Promise<viem.VerifyHashActionReturnType>) | undefined;
|
|
443
|
+
};
|
|
444
|
+
declare const megaethMainnet: {
|
|
445
|
+
blockExplorers?: {
|
|
446
|
+
[key: string]: {
|
|
447
|
+
name: string;
|
|
448
|
+
url: string;
|
|
449
|
+
apiUrl?: string | undefined;
|
|
450
|
+
};
|
|
451
|
+
default: {
|
|
452
|
+
name: string;
|
|
453
|
+
url: string;
|
|
454
|
+
apiUrl?: string | undefined;
|
|
455
|
+
};
|
|
456
|
+
} | undefined | undefined;
|
|
457
|
+
blockTime?: number | undefined | undefined;
|
|
458
|
+
contracts?: {
|
|
459
|
+
[x: string]: viem.ChainContract | {
|
|
460
|
+
[sourceId: number]: viem.ChainContract | undefined;
|
|
461
|
+
} | undefined;
|
|
462
|
+
ensRegistry?: viem.ChainContract | undefined;
|
|
463
|
+
ensUniversalResolver?: viem.ChainContract | undefined;
|
|
464
|
+
multicall3?: viem.ChainContract | undefined;
|
|
465
|
+
erc6492Verifier?: viem.ChainContract | undefined;
|
|
466
|
+
} | undefined;
|
|
467
|
+
ensTlds?: readonly string[] | undefined;
|
|
468
|
+
id: 4326;
|
|
469
|
+
name: "MegaETH";
|
|
470
|
+
nativeCurrency: {
|
|
471
|
+
readonly name: "ETH";
|
|
472
|
+
readonly symbol: "ETH";
|
|
473
|
+
readonly decimals: 18;
|
|
474
|
+
};
|
|
475
|
+
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
476
|
+
rpcUrls: {
|
|
477
|
+
readonly default: {
|
|
478
|
+
readonly http: readonly ["https://mainnet.megaeth.com/rpc"];
|
|
479
|
+
};
|
|
480
|
+
};
|
|
481
|
+
sourceId?: number | undefined | undefined;
|
|
482
|
+
testnet?: boolean | undefined | undefined;
|
|
483
|
+
custom?: Record<string, unknown> | undefined;
|
|
484
|
+
extendSchema?: Record<string, unknown> | undefined;
|
|
485
|
+
fees?: viem.ChainFees<undefined> | undefined;
|
|
486
|
+
formatters?: undefined;
|
|
487
|
+
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
488
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
489
|
+
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
490
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
491
|
+
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
492
|
+
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
493
|
+
}] | undefined;
|
|
494
|
+
serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
|
|
495
|
+
verifyHash?: ((client: viem.Client, parameters: viem.VerifyHashActionParameters) => Promise<viem.VerifyHashActionReturnType>) | undefined;
|
|
496
|
+
};
|
|
497
|
+
|
|
498
|
+
type IndexerClientOptions = {
|
|
499
|
+
baseUrl: string;
|
|
500
|
+
timeoutMs?: number;
|
|
501
|
+
fetchFn?: typeof fetch;
|
|
502
|
+
};
|
|
503
|
+
type IndexerOfferingsFilter = {
|
|
504
|
+
serviceType?: number;
|
|
505
|
+
active?: boolean;
|
|
506
|
+
agentId?: number;
|
|
507
|
+
};
|
|
508
|
+
type IndexerJobsFilter = {
|
|
509
|
+
status?: number;
|
|
510
|
+
agentId?: number;
|
|
511
|
+
};
|
|
512
|
+
type IndexerWarrenLink = {
|
|
513
|
+
masterAddress: string;
|
|
514
|
+
contentHash: string;
|
|
515
|
+
};
|
|
516
|
+
type IndexerWarrenLinks = Record<string, IndexerWarrenLink>;
|
|
517
|
+
interface IndexerAgent {
|
|
518
|
+
agentId: number;
|
|
519
|
+
owner: string;
|
|
520
|
+
agentUri: string | null;
|
|
521
|
+
operator: string | null;
|
|
522
|
+
warrenContract: string | null;
|
|
523
|
+
active: boolean;
|
|
524
|
+
registeredAt: number | null;
|
|
525
|
+
blockNumber: number | null;
|
|
526
|
+
txHash: string | null;
|
|
527
|
+
}
|
|
528
|
+
interface IndexerOffering {
|
|
529
|
+
offeringId: number;
|
|
530
|
+
agentId: number;
|
|
531
|
+
serviceType: number;
|
|
532
|
+
priceUsdm: string;
|
|
533
|
+
slaMinutes: number | null;
|
|
534
|
+
description: string | null;
|
|
535
|
+
active: boolean;
|
|
536
|
+
blockNumber: number | null;
|
|
537
|
+
txHash: string | null;
|
|
538
|
+
}
|
|
539
|
+
interface IndexerJob {
|
|
540
|
+
jobId: number;
|
|
541
|
+
offeringId: number;
|
|
542
|
+
buyerAgentId: number;
|
|
543
|
+
providerAgentId: number;
|
|
544
|
+
priceUsdm: string;
|
|
545
|
+
status: number;
|
|
546
|
+
warrenTermsHash: string | null;
|
|
547
|
+
deliverableHash: string | null;
|
|
548
|
+
createdAt: number | null;
|
|
549
|
+
acceptedAt: number | null;
|
|
550
|
+
deliveredAt: number | null;
|
|
551
|
+
evaluatedAt: number | null;
|
|
552
|
+
settledAt: number | null;
|
|
553
|
+
slaMinutes: number | null;
|
|
554
|
+
blockNumber: number | null;
|
|
555
|
+
txHash: string | null;
|
|
556
|
+
warrenLinks?: IndexerWarrenLinks;
|
|
557
|
+
}
|
|
558
|
+
declare class IndexerClientError extends Error {
|
|
559
|
+
readonly status?: number;
|
|
560
|
+
readonly url: string;
|
|
561
|
+
readonly body?: unknown;
|
|
562
|
+
constructor(message: string, options: {
|
|
563
|
+
url: string;
|
|
564
|
+
status?: number;
|
|
565
|
+
body?: unknown;
|
|
566
|
+
cause?: unknown;
|
|
567
|
+
});
|
|
568
|
+
}
|
|
569
|
+
declare class IndexerClient {
|
|
570
|
+
private baseUrl;
|
|
571
|
+
private timeoutMs;
|
|
572
|
+
private fetchFn;
|
|
573
|
+
constructor(options: IndexerClientOptions);
|
|
574
|
+
getOfferings(filter?: IndexerOfferingsFilter): Promise<IndexerOffering[]>;
|
|
575
|
+
getJobs(filter?: IndexerJobsFilter): Promise<IndexerJob[]>;
|
|
576
|
+
getJob(jobId: number): Promise<IndexerJob>;
|
|
577
|
+
getAgent(agentId: number): Promise<IndexerAgent>;
|
|
578
|
+
registerWarrenLink(jobId: number, linkType: string, masterAddress: string, contentHash: string): Promise<void>;
|
|
579
|
+
getWarrenLinks(jobId: number): Promise<IndexerWarrenLinks>;
|
|
580
|
+
private request;
|
|
581
|
+
private requestJson;
|
|
582
|
+
private parseResponse;
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
type ProviderCallbacks = {
|
|
586
|
+
onJobReceived?: (job: IndexerJob) => Promise<boolean>;
|
|
587
|
+
onDeliverableRequested?: (job: IndexerJob) => Promise<DeliverableParams>;
|
|
588
|
+
onJobCompleted?: (job: IndexerJob) => void;
|
|
589
|
+
onError?: (error: Error) => void;
|
|
590
|
+
};
|
|
591
|
+
type ProviderRuntimeOptions = {
|
|
592
|
+
pollInterval?: number;
|
|
593
|
+
indexerUrl: string;
|
|
594
|
+
};
|
|
595
|
+
declare class ProviderRuntime {
|
|
596
|
+
private client;
|
|
597
|
+
private agentId;
|
|
598
|
+
private callbacks;
|
|
599
|
+
private indexer;
|
|
600
|
+
private pollInterval;
|
|
601
|
+
private running;
|
|
602
|
+
private processedJobs;
|
|
603
|
+
constructor(client: PulseClient, agentId: bigint, callbacks: ProviderCallbacks, options: ProviderRuntimeOptions);
|
|
604
|
+
start(): void;
|
|
605
|
+
stop(): void;
|
|
606
|
+
private poll;
|
|
607
|
+
private checkNewJobs;
|
|
608
|
+
private checkInProgressJobs;
|
|
609
|
+
private checkCompletedJobs;
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
type BuyerCallbacks = {
|
|
613
|
+
onOfferingFound?: (offering: IndexerOffering) => Promise<boolean>;
|
|
614
|
+
onBuildRequirements?: (offering: IndexerOffering) => Promise<Record<string, unknown> | null>;
|
|
615
|
+
onJobDelivered?: (job: IndexerJob, deliverable: DeliverableData) => Promise<boolean>;
|
|
616
|
+
onJobCompleted?: (job: IndexerJob) => void;
|
|
617
|
+
onError?: (error: Error) => void;
|
|
618
|
+
};
|
|
619
|
+
type BuyerRuntimeOptions = {
|
|
620
|
+
pollInterval?: number;
|
|
621
|
+
indexerUrl: string;
|
|
622
|
+
searchFilter?: {
|
|
623
|
+
serviceType?: number;
|
|
624
|
+
maxPrice?: string;
|
|
625
|
+
};
|
|
626
|
+
};
|
|
627
|
+
declare class BuyerRuntime {
|
|
628
|
+
private client;
|
|
629
|
+
private agentId;
|
|
630
|
+
private callbacks;
|
|
631
|
+
private indexer;
|
|
632
|
+
private pollInterval;
|
|
633
|
+
private searchFilter?;
|
|
634
|
+
private running;
|
|
635
|
+
private processedOfferings;
|
|
636
|
+
private processedJobs;
|
|
637
|
+
constructor(client: PulseClient, agentId: bigint, callbacks: BuyerCallbacks, options: BuyerRuntimeOptions);
|
|
638
|
+
start(): void;
|
|
639
|
+
stop(): void;
|
|
640
|
+
private poll;
|
|
641
|
+
private checkOfferings;
|
|
642
|
+
private checkDeliveredJobs;
|
|
643
|
+
private checkCompletedJobs;
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
type HandlerProviderRuntimeOptions = {
|
|
647
|
+
pollInterval?: number;
|
|
648
|
+
indexerUrl: string;
|
|
649
|
+
};
|
|
650
|
+
declare class HandlerProviderRuntime {
|
|
651
|
+
private client;
|
|
652
|
+
private agentId;
|
|
653
|
+
private handlers;
|
|
654
|
+
private indexer;
|
|
655
|
+
private indexerUrl;
|
|
656
|
+
private pollInterval;
|
|
657
|
+
private running;
|
|
658
|
+
private processedJobs;
|
|
659
|
+
private onError?;
|
|
660
|
+
constructor(client: PulseClient, agentId: bigint, options: HandlerProviderRuntimeOptions);
|
|
661
|
+
registerHandler(handler: OfferingHandler): void;
|
|
662
|
+
setErrorHandler(fn: (error: Error) => void): void;
|
|
663
|
+
start(): void;
|
|
664
|
+
stop(): void;
|
|
665
|
+
private poll;
|
|
666
|
+
private checkNewJobs;
|
|
667
|
+
private checkInProgressJobs;
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
declare const pulseExtensionAbi: readonly [{
|
|
671
|
+
readonly type: "constructor";
|
|
672
|
+
readonly inputs: readonly [{
|
|
673
|
+
readonly name: "_identityRegistry";
|
|
674
|
+
readonly type: "address";
|
|
675
|
+
readonly internalType: "address";
|
|
676
|
+
}];
|
|
677
|
+
readonly stateMutability: "nonpayable";
|
|
678
|
+
}, {
|
|
679
|
+
readonly type: "function";
|
|
680
|
+
readonly name: "getAgentPulseData";
|
|
681
|
+
readonly inputs: readonly [{
|
|
682
|
+
readonly name: "agentId";
|
|
683
|
+
readonly type: "uint256";
|
|
684
|
+
readonly internalType: "uint256";
|
|
685
|
+
}];
|
|
686
|
+
readonly outputs: readonly [{
|
|
687
|
+
readonly name: "pulseData";
|
|
688
|
+
readonly type: "tuple";
|
|
689
|
+
readonly internalType: "struct DataTypes.PulseAgentData";
|
|
690
|
+
readonly components: readonly [{
|
|
691
|
+
readonly name: "operator";
|
|
692
|
+
readonly type: "address";
|
|
693
|
+
readonly internalType: "address";
|
|
694
|
+
}, {
|
|
695
|
+
readonly name: "warrenMasterContract";
|
|
696
|
+
readonly type: "address";
|
|
697
|
+
readonly internalType: "address";
|
|
698
|
+
}, {
|
|
699
|
+
readonly name: "registeredAt";
|
|
700
|
+
readonly type: "uint64";
|
|
701
|
+
readonly internalType: "uint64";
|
|
702
|
+
}, {
|
|
703
|
+
readonly name: "active";
|
|
704
|
+
readonly type: "bool";
|
|
705
|
+
readonly internalType: "bool";
|
|
706
|
+
}];
|
|
707
|
+
}];
|
|
708
|
+
readonly stateMutability: "view";
|
|
709
|
+
}, {
|
|
710
|
+
readonly type: "function";
|
|
711
|
+
readonly name: "identityRegistry";
|
|
712
|
+
readonly inputs: readonly [];
|
|
713
|
+
readonly outputs: readonly [{
|
|
714
|
+
readonly name: "";
|
|
715
|
+
readonly type: "address";
|
|
716
|
+
readonly internalType: "contract IERC8004Identity";
|
|
717
|
+
}];
|
|
718
|
+
readonly stateMutability: "view";
|
|
719
|
+
}, {
|
|
720
|
+
readonly type: "function";
|
|
721
|
+
readonly name: "initAgent";
|
|
722
|
+
readonly inputs: readonly [{
|
|
723
|
+
readonly name: "agentId";
|
|
724
|
+
readonly type: "uint256";
|
|
725
|
+
readonly internalType: "uint256";
|
|
726
|
+
}, {
|
|
727
|
+
readonly name: "operator";
|
|
728
|
+
readonly type: "address";
|
|
729
|
+
readonly internalType: "address";
|
|
730
|
+
}];
|
|
731
|
+
readonly outputs: readonly [];
|
|
732
|
+
readonly stateMutability: "nonpayable";
|
|
733
|
+
}, {
|
|
734
|
+
readonly type: "function";
|
|
735
|
+
readonly name: "isAgentActive";
|
|
736
|
+
readonly inputs: readonly [{
|
|
737
|
+
readonly name: "agentId";
|
|
738
|
+
readonly type: "uint256";
|
|
739
|
+
readonly internalType: "uint256";
|
|
740
|
+
}];
|
|
741
|
+
readonly outputs: readonly [{
|
|
742
|
+
readonly name: "active";
|
|
743
|
+
readonly type: "bool";
|
|
744
|
+
readonly internalType: "bool";
|
|
745
|
+
}];
|
|
746
|
+
readonly stateMutability: "view";
|
|
747
|
+
}, {
|
|
748
|
+
readonly type: "function";
|
|
749
|
+
readonly name: "setOperator";
|
|
750
|
+
readonly inputs: readonly [{
|
|
751
|
+
readonly name: "agentId";
|
|
752
|
+
readonly type: "uint256";
|
|
753
|
+
readonly internalType: "uint256";
|
|
754
|
+
}, {
|
|
755
|
+
readonly name: "newOperator";
|
|
756
|
+
readonly type: "address";
|
|
757
|
+
readonly internalType: "address";
|
|
758
|
+
}];
|
|
759
|
+
readonly outputs: readonly [];
|
|
760
|
+
readonly stateMutability: "nonpayable";
|
|
761
|
+
}, {
|
|
762
|
+
readonly type: "function";
|
|
763
|
+
readonly name: "setWarrenContract";
|
|
764
|
+
readonly inputs: readonly [{
|
|
765
|
+
readonly name: "agentId";
|
|
766
|
+
readonly type: "uint256";
|
|
767
|
+
readonly internalType: "uint256";
|
|
768
|
+
}, {
|
|
769
|
+
readonly name: "warrenAddr";
|
|
770
|
+
readonly type: "address";
|
|
771
|
+
readonly internalType: "address";
|
|
772
|
+
}];
|
|
773
|
+
readonly outputs: readonly [];
|
|
774
|
+
readonly stateMutability: "nonpayable";
|
|
775
|
+
}, {
|
|
776
|
+
readonly type: "event";
|
|
777
|
+
readonly name: "AgentInitialized";
|
|
778
|
+
readonly inputs: readonly [{
|
|
779
|
+
readonly name: "agentId";
|
|
780
|
+
readonly type: "uint256";
|
|
781
|
+
readonly indexed: true;
|
|
782
|
+
readonly internalType: "uint256";
|
|
783
|
+
}, {
|
|
784
|
+
readonly name: "operator";
|
|
785
|
+
readonly type: "address";
|
|
786
|
+
readonly indexed: true;
|
|
787
|
+
readonly internalType: "address";
|
|
788
|
+
}];
|
|
789
|
+
readonly anonymous: false;
|
|
790
|
+
}, {
|
|
791
|
+
readonly type: "event";
|
|
792
|
+
readonly name: "OperatorChanged";
|
|
793
|
+
readonly inputs: readonly [{
|
|
794
|
+
readonly name: "agentId";
|
|
795
|
+
readonly type: "uint256";
|
|
796
|
+
readonly indexed: true;
|
|
797
|
+
readonly internalType: "uint256";
|
|
798
|
+
}, {
|
|
799
|
+
readonly name: "newOperator";
|
|
800
|
+
readonly type: "address";
|
|
801
|
+
readonly indexed: true;
|
|
802
|
+
readonly internalType: "address";
|
|
803
|
+
}];
|
|
804
|
+
readonly anonymous: false;
|
|
805
|
+
}, {
|
|
806
|
+
readonly type: "event";
|
|
807
|
+
readonly name: "WarrenContractSet";
|
|
808
|
+
readonly inputs: readonly [{
|
|
809
|
+
readonly name: "agentId";
|
|
810
|
+
readonly type: "uint256";
|
|
811
|
+
readonly indexed: true;
|
|
812
|
+
readonly internalType: "uint256";
|
|
813
|
+
}, {
|
|
814
|
+
readonly name: "warrenAddr";
|
|
815
|
+
readonly type: "address";
|
|
816
|
+
readonly indexed: true;
|
|
817
|
+
readonly internalType: "address";
|
|
818
|
+
}];
|
|
819
|
+
readonly anonymous: false;
|
|
820
|
+
}, {
|
|
821
|
+
readonly type: "error";
|
|
822
|
+
readonly name: "AgentAlreadyInitialized";
|
|
823
|
+
readonly inputs: readonly [];
|
|
824
|
+
}, {
|
|
825
|
+
readonly type: "error";
|
|
826
|
+
readonly name: "AgentNotActive";
|
|
827
|
+
readonly inputs: readonly [];
|
|
828
|
+
}, {
|
|
829
|
+
readonly type: "error";
|
|
830
|
+
readonly name: "NotAgentOwnerOrOperator";
|
|
831
|
+
readonly inputs: readonly [];
|
|
832
|
+
}, {
|
|
833
|
+
readonly type: "error";
|
|
834
|
+
readonly name: "ZeroAddress";
|
|
835
|
+
readonly inputs: readonly [];
|
|
836
|
+
}];
|
|
837
|
+
|
|
838
|
+
declare const serviceMarketplaceAbi: readonly [{
|
|
839
|
+
readonly type: "constructor";
|
|
840
|
+
readonly inputs: readonly [{
|
|
841
|
+
readonly name: "_identityRegistry";
|
|
842
|
+
readonly type: "address";
|
|
843
|
+
readonly internalType: "address";
|
|
844
|
+
}, {
|
|
845
|
+
readonly name: "_pulseExtension";
|
|
846
|
+
readonly type: "address";
|
|
847
|
+
readonly internalType: "address";
|
|
848
|
+
}];
|
|
849
|
+
readonly stateMutability: "nonpayable";
|
|
850
|
+
}, {
|
|
851
|
+
readonly type: "function";
|
|
852
|
+
readonly name: "activateOffering";
|
|
853
|
+
readonly inputs: readonly [{
|
|
854
|
+
readonly name: "offeringId";
|
|
855
|
+
readonly type: "uint256";
|
|
856
|
+
readonly internalType: "uint256";
|
|
857
|
+
}];
|
|
858
|
+
readonly outputs: readonly [];
|
|
859
|
+
readonly stateMutability: "nonpayable";
|
|
860
|
+
}, {
|
|
861
|
+
readonly type: "function";
|
|
862
|
+
readonly name: "deactivateOffering";
|
|
863
|
+
readonly inputs: readonly [{
|
|
864
|
+
readonly name: "offeringId";
|
|
865
|
+
readonly type: "uint256";
|
|
866
|
+
readonly internalType: "uint256";
|
|
867
|
+
}];
|
|
868
|
+
readonly outputs: readonly [];
|
|
869
|
+
readonly stateMutability: "nonpayable";
|
|
870
|
+
}, {
|
|
871
|
+
readonly type: "function";
|
|
872
|
+
readonly name: "getOffering";
|
|
873
|
+
readonly inputs: readonly [{
|
|
874
|
+
readonly name: "offeringId";
|
|
875
|
+
readonly type: "uint256";
|
|
876
|
+
readonly internalType: "uint256";
|
|
877
|
+
}];
|
|
878
|
+
readonly outputs: readonly [{
|
|
879
|
+
readonly name: "offering";
|
|
880
|
+
readonly type: "tuple";
|
|
881
|
+
readonly internalType: "struct DataTypes.JobOffering";
|
|
882
|
+
readonly components: readonly [{
|
|
883
|
+
readonly name: "agentId";
|
|
884
|
+
readonly type: "uint256";
|
|
885
|
+
readonly internalType: "uint256";
|
|
886
|
+
}, {
|
|
887
|
+
readonly name: "serviceType";
|
|
888
|
+
readonly type: "uint8";
|
|
889
|
+
readonly internalType: "enum DataTypes.ServiceType";
|
|
890
|
+
}, {
|
|
891
|
+
readonly name: "priceUSDm";
|
|
892
|
+
readonly type: "uint256";
|
|
893
|
+
readonly internalType: "uint256";
|
|
894
|
+
}, {
|
|
895
|
+
readonly name: "slaMinutes";
|
|
896
|
+
readonly type: "uint32";
|
|
897
|
+
readonly internalType: "uint32";
|
|
898
|
+
}, {
|
|
899
|
+
readonly name: "description";
|
|
900
|
+
readonly type: "string";
|
|
901
|
+
readonly internalType: "string";
|
|
902
|
+
}, {
|
|
903
|
+
readonly name: "requirementsSchemaURI";
|
|
904
|
+
readonly type: "string";
|
|
905
|
+
readonly internalType: "string";
|
|
906
|
+
}, {
|
|
907
|
+
readonly name: "active";
|
|
908
|
+
readonly type: "bool";
|
|
909
|
+
readonly internalType: "bool";
|
|
910
|
+
}];
|
|
911
|
+
}];
|
|
912
|
+
readonly stateMutability: "view";
|
|
913
|
+
}, {
|
|
914
|
+
readonly type: "function";
|
|
915
|
+
readonly name: "getOfferingCount";
|
|
916
|
+
readonly inputs: readonly [];
|
|
917
|
+
readonly outputs: readonly [{
|
|
918
|
+
readonly name: "count";
|
|
919
|
+
readonly type: "uint256";
|
|
920
|
+
readonly internalType: "uint256";
|
|
921
|
+
}];
|
|
922
|
+
readonly stateMutability: "view";
|
|
923
|
+
}, {
|
|
924
|
+
readonly type: "function";
|
|
925
|
+
readonly name: "identityRegistry";
|
|
926
|
+
readonly inputs: readonly [];
|
|
927
|
+
readonly outputs: readonly [{
|
|
928
|
+
readonly name: "";
|
|
929
|
+
readonly type: "address";
|
|
930
|
+
readonly internalType: "contract IERC8004Identity";
|
|
931
|
+
}];
|
|
932
|
+
readonly stateMutability: "view";
|
|
933
|
+
}, {
|
|
934
|
+
readonly type: "function";
|
|
935
|
+
readonly name: "listOffering";
|
|
936
|
+
readonly inputs: readonly [{
|
|
937
|
+
readonly name: "agentId";
|
|
938
|
+
readonly type: "uint256";
|
|
939
|
+
readonly internalType: "uint256";
|
|
940
|
+
}, {
|
|
941
|
+
readonly name: "serviceType";
|
|
942
|
+
readonly type: "uint8";
|
|
943
|
+
readonly internalType: "enum DataTypes.ServiceType";
|
|
944
|
+
}, {
|
|
945
|
+
readonly name: "priceUSDm";
|
|
946
|
+
readonly type: "uint256";
|
|
947
|
+
readonly internalType: "uint256";
|
|
948
|
+
}, {
|
|
949
|
+
readonly name: "slaMinutes";
|
|
950
|
+
readonly type: "uint32";
|
|
951
|
+
readonly internalType: "uint32";
|
|
952
|
+
}, {
|
|
953
|
+
readonly name: "description";
|
|
954
|
+
readonly type: "string";
|
|
955
|
+
readonly internalType: "string";
|
|
956
|
+
}, {
|
|
957
|
+
readonly name: "requirementsSchemaURI";
|
|
958
|
+
readonly type: "string";
|
|
959
|
+
readonly internalType: "string";
|
|
960
|
+
}];
|
|
961
|
+
readonly outputs: readonly [{
|
|
962
|
+
readonly name: "offeringId";
|
|
963
|
+
readonly type: "uint256";
|
|
964
|
+
readonly internalType: "uint256";
|
|
965
|
+
}];
|
|
966
|
+
readonly stateMutability: "nonpayable";
|
|
967
|
+
}, {
|
|
968
|
+
readonly type: "function";
|
|
969
|
+
readonly name: "pulseExtension";
|
|
970
|
+
readonly inputs: readonly [];
|
|
971
|
+
readonly outputs: readonly [{
|
|
972
|
+
readonly name: "";
|
|
973
|
+
readonly type: "address";
|
|
974
|
+
readonly internalType: "contract IPulseExtension";
|
|
975
|
+
}];
|
|
976
|
+
readonly stateMutability: "view";
|
|
977
|
+
}, {
|
|
978
|
+
readonly type: "function";
|
|
979
|
+
readonly name: "updateOffering";
|
|
980
|
+
readonly inputs: readonly [{
|
|
981
|
+
readonly name: "offeringId";
|
|
982
|
+
readonly type: "uint256";
|
|
983
|
+
readonly internalType: "uint256";
|
|
984
|
+
}, {
|
|
985
|
+
readonly name: "priceUSDm";
|
|
986
|
+
readonly type: "uint256";
|
|
987
|
+
readonly internalType: "uint256";
|
|
988
|
+
}, {
|
|
989
|
+
readonly name: "slaMinutes";
|
|
990
|
+
readonly type: "uint32";
|
|
991
|
+
readonly internalType: "uint32";
|
|
992
|
+
}, {
|
|
993
|
+
readonly name: "description";
|
|
994
|
+
readonly type: "string";
|
|
995
|
+
readonly internalType: "string";
|
|
996
|
+
}];
|
|
997
|
+
readonly outputs: readonly [];
|
|
998
|
+
readonly stateMutability: "nonpayable";
|
|
999
|
+
}, {
|
|
1000
|
+
readonly type: "event";
|
|
1001
|
+
readonly name: "OfferingActivated";
|
|
1002
|
+
readonly inputs: readonly [{
|
|
1003
|
+
readonly name: "offeringId";
|
|
1004
|
+
readonly type: "uint256";
|
|
1005
|
+
readonly indexed: true;
|
|
1006
|
+
readonly internalType: "uint256";
|
|
1007
|
+
}];
|
|
1008
|
+
readonly anonymous: false;
|
|
1009
|
+
}, {
|
|
1010
|
+
readonly type: "event";
|
|
1011
|
+
readonly name: "OfferingDeactivated";
|
|
1012
|
+
readonly inputs: readonly [{
|
|
1013
|
+
readonly name: "offeringId";
|
|
1014
|
+
readonly type: "uint256";
|
|
1015
|
+
readonly indexed: true;
|
|
1016
|
+
readonly internalType: "uint256";
|
|
1017
|
+
}];
|
|
1018
|
+
readonly anonymous: false;
|
|
1019
|
+
}, {
|
|
1020
|
+
readonly type: "event";
|
|
1021
|
+
readonly name: "OfferingListed";
|
|
1022
|
+
readonly inputs: readonly [{
|
|
1023
|
+
readonly name: "offeringId";
|
|
1024
|
+
readonly type: "uint256";
|
|
1025
|
+
readonly indexed: true;
|
|
1026
|
+
readonly internalType: "uint256";
|
|
1027
|
+
}, {
|
|
1028
|
+
readonly name: "agentId";
|
|
1029
|
+
readonly type: "uint256";
|
|
1030
|
+
readonly indexed: true;
|
|
1031
|
+
readonly internalType: "uint256";
|
|
1032
|
+
}, {
|
|
1033
|
+
readonly name: "serviceType";
|
|
1034
|
+
readonly type: "uint8";
|
|
1035
|
+
readonly indexed: true;
|
|
1036
|
+
readonly internalType: "enum DataTypes.ServiceType";
|
|
1037
|
+
}, {
|
|
1038
|
+
readonly name: "priceUSDm";
|
|
1039
|
+
readonly type: "uint256";
|
|
1040
|
+
readonly indexed: false;
|
|
1041
|
+
readonly internalType: "uint256";
|
|
1042
|
+
}];
|
|
1043
|
+
readonly anonymous: false;
|
|
1044
|
+
}, {
|
|
1045
|
+
readonly type: "event";
|
|
1046
|
+
readonly name: "OfferingUpdated";
|
|
1047
|
+
readonly inputs: readonly [{
|
|
1048
|
+
readonly name: "offeringId";
|
|
1049
|
+
readonly type: "uint256";
|
|
1050
|
+
readonly indexed: true;
|
|
1051
|
+
readonly internalType: "uint256";
|
|
1052
|
+
}, {
|
|
1053
|
+
readonly name: "priceUSDm";
|
|
1054
|
+
readonly type: "uint256";
|
|
1055
|
+
readonly indexed: false;
|
|
1056
|
+
readonly internalType: "uint256";
|
|
1057
|
+
}, {
|
|
1058
|
+
readonly name: "slaMinutes";
|
|
1059
|
+
readonly type: "uint32";
|
|
1060
|
+
readonly indexed: false;
|
|
1061
|
+
readonly internalType: "uint32";
|
|
1062
|
+
}];
|
|
1063
|
+
readonly anonymous: false;
|
|
1064
|
+
}, {
|
|
1065
|
+
readonly type: "error";
|
|
1066
|
+
readonly name: "AgentNotActive";
|
|
1067
|
+
readonly inputs: readonly [];
|
|
1068
|
+
}, {
|
|
1069
|
+
readonly type: "error";
|
|
1070
|
+
readonly name: "NotAgentOwnerOrOperator";
|
|
1071
|
+
readonly inputs: readonly [];
|
|
1072
|
+
}, {
|
|
1073
|
+
readonly type: "error";
|
|
1074
|
+
readonly name: "OfferingNotActive";
|
|
1075
|
+
readonly inputs: readonly [];
|
|
1076
|
+
}, {
|
|
1077
|
+
readonly type: "error";
|
|
1078
|
+
readonly name: "OfferingNotFound";
|
|
1079
|
+
readonly inputs: readonly [];
|
|
1080
|
+
}, {
|
|
1081
|
+
readonly type: "error";
|
|
1082
|
+
readonly name: "ZeroAddress";
|
|
1083
|
+
readonly inputs: readonly [];
|
|
1084
|
+
}];
|
|
1085
|
+
|
|
1086
|
+
declare const jobEngineAbi: readonly [{
|
|
1087
|
+
readonly type: "constructor";
|
|
1088
|
+
readonly inputs: readonly [];
|
|
1089
|
+
readonly stateMutability: "nonpayable";
|
|
1090
|
+
}, {
|
|
1091
|
+
readonly type: "function";
|
|
1092
|
+
readonly name: "ACCEPT_TIMEOUT";
|
|
1093
|
+
readonly inputs: readonly [];
|
|
1094
|
+
readonly outputs: readonly [{
|
|
1095
|
+
readonly name: "";
|
|
1096
|
+
readonly type: "uint64";
|
|
1097
|
+
readonly internalType: "uint64";
|
|
1098
|
+
}];
|
|
1099
|
+
readonly stateMutability: "view";
|
|
1100
|
+
}, {
|
|
1101
|
+
readonly type: "function";
|
|
1102
|
+
readonly name: "EVALUATION_TIMEOUT";
|
|
1103
|
+
readonly inputs: readonly [];
|
|
1104
|
+
readonly outputs: readonly [{
|
|
1105
|
+
readonly name: "";
|
|
1106
|
+
readonly type: "uint64";
|
|
1107
|
+
readonly internalType: "uint64";
|
|
1108
|
+
}];
|
|
1109
|
+
readonly stateMutability: "view";
|
|
1110
|
+
}, {
|
|
1111
|
+
readonly type: "function";
|
|
1112
|
+
readonly name: "FEE_BPS";
|
|
1113
|
+
readonly inputs: readonly [];
|
|
1114
|
+
readonly outputs: readonly [{
|
|
1115
|
+
readonly name: "";
|
|
1116
|
+
readonly type: "uint256";
|
|
1117
|
+
readonly internalType: "uint256";
|
|
1118
|
+
}];
|
|
1119
|
+
readonly stateMutability: "view";
|
|
1120
|
+
}, {
|
|
1121
|
+
readonly type: "function";
|
|
1122
|
+
readonly name: "UPGRADE_INTERFACE_VERSION";
|
|
1123
|
+
readonly inputs: readonly [];
|
|
1124
|
+
readonly outputs: readonly [{
|
|
1125
|
+
readonly name: "";
|
|
1126
|
+
readonly type: "string";
|
|
1127
|
+
readonly internalType: "string";
|
|
1128
|
+
}];
|
|
1129
|
+
readonly stateMutability: "view";
|
|
1130
|
+
}, {
|
|
1131
|
+
readonly type: "function";
|
|
1132
|
+
readonly name: "acceptJob";
|
|
1133
|
+
readonly inputs: readonly [{
|
|
1134
|
+
readonly name: "jobId";
|
|
1135
|
+
readonly type: "uint256";
|
|
1136
|
+
readonly internalType: "uint256";
|
|
1137
|
+
}, {
|
|
1138
|
+
readonly name: "providerSignature";
|
|
1139
|
+
readonly type: "bytes";
|
|
1140
|
+
readonly internalType: "bytes";
|
|
1141
|
+
}];
|
|
1142
|
+
readonly outputs: readonly [];
|
|
1143
|
+
readonly stateMutability: "nonpayable";
|
|
1144
|
+
}, {
|
|
1145
|
+
readonly type: "function";
|
|
1146
|
+
readonly name: "cancelJob";
|
|
1147
|
+
readonly inputs: readonly [{
|
|
1148
|
+
readonly name: "jobId";
|
|
1149
|
+
readonly type: "uint256";
|
|
1150
|
+
readonly internalType: "uint256";
|
|
1151
|
+
}];
|
|
1152
|
+
readonly outputs: readonly [];
|
|
1153
|
+
readonly stateMutability: "nonpayable";
|
|
1154
|
+
}, {
|
|
1155
|
+
readonly type: "function";
|
|
1156
|
+
readonly name: "createJob";
|
|
1157
|
+
readonly inputs: readonly [{
|
|
1158
|
+
readonly name: "offeringId";
|
|
1159
|
+
readonly type: "uint256";
|
|
1160
|
+
readonly internalType: "uint256";
|
|
1161
|
+
}, {
|
|
1162
|
+
readonly name: "buyerAgentId";
|
|
1163
|
+
readonly type: "uint256";
|
|
1164
|
+
readonly internalType: "uint256";
|
|
1165
|
+
}, {
|
|
1166
|
+
readonly name: "warrenTermsHash";
|
|
1167
|
+
readonly type: "bytes32";
|
|
1168
|
+
readonly internalType: "bytes32";
|
|
1169
|
+
}];
|
|
1170
|
+
readonly outputs: readonly [{
|
|
1171
|
+
readonly name: "jobId";
|
|
1172
|
+
readonly type: "uint256";
|
|
1173
|
+
readonly internalType: "uint256";
|
|
1174
|
+
}];
|
|
1175
|
+
readonly stateMutability: "nonpayable";
|
|
1176
|
+
}, {
|
|
1177
|
+
readonly type: "function";
|
|
1178
|
+
readonly name: "domainSeparator";
|
|
1179
|
+
readonly inputs: readonly [];
|
|
1180
|
+
readonly outputs: readonly [{
|
|
1181
|
+
readonly name: "";
|
|
1182
|
+
readonly type: "bytes32";
|
|
1183
|
+
readonly internalType: "bytes32";
|
|
1184
|
+
}];
|
|
1185
|
+
readonly stateMutability: "view";
|
|
1186
|
+
}, {
|
|
1187
|
+
readonly type: "function";
|
|
1188
|
+
readonly name: "eip712Domain";
|
|
1189
|
+
readonly inputs: readonly [];
|
|
1190
|
+
readonly outputs: readonly [{
|
|
1191
|
+
readonly name: "fields";
|
|
1192
|
+
readonly type: "bytes1";
|
|
1193
|
+
readonly internalType: "bytes1";
|
|
1194
|
+
}, {
|
|
1195
|
+
readonly name: "name";
|
|
1196
|
+
readonly type: "string";
|
|
1197
|
+
readonly internalType: "string";
|
|
1198
|
+
}, {
|
|
1199
|
+
readonly name: "version";
|
|
1200
|
+
readonly type: "string";
|
|
1201
|
+
readonly internalType: "string";
|
|
1202
|
+
}, {
|
|
1203
|
+
readonly name: "chainId";
|
|
1204
|
+
readonly type: "uint256";
|
|
1205
|
+
readonly internalType: "uint256";
|
|
1206
|
+
}, {
|
|
1207
|
+
readonly name: "verifyingContract";
|
|
1208
|
+
readonly type: "address";
|
|
1209
|
+
readonly internalType: "address";
|
|
1210
|
+
}, {
|
|
1211
|
+
readonly name: "salt";
|
|
1212
|
+
readonly type: "bytes32";
|
|
1213
|
+
readonly internalType: "bytes32";
|
|
1214
|
+
}, {
|
|
1215
|
+
readonly name: "extensions";
|
|
1216
|
+
readonly type: "uint256[]";
|
|
1217
|
+
readonly internalType: "uint256[]";
|
|
1218
|
+
}];
|
|
1219
|
+
readonly stateMutability: "view";
|
|
1220
|
+
}, {
|
|
1221
|
+
readonly type: "function";
|
|
1222
|
+
readonly name: "evaluate";
|
|
1223
|
+
readonly inputs: readonly [{
|
|
1224
|
+
readonly name: "jobId";
|
|
1225
|
+
readonly type: "uint256";
|
|
1226
|
+
readonly internalType: "uint256";
|
|
1227
|
+
}, {
|
|
1228
|
+
readonly name: "approved";
|
|
1229
|
+
readonly type: "bool";
|
|
1230
|
+
readonly internalType: "bool";
|
|
1231
|
+
}, {
|
|
1232
|
+
readonly name: "feedback";
|
|
1233
|
+
readonly type: "string";
|
|
1234
|
+
readonly internalType: "string";
|
|
1235
|
+
}];
|
|
1236
|
+
readonly outputs: readonly [];
|
|
1237
|
+
readonly stateMutability: "nonpayable";
|
|
1238
|
+
}, {
|
|
1239
|
+
readonly type: "function";
|
|
1240
|
+
readonly name: "feeDistributor";
|
|
1241
|
+
readonly inputs: readonly [];
|
|
1242
|
+
readonly outputs: readonly [{
|
|
1243
|
+
readonly name: "";
|
|
1244
|
+
readonly type: "address";
|
|
1245
|
+
readonly internalType: "contract IFeeDistributor";
|
|
1246
|
+
}];
|
|
1247
|
+
readonly stateMutability: "view";
|
|
1248
|
+
}, {
|
|
1249
|
+
readonly type: "function";
|
|
1250
|
+
readonly name: "getJob";
|
|
1251
|
+
readonly inputs: readonly [{
|
|
1252
|
+
readonly name: "jobId";
|
|
1253
|
+
readonly type: "uint256";
|
|
1254
|
+
readonly internalType: "uint256";
|
|
1255
|
+
}];
|
|
1256
|
+
readonly outputs: readonly [{
|
|
1257
|
+
readonly name: "job";
|
|
1258
|
+
readonly type: "tuple";
|
|
1259
|
+
readonly internalType: "struct DataTypes.Job";
|
|
1260
|
+
readonly components: readonly [{
|
|
1261
|
+
readonly name: "offeringId";
|
|
1262
|
+
readonly type: "uint256";
|
|
1263
|
+
readonly internalType: "uint256";
|
|
1264
|
+
}, {
|
|
1265
|
+
readonly name: "buyerAgentId";
|
|
1266
|
+
readonly type: "uint256";
|
|
1267
|
+
readonly internalType: "uint256";
|
|
1268
|
+
}, {
|
|
1269
|
+
readonly name: "providerAgentId";
|
|
1270
|
+
readonly type: "uint256";
|
|
1271
|
+
readonly internalType: "uint256";
|
|
1272
|
+
}, {
|
|
1273
|
+
readonly name: "priceUSDm";
|
|
1274
|
+
readonly type: "uint256";
|
|
1275
|
+
readonly internalType: "uint256";
|
|
1276
|
+
}, {
|
|
1277
|
+
readonly name: "status";
|
|
1278
|
+
readonly type: "uint8";
|
|
1279
|
+
readonly internalType: "enum DataTypes.JobStatus";
|
|
1280
|
+
}, {
|
|
1281
|
+
readonly name: "warrenTermsHash";
|
|
1282
|
+
readonly type: "bytes32";
|
|
1283
|
+
readonly internalType: "bytes32";
|
|
1284
|
+
}, {
|
|
1285
|
+
readonly name: "deliverableHash";
|
|
1286
|
+
readonly type: "bytes32";
|
|
1287
|
+
readonly internalType: "bytes32";
|
|
1288
|
+
}, {
|
|
1289
|
+
readonly name: "createdAt";
|
|
1290
|
+
readonly type: "uint64";
|
|
1291
|
+
readonly internalType: "uint64";
|
|
1292
|
+
}, {
|
|
1293
|
+
readonly name: "acceptedAt";
|
|
1294
|
+
readonly type: "uint64";
|
|
1295
|
+
readonly internalType: "uint64";
|
|
1296
|
+
}, {
|
|
1297
|
+
readonly name: "deliveredAt";
|
|
1298
|
+
readonly type: "uint64";
|
|
1299
|
+
readonly internalType: "uint64";
|
|
1300
|
+
}, {
|
|
1301
|
+
readonly name: "evaluatedAt";
|
|
1302
|
+
readonly type: "uint64";
|
|
1303
|
+
readonly internalType: "uint64";
|
|
1304
|
+
}, {
|
|
1305
|
+
readonly name: "settledAt";
|
|
1306
|
+
readonly type: "uint64";
|
|
1307
|
+
readonly internalType: "uint64";
|
|
1308
|
+
}, {
|
|
1309
|
+
readonly name: "slaMinutes";
|
|
1310
|
+
readonly type: "uint32";
|
|
1311
|
+
readonly internalType: "uint32";
|
|
1312
|
+
}];
|
|
1313
|
+
}];
|
|
1314
|
+
readonly stateMutability: "view";
|
|
1315
|
+
}, {
|
|
1316
|
+
readonly type: "function";
|
|
1317
|
+
readonly name: "getJobCount";
|
|
1318
|
+
readonly inputs: readonly [];
|
|
1319
|
+
readonly outputs: readonly [{
|
|
1320
|
+
readonly name: "count";
|
|
1321
|
+
readonly type: "uint256";
|
|
1322
|
+
readonly internalType: "uint256";
|
|
1323
|
+
}];
|
|
1324
|
+
readonly stateMutability: "view";
|
|
1325
|
+
}, {
|
|
1326
|
+
readonly type: "function";
|
|
1327
|
+
readonly name: "identityRegistry";
|
|
1328
|
+
readonly inputs: readonly [];
|
|
1329
|
+
readonly outputs: readonly [{
|
|
1330
|
+
readonly name: "";
|
|
1331
|
+
readonly type: "address";
|
|
1332
|
+
readonly internalType: "contract IERC8004Identity";
|
|
1333
|
+
}];
|
|
1334
|
+
readonly stateMutability: "view";
|
|
1335
|
+
}, {
|
|
1336
|
+
readonly type: "function";
|
|
1337
|
+
readonly name: "initialize";
|
|
1338
|
+
readonly inputs: readonly [{
|
|
1339
|
+
readonly name: "owner_";
|
|
1340
|
+
readonly type: "address";
|
|
1341
|
+
readonly internalType: "address";
|
|
1342
|
+
}, {
|
|
1343
|
+
readonly name: "identityRegistry_";
|
|
1344
|
+
readonly type: "address";
|
|
1345
|
+
readonly internalType: "address";
|
|
1346
|
+
}, {
|
|
1347
|
+
readonly name: "pulseExtension_";
|
|
1348
|
+
readonly type: "address";
|
|
1349
|
+
readonly internalType: "address";
|
|
1350
|
+
}, {
|
|
1351
|
+
readonly name: "serviceMarketplace_";
|
|
1352
|
+
readonly type: "address";
|
|
1353
|
+
readonly internalType: "address";
|
|
1354
|
+
}, {
|
|
1355
|
+
readonly name: "feeDistributor_";
|
|
1356
|
+
readonly type: "address";
|
|
1357
|
+
readonly internalType: "address";
|
|
1358
|
+
}, {
|
|
1359
|
+
readonly name: "reputationRegistry_";
|
|
1360
|
+
readonly type: "address";
|
|
1361
|
+
readonly internalType: "address";
|
|
1362
|
+
}, {
|
|
1363
|
+
readonly name: "usdm_";
|
|
1364
|
+
readonly type: "address";
|
|
1365
|
+
readonly internalType: "address";
|
|
1366
|
+
}];
|
|
1367
|
+
readonly outputs: readonly [];
|
|
1368
|
+
readonly stateMutability: "nonpayable";
|
|
1369
|
+
}, {
|
|
1370
|
+
readonly type: "function";
|
|
1371
|
+
readonly name: "nonces";
|
|
1372
|
+
readonly inputs: readonly [{
|
|
1373
|
+
readonly name: "";
|
|
1374
|
+
readonly type: "address";
|
|
1375
|
+
readonly internalType: "address";
|
|
1376
|
+
}];
|
|
1377
|
+
readonly outputs: readonly [{
|
|
1378
|
+
readonly name: "";
|
|
1379
|
+
readonly type: "uint256";
|
|
1380
|
+
readonly internalType: "uint256";
|
|
1381
|
+
}];
|
|
1382
|
+
readonly stateMutability: "view";
|
|
1383
|
+
}, {
|
|
1384
|
+
readonly type: "function";
|
|
1385
|
+
readonly name: "owner";
|
|
1386
|
+
readonly inputs: readonly [];
|
|
1387
|
+
readonly outputs: readonly [{
|
|
1388
|
+
readonly name: "";
|
|
1389
|
+
readonly type: "address";
|
|
1390
|
+
readonly internalType: "address";
|
|
1391
|
+
}];
|
|
1392
|
+
readonly stateMutability: "view";
|
|
1393
|
+
}, {
|
|
1394
|
+
readonly type: "function";
|
|
1395
|
+
readonly name: "proxiableUUID";
|
|
1396
|
+
readonly inputs: readonly [];
|
|
1397
|
+
readonly outputs: readonly [{
|
|
1398
|
+
readonly name: "";
|
|
1399
|
+
readonly type: "bytes32";
|
|
1400
|
+
readonly internalType: "bytes32";
|
|
1401
|
+
}];
|
|
1402
|
+
readonly stateMutability: "view";
|
|
1403
|
+
}, {
|
|
1404
|
+
readonly type: "function";
|
|
1405
|
+
readonly name: "pulseExtension";
|
|
1406
|
+
readonly inputs: readonly [];
|
|
1407
|
+
readonly outputs: readonly [{
|
|
1408
|
+
readonly name: "";
|
|
1409
|
+
readonly type: "address";
|
|
1410
|
+
readonly internalType: "contract IPulseExtension";
|
|
1411
|
+
}];
|
|
1412
|
+
readonly stateMutability: "view";
|
|
1413
|
+
}, {
|
|
1414
|
+
readonly type: "function";
|
|
1415
|
+
readonly name: "renounceOwnership";
|
|
1416
|
+
readonly inputs: readonly [];
|
|
1417
|
+
readonly outputs: readonly [];
|
|
1418
|
+
readonly stateMutability: "nonpayable";
|
|
1419
|
+
}, {
|
|
1420
|
+
readonly type: "function";
|
|
1421
|
+
readonly name: "reputationRegistry";
|
|
1422
|
+
readonly inputs: readonly [];
|
|
1423
|
+
readonly outputs: readonly [{
|
|
1424
|
+
readonly name: "";
|
|
1425
|
+
readonly type: "address";
|
|
1426
|
+
readonly internalType: "contract IERC8004Reputation";
|
|
1427
|
+
}];
|
|
1428
|
+
readonly stateMutability: "view";
|
|
1429
|
+
}, {
|
|
1430
|
+
readonly type: "function";
|
|
1431
|
+
readonly name: "resolveDispute";
|
|
1432
|
+
readonly inputs: readonly [{
|
|
1433
|
+
readonly name: "jobId";
|
|
1434
|
+
readonly type: "uint256";
|
|
1435
|
+
readonly internalType: "uint256";
|
|
1436
|
+
}, {
|
|
1437
|
+
readonly name: "favorBuyer";
|
|
1438
|
+
readonly type: "bool";
|
|
1439
|
+
readonly internalType: "bool";
|
|
1440
|
+
}];
|
|
1441
|
+
readonly outputs: readonly [];
|
|
1442
|
+
readonly stateMutability: "nonpayable";
|
|
1443
|
+
}, {
|
|
1444
|
+
readonly type: "function";
|
|
1445
|
+
readonly name: "serviceMarketplace";
|
|
1446
|
+
readonly inputs: readonly [];
|
|
1447
|
+
readonly outputs: readonly [{
|
|
1448
|
+
readonly name: "";
|
|
1449
|
+
readonly type: "address";
|
|
1450
|
+
readonly internalType: "contract IServiceMarketplace";
|
|
1451
|
+
}];
|
|
1452
|
+
readonly stateMutability: "view";
|
|
1453
|
+
}, {
|
|
1454
|
+
readonly type: "function";
|
|
1455
|
+
readonly name: "settle";
|
|
1456
|
+
readonly inputs: readonly [{
|
|
1457
|
+
readonly name: "jobId";
|
|
1458
|
+
readonly type: "uint256";
|
|
1459
|
+
readonly internalType: "uint256";
|
|
1460
|
+
}];
|
|
1461
|
+
readonly outputs: readonly [];
|
|
1462
|
+
readonly stateMutability: "nonpayable";
|
|
1463
|
+
}, {
|
|
1464
|
+
readonly type: "function";
|
|
1465
|
+
readonly name: "submitDeliverable";
|
|
1466
|
+
readonly inputs: readonly [{
|
|
1467
|
+
readonly name: "jobId";
|
|
1468
|
+
readonly type: "uint256";
|
|
1469
|
+
readonly internalType: "uint256";
|
|
1470
|
+
}, {
|
|
1471
|
+
readonly name: "deliverableHash";
|
|
1472
|
+
readonly type: "bytes32";
|
|
1473
|
+
readonly internalType: "bytes32";
|
|
1474
|
+
}];
|
|
1475
|
+
readonly outputs: readonly [];
|
|
1476
|
+
readonly stateMutability: "nonpayable";
|
|
1477
|
+
}, {
|
|
1478
|
+
readonly type: "function";
|
|
1479
|
+
readonly name: "transferOwnership";
|
|
1480
|
+
readonly inputs: readonly [{
|
|
1481
|
+
readonly name: "newOwner";
|
|
1482
|
+
readonly type: "address";
|
|
1483
|
+
readonly internalType: "address";
|
|
1484
|
+
}];
|
|
1485
|
+
readonly outputs: readonly [];
|
|
1486
|
+
readonly stateMutability: "nonpayable";
|
|
1487
|
+
}, {
|
|
1488
|
+
readonly type: "function";
|
|
1489
|
+
readonly name: "upgradeToAndCall";
|
|
1490
|
+
readonly inputs: readonly [{
|
|
1491
|
+
readonly name: "newImplementation";
|
|
1492
|
+
readonly type: "address";
|
|
1493
|
+
readonly internalType: "address";
|
|
1494
|
+
}, {
|
|
1495
|
+
readonly name: "data";
|
|
1496
|
+
readonly type: "bytes";
|
|
1497
|
+
readonly internalType: "bytes";
|
|
1498
|
+
}];
|
|
1499
|
+
readonly outputs: readonly [];
|
|
1500
|
+
readonly stateMutability: "payable";
|
|
1501
|
+
}, {
|
|
1502
|
+
readonly type: "function";
|
|
1503
|
+
readonly name: "usdm";
|
|
1504
|
+
readonly inputs: readonly [];
|
|
1505
|
+
readonly outputs: readonly [{
|
|
1506
|
+
readonly name: "";
|
|
1507
|
+
readonly type: "address";
|
|
1508
|
+
readonly internalType: "address";
|
|
1509
|
+
}];
|
|
1510
|
+
readonly stateMutability: "view";
|
|
1511
|
+
}, {
|
|
1512
|
+
readonly type: "event";
|
|
1513
|
+
readonly name: "DeliverableSubmitted";
|
|
1514
|
+
readonly inputs: readonly [{
|
|
1515
|
+
readonly name: "jobId";
|
|
1516
|
+
readonly type: "uint256";
|
|
1517
|
+
readonly indexed: true;
|
|
1518
|
+
readonly internalType: "uint256";
|
|
1519
|
+
}, {
|
|
1520
|
+
readonly name: "deliverableHash";
|
|
1521
|
+
readonly type: "bytes32";
|
|
1522
|
+
readonly indexed: false;
|
|
1523
|
+
readonly internalType: "bytes32";
|
|
1524
|
+
}];
|
|
1525
|
+
readonly anonymous: false;
|
|
1526
|
+
}, {
|
|
1527
|
+
readonly type: "event";
|
|
1528
|
+
readonly name: "DisputeResolved";
|
|
1529
|
+
readonly inputs: readonly [{
|
|
1530
|
+
readonly name: "jobId";
|
|
1531
|
+
readonly type: "uint256";
|
|
1532
|
+
readonly indexed: true;
|
|
1533
|
+
readonly internalType: "uint256";
|
|
1534
|
+
}, {
|
|
1535
|
+
readonly name: "favorBuyer";
|
|
1536
|
+
readonly type: "bool";
|
|
1537
|
+
readonly indexed: false;
|
|
1538
|
+
readonly internalType: "bool";
|
|
1539
|
+
}];
|
|
1540
|
+
readonly anonymous: false;
|
|
1541
|
+
}, {
|
|
1542
|
+
readonly type: "event";
|
|
1543
|
+
readonly name: "EIP712DomainChanged";
|
|
1544
|
+
readonly inputs: readonly [];
|
|
1545
|
+
readonly anonymous: false;
|
|
1546
|
+
}, {
|
|
1547
|
+
readonly type: "event";
|
|
1548
|
+
readonly name: "Initialized";
|
|
1549
|
+
readonly inputs: readonly [{
|
|
1550
|
+
readonly name: "version";
|
|
1551
|
+
readonly type: "uint64";
|
|
1552
|
+
readonly indexed: false;
|
|
1553
|
+
readonly internalType: "uint64";
|
|
1554
|
+
}];
|
|
1555
|
+
readonly anonymous: false;
|
|
1556
|
+
}, {
|
|
1557
|
+
readonly type: "event";
|
|
1558
|
+
readonly name: "JobAccepted";
|
|
1559
|
+
readonly inputs: readonly [{
|
|
1560
|
+
readonly name: "jobId";
|
|
1561
|
+
readonly type: "uint256";
|
|
1562
|
+
readonly indexed: true;
|
|
1563
|
+
readonly internalType: "uint256";
|
|
1564
|
+
}, {
|
|
1565
|
+
readonly name: "providerAgentId";
|
|
1566
|
+
readonly type: "uint256";
|
|
1567
|
+
readonly indexed: true;
|
|
1568
|
+
readonly internalType: "uint256";
|
|
1569
|
+
}];
|
|
1570
|
+
readonly anonymous: false;
|
|
1571
|
+
}, {
|
|
1572
|
+
readonly type: "event";
|
|
1573
|
+
readonly name: "JobCancelled";
|
|
1574
|
+
readonly inputs: readonly [{
|
|
1575
|
+
readonly name: "jobId";
|
|
1576
|
+
readonly type: "uint256";
|
|
1577
|
+
readonly indexed: true;
|
|
1578
|
+
readonly internalType: "uint256";
|
|
1579
|
+
}, {
|
|
1580
|
+
readonly name: "previousStatus";
|
|
1581
|
+
readonly type: "uint8";
|
|
1582
|
+
readonly indexed: false;
|
|
1583
|
+
readonly internalType: "enum DataTypes.JobStatus";
|
|
1584
|
+
}];
|
|
1585
|
+
readonly anonymous: false;
|
|
1586
|
+
}, {
|
|
1587
|
+
readonly type: "event";
|
|
1588
|
+
readonly name: "JobCreated";
|
|
1589
|
+
readonly inputs: readonly [{
|
|
1590
|
+
readonly name: "jobId";
|
|
1591
|
+
readonly type: "uint256";
|
|
1592
|
+
readonly indexed: true;
|
|
1593
|
+
readonly internalType: "uint256";
|
|
1594
|
+
}, {
|
|
1595
|
+
readonly name: "offeringId";
|
|
1596
|
+
readonly type: "uint256";
|
|
1597
|
+
readonly indexed: true;
|
|
1598
|
+
readonly internalType: "uint256";
|
|
1599
|
+
}, {
|
|
1600
|
+
readonly name: "buyerAgentId";
|
|
1601
|
+
readonly type: "uint256";
|
|
1602
|
+
readonly indexed: true;
|
|
1603
|
+
readonly internalType: "uint256";
|
|
1604
|
+
}, {
|
|
1605
|
+
readonly name: "providerAgentId";
|
|
1606
|
+
readonly type: "uint256";
|
|
1607
|
+
readonly indexed: false;
|
|
1608
|
+
readonly internalType: "uint256";
|
|
1609
|
+
}, {
|
|
1610
|
+
readonly name: "priceUSDm";
|
|
1611
|
+
readonly type: "uint256";
|
|
1612
|
+
readonly indexed: false;
|
|
1613
|
+
readonly internalType: "uint256";
|
|
1614
|
+
}];
|
|
1615
|
+
readonly anonymous: false;
|
|
1616
|
+
}, {
|
|
1617
|
+
readonly type: "event";
|
|
1618
|
+
readonly name: "JobEvaluated";
|
|
1619
|
+
readonly inputs: readonly [{
|
|
1620
|
+
readonly name: "jobId";
|
|
1621
|
+
readonly type: "uint256";
|
|
1622
|
+
readonly indexed: true;
|
|
1623
|
+
readonly internalType: "uint256";
|
|
1624
|
+
}, {
|
|
1625
|
+
readonly name: "approved";
|
|
1626
|
+
readonly type: "bool";
|
|
1627
|
+
readonly indexed: false;
|
|
1628
|
+
readonly internalType: "bool";
|
|
1629
|
+
}, {
|
|
1630
|
+
readonly name: "feedback";
|
|
1631
|
+
readonly type: "string";
|
|
1632
|
+
readonly indexed: false;
|
|
1633
|
+
readonly internalType: "string";
|
|
1634
|
+
}];
|
|
1635
|
+
readonly anonymous: false;
|
|
1636
|
+
}, {
|
|
1637
|
+
readonly type: "event";
|
|
1638
|
+
readonly name: "JobSettled";
|
|
1639
|
+
readonly inputs: readonly [{
|
|
1640
|
+
readonly name: "jobId";
|
|
1641
|
+
readonly type: "uint256";
|
|
1642
|
+
readonly indexed: true;
|
|
1643
|
+
readonly internalType: "uint256";
|
|
1644
|
+
}, {
|
|
1645
|
+
readonly name: "providerAmount";
|
|
1646
|
+
readonly type: "uint256";
|
|
1647
|
+
readonly indexed: false;
|
|
1648
|
+
readonly internalType: "uint256";
|
|
1649
|
+
}, {
|
|
1650
|
+
readonly name: "feeAmount";
|
|
1651
|
+
readonly type: "uint256";
|
|
1652
|
+
readonly indexed: false;
|
|
1653
|
+
readonly internalType: "uint256";
|
|
1654
|
+
}];
|
|
1655
|
+
readonly anonymous: false;
|
|
1656
|
+
}, {
|
|
1657
|
+
readonly type: "event";
|
|
1658
|
+
readonly name: "OwnershipTransferred";
|
|
1659
|
+
readonly inputs: readonly [{
|
|
1660
|
+
readonly name: "previousOwner";
|
|
1661
|
+
readonly type: "address";
|
|
1662
|
+
readonly indexed: true;
|
|
1663
|
+
readonly internalType: "address";
|
|
1664
|
+
}, {
|
|
1665
|
+
readonly name: "newOwner";
|
|
1666
|
+
readonly type: "address";
|
|
1667
|
+
readonly indexed: true;
|
|
1668
|
+
readonly internalType: "address";
|
|
1669
|
+
}];
|
|
1670
|
+
readonly anonymous: false;
|
|
1671
|
+
}, {
|
|
1672
|
+
readonly type: "event";
|
|
1673
|
+
readonly name: "Upgraded";
|
|
1674
|
+
readonly inputs: readonly [{
|
|
1675
|
+
readonly name: "implementation";
|
|
1676
|
+
readonly type: "address";
|
|
1677
|
+
readonly indexed: true;
|
|
1678
|
+
readonly internalType: "address";
|
|
1679
|
+
}];
|
|
1680
|
+
readonly anonymous: false;
|
|
1681
|
+
}, {
|
|
1682
|
+
readonly type: "error";
|
|
1683
|
+
readonly name: "AddressEmptyCode";
|
|
1684
|
+
readonly inputs: readonly [{
|
|
1685
|
+
readonly name: "target";
|
|
1686
|
+
readonly type: "address";
|
|
1687
|
+
readonly internalType: "address";
|
|
1688
|
+
}];
|
|
1689
|
+
}, {
|
|
1690
|
+
readonly type: "error";
|
|
1691
|
+
readonly name: "AgentNotActive";
|
|
1692
|
+
readonly inputs: readonly [];
|
|
1693
|
+
}, {
|
|
1694
|
+
readonly type: "error";
|
|
1695
|
+
readonly name: "ERC1967InvalidImplementation";
|
|
1696
|
+
readonly inputs: readonly [{
|
|
1697
|
+
readonly name: "implementation";
|
|
1698
|
+
readonly type: "address";
|
|
1699
|
+
readonly internalType: "address";
|
|
1700
|
+
}];
|
|
1701
|
+
}, {
|
|
1702
|
+
readonly type: "error";
|
|
1703
|
+
readonly name: "ERC1967NonPayable";
|
|
1704
|
+
readonly inputs: readonly [];
|
|
1705
|
+
}, {
|
|
1706
|
+
readonly type: "error";
|
|
1707
|
+
readonly name: "FailedCall";
|
|
1708
|
+
readonly inputs: readonly [];
|
|
1709
|
+
}, {
|
|
1710
|
+
readonly type: "error";
|
|
1711
|
+
readonly name: "InvalidInitialization";
|
|
1712
|
+
readonly inputs: readonly [];
|
|
1713
|
+
}, {
|
|
1714
|
+
readonly type: "error";
|
|
1715
|
+
readonly name: "InvalidJobStatus";
|
|
1716
|
+
readonly inputs: readonly [{
|
|
1717
|
+
readonly name: "current";
|
|
1718
|
+
readonly type: "uint8";
|
|
1719
|
+
readonly internalType: "enum DataTypes.JobStatus";
|
|
1720
|
+
}, {
|
|
1721
|
+
readonly name: "expected";
|
|
1722
|
+
readonly type: "uint8";
|
|
1723
|
+
readonly internalType: "enum DataTypes.JobStatus";
|
|
1724
|
+
}];
|
|
1725
|
+
}, {
|
|
1726
|
+
readonly type: "error";
|
|
1727
|
+
readonly name: "InvalidSignature";
|
|
1728
|
+
readonly inputs: readonly [];
|
|
1729
|
+
}, {
|
|
1730
|
+
readonly type: "error";
|
|
1731
|
+
readonly name: "JobNotFound";
|
|
1732
|
+
readonly inputs: readonly [];
|
|
1733
|
+
}, {
|
|
1734
|
+
readonly type: "error";
|
|
1735
|
+
readonly name: "NotAgentOwnerOrOperator";
|
|
1736
|
+
readonly inputs: readonly [];
|
|
1737
|
+
}, {
|
|
1738
|
+
readonly type: "error";
|
|
1739
|
+
readonly name: "NotInitializing";
|
|
1740
|
+
readonly inputs: readonly [];
|
|
1741
|
+
}, {
|
|
1742
|
+
readonly type: "error";
|
|
1743
|
+
readonly name: "OfferingNotActive";
|
|
1744
|
+
readonly inputs: readonly [];
|
|
1745
|
+
}, {
|
|
1746
|
+
readonly type: "error";
|
|
1747
|
+
readonly name: "OwnableInvalidOwner";
|
|
1748
|
+
readonly inputs: readonly [{
|
|
1749
|
+
readonly name: "owner";
|
|
1750
|
+
readonly type: "address";
|
|
1751
|
+
readonly internalType: "address";
|
|
1752
|
+
}];
|
|
1753
|
+
}, {
|
|
1754
|
+
readonly type: "error";
|
|
1755
|
+
readonly name: "OwnableUnauthorizedAccount";
|
|
1756
|
+
readonly inputs: readonly [{
|
|
1757
|
+
readonly name: "account";
|
|
1758
|
+
readonly type: "address";
|
|
1759
|
+
readonly internalType: "address";
|
|
1760
|
+
}];
|
|
1761
|
+
}, {
|
|
1762
|
+
readonly type: "error";
|
|
1763
|
+
readonly name: "SelfService";
|
|
1764
|
+
readonly inputs: readonly [];
|
|
1765
|
+
}, {
|
|
1766
|
+
readonly type: "error";
|
|
1767
|
+
readonly name: "TimeoutNotReached";
|
|
1768
|
+
readonly inputs: readonly [];
|
|
1769
|
+
}, {
|
|
1770
|
+
readonly type: "error";
|
|
1771
|
+
readonly name: "UUPSUnauthorizedCallContext";
|
|
1772
|
+
readonly inputs: readonly [];
|
|
1773
|
+
}, {
|
|
1774
|
+
readonly type: "error";
|
|
1775
|
+
readonly name: "UUPSUnsupportedProxiableUUID";
|
|
1776
|
+
readonly inputs: readonly [{
|
|
1777
|
+
readonly name: "slot";
|
|
1778
|
+
readonly type: "bytes32";
|
|
1779
|
+
readonly internalType: "bytes32";
|
|
1780
|
+
}];
|
|
1781
|
+
}, {
|
|
1782
|
+
readonly type: "error";
|
|
1783
|
+
readonly name: "ZeroAddress";
|
|
1784
|
+
readonly inputs: readonly [];
|
|
1785
|
+
}];
|
|
1786
|
+
|
|
1787
|
+
declare const feeDistributorAbi: readonly [{
|
|
1788
|
+
readonly type: "constructor";
|
|
1789
|
+
readonly inputs: readonly [];
|
|
1790
|
+
readonly stateMutability: "nonpayable";
|
|
1791
|
+
}, {
|
|
1792
|
+
readonly type: "function";
|
|
1793
|
+
readonly name: "RISK_POOL_BPS";
|
|
1794
|
+
readonly inputs: readonly [];
|
|
1795
|
+
readonly outputs: readonly [{
|
|
1796
|
+
readonly name: "";
|
|
1797
|
+
readonly type: "uint256";
|
|
1798
|
+
readonly internalType: "uint256";
|
|
1799
|
+
}];
|
|
1800
|
+
readonly stateMutability: "view";
|
|
1801
|
+
}, {
|
|
1802
|
+
readonly type: "function";
|
|
1803
|
+
readonly name: "TREASURY_BPS";
|
|
1804
|
+
readonly inputs: readonly [];
|
|
1805
|
+
readonly outputs: readonly [{
|
|
1806
|
+
readonly name: "";
|
|
1807
|
+
readonly type: "uint256";
|
|
1808
|
+
readonly internalType: "uint256";
|
|
1809
|
+
}];
|
|
1810
|
+
readonly stateMutability: "view";
|
|
1811
|
+
}, {
|
|
1812
|
+
readonly type: "function";
|
|
1813
|
+
readonly name: "UPGRADE_INTERFACE_VERSION";
|
|
1814
|
+
readonly inputs: readonly [];
|
|
1815
|
+
readonly outputs: readonly [{
|
|
1816
|
+
readonly name: "";
|
|
1817
|
+
readonly type: "string";
|
|
1818
|
+
readonly internalType: "string";
|
|
1819
|
+
}];
|
|
1820
|
+
readonly stateMutability: "view";
|
|
1821
|
+
}, {
|
|
1822
|
+
readonly type: "function";
|
|
1823
|
+
readonly name: "distribute";
|
|
1824
|
+
readonly inputs: readonly [{
|
|
1825
|
+
readonly name: "token";
|
|
1826
|
+
readonly type: "address";
|
|
1827
|
+
readonly internalType: "address";
|
|
1828
|
+
}, {
|
|
1829
|
+
readonly name: "amount";
|
|
1830
|
+
readonly type: "uint256";
|
|
1831
|
+
readonly internalType: "uint256";
|
|
1832
|
+
}];
|
|
1833
|
+
readonly outputs: readonly [];
|
|
1834
|
+
readonly stateMutability: "nonpayable";
|
|
1835
|
+
}, {
|
|
1836
|
+
readonly type: "function";
|
|
1837
|
+
readonly name: "initialize";
|
|
1838
|
+
readonly inputs: readonly [{
|
|
1839
|
+
readonly name: "owner_";
|
|
1840
|
+
readonly type: "address";
|
|
1841
|
+
readonly internalType: "address";
|
|
1842
|
+
}, {
|
|
1843
|
+
readonly name: "treasury_";
|
|
1844
|
+
readonly type: "address";
|
|
1845
|
+
readonly internalType: "address";
|
|
1846
|
+
}, {
|
|
1847
|
+
readonly name: "riskPool_";
|
|
1848
|
+
readonly type: "address";
|
|
1849
|
+
readonly internalType: "address";
|
|
1850
|
+
}];
|
|
1851
|
+
readonly outputs: readonly [];
|
|
1852
|
+
readonly stateMutability: "nonpayable";
|
|
1853
|
+
}, {
|
|
1854
|
+
readonly type: "function";
|
|
1855
|
+
readonly name: "owner";
|
|
1856
|
+
readonly inputs: readonly [];
|
|
1857
|
+
readonly outputs: readonly [{
|
|
1858
|
+
readonly name: "";
|
|
1859
|
+
readonly type: "address";
|
|
1860
|
+
readonly internalType: "address";
|
|
1861
|
+
}];
|
|
1862
|
+
readonly stateMutability: "view";
|
|
1863
|
+
}, {
|
|
1864
|
+
readonly type: "function";
|
|
1865
|
+
readonly name: "proxiableUUID";
|
|
1866
|
+
readonly inputs: readonly [];
|
|
1867
|
+
readonly outputs: readonly [{
|
|
1868
|
+
readonly name: "";
|
|
1869
|
+
readonly type: "bytes32";
|
|
1870
|
+
readonly internalType: "bytes32";
|
|
1871
|
+
}];
|
|
1872
|
+
readonly stateMutability: "view";
|
|
1873
|
+
}, {
|
|
1874
|
+
readonly type: "function";
|
|
1875
|
+
readonly name: "renounceOwnership";
|
|
1876
|
+
readonly inputs: readonly [];
|
|
1877
|
+
readonly outputs: readonly [];
|
|
1878
|
+
readonly stateMutability: "nonpayable";
|
|
1879
|
+
}, {
|
|
1880
|
+
readonly type: "function";
|
|
1881
|
+
readonly name: "riskPool";
|
|
1882
|
+
readonly inputs: readonly [];
|
|
1883
|
+
readonly outputs: readonly [{
|
|
1884
|
+
readonly name: "";
|
|
1885
|
+
readonly type: "address";
|
|
1886
|
+
readonly internalType: "address";
|
|
1887
|
+
}];
|
|
1888
|
+
readonly stateMutability: "view";
|
|
1889
|
+
}, {
|
|
1890
|
+
readonly type: "function";
|
|
1891
|
+
readonly name: "setRiskPool";
|
|
1892
|
+
readonly inputs: readonly [{
|
|
1893
|
+
readonly name: "newRiskPool";
|
|
1894
|
+
readonly type: "address";
|
|
1895
|
+
readonly internalType: "address";
|
|
1896
|
+
}];
|
|
1897
|
+
readonly outputs: readonly [];
|
|
1898
|
+
readonly stateMutability: "nonpayable";
|
|
1899
|
+
}, {
|
|
1900
|
+
readonly type: "function";
|
|
1901
|
+
readonly name: "setTreasury";
|
|
1902
|
+
readonly inputs: readonly [{
|
|
1903
|
+
readonly name: "newTreasury";
|
|
1904
|
+
readonly type: "address";
|
|
1905
|
+
readonly internalType: "address";
|
|
1906
|
+
}];
|
|
1907
|
+
readonly outputs: readonly [];
|
|
1908
|
+
readonly stateMutability: "nonpayable";
|
|
1909
|
+
}, {
|
|
1910
|
+
readonly type: "function";
|
|
1911
|
+
readonly name: "transferOwnership";
|
|
1912
|
+
readonly inputs: readonly [{
|
|
1913
|
+
readonly name: "newOwner";
|
|
1914
|
+
readonly type: "address";
|
|
1915
|
+
readonly internalType: "address";
|
|
1916
|
+
}];
|
|
1917
|
+
readonly outputs: readonly [];
|
|
1918
|
+
readonly stateMutability: "nonpayable";
|
|
1919
|
+
}, {
|
|
1920
|
+
readonly type: "function";
|
|
1921
|
+
readonly name: "treasury";
|
|
1922
|
+
readonly inputs: readonly [];
|
|
1923
|
+
readonly outputs: readonly [{
|
|
1924
|
+
readonly name: "";
|
|
1925
|
+
readonly type: "address";
|
|
1926
|
+
readonly internalType: "address";
|
|
1927
|
+
}];
|
|
1928
|
+
readonly stateMutability: "view";
|
|
1929
|
+
}, {
|
|
1930
|
+
readonly type: "function";
|
|
1931
|
+
readonly name: "upgradeToAndCall";
|
|
1932
|
+
readonly inputs: readonly [{
|
|
1933
|
+
readonly name: "newImplementation";
|
|
1934
|
+
readonly type: "address";
|
|
1935
|
+
readonly internalType: "address";
|
|
1936
|
+
}, {
|
|
1937
|
+
readonly name: "data";
|
|
1938
|
+
readonly type: "bytes";
|
|
1939
|
+
readonly internalType: "bytes";
|
|
1940
|
+
}];
|
|
1941
|
+
readonly outputs: readonly [];
|
|
1942
|
+
readonly stateMutability: "payable";
|
|
1943
|
+
}, {
|
|
1944
|
+
readonly type: "event";
|
|
1945
|
+
readonly name: "FeeDistributed";
|
|
1946
|
+
readonly inputs: readonly [{
|
|
1947
|
+
readonly name: "token";
|
|
1948
|
+
readonly type: "address";
|
|
1949
|
+
readonly indexed: true;
|
|
1950
|
+
readonly internalType: "address";
|
|
1951
|
+
}, {
|
|
1952
|
+
readonly name: "treasuryAmount";
|
|
1953
|
+
readonly type: "uint256";
|
|
1954
|
+
readonly indexed: false;
|
|
1955
|
+
readonly internalType: "uint256";
|
|
1956
|
+
}, {
|
|
1957
|
+
readonly name: "riskPoolAmount";
|
|
1958
|
+
readonly type: "uint256";
|
|
1959
|
+
readonly indexed: false;
|
|
1960
|
+
readonly internalType: "uint256";
|
|
1961
|
+
}];
|
|
1962
|
+
readonly anonymous: false;
|
|
1963
|
+
}, {
|
|
1964
|
+
readonly type: "event";
|
|
1965
|
+
readonly name: "Initialized";
|
|
1966
|
+
readonly inputs: readonly [{
|
|
1967
|
+
readonly name: "version";
|
|
1968
|
+
readonly type: "uint64";
|
|
1969
|
+
readonly indexed: false;
|
|
1970
|
+
readonly internalType: "uint64";
|
|
1971
|
+
}];
|
|
1972
|
+
readonly anonymous: false;
|
|
1973
|
+
}, {
|
|
1974
|
+
readonly type: "event";
|
|
1975
|
+
readonly name: "OwnershipTransferred";
|
|
1976
|
+
readonly inputs: readonly [{
|
|
1977
|
+
readonly name: "previousOwner";
|
|
1978
|
+
readonly type: "address";
|
|
1979
|
+
readonly indexed: true;
|
|
1980
|
+
readonly internalType: "address";
|
|
1981
|
+
}, {
|
|
1982
|
+
readonly name: "newOwner";
|
|
1983
|
+
readonly type: "address";
|
|
1984
|
+
readonly indexed: true;
|
|
1985
|
+
readonly internalType: "address";
|
|
1986
|
+
}];
|
|
1987
|
+
readonly anonymous: false;
|
|
1988
|
+
}, {
|
|
1989
|
+
readonly type: "event";
|
|
1990
|
+
readonly name: "RiskPoolUpdated";
|
|
1991
|
+
readonly inputs: readonly [{
|
|
1992
|
+
readonly name: "newRiskPool";
|
|
1993
|
+
readonly type: "address";
|
|
1994
|
+
readonly indexed: true;
|
|
1995
|
+
readonly internalType: "address";
|
|
1996
|
+
}];
|
|
1997
|
+
readonly anonymous: false;
|
|
1998
|
+
}, {
|
|
1999
|
+
readonly type: "event";
|
|
2000
|
+
readonly name: "TreasuryUpdated";
|
|
2001
|
+
readonly inputs: readonly [{
|
|
2002
|
+
readonly name: "newTreasury";
|
|
2003
|
+
readonly type: "address";
|
|
2004
|
+
readonly indexed: true;
|
|
2005
|
+
readonly internalType: "address";
|
|
2006
|
+
}];
|
|
2007
|
+
readonly anonymous: false;
|
|
2008
|
+
}, {
|
|
2009
|
+
readonly type: "event";
|
|
2010
|
+
readonly name: "Upgraded";
|
|
2011
|
+
readonly inputs: readonly [{
|
|
2012
|
+
readonly name: "implementation";
|
|
2013
|
+
readonly type: "address";
|
|
2014
|
+
readonly indexed: true;
|
|
2015
|
+
readonly internalType: "address";
|
|
2016
|
+
}];
|
|
2017
|
+
readonly anonymous: false;
|
|
2018
|
+
}, {
|
|
2019
|
+
readonly type: "error";
|
|
2020
|
+
readonly name: "AddressEmptyCode";
|
|
2021
|
+
readonly inputs: readonly [{
|
|
2022
|
+
readonly name: "target";
|
|
2023
|
+
readonly type: "address";
|
|
2024
|
+
readonly internalType: "address";
|
|
2025
|
+
}];
|
|
2026
|
+
}, {
|
|
2027
|
+
readonly type: "error";
|
|
2028
|
+
readonly name: "ERC1967InvalidImplementation";
|
|
2029
|
+
readonly inputs: readonly [{
|
|
2030
|
+
readonly name: "implementation";
|
|
2031
|
+
readonly type: "address";
|
|
2032
|
+
readonly internalType: "address";
|
|
2033
|
+
}];
|
|
2034
|
+
}, {
|
|
2035
|
+
readonly type: "error";
|
|
2036
|
+
readonly name: "ERC1967NonPayable";
|
|
2037
|
+
readonly inputs: readonly [];
|
|
2038
|
+
}, {
|
|
2039
|
+
readonly type: "error";
|
|
2040
|
+
readonly name: "FailedCall";
|
|
2041
|
+
readonly inputs: readonly [];
|
|
2042
|
+
}, {
|
|
2043
|
+
readonly type: "error";
|
|
2044
|
+
readonly name: "InvalidInitialization";
|
|
2045
|
+
readonly inputs: readonly [];
|
|
2046
|
+
}, {
|
|
2047
|
+
readonly type: "error";
|
|
2048
|
+
readonly name: "NotInitializing";
|
|
2049
|
+
readonly inputs: readonly [];
|
|
2050
|
+
}, {
|
|
2051
|
+
readonly type: "error";
|
|
2052
|
+
readonly name: "OwnableInvalidOwner";
|
|
2053
|
+
readonly inputs: readonly [{
|
|
2054
|
+
readonly name: "owner";
|
|
2055
|
+
readonly type: "address";
|
|
2056
|
+
readonly internalType: "address";
|
|
2057
|
+
}];
|
|
2058
|
+
}, {
|
|
2059
|
+
readonly type: "error";
|
|
2060
|
+
readonly name: "OwnableUnauthorizedAccount";
|
|
2061
|
+
readonly inputs: readonly [{
|
|
2062
|
+
readonly name: "account";
|
|
2063
|
+
readonly type: "address";
|
|
2064
|
+
readonly internalType: "address";
|
|
2065
|
+
}];
|
|
2066
|
+
}, {
|
|
2067
|
+
readonly type: "error";
|
|
2068
|
+
readonly name: "UUPSUnauthorizedCallContext";
|
|
2069
|
+
readonly inputs: readonly [];
|
|
2070
|
+
}, {
|
|
2071
|
+
readonly type: "error";
|
|
2072
|
+
readonly name: "UUPSUnsupportedProxiableUUID";
|
|
2073
|
+
readonly inputs: readonly [{
|
|
2074
|
+
readonly name: "slot";
|
|
2075
|
+
readonly type: "bytes32";
|
|
2076
|
+
readonly internalType: "bytes32";
|
|
2077
|
+
}];
|
|
2078
|
+
}, {
|
|
2079
|
+
readonly type: "error";
|
|
2080
|
+
readonly name: "ZeroAddress";
|
|
2081
|
+
readonly inputs: readonly [];
|
|
2082
|
+
}];
|
|
2083
|
+
|
|
2084
|
+
declare const erc8004IdentityAbi: readonly [{
|
|
2085
|
+
readonly type: "function";
|
|
2086
|
+
readonly name: "approve";
|
|
2087
|
+
readonly inputs: readonly [{
|
|
2088
|
+
readonly name: "to";
|
|
2089
|
+
readonly type: "address";
|
|
2090
|
+
readonly internalType: "address";
|
|
2091
|
+
}, {
|
|
2092
|
+
readonly name: "tokenId";
|
|
2093
|
+
readonly type: "uint256";
|
|
2094
|
+
readonly internalType: "uint256";
|
|
2095
|
+
}];
|
|
2096
|
+
readonly outputs: readonly [];
|
|
2097
|
+
readonly stateMutability: "nonpayable";
|
|
2098
|
+
}, {
|
|
2099
|
+
readonly type: "function";
|
|
2100
|
+
readonly name: "balanceOf";
|
|
2101
|
+
readonly inputs: readonly [{
|
|
2102
|
+
readonly name: "owner";
|
|
2103
|
+
readonly type: "address";
|
|
2104
|
+
readonly internalType: "address";
|
|
2105
|
+
}];
|
|
2106
|
+
readonly outputs: readonly [{
|
|
2107
|
+
readonly name: "balance";
|
|
2108
|
+
readonly type: "uint256";
|
|
2109
|
+
readonly internalType: "uint256";
|
|
2110
|
+
}];
|
|
2111
|
+
readonly stateMutability: "view";
|
|
2112
|
+
}, {
|
|
2113
|
+
readonly type: "function";
|
|
2114
|
+
readonly name: "getAgentWallet";
|
|
2115
|
+
readonly inputs: readonly [{
|
|
2116
|
+
readonly name: "agentId";
|
|
2117
|
+
readonly type: "uint256";
|
|
2118
|
+
readonly internalType: "uint256";
|
|
2119
|
+
}];
|
|
2120
|
+
readonly outputs: readonly [{
|
|
2121
|
+
readonly name: "";
|
|
2122
|
+
readonly type: "address";
|
|
2123
|
+
readonly internalType: "address";
|
|
2124
|
+
}];
|
|
2125
|
+
readonly stateMutability: "view";
|
|
2126
|
+
}, {
|
|
2127
|
+
readonly type: "function";
|
|
2128
|
+
readonly name: "getApproved";
|
|
2129
|
+
readonly inputs: readonly [{
|
|
2130
|
+
readonly name: "tokenId";
|
|
2131
|
+
readonly type: "uint256";
|
|
2132
|
+
readonly internalType: "uint256";
|
|
2133
|
+
}];
|
|
2134
|
+
readonly outputs: readonly [{
|
|
2135
|
+
readonly name: "operator";
|
|
2136
|
+
readonly type: "address";
|
|
2137
|
+
readonly internalType: "address";
|
|
2138
|
+
}];
|
|
2139
|
+
readonly stateMutability: "view";
|
|
2140
|
+
}, {
|
|
2141
|
+
readonly type: "function";
|
|
2142
|
+
readonly name: "getMetadata";
|
|
2143
|
+
readonly inputs: readonly [{
|
|
2144
|
+
readonly name: "agentId";
|
|
2145
|
+
readonly type: "uint256";
|
|
2146
|
+
readonly internalType: "uint256";
|
|
2147
|
+
}, {
|
|
2148
|
+
readonly name: "metadataKey";
|
|
2149
|
+
readonly type: "string";
|
|
2150
|
+
readonly internalType: "string";
|
|
2151
|
+
}];
|
|
2152
|
+
readonly outputs: readonly [{
|
|
2153
|
+
readonly name: "";
|
|
2154
|
+
readonly type: "bytes";
|
|
2155
|
+
readonly internalType: "bytes";
|
|
2156
|
+
}];
|
|
2157
|
+
readonly stateMutability: "view";
|
|
2158
|
+
}, {
|
|
2159
|
+
readonly type: "function";
|
|
2160
|
+
readonly name: "isApprovedForAll";
|
|
2161
|
+
readonly inputs: readonly [{
|
|
2162
|
+
readonly name: "owner";
|
|
2163
|
+
readonly type: "address";
|
|
2164
|
+
readonly internalType: "address";
|
|
2165
|
+
}, {
|
|
2166
|
+
readonly name: "operator";
|
|
2167
|
+
readonly type: "address";
|
|
2168
|
+
readonly internalType: "address";
|
|
2169
|
+
}];
|
|
2170
|
+
readonly outputs: readonly [{
|
|
2171
|
+
readonly name: "";
|
|
2172
|
+
readonly type: "bool";
|
|
2173
|
+
readonly internalType: "bool";
|
|
2174
|
+
}];
|
|
2175
|
+
readonly stateMutability: "view";
|
|
2176
|
+
}, {
|
|
2177
|
+
readonly type: "function";
|
|
2178
|
+
readonly name: "ownerOf";
|
|
2179
|
+
readonly inputs: readonly [{
|
|
2180
|
+
readonly name: "tokenId";
|
|
2181
|
+
readonly type: "uint256";
|
|
2182
|
+
readonly internalType: "uint256";
|
|
2183
|
+
}];
|
|
2184
|
+
readonly outputs: readonly [{
|
|
2185
|
+
readonly name: "owner";
|
|
2186
|
+
readonly type: "address";
|
|
2187
|
+
readonly internalType: "address";
|
|
2188
|
+
}];
|
|
2189
|
+
readonly stateMutability: "view";
|
|
2190
|
+
}, {
|
|
2191
|
+
readonly type: "function";
|
|
2192
|
+
readonly name: "register";
|
|
2193
|
+
readonly inputs: readonly [];
|
|
2194
|
+
readonly outputs: readonly [{
|
|
2195
|
+
readonly name: "agentId";
|
|
2196
|
+
readonly type: "uint256";
|
|
2197
|
+
readonly internalType: "uint256";
|
|
2198
|
+
}];
|
|
2199
|
+
readonly stateMutability: "nonpayable";
|
|
2200
|
+
}, {
|
|
2201
|
+
readonly type: "function";
|
|
2202
|
+
readonly name: "register";
|
|
2203
|
+
readonly inputs: readonly [{
|
|
2204
|
+
readonly name: "agentURI";
|
|
2205
|
+
readonly type: "string";
|
|
2206
|
+
readonly internalType: "string";
|
|
2207
|
+
}, {
|
|
2208
|
+
readonly name: "metadata";
|
|
2209
|
+
readonly type: "tuple[]";
|
|
2210
|
+
readonly internalType: "struct IERC8004Identity.MetadataEntry[]";
|
|
2211
|
+
readonly components: readonly [{
|
|
2212
|
+
readonly name: "key";
|
|
2213
|
+
readonly type: "string";
|
|
2214
|
+
readonly internalType: "string";
|
|
2215
|
+
}, {
|
|
2216
|
+
readonly name: "value";
|
|
2217
|
+
readonly type: "bytes";
|
|
2218
|
+
readonly internalType: "bytes";
|
|
2219
|
+
}];
|
|
2220
|
+
}];
|
|
2221
|
+
readonly outputs: readonly [{
|
|
2222
|
+
readonly name: "agentId";
|
|
2223
|
+
readonly type: "uint256";
|
|
2224
|
+
readonly internalType: "uint256";
|
|
2225
|
+
}];
|
|
2226
|
+
readonly stateMutability: "nonpayable";
|
|
2227
|
+
}, {
|
|
2228
|
+
readonly type: "function";
|
|
2229
|
+
readonly name: "register";
|
|
2230
|
+
readonly inputs: readonly [{
|
|
2231
|
+
readonly name: "agentURI";
|
|
2232
|
+
readonly type: "string";
|
|
2233
|
+
readonly internalType: "string";
|
|
2234
|
+
}];
|
|
2235
|
+
readonly outputs: readonly [{
|
|
2236
|
+
readonly name: "agentId";
|
|
2237
|
+
readonly type: "uint256";
|
|
2238
|
+
readonly internalType: "uint256";
|
|
2239
|
+
}];
|
|
2240
|
+
readonly stateMutability: "nonpayable";
|
|
2241
|
+
}, {
|
|
2242
|
+
readonly type: "function";
|
|
2243
|
+
readonly name: "safeTransferFrom";
|
|
2244
|
+
readonly inputs: readonly [{
|
|
2245
|
+
readonly name: "from";
|
|
2246
|
+
readonly type: "address";
|
|
2247
|
+
readonly internalType: "address";
|
|
2248
|
+
}, {
|
|
2249
|
+
readonly name: "to";
|
|
2250
|
+
readonly type: "address";
|
|
2251
|
+
readonly internalType: "address";
|
|
2252
|
+
}, {
|
|
2253
|
+
readonly name: "tokenId";
|
|
2254
|
+
readonly type: "uint256";
|
|
2255
|
+
readonly internalType: "uint256";
|
|
2256
|
+
}];
|
|
2257
|
+
readonly outputs: readonly [];
|
|
2258
|
+
readonly stateMutability: "nonpayable";
|
|
2259
|
+
}, {
|
|
2260
|
+
readonly type: "function";
|
|
2261
|
+
readonly name: "safeTransferFrom";
|
|
2262
|
+
readonly inputs: readonly [{
|
|
2263
|
+
readonly name: "from";
|
|
2264
|
+
readonly type: "address";
|
|
2265
|
+
readonly internalType: "address";
|
|
2266
|
+
}, {
|
|
2267
|
+
readonly name: "to";
|
|
2268
|
+
readonly type: "address";
|
|
2269
|
+
readonly internalType: "address";
|
|
2270
|
+
}, {
|
|
2271
|
+
readonly name: "tokenId";
|
|
2272
|
+
readonly type: "uint256";
|
|
2273
|
+
readonly internalType: "uint256";
|
|
2274
|
+
}, {
|
|
2275
|
+
readonly name: "data";
|
|
2276
|
+
readonly type: "bytes";
|
|
2277
|
+
readonly internalType: "bytes";
|
|
2278
|
+
}];
|
|
2279
|
+
readonly outputs: readonly [];
|
|
2280
|
+
readonly stateMutability: "nonpayable";
|
|
2281
|
+
}, {
|
|
2282
|
+
readonly type: "function";
|
|
2283
|
+
readonly name: "setAgentURI";
|
|
2284
|
+
readonly inputs: readonly [{
|
|
2285
|
+
readonly name: "agentId";
|
|
2286
|
+
readonly type: "uint256";
|
|
2287
|
+
readonly internalType: "uint256";
|
|
2288
|
+
}, {
|
|
2289
|
+
readonly name: "newURI";
|
|
2290
|
+
readonly type: "string";
|
|
2291
|
+
readonly internalType: "string";
|
|
2292
|
+
}];
|
|
2293
|
+
readonly outputs: readonly [];
|
|
2294
|
+
readonly stateMutability: "nonpayable";
|
|
2295
|
+
}, {
|
|
2296
|
+
readonly type: "function";
|
|
2297
|
+
readonly name: "setAgentWallet";
|
|
2298
|
+
readonly inputs: readonly [{
|
|
2299
|
+
readonly name: "agentId";
|
|
2300
|
+
readonly type: "uint256";
|
|
2301
|
+
readonly internalType: "uint256";
|
|
2302
|
+
}, {
|
|
2303
|
+
readonly name: "newWallet";
|
|
2304
|
+
readonly type: "address";
|
|
2305
|
+
readonly internalType: "address";
|
|
2306
|
+
}, {
|
|
2307
|
+
readonly name: "deadline";
|
|
2308
|
+
readonly type: "uint256";
|
|
2309
|
+
readonly internalType: "uint256";
|
|
2310
|
+
}, {
|
|
2311
|
+
readonly name: "signature";
|
|
2312
|
+
readonly type: "bytes";
|
|
2313
|
+
readonly internalType: "bytes";
|
|
2314
|
+
}];
|
|
2315
|
+
readonly outputs: readonly [];
|
|
2316
|
+
readonly stateMutability: "nonpayable";
|
|
2317
|
+
}, {
|
|
2318
|
+
readonly type: "function";
|
|
2319
|
+
readonly name: "setApprovalForAll";
|
|
2320
|
+
readonly inputs: readonly [{
|
|
2321
|
+
readonly name: "operator";
|
|
2322
|
+
readonly type: "address";
|
|
2323
|
+
readonly internalType: "address";
|
|
2324
|
+
}, {
|
|
2325
|
+
readonly name: "approved";
|
|
2326
|
+
readonly type: "bool";
|
|
2327
|
+
readonly internalType: "bool";
|
|
2328
|
+
}];
|
|
2329
|
+
readonly outputs: readonly [];
|
|
2330
|
+
readonly stateMutability: "nonpayable";
|
|
2331
|
+
}, {
|
|
2332
|
+
readonly type: "function";
|
|
2333
|
+
readonly name: "setMetadata";
|
|
2334
|
+
readonly inputs: readonly [{
|
|
2335
|
+
readonly name: "agentId";
|
|
2336
|
+
readonly type: "uint256";
|
|
2337
|
+
readonly internalType: "uint256";
|
|
2338
|
+
}, {
|
|
2339
|
+
readonly name: "metadataKey";
|
|
2340
|
+
readonly type: "string";
|
|
2341
|
+
readonly internalType: "string";
|
|
2342
|
+
}, {
|
|
2343
|
+
readonly name: "metadataValue";
|
|
2344
|
+
readonly type: "bytes";
|
|
2345
|
+
readonly internalType: "bytes";
|
|
2346
|
+
}];
|
|
2347
|
+
readonly outputs: readonly [];
|
|
2348
|
+
readonly stateMutability: "nonpayable";
|
|
2349
|
+
}, {
|
|
2350
|
+
readonly type: "function";
|
|
2351
|
+
readonly name: "supportsInterface";
|
|
2352
|
+
readonly inputs: readonly [{
|
|
2353
|
+
readonly name: "interfaceId";
|
|
2354
|
+
readonly type: "bytes4";
|
|
2355
|
+
readonly internalType: "bytes4";
|
|
2356
|
+
}];
|
|
2357
|
+
readonly outputs: readonly [{
|
|
2358
|
+
readonly name: "";
|
|
2359
|
+
readonly type: "bool";
|
|
2360
|
+
readonly internalType: "bool";
|
|
2361
|
+
}];
|
|
2362
|
+
readonly stateMutability: "view";
|
|
2363
|
+
}, {
|
|
2364
|
+
readonly type: "function";
|
|
2365
|
+
readonly name: "transferFrom";
|
|
2366
|
+
readonly inputs: readonly [{
|
|
2367
|
+
readonly name: "from";
|
|
2368
|
+
readonly type: "address";
|
|
2369
|
+
readonly internalType: "address";
|
|
2370
|
+
}, {
|
|
2371
|
+
readonly name: "to";
|
|
2372
|
+
readonly type: "address";
|
|
2373
|
+
readonly internalType: "address";
|
|
2374
|
+
}, {
|
|
2375
|
+
readonly name: "tokenId";
|
|
2376
|
+
readonly type: "uint256";
|
|
2377
|
+
readonly internalType: "uint256";
|
|
2378
|
+
}];
|
|
2379
|
+
readonly outputs: readonly [];
|
|
2380
|
+
readonly stateMutability: "nonpayable";
|
|
2381
|
+
}, {
|
|
2382
|
+
readonly type: "function";
|
|
2383
|
+
readonly name: "unsetAgentWallet";
|
|
2384
|
+
readonly inputs: readonly [{
|
|
2385
|
+
readonly name: "agentId";
|
|
2386
|
+
readonly type: "uint256";
|
|
2387
|
+
readonly internalType: "uint256";
|
|
2388
|
+
}];
|
|
2389
|
+
readonly outputs: readonly [];
|
|
2390
|
+
readonly stateMutability: "nonpayable";
|
|
2391
|
+
}, {
|
|
2392
|
+
readonly type: "event";
|
|
2393
|
+
readonly name: "Approval";
|
|
2394
|
+
readonly inputs: readonly [{
|
|
2395
|
+
readonly name: "owner";
|
|
2396
|
+
readonly type: "address";
|
|
2397
|
+
readonly indexed: true;
|
|
2398
|
+
readonly internalType: "address";
|
|
2399
|
+
}, {
|
|
2400
|
+
readonly name: "approved";
|
|
2401
|
+
readonly type: "address";
|
|
2402
|
+
readonly indexed: true;
|
|
2403
|
+
readonly internalType: "address";
|
|
2404
|
+
}, {
|
|
2405
|
+
readonly name: "tokenId";
|
|
2406
|
+
readonly type: "uint256";
|
|
2407
|
+
readonly indexed: true;
|
|
2408
|
+
readonly internalType: "uint256";
|
|
2409
|
+
}];
|
|
2410
|
+
readonly anonymous: false;
|
|
2411
|
+
}, {
|
|
2412
|
+
readonly type: "event";
|
|
2413
|
+
readonly name: "ApprovalForAll";
|
|
2414
|
+
readonly inputs: readonly [{
|
|
2415
|
+
readonly name: "owner";
|
|
2416
|
+
readonly type: "address";
|
|
2417
|
+
readonly indexed: true;
|
|
2418
|
+
readonly internalType: "address";
|
|
2419
|
+
}, {
|
|
2420
|
+
readonly name: "operator";
|
|
2421
|
+
readonly type: "address";
|
|
2422
|
+
readonly indexed: true;
|
|
2423
|
+
readonly internalType: "address";
|
|
2424
|
+
}, {
|
|
2425
|
+
readonly name: "approved";
|
|
2426
|
+
readonly type: "bool";
|
|
2427
|
+
readonly indexed: false;
|
|
2428
|
+
readonly internalType: "bool";
|
|
2429
|
+
}];
|
|
2430
|
+
readonly anonymous: false;
|
|
2431
|
+
}, {
|
|
2432
|
+
readonly type: "event";
|
|
2433
|
+
readonly name: "MetadataSet";
|
|
2434
|
+
readonly inputs: readonly [{
|
|
2435
|
+
readonly name: "agentId";
|
|
2436
|
+
readonly type: "uint256";
|
|
2437
|
+
readonly indexed: true;
|
|
2438
|
+
readonly internalType: "uint256";
|
|
2439
|
+
}, {
|
|
2440
|
+
readonly name: "indexedMetadataKey";
|
|
2441
|
+
readonly type: "string";
|
|
2442
|
+
readonly indexed: true;
|
|
2443
|
+
readonly internalType: "string";
|
|
2444
|
+
}, {
|
|
2445
|
+
readonly name: "metadataKey";
|
|
2446
|
+
readonly type: "string";
|
|
2447
|
+
readonly indexed: false;
|
|
2448
|
+
readonly internalType: "string";
|
|
2449
|
+
}, {
|
|
2450
|
+
readonly name: "metadataValue";
|
|
2451
|
+
readonly type: "bytes";
|
|
2452
|
+
readonly indexed: false;
|
|
2453
|
+
readonly internalType: "bytes";
|
|
2454
|
+
}];
|
|
2455
|
+
readonly anonymous: false;
|
|
2456
|
+
}, {
|
|
2457
|
+
readonly type: "event";
|
|
2458
|
+
readonly name: "Registered";
|
|
2459
|
+
readonly inputs: readonly [{
|
|
2460
|
+
readonly name: "agentId";
|
|
2461
|
+
readonly type: "uint256";
|
|
2462
|
+
readonly indexed: true;
|
|
2463
|
+
readonly internalType: "uint256";
|
|
2464
|
+
}, {
|
|
2465
|
+
readonly name: "agentURI";
|
|
2466
|
+
readonly type: "string";
|
|
2467
|
+
readonly indexed: false;
|
|
2468
|
+
readonly internalType: "string";
|
|
2469
|
+
}, {
|
|
2470
|
+
readonly name: "owner";
|
|
2471
|
+
readonly type: "address";
|
|
2472
|
+
readonly indexed: true;
|
|
2473
|
+
readonly internalType: "address";
|
|
2474
|
+
}];
|
|
2475
|
+
readonly anonymous: false;
|
|
2476
|
+
}, {
|
|
2477
|
+
readonly type: "event";
|
|
2478
|
+
readonly name: "Transfer";
|
|
2479
|
+
readonly inputs: readonly [{
|
|
2480
|
+
readonly name: "from";
|
|
2481
|
+
readonly type: "address";
|
|
2482
|
+
readonly indexed: true;
|
|
2483
|
+
readonly internalType: "address";
|
|
2484
|
+
}, {
|
|
2485
|
+
readonly name: "to";
|
|
2486
|
+
readonly type: "address";
|
|
2487
|
+
readonly indexed: true;
|
|
2488
|
+
readonly internalType: "address";
|
|
2489
|
+
}, {
|
|
2490
|
+
readonly name: "tokenId";
|
|
2491
|
+
readonly type: "uint256";
|
|
2492
|
+
readonly indexed: true;
|
|
2493
|
+
readonly internalType: "uint256";
|
|
2494
|
+
}];
|
|
2495
|
+
readonly anonymous: false;
|
|
2496
|
+
}, {
|
|
2497
|
+
readonly type: "event";
|
|
2498
|
+
readonly name: "URIUpdated";
|
|
2499
|
+
readonly inputs: readonly [{
|
|
2500
|
+
readonly name: "agentId";
|
|
2501
|
+
readonly type: "uint256";
|
|
2502
|
+
readonly indexed: true;
|
|
2503
|
+
readonly internalType: "uint256";
|
|
2504
|
+
}, {
|
|
2505
|
+
readonly name: "newURI";
|
|
2506
|
+
readonly type: "string";
|
|
2507
|
+
readonly indexed: false;
|
|
2508
|
+
readonly internalType: "string";
|
|
2509
|
+
}, {
|
|
2510
|
+
readonly name: "updatedBy";
|
|
2511
|
+
readonly type: "address";
|
|
2512
|
+
readonly indexed: true;
|
|
2513
|
+
readonly internalType: "address";
|
|
2514
|
+
}];
|
|
2515
|
+
readonly anonymous: false;
|
|
2516
|
+
}];
|
|
2517
|
+
|
|
2518
|
+
declare const erc8004ReputationAbi: readonly [{
|
|
2519
|
+
readonly type: "function";
|
|
2520
|
+
readonly name: "appendResponse";
|
|
2521
|
+
readonly inputs: readonly [{
|
|
2522
|
+
readonly name: "agentId";
|
|
2523
|
+
readonly type: "uint256";
|
|
2524
|
+
readonly internalType: "uint256";
|
|
2525
|
+
}, {
|
|
2526
|
+
readonly name: "clientAddress";
|
|
2527
|
+
readonly type: "address";
|
|
2528
|
+
readonly internalType: "address";
|
|
2529
|
+
}, {
|
|
2530
|
+
readonly name: "feedbackIndex";
|
|
2531
|
+
readonly type: "uint64";
|
|
2532
|
+
readonly internalType: "uint64";
|
|
2533
|
+
}, {
|
|
2534
|
+
readonly name: "responseURI";
|
|
2535
|
+
readonly type: "string";
|
|
2536
|
+
readonly internalType: "string";
|
|
2537
|
+
}, {
|
|
2538
|
+
readonly name: "responseHash";
|
|
2539
|
+
readonly type: "bytes32";
|
|
2540
|
+
readonly internalType: "bytes32";
|
|
2541
|
+
}];
|
|
2542
|
+
readonly outputs: readonly [];
|
|
2543
|
+
readonly stateMutability: "nonpayable";
|
|
2544
|
+
}, {
|
|
2545
|
+
readonly type: "function";
|
|
2546
|
+
readonly name: "getClients";
|
|
2547
|
+
readonly inputs: readonly [{
|
|
2548
|
+
readonly name: "agentId";
|
|
2549
|
+
readonly type: "uint256";
|
|
2550
|
+
readonly internalType: "uint256";
|
|
2551
|
+
}];
|
|
2552
|
+
readonly outputs: readonly [{
|
|
2553
|
+
readonly name: "clients";
|
|
2554
|
+
readonly type: "address[]";
|
|
2555
|
+
readonly internalType: "address[]";
|
|
2556
|
+
}];
|
|
2557
|
+
readonly stateMutability: "view";
|
|
2558
|
+
}, {
|
|
2559
|
+
readonly type: "function";
|
|
2560
|
+
readonly name: "getIdentityRegistry";
|
|
2561
|
+
readonly inputs: readonly [];
|
|
2562
|
+
readonly outputs: readonly [{
|
|
2563
|
+
readonly name: "identityRegistry";
|
|
2564
|
+
readonly type: "address";
|
|
2565
|
+
readonly internalType: "address";
|
|
2566
|
+
}];
|
|
2567
|
+
readonly stateMutability: "view";
|
|
2568
|
+
}, {
|
|
2569
|
+
readonly type: "function";
|
|
2570
|
+
readonly name: "getLastIndex";
|
|
2571
|
+
readonly inputs: readonly [{
|
|
2572
|
+
readonly name: "agentId";
|
|
2573
|
+
readonly type: "uint256";
|
|
2574
|
+
readonly internalType: "uint256";
|
|
2575
|
+
}, {
|
|
2576
|
+
readonly name: "clientAddress";
|
|
2577
|
+
readonly type: "address";
|
|
2578
|
+
readonly internalType: "address";
|
|
2579
|
+
}];
|
|
2580
|
+
readonly outputs: readonly [{
|
|
2581
|
+
readonly name: "lastIndex";
|
|
2582
|
+
readonly type: "uint64";
|
|
2583
|
+
readonly internalType: "uint64";
|
|
2584
|
+
}];
|
|
2585
|
+
readonly stateMutability: "view";
|
|
2586
|
+
}, {
|
|
2587
|
+
readonly type: "function";
|
|
2588
|
+
readonly name: "getSummary";
|
|
2589
|
+
readonly inputs: readonly [{
|
|
2590
|
+
readonly name: "agentId";
|
|
2591
|
+
readonly type: "uint256";
|
|
2592
|
+
readonly internalType: "uint256";
|
|
2593
|
+
}, {
|
|
2594
|
+
readonly name: "clientAddresses";
|
|
2595
|
+
readonly type: "address[]";
|
|
2596
|
+
readonly internalType: "address[]";
|
|
2597
|
+
}, {
|
|
2598
|
+
readonly name: "tag1";
|
|
2599
|
+
readonly type: "string";
|
|
2600
|
+
readonly internalType: "string";
|
|
2601
|
+
}, {
|
|
2602
|
+
readonly name: "tag2";
|
|
2603
|
+
readonly type: "string";
|
|
2604
|
+
readonly internalType: "string";
|
|
2605
|
+
}];
|
|
2606
|
+
readonly outputs: readonly [{
|
|
2607
|
+
readonly name: "count";
|
|
2608
|
+
readonly type: "uint64";
|
|
2609
|
+
readonly internalType: "uint64";
|
|
2610
|
+
}, {
|
|
2611
|
+
readonly name: "summaryValue";
|
|
2612
|
+
readonly type: "int128";
|
|
2613
|
+
readonly internalType: "int128";
|
|
2614
|
+
}, {
|
|
2615
|
+
readonly name: "summaryValueDecimals";
|
|
2616
|
+
readonly type: "uint8";
|
|
2617
|
+
readonly internalType: "uint8";
|
|
2618
|
+
}];
|
|
2619
|
+
readonly stateMutability: "view";
|
|
2620
|
+
}, {
|
|
2621
|
+
readonly type: "function";
|
|
2622
|
+
readonly name: "giveFeedback";
|
|
2623
|
+
readonly inputs: readonly [{
|
|
2624
|
+
readonly name: "agentId";
|
|
2625
|
+
readonly type: "uint256";
|
|
2626
|
+
readonly internalType: "uint256";
|
|
2627
|
+
}, {
|
|
2628
|
+
readonly name: "value";
|
|
2629
|
+
readonly type: "int128";
|
|
2630
|
+
readonly internalType: "int128";
|
|
2631
|
+
}, {
|
|
2632
|
+
readonly name: "valueDecimals";
|
|
2633
|
+
readonly type: "uint8";
|
|
2634
|
+
readonly internalType: "uint8";
|
|
2635
|
+
}, {
|
|
2636
|
+
readonly name: "tag1";
|
|
2637
|
+
readonly type: "string";
|
|
2638
|
+
readonly internalType: "string";
|
|
2639
|
+
}, {
|
|
2640
|
+
readonly name: "tag2";
|
|
2641
|
+
readonly type: "string";
|
|
2642
|
+
readonly internalType: "string";
|
|
2643
|
+
}, {
|
|
2644
|
+
readonly name: "endpoint";
|
|
2645
|
+
readonly type: "string";
|
|
2646
|
+
readonly internalType: "string";
|
|
2647
|
+
}, {
|
|
2648
|
+
readonly name: "feedbackURI";
|
|
2649
|
+
readonly type: "string";
|
|
2650
|
+
readonly internalType: "string";
|
|
2651
|
+
}, {
|
|
2652
|
+
readonly name: "feedbackHash";
|
|
2653
|
+
readonly type: "bytes32";
|
|
2654
|
+
readonly internalType: "bytes32";
|
|
2655
|
+
}];
|
|
2656
|
+
readonly outputs: readonly [];
|
|
2657
|
+
readonly stateMutability: "nonpayable";
|
|
2658
|
+
}, {
|
|
2659
|
+
readonly type: "function";
|
|
2660
|
+
readonly name: "readAllFeedback";
|
|
2661
|
+
readonly inputs: readonly [{
|
|
2662
|
+
readonly name: "agentId";
|
|
2663
|
+
readonly type: "uint256";
|
|
2664
|
+
readonly internalType: "uint256";
|
|
2665
|
+
}, {
|
|
2666
|
+
readonly name: "clientAddresses";
|
|
2667
|
+
readonly type: "address[]";
|
|
2668
|
+
readonly internalType: "address[]";
|
|
2669
|
+
}, {
|
|
2670
|
+
readonly name: "tag1";
|
|
2671
|
+
readonly type: "string";
|
|
2672
|
+
readonly internalType: "string";
|
|
2673
|
+
}, {
|
|
2674
|
+
readonly name: "tag2";
|
|
2675
|
+
readonly type: "string";
|
|
2676
|
+
readonly internalType: "string";
|
|
2677
|
+
}, {
|
|
2678
|
+
readonly name: "includeRevoked";
|
|
2679
|
+
readonly type: "bool";
|
|
2680
|
+
readonly internalType: "bool";
|
|
2681
|
+
}];
|
|
2682
|
+
readonly outputs: readonly [{
|
|
2683
|
+
readonly name: "clients";
|
|
2684
|
+
readonly type: "address[]";
|
|
2685
|
+
readonly internalType: "address[]";
|
|
2686
|
+
}, {
|
|
2687
|
+
readonly name: "feedbackIndexes";
|
|
2688
|
+
readonly type: "uint64[]";
|
|
2689
|
+
readonly internalType: "uint64[]";
|
|
2690
|
+
}, {
|
|
2691
|
+
readonly name: "values";
|
|
2692
|
+
readonly type: "int128[]";
|
|
2693
|
+
readonly internalType: "int128[]";
|
|
2694
|
+
}, {
|
|
2695
|
+
readonly name: "valueDecimals";
|
|
2696
|
+
readonly type: "uint8[]";
|
|
2697
|
+
readonly internalType: "uint8[]";
|
|
2698
|
+
}, {
|
|
2699
|
+
readonly name: "tag1s";
|
|
2700
|
+
readonly type: "string[]";
|
|
2701
|
+
readonly internalType: "string[]";
|
|
2702
|
+
}, {
|
|
2703
|
+
readonly name: "tag2s";
|
|
2704
|
+
readonly type: "string[]";
|
|
2705
|
+
readonly internalType: "string[]";
|
|
2706
|
+
}, {
|
|
2707
|
+
readonly name: "revokedStatuses";
|
|
2708
|
+
readonly type: "bool[]";
|
|
2709
|
+
readonly internalType: "bool[]";
|
|
2710
|
+
}];
|
|
2711
|
+
readonly stateMutability: "view";
|
|
2712
|
+
}, {
|
|
2713
|
+
readonly type: "function";
|
|
2714
|
+
readonly name: "readFeedback";
|
|
2715
|
+
readonly inputs: readonly [{
|
|
2716
|
+
readonly name: "agentId";
|
|
2717
|
+
readonly type: "uint256";
|
|
2718
|
+
readonly internalType: "uint256";
|
|
2719
|
+
}, {
|
|
2720
|
+
readonly name: "clientAddress";
|
|
2721
|
+
readonly type: "address";
|
|
2722
|
+
readonly internalType: "address";
|
|
2723
|
+
}, {
|
|
2724
|
+
readonly name: "feedbackIndex";
|
|
2725
|
+
readonly type: "uint64";
|
|
2726
|
+
readonly internalType: "uint64";
|
|
2727
|
+
}];
|
|
2728
|
+
readonly outputs: readonly [{
|
|
2729
|
+
readonly name: "value";
|
|
2730
|
+
readonly type: "int128";
|
|
2731
|
+
readonly internalType: "int128";
|
|
2732
|
+
}, {
|
|
2733
|
+
readonly name: "valueDecimals";
|
|
2734
|
+
readonly type: "uint8";
|
|
2735
|
+
readonly internalType: "uint8";
|
|
2736
|
+
}, {
|
|
2737
|
+
readonly name: "tag1";
|
|
2738
|
+
readonly type: "string";
|
|
2739
|
+
readonly internalType: "string";
|
|
2740
|
+
}, {
|
|
2741
|
+
readonly name: "tag2";
|
|
2742
|
+
readonly type: "string";
|
|
2743
|
+
readonly internalType: "string";
|
|
2744
|
+
}, {
|
|
2745
|
+
readonly name: "isRevoked";
|
|
2746
|
+
readonly type: "bool";
|
|
2747
|
+
readonly internalType: "bool";
|
|
2748
|
+
}];
|
|
2749
|
+
readonly stateMutability: "view";
|
|
2750
|
+
}, {
|
|
2751
|
+
readonly type: "function";
|
|
2752
|
+
readonly name: "revokeFeedback";
|
|
2753
|
+
readonly inputs: readonly [{
|
|
2754
|
+
readonly name: "agentId";
|
|
2755
|
+
readonly type: "uint256";
|
|
2756
|
+
readonly internalType: "uint256";
|
|
2757
|
+
}, {
|
|
2758
|
+
readonly name: "feedbackIndex";
|
|
2759
|
+
readonly type: "uint64";
|
|
2760
|
+
readonly internalType: "uint64";
|
|
2761
|
+
}];
|
|
2762
|
+
readonly outputs: readonly [];
|
|
2763
|
+
readonly stateMutability: "nonpayable";
|
|
2764
|
+
}, {
|
|
2765
|
+
readonly type: "event";
|
|
2766
|
+
readonly name: "FeedbackRevoked";
|
|
2767
|
+
readonly inputs: readonly [{
|
|
2768
|
+
readonly name: "agentId";
|
|
2769
|
+
readonly type: "uint256";
|
|
2770
|
+
readonly indexed: true;
|
|
2771
|
+
readonly internalType: "uint256";
|
|
2772
|
+
}, {
|
|
2773
|
+
readonly name: "clientAddress";
|
|
2774
|
+
readonly type: "address";
|
|
2775
|
+
readonly indexed: true;
|
|
2776
|
+
readonly internalType: "address";
|
|
2777
|
+
}, {
|
|
2778
|
+
readonly name: "feedbackIndex";
|
|
2779
|
+
readonly type: "uint64";
|
|
2780
|
+
readonly indexed: true;
|
|
2781
|
+
readonly internalType: "uint64";
|
|
2782
|
+
}];
|
|
2783
|
+
readonly anonymous: false;
|
|
2784
|
+
}, {
|
|
2785
|
+
readonly type: "event";
|
|
2786
|
+
readonly name: "NewFeedback";
|
|
2787
|
+
readonly inputs: readonly [{
|
|
2788
|
+
readonly name: "agentId";
|
|
2789
|
+
readonly type: "uint256";
|
|
2790
|
+
readonly indexed: true;
|
|
2791
|
+
readonly internalType: "uint256";
|
|
2792
|
+
}, {
|
|
2793
|
+
readonly name: "clientAddress";
|
|
2794
|
+
readonly type: "address";
|
|
2795
|
+
readonly indexed: true;
|
|
2796
|
+
readonly internalType: "address";
|
|
2797
|
+
}, {
|
|
2798
|
+
readonly name: "feedbackIndex";
|
|
2799
|
+
readonly type: "uint64";
|
|
2800
|
+
readonly indexed: false;
|
|
2801
|
+
readonly internalType: "uint64";
|
|
2802
|
+
}, {
|
|
2803
|
+
readonly name: "value";
|
|
2804
|
+
readonly type: "int128";
|
|
2805
|
+
readonly indexed: false;
|
|
2806
|
+
readonly internalType: "int128";
|
|
2807
|
+
}, {
|
|
2808
|
+
readonly name: "valueDecimals";
|
|
2809
|
+
readonly type: "uint8";
|
|
2810
|
+
readonly indexed: false;
|
|
2811
|
+
readonly internalType: "uint8";
|
|
2812
|
+
}, {
|
|
2813
|
+
readonly name: "indexedTag1";
|
|
2814
|
+
readonly type: "string";
|
|
2815
|
+
readonly indexed: true;
|
|
2816
|
+
readonly internalType: "string";
|
|
2817
|
+
}, {
|
|
2818
|
+
readonly name: "tag1";
|
|
2819
|
+
readonly type: "string";
|
|
2820
|
+
readonly indexed: false;
|
|
2821
|
+
readonly internalType: "string";
|
|
2822
|
+
}, {
|
|
2823
|
+
readonly name: "tag2";
|
|
2824
|
+
readonly type: "string";
|
|
2825
|
+
readonly indexed: false;
|
|
2826
|
+
readonly internalType: "string";
|
|
2827
|
+
}, {
|
|
2828
|
+
readonly name: "endpoint";
|
|
2829
|
+
readonly type: "string";
|
|
2830
|
+
readonly indexed: false;
|
|
2831
|
+
readonly internalType: "string";
|
|
2832
|
+
}, {
|
|
2833
|
+
readonly name: "feedbackURI";
|
|
2834
|
+
readonly type: "string";
|
|
2835
|
+
readonly indexed: false;
|
|
2836
|
+
readonly internalType: "string";
|
|
2837
|
+
}, {
|
|
2838
|
+
readonly name: "feedbackHash";
|
|
2839
|
+
readonly type: "bytes32";
|
|
2840
|
+
readonly indexed: false;
|
|
2841
|
+
readonly internalType: "bytes32";
|
|
2842
|
+
}];
|
|
2843
|
+
readonly anonymous: false;
|
|
2844
|
+
}, {
|
|
2845
|
+
readonly type: "event";
|
|
2846
|
+
readonly name: "ResponseAppended";
|
|
2847
|
+
readonly inputs: readonly [{
|
|
2848
|
+
readonly name: "agentId";
|
|
2849
|
+
readonly type: "uint256";
|
|
2850
|
+
readonly indexed: true;
|
|
2851
|
+
readonly internalType: "uint256";
|
|
2852
|
+
}, {
|
|
2853
|
+
readonly name: "clientAddress";
|
|
2854
|
+
readonly type: "address";
|
|
2855
|
+
readonly indexed: true;
|
|
2856
|
+
readonly internalType: "address";
|
|
2857
|
+
}, {
|
|
2858
|
+
readonly name: "feedbackIndex";
|
|
2859
|
+
readonly type: "uint64";
|
|
2860
|
+
readonly indexed: false;
|
|
2861
|
+
readonly internalType: "uint64";
|
|
2862
|
+
}, {
|
|
2863
|
+
readonly name: "responder";
|
|
2864
|
+
readonly type: "address";
|
|
2865
|
+
readonly indexed: true;
|
|
2866
|
+
readonly internalType: "address";
|
|
2867
|
+
}, {
|
|
2868
|
+
readonly name: "responseURI";
|
|
2869
|
+
readonly type: "string";
|
|
2870
|
+
readonly indexed: false;
|
|
2871
|
+
readonly internalType: "string";
|
|
2872
|
+
}, {
|
|
2873
|
+
readonly name: "responseHash";
|
|
2874
|
+
readonly type: "bytes32";
|
|
2875
|
+
readonly indexed: false;
|
|
2876
|
+
readonly internalType: "bytes32";
|
|
2877
|
+
}];
|
|
2878
|
+
readonly anonymous: false;
|
|
2879
|
+
}];
|
|
2880
|
+
|
|
2881
|
+
declare const erc20Abi: readonly [{
|
|
2882
|
+
readonly type: "function";
|
|
2883
|
+
readonly name: "approve";
|
|
2884
|
+
readonly inputs: readonly [{
|
|
2885
|
+
readonly name: "spender";
|
|
2886
|
+
readonly type: "address";
|
|
2887
|
+
}, {
|
|
2888
|
+
readonly name: "amount";
|
|
2889
|
+
readonly type: "uint256";
|
|
2890
|
+
}];
|
|
2891
|
+
readonly outputs: readonly [{
|
|
2892
|
+
readonly name: "";
|
|
2893
|
+
readonly type: "bool";
|
|
2894
|
+
}];
|
|
2895
|
+
readonly stateMutability: "nonpayable";
|
|
2896
|
+
}, {
|
|
2897
|
+
readonly type: "function";
|
|
2898
|
+
readonly name: "transfer";
|
|
2899
|
+
readonly inputs: readonly [{
|
|
2900
|
+
readonly name: "to";
|
|
2901
|
+
readonly type: "address";
|
|
2902
|
+
}, {
|
|
2903
|
+
readonly name: "amount";
|
|
2904
|
+
readonly type: "uint256";
|
|
2905
|
+
}];
|
|
2906
|
+
readonly outputs: readonly [{
|
|
2907
|
+
readonly name: "";
|
|
2908
|
+
readonly type: "bool";
|
|
2909
|
+
}];
|
|
2910
|
+
readonly stateMutability: "nonpayable";
|
|
2911
|
+
}, {
|
|
2912
|
+
readonly type: "function";
|
|
2913
|
+
readonly name: "transferFrom";
|
|
2914
|
+
readonly inputs: readonly [{
|
|
2915
|
+
readonly name: "from";
|
|
2916
|
+
readonly type: "address";
|
|
2917
|
+
}, {
|
|
2918
|
+
readonly name: "to";
|
|
2919
|
+
readonly type: "address";
|
|
2920
|
+
}, {
|
|
2921
|
+
readonly name: "amount";
|
|
2922
|
+
readonly type: "uint256";
|
|
2923
|
+
}];
|
|
2924
|
+
readonly outputs: readonly [{
|
|
2925
|
+
readonly name: "";
|
|
2926
|
+
readonly type: "bool";
|
|
2927
|
+
}];
|
|
2928
|
+
readonly stateMutability: "nonpayable";
|
|
2929
|
+
}, {
|
|
2930
|
+
readonly type: "function";
|
|
2931
|
+
readonly name: "balanceOf";
|
|
2932
|
+
readonly inputs: readonly [{
|
|
2933
|
+
readonly name: "account";
|
|
2934
|
+
readonly type: "address";
|
|
2935
|
+
}];
|
|
2936
|
+
readonly outputs: readonly [{
|
|
2937
|
+
readonly name: "";
|
|
2938
|
+
readonly type: "uint256";
|
|
2939
|
+
}];
|
|
2940
|
+
readonly stateMutability: "view";
|
|
2941
|
+
}, {
|
|
2942
|
+
readonly type: "function";
|
|
2943
|
+
readonly name: "allowance";
|
|
2944
|
+
readonly inputs: readonly [{
|
|
2945
|
+
readonly name: "owner";
|
|
2946
|
+
readonly type: "address";
|
|
2947
|
+
}, {
|
|
2948
|
+
readonly name: "spender";
|
|
2949
|
+
readonly type: "address";
|
|
2950
|
+
}];
|
|
2951
|
+
readonly outputs: readonly [{
|
|
2952
|
+
readonly name: "";
|
|
2953
|
+
readonly type: "uint256";
|
|
2954
|
+
}];
|
|
2955
|
+
readonly stateMutability: "view";
|
|
2956
|
+
}, {
|
|
2957
|
+
readonly type: "function";
|
|
2958
|
+
readonly name: "mint";
|
|
2959
|
+
readonly inputs: readonly [{
|
|
2960
|
+
readonly name: "to";
|
|
2961
|
+
readonly type: "address";
|
|
2962
|
+
}, {
|
|
2963
|
+
readonly name: "amount";
|
|
2964
|
+
readonly type: "uint256";
|
|
2965
|
+
}];
|
|
2966
|
+
readonly outputs: readonly [];
|
|
2967
|
+
readonly stateMutability: "nonpayable";
|
|
2968
|
+
}];
|
|
2969
|
+
|
|
2970
|
+
declare const pageAbi: readonly [{
|
|
2971
|
+
readonly type: "constructor";
|
|
2972
|
+
readonly inputs: readonly [{
|
|
2973
|
+
readonly name: "_content";
|
|
2974
|
+
readonly type: "bytes";
|
|
2975
|
+
readonly internalType: "bytes";
|
|
2976
|
+
}];
|
|
2977
|
+
readonly stateMutability: "nonpayable";
|
|
2978
|
+
}, {
|
|
2979
|
+
readonly type: "function";
|
|
2980
|
+
readonly name: "DATA_POINTER";
|
|
2981
|
+
readonly inputs: readonly [];
|
|
2982
|
+
readonly outputs: readonly [{
|
|
2983
|
+
readonly name: "";
|
|
2984
|
+
readonly type: "address";
|
|
2985
|
+
readonly internalType: "address";
|
|
2986
|
+
}];
|
|
2987
|
+
readonly stateMutability: "view";
|
|
2988
|
+
}, {
|
|
2989
|
+
readonly type: "function";
|
|
2990
|
+
readonly name: "read";
|
|
2991
|
+
readonly inputs: readonly [];
|
|
2992
|
+
readonly outputs: readonly [{
|
|
2993
|
+
readonly name: "";
|
|
2994
|
+
readonly type: "string";
|
|
2995
|
+
readonly internalType: "string";
|
|
2996
|
+
}];
|
|
2997
|
+
readonly stateMutability: "view";
|
|
2998
|
+
}];
|
|
2999
|
+
|
|
3000
|
+
declare const masterAbi: readonly [{
|
|
3001
|
+
readonly type: "constructor";
|
|
3002
|
+
readonly inputs: readonly [{
|
|
3003
|
+
readonly name: "_nftContract";
|
|
3004
|
+
readonly type: "address";
|
|
3005
|
+
readonly internalType: "address";
|
|
3006
|
+
}, {
|
|
3007
|
+
readonly name: "_adminTokenId";
|
|
3008
|
+
readonly type: "uint256";
|
|
3009
|
+
readonly internalType: "uint256";
|
|
3010
|
+
}, {
|
|
3011
|
+
readonly name: "_relayers";
|
|
3012
|
+
readonly type: "address[]";
|
|
3013
|
+
readonly internalType: "address[]";
|
|
3014
|
+
}];
|
|
3015
|
+
readonly stateMutability: "nonpayable";
|
|
3016
|
+
}, {
|
|
3017
|
+
readonly type: "function";
|
|
3018
|
+
readonly name: "publish";
|
|
3019
|
+
readonly inputs: readonly [{
|
|
3020
|
+
readonly name: "_rootChunk";
|
|
3021
|
+
readonly type: "address";
|
|
3022
|
+
readonly internalType: "address";
|
|
3023
|
+
}, {
|
|
3024
|
+
readonly name: "_depth";
|
|
3025
|
+
readonly type: "uint8";
|
|
3026
|
+
readonly internalType: "uint8";
|
|
3027
|
+
}, {
|
|
3028
|
+
readonly name: "_totalSize";
|
|
3029
|
+
readonly type: "uint256";
|
|
3030
|
+
readonly internalType: "uint256";
|
|
3031
|
+
}, {
|
|
3032
|
+
readonly name: "_siteType";
|
|
3033
|
+
readonly type: "uint8";
|
|
3034
|
+
readonly internalType: "uint8";
|
|
3035
|
+
}];
|
|
3036
|
+
readonly outputs: readonly [];
|
|
3037
|
+
readonly stateMutability: "nonpayable";
|
|
3038
|
+
}, {
|
|
3039
|
+
readonly type: "function";
|
|
3040
|
+
readonly name: "getCurrentSiteInfo";
|
|
3041
|
+
readonly inputs: readonly [];
|
|
3042
|
+
readonly outputs: readonly [{
|
|
3043
|
+
readonly name: "";
|
|
3044
|
+
readonly type: "tuple";
|
|
3045
|
+
readonly internalType: "struct Master.SiteInfo";
|
|
3046
|
+
readonly components: readonly [{
|
|
3047
|
+
readonly name: "rootChunk";
|
|
3048
|
+
readonly type: "address";
|
|
3049
|
+
readonly internalType: "address";
|
|
3050
|
+
}, {
|
|
3051
|
+
readonly name: "depth";
|
|
3052
|
+
readonly type: "uint8";
|
|
3053
|
+
readonly internalType: "uint8";
|
|
3054
|
+
}, {
|
|
3055
|
+
readonly name: "totalSize";
|
|
3056
|
+
readonly type: "uint256";
|
|
3057
|
+
readonly internalType: "uint256";
|
|
3058
|
+
}, {
|
|
3059
|
+
readonly name: "siteType";
|
|
3060
|
+
readonly type: "uint8";
|
|
3061
|
+
readonly internalType: "uint8";
|
|
3062
|
+
}];
|
|
3063
|
+
}];
|
|
3064
|
+
readonly stateMutability: "view";
|
|
3065
|
+
}, {
|
|
3066
|
+
readonly type: "function";
|
|
3067
|
+
readonly name: "currentVersion";
|
|
3068
|
+
readonly inputs: readonly [];
|
|
3069
|
+
readonly outputs: readonly [{
|
|
3070
|
+
readonly name: "";
|
|
3071
|
+
readonly type: "uint256";
|
|
3072
|
+
readonly internalType: "uint256";
|
|
3073
|
+
}];
|
|
3074
|
+
readonly stateMutability: "view";
|
|
3075
|
+
}, {
|
|
3076
|
+
readonly type: "function";
|
|
3077
|
+
readonly name: "nftContract";
|
|
3078
|
+
readonly inputs: readonly [];
|
|
3079
|
+
readonly outputs: readonly [{
|
|
3080
|
+
readonly name: "";
|
|
3081
|
+
readonly type: "address";
|
|
3082
|
+
readonly internalType: "address";
|
|
3083
|
+
}];
|
|
3084
|
+
readonly stateMutability: "view";
|
|
3085
|
+
}, {
|
|
3086
|
+
readonly type: "function";
|
|
3087
|
+
readonly name: "adminTokenId";
|
|
3088
|
+
readonly inputs: readonly [];
|
|
3089
|
+
readonly outputs: readonly [{
|
|
3090
|
+
readonly name: "";
|
|
3091
|
+
readonly type: "uint256";
|
|
3092
|
+
readonly internalType: "uint256";
|
|
3093
|
+
}];
|
|
3094
|
+
readonly stateMutability: "view";
|
|
3095
|
+
}, {
|
|
3096
|
+
readonly type: "function";
|
|
3097
|
+
readonly name: "addRelayer";
|
|
3098
|
+
readonly inputs: readonly [{
|
|
3099
|
+
readonly name: "_relayer";
|
|
3100
|
+
readonly type: "address";
|
|
3101
|
+
readonly internalType: "address";
|
|
3102
|
+
}];
|
|
3103
|
+
readonly outputs: readonly [];
|
|
3104
|
+
readonly stateMutability: "nonpayable";
|
|
3105
|
+
}, {
|
|
3106
|
+
readonly type: "function";
|
|
3107
|
+
readonly name: "removeRelayer";
|
|
3108
|
+
readonly inputs: readonly [{
|
|
3109
|
+
readonly name: "_relayer";
|
|
3110
|
+
readonly type: "address";
|
|
3111
|
+
readonly internalType: "address";
|
|
3112
|
+
}];
|
|
3113
|
+
readonly outputs: readonly [];
|
|
3114
|
+
readonly stateMutability: "nonpayable";
|
|
3115
|
+
}, {
|
|
3116
|
+
readonly type: "function";
|
|
3117
|
+
readonly name: "isAuthorizedRelayer";
|
|
3118
|
+
readonly inputs: readonly [{
|
|
3119
|
+
readonly name: "_relayer";
|
|
3120
|
+
readonly type: "address";
|
|
3121
|
+
readonly internalType: "address";
|
|
3122
|
+
}];
|
|
3123
|
+
readonly outputs: readonly [{
|
|
3124
|
+
readonly name: "";
|
|
3125
|
+
readonly type: "bool";
|
|
3126
|
+
readonly internalType: "bool";
|
|
3127
|
+
}];
|
|
3128
|
+
readonly stateMutability: "view";
|
|
3129
|
+
}, {
|
|
3130
|
+
readonly type: "event";
|
|
3131
|
+
readonly name: "SiteUpdated";
|
|
3132
|
+
readonly inputs: readonly [{
|
|
3133
|
+
readonly name: "version";
|
|
3134
|
+
readonly type: "uint256";
|
|
3135
|
+
readonly indexed: true;
|
|
3136
|
+
readonly internalType: "uint256";
|
|
3137
|
+
}, {
|
|
3138
|
+
readonly name: "rootChunk";
|
|
3139
|
+
readonly type: "address";
|
|
3140
|
+
readonly indexed: false;
|
|
3141
|
+
readonly internalType: "address";
|
|
3142
|
+
}, {
|
|
3143
|
+
readonly name: "depth";
|
|
3144
|
+
readonly type: "uint8";
|
|
3145
|
+
readonly indexed: false;
|
|
3146
|
+
readonly internalType: "uint8";
|
|
3147
|
+
}, {
|
|
3148
|
+
readonly name: "totalSize";
|
|
3149
|
+
readonly type: "uint256";
|
|
3150
|
+
readonly indexed: false;
|
|
3151
|
+
readonly internalType: "uint256";
|
|
3152
|
+
}, {
|
|
3153
|
+
readonly name: "siteType";
|
|
3154
|
+
readonly type: "uint8";
|
|
3155
|
+
readonly indexed: false;
|
|
3156
|
+
readonly internalType: "uint8";
|
|
3157
|
+
}];
|
|
3158
|
+
readonly anonymous: false;
|
|
3159
|
+
}];
|
|
3160
|
+
|
|
3161
|
+
export { ACCEPT_TIMEOUT, type AgentCardParams, BPS_DENOMINATOR, type BuyerCallbacks, BuyerRuntime, type BuyerRuntimeOptions, type CreateJobParams, type CreatePresetPulseClientOptions, type CreatePulseClientOptions, DEFAULT_INDEXER_URLS, type DeliverableData, type DeliverableParams, EVALUATION_TIMEOUT, type ExecuteJobResult, FEE_BPS, HandlerProviderRuntime, type HandlerProviderRuntimeOptions, type IndexerAgent, IndexerClient, IndexerClientError, type IndexerClientOptions, type IndexerJob, type IndexerJobsFilter, type IndexerOffering, type IndexerOfferingsFilter, type IndexerWarrenLink, type IndexerWarrenLinks, type Job, type JobContext, type JobOffering, JobStatus, type JobTermsParams, type ListOfferingParams, MAINNET_ADDRESSES, MEMO_TYPES, type OfferingHandler, PULSE_DOMAIN, type PresetPulseClient, type ProviderCallbacks, ProviderRuntime, type ProviderRuntimeOptions, type PulseAddresses, type PulseAgentData, type PulseClient, RISK_POOL_BPS, type RequirementsData, type RequirementsParams, ServiceType, type SignMemoParams, TESTNET_ADDRESSES, TREASURY_BPS, USDM_MAINNET, type ValidationResult, acceptJob, activateOffering, cancelJob, createAgentCard, createDeliverable, createJob, createJobTerms, createMainnetClient, createPulseClient, createRequirements, createTestnetClient, deactivateOffering, deployAgentCard, deployDeliverable, deployJobTerms, deployRequirements, deployWarrenMaster, deployWarrenPage, erc20Abi, erc8004IdentityAbi, erc8004ReputationAbi, evaluate, feeDistributorAbi, formatUsdm, getAgent, getJob, getJobCount, getOffering, getOfferingCount, initAgent, jobEngineAbi, listOffering, mainnetERC8004, masterAbi, megaethMainnet, megaethTestnet, pageAbi, parseUsdm, pulseExtensionAbi, readDeliverable, readRequirements, readWarrenMaster, readWarrenPage, registerAgent, serviceMarketplaceAbi, setOperator, setWarrenContract, settle, signMemo, submitDeliverable, testnetERC8004, updateOffering, verifyContentHash };
|