@logswap/sdk 0.5.90 → 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.
Files changed (59) hide show
  1. package/README.md +136 -31
  2. package/dist/actions.js +4 -3
  3. package/dist/admin.d.ts +96 -925
  4. package/dist/admin.js +113 -194
  5. package/dist/chains.d.ts +13 -4
  6. package/dist/chains.js +22 -9
  7. package/dist/claims.d.ts +1 -1
  8. package/dist/claims.js +11 -9
  9. package/dist/client.d.ts +42 -20
  10. package/dist/client.js +86 -26
  11. package/dist/fees.d.ts +1 -1
  12. package/dist/fees.js +5 -4
  13. package/dist/fpool.d.ts +327 -1120
  14. package/dist/fpool.js +408 -475
  15. package/dist/generated.d.ts +5017 -7631
  16. package/dist/generated.js +3040 -4879
  17. package/dist/history.js +12 -14
  18. package/dist/index.d.ts +5 -7
  19. package/dist/index.js +5 -7
  20. package/dist/indexer.d.ts +2 -2
  21. package/dist/indexer.js +12 -9
  22. package/dist/keys.d.ts +15 -3
  23. package/dist/keys.js +5 -1
  24. package/dist/liquidity.d.ts +1 -1
  25. package/dist/liquidity.js +16 -9
  26. package/dist/onboard.d.ts +16 -11
  27. package/dist/onboard.js +27 -21
  28. package/dist/pools.d.ts +2 -0
  29. package/dist/pools.js +21 -13
  30. package/dist/positions.d.ts +1 -1
  31. package/dist/positions.js +18 -17
  32. package/dist/quote.d.ts +15 -0
  33. package/dist/quote.js +36 -0
  34. package/dist/swap.d.ts +7 -9
  35. package/dist/swap.js +40 -25
  36. package/dist/views.d.ts +1 -1
  37. package/dist/write.d.ts +7 -2
  38. package/dist/write.js +10 -7
  39. package/package.json +3 -3
  40. package/src/actions.ts +4 -3
  41. package/src/admin.ts +143 -249
  42. package/src/chains.ts +32 -13
  43. package/src/claims.ts +11 -10
  44. package/src/client.ts +111 -39
  45. package/src/fees.ts +6 -6
  46. package/src/fpool.ts +555 -648
  47. package/src/generated.ts +3063 -4904
  48. package/src/history.ts +11 -11
  49. package/src/index.ts +5 -7
  50. package/src/indexer.ts +13 -11
  51. package/src/keys.ts +19 -3
  52. package/src/liquidity.ts +16 -10
  53. package/src/onboard.ts +29 -21
  54. package/src/pools.ts +23 -15
  55. package/src/positions.ts +18 -18
  56. package/src/quote.ts +36 -0
  57. package/src/swap.ts +46 -25
  58. package/src/views.ts +1 -2
  59. package/src/write.ts +11 -10
