@floorlaunchpad/sdk 0.6.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.
- package/CHANGELOG.md +279 -0
- package/README.md +12 -1
- package/dist/abi/evm-event-names.js +7 -0
- package/dist/abi/evm.gen.js +81 -2
- package/dist/abi/functions.gen.js +135 -1
- package/dist/abi/solana.gen.js +64 -0
- package/dist/client/solana/index.js +25 -6
- package/dist/config/generated.js +803 -26374
- package/dist/errors.js +21 -2
- package/dist/events/types.gen.js +1 -1
- package/dist/evm/chains.js +80 -0
- package/dist/evm/floor/abi.gen.js +115 -0
- package/dist/evm/floor/calls.js +5 -0
- package/dist/evm/squid.js +21 -5
- package/dist/evm/venues.js +302 -0
- package/dist/generated/interface.gen.js +93 -44
- package/dist/index.js +7 -0
- package/dist/indexer/bodies.js +288 -5
- package/dist/indexer/client.js +17 -1
- package/dist/indexer/contract.js +141 -15
- package/dist/indexer/paths.js +80 -7
- package/dist/indexer/read.js +25 -3
- package/dist/indexer/stream.js +2 -2
- package/dist/math/v2/book.js +24 -7
- package/dist/math/v2/create.js +1 -1
- package/dist/math/v2/escrow.js +205 -0
- package/dist/math/v2/fees.js +30 -4
- package/dist/math/v2/milestones.js +1 -1
- package/dist/math/v2/office.js +110 -0
- package/dist/math/v2/receipt.js +3 -3
- package/dist/math/v2/relay.js +263 -96
- package/dist/math/v2/rows.js +17 -0
- package/dist/math/v2/team.js +42 -1
- package/dist/math/v2/trade.js +3 -1
- package/dist/reprice.js +88 -0
- package/dist/route/quote.js +16 -0
- package/dist/scaledUi.js +113 -0
- package/dist/solana/floor/accounts.js +38 -5
- package/dist/solana/floor/events.js +62 -1
- package/dist/solana/floor/instructions.js +39 -1
- package/dist/solana/floor/program.js +3 -0
- package/dist/stockRefresh.js +99 -0
- package/dist/ton/consts.generated.js +2 -2
- package/dist/ton/gas.js +3 -3
- package/dist/v2/claims.js +28 -5
- package/dist/v2/devbuy.js +28 -3
- package/dist/v2/events.js +2 -0
- package/dist/v2/evm.js +183 -5
- package/dist/v2/layouts.js +102 -2
- package/dist/v2/office-events.js +127 -0
- package/dist/v2/office-evm.js +68 -0
- package/dist/v2/office-read.js +182 -0
- package/dist/v2/office-solana.js +134 -0
- package/dist/v2/office-trade.js +73 -0
- package/dist/v2/route-alt.js +1 -0
- package/dist/v2/route.js +1 -1
- package/dist/v2/solana.js +224 -5
- package/dist/v2/solanaSettle.js +2 -0
- package/dist/v2/tx/evm.js +66 -2
- package/dist/v2/tx/solana.js +3 -3
- package/dist/v2/types.js +4 -0
- package/docs/aggregator.md +19 -0
- package/docs/cursor-pages.md +9 -3
- package/docs/ton.md +1 -1
- package/examples/floor-line.html +1 -1
- package/package.json +26 -1
- package/src/abi/evm-event-names.ts +7 -0
- package/src/abi/evm.gen.ts +81 -2
- package/src/abi/functions.gen.ts +135 -1
- package/src/abi/solana.gen.ts +64 -0
- package/src/client/solana/index.ts +25 -6
- package/src/config/generated.ts +803 -26374
- package/src/errors.ts +21 -2
- package/src/events/types.gen.ts +458 -1
- package/src/evm/chains.ts +89 -0
- package/src/evm/floor/abi.gen.ts +115 -0
- package/src/evm/floor/calls.ts +5 -0
- package/src/evm/squid.ts +22 -6
- package/src/evm/venues.ts +340 -0
- package/src/generated/interface.gen.ts +93 -44
- package/src/index.ts +7 -0
- package/src/indexer/bodies.ts +308 -5
- package/src/indexer/client.ts +31 -4
- package/src/indexer/contract.ts +148 -17
- package/src/indexer/paths.ts +139 -7
- package/src/indexer/read.ts +27 -5
- package/src/indexer/stream.ts +4 -4
- package/src/math/v2/book.ts +23 -7
- package/src/math/v2/create.ts +1 -1
- package/src/math/v2/escrow.ts +213 -0
- package/src/math/v2/fees.ts +30 -4
- package/src/math/v2/milestones.ts +1 -1
- package/src/math/v2/office.ts +114 -0
- package/src/math/v2/receipt.ts +7 -3
- package/src/math/v2/relay.ts +269 -96
- package/src/math/v2/rows.ts +17 -0
- package/src/math/v2/team.ts +42 -1
- package/src/math/v2/trade.ts +3 -1
- package/src/reprice.ts +121 -0
- package/src/route/quote.ts +16 -0
- package/src/scaledUi.ts +123 -0
- package/src/solana/floor/accounts.ts +38 -5
- package/src/solana/floor/events.ts +63 -2
- package/src/solana/floor/instructions.ts +39 -1
- package/src/solana/floor/program.ts +3 -0
- package/src/stockRefresh.ts +131 -0
- package/src/ton/consts.generated.ts +2 -2
- package/src/ton/gas.ts +3 -3
- package/src/v2/claims.ts +34 -5
- package/src/v2/devbuy.ts +38 -3
- package/src/v2/events.ts +3 -1
- package/src/v2/evm.ts +209 -5
- package/src/v2/layouts.ts +102 -2
- package/src/v2/office-events.ts +133 -0
- package/src/v2/office-evm.ts +76 -0
- package/src/v2/office-read.ts +264 -0
- package/src/v2/office-solana.ts +159 -0
- package/src/v2/office-trade.ts +96 -0
- package/src/v2/route-alt.ts +1 -0
- package/src/v2/route.ts +1 -1
- package/src/v2/solana.ts +235 -5
- package/src/v2/solanaSettle.ts +2 -0
- package/src/v2/tx/evm.ts +66 -2
- package/src/v2/tx/solana.ts +5 -3
- package/src/v2/types.ts +76 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,285 @@
|
|
|
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
|
+
|
|
148
|
+
## 0.7.0
|
|
149
|
+
|
|
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
|
|
151
|
+
trade's referral parts at the new rates and builds the OG Users' instructions and calls. ⚠ Use it against a program
|
|
152
|
+
that has the referral upgrade; 0.6.0 splits at the old rates (see "Which version to use" below). Several indexer reads
|
|
153
|
+
need an indexer on this build: deploy the indexer first. This version also carries the preset row and the indexer routes
|
|
154
|
+
that were listed under 0.6.0 by mistake: they were added after 0.6.0 was built and are not in the 0.6.0 package.
|
|
155
|
+
|
|
156
|
+
What changed in the program, for an integrator:
|
|
157
|
+
|
|
158
|
+
- One ratio, 80 / 14 / 6, across the three referrer tiers. The trader's referrers take 30 % of the Platform fee: 24 %,
|
|
159
|
+
4.2 % and 1.8 % (was 30 %, 20 % and 10 %, 60 % in all). The creator's referrers take 10 % of the whole Team Share
|
|
160
|
+
(the Team Fee and the Team Marketcap Milestone): 8 %, 1.4 % and 0.6 % (was 9 %, 0.9 % and 0.1 %). A tier with no
|
|
161
|
+
referrer leaves its part where it went before. Prices, quotes and what a trader pays or gets are unchanged; only who
|
|
162
|
+
is paid inside those two parts changes.
|
|
163
|
+
- OG Users. The referral authority can mark a referrer an OG User once; from that moment, for 183 days
|
|
164
|
+
(`OG_WINDOW_SECS`, 15,811,200 s), the referrer's tiers are paid the OG rates, the same ratio: the trader side 50 % of
|
|
165
|
+
the Platform fee (40 %, 7 %, 3 %), and the creator side 30 % of the Team Share (24 %, 4.2 %, 1.8 %) on a launch
|
|
166
|
+
created inside the window only. Each tier follows its own referrer. At most `OG_MAX` (100) windows are live on a chain;
|
|
167
|
+
governance may end one early, which frees its place. On Solana a trade reads the window from copies in the records it
|
|
168
|
+
already reads (`TraderRef`, `TraderLink`, `LaunchV2`); `sync_og` (anyone may send it) writes them, and a record not yet
|
|
169
|
+
synced pays the standard rate. On EVM a trade reads the window itself.
|
|
170
|
+
- A trade that paid a referrer is followed, in the same transaction, by `RefSlices` (both chains): each tier's part,
|
|
171
|
+
`traderParts` of the Platform fee and `creatorParts` of the Team Share, and `og`, one bit a tier paid at the OG rate
|
|
172
|
+
(bits 0 to 2 the trader's tiers, 3 to 5 the creator's). It is sent only when a part is not zero. The governance events
|
|
173
|
+
`OgUserSet` and `OgUserRevoked` (both chains) and `OgSynced` (Solana) report the windows.
|
|
174
|
+
- Bytes that were zero now hold the windows: Solana `LaunchV2`'s last 15 bytes (`pad_end`) are `pad_og` (3 bytes) and
|
|
175
|
+
`creator_ref_og_until` (three u32, unix seconds, 0 = standard); `TraderRef.reserved` is `og_until` (three u64);
|
|
176
|
+
`TraderLink.reserved` is `og_until` (24 bytes: three little-endian u64, unaligned). Every size and every other offset
|
|
177
|
+
is unchanged, and no instruction's account list changes. Two new Solana accounts: `["og_user", referrer]` (88 bytes +
|
|
178
|
+
8) and `["og_count"]` (32 bytes + 8). EVM storage only appends.
|
|
179
|
+
- New errors: Solana `OgFull` (6071); EVM `OgFull()` and `OgAlreadySet()`.
|
|
180
|
+
|
|
181
|
+
Added:
|
|
182
|
+
|
|
183
|
+
- Referral math (`mathV2Fees`, `mathV2Team`): `TRADER_REF_OG_BPS` (4,000 / 700 / 300), `CREATOR_REF_OG_BPS` (2,400 /
|
|
184
|
+
420 / 180), `OG_WINDOW_SECS`, `OG_MAX`, `ogUntil` (a window's end), `ogLive` (a trader tier's status at `now`),
|
|
185
|
+
`ogLaunch` (a creator tier's status for a launch's create time), `tierBps`, `platformLegsOg` / `creatorLegsOg` (and
|
|
186
|
+
`platformLegsOgV2` / `creatorLegsOgV2`): each tier at its own referrer's rate. `feePartsV2` takes `traderOg` and
|
|
187
|
+
`creatorOg` (absent: every tier standard).
|
|
188
|
+
- Solana: `setOgUserInstruction` (signed by the referral authority; anyone pays; a second set for the same wallet fails),
|
|
189
|
+
`revokeOgUserInstruction` (governance), `syncOgInstruction` (any mix of `TraderRef`, `TraderLink` and `LaunchV2`
|
|
190
|
+
records, each writable), `ogUserPda`, `ogCountPda`, the `OG_USER` and `OG_COUNT` layouts with `decodeOgUser` /
|
|
191
|
+
`decodeOgCount`, and `traderLinkOgUntil` (reads `TraderLink.ogUntil`'s three u64).
|
|
192
|
+
- EVM (`v2Tx.evm`): `setOgUserCall({ floorAmm, referrer, deadline, authSig })` with `ogUserAuthDigest` (the referral
|
|
193
|
+
authority's EIP-191 attestation over `"floor.amm.ogUser.auth.v1"`, the chain id, FloorAmm, the referrer and the
|
|
194
|
+
deadline; anyone sends the call), `revokeOgUserCall`, `EVM_V2_TX.setOgUser` / `revokeOgUser`, and the views
|
|
195
|
+
`EVM_V2_TX_VIEWS.ogUserOf` (`from`, `until`, `revoked`) and `ogCount` (`count`, `total`).
|
|
196
|
+
- Events in every decoder: `RefSlices` (Solana `EVENTS_V2`, `RefSlicesEvent`; EVM `decodeLogV2`), `OgUserSet`,
|
|
197
|
+
`OgUserRevoked` (both chains) and `OgSynced` (Solana); the generated schemas, `SolanaEventMap` / `EvmEventMap` and
|
|
198
|
+
`SHARED_EVENT_NAMES` list them. The EVM function print (`FLOOR_AMM_V2_FUNCTIONS`, `EVM_FUNCTION_SELECTORS`) gains the
|
|
199
|
+
governance module `floorAmmGovV2`, and `V2_EVENTS_ELSEWHERE` names its events.
|
|
200
|
+
- HolderMoved (EVM; every EVM chain runs it): the EVM upgrade clones new launch tokens from a second implementation,
|
|
201
|
+
`FloorTokenIndexedV2`, which reports every move but the mint as FloorAmm's `HolderMoved` event (`launchId`, `from`,
|
|
202
|
+
`to` (0 for a burn), `value`, `fromBalance`, `toBalance`). Launches created before it keep the first implementation for
|
|
203
|
+
life. `evmChains.LAUNCH_TOKEN_IMPLS` (`live`, `holderMoved`), `HOLDER_MOVED_FIRST_LAUNCH_ID` (per chain; null = not
|
|
204
|
+
upgraded there, so every launch is `live`), `tokenImplForLaunch({ chain, id, firstId? })`, `tokenImplOfCode`,
|
|
205
|
+
`isLaunchTokenImpl`, `launchTokenCodeKind`, and the `HolderMoved` decoder. Every EVM chain upgraded before its first
|
|
206
|
+
launch, so every row of the table is 1: every EVM launch clones the HolderMoved implementation.
|
|
207
|
+
- Preset id 7, `wagmi-70` (`mathV2Rows.wagmi70()`, `mathV2Rows.WAGMI70_ID`): WAGMI with the floor at 70 % of the price
|
|
208
|
+
(id 1 is 75 %), a 1.11 ladder and the Stack to $417.66M, 40 ranges. A new governance row: id 1 is unchanged and
|
|
209
|
+
launches made on it keep their row. A chain offers id 7 once governance adds it; the preset menu reads it like any
|
|
210
|
+
other row.
|
|
211
|
+
- Two indexer routes, the running totals thinned to at most 720 points beside one exact totals row: `raiseSeries`
|
|
212
|
+
(`launches/<id>/raise-series?step&from&to`, `step` one of `RAISE_STEPS`) and `floorSteps`
|
|
213
|
+
(`launches/<id>/floor-steps?from&to&points`, `points` 1 to `RT_POINTS_MAX`): `INDEXER_CONTRACT`, `INDEXER_ROUTES`,
|
|
214
|
+
`indexerPath`, `routePath`, the strict decoders `RAISE_SERIES` / `FLOOR_STEPS` and `readRaiseSeries` /
|
|
215
|
+
`readFloorSteps`. A span over 720 points is refused (`spanRefusal`, whose range span may now be counted in seconds).
|
|
216
|
+
- Two more indexer routes: `positionTotals` (`wallets/<w>/position-totals?launch&limit&cursor`: per launch the exact
|
|
217
|
+
sums and the average-cost fold state as round-trip double strings (`roundTrip`), one row with `launch`, else a page;
|
|
218
|
+
in `DRAIN_NAMES`) and `launchTraded` (`launches/<id>/traded?wallets`, at most `TRADED_WALLETS_MAX` = 100 wallets): the
|
|
219
|
+
strict decoders `POSITION_TOTALS` / `LAUNCH_TRADED` and `readPositionTotals` / `readLaunchTraded`. `burns` takes
|
|
220
|
+
`wallet` (only that wallet's burns; EVM case-blind).
|
|
221
|
+
- `referrals/<w>/people` (`PEOPLE`, `PEOPLE_ROLE`): each role gains `via`, the wallet that brought the person to the
|
|
222
|
+
referrer on that link (`null` at tier 1; every wallet a `via` names is listed in the same body, with `earned` empty
|
|
223
|
+
when it never earned the referrer anything). Each person gains `unclaimed`, per quote: of the referrer's claimable
|
|
224
|
+
referral balance, the part this person's trades earned and the referrer has not claimed yet (EVM; on Solana the parts
|
|
225
|
+
held per launch and per trader escrow). The body gains `pooled`, per quote: the claimable part that names nobody
|
|
226
|
+
(Solana's pooled referral balance; `[]` on EVM), the same on every page of a paged read; `accountsAt` (Solana: the slot
|
|
227
|
+
the accounts behind `unclaimed` and `pooled` count to); and `og`, the wallet's OG User window (`from`, `until`,
|
|
228
|
+
`revoked`; null: never set).
|
|
229
|
+
- `people` takes `person` (`PeopleQuery`): only those referred wallets' rows, 1 to `PEOPLE_PERSON_MAX` (8) distinct
|
|
230
|
+
wallets, never with `limit` or `cursor`, no `next`; a wallet the referrer's book does not hold is absent. A drain with
|
|
231
|
+
`person` reads once.
|
|
232
|
+
- The stream's trade frame (`STREAM_TRADE`, `StreamTrade`) carries `refs` (`TRADE_REFS`: `tp` the person the trader's
|
|
233
|
+
tiers paid and `t` their referrers in tier order, `cp` the creator and `c` the creator's referrers) when its
|
|
234
|
+
transaction credited a referrer, and only to a stream that asks `refs` (`StreamQuery.refs`). A REST trade never
|
|
235
|
+
carries it. `StreamQuery` also takes `seat: "relay"` and `compress`.
|
|
236
|
+
- The launch rows (`launches`, `launches/<id>`, `launch-lists`, `search`) gain `volume1h` and `volumePrev1h` (the hour
|
|
237
|
+
to the indexed head and the hour before it, quote base units) with `volume1hUsd` / `volumePrev1hUsd`, and `athPrice`
|
|
238
|
+
(the all-time high in `priceX64`'s units, never below the price) with `athPriceUsd`; each null with no head or no
|
|
239
|
+
price.
|
|
240
|
+
|
|
241
|
+
Changed (breaking for code that relies on these):
|
|
242
|
+
|
|
243
|
+
- The referral rates: `TRADER_REF_BPS` is 2,400 / 420 / 180 (was 3,000 / 2,000 / 1,000) and `CREATOR_REF_BPS` 800 / 140 /
|
|
244
|
+
60 (was 900 / 90 / 10), so `platformLegs` / `platformLegsV2`, `creatorLegs` / `creatorLegsV2` and `feePartsV2` return
|
|
245
|
+
the new parts, and `teamSplit` splits the Team Marketcap Milestone's tenth 80 / 14 / 6 (was 90 / 9 / 1). `teamSplit`
|
|
246
|
+
has no OG case: for an OG tier use `creatorLegsOg`.
|
|
247
|
+
- The launch rows: `holdersChange1h` and `holdersChange24h` (holders at the indexed head minus holders an hour / a day
|
|
248
|
+
before, SIGNED) replace `newHolders1h` and `newHolders24h`, and the sort key `newHolders24h` is now `holdersChange24h`
|
|
249
|
+
(`LAUNCH_SORTS`, `LaunchSort`). The new figures, the hour volumes and `athPrice` are required in the decoders, so this
|
|
250
|
+
version refuses a launch body from an older indexer.
|
|
251
|
+
- `PEOPLE` requires `via`, `unclaimed` and `pooled`, and `DEV_BUYS` requires `totals` (every dev buy of the launch:
|
|
252
|
+
count, Σ tokens, Σ quote) and `asOf`: both refuse a body from an older indexer. An indexer that predates
|
|
253
|
+
`burns?wallet=` ignores the key and answers every wallet's burns: filter `wallet` again on the client, or read it only
|
|
254
|
+
from an indexer on this build.
|
|
255
|
+
- Solana layouts (`v2Layouts.LAUNCH_V2`, the `LaunchV2` type; `TRADER_REF`, `TRADER_LINK`): `LaunchV2` loses `padEnd`
|
|
256
|
+
and gains `padOg` and `creatorRefOgUntil`; `TraderRef` and `TraderLink` lose `reserved` and gain `ogUntil`. On an
|
|
257
|
+
account written before the upgrade they read zero (no window).
|
|
258
|
+
- `ROUTE_NAMES` gains `raiseSeries`, `floorSteps`, `launchTraded` and `positionTotals`, and `DRAIN_NAMES` gains
|
|
259
|
+
`positionTotals`: a map keyed by every route name needs them. `queryRefusal` refuses a list key with fewer items than
|
|
260
|
+
its `min` (a list of only commas: `quotes` on `launch-lists`, `ids` on `candles/many`, `wallets` on `wallets/firsts`
|
|
261
|
+
and `traded`, `person` on `people`).
|
|
262
|
+
- `SQUID_GAS.transfer` is 100,000 (was 65,000): a launch token sent by the Squid multicall, measured at 90,973 on the
|
|
263
|
+
HolderMoved token and 76,976 on the token live today.
|
|
264
|
+
|
|
265
|
+
TON: still switched off, as in 0.6.0 (no TON program is deployed; `ton.tonChainOf()` throws on the placeholder). The
|
|
266
|
+
mirrored `LAUNCH_STATE_BITS` / `LAUNCH_STATE_CELLS` follow the TON contract: 844,700 / 1,305 (was 843,700 / 1,303).
|
|
267
|
+
OG Users are not built for TON yet.
|
|
268
|
+
|
|
269
|
+
Which version to use:
|
|
270
|
+
|
|
271
|
+
- The referral upgrade runs on Solana and on every EVM chain (Ethereum, Base, BNB Chain, Arbitrum, Arc, Robinhood Chain,
|
|
272
|
+
HyperEVM, Elysium) as this version ships, and HolderMoved runs on every EVM chain. TON is not deployed.
|
|
273
|
+
- Against a program with the referral upgrade, use 0.7.0. Its referral parts are what the chain pays.
|
|
274
|
+
- 0.7.0 against a program NOT yet upgraded: quotes, trades and every decoder still match (the reused bytes are zero, so
|
|
275
|
+
no tier reads as OG), but the referral parts it computes are the new rates and the chain pays the old ones; the OG
|
|
276
|
+
instructions, calls and views fail there.
|
|
277
|
+
- 0.6.0 against an upgraded program: quotes and trades still match, and its decoders return null for `RefSlices` and the
|
|
278
|
+
OG events, but its referral parts are the old rates and do not match what the chain pays. Move to 0.7.0.
|
|
279
|
+
- The indexer: 0.7.0's launch-row, `people` and `DEV_BUYS` decoders refuse an older indexer's bodies, and an older
|
|
280
|
+
indexer refuses `sort=holdersChange24h`; an indexer on this build refuses `sort=newHolders24h`. Deploy the indexer
|
|
281
|
+
first, then move readers to 0.7.0. 0.6.0's decoders read the new indexer's bodies (they ignore keys they do not know,
|
|
282
|
+
and `newHolders1h` / `newHolders24h` were optional), but a 0.6.0 caller that sorts by `newHolders24h` is refused.
|
|
283
|
+
|
|
5
284
|
## 0.6.0
|
|
6
285
|
|
|
7
286
|
The Cushion's bid is now two pots, C and K, each with its own money and its own tokens. This version quotes a launch on 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).
|
|
@@ -4,9 +4,16 @@ export const V2_EVENT_FIELD_NAMES = {
|
|
|
4
4
|
Trade: ["launchId", "trader", "recipient", "isBuy", "quoteGross", "quoteNet", "refund", "tokens", "fees", "traderRef", "fromResale", "fromFirst", "unfilled", "sqrtBefore", "sqrtAfter", "sqrtF", "floor", "cushion", "sCirc", "steps", "budgetHit", "slot", "ts", "kind", "creatorRef", "bidMoney", "msPaid"],
|
|
5
5
|
HolderIndexRolled: ["launchId", "index", "wMatured", "wPending", "carry"],
|
|
6
6
|
DeadSynced: ["launchId", "added", "deadTokens", "sCirc"],
|
|
7
|
+
|
|
8
|
+
HolderMoved: ["launchId", "from", "to", "value", "fromBalance", "toBalance"],
|
|
7
9
|
BackingCredited: ["launchId", "donor", "amount", "fAfter", "slot"],
|
|
8
10
|
|
|
9
11
|
TokensBurnedV2: ["launchId", "wallet", "role", "place", "fromTeamBuy", "fromWallet", "balanceBefore", "owedAfter", "split", "supply", "sOut", "floorAfterX64", "fromShareBought"],
|
|
10
12
|
|
|
13
|
+
RefSlices: ["launchId", "trader", "traderParts", "creatorParts", "og"],
|
|
14
|
+
|
|
15
|
+
OgUserSet: ["referrer", "from", "until", "count"],
|
|
16
|
+
OgUserRevoked: ["referrer", "until", "count"],
|
|
17
|
+
|
|
11
18
|
OptedIn: ["a"],
|
|
12
19
|
} ;
|
package/dist/abi/evm.gen.js
CHANGED
|
@@ -2,15 +2,31 @@
|
|
|
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,
|
|
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
|
+
{ 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}] },
|
|
7
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}] },
|
|
8
9
|
{ name: "TokensBurnedV2", signature: "TokensBurnedV2(uint256,address,uint8,uint8,uint256,uint256,uint256,uint256,uint256[10],uint256,uint256,uint256,uint256)", topic: "0xf6e435381411d86653aa1fb249000f3ead53faa462387a4492da7021bb1ed930", params: [{"name":"launchId","type":"uint256","indexed":true},{"name":"wallet","type":"address","indexed":true},{"name":"role","type":"uint8","indexed":false},{"name":"place","type":"uint8","indexed":false},{"name":"fromTeamBuy","type":"uint256","indexed":false},{"name":"fromWallet","type":"uint256","indexed":false},{"name":"balanceBefore","type":"uint256","indexed":false},{"name":"owedAfter","type":"uint256","indexed":false},{"name":"split","type":"uint256[10]","indexed":false},{"name":"supply","type":"uint256","indexed":false},{"name":"sOut","type":"uint256","indexed":false},{"name":"floorAfterX64","type":"uint256","indexed":false},{"name":"fromShareBought","type":"uint256","indexed":false}] },
|
|
10
|
+
{ name: "RefSlices", signature: "RefSlices(uint256,address,uint256[3],uint256[3],uint8)", topic: "0x70230bb504c4cfaa69721add1e2556ac9a5062317ccccff591bea6f9519002f2", params: [{"name":"launchId","type":"uint256","indexed":true},{"name":"trader","type":"address","indexed":true},{"name":"traderParts","type":"uint256[3]","indexed":false},{"name":"creatorParts","type":"uint256[3]","indexed":false},{"name":"og","type":"uint8","indexed":false}] },
|
|
11
|
+
{ name: "OgUserSet", signature: "OgUserSet(address,uint64,uint64,uint16)", topic: "0xe77b61264f15c177ea65dbd08e49ca5f4082c241812720be4734124a431e72ee", params: [{"name":"referrer","type":"address","indexed":true},{"name":"from","type":"uint64","indexed":false},{"name":"until","type":"uint64","indexed":false},{"name":"count","type":"uint16","indexed":false}] },
|
|
12
|
+
{ name: "OgUserRevoked", signature: "OgUserRevoked(address,uint64,uint16)", topic: "0xa4f04a24e1d2ca998acdb3c7db54bd6796fb2a591a81992e13d2585fecd6f7e7", params: [{"name":"referrer","type":"address","indexed":true},{"name":"until","type":"uint64","indexed":false},{"name":"count","type":"uint16","indexed":false}] },
|
|
9
13
|
{ name: "OptedIn", signature: "OptedIn(address)", topic: "0x25f9c685db8e2630204f5e7c890a95f58852ccac883a9d96f44a72b777b06c59", params: [{"name":"a","type":"address","indexed":true}] },
|
|
10
14
|
{ name: "ClaimSkipped", signature: "ClaimSkipped(address,address,uint256)", topic: "0x4db58311c6a38618cc6dd27586cfb08657be781d572fb89d63886e3a04b654fa", params: [{"name":"wallet","type":"address","indexed":true},{"name":"quote","type":"address","indexed":true},{"name":"amount","type":"uint256","indexed":false}] },
|
|
11
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}] },
|
|
12
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}] },
|
|
13
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}] },
|
|
14
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}] },
|
|
15
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}] },
|
|
16
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}] },
|
|
@@ -18,8 +34,24 @@ export const EVM_EVENT_SCHEMAS = [
|
|
|
18
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}] },
|
|
19
35
|
{ name: "MetadataBaseSet", signature: "MetadataBaseSet(string)", topic: "0x162c03376961fe0fff415c1f8a635846b0fe37cb2c7af987dccddd7f31a5ef09", params: [{"name":"base","type":"string","indexed":false}] },
|
|
20
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}] },
|
|
21
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}] },
|
|
22
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}] },
|
|
23
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}] },
|
|
24
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}] },
|
|
25
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}] },
|
|
@@ -29,6 +61,9 @@ export const EVM_EVENT_SCHEMAS = [
|
|
|
29
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}] },
|
|
30
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}] },
|
|
31
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}] },
|
|
32
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}] },
|
|
33
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}] },
|
|
34
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}] },
|
|
@@ -40,7 +75,7 @@ export const EVM_EVENT_SCHEMAS = [
|
|
|
40
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}] },
|
|
41
76
|
];
|
|
42
77
|
|
|
43
|
-
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()"];
|
|
44
79
|
|
|
45
80
|
export const EVM_ERRORS = [
|
|
46
81
|
{ chain: "evm", name: "AddressEmptyCode", message: "AddressEmptyCode", code: null, selector: "0x9996b315", signature: "AddressEmptyCode(address)" },
|
|
@@ -53,6 +88,25 @@ export const EVM_ERRORS = [
|
|
|
53
88
|
{ chain: "evm", name: "ClaimsShort", message: "ClaimsShort", code: null, selector: "0x04827f40", signature: "ClaimsShort()" },
|
|
54
89
|
{ chain: "evm", name: "CreatesPaused", message: "CreatesPaused", code: null, selector: "0x3cef0425", signature: "CreatesPaused()" },
|
|
55
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()" },
|
|
56
110
|
{ chain: "evm", name: "ECDSAInvalidSignature", message: "ECDSAInvalidSignature", code: null, selector: "0xf645eedf", signature: "ECDSAInvalidSignature()" },
|
|
57
111
|
{ chain: "evm", name: "ECDSAInvalidSignatureLength", message: "ECDSAInvalidSignatureLength", code: null, selector: "0xfce698f7", signature: "ECDSAInvalidSignatureLength(uint256)" },
|
|
58
112
|
{ chain: "evm", name: "ECDSAInvalidSignatureS", message: "ECDSAInvalidSignatureS", code: null, selector: "0xd78bce0c", signature: "ECDSAInvalidSignatureS(bytes32)" },
|
|
@@ -91,6 +145,31 @@ export const EVM_ERRORS = [
|
|
|
91
145
|
{ chain: "evm", name: "NotTeamMember", message: "NotTeamMember", code: null, selector: "0x2793ed7d", signature: "NotTeamMember()" },
|
|
92
146
|
{ chain: "evm", name: "NotTimelock", message: "NotTimelock", code: null, selector: "0xcad4da2a", signature: "NotTimelock()" },
|
|
93
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()" },
|
|
171
|
+
{ chain: "evm", name: "OgAlreadySet", message: "OgAlreadySet", code: null, selector: "0x15a3af55", signature: "OgAlreadySet()" },
|
|
172
|
+
{ chain: "evm", name: "OgFull", message: "OgFull", code: null, selector: "0x94de33e9", signature: "OgFull()" },
|
|
94
173
|
{ chain: "evm", name: "Overflow", message: "Overflow", code: null, selector: "0x35278d12", signature: "Overflow()" },
|
|
95
174
|
{ chain: "evm", name: "OverOwed", message: "OverOwed", code: null, selector: "0xbf537318", signature: "OverOwed()" },
|
|
96
175
|
{ chain: "evm", name: "PresetDeleted", message: "PresetDeleted", code: null, selector: "0xf94f84f1", signature: "PresetDeleted()" },
|