@floorlaunchpad/sdk-solana 0.0.0-stage → 0.1.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/LICENSE +61 -0
- package/NOTICE +65 -0
- package/README.md +158 -2
- package/THIRD_PARTY.md +22 -0
- package/deployments.json +88 -0
- package/dist/adapter.d.ts +107 -0
- package/dist/adapter.d.ts.map +1 -0
- package/dist/adapter.js +402 -0
- package/dist/adapter.js.map +1 -0
- package/dist/adapters.d.ts +49 -0
- package/dist/adapters.d.ts.map +1 -0
- package/dist/adapters.js +102 -0
- package/dist/adapters.js.map +1 -0
- package/dist/constants.d.ts +257 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +250 -0
- package/dist/constants.js.map +1 -0
- package/dist/deployments.d.ts +109 -0
- package/dist/deployments.d.ts.map +1 -0
- package/dist/deployments.js +67 -0
- package/dist/deployments.js.map +1 -0
- package/dist/events.d.ts +57 -0
- package/dist/events.d.ts.map +1 -0
- package/dist/events.js +368 -0
- package/dist/events.js.map +1 -0
- package/dist/generated/client/floor_holders/constants/floorHolders.d.ts +15 -0
- package/dist/generated/client/floor_holders/constants/floorHolders.d.ts.map +1 -0
- package/dist/generated/client/floor_holders/constants/floorHolders.js +14 -0
- package/dist/generated/client/floor_holders/constants/floorHolders.js.map +1 -0
- package/dist/generated/client/floor_holders/constants/index.d.ts +9 -0
- package/dist/generated/client/floor_holders/constants/index.d.ts.map +1 -0
- package/dist/generated/client/floor_holders/constants/index.js +9 -0
- package/dist/generated/client/floor_holders/constants/index.js.map +1 -0
- package/dist/generated/client/floor_holders/errors/floorHolders.d.ts +52 -0
- package/dist/generated/client/floor_holders/errors/floorHolders.d.ts.map +1 -0
- package/dist/generated/client/floor_holders/errors/floorHolders.js +55 -0
- package/dist/generated/client/floor_holders/errors/floorHolders.js.map +1 -0
- package/dist/generated/client/floor_holders/errors/index.d.ts +9 -0
- package/dist/generated/client/floor_holders/errors/index.d.ts.map +1 -0
- package/dist/generated/client/floor_holders/errors/index.js +9 -0
- package/dist/generated/client/floor_holders/errors/index.js.map +1 -0
- package/dist/generated/client/floor_holders/events/claimsTableExtended.d.ts +27 -0
- package/dist/generated/client/floor_holders/events/claimsTableExtended.d.ts.map +1 -0
- package/dist/generated/client/floor_holders/events/claimsTableExtended.js +30 -0
- package/dist/generated/client/floor_holders/events/claimsTableExtended.js.map +1 -0
- package/dist/generated/client/floor_holders/events/claimsTableRotated.d.ts +27 -0
- package/dist/generated/client/floor_holders/events/claimsTableRotated.d.ts.map +1 -0
- package/dist/generated/client/floor_holders/events/claimsTableRotated.js +30 -0
- package/dist/generated/client/floor_holders/events/claimsTableRotated.js.map +1 -0
- package/dist/generated/client/floor_holders/events/holderClaimed.d.ts +33 -0
- package/dist/generated/client/floor_holders/events/holderClaimed.d.ts.map +1 -0
- package/dist/generated/client/floor_holders/events/holderClaimed.js +30 -0
- package/dist/generated/client/floor_holders/events/holderClaimed.js.map +1 -0
- package/dist/generated/client/floor_holders/events/index.d.ts +14 -0
- package/dist/generated/client/floor_holders/events/index.d.ts.map +1 -0
- package/dist/generated/client/floor_holders/events/index.js +14 -0
- package/dist/generated/client/floor_holders/events/index.js.map +1 -0
- package/dist/generated/client/floor_holders/events/launchHooked.d.ts +26 -0
- package/dist/generated/client/floor_holders/events/launchHooked.d.ts.map +1 -0
- package/dist/generated/client/floor_holders/events/launchHooked.js +30 -0
- package/dist/generated/client/floor_holders/events/launchHooked.js.map +1 -0
- package/dist/generated/client/floor_holders/events/recordClosed.d.ts +31 -0
- package/dist/generated/client/floor_holders/events/recordClosed.d.ts.map +1 -0
- package/dist/generated/client/floor_holders/events/recordClosed.js +30 -0
- package/dist/generated/client/floor_holders/events/recordClosed.js.map +1 -0
- package/dist/generated/client/floor_holders/events/recordOpened.d.ts +35 -0
- package/dist/generated/client/floor_holders/events/recordOpened.d.ts.map +1 -0
- package/dist/generated/client/floor_holders/events/recordOpened.js +30 -0
- package/dist/generated/client/floor_holders/events/recordOpened.js.map +1 -0
- package/dist/generated/client/floor_holders/index.d.ts +14 -0
- package/dist/generated/client/floor_holders/index.d.ts.map +1 -0
- package/dist/generated/client/floor_holders/index.js +14 -0
- package/dist/generated/client/floor_holders/index.js.map +1 -0
- package/dist/generated/client/floor_holders/instructions/authorizeClaim.d.ts +102 -0
- package/dist/generated/client/floor_holders/instructions/authorizeClaim.d.ts.map +1 -0
- package/dist/generated/client/floor_holders/instructions/authorizeClaim.js +68 -0
- package/dist/generated/client/floor_holders/instructions/authorizeClaim.js.map +1 -0
- package/dist/generated/client/floor_holders/instructions/claim.d.ts +97 -0
- package/dist/generated/client/floor_holders/instructions/claim.d.ts.map +1 -0
- package/dist/generated/client/floor_holders/instructions/claim.js +64 -0
- package/dist/generated/client/floor_holders/instructions/claim.js.map +1 -0
- package/dist/generated/client/floor_holders/instructions/closeRecord.d.ts +48 -0
- package/dist/generated/client/floor_holders/instructions/closeRecord.d.ts.map +1 -0
- package/dist/generated/client/floor_holders/instructions/closeRecord.js +43 -0
- package/dist/generated/client/floor_holders/instructions/closeRecord.js.map +1 -0
- package/dist/generated/client/floor_holders/instructions/execute.d.ts +44 -0
- package/dist/generated/client/floor_holders/instructions/execute.d.ts.map +1 -0
- package/dist/generated/client/floor_holders/instructions/execute.js +45 -0
- package/dist/generated/client/floor_holders/instructions/execute.js.map +1 -0
- package/dist/generated/client/floor_holders/instructions/index.d.ts +18 -0
- package/dist/generated/client/floor_holders/instructions/index.d.ts.map +1 -0
- package/dist/generated/client/floor_holders/instructions/index.js +18 -0
- package/dist/generated/client/floor_holders/instructions/index.js.map +1 -0
- package/dist/generated/client/floor_holders/instructions/initLaunch.d.ts +84 -0
- package/dist/generated/client/floor_holders/instructions/initLaunch.d.ts.map +1 -0
- package/dist/generated/client/floor_holders/instructions/initLaunch.js +81 -0
- package/dist/generated/client/floor_holders/instructions/initLaunch.js.map +1 -0
- package/dist/generated/client/floor_holders/instructions/initializeClaimsRegistry.d.ts +46 -0
- package/dist/generated/client/floor_holders/instructions/initializeClaimsRegistry.d.ts.map +1 -0
- package/dist/generated/client/floor_holders/instructions/initializeClaimsRegistry.js +64 -0
- package/dist/generated/client/floor_holders/instructions/initializeClaimsRegistry.js.map +1 -0
- package/dist/generated/client/floor_holders/instructions/openRecord.d.ts +52 -0
- package/dist/generated/client/floor_holders/instructions/openRecord.d.ts.map +1 -0
- package/dist/generated/client/floor_holders/instructions/openRecord.js +47 -0
- package/dist/generated/client/floor_holders/instructions/openRecord.js.map +1 -0
- package/dist/generated/client/floor_holders/instructions/rotateClaimsTable.d.ts +66 -0
- package/dist/generated/client/floor_holders/instructions/rotateClaimsTable.d.ts.map +1 -0
- package/dist/generated/client/floor_holders/instructions/rotateClaimsTable.js +77 -0
- package/dist/generated/client/floor_holders/instructions/rotateClaimsTable.js.map +1 -0
- package/dist/generated/client/floor_holders/instructions/sync.d.ts +42 -0
- package/dist/generated/client/floor_holders/instructions/sync.d.ts.map +1 -0
- package/dist/generated/client/floor_holders/instructions/sync.js +43 -0
- package/dist/generated/client/floor_holders/instructions/sync.js.map +1 -0
- package/dist/generated/client/floor_holders/instructions/touch.d.ts +52 -0
- package/dist/generated/client/floor_holders/instructions/touch.d.ts.map +1 -0
- package/dist/generated/client/floor_holders/instructions/touch.js +47 -0
- package/dist/generated/client/floor_holders/instructions/touch.js.map +1 -0
- package/dist/generated/client/floor_holders/pdas/claimsAltAuthority.d.ts +12 -0
- package/dist/generated/client/floor_holders/pdas/claimsAltAuthority.d.ts.map +1 -0
- package/dist/generated/client/floor_holders/pdas/claimsAltAuthority.js +13 -0
- package/dist/generated/client/floor_holders/pdas/claimsAltAuthority.js.map +1 -0
- package/dist/generated/client/floor_holders/pdas/claimsRegistry.d.ts +12 -0
- package/dist/generated/client/floor_holders/pdas/claimsRegistry.d.ts.map +1 -0
- package/dist/generated/client/floor_holders/pdas/claimsRegistry.js +13 -0
- package/dist/generated/client/floor_holders/pdas/claimsRegistry.js.map +1 -0
- package/dist/generated/client/floor_holders/pdas/holdersAuthority.d.ts +12 -0
- package/dist/generated/client/floor_holders/pdas/holdersAuthority.d.ts.map +1 -0
- package/dist/generated/client/floor_holders/pdas/holdersAuthority.js +13 -0
- package/dist/generated/client/floor_holders/pdas/holdersAuthority.js.map +1 -0
- package/dist/generated/client/floor_holders/pdas/index.d.ts +11 -0
- package/dist/generated/client/floor_holders/pdas/index.d.ts.map +1 -0
- package/dist/generated/client/floor_holders/pdas/index.js +11 -0
- package/dist/generated/client/floor_holders/pdas/index.js.map +1 -0
- package/dist/generated/client/floor_holders/programs/floorHolders.d.ts +90 -0
- package/dist/generated/client/floor_holders/programs/floorHolders.d.ts.map +1 -0
- package/dist/generated/client/floor_holders/programs/floorHolders.js +142 -0
- package/dist/generated/client/floor_holders/programs/floorHolders.js.map +1 -0
- package/dist/generated/client/floor_holders/programs/index.d.ts +9 -0
- package/dist/generated/client/floor_holders/programs/index.d.ts.map +1 -0
- package/dist/generated/client/floor_holders/programs/index.js +9 -0
- package/dist/generated/client/floor_holders/programs/index.js.map +1 -0
- package/dist/generated/client/floor_hook/accounts/floorPlatformPool.d.ts +51 -0
- package/dist/generated/client/floor_hook/accounts/floorPlatformPool.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/accounts/floorPlatformPool.js +47 -0
- package/dist/generated/client/floor_hook/accounts/floorPlatformPool.js.map +1 -0
- package/dist/generated/client/floor_hook/accounts/floorPool.d.ts +216 -0
- package/dist/generated/client/floor_hook/accounts/floorPool.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/accounts/floorPool.js +48 -0
- package/dist/generated/client/floor_hook/accounts/floorPool.js.map +1 -0
- package/dist/generated/client/floor_hook/accounts/hookConfig.d.ts +57 -0
- package/dist/generated/client/floor_hook/accounts/hookConfig.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/accounts/hookConfig.js +47 -0
- package/dist/generated/client/floor_hook/accounts/hookConfig.js.map +1 -0
- package/dist/generated/client/floor_hook/accounts/index.d.ts +13 -0
- package/dist/generated/client/floor_hook/accounts/index.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/accounts/index.js +13 -0
- package/dist/generated/client/floor_hook/accounts/index.js.map +1 -0
- package/dist/generated/client/floor_hook/accounts/platformTreasury.d.ts +43 -0
- package/dist/generated/client/floor_hook/accounts/platformTreasury.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/accounts/platformTreasury.js +47 -0
- package/dist/generated/client/floor_hook/accounts/platformTreasury.js.map +1 -0
- package/dist/generated/client/floor_hook/accounts/quotePolicy.d.ts +55 -0
- package/dist/generated/client/floor_hook/accounts/quotePolicy.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/accounts/quotePolicy.js +47 -0
- package/dist/generated/client/floor_hook/accounts/quotePolicy.js.map +1 -0
- package/dist/generated/client/floor_hook/constants/floorHook.d.ts +16 -0
- package/dist/generated/client/floor_hook/constants/floorHook.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/constants/floorHook.js +15 -0
- package/dist/generated/client/floor_hook/constants/floorHook.js.map +1 -0
- package/dist/generated/client/floor_hook/constants/index.d.ts +9 -0
- package/dist/generated/client/floor_hook/constants/index.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/constants/index.js +9 -0
- package/dist/generated/client/floor_hook/constants/index.js.map +1 -0
- package/dist/generated/client/floor_hook/errors/floorHook.d.ts +164 -0
- package/dist/generated/client/floor_hook/errors/floorHook.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/errors/floorHook.js +167 -0
- package/dist/generated/client/floor_hook/errors/floorHook.js.map +1 -0
- package/dist/generated/client/floor_hook/errors/index.d.ts +9 -0
- package/dist/generated/client/floor_hook/errors/index.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/errors/index.js +9 -0
- package/dist/generated/client/floor_hook/errors/index.js.map +1 -0
- package/dist/generated/client/floor_hook/events/allowAllQuotesSet.d.ts +26 -0
- package/dist/generated/client/floor_hook/events/allowAllQuotesSet.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/allowAllQuotesSet.js +30 -0
- package/dist/generated/client/floor_hook/events/allowAllQuotesSet.js.map +1 -0
- package/dist/generated/client/floor_hook/events/bidReplaced.d.ts +33 -0
- package/dist/generated/client/floor_hook/events/bidReplaced.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/bidReplaced.js +30 -0
- package/dist/generated/client/floor_hook/events/bidReplaced.js.map +1 -0
- package/dist/generated/client/floor_hook/events/creatorClaimed.d.ts +31 -0
- package/dist/generated/client/floor_hook/events/creatorClaimed.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/creatorClaimed.js +30 -0
- package/dist/generated/client/floor_hook/events/creatorClaimed.js.map +1 -0
- package/dist/generated/client/floor_hook/events/creatorFee.d.ts +29 -0
- package/dist/generated/client/floor_hook/events/creatorFee.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/creatorFee.js +30 -0
- package/dist/generated/client/floor_hook/events/creatorFee.js.map +1 -0
- package/dist/generated/client/floor_hook/events/floorPoolDesignated.d.ts +25 -0
- package/dist/generated/client/floor_hook/events/floorPoolDesignated.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/floorPoolDesignated.js +30 -0
- package/dist/generated/client/floor_hook/events/floorPoolDesignated.js.map +1 -0
- package/dist/generated/client/floor_hook/events/floorUnbacked.d.ts +31 -0
- package/dist/generated/client/floor_hook/events/floorUnbacked.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/floorUnbacked.js +30 -0
- package/dist/generated/client/floor_hook/events/floorUnbacked.js.map +1 -0
- package/dist/generated/client/floor_hook/events/holderPaid.d.ts +29 -0
- package/dist/generated/client/floor_hook/events/holderPaid.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/holderPaid.js +30 -0
- package/dist/generated/client/floor_hook/events/holderPaid.js.map +1 -0
- package/dist/generated/client/floor_hook/events/hookConfigInitialized.d.ts +27 -0
- package/dist/generated/client/floor_hook/events/hookConfigInitialized.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/hookConfigInitialized.js +30 -0
- package/dist/generated/client/floor_hook/events/hookConfigInitialized.js.map +1 -0
- package/dist/generated/client/floor_hook/events/hookGovernanceChanged.d.ts +25 -0
- package/dist/generated/client/floor_hook/events/hookGovernanceChanged.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/hookGovernanceChanged.js +30 -0
- package/dist/generated/client/floor_hook/events/hookGovernanceChanged.js.map +1 -0
- package/dist/generated/client/floor_hook/events/index.d.ts +53 -0
- package/dist/generated/client/floor_hook/events/index.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/index.js +53 -0
- package/dist/generated/client/floor_hook/events/index.js.map +1 -0
- package/dist/generated/client/floor_hook/events/inventoryDonated.d.ts +29 -0
- package/dist/generated/client/floor_hook/events/inventoryDonated.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/inventoryDonated.js +30 -0
- package/dist/generated/client/floor_hook/events/inventoryDonated.js.map +1 -0
- package/dist/generated/client/floor_hook/events/platformCut.d.ts +27 -0
- package/dist/generated/client/floor_hook/events/platformCut.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/platformCut.js +30 -0
- package/dist/generated/client/floor_hook/events/platformCut.js.map +1 -0
- package/dist/generated/client/floor_hook/events/platformPoolCredit.d.ts +29 -0
- package/dist/generated/client/floor_hook/events/platformPoolCredit.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/platformPoolCredit.js +30 -0
- package/dist/generated/client/floor_hook/events/platformPoolCredit.js.map +1 -0
- package/dist/generated/client/floor_hook/events/platformSwept.d.ts +29 -0
- package/dist/generated/client/floor_hook/events/platformSwept.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/platformSwept.js +30 -0
- package/dist/generated/client/floor_hook/events/platformSwept.js.map +1 -0
- package/dist/generated/client/floor_hook/events/platformWithdrawn.d.ts +35 -0
- package/dist/generated/client/floor_hook/events/platformWithdrawn.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/platformWithdrawn.js +30 -0
- package/dist/generated/client/floor_hook/events/platformWithdrawn.js.map +1 -0
- package/dist/generated/client/floor_hook/events/polRaised.d.ts +33 -0
- package/dist/generated/client/floor_hook/events/polRaised.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/polRaised.js +30 -0
- package/dist/generated/client/floor_hook/events/polRaised.js.map +1 -0
- package/dist/generated/client/floor_hook/events/poolReferralTiers.d.ts +27 -0
- package/dist/generated/client/floor_hook/events/poolReferralTiers.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/poolReferralTiers.js +30 -0
- package/dist/generated/client/floor_hook/events/poolReferralTiers.js.map +1 -0
- package/dist/generated/client/floor_hook/events/poolRegistered.d.ts +27 -0
- package/dist/generated/client/floor_hook/events/poolRegistered.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/poolRegistered.js +30 -0
- package/dist/generated/client/floor_hook/events/poolRegistered.js.map +1 -0
- package/dist/generated/client/floor_hook/events/poolRewardsTerms.d.ts +28 -0
- package/dist/generated/client/floor_hook/events/poolRewardsTerms.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/poolRewardsTerms.js +30 -0
- package/dist/generated/client/floor_hook/events/poolRewardsTerms.js.map +1 -0
- package/dist/generated/client/floor_hook/events/quoteAdmitted.d.ts +39 -0
- package/dist/generated/client/floor_hook/events/quoteAdmitted.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/quoteAdmitted.js +30 -0
- package/dist/generated/client/floor_hook/events/quoteAdmitted.js.map +1 -0
- package/dist/generated/client/floor_hook/events/quoteEconomicsSet.d.ts +33 -0
- package/dist/generated/client/floor_hook/events/quoteEconomicsSet.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/quoteEconomicsSet.js +30 -0
- package/dist/generated/client/floor_hook/events/quoteEconomicsSet.js.map +1 -0
- package/dist/generated/client/floor_hook/events/quoteListed.d.ts +39 -0
- package/dist/generated/client/floor_hook/events/quoteListed.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/quoteListed.js +30 -0
- package/dist/generated/client/floor_hook/events/quoteListed.js.map +1 -0
- package/dist/generated/client/floor_hook/events/quoteObserved.d.ts +31 -0
- package/dist/generated/client/floor_hook/events/quoteObserved.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/quoteObserved.js +30 -0
- package/dist/generated/client/floor_hook/events/quoteObserved.js.map +1 -0
- package/dist/generated/client/floor_hook/events/quoteRetired.d.ts +23 -0
- package/dist/generated/client/floor_hook/events/quoteRetired.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/quoteRetired.js +30 -0
- package/dist/generated/client/floor_hook/events/quoteRetired.js.map +1 -0
- package/dist/generated/client/floor_hook/events/ratcheted.d.ts +35 -0
- package/dist/generated/client/floor_hook/events/ratcheted.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/ratcheted.js +30 -0
- package/dist/generated/client/floor_hook/events/ratcheted.js.map +1 -0
- package/dist/generated/client/floor_hook/events/recipientResolved.d.ts +26 -0
- package/dist/generated/client/floor_hook/events/recipientResolved.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/recipientResolved.js +30 -0
- package/dist/generated/client/floor_hook/events/recipientResolved.js.map +1 -0
- package/dist/generated/client/floor_hook/events/referralFunded.d.ts +33 -0
- package/dist/generated/client/floor_hook/events/referralFunded.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/referralFunded.js +30 -0
- package/dist/generated/client/floor_hook/events/referralFunded.js.map +1 -0
- package/dist/generated/client/floor_hook/events/referralPaid.d.ts +31 -0
- package/dist/generated/client/floor_hook/events/referralPaid.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/referralPaid.js +30 -0
- package/dist/generated/client/floor_hook/events/referralPaid.js.map +1 -0
- package/dist/generated/client/floor_hook/events/referralTierPaid.d.ts +31 -0
- package/dist/generated/client/floor_hook/events/referralTierPaid.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/referralTierPaid.js +30 -0
- package/dist/generated/client/floor_hook/events/referralTierPaid.js.map +1 -0
- package/dist/generated/client/floor_hook/events/skimmed.d.ts +33 -0
- package/dist/generated/client/floor_hook/events/skimmed.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/skimmed.js +30 -0
- package/dist/generated/client/floor_hook/events/skimmed.js.map +1 -0
- package/dist/generated/client/floor_hook/events/stairArrayReclaimed.d.ts +33 -0
- package/dist/generated/client/floor_hook/events/stairArrayReclaimed.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/stairArrayReclaimed.js +30 -0
- package/dist/generated/client/floor_hook/events/stairArrayReclaimed.js.map +1 -0
- package/dist/generated/client/floor_hook/events/stairFeesSwept.d.ts +31 -0
- package/dist/generated/client/floor_hook/events/stairFeesSwept.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/stairFeesSwept.js +30 -0
- package/dist/generated/client/floor_hook/events/stairFeesSwept.js.map +1 -0
- package/dist/generated/client/floor_hook/events/stairOwnerBooked.d.ts +39 -0
- package/dist/generated/client/floor_hook/events/stairOwnerBooked.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/stairOwnerBooked.js +30 -0
- package/dist/generated/client/floor_hook/events/stairOwnerBooked.js.map +1 -0
- package/dist/generated/client/floor_hook/events/stairOwnersPlaced.d.ts +43 -0
- package/dist/generated/client/floor_hook/events/stairOwnersPlaced.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/stairOwnersPlaced.js +30 -0
- package/dist/generated/client/floor_hook/events/stairOwnersPlaced.js.map +1 -0
- package/dist/generated/client/floor_hook/events/stairPayeeResolved.d.ts +26 -0
- package/dist/generated/client/floor_hook/events/stairPayeeResolved.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/stairPayeeResolved.js +30 -0
- package/dist/generated/client/floor_hook/events/stairPayeeResolved.js.map +1 -0
- package/dist/generated/client/floor_hook/events/stairPayeeSwept.d.ts +33 -0
- package/dist/generated/client/floor_hook/events/stairPayeeSwept.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/stairPayeeSwept.js +30 -0
- package/dist/generated/client/floor_hook/events/stairPayeeSwept.js.map +1 -0
- package/dist/generated/client/floor_hook/events/stairRatcheted.d.ts +43 -0
- package/dist/generated/client/floor_hook/events/stairRatcheted.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/stairRatcheted.js +30 -0
- package/dist/generated/client/floor_hook/events/stairRatcheted.js.map +1 -0
- package/dist/generated/client/floor_hook/events/stairRentReimbursed.d.ts +31 -0
- package/dist/generated/client/floor_hook/events/stairRentReimbursed.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/stairRentReimbursed.js +30 -0
- package/dist/generated/client/floor_hook/events/stairRentReimbursed.js.map +1 -0
- package/dist/generated/client/floor_hook/events/stairTokensWithdrawn.d.ts +35 -0
- package/dist/generated/client/floor_hook/events/stairTokensWithdrawn.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/stairTokensWithdrawn.js +30 -0
- package/dist/generated/client/floor_hook/events/stairTokensWithdrawn.js.map +1 -0
- package/dist/generated/client/floor_hook/events/teamSwept.d.ts +29 -0
- package/dist/generated/client/floor_hook/events/teamSwept.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/teamSwept.js +30 -0
- package/dist/generated/client/floor_hook/events/teamSwept.js.map +1 -0
- package/dist/generated/client/floor_hook/events/teamWithdrawn.d.ts +35 -0
- package/dist/generated/client/floor_hook/events/teamWithdrawn.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/teamWithdrawn.js +30 -0
- package/dist/generated/client/floor_hook/events/teamWithdrawn.js.map +1 -0
- package/dist/generated/client/floor_hook/events/traderReferralBooked.d.ts +29 -0
- package/dist/generated/client/floor_hook/events/traderReferralBooked.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/traderReferralBooked.js +30 -0
- package/dist/generated/client/floor_hook/events/traderReferralBooked.js.map +1 -0
- package/dist/generated/client/floor_hook/events/traderReferralClaimed.d.ts +29 -0
- package/dist/generated/client/floor_hook/events/traderReferralClaimed.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/traderReferralClaimed.js +30 -0
- package/dist/generated/client/floor_hook/events/traderReferralClaimed.js.map +1 -0
- package/dist/generated/client/floor_hook/events/traderReferralSwept.d.ts +29 -0
- package/dist/generated/client/floor_hook/events/traderReferralSwept.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/traderReferralSwept.js +30 -0
- package/dist/generated/client/floor_hook/events/traderReferralSwept.js.map +1 -0
- package/dist/generated/client/floor_hook/events/treasuryGovernanceChanged.d.ts +26 -0
- package/dist/generated/client/floor_hook/events/treasuryGovernanceChanged.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/treasuryGovernanceChanged.js +30 -0
- package/dist/generated/client/floor_hook/events/treasuryGovernanceChanged.js.map +1 -0
- package/dist/generated/client/floor_hook/events/vaultTokensFed.d.ts +39 -0
- package/dist/generated/client/floor_hook/events/vaultTokensFed.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/vaultTokensFed.js +30 -0
- package/dist/generated/client/floor_hook/events/vaultTokensFed.js.map +1 -0
- package/dist/generated/client/floor_hook/index.d.ts +16 -0
- package/dist/generated/client/floor_hook/index.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/index.js +16 -0
- package/dist/generated/client/floor_hook/index.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/acceptHookGovernance.d.ts +52 -0
- package/dist/generated/client/floor_hook/instructions/acceptHookGovernance.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/acceptHookGovernance.js +57 -0
- package/dist/generated/client/floor_hook/instructions/acceptHookGovernance.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/acceptTeamTreasuryGovernance.d.ts +55 -0
- package/dist/generated/client/floor_hook/instructions/acceptTeamTreasuryGovernance.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/acceptTeamTreasuryGovernance.js +60 -0
- package/dist/generated/client/floor_hook/instructions/acceptTeamTreasuryGovernance.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/acceptTreasuryGovernance.d.ts +55 -0
- package/dist/generated/client/floor_hook/instructions/acceptTreasuryGovernance.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/acceptTreasuryGovernance.js +60 -0
- package/dist/generated/client/floor_hook/instructions/acceptTreasuryGovernance.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/afterActions.d.ts +74 -0
- package/dist/generated/client/floor_hook/instructions/afterActions.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/afterActions.js +46 -0
- package/dist/generated/client/floor_hook/instructions/afterActions.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/afterSwap.d.ts +92 -0
- package/dist/generated/client/floor_hook/instructions/afterSwap.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/afterSwap.js +46 -0
- package/dist/generated/client/floor_hook/instructions/afterSwap.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/beforeInitialize.d.ts +73 -0
- package/dist/generated/client/floor_hook/instructions/beforeInitialize.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/beforeInitialize.js +45 -0
- package/dist/generated/client/floor_hook/instructions/beforeInitialize.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/beforeSwap.d.ts +80 -0
- package/dist/generated/client/floor_hook/instructions/beforeSwap.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/beforeSwap.js +46 -0
- package/dist/generated/client/floor_hook/instructions/beforeSwap.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/claimCreatorFees.d.ts +78 -0
- package/dist/generated/client/floor_hook/instructions/claimCreatorFees.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/claimCreatorFees.js +61 -0
- package/dist/generated/client/floor_hook/instructions/claimCreatorFees.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/claimReferralFees.d.ts +78 -0
- package/dist/generated/client/floor_hook/instructions/claimReferralFees.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/claimReferralFees.js +61 -0
- package/dist/generated/client/floor_hook/instructions/claimReferralFees.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/claimTraderReferral.d.ts +73 -0
- package/dist/generated/client/floor_hook/instructions/claimTraderReferral.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/claimTraderReferral.js +67 -0
- package/dist/generated/client/floor_hook/instructions/claimTraderReferral.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/clearTeamBuyBooks.d.ts +46 -0
- package/dist/generated/client/floor_hook/instructions/clearTeamBuyBooks.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/clearTeamBuyBooks.js +57 -0
- package/dist/generated/client/floor_hook/instructions/clearTeamBuyBooks.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/creditFloorPool.d.ts +91 -0
- package/dist/generated/client/floor_hook/instructions/creditFloorPool.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/creditFloorPool.js +79 -0
- package/dist/generated/client/floor_hook/instructions/creditFloorPool.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/creditTraderBucket.d.ts +51 -0
- package/dist/generated/client/floor_hook/instructions/creditTraderBucket.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/creditTraderBucket.js +61 -0
- package/dist/generated/client/floor_hook/instructions/creditTraderBucket.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/designateFloorPool.d.ts +61 -0
- package/dist/generated/client/floor_hook/instructions/designateFloorPool.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/designateFloorPool.js +67 -0
- package/dist/generated/client/floor_hook/instructions/designateFloorPool.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/donateInventory.d.ts +58 -0
- package/dist/generated/client/floor_hook/instructions/donateInventory.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/donateInventory.js +45 -0
- package/dist/generated/client/floor_hook/instructions/donateInventory.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/index.d.ts +55 -0
- package/dist/generated/client/floor_hook/instructions/index.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/index.js +55 -0
- package/dist/generated/client/floor_hook/instructions/index.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/initializeHookConfig.d.ts +66 -0
- package/dist/generated/client/floor_hook/instructions/initializeHookConfig.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/initializeHookConfig.js +74 -0
- package/dist/generated/client/floor_hook/instructions/initializeHookConfig.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/initializeTeamTreasury.d.ts +63 -0
- package/dist/generated/client/floor_hook/instructions/initializeTeamTreasury.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/initializeTeamTreasury.js +71 -0
- package/dist/generated/client/floor_hook/instructions/initializeTeamTreasury.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/listQuote.d.ts +94 -0
- package/dist/generated/client/floor_hook/instructions/listQuote.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/listQuote.js +74 -0
- package/dist/generated/client/floor_hook/instructions/listQuote.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/observeQuote.d.ts +46 -0
- package/dist/generated/client/floor_hook/instructions/observeQuote.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/observeQuote.js +43 -0
- package/dist/generated/client/floor_hook/instructions/observeQuote.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/openTraderBucket.d.ts +44 -0
- package/dist/generated/client/floor_hook/instructions/openTraderBucket.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/openTraderBucket.js +47 -0
- package/dist/generated/client/floor_hook/instructions/openTraderBucket.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/openTraderRefVault.d.ts +58 -0
- package/dist/generated/client/floor_hook/instructions/openTraderRefVault.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/openTraderRefVault.js +76 -0
- package/dist/generated/client/floor_hook/instructions/openTraderRefVault.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/payHolder.d.ts +78 -0
- package/dist/generated/client/floor_hook/instructions/payHolder.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/payHolder.js +61 -0
- package/dist/generated/client/floor_hook/instructions/payHolder.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/payHolderAuthorized.d.ts +78 -0
- package/dist/generated/client/floor_hook/instructions/payHolderAuthorized.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/payHolderAuthorized.js +61 -0
- package/dist/generated/client/floor_hook/instructions/payHolderAuthorized.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/preparePositions.d.ts +64 -0
- package/dist/generated/client/floor_hook/instructions/preparePositions.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/preparePositions.js +64 -0
- package/dist/generated/client/floor_hook/instructions/preparePositions.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/ratchet.d.ts +100 -0
- package/dist/generated/client/floor_hook/instructions/ratchet.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/ratchet.js +73 -0
- package/dist/generated/client/floor_hook/instructions/ratchet.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/reclaimStairArray.d.ts +69 -0
- package/dist/generated/client/floor_hook/instructions/reclaimStairArray.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/reclaimStairArray.js +68 -0
- package/dist/generated/client/floor_hook/instructions/reclaimStairArray.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/registerPool.d.ts +196 -0
- package/dist/generated/client/floor_hook/instructions/registerPool.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/registerPool.js +72 -0
- package/dist/generated/client/floor_hook/instructions/registerPool.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/resolveRecipient.d.ts +61 -0
- package/dist/generated/client/floor_hook/instructions/resolveRecipient.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/resolveRecipient.js +61 -0
- package/dist/generated/client/floor_hook/instructions/resolveRecipient.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/resolveStairPayee.d.ts +61 -0
- package/dist/generated/client/floor_hook/instructions/resolveStairPayee.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/resolveStairPayee.js +61 -0
- package/dist/generated/client/floor_hook/instructions/resolveStairPayee.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/retireQuote.d.ts +52 -0
- package/dist/generated/client/floor_hook/instructions/retireQuote.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/retireQuote.js +57 -0
- package/dist/generated/client/floor_hook/instructions/retireQuote.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/seedFloor.d.ts +61 -0
- package/dist/generated/client/floor_hook/instructions/seedFloor.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/seedFloor.js +45 -0
- package/dist/generated/client/floor_hook/instructions/seedFloor.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/seedInventory.d.ts +151 -0
- package/dist/generated/client/floor_hook/instructions/seedInventory.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/seedInventory.js +69 -0
- package/dist/generated/client/floor_hook/instructions/seedInventory.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/seedLiquidity.d.ts +118 -0
- package/dist/generated/client/floor_hook/instructions/seedLiquidity.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/seedLiquidity.js +69 -0
- package/dist/generated/client/floor_hook/instructions/seedLiquidity.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/setAllowAllQuotes.d.ts +54 -0
- package/dist/generated/client/floor_hook/instructions/setAllowAllQuotes.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/setAllowAllQuotes.js +61 -0
- package/dist/generated/client/floor_hook/instructions/setAllowAllQuotes.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/setGenesisStair.d.ts +63 -0
- package/dist/generated/client/floor_hook/instructions/setGenesisStair.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/setGenesisStair.js +65 -0
- package/dist/generated/client/floor_hook/instructions/setGenesisStair.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/setHookGovernance.d.ts +57 -0
- package/dist/generated/client/floor_hook/instructions/setHookGovernance.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/setHookGovernance.js +61 -0
- package/dist/generated/client/floor_hook/instructions/setHookGovernance.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/setQuoteEconomics.d.ts +61 -0
- package/dist/generated/client/floor_hook/instructions/setQuoteEconomics.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/setQuoteEconomics.js +61 -0
- package/dist/generated/client/floor_hook/instructions/setQuoteEconomics.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/setTeamTreasuryGovernance.d.ts +60 -0
- package/dist/generated/client/floor_hook/instructions/setTeamTreasuryGovernance.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/setTeamTreasuryGovernance.js +64 -0
- package/dist/generated/client/floor_hook/instructions/setTeamTreasuryGovernance.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/setTreasuryGovernance.d.ts +60 -0
- package/dist/generated/client/floor_hook/instructions/setTreasuryGovernance.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/setTreasuryGovernance.js +64 -0
- package/dist/generated/client/floor_hook/instructions/setTreasuryGovernance.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/sweepPlatformCut.d.ts +85 -0
- package/dist/generated/client/floor_hook/instructions/sweepPlatformCut.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/sweepPlatformCut.js +76 -0
- package/dist/generated/client/floor_hook/instructions/sweepPlatformCut.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/sweepStairFees.d.ts +93 -0
- package/dist/generated/client/floor_hook/instructions/sweepStairFees.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/sweepStairFees.js +72 -0
- package/dist/generated/client/floor_hook/instructions/sweepStairFees.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/sweepStairPayee.d.ts +84 -0
- package/dist/generated/client/floor_hook/instructions/sweepStairPayee.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/sweepStairPayee.js +65 -0
- package/dist/generated/client/floor_hook/instructions/sweepStairPayee.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/sweepTraderReferral.d.ts +73 -0
- package/dist/generated/client/floor_hook/instructions/sweepTraderReferral.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/sweepTraderReferral.js +64 -0
- package/dist/generated/client/floor_hook/instructions/sweepTraderReferral.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/twapTick.d.ts +40 -0
- package/dist/generated/client/floor_hook/instructions/twapTick.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/twapTick.js +45 -0
- package/dist/generated/client/floor_hook/instructions/twapTick.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/withdrawPlatform.d.ts +66 -0
- package/dist/generated/client/floor_hook/instructions/withdrawPlatform.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/withdrawPlatform.js +68 -0
- package/dist/generated/client/floor_hook/instructions/withdrawPlatform.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/withdrawStairTokens.d.ts +97 -0
- package/dist/generated/client/floor_hook/instructions/withdrawStairTokens.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/withdrawStairTokens.js +68 -0
- package/dist/generated/client/floor_hook/instructions/withdrawStairTokens.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/withdrawTeam.d.ts +66 -0
- package/dist/generated/client/floor_hook/instructions/withdrawTeam.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/withdrawTeam.js +68 -0
- package/dist/generated/client/floor_hook/instructions/withdrawTeam.js.map +1 -0
- package/dist/generated/client/floor_hook/pdas/floorPlatformPool.d.ts +12 -0
- package/dist/generated/client/floor_hook/pdas/floorPlatformPool.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/pdas/floorPlatformPool.js +13 -0
- package/dist/generated/client/floor_hook/pdas/floorPlatformPool.js.map +1 -0
- package/dist/generated/client/floor_hook/pdas/hookAuthority.d.ts +12 -0
- package/dist/generated/client/floor_hook/pdas/hookAuthority.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/pdas/hookAuthority.js +13 -0
- package/dist/generated/client/floor_hook/pdas/hookAuthority.js.map +1 -0
- package/dist/generated/client/floor_hook/pdas/hookConfig.d.ts +12 -0
- package/dist/generated/client/floor_hook/pdas/hookConfig.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/pdas/hookConfig.js +13 -0
- package/dist/generated/client/floor_hook/pdas/hookConfig.js.map +1 -0
- package/dist/generated/client/floor_hook/pdas/index.d.ts +16 -0
- package/dist/generated/client/floor_hook/pdas/index.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/pdas/index.js +16 -0
- package/dist/generated/client/floor_hook/pdas/index.js.map +1 -0
- package/dist/generated/client/floor_hook/pdas/platformTreasury.d.ts +12 -0
- package/dist/generated/client/floor_hook/pdas/platformTreasury.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/pdas/platformTreasury.js +13 -0
- package/dist/generated/client/floor_hook/pdas/platformTreasury.js.map +1 -0
- package/dist/generated/client/floor_hook/pdas/quotePolicy.d.ts +15 -0
- package/dist/generated/client/floor_hook/pdas/quotePolicy.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/pdas/quotePolicy.js +13 -0
- package/dist/generated/client/floor_hook/pdas/quotePolicy.js.map +1 -0
- package/dist/generated/client/floor_hook/pdas/stairRent.d.ts +15 -0
- package/dist/generated/client/floor_hook/pdas/stairRent.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/pdas/stairRent.js +13 -0
- package/dist/generated/client/floor_hook/pdas/stairRent.js.map +1 -0
- package/dist/generated/client/floor_hook/pdas/teamTreasury.d.ts +12 -0
- package/dist/generated/client/floor_hook/pdas/teamTreasury.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/pdas/teamTreasury.js +13 -0
- package/dist/generated/client/floor_hook/pdas/teamTreasury.js.map +1 -0
- package/dist/generated/client/floor_hook/pdas/vaultAuthority.d.ts +12 -0
- package/dist/generated/client/floor_hook/pdas/vaultAuthority.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/pdas/vaultAuthority.js +13 -0
- package/dist/generated/client/floor_hook/pdas/vaultAuthority.js.map +1 -0
- package/dist/generated/client/floor_hook/programs/floorHook.d.ts +302 -0
- package/dist/generated/client/floor_hook/programs/floorHook.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/programs/floorHook.js +622 -0
- package/dist/generated/client/floor_hook/programs/floorHook.js.map +1 -0
- package/dist/generated/client/floor_hook/programs/index.d.ts +9 -0
- package/dist/generated/client/floor_hook/programs/index.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/programs/index.js +9 -0
- package/dist/generated/client/floor_hook/programs/index.js.map +1 -0
- package/dist/generated/client/floor_hook/types/actionResult.d.ts +31 -0
- package/dist/generated/client/floor_hook/types/actionResult.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/types/actionResult.js +19 -0
- package/dist/generated/client/floor_hook/types/actionResult.js.map +1 -0
- package/dist/generated/client/floor_hook/types/balanceDelta.d.ts +20 -0
- package/dist/generated/client/floor_hook/types/balanceDelta.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/types/balanceDelta.js +18 -0
- package/dist/generated/client/floor_hook/types/balanceDelta.js.map +1 -0
- package/dist/generated/client/floor_hook/types/hookAction.d.ts +41 -0
- package/dist/generated/client/floor_hook/types/hookAction.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/types/hookAction.js +25 -0
- package/dist/generated/client/floor_hook/types/hookAction.js.map +1 -0
- package/dist/generated/client/floor_hook/types/hookRecordV1.d.ts +37 -0
- package/dist/generated/client/floor_hook/types/hookRecordV1.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/types/hookRecordV1.js +19 -0
- package/dist/generated/client/floor_hook/types/hookRecordV1.js.map +1 -0
- package/dist/generated/client/floor_hook/types/index.d.ts +18 -0
- package/dist/generated/client/floor_hook/types/index.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/types/index.js +18 -0
- package/dist/generated/client/floor_hook/types/index.js.map +1 -0
- package/dist/generated/client/floor_hook/types/poolSnapshot.d.ts +24 -0
- package/dist/generated/client/floor_hook/types/poolSnapshot.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/types/poolSnapshot.js +18 -0
- package/dist/generated/client/floor_hook/types/poolSnapshot.js.map +1 -0
- package/dist/generated/client/floor_hook/types/rentOwnerArg.d.ts +16 -0
- package/dist/generated/client/floor_hook/types/rentOwnerArg.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/types/rentOwnerArg.js +18 -0
- package/dist/generated/client/floor_hook/types/rentOwnerArg.js.map +1 -0
- package/dist/generated/client/floor_hook/types/slotArg.d.ts +18 -0
- package/dist/generated/client/floor_hook/types/slotArg.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/types/slotArg.js +18 -0
- package/dist/generated/client/floor_hook/types/slotArg.js.map +1 -0
- package/dist/generated/client/floor_hook/types/stairOwnerKindArg.d.ts +16 -0
- package/dist/generated/client/floor_hook/types/stairOwnerKindArg.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/types/stairOwnerKindArg.js +18 -0
- package/dist/generated/client/floor_hook/types/stairOwnerKindArg.js.map +1 -0
- package/dist/generated/client/floor_hook/types/swapParams.d.ts +22 -0
- package/dist/generated/client/floor_hook/types/swapParams.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/types/swapParams.js +18 -0
- package/dist/generated/client/floor_hook/types/swapParams.js.map +1 -0
- package/dist/generated/client/floor_hook/types/u128.d.ts +18 -0
- package/dist/generated/client/floor_hook/types/u128.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/types/u128.js +18 -0
- package/dist/generated/client/floor_hook/types/u128.js.map +1 -0
- package/dist/generated/client/floor_launch/accounts/buyerPosition.d.ts +39 -0
- package/dist/generated/client/floor_launch/accounts/buyerPosition.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/accounts/buyerPosition.js +47 -0
- package/dist/generated/client/floor_launch/accounts/buyerPosition.js.map +1 -0
- package/dist/generated/client/floor_launch/accounts/genesisSale.d.ts +111 -0
- package/dist/generated/client/floor_launch/accounts/genesisSale.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/accounts/genesisSale.js +47 -0
- package/dist/generated/client/floor_launch/accounts/genesisSale.js.map +1 -0
- package/dist/generated/client/floor_launch/accounts/index.d.ts +15 -0
- package/dist/generated/client/floor_launch/accounts/index.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/accounts/index.js +15 -0
- package/dist/generated/client/floor_launch/accounts/index.js.map +1 -0
- package/dist/generated/client/floor_launch/accounts/launch.d.ts +134 -0
- package/dist/generated/client/floor_launch/accounts/launch.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/accounts/launch.js +48 -0
- package/dist/generated/client/floor_launch/accounts/launch.js.map +1 -0
- package/dist/generated/client/floor_launch/accounts/launchConfig.d.ts +81 -0
- package/dist/generated/client/floor_launch/accounts/launchConfig.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/accounts/launchConfig.js +47 -0
- package/dist/generated/client/floor_launch/accounts/launchConfig.js.map +1 -0
- package/dist/generated/client/floor_launch/accounts/presetRegistry.d.ts +44 -0
- package/dist/generated/client/floor_launch/accounts/presetRegistry.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/accounts/presetRegistry.js +48 -0
- package/dist/generated/client/floor_launch/accounts/presetRegistry.js.map +1 -0
- package/dist/generated/client/floor_launch/accounts/quoteWalk.d.ts +51 -0
- package/dist/generated/client/floor_launch/accounts/quoteWalk.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/accounts/quoteWalk.js +47 -0
- package/dist/generated/client/floor_launch/accounts/quoteWalk.js.map +1 -0
- package/dist/generated/client/floor_launch/accounts/registryEntry.d.ts +43 -0
- package/dist/generated/client/floor_launch/accounts/registryEntry.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/accounts/registryEntry.js +47 -0
- package/dist/generated/client/floor_launch/accounts/registryEntry.js.map +1 -0
- package/dist/generated/client/floor_launch/constants/floorLaunch.d.ts +20 -0
- package/dist/generated/client/floor_launch/constants/floorLaunch.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/constants/floorLaunch.js +19 -0
- package/dist/generated/client/floor_launch/constants/floorLaunch.js.map +1 -0
- package/dist/generated/client/floor_launch/constants/index.d.ts +9 -0
- package/dist/generated/client/floor_launch/constants/index.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/constants/index.js +9 -0
- package/dist/generated/client/floor_launch/constants/index.js.map +1 -0
- package/dist/generated/client/floor_launch/errors/floorLaunch.d.ts +222 -0
- package/dist/generated/client/floor_launch/errors/floorLaunch.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/errors/floorLaunch.js +225 -0
- package/dist/generated/client/floor_launch/errors/floorLaunch.js.map +1 -0
- package/dist/generated/client/floor_launch/errors/index.d.ts +9 -0
- package/dist/generated/client/floor_launch/errors/index.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/errors/index.js +9 -0
- package/dist/generated/client/floor_launch/errors/index.js.map +1 -0
- package/dist/generated/client/floor_launch/events/allocationDustRouted.d.ts +25 -0
- package/dist/generated/client/floor_launch/events/allocationDustRouted.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/allocationDustRouted.js +30 -0
- package/dist/generated/client/floor_launch/events/allocationDustRouted.js.map +1 -0
- package/dist/generated/client/floor_launch/events/attestorChanged.d.ts +25 -0
- package/dist/generated/client/floor_launch/events/attestorChanged.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/attestorChanged.js +30 -0
- package/dist/generated/client/floor_launch/events/attestorChanged.js.map +1 -0
- package/dist/generated/client/floor_launch/events/bought.d.ts +37 -0
- package/dist/generated/client/floor_launch/events/bought.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/bought.js +30 -0
- package/dist/generated/client/floor_launch/events/bought.js.map +1 -0
- package/dist/generated/client/floor_launch/events/contributed.d.ts +39 -0
- package/dist/generated/client/floor_launch/events/contributed.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/contributed.js +30 -0
- package/dist/generated/client/floor_launch/events/contributed.js.map +1 -0
- package/dist/generated/client/floor_launch/events/floorFeesApplied.d.ts +27 -0
- package/dist/generated/client/floor_launch/events/floorFeesApplied.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/floorFeesApplied.js +30 -0
- package/dist/generated/client/floor_launch/events/floorFeesApplied.js.map +1 -0
- package/dist/generated/client/floor_launch/events/floorShareUpdated.d.ts +24 -0
- package/dist/generated/client/floor_launch/events/floorShareUpdated.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/floorShareUpdated.js +30 -0
- package/dist/generated/client/floor_launch/events/floorShareUpdated.js.map +1 -0
- package/dist/generated/client/floor_launch/events/genesisAuthorityTransferStarted.d.ts +24 -0
- package/dist/generated/client/floor_launch/events/genesisAuthorityTransferStarted.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/genesisAuthorityTransferStarted.js +30 -0
- package/dist/generated/client/floor_launch/events/genesisAuthorityTransferStarted.js.map +1 -0
- package/dist/generated/client/floor_launch/events/genesisAuthorityTransferred.d.ts +24 -0
- package/dist/generated/client/floor_launch/events/genesisAuthorityTransferred.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/genesisAuthorityTransferred.js +30 -0
- package/dist/generated/client/floor_launch/events/genesisAuthorityTransferred.js.map +1 -0
- package/dist/generated/client/floor_launch/events/genesisClaimed.d.ts +31 -0
- package/dist/generated/client/floor_launch/events/genesisClaimed.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/genesisClaimed.js +30 -0
- package/dist/generated/client/floor_launch/events/genesisClaimed.js.map +1 -0
- package/dist/generated/client/floor_launch/events/genesisGraduated.d.ts +39 -0
- package/dist/generated/client/floor_launch/events/genesisGraduated.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/genesisGraduated.js +30 -0
- package/dist/generated/client/floor_launch/events/genesisGraduated.js.map +1 -0
- package/dist/generated/client/floor_launch/events/genesisInitialized.d.ts +37 -0
- package/dist/generated/client/floor_launch/events/genesisInitialized.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/genesisInitialized.js +30 -0
- package/dist/generated/client/floor_launch/events/genesisInitialized.js.map +1 -0
- package/dist/generated/client/floor_launch/events/genesisRefunded.d.ts +29 -0
- package/dist/generated/client/floor_launch/events/genesisRefunded.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/genesisRefunded.js +30 -0
- package/dist/generated/client/floor_launch/events/genesisRefunded.js.map +1 -0
- package/dist/generated/client/floor_launch/events/genesisStairTopUpdated.d.ts +27 -0
- package/dist/generated/client/floor_launch/events/genesisStairTopUpdated.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/genesisStairTopUpdated.js +30 -0
- package/dist/generated/client/floor_launch/events/genesisStairTopUpdated.js.map +1 -0
- package/dist/generated/client/floor_launch/events/genesisWhitelistUpdated.d.ts +25 -0
- package/dist/generated/client/floor_launch/events/genesisWhitelistUpdated.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/genesisWhitelistUpdated.js +30 -0
- package/dist/generated/client/floor_launch/events/genesisWhitelistUpdated.js.map +1 -0
- package/dist/generated/client/floor_launch/events/governanceChanged.d.ts +26 -0
- package/dist/generated/client/floor_launch/events/governanceChanged.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/governanceChanged.js +30 -0
- package/dist/generated/client/floor_launch/events/governanceChanged.js.map +1 -0
- package/dist/generated/client/floor_launch/events/graduated.d.ts +35 -0
- package/dist/generated/client/floor_launch/events/graduated.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/graduated.js +30 -0
- package/dist/generated/client/floor_launch/events/graduated.js.map +1 -0
- package/dist/generated/client/floor_launch/events/graduationPrepared.d.ts +33 -0
- package/dist/generated/client/floor_launch/events/graduationPrepared.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/graduationPrepared.js +30 -0
- package/dist/generated/client/floor_launch/events/graduationPrepared.js.map +1 -0
- package/dist/generated/client/floor_launch/events/graduationRentClosed.d.ts +31 -0
- package/dist/generated/client/floor_launch/events/graduationRentClosed.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/graduationRentClosed.js +30 -0
- package/dist/generated/client/floor_launch/events/graduationRentClosed.js.map +1 -0
- package/dist/generated/client/floor_launch/events/graduationRentReserved.d.ts +29 -0
- package/dist/generated/client/floor_launch/events/graduationRentReserved.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/graduationRentReserved.js +30 -0
- package/dist/generated/client/floor_launch/events/graduationRentReserved.js.map +1 -0
- package/dist/generated/client/floor_launch/events/index.d.ts +52 -0
- package/dist/generated/client/floor_launch/events/index.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/index.js +52 -0
- package/dist/generated/client/floor_launch/events/index.js.map +1 -0
- package/dist/generated/client/floor_launch/events/launchConfigInitialized.d.ts +26 -0
- package/dist/generated/client/floor_launch/events/launchConfigInitialized.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/launchConfigInitialized.js +30 -0
- package/dist/generated/client/floor_launch/events/launchConfigInitialized.js.map +1 -0
- package/dist/generated/client/floor_launch/events/launchCreated.d.ts +55 -0
- package/dist/generated/client/floor_launch/events/launchCreated.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/launchCreated.js +30 -0
- package/dist/generated/client/floor_launch/events/launchCreated.js.map +1 -0
- package/dist/generated/client/floor_launch/events/launchEconomicsUpdated.d.ts +39 -0
- package/dist/generated/client/floor_launch/events/launchEconomicsUpdated.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/launchEconomicsUpdated.js +30 -0
- package/dist/generated/client/floor_launch/events/launchEconomicsUpdated.js.map +1 -0
- package/dist/generated/client/floor_launch/events/metadataBaseSet.d.ts +31 -0
- package/dist/generated/client/floor_launch/events/metadataBaseSet.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/metadataBaseSet.js +30 -0
- package/dist/generated/client/floor_launch/events/metadataBaseSet.js.map +1 -0
- package/dist/generated/client/floor_launch/events/metadataUriFilled.d.ts +25 -0
- package/dist/generated/client/floor_launch/events/metadataUriFilled.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/metadataUriFilled.js +30 -0
- package/dist/generated/client/floor_launch/events/metadataUriFilled.js.map +1 -0
- package/dist/generated/client/floor_launch/events/openingTick.d.ts +31 -0
- package/dist/generated/client/floor_launch/events/openingTick.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/openingTick.js +30 -0
- package/dist/generated/client/floor_launch/events/openingTick.js.map +1 -0
- package/dist/generated/client/floor_launch/events/payeeSlotsSet.d.ts +30 -0
- package/dist/generated/client/floor_launch/events/payeeSlotsSet.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/payeeSlotsSet.js +31 -0
- package/dist/generated/client/floor_launch/events/payeeSlotsSet.js.map +1 -0
- package/dist/generated/client/floor_launch/events/presetAdded.d.ts +28 -0
- package/dist/generated/client/floor_launch/events/presetAdded.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/presetAdded.js +31 -0
- package/dist/generated/client/floor_launch/events/presetAdded.js.map +1 -0
- package/dist/generated/client/floor_launch/events/presetAuthorityTransferStarted.d.ts +24 -0
- package/dist/generated/client/floor_launch/events/presetAuthorityTransferStarted.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/presetAuthorityTransferStarted.js +30 -0
- package/dist/generated/client/floor_launch/events/presetAuthorityTransferStarted.js.map +1 -0
- package/dist/generated/client/floor_launch/events/presetAuthorityTransferred.d.ts +24 -0
- package/dist/generated/client/floor_launch/events/presetAuthorityTransferred.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/presetAuthorityTransferred.js +30 -0
- package/dist/generated/client/floor_launch/events/presetAuthorityTransferred.js.map +1 -0
- package/dist/generated/client/floor_launch/events/presetEnabled.d.ts +24 -0
- package/dist/generated/client/floor_launch/events/presetEnabled.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/presetEnabled.js +30 -0
- package/dist/generated/client/floor_launch/events/presetEnabled.js.map +1 -0
- package/dist/generated/client/floor_launch/events/quoteChainPriced.d.ts +33 -0
- package/dist/generated/client/floor_launch/events/quoteChainPriced.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/quoteChainPriced.js +30 -0
- package/dist/generated/client/floor_launch/events/quoteChainPriced.js.map +1 -0
- package/dist/generated/client/floor_launch/events/recipientClaimed.d.ts +26 -0
- package/dist/generated/client/floor_launch/events/recipientClaimed.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/recipientClaimed.js +30 -0
- package/dist/generated/client/floor_launch/events/recipientClaimed.js.map +1 -0
- package/dist/generated/client/floor_launch/events/saleTraderReferralBooked.d.ts +33 -0
- package/dist/generated/client/floor_launch/events/saleTraderReferralBooked.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/saleTraderReferralBooked.js +30 -0
- package/dist/generated/client/floor_launch/events/saleTraderReferralBooked.js.map +1 -0
- package/dist/generated/client/floor_launch/events/saleTraderReferralSwept.d.ts +29 -0
- package/dist/generated/client/floor_launch/events/saleTraderReferralSwept.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/saleTraderReferralSwept.js +30 -0
- package/dist/generated/client/floor_launch/events/saleTraderReferralSwept.js.map +1 -0
- package/dist/generated/client/floor_launch/events/scheduleUpdated.d.ts +29 -0
- package/dist/generated/client/floor_launch/events/scheduleUpdated.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/scheduleUpdated.js +30 -0
- package/dist/generated/client/floor_launch/events/scheduleUpdated.js.map +1 -0
- package/dist/generated/client/floor_launch/events/soldBack.d.ts +35 -0
- package/dist/generated/client/floor_launch/events/soldBack.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/soldBack.js +30 -0
- package/dist/generated/client/floor_launch/events/soldBack.js.map +1 -0
- package/dist/generated/client/floor_launch/events/stairPayeeClaimed.d.ts +26 -0
- package/dist/generated/client/floor_launch/events/stairPayeeClaimed.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/stairPayeeClaimed.js +30 -0
- package/dist/generated/client/floor_launch/events/stairPayeeClaimed.js.map +1 -0
- package/dist/generated/client/floor_launch/events/stairRentFunded.d.ts +33 -0
- package/dist/generated/client/floor_launch/events/stairRentFunded.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/stairRentFunded.js +30 -0
- package/dist/generated/client/floor_launch/events/stairRentFunded.js.map +1 -0
- package/dist/generated/client/floor_launch/events/teamBought.d.ts +41 -0
- package/dist/generated/client/floor_launch/events/teamBought.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/teamBought.js +30 -0
- package/dist/generated/client/floor_launch/events/teamBought.js.map +1 -0
- package/dist/generated/client/floor_launch/events/teamBuySoldBack.d.ts +37 -0
- package/dist/generated/client/floor_launch/events/teamBuySoldBack.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/teamBuySoldBack.js +30 -0
- package/dist/generated/client/floor_launch/events/teamBuySoldBack.js.map +1 -0
- package/dist/generated/client/floor_launch/events/teamFeesSet.d.ts +28 -0
- package/dist/generated/client/floor_launch/events/teamFeesSet.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/teamFeesSet.js +30 -0
- package/dist/generated/client/floor_launch/events/teamFeesSet.js.map +1 -0
- package/dist/generated/client/floor_launch/events/teamVestedClaimed.d.ts +33 -0
- package/dist/generated/client/floor_launch/events/teamVestedClaimed.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/teamVestedClaimed.js +30 -0
- package/dist/generated/client/floor_launch/events/teamVestedClaimed.js.map +1 -0
- package/dist/generated/client/floor_launch/events/traderLinked.d.ts +26 -0
- package/dist/generated/client/floor_launch/events/traderLinked.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/traderLinked.js +30 -0
- package/dist/generated/client/floor_launch/events/traderLinked.js.map +1 -0
- package/dist/generated/client/floor_launch/events/vestingCreated.d.ts +23 -0
- package/dist/generated/client/floor_launch/events/vestingCreated.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/vestingCreated.js +30 -0
- package/dist/generated/client/floor_launch/events/vestingCreated.js.map +1 -0
- package/dist/generated/client/floor_launch/index.d.ts +16 -0
- package/dist/generated/client/floor_launch/index.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/index.js +16 -0
- package/dist/generated/client/floor_launch/index.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/acceptGenesisAuthority.d.ts +49 -0
- package/dist/generated/client/floor_launch/instructions/acceptGenesisAuthority.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/acceptGenesisAuthority.js +57 -0
- package/dist/generated/client/floor_launch/instructions/acceptGenesisAuthority.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/acceptGovernance.d.ts +49 -0
- package/dist/generated/client/floor_launch/instructions/acceptGovernance.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/acceptGovernance.js +57 -0
- package/dist/generated/client/floor_launch/instructions/acceptGovernance.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/acceptPresetAuthority.d.ts +49 -0
- package/dist/generated/client/floor_launch/instructions/acceptPresetAuthority.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/acceptPresetAuthority.js +57 -0
- package/dist/generated/client/floor_launch/instructions/acceptPresetAuthority.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/addPreset.d.ts +55 -0
- package/dist/generated/client/floor_launch/instructions/addPreset.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/addPreset.js +62 -0
- package/dist/generated/client/floor_launch/instructions/addPreset.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/buy.d.ts +89 -0
- package/dist/generated/client/floor_launch/instructions/buy.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/buy.js +89 -0
- package/dist/generated/client/floor_launch/instructions/buy.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/claimGenesis.d.ts +73 -0
- package/dist/generated/client/floor_launch/instructions/claimGenesis.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/claimGenesis.js +79 -0
- package/dist/generated/client/floor_launch/instructions/claimGenesis.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/claimGenesisPayee.d.ts +79 -0
- package/dist/generated/client/floor_launch/instructions/claimGenesisPayee.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/claimGenesisPayee.js +64 -0
- package/dist/generated/client/floor_launch/instructions/claimGenesisPayee.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/claimRecipient.d.ts +83 -0
- package/dist/generated/client/floor_launch/instructions/claimRecipient.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/claimRecipient.js +64 -0
- package/dist/generated/client/floor_launch/instructions/claimRecipient.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/claimTeamPayee.d.ts +83 -0
- package/dist/generated/client/floor_launch/instructions/claimTeamPayee.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/claimTeamPayee.js +64 -0
- package/dist/generated/client/floor_launch/instructions/claimTeamPayee.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/claimTeamVested.d.ts +69 -0
- package/dist/generated/client/floor_launch/instructions/claimTeamVested.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/claimTeamVested.js +68 -0
- package/dist/generated/client/floor_launch/instructions/claimTeamVested.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/closeBuyerPosition.d.ts +46 -0
- package/dist/generated/client/floor_launch/instructions/closeBuyerPosition.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/closeBuyerPosition.js +57 -0
- package/dist/generated/client/floor_launch/instructions/closeBuyerPosition.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/closeGraduationRent.d.ts +52 -0
- package/dist/generated/client/floor_launch/instructions/closeGraduationRent.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/closeGraduationRent.js +57 -0
- package/dist/generated/client/floor_launch/instructions/closeGraduationRent.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/closePreparedTickArray.d.ts +61 -0
- package/dist/generated/client/floor_launch/instructions/closePreparedTickArray.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/closePreparedTickArray.js +57 -0
- package/dist/generated/client/floor_launch/instructions/closePreparedTickArray.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/closeQuoteWalk.d.ts +36 -0
- package/dist/generated/client/floor_launch/instructions/closeQuoteWalk.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/closeQuoteWalk.js +43 -0
- package/dist/generated/client/floor_launch/instructions/closeQuoteWalk.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/contribute.d.ts +74 -0
- package/dist/generated/client/floor_launch/instructions/contribute.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/contribute.js +74 -0
- package/dist/generated/client/floor_launch/instructions/contribute.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/createLaunch.d.ts +243 -0
- package/dist/generated/client/floor_launch/instructions/createLaunch.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/createLaunch.js +118 -0
- package/dist/generated/client/floor_launch/instructions/createLaunch.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/endGenesisSale.d.ts +67 -0
- package/dist/generated/client/floor_launch/instructions/endGenesisSale.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/endGenesisSale.js +60 -0
- package/dist/generated/client/floor_launch/instructions/endGenesisSale.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/fillMetadataUri.d.ts +64 -0
- package/dist/generated/client/floor_launch/instructions/fillMetadataUri.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/fillMetadataUri.js +76 -0
- package/dist/generated/client/floor_launch/instructions/fillMetadataUri.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/flushAllocationDust.d.ts +79 -0
- package/dist/generated/client/floor_launch/instructions/flushAllocationDust.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/flushAllocationDust.js +64 -0
- package/dist/generated/client/floor_launch/instructions/flushAllocationDust.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/flushFloorFees.d.ts +88 -0
- package/dist/generated/client/floor_launch/instructions/flushFloorFees.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/flushFloorFees.js +73 -0
- package/dist/generated/client/floor_launch/instructions/flushFloorFees.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/fundStairRent.d.ts +55 -0
- package/dist/generated/client/floor_launch/instructions/fundStairRent.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/fundStairRent.js +57 -0
- package/dist/generated/client/floor_launch/instructions/fundStairRent.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/graduate.d.ts +67 -0
- package/dist/generated/client/floor_launch/instructions/graduate.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/graduate.js +76 -0
- package/dist/generated/client/floor_launch/instructions/graduate.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/graduateGenesis.d.ts +70 -0
- package/dist/generated/client/floor_launch/instructions/graduateGenesis.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/graduateGenesis.js +76 -0
- package/dist/generated/client/floor_launch/instructions/graduateGenesis.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/index.d.ts +56 -0
- package/dist/generated/client/floor_launch/instructions/index.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/index.js +56 -0
- package/dist/generated/client/floor_launch/instructions/index.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/initGenesis.d.ts +99 -0
- package/dist/generated/client/floor_launch/instructions/initGenesis.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/initGenesis.js +80 -0
- package/dist/generated/client/floor_launch/instructions/initGenesis.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/initPresetRegistry.d.ts +58 -0
- package/dist/generated/client/floor_launch/instructions/initPresetRegistry.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/initPresetRegistry.js +67 -0
- package/dist/generated/client/floor_launch/instructions/initPresetRegistry.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/initializeLaunchConfig.d.ts +93 -0
- package/dist/generated/client/floor_launch/instructions/initializeLaunchConfig.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/initializeLaunchConfig.js +71 -0
- package/dist/generated/client/floor_launch/instructions/initializeLaunchConfig.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/linkTrader.d.ts +84 -0
- package/dist/generated/client/floor_launch/instructions/linkTrader.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/linkTrader.js +77 -0
- package/dist/generated/client/floor_launch/instructions/linkTrader.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/lockGenesis.d.ts +82 -0
- package/dist/generated/client/floor_launch/instructions/lockGenesis.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/lockGenesis.js +76 -0
- package/dist/generated/client/floor_launch/instructions/lockGenesis.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/openSaleTraderReferral.d.ts +58 -0
- package/dist/generated/client/floor_launch/instructions/openSaleTraderReferral.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/openSaleTraderReferral.js +67 -0
- package/dist/generated/client/floor_launch/instructions/openSaleTraderReferral.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/prepareGraduation.d.ts +58 -0
- package/dist/generated/client/floor_launch/instructions/prepareGraduation.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/prepareGraduation.js +70 -0
- package/dist/generated/client/floor_launch/instructions/prepareGraduation.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/refundGenesis.d.ts +58 -0
- package/dist/generated/client/floor_launch/instructions/refundGenesis.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/refundGenesis.js +63 -0
- package/dist/generated/client/floor_launch/instructions/refundGenesis.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/sellBack.d.ts +75 -0
- package/dist/generated/client/floor_launch/instructions/sellBack.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/sellBack.js +77 -0
- package/dist/generated/client/floor_launch/instructions/sellBack.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/sellBackWsol.d.ts +75 -0
- package/dist/generated/client/floor_launch/instructions/sellBackWsol.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/sellBackWsol.js +77 -0
- package/dist/generated/client/floor_launch/instructions/sellBackWsol.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/setAttestor.d.ts +63 -0
- package/dist/generated/client/floor_launch/instructions/setAttestor.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/setAttestor.js +61 -0
- package/dist/generated/client/floor_launch/instructions/setAttestor.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/setGenesisFloorShare.d.ts +54 -0
- package/dist/generated/client/floor_launch/instructions/setGenesisFloorShare.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/setGenesisFloorShare.js +61 -0
- package/dist/generated/client/floor_launch/instructions/setGenesisFloorShare.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/setGenesisSchedule.d.ts +58 -0
- package/dist/generated/client/floor_launch/instructions/setGenesisSchedule.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/setGenesisSchedule.js +61 -0
- package/dist/generated/client/floor_launch/instructions/setGenesisSchedule.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/setGenesisStairTop.d.ts +54 -0
- package/dist/generated/client/floor_launch/instructions/setGenesisStairTop.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/setGenesisStairTop.js +61 -0
- package/dist/generated/client/floor_launch/instructions/setGenesisStairTop.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/setGenesisWhitelist.d.ts +58 -0
- package/dist/generated/client/floor_launch/instructions/setGenesisWhitelist.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/setGenesisWhitelist.js +61 -0
- package/dist/generated/client/floor_launch/instructions/setGenesisWhitelist.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/setGovernance.d.ts +54 -0
- package/dist/generated/client/floor_launch/instructions/setGovernance.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/setGovernance.js +61 -0
- package/dist/generated/client/floor_launch/instructions/setGovernance.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/setLaunchEconomics.d.ts +65 -0
- package/dist/generated/client/floor_launch/instructions/setLaunchEconomics.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/setLaunchEconomics.js +61 -0
- package/dist/generated/client/floor_launch/instructions/setLaunchEconomics.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/setMetadataBase.d.ts +54 -0
- package/dist/generated/client/floor_launch/instructions/setMetadataBase.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/setMetadataBase.js +61 -0
- package/dist/generated/client/floor_launch/instructions/setMetadataBase.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/setPresetAuthority.d.ts +54 -0
- package/dist/generated/client/floor_launch/instructions/setPresetAuthority.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/setPresetAuthority.js +61 -0
- package/dist/generated/client/floor_launch/instructions/setPresetAuthority.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/setPresetEnabled.d.ts +58 -0
- package/dist/generated/client/floor_launch/instructions/setPresetEnabled.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/setPresetEnabled.js +61 -0
- package/dist/generated/client/floor_launch/instructions/setPresetEnabled.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/setTeamFees.d.ts +61 -0
- package/dist/generated/client/floor_launch/instructions/setTeamFees.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/setTeamFees.js +61 -0
- package/dist/generated/client/floor_launch/instructions/setTeamFees.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/sweepSaleTraderReferral.d.ts +61 -0
- package/dist/generated/client/floor_launch/instructions/sweepSaleTraderReferral.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/sweepSaleTraderReferral.js +57 -0
- package/dist/generated/client/floor_launch/instructions/sweepSaleTraderReferral.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/teamBuySellBack.d.ts +64 -0
- package/dist/generated/client/floor_launch/instructions/teamBuySellBack.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/teamBuySellBack.js +60 -0
- package/dist/generated/client/floor_launch/instructions/teamBuySellBack.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/transferGenesisAuthority.d.ts +54 -0
- package/dist/generated/client/floor_launch/instructions/transferGenesisAuthority.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/transferGenesisAuthority.js +61 -0
- package/dist/generated/client/floor_launch/instructions/transferGenesisAuthority.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/walkQuoteChain.d.ts +58 -0
- package/dist/generated/client/floor_launch/instructions/walkQuoteChain.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/walkQuoteChain.js +68 -0
- package/dist/generated/client/floor_launch/instructions/walkQuoteChain.js.map +1 -0
- package/dist/generated/client/floor_launch/pdas/buyerPosition.d.ts +16 -0
- package/dist/generated/client/floor_launch/pdas/buyerPosition.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/pdas/buyerPosition.js +13 -0
- package/dist/generated/client/floor_launch/pdas/buyerPosition.js.map +1 -0
- package/dist/generated/client/floor_launch/pdas/contributeContribution.d.ts +15 -0
- package/dist/generated/client/floor_launch/pdas/contributeContribution.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/pdas/contributeContribution.js +13 -0
- package/dist/generated/client/floor_launch/pdas/contributeContribution.js.map +1 -0
- package/dist/generated/client/floor_launch/pdas/contribution.d.ts +15 -0
- package/dist/generated/client/floor_launch/pdas/contribution.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/pdas/contribution.js +13 -0
- package/dist/generated/client/floor_launch/pdas/contribution.js.map +1 -0
- package/dist/generated/client/floor_launch/pdas/creatorTraderLink.d.ts +15 -0
- package/dist/generated/client/floor_launch/pdas/creatorTraderLink.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/pdas/creatorTraderLink.js +13 -0
- package/dist/generated/client/floor_launch/pdas/creatorTraderLink.js.map +1 -0
- package/dist/generated/client/floor_launch/pdas/genesisSale.d.ts +12 -0
- package/dist/generated/client/floor_launch/pdas/genesisSale.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/pdas/genesisSale.js +13 -0
- package/dist/generated/client/floor_launch/pdas/genesisSale.js.map +1 -0
- package/dist/generated/client/floor_launch/pdas/graduationRent.d.ts +15 -0
- package/dist/generated/client/floor_launch/pdas/graduationRent.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/pdas/graduationRent.js +13 -0
- package/dist/generated/client/floor_launch/pdas/graduationRent.js.map +1 -0
- package/dist/generated/client/floor_launch/pdas/index.d.ts +26 -0
- package/dist/generated/client/floor_launch/pdas/index.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/pdas/index.js +26 -0
- package/dist/generated/client/floor_launch/pdas/index.js.map +1 -0
- package/dist/generated/client/floor_launch/pdas/launch.d.ts +15 -0
- package/dist/generated/client/floor_launch/pdas/launch.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/pdas/launch.js +13 -0
- package/dist/generated/client/floor_launch/pdas/launch.js.map +1 -0
- package/dist/generated/client/floor_launch/pdas/launchAuthority.d.ts +12 -0
- package/dist/generated/client/floor_launch/pdas/launchAuthority.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/pdas/launchAuthority.js +13 -0
- package/dist/generated/client/floor_launch/pdas/launchAuthority.js.map +1 -0
- package/dist/generated/client/floor_launch/pdas/launchConfig.d.ts +12 -0
- package/dist/generated/client/floor_launch/pdas/launchConfig.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/pdas/launchConfig.js +13 -0
- package/dist/generated/client/floor_launch/pdas/launchConfig.js.map +1 -0
- package/dist/generated/client/floor_launch/pdas/lockAuthority.d.ts +12 -0
- package/dist/generated/client/floor_launch/pdas/lockAuthority.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/pdas/lockAuthority.js +13 -0
- package/dist/generated/client/floor_launch/pdas/lockAuthority.js.map +1 -0
- package/dist/generated/client/floor_launch/pdas/mint.d.ts +16 -0
- package/dist/generated/client/floor_launch/pdas/mint.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/pdas/mint.js +13 -0
- package/dist/generated/client/floor_launch/pdas/mint.js.map +1 -0
- package/dist/generated/client/floor_launch/pdas/mintAuthority.d.ts +12 -0
- package/dist/generated/client/floor_launch/pdas/mintAuthority.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/pdas/mintAuthority.js +13 -0
- package/dist/generated/client/floor_launch/pdas/mintAuthority.js.map +1 -0
- package/dist/generated/client/floor_launch/pdas/presetRegistry.d.ts +12 -0
- package/dist/generated/client/floor_launch/pdas/presetRegistry.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/pdas/presetRegistry.js +13 -0
- package/dist/generated/client/floor_launch/pdas/presetRegistry.js.map +1 -0
- package/dist/generated/client/floor_launch/pdas/quoteWalk.d.ts +16 -0
- package/dist/generated/client/floor_launch/pdas/quoteWalk.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/pdas/quoteWalk.js +13 -0
- package/dist/generated/client/floor_launch/pdas/quoteWalk.js.map +1 -0
- package/dist/generated/client/floor_launch/pdas/registryEntry.d.ts +15 -0
- package/dist/generated/client/floor_launch/pdas/registryEntry.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/pdas/registryEntry.js +13 -0
- package/dist/generated/client/floor_launch/pdas/registryEntry.js.map +1 -0
- package/dist/generated/client/floor_launch/pdas/saleVault.d.ts +15 -0
- package/dist/generated/client/floor_launch/pdas/saleVault.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/pdas/saleVault.js +13 -0
- package/dist/generated/client/floor_launch/pdas/saleVault.js.map +1 -0
- package/dist/generated/client/floor_launch/pdas/traderLink.d.ts +15 -0
- package/dist/generated/client/floor_launch/pdas/traderLink.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/pdas/traderLink.js +13 -0
- package/dist/generated/client/floor_launch/pdas/traderLink.js.map +1 -0
- package/dist/generated/client/floor_launch/pdas/traderRefSale.d.ts +15 -0
- package/dist/generated/client/floor_launch/pdas/traderRefSale.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/pdas/traderRefSale.js +13 -0
- package/dist/generated/client/floor_launch/pdas/traderRefSale.js.map +1 -0
- package/dist/generated/client/floor_launch/programs/floorLaunch.d.ts +319 -0
- package/dist/generated/client/floor_launch/programs/floorLaunch.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/programs/floorLaunch.js +634 -0
- package/dist/generated/client/floor_launch/programs/floorLaunch.js.map +1 -0
- package/dist/generated/client/floor_launch/programs/index.d.ts +9 -0
- package/dist/generated/client/floor_launch/programs/index.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/programs/index.js +9 -0
- package/dist/generated/client/floor_launch/programs/index.js.map +1 -0
- package/dist/generated/client/floor_launch/types/index.d.ts +12 -0
- package/dist/generated/client/floor_launch/types/index.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/types/index.js +12 -0
- package/dist/generated/client/floor_launch/types/index.js.map +1 -0
- package/dist/generated/client/floor_launch/types/presetRowArgs.d.ts +40 -0
- package/dist/generated/client/floor_launch/types/presetRowArgs.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/types/presetRowArgs.js +18 -0
- package/dist/generated/client/floor_launch/types/presetRowArgs.js.map +1 -0
- package/dist/generated/client/floor_launch/types/presetRowZc.d.ts +44 -0
- package/dist/generated/client/floor_launch/types/presetRowZc.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/types/presetRowZc.js +18 -0
- package/dist/generated/client/floor_launch/types/presetRowZc.js.map +1 -0
- package/dist/generated/client/floor_launch/types/slotArg.d.ts +18 -0
- package/dist/generated/client/floor_launch/types/slotArg.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/types/slotArg.js +18 -0
- package/dist/generated/client/floor_launch/types/slotArg.js.map +1 -0
- package/dist/generated/client/floor_launch/types/u128.d.ts +18 -0
- package/dist/generated/client/floor_launch/types/u128.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/types/u128.js +18 -0
- package/dist/generated/client/floor_launch/types/u128.js.map +1 -0
- package/dist/generated/client/floor_vesting/accounts/index.d.ts +9 -0
- package/dist/generated/client/floor_vesting/accounts/index.d.ts.map +1 -0
- package/dist/generated/client/floor_vesting/accounts/index.js +9 -0
- package/dist/generated/client/floor_vesting/accounts/index.js.map +1 -0
- package/dist/generated/client/floor_vesting/accounts/vestingSchedule.d.ts +57 -0
- package/dist/generated/client/floor_vesting/accounts/vestingSchedule.d.ts.map +1 -0
- package/dist/generated/client/floor_vesting/accounts/vestingSchedule.js +47 -0
- package/dist/generated/client/floor_vesting/accounts/vestingSchedule.js.map +1 -0
- package/dist/generated/client/floor_vesting/errors/floorVesting.d.ts +42 -0
- package/dist/generated/client/floor_vesting/errors/floorVesting.d.ts.map +1 -0
- package/dist/generated/client/floor_vesting/errors/floorVesting.js +45 -0
- package/dist/generated/client/floor_vesting/errors/floorVesting.js.map +1 -0
- package/dist/generated/client/floor_vesting/errors/index.d.ts +9 -0
- package/dist/generated/client/floor_vesting/errors/index.d.ts.map +1 -0
- package/dist/generated/client/floor_vesting/errors/index.js +9 -0
- package/dist/generated/client/floor_vesting/errors/index.js.map +1 -0
- package/dist/generated/client/floor_vesting/events/absoluteSchedule.d.ts +33 -0
- package/dist/generated/client/floor_vesting/events/absoluteSchedule.d.ts.map +1 -0
- package/dist/generated/client/floor_vesting/events/absoluteSchedule.js +30 -0
- package/dist/generated/client/floor_vesting/events/absoluteSchedule.js.map +1 -0
- package/dist/generated/client/floor_vesting/events/claimed.d.ts +33 -0
- package/dist/generated/client/floor_vesting/events/claimed.d.ts.map +1 -0
- package/dist/generated/client/floor_vesting/events/claimed.js +30 -0
- package/dist/generated/client/floor_vesting/events/claimed.js.map +1 -0
- package/dist/generated/client/floor_vesting/events/index.d.ts +12 -0
- package/dist/generated/client/floor_vesting/events/index.d.ts.map +1 -0
- package/dist/generated/client/floor_vesting/events/index.js +12 -0
- package/dist/generated/client/floor_vesting/events/index.js.map +1 -0
- package/dist/generated/client/floor_vesting/events/scheduleClosed.d.ts +31 -0
- package/dist/generated/client/floor_vesting/events/scheduleClosed.d.ts.map +1 -0
- package/dist/generated/client/floor_vesting/events/scheduleClosed.js +30 -0
- package/dist/generated/client/floor_vesting/events/scheduleClosed.js.map +1 -0
- package/dist/generated/client/floor_vesting/events/scheduleCreated.d.ts +43 -0
- package/dist/generated/client/floor_vesting/events/scheduleCreated.d.ts.map +1 -0
- package/dist/generated/client/floor_vesting/events/scheduleCreated.js +30 -0
- package/dist/generated/client/floor_vesting/events/scheduleCreated.js.map +1 -0
- package/dist/generated/client/floor_vesting/index.d.ts +14 -0
- package/dist/generated/client/floor_vesting/index.d.ts.map +1 -0
- package/dist/generated/client/floor_vesting/index.js +14 -0
- package/dist/generated/client/floor_vesting/index.js.map +1 -0
- package/dist/generated/client/floor_vesting/instructions/claim.d.ts +64 -0
- package/dist/generated/client/floor_vesting/instructions/claim.d.ts.map +1 -0
- package/dist/generated/client/floor_vesting/instructions/claim.js +67 -0
- package/dist/generated/client/floor_vesting/instructions/claim.js.map +1 -0
- package/dist/generated/client/floor_vesting/instructions/closeSchedule.d.ts +67 -0
- package/dist/generated/client/floor_vesting/instructions/closeSchedule.d.ts.map +1 -0
- package/dist/generated/client/floor_vesting/instructions/closeSchedule.js +71 -0
- package/dist/generated/client/floor_vesting/instructions/closeSchedule.js.map +1 -0
- package/dist/generated/client/floor_vesting/instructions/createSchedule.d.ts +87 -0
- package/dist/generated/client/floor_vesting/instructions/createSchedule.d.ts.map +1 -0
- package/dist/generated/client/floor_vesting/instructions/createSchedule.js +80 -0
- package/dist/generated/client/floor_vesting/instructions/createSchedule.js.map +1 -0
- package/dist/generated/client/floor_vesting/instructions/createScheduleAt.d.ts +94 -0
- package/dist/generated/client/floor_vesting/instructions/createScheduleAt.d.ts.map +1 -0
- package/dist/generated/client/floor_vesting/instructions/createScheduleAt.js +80 -0
- package/dist/generated/client/floor_vesting/instructions/createScheduleAt.js.map +1 -0
- package/dist/generated/client/floor_vesting/instructions/index.d.ts +12 -0
- package/dist/generated/client/floor_vesting/instructions/index.d.ts.map +1 -0
- package/dist/generated/client/floor_vesting/instructions/index.js +12 -0
- package/dist/generated/client/floor_vesting/instructions/index.js.map +1 -0
- package/dist/generated/client/floor_vesting/pdas/escrow.d.ts +15 -0
- package/dist/generated/client/floor_vesting/pdas/escrow.d.ts.map +1 -0
- package/dist/generated/client/floor_vesting/pdas/escrow.js +13 -0
- package/dist/generated/client/floor_vesting/pdas/escrow.js.map +1 -0
- package/dist/generated/client/floor_vesting/pdas/index.d.ts +11 -0
- package/dist/generated/client/floor_vesting/pdas/index.d.ts.map +1 -0
- package/dist/generated/client/floor_vesting/pdas/index.js +11 -0
- package/dist/generated/client/floor_vesting/pdas/index.js.map +1 -0
- package/dist/generated/client/floor_vesting/pdas/schedule.d.ts +16 -0
- package/dist/generated/client/floor_vesting/pdas/schedule.d.ts.map +1 -0
- package/dist/generated/client/floor_vesting/pdas/schedule.js +13 -0
- package/dist/generated/client/floor_vesting/pdas/schedule.js.map +1 -0
- package/dist/generated/client/floor_vesting/pdas/vestingAuthority.d.ts +12 -0
- package/dist/generated/client/floor_vesting/pdas/vestingAuthority.d.ts.map +1 -0
- package/dist/generated/client/floor_vesting/pdas/vestingAuthority.js +13 -0
- package/dist/generated/client/floor_vesting/pdas/vestingAuthority.js.map +1 -0
- package/dist/generated/client/floor_vesting/programs/floorVesting.d.ts +76 -0
- package/dist/generated/client/floor_vesting/programs/floorVesting.d.ts.map +1 -0
- package/dist/generated/client/floor_vesting/programs/floorVesting.js +98 -0
- package/dist/generated/client/floor_vesting/programs/floorVesting.js.map +1 -0
- package/dist/generated/client/floor_vesting/programs/index.d.ts +9 -0
- package/dist/generated/client/floor_vesting/programs/index.d.ts.map +1 -0
- package/dist/generated/client/floor_vesting/programs/index.js +9 -0
- package/dist/generated/client/floor_vesting/programs/index.js.map +1 -0
- package/dist/generated/deployments.d.ts +3 -0
- package/dist/generated/deployments.d.ts.map +1 -0
- package/dist/generated/deployments.js +89 -0
- package/dist/generated/deployments.js.map +1 -0
- package/dist/generated/idls.d.ts +12 -0
- package/dist/generated/idls.d.ts.map +1 -0
- package/dist/generated/idls.js +11 -0
- package/dist/generated/idls.js.map +1 -0
- package/dist/generated/wasm.d.ts +5 -0
- package/dist/generated/wasm.d.ts.map +1 -0
- package/dist/generated/wasm.js +6 -0
- package/dist/generated/wasm.js.map +1 -0
- package/dist/holders.d.ts +68 -0
- package/dist/holders.d.ts.map +1 -0
- package/dist/holders.js +124 -0
- package/dist/holders.js.map +1 -0
- package/dist/idl.d.ts +13 -0
- package/dist/idl.d.ts.map +1 -0
- package/dist/idl.js +17 -0
- package/dist/idl.js.map +1 -0
- package/dist/index.d.ts +33 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +37 -0
- package/dist/index.js.map +1 -0
- package/dist/layouts.d.ts +666 -0
- package/dist/layouts.d.ts.map +1 -0
- package/dist/layouts.js +420 -0
- package/dist/layouts.js.map +1 -0
- package/dist/pda.d.ts +88 -0
- package/dist/pda.d.ts.map +1 -0
- package/dist/pda.js +85 -0
- package/dist/pda.js.map +1 -0
- package/dist/predict.d.ts +169 -0
- package/dist/predict.d.ts.map +1 -0
- package/dist/predict.js +403 -0
- package/dist/predict.js.map +1 -0
- package/dist/quote/quoter.d.ts +212 -0
- package/dist/quote/quoter.d.ts.map +1 -0
- package/dist/quote/quoter.js +239 -0
- package/dist/quote/quoter.js.map +1 -0
- package/dist/quote/wasm.d.ts +22 -0
- package/dist/quote/wasm.d.ts.map +1 -0
- package/dist/quote/wasm.js +38 -0
- package/dist/quote/wasm.js.map +1 -0
- package/dist/slots.d.ts +86 -0
- package/dist/slots.d.ts.map +1 -0
- package/dist/slots.js +88 -0
- package/dist/slots.js.map +1 -0
- package/dist/stateView.d.ts +136 -0
- package/dist/stateView.d.ts.map +1 -0
- package/dist/stateView.js +203 -0
- package/dist/stateView.js.map +1 -0
- package/dist/tickmath.d.ts +60 -0
- package/dist/tickmath.d.ts.map +1 -0
- package/dist/tickmath.js +114 -0
- package/dist/tickmath.js.map +1 -0
- package/dist/twap.d.ts +34 -0
- package/dist/twap.d.ts.map +1 -0
- package/dist/twap.js +119 -0
- package/dist/twap.js.map +1 -0
- package/dist/tx/builders.d.ts +352 -0
- package/dist/tx/builders.d.ts.map +1 -0
- package/dist/tx/builders.js +484 -0
- package/dist/tx/builders.js.map +1 -0
- package/dist/tx/common.d.ts +34 -0
- package/dist/tx/common.d.ts.map +1 -0
- package/dist/tx/common.js +27 -0
- package/dist/tx/common.js.map +1 -0
- package/dist/tx/instructions.d.ts +303 -0
- package/dist/tx/instructions.d.ts.map +1 -0
- package/dist/tx/instructions.js +256 -0
- package/dist/tx/instructions.js.map +1 -0
- package/dist/tx/launchAlt.d.ts +41 -0
- package/dist/tx/launchAlt.d.ts.map +1 -0
- package/dist/tx/launchAlt.js +49 -0
- package/dist/tx/launchAlt.js.map +1 -0
- package/dist/tx/traderRef.d.ts +107 -0
- package/dist/tx/traderRef.d.ts.map +1 -0
- package/dist/tx/traderRef.js +132 -0
- package/dist/tx/traderRef.js.map +1 -0
- package/idl/floor_holders.json +1458 -0
- package/idl/floor_hook.json +9312 -0
- package/idl/floor_launch.json +10480 -0
- package/idl/floor_vesting.json +820 -0
- package/package.json +70 -4
- package/src/adapter.ts +487 -0
- package/src/adapters.ts +138 -0
- package/src/constants.ts +265 -0
- package/src/deployments.ts +144 -0
- package/src/events.ts +411 -0
- package/src/generated/client/floor_holders/constants/floorHolders.ts +21 -0
- package/src/generated/client/floor_holders/constants/index.ts +9 -0
- package/src/generated/client/floor_holders/errors/floorHolders.ts +66 -0
- package/src/generated/client/floor_holders/errors/index.ts +9 -0
- package/src/generated/client/floor_holders/events/claimsTableExtended.ts +38 -0
- package/src/generated/client/floor_holders/events/claimsTableRotated.ts +38 -0
- package/src/generated/client/floor_holders/events/holderClaimed.ts +38 -0
- package/src/generated/client/floor_holders/events/index.ts +14 -0
- package/src/generated/client/floor_holders/events/launchHooked.ts +38 -0
- package/src/generated/client/floor_holders/events/recordClosed.ts +38 -0
- package/src/generated/client/floor_holders/events/recordOpened.ts +38 -0
- package/src/generated/client/floor_holders/index.ts +14 -0
- package/src/generated/client/floor_holders/instructions/authorizeClaim.ts +168 -0
- package/src/generated/client/floor_holders/instructions/claim.ts +158 -0
- package/src/generated/client/floor_holders/instructions/closeRecord.ts +86 -0
- package/src/generated/client/floor_holders/instructions/execute.ts +83 -0
- package/src/generated/client/floor_holders/instructions/index.ts +18 -0
- package/src/generated/client/floor_holders/instructions/initLaunch.ts +163 -0
- package/src/generated/client/floor_holders/instructions/initializeClaimsRegistry.ts +107 -0
- package/src/generated/client/floor_holders/instructions/openRecord.ts +93 -0
- package/src/generated/client/floor_holders/instructions/rotateClaimsTable.ts +141 -0
- package/src/generated/client/floor_holders/instructions/sync.ts +80 -0
- package/src/generated/client/floor_holders/instructions/touch.ts +93 -0
- package/src/generated/client/floor_holders/pdas/claimsAltAuthority.ts +14 -0
- package/src/generated/client/floor_holders/pdas/claimsRegistry.ts +14 -0
- package/src/generated/client/floor_holders/pdas/holdersAuthority.ts +14 -0
- package/src/generated/client/floor_holders/pdas/index.ts +11 -0
- package/src/generated/client/floor_holders/programs/floorHolders.ts +103 -0
- package/src/generated/client/floor_holders/programs/index.ts +9 -0
- package/src/generated/client/floor_hook/accounts/floorPlatformPool.ts +80 -0
- package/src/generated/client/floor_hook/accounts/floorPool.ts +81 -0
- package/src/generated/client/floor_hook/accounts/hookConfig.ts +80 -0
- package/src/generated/client/floor_hook/accounts/index.ts +13 -0
- package/src/generated/client/floor_hook/accounts/platformTreasury.ts +80 -0
- package/src/generated/client/floor_hook/accounts/quotePolicy.ts +80 -0
- package/src/generated/client/floor_hook/constants/floorHook.ts +23 -0
- package/src/generated/client/floor_hook/constants/index.ts +9 -0
- package/src/generated/client/floor_hook/errors/floorHook.ts +178 -0
- package/src/generated/client/floor_hook/errors/index.ts +9 -0
- package/src/generated/client/floor_hook/events/allowAllQuotesSet.ts +38 -0
- package/src/generated/client/floor_hook/events/bidReplaced.ts +38 -0
- package/src/generated/client/floor_hook/events/creatorClaimed.ts +38 -0
- package/src/generated/client/floor_hook/events/creatorFee.ts +38 -0
- package/src/generated/client/floor_hook/events/floorPoolDesignated.ts +38 -0
- package/src/generated/client/floor_hook/events/floorUnbacked.ts +38 -0
- package/src/generated/client/floor_hook/events/holderPaid.ts +38 -0
- package/src/generated/client/floor_hook/events/hookConfigInitialized.ts +38 -0
- package/src/generated/client/floor_hook/events/hookGovernanceChanged.ts +38 -0
- package/src/generated/client/floor_hook/events/index.ts +53 -0
- package/src/generated/client/floor_hook/events/inventoryDonated.ts +38 -0
- package/src/generated/client/floor_hook/events/platformCut.ts +38 -0
- package/src/generated/client/floor_hook/events/platformPoolCredit.ts +38 -0
- package/src/generated/client/floor_hook/events/platformSwept.ts +38 -0
- package/src/generated/client/floor_hook/events/platformWithdrawn.ts +38 -0
- package/src/generated/client/floor_hook/events/polRaised.ts +38 -0
- package/src/generated/client/floor_hook/events/poolReferralTiers.ts +38 -0
- package/src/generated/client/floor_hook/events/poolRegistered.ts +38 -0
- package/src/generated/client/floor_hook/events/poolRewardsTerms.ts +38 -0
- package/src/generated/client/floor_hook/events/quoteAdmitted.ts +38 -0
- package/src/generated/client/floor_hook/events/quoteEconomicsSet.ts +38 -0
- package/src/generated/client/floor_hook/events/quoteListed.ts +38 -0
- package/src/generated/client/floor_hook/events/quoteObserved.ts +38 -0
- package/src/generated/client/floor_hook/events/quoteRetired.ts +38 -0
- package/src/generated/client/floor_hook/events/ratcheted.ts +38 -0
- package/src/generated/client/floor_hook/events/recipientResolved.ts +38 -0
- package/src/generated/client/floor_hook/events/referralFunded.ts +38 -0
- package/src/generated/client/floor_hook/events/referralPaid.ts +38 -0
- package/src/generated/client/floor_hook/events/referralTierPaid.ts +38 -0
- package/src/generated/client/floor_hook/events/skimmed.ts +38 -0
- package/src/generated/client/floor_hook/events/stairArrayReclaimed.ts +38 -0
- package/src/generated/client/floor_hook/events/stairFeesSwept.ts +38 -0
- package/src/generated/client/floor_hook/events/stairOwnerBooked.ts +38 -0
- package/src/generated/client/floor_hook/events/stairOwnersPlaced.ts +38 -0
- package/src/generated/client/floor_hook/events/stairPayeeResolved.ts +38 -0
- package/src/generated/client/floor_hook/events/stairPayeeSwept.ts +38 -0
- package/src/generated/client/floor_hook/events/stairRatcheted.ts +38 -0
- package/src/generated/client/floor_hook/events/stairRentReimbursed.ts +38 -0
- package/src/generated/client/floor_hook/events/stairTokensWithdrawn.ts +38 -0
- package/src/generated/client/floor_hook/events/teamSwept.ts +38 -0
- package/src/generated/client/floor_hook/events/teamWithdrawn.ts +38 -0
- package/src/generated/client/floor_hook/events/traderReferralBooked.ts +38 -0
- package/src/generated/client/floor_hook/events/traderReferralClaimed.ts +38 -0
- package/src/generated/client/floor_hook/events/traderReferralSwept.ts +38 -0
- package/src/generated/client/floor_hook/events/treasuryGovernanceChanged.ts +38 -0
- package/src/generated/client/floor_hook/events/vaultTokensFed.ts +38 -0
- package/src/generated/client/floor_hook/index.ts +16 -0
- package/src/generated/client/floor_hook/instructions/acceptHookGovernance.ts +107 -0
- package/src/generated/client/floor_hook/instructions/acceptTeamTreasuryGovernance.ts +113 -0
- package/src/generated/client/floor_hook/instructions/acceptTreasuryGovernance.ts +113 -0
- package/src/generated/client/floor_hook/instructions/afterActions.ts +95 -0
- package/src/generated/client/floor_hook/instructions/afterSwap.ts +101 -0
- package/src/generated/client/floor_hook/instructions/beforeInitialize.ts +94 -0
- package/src/generated/client/floor_hook/instructions/beforeSwap.ts +97 -0
- package/src/generated/client/floor_hook/instructions/claimCreatorFees.ts +138 -0
- package/src/generated/client/floor_hook/instructions/claimReferralFees.ts +138 -0
- package/src/generated/client/floor_hook/instructions/claimTraderReferral.ts +137 -0
- package/src/generated/client/floor_hook/instructions/clearTeamBuyBooks.ts +101 -0
- package/src/generated/client/floor_hook/instructions/creditFloorPool.ts +167 -0
- package/src/generated/client/floor_hook/instructions/creditTraderBucket.ts +111 -0
- package/src/generated/client/floor_hook/instructions/designateFloorPool.ts +125 -0
- package/src/generated/client/floor_hook/instructions/donateInventory.ts +97 -0
- package/src/generated/client/floor_hook/instructions/index.ts +55 -0
- package/src/generated/client/floor_hook/instructions/initializeHookConfig.ts +138 -0
- package/src/generated/client/floor_hook/instructions/initializeTeamTreasury.ts +132 -0
- package/src/generated/client/floor_hook/instructions/listQuote.ts +158 -0
- package/src/generated/client/floor_hook/instructions/observeQuote.ts +84 -0
- package/src/generated/client/floor_hook/instructions/openTraderBucket.ts +85 -0
- package/src/generated/client/floor_hook/instructions/openTraderRefVault.ts +131 -0
- package/src/generated/client/floor_hook/instructions/payHolder.ts +138 -0
- package/src/generated/client/floor_hook/instructions/payHolderAuthorized.ts +138 -0
- package/src/generated/client/floor_hook/instructions/preparePositions.ts +125 -0
- package/src/generated/client/floor_hook/instructions/ratchet.ts +170 -0
- package/src/generated/client/floor_hook/instructions/reclaimStairArray.ts +135 -0
- package/src/generated/client/floor_hook/instructions/registerPool.ts +211 -0
- package/src/generated/client/floor_hook/instructions/resolveRecipient.ts +119 -0
- package/src/generated/client/floor_hook/instructions/resolveStairPayee.ts +119 -0
- package/src/generated/client/floor_hook/instructions/retireQuote.ts +107 -0
- package/src/generated/client/floor_hook/instructions/seedFloor.ts +98 -0
- package/src/generated/client/floor_hook/instructions/seedInventory.ts +193 -0
- package/src/generated/client/floor_hook/instructions/seedLiquidity.ts +178 -0
- package/src/generated/client/floor_hook/instructions/setAllowAllQuotes.ts +114 -0
- package/src/generated/client/floor_hook/instructions/setGenesisStair.ts +122 -0
- package/src/generated/client/floor_hook/instructions/setHookGovernance.ts +117 -0
- package/src/generated/client/floor_hook/instructions/setQuoteEconomics.ts +119 -0
- package/src/generated/client/floor_hook/instructions/setTeamTreasuryGovernance.ts +123 -0
- package/src/generated/client/floor_hook/instructions/setTreasuryGovernance.ts +123 -0
- package/src/generated/client/floor_hook/instructions/sweepPlatformCut.ts +158 -0
- package/src/generated/client/floor_hook/instructions/sweepStairFees.ts +163 -0
- package/src/generated/client/floor_hook/instructions/sweepStairPayee.ts +148 -0
- package/src/generated/client/floor_hook/instructions/sweepTraderReferral.ts +134 -0
- package/src/generated/client/floor_hook/instructions/twapTick.ts +79 -0
- package/src/generated/client/floor_hook/instructions/withdrawPlatform.ts +132 -0
- package/src/generated/client/floor_hook/instructions/withdrawStairTokens.ts +161 -0
- package/src/generated/client/floor_hook/instructions/withdrawTeam.ts +132 -0
- package/src/generated/client/floor_hook/pdas/floorPlatformPool.ts +14 -0
- package/src/generated/client/floor_hook/pdas/hookAuthority.ts +14 -0
- package/src/generated/client/floor_hook/pdas/hookConfig.ts +14 -0
- package/src/generated/client/floor_hook/pdas/index.ts +16 -0
- package/src/generated/client/floor_hook/pdas/platformTreasury.ts +14 -0
- package/src/generated/client/floor_hook/pdas/quotePolicy.ts +18 -0
- package/src/generated/client/floor_hook/pdas/stairRent.ts +18 -0
- package/src/generated/client/floor_hook/pdas/teamTreasury.ts +14 -0
- package/src/generated/client/floor_hook/pdas/vaultAuthority.ts +14 -0
- package/src/generated/client/floor_hook/programs/floorHook.ts +305 -0
- package/src/generated/client/floor_hook/programs/index.ts +9 -0
- package/src/generated/client/floor_hook/types/actionResult.ts +26 -0
- package/src/generated/client/floor_hook/types/balanceDelta.ts +25 -0
- package/src/generated/client/floor_hook/types/hookAction.ts +36 -0
- package/src/generated/client/floor_hook/types/hookRecordV1.ts +26 -0
- package/src/generated/client/floor_hook/types/index.ts +18 -0
- package/src/generated/client/floor_hook/types/poolSnapshot.ts +25 -0
- package/src/generated/client/floor_hook/types/rentOwnerArg.ts +25 -0
- package/src/generated/client/floor_hook/types/slotArg.ts +25 -0
- package/src/generated/client/floor_hook/types/stairOwnerKindArg.ts +25 -0
- package/src/generated/client/floor_hook/types/swapParams.ts +25 -0
- package/src/generated/client/floor_hook/types/u128.ts +25 -0
- package/src/generated/client/floor_launch/accounts/buyerPosition.ts +80 -0
- package/src/generated/client/floor_launch/accounts/genesisSale.ts +80 -0
- package/src/generated/client/floor_launch/accounts/index.ts +15 -0
- package/src/generated/client/floor_launch/accounts/launch.ts +81 -0
- package/src/generated/client/floor_launch/accounts/launchConfig.ts +80 -0
- package/src/generated/client/floor_launch/accounts/presetRegistry.ts +81 -0
- package/src/generated/client/floor_launch/accounts/quoteWalk.ts +80 -0
- package/src/generated/client/floor_launch/accounts/registryEntry.ts +80 -0
- package/src/generated/client/floor_launch/constants/floorLaunch.ts +31 -0
- package/src/generated/client/floor_launch/constants/index.ts +9 -0
- package/src/generated/client/floor_launch/errors/floorLaunch.ts +236 -0
- package/src/generated/client/floor_launch/errors/index.ts +9 -0
- package/src/generated/client/floor_launch/events/allocationDustRouted.ts +38 -0
- package/src/generated/client/floor_launch/events/attestorChanged.ts +38 -0
- package/src/generated/client/floor_launch/events/bought.ts +38 -0
- package/src/generated/client/floor_launch/events/contributed.ts +38 -0
- package/src/generated/client/floor_launch/events/floorFeesApplied.ts +38 -0
- package/src/generated/client/floor_launch/events/floorShareUpdated.ts +38 -0
- package/src/generated/client/floor_launch/events/genesisAuthorityTransferStarted.ts +38 -0
- package/src/generated/client/floor_launch/events/genesisAuthorityTransferred.ts +38 -0
- package/src/generated/client/floor_launch/events/genesisClaimed.ts +38 -0
- package/src/generated/client/floor_launch/events/genesisGraduated.ts +38 -0
- package/src/generated/client/floor_launch/events/genesisInitialized.ts +38 -0
- package/src/generated/client/floor_launch/events/genesisRefunded.ts +38 -0
- package/src/generated/client/floor_launch/events/genesisStairTopUpdated.ts +38 -0
- package/src/generated/client/floor_launch/events/genesisWhitelistUpdated.ts +38 -0
- package/src/generated/client/floor_launch/events/governanceChanged.ts +38 -0
- package/src/generated/client/floor_launch/events/graduated.ts +38 -0
- package/src/generated/client/floor_launch/events/graduationPrepared.ts +38 -0
- package/src/generated/client/floor_launch/events/graduationRentClosed.ts +38 -0
- package/src/generated/client/floor_launch/events/graduationRentReserved.ts +38 -0
- package/src/generated/client/floor_launch/events/index.ts +52 -0
- package/src/generated/client/floor_launch/events/launchConfigInitialized.ts +38 -0
- package/src/generated/client/floor_launch/events/launchCreated.ts +38 -0
- package/src/generated/client/floor_launch/events/launchEconomicsUpdated.ts +38 -0
- package/src/generated/client/floor_launch/events/metadataBaseSet.ts +38 -0
- package/src/generated/client/floor_launch/events/metadataUriFilled.ts +38 -0
- package/src/generated/client/floor_launch/events/openingTick.ts +38 -0
- package/src/generated/client/floor_launch/events/payeeSlotsSet.ts +39 -0
- package/src/generated/client/floor_launch/events/presetAdded.ts +39 -0
- package/src/generated/client/floor_launch/events/presetAuthorityTransferStarted.ts +38 -0
- package/src/generated/client/floor_launch/events/presetAuthorityTransferred.ts +38 -0
- package/src/generated/client/floor_launch/events/presetEnabled.ts +38 -0
- package/src/generated/client/floor_launch/events/quoteChainPriced.ts +38 -0
- package/src/generated/client/floor_launch/events/recipientClaimed.ts +38 -0
- package/src/generated/client/floor_launch/events/saleTraderReferralBooked.ts +38 -0
- package/src/generated/client/floor_launch/events/saleTraderReferralSwept.ts +38 -0
- package/src/generated/client/floor_launch/events/scheduleUpdated.ts +38 -0
- package/src/generated/client/floor_launch/events/soldBack.ts +38 -0
- package/src/generated/client/floor_launch/events/stairPayeeClaimed.ts +38 -0
- package/src/generated/client/floor_launch/events/stairRentFunded.ts +38 -0
- package/src/generated/client/floor_launch/events/teamBought.ts +38 -0
- package/src/generated/client/floor_launch/events/teamBuySoldBack.ts +38 -0
- package/src/generated/client/floor_launch/events/teamFeesSet.ts +38 -0
- package/src/generated/client/floor_launch/events/teamVestedClaimed.ts +38 -0
- package/src/generated/client/floor_launch/events/traderLinked.ts +38 -0
- package/src/generated/client/floor_launch/events/vestingCreated.ts +38 -0
- package/src/generated/client/floor_launch/index.ts +16 -0
- package/src/generated/client/floor_launch/instructions/acceptGenesisAuthority.ts +104 -0
- package/src/generated/client/floor_launch/instructions/acceptGovernance.ts +104 -0
- package/src/generated/client/floor_launch/instructions/acceptPresetAuthority.ts +104 -0
- package/src/generated/client/floor_launch/instructions/addPreset.ts +115 -0
- package/src/generated/client/floor_launch/instructions/buy.ts +172 -0
- package/src/generated/client/floor_launch/instructions/claimGenesis.ts +149 -0
- package/src/generated/client/floor_launch/instructions/claimGenesisPayee.ts +140 -0
- package/src/generated/client/floor_launch/instructions/claimRecipient.ts +142 -0
- package/src/generated/client/floor_launch/instructions/claimTeamPayee.ts +142 -0
- package/src/generated/client/floor_launch/instructions/claimTeamVested.ts +135 -0
- package/src/generated/client/floor_launch/instructions/closeBuyerPosition.ts +101 -0
- package/src/generated/client/floor_launch/instructions/closeGraduationRent.ts +107 -0
- package/src/generated/client/floor_launch/instructions/closePreparedTickArray.ts +116 -0
- package/src/generated/client/floor_launch/instructions/closeQuoteWalk.ts +74 -0
- package/src/generated/client/floor_launch/instructions/contribute.ts +142 -0
- package/src/generated/client/floor_launch/instructions/createLaunch.ts +318 -0
- package/src/generated/client/floor_launch/instructions/endGenesisSale.ts +125 -0
- package/src/generated/client/floor_launch/instructions/fillMetadataUri.ts +137 -0
- package/src/generated/client/floor_launch/instructions/flushAllocationDust.ts +140 -0
- package/src/generated/client/floor_launch/instructions/flushFloorFees.ts +158 -0
- package/src/generated/client/floor_launch/instructions/fundStairRent.ts +110 -0
- package/src/generated/client/floor_launch/instructions/graduate.ts +140 -0
- package/src/generated/client/floor_launch/instructions/graduateGenesis.ts +143 -0
- package/src/generated/client/floor_launch/instructions/index.ts +56 -0
- package/src/generated/client/floor_launch/instructions/initGenesis.ts +171 -0
- package/src/generated/client/floor_launch/instructions/initPresetRegistry.ts +122 -0
- package/src/generated/client/floor_launch/instructions/initializeLaunchConfig.ts +150 -0
- package/src/generated/client/floor_launch/instructions/linkTrader.ts +153 -0
- package/src/generated/client/floor_launch/instructions/lockGenesis.ts +155 -0
- package/src/generated/client/floor_launch/instructions/openSaleTraderReferral.ts +122 -0
- package/src/generated/client/floor_launch/instructions/prepareGraduation.ts +125 -0
- package/src/generated/client/floor_launch/instructions/refundGenesis.ts +119 -0
- package/src/generated/client/floor_launch/instructions/sellBack.ts +150 -0
- package/src/generated/client/floor_launch/instructions/sellBackWsol.ts +150 -0
- package/src/generated/client/floor_launch/instructions/setAttestor.ts +123 -0
- package/src/generated/client/floor_launch/instructions/setGenesisFloorShare.ts +114 -0
- package/src/generated/client/floor_launch/instructions/setGenesisSchedule.ts +116 -0
- package/src/generated/client/floor_launch/instructions/setGenesisStairTop.ts +114 -0
- package/src/generated/client/floor_launch/instructions/setGenesisWhitelist.ts +116 -0
- package/src/generated/client/floor_launch/instructions/setGovernance.ts +114 -0
- package/src/generated/client/floor_launch/instructions/setLaunchEconomics.ts +121 -0
- package/src/generated/client/floor_launch/instructions/setMetadataBase.ts +114 -0
- package/src/generated/client/floor_launch/instructions/setPresetAuthority.ts +114 -0
- package/src/generated/client/floor_launch/instructions/setPresetEnabled.ts +116 -0
- package/src/generated/client/floor_launch/instructions/setTeamFees.ts +119 -0
- package/src/generated/client/floor_launch/instructions/sweepSaleTraderReferral.ts +116 -0
- package/src/generated/client/floor_launch/instructions/teamBuySellBack.ts +122 -0
- package/src/generated/client/floor_launch/instructions/transferGenesisAuthority.ts +114 -0
- package/src/generated/client/floor_launch/instructions/walkQuoteChain.ts +122 -0
- package/src/generated/client/floor_launch/pdas/buyerPosition.ts +19 -0
- package/src/generated/client/floor_launch/pdas/contributeContribution.ts +18 -0
- package/src/generated/client/floor_launch/pdas/contribution.ts +18 -0
- package/src/generated/client/floor_launch/pdas/creatorTraderLink.ts +18 -0
- package/src/generated/client/floor_launch/pdas/genesisSale.ts +14 -0
- package/src/generated/client/floor_launch/pdas/graduationRent.ts +18 -0
- package/src/generated/client/floor_launch/pdas/index.ts +26 -0
- package/src/generated/client/floor_launch/pdas/launch.ts +18 -0
- package/src/generated/client/floor_launch/pdas/launchAuthority.ts +14 -0
- package/src/generated/client/floor_launch/pdas/launchConfig.ts +14 -0
- package/src/generated/client/floor_launch/pdas/lockAuthority.ts +14 -0
- package/src/generated/client/floor_launch/pdas/mint.ts +19 -0
- package/src/generated/client/floor_launch/pdas/mintAuthority.ts +14 -0
- package/src/generated/client/floor_launch/pdas/presetRegistry.ts +14 -0
- package/src/generated/client/floor_launch/pdas/quoteWalk.ts +19 -0
- package/src/generated/client/floor_launch/pdas/registryEntry.ts +18 -0
- package/src/generated/client/floor_launch/pdas/saleVault.ts +18 -0
- package/src/generated/client/floor_launch/pdas/traderLink.ts +18 -0
- package/src/generated/client/floor_launch/pdas/traderRefSale.ts +18 -0
- package/src/generated/client/floor_launch/programs/floorLaunch.ts +310 -0
- package/src/generated/client/floor_launch/programs/index.ts +9 -0
- package/src/generated/client/floor_launch/types/index.ts +12 -0
- package/src/generated/client/floor_launch/types/presetRowArgs.ts +25 -0
- package/src/generated/client/floor_launch/types/presetRowZc.ts +25 -0
- package/src/generated/client/floor_launch/types/slotArg.ts +25 -0
- package/src/generated/client/floor_launch/types/u128.ts +25 -0
- package/src/generated/client/floor_vesting/accounts/index.ts +9 -0
- package/src/generated/client/floor_vesting/accounts/vestingSchedule.ts +80 -0
- package/src/generated/client/floor_vesting/errors/floorVesting.ts +56 -0
- package/src/generated/client/floor_vesting/errors/index.ts +9 -0
- package/src/generated/client/floor_vesting/events/absoluteSchedule.ts +38 -0
- package/src/generated/client/floor_vesting/events/claimed.ts +38 -0
- package/src/generated/client/floor_vesting/events/index.ts +12 -0
- package/src/generated/client/floor_vesting/events/scheduleClosed.ts +38 -0
- package/src/generated/client/floor_vesting/events/scheduleCreated.ts +38 -0
- package/src/generated/client/floor_vesting/index.ts +14 -0
- package/src/generated/client/floor_vesting/instructions/claim.ts +128 -0
- package/src/generated/client/floor_vesting/instructions/closeSchedule.ts +135 -0
- package/src/generated/client/floor_vesting/instructions/createSchedule.ts +159 -0
- package/src/generated/client/floor_vesting/instructions/createScheduleAt.ts +164 -0
- package/src/generated/client/floor_vesting/instructions/index.ts +12 -0
- package/src/generated/client/floor_vesting/pdas/escrow.ts +18 -0
- package/src/generated/client/floor_vesting/pdas/index.ts +11 -0
- package/src/generated/client/floor_vesting/pdas/schedule.ts +19 -0
- package/src/generated/client/floor_vesting/pdas/vestingAuthority.ts +14 -0
- package/src/generated/client/floor_vesting/programs/floorVesting.ts +88 -0
- package/src/generated/client/floor_vesting/programs/index.ts +9 -0
- package/src/generated/deployments.ts +91 -0
- package/src/generated/idls.ts +17 -0
- package/src/generated/wasm.ts +5 -0
- package/src/holders.ts +168 -0
- package/src/idl.ts +20 -0
- package/src/index.ts +52 -0
- package/src/layouts.ts +763 -0
- package/src/pda.ts +122 -0
- package/src/predict.ts +540 -0
- package/src/quote/quoter.ts +439 -0
- package/src/quote/wasm.ts +43 -0
- package/src/slots.ts +152 -0
- package/src/stateView.ts +289 -0
- package/src/tickmath.ts +120 -0
- package/src/twap.ts +130 -0
- package/src/tx/builders.ts +794 -0
- package/src/tx/common.ts +60 -0
- package/src/tx/instructions.ts +425 -0
- package/src/tx/launchAlt.ts +64 -0
- package/src/tx/traderRef.ts +195 -0
- package/wasm/SHA256SUMS +1 -0
- package/wasm/floor_quote.d.ts +79 -0
- package/wasm/floor_quote.js +621 -0
- package/wasm/floor_quote_bg.wasm +0 -0
- package/wasm/floor_quote_bg.wasm.d.ts +22 -0
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `stateView`: FLOOR's reads (`floor_hook`, `floor_launch`, `floor_holders`) beside `@floorlaunchpad/carpenter-sdk`'s — `stateView`
|
|
3
|
+
* here spreads Carpenter's object. Every helper takes an `AccountSource` and returns the decoded value WITH the slot it
|
|
4
|
+
* was read at.
|
|
5
|
+
*
|
|
6
|
+
* ⛔ Inside a hooked flow, pool state comes from instruction data or post-state, never from a stale account: these
|
|
7
|
+
* helpers are for UIs and for building transactions.
|
|
8
|
+
* ⛔ Every account is checked for its OWNER program as well as its discriminator; a lookalike account owned by another
|
|
9
|
+
* program is `null`, never decoded.
|
|
10
|
+
*/
|
|
11
|
+
import { type AtSlot, type AccountSource } from '@floorlaunchpad/carpenter-sdk';
|
|
12
|
+
import { type BuyerPosition, type FloorPool, type HookConfig, type Launch, type LaunchConfig, type PlatformTreasury, type QuotePolicy, type StairState } from './layouts.ts';
|
|
13
|
+
import { type ProgramIds } from './pda.ts';
|
|
14
|
+
import type { Address } from '@solana/kit';
|
|
15
|
+
export declare function getHookConfig(src: AccountSource, ids?: ProgramIds): Promise<AtSlot<HookConfig | null>>;
|
|
16
|
+
/**
|
|
17
|
+
* the program-owned platform treasury (`["platform_treasury"]` under
|
|
18
|
+
* `floor_hook`) — its governance and any pending handover. `null` before `initialize_hook_config` has run.
|
|
19
|
+
*/
|
|
20
|
+
export declare function getPlatformTreasury(src: AccountSource, ids?: ProgramIds): Promise<AtSlot<PlatformTreasury | null>>;
|
|
21
|
+
/**
|
|
22
|
+
* the program-owned TEAM treasury (`["team_treasury"]` under
|
|
23
|
+
* `floor_hook`, `PlatformTreasury`'s layout) — its governance and any pending handover. `null` until
|
|
24
|
+
* `initialize_team_treasury` has run; until then every sweep skips its team leg and the pool keeps `team_owed`.
|
|
25
|
+
*/
|
|
26
|
+
export declare function getTeamTreasury(src: AccountSource, ids?: ProgramIds): Promise<AtSlot<PlatformTreasury | null>>;
|
|
27
|
+
/**
|
|
28
|
+
* presence for the FLOOR quote roster entry.
|
|
29
|
+
* `null` means "not on the FLOOR roster" — and wSOL is NEVER on it: it is admitted by construction
|
|
30
|
+
* with compiled-in terms (`quote_policy.rs`: `list_quote` refuses it `QuoteAlreadyListed`), so a
|
|
31
|
+
* `null` for wSOL is the expected answer, not a missing listing. `retired === 1` blocks NEW pools
|
|
32
|
+
* only; there is no un-retire. Owner, length and discriminator are all checked, as `getQuoteMint`
|
|
33
|
+
* does for the AMM's entry: a lamport at the address never means presence.
|
|
34
|
+
*/
|
|
35
|
+
export declare function getQuotePolicy(src: AccountSource, quoteMint: Address, ids?: ProgramIds): Promise<AtSlot<QuotePolicy | null>>;
|
|
36
|
+
export declare function getFloorPool(src: AccountSource, ammPool: Address, ids?: ProgramIds): Promise<AtSlot<FloorPool | null>>;
|
|
37
|
+
/**
|
|
38
|
+
* A staircase pool's `StairState`
|
|
39
|
+
* (`["stair", floor_pool]` under `floor_hook`), or `null` — on every pool without a staircase, and on a staircase launch
|
|
40
|
+
* before `prepare_positions` / its graduating buy created it. `floorPool` is the `FloorPool` ADDRESS (`findFloorPool(amm)`).
|
|
41
|
+
* The ratchet of a graduated staircase pool needs it (`buildRatchet({ stairState })`).
|
|
42
|
+
*/
|
|
43
|
+
export declare function getStairState(src: AccountSource, floorPool: Address, ids?: ProgramIds): Promise<AtSlot<StairState | null>>;
|
|
44
|
+
export declare function getLaunchConfig(src: AccountSource, ids?: ProgramIds): Promise<AtSlot<LaunchConfig | null>>;
|
|
45
|
+
export declare function getLaunch(src: AccountSource, mint: Address, ids?: ProgramIds): Promise<AtSlot<Launch | null>>;
|
|
46
|
+
export declare function getBuyerPosition(src: AccountSource, launch: Address, buyer: Address, ids?: ProgramIds): Promise<AtSlot<BuyerPosition | null>>;
|
|
47
|
+
/**
|
|
48
|
+
* One launch as a multi-source reader merges it:
|
|
49
|
+
* keyed `(chainKey, id)`, where `chainKey` is `solana:<genesis32>` and `id` is the MINT address
|
|
50
|
+
* (the one key a Solana launch is known by everywhere: the Launch PDA and the registry entry
|
|
51
|
+
* both derive from or point at it).
|
|
52
|
+
* ⛔ Name and symbol are chain-only; they are not in these accounts (Token-2022 metadata carries
|
|
53
|
+
* them) and this row does not invent them.
|
|
54
|
+
*/
|
|
55
|
+
export interface LaunchRow {
|
|
56
|
+
readonly chainKey: string;
|
|
57
|
+
readonly id: Address;
|
|
58
|
+
readonly registryIndex: bigint;
|
|
59
|
+
readonly launch: Address;
|
|
60
|
+
readonly mint: Address;
|
|
61
|
+
readonly ammPool: Address;
|
|
62
|
+
readonly mode: number;
|
|
63
|
+
readonly createdSlot: bigint;
|
|
64
|
+
/** `null` when the Launch account was not readable (it never should be, once registered). */
|
|
65
|
+
readonly state: Launch | null;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Every launch, newest first, over `RegistryEntry`. Two strategies, both exact:
|
|
69
|
+
* - `mode: 'index'` (default, browser-safe): read `LaunchConfig.registry_count`, then entries
|
|
70
|
+
* `[count-1 … count-limit]` by PDA with `getMultipleAccounts`; no `getProgramAccounts`.
|
|
71
|
+
* - `mode: 'scan'` (server-side): one `getProgramAccounts` on the discriminator.
|
|
72
|
+
* `nextBefore` is where the next page starts (pass it as `before`), or `null` at the end. In `index` mode it is the
|
|
73
|
+
* lowest registry index this page PROBED, so an entry that is missing or unreadable never ends paging early: a page can
|
|
74
|
+
* hold fewer than `limit` rows and still have a next one.
|
|
75
|
+
* ⛔ The listing is UNFILTERED, with the risk stated: anyone can create a launch, with any name and symbol.
|
|
76
|
+
*/
|
|
77
|
+
export declare function listLaunches(src: AccountSource, chainKey: string, opts?: {
|
|
78
|
+
before?: bigint;
|
|
79
|
+
limit?: number;
|
|
80
|
+
mode?: 'index' | 'scan';
|
|
81
|
+
withState?: boolean;
|
|
82
|
+
}, ids?: ProgramIds): Promise<AtSlot<LaunchRow[]> & {
|
|
83
|
+
nextBefore: bigint | null;
|
|
84
|
+
}>;
|
|
85
|
+
/** The named `stateView` object: Carpenter's reads, then FLOOR's. */
|
|
86
|
+
export declare const stateView: {
|
|
87
|
+
readonly getHookConfig: typeof getHookConfig;
|
|
88
|
+
readonly getQuotePolicy: typeof getQuotePolicy;
|
|
89
|
+
readonly getFloorPool: typeof getFloorPool;
|
|
90
|
+
readonly getLaunchConfig: typeof getLaunchConfig;
|
|
91
|
+
readonly listLaunches: typeof listLaunches;
|
|
92
|
+
readonly getLaunch: typeof getLaunch;
|
|
93
|
+
readonly getBuyerPosition: typeof getBuyerPosition;
|
|
94
|
+
readonly getAmmConfig: (src: AccountSource, ids?: import("@floorlaunchpad/carpenter-sdk").ProgramIds) => Promise<AtSlot<import("@floorlaunchpad/carpenter-sdk").AmmConfig | null>>;
|
|
95
|
+
readonly getPool: (src: AccountSource, pool: Address, ids?: import("@floorlaunchpad/carpenter-sdk").ProgramIds) => Promise<AtSlot<import("@floorlaunchpad/carpenter-sdk").Pool | null>>;
|
|
96
|
+
readonly getSlot0: typeof import("@floorlaunchpad/carpenter-sdk").getSlot0;
|
|
97
|
+
readonly getLiquidity: typeof import("@floorlaunchpad/carpenter-sdk").getLiquidity;
|
|
98
|
+
readonly getBitmap: typeof import("@floorlaunchpad/carpenter-sdk").getBitmap;
|
|
99
|
+
readonly getTickArray: typeof import("@floorlaunchpad/carpenter-sdk").getTickArray;
|
|
100
|
+
readonly getTickInfo: typeof import("@floorlaunchpad/carpenter-sdk").getTickInfo;
|
|
101
|
+
readonly getTickArraysAround: typeof import("@floorlaunchpad/carpenter-sdk").getTickArraysAround;
|
|
102
|
+
readonly getFeeGrowthInside: typeof import("@floorlaunchpad/carpenter-sdk").getFeeGrowthInside;
|
|
103
|
+
readonly getPosition: typeof import("@floorlaunchpad/carpenter-sdk").getPosition;
|
|
104
|
+
readonly positionsForOwner: typeof import("@floorlaunchpad/carpenter-sdk").positionsForOwner;
|
|
105
|
+
readonly listPools: typeof import("@floorlaunchpad/carpenter-sdk").listPools;
|
|
106
|
+
readonly getMintPoolCount: typeof import("@floorlaunchpad/carpenter-sdk").getMintPoolCount;
|
|
107
|
+
readonly getQuoteMint: typeof import("@floorlaunchpad/carpenter-sdk").getQuoteMint;
|
|
108
|
+
readonly getMintExclusivity: typeof import("@floorlaunchpad/carpenter-sdk").getMintExclusivity;
|
|
109
|
+
readonly getApprovedHook: typeof import("@floorlaunchpad/carpenter-sdk").getApprovedHook;
|
|
110
|
+
readonly listApprovedHooks: typeof import("@floorlaunchpad/carpenter-sdk").listApprovedHooks;
|
|
111
|
+
readonly getProtocolTreasury: typeof import("@floorlaunchpad/carpenter-sdk").getProtocolTreasury;
|
|
112
|
+
readonly getMintExtensions: typeof import("@floorlaunchpad/carpenter-sdk").getMintExtensions;
|
|
113
|
+
readonly getAtaExtensions: typeof import("@floorlaunchpad/carpenter-sdk").getAtaExtensions;
|
|
114
|
+
};
|
|
115
|
+
export declare function getHolderPayoutInputs(src: AccountSource, a: {
|
|
116
|
+
owner: Address;
|
|
117
|
+
mint: Address;
|
|
118
|
+
floorPool: Address;
|
|
119
|
+
ids?: ProgramIds;
|
|
120
|
+
}): Promise<{
|
|
121
|
+
slot: bigint;
|
|
122
|
+
value: null;
|
|
123
|
+
} | {
|
|
124
|
+
slot: bigint;
|
|
125
|
+
value: {
|
|
126
|
+
book: Uint8Array<ArrayBufferLike>;
|
|
127
|
+
record: Uint8Array<ArrayBufferLike>;
|
|
128
|
+
floorPool: Uint8Array<ArrayBufferLike>;
|
|
129
|
+
liveBalance: bigint;
|
|
130
|
+
ammPool: Address;
|
|
131
|
+
quoteMint: Address;
|
|
132
|
+
tokenAccount: Address;
|
|
133
|
+
recordAddress: Address;
|
|
134
|
+
};
|
|
135
|
+
}>;
|
|
136
|
+
//# sourceMappingURL=stateView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stateView.d.ts","sourceRoot":"","sources":["../src/stateView.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAEL,KAAK,MAAM,EAIX,KAAK,aAAa,EAGnB,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAYL,KAAK,aAAa,EAClB,KAAK,SAAS,EACd,KAAK,UAAU,EACf,KAAK,MAAM,EACX,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAOhB,KAAK,UAAU,EAChB,MAAM,cAAc,CAAC;AACtB,OAAO,EAWL,KAAK,UAAU,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C;6DAElB,CAAC;;;;;;;;;;;;;;;;;;;CA0GrD,CAAC;AAEX,wBAAsB,qBAAqB,CAAC,GAAG,EAAE,aAAa,EAAE,CAAC,EAAE;IACjE,KAAK,EAAE,OAAO,CAAC;IAAC,IAAI,EAAE,OAAO,CAAC;IAAC,SAAS,EAAE,OAAO,CAAC;IAAC,GAAG,CAAC,EAAE,UAAU,CAAC;CACrE;;;;;;;;;;;;;;;GAuBA"}
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `stateView`: FLOOR's reads (`floor_hook`, `floor_launch`, `floor_holders`) beside `@floorlaunchpad/carpenter-sdk`'s — `stateView`
|
|
3
|
+
* here spreads Carpenter's object. Every helper takes an `AccountSource` and returns the decoded value WITH the slot it
|
|
4
|
+
* was read at.
|
|
5
|
+
*
|
|
6
|
+
* ⛔ Inside a hooked flow, pool state comes from instruction data or post-state, never from a stale account: these
|
|
7
|
+
* helpers are for UIs and for building transactions.
|
|
8
|
+
* ⛔ Every account is checked for its OWNER program as well as its discriminator; a lookalike account owned by another
|
|
9
|
+
* program is `null`, never decoded.
|
|
10
|
+
*/
|
|
11
|
+
import { stateView as carpenterStateView, TOKEN_2022_PROGRAM_ID, hasDiscriminator, decodeTokenAccount, } from '@floorlaunchpad/carpenter-sdk';
|
|
12
|
+
import { BUYER_POSITION, decodeBuyerPosition, decodeFloorPool, decodeHookConfig, decodeLaunch, decodeLaunchConfig, decodePlatformTreasury, decodeQuotePolicy, decodeRegistryEntry, QUOTE_POLICY, REGISTRY_ENTRY, decodeStairState, } from "./layouts.js";
|
|
13
|
+
import { DEFAULT_PROGRAM_IDS, findBuyerPosition, findFloorPool, findHookConfig, findPlatformTreasury, findTeamTreasury, findLaunch, findLaunchConfig, findQuotePolicy, findRegistryEntry, findStairState, } from "./pda.js";
|
|
14
|
+
function ownedBy(a, program) {
|
|
15
|
+
return a && a.owner === program ? a : null;
|
|
16
|
+
}
|
|
17
|
+
async function readOwned(src, address, program, decode) {
|
|
18
|
+
const { slot, account } = await src.getAccount(address);
|
|
19
|
+
const a = ownedBy(account, program);
|
|
20
|
+
return { slot, value: a ? decode(a.data) : null };
|
|
21
|
+
}
|
|
22
|
+
function decodeAll(rows, layout, decode) {
|
|
23
|
+
const out = [];
|
|
24
|
+
for (const { address, account } of rows) {
|
|
25
|
+
if (!hasDiscriminator(layout, account.data))
|
|
26
|
+
continue;
|
|
27
|
+
out.push([address, decode(account.data)]);
|
|
28
|
+
}
|
|
29
|
+
return out;
|
|
30
|
+
}
|
|
31
|
+
// ---- FLOOR --------------------------------------------------------------------------------------
|
|
32
|
+
export async function getHookConfig(src, ids = DEFAULT_PROGRAM_IDS) {
|
|
33
|
+
return readOwned(src, (await findHookConfig(ids)).address, ids.floorHook, decodeHookConfig);
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* the program-owned platform treasury (`["platform_treasury"]` under
|
|
37
|
+
* `floor_hook`) — its governance and any pending handover. `null` before `initialize_hook_config` has run.
|
|
38
|
+
*/
|
|
39
|
+
export async function getPlatformTreasury(src, ids = DEFAULT_PROGRAM_IDS) {
|
|
40
|
+
return readOwned(src, (await findPlatformTreasury(ids)).address, ids.floorHook, decodePlatformTreasury);
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* the program-owned TEAM treasury (`["team_treasury"]` under
|
|
44
|
+
* `floor_hook`, `PlatformTreasury`'s layout) — its governance and any pending handover. `null` until
|
|
45
|
+
* `initialize_team_treasury` has run; until then every sweep skips its team leg and the pool keeps `team_owed`.
|
|
46
|
+
*/
|
|
47
|
+
export async function getTeamTreasury(src, ids = DEFAULT_PROGRAM_IDS) {
|
|
48
|
+
return readOwned(src, (await findTeamTreasury(ids)).address, ids.floorHook, decodePlatformTreasury);
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* presence for the FLOOR quote roster entry.
|
|
52
|
+
* `null` means "not on the FLOOR roster" — and wSOL is NEVER on it: it is admitted by construction
|
|
53
|
+
* with compiled-in terms (`quote_policy.rs`: `list_quote` refuses it `QuoteAlreadyListed`), so a
|
|
54
|
+
* `null` for wSOL is the expected answer, not a missing listing. `retired === 1` blocks NEW pools
|
|
55
|
+
* only; there is no un-retire. Owner, length and discriminator are all checked, as `getQuoteMint`
|
|
56
|
+
* does for the AMM's entry: a lamport at the address never means presence.
|
|
57
|
+
*/
|
|
58
|
+
export async function getQuotePolicy(src, quoteMint, ids = DEFAULT_PROGRAM_IDS) {
|
|
59
|
+
const { slot, account } = await src.getAccount((await findQuotePolicy(quoteMint, ids)).address);
|
|
60
|
+
const a = ownedBy(account, ids.floorHook);
|
|
61
|
+
const present = a && a.data.length === 8 + QUOTE_POLICY.size && hasDiscriminator(QUOTE_POLICY, a.data);
|
|
62
|
+
return { slot, value: present ? decodeQuotePolicy(a.data) : null };
|
|
63
|
+
}
|
|
64
|
+
export async function getFloorPool(src, ammPool, ids = DEFAULT_PROGRAM_IDS) {
|
|
65
|
+
return readOwned(src, (await findFloorPool(ammPool, ids)).address, ids.floorHook, decodeFloorPool);
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* A staircase pool's `StairState`
|
|
69
|
+
* (`["stair", floor_pool]` under `floor_hook`), or `null` — on every pool without a staircase, and on a staircase launch
|
|
70
|
+
* before `prepare_positions` / its graduating buy created it. `floorPool` is the `FloorPool` ADDRESS (`findFloorPool(amm)`).
|
|
71
|
+
* The ratchet of a graduated staircase pool needs it (`buildRatchet({ stairState })`).
|
|
72
|
+
*/
|
|
73
|
+
export async function getStairState(src, floorPool, ids = DEFAULT_PROGRAM_IDS) {
|
|
74
|
+
return readOwned(src, (await findStairState(floorPool, ids)).address, ids.floorHook, decodeStairState);
|
|
75
|
+
}
|
|
76
|
+
export async function getLaunchConfig(src, ids = DEFAULT_PROGRAM_IDS) {
|
|
77
|
+
return readOwned(src, (await findLaunchConfig(ids)).address, ids.floorLaunch, decodeLaunchConfig);
|
|
78
|
+
}
|
|
79
|
+
export async function getLaunch(src, mint, ids = DEFAULT_PROGRAM_IDS) {
|
|
80
|
+
return readOwned(src, (await findLaunch(mint, ids)).address, ids.floorLaunch, decodeLaunch);
|
|
81
|
+
}
|
|
82
|
+
export async function getBuyerPosition(src, launch, buyer, ids = DEFAULT_PROGRAM_IDS) {
|
|
83
|
+
const { slot, account } = await src.getAccount((await findBuyerPosition(launch, buyer, ids)).address);
|
|
84
|
+
const a = ownedBy(account, ids.floorLaunch);
|
|
85
|
+
return { slot, value: a && hasDiscriminator(BUYER_POSITION, a.data) ? decodeBuyerPosition(a.data) : null };
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Every launch, newest first, over `RegistryEntry`. Two strategies, both exact:
|
|
89
|
+
* - `mode: 'index'` (default, browser-safe): read `LaunchConfig.registry_count`, then entries
|
|
90
|
+
* `[count-1 … count-limit]` by PDA with `getMultipleAccounts`; no `getProgramAccounts`.
|
|
91
|
+
* - `mode: 'scan'` (server-side): one `getProgramAccounts` on the discriminator.
|
|
92
|
+
* `nextBefore` is where the next page starts (pass it as `before`), or `null` at the end. In `index` mode it is the
|
|
93
|
+
* lowest registry index this page PROBED, so an entry that is missing or unreadable never ends paging early: a page can
|
|
94
|
+
* hold fewer than `limit` rows and still have a next one.
|
|
95
|
+
* ⛔ The listing is UNFILTERED, with the risk stated: anyone can create a launch, with any name and symbol.
|
|
96
|
+
*/
|
|
97
|
+
export async function listLaunches(src, chainKey, opts = {}, ids = DEFAULT_PROGRAM_IDS) {
|
|
98
|
+
if (!/^solana:[1-9A-HJ-NP-Za-km-z]{32}$/.test(chainKey))
|
|
99
|
+
throw new Error(`listLaunches: chainKey must be solana:<genesis32>, got ${chainKey}`);
|
|
100
|
+
const limit = opts.limit ?? 50;
|
|
101
|
+
let entries;
|
|
102
|
+
let slot;
|
|
103
|
+
let nextBefore;
|
|
104
|
+
if (opts.mode === 'scan') {
|
|
105
|
+
const r = await src.getProgramAccounts(ids.floorLaunch, [
|
|
106
|
+
{ memcmp: { offset: 0, bytes: REGISTRY_ENTRY.discriminator } },
|
|
107
|
+
{ dataSize: 8 + REGISTRY_ENTRY.size },
|
|
108
|
+
]);
|
|
109
|
+
slot = r.slot;
|
|
110
|
+
entries = decodeAll(r.accounts, REGISTRY_ENTRY, decodeRegistryEntry)
|
|
111
|
+
.map(([, e]) => e)
|
|
112
|
+
.filter((e) => opts.before === undefined || e.index < opts.before)
|
|
113
|
+
.sort((a, b) => (a.index < b.index ? 1 : a.index > b.index ? -1 : 0))
|
|
114
|
+
.slice(0, limit);
|
|
115
|
+
const last = entries[entries.length - 1];
|
|
116
|
+
nextBefore = entries.length === limit && last && last.index > 0n ? last.index : null;
|
|
117
|
+
}
|
|
118
|
+
else {
|
|
119
|
+
const cfg = await getLaunchConfig(src, ids);
|
|
120
|
+
if (!cfg.value)
|
|
121
|
+
throw new Error('listLaunches: LaunchConfig is not initialized on this cluster');
|
|
122
|
+
const top = opts.before === undefined || opts.before > cfg.value.registryCount ? cfg.value.registryCount : opts.before;
|
|
123
|
+
const indices = [];
|
|
124
|
+
for (let i = top - 1n; i >= 0n && indices.length < limit; i--)
|
|
125
|
+
indices.push(i);
|
|
126
|
+
const lowest = indices[indices.length - 1];
|
|
127
|
+
nextBefore = lowest !== undefined && lowest > 0n ? lowest : null;
|
|
128
|
+
const addrs = await Promise.all(indices.map(async (i) => (await findRegistryEntry(i, ids)).address));
|
|
129
|
+
const r = await src.getMultipleAccounts(addrs);
|
|
130
|
+
slot = r.slot < cfg.slot ? r.slot : cfg.slot;
|
|
131
|
+
entries = [];
|
|
132
|
+
r.accounts.forEach((a, i) => {
|
|
133
|
+
const owned = ownedBy(a, ids.floorLaunch);
|
|
134
|
+
if (owned && hasDiscriminator(REGISTRY_ENTRY, owned.data)) {
|
|
135
|
+
const e = decodeRegistryEntry(owned.data);
|
|
136
|
+
if (e.index === indices[i])
|
|
137
|
+
entries.push(e);
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
let states = entries.map(() => null);
|
|
142
|
+
if (opts.withState !== false && entries.length > 0) {
|
|
143
|
+
const r = await src.getMultipleAccounts(entries.map((e) => e.launch));
|
|
144
|
+
slot = r.slot < slot ? r.slot : slot;
|
|
145
|
+
states = r.accounts.map((a) => {
|
|
146
|
+
const owned = ownedBy(a, ids.floorLaunch);
|
|
147
|
+
return owned ? decodeLaunch(owned.data) : null;
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
return {
|
|
151
|
+
slot,
|
|
152
|
+
nextBefore,
|
|
153
|
+
value: entries.map((e, i) => ({
|
|
154
|
+
chainKey,
|
|
155
|
+
id: e.mint,
|
|
156
|
+
registryIndex: e.index,
|
|
157
|
+
launch: e.launch,
|
|
158
|
+
mint: e.mint,
|
|
159
|
+
ammPool: e.ammPool,
|
|
160
|
+
mode: e.mode,
|
|
161
|
+
createdSlot: e.createdSlot,
|
|
162
|
+
state: states[i] ?? null,
|
|
163
|
+
})),
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
/** The named `stateView` object: Carpenter's reads, then FLOOR's. */
|
|
167
|
+
export const stateView = {
|
|
168
|
+
...carpenterStateView,
|
|
169
|
+
getHookConfig,
|
|
170
|
+
getQuotePolicy,
|
|
171
|
+
getFloorPool,
|
|
172
|
+
getLaunchConfig,
|
|
173
|
+
listLaunches,
|
|
174
|
+
getLaunch,
|
|
175
|
+
getBuyerPosition,
|
|
176
|
+
};
|
|
177
|
+
export async function getHolderPayoutInputs(src, a) {
|
|
178
|
+
const ids = a.ids ?? DEFAULT_PROGRAM_IDS;
|
|
179
|
+
const { findHolderBook, findHolderRecord } = await import("./holders.js");
|
|
180
|
+
const { findAta } = await import('@floorlaunchpad/carpenter-sdk');
|
|
181
|
+
const { decodeHolderBook, decodeHolderRecord } = await import("./layouts.js");
|
|
182
|
+
const tokenAccount = (await findAta(a.owner, a.mint, TOKEN_2022_PROGRAM_ID)).address;
|
|
183
|
+
const [book, record] = await Promise.all([findHolderBook(a.mint, ids), findHolderRecord(a.mint, tokenAccount, ids)]);
|
|
184
|
+
const { slot, accounts } = await src.getMultipleAccounts([book.address, record.address, a.floorPool, tokenAccount]);
|
|
185
|
+
const b = ownedBy(accounts[0] ?? null, ids.floorHolders);
|
|
186
|
+
const r = ownedBy(accounts[1] ?? null, ids.floorHolders);
|
|
187
|
+
const p = ownedBy(accounts[2] ?? null, ids.floorHook);
|
|
188
|
+
if (!b || !r || !p)
|
|
189
|
+
return { slot, value: null };
|
|
190
|
+
const bookState = decodeHolderBook(b.data);
|
|
191
|
+
const recordState = decodeHolderRecord(r.data);
|
|
192
|
+
const pool = decodeFloorPool(p.data);
|
|
193
|
+
if (bookState.mint !== a.mint || bookState.floorPool !== a.floorPool || bookState.quoteMint !== pool.quoteMint
|
|
194
|
+
|| pool.baseMint !== a.mint || recordState.mint !== a.mint || recordState.tokenAccount !== tokenAccount
|
|
195
|
+
|| recordState.owner !== a.owner)
|
|
196
|
+
return { slot, value: null };
|
|
197
|
+
const t = ownedBy(accounts[3] ?? null, TOKEN_2022_PROGRAM_ID);
|
|
198
|
+
const token = t ? decodeTokenAccount(t.data) : null;
|
|
199
|
+
const liveBalance = token?.mint === a.mint ? token.amount : 0n;
|
|
200
|
+
return { slot, value: { book: b.data, record: r.data, floorPool: p.data, liveBalance,
|
|
201
|
+
ammPool: pool.ammPool, quoteMint: pool.quoteMint, tokenAccount, recordAddress: record.address } };
|
|
202
|
+
}
|
|
203
|
+
//# sourceMappingURL=stateView.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stateView.js","sourceRoot":"","sources":["../src/stateView.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EACL,SAAS,IAAI,kBAAkB,EAE/B,qBAAqB,EACrB,gBAAgB,EAIhB,kBAAkB,GACnB,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,eAAe,EACf,gBAAgB,EAChB,YAAY,EACZ,kBAAkB,EAClB,sBAAsB,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AC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC;IAC/D,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,CAAC,CAAC,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE,WAAW;YAClF,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,CAAC,OAAO,EAAE,EAAE,CAAC;AACtG,CAAC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FLOOR's tick arithmetic: `open_tick`, the staircase edges, the tranche price and the quote lineage's conversions.
|
|
3
|
+
* The AMM's tick math (`getSqrtPriceAtTick`, `getTickAtSqrtPrice`, the spacing snaps, tick-array starts) is
|
|
4
|
+
* `@floorlaunchpad/carpenter-sdk`'s.
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* `open_tick(price_x64)`: `sqrt = isqrt(2^192 / price_x64)` (U256), then
|
|
8
|
+
* `tick_at_sqrt_price`. The pool is initialized at `sqrt_price_at_tick(open_tick)`.
|
|
9
|
+
*/
|
|
10
|
+
export declare function openTick(priceX64: bigint): number;
|
|
11
|
+
/**
|
|
12
|
+
* `floor_math::stair::doubling_ticks(i)`:
|
|
13
|
+
* ticks for `i` doublings of the token price, `get_tick_at_sqrt_price(sqrt_price_from_ratio(1, 2^i)) + 1` =
|
|
14
|
+
* `ceil(i · ln 2 / ln 1.0001)`, computed per `i` (never `i · 6,932`). 0 for 0.
|
|
15
|
+
*/
|
|
16
|
+
export declare function doublingTicks(i: number): number;
|
|
17
|
+
/** `floor_math::stair::stair_edge`: the staircase's cheap edge `i` doublings above `openEdge`, on the grid. Step i is
|
|
18
|
+
* `[stairEdge(i + 1), stairEdge(i)]`; the reserve from step `f` is `[stairEdge(steps), stairEdge(f)]`; the tail
|
|
19
|
+
* `[ceilToSpacing(MIN_TICK), stairEdge(steps)]`. */
|
|
20
|
+
export declare function stairEdge(openEdge: number, i: number, spacing: number): number;
|
|
21
|
+
/**
|
|
22
|
+
* `floor_math::stair::cushion_home_top`, step for step: the top a cushion takes when `min(spot, TWAP)` has no
|
|
23
|
+
* range above the bid band — the CHEAPEST full-depth range just above the band, `[dear − ceilToSpacing(width), dear]`
|
|
24
|
+
* (`dear = floorTick − ceilToSpacing(BID_BAND_TICKS)`), or the spot when the spot is cheaper still (in ticks the HIGHER).
|
|
25
|
+
*/
|
|
26
|
+
export declare function cushionHomeTop(spotTick: number, floorTick: number, spacing: number, width: number, bandTicks?: number): number;
|
|
27
|
+
/** `floor_math::stair::stair_fits`: a staircase of `steps` from `openEdge` leaves at least one spacing for the open tail
|
|
28
|
+
* above it (`stairEdge(steps) − spacing ≥ ceilToSpacing(MIN_TICK)`). `resolve_config` refuses a launch that does not
|
|
29
|
+
* (`StairDoesNotFit`, 6059) — a quote and a cap whose open tick sits too near the top of the range. */
|
|
30
|
+
export declare function stairFits(openEdge: number, steps: number, spacing: number): boolean;
|
|
31
|
+
/** The admissible decimals of a launch's QUOTE mint, inclusive — the twin of `floor_math::constants::MIN/MAX_QUOTE_DECIMALS`;
|
|
32
|
+
* `floor_hook::list_quote` refuses a mint outside it and `tranche_price_x64` refuses to price one. The only thing the
|
|
33
|
+
* arithmetic bounds is the tranche price itself, `0 < p < 2^77`: past `d = 36` no (cap, quote price) a u64 can carry
|
|
34
|
+
* prices a launch (`p_min(d) = 100·10^d·2^64/(u64::MAX·SUPPLY) >= 2^77` from 37 up), so 36 is derived, not chosen.
|
|
35
|
+
* ⚠ The EFFECTIVE ceiling for a given launch is far lower and value-shaped: {@link tranchePriceX64} throws
|
|
36
|
+
* `tranche price out of range` once `mcap·100·10^d/(cents·SUPPLY) >= 2^13` — `d <= 14` at a $30k cap against a $1.00
|
|
37
|
+
* quote. */
|
|
38
|
+
export declare const MIN_QUOTE_DECIMALS = 0;
|
|
39
|
+
export declare const MAX_QUOTE_DECIMALS = 36;
|
|
40
|
+
/**
|
|
41
|
+
* `tranche_price_x64(mcap_usd, quote_usd_cents, quote_decimals)`:
|
|
42
|
+
* `floor(mcap_usd·100·10^d·2^64 / (quote_usd_cents·SUPPLY))`, required `0 < price < 2^77`.
|
|
43
|
+
*
|
|
44
|
+
* ⛔ The quote price is in CENTS and the quote's decimals are explicit, so a $1.00 quote prices exactly. This is the ONE
|
|
45
|
+
* place a decimals count enters the mechanism: everything downstream (`openTick`, the sale walk, the fee split) is raw
|
|
46
|
+
* base units and Q64.64 and reads no decimals at all.
|
|
47
|
+
*/
|
|
48
|
+
export declare function tranchePriceX64(mcapUsd: bigint, quoteUsdCents: bigint, quoteDecimals: number): bigint;
|
|
49
|
+
/**
|
|
50
|
+
* The twins of `floor_math::lineage`.
|
|
51
|
+
* `minBidFor(d)` = `ceil(10^d / 1,000)`, at least 1, saturating at u64::MAX: the default `min_bid` of a quote no
|
|
52
|
+
* governance roster names. `quoteAmountAtTick(amount, t)` = `amount · sqrt(t)^2 / 2^128` in two `>> 64` steps,
|
|
53
|
+
* rounded down, saturating at u64::MAX, 0 off the tick range: the smart tip cap's conversion (the parent's raw
|
|
54
|
+
* `max_bounty` → raw units of the parent's base, at the parent's 1,800 s TWAP tick).
|
|
55
|
+
*/
|
|
56
|
+
export declare const SMART_CAP_TWAP_WINDOW_SECS = 1800;
|
|
57
|
+
export declare function minBidFor(decimals: number): bigint;
|
|
58
|
+
export declare function quoteAmountAtSqrt(amount: bigint, sqrtPriceX64: bigint): bigint;
|
|
59
|
+
export declare function quoteAmountAtTick(amount: bigint, tick: number): bigint;
|
|
60
|
+
//# sourceMappingURL=tickmath.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tickmath.d.ts","sourceRoot":"","sources":["../src/tickmath.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAaH;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAGjD;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAO/C;AAED;;qDAEqD;AACrD,wBAAgB,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAE9E;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,SAAM,GAAG,MAAM,CAG3H;AAED;;wGAEwG;AACxG,wBAAgB,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAEnF;AAED;;;;;;YAMY;AACZ,eAAO,MAAM,kBAAkB,IAAI,CAAC;AACpC,eAAO,MAAM,kBAAkB,KAAK,CAAC;AAErC;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,MAAM,CASrG;AAED;;;;;;GAMG;AACH,eAAO,MAAM,0BAA0B,OAAQ,CAAC;AAEhD,wBAAgB,SAAS,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAOlD;AACD,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,MAAM,CAK9E;AACD,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAGtE"}
|
package/dist/tickmath.js
ADDED
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FLOOR's tick arithmetic: `open_tick`, the staircase edges, the tranche price and the quote lineage's conversions.
|
|
3
|
+
* The AMM's tick math (`getSqrtPriceAtTick`, `getTickAtSqrtPrice`, the spacing snaps, tick-array starts) is
|
|
4
|
+
* `@floorlaunchpad/carpenter-sdk`'s.
|
|
5
|
+
*/
|
|
6
|
+
import { getSqrtPriceAtTick, getTickAtSqrtPrice, isqrt, MAX_TICK, MIN_TICK, MAX_SQRT_PRICE_X64, MIN_SQRT_PRICE_X64, ceilToSpacing, } from '@floorlaunchpad/carpenter-sdk';
|
|
7
|
+
/**
|
|
8
|
+
* `open_tick(price_x64)`: `sqrt = isqrt(2^192 / price_x64)` (U256), then
|
|
9
|
+
* `tick_at_sqrt_price`. The pool is initialized at `sqrt_price_at_tick(open_tick)`.
|
|
10
|
+
*/
|
|
11
|
+
export function openTick(priceX64) {
|
|
12
|
+
if (priceX64 <= 0n)
|
|
13
|
+
throw new RangeError('price_x64 must be positive');
|
|
14
|
+
return getTickAtSqrtPrice(isqrt((1n << 192n) / priceX64));
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* `floor_math::stair::doubling_ticks(i)`:
|
|
18
|
+
* ticks for `i` doublings of the token price, `get_tick_at_sqrt_price(sqrt_price_from_ratio(1, 2^i)) + 1` =
|
|
19
|
+
* `ceil(i · ln 2 / ln 1.0001)`, computed per `i` (never `i · 6,932`). 0 for 0.
|
|
20
|
+
*/
|
|
21
|
+
export function doublingTicks(i) {
|
|
22
|
+
if (!Number.isInteger(i) || i < 0 || i > 64)
|
|
23
|
+
throw new RangeError(`doublingTicks: ${i}`);
|
|
24
|
+
if (i === 0)
|
|
25
|
+
return 0;
|
|
26
|
+
let sqrt = isqrt(1n << BigInt(96 + i)) << 16n;
|
|
27
|
+
if (sqrt < MIN_SQRT_PRICE_X64)
|
|
28
|
+
sqrt = MIN_SQRT_PRICE_X64;
|
|
29
|
+
if (sqrt >= MAX_SQRT_PRICE_X64)
|
|
30
|
+
sqrt = MAX_SQRT_PRICE_X64 - 1n;
|
|
31
|
+
return getTickAtSqrtPrice(sqrt) + 1;
|
|
32
|
+
}
|
|
33
|
+
/** `floor_math::stair::stair_edge`: the staircase's cheap edge `i` doublings above `openEdge`, on the grid. Step i is
|
|
34
|
+
* `[stairEdge(i + 1), stairEdge(i)]`; the reserve from step `f` is `[stairEdge(steps), stairEdge(f)]`; the tail
|
|
35
|
+
* `[ceilToSpacing(MIN_TICK), stairEdge(steps)]`. */
|
|
36
|
+
export function stairEdge(openEdge, i, spacing) {
|
|
37
|
+
return openEdge - ceilToSpacing(doublingTicks(i), spacing);
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* `floor_math::stair::cushion_home_top`, step for step: the top a cushion takes when `min(spot, TWAP)` has no
|
|
41
|
+
* range above the bid band — the CHEAPEST full-depth range just above the band, `[dear − ceilToSpacing(width), dear]`
|
|
42
|
+
* (`dear = floorTick − ceilToSpacing(BID_BAND_TICKS)`), or the spot when the spot is cheaper still (in ticks the HIGHER).
|
|
43
|
+
*/
|
|
44
|
+
export function cushionHomeTop(spotTick, floorTick, spacing, width, bandTicks = 120) {
|
|
45
|
+
const dear = floorTick - ceilToSpacing(bandTicks, spacing);
|
|
46
|
+
return Math.max(spotTick, dear - ceilToSpacing(width, spacing) - 1);
|
|
47
|
+
}
|
|
48
|
+
/** `floor_math::stair::stair_fits`: a staircase of `steps` from `openEdge` leaves at least one spacing for the open tail
|
|
49
|
+
* above it (`stairEdge(steps) − spacing ≥ ceilToSpacing(MIN_TICK)`). `resolve_config` refuses a launch that does not
|
|
50
|
+
* (`StairDoesNotFit`, 6059) — a quote and a cap whose open tick sits too near the top of the range. */
|
|
51
|
+
export function stairFits(openEdge, steps, spacing) {
|
|
52
|
+
return stairEdge(openEdge, steps, spacing) - spacing >= ceilToSpacing(MIN_TICK, spacing);
|
|
53
|
+
}
|
|
54
|
+
/** The admissible decimals of a launch's QUOTE mint, inclusive — the twin of `floor_math::constants::MIN/MAX_QUOTE_DECIMALS`;
|
|
55
|
+
* `floor_hook::list_quote` refuses a mint outside it and `tranche_price_x64` refuses to price one. The only thing the
|
|
56
|
+
* arithmetic bounds is the tranche price itself, `0 < p < 2^77`: past `d = 36` no (cap, quote price) a u64 can carry
|
|
57
|
+
* prices a launch (`p_min(d) = 100·10^d·2^64/(u64::MAX·SUPPLY) >= 2^77` from 37 up), so 36 is derived, not chosen.
|
|
58
|
+
* ⚠ The EFFECTIVE ceiling for a given launch is far lower and value-shaped: {@link tranchePriceX64} throws
|
|
59
|
+
* `tranche price out of range` once `mcap·100·10^d/(cents·SUPPLY) >= 2^13` — `d <= 14` at a $30k cap against a $1.00
|
|
60
|
+
* quote. */
|
|
61
|
+
export const MIN_QUOTE_DECIMALS = 0;
|
|
62
|
+
export const MAX_QUOTE_DECIMALS = 36;
|
|
63
|
+
/**
|
|
64
|
+
* `tranche_price_x64(mcap_usd, quote_usd_cents, quote_decimals)`:
|
|
65
|
+
* `floor(mcap_usd·100·10^d·2^64 / (quote_usd_cents·SUPPLY))`, required `0 < price < 2^77`.
|
|
66
|
+
*
|
|
67
|
+
* ⛔ The quote price is in CENTS and the quote's decimals are explicit, so a $1.00 quote prices exactly. This is the ONE
|
|
68
|
+
* place a decimals count enters the mechanism: everything downstream (`openTick`, the sale walk, the fee split) is raw
|
|
69
|
+
* base units and Q64.64 and reads no decimals at all.
|
|
70
|
+
*/
|
|
71
|
+
export function tranchePriceX64(mcapUsd, quoteUsdCents, quoteDecimals) {
|
|
72
|
+
if (mcapUsd <= 0n || quoteUsdCents <= 0n)
|
|
73
|
+
throw new RangeError('mcap_usd and quote_usd_cents must be positive');
|
|
74
|
+
if (!Number.isInteger(quoteDecimals) || quoteDecimals < MIN_QUOTE_DECIMALS || quoteDecimals > MAX_QUOTE_DECIMALS) {
|
|
75
|
+
throw new RangeError(`quote decimals out of range: ${quoteDecimals} (must be ${MIN_QUOTE_DECIMALS}..${MAX_QUOTE_DECIMALS})`);
|
|
76
|
+
}
|
|
77
|
+
const unit = 10n ** BigInt(quoteDecimals);
|
|
78
|
+
const p = (mcapUsd * 100n * unit * (1n << 64n)) / (quoteUsdCents * 1000000000000000n);
|
|
79
|
+
if (p <= 0n || p >= 1n << 77n)
|
|
80
|
+
throw new RangeError(`tranche price out of range: ${p}`);
|
|
81
|
+
return p;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* The twins of `floor_math::lineage`.
|
|
85
|
+
* `minBidFor(d)` = `ceil(10^d / 1,000)`, at least 1, saturating at u64::MAX: the default `min_bid` of a quote no
|
|
86
|
+
* governance roster names. `quoteAmountAtTick(amount, t)` = `amount · sqrt(t)^2 / 2^128` in two `>> 64` steps,
|
|
87
|
+
* rounded down, saturating at u64::MAX, 0 off the tick range: the smart tip cap's conversion (the parent's raw
|
|
88
|
+
* `max_bounty` → raw units of the parent's base, at the parent's 1,800 s TWAP tick).
|
|
89
|
+
*/
|
|
90
|
+
export const SMART_CAP_TWAP_WINDOW_SECS = 1_800;
|
|
91
|
+
const U64_MAX = (1n << 64n) - 1n;
|
|
92
|
+
export function minBidFor(decimals) {
|
|
93
|
+
if (!Number.isInteger(decimals) || decimals < 0)
|
|
94
|
+
throw new RangeError(`decimals: ${decimals}`);
|
|
95
|
+
if (decimals > 38)
|
|
96
|
+
return U64_MAX;
|
|
97
|
+
const unit = 10n ** BigInt(decimals);
|
|
98
|
+
const v = (unit + 999n) / 1000n;
|
|
99
|
+
const r = v < 1n ? 1n : v;
|
|
100
|
+
return r > U64_MAX ? U64_MAX : r;
|
|
101
|
+
}
|
|
102
|
+
export function quoteAmountAtSqrt(amount, sqrtPriceX64) {
|
|
103
|
+
if (amount === 0n || sqrtPriceX64 === 0n)
|
|
104
|
+
return 0n;
|
|
105
|
+
const a = (amount * sqrtPriceX64) >> 64n;
|
|
106
|
+
const v = (a * sqrtPriceX64) >> 64n;
|
|
107
|
+
return v > U64_MAX ? U64_MAX : v;
|
|
108
|
+
}
|
|
109
|
+
export function quoteAmountAtTick(amount, tick) {
|
|
110
|
+
if (!Number.isInteger(tick) || tick < MIN_TICK || tick > MAX_TICK)
|
|
111
|
+
return 0n;
|
|
112
|
+
return quoteAmountAtSqrt(amount, getSqrtPriceAtTick(tick));
|
|
113
|
+
}
|
|
114
|
+
//# sourceMappingURL=tickmath.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tickmath.js","sourceRoot":"","sources":["../src/tickmath.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EAClB,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,kBAAkB,EAClB,kBAAkB,EAClB,aAAa,GACd,MAAM,+BAA+B,CAAC;AAEvC;;;GAGG;AACH,MAAM,UAAU,QAAQ,CAAC,QAAgB;IACvC,IAAI,QAAQ,IAAI,EAAE;QAAE,MAAM,IAAI,UAAU,CAAC,4BAA4B,CAAC,CAAC;IACvE,OAAO,kBAAkB,CAAC,KAAK,CAAC,CAAC,EAAE,IAAI,IAAI,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC;AAC5D,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,aAAa,CAAC,CAAS;IACrC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE;QAAE,MAAM,IAAI,UAAU,CAAC,kBAAkB,CAAC,EAAE,CAAC,CAAC;IACzF,IAAI,CAAC,KAAK,CAAC;QAAE,OAAO,CAAC,CAAC;IACtB,IAAI,IAAI,GAAG,KAAK,CAAC,EAAE,IAAI,MAAM,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC;IAC9C,IAAI,IAAI,GAAG,kBAAkB;QAAE,IAAI,GAAG,kBAAkB,CAAC;IACzD,IAAI,IAAI,IAAI,kBAAkB;QAAE,IAAI,GAAG,kBAAkB,GAAG,EAAE,CAAC;IAC/D,OAAO,kBAAkB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACtC,CAAC;AAED;;qDAEqD;AACrD,MAAM,UAAU,SAAS,CAAC,QAAgB,EAAE,CAAS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ACzC,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,YAAY,CAAC,IAAI,GAAG,CAAC;IACpC,OAAO,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;AACnC,CAAC;AACD,MAAM,UAAU,iBAAiB,CAAC,MAAc,EAAE,IAAY;IAC5D,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,IAAI,GAAG,QAAQ,IAAI,IAAI,GAAG,QAAQ;QAAE,OAAO,EAAE,CAAC;IAC7E,OAAO,iBAAiB,CAAC,MAAM,EAAE,kBAAkB,CAAC,IAAI,CAAC,CAAC,CAAC;AAC7D,CAAC"}
|
package/dist/twap.d.ts
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { type TwapOracleView } from './layouts.ts';
|
|
2
|
+
/** `floor_types::twap::TWAP_VERSION`: the oracle's version once written. */
|
|
3
|
+
export declare const TWAP_VERSION = 1;
|
|
4
|
+
/** Why a window read has no answer (`floor_types::twap::TwapError`). */
|
|
5
|
+
export type TwapReadError = 'Uninitialized' | 'WindowTooLong';
|
|
6
|
+
/** A window read: the tick, or why there is none. */
|
|
7
|
+
export type TwapRead = {
|
|
8
|
+
readonly tick: number;
|
|
9
|
+
} | {
|
|
10
|
+
readonly error: TwapReadError;
|
|
11
|
+
};
|
|
12
|
+
/** `a / b` rounded toward negative infinity (`b > 0`), `floor_types::twap::floor_div`. */
|
|
13
|
+
export declare function twapFloorDiv(a: bigint, b: bigint): bigint;
|
|
14
|
+
/** The oracle a zero tail decodes to: never written. */
|
|
15
|
+
export declare function emptyTwapOracle(): TwapOracleView;
|
|
16
|
+
/**
|
|
17
|
+
* THE WRITE (`TwapOracle::observe`): `tick` is the pool's tick BEFORE whatever is about to move it, at unix second `now`.
|
|
18
|
+
* Returns the oracle after the write (the input is never mutated); the same object when the write is a no-op (the same
|
|
19
|
+
* second, or a clock behind the last write).
|
|
20
|
+
*/
|
|
21
|
+
export declare function twapObserve(o: TwapOracleView, now: number, tick: number): TwapOracleView;
|
|
22
|
+
/**
|
|
23
|
+
* THE WINDOW READ (`TwapOracle::twap_tick`, the `twap_tick` instruction's answer): the time-weighted mean RAW tick over
|
|
24
|
+
* the newest checkpoint at least `window` seconds old to now; window 0 is the live tick; the live tick exactly when nothing
|
|
25
|
+
* has written for the whole window.
|
|
26
|
+
*/
|
|
27
|
+
export declare function twapTickAt(o: TwapOracleView, now: number, liveTick: number, window: number): TwapRead;
|
|
28
|
+
/**
|
|
29
|
+
* THE SETTLED TICK (`TwapOracle::settled_tick`, what the staircase's cushion reads): {@link twapTickAt} over `window`, and
|
|
30
|
+
* when the ring is younger than `window`, over its OLDEST checkpoint's age; when even that is 0, the tick at the start of
|
|
31
|
+
* this second (`current.lastTick`).
|
|
32
|
+
*/
|
|
33
|
+
export declare function settledTickAt(o: TwapOracleView, now: number, liveTick: number, window?: number): TwapRead;
|
|
34
|
+
//# sourceMappingURL=twap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"twap.d.ts","sourceRoot":"","sources":["../src/twap.ts"],"names":[],"mappings":"AASA,OAAO,EAA2E,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAE5H,4EAA4E;AAC5E,eAAO,MAAM,YAAY,IAAI,CAAC;AAE9B,wEAAwE;AACxE,MAAM,MAAM,aAAa,GAAG,eAAe,GAAG,eAAe,CAAC;AAC9D,qDAAqD;AACrD,MAAM,MAAM,QAAQ,GAAG;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAA;CAAE,CAAC;AAOrF,0FAA0F;AAC1F,wBAAgB,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAGzD;AAUD,wDAAwD;AACxD,wBAAgB,eAAe,IAAI,cAAc,CAYhD;AAWD;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,cAAc,CAkBxF;AAOD;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,QAAQ,CAgBrG;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,GAAE,MAAiC,GAAG,QAAQ,CASnI"}
|