@floorlaunchpad/sdk 0.4.1 → 0.7.0

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 (125) hide show
  1. package/CHANGELOG.md +219 -18
  2. package/README.md +0 -2
  3. package/dist/abi/evm-event-names.js +7 -0
  4. package/dist/abi/evm.gen.js +6 -0
  5. package/dist/abi/functions.gen.js +49 -1
  6. package/dist/abi/solana.gen.js +5 -0
  7. package/dist/config/generated.js +77 -0
  8. package/dist/errors.js +2 -2
  9. package/dist/events/types.gen.js +1 -1
  10. package/dist/evm/chains.js +32 -24
  11. package/dist/evm/floor/calls.js +5 -0
  12. package/dist/evm/router.js +1 -25
  13. package/dist/evm/squid.js +3 -3
  14. package/dist/generated/interface.gen.js +48 -43
  15. package/dist/index.js +1 -0
  16. package/dist/indexer/bodies.js +137 -2
  17. package/dist/indexer/client.js +10 -1
  18. package/dist/indexer/contract.js +65 -6
  19. package/dist/indexer/paths.js +34 -7
  20. package/dist/indexer/read.js +12 -3
  21. package/dist/indexer/stream.js +2 -2
  22. package/dist/math/v2/book.js +40 -7
  23. package/dist/math/v2/create.js +1 -1
  24. package/dist/math/v2/fees.js +30 -4
  25. package/dist/math/v2/milestones.js +1 -1
  26. package/dist/math/v2/receipt.js +3 -3
  27. package/dist/math/v2/relay.js +201 -1
  28. package/dist/math/v2/rows.js +17 -0
  29. package/dist/math/v2/split.js +60 -15
  30. package/dist/math/v2/team.js +14 -1
  31. package/dist/math/v2/trade.js +16 -8
  32. package/dist/solana/floor/accounts.js +30 -3
  33. package/dist/solana/floor/events.js +6 -0
  34. package/dist/solana/floor/instructions.js +23 -1
  35. package/dist/solana/floor/program.js +3 -0
  36. package/dist/ton/addresses.js +36 -0
  37. package/dist/ton/book-check.js +23 -0
  38. package/dist/ton/book.js +119 -0
  39. package/dist/ton/cell.js +542 -0
  40. package/dist/ton/consts.generated.js +17 -0
  41. package/dist/ton/content.js +83 -0
  42. package/dist/ton/gas.js +198 -0
  43. package/dist/ton/governance.js +401 -0
  44. package/dist/ton/index.js +18 -0
  45. package/dist/ton/messages.js +340 -0
  46. package/dist/ton/ops.js +37 -0
  47. package/dist/ton/price.js +51 -0
  48. package/dist/ton/quote-entry.js +116 -0
  49. package/dist/ton/quote.js +25 -0
  50. package/dist/ton/reader.js +378 -0
  51. package/dist/ton/types.js +43 -0
  52. package/dist/ton/wallet.js +26 -0
  53. package/dist/v2/events.js +2 -0
  54. package/dist/v2/evm.js +8 -1
  55. package/dist/v2/layouts.js +7 -1
  56. package/dist/v2/router.js +2 -2
  57. package/dist/v2/solana.js +1 -1
  58. package/dist/v2/solanaSettle.js +2 -0
  59. package/dist/v2/tx/evm.js +15 -1
  60. package/docs/aggregator.md +0 -22
  61. package/docs/bot.md +0 -8
  62. package/docs/cursor-pages.md +9 -5
  63. package/docs/frontend.md +0 -2
  64. package/docs/ton.md +107 -0
  65. package/docs/wallet.md +0 -2
  66. package/examples/floor-line.html +1 -1
  67. package/package.json +6 -1
  68. package/src/abi/evm-event-names.ts +7 -0
  69. package/src/abi/evm.gen.ts +6 -0
  70. package/src/abi/functions.gen.ts +49 -1
  71. package/src/abi/solana.gen.ts +5 -0
  72. package/src/config/generated.ts +77 -0
  73. package/src/errors.ts +2 -2
  74. package/src/events/types.gen.ts +57 -1
  75. package/src/evm/chains.ts +34 -28
  76. package/src/evm/floor/calls.ts +5 -0
  77. package/src/evm/router.ts +1 -26
  78. package/src/evm/squid.ts +3 -3
  79. package/src/generated/interface.gen.ts +48 -43
  80. package/src/index.ts +1 -0
  81. package/src/indexer/bodies.ts +144 -2
  82. package/src/indexer/client.ts +17 -4
  83. package/src/indexer/contract.ts +66 -7
  84. package/src/indexer/paths.ts +62 -7
  85. package/src/indexer/read.ts +14 -5
  86. package/src/indexer/stream.ts +4 -4
  87. package/src/math/v2/book.ts +42 -7
  88. package/src/math/v2/create.ts +1 -1
  89. package/src/math/v2/fees.ts +30 -4
  90. package/src/math/v2/milestones.ts +1 -1
  91. package/src/math/v2/receipt.ts +7 -3
  92. package/src/math/v2/relay.ts +208 -1
  93. package/src/math/v2/rows.ts +17 -0
  94. package/src/math/v2/split.ts +70 -16
  95. package/src/math/v2/team.ts +14 -1
  96. package/src/math/v2/trade.ts +16 -8
  97. package/src/solana/floor/accounts.ts +30 -3
  98. package/src/solana/floor/events.ts +6 -0
  99. package/src/solana/floor/instructions.ts +23 -1
  100. package/src/solana/floor/program.ts +3 -0
  101. package/src/ton/addresses.ts +38 -0
  102. package/src/ton/book-check.ts +24 -0
  103. package/src/ton/book.ts +136 -0
  104. package/src/ton/cell.ts +547 -0
  105. package/src/ton/consts.generated.ts +17 -0
  106. package/src/ton/content.ts +97 -0
  107. package/src/ton/gas.ts +209 -0
  108. package/src/ton/governance.ts +452 -0
  109. package/src/ton/index.ts +18 -0
  110. package/src/ton/messages.ts +343 -0
  111. package/src/ton/ops.ts +37 -0
  112. package/src/ton/price.ts +54 -0
  113. package/src/ton/quote-entry.ts +138 -0
  114. package/src/ton/quote.ts +67 -0
  115. package/src/ton/reader.ts +420 -0
  116. package/src/ton/types.ts +201 -0
  117. package/src/ton/wallet.ts +30 -0
  118. package/src/v2/events.ts +3 -1
  119. package/src/v2/evm.ts +10 -1
  120. package/src/v2/layouts.ts +7 -1
  121. package/src/v2/router.ts +2 -2
  122. package/src/v2/solana.ts +1 -1
  123. package/src/v2/solanaSettle.ts +2 -0
  124. package/src/v2/tx/evm.ts +15 -1
  125. package/src/v2/types.ts +14 -1
