@clawnch/clawncher-sdk 0.3.2 → 0.3.4

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.
Files changed (54) hide show
  1. package/README.md +89 -0
  2. package/dist/bankr-fees.d.ts +216 -0
  3. package/dist/bankr-fees.d.ts.map +1 -0
  4. package/dist/bankr-fees.js +317 -0
  5. package/dist/bankr-fees.js.map +1 -0
  6. package/dist/deployer.d.ts +48 -2
  7. package/dist/deployer.d.ts.map +1 -1
  8. package/dist/deployer.js +134 -5
  9. package/dist/deployer.js.map +1 -1
  10. package/dist/errors.d.ts +2 -1
  11. package/dist/errors.d.ts.map +1 -1
  12. package/dist/errors.js +2 -0
  13. package/dist/errors.js.map +1 -1
  14. package/dist/herd-auth.d.ts +79 -0
  15. package/dist/herd-auth.d.ts.map +1 -0
  16. package/dist/herd-auth.js +188 -0
  17. package/dist/herd-auth.js.map +1 -0
  18. package/dist/herd-hal.d.ts +92 -0
  19. package/dist/herd-hal.d.ts.map +1 -0
  20. package/dist/herd-hal.js +337 -0
  21. package/dist/herd-hal.js.map +1 -0
  22. package/dist/herd-types.d.ts +479 -0
  23. package/dist/herd-types.d.ts.map +1 -0
  24. package/dist/herd-types.js +18 -0
  25. package/dist/herd-types.js.map +1 -0
  26. package/dist/herd.d.ts +223 -0
  27. package/dist/herd.d.ts.map +1 -0
  28. package/dist/herd.js +1486 -0
  29. package/dist/herd.js.map +1 -0
  30. package/dist/hummingbot-types.d.ts +702 -0
  31. package/dist/hummingbot-types.d.ts.map +1 -0
  32. package/dist/hummingbot-types.js +12 -0
  33. package/dist/hummingbot-types.js.map +1 -0
  34. package/dist/hummingbot.d.ts +747 -0
  35. package/dist/hummingbot.d.ts.map +1 -0
  36. package/dist/hummingbot.js +1478 -0
  37. package/dist/hummingbot.js.map +1 -0
  38. package/dist/index.d.ts +9 -1
  39. package/dist/index.d.ts.map +1 -1
  40. package/dist/index.js +12 -0
  41. package/dist/index.js.map +1 -1
  42. package/dist/price.d.ts +16 -11
  43. package/dist/price.d.ts.map +1 -1
  44. package/dist/price.js +56 -25
  45. package/dist/price.js.map +1 -1
  46. package/dist/uniswap-quoter.d.ts +25 -4
  47. package/dist/uniswap-quoter.d.ts.map +1 -1
  48. package/dist/uniswap-quoter.js +52 -8
  49. package/dist/uniswap-quoter.js.map +1 -1
  50. package/dist/walletconnect-signer.d.ts +154 -0
  51. package/dist/walletconnect-signer.d.ts.map +1 -0
  52. package/dist/walletconnect-signer.js +307 -0
  53. package/dist/walletconnect-signer.js.map +1 -0
  54. package/package.json +1 -1
