@floorlaunchpad/sdk 0.7.0 → 0.8.1

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 (105) hide show
  1. package/CHANGELOG.md +143 -0
  2. package/README.md +12 -1
  3. package/dist/abi/evm.gen.js +75 -2
  4. package/dist/abi/functions.gen.js +87 -1
  5. package/dist/abi/solana.gen.js +59 -0
  6. package/dist/client/solana/index.js +25 -6
  7. package/dist/config/generated.js +803 -26374
  8. package/dist/errors.js +20 -1
  9. package/dist/events/types.gen.js +1 -1
  10. package/dist/evm/chains.js +49 -0
  11. package/dist/evm/floor/abi.gen.js +115 -0
  12. package/dist/evm/squid.js +21 -5
  13. package/dist/evm/venues.js +302 -0
  14. package/dist/generated/interface.gen.js +45 -1
  15. package/dist/index.js +7 -0
  16. package/dist/indexer/bodies.js +154 -2
  17. package/dist/indexer/client.js +8 -1
  18. package/dist/indexer/contract.js +78 -11
  19. package/dist/indexer/paths.js +46 -0
  20. package/dist/indexer/read.js +14 -1
  21. package/dist/math/v2/book.js +24 -7
  22. package/dist/math/v2/create.js +1 -1
  23. package/dist/math/v2/escrow.js +205 -0
  24. package/dist/math/v2/office.js +110 -0
  25. package/dist/math/v2/relay.js +263 -96
  26. package/dist/math/v2/team.js +28 -0
  27. package/dist/math/v2/trade.js +3 -1
  28. package/dist/reprice.js +88 -0
  29. package/dist/route/quote.js +16 -0
  30. package/dist/scaledUi.js +113 -0
  31. package/dist/solana/floor/accounts.js +8 -2
  32. package/dist/solana/floor/events.js +56 -1
  33. package/dist/solana/floor/instructions.js +16 -0
  34. package/dist/stockRefresh.js +99 -0
  35. package/dist/ton/consts.generated.js +2 -2
  36. package/dist/ton/gas.js +3 -3
  37. package/dist/v2/claims.js +28 -5
  38. package/dist/v2/devbuy.js +28 -3
  39. package/dist/v2/evm.js +178 -5
  40. package/dist/v2/layouts.js +100 -2
  41. package/dist/v2/office-events.js +127 -0
  42. package/dist/v2/office-evm.js +68 -0
  43. package/dist/v2/office-read.js +182 -0
  44. package/dist/v2/office-solana.js +134 -0
  45. package/dist/v2/office-trade.js +73 -0
  46. package/dist/v2/route-alt.js +1 -0
  47. package/dist/v2/route.js +1 -1
  48. package/dist/v2/solana.js +224 -5
  49. package/dist/v2/solanaSettle.js +2 -0
  50. package/dist/v2/tx/evm.js +51 -1
  51. package/dist/v2/tx/solana.js +3 -3
  52. package/dist/v2/types.js +4 -0
  53. package/docs/aggregator.md +19 -0
  54. package/examples/floor-line.html +1 -1
  55. package/package.json +26 -1
  56. package/src/abi/evm.gen.ts +75 -2
  57. package/src/abi/functions.gen.ts +87 -1
  58. package/src/abi/solana.gen.ts +59 -0
  59. package/src/client/solana/index.ts +25 -6
  60. package/src/config/generated.ts +803 -26374
  61. package/src/errors.ts +20 -1
  62. package/src/events/types.gen.ts +402 -1
  63. package/src/evm/chains.ts +58 -0
  64. package/src/evm/floor/abi.gen.ts +115 -0
  65. package/src/evm/squid.ts +22 -6
  66. package/src/evm/venues.ts +340 -0
  67. package/src/generated/interface.gen.ts +45 -1
  68. package/src/index.ts +7 -0
  69. package/src/indexer/bodies.ts +167 -2
  70. package/src/indexer/client.ts +16 -2
  71. package/src/indexer/contract.ts +84 -12
  72. package/src/indexer/paths.ts +77 -0
  73. package/src/indexer/read.ts +16 -3
  74. package/src/math/v2/book.ts +23 -7
  75. package/src/math/v2/create.ts +1 -1
  76. package/src/math/v2/escrow.ts +213 -0
  77. package/src/math/v2/office.ts +114 -0
  78. package/src/math/v2/relay.ts +269 -96
  79. package/src/math/v2/team.ts +28 -0
  80. package/src/math/v2/trade.ts +3 -1
  81. package/src/reprice.ts +121 -0
  82. package/src/route/quote.ts +16 -0
  83. package/src/scaledUi.ts +123 -0
  84. package/src/solana/floor/accounts.ts +8 -2
  85. package/src/solana/floor/events.ts +57 -2
  86. package/src/solana/floor/instructions.ts +16 -0
  87. package/src/stockRefresh.ts +131 -0
  88. package/src/ton/consts.generated.ts +2 -2
  89. package/src/ton/gas.ts +3 -3
  90. package/src/v2/claims.ts +34 -5
  91. package/src/v2/devbuy.ts +38 -3
  92. package/src/v2/evm.ts +204 -5
  93. package/src/v2/layouts.ts +100 -2
  94. package/src/v2/office-events.ts +133 -0
  95. package/src/v2/office-evm.ts +76 -0
  96. package/src/v2/office-read.ts +264 -0
  97. package/src/v2/office-solana.ts +159 -0
  98. package/src/v2/office-trade.ts +96 -0
  99. package/src/v2/route-alt.ts +1 -0
  100. package/src/v2/route.ts +1 -1
  101. package/src/v2/solana.ts +235 -5
  102. package/src/v2/solanaSettle.ts +2 -0
  103. package/src/v2/tx/evm.ts +51 -1
  104. package/src/v2/tx/solana.ts +5 -3
  105. package/src/v2/types.ts +66 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,149 @@
2
2
 
3
3
  All notable changes to `@floorlaunchpad/sdk`. The version follows semver; while the major number is 0, a minor bump may rename or remove an export and a patch bump never does.
4
4
 