package/dist/admin.d.ts CHANGED
@@ -1,36 +1,36 @@
1
1
  /**
2
- * admin — the protocol's writes: the C swap-fee tax (decisions 060), the policies a pool may be
3
- * born with (the registry's), the policies' own numbers (the quote list, the fee tiers, a pad's
4
- * schedule, a POL's rules), and the two roles' two-step handovers (decision 066): the LOG Authority
5
- * (the registry's `authority`) administers everything here; the LOG Treasury (`treasury` on each
6
- * manager) only receives, and is replaced by the authority's `proposeTreasury`. Plain writes to the managers, the
7
- * registry and the policies; no router.
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.
8
6
  *
9
- * The mint fee has no cut to set since C version 6 / F version 24 (decisions 058): the whole fee
10
- * is the protocol's on both managers. A harvest has no cut (056); a pad's protocol share of the income
11
- * is the policy's (`PadPolicy.setSchedule`), capped by the manager at `POT_CUT_MAX`.
12
- */
13
- import type { Address, Hash, Hex } from "viem";
14
- import type { PoolKey } from "./keys.js";
15
- import type { LogswapClient } from "./client.js";
16
- import { type FPoolKey, type FPoolKind } from "./fpool.js";
17
- /**
18
- * The C swap-fee tax (decisions 060, 066): the protocol's share of every swap fee a C position is
19
- * paid (claims and the burn's auto-claim), WAD. `tax` is the level the gate (`PublicPolicy`) gives a
20
- * market born NOW; each market keeps the level of its birth for life — read it with
21
- * {@link cMarketSwapFeeTax} or `getPool(key).swapFeeTax`. `max` is the manager's bound.
22
- */
23
- export declare function cSwapFeeTax(c: LogswapClient): Promise<{
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`.
12
+ *
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`.
16
+ */
17
+ import type { Address, Hash } from "viem";
18
+ import { type PoolKey } from "./keys.js";
19
+ import { type LogswapClient, type Side } from "./client.js";
20
+ import { type FPoolKind } from "./fpool.js";
21
+ /**
22
+ * The C swap-fee tax (decisions 060, 066, 098): the protocol's share of every swap fee a C position is
23
+ * paid (claims and the burn's auto-claim), WAD. `tax` is the level a market born under `policy` (default: the deployment's
24
+ * `publicPolicyC`) is given — the policy's immutable `swapFeeTax`; each market keeps the level of its birth for
25
+ * life — read it with {@link cMarketSwapFeeTax} or `getPool(key).swapFeeTax`. A different level is a different policy.
26
+ * `max` is the manager's bound.
27
+ */
28
+ export declare function cSwapFeeTax(c: LogswapClient, policy?: Address): Promise<{
24
29
  tax: bigint;
25
30
  max: bigint;
26
31
  }>;
27
32
  /** One C market's swap-fee tax, recorded at its birth (066). */
28
33
  export declare function cMarketSwapFeeTax(c: LogswapClient, key: PoolKey): Promise<bigint>;
29
- /**
30
- * `PublicPolicy.setSwapFeeTax`: the level a C market born after it is given (066), at most
31
- * `SWAP_FEE_TAX_MAX` (25%). The LOG Authority's. A live market keeps the level of its birth.
32
- */
33
- export declare function setCSwapFeeTax(c: LogswapClient, taxWad: bigint): Promise<Hash>;
34
34
  /**
35
35
  * The policy registry the F manager asks at every birth — `addresses.policyRegistry` when the
36
36
  * deployment carries it, else read once from the manager. The zero address is a deployment with
@@ -39,11 +39,12 @@ export declare function setCSwapFeeTax(c: LogswapClient, taxWad: bigint): Promis
39
39
  export declare function policyRegistryOf(c: LogswapClient): Promise<Address>;
40
40
  /** Whether `policy` is approved now — listed and not yet sunset. True everywhere on a deployment with no registry. */
41
41
  export declare function policyApproved(c: LogswapClient, policy: Address): Promise<boolean>;
42
- /** One policy on the registry's list, with what it says it is. */
42
+ /** One policy on the registry's list, with what it is. */
43
43
  export interface RegistryEntry {
44
44
  policy: Address;
45
- /** The policy's own `kind()` tag — what a pool born under it is. */
46
- 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)`). */
47
48
  name: string;
48
49
  /** The time (unix seconds) it closes to new pools from; 0 = open. A block number before F version 29. */
49
50
  until: bigint;
@@ -51,9 +52,9 @@ export interface RegistryEntry {
51
52
  approved: boolean;
52
53
  }
53
54
  /**
54
- * Every policy listed, sunset ones included — one flat list, each with the kind
55
- * it says it is; `kind` narrows it to one, which is what a create form's dropdown reads. Empty
56
- * 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.
57
58
  */
58
59
  export declare function registryPolicies(c: LogswapClient, kind?: FPoolKind): Promise<RegistryEntry[]>;
59
60
  /**
@@ -93,934 +94,103 @@ export declare const registryAcceptOwner: typeof acceptLogAuthority;
93
94
  */
94
95
  export declare function setPolicyApproved(c: LogswapClient, policy: Address, approved: boolean): Promise<Hash>;
95
96
  /**
96
- * Move a pool to another approved policy of the same kind: the LOG Authority's alone, a forced move
97
- * (adoption at regeneration by the pool authority's consent is specified, not built — logswap-docs
98
- * `specs/governance/policy-adoption.md`),
99
- * orchestrated on the registry — `migrate(manager, key, to)` since F version 20 (it took the
100
- * pool's id before). The registry checks the key against the manager (`NoPool`), checks the
101
- * manager is its own (`WrongManager`), and compares the two policies' tags recorded at approval
102
- * ({@link registryKindOf}). The new policy is brought the creator (the key's), the authority and
103
- * the name (read off the old policy defensively, the key's creator standing in when it cannot
104
- * answer); the operator and the lists void; no swap lands in the block.
105
- *
106
- * Pass the pool's `key` when in hand. Given only `poolId`, the key is rebuilt from the pool's
107
- * `PoolCreated` log ({@link fPoolKeyOfPool}) with `salt` (zero by default) and checked against
108
- * the id — the log does not carry the salt, so a salted pool needs it named.
109
- */
110
- export declare function fPoolMigrate(c: LogswapClient, a: {
111
- to: Address;
112
- } & ({
113
- key: FPoolKey;
114
- } | {
115
- poolId: `0x${string}`;
116
- salt?: `0x${string}`;
117
- fromBlock?: bigint;
118
- })): Promise<Hash>;
119
- /**
120
- * The kind tag the registry recorded for `policy` at approval (`kindOf`, F version 20) — refreshed
121
- * on re-approval and kept after a revoke; what `migrate` compares, never the policy's live
122
- * answer. "" for a policy the registry never approved (or a deployment with no registry).
123
- */
124
- export declare function registryKindOf(c: LogswapClient, policy: Address): Promise<FPoolKind | "">;
125
- /**
126
- * `PadPolicy.setSchedule` (decisions 056, 067, 070, 073): the rung's growth and the RANGE inside which a creator chooses their cut of the income
127
- * at creation (its top ≤ the F manager's `PAYEE_CUT_MAX`). The rest of the income deepens the bid — nothing is bought or
128
- * burnt since F version 28, and the protocol takes no cut of the income since F version 33 (its revenue is the income tax,
129
- * {@link padSetIncomeTaxRate}). A change to the range applies to pads born after it; the growth moves every pad at its
130
- * next rung. The rung is the pool's generation. `T(0)` is per quote since decision 070: {@link padSetThresholdBase}.
131
- */
132
- export declare function padSetSchedule(c: LogswapClient, policy: Address, s: PadSchedule): Promise<Hash>;
133
- /**
134
- * `PadPolicy.setThresholdBase(quote, base)` (decision 070): `T(0)` for pads quoted in `quote`, in that quote's units. A pad is
135
- * born (or moved in) only on a quote that has one (`NoThreshold`). It moves every pad in that quote at its next rung. The LOG
136
- * Authority's.
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).
137
100
  */
138
- export declare function padSetThresholdBase(c: LogswapClient, policy: Address, quote: Address, base: bigint): Promise<Hash>;
139
- /** A pad policy's `T(0)` in one quote (decision 070): `set` false means no pad can be born on that quote. */
140
- export interface PadThresholdBase {
141
- quote: Address;
142
- set: boolean;
143
- /** In the quote's units; 0 when not set. */
144
- base: bigint;
145
- }
146
- /** `PadPolicy.thresholdSet(quote)` and `thresholdBaseOf(quote)` for each quote asked (decision 070). */
147
- export declare function padThresholdBases(c: LogswapClient, policy: Address, quotes: readonly Address[]): Promise<PadThresholdBase[]>;
148
- /** `PadPolicy.thresholdOf(quote, rung)` (decision 070): the income a pad quoted in `quote` must bank to climb `rung` (0 reads `T(0)`). */
149
- export declare function padThresholdOf(c: LogswapClient, policy: Address, quote: Address, rung?: bigint | number): Promise<bigint>;
150
- /** `PadPolicy.threshold(poolId, rung)` (decision 070): the income pad `poolId` must bank to climb `rung`, in its own quote. */
151
- export declare function padThreshold(c: LogswapClient, policy: Address, poolId: Hex, rung: bigint | number): Promise<bigint>;
152
- /** A pad policy's schedule (decision 070: without `T(0)`, which is per quote — {@link padThresholdBases}). WAD numbers. */
153
- export interface PadSchedule {
154
- thresholdGrowth: bigint;
155
- creatorShareMin: bigint;
156
- creatorShareMax: bigint;
157
- }
158
- /** Read {@link PadSchedule} off a pad policy. */
159
- export declare function padScheduleOf(c: LogswapClient, policy: Address): Promise<PadSchedule>;
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.setIncomeTaxRate` (decision 073): the share of its new income dividend the dead shares pay LOG Treasury as income tax, WAD, at most 50%. The policy sponsor's. */
163
- export declare function padSetIncomeTaxRate(c: LogswapClient, policy: Address, rate: bigint): Promise<Hash>;
164
- /** `PolPolicy.setIncomeTaxRate` (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 polSetIncomeTaxRate(c: LogswapClient, policy: Address, rate: bigint): Promise<Hash>;
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
- export declare function policySetQuoteListed(c: LogswapClient, policy: Address, quote: Address, listed: boolean): Promise<Hash>;
168
- /** `setQuoteCurated` on any protocol policy: on, a birth against an unlisted quote is refused. The LOG Authority's. */
169
- export declare function policySetQuoteCurated(c: LogswapClient, policy: Address, curated: boolean): Promise<Hash>;
170
- /** Whether `quote` passes `policy`'s birth check now: listed, or the policy does not curate quotes. */
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. */
171
103
  export declare function policyQuoteAllowed(c: LogswapClient, policy: Address, quote: Address): Promise<{
172
104
  curated: boolean;
173
105
  listed: boolean;
174
106
  allowed: boolean;
175
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
+ }>;
176
114
  /**
177
- * `setFeeListed` on any protocol policy (decisions 059): a swap-fee tier a pool of that kind may be
178
- * born with while the policy curates fees. Within the family's domain (`FEE_MIN` ≤ fee ≤ `FEE_MAX`).
179
- * The LOG Authority's.
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.
180
117
  */
181
- export declare function policySetFeeListed(c: LogswapClient, policy: Address, fee: bigint, listed: boolean): Promise<Hash>;
182
- /** `setFeeCurated` on any protocol policy: on, a birth with an unlisted swap fee is refused (`FeeNotListed`). The LOG Authority's. */
183
- export declare function policySetFeeCurated(c: LogswapClient, policy: Address, curated: boolean): Promise<Hash>;
184
- /** Whether `fee` passes `policy`'s birth check now: listed, or the policy does not curate fees (the desk's never does). */
185
- export declare function policyFeeAllowed(c: LogswapClient, policy: Address, fee: bigint): Promise<{
118
+ export declare function policyFeeAllowed(c: LogswapClient, policy: Address, swapFeeIdx: number): Promise<{
186
119
  curated: boolean;
187
120
  listed: boolean;
188
121
  allowed: boolean;
189
122
  }>;
190
- /** `PolicyRegistry.CreationMode` (decision 073): who may create under a policy. Open = 0, Restricted = 1 (the initializer list), SponsorOnly = 2 (bound to a sponsor, permanent). */
191
- export type CreationMode = "open" | "restricted" | "sponsorOnly";
192
- /** `PolicyRegistry.setCreationMode(policy, mode)` (the LOG Authority): replaces the per-policy creator lists (064). A sponsor-bound policy cannot leave `sponsorOnly`. */
123
+ /** `PolicyRegistry.CreationMode` (decisions 073, 098): who may create under a policy. Open = 0, SponsorOnly = 1 (the policy's own immutable sponsor, who must also be the key's creator). `Restricted` and the initializer list are gone. */
124
+ export type CreationMode = "open" | "sponsorOnly";
125
+ /** `PolicyRegistry.setCreationMode(policy, mode)` (the LOG Authority). A sponsored policy is approved `sponsorOnly`. */
193
126
  export declare function registrySetCreationMode(c: LogswapClient, policy: Address, mode: CreationMode): Promise<Hash>;
194
- /** `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. */
195
- export declare function registrySetInitializerListed(c: LogswapClient, policy: Address, who: Address, allowed: boolean): Promise<Hash>;
196
127
  /** `PolicyRegistry.setForwarderTrusted` (the LOG Authority): a router whose `user()` names the creator. Moved off the public policy in F version 33. */
197
128
  export declare function registrySetForwarderTrusted(c: LogswapClient, forwarder: Address, trusted: boolean): Promise<Hash>;
198
129
  /** `PolicyRegistry.creationMode(policy)`. */
199
- export declare function registryCreationMode(c: LogswapClient, policy: Address): Promise<CreationMode>;
200
- /** `PublicPolicy.setPairListed` (064): a C pair a market may be born on while pairs are curated. Directional (base, quote). */
201
- export declare function gateSetPairListed(c: LogswapClient, policy: Address, base: Address, quote: Address, listed: boolean): Promise<Hash>;
202
- /** `PublicPolicy.setPairCurated` (064). */
203
- export declare function gateSetPairCurated(c: LogswapClient, policy: Address, curated: boolean): Promise<Hash>;
204
- /** `PublicPolicy.setSpacingListed` (064): a C tick spacing, WAD (10 bp = 1e15, 100 bp = 1e16). Always consulted. */
205
- export declare function gateSetSpacingListed(c: LogswapClient, policy: Address, tickSpacing: bigint, listed: boolean): Promise<Hash>;
206
130
  /**
207
- * @deprecated C version 8 fixes the gate at construction (066): there is no `setGate`. Open or close
208
- * C through the gate's lists (`registrySetCreationMode`, `gateSetPairCurated`, `gateSetSpacingListed`, …).
131
+ * `PolicyRegistry.userOf(caller)` (C 15, decision 097): the account a caller acts for — the user a trusted forwarder
132
+ * (a router) names, else the caller itself. The account the managers authenticate as a market's creator and as the
133
+ * first minter; what a create form compares to the key's `creator`.
209
134
  */
210
- export declare function setCGate(_c: LogswapClient, _gate: Address): Promise<Hash>;
135
+ export declare function registryUserOf(c: LogswapClient, caller: Address): Promise<Address>;
136
+ export declare function registryCreationMode(c: LogswapClient, policy: Address): Promise<CreationMode>;
137
+ /** Whether `policy` (a `SponsorPolicyC`) admits C tick spacing `tickSpacing`: it curates spacings (`spacingCurated`) and lists it, or it does not curate. */
138
+ export declare function policySpacingAllowed(c: LogswapClient, policy: Address, tickSpacing: bigint): Promise<{
139
+ curated: boolean;
140
+ listed: boolean;
141
+ allowed: boolean;
142
+ }>;
211
143
  export interface CGateRules {
212
- /** The registry admits `creator` to create under `key.policy` (creation mode, initializer list, sponsor binding; decision 073). */
144
+ /**
145
+ * The registry admits `creator` to create under `key.policy` (creation mode and sponsor binding; decisions 073, 097, 098):
146
+ * `admit(policy, creator, creator)` resolves to `creator`. Both managers then require the initializer to BE the key's creator (`NotCreator`).
147
+ */
213
148
  creatorOk: boolean;
149
+ /** The quote is on the policy's list, or the policy lists none (`quoteCurated`). */
214
150
  quoteOk: boolean;
215
- pairOk: boolean;
151
+ /** The swap fee is on the policy's swap tiers, or it lists none. */
216
152
  feeOk: boolean;
153
+ /** The mint fee is on the policy's mint tiers, or it lists none. */
154
+ mintFeeOk: boolean;
155
+ /** The tick spacing is on the policy's list, or it lists none (`spacingCurated`). */
217
156
  spacingOk: boolean;
218
- /** A market on (base, quote, fee) already exists, whatever its spacing: the policy refuses another (064 (b)). */
157
+ /** A canonical policy (the LOG's open instance) needs `salt` zero (`NotCanonical`); a desk's may run several markets of one shape. */
158
+ saltOk: boolean;
159
+ /** This exact market (the key's id) is already initialized: another is a different key. */
219
160
  exists: boolean;
220
161
  /** Whether `router` is a trusted forwarder on the registry — `createMarket` through it is then checked against `creator`. */
221
162
  routerTrusted: boolean;
222
- /** Every check passes: the policy would admit this market from this creator (the mint fee is a key field, checked by the manager). */
163
+ /** Every check passes: the policy would admit this market from this creator (the manager checks the fee domain, `BadParam`). */
223
164
  admitted: boolean;
224
165
  }
225
166
  /**
226
- * The public policy's C checks for one candidate market and creator, in one round of reads — what
227
- * the create form shows before a wallet is asked (064, 073). The policy is `key.policy`; the registry
228
- * is asked `admit(policy, caller, 0)`, with the caller being the router when it is a trusted forwarder
229
- * (it then names `creator` itself) and `creator` otherwise.
167
+ * A sponsored C policy's checks for one candidate market and creator, in one round of reads — what the create form shows before a wallet
168
+ * is asked (064, 073, 097, 098). The policy is `key.policy` (a `SponsorPolicyC`); the registry is asked `admit(policy, creator, creator)`: the
169
+ * account that starts a market is its creator, so the key's `creator` is the connected account (a router call resolves to it through the
170
+ * trusted forwarder's `user()`). The policy's pair list is gone (098).
230
171
  */
231
172
  export declare function cGateRules(c: LogswapClient, a: {
232
173
  key: PoolKey;
233
- creator: Address;
174
+ creator?: Address;
234
175
  router?: Address;
235
176
  gate?: Address;
236
177
  }): Promise<CGateRules>;
237
178
  /**
238
- * Every refusal a birth can meet at the gate or a policy (064, 065), for `decodeErrorResult` on a
239
- * failed simulation: the public policy's errors plus the pad's `PadExists` (one pad per base) and `NoThreshold` (no `T(0)`
240
- * in the pad's quote, decision 070).
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.
241
182
  */
242
- export declare const gateErrorAbi: readonly ({
243
- readonly type: "error";
244
- readonly inputs: readonly [{
245
- readonly name: "quote";
246
- readonly internalType: "address";
247
- readonly type: "address";
248
- }];
249
- readonly name: "NoThreshold";
250
- } | {
251
- readonly type: "error";
252
- readonly inputs: readonly [{
253
- readonly name: "base";
254
- readonly internalType: "address";
255
- readonly type: "address";
256
- }, {
257
- readonly name: "pad";
258
- readonly internalType: "bytes32";
259
- readonly type: "bytes32";
260
- }];
261
- readonly name: "PadExists";
262
- } | {
263
- readonly type: "constructor";
264
- readonly inputs: readonly [{
265
- readonly name: "_logAuthority";
266
- readonly internalType: "address";
267
- readonly type: "address";
268
- }];
269
- readonly stateMutability: "nonpayable";
270
- } | {
271
- readonly type: "function";
272
- readonly inputs: readonly [];
273
- readonly name: "acceptLogAuthority";
274
- readonly outputs: readonly [];
275
- readonly stateMutability: "nonpayable";
276
- } | {
277
- readonly type: "function";
278
- readonly inputs: readonly [{
279
- readonly name: "policy";
280
- readonly internalType: "address";
281
- readonly type: "address";
282
- }, {
283
- readonly name: "caller";
284
- readonly internalType: "address";
285
- readonly type: "address";
286
- }, {
287
- readonly name: "creator";
288
- readonly internalType: "address";
289
- readonly type: "address";
290
- }];
291
- readonly name: "admit";
292
- readonly outputs: readonly [{
293
- readonly name: "who";
294
- readonly internalType: "address";
295
- readonly type: "address";
296
- }];
297
- readonly stateMutability: "view";
298
- } | {
299
- readonly type: "function";
300
- readonly inputs: readonly [{
301
- readonly name: "policy";
302
- readonly internalType: "address";
303
- readonly type: "address";
304
- }, {
305
- readonly name: "name";
306
- readonly internalType: "bytes32";
307
- readonly type: "bytes32";
308
- }];
309
- readonly name: "approve";
310
- readonly outputs: readonly [];
311
- readonly stateMutability: "nonpayable";
312
- } | {
313
- readonly type: "function";
314
- readonly inputs: readonly [{
315
- readonly name: "policy";
316
- readonly internalType: "address";
317
- readonly type: "address";
318
- }, {
319
- readonly name: "sponsor";
320
- readonly internalType: "address";
321
- readonly type: "address";
322
- }];
323
- readonly name: "bindSponsor";
324
- readonly outputs: readonly [];
325
- readonly stateMutability: "nonpayable";
326
- } | {
327
- readonly type: "function";
328
- readonly inputs: readonly [{
329
- readonly name: "";
330
- readonly internalType: "address";
331
- readonly type: "address";
332
- }];
333
- readonly name: "creationMode";
334
- readonly outputs: readonly [{
335
- readonly name: "";
336
- readonly internalType: "enum PolicyRegistry.CreationMode";
337
- readonly type: "uint8";
338
- }];
339
- readonly stateMutability: "view";
340
- } | {
341
- readonly type: "function";
342
- readonly inputs: readonly [{
343
- readonly name: "";
344
- readonly internalType: "address";
345
- readonly type: "address";
346
- }];
347
- readonly name: "entries";
348
- readonly outputs: readonly [{
349
- readonly name: "listed";
350
- readonly internalType: "bool";
351
- readonly type: "bool";
352
- }, {
353
- readonly name: "until";
354
- readonly internalType: "uint64";
355
- readonly type: "uint64";
356
- }, {
357
- readonly name: "index";
358
- readonly internalType: "uint32";
359
- readonly type: "uint32";
360
- }, {
361
- readonly name: "name";
362
- readonly internalType: "bytes32";
363
- readonly type: "bytes32";
364
- }];
365
- readonly stateMutability: "view";
366
- } | {
367
- readonly type: "function";
368
- readonly inputs: readonly [{
369
- readonly name: "";
370
- readonly internalType: "address";
371
- readonly type: "address";
372
- }];
373
- readonly name: "forwarderTrusted";
374
- readonly outputs: readonly [{
375
- readonly name: "";
376
- readonly internalType: "bool";
377
- readonly type: "bool";
378
- }];
379
- readonly stateMutability: "view";
380
- } | {
381
- readonly type: "function";
382
- readonly inputs: readonly [{
383
- readonly name: "";
384
- readonly internalType: "address";
385
- readonly type: "address";
386
- }, {
387
- readonly name: "";
388
- readonly internalType: "address";
389
- readonly type: "address";
390
- }];
391
- readonly name: "initializerListed";
392
- readonly outputs: readonly [{
393
- readonly name: "";
394
- readonly internalType: "bool";
395
- readonly type: "bool";
396
- }];
397
- readonly stateMutability: "view";
398
- } | {
399
- readonly type: "function";
400
- readonly inputs: readonly [{
401
- readonly name: "policy";
402
- readonly internalType: "address";
403
- readonly type: "address";
404
- }];
405
- readonly name: "isApproved";
406
- readonly outputs: readonly [{
407
- readonly name: "";
408
- readonly internalType: "bool";
409
- readonly type: "bool";
410
- }];
411
- readonly stateMutability: "view";
412
- } | {
413
- readonly type: "function";
414
- readonly inputs: readonly [{
415
- readonly name: "";
416
- readonly internalType: "address";
417
- readonly type: "address";
418
- }];
419
- readonly name: "kindOf";
420
- readonly outputs: readonly [{
421
- readonly name: "";
422
- readonly internalType: "bytes32";
423
- readonly type: "bytes32";
424
- }];
425
- readonly stateMutability: "view";
426
- } | {
427
- readonly type: "function";
428
- readonly inputs: readonly [];
429
- readonly name: "logAuthority";
430
- readonly outputs: readonly [{
431
- readonly name: "";
432
- readonly internalType: "address";
433
- readonly type: "address";
434
- }];
435
- readonly stateMutability: "view";
436
- } | {
437
- readonly type: "function";
438
- readonly inputs: readonly [{
439
- readonly name: "manager";
440
- readonly internalType: "address";
441
- readonly type: "address";
442
- }, {
443
- readonly name: "key";
444
- readonly internalType: "struct FPoolKey";
445
- readonly type: "tuple";
446
- readonly components: readonly [{
447
- readonly name: "quote";
448
- readonly internalType: "address";
449
- readonly type: "address";
450
- }, {
451
- readonly name: "bases";
452
- readonly internalType: "address[]";
453
- readonly type: "address[]";
454
- }, {
455
- readonly name: "swapFee";
456
- readonly internalType: "uint256";
457
- readonly type: "uint256";
458
- }, {
459
- readonly name: "policy";
460
- readonly internalType: "address";
461
- readonly type: "address";
462
- }, {
463
- readonly name: "creator";
464
- readonly internalType: "address";
465
- readonly type: "address";
466
- }, {
467
- readonly name: "salt";
468
- readonly internalType: "bytes32";
469
- readonly type: "bytes32";
470
- }, {
471
- readonly name: "mintFee";
472
- readonly internalType: "uint256";
473
- readonly type: "uint256";
474
- }];
475
- }, {
476
- readonly name: "to";
477
- readonly internalType: "address";
478
- readonly type: "address";
479
- }];
480
- readonly name: "migrate";
481
- readonly outputs: readonly [];
482
- readonly stateMutability: "nonpayable";
483
- } | {
484
- readonly type: "function";
485
- readonly inputs: readonly [{
486
- readonly name: "manager";
487
- readonly internalType: "address";
488
- readonly type: "address";
489
- }, {
490
- readonly name: "key";
491
- readonly internalType: "struct FPoolKey";
492
- readonly type: "tuple";
493
- readonly components: readonly [{
494
- readonly name: "quote";
495
- readonly internalType: "address";
496
- readonly type: "address";
497
- }, {
498
- readonly name: "bases";
499
- readonly internalType: "address[]";
500
- readonly type: "address[]";
501
- }, {
502
- readonly name: "swapFee";
503
- readonly internalType: "uint256";
504
- readonly type: "uint256";
505
- }, {
506
- readonly name: "policy";
507
- readonly internalType: "address";
508
- readonly type: "address";
509
- }, {
510
- readonly name: "creator";
511
- readonly internalType: "address";
512
- readonly type: "address";
513
- }, {
514
- readonly name: "salt";
515
- readonly internalType: "bytes32";
516
- readonly type: "bytes32";
517
- }, {
518
- readonly name: "mintFee";
519
- readonly internalType: "uint256";
520
- readonly type: "uint256";
521
- }];
522
- }, {
523
- readonly name: "to";
524
- readonly internalType: "address";
525
- readonly type: "address";
526
- }, {
527
- readonly name: "permissions";
528
- readonly internalType: "struct IPrivatePolicyMigration.Permissions";
529
- readonly type: "tuple";
530
- readonly components: readonly [{
531
- readonly name: "swapMode";
532
- readonly internalType: "uint8";
533
- readonly type: "uint8";
534
- }, {
535
- readonly name: "executor";
536
- readonly internalType: "address";
537
- readonly type: "address";
538
- }, {
539
- readonly name: "mintGated";
540
- readonly internalType: "bool";
541
- readonly type: "bool";
542
- }, {
543
- readonly name: "minters";
544
- readonly internalType: "address[]";
545
- readonly type: "address[]";
546
- }, {
547
- readonly name: "takers";
548
- readonly internalType: "address[]";
549
- readonly type: "address[]";
550
- }];
551
- }];
552
- readonly name: "migratePrivate";
553
- readonly outputs: readonly [];
554
- readonly stateMutability: "nonpayable";
555
- } | {
556
- readonly type: "function";
557
- readonly inputs: readonly [];
558
- readonly name: "pendingLogAuthority";
559
- readonly outputs: readonly [{
560
- readonly name: "";
561
- readonly internalType: "address";
562
- readonly type: "address";
563
- }];
564
- readonly stateMutability: "view";
565
- } | {
566
- readonly type: "function";
567
- readonly inputs: readonly [];
568
- readonly name: "policies";
569
- readonly outputs: readonly [{
570
- readonly name: "";
571
- readonly internalType: "address[]";
572
- readonly type: "address[]";
573
- }];
574
- readonly stateMutability: "view";
575
- } | {
576
- readonly type: "function";
577
- readonly inputs: readonly [{
578
- readonly name: "next";
579
- readonly internalType: "address";
580
- readonly type: "address";
581
- }];
582
- readonly name: "proposeLogAuthority";
583
- readonly outputs: readonly [];
584
- readonly stateMutability: "nonpayable";
585
- } | {
586
- readonly type: "function";
587
- readonly inputs: readonly [{
588
- readonly name: "policy";
589
- readonly internalType: "address";
590
- readonly type: "address";
591
- }];
592
- readonly name: "revoke";
593
- readonly outputs: readonly [];
594
- readonly stateMutability: "nonpayable";
595
- } | {
596
- readonly type: "function";
597
- readonly inputs: readonly [{
598
- readonly name: "policy";
599
- readonly internalType: "address";
600
- readonly type: "address";
601
- }, {
602
- readonly name: "mode";
603
- readonly internalType: "enum PolicyRegistry.CreationMode";
604
- readonly type: "uint8";
605
- }];
606
- readonly name: "setCreationMode";
607
- readonly outputs: readonly [];
608
- readonly stateMutability: "nonpayable";
609
- } | {
610
- readonly type: "function";
611
- readonly inputs: readonly [{
612
- readonly name: "forwarder";
613
- readonly internalType: "address";
614
- readonly type: "address";
615
- }, {
616
- readonly name: "trusted";
617
- readonly internalType: "bool";
618
- readonly type: "bool";
619
- }];
620
- readonly name: "setForwarderTrusted";
621
- readonly outputs: readonly [];
622
- readonly stateMutability: "nonpayable";
623
- } | {
624
- readonly type: "function";
625
- readonly inputs: readonly [{
626
- readonly name: "policy";
627
- readonly internalType: "address";
628
- readonly type: "address";
629
- }, {
630
- readonly name: "who";
631
- readonly internalType: "address";
632
- readonly type: "address";
633
- }, {
634
- readonly name: "allowed";
635
- readonly internalType: "bool";
636
- readonly type: "bool";
637
- }];
638
- readonly name: "setInitializerListed";
639
- readonly outputs: readonly [];
640
- readonly stateMutability: "nonpayable";
641
- } | {
642
- readonly type: "function";
643
- readonly inputs: readonly [{
644
- readonly name: "who";
645
- readonly internalType: "address";
646
- readonly type: "address";
647
- }, {
648
- readonly name: "name";
649
- readonly internalType: "bytes32";
650
- readonly type: "bytes32";
651
- }];
652
- readonly name: "setSponsorName";
653
- readonly outputs: readonly [];
654
- readonly stateMutability: "nonpayable";
655
- } | {
656
- readonly type: "function";
657
- readonly inputs: readonly [{
658
- readonly name: "";
659
- readonly internalType: "address";
660
- readonly type: "address";
661
- }];
662
- readonly name: "sponsorName";
663
- readonly outputs: readonly [{
664
- readonly name: "";
665
- readonly internalType: "bytes32";
666
- readonly type: "bytes32";
667
- }];
668
- readonly stateMutability: "view";
669
- } | {
670
- readonly type: "function";
671
- readonly inputs: readonly [{
672
- readonly name: "policy";
673
- readonly internalType: "address";
674
- readonly type: "address";
675
- }];
676
- readonly name: "sponsorOf";
677
- readonly outputs: readonly [{
678
- readonly name: "";
679
- readonly internalType: "address";
680
- readonly type: "address";
681
- }];
682
- readonly stateMutability: "view";
683
- } | {
684
- readonly type: "function";
685
- readonly inputs: readonly [{
686
- readonly name: "policy";
687
- readonly internalType: "address";
688
- readonly type: "address";
689
- }, {
690
- readonly name: "untilTime";
691
- readonly internalType: "uint64";
692
- readonly type: "uint64";
693
- }];
694
- readonly name: "sunset";
695
- readonly outputs: readonly [];
696
- readonly stateMutability: "nonpayable";
697
- } | {
698
- readonly type: "event";
699
- readonly anonymous: false;
700
- readonly inputs: readonly [{
701
- readonly name: "policy";
702
- readonly internalType: "address";
703
- readonly type: "address";
704
- readonly indexed: true;
705
- }, {
706
- readonly name: "name";
707
- readonly internalType: "bytes32";
708
- readonly type: "bytes32";
709
- readonly indexed: false;
710
- }];
711
- readonly name: "Approved";
712
- } | {
713
- readonly type: "event";
714
- readonly anonymous: false;
715
- readonly inputs: readonly [{
716
- readonly name: "policy";
717
- readonly internalType: "address";
718
- readonly type: "address";
719
- readonly indexed: true;
720
- }, {
721
- readonly name: "mode";
722
- readonly internalType: "enum PolicyRegistry.CreationMode";
723
- readonly type: "uint8";
724
- readonly indexed: false;
725
- }];
726
- readonly name: "CreationModeSet";
727
- } | {
728
- readonly type: "event";
729
- readonly anonymous: false;
730
- readonly inputs: readonly [{
731
- readonly name: "forwarder";
732
- readonly internalType: "address";
733
- readonly type: "address";
734
- readonly indexed: true;
735
- }, {
736
- readonly name: "trusted";
737
- readonly internalType: "bool";
738
- readonly type: "bool";
739
- readonly indexed: false;
740
- }];
741
- readonly name: "ForwarderTrusted";
742
- } | {
743
- readonly type: "event";
744
- readonly anonymous: false;
745
- readonly inputs: readonly [{
746
- readonly name: "policy";
747
- readonly internalType: "address";
748
- readonly type: "address";
749
- readonly indexed: true;
750
- }, {
751
- readonly name: "who";
752
- readonly internalType: "address";
753
- readonly type: "address";
754
- readonly indexed: true;
755
- }, {
756
- readonly name: "allowed";
757
- readonly internalType: "bool";
758
- readonly type: "bool";
759
- readonly indexed: false;
760
- }];
761
- readonly name: "InitializerListed";
762
- } | {
763
- readonly type: "event";
764
- readonly anonymous: false;
765
- readonly inputs: readonly [{
766
- readonly name: "prev";
767
- readonly internalType: "address";
768
- readonly type: "address";
769
- readonly indexed: true;
770
- }, {
771
- readonly name: "next";
772
- readonly internalType: "address";
773
- readonly type: "address";
774
- readonly indexed: true;
775
- }];
776
- readonly name: "LogAuthorityAccepted";
777
- } | {
778
- readonly type: "event";
779
- readonly anonymous: false;
780
- readonly inputs: readonly [{
781
- readonly name: "current";
782
- readonly internalType: "address";
783
- readonly type: "address";
784
- readonly indexed: true;
785
- }, {
786
- readonly name: "proposed";
787
- readonly internalType: "address";
788
- readonly type: "address";
789
- readonly indexed: true;
790
- }];
791
- readonly name: "LogAuthorityProposed";
792
- } | {
793
- readonly type: "event";
794
- readonly anonymous: false;
795
- readonly inputs: readonly [{
796
- readonly name: "manager";
797
- readonly internalType: "address";
798
- readonly type: "address";
799
- readonly indexed: true;
800
- }, {
801
- readonly name: "poolId";
802
- readonly internalType: "bytes32";
803
- readonly type: "bytes32";
804
- readonly indexed: true;
805
- }, {
806
- readonly name: "to";
807
- readonly internalType: "address";
808
- readonly type: "address";
809
- readonly indexed: true;
810
- }, {
811
- readonly name: "from";
812
- readonly internalType: "address";
813
- readonly type: "address";
814
- readonly indexed: false;
815
- }, {
816
- readonly name: "authority";
817
- readonly internalType: "address";
818
- readonly type: "address";
819
- readonly indexed: false;
820
- }];
821
- readonly name: "Migrated";
822
- } | {
823
- readonly type: "event";
824
- readonly anonymous: false;
825
- readonly inputs: readonly [{
826
- readonly name: "policy";
827
- readonly internalType: "address";
828
- readonly type: "address";
829
- readonly indexed: true;
830
- }];
831
- readonly name: "Revoked";
832
- } | {
833
- readonly type: "event";
834
- readonly anonymous: false;
835
- readonly inputs: readonly [{
836
- readonly name: "policy";
837
- readonly internalType: "address";
838
- readonly type: "address";
839
- readonly indexed: true;
840
- }, {
841
- readonly name: "sponsor";
842
- readonly internalType: "address";
843
- readonly type: "address";
844
- readonly indexed: true;
845
- }];
846
- readonly name: "SponsorBound";
847
- } | {
848
- readonly type: "event";
849
- readonly anonymous: false;
850
- readonly inputs: readonly [{
851
- readonly name: "who";
852
- readonly internalType: "address";
853
- readonly type: "address";
854
- readonly indexed: true;
855
- }, {
856
- readonly name: "name";
857
- readonly internalType: "bytes32";
858
- readonly type: "bytes32";
859
- readonly indexed: false;
860
- }];
861
- readonly name: "SponsorNamed";
862
- } | {
863
- readonly type: "event";
864
- readonly anonymous: false;
865
- readonly inputs: readonly [{
866
- readonly name: "policy";
867
- readonly internalType: "address";
868
- readonly type: "address";
869
- readonly indexed: true;
870
- }, {
871
- readonly name: "untilTime";
872
- readonly internalType: "uint64";
873
- readonly type: "uint64";
874
- readonly indexed: false;
875
- }];
876
- readonly name: "SunsetSet";
877
- } | {
878
- readonly type: "error";
879
- readonly inputs: readonly [];
880
- readonly name: "BadSunset";
881
- } | {
882
- readonly type: "error";
883
- readonly inputs: readonly [];
884
- readonly name: "InitializerNotListed";
885
- } | {
886
- readonly type: "error";
887
- readonly inputs: readonly [];
888
- readonly name: "InvalidForwardedUser";
889
- } | {
890
- readonly type: "error";
891
- readonly inputs: readonly [];
892
- readonly name: "KindMismatch";
893
- } | {
894
- readonly type: "error";
895
- readonly inputs: readonly [];
896
- readonly name: "NoPool";
897
- } | {
898
- readonly type: "error";
899
- readonly inputs: readonly [];
900
- readonly name: "NotAPolicy";
901
- } | {
902
- readonly type: "error";
903
- readonly inputs: readonly [];
904
- readonly name: "NotListed";
905
- } | {
906
- readonly type: "error";
907
- readonly inputs: readonly [];
908
- readonly name: "NotLogAuthority";
909
- } | {
910
- readonly type: "error";
911
- readonly inputs: readonly [];
912
- readonly name: "PrivatePermissionsRequired";
913
- } | {
914
- readonly type: "error";
915
- readonly inputs: readonly [];
916
- readonly name: "SamePolicy";
917
- } | {
918
- readonly type: "error";
919
- readonly inputs: readonly [];
920
- readonly name: "SponsorOnly";
921
- } | {
922
- readonly type: "error";
923
- readonly inputs: readonly [];
924
- readonly name: "WrongManager";
925
- } | {
926
- readonly type: "error";
927
- readonly inputs: readonly [];
928
- readonly name: "BadFee";
929
- } | {
930
- readonly type: "error";
931
- readonly inputs: readonly [];
932
- readonly name: "BadRate";
933
- } | {
934
- readonly type: "error";
935
- readonly inputs: readonly [{
936
- readonly name: "fee";
937
- readonly internalType: "uint256";
938
- readonly type: "uint256";
939
- }];
940
- readonly name: "FeeNotListed";
941
- } | {
942
- readonly type: "error";
943
- readonly inputs: readonly [{
944
- readonly name: "base";
945
- readonly internalType: "address";
946
- readonly type: "address";
947
- }, {
948
- readonly name: "quote";
949
- readonly internalType: "address";
950
- readonly type: "address";
951
- }, {
952
- readonly name: "fee";
953
- readonly internalType: "uint256";
954
- readonly type: "uint256";
955
- }];
956
- readonly name: "MarketExists";
957
- } | {
958
- readonly type: "error";
959
- readonly inputs: readonly [];
960
- readonly name: "NoCreator";
961
- } | {
962
- readonly type: "error";
963
- readonly inputs: readonly [];
964
- readonly name: "NotAuthority";
965
- } | {
966
- readonly type: "error";
967
- readonly inputs: readonly [];
968
- readonly name: "NotCanonical";
969
- } | {
970
- readonly type: "error";
971
- readonly inputs: readonly [];
972
- readonly name: "NotLogAuthority";
973
- } | {
974
- readonly type: "error";
975
- readonly inputs: readonly [];
976
- readonly name: "NotManager";
977
- } | {
978
- readonly type: "error";
979
- readonly inputs: readonly [];
980
- readonly name: "NotRegistry";
981
- } | {
982
- readonly type: "error";
983
- readonly inputs: readonly [];
984
- readonly name: "NotSponsor";
985
- } | {
986
- readonly type: "error";
987
- readonly inputs: readonly [];
988
- readonly name: "OneBase";
989
- } | {
990
- readonly type: "error";
991
- readonly inputs: readonly [{
992
- readonly name: "base";
993
- readonly internalType: "address";
994
- readonly type: "address";
995
- }, {
996
- readonly name: "quote";
997
- readonly internalType: "address";
998
- readonly type: "address";
999
- }];
1000
- readonly name: "PairNotListed";
1001
- } | {
1002
- readonly type: "error";
1003
- readonly inputs: readonly [{
1004
- readonly name: "quote";
1005
- readonly internalType: "address";
1006
- readonly type: "address";
1007
- }];
1008
- readonly name: "QuoteNotListed";
1009
- } | {
1010
- readonly type: "error";
1011
- readonly inputs: readonly [];
1012
- readonly name: "Refused";
1013
- } | {
1014
- readonly type: "error";
1015
- readonly inputs: readonly [{
1016
- readonly name: "tickSpacing";
1017
- readonly internalType: "int256";
1018
- readonly type: "int256";
1019
- }];
1020
- readonly name: "SpacingNotListed";
1021
- })[];
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[];
1022
192
  /** A manager's treasury — where its protocol revenue goes — and the proposed next one. */
1023
- export declare function logTreasury(c: LogswapClient, side: "C" | "F"): Promise<{
193
+ export declare function logTreasury(c: LogswapClient, side: Side): Promise<{
1024
194
  treasury: Address;
1025
195
  pending: Address;
1026
196
  }>;
@@ -1028,15 +198,16 @@ export declare function logTreasury(c: LogswapClient, side: "C" | "F"): Promise<
1028
198
  * Propose a manager's next treasury: the LOG Authority's call, never the treasury's own, so a
1029
199
  * treasury that can no longer act is replaced without it. Nothing the old treasury holds moves.
1030
200
  */
1031
- export declare function proposeTreasury(c: LogswapClient, side: "C" | "F", next: Address): Promise<Hash>;
201
+ export declare function proposeTreasury(c: LogswapClient, side: Side, next: Address): Promise<Hash>;
1032
202
  /** The proposed treasury takes the role, sending from its own address. */
1033
- export declare function acceptTreasury(c: LogswapClient, side: "C" | "F"): Promise<Hash>;
203
+ export declare function acceptTreasury(c: LogswapClient, side: Side): Promise<Hash>;
1034
204
  /** @deprecated the collector became the treasury (066), proposed by the LOG Authority: use {@link proposeTreasury}. */
1035
205
  export declare const proposeCollector: typeof proposeTreasury;
1036
206
  /** @deprecated use {@link acceptTreasury}. */
1037
207
  export declare const acceptCollector: typeof acceptTreasury;
1038
208
  /**
1039
- * `CPoolManager.collectProtocolFees(key)`: pay one market's `protocolOwed` (mint fees and swap-fee
209
+ * `ManagerC.collectProtocolFees(poolId)`: pay one market's `protocolOwed` (mint fees and swap-fee
1040
210
  * tax) to the treasury. Anyone may send it (066); the destination is fixed.
1041
211
  */
1042
212
  export declare function collectCProtocolFees(c: LogswapClient, key: PoolKey): Promise<Hash>;
213
+ export {};