@@ -0,0 +1,479 @@
1
+ /**
2
+ * Herd Integration Types
3
+ *
4
+ * Rich TypeScript interfaces for composed results that combine
5
+ * Herd's on-chain intelligence with Clawncher's domain-specific data.
6
+ *
7
+ * These are NOT 1:1 mirrors of Herd's raw responses. Each type is
8
+ * designed to answer specific questions agents and developers have
9
+ * when building on-chain.
10
+ */
11
+ import type { Address } from 'viem';
12
+ export type HerdBlockchain = 'ethereum' | 'base';
13
+ export interface HerdConfig {
14
+ /** Herd MCP server URL (default: https://mcp.herd.eco/v1) */
15
+ mcpUrl?: string;
16
+ /** Access token for Herd API */
17
+ accessToken?: string;
18
+ /** Default blockchain (default: 'base') */
19
+ blockchain?: HerdBlockchain;
20
+ /** Cache TTL overrides in seconds */
21
+ cacheTtl?: Partial<HerdCacheTtl>;
22
+ /** Timeout for MCP calls in ms (default: 30000) */
23
+ timeout?: number;
24
+ }
25
+ export interface HerdCacheTtl {
26
+ contractMetadata: number;
27
+ transactionData: number;
28
+ walletOverview: number;
29
+ tokenActivity: number;
30
+ bookmarks: number;
31
+ }
32
+ export declare const DEFAULT_CACHE_TTL: HerdCacheTtl;
33
+ export interface ContractProfile {
34
+ /** The contract address */
35
+ address: Address;
36
+ /** Which chain */
37
+ blockchain: HerdBlockchain;
38
+ /** Contract name (from verified source or Herd label) */
39
+ name: string | null;
40
+ /** Whether source code is verified */
41
+ verified: boolean;
42
+ /** Compiler version */
43
+ compiler: string | null;
44
+ /** Protocol label if known (e.g. "Uniswap", "Circle") */
45
+ protocol: string | null;
46
+ /** ABI summary — functions grouped by type */
47
+ functions: ContractFunction[];
48
+ /** Events defined in the contract */
49
+ events: ContractEvent[];
50
+ /** Proxy info (null if not a proxy) */
51
+ proxy: ProxyInfo | null;
52
+ /** Token data (null if not a token) */
53
+ token: TokenData | null;
54
+ /** Clawncher-specific data (null if not a Clawncher token) */
55
+ clawncher: ClawncherTokenOverlay | null;
56
+ /** Security flags from code analysis */
57
+ securityFlags: SecurityFlag[];
58
+ /** Raw Herd response (for debugging / advanced use) */
59
+ _raw?: unknown;
60
+ }
61
+ export interface ContractFunction {
62
+ name: string;
63
+ type: 'read' | 'write';
64
+ /** Herd's LLM-generated description */
65
+ description: string | null;
66
+ /** 4-byte selector */
67
+ selector: string;
68
+ inputs: AbiParam[];
69
+ outputs: AbiParam[];
70
+ }
71
+ export interface ContractEvent {
72
+ name: string;
73
+ description: string | null;
74
+ signature: string;
75
+ inputs: AbiParam[];
76
+ }
77
+ export interface AbiParam {
78
+ name: string;
79
+ type: string;
80
+ indexed?: boolean;
81
+ }
82
+ export interface ProxyInfo {
83
+ proxyType: string;
84
+ currentImplementation: Address;
85
+ previousImplementations: ImplementationVersion[];
86
+ }
87
+ export interface ImplementationVersion {
88
+ address: Address;
89
+ /** Block number at which this became the active implementation */
90
+ upgradedAtBlock?: number;
91
+ }
92
+ export interface TokenData {
93
+ symbol: string;
94
+ decimals: number;
95
+ /** Price in USD (from CoinGecko via Herd) */
96
+ priceUsd: number | null;
97
+ /** 24h volume in USD */
98
+ volume24h: number | null;
99
+ /** Market cap in USD */
100
+ marketCap: number | null;
101
+ /** Number of holders */
102
+ holders: number | null;
103
+ }
104
+ /** Overlay data when the contract is a Clawncher-deployed token */
105
+ export interface ClawncherTokenOverlay {
106
+ /** Fee locker claimable amounts */
107
+ feesWeth: string;
108
+ feesToken: string;
109
+ /** Vault allocation (if exists) */
110
+ vaultStatus: 'locked' | 'vesting' | 'unlocked' | 'none';
111
+ vaultPercentVested: number | null;
112
+ /** MEV protection settings */
113
+ mevProtection: boolean;
114
+ mevMaxBps: number | null;
115
+ /** Launch metadata */
116
+ launchedAt: string | null;
117
+ agent: string | null;
118
+ }
119
+ export type SecuritySeverity = 'critical' | 'high' | 'medium' | 'low' | 'info';
120
+ export interface SecurityFlag {
121
+ severity: SecuritySeverity;
122
+ category: string;
123
+ description: string;
124
+ /** Source code location (if available) */
125
+ location: string | null;
126
+ }
127
+ export interface TokenAuditReport {
128
+ /** Overall risk score 0-100 (0 = safest, 100 = most risky) */
129
+ riskScore: number;
130
+ /** Human-readable risk level */
131
+ riskLevel: 'safe' | 'low' | 'medium' | 'high' | 'critical';
132
+ /** The token contract profile */
133
+ contract: ContractProfile;
134
+ /** All findings from code analysis */
135
+ findings: SecurityFlag[];
136
+ /** Summary of what was checked */
137
+ checksPerformed: string[];
138
+ /** Whether the contract is upgradeable */
139
+ isUpgradeable: boolean;
140
+ /** Whether the contract has owner/admin controls */
141
+ hasOwnerControls: boolean;
142
+ /** Whether tokens can be minted after deployment */
143
+ hasMintFunction: boolean;
144
+ /** Whether transfers can be paused/blocked */
145
+ hasPauseOrBlacklist: boolean;
146
+ /** Timestamp of the audit */
147
+ auditedAt: string;
148
+ }
149
+ export interface TransactionProfile {
150
+ /** Transaction hash */
151
+ hash: string;
152
+ /** Which chain */
153
+ blockchain: HerdBlockchain;
154
+ /** Block number */
155
+ blockNumber: number;
156
+ /** Timestamp */
157
+ timestamp: string;
158
+ /** Whether the transaction succeeded */
159
+ success: boolean;
160
+ /** Revert reason (if failed) */
161
+ revertReason: string | null;
162
+ /** The top-level function called */
163
+ functionCalled: string | null;
164
+ /** Decoded function arguments */
165
+ decodedArgs: Record<string, unknown> | null;
166
+ /** All balance changes (token movements) */
167
+ balanceChanges: BalanceChange[];
168
+ /** Internal call trace tree */
169
+ traces: TransactionTrace[];
170
+ /** Decoded event logs */
171
+ events: TransactionEvent[];
172
+ /** Gas used and cost */
173
+ gas: GasInfo;
174
+ /** Clawncher-specific annotations */
175
+ clawncher: ClawncherTxAnnotation | null;
176
+ /** Raw Herd response */
177
+ _raw?: unknown;
178
+ }
179
+ export interface BalanceChange {
180
+ token: string;
181
+ tokenAddress: Address;
182
+ from: Address;
183
+ to: Address;
184
+ amount: string;
185
+ /** USD value at time of transaction (if available) */
186
+ usdValue: string | null;
187
+ }
188
+ export interface TransactionTrace {
189
+ depth: number;
190
+ from: Address;
191
+ to: Address;
192
+ functionName: string | null;
193
+ /** Human-readable summary */
194
+ summary: string | null;
195
+ value: string;
196
+ gasUsed: number;
197
+ children: TransactionTrace[];
198
+ }
199
+ export interface TransactionEvent {
200
+ contract: Address;
201
+ contractName: string | null;
202
+ eventName: string;
203
+ args: Record<string, unknown>;
204
+ }
205
+ export interface GasInfo {
206
+ gasUsed: number;
207
+ gasPrice: string;
208
+ /** Total cost in ETH */
209
+ costEth: string;
210
+ /** Total cost in USD (if ETH price available) */
211
+ costUsd: string | null;
212
+ }
213
+ /** Annotations when the tx interacts with Clawncher contracts */
214
+ export interface ClawncherTxAnnotation {
215
+ /** What type of Clawncher operation this is */
216
+ operationType: 'token_deploy' | 'fee_claim' | 'vault_claim' | 'swap' | 'liquidity_add' | 'liquidity_remove' | 'agent_register' | 'permit2_approve' | 'other';
217
+ /** Human-readable description */
218
+ description: string;
219
+ /** The Clawncher token involved (if applicable) */
220
+ tokenAddress: Address | null;
221
+ }
222
+ export type WalletType = 'eoa' | 'erc4337' | 'erc7702' | 'multisig' | 'contract';
223
+ export interface WalletProfile {
224
+ /** Wallet address */
225
+ address: Address;
226
+ /** Which chain */
227
+ blockchain: HerdBlockchain;
228
+ /** Detected wallet type */
229
+ walletType: WalletType;
230
+ /** Token holdings with USD values */
231
+ holdings: WalletHolding[];
232
+ /** Total portfolio value in USD */
233
+ totalValueUsd: number | null;
234
+ /** Activity summary */
235
+ activity: WalletActivity;
236
+ /** Multisig details (null if not a multisig) */
237
+ multisig: MultisigInfo | null;
238
+ /** Clawncher-specific data */
239
+ clawncher: ClawncherWalletOverlay | null;
240
+ /** Raw Herd response */
241
+ _raw?: unknown;
242
+ }
243
+ export interface WalletHolding {
244
+ token: string;
245
+ tokenAddress: Address;
246
+ balance: string;
247
+ usdValue: number | null;
248
+ }
249
+ export interface WalletActivity {
250
+ transactionCount: number;
251
+ contractsDeployed: number;
252
+ firstTransaction: string | null;
253
+ /** Top contracts this wallet interacts with */
254
+ topContracts: Array<{
255
+ address: Address;
256
+ name: string | null;
257
+ callCount: number;
258
+ }>;
259
+ }
260
+ export interface MultisigInfo {
261
+ threshold: number;
262
+ signers: Address[];
263
+ pendingTransactions: number;
264
+ }
265
+ /** Overlay data for wallets that hold Clawncher tokens */
266
+ export interface ClawncherWalletOverlay {
267
+ /** Clawncher tokens held */
268
+ tokenPositions: Array<{
269
+ tokenAddress: Address;
270
+ symbol: string;
271
+ balance: string;
272
+ /** Claimable fees for this wallet on this token */
273
+ claimableFees: {
274
+ weth: string;
275
+ token: string;
276
+ } | null;
277
+ }>;
278
+ /** Whether this wallet is a registered Clawncher agent */
279
+ isRegisteredAgent: boolean;
280
+ }
281
+ export interface ContractRelationship {
282
+ /** The contract being analyzed */
283
+ contract: Address;
284
+ contractName: string | null;
285
+ blockchain: HerdBlockchain;
286
+ /** Contracts that call this contract */
287
+ callers: RelatedContract[];
288
+ /** Contracts that this contract calls */
289
+ callees: RelatedContract[];
290
+ /** Contracts deployed by this address */
291
+ deployed: RelatedContract[];
292
+ /** Which of these are known Clawncher contracts */
293
+ clawncherContracts: Address[];
294
+ }
295
+ export interface RelatedContract {
296
+ address: Address;
297
+ name: string | null;
298
+ protocol: string | null;
299
+ /** Functions called between the two contracts */
300
+ functions: string[];
301
+ /** Call count (approximate) */
302
+ callCount: number;
303
+ /** Whether this is a known Clawncher contract */
304
+ isClawncher: boolean;
305
+ }
306
+ export interface TokenFlowReport {
307
+ holder: Address;
308
+ token: Address;
309
+ tokenSymbol: string;
310
+ blockchain: HerdBlockchain;
311
+ /** Current balance */
312
+ currentBalance: string;
313
+ /** Transfer history */
314
+ transfers: TokenTransfer[];
315
+ /** Annotated with known contract labels */
316
+ annotations: TokenFlowAnnotation[];
317
+ }
318
+ export interface TokenTransfer {
319
+ txHash: string;
320
+ timestamp: string;
321
+ direction: 'in' | 'out';
322
+ amount: string;
323
+ counterparty: Address;
324
+ counterpartyName: string | null;
325
+ /** USD value at time of transfer */
326
+ usdValue: string | null;
327
+ }
328
+ export interface TokenFlowAnnotation {
329
+ /** Which transfer(s) this annotation applies to */
330
+ transferIndices: number[];
331
+ /** What we know about this flow */
332
+ label: string;
333
+ }
334
+ export interface VersionDiff {
335
+ contract: Address;
336
+ blockchain: HerdBlockchain;
337
+ /** Previous implementation */
338
+ previousVersion: Address;
339
+ /** Current implementation */
340
+ currentVersion: Address;
341
+ /** Structured diff summary */
342
+ changes: VersionChange[];
343
+ /** Raw diff text */
344
+ rawDiff: string | null;
345
+ }
346
+ export interface VersionChange {
347
+ type: 'added' | 'removed' | 'modified';
348
+ /** Function or variable name */
349
+ name: string;
350
+ description: string;
351
+ }
352
+ export interface SwapValidation {
353
+ tokenIn: Address;
354
+ tokenOut: Address;
355
+ amountIn: string;
356
+ blockchain: HerdBlockchain;
357
+ /** Our quote from UniswapQuoter */
358
+ ourQuote: {
359
+ amountOut: string;
360
+ priceImpact: string;
361
+ } | null;
362
+ /** Historical data from recent swaps (via Herd) */
363
+ historicalSwaps: Array<{
364
+ txHash: string;
365
+ timestamp: string;
366
+ amountIn: string;
367
+ amountOut: string;
368
+ effectiveRate: string;
369
+ gasUsed: number;
370
+ }>;
371
+ /** Comparison */
372
+ analysis: {
373
+ /** Whether our quote is within expected range */
374
+ quoteReasonable: boolean;
375
+ /** Deviation from median historical rate */
376
+ deviationPercent: number | null;
377
+ /** Warnings */
378
+ warnings: string[];
379
+ /** Whether we recommend proceeding */
380
+ recommendation: 'proceed' | 'caution' | 'abort';
381
+ };
382
+ }
383
+ export interface FeeClaimValidation {
384
+ tokenAddress: Address;
385
+ blockchain: HerdBlockchain;
386
+ /** Our estimate from ClawnchReader */
387
+ ourEstimate: {
388
+ wethAvailable: string;
389
+ tokenAvailable: string;
390
+ } | null;
391
+ /** Historical claim data from Herd */
392
+ historicalClaims: Array<{
393
+ txHash: string;
394
+ timestamp: string;
395
+ claimer: Address;
396
+ wethReceived: string;
397
+ tokenReceived: string;
398
+ gasCostEth: string;
399
+ }>;
400
+ /** Analysis */
401
+ analysis: {
402
+ /** Whether our estimate matches historical outcomes */
403
+ estimateReliable: boolean;
404
+ /** Average gas cost of recent claims */
405
+ avgGasCostEth: string | null;
406
+ /** Net profit after gas for our estimated fees */
407
+ estimatedNetProfitEth: string | null;
408
+ /** Warnings */
409
+ warnings: string[];
410
+ };
411
+ }
412
+ export interface CounterpartyProfile {
413
+ /** The wallet being profiled */
414
+ wallet: WalletProfile;
415
+ /** Age of the wallet */
416
+ walletAge: string | null;
417
+ /** Contracts deployed by this wallet */
418
+ deployedContracts: Array<{
419
+ address: Address;
420
+ name: string | null;
421
+ verified: boolean;
422
+ }>;
423
+ /** Risk assessment */
424
+ riskAssessment: {
425
+ /** Overall trust level */
426
+ trustLevel: 'established' | 'moderate' | 'new' | 'suspicious';
427
+ /** Factors that inform the assessment */
428
+ factors: string[];
429
+ };
430
+ }
431
+ export type BookmarkType = 'contract' | 'wallet' | 'transaction';
432
+ export interface Bookmark {
433
+ objectType: BookmarkType;
434
+ objectId: string;
435
+ blockchain: HerdBlockchain | null;
436
+ label: string | null;
437
+ }
438
+ /** A HAL expression is a JSON array representing the DSL */
439
+ export type HalExpression = unknown[];
440
+ export interface HalSimulationResult {
441
+ /** Whether the simulation completed successfully */
442
+ success: boolean;
443
+ /** The final result of the expression evaluation */
444
+ finalResult: unknown;
445
+ /** Operation log — trace of every function call */
446
+ oplog: HalOplogEntry[];
447
+ /** Error message if failed */
448
+ error: string | null;
449
+ }
450
+ export interface HalOplogEntry {
451
+ operationId: string;
452
+ functionName: string;
453
+ status: 'success' | 'error';
454
+ timestamp: string;
455
+ args: unknown;
456
+ result: unknown;
457
+ }
458
+ export interface HalAdapterMeta {
459
+ description: string;
460
+ originContract?: {
461
+ address: Address;
462
+ blockchain: HerdBlockchain;
463
+ contractName: string;
464
+ functionName: string;
465
+ };
466
+ originTransaction?: {
467
+ txHash: string;
468
+ blockchain: HerdBlockchain;
469
+ };
470
+ }
471
+ /** @internal */
472
+ export interface McpToolResult {
473
+ content: Array<{
474
+ type: string;
475
+ text: string;
476
+ }>;
477
+ isError?: boolean;
478
+ }
479
+ //# sourceMappingURL=herd-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"herd-types.d.ts","sourceRoot":"","sources":["../src/herd-types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAMpC,MAAM,MAAM,cAAc,GAAG,UAAU,GAAG,MAAM,CAAC;AAEjD,MAAM,WAAW,UAAU;IACzB,6DAA6D;IAC7D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,gCAAgC;IAChC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,2CAA2C;IAC3C,UAAU,CAAC,EAAE,cAAc,CAAC;IAC5B,qCAAqC;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;IACjC,mDAAmD;IACnD,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,YAAY;IAC3B,gBAAgB,EAAE,MAAM,CAAC;IACzB,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,iBAAiB,EAAE,YAM/B,CAAC;AAMF,MAAM,WAAW,eAAe;IAC9B,2BAA2B;IAC3B,OAAO,EAAE,OAAO,CAAC;IACjB,kBAAkB;IAClB,UA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I,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,cAAc;IAC7B,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE;QACf,OAAO,EAAE,OAAO,CAAC;QACjB,UAAU,EAAE,cAAc,CAAC;QAC3B,YAAY,EAAE,MAAM,CAAC;QACrB,YAAY,EAAE,MAAM,CAAC;KACtB,CAAC;IACF,iBAAiB,CAAC,EAAE;QAClB,MAAM,EAAE,MAAM,CAAC;QACf,UAAU,EAAE,cAAc,CAAC;KAC5B,CAAC;CACH;AAMD,gBAAgB;AAChB,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC/C,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Herd Integration Types
3
+ *
4
+ * Rich TypeScript interfaces for composed results that combine
5
+ * Herd's on-chain intelligence with Clawncher's domain-specific data.
6
+ *
7
+ * These are NOT 1:1 mirrors of Herd's raw responses. Each type is
8
+ * designed to answer specific questions agents and developers have
9
+ * when building on-chain.
10
+ */
11
+ export const DEFAULT_CACHE_TTL = {
12
+ contractMetadata: 3600, // 1 hour
13
+ transactionData: 86400000, // indefinite (immutable)
14
+ walletOverview: 300, // 5 minutes
15
+ tokenActivity: 120, // 2 minutes
16
+ bookmarks: 300, // 5 minutes
17
+ };
18
+ //# sourceMappingURL=herd-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"herd-types.js","sourceRoot":"","sources":["../src/herd-types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AA+BH,MAAM,CAAC,MAAM,iBAAiB,GAAiB;IAC7C,gBAAgB,EAAE,IAAI,EAAK,SAAS;IACpC,eAAe,EAAE,QAAQ,EAAE,yBAAyB;IACpD,cAAc,EAAE,GAAG,EAAQ,YAAY;IACvC,aAAa,EAAE,GAAG,EAAS,YAAY;IACvC,SAAS,EAAE,GAAG,EAAa,YAAY;CACxC,CAAC"}