5
+ ## 0.8.1
6
+
7
+ FloorRouter is the any-coin path on EVM, and the SDK books its instances. Nothing in the program changes; use it against the same
8
+ program as 0.8.0. The FloorZap book stays (the zaps stay on chain and past trades still read), but FloorZap is retired from the
9
+ FLOOR site.
10
+
11
+ Timelock:
12
+
13
+ The upgrade timelock is on its first step: a 1-hour delay between scheduling an upgrade and running it. It stays at 1 hour for 3 days, then moves to 6 hours for a week, then to 1 day, then to 1 week. The dates are not set yet.
14
+
15
+ | Step | Upgrade delay |
16
+ |---|---|
17
+ | 1 | 1 hour |
18
+ | 2 | 6 hours |
19
+ | 3 | 1 day |
20
+ | 4 | 1 week |
21
+
22
+ Added:
23
+
24
+ - `FLOOR_ROUTER_ADDRESSES` (`@floorlaunchpad/sdk/evm/chains`): the FloorRouter instances per chain per DEX slot, both builds. The
25
+ earlier build is live; the build that trades for its caller is marked `forCaller: true` and is deployed after each chain's
26
+ FloorAmm upgrade (read the code at the address first). `floorRouterAddressV2({ deployer, slot })` derives an instance
27
+ (`FloorRouterDeployer.instanceOf(slot)`); the newer build's instances are derived from `FLOOR_ROUTER_DEPLOYER_FOR`, never
28
+ hard-coded. `FLOOR_ROUTER_DEPLOYER_EARLIER` names the earlier deployer.
29
+ - `ownProofOf(tradeLogIndex, proofs)` and `routedPerson` (`@floorlaunchpad/sdk/v2/devbuy`): the person a routed `Trade` is for,
30
+ read from the first `Sold` / `Bought` / `Zapped` after it in the same transaction. `devBuyFromTrade` takes it as `ctx.own` and
31
+ `memberSoldFromTrade` as a fifth argument, so a pass-through hop of a multi-hop route is the router's, not the caller's: a
32
+ creator or member is no longer badged for a launch they never held.
33
+ - `@floorlaunchpad/sdk/evm/venues`: `VENUE_LEGS` (15 proven DEX legs), `dexEdgeQuoter(row, reads)` (V2 `getAmountsOut` and every venue quoter, host-free), `bestVenueHop`, `venueLegData`, `dexSwapData`, `uniswapLegData`, `legMinOut`, `UNISWAP_V3_QUOTER`.
34
+ - `bestEdgeQuoter(quoters)` in the routing core (`route/quote.ts`): every quoter is asked at once, a failure or zero is skipped, the largest out wins, ties go to the earliest.
35
+ - The Cushion always has a slot. When the book is full, `relayPots` merges the closest used segments (same pot first, value-safe pairs first) and re-sells a merged part on one constant-product curve; K's piece is split at the price with C laid right under it; C's tail goes down toward the floor when slots run out.
36
+ - `kKept` on the book (bit i = segment i is a kept part K owns), length-tolerant: `kKept` is 0 on an old view or old pad. Solana reads it from `LaunchV2.k_kept` (formerly `pad_og`); the EVM decoder reads an optional extra tuple word.
37
+ - New exports: `relayBook` (the one-time heal at the upgrade), `worthLaying`, `ROOM_MIN_SHARE_LOG2`, `isK`, `kKeptOf`. `Relay` gains `merges`, `tiers`, `tail`.
38
+ - Needs the upgraded program on each chain: the walk is exact against an old program for one trade, but multi-trade simulation follows the new relay.
39
+ - A re-lay near f never throws; C's tail with no K money is cut to the token cap instead of dropped.
40
+ - `HolderIndexRolled` is emitted on every trade that steps the holder index (EVM topic changed: carry is `uint128`); the SDK ABI carries the new topic.
41
+ - Indexer launch body: `teamSlot` per-place `shareBps`, `owed`, `claimed`, `teamBuy`, `teamBuyLocked`, `unlockAt`; the SDK `teamSlot` decoder reads them as optional fields.
42
+ - Indexer stream: `claim` and `burn` frames.
43
+
44
+ Changed:
45
+
46
+ - Base's Coinbase tokenized stocks are listed quotes, no longer `deferred`: `quotesOf("base")` returns them without
47
+ `withDeferred`. ANTc (`0xb20000000000000000000016e38fd364d271ba28`, 8 decimals) joins them, eleven in all.
48
+ - `buyHookNative` (the Squid native buy hook) moves to FloorRouter: its postHook is `FullNativeBalance FloorRouter.buy({ tokenIn: native, amountIn: 0, path, swapData, minQuoteIn, minTokensOut, to: user, deadline })` at the chain's `forCaller` router, with the native and quote refunds passed on to the user as before. It takes `router` (not `zap`), an optional multi-hop `path` and one `minTokensOut` a hop, and refuses an earlier-build router (`BAD_ROUTER`) and a path that does not end at the launch (`BAD_PATH`). `squidRouterFor(chainId, slot)` returns the booked router; `SQUID_GAS.zapBuy` is `SQUID_GAS.routerBuy`. ERC-20 buys and the sell preHook are unchanged.
49
+ - `FLOOR_ZAP_ADDRESSES` is marked retired from the site in its comment; the book is unchanged.
50
+ - The generated ABI selectors and `interface.gen.ts` are regenerated (the FloorAmm `…For` functions).
51
+ - The README and `docs/aggregator.md` teach FloorRouter (`buy` / `sell` / `swap`) as the any-coin path on EVM; `zapSwapData` stays as
52
+ the DEX-leg encoder both use.
53
+
54
+ ## 0.8.0
55
+
56
+ Added the reprice rule, the one rule every tool uses to decide which registry rows of a tokenized stock need their price
57
+ and create fee set again, and three indexer reads about the wallets around a launch. Nothing in the program changes; use it
58
+ against the same program as 0.7.0. 0.7.1 was not published: 0.8.0 is the first release after 0.7.0 and carries every change
59
+ listed under 0.7.1 below.
60
+
61
+ Added:
62
+
63
+ - Solana Office buy / sell from reads (`v2OfficeTrade`, `src/v2/office-trade.ts`): `officeLaunchAccounts` (a `LaunchV2` account → the whole `OfficeLaunchAccounts` for a buy and for a sell, plus a hooked quote's six extras), `readOfficeTrade` (fetch callback → the Office, its positions as the value block, the launch accounts), `officeBuyFromRead` / `officeSellFromRead`, `isHookedQuoteMint`. No encoding change.
64
+ - Office reads, both chains, one shape (`v2OfficeRead`, `src/v2/office-read.ts`): `decodeOfficeView` (EVM `officeOf`, typed from the generated ABI; exact),
65
+ `decodeOffice` (the Solana `Office` account, exact: 8 + 960 + 64 × slots bytes, the member and merge-in-flight fields of the paged merge), `officeAddress`,
66
+ and `readOffice` / `readOfficeView` returning `OfficeRead` (V's inputs, cash, units, each member's units and Spending Share, the cap, the merge state).
67
+ `decodeOfficeMemberOf` and `decodeOfficeValue` (the two other Office reads the SDK builds) are re-exported there.
68
+ Held against real prints: `test/fixtures/solana/office_accounts.json` (the program's own structs), `test/fixtures/evm/office_view.json` (the FloorAmm hop).
69
+ - `@floorlaunchpad/sdk/reprice` (also `reprice` on the root entry). `repriceRows({ quotes, prices, sources, read,
70
+ multiplier, feeUsdCents, keyOf })` takes a fresh price per RAW whole token for each stock and the chain's registry row
71
+ (passed in by `read`; nothing here reads a network or signs) and returns `{ update, skipped }`. A row is in `update` when
72
+ its price or its create fee is more than 2 % (`minDriftBps` 200) from the fresh reading; each update carries the new
73
+ `usd_cents_x64`, the new `create_fee` (base units, rounded up) and the row's `enabled`, unchanged. A move over 25 %
74
+ (`maxMoveBps` 2500) is planned only when the token's share multiplier explains it (`basis: "multiplier"`, within
75
+ `explainBps` 1500) or when Pyth and CoinGecko both priced it and agree within 3 % (`basis: "two sources"`, `agreeBps`
76
+ 300; `twoSourcesAgree`). Anything else is in `skipped` with the reason, for a person to check. One source alone never
77
+ carries a big move.
78
+ - Indexer: three reads about the wallets around a launch. Each needs an indexer on this build; an older one answers
79
+ `unknown route`.
80
+ - `GET /floor-amm/launches/<launch>/ties` (`INDEXER_CONTRACT.launchTies`, `indexerPath.launchTies`, `readLaunchTies`,
81
+ decoder `LAUNCH_TIES`, query `LaunchTiesQuery`): 1 to `TIES_WALLETS_MAX` (100) wallets read around a time `at`, in a
82
+ window of `TIES_WINDOW_S` (7 days) either side unless `from` / `to` are given, with the chain's base rate in that window.
83
+ Per wallet: active or not (a trade in the 30 days before), on the Team Slot or not, its first buy and how far it was
84
+ from `at`, its buys and sells in the window, and what it held at `TIES_HOLD_DAYS` (7 and 30 days) after `at`; plus
85
+ the chain's base rate (active wallets, how many bought).
86
+ - `GET /floor-amm/wallets/<wallet>/cobuys` (`cobuys`, `readCobuys`, `COBUYS`): the wallets that bought the same launch
87
+ within `COBUY_WINDOW_S` (600 s) of this wallet's buys, on at least `COBUY_MIN_LAUNCHES` (3) launches, most launches first;
88
+ `limit` up to `COBUYS_PAGE_MAX` (500).
89
+ - `GET /floor-amm/referrals/<wallet>/launches` (`referralLaunches`, `readReferralLaunches`, `REFERRAL_LAUNCHES`, query
90
+ `ReferralLaunchesQuery`): the launches the wallet's referred people bought, in create order, a page of up to
91
+ `REFERRAL_LAUNCHES_PAGE_MAX` (100) with `cursor`, or one launch's row with `launch`; each row has what the launch's
92
+ trades paid the referrer by tier (`TIE_EARNED`).
93
+ - `noteScaledUi` takes an optional fourth argument, `lastReadS`, the time of the previous read, so a backdated multiplier
94
+ change is dated after it. Calls with three arguments behave as before.
95
+ - The unit helpers it uses: `usdToCentsX64` (a decimal USD string → US cents per raw whole token, Q64.64), `createFeeFor`
96
+ (the create fee in quote base units, rounded up), `moveBps`, `centsX64ToUsd`, `skippedTally`, `REPRICE_DEFAULTS`,
97
+ `REPRICE_WAD`.
98
+
99
+ No export removed or renamed, no signature changed.
100
+
101
+ ## 0.7.1
102
+
103
+ The approved quote lists lose every tokenized stock that cannot trade. Added: one indexer read, a listed stock's fresh
104
+ price before a create, and the display-scaled quote helper. Nothing in the program changes; use it against the same
105
+ program as 0.7.0.
106
+
107
+ Changed:
108
+
109
+ - The quote lists (`CHAIN_ROWS`, `quotesOf`, `findQuote`, `quoteDecimals`) no longer hold the 3,510 stocks with no route:
110
+ Solana 998, Ethereum 401, BNB Chain 424, Arbitrum 1,488, Robinhood Chain 160, HyperEVM 28, Elysium 11. A stock stays
111
+ only when it reaches the chain's native coin or a stable within 3 hops through pools of at least $50,000 each, or an
112
+ aggregator sells $10,000 of it for at least $7,143, as measured before this cut. Left listed: Solana 28, Ethereum 48,
113
+ BNB Chain 26, Robinhood Chain 43, HyperEVM 5, Arbitrum and Elysium none; Base's 10 stay `deferred` (returned only with
114
+ `withDeferred`). The removed rows are gone, not `deferred`: `findQuote` returns `undefined` for one and
115
+ `quoteDecimals` throws, so read an existing launch's quote decimals from the chain or the indexer's launch rows
116
+ (`quoteDecimals`), not from these lists.
117
+ - The program still lists these stocks: the indexer's `quotes` route (`readQuotes`) and the program's registry serve
118
+ every quote the chain holds, with its `enabled` flag. To offer only the quotes that can trade, keep the ones in
119
+ `quotesOf`.
120
+
121
+ Added:
122
+
123
+ - Indexer: the route `GET /floor-amm/wallets/<wallet>/stats` (`INDEXER_CONTRACT.walletStats`, `indexerPath.walletStats`,
124
+ reader `walletStats`, `readWalletStats`, decoder `WALLET_STATS`, type `WalletStats`): one wallet's lifetime figures as a
125
+ trader, a Team Slot member (its own part of each Team Buy too), a creator and a referrer. Money comes as exact base
126
+ units per quote plus USD at each row's time (`STATS_MONEY`: `byQuote`, `usd`, `usdMissing`); `owed` fields are the
127
+ claim reader's, null on a chain without one. Needs an indexer on this build: an older one answers `unknown route`.
128
+
129
+ - `@floorlaunchpad/sdk/stockRefresh`: the price updater writes a listed stock's registry price only when asked, at most once
130
+ in 12 h per stock. The ask needs a secret, which floor.supply's route `POST /api/quote-refresh` holds. Before a create
131
+ on a stock quote, call `refreshStockPrice({ chain, quote, entry, readEntry })` (it reads no quote list; the route
132
+ answers `not_stock` for any other quote). When the row is older
133
+ than 12 h (`STOCK_FRESH_S`), it asks the route (`askStockRefresh`, `STOCK_REFRESH_URL`; pass `url`, `fetch` or your own
134
+ `ask`). After a `written` answer it reads the row every 3 s, for at most 45 s, until the row moves. It returns `entry`,
135
+ the row to size the create with, plus `status` and `moved`. It never throws and applies no age rule: pass
136
+ `{ entry, now }` as a create builder's `registry` (the 24 h rule) or apply your own. The route is rate-limited per caller
137
+ (3 calls, then one every 20 s). A `written` answer can take up to 90 s.
138
+ - `@floorlaunchpad/sdk/scaledUi`: a Solana xStock (Token-2022 scaled UI amount) or a Robinhood stock (ERC-8056
139
+ `uiMultiplier()`) shows users raw × a multiplier (NFLXx: 10). The programs, the registry and every SDK amount count raw
140
+ tokens. `decodeScaledUiConfig` (a mint's data) and `decodeUiMultiplier` (an `eth_call` of `UI_MULTIPLIER_SELECTOR`)
141
+ read the multiplier. `multiplierAt` and `multiplierIn` give the one in force at a time. `quoteToDisplayed` and
142
+ `quoteToRaw` convert an amount for display and back; send the program raw amounts only.
143
+ - The indexer contract: every route states `quoteUnit` (`raw`, `displayed` or `none`). CoinGecko's tickers and historical
144
+ trades count a scaled quote per displayed token; every other route counts raw.
145
+
146
+ No export removed or renamed, no signature changed.
147
+
5
148
  ## 0.7.0
6
149
 
7
150
  The referral rates change, and up to 100 referrers a chain can be OG Users, paid more for a while. This version splits a
package/README.md CHANGED
@@ -24,7 +24,7 @@ Node 22.18 or newer. The package ships compiled JavaScript in `dist/` with the t
24
24
 
25
25
  | You are | Start here |
26
26
  |---|---|
27
- | An aggregator or router | [docs/aggregator.md](docs/aggregator.md): find a route, quote it, build the Solana instructions or the EVM call |
27
+ | An aggregator or router | [docs/aggregator.md](docs/aggregator.md): find a route, quote it, build the Solana instructions or the EVM call; on EVM, any coin in or out through `FloorRouter` (`buy` / `sell` / `swap`, both builds booked in `FLOOR_ROUTER_ADDRESSES`) |
28
28
  | A wallet | [docs/wallet.md](docs/wallet.md): decode what a transaction does, read errors, build a claim |
29
29
  | A bot or indexer | [docs/bot.md](docs/bot.md): read launches, follow the stream, decode logs |
30
30
  | Anyone paging an indexer list | [docs/cursor-pages.md](docs/cursor-pages.md): which key each route pages by, the defaults and the limits |
@@ -35,6 +35,17 @@ Node 22.18 or newer. The package ships compiled JavaScript in `dist/` with the t
35
35
 
36
36
  A launch's floor is the price the program's own money stands behind. Drawing it under the price line shows holders what backs them. [docs/floor-line.md](docs/floor-line.md) says what we ask, which field to read (the Partner API, a trade event or the SDK), how to draw the line in Lightweight Charts, TradingView or plain SVG, and what to watch for (units, burns, the gap between floor and price, graduation). [examples/floor-line.html](examples/floor-line.html) is a working token page with the line, the FLOOR price and every snippet.
37
37
 
38
+ ## Timelock
39
+
40
+ The upgrade timelock is on its first step: a 1-hour delay between scheduling an upgrade and running it. It stays at 1 hour for 3 days, then moves to 6 hours for a week, then to 1 day, then to 1 week. The dates are not set yet.
41
+
42
+ | Step | Upgrade delay |
43
+ |---|---|
44
+ | 1 | 1 hour |
45
+ | 2 | 6 hours |
46
+ | 3 | 1 day |
47
+ | 4 | 1 week |
48
+
38
49
  ## Versions
39
50
 
40
51
  The version follows semver. While the major number is 0, a minor bump (0.2 to 0.3) may rename or remove an export and a patch bump never does. The plan and the history are in [CHANGELOG.md](CHANGELOG.md).
@@ -2,7 +2,7 @@
2
2
 
3
3
  export const EVM_EVENT_SCHEMAS = [
4
4
  { name: "Trade", signature: "Trade(uint256,address,address,bool,uint256,uint256,uint256,uint256,uint256[5],uint256,uint256,uint256,uint256,uint128,uint128,uint128,uint256,uint256,uint256,uint8,bool,uint64,uint64,uint8,uint256,uint256,uint256[4])", topic: "0xf13d84552bb2de89213afd3ee8de6d2f901a8ef3c46baecd3ba56d079ec5bbee", params: [{"name":"launchId","type":"uint256","indexed":true},{"name":"trader","type":"address","indexed":true},{"name":"recipient","type":"address","indexed":true},{"name":"isBuy","type":"bool","indexed":false},{"name":"quoteGross","type":"uint256","indexed":false},{"name":"quoteNet","type":"uint256","indexed":false},{"name":"refund","type":"uint256","indexed":false},{"name":"tokens","type":"uint256","indexed":false},{"name":"fees","type":"uint256[5]","indexed":false},{"name":"traderRef","type":"uint256","indexed":false},{"name":"fromResale","type":"uint256","indexed":false},{"name":"fromFirst","type":"uint256","indexed":false},{"name":"unfilled","type":"uint256","indexed":false},{"name":"sqrtBefore","type":"uint128","indexed":false},{"name":"sqrtAfter","type":"uint128","indexed":false},{"name":"sqrtF","type":"uint128","indexed":false},{"name":"floor","type":"uint256","indexed":false},{"name":"cushion","type":"uint256","indexed":false},{"name":"sCirc","type":"uint256","indexed":false},{"name":"steps","type":"uint8","indexed":false},{"name":"budgetHit","type":"bool","indexed":false},{"name":"slot","type":"uint64","indexed":false},{"name":"ts","type":"uint64","indexed":false},{"name":"kind","type":"uint8","indexed":false},{"name":"creatorRef","type":"uint256","indexed":false},{"name":"bidMoney","type":"uint256","indexed":false},{"name":"msPaid","type":"uint256[4]","indexed":false}] },
5
- { name: "HolderIndexRolled", signature: "HolderIndexRolled(uint256,uint128,uint64,uint64,uint64)", topic: "0xf20012f017d83d67e79d107e45ef1b26b2c12801c8ac321026fa5fbf4a4617a6", params: [{"name":"launchId","type":"uint256","indexed":true},{"name":"index","type":"uint128","indexed":false},{"name":"wMatured","type":"uint64","indexed":false},{"name":"wPending","type":"uint64","indexed":false},{"name":"carry","type":"uint64","indexed":false}] },
5
+ { name: "HolderIndexRolled", signature: "HolderIndexRolled(uint256,uint128,uint64,uint64,uint128)", topic: "0x049c9e0ad990a5d5a393c18f51a442d644b57982fca29e8d08644a34c43c2984", params: [{"name":"launchId","type":"uint256","indexed":true},{"name":"index","type":"uint128","indexed":false},{"name":"wMatured","type":"uint64","indexed":false},{"name":"wPending","type":"uint64","indexed":false},{"name":"carry","type":"uint128","indexed":false}] },
6
6
  { name: "DeadSynced", signature: "DeadSynced(uint256,uint256,uint256,uint256)", topic: "0x6846c78bd22de57afa536b973536ab5c61067e4d1b4ea058582ba5069d9773af", params: [{"name":"launchId","type":"uint256","indexed":true},{"name":"added","type":"uint256","indexed":false},{"name":"deadTokens","type":"uint256","indexed":false},{"name":"sCirc","type":"uint256","indexed":false}] },
7
7
  { name: "HolderMoved", signature: "HolderMoved(uint256,address,address,uint256,uint256,uint256)", topic: "0xd5824b5333646edb861042e3e4dc301d313bad82266261cc142ea065a6f80f62", params: [{"name":"launchId","type":"uint256","indexed":true},{"name":"from","type":"address","indexed":true},{"name":"to","type":"address","indexed":true},{"name":"value","type":"uint256","indexed":false},{"name":"fromBalance","type":"uint256","indexed":false},{"name":"toBalance","type":"uint256","indexed":false}] },
8
8
  { name: "BackingCredited", signature: "BackingCredited(uint256,address,uint256,uint256,uint64)", topic: "0x9d068fe704d7ba4d84d7cae6b6f5b80e22bc5282d5677787bd0c6fb6b1375797", params: [{"name":"launchId","type":"uint256","indexed":true},{"name":"donor","type":"address","indexed":true},{"name":"amount","type":"uint256","indexed":false},{"name":"fAfter","type":"uint256","indexed":false},{"name":"slot","type":"uint64","indexed":false}] },
@@ -15,6 +15,18 @@ export const EVM_EVENT_SCHEMAS = [
15
15
  { name: "Claimed", signature: "Claimed(address,address,address,uint16,uint256,uint256,uint256,uint256,uint256,uint256,uint256)", topic: "0xc65b75258efd65cacbab47f067226591f78c24d2ee3c3deedf737ca24dc84ada", params: [{"name":"wallet","type":"address","indexed":true},{"name":"sender","type":"address","indexed":true},{"name":"quote","type":"address","indexed":true},{"name":"types","type":"uint16","indexed":false},{"name":"creator","type":"uint256","indexed":false},{"name":"creatorRef","type":"uint256","indexed":false},{"name":"teamSlot","type":"uint256","indexed":false},{"name":"traderRef","type":"uint256","indexed":false},{"name":"holder","type":"uint256","indexed":false},{"name":"extra","type":"uint256","indexed":false},{"name":"amount","type":"uint256","indexed":false}] },
16
16
  { name: "ConfigWritten", signature: "ConfigWritten(address,address,address,address,bool,address)", topic: "0x8f06444aa7d0507d408688b0ec6fc465e012cf24967de8b2205cfd16fcb4566d", params: [{"name":"authority","type":"address","indexed":false},{"name":"pendingAuthority","type":"address","indexed":false},{"name":"timelock","type":"address","indexed":false},{"name":"referralAuthority","type":"address","indexed":false},{"name":"createPaused","type":"bool","indexed":false},{"name":"holderDest","type":"address","indexed":false}] },
17
17
  { name: "CreatorBuyUnlocked", signature: "CreatorBuyUnlocked(uint256,address,uint256,uint256[10],uint256)", topic: "0x39c11edf00e81e75225d0fc2b6f83cabd8ba915d7a071fa450cfb032204eb0f4", params: [{"name":"launchId","type":"uint256","indexed":true},{"name":"creator","type":"address","indexed":true},{"name":"tokens","type":"uint256","indexed":false},{"name":"members","type":"uint256[10]","indexed":false},{"name":"paid","type":"uint256","indexed":false}] },
18
+ { name: "DealEscrowArmed", signature: "DealEscrowArmed(uint256,bytes32,bytes32,uint8,uint256,int64,uint64)", topic: "0xcd07b6e3486447ed59f063ecbc265f3561d04bd4c3ef31552478427b1475237e", params: [{"name":"launchId","type":"uint256","indexed":true},{"name":"escrow","type":"bytes32","indexed":true},{"name":"ref32","type":"bytes32","indexed":false},{"name":"step","type":"uint8","indexed":false},{"name":"marketCap","type":"uint256","indexed":false},{"name":"armedAt","type":"int64","indexed":false},{"name":"armedBlock","type":"uint64","indexed":false}] },
19
+ { name: "DealEscrowCancelAgreed", signature: "DealEscrowCancelAgreed(uint256,bytes32,bytes32,address,uint8,uint8)", topic: "0x26a40d96c95585adcf259eb6eb3d8dc185f829b25c0bcd724017fbb860500c47", params: [{"name":"launchId","type":"uint256","indexed":true},{"name":"escrow","type":"bytes32","indexed":true},{"name":"ref32","type":"bytes32","indexed":false},{"name":"by","type":"address","indexed":false},{"name":"party","type":"uint8","indexed":false},{"name":"agreed","type":"uint8","indexed":false}] },
20
+ { name: "DealEscrowCancelled", signature: "DealEscrowCancelled(uint256,bytes32,bytes32,address,uint256)", topic: "0x3cc47c93cd801d15adbd001ee719360c04fd7d5f35b77358fb4bf158f069a0b9", params: [{"name":"launchId","type":"uint256","indexed":true},{"name":"escrow","type":"bytes32","indexed":true},{"name":"ref32","type":"bytes32","indexed":false},{"name":"launcher","type":"address","indexed":false},{"name":"amount","type":"uint256","indexed":false}] },
21
+ { name: "DealEscrowOpened", signature: "DealEscrowOpened(uint256,bytes32,address,address,bytes32,address,bool,uint256[],uint256[],uint256,int64)", topic: "0x0c672bb2679911b45f9d09563ab93be0089839d32e1ffe1b968abd4ec6f1ef39", params: [{"name":"launchId","type":"uint256","indexed":true},{"name":"escrow","type":"bytes32","indexed":true},{"name":"launcher","type":"address","indexed":false},{"name":"kol","type":"address","indexed":true},{"name":"ref32","type":"bytes32","indexed":false},{"name":"asset","type":"address","indexed":false},{"name":"isToken","type":"bool","indexed":false},{"name":"targets","type":"uint256[]","indexed":false},{"name":"amounts","type":"uint256[]","indexed":false},{"name":"total","type":"uint256","indexed":false},{"name":"expiry","type":"int64","indexed":false}] },
22
+ { name: "DealEscrowProofObjected", signature: "DealEscrowProofObjected(uint256,bytes32,bytes32,uint8)", topic: "0x948e3817b184616eb2f98e9b57c8dea6642c7d5dd3c4f7f341029539aa70f1a6", params: [{"name":"launchId","type":"uint256","indexed":true},{"name":"escrow","type":"bytes32","indexed":true},{"name":"ref32","type":"bytes32","indexed":false},{"name":"step","type":"uint8","indexed":false}] },
23
+ { name: "DealEscrowProofSubmitted", signature: "DealEscrowProofSubmitted(uint256,bytes32,bytes32,uint8,bytes32,uint8,int64)", topic: "0x4ca4faf41af89fa00ae342275585fd07933e268526a7369256d732f8562612af", params: [{"name":"launchId","type":"uint256","indexed":true},{"name":"escrow","type":"bytes32","indexed":true},{"name":"ref32","type":"bytes32","indexed":false},{"name":"step","type":"uint8","indexed":false},{"name":"proofHash","type":"bytes32","indexed":false},{"name":"state","type":"uint8","indexed":false},{"name":"windowEnds","type":"int64","indexed":false}] },
24
+ { name: "DealEscrowRefunded", signature: "DealEscrowRefunded(uint256,bytes32,bytes32,address,uint256)", topic: "0x2507a359f471d1cf9f0b4407d2de11a6244332ac321c567f294ee09a24316ce5", params: [{"name":"launchId","type":"uint256","indexed":true},{"name":"escrow","type":"bytes32","indexed":true},{"name":"ref32","type":"bytes32","indexed":false},{"name":"launcher","type":"address","indexed":false},{"name":"amount","type":"uint256","indexed":false}] },
25
+ { name: "DealEscrowReleased", signature: "DealEscrowReleased(uint256,bytes32,bytes32,uint8,address,uint256,uint256,uint256)", topic: "0xed62b860be7eab6b439bfa07851ca194da332e712494361b591be53419c2039a", params: [{"name":"launchId","type":"uint256","indexed":true},{"name":"escrow","type":"bytes32","indexed":true},{"name":"ref32","type":"bytes32","indexed":false},{"name":"step","type":"uint8","indexed":false},{"name":"kol","type":"address","indexed":true},{"name":"amount","type":"uint256","indexed":false},{"name":"fee","type":"uint256","indexed":false},{"name":"marketCap","type":"uint256","indexed":false}] },
26
+ { name: "DealEscrowSplit", signature: "DealEscrowSplit(uint256,bytes32,bytes32,uint8,uint8,address,uint256,address,uint256,address[3],uint256[3],uint256)", topic: "0x3bf40b11fd6abed3f56a46f6619742ab7bc75dd670df7214ba5374beaf93abd2", params: [{"name":"launchId","type":"uint256","indexed":true},{"name":"escrow","type":"bytes32","indexed":true},{"name":"ref32","type":"bytes32","indexed":false},{"name":"step","type":"uint8","indexed":false},{"name":"kind","type":"uint8","indexed":false},{"name":"kol","type":"address","indexed":true},{"name":"kolPart","type":"uint256","indexed":false},{"name":"agency","type":"address","indexed":false},{"name":"agencyPart","type":"uint256","indexed":false},{"name":"tiers","type":"address[3]","indexed":false},{"name":"refs","type":"uint256[3]","indexed":false},{"name":"feeRest","type":"uint256","indexed":false}] },
27
+ { name: "DealEscrowTermsV3", signature: "DealEscrowTermsV3(uint256,bytes32,bytes32,uint8[],uint8,address,uint16,uint256)", topic: "0xebaaff1cfbfea2e0fd600fedfe8438dd289eaef179ec4e1f7ed39d2bff0e60b3", params: [{"name":"launchId","type":"uint256","indexed":true},{"name":"escrow","type":"bytes32","indexed":true},{"name":"ref32","type":"bytes32","indexed":false},{"name":"kinds","type":"uint8[]","indexed":false},{"name":"proofMask","type":"uint8","indexed":false},{"name":"agency","type":"address","indexed":false},{"name":"agencyBps","type":"uint16","indexed":false},{"name":"volAtLock","type":"uint256","indexed":false}] },
28
+ { name: "DealFeeCapSet", signature: "DealFeeCapSet(uint16)", topic: "0x3c6562ebf94601f3c688d261128f737436617ebd802836bf1a3ee901c6f1e047", params: [{"name":"capBps","type":"uint16","indexed":false}] },
29
+ { name: "DealFeePaid", signature: "DealFeePaid(uint256,uint8,address,uint256,uint256)", topic: "0xd7b8dee3cedd973cf789868575a9a876fd222de482dff9b7285d1e538f2eee2c", params: [{"name":"launchId","type":"uint256","indexed":true},{"name":"place","type":"uint8","indexed":false},{"name":"member","type":"address","indexed":true},{"name":"owed","type":"uint256","indexed":false},{"name":"fee","type":"uint256","indexed":false}] },
18
30
  { name: "Graduated", signature: "Graduated(uint256,uint256,uint256,uint256,uint256)", topic: "0x0ba53bc3beab16da02bf51a54e938fd7c98b7838adc8b1368fc596f9cc85ec5b", params: [{"name":"launchId","type":"uint256","indexed":true},{"name":"windowPriceX64","type":"uint256","indexed":false},{"name":"priceX64","type":"uint256","indexed":false},{"name":"windowRaised","type":"uint256","indexed":false},{"name":"windowTokens","type":"uint256","indexed":false}] },
19
31
  { name: "HandleBound", signature: "HandleBound(bytes32,address,uint256)", topic: "0xc13ed795cbb902cc81881e237a8412bb475fecd45f3707a193b3445c71260fa0", params: [{"name":"handleId","type":"bytes32","indexed":true},{"name":"wallet","type":"address","indexed":true},{"name":"moved","type":"uint256","indexed":false}] },
20
32
  { name: "HandleOwedMoved", signature: "HandleOwedMoved(bytes32,address,uint256)", topic: "0x2555171b56998719320a49f4af4ebbc40111afecfab38f087d9e70f1fa576433", params: [{"name":"handleId","type":"bytes32","indexed":true},{"name":"wallet","type":"address","indexed":true},{"name":"moved","type":"uint256","indexed":false}] },
@@ -22,8 +34,24 @@ export const EVM_EVENT_SCHEMAS = [
22
34
  { name: "LaunchCreated", signature: "LaunchCreated(uint256,address,address,address,uint8,uint32,bytes32,uint256,uint256,uint256,uint256,uint256,string,string,string,bool,uint256,uint256)", topic: "0xe484fc74438ba25825d3967d814e27f10e8dab75644fcc23a8135715ecb7c75e", params: [{"name":"launchId","type":"uint256","indexed":true},{"name":"token","type":"address","indexed":true},{"name":"quote","type":"address","indexed":true},{"name":"creator","type":"address","indexed":false},{"name":"presetId","type":"uint8","indexed":false},{"name":"presetVersion","type":"uint32","indexed":false},{"name":"presetHash","type":"bytes32","indexed":false},{"name":"p0X64","type":"uint256","indexed":false},{"name":"raise","type":"uint256","indexed":false},{"name":"windowTokens","type":"uint256","indexed":false},{"name":"creatorBuyTokens","type":"uint256","indexed":false},{"name":"createFee","type":"uint256","indexed":false},{"name":"name","type":"string","indexed":false},{"name":"symbol","type":"string","indexed":false},{"name":"uri","type":"string","indexed":false},{"name":"listed","type":"bool","indexed":false},{"name":"quoteUsdCentsX64","type":"uint256","indexed":false},{"name":"nativeCreateFee","type":"uint256","indexed":false}] },
23
35
  { name: "MetadataBaseSet", signature: "MetadataBaseSet(string)", topic: "0x162c03376961fe0fff415c1f8a635846b0fe37cb2c7af987dccddd7f31a5ef09", params: [{"name":"base","type":"string","indexed":false}] },
24
36
  { name: "NativeCreateFeeSet", signature: "NativeCreateFeeSet(uint256)", topic: "0x558fa52ba30d80727db660f167b050dc438041f105af27378485a91ab78e77e8", params: [{"name":"fee","type":"uint256","indexed":false}] },
37
+ { name: "OfficeBuy", signature: "OfficeBuy(bytes32,address,uint256,uint256,uint256,uint256)", topic: "0xc0db11ed25e63ce1698e24963b77969ddbc18d5a51ea9734b793129d6eee953d", params: [{"name":"officeId","type":"bytes32","indexed":true},{"name":"buyer","type":"address","indexed":true},{"name":"launchId","type":"uint256","indexed":true},{"name":"gross","type":"uint256","indexed":false},{"name":"tokens","type":"uint256","indexed":false},{"name":"refund","type":"uint256","indexed":false}] },
38
+ { name: "OfficeControllerProposed", signature: "OfficeControllerProposed(bytes32,address)", topic: "0x7edae0bb00f539139d1a80d16af6de1720b3170b6f0040c371932dbd1e13193a", params: [{"name":"officeId","type":"bytes32","indexed":true},{"name":"member","type":"address","indexed":true}] },
39
+ { name: "OfficeControllerSet", signature: "OfficeControllerSet(bytes32,address)", topic: "0x9a30dd6e170500fe7ca7b299e93ee4e0aea61793dc0fbcc2f4bc96cb94e2cac4", params: [{"name":"officeId","type":"bytes32","indexed":true},{"name":"controller","type":"address","indexed":true}] },
40
+ { name: "OfficeDeposit", signature: "OfficeDeposit(bytes32,address,uint256,uint256,uint256,uint256)", topic: "0x5f1e41aabe99eb27031dcf095422359ef3e7707d638f689f8c74719695b5e1b3", params: [{"name":"officeId","type":"bytes32","indexed":true},{"name":"member","type":"address","indexed":true},{"name":"amount","type":"uint256","indexed":false},{"name":"units","type":"uint256","indexed":false},{"name":"valueBefore","type":"uint256","indexed":false},{"name":"unitsTotal","type":"uint256","indexed":false}] },
41
+ { name: "OfficeMemberAdded", signature: "OfficeMemberAdded(bytes32,address)", topic: "0x0ab7c6d0ad2a8d1cbe807fba8541fb8a176ae53ab5b62b6db1538f21d5a4d7c8", params: [{"name":"officeId","type":"bytes32","indexed":true},{"name":"member","type":"address","indexed":true}] },
42
+ { name: "OfficeMemberLeft", signature: "OfficeMemberLeft(bytes32,address,bool,uint256,uint256,uint256[],uint256[])", topic: "0xacbd16cd57cf761d53b19baca3977dbdfc3dc5e55fd2aca5140e3cfc87cc697f", params: [{"name":"officeId","type":"bytes32","indexed":true},{"name":"member","type":"address","indexed":true},{"name":"byController","type":"bool","indexed":false},{"name":"units","type":"uint256","indexed":false},{"name":"cashOut","type":"uint256","indexed":false},{"name":"launchIds","type":"uint256[]","indexed":false},{"name":"tokensOut","type":"uint256[]","indexed":false}] },
43
+ { name: "OfficeMergeCancelled", signature: "OfficeMergeCancelled(bytes32)", topic: "0x841db4fc9c70613efc190bc17f3caade74662d65497665a9122809a318e18d19", params: [{"name":"officeId","type":"bytes32","indexed":true}] },
44
+ { name: "OfficeMergeProposed", signature: "OfficeMergeProposed(bytes32,bytes32,address)", topic: "0x0bd1e636cbff26ab595f0d210a5d0da519368994f69555e4a0d64ce949267c66", params: [{"name":"officeId","type":"bytes32","indexed":true},{"name":"other","type":"bytes32","indexed":true},{"name":"newController","type":"address","indexed":false}] },
45
+ { name: "OfficeMergeStarted", signature: "OfficeMergeStarted(bytes32,bytes32,address,uint256,uint256,uint256,uint16)", topic: "0xb1686a9c82c48c875fcab6453a3c1e0fd1fe8ca88513983827ce5278f55e2bdc", params: [{"name":"officeId","type":"bytes32","indexed":true},{"name":"other","type":"bytes32","indexed":true},{"name":"newController","type":"address","indexed":false},{"name":"unitsFrom","type":"uint256","indexed":false},{"name":"valueFrom","type":"uint256","indexed":false},{"name":"valueTo","type":"uint256","indexed":false},{"name":"members","type":"uint16","indexed":false}] },
46
+ { name: "OfficeMergeStep", signature: "OfficeMergeStep(bytes32,bytes32,uint16,uint16,uint256)", topic: "0xcf1f92b824538d3adf682491f9c5ca4ce0c25cdc080068592037414c48c60b5d", params: [{"name":"officeId","type":"bytes32","indexed":true},{"name":"other","type":"bytes32","indexed":true},{"name":"moved","type":"uint16","indexed":false},{"name":"left","type":"uint16","indexed":false},{"name":"unitsTo","type":"uint256","indexed":false}] },
47
+ { name: "OfficeMerged", signature: "OfficeMerged(bytes32,bytes32,address,uint256,uint256,uint256,uint256)", topic: "0x7ce37c806096004ee63dd82ff2ce485f75829453c8dd6945ef2187b22b9a04f8", params: [{"name":"officeId","type":"bytes32","indexed":true},{"name":"other","type":"bytes32","indexed":true},{"name":"newController","type":"address","indexed":false},{"name":"unitsFrom","type":"uint256","indexed":false},{"name":"unitsTo","type":"uint256","indexed":false},{"name":"valueFrom","type":"uint256","indexed":false},{"name":"valueTo","type":"uint256","indexed":false}] },
48
+ { name: "OfficeOpened", signature: "OfficeOpened(bytes32,address,address)", topic: "0xb784849c6075902619f651472cb16198b9ff8d78d5b43725308ea5541816f2b1", params: [{"name":"officeId","type":"bytes32","indexed":true},{"name":"controller","type":"address","indexed":true},{"name":"quote","type":"address","indexed":false}] },
49
+ { name: "OfficePayoutOwed", signature: "OfficePayoutOwed(bytes32,address,uint256)", topic: "0x53b82a691cda898a3b665c243960b7dfd6abe0fdec5e73df2a2e32b16a8f7ee7", params: [{"name":"officeId","type":"bytes32","indexed":true},{"name":"member","type":"address","indexed":true},{"name":"amount","type":"uint256","indexed":false}] },
50
+ { name: "OfficeSell", signature: "OfficeSell(bytes32,address,address,uint256,uint256,uint256,uint256)", topic: "0xd5a1eff132a7d595e8dcd3a5d50f59d3ba0fc7bd8a1435e7f6fc61cd5f75b9ae", params: [{"name":"officeId","type":"bytes32","indexed":true},{"name":"seller","type":"address","indexed":true},{"name":"buyer","type":"address","indexed":false},{"name":"launchId","type":"uint256","indexed":true},{"name":"tokens","type":"uint256","indexed":false},{"name":"out","type":"uint256","indexed":false},{"name":"unfilled","type":"uint256","indexed":false}] },
51
+ { name: "OfficeShareSet", signature: "OfficeShareSet(bytes32,address,uint16,uint16)", topic: "0xbc74f0bfd39663bef30060cbd7c43762860f099cad14cb0de7567a16dd4290d0", params: [{"name":"officeId","type":"bytes32","indexed":true},{"name":"member","type":"address","indexed":true},{"name":"shareBps","type":"uint16","indexed":false},{"name":"shareSum","type":"uint16","indexed":false}] },
25
52
  { name: "PayoutClaimed", signature: "PayoutClaimed(address,address,address,address,uint256)", topic: "0xf3de3f154a0e3479f250b461cde343993c11ad9554ef1a83308578b47ce83179", params: [{"name":"wallet","type":"address","indexed":true},{"name":"sender","type":"address","indexed":true},{"name":"quote","type":"address","indexed":true},{"name":"to","type":"address","indexed":false},{"name":"amount","type":"uint256","indexed":false}] },
26
53
  { name: "PayoutOwed", signature: "PayoutOwed(address,address,uint256)", topic: "0x8891c9ea04d540f2768c4fafb2942f8cab15fefcafe4b16d9e08bd494557afb6", params: [{"name":"wallet","type":"address","indexed":true},{"name":"quote","type":"address","indexed":true},{"name":"amount","type":"uint256","indexed":false}] },
54
+ { name: "PlatformCredited", signature: "PlatformCredited(uint256,address,address,uint256,bytes32)", topic: "0xdf56d6b23f55dfd17fd30c9e3ccfbbcee67c372e424ad326ba22d0fe93cb966b", params: [{"name":"launchId","type":"uint256","indexed":true},{"name":"payer","type":"address","indexed":true},{"name":"quote","type":"address","indexed":false},{"name":"amount","type":"uint256","indexed":false},{"name":"memo","type":"bytes32","indexed":false}] },
27
55
  { name: "PlatformWithdrawn", signature: "PlatformWithdrawn(address,address,uint256,uint256)", topic: "0xe799fd82782dee267079bdb0fe63341588a8548dbf25cc6f444c246fe2841b3b", params: [{"name":"quote","type":"address","indexed":true},{"name":"to","type":"address","indexed":true},{"name":"amount","type":"uint256","indexed":false},{"name":"owedAfter","type":"uint256","indexed":false}] },
28
56
  { name: "PotsSwept", signature: "PotsSwept(uint256,uint256,uint8)", topic: "0x1fe8b8a0c0caae3b24126fdff467108e176b761bd278ee6a08781f671ac981e1", params: [{"name":"launchId","type":"uint256","indexed":true},{"name":"amount","type":"uint256","indexed":false},{"name":"reason","type":"uint8","indexed":false}] },
29
57
  { name: "PresetWritten", signature: "PresetWritten(uint8,uint32,bool,bool)", topic: "0xda0ac6377420578066f6c4b8925d1fdfde2a0647f6a27d958d173a143fdc8191", params: [{"name":"id","type":"uint8","indexed":true},{"name":"rowVersion","type":"uint32","indexed":false},{"name":"enabled","type":"bool","indexed":false},{"name":"deleted","type":"bool","indexed":false}] },
@@ -33,6 +61,9 @@ export const EVM_EVENT_SCHEMAS = [
33
61
  { name: "TeamBuyClaimed", signature: "TeamBuyClaimed(uint256,address,uint8,uint256)", topic: "0x8e4b341a1ff0bf0840bafe3e490f19cef7d3f2a4ac633cbe2b5125f976d8fe64", params: [{"name":"launchId","type":"uint256","indexed":true},{"name":"wallet","type":"address","indexed":true},{"name":"place","type":"uint8","indexed":false},{"name":"tokens","type":"uint256","indexed":false}] },
34
62
  { name: "TeamShareBought", signature: "TeamShareBought(uint256,address,uint8,uint256,uint256,uint256,uint256,uint256,uint64,bool)", topic: "0x35cc9e6d35730a276dadd8484ecded192a162b0e4b62d737a94a7419be6da4a3", params: [{"name":"launchId","type":"uint256","indexed":true},{"name":"member","type":"address","indexed":true},{"name":"place","type":"uint8","indexed":false},{"name":"spent","type":"uint256","indexed":false},{"name":"refund","type":"uint256","indexed":false},{"name":"tokens","type":"uint256","indexed":false},{"name":"shareLeft","type":"uint256","indexed":false},{"name":"boughtOwed","type":"uint256","indexed":false},{"name":"day","type":"uint64","indexed":false},{"name":"firstToday","type":"bool","indexed":false}] },
35
63
  { name: "TeamShareBoughtClaimed", signature: "TeamShareBoughtClaimed(uint256,address,uint256)", topic: "0x1fced7890c571b470a88af8803608246caaf3288d181950a076ffb68c295011e", params: [{"name":"launchId","type":"uint256","indexed":true},{"name":"wallet","type":"address","indexed":true},{"name":"tokens","type":"uint256","indexed":false}] },
64
+ { name: "TeamSlotAgency", signature: "TeamSlotAgency(uint256,uint8,bytes32,address,uint16)", topic: "0xc113832648afadb0d7ad1433997f199f6508217137dd636d95ea85c9e23ba119", params: [{"name":"launchId","type":"uint256","indexed":true},{"name":"index","type":"uint8","indexed":false},{"name":"key","type":"bytes32","indexed":false},{"name":"agency","type":"address","indexed":false},{"name":"agencyBps","type":"uint16","indexed":false}] },
65
+ { name: "TeamSlotAgencyPaid", signature: "TeamSlotAgencyPaid(uint256,uint8,address,address,uint256)", topic: "0xf40cde517e631cabb4bfd7127cb62395ad659219eb9f1e68705297cddedec5e5", params: [{"name":"launchId","type":"uint256","indexed":true},{"name":"place","type":"uint8","indexed":false},{"name":"member","type":"address","indexed":true},{"name":"agency","type":"address","indexed":true},{"name":"agencyPart","type":"uint256","indexed":false}] },
66
+ { name: "TeamSlotDealFee", signature: "TeamSlotDealFee(uint256,uint8,bytes32,uint16)", topic: "0xa3aaf2196cda8f5ae7ffc250903ed56342f7e5f6e6407816c8dde5131daab9d4", params: [{"name":"launchId","type":"uint256","indexed":true},{"name":"index","type":"uint8","indexed":false},{"name":"key","type":"bytes32","indexed":false},{"name":"dealFeeBps","type":"uint16","indexed":false}] },
36
67
  { name: "TeamSlotMember", signature: "TeamSlotMember(uint256,uint8,bytes32,uint8,uint8,uint256,uint256,uint256,uint32)", topic: "0xeda6aa7345f1f8a6875424d1ed2aec138f6d836357028965b2bcb2bf879c8899", params: [{"name":"launchId","type":"uint256","indexed":true},{"name":"index","type":"uint8","indexed":false},{"name":"key","type":"bytes32","indexed":false},{"name":"kind","type":"uint8","indexed":false},{"name":"state","type":"uint8","indexed":false},{"name":"paid","type":"uint256","indexed":false},{"name":"requested","type":"uint256","indexed":false},{"name":"bought","type":"uint256","indexed":false},{"name":"boughtPpm","type":"uint32","indexed":false}] },
37
68
  { name: "TeamSlotOpened", signature: "TeamSlotOpened(uint256,uint16,uint256)", topic: "0xc65e4622d99ced59b6beb7e1f5951e993b69db78a577f8be15e659ce62a15630", params: [{"name":"launchId","type":"uint256","indexed":true},{"name":"rateBps","type":"uint16","indexed":false},{"name":"price","type":"uint256","indexed":false}] },
38
69
  { name: "TradeV1", signature: "Trade(uint256,address,address,bool,uint256,uint256,uint256,uint256,uint256[7],uint256,uint256[4],uint256[5],uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256)", topic: "0x2e52b2de295e40bf6590d997636272519aa69bbf53460bd785780abf4427f377", params: [{"name":"launchId","type":"uint256","indexed":true},{"name":"trader","type":"address","indexed":true},{"name":"recipient","type":"address","indexed":true},{"name":"isBuy","type":"bool","indexed":false},{"name":"quoteGross","type":"uint256","indexed":false},{"name":"quoteNet","type":"uint256","indexed":false},{"name":"refund","type":"uint256","indexed":false},{"name":"tokens","type":"uint256","indexed":false},{"name":"fees","type":"uint256[7]","indexed":false},{"name":"traderRef","type":"uint256","indexed":false},{"name":"split","type":"uint256[4]","indexed":false},{"name":"credits","type":"uint256[5]","indexed":false},{"name":"priceBeforeX64","type":"uint256","indexed":false},{"name":"priceAfterX64","type":"uint256","indexed":false},{"name":"floorAfterX64","type":"uint256","indexed":false},{"name":"floor","type":"uint256","indexed":false},{"name":"cushion","type":"uint256","indexed":false},{"name":"reserveTokens","type":"uint256","indexed":false},{"name":"sOut","type":"uint256","indexed":false},{"name":"floorToken","type":"uint256","indexed":false},{"name":"msPlatform","type":"uint256","indexed":false},{"name":"msFloor","type":"uint256","indexed":false},{"name":"tailPay","type":"uint256","indexed":false},{"name":"tailToFloor","type":"uint256","indexed":false},{"name":"tailTokens","type":"uint256","indexed":false},{"name":"tailFromFloor","type":"uint256","indexed":false},{"name":"tailFromMoney","type":"uint256","indexed":false},{"name":"msHolder","type":"uint256","indexed":false},{"name":"polOut","type":"uint256","indexed":false},{"name":"polPay","type":"uint256","indexed":false},{"name":"polTokens","type":"uint256","indexed":false},{"name":"polGross","type":"uint256","indexed":false},{"name":"holderFee","type":"uint256","indexed":false},{"name":"liveBuyPriceX64","type":"uint256","indexed":false},{"name":"polMoney","type":"uint256","indexed":false}] },
@@ -44,7 +75,7 @@ export const EVM_EVENT_SCHEMAS = [
44
75
  { name: "Transfer", signature: "Transfer(address,address,uint256)", topic: "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef", params: [{"name":"from","type":"address","indexed":true},{"name":"to","type":"address","indexed":true},{"name":"value","type":"uint256","indexed":false}] },
45
76
  ];
46
77
 
47
- export const EVM_UNNAMED_EVENT_SIGNATURES = ["Initialized(uint64)","Upgraded(address)","EIP712DomainChanged()"];
78
+ export const EVM_UNNAMED_EVENT_SIGNATURES = ["BookRelayed(uint256,bool)","Initialized(uint64)","Upgraded(address)","EIP712DomainChanged()"];
48
79
 
49
80
  export const EVM_ERRORS = [
50
81
  { chain: "evm", name: "AddressEmptyCode", message: "AddressEmptyCode", code: null, selector: "0x9996b315", signature: "AddressEmptyCode(address)" },
@@ -57,6 +88,25 @@ export const EVM_ERRORS = [
57
88
  { chain: "evm", name: "ClaimsShort", message: "ClaimsShort", code: null, selector: "0x04827f40", signature: "ClaimsShort()" },
58
89
  { chain: "evm", name: "CreatesPaused", message: "CreatesPaused", code: null, selector: "0x3cef0425", signature: "CreatesPaused()" },
59
90
  { chain: "evm", name: "CreatorBuyTooLarge", message: "CreatorBuyTooLarge", code: null, selector: "0x452a0e78", signature: "CreatorBuyTooLarge()" },
91
+ { chain: "evm", name: "DealEscrowAgency", message: "DealEscrowAgency", code: null, selector: "0x13521f23", signature: "DealEscrowAgency()" },
92
+ { chain: "evm", name: "DealEscrowDone", message: "DealEscrowDone", code: null, selector: "0xc3fb2d14", signature: "DealEscrowDone()" },
93
+ { chain: "evm", name: "DealEscrowExpired", message: "DealEscrowExpired", code: null, selector: "0x42f15c74", signature: "DealEscrowExpired()" },
94
+ { chain: "evm", name: "DealEscrowExpiry", message: "DealEscrowExpiry", code: null, selector: "0x005db76c", signature: "DealEscrowExpiry()" },
95
+ { chain: "evm", name: "DealEscrowFunding", message: "DealEscrowFunding", code: null, selector: "0xf7dacf7e", signature: "DealEscrowFunding()" },
96
+ { chain: "evm", name: "DealEscrowNoObjectionLeft", message: "DealEscrowNoObjectionLeft", code: null, selector: "0x689c9926", signature: "DealEscrowNoObjectionLeft()" },
97
+ { chain: "evm", name: "DealEscrowNotArmed", message: "DealEscrowNotArmed", code: null, selector: "0x1d62d43a", signature: "DealEscrowNotArmed()" },
98
+ { chain: "evm", name: "DealEscrowNotExpired", message: "DealEscrowNotExpired", code: null, selector: "0x25ffbc50", signature: "DealEscrowNotExpired()" },
99
+ { chain: "evm", name: "DealEscrowNotParty", message: "DealEscrowNotParty", code: null, selector: "0x333e9b32", signature: "DealEscrowNotParty()" },
100
+ { chain: "evm", name: "DealEscrowNotProven", message: "DealEscrowNotProven", code: null, selector: "0xc2caafa8", signature: "DealEscrowNotProven()" },
101
+ { chain: "evm", name: "DealEscrowProofNotRequired", message: "DealEscrowProofNotRequired", code: null, selector: "0x4cbdac93", signature: "DealEscrowProofNotRequired()" },
102
+ { chain: "evm", name: "DealEscrowProofState", message: "DealEscrowProofState", code: null, selector: "0xdc489221", signature: "DealEscrowProofState()" },
103
+ { chain: "evm", name: "DealEscrowSteps", message: "DealEscrowSteps", code: null, selector: "0x8e701dc1", signature: "DealEscrowSteps()" },
104
+ { chain: "evm", name: "DealEscrowTarget", message: "DealEscrowTarget", code: null, selector: "0x16408629", signature: "DealEscrowTarget()" },
105
+ { chain: "evm", name: "DealEscrowTooSoon", message: "DealEscrowTooSoon", code: null, selector: "0xf902c431", signature: "DealEscrowTooSoon()" },
106
+ { chain: "evm", name: "DealEscrowVersion", message: "DealEscrowVersion", code: null, selector: "0x62dc84b0", signature: "DealEscrowVersion()" },
107
+ { chain: "evm", name: "DealEscrowWindowClosed", message: "DealEscrowWindowClosed", code: null, selector: "0xe991b5f7", signature: "DealEscrowWindowClosed()" },
108
+ { chain: "evm", name: "DealFeeFixed", message: "DealFeeFixed", code: null, selector: "0xdab29641", signature: "DealFeeFixed()" },
109
+ { chain: "evm", name: "DealFeeOverCap", message: "DealFeeOverCap", code: null, selector: "0xc984b100", signature: "DealFeeOverCap()" },
60
110
  { chain: "evm", name: "ECDSAInvalidSignature", message: "ECDSAInvalidSignature", code: null, selector: "0xf645eedf", signature: "ECDSAInvalidSignature()" },
61
111
  { chain: "evm", name: "ECDSAInvalidSignatureLength", message: "ECDSAInvalidSignatureLength", code: null, selector: "0xfce698f7", signature: "ECDSAInvalidSignatureLength(uint256)" },
62
112
  { chain: "evm", name: "ECDSAInvalidSignatureS", message: "ECDSAInvalidSignatureS", code: null, selector: "0xd78bce0c", signature: "ECDSAInvalidSignatureS(bytes32)" },
@@ -95,6 +145,29 @@ export const EVM_ERRORS = [
95
145
  { chain: "evm", name: "NotTeamMember", message: "NotTeamMember", code: null, selector: "0x2793ed7d", signature: "NotTeamMember()" },
96
146
  { chain: "evm", name: "NotTimelock", message: "NotTimelock", code: null, selector: "0xcad4da2a", signature: "NotTimelock()" },
97
147
  { chain: "evm", name: "NotToken", message: "NotToken", code: null, selector: "0x21f2b69c", signature: "NotToken()" },
148
+ { chain: "evm", name: "OfficeAlreadyMember", message: "OfficeAlreadyMember", code: null, selector: "0x7a07a186", signature: "OfficeAlreadyMember()" },
149
+ { chain: "evm", name: "OfficeControllerLeaves", message: "OfficeControllerLeaves", code: null, selector: "0xdbe66ffb", signature: "OfficeControllerLeaves()" },
150
+ { chain: "evm", name: "OfficeExists", message: "OfficeExists", code: null, selector: "0x4ccd7c68", signature: "OfficeExists()" },
151
+ { chain: "evm", name: "OfficeFull", message: "OfficeFull", code: null, selector: "0xfa8aeb59", signature: "OfficeFull()" },
152
+ { chain: "evm", name: "OfficeMergeLocked", message: "OfficeMergeLocked", code: null, selector: "0x5891257c", signature: "OfficeMergeLocked()" },
153
+ { chain: "evm", name: "OfficeMergeMismatch", message: "OfficeMergeMismatch", code: null, selector: "0x50918325", signature: "OfficeMergeMismatch()" },
154
+ { chain: "evm", name: "OfficeMergeSize", message: "OfficeMergeSize", code: null, selector: "0xaa1c2d40", signature: "OfficeMergeSize()" },
155
+ { chain: "evm", name: "OfficeNoCash", message: "OfficeNoCash", code: null, selector: "0x08f91d74", signature: "OfficeNoCash()" },
156
+ { chain: "evm", name: "OfficeNoMerge", message: "OfficeNoMerge", code: null, selector: "0xecf263e6", signature: "OfficeNoMerge()" },
157
+ { chain: "evm", name: "OfficeNotController", message: "OfficeNotController", code: null, selector: "0x3d2725cb", signature: "OfficeNotController()" },
158
+ { chain: "evm", name: "OfficeNotHeld", message: "OfficeNotHeld", code: null, selector: "0x1dbcc074", signature: "OfficeNotHeld()" },
159
+ { chain: "evm", name: "OfficeNotMember", message: "OfficeNotMember", code: null, selector: "0xec4dd9d5", signature: "OfficeNotMember()" },
160
+ { chain: "evm", name: "OfficeNotMergeable", message: "OfficeNotMergeable", code: null, selector: "0x9f99ca09", signature: "OfficeNotMergeable()" },
161
+ { chain: "evm", name: "OfficeNotSeller", message: "OfficeNotSeller", code: null, selector: "0x1595c705", signature: "OfficeNotSeller()" },
162
+ { chain: "evm", name: "OfficeOverflow", message: "OfficeOverflow", code: null, selector: "0x91a74487", signature: "OfficeOverflow()" },
163
+ { chain: "evm", name: "OfficeOverShare", message: "OfficeOverShare", code: null, selector: "0x9393a44f", signature: "OfficeOverShare()" },
164
+ { chain: "evm", name: "OfficePositions", message: "OfficePositions", code: null, selector: "0x1e5afe83", signature: "OfficePositions()" },
165
+ { chain: "evm", name: "OfficeShareSum", message: "OfficeShareSum", code: null, selector: "0x913eddb1", signature: "OfficeShareSum()" },
166
+ { chain: "evm", name: "OfficeSlippage", message: "OfficeSlippage", code: null, selector: "0xab832132", signature: "OfficeSlippage()" },
167
+ { chain: "evm", name: "OfficeWrongQuote", message: "OfficeWrongQuote", code: null, selector: "0x0f908bb6", signature: "OfficeWrongQuote()" },
168
+ { chain: "evm", name: "OfficeZeroAmount", message: "OfficeZeroAmount", code: null, selector: "0xc7ff9fa3", signature: "OfficeZeroAmount()" },
169
+ { chain: "evm", name: "OfficeZeroUnits", message: "OfficeZeroUnits", code: null, selector: "0xb31be895", signature: "OfficeZeroUnits()" },
170
+ { chain: "evm", name: "OfficeZeroValue", message: "OfficeZeroValue", code: null, selector: "0xe3fe0f3c", signature: "OfficeZeroValue()" },
98
171
  { chain: "evm", name: "OgAlreadySet", message: "OgAlreadySet", code: null, selector: "0x15a3af55", signature: "OgAlreadySet()" },
99
172
  { chain: "evm", name: "OgFull", message: "OgFull", code: null, selector: "0x94de33e9", signature: "OgFull()" },
100
173
  { chain: "evm", name: "Overflow", message: "Overflow", code: null, selector: "0x35278d12", signature: "Overflow()" },