@logswap/sdk 0.5.91 → 0.5.92
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 +61 -18
- package/dist/admin.d.ts +48 -871
- package/dist/admin.js +55 -110
- package/dist/chains.d.ts +4 -4
- package/dist/chains.js +2 -3
- package/dist/client.d.ts +6 -7
- package/dist/client.js +12 -1
- package/dist/fpool.d.ts +298 -801
- package/dist/fpool.js +312 -336
- package/dist/generated.d.ts +1707 -3843
- package/dist/generated.js +982 -2248
- package/dist/history.js +7 -11
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/write.js +2 -2
- package/package.json +1 -1
- package/src/admin.ts +66 -169
- package/src/chains.ts +6 -7
- package/src/client.ts +17 -7
- package/src/fpool.ts +449 -510
- package/src/generated.ts +938 -2210
- package/src/history.ts +5 -7
- package/src/index.ts +1 -1
- package/src/write.ts +2 -2
package/dist/admin.d.ts
CHANGED
|
@@ -1,21 +1,23 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* admin — the protocol's writes: the policies a pool may be born
|
|
3
|
-
* creation modes
|
|
4
|
-
*
|
|
5
|
-
*
|
|
2
|
+
* admin — the protocol's writes: the policies a pool may be born under (the registry's list, its sunsets), the C manager's
|
|
3
|
+
* creation modes, the two roles' two-step handovers (decision 066): the LOG Authority (the registry's `logAuthority`)
|
|
4
|
+
* administers the registry and both managers; the LOG Treasury (`treasury` on each manager) only receives, and is replaced by
|
|
5
|
+
* the authority's `proposeTreasury`. Plain writes to the managers and the registry; no router.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
7
|
+
* The policies are immutable and deployed by the LOG (decision 098; policy.md): a policy has no setter of its numbers — its fee
|
|
8
|
+
* mask, quotes, bases, buffer, tax and cap bound are constructor immutables — so there is no wrapper that writes one. A change is
|
|
9
|
+
* a new policy, approved ({@link registryApprove}); the old one is sunset ({@link registrySunset}) and its pools run to their next
|
|
10
|
+
* close. The key's policy is the pool's for life: the registry's `migrate` and `orphan` are gone (F 41). What remains here for the
|
|
11
|
+
* policies is reading their numbers; their per-pool settings are in `fpool.ts`.
|
|
10
12
|
*
|
|
11
|
-
* The mint fee has no cut to set since C version 6 / F version 24 (decisions 058): the whole fee
|
|
12
|
-
*
|
|
13
|
-
*
|
|
13
|
+
* The mint fee has no cut to set since C version 6 / F version 24 (decisions 058): the whole fee is the protocol's on both
|
|
14
|
+
* managers. A harvest has no cut (056); the protocol's share of a harvest's income is the policy's `incomeTaxRate` on the
|
|
15
|
+
* payer's slice, capped by the manager at `INCOME_TAX_MAX`.
|
|
14
16
|
*/
|
|
15
|
-
import type { Address, Hash
|
|
17
|
+
import type { Address, Hash } from "viem";
|
|
16
18
|
import { type PoolKey } from "./keys.js";
|
|
17
19
|
import { type LogswapClient, type Side } from "./client.js";
|
|
18
|
-
import { type
|
|
20
|
+
import { type FPoolKind } from "./fpool.js";
|
|
19
21
|
/**
|
|
20
22
|
* The C swap-fee tax (decisions 060, 066, 098): the protocol's share of every swap fee a C position is
|
|
21
23
|
* paid (claims and the burn's auto-claim), WAD. `tax` is the level a market born under `policy` (default: the deployment's
|
|
@@ -37,11 +39,12 @@ export declare function cMarketSwapFeeTax(c: LogswapClient, key: PoolKey): Promi
|
|
|
37
39
|
export declare function policyRegistryOf(c: LogswapClient): Promise<Address>;
|
|
38
40
|
/** Whether `policy` is approved now — listed and not yet sunset. True everywhere on a deployment with no registry. */
|
|
39
41
|
export declare function policyApproved(c: LogswapClient, policy: Address): Promise<boolean>;
|
|
40
|
-
/** One policy on the registry's list, with what it
|
|
42
|
+
/** One policy on the registry's list, with what it is. */
|
|
41
43
|
export interface RegistryEntry {
|
|
42
44
|
policy: Address;
|
|
43
|
-
/** The policy's
|
|
44
|
-
kind: FPoolKind;
|
|
45
|
+
/** The label the policy's terms spell ({@link fPolicyTermsOf}) — what a pool born under it is; `null` for a policy that answers no F terms (the C sponsored policy). */
|
|
46
|
+
kind: FPoolKind | null;
|
|
47
|
+
/** The name recorded at approval (`approve(policy, name)`). */
|
|
45
48
|
name: string;
|
|
46
49
|
/** The time (unix seconds) it closes to new pools from; 0 = open. A block number before F version 29. */
|
|
47
50
|
until: bigint;
|
|
@@ -49,9 +52,9 @@ export interface RegistryEntry {
|
|
|
49
52
|
approved: boolean;
|
|
50
53
|
}
|
|
51
54
|
/**
|
|
52
|
-
* Every policy listed, sunset ones included — one flat list, each with the kind
|
|
53
|
-
*
|
|
54
|
-
* with no registry.
|
|
55
|
+
* Every policy listed, sunset ones included — one flat list, each with the kind its terms spell; `kind` narrows it to one,
|
|
56
|
+
* which is what a create form's dropdown reads. The registry is one list for both managers: a C policy is on it with `kind`
|
|
57
|
+
* `null`. Empty with no registry.
|
|
55
58
|
*/
|
|
56
59
|
export declare function registryPolicies(c: LogswapClient, kind?: FPoolKind): Promise<RegistryEntry[]>;
|
|
57
60
|
/**
|
|
@@ -91,100 +94,28 @@ export declare const registryAcceptOwner: typeof acceptLogAuthority;
|
|
|
91
94
|
*/
|
|
92
95
|
export declare function setPolicyApproved(c: LogswapClient, policy: Address, approved: boolean): Promise<Hash>;
|
|
93
96
|
/**
|
|
94
|
-
*
|
|
95
|
-
*
|
|
96
|
-
* policy
|
|
97
|
+
* The name the registry recorded for `policy` at approval (`kindOf`, F version 20: `approve(policy, name)`'s word) — refreshed
|
|
98
|
+
* on re-approval and kept after a revoke. The LOG's own instances are approved as `public`, `private`, `pol`, `pad`; what a
|
|
99
|
+
* policy IS is its terms ({@link fPolicyTermsOf}). "" for a policy the registry never approved (or a deployment with no registry).
|
|
97
100
|
*/
|
|
98
|
-
export
|
|
99
|
-
|
|
100
|
-
/** The pool's operator under the new policy; zero (the default) appoints none. Required for `operator` mode. */
|
|
101
|
-
operator?: Address;
|
|
102
|
-
/** The mint gate: only the authority and the operator mint. */
|
|
103
|
-
mintGated?: boolean;
|
|
104
|
-
/** Accounts added to the swap whitelist. */
|
|
105
|
-
listed?: readonly Address[];
|
|
106
|
-
}
|
|
107
|
-
/**
|
|
108
|
-
* Move a pool to another approved policy of the same kind: the LOG Authority's alone, a forced move
|
|
109
|
-
* (adoption at regeneration by the pool authority's consent is specified, not built — logswap-docs
|
|
110
|
-
* `specs/governance/policy-adoption.md`), orchestrated on the registry — `migrate(manager, key, to, permissions)`
|
|
111
|
-
* (decision 098; `migratePrivate` is gone). The registry checks the key against the manager (`NoPool`), the manager is its
|
|
112
|
-
* own (`WrongManager`), the two policies' tags recorded at approval ({@link registryKindOf}; every sponsored policy shares
|
|
113
|
-
* `"sponsor"`), the creation mode against the pool's authority (`SponsorOnly`: a sponsor's pool moves only under a policy of
|
|
114
|
-
* the same sponsor, or one open to anyone) and that the pool never held the target (`AlreadyHeld`). The new policy is
|
|
115
|
-
* brought the authority and the name (read off the old policy defensively, the key's creator standing in when it cannot
|
|
116
|
-
* answer); `permissions` installs the pool's swap mode, operator, mint gate and whitelist under it in the same transaction ({@link MigrationPermissions});
|
|
117
|
-
* the key, its fees and its id are untouched; no swap lands in the block. F only until C ships a `setPolicy`.
|
|
118
|
-
*
|
|
119
|
-
* Pass the pool's `key` when in hand. Given only `poolId`, the key is rebuilt from the pool's
|
|
120
|
-
* `PoolCreated` log ({@link fPoolKeyOfPool}) with `salt` (zero by default) and checked against
|
|
121
|
-
* the id — the log does not carry the salt, so a salted pool needs it named.
|
|
122
|
-
*/
|
|
123
|
-
export declare function fPoolMigrate(c: LogswapClient, a: {
|
|
124
|
-
to: Address;
|
|
125
|
-
permissions?: MigrationPermissions;
|
|
126
|
-
} & ({
|
|
127
|
-
key: FPoolKey;
|
|
128
|
-
} | {
|
|
129
|
-
poolId: `0x${string}`;
|
|
130
|
-
salt?: `0x${string}`;
|
|
131
|
-
fromBlock?: bigint;
|
|
132
|
-
})): Promise<Hash>;
|
|
133
|
-
/**
|
|
134
|
-
* `PolicyRegistry.orphan(manager, key)` (decision 098): move a pool whose sponsor went rogue or lost its key to the manager's orphan policy
|
|
135
|
-
* ({@link registryOrphanPolicyOf}) — no owner and no setting; swap and mint open; `deployLiquidity`, `harvest`, `close` and the generation
|
|
136
|
-
* step refused; income tax zero. The LOG Authority's alone, needing no consent, and FINAL: a pool never leaves the orphan policy (`Orphaned`).
|
|
137
|
-
* `key` as in {@link fPoolMigrate}.
|
|
138
|
-
*/
|
|
139
|
-
export declare function fPoolOrphan(c: LogswapClient, a: {
|
|
140
|
-
key: FPoolKey;
|
|
141
|
-
} | {
|
|
142
|
-
poolId: `0x${string}`;
|
|
143
|
-
salt?: `0x${string}`;
|
|
144
|
-
fromBlock?: bigint;
|
|
145
|
-
}): Promise<Hash>;
|
|
146
|
-
/** The orphan policy registered for a manager (`orphanPolicy(manager)`): F's by default; zero when none is registered or the deployment has no registry. */
|
|
147
|
-
export declare function registryOrphanPolicyOf(c: LogswapClient, side?: Side): Promise<Address>;
|
|
148
|
-
/** `PolicyRegistry.setOrphanPolicy(manager, policy)`: register the approved policy tagged `"orphan"` that answers `manager` (F's by default). The LOG Authority's. */
|
|
149
|
-
export declare function registrySetOrphanPolicy(c: LogswapClient, policy: Address, side?: Side): Promise<Hash>;
|
|
150
|
-
/**
|
|
151
|
-
* The kind tag the registry recorded for `policy` at approval (`kindOf`, F version 20) — refreshed
|
|
152
|
-
* on re-approval and kept after a revoke; what `migrate` compares, never the policy's live
|
|
153
|
-
* answer. "" for a policy the registry never approved (or a deployment with no registry).
|
|
154
|
-
*/
|
|
155
|
-
export declare function registryKindOf(c: LogswapClient, policy: Address): Promise<FPoolKind | "">;
|
|
156
|
-
/** A pad policy's `T(0)` in one quote (decision 070): `set` false means no pad can be born on that quote. */
|
|
157
|
-
export interface PadThresholdBase {
|
|
158
|
-
quote: Address;
|
|
159
|
-
set: boolean;
|
|
160
|
-
/** In the quote's units; 0 when not set. */
|
|
161
|
-
base: bigint;
|
|
162
|
-
}
|
|
163
|
-
/** `PadPolicy.thresholdSet(quote)` and `thresholdBaseOf(quote)` for each quote asked (decision 070). */
|
|
164
|
-
export declare function padThresholdBases(c: LogswapClient, policy: Address, quotes: readonly Address[]): Promise<PadThresholdBase[]>;
|
|
165
|
-
/** `PadPolicy.thresholdOf(quote, rung)` (decision 070): the income a pad quoted in `quote` must bank to climb `rung` (0 reads `T(0)`). */
|
|
166
|
-
export declare function padThresholdOf(c: LogswapClient, policy: Address, quote: Address, rung?: bigint | number): Promise<bigint>;
|
|
167
|
-
/** `PadPolicy.threshold(poolId, rung)` (decision 070): the income pad `poolId` must bank to climb `rung`, in its own quote. */
|
|
168
|
-
export declare function padThreshold(c: LogswapClient, policy: Address, poolId: Hex, rung: bigint | number): Promise<bigint>;
|
|
169
|
-
/** A pad policy's schedule (decision 070: without `T(0)`, which is per quote — {@link padThresholdBases}). WAD numbers. */
|
|
170
|
-
export interface PadSchedule {
|
|
171
|
-
thresholdGrowth: bigint;
|
|
172
|
-
creatorShareMin: bigint;
|
|
173
|
-
creatorShareMax: bigint;
|
|
174
|
-
}
|
|
175
|
-
/** Read {@link PadSchedule} off a pad policy. */
|
|
176
|
-
export declare function padScheduleOf(c: LogswapClient, policy: Address): Promise<PadSchedule>;
|
|
177
|
-
/** Whether `quote` passes a sponsored `policy`'s birth check now: it curates quotes (`quoteCurated`, a non-empty list set in the constructor) and lists it, or it does not curate. */
|
|
101
|
+
export declare function registryKindOf(c: LogswapClient, policy: Address): Promise<string>;
|
|
102
|
+
/** Whether `quote` passes an F `policy`'s birth check now: it curates quotes (`quoteCurated`, a non-empty list set in the constructor) and lists it, or it does not curate. */
|
|
178
103
|
export declare function policyQuoteAllowed(c: LogswapClient, policy: Address, quote: Address): Promise<{
|
|
179
104
|
curated: boolean;
|
|
180
105
|
listed: boolean;
|
|
181
106
|
allowed: boolean;
|
|
182
107
|
}>;
|
|
108
|
+
/** Whether `base` passes an F `policy`'s birth check now: it curates bases (`baseCurated`) and lists it, or it does not curate. */
|
|
109
|
+
export declare function policyBaseAllowed(c: LogswapClient, policy: Address, base: Address): Promise<{
|
|
110
|
+
curated: boolean;
|
|
111
|
+
listed: boolean;
|
|
112
|
+
allowed: boolean;
|
|
113
|
+
}>;
|
|
183
114
|
/**
|
|
184
|
-
* Whether
|
|
185
|
-
*
|
|
115
|
+
* Whether the swap fee at `swapFeeIdx` of the F fee list passes `policy`'s birth check now (`feeMask`, policy.md §6). `curated` is true
|
|
116
|
+
* when the policy masks the list (a non-zero mask); with none, every entry is allowed. The mint fee follows the swap fee and is not asked.
|
|
186
117
|
*/
|
|
187
|
-
export declare function policyFeeAllowed(c: LogswapClient, policy: Address,
|
|
118
|
+
export declare function policyFeeAllowed(c: LogswapClient, policy: Address, swapFeeIdx: number): Promise<{
|
|
188
119
|
curated: boolean;
|
|
189
120
|
listed: boolean;
|
|
190
121
|
allowed: boolean;
|
|
@@ -245,774 +176,19 @@ export declare function cGateRules(c: LogswapClient, a: {
|
|
|
245
176
|
gate?: Address;
|
|
246
177
|
}): Promise<CGateRules>;
|
|
247
178
|
/**
|
|
248
|
-
* Every refusal a birth can meet at a
|
|
249
|
-
* failed simulation: the sponsored C policy's errors
|
|
250
|
-
*
|
|
179
|
+
* Every refusal a birth can meet at a policy or the registry (064, 065, 098; policy.md §4.4), for `decodeErrorResult` on a
|
|
180
|
+
* failed simulation: the sponsored C policy's errors, the F policy's (`Refused`, `NotCanonical`, `FeeNotListed`, `QuoteNotListed`,
|
|
181
|
+
* `BaseNotListed`, `TooManyLegs`, `AlreadyHeld`, …) and the registry's admission errors. One entry per distinct signature.
|
|
251
182
|
*/
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
}];
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
readonly type: "error";
|
|
262
|
-
readonly inputs: readonly [{
|
|
263
|
-
readonly name: "base";
|
|
264
|
-
readonly internalType: "address";
|
|
265
|
-
readonly type: "address";
|
|
266
|
-
}, {
|
|
267
|
-
readonly name: "pad";
|
|
268
|
-
readonly internalType: "bytes32";
|
|
269
|
-
readonly type: "bytes32";
|
|
270
|
-
}];
|
|
271
|
-
readonly name: "PadExists";
|
|
272
|
-
} | {
|
|
273
|
-
readonly type: "constructor";
|
|
274
|
-
readonly inputs: readonly [{
|
|
275
|
-
readonly name: "_logAuthority";
|
|
276
|
-
readonly internalType: "address";
|
|
277
|
-
readonly type: "address";
|
|
278
|
-
}];
|
|
279
|
-
readonly stateMutability: "nonpayable";
|
|
280
|
-
} | {
|
|
281
|
-
readonly type: "function";
|
|
282
|
-
readonly inputs: readonly [];
|
|
283
|
-
readonly name: "acceptLogAuthority";
|
|
284
|
-
readonly outputs: readonly [];
|
|
285
|
-
readonly stateMutability: "nonpayable";
|
|
286
|
-
} | {
|
|
287
|
-
readonly type: "function";
|
|
288
|
-
readonly inputs: readonly [{
|
|
289
|
-
readonly name: "policy";
|
|
290
|
-
readonly internalType: "address";
|
|
291
|
-
readonly type: "address";
|
|
292
|
-
}, {
|
|
293
|
-
readonly name: "caller";
|
|
294
|
-
readonly internalType: "address";
|
|
295
|
-
readonly type: "address";
|
|
296
|
-
}, {
|
|
297
|
-
readonly name: "creator";
|
|
298
|
-
readonly internalType: "address";
|
|
299
|
-
readonly type: "address";
|
|
300
|
-
}];
|
|
301
|
-
readonly name: "admit";
|
|
302
|
-
readonly outputs: readonly [{
|
|
303
|
-
readonly name: "who";
|
|
304
|
-
readonly internalType: "address";
|
|
305
|
-
readonly type: "address";
|
|
306
|
-
}];
|
|
307
|
-
readonly stateMutability: "view";
|
|
308
|
-
} | {
|
|
309
|
-
readonly type: "function";
|
|
310
|
-
readonly inputs: readonly [{
|
|
311
|
-
readonly name: "policy";
|
|
312
|
-
readonly internalType: "address";
|
|
313
|
-
readonly type: "address";
|
|
314
|
-
}, {
|
|
315
|
-
readonly name: "name";
|
|
316
|
-
readonly internalType: "bytes32";
|
|
317
|
-
readonly type: "bytes32";
|
|
318
|
-
}];
|
|
319
|
-
readonly name: "approve";
|
|
320
|
-
readonly outputs: readonly [];
|
|
321
|
-
readonly stateMutability: "nonpayable";
|
|
322
|
-
} | {
|
|
323
|
-
readonly type: "function";
|
|
324
|
-
readonly inputs: readonly [{
|
|
325
|
-
readonly name: "";
|
|
326
|
-
readonly internalType: "address";
|
|
327
|
-
readonly type: "address";
|
|
328
|
-
}];
|
|
329
|
-
readonly name: "creationMode";
|
|
330
|
-
readonly outputs: readonly [{
|
|
331
|
-
readonly name: "";
|
|
332
|
-
readonly internalType: "enum PolicyRegistry.CreationMode";
|
|
333
|
-
readonly type: "uint8";
|
|
334
|
-
}];
|
|
335
|
-
readonly stateMutability: "view";
|
|
336
|
-
} | {
|
|
337
|
-
readonly type: "function";
|
|
338
|
-
readonly inputs: readonly [{
|
|
339
|
-
readonly name: "";
|
|
340
|
-
readonly internalType: "address";
|
|
341
|
-
readonly type: "address";
|
|
342
|
-
}];
|
|
343
|
-
readonly name: "entries";
|
|
344
|
-
readonly outputs: readonly [{
|
|
345
|
-
readonly name: "listed";
|
|
346
|
-
readonly internalType: "bool";
|
|
347
|
-
readonly type: "bool";
|
|
348
|
-
}, {
|
|
349
|
-
readonly name: "until";
|
|
350
|
-
readonly internalType: "uint64";
|
|
351
|
-
readonly type: "uint64";
|
|
352
|
-
}, {
|
|
353
|
-
readonly name: "index";
|
|
354
|
-
readonly internalType: "uint32";
|
|
355
|
-
readonly type: "uint32";
|
|
356
|
-
}, {
|
|
357
|
-
readonly name: "name";
|
|
358
|
-
readonly internalType: "bytes32";
|
|
359
|
-
readonly type: "bytes32";
|
|
360
|
-
}];
|
|
361
|
-
readonly stateMutability: "view";
|
|
362
|
-
} | {
|
|
363
|
-
readonly type: "function";
|
|
364
|
-
readonly inputs: readonly [{
|
|
365
|
-
readonly name: "";
|
|
366
|
-
readonly internalType: "address";
|
|
367
|
-
readonly type: "address";
|
|
368
|
-
}];
|
|
369
|
-
readonly name: "forwarderTrusted";
|
|
370
|
-
readonly outputs: readonly [{
|
|
371
|
-
readonly name: "";
|
|
372
|
-
readonly internalType: "bool";
|
|
373
|
-
readonly type: "bool";
|
|
374
|
-
}];
|
|
375
|
-
readonly stateMutability: "view";
|
|
376
|
-
} | {
|
|
377
|
-
readonly type: "function";
|
|
378
|
-
readonly inputs: readonly [{
|
|
379
|
-
readonly name: "policy";
|
|
380
|
-
readonly internalType: "address";
|
|
381
|
-
readonly type: "address";
|
|
382
|
-
}];
|
|
383
|
-
readonly name: "isApproved";
|
|
384
|
-
readonly outputs: readonly [{
|
|
385
|
-
readonly name: "";
|
|
386
|
-
readonly internalType: "bool";
|
|
387
|
-
readonly type: "bool";
|
|
388
|
-
}];
|
|
389
|
-
readonly stateMutability: "view";
|
|
390
|
-
} | {
|
|
391
|
-
readonly type: "function";
|
|
392
|
-
readonly inputs: readonly [{
|
|
393
|
-
readonly name: "";
|
|
394
|
-
readonly internalType: "address";
|
|
395
|
-
readonly type: "address";
|
|
396
|
-
}];
|
|
397
|
-
readonly name: "kindOf";
|
|
398
|
-
readonly outputs: readonly [{
|
|
399
|
-
readonly name: "";
|
|
400
|
-
readonly internalType: "bytes32";
|
|
401
|
-
readonly type: "bytes32";
|
|
402
|
-
}];
|
|
403
|
-
readonly stateMutability: "view";
|
|
404
|
-
} | {
|
|
405
|
-
readonly type: "function";
|
|
406
|
-
readonly inputs: readonly [];
|
|
407
|
-
readonly name: "logAuthority";
|
|
408
|
-
readonly outputs: readonly [{
|
|
409
|
-
readonly name: "";
|
|
410
|
-
readonly internalType: "address";
|
|
411
|
-
readonly type: "address";
|
|
412
|
-
}];
|
|
413
|
-
readonly stateMutability: "view";
|
|
414
|
-
} | {
|
|
415
|
-
readonly type: "function";
|
|
416
|
-
readonly inputs: readonly [{
|
|
417
|
-
readonly name: "manager";
|
|
418
|
-
readonly internalType: "address";
|
|
419
|
-
readonly type: "address";
|
|
420
|
-
}, {
|
|
421
|
-
readonly name: "key";
|
|
422
|
-
readonly internalType: "struct PoolKeyF";
|
|
423
|
-
readonly type: "tuple";
|
|
424
|
-
readonly components: readonly [{
|
|
425
|
-
readonly name: "quote";
|
|
426
|
-
readonly internalType: "address";
|
|
427
|
-
readonly type: "address";
|
|
428
|
-
}, {
|
|
429
|
-
readonly name: "bases";
|
|
430
|
-
readonly internalType: "address[]";
|
|
431
|
-
readonly type: "address[]";
|
|
432
|
-
}, {
|
|
433
|
-
readonly name: "swapFee";
|
|
434
|
-
readonly internalType: "uint256";
|
|
435
|
-
readonly type: "uint256";
|
|
436
|
-
}, {
|
|
437
|
-
readonly name: "policy";
|
|
438
|
-
readonly internalType: "address";
|
|
439
|
-
readonly type: "address";
|
|
440
|
-
}, {
|
|
441
|
-
readonly name: "creator";
|
|
442
|
-
readonly internalType: "address";
|
|
443
|
-
readonly type: "address";
|
|
444
|
-
}, {
|
|
445
|
-
readonly name: "salt";
|
|
446
|
-
readonly internalType: "bytes32";
|
|
447
|
-
readonly type: "bytes32";
|
|
448
|
-
}, {
|
|
449
|
-
readonly name: "mintFee";
|
|
450
|
-
readonly internalType: "uint256";
|
|
451
|
-
readonly type: "uint256";
|
|
452
|
-
}];
|
|
453
|
-
}, {
|
|
454
|
-
readonly name: "to";
|
|
455
|
-
readonly internalType: "address";
|
|
456
|
-
readonly type: "address";
|
|
457
|
-
}, {
|
|
458
|
-
readonly name: "permissions";
|
|
459
|
-
readonly internalType: "struct ISponsorMigration.Permissions";
|
|
460
|
-
readonly type: "tuple";
|
|
461
|
-
readonly components: readonly [{
|
|
462
|
-
readonly name: "swapMode";
|
|
463
|
-
readonly internalType: "uint8";
|
|
464
|
-
readonly type: "uint8";
|
|
465
|
-
}, {
|
|
466
|
-
readonly name: "operator";
|
|
467
|
-
readonly internalType: "address";
|
|
468
|
-
readonly type: "address";
|
|
469
|
-
}, {
|
|
470
|
-
readonly name: "mintGated";
|
|
471
|
-
readonly internalType: "bool";
|
|
472
|
-
readonly type: "bool";
|
|
473
|
-
}, {
|
|
474
|
-
readonly name: "listed";
|
|
475
|
-
readonly internalType: "address[]";
|
|
476
|
-
readonly type: "address[]";
|
|
477
|
-
}];
|
|
478
|
-
}];
|
|
479
|
-
readonly name: "migrate";
|
|
480
|
-
readonly outputs: readonly [];
|
|
481
|
-
readonly stateMutability: "nonpayable";
|
|
482
|
-
} | {
|
|
483
|
-
readonly type: "function";
|
|
484
|
-
readonly inputs: readonly [{
|
|
485
|
-
readonly name: "manager";
|
|
486
|
-
readonly internalType: "address";
|
|
487
|
-
readonly type: "address";
|
|
488
|
-
}, {
|
|
489
|
-
readonly name: "key";
|
|
490
|
-
readonly internalType: "struct PoolKeyF";
|
|
491
|
-
readonly type: "tuple";
|
|
492
|
-
readonly components: readonly [{
|
|
493
|
-
readonly name: "quote";
|
|
494
|
-
readonly internalType: "address";
|
|
495
|
-
readonly type: "address";
|
|
496
|
-
}, {
|
|
497
|
-
readonly name: "bases";
|
|
498
|
-
readonly internalType: "address[]";
|
|
499
|
-
readonly type: "address[]";
|
|
500
|
-
}, {
|
|
501
|
-
readonly name: "swapFee";
|
|
502
|
-
readonly internalType: "uint256";
|
|
503
|
-
readonly type: "uint256";
|
|
504
|
-
}, {
|
|
505
|
-
readonly name: "policy";
|
|
506
|
-
readonly internalType: "address";
|
|
507
|
-
readonly type: "address";
|
|
508
|
-
}, {
|
|
509
|
-
readonly name: "creator";
|
|
510
|
-
readonly internalType: "address";
|
|
511
|
-
readonly type: "address";
|
|
512
|
-
}, {
|
|
513
|
-
readonly name: "salt";
|
|
514
|
-
readonly internalType: "bytes32";
|
|
515
|
-
readonly type: "bytes32";
|
|
516
|
-
}, {
|
|
517
|
-
readonly name: "mintFee";
|
|
518
|
-
readonly internalType: "uint256";
|
|
519
|
-
readonly type: "uint256";
|
|
520
|
-
}];
|
|
521
|
-
}];
|
|
522
|
-
readonly name: "orphan";
|
|
523
|
-
readonly outputs: readonly [];
|
|
524
|
-
readonly stateMutability: "nonpayable";
|
|
525
|
-
} | {
|
|
526
|
-
readonly type: "function";
|
|
527
|
-
readonly inputs: readonly [{
|
|
528
|
-
readonly name: "";
|
|
529
|
-
readonly internalType: "address";
|
|
530
|
-
readonly type: "address";
|
|
531
|
-
}];
|
|
532
|
-
readonly name: "orphanPolicy";
|
|
533
|
-
readonly outputs: readonly [{
|
|
534
|
-
readonly name: "";
|
|
535
|
-
readonly internalType: "address";
|
|
536
|
-
readonly type: "address";
|
|
537
|
-
}];
|
|
538
|
-
readonly stateMutability: "view";
|
|
539
|
-
} | {
|
|
540
|
-
readonly type: "function";
|
|
541
|
-
readonly inputs: readonly [];
|
|
542
|
-
readonly name: "pendingLogAuthority";
|
|
543
|
-
readonly outputs: readonly [{
|
|
544
|
-
readonly name: "";
|
|
545
|
-
readonly internalType: "address";
|
|
546
|
-
readonly type: "address";
|
|
547
|
-
}];
|
|
548
|
-
readonly stateMutability: "view";
|
|
549
|
-
} | {
|
|
550
|
-
readonly type: "function";
|
|
551
|
-
readonly inputs: readonly [];
|
|
552
|
-
readonly name: "policies";
|
|
553
|
-
readonly outputs: readonly [{
|
|
554
|
-
readonly name: "";
|
|
555
|
-
readonly internalType: "address[]";
|
|
556
|
-
readonly type: "address[]";
|
|
557
|
-
}];
|
|
558
|
-
readonly stateMutability: "view";
|
|
559
|
-
} | {
|
|
560
|
-
readonly type: "function";
|
|
561
|
-
readonly inputs: readonly [{
|
|
562
|
-
readonly name: "next";
|
|
563
|
-
readonly internalType: "address";
|
|
564
|
-
readonly type: "address";
|
|
565
|
-
}];
|
|
566
|
-
readonly name: "proposeLogAuthority";
|
|
567
|
-
readonly outputs: readonly [];
|
|
568
|
-
readonly stateMutability: "nonpayable";
|
|
569
|
-
} | {
|
|
570
|
-
readonly type: "function";
|
|
571
|
-
readonly inputs: readonly [{
|
|
572
|
-
readonly name: "policy";
|
|
573
|
-
readonly internalType: "address";
|
|
574
|
-
readonly type: "address";
|
|
575
|
-
}];
|
|
576
|
-
readonly name: "revoke";
|
|
577
|
-
readonly outputs: readonly [];
|
|
578
|
-
readonly stateMutability: "nonpayable";
|
|
579
|
-
} | {
|
|
580
|
-
readonly type: "function";
|
|
581
|
-
readonly inputs: readonly [{
|
|
582
|
-
readonly name: "policy";
|
|
583
|
-
readonly internalType: "address";
|
|
584
|
-
readonly type: "address";
|
|
585
|
-
}, {
|
|
586
|
-
readonly name: "mode";
|
|
587
|
-
readonly internalType: "enum PolicyRegistry.CreationMode";
|
|
588
|
-
readonly type: "uint8";
|
|
589
|
-
}];
|
|
590
|
-
readonly name: "setCreationMode";
|
|
591
|
-
readonly outputs: readonly [];
|
|
592
|
-
readonly stateMutability: "nonpayable";
|
|
593
|
-
} | {
|
|
594
|
-
readonly type: "function";
|
|
595
|
-
readonly inputs: readonly [{
|
|
596
|
-
readonly name: "forwarder";
|
|
597
|
-
readonly internalType: "address";
|
|
598
|
-
readonly type: "address";
|
|
599
|
-
}, {
|
|
600
|
-
readonly name: "trusted";
|
|
601
|
-
readonly internalType: "bool";
|
|
602
|
-
readonly type: "bool";
|
|
603
|
-
}];
|
|
604
|
-
readonly name: "setForwarderTrusted";
|
|
605
|
-
readonly outputs: readonly [];
|
|
606
|
-
readonly stateMutability: "nonpayable";
|
|
607
|
-
} | {
|
|
608
|
-
readonly type: "function";
|
|
609
|
-
readonly inputs: readonly [{
|
|
610
|
-
readonly name: "manager";
|
|
611
|
-
readonly internalType: "address";
|
|
612
|
-
readonly type: "address";
|
|
613
|
-
}, {
|
|
614
|
-
readonly name: "policy";
|
|
615
|
-
readonly internalType: "address";
|
|
616
|
-
readonly type: "address";
|
|
617
|
-
}];
|
|
618
|
-
readonly name: "setOrphanPolicy";
|
|
619
|
-
readonly outputs: readonly [];
|
|
620
|
-
readonly stateMutability: "nonpayable";
|
|
621
|
-
} | {
|
|
622
|
-
readonly type: "function";
|
|
623
|
-
readonly inputs: readonly [{
|
|
624
|
-
readonly name: "who";
|
|
625
|
-
readonly internalType: "address";
|
|
626
|
-
readonly type: "address";
|
|
627
|
-
}, {
|
|
628
|
-
readonly name: "name";
|
|
629
|
-
readonly internalType: "bytes32";
|
|
630
|
-
readonly type: "bytes32";
|
|
631
|
-
}];
|
|
632
|
-
readonly name: "setSponsorName";
|
|
633
|
-
readonly outputs: readonly [];
|
|
634
|
-
readonly stateMutability: "nonpayable";
|
|
635
|
-
} | {
|
|
636
|
-
readonly type: "function";
|
|
637
|
-
readonly inputs: readonly [{
|
|
638
|
-
readonly name: "";
|
|
639
|
-
readonly internalType: "address";
|
|
640
|
-
readonly type: "address";
|
|
641
|
-
}];
|
|
642
|
-
readonly name: "sponsorName";
|
|
643
|
-
readonly outputs: readonly [{
|
|
644
|
-
readonly name: "";
|
|
645
|
-
readonly internalType: "bytes32";
|
|
646
|
-
readonly type: "bytes32";
|
|
647
|
-
}];
|
|
648
|
-
readonly stateMutability: "view";
|
|
649
|
-
} | {
|
|
650
|
-
readonly type: "function";
|
|
651
|
-
readonly inputs: readonly [{
|
|
652
|
-
readonly name: "policy";
|
|
653
|
-
readonly internalType: "address";
|
|
654
|
-
readonly type: "address";
|
|
655
|
-
}];
|
|
656
|
-
readonly name: "sponsorOf";
|
|
657
|
-
readonly outputs: readonly [{
|
|
658
|
-
readonly name: "";
|
|
659
|
-
readonly internalType: "address";
|
|
660
|
-
readonly type: "address";
|
|
661
|
-
}];
|
|
662
|
-
readonly stateMutability: "view";
|
|
663
|
-
} | {
|
|
664
|
-
readonly type: "function";
|
|
665
|
-
readonly inputs: readonly [{
|
|
666
|
-
readonly name: "policy";
|
|
667
|
-
readonly internalType: "address";
|
|
668
|
-
readonly type: "address";
|
|
669
|
-
}, {
|
|
670
|
-
readonly name: "untilTime";
|
|
671
|
-
readonly internalType: "uint64";
|
|
672
|
-
readonly type: "uint64";
|
|
673
|
-
}];
|
|
674
|
-
readonly name: "sunset";
|
|
675
|
-
readonly outputs: readonly [];
|
|
676
|
-
readonly stateMutability: "nonpayable";
|
|
677
|
-
} | {
|
|
678
|
-
readonly type: "function";
|
|
679
|
-
readonly inputs: readonly [{
|
|
680
|
-
readonly name: "caller";
|
|
681
|
-
readonly internalType: "address";
|
|
682
|
-
readonly type: "address";
|
|
683
|
-
}];
|
|
684
|
-
readonly name: "userOf";
|
|
685
|
-
readonly outputs: readonly [{
|
|
686
|
-
readonly name: "";
|
|
687
|
-
readonly internalType: "address";
|
|
688
|
-
readonly type: "address";
|
|
689
|
-
}];
|
|
690
|
-
readonly stateMutability: "view";
|
|
691
|
-
} | {
|
|
692
|
-
readonly type: "event";
|
|
693
|
-
readonly anonymous: false;
|
|
694
|
-
readonly inputs: readonly [{
|
|
695
|
-
readonly name: "policy";
|
|
696
|
-
readonly internalType: "address";
|
|
697
|
-
readonly type: "address";
|
|
698
|
-
readonly indexed: true;
|
|
699
|
-
}, {
|
|
700
|
-
readonly name: "name";
|
|
701
|
-
readonly internalType: "bytes32";
|
|
702
|
-
readonly type: "bytes32";
|
|
703
|
-
readonly indexed: false;
|
|
704
|
-
}];
|
|
705
|
-
readonly name: "Approved";
|
|
706
|
-
} | {
|
|
707
|
-
readonly type: "event";
|
|
708
|
-
readonly anonymous: false;
|
|
709
|
-
readonly inputs: readonly [{
|
|
710
|
-
readonly name: "policy";
|
|
711
|
-
readonly internalType: "address";
|
|
712
|
-
readonly type: "address";
|
|
713
|
-
readonly indexed: true;
|
|
714
|
-
}, {
|
|
715
|
-
readonly name: "mode";
|
|
716
|
-
readonly internalType: "enum PolicyRegistry.CreationMode";
|
|
717
|
-
readonly type: "uint8";
|
|
718
|
-
readonly indexed: false;
|
|
719
|
-
}];
|
|
720
|
-
readonly name: "CreationModeSet";
|
|
721
|
-
} | {
|
|
722
|
-
readonly type: "event";
|
|
723
|
-
readonly anonymous: false;
|
|
724
|
-
readonly inputs: readonly [{
|
|
725
|
-
readonly name: "forwarder";
|
|
726
|
-
readonly internalType: "address";
|
|
727
|
-
readonly type: "address";
|
|
728
|
-
readonly indexed: true;
|
|
729
|
-
}, {
|
|
730
|
-
readonly name: "trusted";
|
|
731
|
-
readonly internalType: "bool";
|
|
732
|
-
readonly type: "bool";
|
|
733
|
-
readonly indexed: false;
|
|
734
|
-
}];
|
|
735
|
-
readonly name: "ForwarderTrusted";
|
|
736
|
-
} | {
|
|
737
|
-
readonly type: "event";
|
|
738
|
-
readonly anonymous: false;
|
|
739
|
-
readonly inputs: readonly [{
|
|
740
|
-
readonly name: "prev";
|
|
741
|
-
readonly internalType: "address";
|
|
742
|
-
readonly type: "address";
|
|
743
|
-
readonly indexed: true;
|
|
744
|
-
}, {
|
|
745
|
-
readonly name: "next";
|
|
746
|
-
readonly internalType: "address";
|
|
747
|
-
readonly type: "address";
|
|
748
|
-
readonly indexed: true;
|
|
749
|
-
}];
|
|
750
|
-
readonly name: "LogAuthorityAccepted";
|
|
751
|
-
} | {
|
|
752
|
-
readonly type: "event";
|
|
753
|
-
readonly anonymous: false;
|
|
754
|
-
readonly inputs: readonly [{
|
|
755
|
-
readonly name: "current";
|
|
756
|
-
readonly internalType: "address";
|
|
757
|
-
readonly type: "address";
|
|
758
|
-
readonly indexed: true;
|
|
759
|
-
}, {
|
|
760
|
-
readonly name: "proposed";
|
|
761
|
-
readonly internalType: "address";
|
|
762
|
-
readonly type: "address";
|
|
763
|
-
readonly indexed: true;
|
|
764
|
-
}];
|
|
765
|
-
readonly name: "LogAuthorityProposed";
|
|
766
|
-
} | {
|
|
767
|
-
readonly type: "event";
|
|
768
|
-
readonly anonymous: false;
|
|
769
|
-
readonly inputs: readonly [{
|
|
770
|
-
readonly name: "manager";
|
|
771
|
-
readonly internalType: "address";
|
|
772
|
-
readonly type: "address";
|
|
773
|
-
readonly indexed: true;
|
|
774
|
-
}, {
|
|
775
|
-
readonly name: "poolId";
|
|
776
|
-
readonly internalType: "bytes32";
|
|
777
|
-
readonly type: "bytes32";
|
|
778
|
-
readonly indexed: true;
|
|
779
|
-
}, {
|
|
780
|
-
readonly name: "to";
|
|
781
|
-
readonly internalType: "address";
|
|
782
|
-
readonly type: "address";
|
|
783
|
-
readonly indexed: true;
|
|
784
|
-
}, {
|
|
785
|
-
readonly name: "from";
|
|
786
|
-
readonly internalType: "address";
|
|
787
|
-
readonly type: "address";
|
|
788
|
-
readonly indexed: false;
|
|
789
|
-
}, {
|
|
790
|
-
readonly name: "authority";
|
|
791
|
-
readonly internalType: "address";
|
|
792
|
-
readonly type: "address";
|
|
793
|
-
readonly indexed: false;
|
|
794
|
-
}];
|
|
795
|
-
readonly name: "Migrated";
|
|
796
|
-
} | {
|
|
797
|
-
readonly type: "event";
|
|
798
|
-
readonly anonymous: false;
|
|
799
|
-
readonly inputs: readonly [{
|
|
800
|
-
readonly name: "manager";
|
|
801
|
-
readonly internalType: "address";
|
|
802
|
-
readonly type: "address";
|
|
803
|
-
readonly indexed: true;
|
|
804
|
-
}, {
|
|
805
|
-
readonly name: "policy";
|
|
806
|
-
readonly internalType: "address";
|
|
807
|
-
readonly type: "address";
|
|
808
|
-
readonly indexed: true;
|
|
809
|
-
}];
|
|
810
|
-
readonly name: "OrphanPolicySet";
|
|
811
|
-
} | {
|
|
812
|
-
readonly type: "event";
|
|
813
|
-
readonly anonymous: false;
|
|
814
|
-
readonly inputs: readonly [{
|
|
815
|
-
readonly name: "manager";
|
|
816
|
-
readonly internalType: "address";
|
|
817
|
-
readonly type: "address";
|
|
818
|
-
readonly indexed: true;
|
|
819
|
-
}, {
|
|
820
|
-
readonly name: "poolId";
|
|
821
|
-
readonly internalType: "bytes32";
|
|
822
|
-
readonly type: "bytes32";
|
|
823
|
-
readonly indexed: true;
|
|
824
|
-
}, {
|
|
825
|
-
readonly name: "from";
|
|
826
|
-
readonly internalType: "address";
|
|
827
|
-
readonly type: "address";
|
|
828
|
-
readonly indexed: true;
|
|
829
|
-
}];
|
|
830
|
-
readonly name: "PoolOrphaned";
|
|
831
|
-
} | {
|
|
832
|
-
readonly type: "event";
|
|
833
|
-
readonly anonymous: false;
|
|
834
|
-
readonly inputs: readonly [{
|
|
835
|
-
readonly name: "policy";
|
|
836
|
-
readonly internalType: "address";
|
|
837
|
-
readonly type: "address";
|
|
838
|
-
readonly indexed: true;
|
|
839
|
-
}];
|
|
840
|
-
readonly name: "Revoked";
|
|
841
|
-
} | {
|
|
842
|
-
readonly type: "event";
|
|
843
|
-
readonly anonymous: false;
|
|
844
|
-
readonly inputs: readonly [{
|
|
845
|
-
readonly name: "who";
|
|
846
|
-
readonly internalType: "address";
|
|
847
|
-
readonly type: "address";
|
|
848
|
-
readonly indexed: true;
|
|
849
|
-
}, {
|
|
850
|
-
readonly name: "name";
|
|
851
|
-
readonly internalType: "bytes32";
|
|
852
|
-
readonly type: "bytes32";
|
|
853
|
-
readonly indexed: false;
|
|
854
|
-
}];
|
|
855
|
-
readonly name: "SponsorNamed";
|
|
856
|
-
} | {
|
|
857
|
-
readonly type: "event";
|
|
858
|
-
readonly anonymous: false;
|
|
859
|
-
readonly inputs: readonly [{
|
|
860
|
-
readonly name: "policy";
|
|
861
|
-
readonly internalType: "address";
|
|
862
|
-
readonly type: "address";
|
|
863
|
-
readonly indexed: true;
|
|
864
|
-
}, {
|
|
865
|
-
readonly name: "untilTime";
|
|
866
|
-
readonly internalType: "uint64";
|
|
867
|
-
readonly type: "uint64";
|
|
868
|
-
readonly indexed: false;
|
|
869
|
-
}];
|
|
870
|
-
readonly name: "SunsetSet";
|
|
871
|
-
} | {
|
|
872
|
-
readonly type: "error";
|
|
873
|
-
readonly inputs: readonly [];
|
|
874
|
-
readonly name: "BadSunset";
|
|
875
|
-
} | {
|
|
876
|
-
readonly type: "error";
|
|
877
|
-
readonly inputs: readonly [];
|
|
878
|
-
readonly name: "InvalidForwardedUser";
|
|
879
|
-
} | {
|
|
880
|
-
readonly type: "error";
|
|
881
|
-
readonly inputs: readonly [];
|
|
882
|
-
readonly name: "KindMismatch";
|
|
883
|
-
} | {
|
|
884
|
-
readonly type: "error";
|
|
885
|
-
readonly inputs: readonly [];
|
|
886
|
-
readonly name: "NoOrphanPolicy";
|
|
887
|
-
} | {
|
|
888
|
-
readonly type: "error";
|
|
889
|
-
readonly inputs: readonly [];
|
|
890
|
-
readonly name: "NoPool";
|
|
891
|
-
} | {
|
|
892
|
-
readonly type: "error";
|
|
893
|
-
readonly inputs: readonly [];
|
|
894
|
-
readonly name: "NotAPolicy";
|
|
895
|
-
} | {
|
|
896
|
-
readonly type: "error";
|
|
897
|
-
readonly inputs: readonly [];
|
|
898
|
-
readonly name: "NotListed";
|
|
899
|
-
} | {
|
|
900
|
-
readonly type: "error";
|
|
901
|
-
readonly inputs: readonly [];
|
|
902
|
-
readonly name: "NotLogAuthority";
|
|
903
|
-
} | {
|
|
904
|
-
readonly type: "error";
|
|
905
|
-
readonly inputs: readonly [];
|
|
906
|
-
readonly name: "NotOrphanPolicy";
|
|
907
|
-
} | {
|
|
908
|
-
readonly type: "error";
|
|
909
|
-
readonly inputs: readonly [];
|
|
910
|
-
readonly name: "Orphaned";
|
|
911
|
-
} | {
|
|
912
|
-
readonly type: "error";
|
|
913
|
-
readonly inputs: readonly [];
|
|
914
|
-
readonly name: "PermissionsNotApplicable";
|
|
915
|
-
} | {
|
|
916
|
-
readonly type: "error";
|
|
917
|
-
readonly inputs: readonly [];
|
|
918
|
-
readonly name: "SamePolicy";
|
|
919
|
-
} | {
|
|
920
|
-
readonly type: "error";
|
|
921
|
-
readonly inputs: readonly [];
|
|
922
|
-
readonly name: "SponsorOnly";
|
|
923
|
-
} | {
|
|
924
|
-
readonly type: "error";
|
|
925
|
-
readonly inputs: readonly [];
|
|
926
|
-
readonly name: "WrongManager";
|
|
927
|
-
} | {
|
|
928
|
-
readonly type: "error";
|
|
929
|
-
readonly inputs: readonly [];
|
|
930
|
-
readonly name: "AlreadyHeld";
|
|
931
|
-
} | {
|
|
932
|
-
readonly type: "error";
|
|
933
|
-
readonly inputs: readonly [];
|
|
934
|
-
readonly name: "BadParams";
|
|
935
|
-
} | {
|
|
936
|
-
readonly type: "error";
|
|
937
|
-
readonly inputs: readonly [];
|
|
938
|
-
readonly name: "BadRate";
|
|
939
|
-
} | {
|
|
940
|
-
readonly type: "error";
|
|
941
|
-
readonly inputs: readonly [];
|
|
942
|
-
readonly name: "BadSwapMode";
|
|
943
|
-
} | {
|
|
944
|
-
readonly type: "error";
|
|
945
|
-
readonly inputs: readonly [];
|
|
946
|
-
readonly name: "BadTax";
|
|
947
|
-
} | {
|
|
948
|
-
readonly type: "error";
|
|
949
|
-
readonly inputs: readonly [{
|
|
950
|
-
readonly name: "fee";
|
|
951
|
-
readonly internalType: "uint256";
|
|
952
|
-
readonly type: "uint256";
|
|
953
|
-
}];
|
|
954
|
-
readonly name: "FeeNotListed";
|
|
955
|
-
} | {
|
|
956
|
-
readonly type: "error";
|
|
957
|
-
readonly inputs: readonly [];
|
|
958
|
-
readonly name: "GatesUnavailable";
|
|
959
|
-
} | {
|
|
960
|
-
readonly type: "error";
|
|
961
|
-
readonly inputs: readonly [];
|
|
962
|
-
readonly name: "InactivePool";
|
|
963
|
-
} | {
|
|
964
|
-
readonly type: "error";
|
|
965
|
-
readonly inputs: readonly [{
|
|
966
|
-
readonly name: "fee";
|
|
967
|
-
readonly internalType: "uint256";
|
|
968
|
-
readonly type: "uint256";
|
|
969
|
-
}];
|
|
970
|
-
readonly name: "MintFeeNotListed";
|
|
971
|
-
} | {
|
|
972
|
-
readonly type: "error";
|
|
973
|
-
readonly inputs: readonly [];
|
|
974
|
-
readonly name: "NoCreator";
|
|
975
|
-
} | {
|
|
976
|
-
readonly type: "error";
|
|
977
|
-
readonly inputs: readonly [];
|
|
978
|
-
readonly name: "NotAuthority";
|
|
979
|
-
} | {
|
|
980
|
-
readonly type: "error";
|
|
981
|
-
readonly inputs: readonly [];
|
|
982
|
-
readonly name: "NotCanonical";
|
|
983
|
-
} | {
|
|
984
|
-
readonly type: "error";
|
|
985
|
-
readonly inputs: readonly [];
|
|
986
|
-
readonly name: "NotManager";
|
|
987
|
-
} | {
|
|
988
|
-
readonly type: "error";
|
|
989
|
-
readonly inputs: readonly [];
|
|
990
|
-
readonly name: "NotRegistry";
|
|
991
|
-
} | {
|
|
992
|
-
readonly type: "error";
|
|
993
|
-
readonly inputs: readonly [];
|
|
994
|
-
readonly name: "OneBase";
|
|
995
|
-
} | {
|
|
996
|
-
readonly type: "error";
|
|
997
|
-
readonly inputs: readonly [{
|
|
998
|
-
readonly name: "quote";
|
|
999
|
-
readonly internalType: "address";
|
|
1000
|
-
readonly type: "address";
|
|
1001
|
-
}];
|
|
1002
|
-
readonly name: "QuoteNotListed";
|
|
1003
|
-
} | {
|
|
1004
|
-
readonly type: "error";
|
|
1005
|
-
readonly inputs: readonly [];
|
|
1006
|
-
readonly name: "Refused";
|
|
1007
|
-
} | {
|
|
1008
|
-
readonly type: "error";
|
|
1009
|
-
readonly inputs: readonly [{
|
|
1010
|
-
readonly name: "tickSpacing";
|
|
1011
|
-
readonly internalType: "int256";
|
|
1012
|
-
readonly type: "int256";
|
|
1013
|
-
}];
|
|
1014
|
-
readonly name: "SpacingNotListed";
|
|
1015
|
-
})[];
|
|
183
|
+
type AbiError = {
|
|
184
|
+
type: "error";
|
|
185
|
+
name: string;
|
|
186
|
+
inputs: readonly {
|
|
187
|
+
type: string;
|
|
188
|
+
name?: string;
|
|
189
|
+
}[];
|
|
190
|
+
};
|
|
191
|
+
export declare const gateErrorAbi: readonly AbiError[];
|
|
1016
192
|
/** A manager's treasury — where its protocol revenue goes — and the proposed next one. */
|
|
1017
193
|
export declare function logTreasury(c: LogswapClient, side: Side): Promise<{
|
|
1018
194
|
treasury: Address;
|
|
@@ -1034,3 +210,4 @@ export declare const acceptCollector: typeof acceptTreasury;
|
|
|
1034
210
|
* tax) to the treasury. Anyone may send it (066); the destination is fixed.
|
|
1035
211
|
*/
|
|
1036
212
|
export declare function collectCProtocolFees(c: LogswapClient, key: PoolKey): Promise<Hash>;
|
|
213
|
+
export {};
|