@logswap/sdk 0.5.79 → 0.5.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/admin.d.ts +702 -51
- package/dist/admin.js +53 -46
- package/dist/client.d.ts +2 -2
- package/dist/client.js +2 -2
- package/dist/fpool.d.ts +185 -119
- package/dist/fpool.js +41 -42
- package/dist/generated.d.ts +1280 -670
- package/dist/generated.js +781 -465
- package/dist/history.d.ts +1 -2
- package/dist/history.js +3 -5
- package/dist/indexer.js +2 -1
- package/dist/keys.d.ts +6 -0
- package/dist/keys.js +2 -0
- package/dist/pools.d.ts +3 -3
- package/dist/pools.js +2 -1
- package/package.json +1 -1
- package/src/admin.ts +64 -54
- package/src/client.ts +2 -2
- package/src/fpool.ts +59 -55
- package/src/generated.ts +781 -465
- package/src/history.ts +3 -4
- package/src/indexer.ts +3 -2
- package/src/keys.ts +8 -0
- package/src/pools.ts +6 -5
package/dist/admin.d.ts
CHANGED
|
@@ -123,10 +123,10 @@ export declare function fPoolMigrate(c: LogswapClient, a: {
|
|
|
123
123
|
*/
|
|
124
124
|
export declare function registryKindOf(c: LogswapClient, policy: Address): Promise<FPoolKind | "">;
|
|
125
125
|
/**
|
|
126
|
-
* `PadPolicy.setSchedule` (decisions 056, 067, 070): the rung's growth
|
|
127
|
-
*
|
|
128
|
-
*
|
|
129
|
-
*
|
|
126
|
+
* `PadPolicy.setSchedule` (decisions 056, 067, 070, 073): the rung's growth and the RANGE a creator chooses his cut of the pot
|
|
127
|
+
* inside at creation (its top ≤ the F manager's `PAYEE_CUT_MAX`). The rest of the pot deepens the bid — nothing is bought or
|
|
128
|
+
* burnt since F version 28, and the protocol takes no cut of the pot since F version 33 (its revenue is the income fee,
|
|
129
|
+
* {@link padSetIncomeFeeRate}). A change to the range applies to pads born after it; the growth moves every pad at its
|
|
130
130
|
* next rung. The rung is the pool's generation. `T(0)` is per quote since decision 070: {@link padSetThresholdBase}.
|
|
131
131
|
*/
|
|
132
132
|
export declare function padSetSchedule(c: LogswapClient, policy: Address, s: PadSchedule): Promise<Hash>;
|
|
@@ -152,17 +152,17 @@ export declare function padThreshold(c: LogswapClient, policy: Address, poolId:
|
|
|
152
152
|
/** A pad policy's schedule (decision 070: without `T(0)`, which is per quote — {@link padThresholdBases}). WAD numbers. */
|
|
153
153
|
export interface PadSchedule {
|
|
154
154
|
thresholdGrowth: bigint;
|
|
155
|
-
protocolShare: bigint;
|
|
156
155
|
creatorShareMin: bigint;
|
|
157
156
|
creatorShareMax: bigint;
|
|
158
157
|
}
|
|
159
158
|
/** Read {@link PadSchedule} off a pad policy. */
|
|
160
159
|
export declare function padScheduleOf(c: LogswapClient, policy: Address): Promise<PadSchedule>;
|
|
161
|
-
/** `PolPolicy.
|
|
162
|
-
export declare function
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
160
|
+
/** `PolPolicy.setMinQuoteRatio` (decision 073): the reserve a harvest must leave in the bid (`may(Harvest)` refuses less) and a relaunch's seed must bring, a multiple of the pool's L in WAD (at most 100e18). The policy sponsor's. */
|
|
161
|
+
export declare function polSetMinQuoteRatio(c: LogswapClient, policy: Address, ratio: bigint): Promise<Hash>;
|
|
162
|
+
/** `PadPolicy.setIncomeFeeRate` (decision 073): the share of its new income dividend the dead shares pay LOG Treasury, WAD, at most 50%. The policy sponsor's. */
|
|
163
|
+
export declare function padSetIncomeFeeRate(c: LogswapClient, policy: Address, rate: bigint): Promise<Hash>;
|
|
164
|
+
/** `PolPolicy.setIncomeFeeRate` (decision 073): the share of its new income dividend the pool's authority pays LOG Treasury, WAD, at most 50%. Paid on the authority's own shares only: an authority that holds through another address pays nothing. The policy sponsor's. */
|
|
165
|
+
export declare function polSetIncomeFeeRate(c: LogswapClient, policy: Address, rate: bigint): Promise<Hash>;
|
|
166
166
|
/** `setQuoteListed` on any protocol policy: a quote a pool of that kind may be born against while it curates quotes. The LOG Authority's. */
|
|
167
167
|
export declare function policySetQuoteListed(c: LogswapClient, policy: Address, quote: Address, listed: boolean): Promise<Hash>;
|
|
168
168
|
/** `setQuoteCurated` on any protocol policy: on, a birth against an unlisted quote is refused. The LOG Authority's. */
|
|
@@ -200,42 +200,46 @@ export declare function policyMintFeeMenu(c: LogswapClient, policy: Address, can
|
|
|
200
200
|
curated: boolean;
|
|
201
201
|
listed: bigint[];
|
|
202
202
|
}>;
|
|
203
|
-
/** `
|
|
204
|
-
export
|
|
205
|
-
/** `
|
|
206
|
-
export declare function
|
|
203
|
+
/** `PolicyRegistry.CreationMode` (decision 073): who may create under a policy. Open = 0, Restricted = 1 (the initializer list), SponsorOnly = 2 (bound to a sponsor, permanent). */
|
|
204
|
+
export type CreationMode = "open" | "restricted" | "sponsorOnly";
|
|
205
|
+
/** `PolicyRegistry.setCreationMode(policy, mode)` (the LOG Authority): replaces the per-policy creator lists (064). A sponsor-bound policy cannot leave `sponsorOnly`. */
|
|
206
|
+
export declare function registrySetCreationMode(c: LogswapClient, policy: Address, mode: CreationMode): Promise<Hash>;
|
|
207
|
+
/** `PolicyRegistry.setInitializerListed(policy, who, allowed)` (the LOG Authority): who may create under a `restricted` policy, authenticated as the caller or a trusted forwarder's user. */
|
|
208
|
+
export declare function registrySetInitializerListed(c: LogswapClient, policy: Address, who: Address, allowed: boolean): Promise<Hash>;
|
|
209
|
+
/** `PolicyRegistry.setForwarderTrusted` (the LOG Authority): a router whose `user()` names the creator. Moved off the public policy in F version 33. */
|
|
210
|
+
export declare function registrySetForwarderTrusted(c: LogswapClient, forwarder: Address, trusted: boolean): Promise<Hash>;
|
|
211
|
+
/** `PolicyRegistry.creationMode(policy)`. */
|
|
212
|
+
export declare function registryCreationMode(c: LogswapClient, policy: Address): Promise<CreationMode>;
|
|
207
213
|
/** `PublicPolicy.setPairListed` (064): a C pair a market may be born on while pairs are curated. Directional (base, quote). */
|
|
208
214
|
export declare function gateSetPairListed(c: LogswapClient, policy: Address, base: Address, quote: Address, listed: boolean): Promise<Hash>;
|
|
209
215
|
/** `PublicPolicy.setPairCurated` (064). */
|
|
210
216
|
export declare function gateSetPairCurated(c: LogswapClient, policy: Address, curated: boolean): Promise<Hash>;
|
|
211
217
|
/** `PublicPolicy.setSpacingListed` (064): a C tick spacing, WAD (10 bp = 1e15, 100 bp = 1e16). Always consulted. */
|
|
212
218
|
export declare function gateSetSpacingListed(c: LogswapClient, policy: Address, tickSpacing: bigint, listed: boolean): Promise<Hash>;
|
|
213
|
-
/** `PublicPolicy.setForwarderTrusted` (064): a router whose `user()` the gate takes as the creator. */
|
|
214
|
-
export declare function gateSetForwarderTrusted(c: LogswapClient, policy: Address, forwarder: Address, trusted: boolean): Promise<Hash>;
|
|
215
219
|
/**
|
|
216
220
|
* @deprecated C version 8 fixes the gate at construction (066): there is no `setGate`. Open or close
|
|
217
|
-
* C through the gate's lists (`
|
|
221
|
+
* C through the gate's lists (`registrySetCreationMode`, `gateSetPairCurated`, `gateSetSpacingListed`, …).
|
|
218
222
|
*/
|
|
219
223
|
export declare function setCGate(_c: LogswapClient, _gate: Address): Promise<Hash>;
|
|
220
|
-
/** The C manager's gate (`address(0)`: permissionless, a fee-free market then refused). */
|
|
221
|
-
export declare function cGate(c: LogswapClient): Promise<Address>;
|
|
222
224
|
export interface CGateRules {
|
|
225
|
+
/** The registry admits `creator` to create under `key.policy` (creation mode, initializer list, sponsor binding; decision 073). */
|
|
223
226
|
creatorOk: boolean;
|
|
224
227
|
quoteOk: boolean;
|
|
225
228
|
pairOk: boolean;
|
|
226
229
|
feeOk: boolean;
|
|
227
230
|
spacingOk: boolean;
|
|
228
|
-
/** A market on (base, quote, fee) already exists, whatever its spacing: the
|
|
231
|
+
/** A market on (base, quote, fee) already exists, whatever its spacing: the policy refuses another (064 (b)). */
|
|
229
232
|
exists: boolean;
|
|
230
|
-
/** Whether `router` is a trusted forwarder — `createMarket` through it is then checked against `creator`. */
|
|
233
|
+
/** Whether `router` is a trusted forwarder on the registry — `createMarket` through it is then checked against `creator`. */
|
|
231
234
|
routerTrusted: boolean;
|
|
232
|
-
/** Every check passes: the
|
|
235
|
+
/** Every check passes: the policy would admit this market from this creator (the mint fee aside — see {@link policyMintFeeMenu}). */
|
|
233
236
|
admitted: boolean;
|
|
234
237
|
}
|
|
235
238
|
/**
|
|
236
239
|
* The public policy's C checks for one candidate market and creator, in one round of reads — what
|
|
237
|
-
* the create form shows before a wallet is asked (064).
|
|
238
|
-
*
|
|
240
|
+
* the create form shows before a wallet is asked (064, 073). The policy is `key.policy`; the registry
|
|
241
|
+
* is asked `admit(policy, caller, 0)`, with the caller being the router when it is a trusted forwarder
|
|
242
|
+
* (it then names `creator` itself) and `creator` otherwise.
|
|
239
243
|
*/
|
|
240
244
|
export declare function cGateRules(c: LogswapClient, a: {
|
|
241
245
|
key: PoolKey;
|
|
@@ -269,21 +273,684 @@ export declare const gateErrorAbi: readonly ({
|
|
|
269
273
|
}];
|
|
270
274
|
readonly name: "PadExists";
|
|
271
275
|
} | {
|
|
272
|
-
readonly type: "
|
|
273
|
-
readonly inputs: readonly [
|
|
274
|
-
|
|
276
|
+
readonly type: "constructor";
|
|
277
|
+
readonly inputs: readonly [{
|
|
278
|
+
readonly name: "_logAuthority";
|
|
279
|
+
readonly internalType: "address";
|
|
280
|
+
readonly type: "address";
|
|
281
|
+
}];
|
|
282
|
+
readonly stateMutability: "nonpayable";
|
|
275
283
|
} | {
|
|
276
|
-
readonly type: "
|
|
284
|
+
readonly type: "function";
|
|
277
285
|
readonly inputs: readonly [];
|
|
278
|
-
readonly name: "
|
|
286
|
+
readonly name: "acceptLogAuthority";
|
|
287
|
+
readonly outputs: readonly [];
|
|
288
|
+
readonly stateMutability: "nonpayable";
|
|
279
289
|
} | {
|
|
280
|
-
readonly type: "
|
|
290
|
+
readonly type: "function";
|
|
281
291
|
readonly inputs: readonly [{
|
|
292
|
+
readonly name: "policy";
|
|
293
|
+
readonly internalType: "address";
|
|
294
|
+
readonly type: "address";
|
|
295
|
+
}, {
|
|
296
|
+
readonly name: "caller";
|
|
297
|
+
readonly internalType: "address";
|
|
298
|
+
readonly type: "address";
|
|
299
|
+
}, {
|
|
282
300
|
readonly name: "creator";
|
|
283
301
|
readonly internalType: "address";
|
|
284
302
|
readonly type: "address";
|
|
285
303
|
}];
|
|
286
|
-
readonly name: "
|
|
304
|
+
readonly name: "admit";
|
|
305
|
+
readonly outputs: readonly [{
|
|
306
|
+
readonly name: "who";
|
|
307
|
+
readonly internalType: "address";
|
|
308
|
+
readonly type: "address";
|
|
309
|
+
}];
|
|
310
|
+
readonly stateMutability: "view";
|
|
311
|
+
} | {
|
|
312
|
+
readonly type: "function";
|
|
313
|
+
readonly inputs: readonly [{
|
|
314
|
+
readonly name: "policy";
|
|
315
|
+
readonly internalType: "address";
|
|
316
|
+
readonly type: "address";
|
|
317
|
+
}, {
|
|
318
|
+
readonly name: "name";
|
|
319
|
+
readonly internalType: "bytes32";
|
|
320
|
+
readonly type: "bytes32";
|
|
321
|
+
}];
|
|
322
|
+
readonly name: "approve";
|
|
323
|
+
readonly outputs: readonly [];
|
|
324
|
+
readonly stateMutability: "nonpayable";
|
|
325
|
+
} | {
|
|
326
|
+
readonly type: "function";
|
|
327
|
+
readonly inputs: readonly [{
|
|
328
|
+
readonly name: "policy";
|
|
329
|
+
readonly internalType: "address";
|
|
330
|
+
readonly type: "address";
|
|
331
|
+
}, {
|
|
332
|
+
readonly name: "sponsor";
|
|
333
|
+
readonly internalType: "address";
|
|
334
|
+
readonly type: "address";
|
|
335
|
+
}];
|
|
336
|
+
readonly name: "bindSponsor";
|
|
337
|
+
readonly outputs: readonly [];
|
|
338
|
+
readonly stateMutability: "nonpayable";
|
|
339
|
+
} | {
|
|
340
|
+
readonly type: "function";
|
|
341
|
+
readonly inputs: readonly [{
|
|
342
|
+
readonly name: "";
|
|
343
|
+
readonly internalType: "address";
|
|
344
|
+
readonly type: "address";
|
|
345
|
+
}];
|
|
346
|
+
readonly name: "creationMode";
|
|
347
|
+
readonly outputs: readonly [{
|
|
348
|
+
readonly name: "";
|
|
349
|
+
readonly internalType: "enum PolicyRegistry.CreationMode";
|
|
350
|
+
readonly type: "uint8";
|
|
351
|
+
}];
|
|
352
|
+
readonly stateMutability: "view";
|
|
353
|
+
} | {
|
|
354
|
+
readonly type: "function";
|
|
355
|
+
readonly inputs: readonly [{
|
|
356
|
+
readonly name: "";
|
|
357
|
+
readonly internalType: "address";
|
|
358
|
+
readonly type: "address";
|
|
359
|
+
}];
|
|
360
|
+
readonly name: "entries";
|
|
361
|
+
readonly outputs: readonly [{
|
|
362
|
+
readonly name: "listed";
|
|
363
|
+
readonly internalType: "bool";
|
|
364
|
+
readonly type: "bool";
|
|
365
|
+
}, {
|
|
366
|
+
readonly name: "until";
|
|
367
|
+
readonly internalType: "uint64";
|
|
368
|
+
readonly type: "uint64";
|
|
369
|
+
}, {
|
|
370
|
+
readonly name: "index";
|
|
371
|
+
readonly internalType: "uint32";
|
|
372
|
+
readonly type: "uint32";
|
|
373
|
+
}, {
|
|
374
|
+
readonly name: "name";
|
|
375
|
+
readonly internalType: "bytes32";
|
|
376
|
+
readonly type: "bytes32";
|
|
377
|
+
}];
|
|
378
|
+
readonly stateMutability: "view";
|
|
379
|
+
} | {
|
|
380
|
+
readonly type: "function";
|
|
381
|
+
readonly inputs: readonly [{
|
|
382
|
+
readonly name: "";
|
|
383
|
+
readonly internalType: "address";
|
|
384
|
+
readonly type: "address";
|
|
385
|
+
}];
|
|
386
|
+
readonly name: "forwarderTrusted";
|
|
387
|
+
readonly outputs: readonly [{
|
|
388
|
+
readonly name: "";
|
|
389
|
+
readonly internalType: "bool";
|
|
390
|
+
readonly type: "bool";
|
|
391
|
+
}];
|
|
392
|
+
readonly stateMutability: "view";
|
|
393
|
+
} | {
|
|
394
|
+
readonly type: "function";
|
|
395
|
+
readonly inputs: readonly [{
|
|
396
|
+
readonly name: "";
|
|
397
|
+
readonly internalType: "address";
|
|
398
|
+
readonly type: "address";
|
|
399
|
+
}, {
|
|
400
|
+
readonly name: "";
|
|
401
|
+
readonly internalType: "address";
|
|
402
|
+
readonly type: "address";
|
|
403
|
+
}];
|
|
404
|
+
readonly name: "initializerListed";
|
|
405
|
+
readonly outputs: readonly [{
|
|
406
|
+
readonly name: "";
|
|
407
|
+
readonly internalType: "bool";
|
|
408
|
+
readonly type: "bool";
|
|
409
|
+
}];
|
|
410
|
+
readonly stateMutability: "view";
|
|
411
|
+
} | {
|
|
412
|
+
readonly type: "function";
|
|
413
|
+
readonly inputs: readonly [{
|
|
414
|
+
readonly name: "policy";
|
|
415
|
+
readonly internalType: "address";
|
|
416
|
+
readonly type: "address";
|
|
417
|
+
}];
|
|
418
|
+
readonly name: "isApproved";
|
|
419
|
+
readonly outputs: readonly [{
|
|
420
|
+
readonly name: "";
|
|
421
|
+
readonly internalType: "bool";
|
|
422
|
+
readonly type: "bool";
|
|
423
|
+
}];
|
|
424
|
+
readonly stateMutability: "view";
|
|
425
|
+
} | {
|
|
426
|
+
readonly type: "function";
|
|
427
|
+
readonly inputs: readonly [{
|
|
428
|
+
readonly name: "";
|
|
429
|
+
readonly internalType: "address";
|
|
430
|
+
readonly type: "address";
|
|
431
|
+
}];
|
|
432
|
+
readonly name: "kindOf";
|
|
433
|
+
readonly outputs: readonly [{
|
|
434
|
+
readonly name: "";
|
|
435
|
+
readonly internalType: "bytes32";
|
|
436
|
+
readonly type: "bytes32";
|
|
437
|
+
}];
|
|
438
|
+
readonly stateMutability: "view";
|
|
439
|
+
} | {
|
|
440
|
+
readonly type: "function";
|
|
441
|
+
readonly inputs: readonly [];
|
|
442
|
+
readonly name: "logAuthority";
|
|
443
|
+
readonly outputs: readonly [{
|
|
444
|
+
readonly name: "";
|
|
445
|
+
readonly internalType: "address";
|
|
446
|
+
readonly type: "address";
|
|
447
|
+
}];
|
|
448
|
+
readonly stateMutability: "view";
|
|
449
|
+
} | {
|
|
450
|
+
readonly type: "function";
|
|
451
|
+
readonly inputs: readonly [{
|
|
452
|
+
readonly name: "manager";
|
|
453
|
+
readonly internalType: "address";
|
|
454
|
+
readonly type: "address";
|
|
455
|
+
}, {
|
|
456
|
+
readonly name: "key";
|
|
457
|
+
readonly internalType: "struct FPoolKey";
|
|
458
|
+
readonly type: "tuple";
|
|
459
|
+
readonly components: readonly [{
|
|
460
|
+
readonly name: "quote";
|
|
461
|
+
readonly internalType: "address";
|
|
462
|
+
readonly type: "address";
|
|
463
|
+
}, {
|
|
464
|
+
readonly name: "bases";
|
|
465
|
+
readonly internalType: "address[]";
|
|
466
|
+
readonly type: "address[]";
|
|
467
|
+
}, {
|
|
468
|
+
readonly name: "weights";
|
|
469
|
+
readonly internalType: "uint256[]";
|
|
470
|
+
readonly type: "uint256[]";
|
|
471
|
+
}, {
|
|
472
|
+
readonly name: "swapFee";
|
|
473
|
+
readonly internalType: "uint256";
|
|
474
|
+
readonly type: "uint256";
|
|
475
|
+
}, {
|
|
476
|
+
readonly name: "policy";
|
|
477
|
+
readonly internalType: "address";
|
|
478
|
+
readonly type: "address";
|
|
479
|
+
}, {
|
|
480
|
+
readonly name: "creator";
|
|
481
|
+
readonly internalType: "address";
|
|
482
|
+
readonly type: "address";
|
|
483
|
+
}, {
|
|
484
|
+
readonly name: "salt";
|
|
485
|
+
readonly internalType: "bytes32";
|
|
486
|
+
readonly type: "bytes32";
|
|
487
|
+
}, {
|
|
488
|
+
readonly name: "lnCapOverFloor";
|
|
489
|
+
readonly internalType: "uint24";
|
|
490
|
+
readonly type: "uint24";
|
|
491
|
+
}];
|
|
492
|
+
}, {
|
|
493
|
+
readonly name: "to";
|
|
494
|
+
readonly internalType: "address";
|
|
495
|
+
readonly type: "address";
|
|
496
|
+
}];
|
|
497
|
+
readonly name: "migrate";
|
|
498
|
+
readonly outputs: readonly [];
|
|
499
|
+
readonly stateMutability: "nonpayable";
|
|
500
|
+
} | {
|
|
501
|
+
readonly type: "function";
|
|
502
|
+
readonly inputs: readonly [{
|
|
503
|
+
readonly name: "manager";
|
|
504
|
+
readonly internalType: "address";
|
|
505
|
+
readonly type: "address";
|
|
506
|
+
}, {
|
|
507
|
+
readonly name: "key";
|
|
508
|
+
readonly internalType: "struct FPoolKey";
|
|
509
|
+
readonly type: "tuple";
|
|
510
|
+
readonly components: readonly [{
|
|
511
|
+
readonly name: "quote";
|
|
512
|
+
readonly internalType: "address";
|
|
513
|
+
readonly type: "address";
|
|
514
|
+
}, {
|
|
515
|
+
readonly name: "bases";
|
|
516
|
+
readonly internalType: "address[]";
|
|
517
|
+
readonly type: "address[]";
|
|
518
|
+
}, {
|
|
519
|
+
readonly name: "weights";
|
|
520
|
+
readonly internalType: "uint256[]";
|
|
521
|
+
readonly type: "uint256[]";
|
|
522
|
+
}, {
|
|
523
|
+
readonly name: "swapFee";
|
|
524
|
+
readonly internalType: "uint256";
|
|
525
|
+
readonly type: "uint256";
|
|
526
|
+
}, {
|
|
527
|
+
readonly name: "policy";
|
|
528
|
+
readonly internalType: "address";
|
|
529
|
+
readonly type: "address";
|
|
530
|
+
}, {
|
|
531
|
+
readonly name: "creator";
|
|
532
|
+
readonly internalType: "address";
|
|
533
|
+
readonly type: "address";
|
|
534
|
+
}, {
|
|
535
|
+
readonly name: "salt";
|
|
536
|
+
readonly internalType: "bytes32";
|
|
537
|
+
readonly type: "bytes32";
|
|
538
|
+
}, {
|
|
539
|
+
readonly name: "lnCapOverFloor";
|
|
540
|
+
readonly internalType: "uint24";
|
|
541
|
+
readonly type: "uint24";
|
|
542
|
+
}];
|
|
543
|
+
}, {
|
|
544
|
+
readonly name: "to";
|
|
545
|
+
readonly internalType: "address";
|
|
546
|
+
readonly type: "address";
|
|
547
|
+
}, {
|
|
548
|
+
readonly name: "permissions";
|
|
549
|
+
readonly internalType: "struct IPrivatePolicyMigration.Permissions";
|
|
550
|
+
readonly type: "tuple";
|
|
551
|
+
readonly components: readonly [{
|
|
552
|
+
readonly name: "swapMode";
|
|
553
|
+
readonly internalType: "uint8";
|
|
554
|
+
readonly type: "uint8";
|
|
555
|
+
}, {
|
|
556
|
+
readonly name: "executor";
|
|
557
|
+
readonly internalType: "address";
|
|
558
|
+
readonly type: "address";
|
|
559
|
+
}, {
|
|
560
|
+
readonly name: "mintGated";
|
|
561
|
+
readonly internalType: "bool";
|
|
562
|
+
readonly type: "bool";
|
|
563
|
+
}, {
|
|
564
|
+
readonly name: "minters";
|
|
565
|
+
readonly internalType: "address[]";
|
|
566
|
+
readonly type: "address[]";
|
|
567
|
+
}, {
|
|
568
|
+
readonly name: "takers";
|
|
569
|
+
readonly internalType: "address[]";
|
|
570
|
+
readonly type: "address[]";
|
|
571
|
+
}];
|
|
572
|
+
}];
|
|
573
|
+
readonly name: "migratePrivate";
|
|
574
|
+
readonly outputs: readonly [];
|
|
575
|
+
readonly stateMutability: "nonpayable";
|
|
576
|
+
} | {
|
|
577
|
+
readonly type: "function";
|
|
578
|
+
readonly inputs: readonly [];
|
|
579
|
+
readonly name: "pendingLogAuthority";
|
|
580
|
+
readonly outputs: readonly [{
|
|
581
|
+
readonly name: "";
|
|
582
|
+
readonly internalType: "address";
|
|
583
|
+
readonly type: "address";
|
|
584
|
+
}];
|
|
585
|
+
readonly stateMutability: "view";
|
|
586
|
+
} | {
|
|
587
|
+
readonly type: "function";
|
|
588
|
+
readonly inputs: readonly [];
|
|
589
|
+
readonly name: "policies";
|
|
590
|
+
readonly outputs: readonly [{
|
|
591
|
+
readonly name: "";
|
|
592
|
+
readonly internalType: "address[]";
|
|
593
|
+
readonly type: "address[]";
|
|
594
|
+
}];
|
|
595
|
+
readonly stateMutability: "view";
|
|
596
|
+
} | {
|
|
597
|
+
readonly type: "function";
|
|
598
|
+
readonly inputs: readonly [{
|
|
599
|
+
readonly name: "next";
|
|
600
|
+
readonly internalType: "address";
|
|
601
|
+
readonly type: "address";
|
|
602
|
+
}];
|
|
603
|
+
readonly name: "proposeLogAuthority";
|
|
604
|
+
readonly outputs: readonly [];
|
|
605
|
+
readonly stateMutability: "nonpayable";
|
|
606
|
+
} | {
|
|
607
|
+
readonly type: "function";
|
|
608
|
+
readonly inputs: readonly [{
|
|
609
|
+
readonly name: "policy";
|
|
610
|
+
readonly internalType: "address";
|
|
611
|
+
readonly type: "address";
|
|
612
|
+
}];
|
|
613
|
+
readonly name: "revoke";
|
|
614
|
+
readonly outputs: readonly [];
|
|
615
|
+
readonly stateMutability: "nonpayable";
|
|
616
|
+
} | {
|
|
617
|
+
readonly type: "function";
|
|
618
|
+
readonly inputs: readonly [{
|
|
619
|
+
readonly name: "policy";
|
|
620
|
+
readonly internalType: "address";
|
|
621
|
+
readonly type: "address";
|
|
622
|
+
}, {
|
|
623
|
+
readonly name: "mode";
|
|
624
|
+
readonly internalType: "enum PolicyRegistry.CreationMode";
|
|
625
|
+
readonly type: "uint8";
|
|
626
|
+
}];
|
|
627
|
+
readonly name: "setCreationMode";
|
|
628
|
+
readonly outputs: readonly [];
|
|
629
|
+
readonly stateMutability: "nonpayable";
|
|
630
|
+
} | {
|
|
631
|
+
readonly type: "function";
|
|
632
|
+
readonly inputs: readonly [{
|
|
633
|
+
readonly name: "forwarder";
|
|
634
|
+
readonly internalType: "address";
|
|
635
|
+
readonly type: "address";
|
|
636
|
+
}, {
|
|
637
|
+
readonly name: "trusted";
|
|
638
|
+
readonly internalType: "bool";
|
|
639
|
+
readonly type: "bool";
|
|
640
|
+
}];
|
|
641
|
+
readonly name: "setForwarderTrusted";
|
|
642
|
+
readonly outputs: readonly [];
|
|
643
|
+
readonly stateMutability: "nonpayable";
|
|
644
|
+
} | {
|
|
645
|
+
readonly type: "function";
|
|
646
|
+
readonly inputs: readonly [{
|
|
647
|
+
readonly name: "policy";
|
|
648
|
+
readonly internalType: "address";
|
|
649
|
+
readonly type: "address";
|
|
650
|
+
}, {
|
|
651
|
+
readonly name: "who";
|
|
652
|
+
readonly internalType: "address";
|
|
653
|
+
readonly type: "address";
|
|
654
|
+
}, {
|
|
655
|
+
readonly name: "allowed";
|
|
656
|
+
readonly internalType: "bool";
|
|
657
|
+
readonly type: "bool";
|
|
658
|
+
}];
|
|
659
|
+
readonly name: "setInitializerListed";
|
|
660
|
+
readonly outputs: readonly [];
|
|
661
|
+
readonly stateMutability: "nonpayable";
|
|
662
|
+
} | {
|
|
663
|
+
readonly type: "function";
|
|
664
|
+
readonly inputs: readonly [{
|
|
665
|
+
readonly name: "who";
|
|
666
|
+
readonly internalType: "address";
|
|
667
|
+
readonly type: "address";
|
|
668
|
+
}, {
|
|
669
|
+
readonly name: "name";
|
|
670
|
+
readonly internalType: "bytes32";
|
|
671
|
+
readonly type: "bytes32";
|
|
672
|
+
}];
|
|
673
|
+
readonly name: "setSponsorName";
|
|
674
|
+
readonly outputs: readonly [];
|
|
675
|
+
readonly stateMutability: "nonpayable";
|
|
676
|
+
} | {
|
|
677
|
+
readonly type: "function";
|
|
678
|
+
readonly inputs: readonly [{
|
|
679
|
+
readonly name: "";
|
|
680
|
+
readonly internalType: "address";
|
|
681
|
+
readonly type: "address";
|
|
682
|
+
}];
|
|
683
|
+
readonly name: "sponsorName";
|
|
684
|
+
readonly outputs: readonly [{
|
|
685
|
+
readonly name: "";
|
|
686
|
+
readonly internalType: "bytes32";
|
|
687
|
+
readonly type: "bytes32";
|
|
688
|
+
}];
|
|
689
|
+
readonly stateMutability: "view";
|
|
690
|
+
} | {
|
|
691
|
+
readonly type: "function";
|
|
692
|
+
readonly inputs: readonly [{
|
|
693
|
+
readonly name: "policy";
|
|
694
|
+
readonly internalType: "address";
|
|
695
|
+
readonly type: "address";
|
|
696
|
+
}];
|
|
697
|
+
readonly name: "sponsorOf";
|
|
698
|
+
readonly outputs: readonly [{
|
|
699
|
+
readonly name: "";
|
|
700
|
+
readonly internalType: "address";
|
|
701
|
+
readonly type: "address";
|
|
702
|
+
}];
|
|
703
|
+
readonly stateMutability: "view";
|
|
704
|
+
} | {
|
|
705
|
+
readonly type: "function";
|
|
706
|
+
readonly inputs: readonly [{
|
|
707
|
+
readonly name: "policy";
|
|
708
|
+
readonly internalType: "address";
|
|
709
|
+
readonly type: "address";
|
|
710
|
+
}, {
|
|
711
|
+
readonly name: "untilTime";
|
|
712
|
+
readonly internalType: "uint64";
|
|
713
|
+
readonly type: "uint64";
|
|
714
|
+
}];
|
|
715
|
+
readonly name: "sunset";
|
|
716
|
+
readonly outputs: readonly [];
|
|
717
|
+
readonly stateMutability: "nonpayable";
|
|
718
|
+
} | {
|
|
719
|
+
readonly type: "event";
|
|
720
|
+
readonly anonymous: false;
|
|
721
|
+
readonly inputs: readonly [{
|
|
722
|
+
readonly name: "policy";
|
|
723
|
+
readonly internalType: "address";
|
|
724
|
+
readonly type: "address";
|
|
725
|
+
readonly indexed: true;
|
|
726
|
+
}, {
|
|
727
|
+
readonly name: "name";
|
|
728
|
+
readonly internalType: "bytes32";
|
|
729
|
+
readonly type: "bytes32";
|
|
730
|
+
readonly indexed: false;
|
|
731
|
+
}];
|
|
732
|
+
readonly name: "Approved";
|
|
733
|
+
} | {
|
|
734
|
+
readonly type: "event";
|
|
735
|
+
readonly anonymous: false;
|
|
736
|
+
readonly inputs: readonly [{
|
|
737
|
+
readonly name: "policy";
|
|
738
|
+
readonly internalType: "address";
|
|
739
|
+
readonly type: "address";
|
|
740
|
+
readonly indexed: true;
|
|
741
|
+
}, {
|
|
742
|
+
readonly name: "mode";
|
|
743
|
+
readonly internalType: "enum PolicyRegistry.CreationMode";
|
|
744
|
+
readonly type: "uint8";
|
|
745
|
+
readonly indexed: false;
|
|
746
|
+
}];
|
|
747
|
+
readonly name: "CreationModeSet";
|
|
748
|
+
} | {
|
|
749
|
+
readonly type: "event";
|
|
750
|
+
readonly anonymous: false;
|
|
751
|
+
readonly inputs: readonly [{
|
|
752
|
+
readonly name: "forwarder";
|
|
753
|
+
readonly internalType: "address";
|
|
754
|
+
readonly type: "address";
|
|
755
|
+
readonly indexed: true;
|
|
756
|
+
}, {
|
|
757
|
+
readonly name: "trusted";
|
|
758
|
+
readonly internalType: "bool";
|
|
759
|
+
readonly type: "bool";
|
|
760
|
+
readonly indexed: false;
|
|
761
|
+
}];
|
|
762
|
+
readonly name: "ForwarderTrusted";
|
|
763
|
+
} | {
|
|
764
|
+
readonly type: "event";
|
|
765
|
+
readonly anonymous: false;
|
|
766
|
+
readonly inputs: readonly [{
|
|
767
|
+
readonly name: "policy";
|
|
768
|
+
readonly internalType: "address";
|
|
769
|
+
readonly type: "address";
|
|
770
|
+
readonly indexed: true;
|
|
771
|
+
}, {
|
|
772
|
+
readonly name: "who";
|
|
773
|
+
readonly internalType: "address";
|
|
774
|
+
readonly type: "address";
|
|
775
|
+
readonly indexed: true;
|
|
776
|
+
}, {
|
|
777
|
+
readonly name: "allowed";
|
|
778
|
+
readonly internalType: "bool";
|
|
779
|
+
readonly type: "bool";
|
|
780
|
+
readonly indexed: false;
|
|
781
|
+
}];
|
|
782
|
+
readonly name: "InitializerListed";
|
|
783
|
+
} | {
|
|
784
|
+
readonly type: "event";
|
|
785
|
+
readonly anonymous: false;
|
|
786
|
+
readonly inputs: readonly [{
|
|
787
|
+
readonly name: "prev";
|
|
788
|
+
readonly internalType: "address";
|
|
789
|
+
readonly type: "address";
|
|
790
|
+
readonly indexed: true;
|
|
791
|
+
}, {
|
|
792
|
+
readonly name: "next";
|
|
793
|
+
readonly internalType: "address";
|
|
794
|
+
readonly type: "address";
|
|
795
|
+
readonly indexed: true;
|
|
796
|
+
}];
|
|
797
|
+
readonly name: "LogAuthorityAccepted";
|
|
798
|
+
} | {
|
|
799
|
+
readonly type: "event";
|
|
800
|
+
readonly anonymous: false;
|
|
801
|
+
readonly inputs: readonly [{
|
|
802
|
+
readonly name: "current";
|
|
803
|
+
readonly internalType: "address";
|
|
804
|
+
readonly type: "address";
|
|
805
|
+
readonly indexed: true;
|
|
806
|
+
}, {
|
|
807
|
+
readonly name: "proposed";
|
|
808
|
+
readonly internalType: "address";
|
|
809
|
+
readonly type: "address";
|
|
810
|
+
readonly indexed: true;
|
|
811
|
+
}];
|
|
812
|
+
readonly name: "LogAuthorityProposed";
|
|
813
|
+
} | {
|
|
814
|
+
readonly type: "event";
|
|
815
|
+
readonly anonymous: false;
|
|
816
|
+
readonly inputs: readonly [{
|
|
817
|
+
readonly name: "manager";
|
|
818
|
+
readonly internalType: "address";
|
|
819
|
+
readonly type: "address";
|
|
820
|
+
readonly indexed: true;
|
|
821
|
+
}, {
|
|
822
|
+
readonly name: "poolId";
|
|
823
|
+
readonly internalType: "bytes32";
|
|
824
|
+
readonly type: "bytes32";
|
|
825
|
+
readonly indexed: true;
|
|
826
|
+
}, {
|
|
827
|
+
readonly name: "to";
|
|
828
|
+
readonly internalType: "address";
|
|
829
|
+
readonly type: "address";
|
|
830
|
+
readonly indexed: true;
|
|
831
|
+
}, {
|
|
832
|
+
readonly name: "from";
|
|
833
|
+
readonly internalType: "address";
|
|
834
|
+
readonly type: "address";
|
|
835
|
+
readonly indexed: false;
|
|
836
|
+
}, {
|
|
837
|
+
readonly name: "authority";
|
|
838
|
+
readonly internalType: "address";
|
|
839
|
+
readonly type: "address";
|
|
840
|
+
readonly indexed: false;
|
|
841
|
+
}];
|
|
842
|
+
readonly name: "Migrated";
|
|
843
|
+
} | {
|
|
844
|
+
readonly type: "event";
|
|
845
|
+
readonly anonymous: false;
|
|
846
|
+
readonly inputs: readonly [{
|
|
847
|
+
readonly name: "policy";
|
|
848
|
+
readonly internalType: "address";
|
|
849
|
+
readonly type: "address";
|
|
850
|
+
readonly indexed: true;
|
|
851
|
+
}];
|
|
852
|
+
readonly name: "Revoked";
|
|
853
|
+
} | {
|
|
854
|
+
readonly type: "event";
|
|
855
|
+
readonly anonymous: false;
|
|
856
|
+
readonly inputs: readonly [{
|
|
857
|
+
readonly name: "policy";
|
|
858
|
+
readonly internalType: "address";
|
|
859
|
+
readonly type: "address";
|
|
860
|
+
readonly indexed: true;
|
|
861
|
+
}, {
|
|
862
|
+
readonly name: "sponsor";
|
|
863
|
+
readonly internalType: "address";
|
|
864
|
+
readonly type: "address";
|
|
865
|
+
readonly indexed: true;
|
|
866
|
+
}];
|
|
867
|
+
readonly name: "SponsorBound";
|
|
868
|
+
} | {
|
|
869
|
+
readonly type: "event";
|
|
870
|
+
readonly anonymous: false;
|
|
871
|
+
readonly inputs: readonly [{
|
|
872
|
+
readonly name: "who";
|
|
873
|
+
readonly internalType: "address";
|
|
874
|
+
readonly type: "address";
|
|
875
|
+
readonly indexed: true;
|
|
876
|
+
}, {
|
|
877
|
+
readonly name: "name";
|
|
878
|
+
readonly internalType: "bytes32";
|
|
879
|
+
readonly type: "bytes32";
|
|
880
|
+
readonly indexed: false;
|
|
881
|
+
}];
|
|
882
|
+
readonly name: "SponsorNamed";
|
|
883
|
+
} | {
|
|
884
|
+
readonly type: "event";
|
|
885
|
+
readonly anonymous: false;
|
|
886
|
+
readonly inputs: readonly [{
|
|
887
|
+
readonly name: "policy";
|
|
888
|
+
readonly internalType: "address";
|
|
889
|
+
readonly type: "address";
|
|
890
|
+
readonly indexed: true;
|
|
891
|
+
}, {
|
|
892
|
+
readonly name: "untilTime";
|
|
893
|
+
readonly internalType: "uint64";
|
|
894
|
+
readonly type: "uint64";
|
|
895
|
+
readonly indexed: false;
|
|
896
|
+
}];
|
|
897
|
+
readonly name: "SunsetSet";
|
|
898
|
+
} | {
|
|
899
|
+
readonly type: "error";
|
|
900
|
+
readonly inputs: readonly [];
|
|
901
|
+
readonly name: "BadSunset";
|
|
902
|
+
} | {
|
|
903
|
+
readonly type: "error";
|
|
904
|
+
readonly inputs: readonly [];
|
|
905
|
+
readonly name: "InitializerNotListed";
|
|
906
|
+
} | {
|
|
907
|
+
readonly type: "error";
|
|
908
|
+
readonly inputs: readonly [];
|
|
909
|
+
readonly name: "InvalidForwardedUser";
|
|
910
|
+
} | {
|
|
911
|
+
readonly type: "error";
|
|
912
|
+
readonly inputs: readonly [];
|
|
913
|
+
readonly name: "KindMismatch";
|
|
914
|
+
} | {
|
|
915
|
+
readonly type: "error";
|
|
916
|
+
readonly inputs: readonly [];
|
|
917
|
+
readonly name: "NoPool";
|
|
918
|
+
} | {
|
|
919
|
+
readonly type: "error";
|
|
920
|
+
readonly inputs: readonly [];
|
|
921
|
+
readonly name: "NotAPolicy";
|
|
922
|
+
} | {
|
|
923
|
+
readonly type: "error";
|
|
924
|
+
readonly inputs: readonly [];
|
|
925
|
+
readonly name: "NotListed";
|
|
926
|
+
} | {
|
|
927
|
+
readonly type: "error";
|
|
928
|
+
readonly inputs: readonly [];
|
|
929
|
+
readonly name: "NotLogAuthority";
|
|
930
|
+
} | {
|
|
931
|
+
readonly type: "error";
|
|
932
|
+
readonly inputs: readonly [];
|
|
933
|
+
readonly name: "PrivatePermissionsRequired";
|
|
934
|
+
} | {
|
|
935
|
+
readonly type: "error";
|
|
936
|
+
readonly inputs: readonly [];
|
|
937
|
+
readonly name: "SamePolicy";
|
|
938
|
+
} | {
|
|
939
|
+
readonly type: "error";
|
|
940
|
+
readonly inputs: readonly [];
|
|
941
|
+
readonly name: "SponsorOnly";
|
|
942
|
+
} | {
|
|
943
|
+
readonly type: "error";
|
|
944
|
+
readonly inputs: readonly [];
|
|
945
|
+
readonly name: "WrongManager";
|
|
946
|
+
} | {
|
|
947
|
+
readonly type: "error";
|
|
948
|
+
readonly inputs: readonly [];
|
|
949
|
+
readonly name: "BadFee";
|
|
950
|
+
} | {
|
|
951
|
+
readonly type: "error";
|
|
952
|
+
readonly inputs: readonly [];
|
|
953
|
+
readonly name: "BadRate";
|
|
287
954
|
} | {
|
|
288
955
|
readonly type: "error";
|
|
289
956
|
readonly inputs: readonly [{
|
|
@@ -320,14 +987,6 @@ export declare const gateErrorAbi: readonly ({
|
|
|
320
987
|
readonly type: "error";
|
|
321
988
|
readonly inputs: readonly [];
|
|
322
989
|
readonly name: "NoCreator";
|
|
323
|
-
} | {
|
|
324
|
-
readonly type: "error";
|
|
325
|
-
readonly inputs: readonly [{
|
|
326
|
-
readonly name: "forwarder";
|
|
327
|
-
readonly internalType: "address";
|
|
328
|
-
readonly type: "address";
|
|
329
|
-
}];
|
|
330
|
-
readonly name: "NoForwardedUser";
|
|
331
990
|
} | {
|
|
332
991
|
readonly type: "error";
|
|
333
992
|
readonly inputs: readonly [];
|
|
@@ -336,14 +995,6 @@ export declare const gateErrorAbi: readonly ({
|
|
|
336
995
|
readonly type: "error";
|
|
337
996
|
readonly inputs: readonly [];
|
|
338
997
|
readonly name: "NotCanonical";
|
|
339
|
-
} | {
|
|
340
|
-
readonly type: "error";
|
|
341
|
-
readonly inputs: readonly [{
|
|
342
|
-
readonly name: "token";
|
|
343
|
-
readonly internalType: "address";
|
|
344
|
-
readonly type: "address";
|
|
345
|
-
}];
|
|
346
|
-
readonly name: "NotListed";
|
|
347
998
|
} | {
|
|
348
999
|
readonly type: "error";
|
|
349
1000
|
readonly inputs: readonly [];
|
|
@@ -356,6 +1007,10 @@ export declare const gateErrorAbi: readonly ({
|
|
|
356
1007
|
readonly type: "error";
|
|
357
1008
|
readonly inputs: readonly [];
|
|
358
1009
|
readonly name: "NotRegistry";
|
|
1010
|
+
} | {
|
|
1011
|
+
readonly type: "error";
|
|
1012
|
+
readonly inputs: readonly [];
|
|
1013
|
+
readonly name: "NotSponsor";
|
|
359
1014
|
} | {
|
|
360
1015
|
readonly type: "error";
|
|
361
1016
|
readonly inputs: readonly [];
|
|
@@ -393,10 +1048,6 @@ export declare const gateErrorAbi: readonly ({
|
|
|
393
1048
|
}];
|
|
394
1049
|
readonly name: "SpacingNotListed";
|
|
395
1050
|
})[];
|
|
396
|
-
/** `PublicPolicy.setListed`: an asset a curated seed may hold. */
|
|
397
|
-
export declare function publicSetListed(c: LogswapClient, policy: Address, token: Address, listed: boolean): Promise<Hash>;
|
|
398
|
-
/** `PublicPolicy.setCurated`: whether every public seed is checked against the list. */
|
|
399
|
-
export declare function publicSetCurated(c: LogswapClient, policy: Address, curated: boolean): Promise<Hash>;
|
|
400
1051
|
/** A manager's treasury — where its protocol revenue goes — and the proposed next one. */
|
|
401
1052
|
export declare function logTreasury(c: LogswapClient, side: "C" | "F"): Promise<{
|
|
402
1053
|
treasury: Address;
|