@floorlaunchpad/sdk 0.6.0 → 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.
- package/CHANGELOG.md +136 -0
- package/dist/abi/evm-event-names.js +7 -0
- package/dist/abi/evm.gen.js +6 -0
- package/dist/abi/functions.gen.js +48 -0
- package/dist/abi/solana.gen.js +5 -0
- package/dist/errors.js +2 -2
- package/dist/events/types.gen.js +1 -1
- package/dist/evm/chains.js +31 -0
- package/dist/evm/floor/calls.js +5 -0
- package/dist/evm/squid.js +1 -1
- package/dist/generated/interface.gen.js +48 -43
- package/dist/indexer/bodies.js +135 -4
- package/dist/indexer/client.js +10 -1
- package/dist/indexer/contract.js +65 -6
- package/dist/indexer/paths.js +34 -7
- package/dist/indexer/read.js +12 -3
- package/dist/indexer/stream.js +2 -2
- package/dist/math/v2/fees.js +30 -4
- package/dist/math/v2/milestones.js +1 -1
- package/dist/math/v2/receipt.js +3 -3
- package/dist/math/v2/rows.js +17 -0
- package/dist/math/v2/team.js +14 -1
- package/dist/solana/floor/accounts.js +30 -3
- package/dist/solana/floor/events.js +6 -0
- package/dist/solana/floor/instructions.js +23 -1
- package/dist/solana/floor/program.js +3 -0
- package/dist/ton/gas.js +2 -2
- package/dist/v2/events.js +2 -0
- package/dist/v2/evm.js +5 -0
- package/dist/v2/layouts.js +3 -1
- package/dist/v2/solana.js +1 -1
- package/dist/v2/tx/evm.js +15 -1
- package/docs/cursor-pages.md +9 -3
- package/docs/ton.md +1 -1
- package/package.json +1 -1
- package/src/abi/evm-event-names.ts +7 -0
- package/src/abi/evm.gen.ts +6 -0
- package/src/abi/functions.gen.ts +48 -0
- package/src/abi/solana.gen.ts +5 -0
- package/src/errors.ts +2 -2
- package/src/events/types.gen.ts +57 -1
- package/src/evm/chains.ts +31 -0
- package/src/evm/floor/calls.ts +5 -0
- package/src/evm/squid.ts +1 -1
- package/src/generated/interface.gen.ts +48 -43
- package/src/indexer/bodies.ts +142 -4
- package/src/indexer/client.ts +17 -4
- package/src/indexer/contract.ts +66 -7
- package/src/indexer/paths.ts +62 -7
- package/src/indexer/read.ts +14 -5
- package/src/indexer/stream.ts +4 -4
- package/src/math/v2/fees.ts +30 -4
- package/src/math/v2/milestones.ts +1 -1
- package/src/math/v2/receipt.ts +7 -3
- package/src/math/v2/rows.ts +17 -0
- package/src/math/v2/team.ts +14 -1
- package/src/solana/floor/accounts.ts +30 -3
- package/src/solana/floor/events.ts +6 -0
- package/src/solana/floor/instructions.ts +23 -1
- package/src/solana/floor/program.ts +3 -0
- package/src/ton/gas.ts +2 -2
- package/src/v2/events.ts +3 -1
- package/src/v2/evm.ts +5 -0
- package/src/v2/layouts.ts +3 -1
- package/src/v2/solana.ts +1 -1
- package/src/v2/tx/evm.ts +15 -1
- package/src/v2/types.ts +11 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,142 @@
|
|
|
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.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
|
+
|
|
5
141
|
## 0.6.0
|
|
6
142
|
|
|
7
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
|
|
@@ -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
|
@@ -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)" },
|
|
@@ -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
|
];
|
package/dist/abi/solana.gen.js
CHANGED
|
@@ -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
|
];
|
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",
|
package/dist/events/types.gen.js
CHANGED
|
@@ -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"] ;
|
package/dist/evm/chains.js
CHANGED
|
@@ -170,6 +170,37 @@ export function floorAmmAddressV2(p
|
|
|
170
170
|
|
|
171
171
|
export const tokenImplAddressV2 = (p ) => at(p.salt, p.code);
|
|
172
172
|
|
|
173
|
+
export const LAUNCH_TOKEN_IMPLS = {
|
|
174
|
+
live: "0xF1009235c447fcA25e8792784772EDA720e2b822",
|
|
175
|
+
holderMoved: "0x91E2311c9c77a56945c082dd8d9ff7bF0eC2B79B",
|
|
176
|
+
} ;
|
|
177
|
+
|
|
178
|
+
export const HOLDER_MOVED_FIRST_LAUNCH_ID = {
|
|
179
|
+
ethereum: 1, base: 1, bsc: 1, arbitrum: 1, arc: 1, robinhood: 1, hyperevm: 1, elysium: 1,
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
export function tokenImplForLaunch(p ) {
|
|
183
|
+
const first = p.firstId !== undefined ? p.firstId : HOLDER_MOVED_FIRST_LAUNCH_ID[p.chain];
|
|
184
|
+
return first !== null && BigInt(p.id) >= BigInt(first) ? LAUNCH_TOKEN_IMPLS.holderMoved : LAUNCH_TOKEN_IMPLS.live;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
export function tokenImplOfCode(code ) {
|
|
188
|
+
const c = code.toLowerCase().replace(/^0x/, "");
|
|
189
|
+
const m = /^363d3d373d3d3d363d73([0-9a-f]{40})5af43d82803e903d91602b57fd5bf3$/.exec(c);
|
|
190
|
+
return m ? "0x" + m[1] : null;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
export const isLaunchTokenImpl = (impl ) =>
|
|
194
|
+
impl !== null && Object.values(LAUNCH_TOKEN_IMPLS).some((a) => a.toLowerCase() === impl.toLowerCase());
|
|
195
|
+
|
|
196
|
+
export function launchTokenCodeKind(code ) {
|
|
197
|
+
const i = tokenImplOfCode(code);
|
|
198
|
+
if (i === null) return null;
|
|
199
|
+
if (i === LAUNCH_TOKEN_IMPLS.live.toLowerCase()) return "live";
|
|
200
|
+
if (i === LAUNCH_TOKEN_IMPLS.holderMoved.toLowerCase()) return "holderMoved";
|
|
201
|
+
return null;
|
|
202
|
+
}
|
|
203
|
+
|
|
173
204
|
export function zapDeployerAddressV2(p ) {
|
|
174
205
|
return at(FLOOR_SALTS.zapDeployer, cat(p.code, bytesToHex(encodeAbi(["address", "address"], [p.floorAmm, p.authority]))));
|
|
175
206
|
}
|
package/dist/evm/floor/calls.js
CHANGED
|
@@ -183,6 +183,11 @@ export function traderRefAuthDigest(p
|
|
|
183
183
|
return { digest: bytesToHex(d), message: eip191(d) };
|
|
184
184
|
}
|
|
185
185
|
|
|
186
|
+
export function ogUserAuthDigest(p ) {
|
|
187
|
+
const d = keccak256(encodeAbi(["string", "uint256", "address", "address", "uint256"], ["floor.amm.ogUser.auth.v1", p.chainId, p.floorAmm, p.referrer, p.deadline]));
|
|
188
|
+
return { digest: bytesToHex(d), message: eip191(d) };
|
|
189
|
+
}
|
|
190
|
+
|
|
186
191
|
export function bindHandleAuthDigest(p ) {
|
|
187
192
|
const d = keccak256(
|
|
188
193
|
encodeAbi(
|
package/dist/evm/squid.js
CHANGED
|
@@ -19,7 +19,7 @@ export class SquidHookError extends Error {
|
|
|
19
19
|
|
|
20
20
|
export const SQUID_TOKEN_SCALE = 10n ** 12n;
|
|
21
21
|
|
|
22
|
-
export const SQUID_GAS = { transfer:
|
|
22
|
+
export const SQUID_GAS = { transfer: 100_000, buy: 1_100_000, sell: 850_000, zapBuy: 1_300_000, passOn: 30_000 } ;
|
|
23
23
|
|
|
24
24
|
const ZERO = "0x" + "0".repeat(40);
|
|
25
25
|
const lc = (a , what ) => {
|
|
@@ -11,17 +11,17 @@ export const CLAIM_KNOWN_MASKS = {"solana":{"claim":143,"claimWideV1":399,"v2":9
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
export const EVM_FUNCTION_SELECTORS = [
|
|
14
|
-
{ name: "acceptAuthority", signature: "acceptAuthority()", selector: "0x1580798f", sources: ["floorAmm"] },
|
|
15
|
-
{ name: "accounted", signature: "accounted(address)", selector: "0xee1a56ce", sources: ["floorAmm"] },
|
|
14
|
+
{ name: "acceptAuthority", signature: "acceptAuthority()", selector: "0x1580798f", sources: ["floorAmm","floorAmmGovV2"] },
|
|
15
|
+
{ name: "accounted", signature: "accounted(address)", selector: "0xee1a56ce", sources: ["floorAmm","floorAmmGovV2"] },
|
|
16
16
|
{ name: "addPreset", signature: "addPreset(uint8,bytes)", selector: "0xb88257b1", sources: ["floorAmm"] },
|
|
17
|
-
{ name: "addQuote", signature: "addQuote(address,uint256,uint256)", selector: "0x488c664b", sources: ["floorAmm"] },
|
|
17
|
+
{ name: "addQuote", signature: "addQuote(address,uint256,uint256)", selector: "0x488c664b", sources: ["floorAmm","floorAmmGovV2"] },
|
|
18
18
|
{ name: "addReward", signature: "addReward(uint256)", selector: "0x74de4ec4", sources: ["floorTokenIndexed"] },
|
|
19
19
|
{ name: "allowance", signature: "allowance(address,address)", selector: "0xdd62ed3e", sources: ["floorToken","floorTokenIndexed"] },
|
|
20
20
|
{ name: "approve", signature: "approve(address,uint256)", selector: "0x095ea7b3", sources: ["floorToken","floorTokenIndexed"] },
|
|
21
|
-
{ name: "authority", signature: "authority()", selector: "0xbf7e214f", sources: ["floorAmm"] },
|
|
21
|
+
{ name: "authority", signature: "authority()", selector: "0xbf7e214f", sources: ["floorAmm","floorAmmGovV2"] },
|
|
22
22
|
{ name: "balanceOf", signature: "balanceOf(address)", selector: "0x70a08231", sources: ["floorToken","floorTokenIndexed"] },
|
|
23
23
|
{ name: "bidMoney", signature: "bidMoney(uint256)", selector: "0x8e403c51", sources: ["floorAmmViewsV2"] },
|
|
24
|
-
{ name: "bindHandle", signature: "bindHandle(bytes32,address,address[],uint256,bytes,bytes)", selector: "0xcea3463e", sources: ["floorAmm"] },
|
|
24
|
+
{ name: "bindHandle", signature: "bindHandle(bytes32,address,address[],uint256,bytes,bytes)", selector: "0xcea3463e", sources: ["floorAmm","floorAmmGovV2"] },
|
|
25
25
|
{ name: "bookEngine", signature: "bookEngine()", selector: "0x72148c77", sources: ["floorAmmV2"] },
|
|
26
26
|
{ name: "bookState", signature: "bookState()", selector: "0x2c14e3f2", sources: ["floorTokenIndexed"] },
|
|
27
27
|
{ name: "bookTotals", signature: "bookTotals()", selector: "0xbffc2073", sources: ["floorTokenIndexed"] },
|
|
@@ -35,11 +35,11 @@ export const EVM_FUNCTION_SELECTORS = [
|
|
|
35
35
|
{ name: "checkPreset", signature: "checkPreset(bytes)", selector: "0x6337513e", sources: ["floorAmm"] },
|
|
36
36
|
{ name: "circulatingOf", signature: "circulatingOf(uint256)", selector: "0x72812fcf", sources: ["floorAmmViewsV2"] },
|
|
37
37
|
{ name: "claim", signature: "claim(address,uint256,uint256[],address[])", selector: "0xa461a90d", sources: ["floorAmm","floorAmmClaimsV2"] },
|
|
38
|
-
{ name: "claimPayoutTo", signature: "claimPayoutTo(address,address)", selector: "0xc14ab75d", sources: ["floorAmm"] },
|
|
39
|
-
{ name: "clearTraderRef", signature: "clearTraderRef(address)", selector: "0x53550430", sources: ["floorAmm"] },
|
|
38
|
+
{ name: "claimPayoutTo", signature: "claimPayoutTo(address,address)", selector: "0xc14ab75d", sources: ["floorAmm","floorAmmGovV2"] },
|
|
39
|
+
{ name: "clearTraderRef", signature: "clearTraderRef(address)", selector: "0x53550430", sources: ["floorAmm","floorAmmGovV2"] },
|
|
40
40
|
{ name: "createBookEngine", signature: "createBookEngine()", selector: "0x0fdf26a7", sources: ["floorAmmCreateV2"] },
|
|
41
41
|
{ name: "createLaunch", signature: "createLaunch((uint8,address,string,string,uint256,uint256,bool,bytes32,uint256,uint16))", selector: "0x25b62f18", sources: ["floorAmm","floorAmmCreateV2"] },
|
|
42
|
-
{ name: "createPaused", signature: "createPaused()", selector: "0xbac7b497", sources: ["floorAmm"] },
|
|
42
|
+
{ name: "createPaused", signature: "createPaused()", selector: "0xbac7b497", sources: ["floorAmm","floorAmmGovV2"] },
|
|
43
43
|
{ name: "creditBacking", signature: "creditBacking(uint256,uint256)", selector: "0x1f341504", sources: ["floorAmmV2"] },
|
|
44
44
|
{ name: "DEAD", signature: "DEAD()", selector: "0x03fd2a45", sources: ["floorTokenIndexed"] },
|
|
45
45
|
{ name: "decimals", signature: "decimals()", selector: "0x313ce567", sources: ["floorToken","floorTokenIndexed"] },
|
|
@@ -48,13 +48,13 @@ export const EVM_FUNCTION_SELECTORS = [
|
|
|
48
48
|
{ name: "DOMAIN_SEPARATOR", signature: "DOMAIN_SEPARATOR()", selector: "0x3644e515", sources: ["floorToken","floorTokenIndexed"] },
|
|
49
49
|
{ name: "eip712Domain", signature: "eip712Domain()", selector: "0x84b0196e", sources: ["floorTokenIndexed"] },
|
|
50
50
|
{ name: "floorAmm", signature: "floorAmm()", selector: "0x78164d52", sources: ["floorZap"] },
|
|
51
|
-
{ name: "floorTokenAccrued", signature: "floorTokenAccrued(address)", selector: "0xf3a261f9", sources: ["floorAmm"] },
|
|
52
|
-
{ name: "handleOwed", signature: "handleOwed(bytes32,address)", selector: "0xaad2ed5c", sources: ["floorAmm"] },
|
|
53
|
-
{ name: "handleWallet", signature: "handleWallet(bytes32)", selector: "0xc6da686d", sources: ["floorAmm"] },
|
|
51
|
+
{ name: "floorTokenAccrued", signature: "floorTokenAccrued(address)", selector: "0xf3a261f9", sources: ["floorAmm","floorAmmGovV2"] },
|
|
52
|
+
{ name: "handleOwed", signature: "handleOwed(bytes32,address)", selector: "0xaad2ed5c", sources: ["floorAmm","floorAmmGovV2"] },
|
|
53
|
+
{ name: "handleWallet", signature: "handleWallet(bytes32)", selector: "0xc6da686d", sources: ["floorAmm","floorAmmGovV2"] },
|
|
54
54
|
{ name: "holderBook", signature: "holderBook(uint256)", selector: "0xf5d23b14", sources: ["floorAmmViewsV2"] },
|
|
55
|
-
{ name: "holderBucket", signature: "holderBucket(address)", selector: "0x088806d0", sources: ["floorAmm"] },
|
|
56
|
-
{ name: "holderDest", signature: "holderDest()", selector: "0x84a6263a", sources: ["floorAmm"] },
|
|
57
|
-
{ name: "initialize", signature: "initialize(address,address,address,address)", selector: "0xf8c8765e", sources: ["floorAmm"] },
|
|
55
|
+
{ name: "holderBucket", signature: "holderBucket(address)", selector: "0x088806d0", sources: ["floorAmm","floorAmmGovV2"] },
|
|
56
|
+
{ name: "holderDest", signature: "holderDest()", selector: "0x84a6263a", sources: ["floorAmm","floorAmmGovV2"] },
|
|
57
|
+
{ name: "initialize", signature: "initialize(address,address,address,address)", selector: "0xf8c8765e", sources: ["floorAmm","floorAmmGovV2"] },
|
|
58
58
|
{ name: "initialize", signature: "initialize(string,string,uint256)", selector: "0xb119490e", sources: ["floorTokenIndexed"] },
|
|
59
59
|
{ name: "launchBook", signature: "launchBook(uint256)", selector: "0x926310f1", sources: ["floorAmmViewsV2"] },
|
|
60
60
|
{ name: "launchCount", signature: "launchCount()", selector: "0x27cca59f", sources: ["floorAmm","floorAmmViewsV2"] },
|
|
@@ -66,56 +66,61 @@ export const EVM_FUNCTION_SELECTORS = [
|
|
|
66
66
|
{ name: "launchQuote", signature: "launchQuote(uint256)", selector: "0x98032919", sources: ["floorAmm","floorAmmViewsV2"] },
|
|
67
67
|
{ name: "launchState", signature: "launchState(uint256)", selector: "0xac3307e8", sources: ["floorAmm","floorAmmViewsV2"] },
|
|
68
68
|
{ name: "launchToken", signature: "launchToken(uint256)", selector: "0x6a19197b", sources: ["floorAmm","floorAmmViewsV2"] },
|
|
69
|
-
{ name: "metadataBase", signature: "metadataBase()", selector: "0x65b973c3", sources: ["floorAmm"] },
|
|
69
|
+
{ name: "metadataBase", signature: "metadataBase()", selector: "0x65b973c3", sources: ["floorAmm","floorAmmGovV2"] },
|
|
70
70
|
{ name: "metadataURI", signature: "metadataURI()", selector: "0x03ee438c", sources: ["floorToken","floorTokenIndexed"] },
|
|
71
|
-
{ name: "moveHandleOwed", signature: "moveHandleOwed(bytes32,address[])", selector: "0xc43594a1", sources: ["floorAmm"] },
|
|
71
|
+
{ name: "moveHandleOwed", signature: "moveHandleOwed(bytes32,address[])", selector: "0xc43594a1", sources: ["floorAmm","floorAmmGovV2"] },
|
|
72
72
|
{ name: "name", signature: "name()", selector: "0x06fdde03", sources: ["floorToken","floorTokenIndexed"] },
|
|
73
|
-
{ name: "NATIVE", signature: "NATIVE()", selector: "0xa0cf0aea", sources: ["floorAmm"] },
|
|
74
|
-
{ name: "nativeCreateFee", signature: "nativeCreateFee()", selector: "0x10b51e45", sources: ["floorAmm"] },
|
|
73
|
+
{ name: "NATIVE", signature: "NATIVE()", selector: "0xa0cf0aea", sources: ["floorAmm","floorAmmGovV2"] },
|
|
74
|
+
{ name: "nativeCreateFee", signature: "nativeCreateFee()", selector: "0x10b51e45", sources: ["floorAmm","floorAmmGovV2"] },
|
|
75
75
|
{ name: "nextModule", signature: "nextModule()", selector: "0xf85abfc7", sources: ["floorAmmV2","floorAmmViewsV2","floorAmmCreateV2","floorAmmClaimsV2"] },
|
|
76
76
|
{ name: "nextPresetId", signature: "nextPresetId()", selector: "0xc8a768e6", sources: ["floorAmm"] },
|
|
77
77
|
{ name: "nonces", signature: "nonces(address)", selector: "0x7ecebe00", sources: ["floorToken","floorTokenIndexed"] },
|
|
78
78
|
{ name: "noteBurn", signature: "noteBurn(uint256)", selector: "0x6db7cd01", sources: ["floorAmmCreateV2"] },
|
|
79
79
|
{ name: "noteDead", signature: "noteDead(uint256)", selector: "0xbdf3b0de", sources: ["floorAmmCreateV2"] },
|
|
80
|
+
{ name: "noteMove", signature: "noteMove(address,address,uint256,uint256,uint256)", selector: "0xe6b761ea", sources: ["floorAmmV2"] },
|
|
81
|
+
{ name: "ogCount", signature: "ogCount()", selector: "0x9457990a", sources: ["floorAmmGovV2"] },
|
|
82
|
+
{ name: "ogUserOf", signature: "ogUserOf(address)", selector: "0x6df29e2f", sources: ["floorAmmGovV2"] },
|
|
80
83
|
{ name: "optedIn", signature: "optedIn(address)", selector: "0x4824b8fd", sources: ["floorTokenIndexed"] },
|
|
81
84
|
{ name: "optIn", signature: "optIn()", selector: "0x5b48684e", sources: ["floorTokenIndexed"] },
|
|
82
|
-
{ name: "owedOf", signature: "owedOf(address,address)", selector: "0xfacba08d", sources: ["floorAmm"] },
|
|
83
|
-
{ name: "owedOfMany", signature: "owedOfMany(address,address[])", selector: "0xa1efa4ba", sources: ["floorAmm"] },
|
|
85
|
+
{ name: "owedOf", signature: "owedOf(address,address)", selector: "0xfacba08d", sources: ["floorAmm","floorAmmGovV2"] },
|
|
86
|
+
{ name: "owedOfMany", signature: "owedOfMany(address,address[])", selector: "0xa1efa4ba", sources: ["floorAmm","floorAmmGovV2"] },
|
|
84
87
|
{ name: "owedV2", signature: "owedV2(address,uint256[],address[])", selector: "0xdd3ee1ef", sources: ["floorAmmViewsV2"] },
|
|
85
88
|
{ name: "pairIdOf", signature: "pairIdOf(uint256)", selector: "0x83a74ea3", sources: ["floorAmmViewsV2"] },
|
|
86
|
-
{ name: "payoutOwed", signature: "payoutOwed(address,address)", selector: "0xae3f9120", sources: ["floorAmm"] },
|
|
87
|
-
{ name: "pendingAuthority", signature: "pendingAuthority()", selector: "0xfabb94bb", sources: ["floorAmm"] },
|
|
89
|
+
{ name: "payoutOwed", signature: "payoutOwed(address,address)", selector: "0xae3f9120", sources: ["floorAmm","floorAmmGovV2"] },
|
|
90
|
+
{ name: "pendingAuthority", signature: "pendingAuthority()", selector: "0xfabb94bb", sources: ["floorAmm","floorAmmGovV2"] },
|
|
88
91
|
{ name: "permit", signature: "permit(address,address,uint256,uint256,uint8,bytes32,bytes32)", selector: "0xd505accf", sources: ["floorToken","floorTokenIndexed"] },
|
|
89
|
-
{ name: "platformOwed", signature: "platformOwed(address)", selector: "0x240b9586", sources: ["floorAmm"] },
|
|
92
|
+
{ name: "platformOwed", signature: "platformOwed(address)", selector: "0x240b9586", sources: ["floorAmm","floorAmmGovV2"] },
|
|
90
93
|
{ name: "positionOf", signature: "positionOf(address)", selector: "0xfd2d39c5", sources: ["floorTokenIndexed"] },
|
|
91
94
|
{ name: "predictToken", signature: "predictToken(address,bytes32)", selector: "0x486e36c8", sources: ["floorAmm","floorAmmCreateV2"] },
|
|
92
95
|
{ name: "presetRow", signature: "presetRow(uint8)", selector: "0xa0c15861", sources: ["floorAmm"] },
|
|
93
|
-
{ name: "priceUpdater", signature: "priceUpdater()", selector: "0xfc612a8d", sources: ["floorAmm"] },
|
|
96
|
+
{ name: "priceUpdater", signature: "priceUpdater()", selector: "0xfc612a8d", sources: ["floorAmm","floorAmmGovV2"] },
|
|
94
97
|
{ name: "program", signature: "program()", selector: "0xc860ebc6", sources: ["floorToken","floorTokenIndexed"] },
|
|
95
98
|
{ name: "proxiableUUID", signature: "proxiableUUID()", selector: "0x52d1902d", sources: ["floorAmmV2"] },
|
|
96
99
|
{ name: "quoteBuy", signature: "quoteBuy(uint256,uint256,address)", selector: "0xec7a34c9", sources: ["floorAmm","floorAmmV2"] },
|
|
97
|
-
{ name: "quoteEntry", signature: "quoteEntry(address)", selector: "0x77665076", sources: ["floorAmm"] },
|
|
98
|
-
{ name: "quoteRisk", signature: "quoteRisk(address)", selector: "0x1461d14e", sources: ["floorAmm"] },
|
|
99
|
-
{ name: "quotes", signature: "quotes()", selector: "0xd6a5d7db", sources: ["floorAmm"] },
|
|
100
|
+
{ name: "quoteEntry", signature: "quoteEntry(address)", selector: "0x77665076", sources: ["floorAmm","floorAmmGovV2"] },
|
|
101
|
+
{ name: "quoteRisk", signature: "quoteRisk(address)", selector: "0x1461d14e", sources: ["floorAmm","floorAmmGovV2"] },
|
|
102
|
+
{ name: "quotes", signature: "quotes()", selector: "0xd6a5d7db", sources: ["floorAmm","floorAmmGovV2"] },
|
|
100
103
|
{ name: "quoteSell", signature: "quoteSell(uint256,uint256,address)", selector: "0x0cff08d1", sources: ["floorAmm","floorAmmV2"] },
|
|
101
|
-
{ name: "referralAuthority", signature: "referralAuthority()", selector: "0x2fe0a99a", sources: ["floorAmm"] },
|
|
104
|
+
{ name: "referralAuthority", signature: "referralAuthority()", selector: "0x2fe0a99a", sources: ["floorAmm","floorAmmGovV2"] },
|
|
102
105
|
{ name: "releaseSkipped", signature: "releaseSkipped(address)", selector: "0x215fa9eb", sources: ["floorTokenIndexed"] },
|
|
106
|
+
{ name: "revokeOgUser", signature: "revokeOgUser(address)", selector: "0x52e52ecc", sources: ["floorAmmGovV2"] },
|
|
103
107
|
{ name: "router", signature: "router()", selector: "0xf887ea40", sources: ["floorZap"] },
|
|
104
108
|
{ name: "sell", signature: "sell(uint256,uint256,uint256,address,uint256)", selector: "0xbadb999b", sources: ["floorAmm","floorAmmV2"] },
|
|
105
109
|
{ name: "sellFromBalance", signature: "sellFromBalance(uint256,uint256,address,uint256)", selector: "0x611b00a8", sources: ["floorAmm","floorAmmV2"] },
|
|
106
110
|
{ name: "sellWithPermit", signature: "sellWithPermit(uint256,uint256,uint256,address,uint256,uint256,uint8,bytes32,bytes32)", selector: "0x2ab030d3", sources: ["floorAmm","floorAmmV2"] },
|
|
107
|
-
{ name: "setCreatePaused", signature: "setCreatePaused(bool)", selector: "0x83bcec85", sources: ["floorAmm"] },
|
|
108
|
-
{ name: "setHolderDest", signature: "setHolderDest(address)", selector: "0x6ad3e66d", sources: ["floorAmm"] },
|
|
109
|
-
{ name: "setMetadataBase", signature: "setMetadataBase(string)", selector: "0xd3811c0f", sources: ["floorAmm"] },
|
|
110
|
-
{ name: "setNativeCreateFee", signature: "setNativeCreateFee(uint256)", selector: "0xa4433667", sources: ["floorAmm"] },
|
|
111
|
+
{ name: "setCreatePaused", signature: "setCreatePaused(bool)", selector: "0x83bcec85", sources: ["floorAmm","floorAmmGovV2"] },
|
|
112
|
+
{ name: "setHolderDest", signature: "setHolderDest(address)", selector: "0x6ad3e66d", sources: ["floorAmm","floorAmmGovV2"] },
|
|
113
|
+
{ name: "setMetadataBase", signature: "setMetadataBase(string)", selector: "0xd3811c0f", sources: ["floorAmm","floorAmmGovV2"] },
|
|
114
|
+
{ name: "setNativeCreateFee", signature: "setNativeCreateFee(uint256)", selector: "0xa4433667", sources: ["floorAmm","floorAmmGovV2"] },
|
|
115
|
+
{ name: "setOgUser", signature: "setOgUser(address,uint256,bytes)", selector: "0x02cb4469", sources: ["floorAmmGovV2"] },
|
|
111
116
|
{ name: "setPresetEnabled", signature: "setPresetEnabled(uint8,bool)", selector: "0x673fb9a9", sources: ["floorAmm"] },
|
|
112
|
-
{ name: "setPriceUpdater", signature: "setPriceUpdater(address)", selector: "0x97c4a5f3", sources: ["floorAmm"] },
|
|
113
|
-
{ name: "setQuoteCap", signature: "setQuoteCap(address,uint128)", selector: "0x42adf398", sources: ["floorAmm"] },
|
|
114
|
-
{ name: "setQuotePrice", signature: "setQuotePrice(address,uint256)", selector: "0x3857ed9e", sources: ["floorAmm"] },
|
|
115
|
-
{ name: "setReferralAuthority", signature: "setReferralAuthority(address)", selector: "0x46325d7a", sources: ["floorAmm"] },
|
|
116
|
-
{ name: "setTimelock", signature: "setTimelock(address)", selector: "0xbdacb303", sources: ["floorAmm"] },
|
|
117
|
-
{ name: "setTraderRef", signature: "setTraderRef(address,address[3],uint256,bytes,bytes)", selector: "0xd7426758", sources: ["floorAmm"] },
|
|
118
|
-
{ name: "setTreasury", signature: "setTreasury(address)", selector: "0xf0f44260", sources: ["floorAmm"] },
|
|
117
|
+
{ name: "setPriceUpdater", signature: "setPriceUpdater(address)", selector: "0x97c4a5f3", sources: ["floorAmm","floorAmmGovV2"] },
|
|
118
|
+
{ name: "setQuoteCap", signature: "setQuoteCap(address,uint128)", selector: "0x42adf398", sources: ["floorAmm","floorAmmGovV2"] },
|
|
119
|
+
{ name: "setQuotePrice", signature: "setQuotePrice(address,uint256)", selector: "0x3857ed9e", sources: ["floorAmm","floorAmmGovV2"] },
|
|
120
|
+
{ name: "setReferralAuthority", signature: "setReferralAuthority(address)", selector: "0x46325d7a", sources: ["floorAmm","floorAmmGovV2"] },
|
|
121
|
+
{ name: "setTimelock", signature: "setTimelock(address)", selector: "0xbdacb303", sources: ["floorAmm","floorAmmGovV2"] },
|
|
122
|
+
{ name: "setTraderRef", signature: "setTraderRef(address,address[3],uint256,bytes,bytes)", selector: "0xd7426758", sources: ["floorAmm","floorAmmGovV2"] },
|
|
123
|
+
{ name: "setTreasury", signature: "setTreasury(address)", selector: "0xf0f44260", sources: ["floorAmm","floorAmmGovV2"] },
|
|
119
124
|
{ name: "simBuy", signature: "simBuy(uint256,uint256,address)", selector: "0xf69acbed", sources: ["floorAmmV2"] },
|
|
120
125
|
{ name: "simSell", signature: "simSell(uint256,uint256,address)", selector: "0xd3536ecd", sources: ["floorAmmV2"] },
|
|
121
126
|
{ name: "symbol", signature: "symbol()", selector: "0x95d89b41", sources: ["floorToken","floorTokenIndexed"] },
|
|
@@ -125,19 +130,19 @@ export const EVM_FUNCTION_SELECTORS = [
|
|
|
125
130
|
{ name: "teamShareOf", signature: "teamShareOf(uint256,address)", selector: "0xb2280af2", sources: ["floorAmm","floorAmmViewsV2"] },
|
|
126
131
|
{ name: "teamSlotAdd", signature: "teamSlotAdd(uint256,bytes32,uint8,uint256,bool)", selector: "0xd5402e81", sources: ["floorAmm","floorAmmClaimsV2"] },
|
|
127
132
|
{ name: "teamSlotOf", signature: "teamSlotOf(uint256)", selector: "0x8744aded", sources: ["floorAmmViewsV2"] },
|
|
128
|
-
{ name: "timelock", signature: "timelock()", selector: "0xd33219b4", sources: ["floorAmm"] },
|
|
133
|
+
{ name: "timelock", signature: "timelock()", selector: "0xd33219b4", sources: ["floorAmm","floorAmmGovV2"] },
|
|
129
134
|
{ name: "TOKEN_SCALE", signature: "TOKEN_SCALE()", selector: "0xcae07d2a", sources: ["floorTokenIndexed"] },
|
|
130
135
|
{ name: "tokenImplV2", signature: "tokenImplV2()", selector: "0x01b9b386", sources: ["floorAmmCreateV2"] },
|
|
131
136
|
{ name: "TOTAL_SUPPLY", signature: "TOTAL_SUPPLY()", selector: "0x902d55a5", sources: ["floorTokenIndexed"] },
|
|
132
137
|
{ name: "totalSupply", signature: "totalSupply()", selector: "0x18160ddd", sources: ["floorToken","floorTokenIndexed"] },
|
|
133
138
|
{ name: "traderRef", signature: "traderRef(address)", selector: "0xcfc18291", sources: ["floorAmm","floorAmmViewsV2"] },
|
|
134
139
|
{ name: "transfer", signature: "transfer(address,uint256)", selector: "0xa9059cbb", sources: ["floorToken","floorTokenIndexed"] },
|
|
135
|
-
{ name: "transferAuthority", signature: "transferAuthority(address)", selector: "0x3078db6c", sources: ["floorAmm"] },
|
|
140
|
+
{ name: "transferAuthority", signature: "transferAuthority(address)", selector: "0x3078db6c", sources: ["floorAmm","floorAmmGovV2"] },
|
|
136
141
|
{ name: "transferFrom", signature: "transferFrom(address,address,uint256)", selector: "0x23b872dd", sources: ["floorToken","floorTokenIndexed"] },
|
|
137
|
-
{ name: "treasury", signature: "treasury()", selector: "0x61d027b3", sources: ["floorAmm"] },
|
|
142
|
+
{ name: "treasury", signature: "treasury()", selector: "0x61d027b3", sources: ["floorAmm","floorAmmGovV2"] },
|
|
138
143
|
{ name: "unlockCreatorBuy", signature: "unlockCreatorBuy(uint256)", selector: "0xf03d6d5e", sources: ["floorAmm","floorAmmClaimsV2"] },
|
|
139
144
|
{ name: "updatePreset", signature: "updatePreset(uint8,bytes)", selector: "0x005d9e72", sources: ["floorAmm"] },
|
|
140
|
-
{ name: "updateQuote", signature: "updateQuote(address,bool,uint256,uint256)", selector: "0x21593d6e", sources: ["floorAmm"] },
|
|
145
|
+
{ name: "updateQuote", signature: "updateQuote(address,bool,uint256,uint256)", selector: "0x21593d6e", sources: ["floorAmm","floorAmmGovV2"] },
|
|
141
146
|
{ name: "UPGRADE_INTERFACE_VERSION", signature: "UPGRADE_INTERFACE_VERSION()", selector: "0xad3cb1cc", sources: ["floorAmmV2"] },
|
|
142
147
|
{ name: "upgradeToAndCall", signature: "upgradeToAndCall(address,bytes)", selector: "0x4f1ef286", sources: ["floorAmmV2"] },
|
|
143
148
|
{ name: "withdrawHolder", signature: "withdrawHolder(address,uint256)", selector: "0xfb90c8bf", sources: ["floorAmm","floorAmmCreateV2"] },
|