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,198 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.checkCategory = exports.checkFileType = exports.validateSolAddress = exports.nowS = exports.sleep = exports.cyrb53 = void 0;
|
4
|
+
exports.bytesToU32 = bytesToU32;
|
5
|
+
exports.normalizeFileData = normalizeFileData;
|
6
|
+
exports.getFileType = getFileType;
|
7
|
+
exports.validateFileType = validateFileType;
|
8
|
+
exports.getFileCategory = getFileCategory;
|
9
|
+
exports.isAnimatable = isAnimatable;
|
10
|
+
const web3_js_1 = require("@solana/web3.js");
|
11
|
+
function bytesToU32(slice) {
|
12
|
+
let result = 0;
|
13
|
+
for (let i = slice.length - 1; i >= 0; i--) {
|
14
|
+
result = (result << 8) | slice[i];
|
15
|
+
}
|
16
|
+
return result >>> 0;
|
17
|
+
}
|
18
|
+
const cyrb53 = (str, seed = 0) => {
|
19
|
+
let h1 = 0xdeadbeef ^ seed, h2 = 0x41c6ce57 ^ seed;
|
20
|
+
let arr = null;
|
21
|
+
if (typeof str != "string") {
|
22
|
+
if (Array.isArray(str)) {
|
23
|
+
arr = str;
|
24
|
+
}
|
25
|
+
else {
|
26
|
+
str = str + "";
|
27
|
+
}
|
28
|
+
}
|
29
|
+
if (arr) {
|
30
|
+
for (const ch of arr) {
|
31
|
+
h1 = Math.imul(h1 ^ ch, 2654435761);
|
32
|
+
h2 = Math.imul(h2 ^ ch, 1597334677);
|
33
|
+
}
|
34
|
+
}
|
35
|
+
else {
|
36
|
+
for (let i = 0, ch; i < str.length; i++) {
|
37
|
+
ch = str.charCodeAt(i);
|
38
|
+
h1 = Math.imul(h1 ^ ch, 2654435761);
|
39
|
+
h2 = Math.imul(h2 ^ ch, 1597334677);
|
40
|
+
}
|
41
|
+
}
|
42
|
+
h1 =
|
43
|
+
Math.imul(h1 ^ (h1 >>> 16), 2246822507) ^
|
44
|
+
Math.imul(h2 ^ (h2 >>> 13), 3266489909);
|
45
|
+
h2 =
|
46
|
+
Math.imul(h2 ^ (h2 >>> 16), 2246822507) ^
|
47
|
+
Math.imul(h1 ^ (h1 >>> 13), 3266489909);
|
48
|
+
return 4294967296 * (2097151 & h2) + (h1 >>> 0);
|
49
|
+
};
|
50
|
+
exports.cyrb53 = cyrb53;
|
51
|
+
const sleep = (t) => {
|
52
|
+
return new Promise((res) => {
|
53
|
+
setTimeout(res, t);
|
54
|
+
});
|
55
|
+
};
|
56
|
+
exports.sleep = sleep;
|
57
|
+
const nowS = () => Date.now() / 1000;
|
58
|
+
exports.nowS = nowS;
|
59
|
+
const validateSolAddress = (address) => {
|
60
|
+
try {
|
61
|
+
let pubkey = new web3_js_1.PublicKey(address);
|
62
|
+
return web3_js_1.PublicKey.isOnCurve(pubkey.toBuffer());
|
63
|
+
}
|
64
|
+
catch (error) {
|
65
|
+
return false;
|
66
|
+
}
|
67
|
+
};
|
68
|
+
exports.validateSolAddress = validateSolAddress;
|
69
|
+
const checkFileType = (file) => {
|
70
|
+
return file?.type?.includes("video/webp")
|
71
|
+
? "video/webp"
|
72
|
+
: file?.type?.includes("image/webp")
|
73
|
+
? "image/webp"
|
74
|
+
: file?.type?.includes("jpeg") || file?.type?.includes("jpg")
|
75
|
+
? "image/jpeg"
|
76
|
+
: file?.type?.includes("gif")
|
77
|
+
? "image/gif"
|
78
|
+
: file?.type?.includes("png")
|
79
|
+
? "image/png"
|
80
|
+
: file?.type?.includes("audio")
|
81
|
+
? "audio"
|
82
|
+
: file?.type?.includes("mp4")
|
83
|
+
? "video/mp4"
|
84
|
+
: file?.name?.includes("glb") || file?.type?.includes("model")
|
85
|
+
? "model/gltf-binary"
|
86
|
+
: null;
|
87
|
+
};
|
88
|
+
exports.checkFileType = checkFileType;
|
89
|
+
const checkCategory = (file) => {
|
90
|
+
return file?.type?.includes("image")
|
91
|
+
? "image"
|
92
|
+
: file?.type?.includes("audio")
|
93
|
+
? "audio"
|
94
|
+
: file?.type?.includes("video")
|
95
|
+
? "video"
|
96
|
+
: file?.name?.includes("glb") || file?.type?.includes("model")
|
97
|
+
? "vr"
|
98
|
+
: null;
|
99
|
+
};
|
100
|
+
exports.checkCategory = checkCategory;
|
101
|
+
async function normalizeFileData(fileData) {
|
102
|
+
try {
|
103
|
+
const buffer = await (fileData.arrayBuffer instanceof Function
|
104
|
+
? fileData.arrayBuffer()
|
105
|
+
: Promise.resolve(fileData.arrayBuffer));
|
106
|
+
const type = fileData.type || getMimeTypeFromBuffer(buffer);
|
107
|
+
return {
|
108
|
+
arrayBuffer: () => buffer,
|
109
|
+
type,
|
110
|
+
size: buffer.byteLength,
|
111
|
+
name: fileData.name,
|
112
|
+
};
|
113
|
+
}
|
114
|
+
catch (error) {
|
115
|
+
throw new Error(`Failed to normalize file data: ${error}`);
|
116
|
+
}
|
117
|
+
}
|
118
|
+
function getMimeTypeFromBuffer(buffer) {
|
119
|
+
const arr = new Uint8Array(buffer).subarray(0, 12);
|
120
|
+
const header = Array.from(arr)
|
121
|
+
.map((byte) => byte.toString(16))
|
122
|
+
.join("");
|
123
|
+
if (header.startsWith("89504e47"))
|
124
|
+
return "image/png";
|
125
|
+
if (header.startsWith("474946"))
|
126
|
+
return "image/gif";
|
127
|
+
if (header.startsWith("ffd8ff"))
|
128
|
+
return "image/jpeg";
|
129
|
+
if (header.startsWith("52494646") && header.includes("57454250"))
|
130
|
+
return "image/webp";
|
131
|
+
if (header.startsWith("494433") || header.startsWith("fffb"))
|
132
|
+
return "audio/mp3";
|
133
|
+
if (header.startsWith("000000") &&
|
134
|
+
(header.includes("66747970") || header.includes("6d6f6f76")))
|
135
|
+
return "video/mp4";
|
136
|
+
if (header.startsWith("676c5446"))
|
137
|
+
return "model/gltf-binary";
|
138
|
+
return "application/octet-stream";
|
139
|
+
}
|
140
|
+
function getFileType(file) {
|
141
|
+
if (!file)
|
142
|
+
return null;
|
143
|
+
const type = file.type?.toLowerCase() || "";
|
144
|
+
const name = (file.name || "").toLowerCase();
|
145
|
+
if (type.includes("video/webp"))
|
146
|
+
return "video/webp";
|
147
|
+
if (type.includes("image/webp"))
|
148
|
+
return "image/webp";
|
149
|
+
if (type.includes("jpeg") || type.includes("jpg"))
|
150
|
+
return "image/jpeg";
|
151
|
+
if (type.includes("gif"))
|
152
|
+
return "image/gif";
|
153
|
+
if (type.includes("png"))
|
154
|
+
return "image/png";
|
155
|
+
if (type.includes("mp3") || type.includes("audio/mp3"))
|
156
|
+
return "audio/mp3";
|
157
|
+
if (type.includes("mp4"))
|
158
|
+
return "video/mp4";
|
159
|
+
if (type.includes("glb") || name.endsWith(".glb"))
|
160
|
+
return "model/gltf-binary";
|
161
|
+
return type || null;
|
162
|
+
}
|
163
|
+
function validateFileType(type) {
|
164
|
+
const allowedTypes = [
|
165
|
+
"image/png",
|
166
|
+
"image/jpeg",
|
167
|
+
"image/gif",
|
168
|
+
"image/webp",
|
169
|
+
"video/mp4",
|
170
|
+
"audio/mp3",
|
171
|
+
"model/gltf-binary",
|
172
|
+
"application/octet-stream",
|
173
|
+
];
|
174
|
+
if (!allowedTypes.includes(type)) {
|
175
|
+
throw new Error(`Unsupported file type: ${type}`);
|
176
|
+
}
|
177
|
+
}
|
178
|
+
function getFileCategory(file) {
|
179
|
+
if (!file)
|
180
|
+
return null;
|
181
|
+
const type = (file.type || "").toLowerCase();
|
182
|
+
const name = (file.name || "").toLowerCase();
|
183
|
+
if (type.includes("image"))
|
184
|
+
return "image";
|
185
|
+
if (type.includes("audio"))
|
186
|
+
return "audio";
|
187
|
+
if (type.includes("video"))
|
188
|
+
return "video";
|
189
|
+
if (type.includes("model") || name.endsWith(".glb"))
|
190
|
+
return "vr";
|
191
|
+
return null;
|
192
|
+
}
|
193
|
+
function isAnimatable(type) {
|
194
|
+
return (type?.includes("video/") ||
|
195
|
+
type?.includes("audio/") ||
|
196
|
+
type === "model/gltf-binary");
|
197
|
+
}
|
198
|
+
//# sourceMappingURL=utils.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"utils.js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,IAAI,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC;IAC7C,MAAM,IAAI,GAAG,CAAC,IAAI,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC;IAE7C,IAAI,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC;QAAE,OAAO,OAAO,CAAC;IAC3C,IAAI,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC;QAAE,OAAO,OAAO,CAAC;IAC3C,IAAI,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC;QAAE,OAAO,OAAO,CAAC;IAC3C,IAAI,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC;QAAE,OAAO,IAAI,CAAC;IAEjE,OAAO,IAAI,CAAC;AACd,CAAC;AAED,SAAgB,YAAY,CAAC,IAAY;IACvC,OAAO,CACL,IAAI,EAAE,QAAQ,CAAC,QAAQ,CAAC;QACxB,IAAI,EAAE,QAAQ,CAAC,QAAQ,CAAC;QACxB,IAAI,KAAK,mBAAmB,CAC7B,CAAC;AACJ,CAAC"}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { PublicKey, Signer } from "@solana/web3.js";
|
2
|
+
import { StoreConfig, SaleConfig, ShortMetadataArgs } from "../types/types";
|
3
|
+
export declare class ValidationError extends Error {
|
4
|
+
constructor(message: string);
|
5
|
+
}
|
6
|
+
export declare function validateStoreConfig(config: StoreConfig): void;
|
7
|
+
export declare function validateMetadata(metadata: ShortMetadataArgs): void;
|
8
|
+
export declare function validateSaleConfig(config: SaleConfig): void;
|
9
|
+
export declare function validateSupply(supply: number): void;
|
10
|
+
export declare function validateIdentifier(identifier: number): void;
|
11
|
+
export declare function validateCollectionArgs(collectionDetails: any, supply: number, metadata: any, irysData: any): void;
|
12
|
+
export declare function validateBuySingleArgs(payer: Signer, packAccount: PublicKey, burnProgress: PublicKey, owner: PublicKey, distributionBumps: number[], globalStoreAccount: PublicKey, extraAccounts: any[], collectionAddress?: PublicKey, storeAccount?: PublicKey, creator?: PublicKey): void;
|
13
|
+
//# sourceMappingURL=validation.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../src/utility/validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAG5E,qBAAa,eAAgB,SAAQ,KAAK;gBAC5B,OAAO,EAAE,MAAM;CAI5B;AAED,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,WAAW,QAkBtD;AAED,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,iBAAiB,QAsB3D;AAED,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,UAAU,QAgBpD;AAED,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,QAI5C;AAED,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,MAAM,QAIpD;AAED,wBAAgB,sBAAsB,CACpC,iBAAiB,EAAE,GAAG,EACtB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,GAAG,EACb,QAAQ,EAAE,GAAG,QAgDd;AAED,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,MAAM,EACb,WAAW,EAAE,SAAS,EACtB,YAAY,EAAE,SAAS,EACvB,KAAK,EAAE,SAAS,EAChB,iBAAiB,EAAE,MAAM,EAAE,EAC3B,kBAAkB,EAAE,SAAS,EAC7B,aAAa,EAAE,GAAG,EAAE,EACpB,iBAAiB,CAAC,EAAE,SAAS,EAC7B,YAAY,CAAC,EAAE,SAAS,EACxB,OAAO,CAAC,EAAE,SAAS,QA+EpB"}
|
@@ -0,0 +1,161 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ValidationError = void 0;
|
4
|
+
exports.validateStoreConfig = validateStoreConfig;
|
5
|
+
exports.validateMetadata = validateMetadata;
|
6
|
+
exports.validateSaleConfig = validateSaleConfig;
|
7
|
+
exports.validateSupply = validateSupply;
|
8
|
+
exports.validateIdentifier = validateIdentifier;
|
9
|
+
exports.validateCollectionArgs = validateCollectionArgs;
|
10
|
+
exports.validateBuySingleArgs = validateBuySingleArgs;
|
11
|
+
const web3_js_1 = require("@solana/web3.js");
|
12
|
+
const bn_js_1 = require("bn.js");
|
13
|
+
class ValidationError extends Error {
|
14
|
+
constructor(message) {
|
15
|
+
super(message);
|
16
|
+
this.name = "ValidationError";
|
17
|
+
}
|
18
|
+
}
|
19
|
+
exports.ValidationError = ValidationError;
|
20
|
+
function validateStoreConfig(config) {
|
21
|
+
if (!config.fee || !(config.fee instanceof bn_js_1.BN)) {
|
22
|
+
throw new ValidationError("Store fee must be a valid BN instance");
|
23
|
+
}
|
24
|
+
if (typeof config.feePercentage !== "number" ||
|
25
|
+
config.feePercentage < 0 ||
|
26
|
+
config.feePercentage > 100) {
|
27
|
+
throw new ValidationError("Fee percentage must be a number between 0 and 100");
|
28
|
+
}
|
29
|
+
if (!config.trust || !(config.trust instanceof web3_js_1.PublicKey)) {
|
30
|
+
throw new ValidationError("Trust must be a valid PublicKey");
|
31
|
+
}
|
32
|
+
}
|
33
|
+
function validateMetadata(metadata) {
|
34
|
+
if (!metadata.name || metadata.name.length > 32) {
|
35
|
+
throw new ValidationError("Metadata name is required and must be <= 32 characters");
|
36
|
+
}
|
37
|
+
if (metadata.uriType !== 0 && metadata.uriType !== 1) {
|
38
|
+
throw new ValidationError("Invalid URI type");
|
39
|
+
}
|
40
|
+
if (!metadata.creators || !metadata.creators.length) {
|
41
|
+
throw new ValidationError("At least one creator is required");
|
42
|
+
}
|
43
|
+
const totalShares = metadata.creators.reduce((sum, creator) => sum + creator.share, 0);
|
44
|
+
if (totalShares !== 100) {
|
45
|
+
throw new ValidationError("Creator shares must sum to 100");
|
46
|
+
}
|
47
|
+
}
|
48
|
+
function validateSaleConfig(config) {
|
49
|
+
if (!config.prices || !config.prices.length) {
|
50
|
+
throw new ValidationError("At least one price configuration is required");
|
51
|
+
}
|
52
|
+
config.prices.forEach((price) => {
|
53
|
+
if (!price.amount || !(price.amount instanceof bn_js_1.BN)) {
|
54
|
+
throw new ValidationError("Each price amount must be a valid BN instance");
|
55
|
+
}
|
56
|
+
});
|
57
|
+
if (config.sendToVault < 0) {
|
58
|
+
throw new ValidationError("sendToVault must be non-negative");
|
59
|
+
}
|
60
|
+
}
|
61
|
+
function validateSupply(supply) {
|
62
|
+
if (typeof supply !== "number" || supply < 0) {
|
63
|
+
throw new ValidationError("Supply must be a non-negative number");
|
64
|
+
}
|
65
|
+
}
|
66
|
+
function validateIdentifier(identifier) {
|
67
|
+
if (typeof identifier !== "number" || identifier < 0) {
|
68
|
+
throw new ValidationError("Identifier must be a non-negative number");
|
69
|
+
}
|
70
|
+
}
|
71
|
+
function validateCollectionArgs(collectionDetails, supply, metadata, irysData) {
|
72
|
+
if (!collectionDetails || typeof collectionDetails.__kind !== "string") {
|
73
|
+
throw new ValidationError("Invalid collection details format");
|
74
|
+
}
|
75
|
+
if (typeof supply !== "number" || supply < 0) {
|
76
|
+
throw new ValidationError("Supply must be a non-negative number");
|
77
|
+
}
|
78
|
+
if (!metadata) {
|
79
|
+
throw new ValidationError("Metadata is required");
|
80
|
+
}
|
81
|
+
// Validate metadata fields
|
82
|
+
if (!metadata.symbol || metadata.symbol.length > 10) {
|
83
|
+
throw new ValidationError("Symbol is required and must be <= 10 characters");
|
84
|
+
}
|
85
|
+
if (!metadata.name || metadata.name.length > 32) {
|
86
|
+
throw new ValidationError("Name is required and must be <= 32 characters");
|
87
|
+
}
|
88
|
+
if (!metadata.creators || !Array.isArray(metadata.creators)) {
|
89
|
+
throw new ValidationError("Creators array is required");
|
90
|
+
}
|
91
|
+
const totalShares = metadata.creators.reduce((sum, creator) => sum + creator.share, 0);
|
92
|
+
if (totalShares !== 100) {
|
93
|
+
throw new ValidationError("Creator shares must sum to 100");
|
94
|
+
}
|
95
|
+
// Validate Irys data
|
96
|
+
if (!irysData || !irysData.options || !irysData.options.metadata) {
|
97
|
+
throw new ValidationError("Invalid Irys data format");
|
98
|
+
}
|
99
|
+
if (!irysData.options.metadata.files ||
|
100
|
+
!irysData.options.metadata.files.file) {
|
101
|
+
throw new ValidationError("Collection image file is required");
|
102
|
+
}
|
103
|
+
}
|
104
|
+
function validateBuySingleArgs(payer, packAccount, burnProgress, owner, distributionBumps, globalStoreAccount, extraAccounts, collectionAddress, storeAccount, creator) {
|
105
|
+
if (!payer || !payer.publicKey) {
|
106
|
+
throw new ValidationError("Invalid payer");
|
107
|
+
}
|
108
|
+
if (!web3_js_1.PublicKey.isOnCurve(packAccount)) {
|
109
|
+
throw new ValidationError("Invalid pack account public key");
|
110
|
+
}
|
111
|
+
if (!web3_js_1.PublicKey.isOnCurve(burnProgress)) {
|
112
|
+
throw new ValidationError("Invalid burn progress public key");
|
113
|
+
}
|
114
|
+
if (!web3_js_1.PublicKey.isOnCurve(owner)) {
|
115
|
+
throw new ValidationError("Invalid owner public key");
|
116
|
+
}
|
117
|
+
if (!Array.isArray(distributionBumps) || distributionBumps.length !== 6) {
|
118
|
+
throw new ValidationError("Distribution bumps must be an array of length 6");
|
119
|
+
}
|
120
|
+
distributionBumps.forEach((bump, index) => {
|
121
|
+
if (typeof bump !== "number" || bump < 0 || bump > 255) {
|
122
|
+
throw new ValidationError(`Invalid distribution bump at index ${index}`);
|
123
|
+
}
|
124
|
+
});
|
125
|
+
if (!storeAccount) {
|
126
|
+
throw new ValidationError("Store account missing");
|
127
|
+
}
|
128
|
+
if (web3_js_1.PublicKey.isOnCurve(storeAccount)) {
|
129
|
+
throw new ValidationError("Invalid store account public key");
|
130
|
+
}
|
131
|
+
if (web3_js_1.PublicKey.isOnCurve(globalStoreAccount)) {
|
132
|
+
throw new ValidationError("Invalid global store account public key");
|
133
|
+
}
|
134
|
+
if (!collectionAddress) {
|
135
|
+
throw new ValidationError("Collection address missing");
|
136
|
+
}
|
137
|
+
if (!web3_js_1.PublicKey.isOnCurve(collectionAddress)) {
|
138
|
+
throw new ValidationError("Invalid collection address public key");
|
139
|
+
}
|
140
|
+
if (!creator) {
|
141
|
+
throw new ValidationError("Creator public key missing");
|
142
|
+
}
|
143
|
+
if (!web3_js_1.PublicKey.isOnCurve(creator)) {
|
144
|
+
throw new ValidationError("Invalid creator public key");
|
145
|
+
}
|
146
|
+
if (!Array.isArray(extraAccounts)) {
|
147
|
+
throw new ValidationError("Extra accounts must be an array");
|
148
|
+
}
|
149
|
+
extraAccounts.forEach((account, index) => {
|
150
|
+
if (!account.pubkey || web3_js_1.PublicKey.isOnCurve(account.pubkey)) {
|
151
|
+
throw new ValidationError(`Invalid public key in extra accounts at index ${index}`);
|
152
|
+
}
|
153
|
+
if (typeof account.isSigner !== "boolean") {
|
154
|
+
throw new ValidationError(`Invalid isSigner flag in extra accounts at index ${index}`);
|
155
|
+
}
|
156
|
+
if (typeof account.isWritable !== "boolean") {
|
157
|
+
throw new ValidationError(`Invalid isWritable flag in extra accounts at index ${index}`);
|
158
|
+
}
|
159
|
+
});
|
160
|
+
}
|
161
|
+
//# sourceMappingURL=validation.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"validation.js","sourceRoot":"","sources":["../../src/utility/validation.ts"],"names":[],"mappings":";;;AAWA,kDAkBC;AAED,4CAsBC;AAED,gDAgBC;AAED,wCAIC;AAED,gDAIC;AAED,wDAoDC;AAED,sDAyFC;AApOD,6CAAoD;AAEpD,iCAA2B;AAE3B,MAAa,eAAgB,SAAQ,KAAK;IACxC,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,iBAAiB,CAAC;IAChC,CAAC;CACF;AALD,0CAKC;AAED,SAAgB,mBAAmB,CAAC,MAAmB;IACrD,IAAI,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,MAAM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AAC;YAC1C,MAAM,IAAI,eAAe,CACvB,oDAAoD,KAAK,EAAE,CAC5D,CAAC;QACJ,CAAC;QACD,IAAI,OAAO,OAAO,CAAC,UAAU,KAAK,SAAS,EAAE,CAAC;YAC5C,MAAM,IAAI,eAAe,CACvB,sDAAsD,KAAK,EAAE,CAC9D,CAAC;QACJ,CAAC;IACH,CAAC,CAAC,CAAC;AACL,CAAC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "3land_sdk",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.6",
|
4
4
|
"description": "sdk for interacting with 3land's solana program",
|
5
5
|
"main": "./dist/library/implementation/storeImplementation.js",
|
6
6
|
"types": "./dist/library/implementation/storeImplementation.d.ts",
|
package/src/index.ts
CHANGED
@@ -4,6 +4,7 @@ import {
|
|
4
4
|
createStoreImp,
|
5
5
|
buySingleImp,
|
6
6
|
handleError,
|
7
|
+
createCollectionImp,
|
7
8
|
} from "./library/implementation/storeImplementation";
|
8
9
|
import {
|
9
10
|
CreateCollectionOptions,
|
@@ -19,6 +20,7 @@ async function main() {
|
|
19
20
|
|
20
21
|
const optionsWithBase58: StoreInitOptions = {
|
21
22
|
privateKey: "", //your private key
|
23
|
+
isMainnet: false,
|
22
24
|
};
|
23
25
|
|
24
26
|
const storeSetup: CreateStoreParams = {
|
@@ -33,15 +35,16 @@ async function main() {
|
|
33
35
|
};
|
34
36
|
|
35
37
|
const createItemOptions: CreateSingleOptions = {
|
36
|
-
itemName: "
|
38
|
+
itemName: "supercoolitem11",
|
37
39
|
sellerFee: 500,
|
38
|
-
|
39
|
-
|
40
|
+
itemAmount: 101,
|
41
|
+
itemSymbol: "SCI11",
|
42
|
+
itemDescription: "testing mainnet after refactor",
|
40
43
|
traits: [
|
41
44
|
{ trait_type: "type", value: "cool" },
|
42
45
|
{ trait_type: "creator", value: "me" },
|
43
46
|
],
|
44
|
-
price:
|
47
|
+
price: 10000000, //100000000 == 0.1 sol
|
45
48
|
mainImageUrl:
|
46
49
|
"https://arweave.net/FMkKYYsheEImBfejYaPPoJbI3CxJxunwvErD9VYzxOY?ext=jpeg",
|
47
50
|
};
|
@@ -62,10 +65,11 @@ async function main() {
|
|
62
65
|
// console.log("collection mint: ", collection);
|
63
66
|
// Create single edition
|
64
67
|
// const storeAccount = "3MwBR619SgJ35ek7vDLxxE5QvBaNq1fmmEZSXKW2X3Lf"; //"P1c4bboejX24NbY3vMw8EncKVmvcGEryznWLs4PGp9j"; //current store created for testing
|
65
|
-
const collectionAccount = "Fpm8XgXEuNxxjmqUQuqEFkGusiSsKM6astUGPs5U9x6v"; //"2rQq34FJG1613i7H8cDfxuGCtEjJmFAUNbAPJqK699oD";
|
68
|
+
const collectionAccount = "Dj91sSU6EErETscXj4mv4tMV6GM8HgJKFvqDqmq3F7Fz"; //"7Zsbs84BhMuHVqtigJFH9yQgpxvYnRZY9MyxSQT1ftfa"; //"Fpm8XgXEuNxxjmqUQuqEFkGusiSsKM6astUGPs5U9x6v"; //"2rQq34FJG1613i7H8cDfxuGCtEjJmFAUNbAPJqK699oD";
|
66
69
|
const singleEditionResult = await createSingleImp(
|
67
70
|
optionsWithBase58,
|
68
71
|
landStoreDevnet,
|
72
|
+
// landStoreMainnet,
|
69
73
|
collectionAccount,
|
70
74
|
createItemOptions
|
71
75
|
);
|
package/src/library/Irys/irys.ts
CHANGED
@@ -359,7 +359,7 @@ export class IrysHelper {
|
|
359
359
|
|
360
360
|
async init(
|
361
361
|
address: string,
|
362
|
-
options: { arweave_rpc?: string; rpc?: string }
|
362
|
+
options: { arweave_rpc?: string; rpc?: string; network?: string }
|
363
363
|
): Promise<boolean> {
|
364
364
|
const irys_network =
|
365
365
|
options?.arweave_rpc || "https://arweave.devnet.irys.xyz";
|
@@ -382,7 +382,7 @@ export class IrysHelper {
|
|
382
382
|
// url: irys_network,
|
383
383
|
token: "solana",
|
384
384
|
key: wallet.secretKey,
|
385
|
-
network: "devnet",
|
385
|
+
network: options?.network || "devnet",
|
386
386
|
config: { providerUrl: irys_network },
|
387
387
|
// wallet: { rpcUrl: rpc, provider },
|
388
388
|
});
|
@@ -398,7 +398,7 @@ let global: IrysHelper | null = null;
|
|
398
398
|
|
399
399
|
export const init = async (
|
400
400
|
address: string,
|
401
|
-
options: { arweave_rpc?: string; rpc?: string }
|
401
|
+
options: { arweave_rpc?: string; rpc?: string; network?: string }
|
402
402
|
): Promise<IrysHelper | null> => {
|
403
403
|
if (global) {
|
404
404
|
const g = await global.sync(address);
|
package/src/library/Store.ts
CHANGED
@@ -192,7 +192,16 @@ export class Store {
|
|
192
192
|
|
193
193
|
if (metadata.uri.length !== 0) throw new Error("-- URI must be empty --");
|
194
194
|
|
195
|
-
const
|
195
|
+
const irysConfig = this.networkConfig.endpoint.includes(
|
196
|
+
NetworkType.MAINNET
|
197
|
+
)
|
198
|
+
? {
|
199
|
+
arweave_rpc: "https://node2.irys.xyz",
|
200
|
+
rpc: "https://api.mainnet-beta.solana.com",
|
201
|
+
network: "mainnet",
|
202
|
+
}
|
203
|
+
: {};
|
204
|
+
const irys = await Irys(payer.publicKey.toBase58(), irysConfig);
|
196
205
|
const uuid = "random_uuid_per_upload_session";
|
197
206
|
|
198
207
|
const { instruction, signerIrys, metadataUrl } =
|
@@ -343,7 +352,16 @@ export class Store {
|
|
343
352
|
validateIdentifier(identifier);
|
344
353
|
|
345
354
|
try {
|
346
|
-
const
|
355
|
+
const irysConfig = this.networkConfig.endpoint.includes(
|
356
|
+
NetworkType.MAINNET
|
357
|
+
)
|
358
|
+
? {
|
359
|
+
arweave_rpc: "https://node2.irys.xyz",
|
360
|
+
rpc: "https://api.mainnet-beta.solana.com",
|
361
|
+
network: "mainnet",
|
362
|
+
}
|
363
|
+
: {};
|
364
|
+
const irys = await Irys(payer.publicKey.toBase58(), irysConfig);
|
347
365
|
const uuid = "random_uuid_per_upload_session";
|
348
366
|
|
349
367
|
const [itemAccount] = await itemAccountPDA({
|