@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
package/dist/adapter.js
ADDED
|
@@ -0,0 +1,402 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `createSolanaAdapter`: the `@floorlaunchpad/sdk` `FloorChainAdapter` for FLOOR launches on Solana clusters.
|
|
3
|
+
*
|
|
4
|
+
* - `getLaunch` / `listLaunches` read the `Launch` account (and, once graduated, its `FloorPool`) and the mint's
|
|
5
|
+
* Token-2022 metadata.
|
|
6
|
+
* - `quote` asks the wasm quoter: the sale's own arithmetic while the launch is bonding (`saleBuy` /
|
|
7
|
+
* `saleSellBack`), the AMM walk with the FLOOR hook's callbacks once graduated (`quoteSwap`).
|
|
8
|
+
* - `buildTrade` returns EVERY transaction one trade needs, in send order, in ONE `UnsignedTx`: `[link?, prepare?, trade]`.
|
|
9
|
+
* `link` rides first when `traderLink` returns an attestation for a trader with no link yet (and the attestation is not
|
|
10
|
+
* about to expire); `prepare` rides in front of a sale buy while the launch's graduation accounts are not prepared.
|
|
11
|
+
* Sign the list in one wallet prompt and send it with `sendSolanaTransactions` (re-exported from `@floorlaunchpad/carpenter-sdk`),
|
|
12
|
+
* which sends in order and STOPS at the first failure: a failed `link` step means the trade is not sent, and the caller
|
|
13
|
+
* builds the trade again (the rebuilt list carries no link once the trader is linked, or no attestation is served).
|
|
14
|
+
* - `TradeParams.deadline` is not used: a Solana transaction expires with its recent blockhash (~60–90 s).
|
|
15
|
+
*
|
|
16
|
+
* ⛔ PROGRAM VERSION. This SDK builds for the FLOOR program set whose hook callbacks take 4 accounts
|
|
17
|
+
* (`FLOOR_CALLBACK_ACCOUNTS`), whose sale sell-back is stateless and which has `sell_back_wsol`. Before building any
|
|
18
|
+
* trade the adapter reads `floor_hook`'s `ApprovedHook` record on the AMM, and on a graduated pool the pool's own
|
|
19
|
+
* `hook_callback_accounts`, and refuses (`program_version`) when either is not 4. The check is on the hook record:
|
|
20
|
+
* `floor_launch` is upgraded with it, but a cluster running an older `floor_launch` beside a newer `floor_hook` is not
|
|
21
|
+
* detected here (an older `floor_launch` lacks `sell_back_wsol`, and its sell-back pays at least the stateless quote).
|
|
22
|
+
*
|
|
23
|
+
* Every transaction is a v0 message compiled through the cluster's deployment lookup table and, for a sale trade, the
|
|
24
|
+
* launch's own lookup table (a sale buy does not fit the 1,232-byte packet without it). The launch table's address is
|
|
25
|
+
* not derivable from chain state, so a sale trade needs `launchTable` (the launchpad's API records it).
|
|
26
|
+
*
|
|
27
|
+
* ⛔ The fee list is the trader's WHOLE take, all six parts (LP fee, floor skim, creator fee, holder fee, FLOOR Platform
|
|
28
|
+
* fee, Carpenter Platform fee), zero where a part does not apply — never a partial list.
|
|
29
|
+
* ⛔ Amounts are bigints in base units; a mint is never case-folded.
|
|
30
|
+
*/
|
|
31
|
+
import { chainKey, solanaRef } from '@floorlaunchpad/sdk';
|
|
32
|
+
import { compileSendable, decodeLookupTable, decodeMint, findAta, findPosition, fromKitRpc, getApprovedHook, getAtaExtensions, getPool, getSqrtPriceAtTick, rentFromRpc, WSOL_DECIMALS, WSOL_MINT, } from '@floorlaunchpad/carpenter-sdk';
|
|
33
|
+
import { address, getBase64EncodedWireTransaction } from '@solana/kit';
|
|
34
|
+
import { FLOOR_CALLBACK_ACCOUNTS, LAUNCH_STATE_BONDING, LAUNCH_STATE_GRADUATED, TOKEN_DECIMALS } from "./constants.js";
|
|
35
|
+
import { deploymentFor } from "./deployments.js";
|
|
36
|
+
import { decodeFloorPool, launchQuoteMint } from "./layouts.js";
|
|
37
|
+
import { findBuyerPosition, findFloorPool, findHookAuthority, findLaunch, findTraderLink } from "./pda.js";
|
|
38
|
+
import { graduationAccounts } from "./predict.js";
|
|
39
|
+
import { QuoteError } from "./quote/quoter.js";
|
|
40
|
+
import { readRawOwned, readSwapQuoteAccounts, programIdsFromDeployment } from "./adapters.js";
|
|
41
|
+
import { getFloorPool, getLaunch, getLaunchConfig, listLaunches } from "./stateView.js";
|
|
42
|
+
import { buildSellBack, buildSellBackWsol, buildSwap, planBuy } from "./tx/builders.js";
|
|
43
|
+
import { buildLinkTrader } from "./tx/traderRef.js";
|
|
44
|
+
/** A `traderLink` attestation that expires within this many seconds is skipped (the trade goes without the link). */
|
|
45
|
+
export const TRADER_LINK_DEADLINE_MARGIN_SECONDS = 60;
|
|
46
|
+
/** The devnet CAIP-2 id (`solana:` + the first 32 characters of the genesis hash). */
|
|
47
|
+
export const DEVNET_KEY = 'solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1';
|
|
48
|
+
/** The mainnet-beta CAIP-2 id. Its row is added to the deployment files when the programs are deployed there. */
|
|
49
|
+
export const MAINNET_KEY = 'solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp';
|
|
50
|
+
const DEFAULT_KEYS = { mainnet: MAINNET_KEY, devnet: DEVNET_KEY, local: 'local' };
|
|
51
|
+
const SIX = ['lp', 'floorSkim', 'creator', 'holder', 'floorPlatform', 'carpenterPlatform'];
|
|
52
|
+
const X18 = 10n ** 18n;
|
|
53
|
+
function feeList(parts) {
|
|
54
|
+
return SIX.map((kind) => ({ kind, amount: parts[kind] ?? 0n }));
|
|
55
|
+
}
|
|
56
|
+
export class SolanaAdapterError extends Error {
|
|
57
|
+
code;
|
|
58
|
+
constructor(code, message) {
|
|
59
|
+
super(message);
|
|
60
|
+
this.code = code;
|
|
61
|
+
this.name = 'SolanaAdapterError';
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
export function createSolanaAdapter(opts) {
|
|
65
|
+
const ctxs = new Map();
|
|
66
|
+
for (const [cluster, cfg] of Object.entries(opts.clusters)) {
|
|
67
|
+
const key = cfg.deployment ?? DEFAULT_KEYS[cluster] ?? null;
|
|
68
|
+
if (!cfg.row && !key)
|
|
69
|
+
throw new SolanaAdapterError('no_cluster', `createSolanaAdapter: no deployment row is known for ${cluster}; pass clusters.${cluster}.deployment`);
|
|
70
|
+
const row = cfg.row ?? deploymentFor(key);
|
|
71
|
+
ctxs.set(cluster, { cluster, cfg, src: fromKitRpc(cfg.rpc), row, ids: cfg.ids ?? programIdsFromDeployment(row) });
|
|
72
|
+
}
|
|
73
|
+
const ctxOf = (chain) => {
|
|
74
|
+
const c = chain.family === 'solana' ? ctxs.get(chain.cluster) : undefined;
|
|
75
|
+
if (!c)
|
|
76
|
+
throw new SolanaAdapterError('no_cluster', `no Solana cluster configured for ${chainKey(chain)}`);
|
|
77
|
+
return c;
|
|
78
|
+
};
|
|
79
|
+
async function readLaunch(ctx, ref) {
|
|
80
|
+
const mint = address(ref.token);
|
|
81
|
+
const { slot, value } = await getLaunch(ctx.src, mint, ctx.ids);
|
|
82
|
+
if (!value)
|
|
83
|
+
throw new SolanaAdapterError('not_found', `no FLOOR launch for mint ${ref.token} on ${chainKey(ref.chain)}`);
|
|
84
|
+
const floorPool = value.state === LAUNCH_STATE_GRADUATED ? (await getFloorPool(ctx.src, value.ammPool, ctx.ids)).value : null;
|
|
85
|
+
return { slot, launch: value, floorPool };
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* The shared `Launch` from the decoded accounts and the mint's (and a token quote's) account. ⛔ A token-quoted launch
|
|
89
|
+
* whose quote mint was not read is refused `not_found`: its decimals price the floor, and no default is right.
|
|
90
|
+
*/
|
|
91
|
+
function toShared(ref, raw, mintAccount, quoteAccount) {
|
|
92
|
+
const l = raw.launch;
|
|
93
|
+
const quoteMint = launchQuoteMint(l);
|
|
94
|
+
const isWsol = quoteMint === WSOL_MINT;
|
|
95
|
+
if (!isWsol && !quoteAccount)
|
|
96
|
+
throw new SolanaAdapterError('not_found', `the quote mint ${quoteMint} of ${ref.token} could not be read`);
|
|
97
|
+
const mintInfo = mintAccount ? decodeMint(mintAccount.data) : null;
|
|
98
|
+
const quoteInfo = isWsol || !quoteAccount ? null : decodeMint(quoteAccount.data);
|
|
99
|
+
const quoteDecimals = quoteInfo ? quoteInfo.decimals : WSOL_DECIMALS;
|
|
100
|
+
const phase = l.state === LAUNCH_STATE_BONDING ? 'bonding' : l.state === LAUNCH_STATE_GRADUATED ? 'graduated' : 'pending';
|
|
101
|
+
let floorPriceX18 = null;
|
|
102
|
+
if (raw.floorPool && phase === 'graduated') {
|
|
103
|
+
// On a FLOOR pool currency 0 is the quote and currency 1 the base, so a tick prices base per quote; the floor in
|
|
104
|
+
// quote per base is its inverse. Whole units: × 10^(base decimals − quote decimals).
|
|
105
|
+
const sqrt = getSqrtPriceAtTick(raw.floorPool.floorTick);
|
|
106
|
+
floorPriceX18 = (X18 * (1n << 128n) * 10n ** BigInt(TOKEN_DECIMALS)) / (sqrt * sqrt * 10n ** BigInt(quoteDecimals));
|
|
107
|
+
}
|
|
108
|
+
return {
|
|
109
|
+
ref,
|
|
110
|
+
name: mintInfo?.tokenMetadata?.name ?? '',
|
|
111
|
+
symbol: mintInfo?.tokenMetadata?.symbol ?? '',
|
|
112
|
+
decimals: mintInfo?.decimals ?? TOKEN_DECIMALS,
|
|
113
|
+
totalSupply: mintInfo?.supply ?? 0n,
|
|
114
|
+
quote: isWsol
|
|
115
|
+
? { address: null, symbol: 'SOL', decimals: WSOL_DECIMALS }
|
|
116
|
+
: { address: quoteMint, symbol: opts.quoteSymbol?.(quoteMint) ?? quoteInfo?.tokenMetadata?.symbol ?? '', decimals: quoteDecimals },
|
|
117
|
+
phase,
|
|
118
|
+
mode: l.mode,
|
|
119
|
+
creator: l.creator,
|
|
120
|
+
floorPriceX18,
|
|
121
|
+
raw,
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
/** `getMultipleAccounts` in chunks of 100 (the RPC's per-call limit), in order. */
|
|
125
|
+
async function readMany(ctx, addrs) {
|
|
126
|
+
const out = [];
|
|
127
|
+
for (let i = 0; i < addrs.length; i += 100)
|
|
128
|
+
out.push(...(await ctx.src.getMultipleAccounts(addrs.slice(i, i + 100))).accounts);
|
|
129
|
+
return out;
|
|
130
|
+
}
|
|
131
|
+
/** The quote mint's token program, or `undefined` for wSOL; `not_found` when a token quote's mint is not on chain. */
|
|
132
|
+
async function quoteSpecOf(ctx, l) {
|
|
133
|
+
const quoteMint = launchQuoteMint(l);
|
|
134
|
+
if (quoteMint === WSOL_MINT)
|
|
135
|
+
return undefined;
|
|
136
|
+
const { account } = await ctx.src.getAccount(quoteMint);
|
|
137
|
+
if (!account)
|
|
138
|
+
throw new SolanaAdapterError('not_found', `the quote mint ${quoteMint} of ${l.mint} could not be read`);
|
|
139
|
+
return { mint: quoteMint, tokenProgram: account.owner };
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Refuse a cluster whose FLOOR programs predate this SDK: `floor_hook`'s `ApprovedHook.callback_accounts` (and, given,
|
|
143
|
+
* the pool's own copy) must be {@link FLOOR_CALLBACK_ACCOUNTS}.
|
|
144
|
+
*/
|
|
145
|
+
async function assertProgramSet(ctx, pool) {
|
|
146
|
+
const hook = (await getApprovedHook(ctx.src, ctx.ids.floorHook, ctx.ids)).value;
|
|
147
|
+
if (!hook)
|
|
148
|
+
throw new SolanaAdapterError('program_version', `floor_hook ${ctx.ids.floorHook} is not an approved hook of carpenter_amm ${ctx.ids.carpenterAmm} on ${ctx.cluster}`);
|
|
149
|
+
if (hook.callbackAccounts !== FLOOR_CALLBACK_ACCOUNTS) {
|
|
150
|
+
throw new SolanaAdapterError('program_version', `floor_hook on ${ctx.cluster} takes ${hook.callbackAccounts} callback accounts; this SDK builds for the program set that takes ${FLOOR_CALLBACK_ACCOUNTS}`);
|
|
151
|
+
}
|
|
152
|
+
if (pool && pool.hookCallbackAccounts !== FLOOR_CALLBACK_ACCOUNTS) {
|
|
153
|
+
throw new SolanaAdapterError('program_version', `the pool was created with ${pool.hookCallbackAccounts} hook callback accounts; this SDK builds for ${FLOOR_CALLBACK_ACCOUNTS}`);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* A sale buy's graduation list (what a graduating buy creates) and its rent, crediting the accounts that already exist:
|
|
158
|
+
* `maxGraduationLamports` is the bound the buy instruction carries.
|
|
159
|
+
*/
|
|
160
|
+
async function graduationOf(ctx, l, quote) {
|
|
161
|
+
const fp = (await getFloorPool(ctx.src, l.ammPool, ctx.ids)).value;
|
|
162
|
+
if (!fp)
|
|
163
|
+
throw new SolanaAdapterError('not_found', `no FloorPool for ${l.mint}`);
|
|
164
|
+
const hooked = l.holderBuy > 0 || l.holderSell > 0;
|
|
165
|
+
const rent = rentFromRpc(ctx.cfg.rpc);
|
|
166
|
+
const args = { launch: l, rent, floorPool: fp, hooked, ...(quote ? { quote } : {}), ids: ctx.ids };
|
|
167
|
+
const probe = await graduationAccounts(args);
|
|
168
|
+
const accs = probe.accounts.map((m) => m.address);
|
|
169
|
+
const got = await readMany(ctx, accs);
|
|
170
|
+
const existing = new Set(accs.filter((_, i) => got[i] !== null));
|
|
171
|
+
return { floorPool: fp, hooked, rent, existing, graduation: await graduationAccounts({ ...args, existing }) };
|
|
172
|
+
}
|
|
173
|
+
async function launchTableOf(ctx, ref) {
|
|
174
|
+
const at = opts.launchTable ? await opts.launchTable(ref) : null;
|
|
175
|
+
if (!at)
|
|
176
|
+
throw new SolanaAdapterError('needs_launch_table', `a sale trade of ${ref.token} needs its launch lookup table: pass createSolanaAdapter({ launchTable })`);
|
|
177
|
+
const { account } = await ctx.src.getAccount(address(at));
|
|
178
|
+
if (!account)
|
|
179
|
+
throw new SolanaAdapterError('needs_launch_table', `no lookup table at ${at}`);
|
|
180
|
+
return { address: address(at), ...decodeLookupTable(account.data) };
|
|
181
|
+
}
|
|
182
|
+
async function deploymentTables(ctx) {
|
|
183
|
+
if (!ctx.row.alt)
|
|
184
|
+
return [];
|
|
185
|
+
const { account } = await ctx.src.getAccount(address(ctx.row.alt));
|
|
186
|
+
return account ? [{ address: address(ctx.row.alt), addresses: decodeLookupTable(account.data).addresses }] : [];
|
|
187
|
+
}
|
|
188
|
+
async function swapQuote(ctx, l, side, amountIn) {
|
|
189
|
+
let starts = null;
|
|
190
|
+
for (let attempt = 0; attempt < 8; attempt++) {
|
|
191
|
+
const v = (await readSwapQuoteAccounts(ctx.src, l.ammPool, { radius: 4, ...(starts ? { starts } : {}), ids: ctx.ids })).value;
|
|
192
|
+
try {
|
|
193
|
+
return opts.quoter.quoteSwap({ poolKey: v.poolKey, pool: v.pool, bitmap: v.bitmap, tickArrays: v.tickArrays, floorPool: v.floorPool, supply1: v.supply1, zeroForOne: side === 'buy', amountSpecified: -amountIn });
|
|
194
|
+
}
|
|
195
|
+
catch (e) {
|
|
196
|
+
if (!(e instanceof QuoteError) || e.startIndex === null)
|
|
197
|
+
throw e;
|
|
198
|
+
starts = [...new Set([...v.tickArrayStarts, e.startIndex])];
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
throw new SolanaAdapterError('not_tradeable', `the walk on ${l.ammPool} did not settle within the tick arrays read`);
|
|
202
|
+
}
|
|
203
|
+
async function quoteRaw(ctx, ref, side, amountIn, trader) {
|
|
204
|
+
const { launch: l } = await readLaunch(ctx, ref);
|
|
205
|
+
if (l.state === LAUNCH_STATE_BONDING) {
|
|
206
|
+
const launchBytes = (await readRawOwned(ctx.src, (await findLaunch(l.mint, ctx.ids)).address, ctx.ids.floorLaunch)).value;
|
|
207
|
+
if (!launchBytes)
|
|
208
|
+
throw new SolanaAdapterError('not_found', `no Launch account for ${ref.token}`);
|
|
209
|
+
if (side === 'buy') {
|
|
210
|
+
const s = opts.quoter.saleBuy(launchBytes, amountIn);
|
|
211
|
+
const base = { launch: ref, side, amountIn, amountOut: s.tokens, fees: feeList({ floorPlatform: s.teamFee }), feesExact: true, graduates: s.graduates, ...(s.spent < amountIn ? { refund: amountIn - s.spent } : {}) };
|
|
212
|
+
if (!s.graduates)
|
|
213
|
+
return base;
|
|
214
|
+
// A graduating buy also pays the rent of what graduation creates, at most `max_graduation_lamports` (lamports on
|
|
215
|
+
// every quote asset).
|
|
216
|
+
const { graduation } = await graduationOf(ctx, l, await quoteSpecOf(ctx, l));
|
|
217
|
+
return { ...base, maxExtraNative: graduation.maxGraduationLamports };
|
|
218
|
+
}
|
|
219
|
+
// The payout is the launch's fixed price for `amountIn`, the same for any seller; the position is read only to
|
|
220
|
+
// check that it covers `amountIn`.
|
|
221
|
+
if (!trader)
|
|
222
|
+
throw new SolanaAdapterError('needs_trader', 'a sell-back before graduation is checked against the seller\'s position: pass opts.trader');
|
|
223
|
+
const pos = (await readRawOwned(ctx.src, (await findBuyerPosition((await findLaunch(l.mint, ctx.ids)).address, address(trader), ctx.ids)).address, ctx.ids.floorLaunch)).value;
|
|
224
|
+
if (!pos)
|
|
225
|
+
throw new SolanaAdapterError('not_found', `${trader} holds no position in the sale of ${ref.token}`);
|
|
226
|
+
const s = opts.quoter.saleSellBack(launchBytes, pos, amountIn);
|
|
227
|
+
return { launch: ref, side, amountIn, amountOut: s.received, fees: feeList({ floorPlatform: s.teamFee }), feesExact: true };
|
|
228
|
+
}
|
|
229
|
+
if (l.state !== LAUNCH_STATE_GRADUATED)
|
|
230
|
+
throw new SolanaAdapterError('not_tradeable', `${ref.token} is not trading (state ${l.state})`);
|
|
231
|
+
return swapToQuote(ref, side, await swapQuote(ctx, l, side, amountIn));
|
|
232
|
+
}
|
|
233
|
+
return {
|
|
234
|
+
chains: [...ctxs.keys()].map((c) => solanaRef(c)),
|
|
235
|
+
async getLaunch(ref) {
|
|
236
|
+
const ctx = ctxOf(ref.chain);
|
|
237
|
+
const raw = await readLaunch(ctx, ref);
|
|
238
|
+
const quoteMint = launchQuoteMint(raw.launch);
|
|
239
|
+
const accs = await readMany(ctx, quoteMint === WSOL_MINT ? [raw.launch.mint] : [raw.launch.mint, quoteMint]);
|
|
240
|
+
return toShared(ref, raw, accs[0] ?? null, accs[1] ?? null);
|
|
241
|
+
},
|
|
242
|
+
/**
|
|
243
|
+
* Newest first, `limit` registry indices per page (default 50). The cursor is the registry index to continue BELOW, so
|
|
244
|
+
* a page whose entries are missing or unreadable still advances; a page can therefore hold fewer than `limit` launches
|
|
245
|
+
* while `cursor` is not `null`. ⛔ Unfiltered: anyone can create a launch with any name and symbol. A row whose
|
|
246
|
+
* `Launch` or (token quote) quote mint cannot be read is left out.
|
|
247
|
+
*/
|
|
248
|
+
async listLaunches(chain, o) {
|
|
249
|
+
const ctx = ctxOf(chain);
|
|
250
|
+
const key = ctx.row.chainKey;
|
|
251
|
+
if (!key)
|
|
252
|
+
throw new SolanaAdapterError('no_cluster', `listLaunches needs a cluster with a CAIP-2 key; ${ctx.cluster} has none`);
|
|
253
|
+
const before = o?.cursor ? BigInt(o.cursor) : undefined;
|
|
254
|
+
const limit = o?.limit ?? 50;
|
|
255
|
+
const page = await listLaunches(ctx.src, key, { limit, withState: true, ...(before !== undefined ? { before } : {}) }, ctx.ids);
|
|
256
|
+
const rows = page.value.filter((r) => r.state !== null);
|
|
257
|
+
// One batched read for every row's FloorPool (graduated only), mint and token quote mint.
|
|
258
|
+
const floorPoolAddrs = await Promise.all(rows.map(async (r) => (r.state.state === LAUNCH_STATE_GRADUATED ? (await findFloorPool(r.state.ammPool, ctx.ids)).address : null)));
|
|
259
|
+
const want = [];
|
|
260
|
+
const at = new Map();
|
|
261
|
+
const need = (a) => {
|
|
262
|
+
if (!at.has(a)) {
|
|
263
|
+
at.set(a, want.length);
|
|
264
|
+
want.push(a);
|
|
265
|
+
}
|
|
266
|
+
};
|
|
267
|
+
rows.forEach((r, i) => {
|
|
268
|
+
need(r.state.mint);
|
|
269
|
+
const q = launchQuoteMint(r.state);
|
|
270
|
+
if (q !== WSOL_MINT)
|
|
271
|
+
need(q);
|
|
272
|
+
const fp = floorPoolAddrs[i];
|
|
273
|
+
if (fp)
|
|
274
|
+
need(fp);
|
|
275
|
+
});
|
|
276
|
+
const got = await readMany(ctx, want);
|
|
277
|
+
const get = (a) => got[at.get(a)] ?? null;
|
|
278
|
+
const launches = [];
|
|
279
|
+
rows.forEach((r, i) => {
|
|
280
|
+
const fpAddr = floorPoolAddrs[i];
|
|
281
|
+
const fpAcc = fpAddr ? get(fpAddr) : null;
|
|
282
|
+
const floorPool = fpAcc && fpAcc.owner === ctx.ids.floorHook ? decodeFloorPool(fpAcc.data) : null;
|
|
283
|
+
const q = launchQuoteMint(r.state);
|
|
284
|
+
const quoteAcc = q === WSOL_MINT ? null : get(q);
|
|
285
|
+
if (q !== WSOL_MINT && !quoteAcc)
|
|
286
|
+
return;
|
|
287
|
+
launches.push(toShared({ chain, token: r.mint }, { launch: r.state, floorPool, slot: page.slot }, get(r.state.mint), quoteAcc));
|
|
288
|
+
});
|
|
289
|
+
return { launches, cursor: page.nextBefore !== null ? page.nextBefore.toString() : null };
|
|
290
|
+
},
|
|
291
|
+
async quote(ref, side, amountIn, o) {
|
|
292
|
+
return quoteRaw(ctxOf(ref.chain), ref, side, amountIn, o?.trader);
|
|
293
|
+
},
|
|
294
|
+
async buildTrade(p) {
|
|
295
|
+
const ctx = ctxOf(p.launch.chain);
|
|
296
|
+
await assertProgramSet(ctx);
|
|
297
|
+
const { launch: l, floorPool } = await readLaunch(ctx, p.launch);
|
|
298
|
+
const trader = address(p.trader);
|
|
299
|
+
const { value: blockhash } = await ctx.cfg.rpc.getLatestBlockhash({ commitment: 'confirmed' }).send();
|
|
300
|
+
const lifetime = { blockhash: blockhash.blockhash, lastValidBlockHeight: blockhash.lastValidBlockHeight };
|
|
301
|
+
const tables = await deploymentTables(ctx);
|
|
302
|
+
const quote = await quoteSpecOf(ctx, l);
|
|
303
|
+
const hooked = l.holderBuy > 0 || l.holderSell > 0;
|
|
304
|
+
const wire = (c) => getBase64EncodedWireTransaction(c.transaction);
|
|
305
|
+
// The referral link, when the trader has none and the caller has an attestation that is not about to expire: its
|
|
306
|
+
// own transaction, first. A link that fails on chain stops the batch (the trade is not sent).
|
|
307
|
+
let linked = (await ctx.src.getAccount((await findTraderLink(trader, ctx.ids)).address)).account !== null;
|
|
308
|
+
const pre = [];
|
|
309
|
+
if (!linked && opts.traderLink) {
|
|
310
|
+
const attestation = await opts.traderLink(p.launch, p.trader);
|
|
311
|
+
const now = BigInt(Math.floor(opts.now ? opts.now() : Date.now() / 1000));
|
|
312
|
+
if (attestation && attestation.deadline >= now + BigInt(TRADER_LINK_DEADLINE_MARGIN_SECONDS)) {
|
|
313
|
+
const config = (await getLaunchConfig(ctx.src, ctx.ids)).value;
|
|
314
|
+
if (!config)
|
|
315
|
+
throw new SolanaAdapterError('not_found', 'no LaunchConfig on this cluster');
|
|
316
|
+
const link = await buildLinkTrader({ trader, attestor: config.attestor, cluster: config.cluster, attestation, ids: ctx.ids });
|
|
317
|
+
pre.push(wire(compileSendable('buildTrade/link', { feePayer: trader, instructions: link.instructions, lifetime, lookupTables: tables })));
|
|
318
|
+
linked = true;
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
const out = (txs) => ({ family: 'solana', cluster: ctx.cluster, transactions: [...pre, ...txs] });
|
|
322
|
+
// A linked trader's wSOL bucket exists (the link opens it), so a wSOL sale trade carries the referral prefix.
|
|
323
|
+
const traderRef = linked && !quote ? { traderRef: true } : {};
|
|
324
|
+
if (l.state === LAUNCH_STATE_BONDING) {
|
|
325
|
+
const launchAlt = await launchTableOf(ctx, p.launch);
|
|
326
|
+
const lookupTables = [...tables, launchAlt];
|
|
327
|
+
if (p.side === 'buy') {
|
|
328
|
+
// Which graduation accounts already exist decides whether the buy needs the prepare step first.
|
|
329
|
+
const g = await graduationOf(ctx, l, quote);
|
|
330
|
+
const plan = await planBuy({
|
|
331
|
+
buyer: trader, launch: l, lamportsIn: p.amountIn, minTokens: p.minAmountOut, rent: g.rent, floorPool: g.floorPool,
|
|
332
|
+
...(quote ? { quote } : {}), ...(hooked ? { hooked: true, touch: {} } : {}), ...traderRef, ids: ctx.ids,
|
|
333
|
+
existing: g.existing, launchAlt, lookupTables: tables, lifetime,
|
|
334
|
+
});
|
|
335
|
+
return out(plan.steps.map((s) => wire(s.compiled)));
|
|
336
|
+
}
|
|
337
|
+
const ata = (await findAta(trader, l.mint, ctxTokenProgram())).address;
|
|
338
|
+
const ext = (await getAtaExtensions(ctx.src, ata)).value;
|
|
339
|
+
const sellArgs = {
|
|
340
|
+
buyer: trader, launch: l, tokens: p.amountIn, buyerAta: { cpiGuardLocked: ext?.cpiGuardLocked ?? false, delegatedAmount: ext?.delegatedAmount ?? 0n },
|
|
341
|
+
...(hooked ? { holder: { floorPool: l.floorPool } } : {}), ...traderRef, ids: ctx.ids,
|
|
342
|
+
};
|
|
343
|
+
const tx = !quote && opts.sellBackPayout === 'wsol' ? await buildSellBackWsol(sellArgs) : await buildSellBack({ ...sellArgs, ...(quote ? { quote } : {}) });
|
|
344
|
+
return out([wire(compileSendable('buildTrade/sellBack', { feePayer: trader, instructions: tx.instructions, lifetime, lookupTables }))]);
|
|
345
|
+
}
|
|
346
|
+
if (l.state !== LAUNCH_STATE_GRADUATED || !floorPool)
|
|
347
|
+
throw new SolanaAdapterError('not_tradeable', `${p.launch.token} is not trading (state ${l.state})`);
|
|
348
|
+
const poolState = (await getPool(ctx.src, l.ammPool, ctx.ids)).value;
|
|
349
|
+
if (!poolState)
|
|
350
|
+
throw new SolanaAdapterError('not_found', `no pool at ${l.ammPool}`);
|
|
351
|
+
await assertProgramSet(ctx, poolState);
|
|
352
|
+
const q = await swapQuote(ctx, l, p.side, p.amountIn);
|
|
353
|
+
// The trader's walk and every hook action's walk; the actions' own arrays are created first if missing.
|
|
354
|
+
const starts = [...new Set([...q.arraysTouched, ...q.actionArrays])];
|
|
355
|
+
const hookAuthority = (await findHookAuthority(ctx.ids.floorHook)).address;
|
|
356
|
+
const salts = [...new Set(q.replaceActions.flatMap((a) => (a.kind === 'modify_position' ? [a.salt] : [])))];
|
|
357
|
+
const actionPositions = await Promise.all(salts.map(async (s) => (await findPosition(l.ammPool, hookAuthority, s, ctx.ids)).address));
|
|
358
|
+
const zeroForOne = p.side === 'buy';
|
|
359
|
+
const tokenIn = zeroForOne ? undefined : (await findAta(trader, l.mint, ctxTokenProgram())).address;
|
|
360
|
+
const ext = tokenIn ? (await getAtaExtensions(ctx.src, tokenIn)).value : null;
|
|
361
|
+
const tx = await buildSwap({
|
|
362
|
+
trader, pool: l.ammPool, poolState, zeroForOne, amountSpecified: -p.amountIn, amountLimit: p.minAmountOut,
|
|
363
|
+
tickArrayStarts: starts, ensureTickArrayStarts: q.actionArrays, actionPositions,
|
|
364
|
+
...(ext?.cpiGuardLocked ? { sourceHasCpiGuard: true } : {}),
|
|
365
|
+
...(hooked ? { transferHook: { floorPool: l.floorPool, ...(zeroForOne ? { openBuyerRecord: true } : {}) } } : {}),
|
|
366
|
+
ids: ctx.ids,
|
|
367
|
+
});
|
|
368
|
+
return out([wire(compileSendable('buildTrade/swap', { feePayer: trader, instructions: tx.instructions, lifetime, lookupTables: tables }))]);
|
|
369
|
+
},
|
|
370
|
+
};
|
|
371
|
+
}
|
|
372
|
+
/** Every FLOOR launch mint is Token-2022. */
|
|
373
|
+
function ctxTokenProgram() {
|
|
374
|
+
return address('TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb');
|
|
375
|
+
}
|
|
376
|
+
/**
|
|
377
|
+
* A graduated pool's quote as the shared `Quote`. On a buy every fee is in the quote asset. On a sell the LP fee is
|
|
378
|
+
* charged on the INPUT (the token), so it is converted to quote at the walk's average price — `feesExact` is then false;
|
|
379
|
+
* every other part is already in the quote asset.
|
|
380
|
+
*/
|
|
381
|
+
export function swapToQuote(ref, side, q) {
|
|
382
|
+
const f = q.fees;
|
|
383
|
+
for (const k of ['lp', 'skim', 'creator', 'holder', 'team', 'protocol']) {
|
|
384
|
+
if (typeof f[k] !== 'bigint')
|
|
385
|
+
throw new SolanaAdapterError('not_tradeable', `the quoter returned no ${k} fee: the trader's take cannot be listed whole`);
|
|
386
|
+
}
|
|
387
|
+
let lp = f.lp;
|
|
388
|
+
let exact = true;
|
|
389
|
+
if (side === 'sell' && f.lp > 0n) {
|
|
390
|
+
lp = q.amountIn > 0n ? (f.lp * q.amountOut) / q.amountIn : 0n;
|
|
391
|
+
exact = false;
|
|
392
|
+
}
|
|
393
|
+
return {
|
|
394
|
+
launch: ref,
|
|
395
|
+
side,
|
|
396
|
+
amountIn: q.amountIn,
|
|
397
|
+
amountOut: q.amountOut,
|
|
398
|
+
fees: feeList({ lp, floorSkim: f.skim, creator: f.creator, holder: f.holder, floorPlatform: f.team, carpenterPlatform: f.protocol }),
|
|
399
|
+
feesExact: exact,
|
|
400
|
+
};
|
|
401
|
+
}
|
|
402
|
+
//# sourceMappingURL=adapter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"adapter.js","sourceRoot":"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C,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,aAAa,EAAE,CAAC,CAAC,IAAI,EAAE,iBAAiB,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC;QACpI,SAAS,EAAE,KAAK;KACjB,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Glue for the deployment rows and the quoter: a joined deployment row → `ProgramIds`, and an `AccountSource` → the
|
|
3
|
+
* quoter's inputs for a FLOOR pool (a plain pool's read is `@floorlaunchpad/carpenter-sdk`'s `readSwapQuoteAccounts`).
|
|
4
|
+
*
|
|
5
|
+
* ⛔ The quoter takes RAW ACCOUNT BYTES (pool, bitmap, tick arrays, floor_pool, launch), never decoded structs: it
|
|
6
|
+
* decodes them itself with the same layouts the programs use, so a field cannot be mis-transcribed between a read and
|
|
7
|
+
* a quote. These helpers gather the bytes in as few RPC calls as possible and tag them with the OLDEST slot read.
|
|
8
|
+
* ⛔ Program ids come from `deployments.json`, never a constant; `DEFAULT_PROGRAM_IDS` exists for tests and scripts.
|
|
9
|
+
*/
|
|
10
|
+
import type { ClusterDeployment } from './deployments.ts';
|
|
11
|
+
import type { SwapQuoteInput } from './quote/quoter.ts';
|
|
12
|
+
import { type AccountSource, type AtSlot } from '@floorlaunchpad/carpenter-sdk';
|
|
13
|
+
import { type Address } from '@solana/kit';
|
|
14
|
+
import { type ProgramIds } from './pda.ts';
|
|
15
|
+
/**
|
|
16
|
+
* A deployment row's program ids. Every one is read off the row, never a compiled-in default: a row for another
|
|
17
|
+
* cluster names that cluster's programs, and a row that lacks one is refused by name.
|
|
18
|
+
*/
|
|
19
|
+
export declare function programIdsFromDeployment(row: ClusterDeployment): ProgramIds;
|
|
20
|
+
/** Everything `quoteSwap` needs for one pool, as bytes, plus what was found. */
|
|
21
|
+
export interface SwapQuoteAccounts extends Omit<SwapQuoteInput, 'zeroForOne' | 'amountSpecified' | 'sqrtPriceLimitX64'> {
|
|
22
|
+
poolKey: Uint8Array;
|
|
23
|
+
pool: Uint8Array;
|
|
24
|
+
bitmap: Uint8Array;
|
|
25
|
+
/** Each the 3,888-byte BODY of a 3,920-byte array account — its rent owner is not a quote input. */
|
|
26
|
+
tickArrays: Uint8Array[];
|
|
27
|
+
/** The start index of each entry of `tickArrays`, in the same order. */
|
|
28
|
+
tickArrayStarts: number[];
|
|
29
|
+
/** `null` on a plain pool. */
|
|
30
|
+
floorPool: Uint8Array | null;
|
|
31
|
+
/** The base mint's supply (currency1) on a FLOOR pool; `null` on a plain pool. */
|
|
32
|
+
supply1: bigint | null;
|
|
33
|
+
isFloor: boolean;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Read a pool's quoting accounts: the pool, its bitmap, the initialized tick arrays within
|
|
37
|
+
* `radius` arrays of the current tick on both sides (or exactly `starts`), and on a FLOOR pool its
|
|
38
|
+
* `FloorPool` and the base mint. Two round trips (pool + bitmap, then the rest).
|
|
39
|
+
* ⚠ A walk that leaves the window fails `TickArrayMissing{start_index}`; widen `radius` or pass
|
|
40
|
+
* the named start in `starts` and read again. The quoter says which array it needs.
|
|
41
|
+
*/
|
|
42
|
+
export declare function readSwapQuoteAccounts(src: AccountSource, pool: Address, opts?: {
|
|
43
|
+
radius?: number;
|
|
44
|
+
starts?: readonly number[];
|
|
45
|
+
ids?: ProgramIds;
|
|
46
|
+
}): Promise<AtSlot<SwapQuoteAccounts>>;
|
|
47
|
+
/** `saleBuy` / `saleSellBack` take the raw `Launch` (and `BuyerPosition`); read them as bytes. */
|
|
48
|
+
export declare function readRawOwned(src: AccountSource, addr: Address, program: Address): Promise<AtSlot<Uint8Array | null>>;
|
|
49
|
+
//# sourceMappingURL=adapters.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"adapters.d.ts","sourceRoot":"","sources":["../src/adapters.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;A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AAO,GAAG,OAAO,CAAC,MAAM,CAAC,UAAU,GAAG,IAAI,CAAC,CAAC,CAI1H"}
|
package/dist/adapters.js
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Glue for the deployment rows and the quoter: a joined deployment row → `ProgramIds`, and an `AccountSource` → the
|
|
3
|
+
* quoter's inputs for a FLOOR pool (a plain pool's read is `@floorlaunchpad/carpenter-sdk`'s `readSwapQuoteAccounts`).
|
|
4
|
+
*
|
|
5
|
+
* ⛔ The quoter takes RAW ACCOUNT BYTES (pool, bitmap, tick arrays, floor_pool, launch), never decoded structs: it
|
|
6
|
+
* decodes them itself with the same layouts the programs use, so a field cannot be mis-transcribed between a read and
|
|
7
|
+
* a quote. These helpers gather the bytes in as few RPC calls as possible and tag them with the OLDEST slot read.
|
|
8
|
+
* ⛔ Program ids come from `deployments.json`, never a constant; `DEFAULT_PROGRAM_IDS` exists for tests and scripts.
|
|
9
|
+
*/
|
|
10
|
+
import { addressToBytes, decodePool, decodeTickArrayBitmap, TICK_ARRAY_LEN, TICK_ARRAY_RENT_OWNER_OFFSET, findBitmap, findTickArray, initializedArrayStarts, tickArrayStartIndex, decodeMint, } from '@floorlaunchpad/carpenter-sdk';
|
|
11
|
+
import { address } from '@solana/kit';
|
|
12
|
+
import { DEFAULT_PROGRAM_IDS, findFloorPool } from "./pda.js";
|
|
13
|
+
/**
|
|
14
|
+
* A deployment row's program ids. Every one is read off the row, never a compiled-in default: a row for another
|
|
15
|
+
* cluster names that cluster's programs, and a row that lacks one is refused by name.
|
|
16
|
+
*/
|
|
17
|
+
export function programIdsFromDeployment(row) {
|
|
18
|
+
const p = row.programs;
|
|
19
|
+
for (const k of ['carpenterAmm', 'floorHook', 'floorLaunch', 'floorHolders']) {
|
|
20
|
+
if (!p[k])
|
|
21
|
+
throw new Error(`programIdsFromDeployment: the ${row.name} row (${row.chainKey ?? 'local'}) names no programs.${k}`);
|
|
22
|
+
}
|
|
23
|
+
return {
|
|
24
|
+
carpenterAmm: address(p.carpenterAmm),
|
|
25
|
+
floorHook: address(p.floorHook),
|
|
26
|
+
floorLaunch: address(p.floorLaunch),
|
|
27
|
+
floorHolders: address(p.floorHolders),
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Read a pool's quoting accounts: the pool, its bitmap, the initialized tick arrays within
|
|
32
|
+
* `radius` arrays of the current tick on both sides (or exactly `starts`), and on a FLOOR pool its
|
|
33
|
+
* `FloorPool` and the base mint. Two round trips (pool + bitmap, then the rest).
|
|
34
|
+
* ⚠ A walk that leaves the window fails `TickArrayMissing{start_index}`; widen `radius` or pass
|
|
35
|
+
* the named start in `starts` and read again. The quoter says which array it needs.
|
|
36
|
+
*/
|
|
37
|
+
export async function readSwapQuoteAccounts(src, pool, opts = {}) {
|
|
38
|
+
const ids = opts.ids ?? DEFAULT_PROGRAM_IDS;
|
|
39
|
+
const bitmapAddr = (await findBitmap(pool, ids)).address;
|
|
40
|
+
const first = await src.getMultipleAccounts([pool, bitmapAddr]);
|
|
41
|
+
const poolRaw = owned(first.accounts[0], ids.carpenterAmm);
|
|
42
|
+
const bitmapRaw = owned(first.accounts[1], ids.carpenterAmm);
|
|
43
|
+
if (!poolRaw)
|
|
44
|
+
throw new Error(`readSwapQuoteAccounts: no pool at ${pool}`);
|
|
45
|
+
if (!bitmapRaw)
|
|
46
|
+
throw new Error(`readSwapQuoteAccounts: no bitmap for ${pool}`);
|
|
47
|
+
const p = decodePool(poolRaw.data);
|
|
48
|
+
const bm = decodeTickArrayBitmap(bitmapRaw.data);
|
|
49
|
+
const s = p.tickSpacing;
|
|
50
|
+
const isFloor = p.hook === ids.floorHook;
|
|
51
|
+
let starts;
|
|
52
|
+
if (opts.starts) {
|
|
53
|
+
starts = [...new Set(opts.starts)].sort((a, b) => a - b);
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
const radius = opts.radius ?? 3;
|
|
57
|
+
const here = tickArrayStartIndex(p.tickCurrent, s);
|
|
58
|
+
const span = 60 * s;
|
|
59
|
+
starts = initializedArrayStarts(bm.words, s).filter((st) => Math.abs(st - here) <= radius * span);
|
|
60
|
+
}
|
|
61
|
+
const arrayAddrs = await Promise.all(starts.map(async (st) => (await findTickArray(pool, st, ids)).address));
|
|
62
|
+
const extra = isFloor ? [(await findFloorPool(pool, ids)).address, p.mint1] : [];
|
|
63
|
+
const second = await src.getMultipleAccounts([...arrayAddrs, ...extra]);
|
|
64
|
+
const tickArrays = [];
|
|
65
|
+
const tickArrayStarts = [];
|
|
66
|
+
starts.forEach((st, i) => {
|
|
67
|
+
const a = owned(second.accounts[i], ids.carpenterAmm);
|
|
68
|
+
// An array is the 3,920-byte account — the program refuses a 3,888-byte V1 account, so it is skipped here like
|
|
69
|
+
// any other length, never truncated. The quoter is handed the 3,888-byte BODY (`TICK_ARRAY_BODY_LEN`).
|
|
70
|
+
if (a && a.data.length === TICK_ARRAY_LEN) {
|
|
71
|
+
tickArrays.push(a.data.subarray(0, TICK_ARRAY_RENT_OWNER_OFFSET));
|
|
72
|
+
tickArrayStarts.push(st);
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
let floorPool = null;
|
|
76
|
+
let supply1 = null;
|
|
77
|
+
if (isFloor) {
|
|
78
|
+
const fp = owned(second.accounts[starts.length], ids.floorHook);
|
|
79
|
+
if (!fp)
|
|
80
|
+
throw new Error(`readSwapQuoteAccounts: no FloorPool for ${pool}`);
|
|
81
|
+
floorPool = fp.data;
|
|
82
|
+
const mint = second.accounts[starts.length + 1];
|
|
83
|
+
if (!mint)
|
|
84
|
+
throw new Error(`readSwapQuoteAccounts: no base mint ${p.mint1}`);
|
|
85
|
+
supply1 = decodeMint(mint.data).supply;
|
|
86
|
+
}
|
|
87
|
+
const slot = first.slot < second.slot ? first.slot : second.slot;
|
|
88
|
+
return {
|
|
89
|
+
slot,
|
|
90
|
+
value: { poolKey: addressToBytes(pool), pool: poolRaw.data, bitmap: bitmapRaw.data, tickArrays, tickArrayStarts, floorPool, supply1, isFloor },
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
/** `saleBuy` / `saleSellBack` take the raw `Launch` (and `BuyerPosition`); read them as bytes. */
|
|
94
|
+
export async function readRawOwned(src, addr, program) {
|
|
95
|
+
const { slot, account } = await src.getAccount(addr);
|
|
96
|
+
const a = owned(account, program);
|
|
97
|
+
return { slot, value: a ? a.data : null };
|
|
98
|
+
}
|
|
99
|
+
function owned(a, program) {
|
|
100
|
+
return a && a.owner === program ? a : null;
|
|
101
|
+
}
|
|
102
|
+
//# sourceMappingURL=adapters.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"adapters.js","sourceRoot":"","sources":["../src/adapters.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,EACL,cAAc,EACd,UAAU,EACV,qBAAqB,EACrB,cAAc,EACd,4BAA4B,EAC5B,UAAU,EACV,aAAa,EAIb,sBAAsB,EACtB,mBAAmB,EACnB,UAAU,GACX,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,OAAO,EAAgB,MAAM,aAAa,CAAC;AAEpD,OAAO,EAAE,mBAAmB,EAAE,aAAa,EAAmB,MAAM,UAAU,CAAC;AAC/E;;;GAGG;AACH,MAAM,UAAU,wBAAwB,CAAC,GAAsB;IAC7D,MAAM,CAAC,GAAG,GAAG,CAAC,QAA4E,CAAC;IAC3F,KAAK,MAAM,CAAC,IAAI,CAAC,cAAc,EAAE,WAAW,EAAE,aAAa,EAAE,cAAc,CAAU,EAAE,CAAC;QACtF,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;YAAE,MAAM,IAAI,KAAK,CAAC,iCAAiC,GAAG,CAAC,IAAI,SAAS,GAAG,CAAC,QAAQ,IAAI,OAAO,uBAAuB,CAAC,EAAE,CAAC,CAAC;IAClI,CAAC;IACD,OAAO;QACL,YAAY,EAAE,OAAO,CAAC,CAAC,CAAC,YAAY,CAAC;QACrC,SAAS,EA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