3land_sdk 1.0.6 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/src/index.ts +10 -6
- package/src/library/Irys/irys.ts +1 -1
- package/src/library/Store.ts +5 -1
- package/src/library/implementation/storeImplementation.ts +39 -13
- package/src/types/implementation/implementationTypes.ts +2 -1
- package/src/utility/validation.ts +11 -11
- package/dist/index.d.ts +0 -2
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -68
- package/dist/index.js.map +0 -1
- package/dist/library/Irys/irys.d.ts +0 -79
- package/dist/library/Irys/irys.d.ts.map +0 -1
- package/dist/library/Irys/irys.js +0 -317
- package/dist/library/Irys/irys.js.map +0 -1
- package/dist/library/Store.d.ts +0 -19
- package/dist/library/Store.d.ts.map +0 -1
- package/dist/library/Store.js +0 -377
- package/dist/library/Store.js.map +0 -1
- package/dist/library/implementation/storeImplementation.d.ts +0 -20
- package/dist/library/implementation/storeImplementation.d.ts.map +0 -1
- package/dist/library/implementation/storeImplementation.js +0 -389
- package/dist/library/implementation/storeImplementation.js.map +0 -1
- package/dist/library/instructions/store/buySingleEdition.d.ts +0 -17
- package/dist/library/instructions/store/buySingleEdition.d.ts.map +0 -1
- package/dist/library/instructions/store/buySingleEdition.js +0 -154
- package/dist/library/instructions/store/buySingleEdition.js.map +0 -1
- package/dist/library/instructions/store/createSingleEdition.d.ts +0 -4
- package/dist/library/instructions/store/createSingleEdition.d.ts.map +0 -1
- package/dist/library/instructions/store/createSingleEdition.js +0 -31
- package/dist/library/instructions/store/createSingleEdition.js.map +0 -1
- package/dist/library/instructions/store/createStore.d.ts +0 -4
- package/dist/library/instructions/store/createStore.d.ts.map +0 -1
- package/dist/library/instructions/store/createStore.js +0 -10
- package/dist/library/instructions/store/createStore.js.map +0 -1
- package/dist/library/instructions/store/idl.d.ts +0 -508
- package/dist/library/instructions/store/idl.d.ts.map +0 -1
- package/dist/library/instructions/store/idl.js +0 -7622
- package/dist/library/instructions/store/idl.js.map +0 -1
- package/dist/library/instructions/store/uploadFilesIryis.d.ts +0 -13
- package/dist/library/instructions/store/uploadFilesIryis.d.ts.map +0 -1
- package/dist/library/instructions/store/uploadFilesIryis.js +0 -99
- package/dist/library/instructions/store/uploadFilesIryis.js.map +0 -1
- package/dist/types/accounts/ArchiveDeposit.d.ts +0 -63
- package/dist/types/accounts/ArchiveDeposit.d.ts.map +0 -1
- package/dist/types/accounts/ArchiveDeposit.js +0 -158
- package/dist/types/accounts/ArchiveDeposit.js.map +0 -1
- package/dist/types/accounts/Authority.d.ts +0 -16
- package/dist/types/accounts/Authority.d.ts.map +0 -1
- package/dist/types/accounts/Authority.js +0 -72
- package/dist/types/accounts/Authority.js.map +0 -1
- package/dist/types/accounts/BurnDeposit.d.ts +0 -26
- package/dist/types/accounts/BurnDeposit.d.ts.map +0 -1
- package/dist/types/accounts/BurnDeposit.js +0 -93
- package/dist/types/accounts/BurnDeposit.js.map +0 -1
- package/dist/types/accounts/BurnProgress.d.ts +0 -22
- package/dist/types/accounts/BurnProgress.d.ts.map +0 -1
- package/dist/types/accounts/BurnProgress.js +0 -88
- package/dist/types/accounts/BurnProgress.js.map +0 -1
- package/dist/types/accounts/BuyHistory.d.ts +0 -32
- package/dist/types/accounts/BuyHistory.d.ts.map +0 -1
- package/dist/types/accounts/BuyHistory.js +0 -104
- package/dist/types/accounts/BuyHistory.js.map +0 -1
- package/dist/types/accounts/BuyTrack.d.ts +0 -22
- package/dist/types/accounts/BuyTrack.d.ts.map +0 -1
- package/dist/types/accounts/BuyTrack.js +0 -84
- package/dist/types/accounts/BuyTrack.js.map +0 -1
- package/dist/types/accounts/Card.d.ts +0 -57
- package/dist/types/accounts/Card.d.ts.map +0 -1
- package/dist/types/accounts/Card.js +0 -148
- package/dist/types/accounts/Card.js.map +0 -1
- package/dist/types/accounts/CollectionRegistry.d.ts +0 -42
- package/dist/types/accounts/CollectionRegistry.d.ts.map +0 -1
- package/dist/types/accounts/CollectionRegistry.js +0 -123
- package/dist/types/accounts/CollectionRegistry.js.map +0 -1
- package/dist/types/accounts/CollectorRegistry.d.ts +0 -42
- package/dist/types/accounts/CollectorRegistry.d.ts.map +0 -1
- package/dist/types/accounts/CollectorRegistry.js +0 -123
- package/dist/types/accounts/CollectorRegistry.js.map +0 -1
- package/dist/types/accounts/CreatorRegistry.d.ts +0 -45
- package/dist/types/accounts/CreatorRegistry.d.ts.map +0 -1
- package/dist/types/accounts/CreatorRegistry.js +0 -128
- package/dist/types/accounts/CreatorRegistry.js.map +0 -1
- package/dist/types/accounts/CurrencyArtistProof.d.ts +0 -29
- package/dist/types/accounts/CurrencyArtistProof.d.ts.map +0 -1
- package/dist/types/accounts/CurrencyArtistProof.js +0 -101
- package/dist/types/accounts/CurrencyArtistProof.js.map +0 -1
- package/dist/types/accounts/GenericUser.d.ts +0 -54
- package/dist/types/accounts/GenericUser.d.ts.map +0 -1
- package/dist/types/accounts/GenericUser.js +0 -143
- package/dist/types/accounts/GenericUser.js.map +0 -1
- package/dist/types/accounts/ItemArchive.d.ts +0 -69
- package/dist/types/accounts/ItemArchive.d.ts.map +0 -1
- package/dist/types/accounts/ItemArchive.js +0 -168
- package/dist/types/accounts/ItemArchive.js.map +0 -1
- package/dist/types/accounts/ItemReserveList.d.ts +0 -19
- package/dist/types/accounts/ItemReserveList.d.ts.map +0 -1
- package/dist/types/accounts/ItemReserveList.js +0 -81
- package/dist/types/accounts/ItemReserveList.js.map +0 -1
- package/dist/types/accounts/ItemReserveList2.d.ts +0 -16
- package/dist/types/accounts/ItemReserveList2.d.ts.map +0 -1
- package/dist/types/accounts/ItemReserveList2.js +0 -72
- package/dist/types/accounts/ItemReserveList2.js.map +0 -1
- package/dist/types/accounts/LutVault.d.ts +0 -22
- package/dist/types/accounts/LutVault.d.ts.map +0 -1
- package/dist/types/accounts/LutVault.js +0 -88
- package/dist/types/accounts/LutVault.js.map +0 -1
- package/dist/types/accounts/Pack.d.ts +0 -123
- package/dist/types/accounts/Pack.d.ts.map +0 -1
- package/dist/types/accounts/Pack.js +0 -258
- package/dist/types/accounts/Pack.js.map +0 -1
- package/dist/types/accounts/PackContent.d.ts +0 -23
- package/dist/types/accounts/PackContent.d.ts.map +0 -1
- package/dist/types/accounts/PackContent.js +0 -89
- package/dist/types/accounts/PackContent.js.map +0 -1
- package/dist/types/accounts/PackOpenHolder.d.ts +0 -38
- package/dist/types/accounts/PackOpenHolder.d.ts.map +0 -1
- package/dist/types/accounts/PackOpenHolder.js +0 -114
- package/dist/types/accounts/PackOpenHolder.js.map +0 -1
- package/dist/types/accounts/PackReceipt.d.ts +0 -42
- package/dist/types/accounts/PackReceipt.d.ts.map +0 -1
- package/dist/types/accounts/PackReceipt.js +0 -123
- package/dist/types/accounts/PackReceipt.js.map +0 -1
- package/dist/types/accounts/PackTraits.d.ts +0 -23
- package/dist/types/accounts/PackTraits.d.ts.map +0 -1
- package/dist/types/accounts/PackTraits.js +0 -88
- package/dist/types/accounts/PackTraits.js.map +0 -1
- package/dist/types/accounts/Payment.d.ts +0 -23
- package/dist/types/accounts/Payment.d.ts.map +0 -1
- package/dist/types/accounts/Payment.js +0 -88
- package/dist/types/accounts/Payment.js.map +0 -1
- package/dist/types/accounts/PoolVault.d.ts +0 -54
- package/dist/types/accounts/PoolVault.d.ts.map +0 -1
- package/dist/types/accounts/PoolVault.js +0 -143
- package/dist/types/accounts/PoolVault.js.map +0 -1
- package/dist/types/accounts/RevealForMe.d.ts +0 -38
- package/dist/types/accounts/RevealForMe.d.ts.map +0 -1
- package/dist/types/accounts/RevealForMe.js +0 -112
- package/dist/types/accounts/RevealForMe.js.map +0 -1
- package/dist/types/accounts/SecureHolder.d.ts +0 -23
- package/dist/types/accounts/SecureHolder.d.ts.map +0 -1
- package/dist/types/accounts/SecureHolder.js +0 -88
- package/dist/types/accounts/SecureHolder.js.map +0 -1
- package/dist/types/accounts/Single.d.ts +0 -99
- package/dist/types/accounts/Single.d.ts.map +0 -1
- package/dist/types/accounts/Single.js +0 -216
- package/dist/types/accounts/Single.js.map +0 -1
- package/dist/types/accounts/Store.d.ts +0 -54
- package/dist/types/accounts/Store.d.ts.map +0 -1
- package/dist/types/accounts/Store.js +0 -144
- package/dist/types/accounts/Store.js.map +0 -1
- package/dist/types/accounts/StoresHolder.d.ts +0 -33
- package/dist/types/accounts/StoresHolder.d.ts.map +0 -1
- package/dist/types/accounts/StoresHolder.js +0 -115
- package/dist/types/accounts/StoresHolder.js.map +0 -1
- package/dist/types/accounts/ThreeId.d.ts +0 -57
- package/dist/types/accounts/ThreeId.d.ts.map +0 -1
- package/dist/types/accounts/ThreeId.js +0 -146
- package/dist/types/accounts/ThreeId.js.map +0 -1
- package/dist/types/accounts/TokenManager.d.ts +0 -69
- package/dist/types/accounts/TokenManager.d.ts.map +0 -1
- package/dist/types/accounts/TokenManager.js +0 -168
- package/dist/types/accounts/TokenManager.js.map +0 -1
- package/dist/types/accounts/ZeroCard.d.ts +0 -16
- package/dist/types/accounts/ZeroCard.d.ts.map +0 -1
- package/dist/types/accounts/ZeroCard.js +0 -72
- package/dist/types/accounts/ZeroCard.js.map +0 -1
- package/dist/types/accounts/ZeroContent.d.ts +0 -19
- package/dist/types/accounts/ZeroContent.d.ts.map +0 -1
- package/dist/types/accounts/ZeroContent.js +0 -82
- package/dist/types/accounts/ZeroContent.js.map +0 -1
- package/dist/types/accounts/ZeroOpenHolder.d.ts +0 -51
- package/dist/types/accounts/ZeroOpenHolder.d.ts.map +0 -1
- package/dist/types/accounts/ZeroOpenHolder.js +0 -144
- package/dist/types/accounts/ZeroOpenHolder.js.map +0 -1
- package/dist/types/accounts/index.d.ts +0 -67
- package/dist/types/accounts/index.d.ts.map +0 -1
- package/dist/types/accounts/index.js +0 -70
- package/dist/types/accounts/index.js.map +0 -1
- package/dist/types/errors/anchor.d.ts +0 -435
- package/dist/types/errors/anchor.d.ts.map +0 -1
- package/dist/types/errors/anchor.js +0 -713
- package/dist/types/errors/anchor.js.map +0 -1
- package/dist/types/errors/index.d.ts +0 -5
- package/dist/types/errors/index.d.ts.map +0 -1
- package/dist/types/errors/index.js +0 -67
- package/dist/types/errors/index.js.map +0 -1
- package/dist/types/implementation/implementationTypes.d.ts +0 -28
- package/dist/types/implementation/implementationTypes.d.ts.map +0 -1
- package/dist/types/implementation/implementationTypes.js +0 -3
- package/dist/types/implementation/implementationTypes.js.map +0 -1
- package/dist/types/instructions/addBurn.d.ts +0 -20
- package/dist/types/instructions/addBurn.d.ts.map +0 -1
- package/dist/types/instructions/addBurn.js +0 -57
- package/dist/types/instructions/addBurn.js.map +0 -1
- package/dist/types/instructions/adjustDepositBurn.d.ts +0 -12
- package/dist/types/instructions/adjustDepositBurn.d.ts.map +0 -1
- package/dist/types/instructions/adjustDepositBurn.js +0 -20
- package/dist/types/instructions/adjustDepositBurn.js.map +0 -1
- package/dist/types/instructions/archiveItem.d.ts +0 -22
- package/dist/types/instructions/archiveItem.d.ts.map +0 -1
- package/dist/types/instructions/archiveItem.js +0 -57
- package/dist/types/instructions/archiveItem.js.map +0 -1
- package/dist/types/instructions/assignPackDelegate.d.ts +0 -10
- package/dist/types/instructions/assignPackDelegate.d.ts.map +0 -1
- package/dist/types/instructions/assignPackDelegate.js +0 -19
- package/dist/types/instructions/assignPackDelegate.js.map +0 -1
- package/dist/types/instructions/burnPay.d.ts +0 -19
- package/dist/types/instructions/burnPay.d.ts.map +0 -1
- package/dist/types/instructions/burnPay.js +0 -56
- package/dist/types/instructions/burnPay.js.map +0 -1
- package/dist/types/instructions/buyPack.d.ts +0 -25
- package/dist/types/instructions/buyPack.d.ts.map +0 -1
- package/dist/types/instructions/buyPack.js +0 -65
- package/dist/types/instructions/buyPack.js.map +0 -1
- package/dist/types/instructions/buyPay.d.ts +0 -19
- package/dist/types/instructions/buyPay.d.ts.map +0 -1
- package/dist/types/instructions/buyPay.js +0 -66
- package/dist/types/instructions/buyPay.js.map +0 -1
- package/dist/types/instructions/buyToken.d.ts +0 -21
- package/dist/types/instructions/buyToken.d.ts.map +0 -1
- package/dist/types/instructions/buyToken.js +0 -63
- package/dist/types/instructions/buyToken.js.map +0 -1
- package/dist/types/instructions/claimZeroCard.d.ts +0 -40
- package/dist/types/instructions/claimZeroCard.d.ts.map +0 -1
- package/dist/types/instructions/claimZeroCard.js +0 -87
- package/dist/types/instructions/claimZeroCard.js.map +0 -1
- package/dist/types/instructions/closeDepositBurn.d.ts +0 -17
- package/dist/types/instructions/closeDepositBurn.d.ts.map +0 -1
- package/dist/types/instructions/closeDepositBurn.js +0 -50
- package/dist/types/instructions/closeDepositBurn.js.map +0 -1
- package/dist/types/instructions/closeRegisterTraits.d.ts +0 -9
- package/dist/types/instructions/closeRegisterTraits.d.ts.map +0 -1
- package/dist/types/instructions/closeRegisterTraits.js +0 -18
- package/dist/types/instructions/closeRegisterTraits.js.map +0 -1
- package/dist/types/instructions/createCard.d.ts +0 -19
- package/dist/types/instructions/createCard.d.ts.map +0 -1
- package/dist/types/instructions/createCard.js +0 -58
- package/dist/types/instructions/createCard.js.map +0 -1
- package/dist/types/instructions/createCollection.d.ts +0 -22
- package/dist/types/instructions/createCollection.d.ts.map +0 -1
- package/dist/types/instructions/createCollection.js +0 -67
- package/dist/types/instructions/createCollection.js.map +0 -1
- package/dist/types/instructions/createPack.d.ts +0 -25
- package/dist/types/instructions/createPack.d.ts.map +0 -1
- package/dist/types/instructions/createPack.js +0 -68
- package/dist/types/instructions/createPack.js.map +0 -1
- package/dist/types/instructions/createSingle.d.ts +0 -25
- package/dist/types/instructions/createSingle.d.ts.map +0 -1
- package/dist/types/instructions/createSingle.js +0 -68
- package/dist/types/instructions/createSingle.js.map +0 -1
- package/dist/types/instructions/createStore.d.ts +0 -16
- package/dist/types/instructions/createStore.d.ts.map +0 -1
- package/dist/types/instructions/createStore.js +0 -55
- package/dist/types/instructions/createStore.js.map +0 -1
- package/dist/types/instructions/createTokenLauncher.d.ts +0 -28
- package/dist/types/instructions/createTokenLauncher.d.ts.map +0 -1
- package/dist/types/instructions/createTokenLauncher.js +0 -76
- package/dist/types/instructions/createTokenLauncher.js.map +0 -1
- package/dist/types/instructions/createZeroCard.d.ts +0 -25
- package/dist/types/instructions/createZeroCard.d.ts.map +0 -1
- package/dist/types/instructions/createZeroCard.js +0 -69
- package/dist/types/instructions/createZeroCard.js.map +0 -1
- package/dist/types/instructions/deleteCard.d.ts +0 -11
- package/dist/types/instructions/deleteCard.d.ts.map +0 -1
- package/dist/types/instructions/deleteCard.js +0 -20
- package/dist/types/instructions/deleteCard.js.map +0 -1
- package/dist/types/instructions/deletePack.d.ts +0 -15
- package/dist/types/instructions/deletePack.d.ts.map +0 -1
- package/dist/types/instructions/deletePack.js +0 -24
- package/dist/types/instructions/deletePack.js.map +0 -1
- package/dist/types/instructions/deleteSingle.d.ts +0 -13
- package/dist/types/instructions/deleteSingle.d.ts.map +0 -1
- package/dist/types/instructions/deleteSingle.js +0 -22
- package/dist/types/instructions/deleteSingle.js.map +0 -1
- package/dist/types/instructions/deleteTokenLauncher.d.ts +0 -12
- package/dist/types/instructions/deleteTokenLauncher.d.ts.map +0 -1
- package/dist/types/instructions/deleteTokenLauncher.js +0 -25
- package/dist/types/instructions/deleteTokenLauncher.js.map +0 -1
- package/dist/types/instructions/depositBurn.d.ts +0 -22
- package/dist/types/instructions/depositBurn.d.ts.map +0 -1
- package/dist/types/instructions/depositBurn.js +0 -54
- package/dist/types/instructions/depositBurn.js.map +0 -1
- package/dist/types/instructions/donateUser.d.ts +0 -30
- package/dist/types/instructions/donateUser.d.ts.map +0 -1
- package/dist/types/instructions/donateUser.js +0 -75
- package/dist/types/instructions/donateUser.js.map +0 -1
- package/dist/types/instructions/feedPool.d.ts +0 -21
- package/dist/types/instructions/feedPool.d.ts.map +0 -1
- package/dist/types/instructions/feedPool.js +0 -60
- package/dist/types/instructions/feedPool.js.map +0 -1
- package/dist/types/instructions/feedTraits.d.ts +0 -15
- package/dist/types/instructions/feedTraits.d.ts.map +0 -1
- package/dist/types/instructions/feedTraits.js +0 -50
- package/dist/types/instructions/feedTraits.js.map +0 -1
- package/dist/types/instructions/feedTree.d.ts +0 -21
- package/dist/types/instructions/feedTree.d.ts.map +0 -1
- package/dist/types/instructions/feedTree.js +0 -61
- package/dist/types/instructions/feedTree.js.map +0 -1
- package/dist/types/instructions/flagPack.d.ts +0 -16
- package/dist/types/instructions/flagPack.d.ts.map +0 -1
- package/dist/types/instructions/flagPack.js +0 -55
- package/dist/types/instructions/flagPack.js.map +0 -1
- package/dist/types/instructions/flagSingle.d.ts +0 -15
- package/dist/types/instructions/flagSingle.d.ts.map +0 -1
- package/dist/types/instructions/flagSingle.js +0 -53
- package/dist/types/instructions/flagSingle.js.map +0 -1
- package/dist/types/instructions/gatePay.d.ts +0 -22
- package/dist/types/instructions/gatePay.d.ts.map +0 -1
- package/dist/types/instructions/gatePay.js +0 -58
- package/dist/types/instructions/gatePay.js.map +0 -1
- package/dist/types/instructions/index.d.ts +0 -105
- package/dist/types/instructions/index.d.ts.map +0 -1
- package/dist/types/instructions/index.js +0 -109
- package/dist/types/instructions/index.js.map +0 -1
- package/dist/types/instructions/initialize.d.ts +0 -15
- package/dist/types/instructions/initialize.d.ts.map +0 -1
- package/dist/types/instructions/initialize.js +0 -52
- package/dist/types/instructions/initialize.js.map +0 -1
- package/dist/types/instructions/openPack.d.ts +0 -29
- package/dist/types/instructions/openPack.d.ts.map +0 -1
- package/dist/types/instructions/openPack.js +0 -70
- package/dist/types/instructions/openPack.js.map +0 -1
- package/dist/types/instructions/prepareCreator.d.ts +0 -10
- package/dist/types/instructions/prepareCreator.d.ts.map +0 -1
- package/dist/types/instructions/prepareCreator.js +0 -19
- package/dist/types/instructions/prepareCreator.js.map +0 -1
- package/dist/types/instructions/preparePack.d.ts +0 -17
- package/dist/types/instructions/preparePack.d.ts.map +0 -1
- package/dist/types/instructions/preparePack.js +0 -54
- package/dist/types/instructions/preparePack.js.map +0 -1
- package/dist/types/instructions/prepareTraits.d.ts +0 -9
- package/dist/types/instructions/prepareTraits.d.ts.map +0 -1
- package/dist/types/instructions/prepareTraits.js +0 -18
- package/dist/types/instructions/prepareTraits.js.map +0 -1
- package/dist/types/instructions/printPack.d.ts +0 -38
- package/dist/types/instructions/printPack.d.ts.map +0 -1
- package/dist/types/instructions/printPack.js +0 -79
- package/dist/types/instructions/printPack.js.map +0 -1
- package/dist/types/instructions/printSingle.d.ts +0 -41
- package/dist/types/instructions/printSingle.d.ts.map +0 -1
- package/dist/types/instructions/printSingle.js +0 -87
- package/dist/types/instructions/printSingle.js.map +0 -1
- package/dist/types/instructions/recoverDepositBurn.d.ts +0 -34
- package/dist/types/instructions/recoverDepositBurn.d.ts.map +0 -1
- package/dist/types/instructions/recoverDepositBurn.js +0 -67
- package/dist/types/instructions/recoverDepositBurn.js.map +0 -1
- package/dist/types/instructions/registerActivity.d.ts +0 -14
- package/dist/types/instructions/registerActivity.d.ts.map +0 -1
- package/dist/types/instructions/registerActivity.js +0 -48
- package/dist/types/instructions/registerActivity.js.map +0 -1
- package/dist/types/instructions/registerCollector.d.ts +0 -17
- package/dist/types/instructions/registerCollector.d.ts.map +0 -1
- package/dist/types/instructions/registerCollector.js +0 -63
- package/dist/types/instructions/registerCollector.js.map +0 -1
- package/dist/types/instructions/registerCreator.d.ts +0 -15
- package/dist/types/instructions/registerCreator.d.ts.map +0 -1
- package/dist/types/instructions/registerCreator.js +0 -50
- package/dist/types/instructions/registerCreator.js.map +0 -1
- package/dist/types/instructions/registerGenericUser.d.ts +0 -32
- package/dist/types/instructions/registerGenericUser.d.ts.map +0 -1
- package/dist/types/instructions/registerGenericUser.js +0 -81
- package/dist/types/instructions/registerGenericUser.js.map +0 -1
- package/dist/types/instructions/registerPackUploads.d.ts +0 -14
- package/dist/types/instructions/registerPackUploads.d.ts.map +0 -1
- package/dist/types/instructions/registerPackUploads.js +0 -49
- package/dist/types/instructions/registerPackUploads.js.map +0 -1
- package/dist/types/instructions/registerTraits.d.ts +0 -13
- package/dist/types/instructions/registerTraits.d.ts.map +0 -1
- package/dist/types/instructions/registerTraits.js +0 -48
- package/dist/types/instructions/registerTraits.js.map +0 -1
- package/dist/types/instructions/registerUser.d.ts +0 -15
- package/dist/types/instructions/registerUser.d.ts.map +0 -1
- package/dist/types/instructions/registerUser.js +0 -54
- package/dist/types/instructions/registerUser.js.map +0 -1
- package/dist/types/instructions/storeLutFor.d.ts +0 -14
- package/dist/types/instructions/storeLutFor.d.ts.map +0 -1
- package/dist/types/instructions/storeLutFor.js +0 -49
- package/dist/types/instructions/storeLutFor.js.map +0 -1
- package/dist/types/instructions/unwrapAndDestroy.d.ts +0 -23
- package/dist/types/instructions/unwrapAndDestroy.d.ts.map +0 -1
- package/dist/types/instructions/unwrapAndDestroy.js +0 -54
- package/dist/types/instructions/unwrapAndDestroy.js.map +0 -1
- package/dist/types/instructions/updateCard.d.ts +0 -17
- package/dist/types/instructions/updateCard.d.ts.map +0 -1
- package/dist/types/instructions/updateCard.js +0 -57
- package/dist/types/instructions/updateCard.js.map +0 -1
- package/dist/types/instructions/updatePack.d.ts +0 -23
- package/dist/types/instructions/updatePack.d.ts.map +0 -1
- package/dist/types/instructions/updatePack.js +0 -67
- package/dist/types/instructions/updatePack.js.map +0 -1
- package/dist/types/instructions/updateSingle.d.ts +0 -21
- package/dist/types/instructions/updateSingle.d.ts.map +0 -1
- package/dist/types/instructions/updateSingle.js +0 -63
- package/dist/types/instructions/updateSingle.js.map +0 -1
- package/dist/types/instructions/updateStore.d.ts +0 -15
- package/dist/types/instructions/updateStore.d.ts.map +0 -1
- package/dist/types/instructions/updateStore.js +0 -53
- package/dist/types/instructions/updateStore.js.map +0 -1
- package/dist/types/instructions/withdrawFromStore.d.ts +0 -8
- package/dist/types/instructions/withdrawFromStore.d.ts.map +0 -1
- package/dist/types/instructions/withdrawFromStore.js +0 -17
- package/dist/types/instructions/withdrawFromStore.js.map +0 -1
- package/dist/types/programId.d.ts +0 -14
- package/dist/types/programId.d.ts.map +0 -1
- package/dist/types/programId.js +0 -20
- package/dist/types/programId.js.map +0 -1
- package/dist/types/types/AccountClass.d.ts +0 -370
- package/dist/types/types/AccountClass.d.ts.map +0 -1
- package/dist/types/types/AccountClass.js +0 -778
- package/dist/types/types/AccountClass.js.map +0 -1
- package/dist/types/types/AccountHasher.d.ts +0 -42
- package/dist/types/types/AccountHasher.d.ts.map +0 -1
- package/dist/types/types/AccountHasher.js +0 -83
- package/dist/types/types/AccountHasher.js.map +0 -1
- package/dist/types/types/ActionAfter.d.ts +0 -84
- package/dist/types/types/ActionAfter.d.ts.map +0 -1
- package/dist/types/types/ActionAfter.js +0 -180
- package/dist/types/types/ActionAfter.js.map +0 -1
- package/dist/types/types/AllowedCurrencyArgs.d.ts +0 -22
- package/dist/types/types/AllowedCurrencyArgs.d.ts.map +0 -1
- package/dist/types/types/AllowedCurrencyArgs.js +0 -61
- package/dist/types/types/AllowedCurrencyArgs.js.map +0 -1
- package/dist/types/types/AuthorityGateTypes.d.ts +0 -32
- package/dist/types/types/AuthorityGateTypes.d.ts.map +0 -1
- package/dist/types/types/AuthorityGateTypes.js +0 -102
- package/dist/types/types/AuthorityGateTypes.js.map +0 -1
- package/dist/types/types/BurnCount.d.ts +0 -55
- package/dist/types/types/BurnCount.d.ts.map +0 -1
- package/dist/types/types/BurnCount.js +0 -62
- package/dist/types/types/BurnCount.js.map +0 -1
- package/dist/types/types/BurnState.d.ts +0 -32
- package/dist/types/types/BurnState.d.ts.map +0 -1
- package/dist/types/types/BurnState.js +0 -102
- package/dist/types/types/BurnState.js.map +0 -1
- package/dist/types/types/BurnTrack.d.ts +0 -31
- package/dist/types/types/BurnTrack.d.ts.map +0 -1
- package/dist/types/types/BurnTrack.js +0 -67
- package/dist/types/types/BurnTrack.js.map +0 -1
- package/dist/types/types/BurnType.d.ts +0 -45
- package/dist/types/types/BurnType.d.ts.map +0 -1
- package/dist/types/types/BurnType.js +0 -128
- package/dist/types/types/BurnType.js.map +0 -1
- package/dist/types/types/BurnTypeBurn.d.ts +0 -19
- package/dist/types/types/BurnTypeBurn.d.ts.map +0 -1
- package/dist/types/types/BurnTypeBurn.js +0 -74
- package/dist/types/types/BurnTypeBurn.js.map +0 -1
- package/dist/types/types/BuyHistoryClass.d.ts +0 -32
- package/dist/types/types/BuyHistoryClass.d.ts.map +0 -1
- package/dist/types/types/BuyHistoryClass.js +0 -102
- package/dist/types/types/BuyHistoryClass.js.map +0 -1
- package/dist/types/types/CardClass.d.ts +0 -19
- package/dist/types/types/CardClass.d.ts.map +0 -1
- package/dist/types/types/CardClass.js +0 -74
- package/dist/types/types/CardClass.js.map +0 -1
- package/dist/types/types/CardState.d.ts +0 -97
- package/dist/types/types/CardState.d.ts.map +0 -1
- package/dist/types/types/CardState.js +0 -232
- package/dist/types/types/CardState.js.map +0 -1
- package/dist/types/types/CardTrack.d.ts +0 -60
- package/dist/types/types/CardTrack.d.ts.map +0 -1
- package/dist/types/types/CardTrack.js +0 -76
- package/dist/types/types/CardTrack.js.map +0 -1
- package/dist/types/types/Category.d.ts +0 -32
- package/dist/types/types/Category.d.ts.map +0 -1
- package/dist/types/types/Category.js +0 -71
- package/dist/types/types/Category.js.map +0 -1
- package/dist/types/types/CnftData.d.ts +0 -37
- package/dist/types/types/CnftData.d.ts.map +0 -1
- package/dist/types/types/CnftData.js +0 -81
- package/dist/types/types/CnftData.js.map +0 -1
- package/dist/types/types/CollectTrack.d.ts +0 -28
- package/dist/types/types/CollectTrack.d.ts.map +0 -1
- package/dist/types/types/CollectTrack.js +0 -70
- package/dist/types/types/CollectTrack.js.map +0 -1
- package/dist/types/types/Collection.d.ts +0 -28
- package/dist/types/types/Collection.d.ts.map +0 -1
- package/dist/types/types/Collection.js +0 -67
- package/dist/types/types/Collection.js.map +0 -1
- package/dist/types/types/CompactCnftData.d.ts +0 -32
- package/dist/types/types/CompactCnftData.d.ts.map +0 -1
- package/dist/types/types/CompactCnftData.js +0 -75
- package/dist/types/types/CompactCnftData.js.map +0 -1
- package/dist/types/types/CoolTimePerAmountArgs.d.ts +0 -32
- package/dist/types/types/CoolTimePerAmountArgs.d.ts.map +0 -1
- package/dist/types/types/CoolTimePerAmountArgs.js +0 -71
- package/dist/types/types/CoolTimePerAmountArgs.js.map +0 -1
- package/dist/types/types/Creator.d.ts +0 -33
- package/dist/types/types/Creator.d.ts.map +0 -1
- package/dist/types/types/Creator.js +0 -72
- package/dist/types/types/Creator.js.map +0 -1
- package/dist/types/types/CreatorGateArgs.d.ts +0 -23
- package/dist/types/types/CreatorGateArgs.d.ts.map +0 -1
- package/dist/types/types/CreatorGateArgs.js +0 -62
- package/dist/types/types/CreatorGateArgs.js.map +0 -1
- package/dist/types/types/CurrencyArtistProof.d.ts +0 -38
- package/dist/types/types/CurrencyArtistProof.d.ts.map +0 -1
- package/dist/types/types/CurrencyArtistProof.js +0 -85
- package/dist/types/types/CurrencyArtistProof.js.map +0 -1
- package/dist/types/types/CurrencyType.d.ts +0 -111
- package/dist/types/types/CurrencyType.d.ts.map +0 -1
- package/dist/types/types/CurrencyType.js +0 -220
- package/dist/types/types/CurrencyType.js.map +0 -1
- package/dist/types/types/DateTraitInit.d.ts +0 -28
- package/dist/types/types/DateTraitInit.d.ts.map +0 -1
- package/dist/types/types/DateTraitInit.js +0 -70
- package/dist/types/types/DateTraitInit.js.map +0 -1
- package/dist/types/types/DateTraitInitMap.d.ts +0 -33
- package/dist/types/types/DateTraitInitMap.d.ts.map +0 -1
- package/dist/types/types/DateTraitInitMap.js +0 -75
- package/dist/types/types/DateTraitInitMap.js.map +0 -1
- package/dist/types/types/Deposit.d.ts +0 -135
- package/dist/types/types/Deposit.d.ts.map +0 -1
- package/dist/types/types/Deposit.js +0 -86
- package/dist/types/types/Deposit.js.map +0 -1
- package/dist/types/types/DepositFormat.d.ts +0 -32
- package/dist/types/types/DepositFormat.d.ts.map +0 -1
- package/dist/types/types/DepositFormat.js +0 -102
- package/dist/types/types/DepositFormat.js.map +0 -1
- package/dist/types/types/DepositState.d.ts +0 -32
- package/dist/types/types/DepositState.d.ts.map +0 -1
- package/dist/types/types/DepositState.js +0 -102
- package/dist/types/types/DepositState.js.map +0 -1
- package/dist/types/types/DepositSubtype.d.ts +0 -32
- package/dist/types/types/DepositSubtype.d.ts.map +0 -1
- package/dist/types/types/DepositSubtype.js +0 -102
- package/dist/types/types/DepositSubtype.js.map +0 -1
- package/dist/types/types/DepositTrack.d.ts +0 -47
- package/dist/types/types/DepositTrack.d.ts.map +0 -1
- package/dist/types/types/DepositTrack.js +0 -70
- package/dist/types/types/DepositTrack.js.map +0 -1
- package/dist/types/types/DepositTrackType.d.ts +0 -45
- package/dist/types/types/DepositTrackType.d.ts.map +0 -1
- package/dist/types/types/DepositTrackType.js +0 -128
- package/dist/types/types/DepositTrackType.js.map +0 -1
- package/dist/types/types/DepositType.d.ts +0 -123
- package/dist/types/types/DepositType.d.ts.map +0 -1
- package/dist/types/types/DepositType.js +0 -184
- package/dist/types/types/DepositType.js.map +0 -1
- package/dist/types/types/Earnings.d.ts +0 -15
- package/dist/types/types/Earnings.d.ts.map +0 -1
- package/dist/types/types/Earnings.js +0 -51
- package/dist/types/types/Earnings.js.map +0 -1
- package/dist/types/types/EditionStoreType.d.ts +0 -45
- package/dist/types/types/EditionStoreType.d.ts.map +0 -1
- package/dist/types/types/EditionStoreType.js +0 -128
- package/dist/types/types/EditionStoreType.js.map +0 -1
- package/dist/types/types/EncryptedPayload.d.ts +0 -27
- package/dist/types/types/EncryptedPayload.d.ts.map +0 -1
- package/dist/types/types/EncryptedPayload.js +0 -66
- package/dist/types/types/EncryptedPayload.js.map +0 -1
- package/dist/types/types/ExtraParameter.d.ts +0 -45
- package/dist/types/types/ExtraParameter.d.ts.map +0 -1
- package/dist/types/types/ExtraParameter.js +0 -115
- package/dist/types/types/ExtraParameter.js.map +0 -1
- package/dist/types/types/FakeBurnCount.d.ts +0 -54
- package/dist/types/types/FakeBurnCount.d.ts.map +0 -1
- package/dist/types/types/FakeBurnCount.js +0 -71
- package/dist/types/types/FakeBurnCount.js.map +0 -1
- package/dist/types/types/FakeDeposit.d.ts +0 -64
- package/dist/types/types/FakeDeposit.d.ts.map +0 -1
- package/dist/types/types/FakeDeposit.js +0 -71
- package/dist/types/types/FakeDeposit.js.map +0 -1
- package/dist/types/types/FakeTraitPair.d.ts +0 -27
- package/dist/types/types/FakeTraitPair.d.ts.map +0 -1
- package/dist/types/types/FakeTraitPair.js +0 -66
- package/dist/types/types/FakeTraitPair.js.map +0 -1
- package/dist/types/types/FakeTraitValue.d.ts +0 -28
- package/dist/types/types/FakeTraitValue.d.ts.map +0 -1
- package/dist/types/types/FakeTraitValue.js +0 -70
- package/dist/types/types/FakeTraitValue.js.map +0 -1
- package/dist/types/types/FakeVolumeTrack.d.ts +0 -35
- package/dist/types/types/FakeVolumeTrack.d.ts.map +0 -1
- package/dist/types/types/FakeVolumeTrack.js +0 -68
- package/dist/types/types/FakeVolumeTrack.js.map +0 -1
- package/dist/types/types/FeeType.d.ts +0 -45
- package/dist/types/types/FeeType.d.ts.map +0 -1
- package/dist/types/types/FeeType.js +0 -128
- package/dist/types/types/FeeType.js.map +0 -1
- package/dist/types/types/FeedingTraits.d.ts +0 -49
- package/dist/types/types/FeedingTraits.d.ts.map +0 -1
- package/dist/types/types/FeedingTraits.js +0 -62
- package/dist/types/types/FeedingTraits.js.map +0 -1
- package/dist/types/types/Filter.d.ts +0 -35
- package/dist/types/types/Filter.d.ts.map +0 -1
- package/dist/types/types/Filter.js +0 -67
- package/dist/types/types/Filter.js.map +0 -1
- package/dist/types/types/FilterType.d.ts +0 -19
- package/dist/types/types/FilterType.d.ts.map +0 -1
- package/dist/types/types/FilterType.js +0 -74
- package/dist/types/types/FilterType.js.map +0 -1
- package/dist/types/types/GeneralStore.d.ts +0 -19
- package/dist/types/types/GeneralStore.d.ts.map +0 -1
- package/dist/types/types/GeneralStore.js +0 -74
- package/dist/types/types/GeneralStore.js.map +0 -1
- package/dist/types/types/GenericStore.d.ts +0 -49
- package/dist/types/types/GenericStore.d.ts.map +0 -1
- package/dist/types/types/GenericStore.js +0 -67
- package/dist/types/types/GenericStore.js.map +0 -1
- package/dist/types/types/GenericValue.d.ts +0 -73
- package/dist/types/types/GenericValue.d.ts.map +0 -1
- package/dist/types/types/GenericValue.js +0 -159
- package/dist/types/types/GenericValue.js.map +0 -1
- package/dist/types/types/GlobalFee.d.ts +0 -51
- package/dist/types/types/GlobalFee.d.ts.map +0 -1
- package/dist/types/types/GlobalFee.js +0 -87
- package/dist/types/types/GlobalFee.js.map +0 -1
- package/dist/types/types/GlobalState.d.ts +0 -58
- package/dist/types/types/GlobalState.d.ts.map +0 -1
- package/dist/types/types/GlobalState.js +0 -154
- package/dist/types/types/GlobalState.js.map +0 -1
- package/dist/types/types/IndexDate.d.ts +0 -42
- package/dist/types/types/IndexDate.d.ts.map +0 -1
- package/dist/types/types/IndexDate.js +0 -87
- package/dist/types/types/IndexDate.js.map +0 -1
- package/dist/types/types/IndexDates.d.ts +0 -51
- package/dist/types/types/IndexDates.d.ts.map +0 -1
- package/dist/types/types/IndexDates.js +0 -67
- package/dist/types/types/IndexDates.js.map +0 -1
- package/dist/types/types/Item.d.ts +0 -108
- package/dist/types/types/Item.d.ts.map +0 -1
- package/dist/types/types/Item.js +0 -62
- package/dist/types/types/Item.js.map +0 -1
- package/dist/types/types/ItemClass.d.ts +0 -32
- package/dist/types/types/ItemClass.d.ts.map +0 -1
- package/dist/types/types/ItemClass.js +0 -102
- package/dist/types/types/ItemClass.js.map +0 -1
- package/dist/types/types/ItemState.d.ts +0 -123
- package/dist/types/types/ItemState.d.ts.map +0 -1
- package/dist/types/types/ItemState.js +0 -284
- package/dist/types/types/ItemState.js.map +0 -1
- package/dist/types/types/ItemTrack.d.ts +0 -69
- package/dist/types/types/ItemTrack.d.ts.map +0 -1
- package/dist/types/types/ItemTrack.js +0 -80
- package/dist/types/types/ItemTrack.js.map +0 -1
- package/dist/types/types/ListingPerWalletArgs.d.ts +0 -22
- package/dist/types/types/ListingPerWalletArgs.d.ts.map +0 -1
- package/dist/types/types/ListingPerWalletArgs.js +0 -61
- package/dist/types/types/ListingPerWalletArgs.js.map +0 -1
- package/dist/types/types/MemeVaultProof.d.ts +0 -28
- package/dist/types/types/MemeVaultProof.d.ts.map +0 -1
- package/dist/types/types/MemeVaultProof.js +0 -70
- package/dist/types/types/MemeVaultProof.js.map +0 -1
- package/dist/types/types/MetadataArgs.d.ts +0 -161
- package/dist/types/types/MetadataArgs.d.ts.map +0 -1
- package/dist/types/types/MetadataArgs.js +0 -139
- package/dist/types/types/MetadataArgs.js.map +0 -1
- package/dist/types/types/NonFungibleTraitInit.d.ts +0 -28
- package/dist/types/types/NonFungibleTraitInit.d.ts.map +0 -1
- package/dist/types/types/NonFungibleTraitInit.js +0 -70
- package/dist/types/types/NonFungibleTraitInit.js.map +0 -1
- package/dist/types/types/NonFungibleTraitInitMap.d.ts +0 -39
- package/dist/types/types/NonFungibleTraitInitMap.d.ts.map +0 -1
- package/dist/types/types/NonFungibleTraitInitMap.js +0 -80
- package/dist/types/types/NonFungibleTraitInitMap.js.map +0 -1
- package/dist/types/types/OnlyBetweenTimesArgs.d.ts +0 -44
- package/dist/types/types/OnlyBetweenTimesArgs.d.ts.map +0 -1
- package/dist/types/types/OnlyBetweenTimesArgs.js +0 -76
- package/dist/types/types/OnlyBetweenTimesArgs.js.map +0 -1
- package/dist/types/types/OnlyTheseDOWArgs.d.ts +0 -22
- package/dist/types/types/OnlyTheseDOWArgs.d.ts.map +0 -1
- package/dist/types/types/OnlyTheseDOWArgs.js +0 -61
- package/dist/types/types/OnlyTheseDOWArgs.js.map +0 -1
- package/dist/types/types/PackConfig.d.ts +0 -63
- package/dist/types/types/PackConfig.d.ts.map +0 -1
- package/dist/types/types/PackConfig.js +0 -89
- package/dist/types/types/PackConfig.js.map +0 -1
- package/dist/types/types/PackOpenHolderState.d.ts +0 -45
- package/dist/types/types/PackOpenHolderState.d.ts.map +0 -1
- package/dist/types/types/PackOpenHolderState.js +0 -128
- package/dist/types/types/PackOpenHolderState.js.map +0 -1
- package/dist/types/types/PackRule.d.ts +0 -32
- package/dist/types/types/PackRule.d.ts.map +0 -1
- package/dist/types/types/PackRule.js +0 -89
- package/dist/types/types/PackRule.js.map +0 -1
- package/dist/types/types/PackState.d.ts +0 -45
- package/dist/types/types/PackState.d.ts.map +0 -1
- package/dist/types/types/PackState.js +0 -128
- package/dist/types/types/PackState.js.map +0 -1
- package/dist/types/types/PackType.d.ts +0 -45
- package/dist/types/types/PackType.d.ts.map +0 -1
- package/dist/types/types/PackType.js +0 -128
- package/dist/types/types/PackType.js.map +0 -1
- package/dist/types/types/PaymentClass.d.ts +0 -45
- package/dist/types/types/PaymentClass.d.ts.map +0 -1
- package/dist/types/types/PaymentClass.js +0 -128
- package/dist/types/types/PaymentClass.js.map +0 -1
- package/dist/types/types/PoolAccess.d.ts +0 -32
- package/dist/types/types/PoolAccess.d.ts.map +0 -1
- package/dist/types/types/PoolAccess.js +0 -102
- package/dist/types/types/PoolAccess.js.map +0 -1
- package/dist/types/types/PoolState.d.ts +0 -32
- package/dist/types/types/PoolState.d.ts.map +0 -1
- package/dist/types/types/PoolState.js +0 -102
- package/dist/types/types/PoolState.js.map +0 -1
- package/dist/types/types/PoolType.d.ts +0 -32
- package/dist/types/types/PoolType.d.ts.map +0 -1
- package/dist/types/types/PoolType.js +0 -102
- package/dist/types/types/PoolType.js.map +0 -1
- package/dist/types/types/Popularity.d.ts +0 -113
- package/dist/types/types/Popularity.d.ts.map +0 -1
- package/dist/types/types/Popularity.js +0 -80
- package/dist/types/types/Popularity.js.map +0 -1
- package/dist/types/types/PopularityState.d.ts +0 -266
- package/dist/types/types/PopularityState.d.ts.map +0 -1
- package/dist/types/types/PopularityState.js +0 -570
- package/dist/types/types/PopularityState.js.map +0 -1
- package/dist/types/types/PreviousDonationRecord.d.ts +0 -43
- package/dist/types/types/PreviousDonationRecord.d.ts.map +0 -1
- package/dist/types/types/PreviousDonationRecord.js +0 -80
- package/dist/types/types/PreviousDonationRecord.js.map +0 -1
- package/dist/types/types/Price.d.ts +0 -61
- package/dist/types/types/Price.d.ts.map +0 -1
- package/dist/types/types/Price.js +0 -71
- package/dist/types/types/Price.js.map +0 -1
- package/dist/types/types/PriceRule.d.ts +0 -88
- package/dist/types/types/PriceRule.d.ts.map +0 -1
- package/dist/types/types/PriceRule.js +0 -197
- package/dist/types/types/PriceRule.js.map +0 -1
- package/dist/types/types/RecoverDeposit.d.ts +0 -32
- package/dist/types/types/RecoverDeposit.d.ts.map +0 -1
- package/dist/types/types/RecoverDeposit.js +0 -62
- package/dist/types/types/RecoverDeposit.js.map +0 -1
- package/dist/types/types/Rule.d.ts +0 -115
- package/dist/types/types/Rule.d.ts.map +0 -1
- package/dist/types/types/Rule.js +0 -168
- package/dist/types/types/Rule.js.map +0 -1
- package/dist/types/types/SaleConfig.d.ts +0 -208
- package/dist/types/types/SaleConfig.d.ts.map +0 -1
- package/dist/types/types/SaleConfig.js +0 -88
- package/dist/types/types/SaleConfig.js.map +0 -1
- package/dist/types/types/SaleTrack.d.ts +0 -38
- package/dist/types/types/SaleTrack.d.ts.map +0 -1
- package/dist/types/types/SaleTrack.js +0 -85
- package/dist/types/types/SaleTrack.js.map +0 -1
- package/dist/types/types/SaleType.d.ts +0 -58
- package/dist/types/types/SaleType.d.ts.map +0 -1
- package/dist/types/types/SaleType.js +0 -154
- package/dist/types/types/SaleType.js.map +0 -1
- package/dist/types/types/Seed.d.ts +0 -22
- package/dist/types/types/Seed.d.ts.map +0 -1
- package/dist/types/types/Seed.js +0 -61
- package/dist/types/types/Seed.js.map +0 -1
- package/dist/types/types/SelectedCard.d.ts +0 -27
- package/dist/types/types/SelectedCard.d.ts.map +0 -1
- package/dist/types/types/SelectedCard.js +0 -66
- package/dist/types/types/SelectedCard.js.map +0 -1
- package/dist/types/types/SelectedZeroCard.d.ts +0 -27
- package/dist/types/types/SelectedZeroCard.d.ts.map +0 -1
- package/dist/types/types/SelectedZeroCard.js +0 -66
- package/dist/types/types/SelectedZeroCard.js.map +0 -1
- package/dist/types/types/SemiFungibleTraitInit.d.ts +0 -28
- package/dist/types/types/SemiFungibleTraitInit.d.ts.map +0 -1
- package/dist/types/types/SemiFungibleTraitInit.js +0 -70
- package/dist/types/types/SemiFungibleTraitInit.js.map +0 -1
- package/dist/types/types/SemiFungibleTraitInitMap.d.ts +0 -33
- package/dist/types/types/SemiFungibleTraitInitMap.d.ts.map +0 -1
- package/dist/types/types/SemiFungibleTraitInitMap.js +0 -75
- package/dist/types/types/SemiFungibleTraitInitMap.js.map +0 -1
- package/dist/types/types/ShortCreator.d.ts +0 -28
- package/dist/types/types/ShortCreator.d.ts.map +0 -1
- package/dist/types/types/ShortCreator.js +0 -67
- package/dist/types/types/ShortCreator.js.map +0 -1
- package/dist/types/types/ShortMetadata.d.ts +0 -99
- package/dist/types/types/ShortMetadata.d.ts.map +0 -1
- package/dist/types/types/ShortMetadata.js +0 -121
- package/dist/types/types/ShortMetadata.js.map +0 -1
- package/dist/types/types/ShortMetadataArgs.d.ts +0 -54
- package/dist/types/types/ShortMetadataArgs.d.ts.map +0 -1
- package/dist/types/types/ShortMetadataArgs.js +0 -95
- package/dist/types/types/ShortMetadataArgs.js.map +0 -1
- package/dist/types/types/StoreConfig.d.ts +0 -108
- package/dist/types/types/StoreConfig.d.ts.map +0 -1
- package/dist/types/types/StoreConfig.js +0 -93
- package/dist/types/types/StoreConfig.js.map +0 -1
- package/dist/types/types/StoreRule.d.ts +0 -77
- package/dist/types/types/StoreRule.d.ts.map +0 -1
- package/dist/types/types/StoreRule.js +0 -129
- package/dist/types/types/StoreRule.js.map +0 -1
- package/dist/types/types/SuperCategory.d.ts +0 -27
- package/dist/types/types/SuperCategory.d.ts.map +0 -1
- package/dist/types/types/SuperCategory.js +0 -66
- package/dist/types/types/SuperCategory.js.map +0 -1
- package/dist/types/types/TightCardMetadata.d.ts +0 -60
- package/dist/types/types/TightCardMetadata.d.ts.map +0 -1
- package/dist/types/types/TightCardMetadata.js +0 -105
- package/dist/types/types/TightCardMetadata.js.map +0 -1
- package/dist/types/types/TimeRangeType.d.ts +0 -45
- package/dist/types/types/TimeRangeType.d.ts.map +0 -1
- package/dist/types/types/TimeRangeType.js +0 -128
- package/dist/types/types/TimeRangeType.js.map +0 -1
- package/dist/types/types/TimedPerWalletArgs.d.ts +0 -22
- package/dist/types/types/TimedPerWalletArgs.d.ts.map +0 -1
- package/dist/types/types/TimedPerWalletArgs.js +0 -61
- package/dist/types/types/TimedPerWalletArgs.js.map +0 -1
- package/dist/types/types/TokenMetadata.d.ts +0 -32
- package/dist/types/types/TokenMetadata.d.ts.map +0 -1
- package/dist/types/types/TokenMetadata.js +0 -71
- package/dist/types/types/TokenMetadata.js.map +0 -1
- package/dist/types/types/TokenProgramVersion.d.ts +0 -32
- package/dist/types/types/TokenProgramVersion.d.ts.map +0 -1
- package/dist/types/types/TokenProgramVersion.js +0 -102
- package/dist/types/types/TokenProgramVersion.js.map +0 -1
- package/dist/types/types/TokenStandard.d.ts +0 -58
- package/dist/types/types/TokenStandard.d.ts.map +0 -1
- package/dist/types/types/TokenStandard.js +0 -154
- package/dist/types/types/TokenStandard.js.map +0 -1
- package/dist/types/types/TokenState.d.ts +0 -32
- package/dist/types/types/TokenState.d.ts.map +0 -1
- package/dist/types/types/TokenState.js +0 -102
- package/dist/types/types/TokenState.js.map +0 -1
- package/dist/types/types/TokenType.d.ts +0 -32
- package/dist/types/types/TokenType.d.ts.map +0 -1
- package/dist/types/types/TokenType.js +0 -102
- package/dist/types/types/TokenType.js.map +0 -1
- package/dist/types/types/TotalPerTimeArgs.d.ts +0 -37
- package/dist/types/types/TotalPerTimeArgs.d.ts.map +0 -1
- package/dist/types/types/TotalPerTimeArgs.js +0 -81
- package/dist/types/types/TotalPerTimeArgs.js.map +0 -1
- package/dist/types/types/TotalPerTimeWalletArgs.d.ts +0 -27
- package/dist/types/types/TotalPerTimeWalletArgs.d.ts.map +0 -1
- package/dist/types/types/TotalPerTimeWalletArgs.js +0 -66
- package/dist/types/types/TotalPerTimeWalletArgs.js.map +0 -1
- package/dist/types/types/TrackRegistry.d.ts +0 -32
- package/dist/types/types/TrackRegistry.d.ts.map +0 -1
- package/dist/types/types/TrackRegistry.js +0 -102
- package/dist/types/types/TrackRegistry.js.map +0 -1
- package/dist/types/types/TraitInit.d.ts +0 -89
- package/dist/types/types/TraitInit.d.ts.map +0 -1
- package/dist/types/types/TraitInit.js +0 -176
- package/dist/types/types/TraitInit.js.map +0 -1
- package/dist/types/types/TraitPass.d.ts +0 -53
- package/dist/types/types/TraitPass.d.ts.map +0 -1
- package/dist/types/types/TraitPass.js +0 -62
- package/dist/types/types/TraitPass.js.map +0 -1
- package/dist/types/types/TraitPassType.d.ts +0 -97
- package/dist/types/types/TraitPassType.d.ts.map +0 -1
- package/dist/types/types/TraitPassType.js +0 -186
- package/dist/types/types/TraitPassType.js.map +0 -1
- package/dist/types/types/TraitType.d.ts +0 -113
- package/dist/types/types/TraitType.d.ts.map +0 -1
- package/dist/types/types/TraitType.js +0 -207
- package/dist/types/types/TraitType.js.map +0 -1
- package/dist/types/types/TraitValue.d.ts +0 -33
- package/dist/types/types/TraitValue.d.ts.map +0 -1
- package/dist/types/types/TraitValue.js +0 -75
- package/dist/types/types/TraitValue.js.map +0 -1
- package/dist/types/types/UnlocksAfter.d.ts +0 -71
- package/dist/types/types/UnlocksAfter.d.ts.map +0 -1
- package/dist/types/types/UnlocksAfter.js +0 -154
- package/dist/types/types/UnlocksAfter.js.map +0 -1
- package/dist/types/types/UnwrapMetadata.d.ts +0 -80
- package/dist/types/types/UnwrapMetadata.d.ts.map +0 -1
- package/dist/types/types/UnwrapMetadata.js +0 -128
- package/dist/types/types/UnwrapMetadata.js.map +0 -1
- package/dist/types/types/UseMethod.d.ts +0 -45
- package/dist/types/types/UseMethod.d.ts.map +0 -1
- package/dist/types/types/UseMethod.js +0 -128
- package/dist/types/types/UseMethod.js.map +0 -1
- package/dist/types/types/Uses.d.ts +0 -45
- package/dist/types/types/Uses.d.ts.map +0 -1
- package/dist/types/types/Uses.js +0 -80
- package/dist/types/types/Uses.js.map +0 -1
- package/dist/types/types/VerifyCollectionMetadata.d.ts +0 -56
- package/dist/types/types/VerifyCollectionMetadata.d.ts.map +0 -1
- package/dist/types/types/VerifyCollectionMetadata.js +0 -94
- package/dist/types/types/VerifyCollectionMetadata.js.map +0 -1
- package/dist/types/types/VolumeTrack.d.ts +0 -28
- package/dist/types/types/VolumeTrack.d.ts.map +0 -1
- package/dist/types/types/VolumeTrack.js +0 -70
- package/dist/types/types/VolumeTrack.js.map +0 -1
- package/dist/types/types/WrappedSource.d.ts +0 -39
- package/dist/types/types/WrappedSource.d.ts.map +0 -1
- package/dist/types/types/WrappedSource.js +0 -86
- package/dist/types/types/WrappedSource.js.map +0 -1
- package/dist/types/types/ZeroConfig.d.ts +0 -37
- package/dist/types/types/ZeroConfig.d.ts.map +0 -1
- package/dist/types/types/ZeroConfig.js +0 -81
- package/dist/types/types/ZeroConfig.js.map +0 -1
- package/dist/types/types/index.d.ts +0 -333
- package/dist/types/types/index.d.ts.map +0 -1
- package/dist/types/types/index.js +0 -265
- package/dist/types/types/index.js.map +0 -1
- package/dist/utility/Connection.d.ts +0 -4
- package/dist/utility/Connection.d.ts.map +0 -1
- package/dist/utility/Connection.js +0 -12
- package/dist/utility/Connection.js.map +0 -1
- package/dist/utility/Holders.d.ts +0 -9
- package/dist/utility/Holders.d.ts.map +0 -1
- package/dist/utility/Holders.js +0 -12
- package/dist/utility/Holders.js.map +0 -1
- package/dist/utility/PdaManager.d.ts +0 -20
- package/dist/utility/PdaManager.d.ts.map +0 -1
- package/dist/utility/PdaManager.js +0 -175
- package/dist/utility/PdaManager.js.map +0 -1
- package/dist/utility/config.d.ts +0 -12
- package/dist/utility/config.d.ts.map +0 -1
- package/dist/utility/config.js +0 -24
- package/dist/utility/config.js.map +0 -1
- package/dist/utility/utils.d.ts +0 -14
- package/dist/utility/utils.d.ts.map +0 -1
- package/dist/utility/utils.js +0 -198
- package/dist/utility/utils.js.map +0 -1
- package/dist/utility/validation.d.ts +0 -13
- package/dist/utility/validation.d.ts.map +0 -1
- package/dist/utility/validation.js +0 -161
- package/dist/utility/validation.js.map +0 -1
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"irys.js","sourceRoot":"","sources":["../../../src/library/Irys/irys.ts"],"names":[],"mappings":";;;;;;AAAA,mCAA8C;AAC9C,+CAAkD;AAClD,yDAAuD;AACvD,oDAA4B;AAC5B,6CAAoE;AACpE,0DAA6B;AA+C7B,MAAa,UAAU;IAMrB;QACE,IAAI,CAAC,YAAY,GAAG,EAAE,CAAC;IACzB,CAAC;IAED,0BAA0B;IAC1B,4BAA4B;IAC5B,0BAA0B;IAElB,iBAAiB;QACvB,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;YAC9C,MAAM,IAAI,KAAK,CACb,yDAAyD,CAC1D,CAAC;QACJ,CAAC;IACH,CAAC;IAED,mDAAmD;IACnD,8BAA8B;IAC9B,UAAU;IACV,+CAA+C;IAC/C,uBAAuB;IACvB,kBAAkB;IAClB,4CAA4C;IAC5C,MAAM;IACN,kBAAkB;IAClB,IAAI;IAEJ,qCAAqC;IACrC,8BAA8B;IAC9B,yCAAyC;IACzC,IAAI;IAEJ,KAAK,CAAC,aAAa,CAAC,EAAO;QACzB,IAAI,CAAC;YACH,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,EAAE,CAAC,CAAC;YAC9D,OAAO,QAAQ,CAAC;QAClB,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACX,OAAO,CAAC,GAAG,CAAC,oBAAoB,EAAE,CAAC,CAAC,CAAC;QACvC,CAAC;QACD,OAAO,KAAK,CAAC;IACf,CAAC;IACD,KAAK,CAAC,UAAU;QACd,OAAO,IAAI,CAAC,IAAI,CAAC,gBAAgB,EAAE,CAAC;IACtC,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,IAAc,EAAE,WAAW,GAAG,KAAK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ACrC,IAAI,CAAC,CAAC;YAAE,MAAM,GAAG,IAAI,CAAC;QACtB,OAAO,MAAM,CAAC;IAChB,CAAC;IACD,MAAM,GAAG,IAAI,UAAU,EAAE,CAAC;IAC1B,MAAM,CAAC,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC9C,IAAI,CAAC,CAAC;QAAE,MAAM,GAAG,IAAI,CAAC;IACtB,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC;AAbW,QAAA,IAAI,QAaf"}
|
package/dist/library/Store.d.ts
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
import { PublicKey, Signer } from "@solana/web3.js";
|
2
|
-
import { StoreConfig, MetadataArgs, SaleConfig, ShortMetadataArgs } from "../types/types";
|
3
|
-
import { NetworkType, NetworkConfig } from "../utility/config";
|
4
|
-
export interface StoreOptions {
|
5
|
-
network?: NetworkType;
|
6
|
-
customEndpoint?: string;
|
7
|
-
customConfig?: Partial<NetworkConfig>;
|
8
|
-
}
|
9
|
-
export declare class Store {
|
10
|
-
private connection;
|
11
|
-
private networkConfig;
|
12
|
-
constructor(options?: StoreOptions);
|
13
|
-
createStore(payer: Signer, name: string, storeConfig: StoreConfig, creator?: PublicKey, storeId?: number): Promise<string>;
|
14
|
-
createCollection(payer: Signer, collectionDetails: any, metadata: any, irysData: any, mutable?: Boolean, supply?: number): Promise<string>;
|
15
|
-
createSingleEdition(payer: Signer, storeAccount: PublicKey, supply: number, metadata: ShortMetadataArgs, saleConfig: SaleConfig, category: number[], superCategory: number[], eventCategory: number, hashTraits: number, collection: PublicKey, irysData: any): Promise<string>;
|
16
|
-
buySingleEdition(payer: Signer, distributionBumps: number[], itemAddress: PublicKey, extraAccounts?: any[], globalStoreAccount?: PublicKey, packAccount?: PublicKey, burnProgress?: PublicKey, poolVault?: PublicKey): Promise<string>;
|
17
|
-
}
|
18
|
-
export { StoreConfig, MetadataArgs, SaleConfig };
|
19
|
-
//# sourceMappingURL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,OAAO,CAAC,MAAM,CAAC;IAoKZ,gBAAgB,CACpB,KAAK,EAAE,MAAM,EACb,iBAAiB,EAAE,MAAM,EAAE,EAC3B,WAAW,EAAE,SAAS,EACtB,aAAa,GAAE,GAAG,EAAiB,EACnC,kBAAkB,GAAE,SAA6B,EACjD,WAAW,GAAE,SAAwB,EACrC,YAAY,GAAE,SAAwB,EACtC,SAAS,GAAE,SAAwB,GAClC,OAAO,CAAC,MAAM,CAAC;CAuHnB;AAED,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,UAAU,EAAE,CAAC"}
|
package/dist/library/Store.js
DELETED
@@ -1,377 +0,0 @@
|
|
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.SaleConfig = exports.MetadataArgs = exports.StoreConfig = exports.Store = void 0;
|
7
|
-
const web3_js_1 = require("@solana/web3.js");
|
8
|
-
const mpl_token_metadata_1 = require("@metaplex-foundation/mpl-token-metadata");
|
9
|
-
const spl_token_1 = require("@solana/spl-token");
|
10
|
-
const Connection_1 = require("../utility/Connection");
|
11
|
-
const createStore_1 = require("./instructions/store/createStore");
|
12
|
-
const createSingleEdition_1 = require("./instructions/store/createSingleEdition");
|
13
|
-
const buySingleEdition_1 = require("./instructions/store/buySingleEdition");
|
14
|
-
const types_1 = require("../types/types");
|
15
|
-
Object.defineProperty(exports, "StoreConfig", { enumerable: true, get: function () { return types_1.StoreConfig; } });
|
16
|
-
Object.defineProperty(exports, "MetadataArgs", { enumerable: true, get: function () { return types_1.MetadataArgs; } });
|
17
|
-
Object.defineProperty(exports, "SaleConfig", { enumerable: true, get: function () { return types_1.SaleConfig; } });
|
18
|
-
const PdaManager_1 = require("../utility/PdaManager");
|
19
|
-
const Holders_1 = require("../utility/Holders");
|
20
|
-
const bn_js_1 = __importDefault(require("bn.js"));
|
21
|
-
const uploadFilesIryis_1 = require("./instructions/store/uploadFilesIryis");
|
22
|
-
const programId_1 = require("../types/programId");
|
23
|
-
const registerCreator_1 = require("../types/instructions/registerCreator");
|
24
|
-
const irys_1 = require("./Irys/irys");
|
25
|
-
const mpl_token_metadata_2 = require("@metaplex-foundation/mpl-token-metadata");
|
26
|
-
const instructions_1 = require("../types/instructions");
|
27
|
-
const validation_1 = require("../utility/validation");
|
28
|
-
const config_1 = require("../utility/config");
|
29
|
-
const accounts_1 = require("../types/accounts");
|
30
|
-
const extraAccount = [
|
31
|
-
{
|
32
|
-
pubkey: new web3_js_1.PublicKey("GyPCu89S63P9NcCQAtuSJesiefhhgpGWrNVJs4bF2cSK"), //global store
|
33
|
-
isSigner: false,
|
34
|
-
isWritable: true,
|
35
|
-
},
|
36
|
-
];
|
37
|
-
class Store {
|
38
|
-
constructor(options = {}) {
|
39
|
-
const { network = config_1.NetworkType.DEVNET,
|
40
|
-
// network = NetworkType.MAINNET,
|
41
|
-
customEndpoint, customConfig, } = options;
|
42
|
-
const baseConfig = config_1.NETWORK_CONFIGS[network];
|
43
|
-
this.networkConfig = {
|
44
|
-
...baseConfig,
|
45
|
-
...customConfig,
|
46
|
-
endpoint: customEndpoint || baseConfig.endpoint,
|
47
|
-
};
|
48
|
-
this.connection = (0, Connection_1.getConnection)(this.networkConfig.endpoint);
|
49
|
-
}
|
50
|
-
async createStore(payer, name, storeConfig, creator, storeId) {
|
51
|
-
if (!payer || !payer.publicKey) {
|
52
|
-
throw new validation_1.ValidationError("Invalid payer");
|
53
|
-
}
|
54
|
-
if (!name || name.length > 32) {
|
55
|
-
throw new validation_1.ValidationError("Store name is required and must be <= 32 characters");
|
56
|
-
}
|
57
|
-
storeId = Math.floor(Math.random() * 10000);
|
58
|
-
creator = payer.publicKey;
|
59
|
-
(0, validation_1.validateStoreConfig)(storeConfig);
|
60
|
-
(0, validation_1.validateIdentifier)(storeId);
|
61
|
-
try {
|
62
|
-
const [holderAccount] = await (0, PdaManager_1.holderPDA)({
|
63
|
-
creator: Holders_1.devnetHolder.creator,
|
64
|
-
slot: Holders_1.devnetHolder.slot,
|
65
|
-
});
|
66
|
-
const [storeAccount] = await (0, PdaManager_1.storePDA)({
|
67
|
-
storeId: storeId,
|
68
|
-
creator: creator.toString(),
|
69
|
-
holder: holderAccount.toString(),
|
70
|
-
});
|
71
|
-
const instruction = (0, createStore_1.createStoreInstruction)(holderAccount, storeAccount, payer.publicKey, name, storeConfig, storeId);
|
72
|
-
const transaction = new web3_js_1.Transaction().add(instruction);
|
73
|
-
return (0, web3_js_1.sendAndConfirmTransaction)(this.connection, transaction, [payer]);
|
74
|
-
}
|
75
|
-
catch (error) {
|
76
|
-
if (error instanceof validation_1.ValidationError) {
|
77
|
-
throw error;
|
78
|
-
}
|
79
|
-
throw new Error(`Failed to create store: ${error}`);
|
80
|
-
}
|
81
|
-
}
|
82
|
-
async createCollection(payer, collectionDetails, metadata, irysData, mutable = false, supply = 0) {
|
83
|
-
try {
|
84
|
-
if (!payer || !payer.publicKey) {
|
85
|
-
throw new validation_1.ValidationError("Invalid payer");
|
86
|
-
}
|
87
|
-
(0, validation_1.validateCollectionArgs)(collectionDetails, supply, metadata, irysData);
|
88
|
-
if (typeof mutable !== "boolean") {
|
89
|
-
throw new validation_1.ValidationError("Mutable parameter must be a boolean");
|
90
|
-
}
|
91
|
-
if (metadata.uri.length !== 0) {
|
92
|
-
throw new validation_1.ValidationError("URI must be empty");
|
93
|
-
}
|
94
|
-
let instructions = [];
|
95
|
-
let signers = [payer];
|
96
|
-
if (metadata.uri.length !== 0)
|
97
|
-
throw new Error("-- URI must be empty --");
|
98
|
-
const irysConfig = this.networkConfig.endpoint.includes(config_1.NetworkType.MAINNET)
|
99
|
-
? {
|
100
|
-
arweave_rpc: "https://node2.irys.xyz",
|
101
|
-
rpc: "https://api.mainnet-beta.solana.com",
|
102
|
-
network: "mainnet",
|
103
|
-
}
|
104
|
-
: {};
|
105
|
-
const irys = await (0, irys_1.init)(payer.publicKey.toBase58(), irysConfig);
|
106
|
-
const uuid = "random_uuid_per_upload_session";
|
107
|
-
const { instruction, signerIrys, metadataUrl } = await (0, uploadFilesIryis_1.uploadFilesIrysInstruction)(irysData.options, irys, uuid);
|
108
|
-
instructions.push(instruction);
|
109
|
-
signers.push(signerIrys);
|
110
|
-
const mint = web3_js_1.Keypair.generate();
|
111
|
-
const connection = this.connection;
|
112
|
-
const updateAuthority = payer.publicKey;
|
113
|
-
collectionDetails = collectionDetails || null;
|
114
|
-
const mintRent = await connection.getMinimumBalanceForRentExemption(spl_token_1.MintLayout.span);
|
115
|
-
instructions.push(web3_js_1.SystemProgram.createAccount({
|
116
|
-
fromPubkey: payer.publicKey,
|
117
|
-
newAccountPubkey: mint.publicKey,
|
118
|
-
lamports: mintRent,
|
119
|
-
space: spl_token_1.MintLayout.span,
|
120
|
-
programId: programId_1.TOKEN_PROGRAM_ID,
|
121
|
-
}));
|
122
|
-
const owner = payer.publicKey;
|
123
|
-
const freezeAuthority = owner;
|
124
|
-
instructions.push((0, spl_token_1.createInitializeMintInstruction)(mint.publicKey, //mint
|
125
|
-
0, //decimals
|
126
|
-
owner, //mintAuthority
|
127
|
-
freezeAuthority, //freezeAuthority
|
128
|
-
programId_1.TOKEN_PROGRAM_ID));
|
129
|
-
signers.push(mint);
|
130
|
-
const ownerATA = await (0, PdaManager_1.getATAPDA)({ owner, mint: mint.publicKey });
|
131
|
-
instructions.push((0, spl_token_1.createAssociatedTokenAccountInstruction)(payer.publicKey, ownerATA, //associatedTokenAddress
|
132
|
-
owner, //walletAddress
|
133
|
-
mint.publicKey));
|
134
|
-
const metadataAccount = await (0, PdaManager_1.getMetadataPDA)(mint.publicKey);
|
135
|
-
const create_accounts = {
|
136
|
-
metadata: metadataAccount,
|
137
|
-
mint: mint.publicKey,
|
138
|
-
mintAuthority: payer.publicKey,
|
139
|
-
payer: payer.publicKey,
|
140
|
-
updateAuthority,
|
141
|
-
};
|
142
|
-
const metadataObj = { ...metadata, uri: metadataUrl };
|
143
|
-
console.log("metatadaobj: ", metadataObj);
|
144
|
-
const create_args = {
|
145
|
-
createMetadataAccountArgsV3: {
|
146
|
-
data: metadataObj,
|
147
|
-
isMutable: mutable === false ? false : true,
|
148
|
-
collectionDetails,
|
149
|
-
},
|
150
|
-
};
|
151
|
-
instructions.push((0, mpl_token_metadata_1.createCreateMetadataAccountV3Instruction)(create_accounts, create_args));
|
152
|
-
instructions.push((0, spl_token_1.createMintToInstruction)(mint.publicKey, ownerATA, owner /*authority*/, 1, []));
|
153
|
-
const supplies = {
|
154
|
-
maxSupply: supply || supply === 0 ? new bn_js_1.default(supply) : null,
|
155
|
-
};
|
156
|
-
const [editionAccount] = await (0, PdaManager_1.getEditionPDA)(mint.publicKey, false);
|
157
|
-
const accounts = {
|
158
|
-
edition: editionAccount,
|
159
|
-
mint: mint.publicKey,
|
160
|
-
updateAuthority,
|
161
|
-
mintAuthority: owner,
|
162
|
-
payer: payer.publicKey,
|
163
|
-
metadata: metadataAccount,
|
164
|
-
};
|
165
|
-
const args = { createMasterEditionArgs: { ...supplies } };
|
166
|
-
instructions.push((0, mpl_token_metadata_1.createCreateMasterEditionV3Instruction)(accounts, args));
|
167
|
-
const transaction = new web3_js_1.Transaction().add(...instructions);
|
168
|
-
const sendedconfirmedTransaction = await (0, web3_js_1.sendAndConfirmTransaction)(this.connection, transaction, signers);
|
169
|
-
const { errors, succeeds } = await irys?.uploadFiles({
|
170
|
-
uuid,
|
171
|
-
signature: sendedconfirmedTransaction,
|
172
|
-
});
|
173
|
-
return sendedconfirmedTransaction;
|
174
|
-
}
|
175
|
-
catch (error) {
|
176
|
-
if (error instanceof validation_1.ValidationError) {
|
177
|
-
throw error;
|
178
|
-
}
|
179
|
-
throw new Error(`Failed to create collection: ${error}`);
|
180
|
-
}
|
181
|
-
}
|
182
|
-
async createSingleEdition(payer, storeAccount, supply, metadata, saleConfig, category, superCategory, eventCategory, hashTraits, collection, irysData) {
|
183
|
-
const identifier = Math.floor(Math.random() * 1000000);
|
184
|
-
const creator = payer.publicKey;
|
185
|
-
if (!payer || !payer.publicKey) {
|
186
|
-
throw new validation_1.ValidationError("Invalid payer");
|
187
|
-
}
|
188
|
-
if (!storeAccount) {
|
189
|
-
throw new validation_1.ValidationError("Store account is required");
|
190
|
-
}
|
191
|
-
(0, validation_1.validateSupply)(supply);
|
192
|
-
(0, validation_1.validateMetadata)(metadata);
|
193
|
-
(0, validation_1.validateSaleConfig)(saleConfig);
|
194
|
-
(0, validation_1.validateIdentifier)(identifier);
|
195
|
-
try {
|
196
|
-
const irysConfig = this.networkConfig.endpoint.includes(config_1.NetworkType.MAINNET)
|
197
|
-
? {
|
198
|
-
arweave_rpc: "https://node2.irys.xyz",
|
199
|
-
rpc: "https://api.mainnet-beta.solana.com",
|
200
|
-
network: "mainnet",
|
201
|
-
}
|
202
|
-
: {};
|
203
|
-
const irys = await (0, irys_1.init)(payer.publicKey.toBase58(), irysConfig);
|
204
|
-
const uuid = "random_uuid_per_upload_session";
|
205
|
-
const [itemAccount] = await (0, PdaManager_1.itemAccountPDA)({
|
206
|
-
creator: creator,
|
207
|
-
store: storeAccount,
|
208
|
-
identifier: new bn_js_1.default(identifier),
|
209
|
-
});
|
210
|
-
const [creatorAuthority] = await (0, PdaManager_1.creatorAuthorityPDA)({
|
211
|
-
creator: payer.publicKey,
|
212
|
-
store: storeAccount,
|
213
|
-
});
|
214
|
-
let instructions = [];
|
215
|
-
let signers = [payer];
|
216
|
-
const { instruction, signerIrys, metadataUrl } = await (0, uploadFilesIryis_1.uploadFilesIrysInstruction)(irysData.options, irys, uuid);
|
217
|
-
instructions.push(instruction);
|
218
|
-
signers.push(signerIrys);
|
219
|
-
const collection_mint = (0, PdaManager_1.toPublicKey)(collection);
|
220
|
-
const new_authority = creatorAuthority;
|
221
|
-
const [authRecord] = await (0, PdaManager_1.collectionAuthorityRecord)({
|
222
|
-
mint: collection_mint,
|
223
|
-
new_authority: new_authority,
|
224
|
-
});
|
225
|
-
let collection_permission = false;
|
226
|
-
try {
|
227
|
-
const res = await this.connection.getAccountInfo(authRecord);
|
228
|
-
if (res)
|
229
|
-
collection_permission = true;
|
230
|
-
}
|
231
|
-
catch (e) {
|
232
|
-
collection_permission = false;
|
233
|
-
}
|
234
|
-
if (!collection_permission) {
|
235
|
-
const metadataPda = await (0, PdaManager_1.getMetadataPDA)(collection_mint);
|
236
|
-
const accounts = {
|
237
|
-
collectionAuthorityRecord: authRecord,
|
238
|
-
newCollectionAuthority: new_authority,
|
239
|
-
updateAuthority: payer.publicKey,
|
240
|
-
payer: payer.publicKey,
|
241
|
-
metadata: metadataPda,
|
242
|
-
mint: collection_mint,
|
243
|
-
};
|
244
|
-
const approveInstruction = (0, mpl_token_metadata_2.createApproveCollectionAuthorityInstruction)(accounts);
|
245
|
-
instructions.push(approveInstruction);
|
246
|
-
// signers.push(new_authority)
|
247
|
-
}
|
248
|
-
console.log("metadataurl: ", metadataUrl);
|
249
|
-
const meta = {
|
250
|
-
name: metadata.name,
|
251
|
-
uri: metadataUrl ? metadataUrl.split(".net/")[1] : "",
|
252
|
-
uriType: 1,
|
253
|
-
sellerFeeBasisPoints: metadata.sellerFeeBasisPoints,
|
254
|
-
collection: metadata.collection,
|
255
|
-
creators: metadata.creators,
|
256
|
-
toJSON: function () {
|
257
|
-
throw new Error("Function not implemented.");
|
258
|
-
},
|
259
|
-
toEncodable: function () {
|
260
|
-
throw new Error("Function not implemented.");
|
261
|
-
},
|
262
|
-
};
|
263
|
-
console.log("meta: ", meta);
|
264
|
-
const instructionSing = (0, createSingleEdition_1.createSingleEditionInstruction)(storeAccount, itemAccount, creatorAuthority, programId_1.PROGRAM_ID, payer.publicKey, payer.publicKey, supply, meta, saleConfig, identifier, category, superCategory, eventCategory, hashTraits);
|
265
|
-
instructions.push(instructionSing);
|
266
|
-
const [userActivity, userActivityBump] = await (0, PdaManager_1.userActivityPDA)({
|
267
|
-
user: creator,
|
268
|
-
store: storeAccount,
|
269
|
-
});
|
270
|
-
const [creatorRegistry] = await (0, PdaManager_1.creatorRegistryPDA)({
|
271
|
-
user: creator,
|
272
|
-
store: storeAccount,
|
273
|
-
currency: (0, PdaManager_1.toPublicKey)(programId_1.PROGRAM_CNFT),
|
274
|
-
});
|
275
|
-
const registerIX = (0, registerCreator_1.registerCreator)({
|
276
|
-
userActivityBump: userActivityBump,
|
277
|
-
}, {
|
278
|
-
creatorRegistry,
|
279
|
-
userActivity,
|
280
|
-
itemAccount,
|
281
|
-
store: storeAccount,
|
282
|
-
payer: payer.publicKey,
|
283
|
-
systemProgram: web3_js_1.SystemProgram.programId,
|
284
|
-
});
|
285
|
-
instructions.push(registerIX);
|
286
|
-
const transaction = new web3_js_1.Transaction().add(...instructions);
|
287
|
-
const sendedconfirmedTransaction = await (0, web3_js_1.sendAndConfirmTransaction)(this.connection, transaction, signers);
|
288
|
-
const { errors, succeeds } = await irys?.uploadFiles({
|
289
|
-
uuid,
|
290
|
-
signature: sendedconfirmedTransaction,
|
291
|
-
});
|
292
|
-
return sendedconfirmedTransaction;
|
293
|
-
}
|
294
|
-
catch (error) {
|
295
|
-
if (error instanceof validation_1.ValidationError) {
|
296
|
-
throw error;
|
297
|
-
}
|
298
|
-
throw new Error(`Failed to create single edition: ${error}`);
|
299
|
-
}
|
300
|
-
}
|
301
|
-
async buySingleEdition(payer, distributionBumps, itemAddress, extraAccounts = extraAccount, globalStoreAccount = programId_1.DEVNET_PROGRAM_ID, packAccount = programId_1.PROGRAM_CNFT, burnProgress = programId_1.PROGRAM_CNFT, poolVault = programId_1.PROGRAM_CNFT) {
|
302
|
-
try {
|
303
|
-
const owner = payer.publicKey;
|
304
|
-
//const storedata = await this.connection.getAccountInfo(itemAddress);
|
305
|
-
const single = await accounts_1.Single.fetch(this.connection, itemAddress, programId_1.PROGRAM_ID);
|
306
|
-
const identifier = parseInt(single?.identifier?.toString() || "none");
|
307
|
-
const creator = single?.creator;
|
308
|
-
const storeAccount = single?.holder;
|
309
|
-
const collectionAddress = single?.item?.metadata?.collection;
|
310
|
-
(0, validation_1.validateIdentifier)(identifier);
|
311
|
-
if (!creator)
|
312
|
-
throw new Error("Missing creator...");
|
313
|
-
if (!storeAccount)
|
314
|
-
throw new Error("Missing creator...");
|
315
|
-
if (!collectionAddress)
|
316
|
-
throw new Error("Missing collection...");
|
317
|
-
(0, validation_1.validateBuySingleArgs)(payer, packAccount, burnProgress, owner, distributionBumps, globalStoreAccount, extraAccounts, collectionAddress.key, storeAccount, creator);
|
318
|
-
const [itemAccount] = await (0, PdaManager_1.itemAccountPDA)({
|
319
|
-
creator: creator,
|
320
|
-
store: storeAccount,
|
321
|
-
identifier: new bn_js_1.default(identifier),
|
322
|
-
});
|
323
|
-
const [paymentAccount] = await (0, PdaManager_1.buyPaymentPDA)({
|
324
|
-
owner: owner,
|
325
|
-
itemAccount,
|
326
|
-
});
|
327
|
-
const holderAccount = storeAccount;
|
328
|
-
let instructions = [];
|
329
|
-
const instruction = await (0, buySingleEdition_1.buySingleEditionInstruction)(paymentAccount, itemAccount, packAccount, burnProgress, poolVault, holderAccount, owner, payer.publicKey, distributionBumps, {}, storeAccount, globalStoreAccount, identifier, extraAccounts, creator, collectionAddress.key, this.connection);
|
330
|
-
instructions.push(...instruction);
|
331
|
-
const [userActivity, userActivityBump] = await (0, PdaManager_1.userActivityPDA)({
|
332
|
-
user: payer.publicKey,
|
333
|
-
store: storeAccount,
|
334
|
-
});
|
335
|
-
const [collectorRegistry] = await (0, PdaManager_1.collectorArtistRegistryPDA)({
|
336
|
-
user: payer.publicKey,
|
337
|
-
artist: creator,
|
338
|
-
store: storeAccount,
|
339
|
-
currency: (0, PdaManager_1.toPublicKey)(programId_1.PROGRAM_CNFT),
|
340
|
-
});
|
341
|
-
const [creatorRegistry, creatorBump] = await (0, PdaManager_1.creatorRegistryPDA)({
|
342
|
-
user: creator,
|
343
|
-
currency: (0, PdaManager_1.toPublicKey)(programId_1.PROGRAM_CNFT),
|
344
|
-
store: storeAccount,
|
345
|
-
});
|
346
|
-
const [collectorGlobalRegistry] = await (0, PdaManager_1.collectorGlobalRegistryPDA)({
|
347
|
-
user: payer.publicKey,
|
348
|
-
currency: (0, PdaManager_1.toPublicKey)(programId_1.PROGRAM_CNFT),
|
349
|
-
store: storeAccount,
|
350
|
-
});
|
351
|
-
const registerIX = (0, instructions_1.registerCollector)({
|
352
|
-
creatorBump: creatorBump,
|
353
|
-
activityBump: userActivityBump,
|
354
|
-
}, {
|
355
|
-
collectorArtistRegistry: collectorRegistry,
|
356
|
-
collectorGlobalRegistry: collectorGlobalRegistry,
|
357
|
-
userActivity: userActivity,
|
358
|
-
creatorRegistry: creatorRegistry,
|
359
|
-
store: storeAccount,
|
360
|
-
payer: payer.publicKey,
|
361
|
-
systemProgram: web3_js_1.SystemProgram.programId,
|
362
|
-
});
|
363
|
-
instructions.push(registerIX);
|
364
|
-
const transaction = new web3_js_1.Transaction().add(...instructions);
|
365
|
-
console.log("transaction: ", payer.publicKey);
|
366
|
-
return (0, web3_js_1.sendAndConfirmTransaction)(this.connection, transaction, [payer]);
|
367
|
-
}
|
368
|
-
catch (error) {
|
369
|
-
if (error instanceof validation_1.ValidationError) {
|
370
|
-
throw error;
|
371
|
-
}
|
372
|
-
throw new Error(`Failed to buy single edition: ${error}`);
|
373
|
-
}
|
374
|
-
}
|
375
|
-
}
|
376
|
-
exports.Store = Store;
|
377
|
-
//# sourceMappingURL=Store.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Store.js","sourceRoot":"","sources":["../../src/library/Store.ts"],"names":[],"mappings":";;;;;;AAAA,6CASyB;AACzB,gFAIiD;AAEjD,iDAK2B;AAC3B,sDAAsD;AACtD,kEAA0E;AAC1E,kFAA0F;AAC1F,4EAAoF;AACpF,0CAMwB;AAslBf,4FA3lBP,mBAAW,OA2lBO;AAAE,6FA1lBpB,oBAAY,OA0lBoB;AAAE,2FAzlBlC,kBAAU,OAylBkC;AArlB9C,sDAe+B;AAC/B,gDAAkD;AAClD,kDA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U,EAAE,WAAW,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;QAC1E,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,KAAK,YAAY,4BAAe,EAAE,CAAC;gBACrC,MAAM,KAAK,CAAC;YACd,CAAC;YACD,MAAM,IAAI,KAAK,CAAC,iCAAiC,KAAK,EAAE,CAAC,CAAC;QAC5D,CAAC;IACH,CAAC;CACF;AA1hBD,sBA0hBC"}
|
@@ -1,20 +0,0 @@
|
|
1
|
-
import { CreateCollectionOptions, CreateSingleOptions, CreateStoreParams, StoreInitOptions } from "../../types/implementation/implementationTypes";
|
2
|
-
declare function createStoreImp(options: StoreInitOptions, storeSetup: CreateStoreParams): Promise<{
|
3
|
-
transactionId: string;
|
4
|
-
payerPublicKey: string;
|
5
|
-
}>;
|
6
|
-
declare function createCollectionImp(options: StoreInitOptions, collectionOpts: CreateCollectionOptions): Promise<string | {
|
7
|
-
success: boolean;
|
8
|
-
error: unknown;
|
9
|
-
}>;
|
10
|
-
declare function createSingleImp(options: StoreInitOptions, storeAccount: string, collectionAccount: string, createOptions: CreateSingleOptions): Promise<{
|
11
|
-
transactionId: string;
|
12
|
-
payerPublicKey: string;
|
13
|
-
}>;
|
14
|
-
declare function buySingleImp(options: StoreInitOptions, item: string): Promise<{
|
15
|
-
transactionId: string;
|
16
|
-
ownerPublicKey: string;
|
17
|
-
}>;
|
18
|
-
declare function handleError(error: unknown): void;
|
19
|
-
export { createStoreImp, createCollectionImp, createSingleImp, buySingleImp, handleError, };
|
20
|
-
//# sourceMappingURL=storeImplementation.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"storeImplementation.d.ts","sourceRoot":"","sources":["../../../src/library/implementation/storeImplementation.ts"],"names":[],"mappings":"AAqBA,OAAO,EACL,uBAAuB,EACvB,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EACjB,MAAM,gDAAgD,CAAC;AA2CxD,iBAAe,cAAc,CAC3B,OAAO,EAAE,gBAAgB,EACzB,UAAU,EAAE,iBAAiB;;;GAiC9B;AAED,iBAAe,mBAAmB,CAChC,OAAO,EAAE,gBAAgB,EACzB,cAAc,EAAE,uBAAuB;;;GAiIxC;AAED,iBAAe,eAAe,CAC5B,OAAO,EAAE,gBAAgB,EACzB,YAAY,EAAE,MAAM,EACpB,iBAAiB,EAAE,MAAM,EACzB,aAAa,EAAE,mBAAmB;;;GAiLnC;AAED,iBAAe,YAAY,CAAC,OAAO,EAAE,gBAAgB,EAAE,IAAI,EAAE,MAAM;;;GAoBlE;AAED,iBAAS,WAAW,CAAC,KAAK,EAAE,OAAO,QAOlC;AAED,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,eAAe,EACf,YAAY,EACZ,WAAW,GACZ,CAAC"}
|