package/CHANGELOG.md CHANGED
@@ -2,33 +2,234 @@
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.4.1
5
+ ## 0.7.0
6
+
7
+ The referral rates change, and up to 100 referrers a chain can be OG Users, paid more for a while. This version splits a
8
+ trade's referral parts at the new rates and builds the OG Users' instructions and calls. ⚠ Use it against a program
9
+ that has the referral upgrade; 0.6.0 splits at the old rates (see "Which version to use" below). Several indexer reads
10
+ need an indexer on this build: deploy the indexer first. This version also carries the preset row and the indexer routes
11
+ 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.
12
+
13
+ What changed in the program, for an integrator:
14
+
15
+ - One ratio, 80 / 14 / 6, across the three referrer tiers. The trader's referrers take 30 % of the Platform fee: 24 %,
16
+ 4.2 % and 1.8 % (was 30 %, 20 % and 10 %, 60 % in all). The creator's referrers take 10 % of the whole Team Share
17
+ (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
18
+ referrer leaves its part where it went before. Prices, quotes and what a trader pays or gets are unchanged; only who
19
+ is paid inside those two parts changes.
20
+ - OG Users. The referral authority can mark a referrer an OG User once; from that moment, for 183 days
21
+ (`OG_WINDOW_SECS`, 15,811,200 s), the referrer's tiers are paid the OG rates, the same ratio: the trader side 50 % of
22
+ the Platform fee (40 %, 7 %, 3 %), and the creator side 30 % of the Team Share (24 %, 4.2 %, 1.8 %) on a launch
23
+ created inside the window only. Each tier follows its own referrer. At most `OG_MAX` (100) windows are live on a chain;
24
+ governance may end one early, which frees its place. On Solana a trade reads the window from copies in the records it
25
+ already reads (`TraderRef`, `TraderLink`, `LaunchV2`); `sync_og` (anyone may send it) writes them, and a record not yet
26
+ synced pays the standard rate. On EVM a trade reads the window itself.
27
+ - A trade that paid a referrer is followed, in the same transaction, by `RefSlices` (both chains): each tier's part,
28
+ `traderParts` of the Platform fee and `creatorParts` of the Team Share, and `og`, one bit a tier paid at the OG rate
29
+ (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
30
+ `OgUserSet` and `OgUserRevoked` (both chains) and `OgSynced` (Solana) report the windows.
31
+ - Bytes that were zero now hold the windows: Solana `LaunchV2`'s last 15 bytes (`pad_end`) are `pad_og` (3 bytes) and
32
+ `creator_ref_og_until` (three u32, unix seconds, 0 = standard); `TraderRef.reserved` is `og_until` (three u64);
33
+ `TraderLink.reserved` is `og_until` (24 bytes: three little-endian u64, unaligned). Every size and every other offset
34
+ is unchanged, and no instruction's account list changes. Two new Solana accounts: `["og_user", referrer]` (88 bytes +
35
+ 8) and `["og_count"]` (32 bytes + 8). EVM storage only appends.
36
+ - New errors: Solana `OgFull` (6071); EVM `OgFull()` and `OgAlreadySet()`.
37
+
38
+ Added:
39
+
40
+ - Referral math (`mathV2Fees`, `mathV2Team`): `TRADER_REF_OG_BPS` (4,000 / 700 / 300), `CREATOR_REF_OG_BPS` (2,400 /
41
+ 420 / 180), `OG_WINDOW_SECS`, `OG_MAX`, `ogUntil` (a window's end), `ogLive` (a trader tier's status at `now`),
42
+ `ogLaunch` (a creator tier's status for a launch's create time), `tierBps`, `platformLegsOg` / `creatorLegsOg` (and
43
+ `platformLegsOgV2` / `creatorLegsOgV2`): each tier at its own referrer's rate. `feePartsV2` takes `traderOg` and
44
+ `creatorOg` (absent: every tier standard).
45
+ - Solana: `setOgUserInstruction` (signed by the referral authority; anyone pays; a second set for the same wallet fails),
46
+ `revokeOgUserInstruction` (governance), `syncOgInstruction` (any mix of `TraderRef`, `TraderLink` and `LaunchV2`
47
+ records, each writable), `ogUserPda`, `ogCountPda`, the `OG_USER` and `OG_COUNT` layouts with `decodeOgUser` /
48
+ `decodeOgCount`, and `traderLinkOgUntil` (reads `TraderLink.ogUntil`'s three u64).
49
+ - EVM (`v2Tx.evm`): `setOgUserCall({ floorAmm, referrer, deadline, authSig })` with `ogUserAuthDigest` (the referral
50
+ authority's EIP-191 attestation over `"floor.amm.ogUser.auth.v1"`, the chain id, FloorAmm, the referrer and the
51
+ deadline; anyone sends the call), `revokeOgUserCall`, `EVM_V2_TX.setOgUser` / `revokeOgUser`, and the views
52
+ `EVM_V2_TX_VIEWS.ogUserOf` (`from`, `until`, `revoked`) and `ogCount` (`count`, `total`).
53
+ - Events in every decoder: `RefSlices` (Solana `EVENTS_V2`, `RefSlicesEvent`; EVM `decodeLogV2`), `OgUserSet`,
54
+ `OgUserRevoked` (both chains) and `OgSynced` (Solana); the generated schemas, `SolanaEventMap` / `EvmEventMap` and
55
+ `SHARED_EVENT_NAMES` list them. The EVM function print (`FLOOR_AMM_V2_FUNCTIONS`, `EVM_FUNCTION_SELECTORS`) gains the
56
+ governance module `floorAmmGovV2`, and `V2_EVENTS_ELSEWHERE` names its events.
57
+ - HolderMoved (EVM; every EVM chain runs it): the EVM upgrade clones new launch tokens from a second implementation,
58
+ `FloorTokenIndexedV2`, which reports every move but the mint as FloorAmm's `HolderMoved` event (`launchId`, `from`,
59
+ `to` (0 for a burn), `value`, `fromBalance`, `toBalance`). Launches created before it keep the first implementation for
60
+ life. `evmChains.LAUNCH_TOKEN_IMPLS` (`live`, `holderMoved`), `HOLDER_MOVED_FIRST_LAUNCH_ID` (per chain; null = not
61
+ upgraded there, so every launch is `live`), `tokenImplForLaunch({ chain, id, firstId? })`, `tokenImplOfCode`,
62
+ `isLaunchTokenImpl`, `launchTokenCodeKind`, and the `HolderMoved` decoder. Every EVM chain upgraded before its first
63
+ launch, so every row of the table is 1: every EVM launch clones the HolderMoved implementation.
64
+ - Preset id 7, `wagmi-70` (`mathV2Rows.wagmi70()`, `mathV2Rows.WAGMI70_ID`): WAGMI with the floor at 70 % of the price
65
+ (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
66
+ launches made on it keep their row. A chain offers id 7 once governance adds it; the preset menu reads it like any
67
+ other row.
68
+ - Two indexer routes, the running totals thinned to at most 720 points beside one exact totals row: `raiseSeries`
69
+ (`launches/<id>/raise-series?step&from&to`, `step` one of `RAISE_STEPS`) and `floorSteps`
70
+ (`launches/<id>/floor-steps?from&to&points`, `points` 1 to `RT_POINTS_MAX`): `INDEXER_CONTRACT`, `INDEXER_ROUTES`,
71
+ `indexerPath`, `routePath`, the strict decoders `RAISE_SERIES` / `FLOOR_STEPS` and `readRaiseSeries` /
72
+ `readFloorSteps`. A span over 720 points is refused (`spanRefusal`, whose range span may now be counted in seconds).
73
+ - Two more indexer routes: `positionTotals` (`wallets/<w>/position-totals?launch&limit&cursor`: per launch the exact
74
+ sums and the average-cost fold state as round-trip double strings (`roundTrip`), one row with `launch`, else a page;
75
+ in `DRAIN_NAMES`) and `launchTraded` (`launches/<id>/traded?wallets`, at most `TRADED_WALLETS_MAX` = 100 wallets): the
76
+ strict decoders `POSITION_TOTALS` / `LAUNCH_TRADED` and `readPositionTotals` / `readLaunchTraded`. `burns` takes
77
+ `wallet` (only that wallet's burns; EVM case-blind).
78
+ - `referrals/<w>/people` (`PEOPLE`, `PEOPLE_ROLE`): each role gains `via`, the wallet that brought the person to the
79
+ referrer on that link (`null` at tier 1; every wallet a `via` names is listed in the same body, with `earned` empty
80
+ when it never earned the referrer anything). Each person gains `unclaimed`, per quote: of the referrer's claimable
81
+ referral balance, the part this person's trades earned and the referrer has not claimed yet (EVM; on Solana the parts
82
+ held per launch and per trader escrow). The body gains `pooled`, per quote: the claimable part that names nobody
83
+ (Solana's pooled referral balance; `[]` on EVM), the same on every page of a paged read; `accountsAt` (Solana: the slot
84
+ the accounts behind `unclaimed` and `pooled` count to); and `og`, the wallet's OG User window (`from`, `until`,
85
+ `revoked`; null: never set).
86
+ - `people` takes `person` (`PeopleQuery`): only those referred wallets' rows, 1 to `PEOPLE_PERSON_MAX` (8) distinct
87
+ wallets, never with `limit` or `cursor`, no `next`; a wallet the referrer's book does not hold is absent. A drain with
88
+ `person` reads once.
89
+ - The stream's trade frame (`STREAM_TRADE`, `StreamTrade`) carries `refs` (`TRADE_REFS`: `tp` the person the trader's
90
+ tiers paid and `t` their referrers in tier order, `cp` the creator and `c` the creator's referrers) when its
91
+ transaction credited a referrer, and only to a stream that asks `refs` (`StreamQuery.refs`). A REST trade never
92
+ carries it. `StreamQuery` also takes `seat: "relay"` and `compress`.
93
+ - The launch rows (`launches`, `launches/<id>`, `launch-lists`, `search`) gain `volume1h` and `volumePrev1h` (the hour
94
+ to the indexed head and the hour before it, quote base units) with `volume1hUsd` / `volumePrev1hUsd`, and `athPrice`
95
+ (the all-time high in `priceX64`'s units, never below the price) with `athPriceUsd`; each null with no head or no
96
+ price.
97
+
98
+ Changed (breaking for code that relies on these):
99
+
100
+ - The referral rates: `TRADER_REF_BPS` is 2,400 / 420 / 180 (was 3,000 / 2,000 / 1,000) and `CREATOR_REF_BPS` 800 / 140 /
101
+ 60 (was 900 / 90 / 10), so `platformLegs` / `platformLegsV2`, `creatorLegs` / `creatorLegsV2` and `feePartsV2` return
102
+ the new parts, and `teamSplit` splits the Team Marketcap Milestone's tenth 80 / 14 / 6 (was 90 / 9 / 1). `teamSplit`
103
+ has no OG case: for an OG tier use `creatorLegsOg`.
104
+ - The launch rows: `holdersChange1h` and `holdersChange24h` (holders at the indexed head minus holders an hour / a day
105
+ before, SIGNED) replace `newHolders1h` and `newHolders24h`, and the sort key `newHolders24h` is now `holdersChange24h`
106
+ (`LAUNCH_SORTS`, `LaunchSort`). The new figures, the hour volumes and `athPrice` are required in the decoders, so this
107
+ version refuses a launch body from an older indexer.
108
+ - `PEOPLE` requires `via`, `unclaimed` and `pooled`, and `DEV_BUYS` requires `totals` (every dev buy of the launch:
109
+ count, Σ tokens, Σ quote) and `asOf`: both refuse a body from an older indexer. An indexer that predates
110
+ `burns?wallet=` ignores the key and answers every wallet's burns: filter `wallet` again on the client, or read it only
111
+ from an indexer on this build.
112
+ - Solana layouts (`v2Layouts.LAUNCH_V2`, the `LaunchV2` type; `TRADER_REF`, `TRADER_LINK`): `LaunchV2` loses `padEnd`
113
+ and gains `padOg` and `creatorRefOgUntil`; `TraderRef` and `TraderLink` lose `reserved` and gain `ogUntil`. On an
114
+ account written before the upgrade they read zero (no window).
115
+ - `ROUTE_NAMES` gains `raiseSeries`, `floorSteps`, `launchTraded` and `positionTotals`, and `DRAIN_NAMES` gains
116
+ `positionTotals`: a map keyed by every route name needs them. `queryRefusal` refuses a list key with fewer items than
117
+ its `min` (a list of only commas: `quotes` on `launch-lists`, `ids` on `candles/many`, `wallets` on `wallets/firsts`
118
+ and `traded`, `person` on `people`).
119
+ - `SQUID_GAS.transfer` is 100,000 (was 65,000): a launch token sent by the Squid multicall, measured at 90,973 on the
120
+ HolderMoved token and 76,976 on the token live today.
121
+
122
+ TON: still switched off, as in 0.6.0 (no TON program is deployed; `ton.tonChainOf()` throws on the placeholder). The
123
+ mirrored `LAUNCH_STATE_BITS` / `LAUNCH_STATE_CELLS` follow the TON contract: 844,700 / 1,305 (was 843,700 / 1,303).
124
+ OG Users are not built for TON yet.
125
+
126
+ Which version to use:
127
+
128
+ - The referral upgrade runs on Solana and on every EVM chain (Ethereum, Base, BNB Chain, Arbitrum, Arc, Robinhood Chain,
129
+ HyperEVM, Elysium) as this version ships, and HolderMoved runs on every EVM chain. TON is not deployed.
130
+ - Against a program with the referral upgrade, use 0.7.0. Its referral parts are what the chain pays.
131
+ - 0.7.0 against a program NOT yet upgraded: quotes, trades and every decoder still match (the reused bytes are zero, so
132
+ no tier reads as OG), but the referral parts it computes are the new rates and the chain pays the old ones; the OG
133
+ instructions, calls and views fail there.
134
+ - 0.6.0 against an upgraded program: quotes and trades still match, and its decoders return null for `RefSlices` and the
135
+ OG events, but its referral parts are the old rates and do not match what the chain pays. Move to 0.7.0.
136
+ - The indexer: 0.7.0's launch-row, `people` and `DEV_BUYS` decoders refuse an older indexer's bodies, and an older
137
+ indexer refuses `sort=holdersChange24h`; an indexer on this build refuses `sort=newHolders24h`. Deploy the indexer
138
+ 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,
139
+ and `newHolders1h` / `newHolders24h` were optional), but a 0.6.0 caller that sorts by `newHolders24h` is refused.
140
+
141
+ ## 0.6.0
142
+
143
+ 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
144
+ program that runs the two pots. ⚠ Use it only against a chain whose program has been upgraded to the two pots; 0.4.3 and
145
+ older quote the one-pot program (see "Which version to use" below). 0.5.0 was never published: its entries (below) ship
146
+ in this version.
147
+
148
+ What changed in the program, for an integrator:
149
+
150
+ - Two pots under the price. C (the Cushion) is re-laid after every trade from the price down, as the mirror of the ask,
151
+ with C's money only. K is ONE constant-product piece from C's bottom down to the floor price `f`. While K holds no
152
+ tokens it is re-shaped to `[f, C's bottom]` with all its money; once a sell walks into it, it moves only along its own
153
+ curve until a buy takes back all its tokens. While K holds tokens, any C money waits at `f`; C is never laid over K.
154
+ - The sell path is C, then K (sliding down to `f`), then F's flat bid at `f`. `fromC`, `fromK` and `fromF` on a sell keep
155
+ their meaning.
156
+ - New money is split between the pots by the launch row's `c_share_bps` (5,000 on every row today: half each). Each pot
157
+ has its own target (`T_C = ceil(T × c_share_bps ÷ 10,000)`, `T_K = T − T_C`, `T` the one C + K target of before); the
158
+ share for C rounds up; a pot at its target passes the rest of its part to the other pot; the rest goes on as before. The
159
+ money above a piece's Marketcap Milestone cap is split the same way.
160
+ - F's top-up takes half from each pot: first this buy's C and K parts, half each (the half for C rounds up; a part short of
161
+ its half passes the rest to the other), then this buy's Marketcap Milestones, then C's and K's pots, half each.
162
+ - Resale: what a buy pays for tokens a pot holds returns to that pot (`f` to F, the premium to the pot). The money parked
163
+ at `f` is kept per pot.
164
+ - A launch created before the program upgrade moves to the two pots on its first trade after it: C's pot from its C
165
+ segments' money, K's from its K segments', the money parked at `f` half each (the half for C rounds up), F's backing in
166
+ those segments back to F, tokens held before the upgrade resell into C. Then the normal re-lay runs. Nothing else is
167
+ needed; trading never pauses.
168
+ - Reads that keep their meaning: vault and bid money (`vaultV2`, `dexLiquidityV2`, an indexer's `bidMoney`) are F + C + K;
169
+ `ckMoney`, `ckHeld` and a receipt's `cushion` are C + K; `Book.ckAtF` / `ckFloorTokens` are the money and tokens parked
170
+ at `f` for both pots together.
171
+
172
+ Added:
173
+
174
+ - Reads per pot on a `Book`: `cMoney`, `kMoney`, `cHeld`, `kHeld`, `kHolds` (K holds tokens) and `kSeg` (K's segment
175
+ index, or null).
176
+ - `Book.kpot` (true once the book runs two pots), `Book.kAtF` and `Book.kFloorTokens` (K's part of the money and tokens
177
+ parked at `f`; C's part is `ckAtF − kAtF`, `ckFloorTokens − kFloorTokens`).
178
+ - The split's per-pot amounts: `Split.cAdd`, `kAdd`, `cTake`, `kTake` (their sums are `ckAdd`, `ckTake`, as before), and
179
+ `Relay.kAtF`.
180
+ - `Pots`, `relayPots`, `kpotUpgrade` (the first-trade move of a pre-upgrade book; `buy` / `sell` run it themselves on a
181
+ book whose `kpot` is false), `shareSplit` and `potsSplit`.
182
+
183
+ Changed (breaking for code that builds these types itself):
184
+
185
+ - `Book` has the three new required fields above. A `Book` built by hand needs them (`kpot: true`, `kAtF: 0n`,
186
+ `kFloorTokens: 0n` for a new launch); the SDK's decoders fill them.
187
+ - `SplitIn.ck0` is replaced by `c0` and `k0` (C's and K's money before the buy).
188
+ - Solana `LaunchV2` (`v2Layouts`, `LaunchV2` type): the last 32 bytes, `book_hash` (never written; zero on every launch),
189
+ are now `k_at_f` (u64, offset 5984), `k_floor_tokens` (u64, 5992), `kpot` (u8, 6000) and `pad_end` (15 bytes). The
190
+ account's size (6,016 bytes) and every other offset are unchanged; no instruction's account list changes. The type
191
+ loses `bookHash` and gains `kAtF`, `kFloorTokens`, `kpot`, `padEnd`. `kpot` 0 is a launch not yet moved to two pots.
192
+ - EVM `launchBook` (`v2Evm`): the returned struct gains `uint128 kAtF`, `uint64 kFloorTokens` and `bool kpot`, appended
193
+ after its last field (the selector is unchanged). Storage only appends.
194
+
195
+ TON: the `@floorlaunchpad/sdk/ton` module (from the 0.5.0 entries) is in this package and its math runs the two pots, but
196
+ no TON program is deployed: the TON chain row has `v2DayOne` false and `tonFactoryAddress` null, `dayOneChains()` leaves
197
+ it out, `TON_MAINNET.placeholder` is true and `ton.tonChainOf()` with no book throws `TonBookError` ("placeholder (no
198
+ deploy yet)"), so no TON address or quote can be built from the built-in constants. `CHAINS` and `CHAIN_SLUGS` still
199
+ list the TON row as data: a caller that shows chains filters on `v2DayOne` (or uses `dayOneChains()`). TON is wired and
200
+ switched off until its factory is deployed and the constants are regenerated.
201
+
202
+ Which version to use:
203
+
204
+ - Against an upgraded program use 0.6.0. A book read before its first trade after the upgrade (`kpot` false) is quoted as
205
+ that trade will run it: the SDK moves it to two pots first, as the program does.
206
+ - 0.6.0 against a program NOT yet upgraded: on Solana the bytes it reads as `kpot` are zero, so it quotes the two-pot move
207
+ the old program never makes, and its quotes do not match the trade; on EVM the `launchBook` view returns the shorter
208
+ struct and the decode fails. Do not use it there.
209
+ - 0.4.3 or older against an upgraded program reads `book_hash` / the shorter struct and quotes the one-pot bid: buys
210
+ that reach the split and sells below the price are mis-quoted. Move to 0.6.0 when the program on your chain is upgraded.
211
+
212
+ ## 0.5.0
6
213
 
7
214
  Fixed:
8
215
 
9
- - `zapSwapData` appends `SWEEP(address(0), MSG_SENDER, 0)` to a native-input Universal Router swap (Uniswap, Aerodrome, Pancake and Ramses forks, V2 / V3 and v4). A Squid hook forwards the whole bridged amount as the zap's value, the plan spent only `amountIn`, and the surplus stayed on the router for anyone to sweep; it now returns to the zap, which refunds it. Token-in and native-out routes, and every non-Universal-Router family, encode the same bytes as before.
216
+ - `zapSwapData` appends `SWEEP(address(0), MSG_SENDER, 0)` to a native-input Universal Router swap (Uniswap, Aerodrome, Pancake and Ramses forks, V2 / V3 and v4). A Squid hook forwards the whole bridged amount as the zap's value, the plan spent only `amountIn`, and the surplus stayed on the router for anyone to sweep (ZR-2); it now returns to the zap, which refunds it. Token-in and native-out routes, and every non-Universal-Router family, encode the same bytes as before.
217
+ - `buyHookNative` (the Squid hook) passes the zap's quote refund on to the user. The zap refunds what the buy did not spend in the native coin and, for a launch quoted in an ERC-20, in that quote; the hook passed on only the native refund, so the quote refund stayed on the multicall. It now takes `quote` (the launch's quote coin, required; address(0) for a native quote) and, for an ERC-20 quote, adds a `transfer` of the multicall's whole quote balance to the user.
218
+ - `devBuyFromTrade` credits a buy through FloorZap or FloorRouter to the person that contract's own event names. Such a trade's `trader` is the contract; the new optional `ctx.buyer` (the sender a known zap's `Zapped` or router's `Bought` event proves in the same transaction, with sender = recipient) is the person matched against the creator and the Team Slot. The trade's recipient alone never counts.
219
+ - The EVM error table (`EVM_ERRORS`, and so `decodeEvmProgramError`) names the errors a v2 contract reverts with from its math libraries: `PriceOrder()`, `ZeroLiquidity()`, `SqrtRange()`, `Zero()` and `VaultShareOutOfRange()`. The contracts' ABI omits them, so such a revert decoded to no name.
10
220
  - `zapSwapData` encodes a zap whose input is an ERC-20 (`buyWithToken`) and whose output is the native coin (a launch quoted in the native coin). Before, every route began with `WRAP_ETH` (or a native-only call) and paid the router's output in its wrapped form, so an ERC-20 → native-coin zap through a Universal Router, a V3 SwapRouter, SwapRouter02 or Algebra router reverted (`QuoteShort`; measured on forks of every zap row). New optional params: `input` ("native", the default, or "token"), `output` ("token", the default, or "native": the router unwraps and pays the zap, which accepts the native coin only from its router), and `router` (a SwapRouter v1 native output is paid to the router, then unwrapped). The defaults encode the same bytes as before.
11
221
  - The Universal Router forks' swap input: `urFork` ("uniswap", the default, "aerodrome", "pancake" or "ramses"; each fork row in `EVM_CHAINS` names its own as `urFork`). Aerodrome's router reads a sixth `bool isUni` (sent false: its Slipstream pools, each key `0x100000 | tickSpacing`, `AERODROME_SLIPSTREAM_KEY`); PancakeSwap's and Ramses' read five fields. Before, every fork got Uniswap's sixth `uint256[]`, which Aerodrome's router reads as `isUni = true` and routes through Uniswap's pools instead of its own. A V2 leg through a fork's router is refused (its input is its own).
12
- - `buyHookNative` (the Squid postHook that buys through the zap with a bridged native coin) takes the launch's `quote` and, when it is an ERC-20, adds a third call that passes the zap's quote refund on to `user` (`FullTokenBalance quote.transfer(user, FULL)`). Before, the unspent quote the program paid back stayed on the multicall, where anyone could sweep it. `quote` is optional: absent or address(0) (a launch quoted in the native coin), the hook is the same two calls as 0.4.0, byte for byte, so a 0.4.0 call still compiles and encodes as before; pass the ERC-20 quote to get the refund call.
13
- - `devBuyFromTrade` takes an optional `ctx.buyer`: the person a known zap's or router's own event proves for a buy through it. A buy through the zap or the router has the contract as the trade's `trader`, so a creator's or team member's buy through either was not named a dev buy; with `ctx.buyer` it is, and the returned `trader` is that person. The trade's recipient alone never names one (anyone can buy with the creator as recipient).
14
- - `EVM_ERRORS` and `decodeEvmProgramError` now know five errors the v2 contracts revert with from their math libraries, which the contracts' ABI does not list: `PriceOrder()`, `ZeroLiquidity()`, `SqrtRange()`, `Zero()` and `VaultShareOutOfRange()`. Before, a revert with one of them decoded as unknown; now it decodes by its selector like any other EVM error.
15
- - `zapSwapData` now refuses a route that names address(0) (the wrapped native stands for the native coin) or swaps a coin into itself (neither names a pool a router can trade).
16
222
 
17
223
  Added:
18
224
 
19
- - `FLOOR_ZAP_ADDRESSES`: the deployed FloorZap instance address per chain and zap slot (15 instances on 8 chains, Elysium's `uniswap-ur` included; one address per slot on every chain that has it), and `zap` on each `EVM_CHAINS` zap row (the instance to call, or `null` where that slot is not deployed). A wallet or an integrator no longer needs its own copy of the zap addresses.
20
- - Elysium's zap: `EVM_CHAINS.elysium.zapRouters` holds Uniswap's Universal Router 2.1.2 (`0xA13f7611115752DEB2B13813BDDE16A5073e4b45`, slot `uniswap-ur`) with its deployed zap booked (`FLOOR_ZAP_ADDRESSES.elysium`, the same `uniswap-ur` address as every other chain: 15 zaps in all), and `wrappedNative` is WHYPE (`0xbA876237B0F021A6c6D852d6c26E107997cC5E81`, 18 decimals). Elysium's depth is in Uniswap v4 only (native HYPE / USDC pools), so its zap routes through the v4 route below, never through WRAP_ETH.
225
+ - TON: the `@floorlaunchpad/sdk/ton` module is in the published package (the `./ton` export): message builders for a wallet, the program's `get` methods as quotes (`simBuy`, `simSell`), the launch's jetton content (`src/ton/content.ts`: what `get_jetton_data` publishes, the uri / image derived from the factory's `metadata_base`, and the token data JSON body), the generated TON constants (`src/ton/consts.generated.ts`) and `docs/ton.md`. TON is not deployed yet, so its chain row stays off until the factory is live.
226
+ - Indexer (TON): a launch's developer buys are walked by the TON follower and served through the v2 routes and views (the TON fix of the unbounded-routes batch).
227
+ - Indexer: the launch rows gain `newHolders1h` and `newHolders24h` (`LISTED_FIELDS`: the `launches`, `launches/<id>` and `search` rows; not `launches/<id>/state` or the stream's frames): the current holders that first held within the hour / the 24 h to the indexed head, null with no head. `newHolders24h` is the number `sort=newHolders24h` ranks by. Both are optional in the decoder, so an indexer without them still decodes.
228
+ - HyperEVM stock quotes (EQX): the config now lists the stock quotes of HyperEVM, in `deploy/config/quotes/hyperevm.json` and the generated config, as it lists Elysium's.
229
+ - Elysium's zap row: `EVM_CHAINS.elysium.zapRouters` holds Uniswap's Universal Router 2.1.2 (`0xA13f7611115752DEB2B13813BDDE16A5073e4b45`, slot `uniswap-ur`, as the contracts' zap config lists it), and `wrappedNative` is WHYPE (`0xbA876237B0F021A6c6D852d6c26E107997cC5E81`, 18 decimals). Elysium's depth is in Uniswap v4 only (native HYPE / USDC pools), so its zap routes through the v4 route below, never through WRAP_ETH.
21
230
  - `zapSwapData` encodes Uniswap v4 through the Universal Router: one pool, exact in, given as `route.v4` (`ZapV4Pool`: fee, tick spacing, hooks, hook data) with `route.tokens` = [currency in, currency out] and `V4_NATIVE` (address(0)) for the native coin. The calldata is `V4_SWAP` with `SWAP_EXACT_IN_SINGLE`, `SETTLE` (paid by the router: the zap pays an ERC-20 input to it first; a native input rides as the call's value) and `TAKE`; a native output is taken to the router and then swept to the zap (`SWEEP`, at the same minimum), since the zap accepts the native coin only from its router. New beside it: `v4PoolKey` (the sorted pool key and the swap's direction), the type `V4PoolKey`, and the constants `UR_V4_SWAP`, `V4_SWAP_EXACT_IN_SINGLE`, `V4_SETTLE`, `V4_TAKE`, `V4_OPEN_DELTA` and `V4_NATIVE`. A route without `v4` encodes as before.
22
- - Indexer batched reads: `floor-amm/launch-lists` (`indexerPath.launchLists`, `readLaunchLists`, body `LAUNCH_LISTS`) returns one `launches?quote=` page per asked quote in one request, each list resumed with its own cursor (`LAUNCH_LISTS_FIRST` asks a first page; at most `LAUNCH_LISTS_QUOTES_MAX` quotes and `LAUNCH_LISTS_ROWS_MAX` rows); `floor-amm/candles/many` (`indexerPath.candlesMany`, `readCandlesMany`, body `CANDLES_MANY`) returns many launches' newest candles at one interval in one request (at most `CANDLES_MANY_IDS_MAX` launches, `missing` names the unknown ones). Both are in `INDEXER_CONTRACT` and the client; against an indexer that does not serve them the readers throw `IndexerError`.
23
- - `readPresetMenuEvmV2` reads the preset rows through one Multicall3 `aggregate3` per 100 ids (1 + ⌈K ÷ 100⌉ calls instead of 1 + K); a failed row throws, never a gap in the menu. New optional third argument `{ multicall }`: another Multicall3 address, or `null` to send one `presetRow` call per id on a chain without Multicall3.
24
- - The Solana client's `claim` reads its launches side by side instead of one after another: the round trips no longer grow with the number of launches (5 launches: 15 round trips to 3). Same transaction, same refusals; the quote's fields still come from the last launch asked.
25
- - FloorRouter addresses: `FLOOR_ROUTER_ADDRESSES` (per chain and zap slot), `floorRouter` on each `EVM_CHAINS` zap row, `FLOOR_ROUTER_DEPLOYER` and `floorRouterAddress(slot)`. One address per slot, the same on every chain that has it (7 routers over the 15 zap rows). The addresses are derived ahead of the routers' deploy, not read back from chain: each is usable only once it has code on that chain. A call to one with no code still succeeds and buys nothing, and a native-in buy's coin sent to it stays at that empty address and is lost. `floorRouterLive` and `assertFloorRouterLive` (`evm/router`) check the code through your `getCode` ("0x" or `undefined` is no code); check before you build a call to one, as `evmRouteCallV2` itself reads no chain.
26
-
27
- Changed:
28
-
29
- - Elysium is switched on: its chain registry row is no longer `v2DayOne: false`, so `v2DayOneChains()` now includes Elysium (eight EVM chains). Elysium is live at the same address as the other EVM chains.
30
-
31
- Added (to carry the fixes; nothing removed or renamed): the type `ZapUrFork`, the constant `AERODROME_SLIPSTREAM_KEY`, the optional `ZapSwapParams` keys `input`, `output`, `router` and `urFork`, and the optional `urFork` on each `EVM_CHAINS` zap row.
231
+ - The deployed FloorZap instances: `FLOOR_ZAP_ADDRESSES` (per chain, per zap slot) and a `zap` field on each `EVM_CHAINS` zap row (the instance, or null where that slot is not deployed). 14 instances on Ethereum, Base, BNB Chain, Arbitrum, HyperEVM, Robinhood Chain and Arc, each read back on chain, and Elysium's `uniswap-ur` instance (`0x56F22be922Ffc9e955169E0673D3Ae42B1151995`).
232
+ - Batched reads. The indexer client gains `launchLists` (`/floor-amm/launch-lists`: one list per quote coin, each with its own cursor, in one request) and `candlesMany` (`/floor-amm/candles/many`: many launches' newest candles at one interval in one request). `readPresetMenuEvmV2` reads the preset rows through one Multicall3 `aggregate3` call per 100 ids (`PRESET_MENU_BATCH`), was one call per id; `opts.multicall: null` keeps one call per id for a chain without Multicall3, and a failed row throws.
32
233
 
33
234
  ## 0.4.0
34
235
 
package/README.md CHANGED
@@ -39,8 +39,6 @@ A launch's floor is the price the program's own money stands behind. Drawing it
39
39
 
40
40
  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).
41
41
 
42
- 0.4.1 adds, without renaming or removing anything: the deployed zap addresses (`FLOOR_ZAP_ADDRESSES`, `zap` on each zap row) and more `zapSwapData` routes ([aggregator.md](docs/aggregator.md)), batched indexer reads (`readLaunchLists`, `readCandlesMany`, [bot.md](docs/bot.md)), a batched EVM preset menu ([frontend.md](docs/frontend.md)), five more decoded EVM errors ([wallet.md](docs/wallet.md)) and an optional `ctx.buyer` for `devBuyFromTrade`.
43
-
44
42
  **Fees in a quote.** A quote's `fees` has the five fee legs, each added on top of the trade, buys and sells alike: the
45
43
  Backing Fee (`backing`), the Team Fee (`team`), the Platform fee (`platform`), the $FLOOR fee (`floor`) and the Holder Fee
46
44
  (`holder`), with their `total`. Any leg can be 0. Before graduation a preset launch pays only the Platform fee and the
@@ -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
  } ;
@@ -4,8 +4,12 @@ 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
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}] },
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}] },
@@ -91,6 +95,8 @@ export const EVM_ERRORS = [
91
95
  { chain: "evm", name: "NotTeamMember", message: "NotTeamMember", code: null, selector: "0x2793ed7d", signature: "NotTeamMember()" },
92
96
  { chain: "evm", name: "NotTimelock", message: "NotTimelock", code: null, selector: "0xcad4da2a", signature: "NotTimelock()" },
93
97
  { chain: "evm", name: "NotToken", message: "NotToken", code: null, selector: "0x21f2b69c", signature: "NotToken()" },
98
+ { chain: "evm", name: "OgAlreadySet", message: "OgAlreadySet", code: null, selector: "0x15a3af55", signature: "OgAlreadySet()" },
99
+ { chain: "evm", name: "OgFull", message: "OgFull", code: null, selector: "0x94de33e9", signature: "OgFull()" },
94
100
  { chain: "evm", name: "Overflow", message: "Overflow", code: null, selector: "0x35278d12", signature: "Overflow()" },
95
101
  { chain: "evm", name: "OverOwed", message: "OverOwed", code: null, selector: "0xbf537318", signature: "OverOwed()" },
96
102
  { chain: "evm", name: "PresetDeleted", message: "PresetDeleted", code: null, selector: "0xf94f84f1", signature: "PresetDeleted()" },
@@ -96,6 +96,7 @@ export const FLOOR_AMM_V2_FUNCTIONS = [
96
96
  { module: "floorAmmV2", name: "buyFromBalance", signature: "buyFromBalance(uint256,uint256,address,address,uint256)", selector: "0x5f9f56d2", outputs: "((uint256,uint256,uint256,uint256,bool,bool,bool))" },
97
97
  { module: "floorAmmV2", name: "creditBacking", signature: "creditBacking(uint256,uint256)", selector: "0x1f341504", outputs: "()" },
98
98
  { module: "floorAmmV2", name: "nextModule", signature: "nextModule()", selector: "0xf85abfc7", outputs: "(address)" },
99
+ { module: "floorAmmV2", name: "noteMove", signature: "noteMove(address,address,uint256,uint256,uint256)", selector: "0xe6b761ea", outputs: "()" },
99
100
  { module: "floorAmmV2", name: "proxiableUUID", signature: "proxiableUUID()", selector: "0x52d1902d", outputs: "(bytes32)" },
100
101
  { module: "floorAmmV2", name: "quoteBuy", signature: "quoteBuy(uint256,uint256,address)", selector: "0xec7a34c9", outputs: "((uint256,uint256,uint256,uint256,bool,bool,bool))" },
101
102
  { module: "floorAmmV2", name: "quoteSell", signature: "quoteSell(uint256,uint256,address)", selector: "0x0cff08d1", outputs: "(uint256)" },
@@ -109,7 +110,7 @@ export const FLOOR_AMM_V2_FUNCTIONS = [
109
110
  { module: "floorAmmViewsV2", name: "bidMoney", signature: "bidMoney(uint256)", selector: "0x8e403c51", outputs: "(uint256)" },
110
111
  { module: "floorAmmViewsV2", name: "circulatingOf", signature: "circulatingOf(uint256)", selector: "0x72812fcf", outputs: "(uint256,uint256,uint256)" },
111
112
  { module: "floorAmmViewsV2", name: "holderBook", signature: "holderBook(uint256)", selector: "0xf5d23b14", outputs: "((uint128,uint64,uint64,uint128,uint128))" },
112
- { module: "floorAmmViewsV2", name: "launchBook", signature: "launchBook(uint256)", selector: "0x926310f1", outputs: "((uint128,uint128,uint128,uint128[],uint8,(uint128,uint128,uint64,uint64,uint64,uint128,uint16,uint16,uint8,uint8)[48],uint128,uint64,uint64[],uint128[],uint8,uint8,uint128[],uint128[],uint128,uint64,bool,uint32[5]))" },
113
+ { module: "floorAmmViewsV2", name: "launchBook", signature: "launchBook(uint256)", selector: "0x926310f1", outputs: "((uint128,uint128,uint128,uint128[],uint8,(uint128,uint128,uint64,uint64,uint64,uint128,uint16,uint16,uint8,uint8)[48],uint128,uint64,uint64[],uint128[],uint8,uint8,uint128[],uint128[],uint128,uint64,bool,uint32[5],uint128,uint64,bool))" },
113
114
  { module: "floorAmmViewsV2", name: "launchCount", signature: "launchCount()", selector: "0x27cca59f", outputs: "(uint256)" },
114
115
  { module: "floorAmmViewsV2", name: "launchFeeCurve", signature: "launchFeeCurve(uint256)", selector: "0xc598083f", outputs: "((uint32[5],uint128,uint128))" },
115
116
  { module: "floorAmmViewsV2", name: "launchMilestones", signature: "launchMilestones(uint256)", selector: "0x2414ccf1", outputs: "((uint128[4],uint128[4]))" },
@@ -141,4 +142,51 @@ export const FLOOR_AMM_V2_FUNCTIONS = [
141
142
  { module: "floorAmmClaimsV2", name: "nextModule", signature: "nextModule()", selector: "0xf85abfc7", outputs: "(address)" },
142
143
  { module: "floorAmmClaimsV2", name: "teamSlotAdd", signature: "teamSlotAdd(uint256,bytes32,uint8,uint256,bool)", selector: "0xd5402e81", outputs: "()" },
143
144
  { module: "floorAmmClaimsV2", name: "unlockCreatorBuy", signature: "unlockCreatorBuy(uint256)", selector: "0xf03d6d5e", outputs: "(uint256)" },
145
+ { module: "floorAmmGovV2", name: "NATIVE", signature: "NATIVE()", selector: "0xa0cf0aea", outputs: "(address)" },
146
+ { module: "floorAmmGovV2", name: "acceptAuthority", signature: "acceptAuthority()", selector: "0x1580798f", outputs: "()" },
147
+ { module: "floorAmmGovV2", name: "accounted", signature: "accounted(address)", selector: "0xee1a56ce", outputs: "(uint256)" },
148
+ { module: "floorAmmGovV2", name: "addQuote", signature: "addQuote(address,uint256,uint256)", selector: "0x488c664b", outputs: "()" },
149
+ { module: "floorAmmGovV2", name: "authority", signature: "authority()", selector: "0xbf7e214f", outputs: "(address)" },
150
+ { module: "floorAmmGovV2", name: "bindHandle", signature: "bindHandle(bytes32,address,address[],uint256,bytes,bytes)", selector: "0xcea3463e", outputs: "()" },
151
+ { module: "floorAmmGovV2", name: "claimPayoutTo", signature: "claimPayoutTo(address,address)", selector: "0xc14ab75d", outputs: "(uint256)" },
152
+ { module: "floorAmmGovV2", name: "clearTraderRef", signature: "clearTraderRef(address)", selector: "0x53550430", outputs: "()" },
153
+ { module: "floorAmmGovV2", name: "createPaused", signature: "createPaused()", selector: "0xbac7b497", outputs: "(bool)" },
154
+ { module: "floorAmmGovV2", name: "floorTokenAccrued", signature: "floorTokenAccrued(address)", selector: "0xf3a261f9", outputs: "(uint256)" },
155
+ { module: "floorAmmGovV2", name: "handleOwed", signature: "handleOwed(bytes32,address)", selector: "0xaad2ed5c", outputs: "(uint256)" },
156
+ { module: "floorAmmGovV2", name: "handleWallet", signature: "handleWallet(bytes32)", selector: "0xc6da686d", outputs: "(address)" },
157
+ { module: "floorAmmGovV2", name: "holderBucket", signature: "holderBucket(address)", selector: "0x088806d0", outputs: "(uint256)" },
158
+ { module: "floorAmmGovV2", name: "holderDest", signature: "holderDest()", selector: "0x84a6263a", outputs: "(address)" },
159
+ { module: "floorAmmGovV2", name: "initialize", signature: "initialize(address,address,address,address)", selector: "0xf8c8765e", outputs: "()" },
160
+ { module: "floorAmmGovV2", name: "metadataBase", signature: "metadataBase()", selector: "0x65b973c3", outputs: "(string)" },
161
+ { module: "floorAmmGovV2", name: "moveHandleOwed", signature: "moveHandleOwed(bytes32,address[])", selector: "0xc43594a1", outputs: "(uint256)" },
162
+ { module: "floorAmmGovV2", name: "nativeCreateFee", signature: "nativeCreateFee()", selector: "0x10b51e45", outputs: "(uint256)" },
163
+ { module: "floorAmmGovV2", name: "ogCount", signature: "ogCount()", selector: "0x9457990a", outputs: "(uint16,uint64)" },
164
+ { module: "floorAmmGovV2", name: "ogUserOf", signature: "ogUserOf(address)", selector: "0x6df29e2f", outputs: "(uint64,uint64,bool)" },
165
+ { module: "floorAmmGovV2", name: "owedOf", signature: "owedOf(address,address)", selector: "0xfacba08d", outputs: "((uint128,uint128,uint128,uint128,uint128,uint128))" },
166
+ { module: "floorAmmGovV2", name: "owedOfMany", signature: "owedOfMany(address,address[])", selector: "0xa1efa4ba", outputs: "((uint128,uint128,uint128,uint128,uint128,uint128)[])" },
167
+ { module: "floorAmmGovV2", name: "payoutOwed", signature: "payoutOwed(address,address)", selector: "0xae3f9120", outputs: "(uint256)" },
168
+ { module: "floorAmmGovV2", name: "pendingAuthority", signature: "pendingAuthority()", selector: "0xfabb94bb", outputs: "(address)" },
169
+ { module: "floorAmmGovV2", name: "platformOwed", signature: "platformOwed(address)", selector: "0x240b9586", outputs: "(uint256)" },
170
+ { module: "floorAmmGovV2", name: "priceUpdater", signature: "priceUpdater()", selector: "0xfc612a8d", outputs: "(address)" },
171
+ { module: "floorAmmGovV2", name: "quoteEntry", signature: "quoteEntry(address)", selector: "0x77665076", outputs: "((bool,bool,uint8,uint256,uint256,uint64,uint64))" },
172
+ { module: "floorAmmGovV2", name: "quoteRisk", signature: "quoteRisk(address)", selector: "0x1461d14e", outputs: "(uint256,uint256,(uint128,uint32,uint32,uint64))" },
173
+ { module: "floorAmmGovV2", name: "quotes", signature: "quotes()", selector: "0xd6a5d7db", outputs: "(address[])" },
174
+ { module: "floorAmmGovV2", name: "referralAuthority", signature: "referralAuthority()", selector: "0x2fe0a99a", outputs: "(address)" },
175
+ { module: "floorAmmGovV2", name: "revokeOgUser", signature: "revokeOgUser(address)", selector: "0x52e52ecc", outputs: "()" },
176
+ { module: "floorAmmGovV2", name: "setCreatePaused", signature: "setCreatePaused(bool)", selector: "0x83bcec85", outputs: "()" },
177
+ { module: "floorAmmGovV2", name: "setHolderDest", signature: "setHolderDest(address)", selector: "0x6ad3e66d", outputs: "()" },
178
+ { module: "floorAmmGovV2", name: "setMetadataBase", signature: "setMetadataBase(string)", selector: "0xd3811c0f", outputs: "()" },
179
+ { module: "floorAmmGovV2", name: "setNativeCreateFee", signature: "setNativeCreateFee(uint256)", selector: "0xa4433667", outputs: "()" },
180
+ { module: "floorAmmGovV2", name: "setOgUser", signature: "setOgUser(address,uint256,bytes)", selector: "0x02cb4469", outputs: "()" },
181
+ { module: "floorAmmGovV2", name: "setPriceUpdater", signature: "setPriceUpdater(address)", selector: "0x97c4a5f3", outputs: "()" },
182
+ { module: "floorAmmGovV2", name: "setQuoteCap", signature: "setQuoteCap(address,uint128)", selector: "0x42adf398", outputs: "()" },
183
+ { module: "floorAmmGovV2", name: "setQuotePrice", signature: "setQuotePrice(address,uint256)", selector: "0x3857ed9e", outputs: "()" },
184
+ { module: "floorAmmGovV2", name: "setReferralAuthority", signature: "setReferralAuthority(address)", selector: "0x46325d7a", outputs: "()" },
185
+ { module: "floorAmmGovV2", name: "setTimelock", signature: "setTimelock(address)", selector: "0xbdacb303", outputs: "()" },
186
+ { module: "floorAmmGovV2", name: "setTraderRef", signature: "setTraderRef(address,address[3],uint256,bytes,bytes)", selector: "0xd7426758", outputs: "()" },
187
+ { module: "floorAmmGovV2", name: "setTreasury", signature: "setTreasury(address)", selector: "0xf0f44260", outputs: "()" },
188
+ { module: "floorAmmGovV2", name: "timelock", signature: "timelock()", selector: "0xd33219b4", outputs: "(address)" },
189
+ { module: "floorAmmGovV2", name: "transferAuthority", signature: "transferAuthority(address)", selector: "0x3078db6c", outputs: "()" },
190
+ { module: "floorAmmGovV2", name: "treasury", signature: "treasury()", selector: "0x61d027b3", outputs: "(address)" },
191
+ { module: "floorAmmGovV2", name: "updateQuote", signature: "updateQuote(address,bool,uint256,uint256)", selector: "0x21593d6e", outputs: "()" },
144
192
  ];
@@ -17,6 +17,9 @@ export const SOLANA_EVENT_SCHEMAS = [
17
17
  { name: "TraderRefOpened", discriminator: "b19ede398fd84173", source: "v1", fields: [["trader","pubkey"],["quoteMint","pubkey"],["tiers","pubkey[3]"]] },
18
18
  { name: "TraderLinkOpened", discriminator: "ce3cf7987530744b", source: "v1", fields: [["trader","pubkey"],["tiers","pubkey[3]"]] },
19
19
  { name: "TraderRefCleared", discriminator: "2248a8735d5891ac", source: "v1", fields: [["trader","pubkey"],["records","u16"]] },
20
+ { name: "OgUserSet", discriminator: "fa6fd6a5ca80af7e", source: "v1", fields: [["referrer","pubkey"],["from","i64"],["until","i64"],["count","u16"]] },
21
+ { name: "OgUserRevoked", discriminator: "500ecde2e01f6590", source: "v1", fields: [["referrer","pubkey"],["until","i64"],["count","u16"]] },
22
+ { name: "OgSynced", discriminator: "c4e2e1034f80b86e", source: "v1", fields: [["referrer","pubkey"],["records","u16"]] },
20
23
  { name: "CreatorBuyUnlocked", discriminator: "2a091cbbe392c8fc", source: "v1", fields: [["launch","pubkey"],["creator","pubkey"],["tokens","u64"],["members","u64[10]?"],["paid","u64?"]] },
21
24
  { name: "RefOwedOpened", discriminator: "c6738dc0a56e6a77", source: "v1", fields: [["referrer","pubkey"],["quoteMint","pubkey"]] },
22
25
  { name: "RefsRolled", discriminator: "65150ff9ec7a53ab", source: "v1", fields: [["quoteMint","pubkey"],["traderRefs","u16"],["amount","u64"]] },
@@ -52,6 +55,7 @@ export const SOLANA_EVENT_SCHEMAS = [
52
55
  { name: "HolderPositionClosed", discriminator: "a5451f6d7c8dab3c", source: "v2", fields: [["launch","pubkey"],["owner","pubkey"],["amount","u64"],["paid","u64"]] },
53
56
  { name: "HolderIndexRolled", discriminator: "5c857c0e16a9a203", source: "v2", fields: [["launch","pubkey"],["index","u128"],["wMatured","u64"],["wPending","u64"],["carry","u64"]] },
54
57
  { name: "DeadSynced", discriminator: "29e5a9cda4b90d32", source: "v2", fields: [["launch","pubkey"],["added","u64"],["deadTokens","u64"],["sCirc","u64"]] },
58
+ { name: "RefSlices", discriminator: "328f40d2f919f9a9", source: "v2", fields: [["launch","pubkey"],["trader","pubkey"],["traderParts","u64[3]"],["creatorParts","u64[3]"],["og","u8"]] },
55
59
  { name: "GenesisRaiseBought", discriminator: "81c072c6908a578b", source: "v2", fields: [["launch","pubkey"],["trader","pubkey"],["isBuy","bool"],["quoteGross","u64"],["quoteNet","u64"],["refund","u64"],["tokens","u64"],["fees","u64[5]"],["traderRef","u64"],["fromResale","u64"],["fromFirst","u64"],["unfilled","u64"],["sqrtBefore","u128"],["sqrtAfter","u128"],["sqrtF","u128"],["floor","u64"],["cushion","u64"],["sCirc","u64"],["steps","u8"],["budgetHit","bool"],["slot","u64"],["ts","i64"],["kind","u8"],["creatorRef","u64"],["recipient","pubkey"],["bidMoney","u64"],["msPaid","u64[4]"]] },
56
60
  ];
57
61
 
@@ -127,4 +131,5 @@ export const SOLANA_ERRORS = [
127
131
  { chain: "solana", name: "HookAccountsMissing", message: "the transfer-hook accounts are missing", code: 6068, selector: null, signature: null },
128
132
  { chain: "solana", name: "RowTooManyRanges", message: "the row has too many ranges", code: 6069, selector: null, signature: null },
129
133
  { chain: "solana", name: "RowNotFeasible", message: "the row fails the feasibility check", code: 6070, selector: null, signature: null },
134
+ { chain: "solana", name: "OgFull", message: "the OG Users are full: OG_MAX windows are set on this chain", code: 6071, selector: null, signature: null },
130
135
  ];
@@ -27113,6 +27113,83 @@ export const CHAIN_ROWS = [
27113
27113
  "address": "0xfd6f06d323f6cb08ee9eeb2d201e9ec0e9112c88",
27114
27114
  "decimals": 18,
27115
27115
  "kind": "stock"
27116
+ },
27117
+ {
27118
+ "symbol": "EQQQQ",
27119
+ "name": "EQX Tokenized QQQ",
27120
+ "address": "0x095cca17f0619596115eA09bbE1D80431685Ba1A",
27121
+ "decimals": 8,
27122
+ "kind": "stock"
27123
+ },
27124
+ {
27125
+ "symbol": "EQSPY",
27126
+ "name": "EQX Tokenized SPY",
27127
+ "address": "0x07A76acCed707De999A54D39aFF62A2d7ac4CC81",
27128
+ "decimals": 8,
27129
+ "kind": "stock"
27130
+ },
27131
+ {
27132
+ "symbol": "EQNVDA",
27133
+ "name": "EQX Tokenized NVDA",
27134
+ "address": "0xA23aFe6Bd466BdB806a83AfDDA76F644FC4347CF",
27135
+ "decimals": 8,
27136
+ "kind": "stock"
27137
+ },
27138
+ {
27139
+ "symbol": "EQTSLA",
27140
+ "name": "EQX Tokenized TSLA",
27141
+ "address": "0x883DAd2Aa97175c0D1569E1de61204ac47b2b8fb",
27142
+ "decimals": 8,
27143
+ "kind": "stock"
27144
+ },
27145
+ {
27146
+ "symbol": "EQAAPL",
27147
+ "name": "EQX Tokenized AAPL",
27148
+ "address": "0x15d82780780Ca72570818f91587B752562D655bc",
27149
+ "decimals": 8,
27150
+ "kind": "stock"
27151
+ },
27152
+ {
27153
+ "symbol": "EQGOOG",
27154
+ "name": "EQX Tokenized GOOGL",
27155
+ "address": "0x4720b40C89Ff3A74C6bE8eA34Cf40FaE5eacEd79",
27156
+ "decimals": 8,
27157
+ "kind": "stock"
27158
+ },
27159
+ {
27160
+ "symbol": "EQMETA",
27161
+ "name": "EQX Tokenized META",
27162
+ "address": "0xF5c6190d9178097563372a4acA15D52Ec24F129A",
27163
+ "decimals": 8,
27164
+ "kind": "stock"
27165
+ },
27166
+ {
27167
+ "symbol": "EQMSFT",
27168
+ "name": "EQX Tokenized MSFT",
27169
+ "address": "0xca911A8ae21baAf9CDec0baa45259c64Ec8AE59E",
27170
+ "decimals": 8,
27171
+ "kind": "stock"
27172
+ },
27173
+ {
27174
+ "symbol": "EQAMZN",
27175
+ "name": "EQX Tokenized AMZN",
27176
+ "address": "0x582C6ADd0eb720EA1c2e2019fF9b7c21Fe99288F",
27177
+ "decimals": 8,
27178
+ "kind": "stock"
27179
+ },
27180
+ {
27181
+ "symbol": "EQMU",
27182
+ "name": "EQX Tokenized MU",
27183
+ "address": "0x9164Fd5f67FE4188Ff79675182183512bC37d66D",
27184
+ "decimals": 8,
27185
+ "kind": "stock"
27186
+ },
27187
+ {
27188
+ "symbol": "EQSPCX",
27189
+ "name": "EQX Tokenized SPCX",
27190
+ "address": "0xF115FF708A795cD0E06531Dec57ed716138bE8BD",
27191
+ "decimals": 8,
27192
+ "kind": "stock"
27116
27193
  }
27117
27194
  ]
27118
27195
  },
package/dist/errors.js CHANGED
@@ -71,7 +71,7 @@ export const SOLANA_ERROR_NAMES = [
71
71
  "GenesisDustNotYet", "GenesisConvertCapped", "GenesisPriceStale", "GenesisConvertSlippage", "GenesisSolNotConverted",
72
72
  "GenesisWagmiWrongState", "GenesisWagmiNoPreset", "GenesisWagmiQuoteNotListed", "HolderDestNotSet", "NotTeamMember",
73
73
  "BurnTooLarge", "NothingToSettle", "HolderPositionExists", "HolderPositionNotEmpty", "HolderBookMismatch", "DeadAccountNotDead",
74
- "HookAccountsMissing", "RowTooManyRanges", "RowNotFeasible",
74
+ "HookAccountsMissing", "RowTooManyRanges", "RowNotFeasible", "OgFull",
75
75
  ] ;
76
76
 
77
77
  export const SOLANA_ERROR_BASE = 6000;
@@ -94,7 +94,7 @@ const EXACT = {
94
94
  OverOwed: "OverOwed", ClaimsShort: "OverOwed", UnknownClaimType: "UnknownClaimType",
95
95
  TeamSlotRateOverMax: "TeamSlot", TeamSlotFull: "TeamSlot", TeamSlotPaid: "TeamSlot", TeamSlotExists: "TeamSlot", TeamSlotNoRequest: "TeamSlot",
96
96
  NotPendingHandle: "TeamSlot", BadMember: "TeamSlot", HandleAlreadyBound: "TeamSlot",
97
- TraderRefMismatch: "Referral", TraderRefSet: "Referral", BadReferralSig: "Referral", BadSignature: "Referral", ReferralSigExpired: "Referral",
97
+ TraderRefMismatch: "Referral", TraderRefSet: "Referral", OgFull: "Referral", BadReferralSig: "Referral", BadSignature: "Referral", ReferralSigExpired: "Referral",
98
98
  BurnTooLarge: "BurnTooLarge", PageFull: "PageFull",
99
99
  NotAuthority: "NotAuthorized", NotUpgradeAuthority: "NotAuthorized", NotPriceUpdater: "NotAuthorized", RoleNotHeld: "NotAuthorized",
100
100
  NotTeamMember: "NotAuthorized", NotCreator: "NotAuthorized", NotTimelock: "NotAuthorized", NotReferralAuthority: "NotAuthorized",
@@ -1,3 +1,3 @@
1
1
 
2
2
 
3
- export const SHARED_EVENT_NAMES = ["BackingCredited","Claimed","ConfigWritten","CreatorBuyUnlocked","DeadSynced","Graduated","HandleBound","HolderIndexRolled","HolderWithdrawn","LaunchCreated","MetadataBaseSet","PlatformWithdrawn","PotsSwept","PresetWritten","QuoteWritten","TeamShareBought","TeamSlotMember","TeamSlotOpened","Trade","TraderRefCleared","TraderRefOpened"] ;
3
+ export const SHARED_EVENT_NAMES = ["BackingCredited","Claimed","ConfigWritten","CreatorBuyUnlocked","DeadSynced","Graduated","HandleBound","HolderIndexRolled","HolderWithdrawn","LaunchCreated","MetadataBaseSet","OgUserRevoked","OgUserSet","PlatformWithdrawn","PotsSwept","PresetWritten","QuoteWritten","RefSlices","TeamShareBought","TeamSlotMember","TeamSlotOpened","Trade","TraderRefCleared","TraderRefOpened"] ;