@floorlaunchpad/sdk 0.6.0 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +279 -0
- package/README.md +12 -1
- package/dist/abi/evm-event-names.js +7 -0
- package/dist/abi/evm.gen.js +81 -2
- package/dist/abi/functions.gen.js +135 -1
- package/dist/abi/solana.gen.js +64 -0
- package/dist/client/solana/index.js +25 -6
- package/dist/config/generated.js +803 -26374
- package/dist/errors.js +21 -2
- package/dist/events/types.gen.js +1 -1
- package/dist/evm/chains.js +80 -0
- package/dist/evm/floor/abi.gen.js +115 -0
- package/dist/evm/floor/calls.js +5 -0
- package/dist/evm/squid.js +21 -5
- package/dist/evm/venues.js +302 -0
- package/dist/generated/interface.gen.js +93 -44
- package/dist/index.js +7 -0
- package/dist/indexer/bodies.js +288 -5
- package/dist/indexer/client.js +17 -1
- package/dist/indexer/contract.js +141 -15
- package/dist/indexer/paths.js +80 -7
- package/dist/indexer/read.js +25 -3
- package/dist/indexer/stream.js +2 -2
- package/dist/math/v2/book.js +24 -7
- package/dist/math/v2/create.js +1 -1
- package/dist/math/v2/escrow.js +205 -0
- package/dist/math/v2/fees.js +30 -4
- package/dist/math/v2/milestones.js +1 -1
- package/dist/math/v2/office.js +110 -0
- package/dist/math/v2/receipt.js +3 -3
- package/dist/math/v2/relay.js +263 -96
- package/dist/math/v2/rows.js +17 -0
- package/dist/math/v2/team.js +42 -1
- package/dist/math/v2/trade.js +3 -1
- package/dist/reprice.js +88 -0
- package/dist/route/quote.js +16 -0
- package/dist/scaledUi.js +113 -0
- package/dist/solana/floor/accounts.js +38 -5
- package/dist/solana/floor/events.js +62 -1
- package/dist/solana/floor/instructions.js +39 -1
- package/dist/solana/floor/program.js +3 -0
- package/dist/stockRefresh.js +99 -0
- package/dist/ton/consts.generated.js +2 -2
- package/dist/ton/gas.js +3 -3
- package/dist/v2/claims.js +28 -5
- package/dist/v2/devbuy.js +28 -3
- package/dist/v2/events.js +2 -0
- package/dist/v2/evm.js +183 -5
- package/dist/v2/layouts.js +102 -2
- package/dist/v2/office-events.js +127 -0
- package/dist/v2/office-evm.js +68 -0
- package/dist/v2/office-read.js +182 -0
- package/dist/v2/office-solana.js +134 -0
- package/dist/v2/office-trade.js +73 -0
- package/dist/v2/route-alt.js +1 -0
- package/dist/v2/route.js +1 -1
- package/dist/v2/solana.js +224 -5
- package/dist/v2/solanaSettle.js +2 -0
- package/dist/v2/tx/evm.js +66 -2
- package/dist/v2/tx/solana.js +3 -3
- package/dist/v2/types.js +4 -0
- package/docs/aggregator.md +19 -0
- package/docs/cursor-pages.md +9 -3
- package/docs/ton.md +1 -1
- package/examples/floor-line.html +1 -1
- package/package.json +26 -1
- package/src/abi/evm-event-names.ts +7 -0
- package/src/abi/evm.gen.ts +81 -2
- package/src/abi/functions.gen.ts +135 -1
- package/src/abi/solana.gen.ts +64 -0
- package/src/client/solana/index.ts +25 -6
- package/src/config/generated.ts +803 -26374
- package/src/errors.ts +21 -2
- package/src/events/types.gen.ts +458 -1
- package/src/evm/chains.ts +89 -0
- package/src/evm/floor/abi.gen.ts +115 -0
- package/src/evm/floor/calls.ts +5 -0
- package/src/evm/squid.ts +22 -6
- package/src/evm/venues.ts +340 -0
- package/src/generated/interface.gen.ts +93 -44
- package/src/index.ts +7 -0
- package/src/indexer/bodies.ts +308 -5
- package/src/indexer/client.ts +31 -4
- package/src/indexer/contract.ts +148 -17
- package/src/indexer/paths.ts +139 -7
- package/src/indexer/read.ts +27 -5
- package/src/indexer/stream.ts +4 -4
- package/src/math/v2/book.ts +23 -7
- package/src/math/v2/create.ts +1 -1
- package/src/math/v2/escrow.ts +213 -0
- package/src/math/v2/fees.ts +30 -4
- package/src/math/v2/milestones.ts +1 -1
- package/src/math/v2/office.ts +114 -0
- package/src/math/v2/receipt.ts +7 -3
- package/src/math/v2/relay.ts +269 -96
- package/src/math/v2/rows.ts +17 -0
- package/src/math/v2/team.ts +42 -1
- package/src/math/v2/trade.ts +3 -1
- package/src/reprice.ts +121 -0
- package/src/route/quote.ts +16 -0
- package/src/scaledUi.ts +123 -0
- package/src/solana/floor/accounts.ts +38 -5
- package/src/solana/floor/events.ts +63 -2
- package/src/solana/floor/instructions.ts +39 -1
- package/src/solana/floor/program.ts +3 -0
- package/src/stockRefresh.ts +131 -0
- package/src/ton/consts.generated.ts +2 -2
- package/src/ton/gas.ts +3 -3
- package/src/v2/claims.ts +34 -5
- package/src/v2/devbuy.ts +38 -3
- package/src/v2/events.ts +3 -1
- package/src/v2/evm.ts +209 -5
- package/src/v2/layouts.ts +102 -2
- package/src/v2/office-events.ts +133 -0
- package/src/v2/office-evm.ts +76 -0
- package/src/v2/office-read.ts +264 -0
- package/src/v2/office-solana.ts +159 -0
- package/src/v2/office-trade.ts +96 -0
- package/src/v2/route-alt.ts +1 -0
- package/src/v2/route.ts +1 -1
- package/src/v2/solana.ts +235 -5
- package/src/v2/solanaSettle.ts +2 -0
- package/src/v2/tx/evm.ts +66 -2
- package/src/v2/tx/solana.ts +5 -3
- package/src/v2/types.ts +76 -1
package/src/v2/tx/evm.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
import { bytesToHex, checksumAddress, decodeAbi, encodeCall, hexToBytes } from "../../evm/abi.ts";
|
|
3
|
+
import { bytesToHex, checksumAddress, decodeAbi, encodeAbi, encodeCall, hexToBytes } from "../../evm/abi.ts";
|
|
4
|
+
import { keccak256 } from "../../evm/keccak.ts";
|
|
4
5
|
import type { AbiValue } from "../../evm/abi.ts";
|
|
5
6
|
import { teamSlotHandleId } from "../../handle.ts";
|
|
6
7
|
import { freshRegistryPrice } from "../../registryPrice.ts";
|
|
@@ -10,7 +11,7 @@ import { evmSignature } from "../../generated/index.ts";
|
|
|
10
11
|
|
|
11
12
|
export { claimV2Call, CLAIM_HOLDER_EVM, CLAIM_KNOWN_V2_EVM, creditBackingCall, optInCall, viewCall, decodeTeamShareOf } from "../evm.ts";
|
|
12
13
|
export type { EvmCall } from "../evm.ts";
|
|
13
|
-
export { traderRefDigest, traderRefAuthDigest, bindHandleDigest, bindHandleAuthDigest } from "../../evm/floor/calls.ts";
|
|
14
|
+
export { traderRefDigest, traderRefAuthDigest, bindHandleDigest, bindHandleAuthDigest, ogUserAuthDigest } from "../../evm/floor/calls.ts";
|
|
14
15
|
export { CLAIM_CREATOR, CLAIM_CREATOR_REF, CLAIM_TEAM_SLOT, CLAIM_TRADER_REF, CLAIM_PAYOUT, CLAIM_TEAM_BUY, CLAIM_SHARE_BOUGHT, MEMBER_WALLET, MEMBER_HANDLE, NATIVE_QUOTE } from "../../evm/floor/iface.ts";
|
|
15
16
|
|
|
16
17
|
export const EVM_V2_TX = {
|
|
@@ -18,6 +19,14 @@ export const EVM_V2_TX = {
|
|
|
18
19
|
createLaunch: evmSignature("createLaunch"),
|
|
19
20
|
|
|
20
21
|
teamSlotAdd: evmSignature("teamSlotAdd"),
|
|
22
|
+
|
|
23
|
+
teamSlotAddDeal: evmSignature("teamSlotAddDeal"),
|
|
24
|
+
|
|
25
|
+
dealEscrowOpen: evmSignature("dealEscrowOpen"),
|
|
26
|
+
dealEscrowArm: evmSignature("dealEscrowArm"),
|
|
27
|
+
dealEscrowRelease: evmSignature("dealEscrowRelease"),
|
|
28
|
+
dealEscrowRefund: evmSignature("dealEscrowRefund"),
|
|
29
|
+
dealEscrowCancel: evmSignature("dealEscrowCancel"),
|
|
21
30
|
unlockCreatorBuy: evmSignature("unlockCreatorBuy"),
|
|
22
31
|
claim: evmSignature("claim"),
|
|
23
32
|
|
|
@@ -26,12 +35,20 @@ export const EVM_V2_TX = {
|
|
|
26
35
|
setTraderRef: evmSignature("setTraderRef"),
|
|
27
36
|
bindHandle: evmSignature("bindHandle"),
|
|
28
37
|
claimPayoutTo: evmSignature("claimPayoutTo"),
|
|
38
|
+
|
|
39
|
+
setOgUser: evmSignature("setOgUser"),
|
|
40
|
+
revokeOgUser: evmSignature("revokeOgUser"),
|
|
29
41
|
} as const;
|
|
30
42
|
|
|
31
43
|
export const EVM_V2_TX_VIEWS = {
|
|
32
44
|
traderRef: { sig: evmSignature("traderRef"), ret: ["address[3]"] },
|
|
33
45
|
launchCount: { sig: evmSignature("launchCount"), ret: ["uint256"] },
|
|
34
46
|
predictToken: { sig: evmSignature("predictToken"), ret: ["address"] },
|
|
47
|
+
|
|
48
|
+
dealEscrowMarketCap: { sig: evmSignature("dealEscrowMarketCap"), ret: ["uint256"] },
|
|
49
|
+
|
|
50
|
+
ogUserOf: { sig: evmSignature("ogUserOf"), ret: ["uint64", "uint64", "bool"] },
|
|
51
|
+
ogCount: { sig: evmSignature("ogCount"), ret: ["uint16", "uint64"] },
|
|
35
52
|
} as const;
|
|
36
53
|
|
|
37
54
|
const NATIVE = "0x0000000000000000000000000000000000000000";
|
|
@@ -118,6 +135,13 @@ export function teamSlotAddCallV2(p: { floorAmm: string; launchId: bigint; membe
|
|
|
118
135
|
return call(p.floorAmm, EVM_V2_TX.teamSlotAdd, [p.launchId, hexToBytes(key), BigInt(kind), p.shares, false]);
|
|
119
136
|
}
|
|
120
137
|
|
|
138
|
+
export function teamSlotAddDealCall(p: { floorAmm: string; launchId: bigint; member: SlotMemberEvm; shares: bigint; dealFeeBps: number }): EvmCall {
|
|
139
|
+
if (p.shares <= 0n) throw new RangeError("teamSlotAddDeal: shares > 0 (NothingToDo)");
|
|
140
|
+
if (!Number.isInteger(p.dealFeeBps) || p.dealFeeBps < 0 || p.dealFeeBps > 0xffff) throw new RangeError("teamSlotAddDeal: dealFeeBps is a uint16");
|
|
141
|
+
const { key, kind } = slotMemberKeyEvm(p.member);
|
|
142
|
+
return call(p.floorAmm, EVM_V2_TX.teamSlotAddDeal, [p.launchId, hexToBytes(key), BigInt(kind), p.shares, BigInt(p.dealFeeBps)]);
|
|
143
|
+
}
|
|
144
|
+
|
|
121
145
|
export const unlockCreatorBuyCallV2 = (p: { floorAmm: string; launchId: bigint }): EvmCall => call(p.floorAmm, EVM_V2_TX.unlockCreatorBuy, [p.launchId]);
|
|
122
146
|
|
|
123
147
|
export const EVM_V2_TX_ONE_PRESS = {
|
|
@@ -140,6 +164,14 @@ export function setTraderRefCallV2(p: { floorAmm: string; trader: string; tiers:
|
|
|
140
164
|
return call(p.floorAmm, EVM_V2_TX.setTraderRef, [p.trader, [...p.tiers], p.deadline, hexToBytes(p.authSig), hexToBytes(p.traderSig ?? "0x")]);
|
|
141
165
|
}
|
|
142
166
|
|
|
167
|
+
export function setOgUserCall(p: { floorAmm: string; referrer: string; deadline: bigint; authSig: string }): EvmCall {
|
|
168
|
+
return call(p.floorAmm, EVM_V2_TX.setOgUser, [p.referrer, p.deadline, hexToBytes(p.authSig)]);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
export function revokeOgUserCall(p: { floorAmm: string; referrer: string }): EvmCall {
|
|
172
|
+
return call(p.floorAmm, EVM_V2_TX.revokeOgUser, [p.referrer]);
|
|
173
|
+
}
|
|
174
|
+
|
|
143
175
|
export function bindHandleCallV2(p: { floorAmm: string; handleId: string; wallet: string; quotes: readonly string[]; deadline: bigint; authSig: string; walletSig?: string }): EvmCall {
|
|
144
176
|
return call(p.floorAmm, EVM_V2_TX.bindHandle, [hexToBytes(p.handleId), p.wallet, [...p.quotes], p.deadline, hexToBytes(p.authSig), hexToBytes(p.walletSig ?? "0x")]);
|
|
145
177
|
}
|
|
@@ -150,3 +182,35 @@ export const traderRefDataV2 = (trader: string): string => bytesToHex(encodeCall
|
|
|
150
182
|
export const decodeTraderRefV2 = (data: string | Uint8Array): string[] => (decodeAbi(EVM_V2_TX_VIEWS.traderRef.ret, data)[0] as string[]).map((a) => checksumAddress(a));
|
|
151
183
|
|
|
152
184
|
export const predictTokenDataV2 = (creator: string, salt: string): string => bytesToHex(encodeCall(EVM_V2_TX_VIEWS.predictToken.sig, [creator, hexToBytes(salt)]));
|
|
185
|
+
|
|
186
|
+
export function dealEscrowIdEvm(launchId: bigint, kol: string, ref32: Uint8Array): string {
|
|
187
|
+
if (ref32.length !== 32) throw new RangeError("dealEscrow: ref32 is 32 bytes");
|
|
188
|
+
return bytesToHex(keccak256(encodeAbi(["uint256", "address", "bytes32"], [launchId, kol, ref32])));
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
export function dealEscrowOpenCall(p: { floorAmm: string; launchId: bigint; kol: string; ref32: Uint8Array; assetIsToken: boolean; quote: string; targets: readonly bigint[]; amounts: readonly bigint[]; expiry: bigint }): EvmCall {
|
|
192
|
+
const n = p.targets.length;
|
|
193
|
+
if (n < 1 || n > 8 || p.amounts.length !== n) throw new RangeError("dealEscrowOpen: 1..=8 steps, one amount each (DealEscrowSteps)");
|
|
194
|
+
if (p.ref32.length !== 32) throw new RangeError("dealEscrowOpen: ref32 is 32 bytes");
|
|
195
|
+
const total = p.amounts.reduce((a, b) => a + b, 0n);
|
|
196
|
+
const value = !p.assetIsToken && p.quote.toLowerCase() === NATIVE ? total : 0n;
|
|
197
|
+
return call(p.floorAmm, EVM_V2_TX.dealEscrowOpen, [p.launchId, p.kol, p.ref32, p.assetIsToken, [...p.targets], [...p.amounts], p.expiry], value);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
export function dealEscrowArmCall(floorAmm: string, escrow: string, step: number): EvmCall {
|
|
201
|
+
if (!Number.isInteger(step) || step < 0 || step > 7) throw new RangeError("dealEscrowArm: step in 0..8");
|
|
202
|
+
return call(floorAmm, EVM_V2_TX.dealEscrowArm, [hexToBytes(escrow), BigInt(step)]);
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
export function dealEscrowReleaseCall(floorAmm: string, escrow: string, step: number): EvmCall {
|
|
206
|
+
if (!Number.isInteger(step) || step < 0 || step > 7) throw new RangeError("dealEscrowRelease: step in 0..8");
|
|
207
|
+
return call(floorAmm, EVM_V2_TX.dealEscrowRelease, [hexToBytes(escrow), BigInt(step)]);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
export function dealEscrowRefundCall(floorAmm: string, escrow: string): EvmCall {
|
|
211
|
+
return call(floorAmm, EVM_V2_TX.dealEscrowRefund, [hexToBytes(escrow)]);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
export function dealEscrowCancelCall(floorAmm: string, escrow: string): EvmCall {
|
|
215
|
+
return call(floorAmm, EVM_V2_TX.dealEscrowCancel, [hexToBytes(escrow)]);
|
|
216
|
+
}
|
package/src/v2/tx/solana.ts
CHANGED
|
@@ -117,6 +117,8 @@ export function teamShareBuyAndClaimInstructionsV2(
|
|
|
117
117
|
memberBase?: string; quoteTokenProgram: string; config?: string; destination?: string; openMemberBase?: boolean; unwrapSol?: boolean;
|
|
118
118
|
|
|
119
119
|
quoteIsLaunch?: boolean;
|
|
120
|
+
|
|
121
|
+
seatAgency?: { index: number; agency: string };
|
|
120
122
|
},
|
|
121
123
|
): Instruction[] {
|
|
122
124
|
const amount = p.amountIn;
|
|
@@ -124,17 +126,17 @@ export function teamShareBuyAndClaimInstructionsV2(
|
|
|
124
126
|
const teamSlot = p.teamSlot ?? teamSlotPdaOf(p.launch, p.programId)[0];
|
|
125
127
|
const memberBase = p.memberBase ?? associatedTokenAddress(p.member, p.baseMint, TOKEN_2022_PROGRAM_ID);
|
|
126
128
|
const open = p.openMemberBase ?? p.memberBase === undefined;
|
|
127
|
-
const { quoteTokenProgram, config, destination, openMemberBase: _o, unwrapSol, quoteIsLaunch, ...buy } = p;
|
|
129
|
+
const { quoteTokenProgram, config, destination, openMemberBase: _o, unwrapSol, quoteIsLaunch, seatAgency, ...buy } = p;
|
|
128
130
|
const claim = claimInstructionV2({
|
|
129
131
|
programId: p.programId, hookProgramId: p.hookProgramId, sender: p.member, wallet: p.member, quoteMint: p.quoteMint, quoteTokenProgram,
|
|
130
132
|
destination: destination ?? associatedTokenAddress(p.member, p.quoteMint, quoteTokenProgram), config: config ?? configPdaOf(p.programId)[0],
|
|
131
133
|
refOwed: null, refOwedVault: null, types: TEAM_SHARE_BUY_AND_CLAIM_TYPES_V2,
|
|
132
134
|
unwrap: (unwrapSol ?? true) && p.quoteMint === WSOL_MINT && quoteTokenProgram === TOKEN_PROGRAM_ID, quoteIsLaunch,
|
|
133
|
-
launches: [{ launch: p.launch, quoteVault: p.quoteVault, teamSlot, teamBuy: { baseMint: p.baseMint, tokenVault: p.tokenVault, walletBase: memberBase } }],
|
|
135
|
+
launches: [{ launch: p.launch, quoteVault: p.quoteVault, teamSlot, teamBuy: { baseMint: p.baseMint, tokenVault: p.tokenVault, walletBase: memberBase }, ...(seatAgency ? { seatAgency } : {}) }],
|
|
134
136
|
});
|
|
135
137
|
return [
|
|
136
138
|
...(open ? [createAssociatedTokenAccountIdempotentInstruction({ payer: p.member, owner: p.member, mint: p.baseMint, tokenProgram: TOKEN_2022_PROGRAM_ID })] : []),
|
|
137
|
-
teamShareBuyInstructionV2({ ...buy, teamSlot, memberBase, quoteTokenProgram, quoteIsLaunch }),
|
|
139
|
+
teamShareBuyInstructionV2({ ...buy, teamSlot, memberBase, quoteTokenProgram, quoteIsLaunch, ...(seatAgency ? { seatAgency: { ...seatAgency, quoteTokenProgram, quoteIsLaunch } } : {}) }),
|
|
138
140
|
claim,
|
|
139
141
|
];
|
|
140
142
|
}
|
package/src/v2/types.ts
CHANGED
|
@@ -118,7 +118,8 @@ export interface LaunchV2Account {
|
|
|
118
118
|
kAtF: bigint;
|
|
119
119
|
kFloorTokens: bigint;
|
|
120
120
|
kpot: number;
|
|
121
|
-
|
|
121
|
+
kKept: Uint8Array;
|
|
122
|
+
creatorRefOgUntil: number[];
|
|
122
123
|
}
|
|
123
124
|
|
|
124
125
|
export interface HolderPositionAccount {
|
|
@@ -155,6 +156,67 @@ export interface DeadMarkAccount {
|
|
|
155
156
|
counted: bigint;
|
|
156
157
|
}
|
|
157
158
|
|
|
159
|
+
export interface DealEscrowAccount {
|
|
160
|
+
version: number;
|
|
161
|
+
bump: number;
|
|
162
|
+
n: number;
|
|
163
|
+
kind: number;
|
|
164
|
+
released: number;
|
|
165
|
+
refunded: number;
|
|
166
|
+
decimals: number;
|
|
167
|
+
padFeeBps: number;
|
|
168
|
+
feeBps: number;
|
|
169
|
+
cancel: number;
|
|
170
|
+
padExpiry: Uint8Array;
|
|
171
|
+
expiry: bigint;
|
|
172
|
+
openedAt: bigint;
|
|
173
|
+
launch: string;
|
|
174
|
+
launcher: string;
|
|
175
|
+
kol: string;
|
|
176
|
+
assetMint: string;
|
|
177
|
+
assetTokenProgram: string;
|
|
178
|
+
vault: string;
|
|
179
|
+
ref32: Uint8Array;
|
|
180
|
+
targets: bigint[];
|
|
181
|
+
amounts: bigint[];
|
|
182
|
+
armedAt: bigint[];
|
|
183
|
+
armedSlot: bigint[];
|
|
184
|
+
agency: string;
|
|
185
|
+
volAtLock: bigint;
|
|
186
|
+
proofEnds: bigint[];
|
|
187
|
+
proofHash: Uint8Array[];
|
|
188
|
+
kinds: number[];
|
|
189
|
+
proof: number[];
|
|
190
|
+
agencyBps: number;
|
|
191
|
+
volSrc: number;
|
|
192
|
+
padSize: Uint8Array;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
export interface RefVolumeAccount {
|
|
196
|
+
launch: string;
|
|
197
|
+
referrer: string;
|
|
198
|
+
volume: bigint;
|
|
199
|
+
bump: number;
|
|
200
|
+
padSize: Uint8Array;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
export interface RefVolumeBookAccount {
|
|
204
|
+
launch: string;
|
|
205
|
+
len: number;
|
|
206
|
+
bump: number;
|
|
207
|
+
padEntries: Uint8Array;
|
|
208
|
+
entries: Uint8Array;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
export interface SeatAgencyAccount {
|
|
212
|
+
launch: string;
|
|
213
|
+
agency: string;
|
|
214
|
+
agencyBps: number;
|
|
215
|
+
index: number;
|
|
216
|
+
bump: number;
|
|
217
|
+
padSize: Uint8Array;
|
|
218
|
+
}
|
|
219
|
+
|
|
158
220
|
export interface LaunchCreatedV2EventV2 {
|
|
159
221
|
launch: string;
|
|
160
222
|
mint: string;
|
|
@@ -238,6 +300,14 @@ export interface DeadSyncedEventV2 {
|
|
|
238
300
|
sCirc: bigint;
|
|
239
301
|
}
|
|
240
302
|
|
|
303
|
+
export interface RefSlicesEvent {
|
|
304
|
+
launch: string;
|
|
305
|
+
trader: string;
|
|
306
|
+
traderParts: bigint[];
|
|
307
|
+
creatorParts: bigint[];
|
|
308
|
+
og: number;
|
|
309
|
+
}
|
|
310
|
+
|
|
241
311
|
export interface GenesisRaiseBoughtEventV2 {
|
|
242
312
|
launch: string;
|
|
243
313
|
trader: string;
|
|
@@ -275,6 +345,7 @@ export type FloorEventV2Typed =
|
|
|
275
345
|
| { name: "HolderPositionClosed"; fields: HolderPositionClosedEventV2 }
|
|
276
346
|
| { name: "HolderIndexRolled"; fields: HolderIndexRolledEventV2 }
|
|
277
347
|
| { name: "DeadSynced"; fields: DeadSyncedEventV2 }
|
|
348
|
+
| { name: "RefSlices"; fields: RefSlicesEvent }
|
|
278
349
|
| { name: "GenesisRaiseBought"; fields: GenesisRaiseBoughtEventV2 };
|
|
279
350
|
|
|
280
351
|
export const decodePresetRowV2Typed = (d: Uint8Array): PresetRowV2Account => decodeAccountV2("PresetRowV2", d) as PresetRowV2Account;
|
|
@@ -282,6 +353,10 @@ export const decodeLaunchV2Typed = (d: Uint8Array): LaunchV2Account => decodeAcc
|
|
|
282
353
|
export const decodeHolderPositionTyped = (d: Uint8Array): HolderPositionAccount => decodeAccountV2("HolderPosition", d) as HolderPositionAccount;
|
|
283
354
|
export const decodeHolderBookTyped = (d: Uint8Array): HolderBookAccount => decodeAccountV2("HolderBook", d) as HolderBookAccount;
|
|
284
355
|
export const decodeDeadMarkTyped = (d: Uint8Array): DeadMarkAccount => decodeAccountV2("DeadMark", d) as DeadMarkAccount;
|
|
356
|
+
export const decodeDealEscrowTyped = (d: Uint8Array): DealEscrowAccount => decodeAccountV2("DealEscrow", d) as DealEscrowAccount;
|
|
357
|
+
export const decodeRefVolumeTyped = (d: Uint8Array): RefVolumeAccount => decodeAccountV2("RefVolume", d) as RefVolumeAccount;
|
|
358
|
+
export const decodeRefVolumeBookTyped = (d: Uint8Array): RefVolumeBookAccount => decodeAccountV2("RefVolumeBook", d) as RefVolumeBookAccount;
|
|
359
|
+
export const decodeSeatAgencyTyped = (d: Uint8Array): SeatAgencyAccount => decodeAccountV2("SeatAgency", d) as SeatAgencyAccount;
|
|
285
360
|
|
|
286
361
|
export const decodeEventV2Typed = (d: Uint8Array): FloorEventV2Typed | null => decodeEventDataV2(d) as FloorEventV2Typed | null;
|
|
287
362
|
export type { DevBuy, DevBuyRole } from "./devbuy.ts";
|