3land_sdk 1.0.4 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +68 -0
- package/dist/index.js.map +1 -0
- package/dist/library/Irys/irys.d.ts +79 -0
- package/dist/library/Irys/irys.d.ts.map +1 -0
- package/dist/library/Irys/irys.js +317 -0
- package/dist/library/Irys/irys.js.map +1 -0
- package/dist/library/Store.d.ts +19 -0
- package/dist/library/Store.d.ts.map +1 -0
- package/dist/library/Store.js +377 -0
- package/dist/library/Store.js.map +1 -0
- package/dist/library/implementation/storeImplementation.d.ts +20 -0
- package/dist/library/implementation/storeImplementation.d.ts.map +1 -0
- package/dist/library/implementation/storeImplementation.js +389 -0
- package/dist/library/implementation/storeImplementation.js.map +1 -0
- package/dist/library/instructions/store/buySingleEdition.d.ts +17 -0
- package/dist/library/instructions/store/buySingleEdition.d.ts.map +1 -0
- package/dist/library/instructions/store/buySingleEdition.js +154 -0
- package/dist/library/instructions/store/buySingleEdition.js.map +1 -0
- package/dist/library/instructions/store/createSingleEdition.d.ts +4 -0
- package/dist/library/instructions/store/createSingleEdition.d.ts.map +1 -0
- package/dist/library/instructions/store/createSingleEdition.js +31 -0
- package/dist/library/instructions/store/createSingleEdition.js.map +1 -0
- package/dist/library/instructions/store/createStore.d.ts +4 -0
- package/dist/library/instructions/store/createStore.d.ts.map +1 -0
- package/dist/library/instructions/store/createStore.js +10 -0
- package/dist/library/instructions/store/createStore.js.map +1 -0
- package/dist/library/instructions/store/idl.d.ts +508 -0
- package/dist/library/instructions/store/idl.d.ts.map +1 -0
- package/dist/library/instructions/store/idl.js +7622 -0
- package/dist/library/instructions/store/idl.js.map +1 -0
- package/dist/library/instructions/store/uploadFilesIryis.d.ts +13 -0
- package/dist/library/instructions/store/uploadFilesIryis.d.ts.map +1 -0
- package/dist/library/instructions/store/uploadFilesIryis.js +99 -0
- package/dist/library/instructions/store/uploadFilesIryis.js.map +1 -0
- package/dist/types/accounts/ArchiveDeposit.d.ts +63 -0
- package/dist/types/accounts/ArchiveDeposit.d.ts.map +1 -0
- package/dist/types/accounts/ArchiveDeposit.js +158 -0
- package/dist/types/accounts/ArchiveDeposit.js.map +1 -0
- package/dist/types/accounts/Authority.d.ts +16 -0
- package/dist/types/accounts/Authority.d.ts.map +1 -0
- package/dist/types/accounts/Authority.js +72 -0
- package/dist/types/accounts/Authority.js.map +1 -0
- package/dist/types/accounts/BurnDeposit.d.ts +26 -0
- package/dist/types/accounts/BurnDeposit.d.ts.map +1 -0
- package/dist/types/accounts/BurnDeposit.js +93 -0
- package/dist/types/accounts/BurnDeposit.js.map +1 -0
- package/dist/types/accounts/BurnProgress.d.ts +22 -0
- package/dist/types/accounts/BurnProgress.d.ts.map +1 -0
- package/dist/types/accounts/BurnProgress.js +88 -0
- package/dist/types/accounts/BurnProgress.js.map +1 -0
- package/dist/types/accounts/BuyHistory.d.ts +32 -0
- package/dist/types/accounts/BuyHistory.d.ts.map +1 -0
- package/dist/types/accounts/BuyHistory.js +104 -0
- package/dist/types/accounts/BuyHistory.js.map +1 -0
- package/dist/types/accounts/BuyTrack.d.ts +22 -0
- package/dist/types/accounts/BuyTrack.d.ts.map +1 -0
- package/dist/types/accounts/BuyTrack.js +84 -0
- package/dist/types/accounts/BuyTrack.js.map +1 -0
- package/dist/types/accounts/Card.d.ts +57 -0
- package/dist/types/accounts/Card.d.ts.map +1 -0
- package/dist/types/accounts/Card.js +148 -0
- package/dist/types/accounts/Card.js.map +1 -0
- package/dist/types/accounts/CollectionRegistry.d.ts +42 -0
- package/dist/types/accounts/CollectionRegistry.d.ts.map +1 -0
- package/dist/types/accounts/CollectionRegistry.js +123 -0
- package/dist/types/accounts/CollectionRegistry.js.map +1 -0
- package/dist/types/accounts/CollectorRegistry.d.ts +42 -0
- package/dist/types/accounts/CollectorRegistry.d.ts.map +1 -0
- package/dist/types/accounts/CollectorRegistry.js +123 -0
- package/dist/types/accounts/CollectorRegistry.js.map +1 -0
- package/dist/types/accounts/CreatorRegistry.d.ts +45 -0
- package/dist/types/accounts/CreatorRegistry.d.ts.map +1 -0
- package/dist/types/accounts/CreatorRegistry.js +128 -0
- package/dist/types/accounts/CreatorRegistry.js.map +1 -0
- package/dist/types/accounts/CurrencyArtistProof.d.ts +29 -0
- package/dist/types/accounts/CurrencyArtistProof.d.ts.map +1 -0
- package/dist/types/accounts/CurrencyArtistProof.js +101 -0
- package/dist/types/accounts/CurrencyArtistProof.js.map +1 -0
- package/dist/types/accounts/GenericUser.d.ts +54 -0
- package/dist/types/accounts/GenericUser.d.ts.map +1 -0
- package/dist/types/accounts/GenericUser.js +143 -0
- package/dist/types/accounts/GenericUser.js.map +1 -0
- package/dist/types/accounts/ItemArchive.d.ts +69 -0
- package/dist/types/accounts/ItemArchive.d.ts.map +1 -0
- package/dist/types/accounts/ItemArchive.js +168 -0
- package/dist/types/accounts/ItemArchive.js.map +1 -0
- package/dist/types/accounts/ItemReserveList.d.ts +19 -0
- package/dist/types/accounts/ItemReserveList.d.ts.map +1 -0
- package/dist/types/accounts/ItemReserveList.js +81 -0
- package/dist/types/accounts/ItemReserveList.js.map +1 -0
- package/dist/types/accounts/ItemReserveList2.d.ts +16 -0
- package/dist/types/accounts/ItemReserveList2.d.ts.map +1 -0
- package/dist/types/accounts/ItemReserveList2.js +72 -0
- package/dist/types/accounts/ItemReserveList2.js.map +1 -0
- package/dist/types/accounts/LutVault.d.ts +22 -0
- package/dist/types/accounts/LutVault.d.ts.map +1 -0
- package/dist/types/accounts/LutVault.js +88 -0
- package/dist/types/accounts/LutVault.js.map +1 -0
- package/dist/types/accounts/Pack.d.ts +123 -0
- package/dist/types/accounts/Pack.d.ts.map +1 -0
- package/dist/types/accounts/Pack.js +258 -0
- package/dist/types/accounts/Pack.js.map +1 -0
- package/dist/types/accounts/PackContent.d.ts +23 -0
- package/dist/types/accounts/PackContent.d.ts.map +1 -0
- package/dist/types/accounts/PackContent.js +89 -0
- package/dist/types/accounts/PackContent.js.map +1 -0
- package/dist/types/accounts/PackOpenHolder.d.ts +38 -0
- package/dist/types/accounts/PackOpenHolder.d.ts.map +1 -0
- package/dist/types/accounts/PackOpenHolder.js +114 -0
- package/dist/types/accounts/PackOpenHolder.js.map +1 -0
- package/dist/types/accounts/PackReceipt.d.ts +42 -0
- package/dist/types/accounts/PackReceipt.d.ts.map +1 -0
- package/dist/types/accounts/PackReceipt.js +123 -0
- package/dist/types/accounts/PackReceipt.js.map +1 -0
- package/dist/types/accounts/PackTraits.d.ts +23 -0
- package/dist/types/accounts/PackTraits.d.ts.map +1 -0
- package/dist/types/accounts/PackTraits.js +88 -0
- package/dist/types/accounts/PackTraits.js.map +1 -0
- package/dist/types/accounts/Payment.d.ts +23 -0
- package/dist/types/accounts/Payment.d.ts.map +1 -0
- package/dist/types/accounts/Payment.js +88 -0
- package/dist/types/accounts/Payment.js.map +1 -0
- package/dist/types/accounts/PoolVault.d.ts +54 -0
- package/dist/types/accounts/PoolVault.d.ts.map +1 -0
- package/dist/types/accounts/PoolVault.js +143 -0
- package/dist/types/accounts/PoolVault.js.map +1 -0
- package/dist/types/accounts/RevealForMe.d.ts +38 -0
- package/dist/types/accounts/RevealForMe.d.ts.map +1 -0
- package/dist/types/accounts/RevealForMe.js +112 -0
- package/dist/types/accounts/RevealForMe.js.map +1 -0
- package/dist/types/accounts/SecureHolder.d.ts +23 -0
- package/dist/types/accounts/SecureHolder.d.ts.map +1 -0
- package/dist/types/accounts/SecureHolder.js +88 -0
- package/dist/types/accounts/SecureHolder.js.map +1 -0
- package/dist/types/accounts/Single.d.ts +99 -0
- package/dist/types/accounts/Single.d.ts.map +1 -0
- package/dist/types/accounts/Single.js +216 -0
- package/dist/types/accounts/Single.js.map +1 -0
- package/dist/types/accounts/Store.d.ts +54 -0
- package/dist/types/accounts/Store.d.ts.map +1 -0
- package/dist/types/accounts/Store.js +144 -0
- package/dist/types/accounts/Store.js.map +1 -0
- package/dist/types/accounts/StoresHolder.d.ts +33 -0
- package/dist/types/accounts/StoresHolder.d.ts.map +1 -0
- package/dist/types/accounts/StoresHolder.js +115 -0
- package/dist/types/accounts/StoresHolder.js.map +1 -0
- package/dist/types/accounts/ThreeId.d.ts +57 -0
- package/dist/types/accounts/ThreeId.d.ts.map +1 -0
- package/dist/types/accounts/ThreeId.js +146 -0
- package/dist/types/accounts/ThreeId.js.map +1 -0
- package/dist/types/accounts/TokenManager.d.ts +69 -0
- package/dist/types/accounts/TokenManager.d.ts.map +1 -0
- package/dist/types/accounts/TokenManager.js +168 -0
- package/dist/types/accounts/TokenManager.js.map +1 -0
- package/dist/types/accounts/ZeroCard.d.ts +16 -0
- package/dist/types/accounts/ZeroCard.d.ts.map +1 -0
- package/dist/types/accounts/ZeroCard.js +72 -0
- package/dist/types/accounts/ZeroCard.js.map +1 -0
- package/dist/types/accounts/ZeroContent.d.ts +19 -0
- package/dist/types/accounts/ZeroContent.d.ts.map +1 -0
- package/dist/types/accounts/ZeroContent.js +82 -0
- package/dist/types/accounts/ZeroContent.js.map +1 -0
- package/dist/types/accounts/ZeroOpenHolder.d.ts +51 -0
- package/dist/types/accounts/ZeroOpenHolder.d.ts.map +1 -0
- package/dist/types/accounts/ZeroOpenHolder.js +144 -0
- package/dist/types/accounts/ZeroOpenHolder.js.map +1 -0
- package/dist/types/accounts/index.d.ts +67 -0
- package/dist/types/accounts/index.d.ts.map +1 -0
- package/dist/types/accounts/index.js +70 -0
- package/dist/types/accounts/index.js.map +1 -0
- package/dist/types/errors/anchor.d.ts +435 -0
- package/dist/types/errors/anchor.d.ts.map +1 -0
- package/dist/types/errors/anchor.js +713 -0
- package/dist/types/errors/anchor.js.map +1 -0
- package/dist/types/errors/index.d.ts +5 -0
- package/dist/types/errors/index.d.ts.map +1 -0
- package/dist/types/errors/index.js +67 -0
- package/dist/types/errors/index.js.map +1 -0
- package/dist/types/implementation/implementationTypes.d.ts +28 -0
- package/dist/types/implementation/implementationTypes.d.ts.map +1 -0
- package/dist/types/implementation/implementationTypes.js +3 -0
- package/dist/types/implementation/implementationTypes.js.map +1 -0
- package/dist/types/instructions/addBurn.d.ts +20 -0
- package/dist/types/instructions/addBurn.d.ts.map +1 -0
- package/dist/types/instructions/addBurn.js +57 -0
- package/dist/types/instructions/addBurn.js.map +1 -0
- package/dist/types/instructions/adjustDepositBurn.d.ts +12 -0
- package/dist/types/instructions/adjustDepositBurn.d.ts.map +1 -0
- package/dist/types/instructions/adjustDepositBurn.js +20 -0
- package/dist/types/instructions/adjustDepositBurn.js.map +1 -0
- package/dist/types/instructions/archiveItem.d.ts +22 -0
- package/dist/types/instructions/archiveItem.d.ts.map +1 -0
- package/dist/types/instructions/archiveItem.js +57 -0
- package/dist/types/instructions/archiveItem.js.map +1 -0
- package/dist/types/instructions/assignPackDelegate.d.ts +10 -0
- package/dist/types/instructions/assignPackDelegate.d.ts.map +1 -0
- package/dist/types/instructions/assignPackDelegate.js +19 -0
- package/dist/types/instructions/assignPackDelegate.js.map +1 -0
- package/dist/types/instructions/burnPay.d.ts +19 -0
- package/dist/types/instructions/burnPay.d.ts.map +1 -0
- package/dist/types/instructions/burnPay.js +56 -0
- package/dist/types/instructions/burnPay.js.map +1 -0
- package/dist/types/instructions/buyPack.d.ts +25 -0
- package/dist/types/instructions/buyPack.d.ts.map +1 -0
- package/dist/types/instructions/buyPack.js +65 -0
- package/dist/types/instructions/buyPack.js.map +1 -0
- package/dist/types/instructions/buyPay.d.ts +19 -0
- package/dist/types/instructions/buyPay.d.ts.map +1 -0
- package/dist/types/instructions/buyPay.js +66 -0
- package/dist/types/instructions/buyPay.js.map +1 -0
- package/dist/types/instructions/buyToken.d.ts +21 -0
- package/dist/types/instructions/buyToken.d.ts.map +1 -0
- package/dist/types/instructions/buyToken.js +63 -0
- package/dist/types/instructions/buyToken.js.map +1 -0
- package/dist/types/instructions/claimZeroCard.d.ts +40 -0
- package/dist/types/instructions/claimZeroCard.d.ts.map +1 -0
- package/dist/types/instructions/claimZeroCard.js +87 -0
- package/dist/types/instructions/claimZeroCard.js.map +1 -0
- package/dist/types/instructions/closeDepositBurn.d.ts +17 -0
- package/dist/types/instructions/closeDepositBurn.d.ts.map +1 -0
- package/dist/types/instructions/closeDepositBurn.js +50 -0
- package/dist/types/instructions/closeDepositBurn.js.map +1 -0
- package/dist/types/instructions/closeRegisterTraits.d.ts +9 -0
- package/dist/types/instructions/closeRegisterTraits.d.ts.map +1 -0
- package/dist/types/instructions/closeRegisterTraits.js +18 -0
- package/dist/types/instructions/closeRegisterTraits.js.map +1 -0
- package/dist/types/instructions/createCard.d.ts +19 -0
- package/dist/types/instructions/createCard.d.ts.map +1 -0
- package/dist/types/instructions/createCard.js +58 -0
- package/dist/types/instructions/createCard.js.map +1 -0
- package/dist/types/instructions/createCollection.d.ts +22 -0
- package/dist/types/instructions/createCollection.d.ts.map +1 -0
- package/dist/types/instructions/createCollection.js +67 -0
- package/dist/types/instructions/createCollection.js.map +1 -0
- package/dist/types/instructions/createPack.d.ts +25 -0
- package/dist/types/instructions/createPack.d.ts.map +1 -0
- package/dist/types/instructions/createPack.js +68 -0
- package/dist/types/instructions/createPack.js.map +1 -0
- package/dist/types/instructions/createSingle.d.ts +25 -0
- package/dist/types/instructions/createSingle.d.ts.map +1 -0
- package/dist/types/instructions/createSingle.js +68 -0
- package/dist/types/instructions/createSingle.js.map +1 -0
- package/dist/types/instructions/createStore.d.ts +16 -0
- package/dist/types/instructions/createStore.d.ts.map +1 -0
- package/dist/types/instructions/createStore.js +55 -0
- package/dist/types/instructions/createStore.js.map +1 -0
- package/dist/types/instructions/createTokenLauncher.d.ts +28 -0
- package/dist/types/instructions/createTokenLauncher.d.ts.map +1 -0
- package/dist/types/instructions/createTokenLauncher.js +76 -0
- package/dist/types/instructions/createTokenLauncher.js.map +1 -0
- package/dist/types/instructions/createZeroCard.d.ts +25 -0
- package/dist/types/instructions/createZeroCard.d.ts.map +1 -0
- package/dist/types/instructions/createZeroCard.js +69 -0
- package/dist/types/instructions/createZeroCard.js.map +1 -0
- package/dist/types/instructions/deleteCard.d.ts +11 -0
- package/dist/types/instructions/deleteCard.d.ts.map +1 -0
- package/dist/types/instructions/deleteCard.js +20 -0
- package/dist/types/instructions/deleteCard.js.map +1 -0
- package/dist/types/instructions/deletePack.d.ts +15 -0
- package/dist/types/instructions/deletePack.d.ts.map +1 -0
- package/dist/types/instructions/deletePack.js +24 -0
- package/dist/types/instructions/deletePack.js.map +1 -0
- package/dist/types/instructions/deleteSingle.d.ts +13 -0
- package/dist/types/instructions/deleteSingle.d.ts.map +1 -0
- package/dist/types/instructions/deleteSingle.js +22 -0
- package/dist/types/instructions/deleteSingle.js.map +1 -0
- package/dist/types/instructions/deleteTokenLauncher.d.ts +12 -0
- package/dist/types/instructions/deleteTokenLauncher.d.ts.map +1 -0
- package/dist/types/instructions/deleteTokenLauncher.js +25 -0
- package/dist/types/instructions/deleteTokenLauncher.js.map +1 -0
- package/dist/types/instructions/depositBurn.d.ts +22 -0
- package/dist/types/instructions/depositBurn.d.ts.map +1 -0
- package/dist/types/instructions/depositBurn.js +54 -0
- package/dist/types/instructions/depositBurn.js.map +1 -0
- package/dist/types/instructions/donateUser.d.ts +30 -0
- package/dist/types/instructions/donateUser.d.ts.map +1 -0
- package/dist/types/instructions/donateUser.js +75 -0
- package/dist/types/instructions/donateUser.js.map +1 -0
- package/dist/types/instructions/feedPool.d.ts +21 -0
- package/dist/types/instructions/feedPool.d.ts.map +1 -0
- package/dist/types/instructions/feedPool.js +60 -0
- package/dist/types/instructions/feedPool.js.map +1 -0
- package/dist/types/instructions/feedTraits.d.ts +15 -0
- package/dist/types/instructions/feedTraits.d.ts.map +1 -0
- package/dist/types/instructions/feedTraits.js +50 -0
- package/dist/types/instructions/feedTraits.js.map +1 -0
- package/dist/types/instructions/feedTree.d.ts +21 -0
- package/dist/types/instructions/feedTree.d.ts.map +1 -0
- package/dist/types/instructions/feedTree.js +61 -0
- package/dist/types/instructions/feedTree.js.map +1 -0
- package/dist/types/instructions/flagPack.d.ts +16 -0
- package/dist/types/instructions/flagPack.d.ts.map +1 -0
- package/dist/types/instructions/flagPack.js +55 -0
- package/dist/types/instructions/flagPack.js.map +1 -0
- package/dist/types/instructions/flagSingle.d.ts +15 -0
- package/dist/types/instructions/flagSingle.d.ts.map +1 -0
- package/dist/types/instructions/flagSingle.js +53 -0
- package/dist/types/instructions/flagSingle.js.map +1 -0
- package/dist/types/instructions/gatePay.d.ts +22 -0
- package/dist/types/instructions/gatePay.d.ts.map +1 -0
- package/dist/types/instructions/gatePay.js +58 -0
- package/dist/types/instructions/gatePay.js.map +1 -0
- package/dist/types/instructions/index.d.ts +105 -0
- package/dist/types/instructions/index.d.ts.map +1 -0
- package/dist/types/instructions/index.js +109 -0
- package/dist/types/instructions/index.js.map +1 -0
- package/dist/types/instructions/initialize.d.ts +15 -0
- package/dist/types/instructions/initialize.d.ts.map +1 -0
- package/dist/types/instructions/initialize.js +52 -0
- package/dist/types/instructions/initialize.js.map +1 -0
- package/dist/types/instructions/openPack.d.ts +29 -0
- package/dist/types/instructions/openPack.d.ts.map +1 -0
- package/dist/types/instructions/openPack.js +70 -0
- package/dist/types/instructions/openPack.js.map +1 -0
- package/dist/types/instructions/prepareCreator.d.ts +10 -0
- package/dist/types/instructions/prepareCreator.d.ts.map +1 -0
- package/dist/types/instructions/prepareCreator.js +19 -0
- package/dist/types/instructions/prepareCreator.js.map +1 -0
- package/dist/types/instructions/preparePack.d.ts +17 -0
- package/dist/types/instructions/preparePack.d.ts.map +1 -0
- package/dist/types/instructions/preparePack.js +54 -0
- package/dist/types/instructions/preparePack.js.map +1 -0
- package/dist/types/instructions/prepareTraits.d.ts +9 -0
- package/dist/types/instructions/prepareTraits.d.ts.map +1 -0
- package/dist/types/instructions/prepareTraits.js +18 -0
- package/dist/types/instructions/prepareTraits.js.map +1 -0
- package/dist/types/instructions/printPack.d.ts +38 -0
- package/dist/types/instructions/printPack.d.ts.map +1 -0
- package/dist/types/instructions/printPack.js +79 -0
- package/dist/types/instructions/printPack.js.map +1 -0
- package/dist/types/instructions/printSingle.d.ts +41 -0
- package/dist/types/instructions/printSingle.d.ts.map +1 -0
- package/dist/types/instructions/printSingle.js +87 -0
- package/dist/types/instructions/printSingle.js.map +1 -0
- package/dist/types/instructions/recoverDepositBurn.d.ts +34 -0
- package/dist/types/instructions/recoverDepositBurn.d.ts.map +1 -0
- package/dist/types/instructions/recoverDepositBurn.js +67 -0
- package/dist/types/instructions/recoverDepositBurn.js.map +1 -0
- package/dist/types/instructions/registerActivity.d.ts +14 -0
- package/dist/types/instructions/registerActivity.d.ts.map +1 -0
- package/dist/types/instructions/registerActivity.js +48 -0
- package/dist/types/instructions/registerActivity.js.map +1 -0
- package/dist/types/instructions/registerCollector.d.ts +17 -0
- package/dist/types/instructions/registerCollector.d.ts.map +1 -0
- package/dist/types/instructions/registerCollector.js +63 -0
- package/dist/types/instructions/registerCollector.js.map +1 -0
- package/dist/types/instructions/registerCreator.d.ts +15 -0
- package/dist/types/instructions/registerCreator.d.ts.map +1 -0
- package/dist/types/instructions/registerCreator.js +50 -0
- package/dist/types/instructions/registerCreator.js.map +1 -0
- package/dist/types/instructions/registerGenericUser.d.ts +32 -0
- package/dist/types/instructions/registerGenericUser.d.ts.map +1 -0
- package/dist/types/instructions/registerGenericUser.js +81 -0
- package/dist/types/instructions/registerGenericUser.js.map +1 -0
- package/dist/types/instructions/registerPackUploads.d.ts +14 -0
- package/dist/types/instructions/registerPackUploads.d.ts.map +1 -0
- package/dist/types/instructions/registerPackUploads.js +49 -0
- package/dist/types/instructions/registerPackUploads.js.map +1 -0
- package/dist/types/instructions/registerTraits.d.ts +13 -0
- package/dist/types/instructions/registerTraits.d.ts.map +1 -0
- package/dist/types/instructions/registerTraits.js +48 -0
- package/dist/types/instructions/registerTraits.js.map +1 -0
- package/dist/types/instructions/registerUser.d.ts +15 -0
- package/dist/types/instructions/registerUser.d.ts.map +1 -0
- package/dist/types/instructions/registerUser.js +54 -0
- package/dist/types/instructions/registerUser.js.map +1 -0
- package/dist/types/instructions/storeLutFor.d.ts +14 -0
- package/dist/types/instructions/storeLutFor.d.ts.map +1 -0
- package/dist/types/instructions/storeLutFor.js +49 -0
- package/dist/types/instructions/storeLutFor.js.map +1 -0
- package/dist/types/instructions/unwrapAndDestroy.d.ts +23 -0
- package/dist/types/instructions/unwrapAndDestroy.d.ts.map +1 -0
- package/dist/types/instructions/unwrapAndDestroy.js +54 -0
- package/dist/types/instructions/unwrapAndDestroy.js.map +1 -0
- package/dist/types/instructions/updateCard.d.ts +17 -0
- package/dist/types/instructions/updateCard.d.ts.map +1 -0
- package/dist/types/instructions/updateCard.js +57 -0
- package/dist/types/instructions/updateCard.js.map +1 -0
- package/dist/types/instructions/updatePack.d.ts +23 -0
- package/dist/types/instructions/updatePack.d.ts.map +1 -0
- package/dist/types/instructions/updatePack.js +67 -0
- package/dist/types/instructions/updatePack.js.map +1 -0
- package/dist/types/instructions/updateSingle.d.ts +21 -0
- package/dist/types/instructions/updateSingle.d.ts.map +1 -0
- package/dist/types/instructions/updateSingle.js +63 -0
- package/dist/types/instructions/updateSingle.js.map +1 -0
- package/dist/types/instructions/updateStore.d.ts +15 -0
- package/dist/types/instructions/updateStore.d.ts.map +1 -0
- package/dist/types/instructions/updateStore.js +53 -0
- package/dist/types/instructions/updateStore.js.map +1 -0
- package/dist/types/instructions/withdrawFromStore.d.ts +8 -0
- package/dist/types/instructions/withdrawFromStore.d.ts.map +1 -0
- package/dist/types/instructions/withdrawFromStore.js +17 -0
- package/dist/types/instructions/withdrawFromStore.js.map +1 -0
- package/dist/types/programId.d.ts +14 -0
- package/dist/types/programId.d.ts.map +1 -0
- package/dist/types/programId.js +20 -0
- package/dist/types/programId.js.map +1 -0
- package/dist/types/types/AccountClass.d.ts +370 -0
- package/dist/types/types/AccountClass.d.ts.map +1 -0
- package/dist/types/types/AccountClass.js +778 -0
- package/dist/types/types/AccountClass.js.map +1 -0
- package/dist/types/types/AccountHasher.d.ts +42 -0
- package/dist/types/types/AccountHasher.d.ts.map +1 -0
- package/dist/types/types/AccountHasher.js +83 -0
- package/dist/types/types/AccountHasher.js.map +1 -0
- package/dist/types/types/ActionAfter.d.ts +84 -0
- package/dist/types/types/ActionAfter.d.ts.map +1 -0
- package/dist/types/types/ActionAfter.js +180 -0
- package/dist/types/types/ActionAfter.js.map +1 -0
- package/dist/types/types/AllowedCurrencyArgs.d.ts +22 -0
- package/dist/types/types/AllowedCurrencyArgs.d.ts.map +1 -0
- package/dist/types/types/AllowedCurrencyArgs.js +61 -0
- package/dist/types/types/AllowedCurrencyArgs.js.map +1 -0
- package/dist/types/types/AuthorityGateTypes.d.ts +32 -0
- package/dist/types/types/AuthorityGateTypes.d.ts.map +1 -0
- package/dist/types/types/AuthorityGateTypes.js +102 -0
- package/dist/types/types/AuthorityGateTypes.js.map +1 -0
- package/dist/types/types/BurnCount.d.ts +55 -0
- package/dist/types/types/BurnCount.d.ts.map +1 -0
- package/dist/types/types/BurnCount.js +62 -0
- package/dist/types/types/BurnCount.js.map +1 -0
- package/dist/types/types/BurnState.d.ts +32 -0
- package/dist/types/types/BurnState.d.ts.map +1 -0
- package/dist/types/types/BurnState.js +102 -0
- package/dist/types/types/BurnState.js.map +1 -0
- package/dist/types/types/BurnTrack.d.ts +31 -0
- package/dist/types/types/BurnTrack.d.ts.map +1 -0
- package/dist/types/types/BurnTrack.js +67 -0
- package/dist/types/types/BurnTrack.js.map +1 -0
- package/dist/types/types/BurnType.d.ts +45 -0
- package/dist/types/types/BurnType.d.ts.map +1 -0
- package/dist/types/types/BurnType.js +128 -0
- package/dist/types/types/BurnType.js.map +1 -0
- package/dist/types/types/BurnTypeBurn.d.ts +19 -0
- package/dist/types/types/BurnTypeBurn.d.ts.map +1 -0
- package/dist/types/types/BurnTypeBurn.js +74 -0
- package/dist/types/types/BurnTypeBurn.js.map +1 -0
- package/dist/types/types/BuyHistoryClass.d.ts +32 -0
- package/dist/types/types/BuyHistoryClass.d.ts.map +1 -0
- package/dist/types/types/BuyHistoryClass.js +102 -0
- package/dist/types/types/BuyHistoryClass.js.map +1 -0
- package/dist/types/types/CardClass.d.ts +19 -0
- package/dist/types/types/CardClass.d.ts.map +1 -0
- package/dist/types/types/CardClass.js +74 -0
- package/dist/types/types/CardClass.js.map +1 -0
- package/dist/types/types/CardState.d.ts +97 -0
- package/dist/types/types/CardState.d.ts.map +1 -0
- package/dist/types/types/CardState.js +232 -0
- package/dist/types/types/CardState.js.map +1 -0
- package/dist/types/types/CardTrack.d.ts +60 -0
- package/dist/types/types/CardTrack.d.ts.map +1 -0
- package/dist/types/types/CardTrack.js +76 -0
- package/dist/types/types/CardTrack.js.map +1 -0
- package/dist/types/types/Category.d.ts +32 -0
- package/dist/types/types/Category.d.ts.map +1 -0
- package/dist/types/types/Category.js +71 -0
- package/dist/types/types/Category.js.map +1 -0
- package/dist/types/types/CnftData.d.ts +37 -0
- package/dist/types/types/CnftData.d.ts.map +1 -0
- package/dist/types/types/CnftData.js +81 -0
- package/dist/types/types/CnftData.js.map +1 -0
- package/dist/types/types/CollectTrack.d.ts +28 -0
- package/dist/types/types/CollectTrack.d.ts.map +1 -0
- package/dist/types/types/CollectTrack.js +70 -0
- package/dist/types/types/CollectTrack.js.map +1 -0
- package/dist/types/types/Collection.d.ts +28 -0
- package/dist/types/types/Collection.d.ts.map +1 -0
- package/dist/types/types/Collection.js +67 -0
- package/dist/types/types/Collection.js.map +1 -0
- package/dist/types/types/CompactCnftData.d.ts +32 -0
- package/dist/types/types/CompactCnftData.d.ts.map +1 -0
- package/dist/types/types/CompactCnftData.js +75 -0
- package/dist/types/types/CompactCnftData.js.map +1 -0
- package/dist/types/types/CoolTimePerAmountArgs.d.ts +32 -0
- package/dist/types/types/CoolTimePerAmountArgs.d.ts.map +1 -0
- package/dist/types/types/CoolTimePerAmountArgs.js +71 -0
- package/dist/types/types/CoolTimePerAmountArgs.js.map +1 -0
- package/dist/types/types/Creator.d.ts +33 -0
- package/dist/types/types/Creator.d.ts.map +1 -0
- package/dist/types/types/Creator.js +72 -0
- package/dist/types/types/Creator.js.map +1 -0
- package/dist/types/types/CreatorGateArgs.d.ts +23 -0
- package/dist/types/types/CreatorGateArgs.d.ts.map +1 -0
- package/dist/types/types/CreatorGateArgs.js +62 -0
- package/dist/types/types/CreatorGateArgs.js.map +1 -0
- package/dist/types/types/CurrencyArtistProof.d.ts +38 -0
- package/dist/types/types/CurrencyArtistProof.d.ts.map +1 -0
- package/dist/types/types/CurrencyArtistProof.js +85 -0
- package/dist/types/types/CurrencyArtistProof.js.map +1 -0
- package/dist/types/types/CurrencyType.d.ts +111 -0
- package/dist/types/types/CurrencyType.d.ts.map +1 -0
- package/dist/types/types/CurrencyType.js +220 -0
- package/dist/types/types/CurrencyType.js.map +1 -0
- package/dist/types/types/DateTraitInit.d.ts +28 -0
- package/dist/types/types/DateTraitInit.d.ts.map +1 -0
- package/dist/types/types/DateTraitInit.js +70 -0
- package/dist/types/types/DateTraitInit.js.map +1 -0
- package/dist/types/types/DateTraitInitMap.d.ts +33 -0
- package/dist/types/types/DateTraitInitMap.d.ts.map +1 -0
- package/dist/types/types/DateTraitInitMap.js +75 -0
- package/dist/types/types/DateTraitInitMap.js.map +1 -0
- package/dist/types/types/Deposit.d.ts +135 -0
- package/dist/types/types/Deposit.d.ts.map +1 -0
- package/dist/types/types/Deposit.js +86 -0
- package/dist/types/types/Deposit.js.map +1 -0
- package/dist/types/types/DepositFormat.d.ts +32 -0
- package/dist/types/types/DepositFormat.d.ts.map +1 -0
- package/dist/types/types/DepositFormat.js +102 -0
- package/dist/types/types/DepositFormat.js.map +1 -0
- package/dist/types/types/DepositState.d.ts +32 -0
- package/dist/types/types/DepositState.d.ts.map +1 -0
- package/dist/types/types/DepositState.js +102 -0
- package/dist/types/types/DepositState.js.map +1 -0
- package/dist/types/types/DepositSubtype.d.ts +32 -0
- package/dist/types/types/DepositSubtype.d.ts.map +1 -0
- package/dist/types/types/DepositSubtype.js +102 -0
- package/dist/types/types/DepositSubtype.js.map +1 -0
- package/dist/types/types/DepositTrack.d.ts +47 -0
- package/dist/types/types/DepositTrack.d.ts.map +1 -0
- package/dist/types/types/DepositTrack.js +70 -0
- package/dist/types/types/DepositTrack.js.map +1 -0
- package/dist/types/types/DepositTrackType.d.ts +45 -0
- package/dist/types/types/DepositTrackType.d.ts.map +1 -0
- package/dist/types/types/DepositTrackType.js +128 -0
- package/dist/types/types/DepositTrackType.js.map +1 -0
- package/dist/types/types/DepositType.d.ts +123 -0
- package/dist/types/types/DepositType.d.ts.map +1 -0
- package/dist/types/types/DepositType.js +184 -0
- package/dist/types/types/DepositType.js.map +1 -0
- package/dist/types/types/Earnings.d.ts +15 -0
- package/dist/types/types/Earnings.d.ts.map +1 -0
- package/dist/types/types/Earnings.js +51 -0
- package/dist/types/types/Earnings.js.map +1 -0
- package/dist/types/types/EditionStoreType.d.ts +45 -0
- package/dist/types/types/EditionStoreType.d.ts.map +1 -0
- package/dist/types/types/EditionStoreType.js +128 -0
- package/dist/types/types/EditionStoreType.js.map +1 -0
- package/dist/types/types/EncryptedPayload.d.ts +27 -0
- package/dist/types/types/EncryptedPayload.d.ts.map +1 -0
- package/dist/types/types/EncryptedPayload.js +66 -0
- package/dist/types/types/EncryptedPayload.js.map +1 -0
- package/dist/types/types/ExtraParameter.d.ts +45 -0
- package/dist/types/types/ExtraParameter.d.ts.map +1 -0
- package/dist/types/types/ExtraParameter.js +115 -0
- package/dist/types/types/ExtraParameter.js.map +1 -0
- package/dist/types/types/FakeBurnCount.d.ts +54 -0
- package/dist/types/types/FakeBurnCount.d.ts.map +1 -0
- package/dist/types/types/FakeBurnCount.js +71 -0
- package/dist/types/types/FakeBurnCount.js.map +1 -0
- package/dist/types/types/FakeDeposit.d.ts +64 -0
- package/dist/types/types/FakeDeposit.d.ts.map +1 -0
- package/dist/types/types/FakeDeposit.js +71 -0
- package/dist/types/types/FakeDeposit.js.map +1 -0
- package/dist/types/types/FakeTraitPair.d.ts +27 -0
- package/dist/types/types/FakeTraitPair.d.ts.map +1 -0
- package/dist/types/types/FakeTraitPair.js +66 -0
- package/dist/types/types/FakeTraitPair.js.map +1 -0
- package/dist/types/types/FakeTraitValue.d.ts +28 -0
- package/dist/types/types/FakeTraitValue.d.ts.map +1 -0
- package/dist/types/types/FakeTraitValue.js +70 -0
- package/dist/types/types/FakeTraitValue.js.map +1 -0
- package/dist/types/types/FakeVolumeTrack.d.ts +35 -0
- package/dist/types/types/FakeVolumeTrack.d.ts.map +1 -0
- package/dist/types/types/FakeVolumeTrack.js +68 -0
- package/dist/types/types/FakeVolumeTrack.js.map +1 -0
- package/dist/types/types/FeeType.d.ts +45 -0
- package/dist/types/types/FeeType.d.ts.map +1 -0
- package/dist/types/types/FeeType.js +128 -0
- package/dist/types/types/FeeType.js.map +1 -0
- package/dist/types/types/FeedingTraits.d.ts +49 -0
- package/dist/types/types/FeedingTraits.d.ts.map +1 -0
- package/dist/types/types/FeedingTraits.js +62 -0
- package/dist/types/types/FeedingTraits.js.map +1 -0
- package/dist/types/types/Filter.d.ts +35 -0
- package/dist/types/types/Filter.d.ts.map +1 -0
- package/dist/types/types/Filter.js +67 -0
- package/dist/types/types/Filter.js.map +1 -0
- package/dist/types/types/FilterType.d.ts +19 -0
- package/dist/types/types/FilterType.d.ts.map +1 -0
- package/dist/types/types/FilterType.js +74 -0
- package/dist/types/types/FilterType.js.map +1 -0
- package/dist/types/types/GeneralStore.d.ts +19 -0
- package/dist/types/types/GeneralStore.d.ts.map +1 -0
- package/dist/types/types/GeneralStore.js +74 -0
- package/dist/types/types/GeneralStore.js.map +1 -0
- package/dist/types/types/GenericStore.d.ts +49 -0
- package/dist/types/types/GenericStore.d.ts.map +1 -0
- package/dist/types/types/GenericStore.js +67 -0
- package/dist/types/types/GenericStore.js.map +1 -0
- package/dist/types/types/GenericValue.d.ts +73 -0
- package/dist/types/types/GenericValue.d.ts.map +1 -0
- package/dist/types/types/GenericValue.js +159 -0
- package/dist/types/types/GenericValue.js.map +1 -0
- package/dist/types/types/GlobalFee.d.ts +51 -0
- package/dist/types/types/GlobalFee.d.ts.map +1 -0
- package/dist/types/types/GlobalFee.js +87 -0
- package/dist/types/types/GlobalFee.js.map +1 -0
- package/dist/types/types/GlobalState.d.ts +58 -0
- package/dist/types/types/GlobalState.d.ts.map +1 -0
- package/dist/types/types/GlobalState.js +154 -0
- package/dist/types/types/GlobalState.js.map +1 -0
- package/dist/types/types/IndexDate.d.ts +42 -0
- package/dist/types/types/IndexDate.d.ts.map +1 -0
- package/dist/types/types/IndexDate.js +87 -0
- package/dist/types/types/IndexDate.js.map +1 -0
- package/dist/types/types/IndexDates.d.ts +51 -0
- package/dist/types/types/IndexDates.d.ts.map +1 -0
- package/dist/types/types/IndexDates.js +67 -0
- package/dist/types/types/IndexDates.js.map +1 -0
- package/dist/types/types/Item.d.ts +108 -0
- package/dist/types/types/Item.d.ts.map +1 -0
- package/dist/types/types/Item.js +62 -0
- package/dist/types/types/Item.js.map +1 -0
- package/dist/types/types/ItemClass.d.ts +32 -0
- package/dist/types/types/ItemClass.d.ts.map +1 -0
- package/dist/types/types/ItemClass.js +102 -0
- package/dist/types/types/ItemClass.js.map +1 -0
- package/dist/types/types/ItemState.d.ts +123 -0
- package/dist/types/types/ItemState.d.ts.map +1 -0
- package/dist/types/types/ItemState.js +284 -0
- package/dist/types/types/ItemState.js.map +1 -0
- package/dist/types/types/ItemTrack.d.ts +69 -0
- package/dist/types/types/ItemTrack.d.ts.map +1 -0
- package/dist/types/types/ItemTrack.js +80 -0
- package/dist/types/types/ItemTrack.js.map +1 -0
- package/dist/types/types/ListingPerWalletArgs.d.ts +22 -0
- package/dist/types/types/ListingPerWalletArgs.d.ts.map +1 -0
- package/dist/types/types/ListingPerWalletArgs.js +61 -0
- package/dist/types/types/ListingPerWalletArgs.js.map +1 -0
- package/dist/types/types/MemeVaultProof.d.ts +28 -0
- package/dist/types/types/MemeVaultProof.d.ts.map +1 -0
- package/dist/types/types/MemeVaultProof.js +70 -0
- package/dist/types/types/MemeVaultProof.js.map +1 -0
- package/dist/types/types/MetadataArgs.d.ts +161 -0
- package/dist/types/types/MetadataArgs.d.ts.map +1 -0
- package/dist/types/types/MetadataArgs.js +139 -0
- package/dist/types/types/MetadataArgs.js.map +1 -0
- package/dist/types/types/NonFungibleTraitInit.d.ts +28 -0
- package/dist/types/types/NonFungibleTraitInit.d.ts.map +1 -0
- package/dist/types/types/NonFungibleTraitInit.js +70 -0
- package/dist/types/types/NonFungibleTraitInit.js.map +1 -0
- package/dist/types/types/NonFungibleTraitInitMap.d.ts +39 -0
- package/dist/types/types/NonFungibleTraitInitMap.d.ts.map +1 -0
- package/dist/types/types/NonFungibleTraitInitMap.js +80 -0
- package/dist/types/types/NonFungibleTraitInitMap.js.map +1 -0
- package/dist/types/types/OnlyBetweenTimesArgs.d.ts +44 -0
- package/dist/types/types/OnlyBetweenTimesArgs.d.ts.map +1 -0
- package/dist/types/types/OnlyBetweenTimesArgs.js +76 -0
- package/dist/types/types/OnlyBetweenTimesArgs.js.map +1 -0
- package/dist/types/types/OnlyTheseDOWArgs.d.ts +22 -0
- package/dist/types/types/OnlyTheseDOWArgs.d.ts.map +1 -0
- package/dist/types/types/OnlyTheseDOWArgs.js +61 -0
- package/dist/types/types/OnlyTheseDOWArgs.js.map +1 -0
- package/dist/types/types/PackConfig.d.ts +63 -0
- package/dist/types/types/PackConfig.d.ts.map +1 -0
- package/dist/types/types/PackConfig.js +89 -0
- package/dist/types/types/PackConfig.js.map +1 -0
- package/dist/types/types/PackOpenHolderState.d.ts +45 -0
- package/dist/types/types/PackOpenHolderState.d.ts.map +1 -0
- package/dist/types/types/PackOpenHolderState.js +128 -0
- package/dist/types/types/PackOpenHolderState.js.map +1 -0
- package/dist/types/types/PackRule.d.ts +32 -0
- package/dist/types/types/PackRule.d.ts.map +1 -0
- package/dist/types/types/PackRule.js +89 -0
- package/dist/types/types/PackRule.js.map +1 -0
- package/dist/types/types/PackState.d.ts +45 -0
- package/dist/types/types/PackState.d.ts.map +1 -0
- package/dist/types/types/PackState.js +128 -0
- package/dist/types/types/PackState.js.map +1 -0
- package/dist/types/types/PackType.d.ts +45 -0
- package/dist/types/types/PackType.d.ts.map +1 -0
- package/dist/types/types/PackType.js +128 -0
- package/dist/types/types/PackType.js.map +1 -0
- package/dist/types/types/PaymentClass.d.ts +45 -0
- package/dist/types/types/PaymentClass.d.ts.map +1 -0
- package/dist/types/types/PaymentClass.js +128 -0
- package/dist/types/types/PaymentClass.js.map +1 -0
- package/dist/types/types/PoolAccess.d.ts +32 -0
- package/dist/types/types/PoolAccess.d.ts.map +1 -0
- package/dist/types/types/PoolAccess.js +102 -0
- package/dist/types/types/PoolAccess.js.map +1 -0
- package/dist/types/types/PoolState.d.ts +32 -0
- package/dist/types/types/PoolState.d.ts.map +1 -0
- package/dist/types/types/PoolState.js +102 -0
- package/dist/types/types/PoolState.js.map +1 -0
- package/dist/types/types/PoolType.d.ts +32 -0
- package/dist/types/types/PoolType.d.ts.map +1 -0
- package/dist/types/types/PoolType.js +102 -0
- package/dist/types/types/PoolType.js.map +1 -0
- package/dist/types/types/Popularity.d.ts +113 -0
- package/dist/types/types/Popularity.d.ts.map +1 -0
- package/dist/types/types/Popularity.js +80 -0
- package/dist/types/types/Popularity.js.map +1 -0
- package/dist/types/types/PopularityState.d.ts +266 -0
- package/dist/types/types/PopularityState.d.ts.map +1 -0
- package/dist/types/types/PopularityState.js +570 -0
- package/dist/types/types/PopularityState.js.map +1 -0
- package/dist/types/types/PreviousDonationRecord.d.ts +43 -0
- package/dist/types/types/PreviousDonationRecord.d.ts.map +1 -0
- package/dist/types/types/PreviousDonationRecord.js +80 -0
- package/dist/types/types/PreviousDonationRecord.js.map +1 -0
- package/dist/types/types/Price.d.ts +61 -0
- package/dist/types/types/Price.d.ts.map +1 -0
- package/dist/types/types/Price.js +71 -0
- package/dist/types/types/Price.js.map +1 -0
- package/dist/types/types/PriceRule.d.ts +88 -0
- package/dist/types/types/PriceRule.d.ts.map +1 -0
- package/dist/types/types/PriceRule.js +197 -0
- package/dist/types/types/PriceRule.js.map +1 -0
- package/dist/types/types/RecoverDeposit.d.ts +32 -0
- package/dist/types/types/RecoverDeposit.d.ts.map +1 -0
- package/dist/types/types/RecoverDeposit.js +62 -0
- package/dist/types/types/RecoverDeposit.js.map +1 -0
- package/dist/types/types/Rule.d.ts +115 -0
- package/dist/types/types/Rule.d.ts.map +1 -0
- package/dist/types/types/Rule.js +168 -0
- package/dist/types/types/Rule.js.map +1 -0
- package/dist/types/types/SaleConfig.d.ts +208 -0
- package/dist/types/types/SaleConfig.d.ts.map +1 -0
- package/dist/types/types/SaleConfig.js +88 -0
- package/dist/types/types/SaleConfig.js.map +1 -0
- package/dist/types/types/SaleTrack.d.ts +38 -0
- package/dist/types/types/SaleTrack.d.ts.map +1 -0
- package/dist/types/types/SaleTrack.js +85 -0
- package/dist/types/types/SaleTrack.js.map +1 -0
- package/dist/types/types/SaleType.d.ts +58 -0
- package/dist/types/types/SaleType.d.ts.map +1 -0
- package/dist/types/types/SaleType.js +154 -0
- package/dist/types/types/SaleType.js.map +1 -0
- package/dist/types/types/Seed.d.ts +22 -0
- package/dist/types/types/Seed.d.ts.map +1 -0
- package/dist/types/types/Seed.js +61 -0
- package/dist/types/types/Seed.js.map +1 -0
- package/dist/types/types/SelectedCard.d.ts +27 -0
- package/dist/types/types/SelectedCard.d.ts.map +1 -0
- package/dist/types/types/SelectedCard.js +66 -0
- package/dist/types/types/SelectedCard.js.map +1 -0
- package/dist/types/types/SelectedZeroCard.d.ts +27 -0
- package/dist/types/types/SelectedZeroCard.d.ts.map +1 -0
- package/dist/types/types/SelectedZeroCard.js +66 -0
- package/dist/types/types/SelectedZeroCard.js.map +1 -0
- package/dist/types/types/SemiFungibleTraitInit.d.ts +28 -0
- package/dist/types/types/SemiFungibleTraitInit.d.ts.map +1 -0
- package/dist/types/types/SemiFungibleTraitInit.js +70 -0
- package/dist/types/types/SemiFungibleTraitInit.js.map +1 -0
- package/dist/types/types/SemiFungibleTraitInitMap.d.ts +33 -0
- package/dist/types/types/SemiFungibleTraitInitMap.d.ts.map +1 -0
- package/dist/types/types/SemiFungibleTraitInitMap.js +75 -0
- package/dist/types/types/SemiFungibleTraitInitMap.js.map +1 -0
- package/dist/types/types/ShortCreator.d.ts +28 -0
- package/dist/types/types/ShortCreator.d.ts.map +1 -0
- package/dist/types/types/ShortCreator.js +67 -0
- package/dist/types/types/ShortCreator.js.map +1 -0
- package/dist/types/types/ShortMetadata.d.ts +99 -0
- package/dist/types/types/ShortMetadata.d.ts.map +1 -0
- package/dist/types/types/ShortMetadata.js +121 -0
- package/dist/types/types/ShortMetadata.js.map +1 -0
- package/dist/types/types/ShortMetadataArgs.d.ts +54 -0
- package/dist/types/types/ShortMetadataArgs.d.ts.map +1 -0
- package/dist/types/types/ShortMetadataArgs.js +95 -0
- package/dist/types/types/ShortMetadataArgs.js.map +1 -0
- package/dist/types/types/StoreConfig.d.ts +108 -0
- package/dist/types/types/StoreConfig.d.ts.map +1 -0
- package/dist/types/types/StoreConfig.js +93 -0
- package/dist/types/types/StoreConfig.js.map +1 -0
- package/dist/types/types/StoreRule.d.ts +77 -0
- package/dist/types/types/StoreRule.d.ts.map +1 -0
- package/dist/types/types/StoreRule.js +129 -0
- package/dist/types/types/StoreRule.js.map +1 -0
- package/dist/types/types/SuperCategory.d.ts +27 -0
- package/dist/types/types/SuperCategory.d.ts.map +1 -0
- package/dist/types/types/SuperCategory.js +66 -0
- package/dist/types/types/SuperCategory.js.map +1 -0
- package/dist/types/types/TightCardMetadata.d.ts +60 -0
- package/dist/types/types/TightCardMetadata.d.ts.map +1 -0
- package/dist/types/types/TightCardMetadata.js +105 -0
- package/dist/types/types/TightCardMetadata.js.map +1 -0
- package/dist/types/types/TimeRangeType.d.ts +45 -0
- package/dist/types/types/TimeRangeType.d.ts.map +1 -0
- package/dist/types/types/TimeRangeType.js +128 -0
- package/dist/types/types/TimeRangeType.js.map +1 -0
- package/dist/types/types/TimedPerWalletArgs.d.ts +22 -0
- package/dist/types/types/TimedPerWalletArgs.d.ts.map +1 -0
- package/dist/types/types/TimedPerWalletArgs.js +61 -0
- package/dist/types/types/TimedPerWalletArgs.js.map +1 -0
- package/dist/types/types/TokenMetadata.d.ts +32 -0
- package/dist/types/types/TokenMetadata.d.ts.map +1 -0
- package/dist/types/types/TokenMetadata.js +71 -0
- package/dist/types/types/TokenMetadata.js.map +1 -0
- package/dist/types/types/TokenProgramVersion.d.ts +32 -0
- package/dist/types/types/TokenProgramVersion.d.ts.map +1 -0
- package/dist/types/types/TokenProgramVersion.js +102 -0
- package/dist/types/types/TokenProgramVersion.js.map +1 -0
- package/dist/types/types/TokenStandard.d.ts +58 -0
- package/dist/types/types/TokenStandard.d.ts.map +1 -0
- package/dist/types/types/TokenStandard.js +154 -0
- package/dist/types/types/TokenStandard.js.map +1 -0
- package/dist/types/types/TokenState.d.ts +32 -0
- package/dist/types/types/TokenState.d.ts.map +1 -0
- package/dist/types/types/TokenState.js +102 -0
- package/dist/types/types/TokenState.js.map +1 -0
- package/dist/types/types/TokenType.d.ts +32 -0
- package/dist/types/types/TokenType.d.ts.map +1 -0
- package/dist/types/types/TokenType.js +102 -0
- package/dist/types/types/TokenType.js.map +1 -0
- package/dist/types/types/TotalPerTimeArgs.d.ts +37 -0
- package/dist/types/types/TotalPerTimeArgs.d.ts.map +1 -0
- package/dist/types/types/TotalPerTimeArgs.js +81 -0
- package/dist/types/types/TotalPerTimeArgs.js.map +1 -0
- package/dist/types/types/TotalPerTimeWalletArgs.d.ts +27 -0
- package/dist/types/types/TotalPerTimeWalletArgs.d.ts.map +1 -0
- package/dist/types/types/TotalPerTimeWalletArgs.js +66 -0
- package/dist/types/types/TotalPerTimeWalletArgs.js.map +1 -0
- package/dist/types/types/TrackRegistry.d.ts +32 -0
- package/dist/types/types/TrackRegistry.d.ts.map +1 -0
- package/dist/types/types/TrackRegistry.js +102 -0
- package/dist/types/types/TrackRegistry.js.map +1 -0
- package/dist/types/types/TraitInit.d.ts +89 -0
- package/dist/types/types/TraitInit.d.ts.map +1 -0
- package/dist/types/types/TraitInit.js +176 -0
- package/dist/types/types/TraitInit.js.map +1 -0
- package/dist/types/types/TraitPass.d.ts +53 -0
- package/dist/types/types/TraitPass.d.ts.map +1 -0
- package/dist/types/types/TraitPass.js +62 -0
- package/dist/types/types/TraitPass.js.map +1 -0
- package/dist/types/types/TraitPassType.d.ts +97 -0
- package/dist/types/types/TraitPassType.d.ts.map +1 -0
- package/dist/types/types/TraitPassType.js +186 -0
- package/dist/types/types/TraitPassType.js.map +1 -0
- package/dist/types/types/TraitType.d.ts +113 -0
- package/dist/types/types/TraitType.d.ts.map +1 -0
- package/dist/types/types/TraitType.js +207 -0
- package/dist/types/types/TraitType.js.map +1 -0
- package/dist/types/types/TraitValue.d.ts +33 -0
- package/dist/types/types/TraitValue.d.ts.map +1 -0
- package/dist/types/types/TraitValue.js +75 -0
- package/dist/types/types/TraitValue.js.map +1 -0
- package/dist/types/types/UnlocksAfter.d.ts +71 -0
- package/dist/types/types/UnlocksAfter.d.ts.map +1 -0
- package/dist/types/types/UnlocksAfter.js +154 -0
- package/dist/types/types/UnlocksAfter.js.map +1 -0
- package/dist/types/types/UnwrapMetadata.d.ts +80 -0
- package/dist/types/types/UnwrapMetadata.d.ts.map +1 -0
- package/dist/types/types/UnwrapMetadata.js +128 -0
- package/dist/types/types/UnwrapMetadata.js.map +1 -0
- package/dist/types/types/UseMethod.d.ts +45 -0
- package/dist/types/types/UseMethod.d.ts.map +1 -0
- package/dist/types/types/UseMethod.js +128 -0
- package/dist/types/types/UseMethod.js.map +1 -0
- package/dist/types/types/Uses.d.ts +45 -0
- package/dist/types/types/Uses.d.ts.map +1 -0
- package/dist/types/types/Uses.js +80 -0
- package/dist/types/types/Uses.js.map +1 -0
- package/dist/types/types/VerifyCollectionMetadata.d.ts +56 -0
- package/dist/types/types/VerifyCollectionMetadata.d.ts.map +1 -0
- package/dist/types/types/VerifyCollectionMetadata.js +94 -0
- package/dist/types/types/VerifyCollectionMetadata.js.map +1 -0
- package/dist/types/types/VolumeTrack.d.ts +28 -0
- package/dist/types/types/VolumeTrack.d.ts.map +1 -0
- package/dist/types/types/VolumeTrack.js +70 -0
- package/dist/types/types/VolumeTrack.js.map +1 -0
- package/dist/types/types/WrappedSource.d.ts +39 -0
- package/dist/types/types/WrappedSource.d.ts.map +1 -0
- package/dist/types/types/WrappedSource.js +86 -0
- package/dist/types/types/WrappedSource.js.map +1 -0
- package/dist/types/types/ZeroConfig.d.ts +37 -0
- package/dist/types/types/ZeroConfig.d.ts.map +1 -0
- package/dist/types/types/ZeroConfig.js +81 -0
- package/dist/types/types/ZeroConfig.js.map +1 -0
- package/dist/types/types/index.d.ts +333 -0
- package/dist/types/types/index.d.ts.map +1 -0
- package/dist/types/types/index.js +265 -0
- package/dist/types/types/index.js.map +1 -0
- package/dist/utility/Connection.d.ts +4 -0
- package/dist/utility/Connection.d.ts.map +1 -0
- package/dist/utility/Connection.js +12 -0
- package/dist/utility/Connection.js.map +1 -0
- package/dist/utility/Holders.d.ts +9 -0
- package/dist/utility/Holders.d.ts.map +1 -0
- package/dist/utility/Holders.js +12 -0
- package/dist/utility/Holders.js.map +1 -0
- package/dist/utility/PdaManager.d.ts +20 -0
- package/dist/utility/PdaManager.d.ts.map +1 -0
- package/dist/utility/PdaManager.js +175 -0
- package/dist/utility/PdaManager.js.map +1 -0
- package/dist/utility/config.d.ts +12 -0
- package/dist/utility/config.d.ts.map +1 -0
- package/dist/utility/config.js +24 -0
- package/dist/utility/config.js.map +1 -0
- package/dist/utility/utils.d.ts +14 -0
- package/dist/utility/utils.d.ts.map +1 -0
- package/dist/utility/utils.js +198 -0
- package/dist/utility/utils.js.map +1 -0
- package/dist/utility/validation.d.ts +13 -0
- package/dist/utility/validation.d.ts.map +1 -0
- package/dist/utility/validation.js +161 -0
- package/dist/utility/validation.js.map +1 -0
- package/package.json +1 -1
- package/src/index.ts +9 -5
- package/src/library/Irys/irys.ts +3 -3
- package/src/library/Store.ts +20 -2
- package/src/library/implementation/storeImplementation.ts +97 -29
- package/src/types/implementation/implementationTypes.ts +4 -0
@@ -0,0 +1,389 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
15
|
+
}) : function(o, v) {
|
16
|
+
o["default"] = v;
|
17
|
+
});
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
19
|
+
if (mod && mod.__esModule) return mod;
|
20
|
+
var result = {};
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
22
|
+
__setModuleDefault(result, mod);
|
23
|
+
return result;
|
24
|
+
};
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
27
|
+
};
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
29
|
+
exports.createStoreImp = createStoreImp;
|
30
|
+
exports.createCollectionImp = createCollectionImp;
|
31
|
+
exports.createSingleImp = createSingleImp;
|
32
|
+
exports.buySingleImp = buySingleImp;
|
33
|
+
exports.handleError = handleError;
|
34
|
+
const bn_js_1 = require("bn.js");
|
35
|
+
const Store_1 = require("../Store");
|
36
|
+
const web3_js_1 = require("@solana/web3.js");
|
37
|
+
const types_1 = require("../../types/types");
|
38
|
+
const anchor_1 = require("@project-serum/anchor");
|
39
|
+
const fs2 = __importStar(require("fs"));
|
40
|
+
const path_1 = __importDefault(require("path"));
|
41
|
+
const bytes_1 = require("@project-serum/anchor/dist/cjs/utils/bytes");
|
42
|
+
const config_1 = require("../../utility/config");
|
43
|
+
function initializeSDKAndWallet(options) {
|
44
|
+
let sdk;
|
45
|
+
if (options.isMainnet) {
|
46
|
+
sdk = new Store_1.Store({ network: config_1.NetworkType.MAINNET });
|
47
|
+
}
|
48
|
+
else {
|
49
|
+
sdk = new Store_1.Store();
|
50
|
+
}
|
51
|
+
let walletKeypair;
|
52
|
+
if (options.privateKey) {
|
53
|
+
if (typeof options.privateKey === "string") {
|
54
|
+
// Decode base58 string to Uint8Array
|
55
|
+
try {
|
56
|
+
const decoded = bytes_1.bs58.decode(options.privateKey);
|
57
|
+
walletKeypair = web3_js_1.Keypair.fromSecretKey(decoded);
|
58
|
+
}
|
59
|
+
catch (error) {
|
60
|
+
throw new Error(`Invalid base58 private key: ${error}`);
|
61
|
+
}
|
62
|
+
}
|
63
|
+
else if (Array.isArray(options.privateKey)) {
|
64
|
+
// Handle array of numbers
|
65
|
+
walletKeypair = web3_js_1.Keypair.fromSecretKey(Uint8Array.from(options.privateKey));
|
66
|
+
}
|
67
|
+
else {
|
68
|
+
// Handle Uint8Array directly
|
69
|
+
walletKeypair = web3_js_1.Keypair.fromSecretKey(options.privateKey);
|
70
|
+
}
|
71
|
+
}
|
72
|
+
else if (options.walletPath) {
|
73
|
+
// Existing file-based initialization
|
74
|
+
const secretKey = JSON.parse(fs2.readFileSync(options.walletPath, "utf-8"));
|
75
|
+
walletKeypair = web3_js_1.Keypair.fromSecretKey(Uint8Array.from(secretKey));
|
76
|
+
}
|
77
|
+
else {
|
78
|
+
throw new Error("Either walletPath or privateKey must be provided");
|
79
|
+
}
|
80
|
+
const payer = new anchor_1.Wallet(walletKeypair);
|
81
|
+
return { sdk, walletKeypair, payer };
|
82
|
+
}
|
83
|
+
async function createStoreImp(options, storeSetup) {
|
84
|
+
const { sdk, walletKeypair, payer } = initializeSDKAndWallet(options);
|
85
|
+
try {
|
86
|
+
const storeConfig = {
|
87
|
+
fee: new bn_js_1.BN(1000000),
|
88
|
+
feePercentage: storeSetup.storeFee,
|
89
|
+
feeType: new types_1.FeeType.AllMints(),
|
90
|
+
trust: payer.publicKey,
|
91
|
+
rules: [],
|
92
|
+
toJSON: function () {
|
93
|
+
throw new Error("Function not implemented.");
|
94
|
+
},
|
95
|
+
toEncodable: function () {
|
96
|
+
throw new Error("Function not implemented.");
|
97
|
+
},
|
98
|
+
};
|
99
|
+
const createStoreTxId = await sdk.createStore(walletKeypair, storeSetup.storeName, storeConfig);
|
100
|
+
return {
|
101
|
+
transactionId: createStoreTxId,
|
102
|
+
payerPublicKey: payer.publicKey.toString(),
|
103
|
+
};
|
104
|
+
}
|
105
|
+
catch (error) {
|
106
|
+
handleError(error);
|
107
|
+
throw error;
|
108
|
+
}
|
109
|
+
}
|
110
|
+
async function createCollectionImp(options, collectionOpts) {
|
111
|
+
const { sdk, walletKeypair, payer } = initializeSDKAndWallet(options);
|
112
|
+
const collectionDetails = { __kind: "V1", size: 0 };
|
113
|
+
const creator = new types_1.Creator({
|
114
|
+
address: payer.publicKey,
|
115
|
+
verified: false,
|
116
|
+
share: 100,
|
117
|
+
});
|
118
|
+
const metadata = {
|
119
|
+
symbol: collectionOpts.collectionSymbol, //max 10 chars
|
120
|
+
name: collectionOpts.collectionName, //max 32 chars
|
121
|
+
uri: "",
|
122
|
+
sellerFeeBasisPoints: new bn_js_1.BN(5),
|
123
|
+
creators: [creator],
|
124
|
+
collection: null,
|
125
|
+
uses: null,
|
126
|
+
};
|
127
|
+
let optionsCollection;
|
128
|
+
if (collectionOpts.mainImageUrl) {
|
129
|
+
// Use URLs if provided
|
130
|
+
let files = {
|
131
|
+
file: {
|
132
|
+
url: collectionOpts.mainImageUrl,
|
133
|
+
},
|
134
|
+
};
|
135
|
+
// Add cover URL if provided
|
136
|
+
if (collectionOpts.coverImageUrl) {
|
137
|
+
files.cover = {
|
138
|
+
url: collectionOpts.coverImageUrl,
|
139
|
+
};
|
140
|
+
}
|
141
|
+
optionsCollection = {
|
142
|
+
symbol: metadata.symbol,
|
143
|
+
metadata: {
|
144
|
+
name: metadata.name,
|
145
|
+
description: collectionOpts.collectionDescription,
|
146
|
+
files: files,
|
147
|
+
},
|
148
|
+
creators: metadata.creators,
|
149
|
+
traits: [],
|
150
|
+
sellerFeeBasisPoints: metadata.sellerFeeBasisPoints,
|
151
|
+
};
|
152
|
+
}
|
153
|
+
else {
|
154
|
+
const imageBuffer = fs2.readFileSync(path_1.default.join(process.cwd(), "assets", "ds.jpeg")).buffer;
|
155
|
+
const coverBuffer = fs2.readFileSync(path_1.default.join(process.cwd(), "assets", "3land_rebrand.gif")).buffer;
|
156
|
+
optionsCollection = {
|
157
|
+
symbol: metadata.symbol,
|
158
|
+
metadata: {
|
159
|
+
name: metadata.name,
|
160
|
+
description: collectionOpts.collectionDescription,
|
161
|
+
files: {
|
162
|
+
file: {
|
163
|
+
arrayBuffer() {
|
164
|
+
return imageBuffer;
|
165
|
+
},
|
166
|
+
type: "image/gif",
|
167
|
+
},
|
168
|
+
cover: {
|
169
|
+
arrayBuffer() {
|
170
|
+
return coverBuffer;
|
171
|
+
},
|
172
|
+
type: "image/gif",
|
173
|
+
},
|
174
|
+
},
|
175
|
+
},
|
176
|
+
creators: metadata.creators,
|
177
|
+
traits: [],
|
178
|
+
sellerFeeBasisPoints: metadata.sellerFeeBasisPoints,
|
179
|
+
};
|
180
|
+
}
|
181
|
+
// const imageBuffer = fs2.readFileSync(
|
182
|
+
// path.join(process.cwd(), "assets", "ds.jpeg")
|
183
|
+
// ).buffer;
|
184
|
+
// const coverBuffer = fs2.readFileSync(
|
185
|
+
// path.join(process.cwd(), "assets", "3land_rebrand.gif")
|
186
|
+
// ).buffer;
|
187
|
+
// const optionsCollection = {
|
188
|
+
// symbol: metadata.symbol,
|
189
|
+
// metadata: {
|
190
|
+
// name: metadata.name,
|
191
|
+
// description: collectionOpts.collectionDescription,
|
192
|
+
// files: {
|
193
|
+
// file: {
|
194
|
+
// arrayBuffer() {
|
195
|
+
// return imageBuffer;
|
196
|
+
// },
|
197
|
+
// type: "image/gif",
|
198
|
+
// },
|
199
|
+
// cover: {
|
200
|
+
// arrayBuffer() {
|
201
|
+
// return coverBuffer;
|
202
|
+
// },
|
203
|
+
// type: "image/gif",
|
204
|
+
// },
|
205
|
+
// },
|
206
|
+
// },
|
207
|
+
// creators: metadata.creators,
|
208
|
+
// traits: [],
|
209
|
+
// sellerFeeBasisPoints: metadata.sellerFeeBasisPoints,
|
210
|
+
// };
|
211
|
+
try {
|
212
|
+
const collectionTx = await sdk.createCollection(walletKeypair, collectionDetails, metadata, {
|
213
|
+
options: optionsCollection,
|
214
|
+
});
|
215
|
+
console.log("create collection tx: ", collectionTx);
|
216
|
+
return collectionTx;
|
217
|
+
}
|
218
|
+
catch (error) {
|
219
|
+
handleError(error);
|
220
|
+
return { success: false, error: error };
|
221
|
+
}
|
222
|
+
}
|
223
|
+
async function createSingleImp(options, storeAccount, collectionAccount, createOptions) {
|
224
|
+
const { sdk, walletKeypair, payer } = initializeSDKAndWallet(options);
|
225
|
+
try {
|
226
|
+
const creator = new types_1.Creator({
|
227
|
+
address: payer.publicKey,
|
228
|
+
verified: false,
|
229
|
+
share: 100,
|
230
|
+
});
|
231
|
+
const metadata = {
|
232
|
+
name: createOptions.itemName,
|
233
|
+
uri: "",
|
234
|
+
uriType: 1,
|
235
|
+
sellerFeeBasisPoints: createOptions.sellerFee,
|
236
|
+
collection: new web3_js_1.PublicKey(collectionAccount),
|
237
|
+
creators: [creator],
|
238
|
+
toJSON: function () {
|
239
|
+
throw new Error("Function not implemented.");
|
240
|
+
},
|
241
|
+
toEncodable: function () {
|
242
|
+
throw new Error("Function not implemented.");
|
243
|
+
},
|
244
|
+
};
|
245
|
+
/*
|
246
|
+
For MP4
|
247
|
+
const videoBuffer = await fs2.promises.readFile(
|
248
|
+
path.join(process.cwd(), "assets", "video.mp4")
|
249
|
+
);
|
250
|
+
|
251
|
+
For MP3
|
252
|
+
const audioBuffer = await fs2.promises.readFile(
|
253
|
+
path.join(process.cwd(), "assets", "audio.mp3")
|
254
|
+
);
|
255
|
+
|
256
|
+
For WebP
|
257
|
+
const webpBuffer = await fs2.promises.readFile(
|
258
|
+
path.join(process.cwd(), "assets", "image.webp")
|
259
|
+
);
|
260
|
+
|
261
|
+
For GLB
|
262
|
+
const glbBuffer = await fs2.promises.readFile(
|
263
|
+
path.join(process.cwd(), "assets", "model.glb")
|
264
|
+
);
|
265
|
+
*/
|
266
|
+
let options;
|
267
|
+
if (createOptions.mainImageUrl) {
|
268
|
+
// Create base metadata files object
|
269
|
+
let baseMetadataFiles = {
|
270
|
+
file: {
|
271
|
+
url: createOptions.mainImageUrl,
|
272
|
+
},
|
273
|
+
};
|
274
|
+
// Add cover if present
|
275
|
+
if (createOptions.coverImageUrl) {
|
276
|
+
baseMetadataFiles.cover = {
|
277
|
+
url: createOptions.coverImageUrl,
|
278
|
+
};
|
279
|
+
}
|
280
|
+
options = {
|
281
|
+
symbol: createOptions.itemSymbol,
|
282
|
+
metadata: {
|
283
|
+
name: metadata.name,
|
284
|
+
description: createOptions.itemDescription,
|
285
|
+
files: baseMetadataFiles,
|
286
|
+
},
|
287
|
+
creators: metadata.creators,
|
288
|
+
traits: createOptions.traits,
|
289
|
+
sellerFeeBasisPoints: metadata.sellerFeeBasisPoints,
|
290
|
+
};
|
291
|
+
}
|
292
|
+
else {
|
293
|
+
const imageBuffer = await fs2.promises.readFile(path_1.default.join(process.cwd(), "assets", "og.png"));
|
294
|
+
if (!imageBuffer || imageBuffer.byteLength === 0) {
|
295
|
+
throw new Error("Failed to read main image file");
|
296
|
+
}
|
297
|
+
const coverBuffer = await fs2.promises.readFile(path_1.default.join(process.cwd(), "assets", "niicl.gif"));
|
298
|
+
if (!coverBuffer) {
|
299
|
+
throw new Error("Failed to read cover file");
|
300
|
+
}
|
301
|
+
options = {
|
302
|
+
symbol: createOptions.itemSymbol,
|
303
|
+
metadata: {
|
304
|
+
name: metadata.name,
|
305
|
+
description: createOptions.itemDescription,
|
306
|
+
files: {
|
307
|
+
file: {
|
308
|
+
arrayBuffer: () => imageBuffer,
|
309
|
+
type: "image/png",
|
310
|
+
name: "og.png",
|
311
|
+
size: imageBuffer.length,
|
312
|
+
},
|
313
|
+
cover: {
|
314
|
+
arrayBuffer: () => coverBuffer,
|
315
|
+
type: "image/gif",
|
316
|
+
name: "niicl.gif",
|
317
|
+
size: coverBuffer.length,
|
318
|
+
},
|
319
|
+
},
|
320
|
+
},
|
321
|
+
creators: metadata.creators,
|
322
|
+
traits: createOptions.traits,
|
323
|
+
sellerFeeBasisPoints: metadata.sellerFeeBasisPoints,
|
324
|
+
};
|
325
|
+
}
|
326
|
+
console.log("cover options: ", options);
|
327
|
+
const saleConfig = {
|
328
|
+
prices: [
|
329
|
+
{
|
330
|
+
amount: new bn_js_1.BN(createOptions.price),
|
331
|
+
priceType: new types_1.CurrencyType.Native(),
|
332
|
+
toJSON: function () {
|
333
|
+
throw new Error("Function not implemented.");
|
334
|
+
},
|
335
|
+
toEncodable: function () {
|
336
|
+
throw new Error("Function not implemented.");
|
337
|
+
},
|
338
|
+
},
|
339
|
+
],
|
340
|
+
priceType: new types_1.PriceRule.None(),
|
341
|
+
rules: [],
|
342
|
+
sendToVault: 0,
|
343
|
+
saleType: new types_1.SaleType.Normal(),
|
344
|
+
toJSON: function () {
|
345
|
+
throw new Error("Function not implemented.");
|
346
|
+
},
|
347
|
+
toEncodable: function () {
|
348
|
+
throw new Error("Function not implemented.");
|
349
|
+
},
|
350
|
+
};
|
351
|
+
const createSingleEditionTxId = await sdk.createSingleEdition(walletKeypair, new web3_js_1.PublicKey(storeAccount), createOptions.itemAmount, metadata, saleConfig, [1, 0, 0], [1, 0], 0, 12345, new web3_js_1.PublicKey(collectionAccount), {
|
352
|
+
options: options,
|
353
|
+
});
|
354
|
+
return {
|
355
|
+
transactionId: createSingleEditionTxId,
|
356
|
+
payerPublicKey: payer.publicKey.toString(),
|
357
|
+
};
|
358
|
+
}
|
359
|
+
catch (error) {
|
360
|
+
handleError(error);
|
361
|
+
throw error;
|
362
|
+
}
|
363
|
+
}
|
364
|
+
async function buySingleImp(options, item) {
|
365
|
+
const { sdk, walletKeypair, payer } = initializeSDKAndWallet(options);
|
366
|
+
try {
|
367
|
+
const owner = payer;
|
368
|
+
const buySingleEditionTxId = await sdk.buySingleEdition(walletKeypair, [0, 0, 0, 0, 0, 0], new web3_js_1.PublicKey(item));
|
369
|
+
console.log("** buy single tx: ", buySingleEditionTxId);
|
370
|
+
return {
|
371
|
+
transactionId: buySingleEditionTxId,
|
372
|
+
ownerPublicKey: owner.publicKey.toString(),
|
373
|
+
};
|
374
|
+
}
|
375
|
+
catch (error) {
|
376
|
+
handleError(error);
|
377
|
+
throw error;
|
378
|
+
}
|
379
|
+
}
|
380
|
+
function handleError(error) {
|
381
|
+
if (error instanceof web3_js_1.SendTransactionError) {
|
382
|
+
console.error("Transaction failed. Error message:", error.message);
|
383
|
+
console.error("Transaction logs:", error.logs);
|
384
|
+
}
|
385
|
+
else {
|
386
|
+
console.error("An unexpected error occurred:", error);
|
387
|
+
}
|
388
|
+
}
|
389
|
+
//# sourceMappingURL=storeImplementation.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"storeImplementation.js","sourceRoot":"","sources":["../../../src/library/implementation/storeImplementation.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAscE,wCAAc;AACd,kDAAmB;AACnB,0CAAe;AACf,oCAAY;AACZ,kCAAW;AA1cb,iCAA2B;AAC3B,oCAA0D;AAC1D,6CAA2E;AAC3E,6CAW2B;AAC3B,kDAA+C;AAC/C,wCAA0B;AAE1B,gDAAwB;AAExB,sEAAkE;AAOlE,iDAAmD;AAEnD,SAAS,sBAAsB,CAAC,OAAyB;IACvD,IAAI,GAAG,CAAC;I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AAE,CAAC;QACf,WAAW,CAAC,KAAK,CAAC,CAAC;QACnB,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC;AAED,SAAS,WAAW,CAAC,KAAc;IACjC,IAAI,KAAK,YAAY,8BAAoB,EAAE,CAAC;QAC1C,OAAO,CAAC,KAAK,CAAC,oCAAoC,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;QACnE,OAAO,CAAC,KAAK,CAAC,mBAAmB,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;IACjD,CAAC;SAAM,CAAC;QACN,OAAO,CAAC,KAAK,CAAC,+BAA+B,EAAE,KAAK,CAAC,CAAC;IACxD,CAAC;AACH,CAAC"}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { Connection, PublicKey, TransactionInstruction } from "@solana/web3.js";
|
2
|
+
export declare let lutAccount: any;
|
3
|
+
export declare let merkleTree: any;
|
4
|
+
export declare let merkleOptions: {
|
5
|
+
merkleTree: any;
|
6
|
+
lutAccount: any;
|
7
|
+
mainnet: {
|
8
|
+
merkleTree: string;
|
9
|
+
lutAccount: string;
|
10
|
+
};
|
11
|
+
devnet: {
|
12
|
+
merkleTree: string;
|
13
|
+
lutAccount: string;
|
14
|
+
};
|
15
|
+
};
|
16
|
+
export declare function buySingleEditionInstruction(paymentAccount: PublicKey, itemAccount: PublicKey, packAccount: PublicKey, burnDeposit: PublicKey, poolVault: PublicKey, holderAccount: PublicKey, owner: PublicKey, payer: PublicKey, distributionBumps: number[], data: any, storeAccount: PublicKey, globalStoreAccount: PublicKey, identifier: number, extraAccounts: any[], creator: PublicKey, collectionAddress: PublicKey, connectionInstance: Connection): Promise<TransactionInstruction[]>;
|
17
|
+
//# sourceMappingURL=buySingleEdition.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"buySingleEdition.d.ts","sourceRoot":"","sources":["../../../../src/library/instructions/store/buySingleEdition.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,SAAS,EAET,sBAAsB,EACvB,MAAM,iBAAiB,CAAC;AAwBzB,eAAO,IAAI,UAAU,KAEpB,CAAC;AACF,eAAO,IAAI,UAAU,KAEpB,CAAC;AACF,eAAO,IAAI,aAAa;;;;;;;;;;;CAWvB,CAAC;AASF,wBAAsB,2BAA2B,CAC/C,cAAc,EAAE,SAAS,EACzB,WAAW,EAAE,SAAS,EACtB,WAAW,EAAE,SAAS,EACtB,WAAW,EAAE,SAAS,EACtB,SAAS,EAAE,SAAS,EACpB,aAAa,EAAE,SAAS,EACxB,KAAK,EAAE,SAAS,EAChB,KAAK,EAAE,SAAS,EAChB,iBAAiB,EAAE,MAAM,EAAE,EAC3B,IAAI,EAAE,GAAG,EACT,YAAY,EAAE,SAAS,EACvB,kBAAkB,EAAE,SAAS,EAC7B,UAAU,EAAE,MAAM,EAClB,aAAa,EAAE,GAAG,EAAE,EACpB,OAAO,EAAE,SAAS,EAClB,iBAAiB,EAAE,SAAS,EAC5B,kBAAkB,EAAE,UAAU,GAC7B,OAAO,CAAC,sBAAsB,EAAE,CAAC,CA0JnC"}
|
@@ -0,0 +1,154 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.merkleOptions = exports.merkleTree = exports.lutAccount = void 0;
|
4
|
+
exports.buySingleEditionInstruction = buySingleEditionInstruction;
|
5
|
+
const web3_js_1 = require("@solana/web3.js");
|
6
|
+
const programId_1 = require("../../../types/programId");
|
7
|
+
const instructions_1 = require("../../../types/instructions");
|
8
|
+
const PdaManager_1 = require("../../../utility/PdaManager");
|
9
|
+
const utils_1 = require("../../../utility/utils");
|
10
|
+
const bn_js_1 = require("bn.js");
|
11
|
+
const types_1 = require("../../../types/types");
|
12
|
+
const anchor_1 = require("@project-serum/anchor");
|
13
|
+
const idl_1 = require("./idl");
|
14
|
+
exports.lutAccount = (0, PdaManager_1.toPublicKey)("EJbrXVgac2wEL2H7FJr38vD7LQpEujWZiSPHSYZ3htCa");
|
15
|
+
exports.merkleTree = (0, PdaManager_1.toPublicKey)("4GQ32bJ6F6hGnASo836rVbpxWRaeGzj3xkP3pmHnRwiz");
|
16
|
+
exports.merkleOptions = {
|
17
|
+
merkleTree: exports.merkleTree,
|
18
|
+
lutAccount: exports.lutAccount,
|
19
|
+
mainnet: {
|
20
|
+
merkleTree: "Ccw1HJ6U4uVHbmXWogUGA3YCtwQEoeb5ta9zF3o1QJBM",
|
21
|
+
lutAccount: "5keha7sPVfoK1A7kpBUaAox11xHBCremixsUmQ1ZDAiG",
|
22
|
+
},
|
23
|
+
devnet: {
|
24
|
+
merkleTree: "2t66TFv7rV69puPqPjU7T9wCwmCGRPnSJy7mbcrrZ5KU",
|
25
|
+
lutAccount: "Bpp4MKTVrtr1RajivpbMrEbqbYu8KEFbt1LzW8xAJqkE",
|
26
|
+
},
|
27
|
+
};
|
28
|
+
const logWrapper = programId_1.SPL_NOOP_PROGRAM_ID;
|
29
|
+
const bubblegumProgram = programId_1.BUBBLEGUM_PROGRAM_ID;
|
30
|
+
const tokenMetadataProgram = programId_1.TOKEN_METADATA_PROGRAM_ID;
|
31
|
+
const compressionProgram = programId_1.SPL_ACCOUNT_COMPRESSION_PROGRAM_ID;
|
32
|
+
let connection;
|
33
|
+
async function buySingleEditionInstruction(paymentAccount, itemAccount, packAccount, burnDeposit, poolVault, holderAccount, owner, payer, distributionBumps, data, storeAccount, globalStoreAccount, identifier, extraAccounts, creator, collectionAddress, connectionInstance) {
|
34
|
+
const systemProgram = web3_js_1.SystemProgram.programId;
|
35
|
+
connection = connectionInstance;
|
36
|
+
const endpoint = connection.rpcEndpoint.toLocaleLowerCase();
|
37
|
+
const pay = (0, instructions_1.buyPay)({ distributionBumps }, {
|
38
|
+
paymentAccount,
|
39
|
+
itemAccount,
|
40
|
+
packAccount,
|
41
|
+
burnDeposit,
|
42
|
+
poolVault,
|
43
|
+
holderAccount,
|
44
|
+
owner,
|
45
|
+
payer,
|
46
|
+
systemProgram,
|
47
|
+
}, extraAccounts, programId_1.PROGRAM_ID);
|
48
|
+
let itemCreator = creator;
|
49
|
+
const currency = (0, PdaManager_1.toPublicKey)(data?.track?.currency || programId_1.PROGRAM_ID);
|
50
|
+
const bubblegumSigner = (0, PdaManager_1.toPublicKey)("4ewWZC5gT6TGpm5LZNDs9wVonfUT2q5PP5sc9kVbwMAK");
|
51
|
+
const useGlobal = false;
|
52
|
+
const merkle = useGlobal
|
53
|
+
? exports.merkleOptions?.merkleTree
|
54
|
+
: endpoint.includes("mainnet")
|
55
|
+
? (0, PdaManager_1.toPublicKey)(exports.merkleOptions?.mainnet?.merkleTree)
|
56
|
+
: (0, PdaManager_1.toPublicKey)(exports.merkleOptions?.devnet?.merkleTree);
|
57
|
+
const [treeAuthority, _bump] = web3_js_1.PublicKey.findProgramAddressSync([merkle.toBuffer()], programId_1.BUBBLEGUM_PROGRAM_ID);
|
58
|
+
const seeds = [Buffer.from("tree"), merkle.toBuffer()];
|
59
|
+
if (useGlobal) {
|
60
|
+
seeds.pop();
|
61
|
+
}
|
62
|
+
const [merkleManager, treeBump] = web3_js_1.PublicKey.findProgramAddressSync(seeds, programId_1.PROGRAM_CNFT);
|
63
|
+
const collectionMint = collectionAddress;
|
64
|
+
const [creatorAuthority, creatorAuthBump] = await (0, PdaManager_1.creatorAuthorityPDA)({
|
65
|
+
creator: itemCreator,
|
66
|
+
store: storeAccount,
|
67
|
+
});
|
68
|
+
let [collectionAuthorityRecordPda] = await (0, PdaManager_1.collectionAuthorityRecord)({
|
69
|
+
mint: collectionMint,
|
70
|
+
new_authority: creatorAuthority,
|
71
|
+
});
|
72
|
+
const collectionMetadata = await (0, PdaManager_1.getMetadataPDA)(collectionMint);
|
73
|
+
const [editionAccount] = await (0, PdaManager_1.getEditionPDA)(collectionMint, false);
|
74
|
+
const joint_bytes = [...itemCreator.toBytes(), ...currency.toBytes()];
|
75
|
+
const proof = {
|
76
|
+
proofHash: new bn_js_1.BN((0, utils_1.cyrb53)(joint_bytes, 1)),
|
77
|
+
amount: new bn_js_1.BN(1000000),
|
78
|
+
currencyVerifier: new bn_js_1.BN((0, utils_1.bytesToU32)(currency.toBytes().slice(0, 4))),
|
79
|
+
artistVerifier: new bn_js_1.BN((0, utils_1.bytesToU32)(itemCreator.toBytes().slice(0, 4))),
|
80
|
+
};
|
81
|
+
if (!data.storeBump) {
|
82
|
+
const storedata = await connection.getAccountInfo((0, PdaManager_1.toPublicKey)(globalStoreAccount));
|
83
|
+
if (!storedata) {
|
84
|
+
throw new Error("-- No Store data store bump");
|
85
|
+
}
|
86
|
+
const [_, storeBump] = await (0, PdaManager_1.storePDA)({
|
87
|
+
storeId: 1,
|
88
|
+
creator: itemCreator,
|
89
|
+
holder: holderAccount,
|
90
|
+
});
|
91
|
+
data.storeBump = storeBump;
|
92
|
+
}
|
93
|
+
if (!data.itemBump) {
|
94
|
+
// const storedata = await connection.getAccountInfo(itemAccount);
|
95
|
+
// if (!storedata) {
|
96
|
+
// throw new Error("-- No Store data item bump");
|
97
|
+
// }
|
98
|
+
// const tipo = "Single";
|
99
|
+
// const tipofn = "itemAccountPDA";
|
100
|
+
const identifierdt = new bn_js_1.BN(identifier);
|
101
|
+
const [_, itemBump] = await (0, PdaManager_1.itemAccountPDA)({
|
102
|
+
creator: itemCreator,
|
103
|
+
store: storeAccount,
|
104
|
+
identifier: identifierdt,
|
105
|
+
});
|
106
|
+
data.itemBump = itemBump;
|
107
|
+
}
|
108
|
+
if (!data)
|
109
|
+
data = {};
|
110
|
+
if (!data?.pre)
|
111
|
+
data.pre = [];
|
112
|
+
if (!data?.post)
|
113
|
+
data.post = [];
|
114
|
+
const coder = new anchor_1.BorshCoder(idl_1.idl);
|
115
|
+
const storedata = await connection.getAccountInfo((0, PdaManager_1.toPublicKey)(storeAccount));
|
116
|
+
if (!storedata) {
|
117
|
+
throw new Error("no store data in print single");
|
118
|
+
}
|
119
|
+
const store_decoded = coder.accounts.decode("Store", storedata.data);
|
120
|
+
const [_, storeBump] = await (0, PdaManager_1.storePDA)({ ...store_decoded });
|
121
|
+
data.storeBump = storeBump;
|
122
|
+
const single = (0, instructions_1.printSingle)({
|
123
|
+
proof,
|
124
|
+
storeBump: data.storeBump,
|
125
|
+
creatorAuthBump,
|
126
|
+
itemBump: data.itemBump,
|
127
|
+
treeBump,
|
128
|
+
extra: new types_1.ExtraParameter.None(),
|
129
|
+
}, {
|
130
|
+
owner,
|
131
|
+
itemAccount,
|
132
|
+
treeAuthority,
|
133
|
+
storeAccount,
|
134
|
+
creatorAuthority,
|
135
|
+
paymentAccount,
|
136
|
+
merkleTree: merkle,
|
137
|
+
merkleManager,
|
138
|
+
collectionAuthorityRecordPda,
|
139
|
+
editionAccount,
|
140
|
+
collectionMetadata,
|
141
|
+
collectionMint,
|
142
|
+
bubblegumSigner,
|
143
|
+
buytrackAccount: programId_1.PROGRAM_CNFT,
|
144
|
+
revealForMe: programId_1.PROGRAM_CNFT,
|
145
|
+
payer,
|
146
|
+
logWrapper,
|
147
|
+
bubblegumProgram,
|
148
|
+
compressionProgram,
|
149
|
+
tokenMetadataProgram,
|
150
|
+
systemProgram,
|
151
|
+
}, programId_1.PROGRAM_ID);
|
152
|
+
return [pay, single];
|
153
|
+
}
|
154
|
+
//# sourceMappingURL=buySingleEdition.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"buySingleEdition.js","sourceRoot":"","sources":["../../../../src/library/instructions/store/buySingleEdition.ts"],"names":[],"mappings":";;;AAuDA,kEA4KC;AAnOD,6CAKyB;AACzB,wDAOkC;AAClC,8DAAkE;AAClE,4DAQqC;AACrC,kDAA4D;AAC5D,iCAA2B;AAC3B,gDAAsD;AACtD,kDAAmD;AACnD,+BAA4B;AACjB,QAAA,UAAU,GAAG,IAAA,wBAAW,EACjC,8CAA8C,CAC/C,CAAC;AACS,QAAA,UAAU,GAAG,IAAA,wBAAW,EACjC,8CAA8C,CAC/C,CAAC;AACS,QAAA,aAAa,GAAG;IACzB,UAAU,EAAV,kBAAU;IACV,UAAU,EAA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cAAc;QACd,eAAe;QACf,eAAe,EAAE,wBAAY;QAC7B,WAAW,EAAE,wBAAY;QACzB,KAAK;QACL,UAAU;QACV,gBAAgB;QAChB,kBAAkB;QAClB,oBAAoB;QACpB,aAAa;KACd,EACD,sBAAU,CACX,CAAC;IACF,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;AACvB,CAAC"}
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import { PublicKey, TransactionInstruction } from "@solana/web3.js";
|
2
|
+
import { SaleConfig, ShortMetadataArgs } from "../../../types/types";
|
3
|
+
export declare function createSingleEditionInstruction(storeAccount: PublicKey, itemAccount: PublicKey, creatorAuthority: PublicKey, itemReserveList: PublicKey, creator: PublicKey, payer: PublicKey, supply: number, shortMetadata: ShortMetadataArgs, saleConfig: SaleConfig, identifier: number, category: number[], superCategory: number[], eventCategory: number, hashTraits: number): TransactionInstruction;
|
4
|
+
//# sourceMappingURL=createSingleEdition.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"createSingleEdition.d.ts","sourceRoot":"","sources":["../../../../src/library/instructions/store/createSingleEdition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEpE,OAAO,EAEL,UAAU,EACV,iBAAiB,EAClB,MAAM,sBAAsB,CAAC;AAI9B,wBAAgB,8BAA8B,CAC5C,YAAY,EAAE,SAAS,EACvB,WAAW,EAAE,SAAS,EACtB,gBAAgB,EAAE,SAAS,EAC3B,eAAe,EAAE,SAAS,EAC1B,OAAO,EAAE,SAAS,EAClB,KAAK,EAAE,SAAS,EAChB,MAAM,EAAE,MAAM,EACd,aAAa,EAAE,iBAAiB,EAChC,UAAU,EAAE,UAAU,EACtB,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,EAAE,EAClB,aAAa,EAAE,MAAM,EAAE,EACvB,aAAa,EAAE,MAAM,EACrB,UAAU,EAAE,MAAM,GACjB,sBAAsB,CAuBxB"}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.createSingleEditionInstruction = createSingleEditionInstruction;
|
7
|
+
const web3_js_1 = require("@solana/web3.js");
|
8
|
+
const programId_1 = require("../../../types/programId");
|
9
|
+
const instructions_1 = require("../../../types/instructions");
|
10
|
+
const bn_js_1 = __importDefault(require("bn.js"));
|
11
|
+
function createSingleEditionInstruction(storeAccount, itemAccount, creatorAuthority, itemReserveList, creator, payer, supply, shortMetadata, saleConfig, identifier, category, superCategory, eventCategory, hashTraits) {
|
12
|
+
return (0, instructions_1.createSingle)({
|
13
|
+
supply: new bn_js_1.default(supply),
|
14
|
+
shortMetadata,
|
15
|
+
saleConfig,
|
16
|
+
identifier: new bn_js_1.default(identifier),
|
17
|
+
category,
|
18
|
+
superCategory,
|
19
|
+
eventCategory,
|
20
|
+
hashTraits: new bn_js_1.default(hashTraits),
|
21
|
+
}, {
|
22
|
+
storeAccount,
|
23
|
+
itemAccount,
|
24
|
+
creatorAuthority,
|
25
|
+
itemReserveList,
|
26
|
+
creator,
|
27
|
+
payer,
|
28
|
+
systemProgram: web3_js_1.PublicKey.default,
|
29
|
+
}, programId_1.PROGRAM_ID);
|
30
|
+
}
|
31
|
+
//# sourceMappingURL=createSingleEdition.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"createSingleEdition.js","sourceRoot":"","sources":["../../../../src/library/instructions/store/createSingleEdition.ts"],"names":[],"mappings":";;;;;AAUA,wEAsCC;AAhDD,6CAAoE;AACpE,wDAAsD;AAMtD,8DAA2D;AAC3D,kDAAuB;AAEvB,SAAgB,8BAA8B,CAC5C,YAAuB,EACvB,WAAsB,EACtB,gBAA2B,EAC3B,eAA0B,EAC1B,OAAkB,EAClB,KAAgB,EAChB,MAAc,EACd,aAAgC,EAChC,UAAsB,EACtB,UAAkB,EAClB,QAAkB,EAClB,aAAuB,EACvB,aAAqB,EACrB,UAAkB;IAElB,OAAO,IAAA,2BAAY,EACjB;QACE,MAAM,EAAE,IAAI,eAAE,CAAC,MAAM,CAAC;QACtB,aAAa;QACb,UAAU;QACV,UAAU,EAAE,IAAI,eAAE,CAAC,UAAU,CAAC;QAC9B,QAAQ;QACR,aAAa;QACb,aAAa;QACb,UAAU,EAAE,IAAI,eAAE,CAAC,UAAU,CAAC;KAC/B,EACD;QACE,YAAY;QACZ,WAAW;QACX,gBAAgB;QAChB,eAAe;QACf,OAAO;QACP,KAAK;QACL,aAAa,EAAE,mBAAS,CAAC,OAAO;KACjC,EACD,sBAAU,CACX,CAAC;AACJ,CAAC"}
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import { PublicKey, TransactionInstruction } from "@solana/web3.js";
|
2
|
+
import { StoreConfig } from "../../../types/types";
|
3
|
+
export declare function createStoreInstruction(holderAccount: PublicKey, storeAccount: PublicKey, creator: PublicKey, name: string, storeConfig: StoreConfig, storeId: number): TransactionInstruction;
|
4
|
+
//# sourceMappingURL=createStore.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"createStore.d.ts","sourceRoot":"","sources":["../../../../src/library/instructions/store/createStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEpE,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAGnD,wBAAgB,sBAAsB,CACpC,aAAa,EAAE,SAAS,EACxB,YAAY,EAAE,SAAS,EACvB,OAAO,EAAE,SAAS,EAClB,IAAI,EAAE,MAAM,EACZ,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,MAAM,GACd,sBAAsB,CAMxB"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.createStoreInstruction = createStoreInstruction;
|
4
|
+
const web3_js_1 = require("@solana/web3.js");
|
5
|
+
const programId_1 = require("../../../types/programId");
|
6
|
+
const instructions_1 = require("../../../types/instructions");
|
7
|
+
function createStoreInstruction(holderAccount, storeAccount, creator, name, storeConfig, storeId) {
|
8
|
+
return (0, instructions_1.createStore)({ name, storeConfig, storeId }, { holderAccount, storeAccount, creator, systemProgram: web3_js_1.PublicKey.default }, programId_1.PROGRAM_ID);
|
9
|
+
}
|
10
|
+
//# sourceMappingURL=createStore.js.map
|