@floorlaunchpad/sdk-solana 0.0.0-stage → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +61 -0
- package/NOTICE +65 -0
- package/README.md +157 -2
- package/THIRD_PARTY.md +22 -0
- package/deployments.json +88 -0
- package/dist/adapter.d.ts +107 -0
- package/dist/adapter.d.ts.map +1 -0
- package/dist/adapter.js +402 -0
- package/dist/adapter.js.map +1 -0
- package/dist/adapters.d.ts +49 -0
- package/dist/adapters.d.ts.map +1 -0
- package/dist/adapters.js +102 -0
- package/dist/adapters.js.map +1 -0
- package/dist/constants.d.ts +257 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +250 -0
- package/dist/constants.js.map +1 -0
- package/dist/deployments.d.ts +109 -0
- package/dist/deployments.d.ts.map +1 -0
- package/dist/deployments.js +67 -0
- package/dist/deployments.js.map +1 -0
- package/dist/events.d.ts +57 -0
- package/dist/events.d.ts.map +1 -0
- package/dist/events.js +368 -0
- package/dist/events.js.map +1 -0
- package/dist/generated/client/floor_holders/constants/floorHolders.d.ts +15 -0
- package/dist/generated/client/floor_holders/constants/floorHolders.d.ts.map +1 -0
- package/dist/generated/client/floor_holders/constants/floorHolders.js +14 -0
- package/dist/generated/client/floor_holders/constants/floorHolders.js.map +1 -0
- package/dist/generated/client/floor_holders/constants/index.d.ts +9 -0
- package/dist/generated/client/floor_holders/constants/index.d.ts.map +1 -0
- package/dist/generated/client/floor_holders/constants/index.js +9 -0
- package/dist/generated/client/floor_holders/constants/index.js.map +1 -0
- package/dist/generated/client/floor_holders/errors/floorHolders.d.ts +52 -0
- package/dist/generated/client/floor_holders/errors/floorHolders.d.ts.map +1 -0
- package/dist/generated/client/floor_holders/errors/floorHolders.js +55 -0
- package/dist/generated/client/floor_holders/errors/floorHolders.js.map +1 -0
- package/dist/generated/client/floor_holders/errors/index.d.ts +9 -0
- package/dist/generated/client/floor_holders/errors/index.d.ts.map +1 -0
- package/dist/generated/client/floor_holders/errors/index.js +9 -0
- package/dist/generated/client/floor_holders/errors/index.js.map +1 -0
- package/dist/generated/client/floor_holders/events/claimsTableExtended.d.ts +27 -0
- package/dist/generated/client/floor_holders/events/claimsTableExtended.d.ts.map +1 -0
- package/dist/generated/client/floor_holders/events/claimsTableExtended.js +30 -0
- package/dist/generated/client/floor_holders/events/claimsTableExtended.js.map +1 -0
- package/dist/generated/client/floor_holders/events/claimsTableRotated.d.ts +27 -0
- package/dist/generated/client/floor_holders/events/claimsTableRotated.d.ts.map +1 -0
- package/dist/generated/client/floor_holders/events/claimsTableRotated.js +30 -0
- package/dist/generated/client/floor_holders/events/claimsTableRotated.js.map +1 -0
- package/dist/generated/client/floor_holders/events/holderClaimed.d.ts +33 -0
- package/dist/generated/client/floor_holders/events/holderClaimed.d.ts.map +1 -0
- package/dist/generated/client/floor_holders/events/holderClaimed.js +30 -0
- package/dist/generated/client/floor_holders/events/holderClaimed.js.map +1 -0
- package/dist/generated/client/floor_holders/events/index.d.ts +14 -0
- package/dist/generated/client/floor_holders/events/index.d.ts.map +1 -0
- package/dist/generated/client/floor_holders/events/index.js +14 -0
- package/dist/generated/client/floor_holders/events/index.js.map +1 -0
- package/dist/generated/client/floor_holders/events/launchHooked.d.ts +26 -0
- package/dist/generated/client/floor_holders/events/launchHooked.d.ts.map +1 -0
- package/dist/generated/client/floor_holders/events/launchHooked.js +30 -0
- package/dist/generated/client/floor_holders/events/launchHooked.js.map +1 -0
- package/dist/generated/client/floor_holders/events/recordClosed.d.ts +31 -0
- package/dist/generated/client/floor_holders/events/recordClosed.d.ts.map +1 -0
- package/dist/generated/client/floor_holders/events/recordClosed.js +30 -0
- package/dist/generated/client/floor_holders/events/recordClosed.js.map +1 -0
- package/dist/generated/client/floor_holders/events/recordOpened.d.ts +35 -0
- package/dist/generated/client/floor_holders/events/recordOpened.d.ts.map +1 -0
- package/dist/generated/client/floor_holders/events/recordOpened.js +30 -0
- package/dist/generated/client/floor_holders/events/recordOpened.js.map +1 -0
- package/dist/generated/client/floor_holders/index.d.ts +14 -0
- package/dist/generated/client/floor_holders/index.d.ts.map +1 -0
- package/dist/generated/client/floor_holders/index.js +14 -0
- package/dist/generated/client/floor_holders/index.js.map +1 -0
- package/dist/generated/client/floor_holders/instructions/authorizeClaim.d.ts +102 -0
- package/dist/generated/client/floor_holders/instructions/authorizeClaim.d.ts.map +1 -0
- package/dist/generated/client/floor_holders/instructions/authorizeClaim.js +68 -0
- package/dist/generated/client/floor_holders/instructions/authorizeClaim.js.map +1 -0
- package/dist/generated/client/floor_holders/instructions/claim.d.ts +97 -0
- package/dist/generated/client/floor_holders/instructions/claim.d.ts.map +1 -0
- package/dist/generated/client/floor_holders/instructions/claim.js +64 -0
- package/dist/generated/client/floor_holders/instructions/claim.js.map +1 -0
- package/dist/generated/client/floor_holders/instructions/closeRecord.d.ts +48 -0
- package/dist/generated/client/floor_holders/instructions/closeRecord.d.ts.map +1 -0
- package/dist/generated/client/floor_holders/instructions/closeRecord.js +43 -0
- package/dist/generated/client/floor_holders/instructions/closeRecord.js.map +1 -0
- package/dist/generated/client/floor_holders/instructions/execute.d.ts +44 -0
- package/dist/generated/client/floor_holders/instructions/execute.d.ts.map +1 -0
- package/dist/generated/client/floor_holders/instructions/execute.js +45 -0
- package/dist/generated/client/floor_holders/instructions/execute.js.map +1 -0
- package/dist/generated/client/floor_holders/instructions/index.d.ts +18 -0
- package/dist/generated/client/floor_holders/instructions/index.d.ts.map +1 -0
- package/dist/generated/client/floor_holders/instructions/index.js +18 -0
- package/dist/generated/client/floor_holders/instructions/index.js.map +1 -0
- package/dist/generated/client/floor_holders/instructions/initLaunch.d.ts +84 -0
- package/dist/generated/client/floor_holders/instructions/initLaunch.d.ts.map +1 -0
- package/dist/generated/client/floor_holders/instructions/initLaunch.js +81 -0
- package/dist/generated/client/floor_holders/instructions/initLaunch.js.map +1 -0
- package/dist/generated/client/floor_holders/instructions/initializeClaimsRegistry.d.ts +46 -0
- package/dist/generated/client/floor_holders/instructions/initializeClaimsRegistry.d.ts.map +1 -0
- package/dist/generated/client/floor_holders/instructions/initializeClaimsRegistry.js +64 -0
- package/dist/generated/client/floor_holders/instructions/initializeClaimsRegistry.js.map +1 -0
- package/dist/generated/client/floor_holders/instructions/openRecord.d.ts +52 -0
- package/dist/generated/client/floor_holders/instructions/openRecord.d.ts.map +1 -0
- package/dist/generated/client/floor_holders/instructions/openRecord.js +47 -0
- package/dist/generated/client/floor_holders/instructions/openRecord.js.map +1 -0
- package/dist/generated/client/floor_holders/instructions/rotateClaimsTable.d.ts +66 -0
- package/dist/generated/client/floor_holders/instructions/rotateClaimsTable.d.ts.map +1 -0
- package/dist/generated/client/floor_holders/instructions/rotateClaimsTable.js +77 -0
- package/dist/generated/client/floor_holders/instructions/rotateClaimsTable.js.map +1 -0
- package/dist/generated/client/floor_holders/instructions/sync.d.ts +42 -0
- package/dist/generated/client/floor_holders/instructions/sync.d.ts.map +1 -0
- package/dist/generated/client/floor_holders/instructions/sync.js +43 -0
- package/dist/generated/client/floor_holders/instructions/sync.js.map +1 -0
- package/dist/generated/client/floor_holders/instructions/touch.d.ts +52 -0
- package/dist/generated/client/floor_holders/instructions/touch.d.ts.map +1 -0
- package/dist/generated/client/floor_holders/instructions/touch.js +47 -0
- package/dist/generated/client/floor_holders/instructions/touch.js.map +1 -0
- package/dist/generated/client/floor_holders/pdas/claimsAltAuthority.d.ts +12 -0
- package/dist/generated/client/floor_holders/pdas/claimsAltAuthority.d.ts.map +1 -0
- package/dist/generated/client/floor_holders/pdas/claimsAltAuthority.js +13 -0
- package/dist/generated/client/floor_holders/pdas/claimsAltAuthority.js.map +1 -0
- package/dist/generated/client/floor_holders/pdas/claimsRegistry.d.ts +12 -0
- package/dist/generated/client/floor_holders/pdas/claimsRegistry.d.ts.map +1 -0
- package/dist/generated/client/floor_holders/pdas/claimsRegistry.js +13 -0
- package/dist/generated/client/floor_holders/pdas/claimsRegistry.js.map +1 -0
- package/dist/generated/client/floor_holders/pdas/holdersAuthority.d.ts +12 -0
- package/dist/generated/client/floor_holders/pdas/holdersAuthority.d.ts.map +1 -0
- package/dist/generated/client/floor_holders/pdas/holdersAuthority.js +13 -0
- package/dist/generated/client/floor_holders/pdas/holdersAuthority.js.map +1 -0
- package/dist/generated/client/floor_holders/pdas/index.d.ts +11 -0
- package/dist/generated/client/floor_holders/pdas/index.d.ts.map +1 -0
- package/dist/generated/client/floor_holders/pdas/index.js +11 -0
- package/dist/generated/client/floor_holders/pdas/index.js.map +1 -0
- package/dist/generated/client/floor_holders/programs/floorHolders.d.ts +90 -0
- package/dist/generated/client/floor_holders/programs/floorHolders.d.ts.map +1 -0
- package/dist/generated/client/floor_holders/programs/floorHolders.js +142 -0
- package/dist/generated/client/floor_holders/programs/floorHolders.js.map +1 -0
- package/dist/generated/client/floor_holders/programs/index.d.ts +9 -0
- package/dist/generated/client/floor_holders/programs/index.d.ts.map +1 -0
- package/dist/generated/client/floor_holders/programs/index.js +9 -0
- package/dist/generated/client/floor_holders/programs/index.js.map +1 -0
- package/dist/generated/client/floor_hook/accounts/floorPlatformPool.d.ts +51 -0
- package/dist/generated/client/floor_hook/accounts/floorPlatformPool.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/accounts/floorPlatformPool.js +47 -0
- package/dist/generated/client/floor_hook/accounts/floorPlatformPool.js.map +1 -0
- package/dist/generated/client/floor_hook/accounts/floorPool.d.ts +216 -0
- package/dist/generated/client/floor_hook/accounts/floorPool.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/accounts/floorPool.js +48 -0
- package/dist/generated/client/floor_hook/accounts/floorPool.js.map +1 -0
- package/dist/generated/client/floor_hook/accounts/hookConfig.d.ts +57 -0
- package/dist/generated/client/floor_hook/accounts/hookConfig.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/accounts/hookConfig.js +47 -0
- package/dist/generated/client/floor_hook/accounts/hookConfig.js.map +1 -0
- package/dist/generated/client/floor_hook/accounts/index.d.ts +13 -0
- package/dist/generated/client/floor_hook/accounts/index.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/accounts/index.js +13 -0
- package/dist/generated/client/floor_hook/accounts/index.js.map +1 -0
- package/dist/generated/client/floor_hook/accounts/platformTreasury.d.ts +43 -0
- package/dist/generated/client/floor_hook/accounts/platformTreasury.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/accounts/platformTreasury.js +47 -0
- package/dist/generated/client/floor_hook/accounts/platformTreasury.js.map +1 -0
- package/dist/generated/client/floor_hook/accounts/quotePolicy.d.ts +55 -0
- package/dist/generated/client/floor_hook/accounts/quotePolicy.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/accounts/quotePolicy.js +47 -0
- package/dist/generated/client/floor_hook/accounts/quotePolicy.js.map +1 -0
- package/dist/generated/client/floor_hook/constants/floorHook.d.ts +16 -0
- package/dist/generated/client/floor_hook/constants/floorHook.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/constants/floorHook.js +15 -0
- package/dist/generated/client/floor_hook/constants/floorHook.js.map +1 -0
- package/dist/generated/client/floor_hook/constants/index.d.ts +9 -0
- package/dist/generated/client/floor_hook/constants/index.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/constants/index.js +9 -0
- package/dist/generated/client/floor_hook/constants/index.js.map +1 -0
- package/dist/generated/client/floor_hook/errors/floorHook.d.ts +164 -0
- package/dist/generated/client/floor_hook/errors/floorHook.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/errors/floorHook.js +167 -0
- package/dist/generated/client/floor_hook/errors/floorHook.js.map +1 -0
- package/dist/generated/client/floor_hook/errors/index.d.ts +9 -0
- package/dist/generated/client/floor_hook/errors/index.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/errors/index.js +9 -0
- package/dist/generated/client/floor_hook/errors/index.js.map +1 -0
- package/dist/generated/client/floor_hook/events/allowAllQuotesSet.d.ts +26 -0
- package/dist/generated/client/floor_hook/events/allowAllQuotesSet.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/allowAllQuotesSet.js +30 -0
- package/dist/generated/client/floor_hook/events/allowAllQuotesSet.js.map +1 -0
- package/dist/generated/client/floor_hook/events/bidReplaced.d.ts +33 -0
- package/dist/generated/client/floor_hook/events/bidReplaced.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/bidReplaced.js +30 -0
- package/dist/generated/client/floor_hook/events/bidReplaced.js.map +1 -0
- package/dist/generated/client/floor_hook/events/creatorClaimed.d.ts +31 -0
- package/dist/generated/client/floor_hook/events/creatorClaimed.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/creatorClaimed.js +30 -0
- package/dist/generated/client/floor_hook/events/creatorClaimed.js.map +1 -0
- package/dist/generated/client/floor_hook/events/creatorFee.d.ts +29 -0
- package/dist/generated/client/floor_hook/events/creatorFee.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/creatorFee.js +30 -0
- package/dist/generated/client/floor_hook/events/creatorFee.js.map +1 -0
- package/dist/generated/client/floor_hook/events/floorPoolDesignated.d.ts +25 -0
- package/dist/generated/client/floor_hook/events/floorPoolDesignated.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/floorPoolDesignated.js +30 -0
- package/dist/generated/client/floor_hook/events/floorPoolDesignated.js.map +1 -0
- package/dist/generated/client/floor_hook/events/floorUnbacked.d.ts +31 -0
- package/dist/generated/client/floor_hook/events/floorUnbacked.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/floorUnbacked.js +30 -0
- package/dist/generated/client/floor_hook/events/floorUnbacked.js.map +1 -0
- package/dist/generated/client/floor_hook/events/holderPaid.d.ts +29 -0
- package/dist/generated/client/floor_hook/events/holderPaid.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/holderPaid.js +30 -0
- package/dist/generated/client/floor_hook/events/holderPaid.js.map +1 -0
- package/dist/generated/client/floor_hook/events/hookConfigInitialized.d.ts +27 -0
- package/dist/generated/client/floor_hook/events/hookConfigInitialized.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/hookConfigInitialized.js +30 -0
- package/dist/generated/client/floor_hook/events/hookConfigInitialized.js.map +1 -0
- package/dist/generated/client/floor_hook/events/hookGovernanceChanged.d.ts +25 -0
- package/dist/generated/client/floor_hook/events/hookGovernanceChanged.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/hookGovernanceChanged.js +30 -0
- package/dist/generated/client/floor_hook/events/hookGovernanceChanged.js.map +1 -0
- package/dist/generated/client/floor_hook/events/index.d.ts +53 -0
- package/dist/generated/client/floor_hook/events/index.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/index.js +53 -0
- package/dist/generated/client/floor_hook/events/index.js.map +1 -0
- package/dist/generated/client/floor_hook/events/inventoryDonated.d.ts +29 -0
- package/dist/generated/client/floor_hook/events/inventoryDonated.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/inventoryDonated.js +30 -0
- package/dist/generated/client/floor_hook/events/inventoryDonated.js.map +1 -0
- package/dist/generated/client/floor_hook/events/platformCut.d.ts +27 -0
- package/dist/generated/client/floor_hook/events/platformCut.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/platformCut.js +30 -0
- package/dist/generated/client/floor_hook/events/platformCut.js.map +1 -0
- package/dist/generated/client/floor_hook/events/platformPoolCredit.d.ts +29 -0
- package/dist/generated/client/floor_hook/events/platformPoolCredit.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/platformPoolCredit.js +30 -0
- package/dist/generated/client/floor_hook/events/platformPoolCredit.js.map +1 -0
- package/dist/generated/client/floor_hook/events/platformSwept.d.ts +29 -0
- package/dist/generated/client/floor_hook/events/platformSwept.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/platformSwept.js +30 -0
- package/dist/generated/client/floor_hook/events/platformSwept.js.map +1 -0
- package/dist/generated/client/floor_hook/events/platformWithdrawn.d.ts +35 -0
- package/dist/generated/client/floor_hook/events/platformWithdrawn.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/platformWithdrawn.js +30 -0
- package/dist/generated/client/floor_hook/events/platformWithdrawn.js.map +1 -0
- package/dist/generated/client/floor_hook/events/polRaised.d.ts +33 -0
- package/dist/generated/client/floor_hook/events/polRaised.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/polRaised.js +30 -0
- package/dist/generated/client/floor_hook/events/polRaised.js.map +1 -0
- package/dist/generated/client/floor_hook/events/poolReferralTiers.d.ts +27 -0
- package/dist/generated/client/floor_hook/events/poolReferralTiers.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/poolReferralTiers.js +30 -0
- package/dist/generated/client/floor_hook/events/poolReferralTiers.js.map +1 -0
- package/dist/generated/client/floor_hook/events/poolRegistered.d.ts +27 -0
- package/dist/generated/client/floor_hook/events/poolRegistered.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/poolRegistered.js +30 -0
- package/dist/generated/client/floor_hook/events/poolRegistered.js.map +1 -0
- package/dist/generated/client/floor_hook/events/poolRewardsTerms.d.ts +28 -0
- package/dist/generated/client/floor_hook/events/poolRewardsTerms.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/poolRewardsTerms.js +30 -0
- package/dist/generated/client/floor_hook/events/poolRewardsTerms.js.map +1 -0
- package/dist/generated/client/floor_hook/events/quoteAdmitted.d.ts +39 -0
- package/dist/generated/client/floor_hook/events/quoteAdmitted.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/quoteAdmitted.js +30 -0
- package/dist/generated/client/floor_hook/events/quoteAdmitted.js.map +1 -0
- package/dist/generated/client/floor_hook/events/quoteEconomicsSet.d.ts +33 -0
- package/dist/generated/client/floor_hook/events/quoteEconomicsSet.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/quoteEconomicsSet.js +30 -0
- package/dist/generated/client/floor_hook/events/quoteEconomicsSet.js.map +1 -0
- package/dist/generated/client/floor_hook/events/quoteListed.d.ts +39 -0
- package/dist/generated/client/floor_hook/events/quoteListed.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/quoteListed.js +30 -0
- package/dist/generated/client/floor_hook/events/quoteListed.js.map +1 -0
- package/dist/generated/client/floor_hook/events/quoteObserved.d.ts +31 -0
- package/dist/generated/client/floor_hook/events/quoteObserved.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/quoteObserved.js +30 -0
- package/dist/generated/client/floor_hook/events/quoteObserved.js.map +1 -0
- package/dist/generated/client/floor_hook/events/quoteRetired.d.ts +23 -0
- package/dist/generated/client/floor_hook/events/quoteRetired.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/quoteRetired.js +30 -0
- package/dist/generated/client/floor_hook/events/quoteRetired.js.map +1 -0
- package/dist/generated/client/floor_hook/events/ratcheted.d.ts +35 -0
- package/dist/generated/client/floor_hook/events/ratcheted.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/ratcheted.js +30 -0
- package/dist/generated/client/floor_hook/events/ratcheted.js.map +1 -0
- package/dist/generated/client/floor_hook/events/recipientResolved.d.ts +26 -0
- package/dist/generated/client/floor_hook/events/recipientResolved.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/recipientResolved.js +30 -0
- package/dist/generated/client/floor_hook/events/recipientResolved.js.map +1 -0
- package/dist/generated/client/floor_hook/events/referralFunded.d.ts +33 -0
- package/dist/generated/client/floor_hook/events/referralFunded.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/referralFunded.js +30 -0
- package/dist/generated/client/floor_hook/events/referralFunded.js.map +1 -0
- package/dist/generated/client/floor_hook/events/referralPaid.d.ts +31 -0
- package/dist/generated/client/floor_hook/events/referralPaid.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/referralPaid.js +30 -0
- package/dist/generated/client/floor_hook/events/referralPaid.js.map +1 -0
- package/dist/generated/client/floor_hook/events/referralTierPaid.d.ts +31 -0
- package/dist/generated/client/floor_hook/events/referralTierPaid.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/referralTierPaid.js +30 -0
- package/dist/generated/client/floor_hook/events/referralTierPaid.js.map +1 -0
- package/dist/generated/client/floor_hook/events/skimmed.d.ts +33 -0
- package/dist/generated/client/floor_hook/events/skimmed.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/skimmed.js +30 -0
- package/dist/generated/client/floor_hook/events/skimmed.js.map +1 -0
- package/dist/generated/client/floor_hook/events/stairArrayReclaimed.d.ts +33 -0
- package/dist/generated/client/floor_hook/events/stairArrayReclaimed.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/stairArrayReclaimed.js +30 -0
- package/dist/generated/client/floor_hook/events/stairArrayReclaimed.js.map +1 -0
- package/dist/generated/client/floor_hook/events/stairFeesSwept.d.ts +31 -0
- package/dist/generated/client/floor_hook/events/stairFeesSwept.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/stairFeesSwept.js +30 -0
- package/dist/generated/client/floor_hook/events/stairFeesSwept.js.map +1 -0
- package/dist/generated/client/floor_hook/events/stairOwnerBooked.d.ts +39 -0
- package/dist/generated/client/floor_hook/events/stairOwnerBooked.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/stairOwnerBooked.js +30 -0
- package/dist/generated/client/floor_hook/events/stairOwnerBooked.js.map +1 -0
- package/dist/generated/client/floor_hook/events/stairOwnersPlaced.d.ts +43 -0
- package/dist/generated/client/floor_hook/events/stairOwnersPlaced.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/stairOwnersPlaced.js +30 -0
- package/dist/generated/client/floor_hook/events/stairOwnersPlaced.js.map +1 -0
- package/dist/generated/client/floor_hook/events/stairPayeeResolved.d.ts +26 -0
- package/dist/generated/client/floor_hook/events/stairPayeeResolved.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/stairPayeeResolved.js +30 -0
- package/dist/generated/client/floor_hook/events/stairPayeeResolved.js.map +1 -0
- package/dist/generated/client/floor_hook/events/stairPayeeSwept.d.ts +33 -0
- package/dist/generated/client/floor_hook/events/stairPayeeSwept.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/stairPayeeSwept.js +30 -0
- package/dist/generated/client/floor_hook/events/stairPayeeSwept.js.map +1 -0
- package/dist/generated/client/floor_hook/events/stairRatcheted.d.ts +43 -0
- package/dist/generated/client/floor_hook/events/stairRatcheted.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/stairRatcheted.js +30 -0
- package/dist/generated/client/floor_hook/events/stairRatcheted.js.map +1 -0
- package/dist/generated/client/floor_hook/events/stairRentReimbursed.d.ts +31 -0
- package/dist/generated/client/floor_hook/events/stairRentReimbursed.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/stairRentReimbursed.js +30 -0
- package/dist/generated/client/floor_hook/events/stairRentReimbursed.js.map +1 -0
- package/dist/generated/client/floor_hook/events/stairTokensWithdrawn.d.ts +35 -0
- package/dist/generated/client/floor_hook/events/stairTokensWithdrawn.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/stairTokensWithdrawn.js +30 -0
- package/dist/generated/client/floor_hook/events/stairTokensWithdrawn.js.map +1 -0
- package/dist/generated/client/floor_hook/events/teamSwept.d.ts +29 -0
- package/dist/generated/client/floor_hook/events/teamSwept.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/teamSwept.js +30 -0
- package/dist/generated/client/floor_hook/events/teamSwept.js.map +1 -0
- package/dist/generated/client/floor_hook/events/teamWithdrawn.d.ts +35 -0
- package/dist/generated/client/floor_hook/events/teamWithdrawn.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/teamWithdrawn.js +30 -0
- package/dist/generated/client/floor_hook/events/teamWithdrawn.js.map +1 -0
- package/dist/generated/client/floor_hook/events/traderReferralBooked.d.ts +29 -0
- package/dist/generated/client/floor_hook/events/traderReferralBooked.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/traderReferralBooked.js +30 -0
- package/dist/generated/client/floor_hook/events/traderReferralBooked.js.map +1 -0
- package/dist/generated/client/floor_hook/events/traderReferralClaimed.d.ts +29 -0
- package/dist/generated/client/floor_hook/events/traderReferralClaimed.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/traderReferralClaimed.js +30 -0
- package/dist/generated/client/floor_hook/events/traderReferralClaimed.js.map +1 -0
- package/dist/generated/client/floor_hook/events/traderReferralSwept.d.ts +29 -0
- package/dist/generated/client/floor_hook/events/traderReferralSwept.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/traderReferralSwept.js +30 -0
- package/dist/generated/client/floor_hook/events/traderReferralSwept.js.map +1 -0
- package/dist/generated/client/floor_hook/events/treasuryGovernanceChanged.d.ts +26 -0
- package/dist/generated/client/floor_hook/events/treasuryGovernanceChanged.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/treasuryGovernanceChanged.js +30 -0
- package/dist/generated/client/floor_hook/events/treasuryGovernanceChanged.js.map +1 -0
- package/dist/generated/client/floor_hook/events/vaultTokensFed.d.ts +39 -0
- package/dist/generated/client/floor_hook/events/vaultTokensFed.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/events/vaultTokensFed.js +30 -0
- package/dist/generated/client/floor_hook/events/vaultTokensFed.js.map +1 -0
- package/dist/generated/client/floor_hook/index.d.ts +16 -0
- package/dist/generated/client/floor_hook/index.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/index.js +16 -0
- package/dist/generated/client/floor_hook/index.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/acceptHookGovernance.d.ts +52 -0
- package/dist/generated/client/floor_hook/instructions/acceptHookGovernance.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/acceptHookGovernance.js +57 -0
- package/dist/generated/client/floor_hook/instructions/acceptHookGovernance.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/acceptTeamTreasuryGovernance.d.ts +55 -0
- package/dist/generated/client/floor_hook/instructions/acceptTeamTreasuryGovernance.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/acceptTeamTreasuryGovernance.js +60 -0
- package/dist/generated/client/floor_hook/instructions/acceptTeamTreasuryGovernance.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/acceptTreasuryGovernance.d.ts +55 -0
- package/dist/generated/client/floor_hook/instructions/acceptTreasuryGovernance.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/acceptTreasuryGovernance.js +60 -0
- package/dist/generated/client/floor_hook/instructions/acceptTreasuryGovernance.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/afterActions.d.ts +74 -0
- package/dist/generated/client/floor_hook/instructions/afterActions.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/afterActions.js +46 -0
- package/dist/generated/client/floor_hook/instructions/afterActions.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/afterSwap.d.ts +92 -0
- package/dist/generated/client/floor_hook/instructions/afterSwap.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/afterSwap.js +46 -0
- package/dist/generated/client/floor_hook/instructions/afterSwap.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/beforeInitialize.d.ts +73 -0
- package/dist/generated/client/floor_hook/instructions/beforeInitialize.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/beforeInitialize.js +45 -0
- package/dist/generated/client/floor_hook/instructions/beforeInitialize.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/beforeSwap.d.ts +80 -0
- package/dist/generated/client/floor_hook/instructions/beforeSwap.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/beforeSwap.js +46 -0
- package/dist/generated/client/floor_hook/instructions/beforeSwap.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/claimCreatorFees.d.ts +78 -0
- package/dist/generated/client/floor_hook/instructions/claimCreatorFees.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/claimCreatorFees.js +61 -0
- package/dist/generated/client/floor_hook/instructions/claimCreatorFees.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/claimReferralFees.d.ts +78 -0
- package/dist/generated/client/floor_hook/instructions/claimReferralFees.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/claimReferralFees.js +61 -0
- package/dist/generated/client/floor_hook/instructions/claimReferralFees.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/claimTraderReferral.d.ts +73 -0
- package/dist/generated/client/floor_hook/instructions/claimTraderReferral.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/claimTraderReferral.js +67 -0
- package/dist/generated/client/floor_hook/instructions/claimTraderReferral.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/clearTeamBuyBooks.d.ts +46 -0
- package/dist/generated/client/floor_hook/instructions/clearTeamBuyBooks.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/clearTeamBuyBooks.js +57 -0
- package/dist/generated/client/floor_hook/instructions/clearTeamBuyBooks.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/creditFloorPool.d.ts +91 -0
- package/dist/generated/client/floor_hook/instructions/creditFloorPool.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/creditFloorPool.js +79 -0
- package/dist/generated/client/floor_hook/instructions/creditFloorPool.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/creditTraderBucket.d.ts +51 -0
- package/dist/generated/client/floor_hook/instructions/creditTraderBucket.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/creditTraderBucket.js +61 -0
- package/dist/generated/client/floor_hook/instructions/creditTraderBucket.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/designateFloorPool.d.ts +61 -0
- package/dist/generated/client/floor_hook/instructions/designateFloorPool.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/designateFloorPool.js +67 -0
- package/dist/generated/client/floor_hook/instructions/designateFloorPool.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/donateInventory.d.ts +58 -0
- package/dist/generated/client/floor_hook/instructions/donateInventory.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/donateInventory.js +45 -0
- package/dist/generated/client/floor_hook/instructions/donateInventory.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/index.d.ts +55 -0
- package/dist/generated/client/floor_hook/instructions/index.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/index.js +55 -0
- package/dist/generated/client/floor_hook/instructions/index.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/initializeHookConfig.d.ts +66 -0
- package/dist/generated/client/floor_hook/instructions/initializeHookConfig.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/initializeHookConfig.js +74 -0
- package/dist/generated/client/floor_hook/instructions/initializeHookConfig.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/initializeTeamTreasury.d.ts +63 -0
- package/dist/generated/client/floor_hook/instructions/initializeTeamTreasury.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/initializeTeamTreasury.js +71 -0
- package/dist/generated/client/floor_hook/instructions/initializeTeamTreasury.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/listQuote.d.ts +94 -0
- package/dist/generated/client/floor_hook/instructions/listQuote.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/listQuote.js +74 -0
- package/dist/generated/client/floor_hook/instructions/listQuote.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/observeQuote.d.ts +46 -0
- package/dist/generated/client/floor_hook/instructions/observeQuote.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/observeQuote.js +43 -0
- package/dist/generated/client/floor_hook/instructions/observeQuote.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/openTraderBucket.d.ts +44 -0
- package/dist/generated/client/floor_hook/instructions/openTraderBucket.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/openTraderBucket.js +47 -0
- package/dist/generated/client/floor_hook/instructions/openTraderBucket.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/openTraderRefVault.d.ts +58 -0
- package/dist/generated/client/floor_hook/instructions/openTraderRefVault.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/openTraderRefVault.js +76 -0
- package/dist/generated/client/floor_hook/instructions/openTraderRefVault.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/payHolder.d.ts +78 -0
- package/dist/generated/client/floor_hook/instructions/payHolder.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/payHolder.js +61 -0
- package/dist/generated/client/floor_hook/instructions/payHolder.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/payHolderAuthorized.d.ts +78 -0
- package/dist/generated/client/floor_hook/instructions/payHolderAuthorized.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/payHolderAuthorized.js +61 -0
- package/dist/generated/client/floor_hook/instructions/payHolderAuthorized.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/preparePositions.d.ts +64 -0
- package/dist/generated/client/floor_hook/instructions/preparePositions.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/preparePositions.js +64 -0
- package/dist/generated/client/floor_hook/instructions/preparePositions.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/ratchet.d.ts +100 -0
- package/dist/generated/client/floor_hook/instructions/ratchet.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/ratchet.js +73 -0
- package/dist/generated/client/floor_hook/instructions/ratchet.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/reclaimStairArray.d.ts +69 -0
- package/dist/generated/client/floor_hook/instructions/reclaimStairArray.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/reclaimStairArray.js +68 -0
- package/dist/generated/client/floor_hook/instructions/reclaimStairArray.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/registerPool.d.ts +196 -0
- package/dist/generated/client/floor_hook/instructions/registerPool.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/registerPool.js +72 -0
- package/dist/generated/client/floor_hook/instructions/registerPool.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/resolveRecipient.d.ts +61 -0
- package/dist/generated/client/floor_hook/instructions/resolveRecipient.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/resolveRecipient.js +61 -0
- package/dist/generated/client/floor_hook/instructions/resolveRecipient.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/resolveStairPayee.d.ts +61 -0
- package/dist/generated/client/floor_hook/instructions/resolveStairPayee.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/resolveStairPayee.js +61 -0
- package/dist/generated/client/floor_hook/instructions/resolveStairPayee.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/retireQuote.d.ts +52 -0
- package/dist/generated/client/floor_hook/instructions/retireQuote.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/retireQuote.js +57 -0
- package/dist/generated/client/floor_hook/instructions/retireQuote.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/seedFloor.d.ts +61 -0
- package/dist/generated/client/floor_hook/instructions/seedFloor.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/seedFloor.js +45 -0
- package/dist/generated/client/floor_hook/instructions/seedFloor.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/seedInventory.d.ts +151 -0
- package/dist/generated/client/floor_hook/instructions/seedInventory.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/seedInventory.js +69 -0
- package/dist/generated/client/floor_hook/instructions/seedInventory.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/seedLiquidity.d.ts +118 -0
- package/dist/generated/client/floor_hook/instructions/seedLiquidity.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/seedLiquidity.js +69 -0
- package/dist/generated/client/floor_hook/instructions/seedLiquidity.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/setAllowAllQuotes.d.ts +54 -0
- package/dist/generated/client/floor_hook/instructions/setAllowAllQuotes.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/setAllowAllQuotes.js +61 -0
- package/dist/generated/client/floor_hook/instructions/setAllowAllQuotes.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/setGenesisStair.d.ts +63 -0
- package/dist/generated/client/floor_hook/instructions/setGenesisStair.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/setGenesisStair.js +65 -0
- package/dist/generated/client/floor_hook/instructions/setGenesisStair.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/setHookGovernance.d.ts +57 -0
- package/dist/generated/client/floor_hook/instructions/setHookGovernance.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/setHookGovernance.js +61 -0
- package/dist/generated/client/floor_hook/instructions/setHookGovernance.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/setQuoteEconomics.d.ts +61 -0
- package/dist/generated/client/floor_hook/instructions/setQuoteEconomics.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/setQuoteEconomics.js +61 -0
- package/dist/generated/client/floor_hook/instructions/setQuoteEconomics.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/setTeamTreasuryGovernance.d.ts +60 -0
- package/dist/generated/client/floor_hook/instructions/setTeamTreasuryGovernance.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/setTeamTreasuryGovernance.js +64 -0
- package/dist/generated/client/floor_hook/instructions/setTeamTreasuryGovernance.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/setTreasuryGovernance.d.ts +60 -0
- package/dist/generated/client/floor_hook/instructions/setTreasuryGovernance.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/setTreasuryGovernance.js +64 -0
- package/dist/generated/client/floor_hook/instructions/setTreasuryGovernance.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/sweepPlatformCut.d.ts +85 -0
- package/dist/generated/client/floor_hook/instructions/sweepPlatformCut.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/sweepPlatformCut.js +76 -0
- package/dist/generated/client/floor_hook/instructions/sweepPlatformCut.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/sweepStairFees.d.ts +93 -0
- package/dist/generated/client/floor_hook/instructions/sweepStairFees.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/sweepStairFees.js +72 -0
- package/dist/generated/client/floor_hook/instructions/sweepStairFees.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/sweepStairPayee.d.ts +84 -0
- package/dist/generated/client/floor_hook/instructions/sweepStairPayee.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/sweepStairPayee.js +65 -0
- package/dist/generated/client/floor_hook/instructions/sweepStairPayee.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/sweepTraderReferral.d.ts +73 -0
- package/dist/generated/client/floor_hook/instructions/sweepTraderReferral.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/sweepTraderReferral.js +64 -0
- package/dist/generated/client/floor_hook/instructions/sweepTraderReferral.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/twapTick.d.ts +40 -0
- package/dist/generated/client/floor_hook/instructions/twapTick.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/twapTick.js +45 -0
- package/dist/generated/client/floor_hook/instructions/twapTick.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/withdrawPlatform.d.ts +66 -0
- package/dist/generated/client/floor_hook/instructions/withdrawPlatform.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/withdrawPlatform.js +68 -0
- package/dist/generated/client/floor_hook/instructions/withdrawPlatform.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/withdrawStairTokens.d.ts +97 -0
- package/dist/generated/client/floor_hook/instructions/withdrawStairTokens.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/withdrawStairTokens.js +68 -0
- package/dist/generated/client/floor_hook/instructions/withdrawStairTokens.js.map +1 -0
- package/dist/generated/client/floor_hook/instructions/withdrawTeam.d.ts +66 -0
- package/dist/generated/client/floor_hook/instructions/withdrawTeam.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/instructions/withdrawTeam.js +68 -0
- package/dist/generated/client/floor_hook/instructions/withdrawTeam.js.map +1 -0
- package/dist/generated/client/floor_hook/pdas/floorPlatformPool.d.ts +12 -0
- package/dist/generated/client/floor_hook/pdas/floorPlatformPool.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/pdas/floorPlatformPool.js +13 -0
- package/dist/generated/client/floor_hook/pdas/floorPlatformPool.js.map +1 -0
- package/dist/generated/client/floor_hook/pdas/hookAuthority.d.ts +12 -0
- package/dist/generated/client/floor_hook/pdas/hookAuthority.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/pdas/hookAuthority.js +13 -0
- package/dist/generated/client/floor_hook/pdas/hookAuthority.js.map +1 -0
- package/dist/generated/client/floor_hook/pdas/hookConfig.d.ts +12 -0
- package/dist/generated/client/floor_hook/pdas/hookConfig.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/pdas/hookConfig.js +13 -0
- package/dist/generated/client/floor_hook/pdas/hookConfig.js.map +1 -0
- package/dist/generated/client/floor_hook/pdas/index.d.ts +16 -0
- package/dist/generated/client/floor_hook/pdas/index.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/pdas/index.js +16 -0
- package/dist/generated/client/floor_hook/pdas/index.js.map +1 -0
- package/dist/generated/client/floor_hook/pdas/platformTreasury.d.ts +12 -0
- package/dist/generated/client/floor_hook/pdas/platformTreasury.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/pdas/platformTreasury.js +13 -0
- package/dist/generated/client/floor_hook/pdas/platformTreasury.js.map +1 -0
- package/dist/generated/client/floor_hook/pdas/quotePolicy.d.ts +15 -0
- package/dist/generated/client/floor_hook/pdas/quotePolicy.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/pdas/quotePolicy.js +13 -0
- package/dist/generated/client/floor_hook/pdas/quotePolicy.js.map +1 -0
- package/dist/generated/client/floor_hook/pdas/stairRent.d.ts +15 -0
- package/dist/generated/client/floor_hook/pdas/stairRent.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/pdas/stairRent.js +13 -0
- package/dist/generated/client/floor_hook/pdas/stairRent.js.map +1 -0
- package/dist/generated/client/floor_hook/pdas/teamTreasury.d.ts +12 -0
- package/dist/generated/client/floor_hook/pdas/teamTreasury.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/pdas/teamTreasury.js +13 -0
- package/dist/generated/client/floor_hook/pdas/teamTreasury.js.map +1 -0
- package/dist/generated/client/floor_hook/pdas/vaultAuthority.d.ts +12 -0
- package/dist/generated/client/floor_hook/pdas/vaultAuthority.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/pdas/vaultAuthority.js +13 -0
- package/dist/generated/client/floor_hook/pdas/vaultAuthority.js.map +1 -0
- package/dist/generated/client/floor_hook/programs/floorHook.d.ts +302 -0
- package/dist/generated/client/floor_hook/programs/floorHook.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/programs/floorHook.js +622 -0
- package/dist/generated/client/floor_hook/programs/floorHook.js.map +1 -0
- package/dist/generated/client/floor_hook/programs/index.d.ts +9 -0
- package/dist/generated/client/floor_hook/programs/index.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/programs/index.js +9 -0
- package/dist/generated/client/floor_hook/programs/index.js.map +1 -0
- package/dist/generated/client/floor_hook/types/actionResult.d.ts +31 -0
- package/dist/generated/client/floor_hook/types/actionResult.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/types/actionResult.js +19 -0
- package/dist/generated/client/floor_hook/types/actionResult.js.map +1 -0
- package/dist/generated/client/floor_hook/types/balanceDelta.d.ts +20 -0
- package/dist/generated/client/floor_hook/types/balanceDelta.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/types/balanceDelta.js +18 -0
- package/dist/generated/client/floor_hook/types/balanceDelta.js.map +1 -0
- package/dist/generated/client/floor_hook/types/hookAction.d.ts +41 -0
- package/dist/generated/client/floor_hook/types/hookAction.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/types/hookAction.js +25 -0
- package/dist/generated/client/floor_hook/types/hookAction.js.map +1 -0
- package/dist/generated/client/floor_hook/types/hookRecordV1.d.ts +37 -0
- package/dist/generated/client/floor_hook/types/hookRecordV1.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/types/hookRecordV1.js +19 -0
- package/dist/generated/client/floor_hook/types/hookRecordV1.js.map +1 -0
- package/dist/generated/client/floor_hook/types/index.d.ts +18 -0
- package/dist/generated/client/floor_hook/types/index.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/types/index.js +18 -0
- package/dist/generated/client/floor_hook/types/index.js.map +1 -0
- package/dist/generated/client/floor_hook/types/poolSnapshot.d.ts +24 -0
- package/dist/generated/client/floor_hook/types/poolSnapshot.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/types/poolSnapshot.js +18 -0
- package/dist/generated/client/floor_hook/types/poolSnapshot.js.map +1 -0
- package/dist/generated/client/floor_hook/types/rentOwnerArg.d.ts +16 -0
- package/dist/generated/client/floor_hook/types/rentOwnerArg.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/types/rentOwnerArg.js +18 -0
- package/dist/generated/client/floor_hook/types/rentOwnerArg.js.map +1 -0
- package/dist/generated/client/floor_hook/types/slotArg.d.ts +18 -0
- package/dist/generated/client/floor_hook/types/slotArg.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/types/slotArg.js +18 -0
- package/dist/generated/client/floor_hook/types/slotArg.js.map +1 -0
- package/dist/generated/client/floor_hook/types/stairOwnerKindArg.d.ts +16 -0
- package/dist/generated/client/floor_hook/types/stairOwnerKindArg.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/types/stairOwnerKindArg.js +18 -0
- package/dist/generated/client/floor_hook/types/stairOwnerKindArg.js.map +1 -0
- package/dist/generated/client/floor_hook/types/swapParams.d.ts +22 -0
- package/dist/generated/client/floor_hook/types/swapParams.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/types/swapParams.js +18 -0
- package/dist/generated/client/floor_hook/types/swapParams.js.map +1 -0
- package/dist/generated/client/floor_hook/types/u128.d.ts +18 -0
- package/dist/generated/client/floor_hook/types/u128.d.ts.map +1 -0
- package/dist/generated/client/floor_hook/types/u128.js +18 -0
- package/dist/generated/client/floor_hook/types/u128.js.map +1 -0
- package/dist/generated/client/floor_launch/accounts/buyerPosition.d.ts +39 -0
- package/dist/generated/client/floor_launch/accounts/buyerPosition.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/accounts/buyerPosition.js +47 -0
- package/dist/generated/client/floor_launch/accounts/buyerPosition.js.map +1 -0
- package/dist/generated/client/floor_launch/accounts/genesisSale.d.ts +111 -0
- package/dist/generated/client/floor_launch/accounts/genesisSale.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/accounts/genesisSale.js +47 -0
- package/dist/generated/client/floor_launch/accounts/genesisSale.js.map +1 -0
- package/dist/generated/client/floor_launch/accounts/index.d.ts +15 -0
- package/dist/generated/client/floor_launch/accounts/index.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/accounts/index.js +15 -0
- package/dist/generated/client/floor_launch/accounts/index.js.map +1 -0
- package/dist/generated/client/floor_launch/accounts/launch.d.ts +134 -0
- package/dist/generated/client/floor_launch/accounts/launch.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/accounts/launch.js +48 -0
- package/dist/generated/client/floor_launch/accounts/launch.js.map +1 -0
- package/dist/generated/client/floor_launch/accounts/launchConfig.d.ts +81 -0
- package/dist/generated/client/floor_launch/accounts/launchConfig.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/accounts/launchConfig.js +47 -0
- package/dist/generated/client/floor_launch/accounts/launchConfig.js.map +1 -0
- package/dist/generated/client/floor_launch/accounts/presetRegistry.d.ts +44 -0
- package/dist/generated/client/floor_launch/accounts/presetRegistry.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/accounts/presetRegistry.js +48 -0
- package/dist/generated/client/floor_launch/accounts/presetRegistry.js.map +1 -0
- package/dist/generated/client/floor_launch/accounts/quoteWalk.d.ts +51 -0
- package/dist/generated/client/floor_launch/accounts/quoteWalk.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/accounts/quoteWalk.js +47 -0
- package/dist/generated/client/floor_launch/accounts/quoteWalk.js.map +1 -0
- package/dist/generated/client/floor_launch/accounts/registryEntry.d.ts +43 -0
- package/dist/generated/client/floor_launch/accounts/registryEntry.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/accounts/registryEntry.js +47 -0
- package/dist/generated/client/floor_launch/accounts/registryEntry.js.map +1 -0
- package/dist/generated/client/floor_launch/constants/floorLaunch.d.ts +20 -0
- package/dist/generated/client/floor_launch/constants/floorLaunch.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/constants/floorLaunch.js +19 -0
- package/dist/generated/client/floor_launch/constants/floorLaunch.js.map +1 -0
- package/dist/generated/client/floor_launch/constants/index.d.ts +9 -0
- package/dist/generated/client/floor_launch/constants/index.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/constants/index.js +9 -0
- package/dist/generated/client/floor_launch/constants/index.js.map +1 -0
- package/dist/generated/client/floor_launch/errors/floorLaunch.d.ts +222 -0
- package/dist/generated/client/floor_launch/errors/floorLaunch.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/errors/floorLaunch.js +225 -0
- package/dist/generated/client/floor_launch/errors/floorLaunch.js.map +1 -0
- package/dist/generated/client/floor_launch/errors/index.d.ts +9 -0
- package/dist/generated/client/floor_launch/errors/index.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/errors/index.js +9 -0
- package/dist/generated/client/floor_launch/errors/index.js.map +1 -0
- package/dist/generated/client/floor_launch/events/allocationDustRouted.d.ts +25 -0
- package/dist/generated/client/floor_launch/events/allocationDustRouted.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/allocationDustRouted.js +30 -0
- package/dist/generated/client/floor_launch/events/allocationDustRouted.js.map +1 -0
- package/dist/generated/client/floor_launch/events/attestorChanged.d.ts +25 -0
- package/dist/generated/client/floor_launch/events/attestorChanged.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/attestorChanged.js +30 -0
- package/dist/generated/client/floor_launch/events/attestorChanged.js.map +1 -0
- package/dist/generated/client/floor_launch/events/bought.d.ts +37 -0
- package/dist/generated/client/floor_launch/events/bought.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/bought.js +30 -0
- package/dist/generated/client/floor_launch/events/bought.js.map +1 -0
- package/dist/generated/client/floor_launch/events/contributed.d.ts +39 -0
- package/dist/generated/client/floor_launch/events/contributed.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/contributed.js +30 -0
- package/dist/generated/client/floor_launch/events/contributed.js.map +1 -0
- package/dist/generated/client/floor_launch/events/floorFeesApplied.d.ts +27 -0
- package/dist/generated/client/floor_launch/events/floorFeesApplied.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/floorFeesApplied.js +30 -0
- package/dist/generated/client/floor_launch/events/floorFeesApplied.js.map +1 -0
- package/dist/generated/client/floor_launch/events/floorShareUpdated.d.ts +24 -0
- package/dist/generated/client/floor_launch/events/floorShareUpdated.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/floorShareUpdated.js +30 -0
- package/dist/generated/client/floor_launch/events/floorShareUpdated.js.map +1 -0
- package/dist/generated/client/floor_launch/events/genesisAuthorityTransferStarted.d.ts +24 -0
- package/dist/generated/client/floor_launch/events/genesisAuthorityTransferStarted.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/genesisAuthorityTransferStarted.js +30 -0
- package/dist/generated/client/floor_launch/events/genesisAuthorityTransferStarted.js.map +1 -0
- package/dist/generated/client/floor_launch/events/genesisAuthorityTransferred.d.ts +24 -0
- package/dist/generated/client/floor_launch/events/genesisAuthorityTransferred.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/genesisAuthorityTransferred.js +30 -0
- package/dist/generated/client/floor_launch/events/genesisAuthorityTransferred.js.map +1 -0
- package/dist/generated/client/floor_launch/events/genesisClaimed.d.ts +31 -0
- package/dist/generated/client/floor_launch/events/genesisClaimed.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/genesisClaimed.js +30 -0
- package/dist/generated/client/floor_launch/events/genesisClaimed.js.map +1 -0
- package/dist/generated/client/floor_launch/events/genesisGraduated.d.ts +39 -0
- package/dist/generated/client/floor_launch/events/genesisGraduated.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/genesisGraduated.js +30 -0
- package/dist/generated/client/floor_launch/events/genesisGraduated.js.map +1 -0
- package/dist/generated/client/floor_launch/events/genesisInitialized.d.ts +37 -0
- package/dist/generated/client/floor_launch/events/genesisInitialized.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/genesisInitialized.js +30 -0
- package/dist/generated/client/floor_launch/events/genesisInitialized.js.map +1 -0
- package/dist/generated/client/floor_launch/events/genesisRefunded.d.ts +29 -0
- package/dist/generated/client/floor_launch/events/genesisRefunded.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/genesisRefunded.js +30 -0
- package/dist/generated/client/floor_launch/events/genesisRefunded.js.map +1 -0
- package/dist/generated/client/floor_launch/events/genesisStairTopUpdated.d.ts +27 -0
- package/dist/generated/client/floor_launch/events/genesisStairTopUpdated.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/genesisStairTopUpdated.js +30 -0
- package/dist/generated/client/floor_launch/events/genesisStairTopUpdated.js.map +1 -0
- package/dist/generated/client/floor_launch/events/genesisWhitelistUpdated.d.ts +25 -0
- package/dist/generated/client/floor_launch/events/genesisWhitelistUpdated.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/genesisWhitelistUpdated.js +30 -0
- package/dist/generated/client/floor_launch/events/genesisWhitelistUpdated.js.map +1 -0
- package/dist/generated/client/floor_launch/events/governanceChanged.d.ts +26 -0
- package/dist/generated/client/floor_launch/events/governanceChanged.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/governanceChanged.js +30 -0
- package/dist/generated/client/floor_launch/events/governanceChanged.js.map +1 -0
- package/dist/generated/client/floor_launch/events/graduated.d.ts +35 -0
- package/dist/generated/client/floor_launch/events/graduated.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/graduated.js +30 -0
- package/dist/generated/client/floor_launch/events/graduated.js.map +1 -0
- package/dist/generated/client/floor_launch/events/graduationPrepared.d.ts +33 -0
- package/dist/generated/client/floor_launch/events/graduationPrepared.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/graduationPrepared.js +30 -0
- package/dist/generated/client/floor_launch/events/graduationPrepared.js.map +1 -0
- package/dist/generated/client/floor_launch/events/graduationRentClosed.d.ts +31 -0
- package/dist/generated/client/floor_launch/events/graduationRentClosed.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/graduationRentClosed.js +30 -0
- package/dist/generated/client/floor_launch/events/graduationRentClosed.js.map +1 -0
- package/dist/generated/client/floor_launch/events/graduationRentReserved.d.ts +29 -0
- package/dist/generated/client/floor_launch/events/graduationRentReserved.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/graduationRentReserved.js +30 -0
- package/dist/generated/client/floor_launch/events/graduationRentReserved.js.map +1 -0
- package/dist/generated/client/floor_launch/events/index.d.ts +52 -0
- package/dist/generated/client/floor_launch/events/index.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/index.js +52 -0
- package/dist/generated/client/floor_launch/events/index.js.map +1 -0
- package/dist/generated/client/floor_launch/events/launchConfigInitialized.d.ts +26 -0
- package/dist/generated/client/floor_launch/events/launchConfigInitialized.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/launchConfigInitialized.js +30 -0
- package/dist/generated/client/floor_launch/events/launchConfigInitialized.js.map +1 -0
- package/dist/generated/client/floor_launch/events/launchCreated.d.ts +55 -0
- package/dist/generated/client/floor_launch/events/launchCreated.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/launchCreated.js +30 -0
- package/dist/generated/client/floor_launch/events/launchCreated.js.map +1 -0
- package/dist/generated/client/floor_launch/events/launchEconomicsUpdated.d.ts +39 -0
- package/dist/generated/client/floor_launch/events/launchEconomicsUpdated.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/launchEconomicsUpdated.js +30 -0
- package/dist/generated/client/floor_launch/events/launchEconomicsUpdated.js.map +1 -0
- package/dist/generated/client/floor_launch/events/metadataBaseSet.d.ts +31 -0
- package/dist/generated/client/floor_launch/events/metadataBaseSet.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/metadataBaseSet.js +30 -0
- package/dist/generated/client/floor_launch/events/metadataBaseSet.js.map +1 -0
- package/dist/generated/client/floor_launch/events/metadataUriFilled.d.ts +25 -0
- package/dist/generated/client/floor_launch/events/metadataUriFilled.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/metadataUriFilled.js +30 -0
- package/dist/generated/client/floor_launch/events/metadataUriFilled.js.map +1 -0
- package/dist/generated/client/floor_launch/events/openingTick.d.ts +31 -0
- package/dist/generated/client/floor_launch/events/openingTick.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/openingTick.js +30 -0
- package/dist/generated/client/floor_launch/events/openingTick.js.map +1 -0
- package/dist/generated/client/floor_launch/events/payeeSlotsSet.d.ts +30 -0
- package/dist/generated/client/floor_launch/events/payeeSlotsSet.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/payeeSlotsSet.js +31 -0
- package/dist/generated/client/floor_launch/events/payeeSlotsSet.js.map +1 -0
- package/dist/generated/client/floor_launch/events/presetAdded.d.ts +28 -0
- package/dist/generated/client/floor_launch/events/presetAdded.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/presetAdded.js +31 -0
- package/dist/generated/client/floor_launch/events/presetAdded.js.map +1 -0
- package/dist/generated/client/floor_launch/events/presetAuthorityTransferStarted.d.ts +24 -0
- package/dist/generated/client/floor_launch/events/presetAuthorityTransferStarted.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/presetAuthorityTransferStarted.js +30 -0
- package/dist/generated/client/floor_launch/events/presetAuthorityTransferStarted.js.map +1 -0
- package/dist/generated/client/floor_launch/events/presetAuthorityTransferred.d.ts +24 -0
- package/dist/generated/client/floor_launch/events/presetAuthorityTransferred.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/presetAuthorityTransferred.js +30 -0
- package/dist/generated/client/floor_launch/events/presetAuthorityTransferred.js.map +1 -0
- package/dist/generated/client/floor_launch/events/presetEnabled.d.ts +24 -0
- package/dist/generated/client/floor_launch/events/presetEnabled.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/presetEnabled.js +30 -0
- package/dist/generated/client/floor_launch/events/presetEnabled.js.map +1 -0
- package/dist/generated/client/floor_launch/events/quoteChainPriced.d.ts +33 -0
- package/dist/generated/client/floor_launch/events/quoteChainPriced.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/quoteChainPriced.js +30 -0
- package/dist/generated/client/floor_launch/events/quoteChainPriced.js.map +1 -0
- package/dist/generated/client/floor_launch/events/recipientClaimed.d.ts +26 -0
- package/dist/generated/client/floor_launch/events/recipientClaimed.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/recipientClaimed.js +30 -0
- package/dist/generated/client/floor_launch/events/recipientClaimed.js.map +1 -0
- package/dist/generated/client/floor_launch/events/saleTraderReferralBooked.d.ts +33 -0
- package/dist/generated/client/floor_launch/events/saleTraderReferralBooked.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/saleTraderReferralBooked.js +30 -0
- package/dist/generated/client/floor_launch/events/saleTraderReferralBooked.js.map +1 -0
- package/dist/generated/client/floor_launch/events/saleTraderReferralSwept.d.ts +29 -0
- package/dist/generated/client/floor_launch/events/saleTraderReferralSwept.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/saleTraderReferralSwept.js +30 -0
- package/dist/generated/client/floor_launch/events/saleTraderReferralSwept.js.map +1 -0
- package/dist/generated/client/floor_launch/events/scheduleUpdated.d.ts +29 -0
- package/dist/generated/client/floor_launch/events/scheduleUpdated.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/scheduleUpdated.js +30 -0
- package/dist/generated/client/floor_launch/events/scheduleUpdated.js.map +1 -0
- package/dist/generated/client/floor_launch/events/soldBack.d.ts +35 -0
- package/dist/generated/client/floor_launch/events/soldBack.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/soldBack.js +30 -0
- package/dist/generated/client/floor_launch/events/soldBack.js.map +1 -0
- package/dist/generated/client/floor_launch/events/stairPayeeClaimed.d.ts +26 -0
- package/dist/generated/client/floor_launch/events/stairPayeeClaimed.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/stairPayeeClaimed.js +30 -0
- package/dist/generated/client/floor_launch/events/stairPayeeClaimed.js.map +1 -0
- package/dist/generated/client/floor_launch/events/stairRentFunded.d.ts +33 -0
- package/dist/generated/client/floor_launch/events/stairRentFunded.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/stairRentFunded.js +30 -0
- package/dist/generated/client/floor_launch/events/stairRentFunded.js.map +1 -0
- package/dist/generated/client/floor_launch/events/teamBought.d.ts +41 -0
- package/dist/generated/client/floor_launch/events/teamBought.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/teamBought.js +30 -0
- package/dist/generated/client/floor_launch/events/teamBought.js.map +1 -0
- package/dist/generated/client/floor_launch/events/teamBuySoldBack.d.ts +37 -0
- package/dist/generated/client/floor_launch/events/teamBuySoldBack.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/teamBuySoldBack.js +30 -0
- package/dist/generated/client/floor_launch/events/teamBuySoldBack.js.map +1 -0
- package/dist/generated/client/floor_launch/events/teamFeesSet.d.ts +28 -0
- package/dist/generated/client/floor_launch/events/teamFeesSet.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/teamFeesSet.js +30 -0
- package/dist/generated/client/floor_launch/events/teamFeesSet.js.map +1 -0
- package/dist/generated/client/floor_launch/events/teamVestedClaimed.d.ts +33 -0
- package/dist/generated/client/floor_launch/events/teamVestedClaimed.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/teamVestedClaimed.js +30 -0
- package/dist/generated/client/floor_launch/events/teamVestedClaimed.js.map +1 -0
- package/dist/generated/client/floor_launch/events/traderLinked.d.ts +26 -0
- package/dist/generated/client/floor_launch/events/traderLinked.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/traderLinked.js +30 -0
- package/dist/generated/client/floor_launch/events/traderLinked.js.map +1 -0
- package/dist/generated/client/floor_launch/events/vestingCreated.d.ts +23 -0
- package/dist/generated/client/floor_launch/events/vestingCreated.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/events/vestingCreated.js +30 -0
- package/dist/generated/client/floor_launch/events/vestingCreated.js.map +1 -0
- package/dist/generated/client/floor_launch/index.d.ts +16 -0
- package/dist/generated/client/floor_launch/index.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/index.js +16 -0
- package/dist/generated/client/floor_launch/index.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/acceptGenesisAuthority.d.ts +49 -0
- package/dist/generated/client/floor_launch/instructions/acceptGenesisAuthority.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/acceptGenesisAuthority.js +57 -0
- package/dist/generated/client/floor_launch/instructions/acceptGenesisAuthority.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/acceptGovernance.d.ts +49 -0
- package/dist/generated/client/floor_launch/instructions/acceptGovernance.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/acceptGovernance.js +57 -0
- package/dist/generated/client/floor_launch/instructions/acceptGovernance.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/acceptPresetAuthority.d.ts +49 -0
- package/dist/generated/client/floor_launch/instructions/acceptPresetAuthority.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/acceptPresetAuthority.js +57 -0
- package/dist/generated/client/floor_launch/instructions/acceptPresetAuthority.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/addPreset.d.ts +55 -0
- package/dist/generated/client/floor_launch/instructions/addPreset.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/addPreset.js +62 -0
- package/dist/generated/client/floor_launch/instructions/addPreset.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/buy.d.ts +89 -0
- package/dist/generated/client/floor_launch/instructions/buy.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/buy.js +89 -0
- package/dist/generated/client/floor_launch/instructions/buy.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/claimGenesis.d.ts +73 -0
- package/dist/generated/client/floor_launch/instructions/claimGenesis.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/claimGenesis.js +79 -0
- package/dist/generated/client/floor_launch/instructions/claimGenesis.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/claimGenesisPayee.d.ts +79 -0
- package/dist/generated/client/floor_launch/instructions/claimGenesisPayee.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/claimGenesisPayee.js +64 -0
- package/dist/generated/client/floor_launch/instructions/claimGenesisPayee.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/claimRecipient.d.ts +83 -0
- package/dist/generated/client/floor_launch/instructions/claimRecipient.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/claimRecipient.js +64 -0
- package/dist/generated/client/floor_launch/instructions/claimRecipient.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/claimTeamPayee.d.ts +83 -0
- package/dist/generated/client/floor_launch/instructions/claimTeamPayee.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/claimTeamPayee.js +64 -0
- package/dist/generated/client/floor_launch/instructions/claimTeamPayee.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/claimTeamVested.d.ts +69 -0
- package/dist/generated/client/floor_launch/instructions/claimTeamVested.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/claimTeamVested.js +68 -0
- package/dist/generated/client/floor_launch/instructions/claimTeamVested.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/closeBuyerPosition.d.ts +46 -0
- package/dist/generated/client/floor_launch/instructions/closeBuyerPosition.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/closeBuyerPosition.js +57 -0
- package/dist/generated/client/floor_launch/instructions/closeBuyerPosition.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/closeGraduationRent.d.ts +52 -0
- package/dist/generated/client/floor_launch/instructions/closeGraduationRent.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/closeGraduationRent.js +57 -0
- package/dist/generated/client/floor_launch/instructions/closeGraduationRent.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/closePreparedTickArray.d.ts +61 -0
- package/dist/generated/client/floor_launch/instructions/closePreparedTickArray.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/closePreparedTickArray.js +57 -0
- package/dist/generated/client/floor_launch/instructions/closePreparedTickArray.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/closeQuoteWalk.d.ts +36 -0
- package/dist/generated/client/floor_launch/instructions/closeQuoteWalk.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/closeQuoteWalk.js +43 -0
- package/dist/generated/client/floor_launch/instructions/closeQuoteWalk.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/contribute.d.ts +74 -0
- package/dist/generated/client/floor_launch/instructions/contribute.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/contribute.js +74 -0
- package/dist/generated/client/floor_launch/instructions/contribute.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/createLaunch.d.ts +243 -0
- package/dist/generated/client/floor_launch/instructions/createLaunch.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/createLaunch.js +118 -0
- package/dist/generated/client/floor_launch/instructions/createLaunch.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/endGenesisSale.d.ts +67 -0
- package/dist/generated/client/floor_launch/instructions/endGenesisSale.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/endGenesisSale.js +60 -0
- package/dist/generated/client/floor_launch/instructions/endGenesisSale.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/fillMetadataUri.d.ts +64 -0
- package/dist/generated/client/floor_launch/instructions/fillMetadataUri.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/fillMetadataUri.js +76 -0
- package/dist/generated/client/floor_launch/instructions/fillMetadataUri.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/flushAllocationDust.d.ts +79 -0
- package/dist/generated/client/floor_launch/instructions/flushAllocationDust.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/flushAllocationDust.js +64 -0
- package/dist/generated/client/floor_launch/instructions/flushAllocationDust.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/flushFloorFees.d.ts +88 -0
- package/dist/generated/client/floor_launch/instructions/flushFloorFees.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/flushFloorFees.js +73 -0
- package/dist/generated/client/floor_launch/instructions/flushFloorFees.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/fundStairRent.d.ts +55 -0
- package/dist/generated/client/floor_launch/instructions/fundStairRent.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/fundStairRent.js +57 -0
- package/dist/generated/client/floor_launch/instructions/fundStairRent.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/graduate.d.ts +67 -0
- package/dist/generated/client/floor_launch/instructions/graduate.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/graduate.js +76 -0
- package/dist/generated/client/floor_launch/instructions/graduate.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/graduateGenesis.d.ts +70 -0
- package/dist/generated/client/floor_launch/instructions/graduateGenesis.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/graduateGenesis.js +76 -0
- package/dist/generated/client/floor_launch/instructions/graduateGenesis.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/index.d.ts +56 -0
- package/dist/generated/client/floor_launch/instructions/index.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/index.js +56 -0
- package/dist/generated/client/floor_launch/instructions/index.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/initGenesis.d.ts +99 -0
- package/dist/generated/client/floor_launch/instructions/initGenesis.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/initGenesis.js +80 -0
- package/dist/generated/client/floor_launch/instructions/initGenesis.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/initPresetRegistry.d.ts +58 -0
- package/dist/generated/client/floor_launch/instructions/initPresetRegistry.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/initPresetRegistry.js +67 -0
- package/dist/generated/client/floor_launch/instructions/initPresetRegistry.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/initializeLaunchConfig.d.ts +93 -0
- package/dist/generated/client/floor_launch/instructions/initializeLaunchConfig.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/initializeLaunchConfig.js +71 -0
- package/dist/generated/client/floor_launch/instructions/initializeLaunchConfig.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/linkTrader.d.ts +84 -0
- package/dist/generated/client/floor_launch/instructions/linkTrader.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/linkTrader.js +77 -0
- package/dist/generated/client/floor_launch/instructions/linkTrader.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/lockGenesis.d.ts +82 -0
- package/dist/generated/client/floor_launch/instructions/lockGenesis.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/lockGenesis.js +76 -0
- package/dist/generated/client/floor_launch/instructions/lockGenesis.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/openSaleTraderReferral.d.ts +58 -0
- package/dist/generated/client/floor_launch/instructions/openSaleTraderReferral.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/openSaleTraderReferral.js +67 -0
- package/dist/generated/client/floor_launch/instructions/openSaleTraderReferral.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/prepareGraduation.d.ts +58 -0
- package/dist/generated/client/floor_launch/instructions/prepareGraduation.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/prepareGraduation.js +70 -0
- package/dist/generated/client/floor_launch/instructions/prepareGraduation.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/refundGenesis.d.ts +58 -0
- package/dist/generated/client/floor_launch/instructions/refundGenesis.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/refundGenesis.js +63 -0
- package/dist/generated/client/floor_launch/instructions/refundGenesis.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/sellBack.d.ts +75 -0
- package/dist/generated/client/floor_launch/instructions/sellBack.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/sellBack.js +77 -0
- package/dist/generated/client/floor_launch/instructions/sellBack.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/sellBackWsol.d.ts +75 -0
- package/dist/generated/client/floor_launch/instructions/sellBackWsol.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/sellBackWsol.js +77 -0
- package/dist/generated/client/floor_launch/instructions/sellBackWsol.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/setAttestor.d.ts +63 -0
- package/dist/generated/client/floor_launch/instructions/setAttestor.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/setAttestor.js +61 -0
- package/dist/generated/client/floor_launch/instructions/setAttestor.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/setGenesisFloorShare.d.ts +54 -0
- package/dist/generated/client/floor_launch/instructions/setGenesisFloorShare.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/setGenesisFloorShare.js +61 -0
- package/dist/generated/client/floor_launch/instructions/setGenesisFloorShare.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/setGenesisSchedule.d.ts +58 -0
- package/dist/generated/client/floor_launch/instructions/setGenesisSchedule.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/setGenesisSchedule.js +61 -0
- package/dist/generated/client/floor_launch/instructions/setGenesisSchedule.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/setGenesisStairTop.d.ts +54 -0
- package/dist/generated/client/floor_launch/instructions/setGenesisStairTop.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/setGenesisStairTop.js +61 -0
- package/dist/generated/client/floor_launch/instructions/setGenesisStairTop.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/setGenesisWhitelist.d.ts +58 -0
- package/dist/generated/client/floor_launch/instructions/setGenesisWhitelist.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/setGenesisWhitelist.js +61 -0
- package/dist/generated/client/floor_launch/instructions/setGenesisWhitelist.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/setGovernance.d.ts +54 -0
- package/dist/generated/client/floor_launch/instructions/setGovernance.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/setGovernance.js +61 -0
- package/dist/generated/client/floor_launch/instructions/setGovernance.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/setLaunchEconomics.d.ts +65 -0
- package/dist/generated/client/floor_launch/instructions/setLaunchEconomics.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/setLaunchEconomics.js +61 -0
- package/dist/generated/client/floor_launch/instructions/setLaunchEconomics.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/setMetadataBase.d.ts +54 -0
- package/dist/generated/client/floor_launch/instructions/setMetadataBase.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/setMetadataBase.js +61 -0
- package/dist/generated/client/floor_launch/instructions/setMetadataBase.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/setPresetAuthority.d.ts +54 -0
- package/dist/generated/client/floor_launch/instructions/setPresetAuthority.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/setPresetAuthority.js +61 -0
- package/dist/generated/client/floor_launch/instructions/setPresetAuthority.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/setPresetEnabled.d.ts +58 -0
- package/dist/generated/client/floor_launch/instructions/setPresetEnabled.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/setPresetEnabled.js +61 -0
- package/dist/generated/client/floor_launch/instructions/setPresetEnabled.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/setTeamFees.d.ts +61 -0
- package/dist/generated/client/floor_launch/instructions/setTeamFees.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/setTeamFees.js +61 -0
- package/dist/generated/client/floor_launch/instructions/setTeamFees.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/sweepSaleTraderReferral.d.ts +61 -0
- package/dist/generated/client/floor_launch/instructions/sweepSaleTraderReferral.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/sweepSaleTraderReferral.js +57 -0
- package/dist/generated/client/floor_launch/instructions/sweepSaleTraderReferral.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/teamBuySellBack.d.ts +64 -0
- package/dist/generated/client/floor_launch/instructions/teamBuySellBack.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/teamBuySellBack.js +60 -0
- package/dist/generated/client/floor_launch/instructions/teamBuySellBack.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/transferGenesisAuthority.d.ts +54 -0
- package/dist/generated/client/floor_launch/instructions/transferGenesisAuthority.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/transferGenesisAuthority.js +61 -0
- package/dist/generated/client/floor_launch/instructions/transferGenesisAuthority.js.map +1 -0
- package/dist/generated/client/floor_launch/instructions/walkQuoteChain.d.ts +58 -0
- package/dist/generated/client/floor_launch/instructions/walkQuoteChain.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/instructions/walkQuoteChain.js +68 -0
- package/dist/generated/client/floor_launch/instructions/walkQuoteChain.js.map +1 -0
- package/dist/generated/client/floor_launch/pdas/buyerPosition.d.ts +16 -0
- package/dist/generated/client/floor_launch/pdas/buyerPosition.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/pdas/buyerPosition.js +13 -0
- package/dist/generated/client/floor_launch/pdas/buyerPosition.js.map +1 -0
- package/dist/generated/client/floor_launch/pdas/contributeContribution.d.ts +15 -0
- package/dist/generated/client/floor_launch/pdas/contributeContribution.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/pdas/contributeContribution.js +13 -0
- package/dist/generated/client/floor_launch/pdas/contributeContribution.js.map +1 -0
- package/dist/generated/client/floor_launch/pdas/contribution.d.ts +15 -0
- package/dist/generated/client/floor_launch/pdas/contribution.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/pdas/contribution.js +13 -0
- package/dist/generated/client/floor_launch/pdas/contribution.js.map +1 -0
- package/dist/generated/client/floor_launch/pdas/creatorTraderLink.d.ts +15 -0
- package/dist/generated/client/floor_launch/pdas/creatorTraderLink.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/pdas/creatorTraderLink.js +13 -0
- package/dist/generated/client/floor_launch/pdas/creatorTraderLink.js.map +1 -0
- package/dist/generated/client/floor_launch/pdas/genesisSale.d.ts +12 -0
- package/dist/generated/client/floor_launch/pdas/genesisSale.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/pdas/genesisSale.js +13 -0
- package/dist/generated/client/floor_launch/pdas/genesisSale.js.map +1 -0
- package/dist/generated/client/floor_launch/pdas/graduationRent.d.ts +15 -0
- package/dist/generated/client/floor_launch/pdas/graduationRent.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/pdas/graduationRent.js +13 -0
- package/dist/generated/client/floor_launch/pdas/graduationRent.js.map +1 -0
- package/dist/generated/client/floor_launch/pdas/index.d.ts +26 -0
- package/dist/generated/client/floor_launch/pdas/index.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/pdas/index.js +26 -0
- package/dist/generated/client/floor_launch/pdas/index.js.map +1 -0
- package/dist/generated/client/floor_launch/pdas/launch.d.ts +15 -0
- package/dist/generated/client/floor_launch/pdas/launch.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/pdas/launch.js +13 -0
- package/dist/generated/client/floor_launch/pdas/launch.js.map +1 -0
- package/dist/generated/client/floor_launch/pdas/launchAuthority.d.ts +12 -0
- package/dist/generated/client/floor_launch/pdas/launchAuthority.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/pdas/launchAuthority.js +13 -0
- package/dist/generated/client/floor_launch/pdas/launchAuthority.js.map +1 -0
- package/dist/generated/client/floor_launch/pdas/launchConfig.d.ts +12 -0
- package/dist/generated/client/floor_launch/pdas/launchConfig.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/pdas/launchConfig.js +13 -0
- package/dist/generated/client/floor_launch/pdas/launchConfig.js.map +1 -0
- package/dist/generated/client/floor_launch/pdas/lockAuthority.d.ts +12 -0
- package/dist/generated/client/floor_launch/pdas/lockAuthority.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/pdas/lockAuthority.js +13 -0
- package/dist/generated/client/floor_launch/pdas/lockAuthority.js.map +1 -0
- package/dist/generated/client/floor_launch/pdas/mint.d.ts +16 -0
- package/dist/generated/client/floor_launch/pdas/mint.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/pdas/mint.js +13 -0
- package/dist/generated/client/floor_launch/pdas/mint.js.map +1 -0
- package/dist/generated/client/floor_launch/pdas/mintAuthority.d.ts +12 -0
- package/dist/generated/client/floor_launch/pdas/mintAuthority.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/pdas/mintAuthority.js +13 -0
- package/dist/generated/client/floor_launch/pdas/mintAuthority.js.map +1 -0
- package/dist/generated/client/floor_launch/pdas/presetRegistry.d.ts +12 -0
- package/dist/generated/client/floor_launch/pdas/presetRegistry.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/pdas/presetRegistry.js +13 -0
- package/dist/generated/client/floor_launch/pdas/presetRegistry.js.map +1 -0
- package/dist/generated/client/floor_launch/pdas/quoteWalk.d.ts +16 -0
- package/dist/generated/client/floor_launch/pdas/quoteWalk.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/pdas/quoteWalk.js +13 -0
- package/dist/generated/client/floor_launch/pdas/quoteWalk.js.map +1 -0
- package/dist/generated/client/floor_launch/pdas/registryEntry.d.ts +15 -0
- package/dist/generated/client/floor_launch/pdas/registryEntry.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/pdas/registryEntry.js +13 -0
- package/dist/generated/client/floor_launch/pdas/registryEntry.js.map +1 -0
- package/dist/generated/client/floor_launch/pdas/saleVault.d.ts +15 -0
- package/dist/generated/client/floor_launch/pdas/saleVault.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/pdas/saleVault.js +13 -0
- package/dist/generated/client/floor_launch/pdas/saleVault.js.map +1 -0
- package/dist/generated/client/floor_launch/pdas/traderLink.d.ts +15 -0
- package/dist/generated/client/floor_launch/pdas/traderLink.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/pdas/traderLink.js +13 -0
- package/dist/generated/client/floor_launch/pdas/traderLink.js.map +1 -0
- package/dist/generated/client/floor_launch/pdas/traderRefSale.d.ts +15 -0
- package/dist/generated/client/floor_launch/pdas/traderRefSale.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/pdas/traderRefSale.js +13 -0
- package/dist/generated/client/floor_launch/pdas/traderRefSale.js.map +1 -0
- package/dist/generated/client/floor_launch/programs/floorLaunch.d.ts +319 -0
- package/dist/generated/client/floor_launch/programs/floorLaunch.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/programs/floorLaunch.js +634 -0
- package/dist/generated/client/floor_launch/programs/floorLaunch.js.map +1 -0
- package/dist/generated/client/floor_launch/programs/index.d.ts +9 -0
- package/dist/generated/client/floor_launch/programs/index.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/programs/index.js +9 -0
- package/dist/generated/client/floor_launch/programs/index.js.map +1 -0
- package/dist/generated/client/floor_launch/types/index.d.ts +12 -0
- package/dist/generated/client/floor_launch/types/index.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/types/index.js +12 -0
- package/dist/generated/client/floor_launch/types/index.js.map +1 -0
- package/dist/generated/client/floor_launch/types/presetRowArgs.d.ts +40 -0
- package/dist/generated/client/floor_launch/types/presetRowArgs.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/types/presetRowArgs.js +18 -0
- package/dist/generated/client/floor_launch/types/presetRowArgs.js.map +1 -0
- package/dist/generated/client/floor_launch/types/presetRowZc.d.ts +44 -0
- package/dist/generated/client/floor_launch/types/presetRowZc.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/types/presetRowZc.js +18 -0
- package/dist/generated/client/floor_launch/types/presetRowZc.js.map +1 -0
- package/dist/generated/client/floor_launch/types/slotArg.d.ts +18 -0
- package/dist/generated/client/floor_launch/types/slotArg.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/types/slotArg.js +18 -0
- package/dist/generated/client/floor_launch/types/slotArg.js.map +1 -0
- package/dist/generated/client/floor_launch/types/u128.d.ts +18 -0
- package/dist/generated/client/floor_launch/types/u128.d.ts.map +1 -0
- package/dist/generated/client/floor_launch/types/u128.js +18 -0
- package/dist/generated/client/floor_launch/types/u128.js.map +1 -0
- package/dist/generated/client/floor_vesting/accounts/index.d.ts +9 -0
- package/dist/generated/client/floor_vesting/accounts/index.d.ts.map +1 -0
- package/dist/generated/client/floor_vesting/accounts/index.js +9 -0
- package/dist/generated/client/floor_vesting/accounts/index.js.map +1 -0
- package/dist/generated/client/floor_vesting/accounts/vestingSchedule.d.ts +57 -0
- package/dist/generated/client/floor_vesting/accounts/vestingSchedule.d.ts.map +1 -0
- package/dist/generated/client/floor_vesting/accounts/vestingSchedule.js +47 -0
- package/dist/generated/client/floor_vesting/accounts/vestingSchedule.js.map +1 -0
- package/dist/generated/client/floor_vesting/errors/floorVesting.d.ts +42 -0
- package/dist/generated/client/floor_vesting/errors/floorVesting.d.ts.map +1 -0
- package/dist/generated/client/floor_vesting/errors/floorVesting.js +45 -0
- package/dist/generated/client/floor_vesting/errors/floorVesting.js.map +1 -0
- package/dist/generated/client/floor_vesting/errors/index.d.ts +9 -0
- package/dist/generated/client/floor_vesting/errors/index.d.ts.map +1 -0
- package/dist/generated/client/floor_vesting/errors/index.js +9 -0
- package/dist/generated/client/floor_vesting/errors/index.js.map +1 -0
- package/dist/generated/client/floor_vesting/events/absoluteSchedule.d.ts +33 -0
- package/dist/generated/client/floor_vesting/events/absoluteSchedule.d.ts.map +1 -0
- package/dist/generated/client/floor_vesting/events/absoluteSchedule.js +30 -0
- package/dist/generated/client/floor_vesting/events/absoluteSchedule.js.map +1 -0
- package/dist/generated/client/floor_vesting/events/claimed.d.ts +33 -0
- package/dist/generated/client/floor_vesting/events/claimed.d.ts.map +1 -0
- package/dist/generated/client/floor_vesting/events/claimed.js +30 -0
- package/dist/generated/client/floor_vesting/events/claimed.js.map +1 -0
- package/dist/generated/client/floor_vesting/events/index.d.ts +12 -0
- package/dist/generated/client/floor_vesting/events/index.d.ts.map +1 -0
- package/dist/generated/client/floor_vesting/events/index.js +12 -0
- package/dist/generated/client/floor_vesting/events/index.js.map +1 -0
- package/dist/generated/client/floor_vesting/events/scheduleClosed.d.ts +31 -0
- package/dist/generated/client/floor_vesting/events/scheduleClosed.d.ts.map +1 -0
- package/dist/generated/client/floor_vesting/events/scheduleClosed.js +30 -0
- package/dist/generated/client/floor_vesting/events/scheduleClosed.js.map +1 -0
- package/dist/generated/client/floor_vesting/events/scheduleCreated.d.ts +43 -0
- package/dist/generated/client/floor_vesting/events/scheduleCreated.d.ts.map +1 -0
- package/dist/generated/client/floor_vesting/events/scheduleCreated.js +30 -0
- package/dist/generated/client/floor_vesting/events/scheduleCreated.js.map +1 -0
- package/dist/generated/client/floor_vesting/index.d.ts +14 -0
- package/dist/generated/client/floor_vesting/index.d.ts.map +1 -0
- package/dist/generated/client/floor_vesting/index.js +14 -0
- package/dist/generated/client/floor_vesting/index.js.map +1 -0
- package/dist/generated/client/floor_vesting/instructions/claim.d.ts +64 -0
- package/dist/generated/client/floor_vesting/instructions/claim.d.ts.map +1 -0
- package/dist/generated/client/floor_vesting/instructions/claim.js +67 -0
- package/dist/generated/client/floor_vesting/instructions/claim.js.map +1 -0
- package/dist/generated/client/floor_vesting/instructions/closeSchedule.d.ts +67 -0
- package/dist/generated/client/floor_vesting/instructions/closeSchedule.d.ts.map +1 -0
- package/dist/generated/client/floor_vesting/instructions/closeSchedule.js +71 -0
- package/dist/generated/client/floor_vesting/instructions/closeSchedule.js.map +1 -0
- package/dist/generated/client/floor_vesting/instructions/createSchedule.d.ts +87 -0
- package/dist/generated/client/floor_vesting/instructions/createSchedule.d.ts.map +1 -0
- package/dist/generated/client/floor_vesting/instructions/createSchedule.js +80 -0
- package/dist/generated/client/floor_vesting/instructions/createSchedule.js.map +1 -0
- package/dist/generated/client/floor_vesting/instructions/createScheduleAt.d.ts +94 -0
- package/dist/generated/client/floor_vesting/instructions/createScheduleAt.d.ts.map +1 -0
- package/dist/generated/client/floor_vesting/instructions/createScheduleAt.js +80 -0
- package/dist/generated/client/floor_vesting/instructions/createScheduleAt.js.map +1 -0
- package/dist/generated/client/floor_vesting/instructions/index.d.ts +12 -0
- package/dist/generated/client/floor_vesting/instructions/index.d.ts.map +1 -0
- package/dist/generated/client/floor_vesting/instructions/index.js +12 -0
- package/dist/generated/client/floor_vesting/instructions/index.js.map +1 -0
- package/dist/generated/client/floor_vesting/pdas/escrow.d.ts +15 -0
- package/dist/generated/client/floor_vesting/pdas/escrow.d.ts.map +1 -0
- package/dist/generated/client/floor_vesting/pdas/escrow.js +13 -0
- package/dist/generated/client/floor_vesting/pdas/escrow.js.map +1 -0
- package/dist/generated/client/floor_vesting/pdas/index.d.ts +11 -0
- package/dist/generated/client/floor_vesting/pdas/index.d.ts.map +1 -0
- package/dist/generated/client/floor_vesting/pdas/index.js +11 -0
- package/dist/generated/client/floor_vesting/pdas/index.js.map +1 -0
- package/dist/generated/client/floor_vesting/pdas/schedule.d.ts +16 -0
- package/dist/generated/client/floor_vesting/pdas/schedule.d.ts.map +1 -0
- package/dist/generated/client/floor_vesting/pdas/schedule.js +13 -0
- package/dist/generated/client/floor_vesting/pdas/schedule.js.map +1 -0
- package/dist/generated/client/floor_vesting/pdas/vestingAuthority.d.ts +12 -0
- package/dist/generated/client/floor_vesting/pdas/vestingAuthority.d.ts.map +1 -0
- package/dist/generated/client/floor_vesting/pdas/vestingAuthority.js +13 -0
- package/dist/generated/client/floor_vesting/pdas/vestingAuthority.js.map +1 -0
- package/dist/generated/client/floor_vesting/programs/floorVesting.d.ts +76 -0
- package/dist/generated/client/floor_vesting/programs/floorVesting.d.ts.map +1 -0
- package/dist/generated/client/floor_vesting/programs/floorVesting.js +98 -0
- package/dist/generated/client/floor_vesting/programs/floorVesting.js.map +1 -0
- package/dist/generated/client/floor_vesting/programs/index.d.ts +9 -0
- package/dist/generated/client/floor_vesting/programs/index.d.ts.map +1 -0
- package/dist/generated/client/floor_vesting/programs/index.js +9 -0
- package/dist/generated/client/floor_vesting/programs/index.js.map +1 -0
- package/dist/generated/deployments.d.ts +3 -0
- package/dist/generated/deployments.d.ts.map +1 -0
- package/dist/generated/deployments.js +89 -0
- package/dist/generated/deployments.js.map +1 -0
- package/dist/generated/idls.d.ts +12 -0
- package/dist/generated/idls.d.ts.map +1 -0
- package/dist/generated/idls.js +11 -0
- package/dist/generated/idls.js.map +1 -0
- package/dist/generated/wasm.d.ts +5 -0
- package/dist/generated/wasm.d.ts.map +1 -0
- package/dist/generated/wasm.js +6 -0
- package/dist/generated/wasm.js.map +1 -0
- package/dist/holders.d.ts +68 -0
- package/dist/holders.d.ts.map +1 -0
- package/dist/holders.js +124 -0
- package/dist/holders.js.map +1 -0
- package/dist/idl.d.ts +13 -0
- package/dist/idl.d.ts.map +1 -0
- package/dist/idl.js +17 -0
- package/dist/idl.js.map +1 -0
- package/dist/index.d.ts +33 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +37 -0
- package/dist/index.js.map +1 -0
- package/dist/layouts.d.ts +666 -0
- package/dist/layouts.d.ts.map +1 -0
- package/dist/layouts.js +420 -0
- package/dist/layouts.js.map +1 -0
- package/dist/pda.d.ts +88 -0
- package/dist/pda.d.ts.map +1 -0
- package/dist/pda.js +85 -0
- package/dist/pda.js.map +1 -0
- package/dist/predict.d.ts +169 -0
- package/dist/predict.d.ts.map +1 -0
- package/dist/predict.js +403 -0
- package/dist/predict.js.map +1 -0
- package/dist/quote/quoter.d.ts +212 -0
- package/dist/quote/quoter.d.ts.map +1 -0
- package/dist/quote/quoter.js +239 -0
- package/dist/quote/quoter.js.map +1 -0
- package/dist/quote/wasm.d.ts +22 -0
- package/dist/quote/wasm.d.ts.map +1 -0
- package/dist/quote/wasm.js +38 -0
- package/dist/quote/wasm.js.map +1 -0
- package/dist/slots.d.ts +86 -0
- package/dist/slots.d.ts.map +1 -0
- package/dist/slots.js +88 -0
- package/dist/slots.js.map +1 -0
- package/dist/stateView.d.ts +136 -0
- package/dist/stateView.d.ts.map +1 -0
- package/dist/stateView.js +203 -0
- package/dist/stateView.js.map +1 -0
- package/dist/tickmath.d.ts +60 -0
- package/dist/tickmath.d.ts.map +1 -0
- package/dist/tickmath.js +114 -0
- package/dist/tickmath.js.map +1 -0
- package/dist/twap.d.ts +34 -0
- package/dist/twap.d.ts.map +1 -0
- package/dist/twap.js +119 -0
- package/dist/twap.js.map +1 -0
- package/dist/tx/builders.d.ts +352 -0
- package/dist/tx/builders.d.ts.map +1 -0
- package/dist/tx/builders.js +484 -0
- package/dist/tx/builders.js.map +1 -0
- package/dist/tx/common.d.ts +34 -0
- package/dist/tx/common.d.ts.map +1 -0
- package/dist/tx/common.js +27 -0
- package/dist/tx/common.js.map +1 -0
- package/dist/tx/instructions.d.ts +303 -0
- package/dist/tx/instructions.d.ts.map +1 -0
- package/dist/tx/instructions.js +256 -0
- package/dist/tx/instructions.js.map +1 -0
- package/dist/tx/launchAlt.d.ts +41 -0
- package/dist/tx/launchAlt.d.ts.map +1 -0
- package/dist/tx/launchAlt.js +49 -0
- package/dist/tx/launchAlt.js.map +1 -0
- package/dist/tx/traderRef.d.ts +107 -0
- package/dist/tx/traderRef.d.ts.map +1 -0
- package/dist/tx/traderRef.js +132 -0
- package/dist/tx/traderRef.js.map +1 -0
- package/idl/floor_holders.json +1458 -0
- package/idl/floor_hook.json +9312 -0
- package/idl/floor_launch.json +10480 -0
- package/idl/floor_vesting.json +820 -0
- package/package.json +70 -4
- package/src/adapter.ts +487 -0
- package/src/adapters.ts +138 -0
- package/src/constants.ts +265 -0
- package/src/deployments.ts +144 -0
- package/src/events.ts +411 -0
- package/src/generated/client/floor_holders/constants/floorHolders.ts +21 -0
- package/src/generated/client/floor_holders/constants/index.ts +9 -0
- package/src/generated/client/floor_holders/errors/floorHolders.ts +66 -0
- package/src/generated/client/floor_holders/errors/index.ts +9 -0
- package/src/generated/client/floor_holders/events/claimsTableExtended.ts +38 -0
- package/src/generated/client/floor_holders/events/claimsTableRotated.ts +38 -0
- package/src/generated/client/floor_holders/events/holderClaimed.ts +38 -0
- package/src/generated/client/floor_holders/events/index.ts +14 -0
- package/src/generated/client/floor_holders/events/launchHooked.ts +38 -0
- package/src/generated/client/floor_holders/events/recordClosed.ts +38 -0
- package/src/generated/client/floor_holders/events/recordOpened.ts +38 -0
- package/src/generated/client/floor_holders/index.ts +14 -0
- package/src/generated/client/floor_holders/instructions/authorizeClaim.ts +168 -0
- package/src/generated/client/floor_holders/instructions/claim.ts +158 -0
- package/src/generated/client/floor_holders/instructions/closeRecord.ts +86 -0
- package/src/generated/client/floor_holders/instructions/execute.ts +83 -0
- package/src/generated/client/floor_holders/instructions/index.ts +18 -0
- package/src/generated/client/floor_holders/instructions/initLaunch.ts +163 -0
- package/src/generated/client/floor_holders/instructions/initializeClaimsRegistry.ts +107 -0
- package/src/generated/client/floor_holders/instructions/openRecord.ts +93 -0
- package/src/generated/client/floor_holders/instructions/rotateClaimsTable.ts +141 -0
- package/src/generated/client/floor_holders/instructions/sync.ts +80 -0
- package/src/generated/client/floor_holders/instructions/touch.ts +93 -0
- package/src/generated/client/floor_holders/pdas/claimsAltAuthority.ts +14 -0
- package/src/generated/client/floor_holders/pdas/claimsRegistry.ts +14 -0
- package/src/generated/client/floor_holders/pdas/holdersAuthority.ts +14 -0
- package/src/generated/client/floor_holders/pdas/index.ts +11 -0
- package/src/generated/client/floor_holders/programs/floorHolders.ts +103 -0
- package/src/generated/client/floor_holders/programs/index.ts +9 -0
- package/src/generated/client/floor_hook/accounts/floorPlatformPool.ts +80 -0
- package/src/generated/client/floor_hook/accounts/floorPool.ts +81 -0
- package/src/generated/client/floor_hook/accounts/hookConfig.ts +80 -0
- package/src/generated/client/floor_hook/accounts/index.ts +13 -0
- package/src/generated/client/floor_hook/accounts/platformTreasury.ts +80 -0
- package/src/generated/client/floor_hook/accounts/quotePolicy.ts +80 -0
- package/src/generated/client/floor_hook/constants/floorHook.ts +23 -0
- package/src/generated/client/floor_hook/constants/index.ts +9 -0
- package/src/generated/client/floor_hook/errors/floorHook.ts +178 -0
- package/src/generated/client/floor_hook/errors/index.ts +9 -0
- package/src/generated/client/floor_hook/events/allowAllQuotesSet.ts +38 -0
- package/src/generated/client/floor_hook/events/bidReplaced.ts +38 -0
- package/src/generated/client/floor_hook/events/creatorClaimed.ts +38 -0
- package/src/generated/client/floor_hook/events/creatorFee.ts +38 -0
- package/src/generated/client/floor_hook/events/floorPoolDesignated.ts +38 -0
- package/src/generated/client/floor_hook/events/floorUnbacked.ts +38 -0
- package/src/generated/client/floor_hook/events/holderPaid.ts +38 -0
- package/src/generated/client/floor_hook/events/hookConfigInitialized.ts +38 -0
- package/src/generated/client/floor_hook/events/hookGovernanceChanged.ts +38 -0
- package/src/generated/client/floor_hook/events/index.ts +53 -0
- package/src/generated/client/floor_hook/events/inventoryDonated.ts +38 -0
- package/src/generated/client/floor_hook/events/platformCut.ts +38 -0
- package/src/generated/client/floor_hook/events/platformPoolCredit.ts +38 -0
- package/src/generated/client/floor_hook/events/platformSwept.ts +38 -0
- package/src/generated/client/floor_hook/events/platformWithdrawn.ts +38 -0
- package/src/generated/client/floor_hook/events/polRaised.ts +38 -0
- package/src/generated/client/floor_hook/events/poolReferralTiers.ts +38 -0
- package/src/generated/client/floor_hook/events/poolRegistered.ts +38 -0
- package/src/generated/client/floor_hook/events/poolRewardsTerms.ts +38 -0
- package/src/generated/client/floor_hook/events/quoteAdmitted.ts +38 -0
- package/src/generated/client/floor_hook/events/quoteEconomicsSet.ts +38 -0
- package/src/generated/client/floor_hook/events/quoteListed.ts +38 -0
- package/src/generated/client/floor_hook/events/quoteObserved.ts +38 -0
- package/src/generated/client/floor_hook/events/quoteRetired.ts +38 -0
- package/src/generated/client/floor_hook/events/ratcheted.ts +38 -0
- package/src/generated/client/floor_hook/events/recipientResolved.ts +38 -0
- package/src/generated/client/floor_hook/events/referralFunded.ts +38 -0
- package/src/generated/client/floor_hook/events/referralPaid.ts +38 -0
- package/src/generated/client/floor_hook/events/referralTierPaid.ts +38 -0
- package/src/generated/client/floor_hook/events/skimmed.ts +38 -0
- package/src/generated/client/floor_hook/events/stairArrayReclaimed.ts +38 -0
- package/src/generated/client/floor_hook/events/stairFeesSwept.ts +38 -0
- package/src/generated/client/floor_hook/events/stairOwnerBooked.ts +38 -0
- package/src/generated/client/floor_hook/events/stairOwnersPlaced.ts +38 -0
- package/src/generated/client/floor_hook/events/stairPayeeResolved.ts +38 -0
- package/src/generated/client/floor_hook/events/stairPayeeSwept.ts +38 -0
- package/src/generated/client/floor_hook/events/stairRatcheted.ts +38 -0
- package/src/generated/client/floor_hook/events/stairRentReimbursed.ts +38 -0
- package/src/generated/client/floor_hook/events/stairTokensWithdrawn.ts +38 -0
- package/src/generated/client/floor_hook/events/teamSwept.ts +38 -0
- package/src/generated/client/floor_hook/events/teamWithdrawn.ts +38 -0
- package/src/generated/client/floor_hook/events/traderReferralBooked.ts +38 -0
- package/src/generated/client/floor_hook/events/traderReferralClaimed.ts +38 -0
- package/src/generated/client/floor_hook/events/traderReferralSwept.ts +38 -0
- package/src/generated/client/floor_hook/events/treasuryGovernanceChanged.ts +38 -0
- package/src/generated/client/floor_hook/events/vaultTokensFed.ts +38 -0
- package/src/generated/client/floor_hook/index.ts +16 -0
- package/src/generated/client/floor_hook/instructions/acceptHookGovernance.ts +107 -0
- package/src/generated/client/floor_hook/instructions/acceptTeamTreasuryGovernance.ts +113 -0
- package/src/generated/client/floor_hook/instructions/acceptTreasuryGovernance.ts +113 -0
- package/src/generated/client/floor_hook/instructions/afterActions.ts +95 -0
- package/src/generated/client/floor_hook/instructions/afterSwap.ts +101 -0
- package/src/generated/client/floor_hook/instructions/beforeInitialize.ts +94 -0
- package/src/generated/client/floor_hook/instructions/beforeSwap.ts +97 -0
- package/src/generated/client/floor_hook/instructions/claimCreatorFees.ts +138 -0
- package/src/generated/client/floor_hook/instructions/claimReferralFees.ts +138 -0
- package/src/generated/client/floor_hook/instructions/claimTraderReferral.ts +137 -0
- package/src/generated/client/floor_hook/instructions/clearTeamBuyBooks.ts +101 -0
- package/src/generated/client/floor_hook/instructions/creditFloorPool.ts +167 -0
- package/src/generated/client/floor_hook/instructions/creditTraderBucket.ts +111 -0
- package/src/generated/client/floor_hook/instructions/designateFloorPool.ts +125 -0
- package/src/generated/client/floor_hook/instructions/donateInventory.ts +97 -0
- package/src/generated/client/floor_hook/instructions/index.ts +55 -0
- package/src/generated/client/floor_hook/instructions/initializeHookConfig.ts +138 -0
- package/src/generated/client/floor_hook/instructions/initializeTeamTreasury.ts +132 -0
- package/src/generated/client/floor_hook/instructions/listQuote.ts +158 -0
- package/src/generated/client/floor_hook/instructions/observeQuote.ts +84 -0
- package/src/generated/client/floor_hook/instructions/openTraderBucket.ts +85 -0
- package/src/generated/client/floor_hook/instructions/openTraderRefVault.ts +131 -0
- package/src/generated/client/floor_hook/instructions/payHolder.ts +138 -0
- package/src/generated/client/floor_hook/instructions/payHolderAuthorized.ts +138 -0
- package/src/generated/client/floor_hook/instructions/preparePositions.ts +125 -0
- package/src/generated/client/floor_hook/instructions/ratchet.ts +170 -0
- package/src/generated/client/floor_hook/instructions/reclaimStairArray.ts +135 -0
- package/src/generated/client/floor_hook/instructions/registerPool.ts +211 -0
- package/src/generated/client/floor_hook/instructions/resolveRecipient.ts +119 -0
- package/src/generated/client/floor_hook/instructions/resolveStairPayee.ts +119 -0
- package/src/generated/client/floor_hook/instructions/retireQuote.ts +107 -0
- package/src/generated/client/floor_hook/instructions/seedFloor.ts +98 -0
- package/src/generated/client/floor_hook/instructions/seedInventory.ts +193 -0
- package/src/generated/client/floor_hook/instructions/seedLiquidity.ts +178 -0
- package/src/generated/client/floor_hook/instructions/setAllowAllQuotes.ts +114 -0
- package/src/generated/client/floor_hook/instructions/setGenesisStair.ts +122 -0
- package/src/generated/client/floor_hook/instructions/setHookGovernance.ts +117 -0
- package/src/generated/client/floor_hook/instructions/setQuoteEconomics.ts +119 -0
- package/src/generated/client/floor_hook/instructions/setTeamTreasuryGovernance.ts +123 -0
- package/src/generated/client/floor_hook/instructions/setTreasuryGovernance.ts +123 -0
- package/src/generated/client/floor_hook/instructions/sweepPlatformCut.ts +158 -0
- package/src/generated/client/floor_hook/instructions/sweepStairFees.ts +163 -0
- package/src/generated/client/floor_hook/instructions/sweepStairPayee.ts +148 -0
- package/src/generated/client/floor_hook/instructions/sweepTraderReferral.ts +134 -0
- package/src/generated/client/floor_hook/instructions/twapTick.ts +79 -0
- package/src/generated/client/floor_hook/instructions/withdrawPlatform.ts +132 -0
- package/src/generated/client/floor_hook/instructions/withdrawStairTokens.ts +161 -0
- package/src/generated/client/floor_hook/instructions/withdrawTeam.ts +132 -0
- package/src/generated/client/floor_hook/pdas/floorPlatformPool.ts +14 -0
- package/src/generated/client/floor_hook/pdas/hookAuthority.ts +14 -0
- package/src/generated/client/floor_hook/pdas/hookConfig.ts +14 -0
- package/src/generated/client/floor_hook/pdas/index.ts +16 -0
- package/src/generated/client/floor_hook/pdas/platformTreasury.ts +14 -0
- package/src/generated/client/floor_hook/pdas/quotePolicy.ts +18 -0
- package/src/generated/client/floor_hook/pdas/stairRent.ts +18 -0
- package/src/generated/client/floor_hook/pdas/teamTreasury.ts +14 -0
- package/src/generated/client/floor_hook/pdas/vaultAuthority.ts +14 -0
- package/src/generated/client/floor_hook/programs/floorHook.ts +305 -0
- package/src/generated/client/floor_hook/programs/index.ts +9 -0
- package/src/generated/client/floor_hook/types/actionResult.ts +26 -0
- package/src/generated/client/floor_hook/types/balanceDelta.ts +25 -0
- package/src/generated/client/floor_hook/types/hookAction.ts +36 -0
- package/src/generated/client/floor_hook/types/hookRecordV1.ts +26 -0
- package/src/generated/client/floor_hook/types/index.ts +18 -0
- package/src/generated/client/floor_hook/types/poolSnapshot.ts +25 -0
- package/src/generated/client/floor_hook/types/rentOwnerArg.ts +25 -0
- package/src/generated/client/floor_hook/types/slotArg.ts +25 -0
- package/src/generated/client/floor_hook/types/stairOwnerKindArg.ts +25 -0
- package/src/generated/client/floor_hook/types/swapParams.ts +25 -0
- package/src/generated/client/floor_hook/types/u128.ts +25 -0
- package/src/generated/client/floor_launch/accounts/buyerPosition.ts +80 -0
- package/src/generated/client/floor_launch/accounts/genesisSale.ts +80 -0
- package/src/generated/client/floor_launch/accounts/index.ts +15 -0
- package/src/generated/client/floor_launch/accounts/launch.ts +81 -0
- package/src/generated/client/floor_launch/accounts/launchConfig.ts +80 -0
- package/src/generated/client/floor_launch/accounts/presetRegistry.ts +81 -0
- package/src/generated/client/floor_launch/accounts/quoteWalk.ts +80 -0
- package/src/generated/client/floor_launch/accounts/registryEntry.ts +80 -0
- package/src/generated/client/floor_launch/constants/floorLaunch.ts +31 -0
- package/src/generated/client/floor_launch/constants/index.ts +9 -0
- package/src/generated/client/floor_launch/errors/floorLaunch.ts +236 -0
- package/src/generated/client/floor_launch/errors/index.ts +9 -0
- package/src/generated/client/floor_launch/events/allocationDustRouted.ts +38 -0
- package/src/generated/client/floor_launch/events/attestorChanged.ts +38 -0
- package/src/generated/client/floor_launch/events/bought.ts +38 -0
- package/src/generated/client/floor_launch/events/contributed.ts +38 -0
- package/src/generated/client/floor_launch/events/floorFeesApplied.ts +38 -0
- package/src/generated/client/floor_launch/events/floorShareUpdated.ts +38 -0
- package/src/generated/client/floor_launch/events/genesisAuthorityTransferStarted.ts +38 -0
- package/src/generated/client/floor_launch/events/genesisAuthorityTransferred.ts +38 -0
- package/src/generated/client/floor_launch/events/genesisClaimed.ts +38 -0
- package/src/generated/client/floor_launch/events/genesisGraduated.ts +38 -0
- package/src/generated/client/floor_launch/events/genesisInitialized.ts +38 -0
- package/src/generated/client/floor_launch/events/genesisRefunded.ts +38 -0
- package/src/generated/client/floor_launch/events/genesisStairTopUpdated.ts +38 -0
- package/src/generated/client/floor_launch/events/genesisWhitelistUpdated.ts +38 -0
- package/src/generated/client/floor_launch/events/governanceChanged.ts +38 -0
- package/src/generated/client/floor_launch/events/graduated.ts +38 -0
- package/src/generated/client/floor_launch/events/graduationPrepared.ts +38 -0
- package/src/generated/client/floor_launch/events/graduationRentClosed.ts +38 -0
- package/src/generated/client/floor_launch/events/graduationRentReserved.ts +38 -0
- package/src/generated/client/floor_launch/events/index.ts +52 -0
- package/src/generated/client/floor_launch/events/launchConfigInitialized.ts +38 -0
- package/src/generated/client/floor_launch/events/launchCreated.ts +38 -0
- package/src/generated/client/floor_launch/events/launchEconomicsUpdated.ts +38 -0
- package/src/generated/client/floor_launch/events/metadataBaseSet.ts +38 -0
- package/src/generated/client/floor_launch/events/metadataUriFilled.ts +38 -0
- package/src/generated/client/floor_launch/events/openingTick.ts +38 -0
- package/src/generated/client/floor_launch/events/payeeSlotsSet.ts +39 -0
- package/src/generated/client/floor_launch/events/presetAdded.ts +39 -0
- package/src/generated/client/floor_launch/events/presetAuthorityTransferStarted.ts +38 -0
- package/src/generated/client/floor_launch/events/presetAuthorityTransferred.ts +38 -0
- package/src/generated/client/floor_launch/events/presetEnabled.ts +38 -0
- package/src/generated/client/floor_launch/events/quoteChainPriced.ts +38 -0
- package/src/generated/client/floor_launch/events/recipientClaimed.ts +38 -0
- package/src/generated/client/floor_launch/events/saleTraderReferralBooked.ts +38 -0
- package/src/generated/client/floor_launch/events/saleTraderReferralSwept.ts +38 -0
- package/src/generated/client/floor_launch/events/scheduleUpdated.ts +38 -0
- package/src/generated/client/floor_launch/events/soldBack.ts +38 -0
- package/src/generated/client/floor_launch/events/stairPayeeClaimed.ts +38 -0
- package/src/generated/client/floor_launch/events/stairRentFunded.ts +38 -0
- package/src/generated/client/floor_launch/events/teamBought.ts +38 -0
- package/src/generated/client/floor_launch/events/teamBuySoldBack.ts +38 -0
- package/src/generated/client/floor_launch/events/teamFeesSet.ts +38 -0
- package/src/generated/client/floor_launch/events/teamVestedClaimed.ts +38 -0
- package/src/generated/client/floor_launch/events/traderLinked.ts +38 -0
- package/src/generated/client/floor_launch/events/vestingCreated.ts +38 -0
- package/src/generated/client/floor_launch/index.ts +16 -0
- package/src/generated/client/floor_launch/instructions/acceptGenesisAuthority.ts +104 -0
- package/src/generated/client/floor_launch/instructions/acceptGovernance.ts +104 -0
- package/src/generated/client/floor_launch/instructions/acceptPresetAuthority.ts +104 -0
- package/src/generated/client/floor_launch/instructions/addPreset.ts +115 -0
- package/src/generated/client/floor_launch/instructions/buy.ts +172 -0
- package/src/generated/client/floor_launch/instructions/claimGenesis.ts +149 -0
- package/src/generated/client/floor_launch/instructions/claimGenesisPayee.ts +140 -0
- package/src/generated/client/floor_launch/instructions/claimRecipient.ts +142 -0
- package/src/generated/client/floor_launch/instructions/claimTeamPayee.ts +142 -0
- package/src/generated/client/floor_launch/instructions/claimTeamVested.ts +135 -0
- package/src/generated/client/floor_launch/instructions/closeBuyerPosition.ts +101 -0
- package/src/generated/client/floor_launch/instructions/closeGraduationRent.ts +107 -0
- package/src/generated/client/floor_launch/instructions/closePreparedTickArray.ts +116 -0
- package/src/generated/client/floor_launch/instructions/closeQuoteWalk.ts +74 -0
- package/src/generated/client/floor_launch/instructions/contribute.ts +142 -0
- package/src/generated/client/floor_launch/instructions/createLaunch.ts +318 -0
- package/src/generated/client/floor_launch/instructions/endGenesisSale.ts +125 -0
- package/src/generated/client/floor_launch/instructions/fillMetadataUri.ts +137 -0
- package/src/generated/client/floor_launch/instructions/flushAllocationDust.ts +140 -0
- package/src/generated/client/floor_launch/instructions/flushFloorFees.ts +158 -0
- package/src/generated/client/floor_launch/instructions/fundStairRent.ts +110 -0
- package/src/generated/client/floor_launch/instructions/graduate.ts +140 -0
- package/src/generated/client/floor_launch/instructions/graduateGenesis.ts +143 -0
- package/src/generated/client/floor_launch/instructions/index.ts +56 -0
- package/src/generated/client/floor_launch/instructions/initGenesis.ts +171 -0
- package/src/generated/client/floor_launch/instructions/initPresetRegistry.ts +122 -0
- package/src/generated/client/floor_launch/instructions/initializeLaunchConfig.ts +150 -0
- package/src/generated/client/floor_launch/instructions/linkTrader.ts +153 -0
- package/src/generated/client/floor_launch/instructions/lockGenesis.ts +155 -0
- package/src/generated/client/floor_launch/instructions/openSaleTraderReferral.ts +122 -0
- package/src/generated/client/floor_launch/instructions/prepareGraduation.ts +125 -0
- package/src/generated/client/floor_launch/instructions/refundGenesis.ts +119 -0
- package/src/generated/client/floor_launch/instructions/sellBack.ts +150 -0
- package/src/generated/client/floor_launch/instructions/sellBackWsol.ts +150 -0
- package/src/generated/client/floor_launch/instructions/setAttestor.ts +123 -0
- package/src/generated/client/floor_launch/instructions/setGenesisFloorShare.ts +114 -0
- package/src/generated/client/floor_launch/instructions/setGenesisSchedule.ts +116 -0
- package/src/generated/client/floor_launch/instructions/setGenesisStairTop.ts +114 -0
- package/src/generated/client/floor_launch/instructions/setGenesisWhitelist.ts +116 -0
- package/src/generated/client/floor_launch/instructions/setGovernance.ts +114 -0
- package/src/generated/client/floor_launch/instructions/setLaunchEconomics.ts +121 -0
- package/src/generated/client/floor_launch/instructions/setMetadataBase.ts +114 -0
- package/src/generated/client/floor_launch/instructions/setPresetAuthority.ts +114 -0
- package/src/generated/client/floor_launch/instructions/setPresetEnabled.ts +116 -0
- package/src/generated/client/floor_launch/instructions/setTeamFees.ts +119 -0
- package/src/generated/client/floor_launch/instructions/sweepSaleTraderReferral.ts +116 -0
- package/src/generated/client/floor_launch/instructions/teamBuySellBack.ts +122 -0
- package/src/generated/client/floor_launch/instructions/transferGenesisAuthority.ts +114 -0
- package/src/generated/client/floor_launch/instructions/walkQuoteChain.ts +122 -0
- package/src/generated/client/floor_launch/pdas/buyerPosition.ts +19 -0
- package/src/generated/client/floor_launch/pdas/contributeContribution.ts +18 -0
- package/src/generated/client/floor_launch/pdas/contribution.ts +18 -0
- package/src/generated/client/floor_launch/pdas/creatorTraderLink.ts +18 -0
- package/src/generated/client/floor_launch/pdas/genesisSale.ts +14 -0
- package/src/generated/client/floor_launch/pdas/graduationRent.ts +18 -0
- package/src/generated/client/floor_launch/pdas/index.ts +26 -0
- package/src/generated/client/floor_launch/pdas/launch.ts +18 -0
- package/src/generated/client/floor_launch/pdas/launchAuthority.ts +14 -0
- package/src/generated/client/floor_launch/pdas/launchConfig.ts +14 -0
- package/src/generated/client/floor_launch/pdas/lockAuthority.ts +14 -0
- package/src/generated/client/floor_launch/pdas/mint.ts +19 -0
- package/src/generated/client/floor_launch/pdas/mintAuthority.ts +14 -0
- package/src/generated/client/floor_launch/pdas/presetRegistry.ts +14 -0
- package/src/generated/client/floor_launch/pdas/quoteWalk.ts +19 -0
- package/src/generated/client/floor_launch/pdas/registryEntry.ts +18 -0
- package/src/generated/client/floor_launch/pdas/saleVault.ts +18 -0
- package/src/generated/client/floor_launch/pdas/traderLink.ts +18 -0
- package/src/generated/client/floor_launch/pdas/traderRefSale.ts +18 -0
- package/src/generated/client/floor_launch/programs/floorLaunch.ts +310 -0
- package/src/generated/client/floor_launch/programs/index.ts +9 -0
- package/src/generated/client/floor_launch/types/index.ts +12 -0
- package/src/generated/client/floor_launch/types/presetRowArgs.ts +25 -0
- package/src/generated/client/floor_launch/types/presetRowZc.ts +25 -0
- package/src/generated/client/floor_launch/types/slotArg.ts +25 -0
- package/src/generated/client/floor_launch/types/u128.ts +25 -0
- package/src/generated/client/floor_vesting/accounts/index.ts +9 -0
- package/src/generated/client/floor_vesting/accounts/vestingSchedule.ts +80 -0
- package/src/generated/client/floor_vesting/errors/floorVesting.ts +56 -0
- package/src/generated/client/floor_vesting/errors/index.ts +9 -0
- package/src/generated/client/floor_vesting/events/absoluteSchedule.ts +38 -0
- package/src/generated/client/floor_vesting/events/claimed.ts +38 -0
- package/src/generated/client/floor_vesting/events/index.ts +12 -0
- package/src/generated/client/floor_vesting/events/scheduleClosed.ts +38 -0
- package/src/generated/client/floor_vesting/events/scheduleCreated.ts +38 -0
- package/src/generated/client/floor_vesting/index.ts +14 -0
- package/src/generated/client/floor_vesting/instructions/claim.ts +128 -0
- package/src/generated/client/floor_vesting/instructions/closeSchedule.ts +135 -0
- package/src/generated/client/floor_vesting/instructions/createSchedule.ts +159 -0
- package/src/generated/client/floor_vesting/instructions/createScheduleAt.ts +164 -0
- package/src/generated/client/floor_vesting/instructions/index.ts +12 -0
- package/src/generated/client/floor_vesting/pdas/escrow.ts +18 -0
- package/src/generated/client/floor_vesting/pdas/index.ts +11 -0
- package/src/generated/client/floor_vesting/pdas/schedule.ts +19 -0
- package/src/generated/client/floor_vesting/pdas/vestingAuthority.ts +14 -0
- package/src/generated/client/floor_vesting/programs/floorVesting.ts +88 -0
- package/src/generated/client/floor_vesting/programs/index.ts +9 -0
- package/src/generated/deployments.ts +91 -0
- package/src/generated/idls.ts +17 -0
- package/src/generated/wasm.ts +5 -0
- package/src/holders.ts +168 -0
- package/src/idl.ts +20 -0
- package/src/index.ts +52 -0
- package/src/layouts.ts +763 -0
- package/src/pda.ts +122 -0
- package/src/predict.ts +540 -0
- package/src/quote/quoter.ts +439 -0
- package/src/quote/wasm.ts +43 -0
- package/src/slots.ts +152 -0
- package/src/stateView.ts +289 -0
- package/src/tickmath.ts +120 -0
- package/src/twap.ts +130 -0
- package/src/tx/builders.ts +794 -0
- package/src/tx/common.ts +60 -0
- package/src/tx/instructions.ts +425 -0
- package/src/tx/launchAlt.ts +64 -0
- package/src/tx/traderRef.ts +195 -0
- package/wasm/SHA256SUMS +1 -0
- package/wasm/floor_quote.d.ts +79 -0
- package/wasm/floor_quote.js +621 -0
- package/wasm/floor_quote_bg.wasm +0 -0
- package/wasm/floor_quote_bg.wasm.d.ts +22 -0
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { combineCodec, fixDecoderSize, fixEncoderSize, getBytesDecoder, getBytesEncoder, getStructDecoder, getStructEncoder, getU64Decoder, getU64Encoder, SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, SolanaError, transformEncoder, type AccountMeta, type AccountSignerMeta, type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlySignerAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount } from '@solana/kit';
|
|
10
|
+
import { getAccountMetaFactory, type ResolvedInstructionAccount } from '@solana/kit/program-client-core';
|
|
11
|
+
import { findHookAuthorityPda } from '../pdas/index.js';
|
|
12
|
+
import { FLOOR_HOOK_PROGRAM_ADDRESS } from '../programs/index.js';
|
|
13
|
+
|
|
14
|
+
export const PAY_HOLDER_DISCRIMINATOR: ReadonlyUint8Array = new Uint8Array([200, 10, 93, 192, 80, 148, 8, 75]);
|
|
15
|
+
|
|
16
|
+
export function getPayHolderDiscriminatorBytes(): ReadonlyUint8Array { return fixEncoderSize(getBytesEncoder(), 8).encode(PAY_HOLDER_DISCRIMINATOR); }
|
|
17
|
+
|
|
18
|
+
export type PayHolderInstruction<TProgram extends string = typeof FLOOR_HOOK_PROGRAM_ADDRESS, TAccountHoldersAuthority extends string | AccountMeta<string> = string, TAccountFloorPool extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountVault0 extends string | AccountMeta<string> = string, TAccountDestination extends string | AccountMeta<string> = string, TAccountQuoteMint extends string | AccountMeta<string> = string, TAccountSplToken extends string | AccountMeta<string> = string, TAccountCarpenterAmm extends string | AccountMeta<string> = string, TAccountHookAuthority extends string | AccountMeta<string> = string, TAccountAmmEventAuthority extends string | AccountMeta<string> = string, TAccountEventAuthority extends string | AccountMeta<string> = string, TAccountProgram extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> =
|
|
19
|
+
Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountHoldersAuthority extends string ? ReadonlySignerAccount<TAccountHoldersAuthority> & AccountSignerMeta<TAccountHoldersAuthority> : TAccountHoldersAuthority, TAccountFloorPool extends string ? WritableAccount<TAccountFloorPool> : TAccountFloorPool, TAccountPool extends string ? WritableAccount<TAccountPool> : TAccountPool, TAccountVault0 extends string ? WritableAccount<TAccountVault0> : TAccountVault0, TAccountDestination extends string ? WritableAccount<TAccountDestination> : TAccountDestination, TAccountQuoteMint extends string ? ReadonlyAccount<TAccountQuoteMint> : TAccountQuoteMint, TAccountSplToken extends string ? ReadonlyAccount<TAccountSplToken> : TAccountSplToken, TAccountCarpenterAmm extends string ? ReadonlyAccount<TAccountCarpenterAmm> : TAccountCarpenterAmm, TAccountHookAuthority extends string ? ReadonlyAccount<TAccountHookAuthority> : TAccountHookAuthority, TAccountAmmEventAuthority extends string ? ReadonlyAccount<TAccountAmmEventAuthority> : TAccountAmmEventAuthority, TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority, TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram, ...TRemainingAccounts]>;
|
|
20
|
+
|
|
21
|
+
export type PayHolderInstructionData = { discriminator: ReadonlyUint8Array; amount: bigint; };
|
|
22
|
+
|
|
23
|
+
export type PayHolderInstructionDataArgs = { amount: number | bigint; };
|
|
24
|
+
|
|
25
|
+
export function getPayHolderInstructionDataEncoder(): FixedSizeEncoder<PayHolderInstructionDataArgs> {
|
|
26
|
+
return transformEncoder(getStructEncoder([['discriminator', fixEncoderSize(getBytesEncoder(), 8)], ['amount', getU64Encoder()]]), (value) => ({ ...value, discriminator: PAY_HOLDER_DISCRIMINATOR }));
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export function getPayHolderInstructionDataDecoder(): FixedSizeDecoder<PayHolderInstructionData> {
|
|
30
|
+
return getStructDecoder([['discriminator', fixDecoderSize(getBytesDecoder(), 8)], ['amount', getU64Decoder()]]);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export function getPayHolderInstructionDataCodec(): FixedSizeCodec<PayHolderInstructionDataArgs, PayHolderInstructionData> {
|
|
34
|
+
return combineCodec(getPayHolderInstructionDataEncoder(), getPayHolderInstructionDataDecoder());
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export type PayHolderAsyncInput<TAccountHoldersAuthority extends string = string, TAccountFloorPool extends string = string, TAccountPool extends string = string, TAccountVault0 extends string = string, TAccountDestination extends string = string, TAccountQuoteMint extends string = string, TAccountSplToken extends string = string, TAccountCarpenterAmm extends string = string, TAccountHookAuthority extends string = string, TAccountAmmEventAuthority extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
|
|
38
|
+
holdersAuthority: TransactionSigner<TAccountHoldersAuthority>;
|
|
39
|
+
floorPool: Address<TAccountFloorPool>;
|
|
40
|
+
pool: Address<TAccountPool>;
|
|
41
|
+
vault0: Address<TAccountVault0>;
|
|
42
|
+
destination: Address<TAccountDestination>;
|
|
43
|
+
quoteMint: Address<TAccountQuoteMint>;
|
|
44
|
+
splToken: Address<TAccountSplToken>;
|
|
45
|
+
carpenterAmm: Address<TAccountCarpenterAmm>;
|
|
46
|
+
hookAuthority?: Address<TAccountHookAuthority>;
|
|
47
|
+
ammEventAuthority: Address<TAccountAmmEventAuthority>;
|
|
48
|
+
eventAuthority: Address<TAccountEventAuthority>;
|
|
49
|
+
program: Address<TAccountProgram>;
|
|
50
|
+
amount: PayHolderInstructionDataArgs["amount"];
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export async function getPayHolderInstructionAsync<TAccountHoldersAuthority extends string, TAccountFloorPool extends string, TAccountPool extends string, TAccountVault0 extends string, TAccountDestination extends string, TAccountQuoteMint extends string, TAccountSplToken extends string, TAccountCarpenterAmm extends string, TAccountHookAuthority extends string, TAccountAmmEventAuthority extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof FLOOR_HOOK_PROGRAM_ADDRESS>(input: PayHolderAsyncInput<TAccountHoldersAuthority, TAccountFloorPool, TAccountPool, TAccountVault0, TAccountDestination, TAccountQuoteMint, TAccountSplToken, TAccountCarpenterAmm, TAccountHookAuthority, TAccountAmmEventAuthority, TAccountEventAuthority, TAccountProgram>, config?: { programAddress?: TProgramAddress } ): Promise<PayHolderInstruction<TProgramAddress, TAccountHoldersAuthority, TAccountFloorPool, TAccountPool, TAccountVault0, TAccountDestination, TAccountQuoteMint, TAccountSplToken, TAccountCarpenterAmm, TAccountHookAuthority, TAccountAmmEventAuthority, TAccountEventAuthority, TAccountProgram>> {
|
|
54
|
+
// Program address.
|
|
55
|
+
const programAddress = config?.programAddress ?? FLOOR_HOOK_PROGRAM_ADDRESS;
|
|
56
|
+
|
|
57
|
+
// Original accounts.
|
|
58
|
+
const originalAccounts = { holdersAuthority: { value: input.holdersAuthority ?? null, isWritable: false }, floorPool: { value: input.floorPool ?? null, isWritable: true }, pool: { value: input.pool ?? null, isWritable: true }, vault0: { value: input.vault0 ?? null, isWritable: true }, destination: { value: input.destination ?? null, isWritable: true }, quoteMint: { value: input.quoteMint ?? null, isWritable: false }, splToken: { value: input.splToken ?? null, isWritable: false }, carpenterAmm: { value: input.carpenterAmm ?? null, isWritable: false }, hookAuthority: { value: input.hookAuthority ?? null, isWritable: false }, ammEventAuthority: { value: input.ammEventAuthority ?? null, isWritable: false }, eventAuthority: { value: input.eventAuthority ?? null, isWritable: false }, program: { value: input.program ?? null, isWritable: false } }
|
|
59
|
+
const accounts = originalAccounts as Record<keyof typeof originalAccounts, ResolvedInstructionAccount>;
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
// Original args.
|
|
63
|
+
const args = { ...input, };
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
// Resolve default values.
|
|
67
|
+
if (!accounts.hookAuthority.value) {
|
|
68
|
+
accounts.hookAuthority.value = await findHookAuthorityPda({ programAddress });
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
const getAccountMeta = getAccountMetaFactory(programAddress, 'programId');
|
|
72
|
+
return Object.freeze({ accounts: [getAccountMeta("holdersAuthority", accounts.holdersAuthority), getAccountMeta("floorPool", accounts.floorPool), getAccountMeta("pool", accounts.pool), getAccountMeta("vault0", accounts.vault0), getAccountMeta("destination", accounts.destination), getAccountMeta("quoteMint", accounts.quoteMint), getAccountMeta("splToken", accounts.splToken), getAccountMeta("carpenterAmm", accounts.carpenterAmm), getAccountMeta("hookAuthority", accounts.hookAuthority), getAccountMeta("ammEventAuthority", accounts.ammEventAuthority), getAccountMeta("eventAuthority", accounts.eventAuthority), getAccountMeta("program", accounts.program)], data: getPayHolderInstructionDataEncoder().encode(args as PayHolderInstructionDataArgs), programAddress } as PayHolderInstruction<TProgramAddress, TAccountHoldersAuthority, TAccountFloorPool, TAccountPool, TAccountVault0, TAccountDestination, TAccountQuoteMint, TAccountSplToken, TAccountCarpenterAmm, TAccountHookAuthority, TAccountAmmEventAuthority, TAccountEventAuthority, TAccountProgram>);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export type PayHolderInput<TAccountHoldersAuthority extends string = string, TAccountFloorPool extends string = string, TAccountPool extends string = string, TAccountVault0 extends string = string, TAccountDestination extends string = string, TAccountQuoteMint extends string = string, TAccountSplToken extends string = string, TAccountCarpenterAmm extends string = string, TAccountHookAuthority extends string = string, TAccountAmmEventAuthority extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
|
|
76
|
+
holdersAuthority: TransactionSigner<TAccountHoldersAuthority>;
|
|
77
|
+
floorPool: Address<TAccountFloorPool>;
|
|
78
|
+
pool: Address<TAccountPool>;
|
|
79
|
+
vault0: Address<TAccountVault0>;
|
|
80
|
+
destination: Address<TAccountDestination>;
|
|
81
|
+
quoteMint: Address<TAccountQuoteMint>;
|
|
82
|
+
splToken: Address<TAccountSplToken>;
|
|
83
|
+
carpenterAmm: Address<TAccountCarpenterAmm>;
|
|
84
|
+
hookAuthority: Address<TAccountHookAuthority>;
|
|
85
|
+
ammEventAuthority: Address<TAccountAmmEventAuthority>;
|
|
86
|
+
eventAuthority: Address<TAccountEventAuthority>;
|
|
87
|
+
program: Address<TAccountProgram>;
|
|
88
|
+
amount: PayHolderInstructionDataArgs["amount"];
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function getPayHolderInstruction<TAccountHoldersAuthority extends string, TAccountFloorPool extends string, TAccountPool extends string, TAccountVault0 extends string, TAccountDestination extends string, TAccountQuoteMint extends string, TAccountSplToken extends string, TAccountCarpenterAmm extends string, TAccountHookAuthority extends string, TAccountAmmEventAuthority extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof FLOOR_HOOK_PROGRAM_ADDRESS>(input: PayHolderInput<TAccountHoldersAuthority, TAccountFloorPool, TAccountPool, TAccountVault0, TAccountDestination, TAccountQuoteMint, TAccountSplToken, TAccountCarpenterAmm, TAccountHookAuthority, TAccountAmmEventAuthority, TAccountEventAuthority, TAccountProgram>, config?: { programAddress?: TProgramAddress } ): PayHolderInstruction<TProgramAddress, TAccountHoldersAuthority, TAccountFloorPool, TAccountPool, TAccountVault0, TAccountDestination, TAccountQuoteMint, TAccountSplToken, TAccountCarpenterAmm, TAccountHookAuthority, TAccountAmmEventAuthority, TAccountEventAuthority, TAccountProgram> {
|
|
92
|
+
// Program address.
|
|
93
|
+
const programAddress = config?.programAddress ?? FLOOR_HOOK_PROGRAM_ADDRESS;
|
|
94
|
+
|
|
95
|
+
// Original accounts.
|
|
96
|
+
const originalAccounts = { holdersAuthority: { value: input.holdersAuthority ?? null, isWritable: false }, floorPool: { value: input.floorPool ?? null, isWritable: true }, pool: { value: input.pool ?? null, isWritable: true }, vault0: { value: input.vault0 ?? null, isWritable: true }, destination: { value: input.destination ?? null, isWritable: true }, quoteMint: { value: input.quoteMint ?? null, isWritable: false }, splToken: { value: input.splToken ?? null, isWritable: false }, carpenterAmm: { value: input.carpenterAmm ?? null, isWritable: false }, hookAuthority: { value: input.hookAuthority ?? null, isWritable: false }, ammEventAuthority: { value: input.ammEventAuthority ?? null, isWritable: false }, eventAuthority: { value: input.eventAuthority ?? null, isWritable: false }, program: { value: input.program ?? null, isWritable: false } }
|
|
97
|
+
const accounts = originalAccounts as Record<keyof typeof originalAccounts, ResolvedInstructionAccount>;
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
// Original args.
|
|
101
|
+
const args = { ...input, };
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
const getAccountMeta = getAccountMetaFactory(programAddress, 'programId');
|
|
107
|
+
return Object.freeze({ accounts: [getAccountMeta("holdersAuthority", accounts.holdersAuthority), getAccountMeta("floorPool", accounts.floorPool), getAccountMeta("pool", accounts.pool), getAccountMeta("vault0", accounts.vault0), getAccountMeta("destination", accounts.destination), getAccountMeta("quoteMint", accounts.quoteMint), getAccountMeta("splToken", accounts.splToken), getAccountMeta("carpenterAmm", accounts.carpenterAmm), getAccountMeta("hookAuthority", accounts.hookAuthority), getAccountMeta("ammEventAuthority", accounts.ammEventAuthority), getAccountMeta("eventAuthority", accounts.eventAuthority), getAccountMeta("program", accounts.program)], data: getPayHolderInstructionDataEncoder().encode(args as PayHolderInstructionDataArgs), programAddress } as PayHolderInstruction<TProgramAddress, TAccountHoldersAuthority, TAccountFloorPool, TAccountPool, TAccountVault0, TAccountDestination, TAccountQuoteMint, TAccountSplToken, TAccountCarpenterAmm, TAccountHookAuthority, TAccountAmmEventAuthority, TAccountEventAuthority, TAccountProgram>);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export type ParsedPayHolderInstruction<TProgram extends string = typeof FLOOR_HOOK_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = { programAddress: Address<TProgram>;
|
|
111
|
+
accounts: {
|
|
112
|
+
holdersAuthority: TAccountMetas[0];
|
|
113
|
+
floorPool: TAccountMetas[1];
|
|
114
|
+
pool: TAccountMetas[2];
|
|
115
|
+
vault0: TAccountMetas[3];
|
|
116
|
+
destination: TAccountMetas[4];
|
|
117
|
+
quoteMint: TAccountMetas[5];
|
|
118
|
+
splToken: TAccountMetas[6];
|
|
119
|
+
carpenterAmm: TAccountMetas[7];
|
|
120
|
+
hookAuthority: TAccountMetas[8];
|
|
121
|
+
ammEventAuthority: TAccountMetas[9];
|
|
122
|
+
eventAuthority: TAccountMetas[10];
|
|
123
|
+
program: TAccountMetas[11];
|
|
124
|
+
};
|
|
125
|
+
data: PayHolderInstructionData; };
|
|
126
|
+
|
|
127
|
+
export function parsePayHolderInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedPayHolderInstruction<TProgram, TAccountMetas> {
|
|
128
|
+
if (instruction.accounts.length < 12) {
|
|
129
|
+
throw new SolanaError(SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, { actualAccountMetas: instruction.accounts.length, expectedAccountMetas: 12 });
|
|
130
|
+
}
|
|
131
|
+
let accountIndex = 0;
|
|
132
|
+
const getNextAccount = () => {
|
|
133
|
+
const accountMeta = (instruction.accounts as TAccountMetas)[accountIndex]!;
|
|
134
|
+
accountIndex += 1;
|
|
135
|
+
return accountMeta;
|
|
136
|
+
}
|
|
137
|
+
return { programAddress: instruction.programAddress, accounts: { holdersAuthority: getNextAccount(), floorPool: getNextAccount(), pool: getNextAccount(), vault0: getNextAccount(), destination: getNextAccount(), quoteMint: getNextAccount(), splToken: getNextAccount(), carpenterAmm: getNextAccount(), hookAuthority: getNextAccount(), ammEventAuthority: getNextAccount(), eventAuthority: getNextAccount(), program: getNextAccount() }, data: getPayHolderInstructionDataDecoder().decode(instruction.data) };
|
|
138
|
+
}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { combineCodec, fixDecoderSize, fixEncoderSize, getBytesDecoder, getBytesEncoder, getStructDecoder, getStructEncoder, getU64Decoder, getU64Encoder, SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, SolanaError, transformEncoder, type AccountMeta, type AccountSignerMeta, type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlySignerAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount } from '@solana/kit';
|
|
10
|
+
import { getAccountMetaFactory, type ResolvedInstructionAccount } from '@solana/kit/program-client-core';
|
|
11
|
+
import { findHookAuthorityPda } from '../pdas/index.js';
|
|
12
|
+
import { FLOOR_HOOK_PROGRAM_ADDRESS } from '../programs/index.js';
|
|
13
|
+
|
|
14
|
+
export const PAY_HOLDER_AUTHORIZED_DISCRIMINATOR: ReadonlyUint8Array = new Uint8Array([90, 160, 177, 182, 35, 33, 10, 229]);
|
|
15
|
+
|
|
16
|
+
export function getPayHolderAuthorizedDiscriminatorBytes(): ReadonlyUint8Array { return fixEncoderSize(getBytesEncoder(), 8).encode(PAY_HOLDER_AUTHORIZED_DISCRIMINATOR); }
|
|
17
|
+
|
|
18
|
+
export type PayHolderAuthorizedInstruction<TProgram extends string = typeof FLOOR_HOOK_PROGRAM_ADDRESS, TAccountHoldersAuthority extends string | AccountMeta<string> = string, TAccountFloorPool extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountVault0 extends string | AccountMeta<string> = string, TAccountDestination extends string | AccountMeta<string> = string, TAccountQuoteMint extends string | AccountMeta<string> = string, TAccountSplToken extends string | AccountMeta<string> = string, TAccountCarpenterAmm extends string | AccountMeta<string> = string, TAccountHookAuthority extends string | AccountMeta<string> = string, TAccountAmmEventAuthority extends string | AccountMeta<string> = string, TAccountEventAuthority extends string | AccountMeta<string> = string, TAccountProgram extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> =
|
|
19
|
+
Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountHoldersAuthority extends string ? ReadonlySignerAccount<TAccountHoldersAuthority> & AccountSignerMeta<TAccountHoldersAuthority> : TAccountHoldersAuthority, TAccountFloorPool extends string ? WritableAccount<TAccountFloorPool> : TAccountFloorPool, TAccountPool extends string ? WritableAccount<TAccountPool> : TAccountPool, TAccountVault0 extends string ? WritableAccount<TAccountVault0> : TAccountVault0, TAccountDestination extends string ? WritableAccount<TAccountDestination> : TAccountDestination, TAccountQuoteMint extends string ? ReadonlyAccount<TAccountQuoteMint> : TAccountQuoteMint, TAccountSplToken extends string ? ReadonlyAccount<TAccountSplToken> : TAccountSplToken, TAccountCarpenterAmm extends string ? ReadonlyAccount<TAccountCarpenterAmm> : TAccountCarpenterAmm, TAccountHookAuthority extends string ? ReadonlyAccount<TAccountHookAuthority> : TAccountHookAuthority, TAccountAmmEventAuthority extends string ? ReadonlyAccount<TAccountAmmEventAuthority> : TAccountAmmEventAuthority, TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority, TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram, ...TRemainingAccounts]>;
|
|
20
|
+
|
|
21
|
+
export type PayHolderAuthorizedInstructionData = { discriminator: ReadonlyUint8Array; amount: bigint; };
|
|
22
|
+
|
|
23
|
+
export type PayHolderAuthorizedInstructionDataArgs = { amount: number | bigint; };
|
|
24
|
+
|
|
25
|
+
export function getPayHolderAuthorizedInstructionDataEncoder(): FixedSizeEncoder<PayHolderAuthorizedInstructionDataArgs> {
|
|
26
|
+
return transformEncoder(getStructEncoder([['discriminator', fixEncoderSize(getBytesEncoder(), 8)], ['amount', getU64Encoder()]]), (value) => ({ ...value, discriminator: PAY_HOLDER_AUTHORIZED_DISCRIMINATOR }));
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export function getPayHolderAuthorizedInstructionDataDecoder(): FixedSizeDecoder<PayHolderAuthorizedInstructionData> {
|
|
30
|
+
return getStructDecoder([['discriminator', fixDecoderSize(getBytesDecoder(), 8)], ['amount', getU64Decoder()]]);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export function getPayHolderAuthorizedInstructionDataCodec(): FixedSizeCodec<PayHolderAuthorizedInstructionDataArgs, PayHolderAuthorizedInstructionData> {
|
|
34
|
+
return combineCodec(getPayHolderAuthorizedInstructionDataEncoder(), getPayHolderAuthorizedInstructionDataDecoder());
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export type PayHolderAuthorizedAsyncInput<TAccountHoldersAuthority extends string = string, TAccountFloorPool extends string = string, TAccountPool extends string = string, TAccountVault0 extends string = string, TAccountDestination extends string = string, TAccountQuoteMint extends string = string, TAccountSplToken extends string = string, TAccountCarpenterAmm extends string = string, TAccountHookAuthority extends string = string, TAccountAmmEventAuthority extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
|
|
38
|
+
holdersAuthority: TransactionSigner<TAccountHoldersAuthority>;
|
|
39
|
+
floorPool: Address<TAccountFloorPool>;
|
|
40
|
+
pool: Address<TAccountPool>;
|
|
41
|
+
vault0: Address<TAccountVault0>;
|
|
42
|
+
destination: Address<TAccountDestination>;
|
|
43
|
+
quoteMint: Address<TAccountQuoteMint>;
|
|
44
|
+
splToken: Address<TAccountSplToken>;
|
|
45
|
+
carpenterAmm: Address<TAccountCarpenterAmm>;
|
|
46
|
+
hookAuthority?: Address<TAccountHookAuthority>;
|
|
47
|
+
ammEventAuthority: Address<TAccountAmmEventAuthority>;
|
|
48
|
+
eventAuthority: Address<TAccountEventAuthority>;
|
|
49
|
+
program: Address<TAccountProgram>;
|
|
50
|
+
amount: PayHolderAuthorizedInstructionDataArgs["amount"];
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export async function getPayHolderAuthorizedInstructionAsync<TAccountHoldersAuthority extends string, TAccountFloorPool extends string, TAccountPool extends string, TAccountVault0 extends string, TAccountDestination extends string, TAccountQuoteMint extends string, TAccountSplToken extends string, TAccountCarpenterAmm extends string, TAccountHookAuthority extends string, TAccountAmmEventAuthority extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof FLOOR_HOOK_PROGRAM_ADDRESS>(input: PayHolderAuthorizedAsyncInput<TAccountHoldersAuthority, TAccountFloorPool, TAccountPool, TAccountVault0, TAccountDestination, TAccountQuoteMint, TAccountSplToken, TAccountCarpenterAmm, TAccountHookAuthority, TAccountAmmEventAuthority, TAccountEventAuthority, TAccountProgram>, config?: { programAddress?: TProgramAddress } ): Promise<PayHolderAuthorizedInstruction<TProgramAddress, TAccountHoldersAuthority, TAccountFloorPool, TAccountPool, TAccountVault0, TAccountDestination, TAccountQuoteMint, TAccountSplToken, TAccountCarpenterAmm, TAccountHookAuthority, TAccountAmmEventAuthority, TAccountEventAuthority, TAccountProgram>> {
|
|
54
|
+
// Program address.
|
|
55
|
+
const programAddress = config?.programAddress ?? FLOOR_HOOK_PROGRAM_ADDRESS;
|
|
56
|
+
|
|
57
|
+
// Original accounts.
|
|
58
|
+
const originalAccounts = { holdersAuthority: { value: input.holdersAuthority ?? null, isWritable: false }, floorPool: { value: input.floorPool ?? null, isWritable: true }, pool: { value: input.pool ?? null, isWritable: true }, vault0: { value: input.vault0 ?? null, isWritable: true }, destination: { value: input.destination ?? null, isWritable: true }, quoteMint: { value: input.quoteMint ?? null, isWritable: false }, splToken: { value: input.splToken ?? null, isWritable: false }, carpenterAmm: { value: input.carpenterAmm ?? null, isWritable: false }, hookAuthority: { value: input.hookAuthority ?? null, isWritable: false }, ammEventAuthority: { value: input.ammEventAuthority ?? null, isWritable: false }, eventAuthority: { value: input.eventAuthority ?? null, isWritable: false }, program: { value: input.program ?? null, isWritable: false } }
|
|
59
|
+
const accounts = originalAccounts as Record<keyof typeof originalAccounts, ResolvedInstructionAccount>;
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
// Original args.
|
|
63
|
+
const args = { ...input, };
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
// Resolve default values.
|
|
67
|
+
if (!accounts.hookAuthority.value) {
|
|
68
|
+
accounts.hookAuthority.value = await findHookAuthorityPda({ programAddress });
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
const getAccountMeta = getAccountMetaFactory(programAddress, 'programId');
|
|
72
|
+
return Object.freeze({ accounts: [getAccountMeta("holdersAuthority", accounts.holdersAuthority), getAccountMeta("floorPool", accounts.floorPool), getAccountMeta("pool", accounts.pool), getAccountMeta("vault0", accounts.vault0), getAccountMeta("destination", accounts.destination), getAccountMeta("quoteMint", accounts.quoteMint), getAccountMeta("splToken", accounts.splToken), getAccountMeta("carpenterAmm", accounts.carpenterAmm), getAccountMeta("hookAuthority", accounts.hookAuthority), getAccountMeta("ammEventAuthority", accounts.ammEventAuthority), getAccountMeta("eventAuthority", accounts.eventAuthority), getAccountMeta("program", accounts.program)], data: getPayHolderAuthorizedInstructionDataEncoder().encode(args as PayHolderAuthorizedInstructionDataArgs), programAddress } as PayHolderAuthorizedInstruction<TProgramAddress, TAccountHoldersAuthority, TAccountFloorPool, TAccountPool, TAccountVault0, TAccountDestination, TAccountQuoteMint, TAccountSplToken, TAccountCarpenterAmm, TAccountHookAuthority, TAccountAmmEventAuthority, TAccountEventAuthority, TAccountProgram>);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export type PayHolderAuthorizedInput<TAccountHoldersAuthority extends string = string, TAccountFloorPool extends string = string, TAccountPool extends string = string, TAccountVault0 extends string = string, TAccountDestination extends string = string, TAccountQuoteMint extends string = string, TAccountSplToken extends string = string, TAccountCarpenterAmm extends string = string, TAccountHookAuthority extends string = string, TAccountAmmEventAuthority extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
|
|
76
|
+
holdersAuthority: TransactionSigner<TAccountHoldersAuthority>;
|
|
77
|
+
floorPool: Address<TAccountFloorPool>;
|
|
78
|
+
pool: Address<TAccountPool>;
|
|
79
|
+
vault0: Address<TAccountVault0>;
|
|
80
|
+
destination: Address<TAccountDestination>;
|
|
81
|
+
quoteMint: Address<TAccountQuoteMint>;
|
|
82
|
+
splToken: Address<TAccountSplToken>;
|
|
83
|
+
carpenterAmm: Address<TAccountCarpenterAmm>;
|
|
84
|
+
hookAuthority: Address<TAccountHookAuthority>;
|
|
85
|
+
ammEventAuthority: Address<TAccountAmmEventAuthority>;
|
|
86
|
+
eventAuthority: Address<TAccountEventAuthority>;
|
|
87
|
+
program: Address<TAccountProgram>;
|
|
88
|
+
amount: PayHolderAuthorizedInstructionDataArgs["amount"];
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function getPayHolderAuthorizedInstruction<TAccountHoldersAuthority extends string, TAccountFloorPool extends string, TAccountPool extends string, TAccountVault0 extends string, TAccountDestination extends string, TAccountQuoteMint extends string, TAccountSplToken extends string, TAccountCarpenterAmm extends string, TAccountHookAuthority extends string, TAccountAmmEventAuthority extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof FLOOR_HOOK_PROGRAM_ADDRESS>(input: PayHolderAuthorizedInput<TAccountHoldersAuthority, TAccountFloorPool, TAccountPool, TAccountVault0, TAccountDestination, TAccountQuoteMint, TAccountSplToken, TAccountCarpenterAmm, TAccountHookAuthority, TAccountAmmEventAuthority, TAccountEventAuthority, TAccountProgram>, config?: { programAddress?: TProgramAddress } ): PayHolderAuthorizedInstruction<TProgramAddress, TAccountHoldersAuthority, TAccountFloorPool, TAccountPool, TAccountVault0, TAccountDestination, TAccountQuoteMint, TAccountSplToken, TAccountCarpenterAmm, TAccountHookAuthority, TAccountAmmEventAuthority, TAccountEventAuthority, TAccountProgram> {
|
|
92
|
+
// Program address.
|
|
93
|
+
const programAddress = config?.programAddress ?? FLOOR_HOOK_PROGRAM_ADDRESS;
|
|
94
|
+
|
|
95
|
+
// Original accounts.
|
|
96
|
+
const originalAccounts = { holdersAuthority: { value: input.holdersAuthority ?? null, isWritable: false }, floorPool: { value: input.floorPool ?? null, isWritable: true }, pool: { value: input.pool ?? null, isWritable: true }, vault0: { value: input.vault0 ?? null, isWritable: true }, destination: { value: input.destination ?? null, isWritable: true }, quoteMint: { value: input.quoteMint ?? null, isWritable: false }, splToken: { value: input.splToken ?? null, isWritable: false }, carpenterAmm: { value: input.carpenterAmm ?? null, isWritable: false }, hookAuthority: { value: input.hookAuthority ?? null, isWritable: false }, ammEventAuthority: { value: input.ammEventAuthority ?? null, isWritable: false }, eventAuthority: { value: input.eventAuthority ?? null, isWritable: false }, program: { value: input.program ?? null, isWritable: false } }
|
|
97
|
+
const accounts = originalAccounts as Record<keyof typeof originalAccounts, ResolvedInstructionAccount>;
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
// Original args.
|
|
101
|
+
const args = { ...input, };
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
const getAccountMeta = getAccountMetaFactory(programAddress, 'programId');
|
|
107
|
+
return Object.freeze({ accounts: [getAccountMeta("holdersAuthority", accounts.holdersAuthority), getAccountMeta("floorPool", accounts.floorPool), getAccountMeta("pool", accounts.pool), getAccountMeta("vault0", accounts.vault0), getAccountMeta("destination", accounts.destination), getAccountMeta("quoteMint", accounts.quoteMint), getAccountMeta("splToken", accounts.splToken), getAccountMeta("carpenterAmm", accounts.carpenterAmm), getAccountMeta("hookAuthority", accounts.hookAuthority), getAccountMeta("ammEventAuthority", accounts.ammEventAuthority), getAccountMeta("eventAuthority", accounts.eventAuthority), getAccountMeta("program", accounts.program)], data: getPayHolderAuthorizedInstructionDataEncoder().encode(args as PayHolderAuthorizedInstructionDataArgs), programAddress } as PayHolderAuthorizedInstruction<TProgramAddress, TAccountHoldersAuthority, TAccountFloorPool, TAccountPool, TAccountVault0, TAccountDestination, TAccountQuoteMint, TAccountSplToken, TAccountCarpenterAmm, TAccountHookAuthority, TAccountAmmEventAuthority, TAccountEventAuthority, TAccountProgram>);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export type ParsedPayHolderAuthorizedInstruction<TProgram extends string = typeof FLOOR_HOOK_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = { programAddress: Address<TProgram>;
|
|
111
|
+
accounts: {
|
|
112
|
+
holdersAuthority: TAccountMetas[0];
|
|
113
|
+
floorPool: TAccountMetas[1];
|
|
114
|
+
pool: TAccountMetas[2];
|
|
115
|
+
vault0: TAccountMetas[3];
|
|
116
|
+
destination: TAccountMetas[4];
|
|
117
|
+
quoteMint: TAccountMetas[5];
|
|
118
|
+
splToken: TAccountMetas[6];
|
|
119
|
+
carpenterAmm: TAccountMetas[7];
|
|
120
|
+
hookAuthority: TAccountMetas[8];
|
|
121
|
+
ammEventAuthority: TAccountMetas[9];
|
|
122
|
+
eventAuthority: TAccountMetas[10];
|
|
123
|
+
program: TAccountMetas[11];
|
|
124
|
+
};
|
|
125
|
+
data: PayHolderAuthorizedInstructionData; };
|
|
126
|
+
|
|
127
|
+
export function parsePayHolderAuthorizedInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedPayHolderAuthorizedInstruction<TProgram, TAccountMetas> {
|
|
128
|
+
if (instruction.accounts.length < 12) {
|
|
129
|
+
throw new SolanaError(SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, { actualAccountMetas: instruction.accounts.length, expectedAccountMetas: 12 });
|
|
130
|
+
}
|
|
131
|
+
let accountIndex = 0;
|
|
132
|
+
const getNextAccount = () => {
|
|
133
|
+
const accountMeta = (instruction.accounts as TAccountMetas)[accountIndex]!;
|
|
134
|
+
accountIndex += 1;
|
|
135
|
+
return accountMeta;
|
|
136
|
+
}
|
|
137
|
+
return { programAddress: instruction.programAddress, accounts: { holdersAuthority: getNextAccount(), floorPool: getNextAccount(), pool: getNextAccount(), vault0: getNextAccount(), destination: getNextAccount(), quoteMint: getNextAccount(), splToken: getNextAccount(), carpenterAmm: getNextAccount(), hookAuthority: getNextAccount(), ammEventAuthority: getNextAccount(), eventAuthority: getNextAccount(), program: getNextAccount() }, data: getPayHolderAuthorizedInstructionDataDecoder().decode(instruction.data) };
|
|
138
|
+
}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { combineCodec, fixDecoderSize, fixEncoderSize, getBytesDecoder, getBytesEncoder, getStructDecoder, getStructEncoder, SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, SolanaError, transformEncoder, type AccountMeta, type AccountSignerMeta, type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlySignerAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount, type WritableSignerAccount } from '@solana/kit';
|
|
10
|
+
import { getAccountMetaFactory, type ResolvedInstructionAccount } from '@solana/kit/program-client-core';
|
|
11
|
+
import { findHookAuthorityPda } from '../pdas/index.js';
|
|
12
|
+
import { FLOOR_HOOK_PROGRAM_ADDRESS } from '../programs/index.js';
|
|
13
|
+
|
|
14
|
+
export const PREPARE_POSITIONS_DISCRIMINATOR: ReadonlyUint8Array = new Uint8Array([75, 27, 188, 109, 156, 46, 32, 17]);
|
|
15
|
+
|
|
16
|
+
export function getPreparePositionsDiscriminatorBytes(): ReadonlyUint8Array { return fixEncoderSize(getBytesEncoder(), 8).encode(PREPARE_POSITIONS_DISCRIMINATOR); }
|
|
17
|
+
|
|
18
|
+
export type PreparePositionsInstruction<TProgram extends string = typeof FLOOR_HOOK_PROGRAM_ADDRESS, TAccountSigner extends string | AccountMeta<string> = string, TAccountFloorPool extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountPositionSeed extends string | AccountMeta<string> = string, TAccountPositionBid extends string | AccountMeta<string> = string, TAccountPayer extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TAccountCarpenterAmm extends string | AccountMeta<string> = string, TAccountHookAuthority extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> =
|
|
19
|
+
Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountSigner extends string ? ReadonlySignerAccount<TAccountSigner> & AccountSignerMeta<TAccountSigner> : TAccountSigner, TAccountFloorPool extends string ? ReadonlyAccount<TAccountFloorPool> : TAccountFloorPool, TAccountPool extends string ? ReadonlyAccount<TAccountPool> : TAccountPool, TAccountPositionSeed extends string ? WritableAccount<TAccountPositionSeed> : TAccountPositionSeed, TAccountPositionBid extends string ? WritableAccount<TAccountPositionBid> : TAccountPositionBid, TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer, TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram, TAccountCarpenterAmm extends string ? ReadonlyAccount<TAccountCarpenterAmm> : TAccountCarpenterAmm, TAccountHookAuthority extends string ? ReadonlyAccount<TAccountHookAuthority> : TAccountHookAuthority, ...TRemainingAccounts]>;
|
|
20
|
+
|
|
21
|
+
export type PreparePositionsInstructionData = { discriminator: ReadonlyUint8Array; };
|
|
22
|
+
|
|
23
|
+
export type PreparePositionsInstructionDataArgs = { };
|
|
24
|
+
|
|
25
|
+
export function getPreparePositionsInstructionDataEncoder(): FixedSizeEncoder<PreparePositionsInstructionDataArgs> {
|
|
26
|
+
return transformEncoder(getStructEncoder([['discriminator', fixEncoderSize(getBytesEncoder(), 8)]]), (value) => ({ ...value, discriminator: PREPARE_POSITIONS_DISCRIMINATOR }));
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export function getPreparePositionsInstructionDataDecoder(): FixedSizeDecoder<PreparePositionsInstructionData> {
|
|
30
|
+
return getStructDecoder([['discriminator', fixDecoderSize(getBytesDecoder(), 8)]]);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export function getPreparePositionsInstructionDataCodec(): FixedSizeCodec<PreparePositionsInstructionDataArgs, PreparePositionsInstructionData> {
|
|
34
|
+
return combineCodec(getPreparePositionsInstructionDataEncoder(), getPreparePositionsInstructionDataDecoder());
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export type PreparePositionsAsyncInput<TAccountSigner extends string = string, TAccountFloorPool extends string = string, TAccountPool extends string = string, TAccountPositionSeed extends string = string, TAccountPositionBid extends string = string, TAccountPayer extends string = string, TAccountSystemProgram extends string = string, TAccountCarpenterAmm extends string = string, TAccountHookAuthority extends string = string> = {
|
|
38
|
+
signer: TransactionSigner<TAccountSigner>;
|
|
39
|
+
floorPool: Address<TAccountFloorPool>;
|
|
40
|
+
pool: Address<TAccountPool>;
|
|
41
|
+
positionSeed: Address<TAccountPositionSeed>;
|
|
42
|
+
positionBid: Address<TAccountPositionBid>;
|
|
43
|
+
payer: TransactionSigner<TAccountPayer>;
|
|
44
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
45
|
+
carpenterAmm: Address<TAccountCarpenterAmm>;
|
|
46
|
+
hookAuthority?: Address<TAccountHookAuthority>;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export async function getPreparePositionsInstructionAsync<TAccountSigner extends string, TAccountFloorPool extends string, TAccountPool extends string, TAccountPositionSeed extends string, TAccountPositionBid extends string, TAccountPayer extends string, TAccountSystemProgram extends string, TAccountCarpenterAmm extends string, TAccountHookAuthority extends string, TProgramAddress extends Address = typeof FLOOR_HOOK_PROGRAM_ADDRESS>(input: PreparePositionsAsyncInput<TAccountSigner, TAccountFloorPool, TAccountPool, TAccountPositionSeed, TAccountPositionBid, TAccountPayer, TAccountSystemProgram, TAccountCarpenterAmm, TAccountHookAuthority>, config?: { programAddress?: TProgramAddress } ): Promise<PreparePositionsInstruction<TProgramAddress, TAccountSigner, TAccountFloorPool, TAccountPool, TAccountPositionSeed, TAccountPositionBid, TAccountPayer, TAccountSystemProgram, TAccountCarpenterAmm, TAccountHookAuthority>> {
|
|
50
|
+
// Program address.
|
|
51
|
+
const programAddress = config?.programAddress ?? FLOOR_HOOK_PROGRAM_ADDRESS;
|
|
52
|
+
|
|
53
|
+
// Original accounts.
|
|
54
|
+
const originalAccounts = { signer: { value: input.signer ?? null, isWritable: false }, floorPool: { value: input.floorPool ?? null, isWritable: false }, pool: { value: input.pool ?? null, isWritable: false }, positionSeed: { value: input.positionSeed ?? null, isWritable: true }, positionBid: { value: input.positionBid ?? null, isWritable: true }, payer: { value: input.payer ?? null, isWritable: true }, systemProgram: { value: input.systemProgram ?? null, isWritable: false }, carpenterAmm: { value: input.carpenterAmm ?? null, isWritable: false }, hookAuthority: { value: input.hookAuthority ?? null, isWritable: false } }
|
|
55
|
+
const accounts = originalAccounts as Record<keyof typeof originalAccounts, ResolvedInstructionAccount>;
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
// Resolve default values.
|
|
59
|
+
if (!accounts.systemProgram.value) {
|
|
60
|
+
accounts.systemProgram.value = '11111111111111111111111111111111' as Address<'11111111111111111111111111111111'>;
|
|
61
|
+
}
|
|
62
|
+
if (!accounts.hookAuthority.value) {
|
|
63
|
+
accounts.hookAuthority.value = await findHookAuthorityPda({ programAddress });
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
const getAccountMeta = getAccountMetaFactory(programAddress, 'programId');
|
|
67
|
+
return Object.freeze({ accounts: [getAccountMeta("signer", accounts.signer), getAccountMeta("floorPool", accounts.floorPool), getAccountMeta("pool", accounts.pool), getAccountMeta("positionSeed", accounts.positionSeed), getAccountMeta("positionBid", accounts.positionBid), getAccountMeta("payer", accounts.payer), getAccountMeta("systemProgram", accounts.systemProgram), getAccountMeta("carpenterAmm", accounts.carpenterAmm), getAccountMeta("hookAuthority", accounts.hookAuthority)], data: getPreparePositionsInstructionDataEncoder().encode({}), programAddress } as PreparePositionsInstruction<TProgramAddress, TAccountSigner, TAccountFloorPool, TAccountPool, TAccountPositionSeed, TAccountPositionBid, TAccountPayer, TAccountSystemProgram, TAccountCarpenterAmm, TAccountHookAuthority>);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export type PreparePositionsInput<TAccountSigner extends string = string, TAccountFloorPool extends string = string, TAccountPool extends string = string, TAccountPositionSeed extends string = string, TAccountPositionBid extends string = string, TAccountPayer extends string = string, TAccountSystemProgram extends string = string, TAccountCarpenterAmm extends string = string, TAccountHookAuthority extends string = string> = {
|
|
71
|
+
signer: TransactionSigner<TAccountSigner>;
|
|
72
|
+
floorPool: Address<TAccountFloorPool>;
|
|
73
|
+
pool: Address<TAccountPool>;
|
|
74
|
+
positionSeed: Address<TAccountPositionSeed>;
|
|
75
|
+
positionBid: Address<TAccountPositionBid>;
|
|
76
|
+
payer: TransactionSigner<TAccountPayer>;
|
|
77
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
78
|
+
carpenterAmm: Address<TAccountCarpenterAmm>;
|
|
79
|
+
hookAuthority: Address<TAccountHookAuthority>;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function getPreparePositionsInstruction<TAccountSigner extends string, TAccountFloorPool extends string, TAccountPool extends string, TAccountPositionSeed extends string, TAccountPositionBid extends string, TAccountPayer extends string, TAccountSystemProgram extends string, TAccountCarpenterAmm extends string, TAccountHookAuthority extends string, TProgramAddress extends Address = typeof FLOOR_HOOK_PROGRAM_ADDRESS>(input: PreparePositionsInput<TAccountSigner, TAccountFloorPool, TAccountPool, TAccountPositionSeed, TAccountPositionBid, TAccountPayer, TAccountSystemProgram, TAccountCarpenterAmm, TAccountHookAuthority>, config?: { programAddress?: TProgramAddress } ): PreparePositionsInstruction<TProgramAddress, TAccountSigner, TAccountFloorPool, TAccountPool, TAccountPositionSeed, TAccountPositionBid, TAccountPayer, TAccountSystemProgram, TAccountCarpenterAmm, TAccountHookAuthority> {
|
|
83
|
+
// Program address.
|
|
84
|
+
const programAddress = config?.programAddress ?? FLOOR_HOOK_PROGRAM_ADDRESS;
|
|
85
|
+
|
|
86
|
+
// Original accounts.
|
|
87
|
+
const originalAccounts = { signer: { value: input.signer ?? null, isWritable: false }, floorPool: { value: input.floorPool ?? null, isWritable: false }, pool: { value: input.pool ?? null, isWritable: false }, positionSeed: { value: input.positionSeed ?? null, isWritable: true }, positionBid: { value: input.positionBid ?? null, isWritable: true }, payer: { value: input.payer ?? null, isWritable: true }, systemProgram: { value: input.systemProgram ?? null, isWritable: false }, carpenterAmm: { value: input.carpenterAmm ?? null, isWritable: false }, hookAuthority: { value: input.hookAuthority ?? null, isWritable: false } }
|
|
88
|
+
const accounts = originalAccounts as Record<keyof typeof originalAccounts, ResolvedInstructionAccount>;
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
// Resolve default values.
|
|
92
|
+
if (!accounts.systemProgram.value) {
|
|
93
|
+
accounts.systemProgram.value = '11111111111111111111111111111111' as Address<'11111111111111111111111111111111'>;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
const getAccountMeta = getAccountMetaFactory(programAddress, 'programId');
|
|
97
|
+
return Object.freeze({ accounts: [getAccountMeta("signer", accounts.signer), getAccountMeta("floorPool", accounts.floorPool), getAccountMeta("pool", accounts.pool), getAccountMeta("positionSeed", accounts.positionSeed), getAccountMeta("positionBid", accounts.positionBid), getAccountMeta("payer", accounts.payer), getAccountMeta("systemProgram", accounts.systemProgram), getAccountMeta("carpenterAmm", accounts.carpenterAmm), getAccountMeta("hookAuthority", accounts.hookAuthority)], data: getPreparePositionsInstructionDataEncoder().encode({}), programAddress } as PreparePositionsInstruction<TProgramAddress, TAccountSigner, TAccountFloorPool, TAccountPool, TAccountPositionSeed, TAccountPositionBid, TAccountPayer, TAccountSystemProgram, TAccountCarpenterAmm, TAccountHookAuthority>);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export type ParsedPreparePositionsInstruction<TProgram extends string = typeof FLOOR_HOOK_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = { programAddress: Address<TProgram>;
|
|
101
|
+
accounts: {
|
|
102
|
+
signer: TAccountMetas[0];
|
|
103
|
+
floorPool: TAccountMetas[1];
|
|
104
|
+
pool: TAccountMetas[2];
|
|
105
|
+
positionSeed: TAccountMetas[3];
|
|
106
|
+
positionBid: TAccountMetas[4];
|
|
107
|
+
payer: TAccountMetas[5];
|
|
108
|
+
systemProgram: TAccountMetas[6];
|
|
109
|
+
carpenterAmm: TAccountMetas[7];
|
|
110
|
+
hookAuthority: TAccountMetas[8];
|
|
111
|
+
};
|
|
112
|
+
data: PreparePositionsInstructionData; };
|
|
113
|
+
|
|
114
|
+
export function parsePreparePositionsInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedPreparePositionsInstruction<TProgram, TAccountMetas> {
|
|
115
|
+
if (instruction.accounts.length < 9) {
|
|
116
|
+
throw new SolanaError(SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, { actualAccountMetas: instruction.accounts.length, expectedAccountMetas: 9 });
|
|
117
|
+
}
|
|
118
|
+
let accountIndex = 0;
|
|
119
|
+
const getNextAccount = () => {
|
|
120
|
+
const accountMeta = (instruction.accounts as TAccountMetas)[accountIndex]!;
|
|
121
|
+
accountIndex += 1;
|
|
122
|
+
return accountMeta;
|
|
123
|
+
}
|
|
124
|
+
return { programAddress: instruction.programAddress, accounts: { signer: getNextAccount(), floorPool: getNextAccount(), pool: getNextAccount(), positionSeed: getNextAccount(), positionBid: getNextAccount(), payer: getNextAccount(), systemProgram: getNextAccount(), carpenterAmm: getNextAccount(), hookAuthority: getNextAccount() }, data: getPreparePositionsInstructionDataDecoder().decode(instruction.data) };
|
|
125
|
+
}
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { combineCodec, fixDecoderSize, fixEncoderSize, getBytesDecoder, getBytesEncoder, getStructDecoder, getStructEncoder, SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, SolanaError, transformEncoder, type AccountMeta, type AccountSignerMeta, type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount, type WritableSignerAccount } from '@solana/kit';
|
|
10
|
+
import { getAccountMetaFactory, type ResolvedInstructionAccount } from '@solana/kit/program-client-core';
|
|
11
|
+
import { findHookAuthorityPda } from '../pdas/index.js';
|
|
12
|
+
import { FLOOR_HOOK_PROGRAM_ADDRESS } from '../programs/index.js';
|
|
13
|
+
import { getRentOwnerArgDecoder, getRentOwnerArgEncoder, type RentOwnerArg, type RentOwnerArgArgs } from '../types/index.js';
|
|
14
|
+
|
|
15
|
+
export const RATCHET_DISCRIMINATOR: ReadonlyUint8Array = new Uint8Array([221, 214, 205, 110, 12, 170, 24, 173]);
|
|
16
|
+
|
|
17
|
+
export function getRatchetDiscriminatorBytes(): ReadonlyUint8Array { return fixEncoderSize(getBytesEncoder(), 8).encode(RATCHET_DISCRIMINATOR); }
|
|
18
|
+
|
|
19
|
+
export type RatchetInstruction<TProgram extends string = typeof FLOOR_HOOK_PROGRAM_ADDRESS, TAccountCranker extends string | AccountMeta<string> = string, TAccountFloorPool extends string | AccountMeta<string> = string, TAccountBaseMint extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountBitmap extends string | AccountMeta<string> = string, TAccountVault0 extends string | AccountMeta<string> = string, TAccountVault1 extends string | AccountMeta<string> = string, TAccountQuoteMint extends string | AccountMeta<string> = string, TAccountSplToken extends string | AccountMeta<string> = string, TAccountToken2022 extends string | AccountMeta<string> = string, TAccountPositionSeed extends string | AccountMeta<string> = string, TAccountPositionBid extends string | AccountMeta<string> = string, TAccountBountyDestination extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TAccountCarpenterAmm extends string | AccountMeta<string> = string, TAccountHookAuthority extends string | AccountMeta<string> = string, TAccountAmmEventAuthority extends string | AccountMeta<string> = string, TAccountEventAuthority extends string | AccountMeta<string> = string, TAccountProgram extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> =
|
|
20
|
+
Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountCranker extends string ? WritableSignerAccount<TAccountCranker> & AccountSignerMeta<TAccountCranker> : TAccountCranker, TAccountFloorPool extends string ? WritableAccount<TAccountFloorPool> : TAccountFloorPool, TAccountBaseMint extends string ? ReadonlyAccount<TAccountBaseMint> : TAccountBaseMint, TAccountPool extends string ? WritableAccount<TAccountPool> : TAccountPool, TAccountBitmap extends string ? WritableAccount<TAccountBitmap> : TAccountBitmap, TAccountVault0 extends string ? WritableAccount<TAccountVault0> : TAccountVault0, TAccountVault1 extends string ? WritableAccount<TAccountVault1> : TAccountVault1, TAccountQuoteMint extends string ? ReadonlyAccount<TAccountQuoteMint> : TAccountQuoteMint, TAccountSplToken extends string ? ReadonlyAccount<TAccountSplToken> : TAccountSplToken, TAccountToken2022 extends string ? ReadonlyAccount<TAccountToken2022> : TAccountToken2022, TAccountPositionSeed extends string ? WritableAccount<TAccountPositionSeed> : TAccountPositionSeed, TAccountPositionBid extends string ? WritableAccount<TAccountPositionBid> : TAccountPositionBid, TAccountBountyDestination extends string ? WritableAccount<TAccountBountyDestination> : TAccountBountyDestination, TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram, TAccountCarpenterAmm extends string ? ReadonlyAccount<TAccountCarpenterAmm> : TAccountCarpenterAmm, TAccountHookAuthority extends string ? ReadonlyAccount<TAccountHookAuthority> : TAccountHookAuthority, TAccountAmmEventAuthority extends string ? ReadonlyAccount<TAccountAmmEventAuthority> : TAccountAmmEventAuthority, TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority, TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram, ...TRemainingAccounts]>;
|
|
21
|
+
|
|
22
|
+
export type RatchetInstructionData = { discriminator: ReadonlyUint8Array; rentOwner: RentOwnerArg; };
|
|
23
|
+
|
|
24
|
+
export type RatchetInstructionDataArgs = { rentOwner: RentOwnerArgArgs; };
|
|
25
|
+
|
|
26
|
+
export function getRatchetInstructionDataEncoder(): FixedSizeEncoder<RatchetInstructionDataArgs> {
|
|
27
|
+
return transformEncoder(getStructEncoder([['discriminator', fixEncoderSize(getBytesEncoder(), 8)], ['rentOwner', getRentOwnerArgEncoder()]]), (value) => ({ ...value, discriminator: RATCHET_DISCRIMINATOR }));
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export function getRatchetInstructionDataDecoder(): FixedSizeDecoder<RatchetInstructionData> {
|
|
31
|
+
return getStructDecoder([['discriminator', fixDecoderSize(getBytesDecoder(), 8)], ['rentOwner', getRentOwnerArgDecoder()]]);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export function getRatchetInstructionDataCodec(): FixedSizeCodec<RatchetInstructionDataArgs, RatchetInstructionData> {
|
|
35
|
+
return combineCodec(getRatchetInstructionDataEncoder(), getRatchetInstructionDataDecoder());
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export type RatchetAsyncInput<TAccountCranker extends string = string, TAccountFloorPool extends string = string, TAccountBaseMint extends string = string, TAccountPool extends string = string, TAccountBitmap extends string = string, TAccountVault0 extends string = string, TAccountVault1 extends string = string, TAccountQuoteMint extends string = string, TAccountSplToken extends string = string, TAccountToken2022 extends string = string, TAccountPositionSeed extends string = string, TAccountPositionBid extends string = string, TAccountBountyDestination extends string = string, TAccountSystemProgram extends string = string, TAccountCarpenterAmm extends string = string, TAccountHookAuthority extends string = string, TAccountAmmEventAuthority extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
|
|
39
|
+
cranker: TransactionSigner<TAccountCranker>;
|
|
40
|
+
floorPool: Address<TAccountFloorPool>;
|
|
41
|
+
baseMint: Address<TAccountBaseMint>;
|
|
42
|
+
pool: Address<TAccountPool>;
|
|
43
|
+
bitmap: Address<TAccountBitmap>;
|
|
44
|
+
vault0: Address<TAccountVault0>;
|
|
45
|
+
vault1: Address<TAccountVault1>;
|
|
46
|
+
quoteMint: Address<TAccountQuoteMint>;
|
|
47
|
+
splToken: Address<TAccountSplToken>;
|
|
48
|
+
token2022: Address<TAccountToken2022>;
|
|
49
|
+
positionSeed: Address<TAccountPositionSeed>;
|
|
50
|
+
positionBid: Address<TAccountPositionBid>;
|
|
51
|
+
bountyDestination?: Address<TAccountBountyDestination>;
|
|
52
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
53
|
+
carpenterAmm: Address<TAccountCarpenterAmm>;
|
|
54
|
+
hookAuthority?: Address<TAccountHookAuthority>;
|
|
55
|
+
ammEventAuthority: Address<TAccountAmmEventAuthority>;
|
|
56
|
+
eventAuthority: Address<TAccountEventAuthority>;
|
|
57
|
+
program: Address<TAccountProgram>;
|
|
58
|
+
rentOwner: RatchetInstructionDataArgs["rentOwner"];
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export async function getRatchetInstructionAsync<TAccountCranker extends string, TAccountFloorPool extends string, TAccountBaseMint extends string, TAccountPool extends string, TAccountBitmap extends string, TAccountVault0 extends string, TAccountVault1 extends string, TAccountQuoteMint extends string, TAccountSplToken extends string, TAccountToken2022 extends string, TAccountPositionSeed extends string, TAccountPositionBid extends string, TAccountBountyDestination extends string, TAccountSystemProgram extends string, TAccountCarpenterAmm extends string, TAccountHookAuthority extends string, TAccountAmmEventAuthority extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof FLOOR_HOOK_PROGRAM_ADDRESS>(input: RatchetAsyncInput<TAccountCranker, TAccountFloorPool, TAccountBaseMint, TAccountPool, TAccountBitmap, TAccountVault0, TAccountVault1, TAccountQuoteMint, TAccountSplToken, TAccountToken2022, TAccountPositionSeed, TAccountPositionBid, TAccountBountyDestination, TAccountSystemProgram, TAccountCarpenterAmm, TAccountHookAuthority, TAccountAmmEventAuthority, TAccountEventAuthority, TAccountProgram>, config?: { programAddress?: TProgramAddress } ): Promise<RatchetInstruction<TProgramAddress, TAccountCranker, TAccountFloorPool, TAccountBaseMint, TAccountPool, TAccountBitmap, TAccountVault0, TAccountVault1, TAccountQuoteMint, TAccountSplToken, TAccountToken2022, TAccountPositionSeed, TAccountPositionBid, TAccountBountyDestination, TAccountSystemProgram, TAccountCarpenterAmm, TAccountHookAuthority, TAccountAmmEventAuthority, TAccountEventAuthority, TAccountProgram>> {
|
|
62
|
+
// Program address.
|
|
63
|
+
const programAddress = config?.programAddress ?? FLOOR_HOOK_PROGRAM_ADDRESS;
|
|
64
|
+
|
|
65
|
+
// Original accounts.
|
|
66
|
+
const originalAccounts = { cranker: { value: input.cranker ?? null, isWritable: true }, floorPool: { value: input.floorPool ?? null, isWritable: true }, baseMint: { value: input.baseMint ?? null, isWritable: false }, pool: { value: input.pool ?? null, isWritable: true }, bitmap: { value: input.bitmap ?? null, isWritable: true }, vault0: { value: input.vault0 ?? null, isWritable: true }, vault1: { value: input.vault1 ?? null, isWritable: true }, quoteMint: { value: input.quoteMint ?? null, isWritable: false }, splToken: { value: input.splToken ?? null, isWritable: false }, token2022: { value: input.token2022 ?? null, isWritable: false }, positionSeed: { value: input.positionSeed ?? null, isWritable: true }, positionBid: { value: input.positionBid ?? null, isWritable: true }, bountyDestination: { value: input.bountyDestination ?? null, isWritable: true }, systemProgram: { value: input.systemProgram ?? null, isWritable: false }, carpenterAmm: { value: input.carpenterAmm ?? null, isWritable: false }, hookAuthority: { value: input.hookAuthority ?? null, isWritable: false }, ammEventAuthority: { value: input.ammEventAuthority ?? null, isWritable: false }, eventAuthority: { value: input.eventAuthority ?? null, isWritable: false }, program: { value: input.program ?? null, isWritable: false } }
|
|
67
|
+
const accounts = originalAccounts as Record<keyof typeof originalAccounts, ResolvedInstructionAccount>;
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
// Original args.
|
|
71
|
+
const args = { ...input, };
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
// Resolve default values.
|
|
75
|
+
if (!accounts.systemProgram.value) {
|
|
76
|
+
accounts.systemProgram.value = '11111111111111111111111111111111' as Address<'11111111111111111111111111111111'>;
|
|
77
|
+
}
|
|
78
|
+
if (!accounts.hookAuthority.value) {
|
|
79
|
+
accounts.hookAuthority.value = await findHookAuthorityPda({ programAddress });
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
const getAccountMeta = getAccountMetaFactory(programAddress, 'programId');
|
|
83
|
+
return Object.freeze({ accounts: [getAccountMeta("cranker", accounts.cranker), getAccountMeta("floorPool", accounts.floorPool), getAccountMeta("baseMint", accounts.baseMint), getAccountMeta("pool", accounts.pool), getAccountMeta("bitmap", accounts.bitmap), getAccountMeta("vault0", accounts.vault0), getAccountMeta("vault1", accounts.vault1), getAccountMeta("quoteMint", accounts.quoteMint), getAccountMeta("splToken", accounts.splToken), getAccountMeta("token2022", accounts.token2022), getAccountMeta("positionSeed", accounts.positionSeed), getAccountMeta("positionBid", accounts.positionBid), getAccountMeta("bountyDestination", accounts.bountyDestination), getAccountMeta("systemProgram", accounts.systemProgram), getAccountMeta("carpenterAmm", accounts.carpenterAmm), getAccountMeta("hookAuthority", accounts.hookAuthority), getAccountMeta("ammEventAuthority", accounts.ammEventAuthority), getAccountMeta("eventAuthority", accounts.eventAuthority), getAccountMeta("program", accounts.program)], data: getRatchetInstructionDataEncoder().encode(args as RatchetInstructionDataArgs), programAddress } as RatchetInstruction<TProgramAddress, TAccountCranker, TAccountFloorPool, TAccountBaseMint, TAccountPool, TAccountBitmap, TAccountVault0, TAccountVault1, TAccountQuoteMint, TAccountSplToken, TAccountToken2022, TAccountPositionSeed, TAccountPositionBid, TAccountBountyDestination, TAccountSystemProgram, TAccountCarpenterAmm, TAccountHookAuthority, TAccountAmmEventAuthority, TAccountEventAuthority, TAccountProgram>);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export type RatchetInput<TAccountCranker extends string = string, TAccountFloorPool extends string = string, TAccountBaseMint extends string = string, TAccountPool extends string = string, TAccountBitmap extends string = string, TAccountVault0 extends string = string, TAccountVault1 extends string = string, TAccountQuoteMint extends string = string, TAccountSplToken extends string = string, TAccountToken2022 extends string = string, TAccountPositionSeed extends string = string, TAccountPositionBid extends string = string, TAccountBountyDestination extends string = string, TAccountSystemProgram extends string = string, TAccountCarpenterAmm extends string = string, TAccountHookAuthority extends string = string, TAccountAmmEventAuthority extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
|
|
87
|
+
cranker: TransactionSigner<TAccountCranker>;
|
|
88
|
+
floorPool: Address<TAccountFloorPool>;
|
|
89
|
+
baseMint: Address<TAccountBaseMint>;
|
|
90
|
+
pool: Address<TAccountPool>;
|
|
91
|
+
bitmap: Address<TAccountBitmap>;
|
|
92
|
+
vault0: Address<TAccountVault0>;
|
|
93
|
+
vault1: Address<TAccountVault1>;
|
|
94
|
+
quoteMint: Address<TAccountQuoteMint>;
|
|
95
|
+
splToken: Address<TAccountSplToken>;
|
|
96
|
+
token2022: Address<TAccountToken2022>;
|
|
97
|
+
positionSeed: Address<TAccountPositionSeed>;
|
|
98
|
+
positionBid: Address<TAccountPositionBid>;
|
|
99
|
+
bountyDestination?: Address<TAccountBountyDestination>;
|
|
100
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
101
|
+
carpenterAmm: Address<TAccountCarpenterAmm>;
|
|
102
|
+
hookAuthority: Address<TAccountHookAuthority>;
|
|
103
|
+
ammEventAuthority: Address<TAccountAmmEventAuthority>;
|
|
104
|
+
eventAuthority: Address<TAccountEventAuthority>;
|
|
105
|
+
program: Address<TAccountProgram>;
|
|
106
|
+
rentOwner: RatchetInstructionDataArgs["rentOwner"];
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export function getRatchetInstruction<TAccountCranker extends string, TAccountFloorPool extends string, TAccountBaseMint extends string, TAccountPool extends string, TAccountBitmap extends string, TAccountVault0 extends string, TAccountVault1 extends string, TAccountQuoteMint extends string, TAccountSplToken extends string, TAccountToken2022 extends string, TAccountPositionSeed extends string, TAccountPositionBid extends string, TAccountBountyDestination extends string, TAccountSystemProgram extends string, TAccountCarpenterAmm extends string, TAccountHookAuthority extends string, TAccountAmmEventAuthority extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof FLOOR_HOOK_PROGRAM_ADDRESS>(input: RatchetInput<TAccountCranker, TAccountFloorPool, TAccountBaseMint, TAccountPool, TAccountBitmap, TAccountVault0, TAccountVault1, TAccountQuoteMint, TAccountSplToken, TAccountToken2022, TAccountPositionSeed, TAccountPositionBid, TAccountBountyDestination, TAccountSystemProgram, TAccountCarpenterAmm, TAccountHookAuthority, TAccountAmmEventAuthority, TAccountEventAuthority, TAccountProgram>, config?: { programAddress?: TProgramAddress } ): RatchetInstruction<TProgramAddress, TAccountCranker, TAccountFloorPool, TAccountBaseMint, TAccountPool, TAccountBitmap, TAccountVault0, TAccountVault1, TAccountQuoteMint, TAccountSplToken, TAccountToken2022, TAccountPositionSeed, TAccountPositionBid, TAccountBountyDestination, TAccountSystemProgram, TAccountCarpenterAmm, TAccountHookAuthority, TAccountAmmEventAuthority, TAccountEventAuthority, TAccountProgram> {
|
|
110
|
+
// Program address.
|
|
111
|
+
const programAddress = config?.programAddress ?? FLOOR_HOOK_PROGRAM_ADDRESS;
|
|
112
|
+
|
|
113
|
+
// Original accounts.
|
|
114
|
+
const originalAccounts = { cranker: { value: input.cranker ?? null, isWritable: true }, floorPool: { value: input.floorPool ?? null, isWritable: true }, baseMint: { value: input.baseMint ?? null, isWritable: false }, pool: { value: input.pool ?? null, isWritable: true }, bitmap: { value: input.bitmap ?? null, isWritable: true }, vault0: { value: input.vault0 ?? null, isWritable: true }, vault1: { value: input.vault1 ?? null, isWritable: true }, quoteMint: { value: input.quoteMint ?? null, isWritable: false }, splToken: { value: input.splToken ?? null, isWritable: false }, token2022: { value: input.token2022 ?? null, isWritable: false }, positionSeed: { value: input.positionSeed ?? null, isWritable: true }, positionBid: { value: input.positionBid ?? null, isWritable: true }, bountyDestination: { value: input.bountyDestination ?? null, isWritable: true }, systemProgram: { value: input.systemProgram ?? null, isWritable: false }, carpenterAmm: { value: input.carpenterAmm ?? null, isWritable: false }, hookAuthority: { value: input.hookAuthority ?? null, isWritable: false }, ammEventAuthority: { value: input.ammEventAuthority ?? null, isWritable: false }, eventAuthority: { value: input.eventAuthority ?? null, isWritable: false }, program: { value: input.program ?? null, isWritable: false } }
|
|
115
|
+
const accounts = originalAccounts as Record<keyof typeof originalAccounts, ResolvedInstructionAccount>;
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
// Original args.
|
|
119
|
+
const args = { ...input, };
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
// Resolve default values.
|
|
123
|
+
if (!accounts.systemProgram.value) {
|
|
124
|
+
accounts.systemProgram.value = '11111111111111111111111111111111' as Address<'11111111111111111111111111111111'>;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
const getAccountMeta = getAccountMetaFactory(programAddress, 'programId');
|
|
128
|
+
return Object.freeze({ accounts: [getAccountMeta("cranker", accounts.cranker), getAccountMeta("floorPool", accounts.floorPool), getAccountMeta("baseMint", accounts.baseMint), getAccountMeta("pool", accounts.pool), getAccountMeta("bitmap", accounts.bitmap), getAccountMeta("vault0", accounts.vault0), getAccountMeta("vault1", accounts.vault1), getAccountMeta("quoteMint", accounts.quoteMint), getAccountMeta("splToken", accounts.splToken), getAccountMeta("token2022", accounts.token2022), getAccountMeta("positionSeed", accounts.positionSeed), getAccountMeta("positionBid", accounts.positionBid), getAccountMeta("bountyDestination", accounts.bountyDestination), getAccountMeta("systemProgram", accounts.systemProgram), getAccountMeta("carpenterAmm", accounts.carpenterAmm), getAccountMeta("hookAuthority", accounts.hookAuthority), getAccountMeta("ammEventAuthority", accounts.ammEventAuthority), getAccountMeta("eventAuthority", accounts.eventAuthority), getAccountMeta("program", accounts.program)], data: getRatchetInstructionDataEncoder().encode(args as RatchetInstructionDataArgs), programAddress } as RatchetInstruction<TProgramAddress, TAccountCranker, TAccountFloorPool, TAccountBaseMint, TAccountPool, TAccountBitmap, TAccountVault0, TAccountVault1, TAccountQuoteMint, TAccountSplToken, TAccountToken2022, TAccountPositionSeed, TAccountPositionBid, TAccountBountyDestination, TAccountSystemProgram, TAccountCarpenterAmm, TAccountHookAuthority, TAccountAmmEventAuthority, TAccountEventAuthority, TAccountProgram>);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export type ParsedRatchetInstruction<TProgram extends string = typeof FLOOR_HOOK_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = { programAddress: Address<TProgram>;
|
|
132
|
+
accounts: {
|
|
133
|
+
cranker: TAccountMetas[0];
|
|
134
|
+
floorPool: TAccountMetas[1];
|
|
135
|
+
baseMint: TAccountMetas[2];
|
|
136
|
+
pool: TAccountMetas[3];
|
|
137
|
+
bitmap: TAccountMetas[4];
|
|
138
|
+
vault0: TAccountMetas[5];
|
|
139
|
+
vault1: TAccountMetas[6];
|
|
140
|
+
quoteMint: TAccountMetas[7];
|
|
141
|
+
splToken: TAccountMetas[8];
|
|
142
|
+
token2022: TAccountMetas[9];
|
|
143
|
+
positionSeed: TAccountMetas[10];
|
|
144
|
+
positionBid: TAccountMetas[11];
|
|
145
|
+
bountyDestination?: TAccountMetas[12] | undefined;
|
|
146
|
+
systemProgram: TAccountMetas[13];
|
|
147
|
+
carpenterAmm: TAccountMetas[14];
|
|
148
|
+
hookAuthority: TAccountMetas[15];
|
|
149
|
+
ammEventAuthority: TAccountMetas[16];
|
|
150
|
+
eventAuthority: TAccountMetas[17];
|
|
151
|
+
program: TAccountMetas[18];
|
|
152
|
+
};
|
|
153
|
+
data: RatchetInstructionData; };
|
|
154
|
+
|
|
155
|
+
export function parseRatchetInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedRatchetInstruction<TProgram, TAccountMetas> {
|
|
156
|
+
if (instruction.accounts.length < 19) {
|
|
157
|
+
throw new SolanaError(SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, { actualAccountMetas: instruction.accounts.length, expectedAccountMetas: 19 });
|
|
158
|
+
}
|
|
159
|
+
let accountIndex = 0;
|
|
160
|
+
const getNextAccount = () => {
|
|
161
|
+
const accountMeta = (instruction.accounts as TAccountMetas)[accountIndex]!;
|
|
162
|
+
accountIndex += 1;
|
|
163
|
+
return accountMeta;
|
|
164
|
+
}
|
|
165
|
+
const getNextOptionalAccount = () => {
|
|
166
|
+
const accountMeta = getNextAccount();
|
|
167
|
+
return accountMeta.address === FLOOR_HOOK_PROGRAM_ADDRESS ? undefined : accountMeta;
|
|
168
|
+
};
|
|
169
|
+
return { programAddress: instruction.programAddress, accounts: { cranker: getNextAccount(), floorPool: getNextAccount(), baseMint: getNextAccount(), pool: getNextAccount(), bitmap: getNextAccount(), vault0: getNextAccount(), vault1: getNextAccount(), quoteMint: getNextAccount(), splToken: getNextAccount(), token2022: getNextAccount(), positionSeed: getNextAccount(), positionBid: getNextAccount(), bountyDestination: getNextOptionalAccount(), systemProgram: getNextAccount(), carpenterAmm: getNextAccount(), hookAuthority: getNextAccount(), ammEventAuthority: getNextAccount(), eventAuthority: getNextAccount(), program: getNextAccount() }, data: getRatchetInstructionDataDecoder().decode(instruction.data) };
|
|
170
|
+
}
|