3land_sdk 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +352 -0
- package/assets/3land_rebrand.gif +0 -0
- package/assets/battle_sol.gif +0 -0
- package/assets/ds.jpeg +0 -0
- package/assets/future.webp +0 -0
- package/assets/music.mp3 +0 -0
- package/assets/niicl.gif +0 -0
- package/assets/og.png +0 -0
- package/assets/phone.glb +0 -0
- package/assets/testvid.mp4 +0 -0
- package/idl.json +7652 -0
- package/package.json +35 -0
- package/src/index.ts +89 -0
- package/src/library/Irys/irys.ts +412 -0
- package/src/library/Store.ts +613 -0
- package/src/library/implementation/storeImplementation.ts +385 -0
- package/src/library/instructions/store/buySingleEdition.ts +227 -0
- package/src/library/instructions/store/createSingleEdition.ts +49 -0
- package/src/library/instructions/store/createStore.ts +19 -0
- package/src/library/instructions/store/idl.ts +7622 -0
- package/src/library/instructions/store/uploadFilesIryis.ts +133 -0
- package/src/types/accounts/ArchiveDeposit.ts +207 -0
- package/src/types/accounts/Authority.ts +73 -0
- package/src/types/accounts/BurnDeposit.ts +111 -0
- package/src/types/accounts/BurnProgress.ts +97 -0
- package/src/types/accounts/BuyHistory.ts +121 -0
- package/src/types/accounts/BuyTrack.ts +94 -0
- package/src/types/accounts/Card.ts +185 -0
- package/src/types/accounts/CollectionRegistry.ts +145 -0
- package/src/types/accounts/CollectorRegistry.ts +145 -0
- package/src/types/accounts/CreatorRegistry.ts +153 -0
- package/src/types/accounts/CurrencyArtistProof.ts +113 -0
- package/src/types/accounts/GenericUser.ts +185 -0
- package/src/types/accounts/ItemArchive.ts +223 -0
- package/src/types/accounts/ItemReserveList.ts +87 -0
- package/src/types/accounts/ItemReserveList2.ts +73 -0
- package/src/types/accounts/LutVault.ts +97 -0
- package/src/types/accounts/Pack.ts +367 -0
- package/src/types/accounts/PackContent.ts +97 -0
- package/src/types/accounts/PackOpenHolder.ts +141 -0
- package/src/types/accounts/PackReceipt.ts +145 -0
- package/src/types/accounts/PackTraits.ts +101 -0
- package/src/types/accounts/Payment.ts +97 -0
- package/src/types/accounts/PoolVault.ts +177 -0
- package/src/types/accounts/RevealForMe.ts +139 -0
- package/src/types/accounts/SecureHolder.ts +97 -0
- package/src/types/accounts/Single.ts +301 -0
- package/src/types/accounts/Store.ts +180 -0
- package/src/types/accounts/StoresHolder.ts +131 -0
- package/src/types/accounts/ThreeId.ts +189 -0
- package/src/types/accounts/TokenManager.ts +217 -0
- package/src/types/accounts/ZeroCard.ts +73 -0
- package/src/types/accounts/ZeroContent.ts +89 -0
- package/src/types/accounts/ZeroOpenHolder.ts +183 -0
- package/src/types/accounts/index.ts +84 -0
- package/src/types/errors/anchor.ts +773 -0
- package/src/types/errors/index.ts +59 -0
- package/src/types/implementation/implementationTypes.ts +27 -0
- package/src/types/instructions/addBurn.ts +56 -0
- package/src/types/instructions/adjustDepositBurn.ts +33 -0
- package/src/types/instructions/archiveItem.ts +60 -0
- package/src/types/instructions/assignPackDelegate.ts +30 -0
- package/src/types/instructions/burnPay.ts +55 -0
- package/src/types/instructions/buyPack.ts +69 -0
- package/src/types/instructions/buyPay.ts +71 -0
- package/src/types/instructions/buyToken.ts +64 -0
- package/src/types/instructions/claimZeroCard.ts +106 -0
- package/src/types/instructions/closeDepositBurn.ts +47 -0
- package/src/types/instructions/closeRegisterTraits.ts +28 -0
- package/src/types/instructions/createCard.ts +56 -0
- package/src/types/instructions/createCollection.ts +68 -0
- package/src/types/instructions/createPack.ts +71 -0
- package/src/types/instructions/createSingle.ts +71 -0
- package/src/types/instructions/createStore.ts +50 -0
- package/src/types/instructions/createTokenLauncher.ts +82 -0
- package/src/types/instructions/createZeroCard.ts +76 -0
- package/src/types/instructions/deleteCard.ts +32 -0
- package/src/types/instructions/deletePack.ts +40 -0
- package/src/types/instructions/deleteSingle.ts +36 -0
- package/src/types/instructions/deleteTokenLauncher.ts +38 -0
- package/src/types/instructions/depositBurn.ts +55 -0
- package/src/types/instructions/donateUser.ts +84 -0
- package/src/types/instructions/feedPool.ts +61 -0
- package/src/types/instructions/feedTraits.ts +44 -0
- package/src/types/instructions/feedTree.ts +63 -0
- package/src/types/instructions/flagPack.ts +50 -0
- package/src/types/instructions/flagSingle.ts +47 -0
- package/src/types/instructions/gatePay.ts +59 -0
- package/src/types/instructions/index.ts +140 -0
- package/src/types/instructions/initialize.ts +46 -0
- package/src/types/instructions/openPack.ts +79 -0
- package/src/types/instructions/prepareCreator.ts +30 -0
- package/src/types/instructions/preparePack.ts +51 -0
- package/src/types/instructions/prepareTraits.ts +28 -0
- package/src/types/instructions/printPack.ts +95 -0
- package/src/types/instructions/printSingle.ts +108 -0
- package/src/types/instructions/recoverDepositBurn.ts +80 -0
- package/src/types/instructions/registerActivity.ts +43 -0
- package/src/types/instructions/registerCollector.ts +63 -0
- package/src/types/instructions/registerCreator.ts +48 -0
- package/src/types/instructions/registerGenericUser.ts +94 -0
- package/src/types/instructions/registerPackUploads.ts +44 -0
- package/src/types/instructions/registerTraits.ts +42 -0
- package/src/types/instructions/registerUser.ts +50 -0
- package/src/types/instructions/storeLutFor.ts +44 -0
- package/src/types/instructions/unwrapAndDestroy.ts +56 -0
- package/src/types/instructions/updateCard.ts +54 -0
- package/src/types/instructions/updatePack.ts +71 -0
- package/src/types/instructions/updateSingle.ts +64 -0
- package/src/types/instructions/updateStore.ts +47 -0
- package/src/types/instructions/withdrawFromStore.ts +26 -0
- package/src/types/programId.ts +42 -0
- package/src/types/types/AccountClass.ts +868 -0
- package/src/types/types/AccountHasher.ts +89 -0
- package/src/types/types/ActionAfter.ts +202 -0
- package/src/types/types/AllowedCurrencyArgs.ts +53 -0
- package/src/types/types/AuthorityGateTypes.ts +90 -0
- package/src/types/types/BurnCount.ts +60 -0
- package/src/types/types/BurnState.ts +88 -0
- package/src/types/types/BurnTrack.ts +64 -0
- package/src/types/types/BurnType.ts +118 -0
- package/src/types/types/BurnTypeBurn.ts +56 -0
- package/src/types/types/BuyHistoryClass.ts +90 -0
- package/src/types/types/CardClass.ts +56 -0
- package/src/types/types/CardState.ts +238 -0
- package/src/types/types/CardTrack.ts +76 -0
- package/src/types/types/Category.ts +72 -0
- package/src/types/types/CnftData.ts +85 -0
- package/src/types/types/CollectTrack.ts +61 -0
- package/src/types/types/Collection.ts +64 -0
- package/src/types/types/CompactCnftData.ts +76 -0
- package/src/types/types/CoolTimePerAmountArgs.ts +72 -0
- package/src/types/types/Creator.ts +72 -0
- package/src/types/types/CreatorGateArgs.ts +53 -0
- package/src/types/types/CurrencyArtistProof.ts +85 -0
- package/src/types/types/CurrencyType.ts +259 -0
- package/src/types/types/DateTraitInit.ts +61 -0
- package/src/types/types/DateTraitInitMap.ts +72 -0
- package/src/types/types/Deposit.ts +85 -0
- package/src/types/types/DepositFormat.ts +90 -0
- package/src/types/types/DepositState.ts +88 -0
- package/src/types/types/DepositSubtype.ts +90 -0
- package/src/types/types/DepositTrack.ts +69 -0
- package/src/types/types/DepositTrackType.ts +120 -0
- package/src/types/types/DepositType.ts +245 -0
- package/src/types/types/Earnings.ts +37 -0
- package/src/types/types/EditionStoreType.ts +120 -0
- package/src/types/types/EncryptedPayload.ts +61 -0
- package/src/types/types/ExtraParameter.ts +117 -0
- package/src/types/types/FakeBurnCount.ts +64 -0
- package/src/types/types/FakeDeposit.ts +64 -0
- package/src/types/types/FakeTraitPair.ts +61 -0
- package/src/types/types/FakeTraitValue.ts +61 -0
- package/src/types/types/FakeVolumeTrack.ts +64 -0
- package/src/types/types/FeeType.ts +118 -0
- package/src/types/types/FeedingTraits.ts +57 -0
- package/src/types/types/Filter.ts +64 -0
- package/src/types/types/FilterType.ts +56 -0
- package/src/types/types/GeneralStore.ts +56 -0
- package/src/types/types/GenericStore.ts +64 -0
- package/src/types/types/GenericValue.ts +172 -0
- package/src/types/types/GlobalFee.ts +85 -0
- package/src/types/types/GlobalState.ts +148 -0
- package/src/types/types/IndexDate.ts +94 -0
- package/src/types/types/IndexDates.ts +64 -0
- package/src/types/types/Item.ts +53 -0
- package/src/types/types/ItemClass.ts +88 -0
- package/src/types/types/ItemState.ts +298 -0
- package/src/types/types/ItemTrack.ts +76 -0
- package/src/types/types/ListingPerWalletArgs.ts +53 -0
- package/src/types/types/MemeVaultProof.ts +64 -0
- package/src/types/types/MetadataArgs.ts +207 -0
- package/src/types/types/NonFungibleTraitInit.ts +64 -0
- package/src/types/types/NonFungibleTraitInitMap.ts +84 -0
- package/src/types/types/OnlyBetweenTimesArgs.ts +76 -0
- package/src/types/types/OnlyTheseDOWArgs.ts +53 -0
- package/src/types/types/PackConfig.ts +98 -0
- package/src/types/types/PackOpenHolderState.ts +120 -0
- package/src/types/types/PackRule.ts +85 -0
- package/src/types/types/PackState.ts +118 -0
- package/src/types/types/PackType.ts +118 -0
- package/src/types/types/PaymentClass.ts +118 -0
- package/src/types/types/PoolAccess.ts +88 -0
- package/src/types/types/PoolState.ts +88 -0
- package/src/types/types/PoolType.ts +88 -0
- package/src/types/types/Popularity.ts +76 -0
- package/src/types/types/PopularityState.ts +630 -0
- package/src/types/types/PreviousDonationRecord.ts +76 -0
- package/src/types/types/Price.ts +64 -0
- package/src/types/types/PriceRule.ts +216 -0
- package/src/types/types/RecoverDeposit.ts +56 -0
- package/src/types/types/Rule.ts +199 -0
- package/src/types/types/SaleConfig.ts +102 -0
- package/src/types/types/SaleTrack.ts +85 -0
- package/src/types/types/SaleType.ts +148 -0
- package/src/types/types/Seed.ts +61 -0
- package/src/types/types/SelectedCard.ts +61 -0
- package/src/types/types/SelectedZeroCard.ts +61 -0
- package/src/types/types/SemiFungibleTraitInit.ts +61 -0
- package/src/types/types/SemiFungibleTraitInitMap.ts +72 -0
- package/src/types/types/ShortCreator.ts +64 -0
- package/src/types/types/ShortMetadata.ts +145 -0
- package/src/types/types/ShortMetadataArgs.ts +111 -0
- package/src/types/types/StoreConfig.ts +98 -0
- package/src/types/types/StoreRule.ts +145 -0
- package/src/types/types/SuperCategory.ts +61 -0
- package/src/types/types/TightCardMetadata.ts +120 -0
- package/src/types/types/TimeRangeType.ts +120 -0
- package/src/types/types/TimedPerWalletArgs.ts +53 -0
- package/src/types/types/TokenMetadata.ts +72 -0
- package/src/types/types/TokenProgramVersion.ts +90 -0
- package/src/types/types/TokenStandard.ts +150 -0
- package/src/types/types/TokenState.ts +88 -0
- package/src/types/types/TokenType.ts +88 -0
- package/src/types/types/TotalPerTimeArgs.ts +85 -0
- package/src/types/types/TotalPerTimeWalletArgs.ts +61 -0
- package/src/types/types/TrackRegistry.ts +90 -0
- package/src/types/types/TraitInit.ts +210 -0
- package/src/types/types/TraitPass.ts +60 -0
- package/src/types/types/TraitPassType.ts +225 -0
- package/src/types/types/TraitType.ts +267 -0
- package/src/types/types/TraitValue.ts +72 -0
- package/src/types/types/UnlocksAfter.ts +172 -0
- package/src/types/types/UnwrapMetadata.ts +156 -0
- package/src/types/types/UseMethod.ts +118 -0
- package/src/types/types/Uses.ts +76 -0
- package/src/types/types/VerifyCollectionMetadata.ts +109 -0
- package/src/types/types/VolumeTrack.ts +61 -0
- package/src/types/types/WrappedSource.ts +85 -0
- package/src/types/types/ZeroConfig.ts +85 -0
- package/src/types/types/index.ts +798 -0
- package/src/utility/Connection.ts +9 -0
- package/src/utility/Holders.ts +8 -0
- package/src/utility/PdaManager.ts +230 -0
- package/src/utility/config.ts +32 -0
- package/src/utility/utils.ts +191 -0
- package/src/utility/validation.ts +229 -0
- package/tsconfig.json +12 -0
@@ -0,0 +1,868 @@
|
|
1
|
+
import { PublicKey } from "@solana/web3.js" // eslint-disable-line @typescript-eslint/no-unused-vars
|
2
|
+
import BN from "bn.js" // eslint-disable-line @typescript-eslint/no-unused-vars
|
3
|
+
import * as types from "../types" // eslint-disable-line @typescript-eslint/no-unused-vars
|
4
|
+
import * as borsh from "@coral-xyz/borsh"
|
5
|
+
|
6
|
+
export interface HolderV1JSON {
|
7
|
+
kind: "HolderV1"
|
8
|
+
}
|
9
|
+
|
10
|
+
export class HolderV1 {
|
11
|
+
static readonly discriminator = 0
|
12
|
+
static readonly kind = "HolderV1"
|
13
|
+
readonly discriminator = 0
|
14
|
+
readonly kind = "HolderV1"
|
15
|
+
|
16
|
+
toJSON(): HolderV1JSON {
|
17
|
+
return {
|
18
|
+
kind: "HolderV1",
|
19
|
+
}
|
20
|
+
}
|
21
|
+
|
22
|
+
toEncodable() {
|
23
|
+
return {
|
24
|
+
HolderV1: {},
|
25
|
+
}
|
26
|
+
}
|
27
|
+
}
|
28
|
+
|
29
|
+
export interface StoreV1JSON {
|
30
|
+
kind: "StoreV1"
|
31
|
+
}
|
32
|
+
|
33
|
+
export class StoreV1 {
|
34
|
+
static readonly discriminator = 1
|
35
|
+
static readonly kind = "StoreV1"
|
36
|
+
readonly discriminator = 1
|
37
|
+
readonly kind = "StoreV1"
|
38
|
+
|
39
|
+
toJSON(): StoreV1JSON {
|
40
|
+
return {
|
41
|
+
kind: "StoreV1",
|
42
|
+
}
|
43
|
+
}
|
44
|
+
|
45
|
+
toEncodable() {
|
46
|
+
return {
|
47
|
+
StoreV1: {},
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
51
|
+
|
52
|
+
export interface SingleV1JSON {
|
53
|
+
kind: "SingleV1"
|
54
|
+
}
|
55
|
+
|
56
|
+
export class SingleV1 {
|
57
|
+
static readonly discriminator = 2
|
58
|
+
static readonly kind = "SingleV1"
|
59
|
+
readonly discriminator = 2
|
60
|
+
readonly kind = "SingleV1"
|
61
|
+
|
62
|
+
toJSON(): SingleV1JSON {
|
63
|
+
return {
|
64
|
+
kind: "SingleV1",
|
65
|
+
}
|
66
|
+
}
|
67
|
+
|
68
|
+
toEncodable() {
|
69
|
+
return {
|
70
|
+
SingleV1: {},
|
71
|
+
}
|
72
|
+
}
|
73
|
+
}
|
74
|
+
|
75
|
+
export interface PackV1JSON {
|
76
|
+
kind: "PackV1"
|
77
|
+
}
|
78
|
+
|
79
|
+
export class PackV1 {
|
80
|
+
static readonly discriminator = 3
|
81
|
+
static readonly kind = "PackV1"
|
82
|
+
readonly discriminator = 3
|
83
|
+
readonly kind = "PackV1"
|
84
|
+
|
85
|
+
toJSON(): PackV1JSON {
|
86
|
+
return {
|
87
|
+
kind: "PackV1",
|
88
|
+
}
|
89
|
+
}
|
90
|
+
|
91
|
+
toEncodable() {
|
92
|
+
return {
|
93
|
+
PackV1: {},
|
94
|
+
}
|
95
|
+
}
|
96
|
+
}
|
97
|
+
|
98
|
+
export interface CardV1JSON {
|
99
|
+
kind: "CardV1"
|
100
|
+
}
|
101
|
+
|
102
|
+
export class CardV1 {
|
103
|
+
static readonly discriminator = 4
|
104
|
+
static readonly kind = "CardV1"
|
105
|
+
readonly discriminator = 4
|
106
|
+
readonly kind = "CardV1"
|
107
|
+
|
108
|
+
toJSON(): CardV1JSON {
|
109
|
+
return {
|
110
|
+
kind: "CardV1",
|
111
|
+
}
|
112
|
+
}
|
113
|
+
|
114
|
+
toEncodable() {
|
115
|
+
return {
|
116
|
+
CardV1: {},
|
117
|
+
}
|
118
|
+
}
|
119
|
+
}
|
120
|
+
|
121
|
+
export interface PackReceiptV1JSON {
|
122
|
+
kind: "PackReceiptV1"
|
123
|
+
}
|
124
|
+
|
125
|
+
export class PackReceiptV1 {
|
126
|
+
static readonly discriminator = 5
|
127
|
+
static readonly kind = "PackReceiptV1"
|
128
|
+
readonly discriminator = 5
|
129
|
+
readonly kind = "PackReceiptV1"
|
130
|
+
|
131
|
+
toJSON(): PackReceiptV1JSON {
|
132
|
+
return {
|
133
|
+
kind: "PackReceiptV1",
|
134
|
+
}
|
135
|
+
}
|
136
|
+
|
137
|
+
toEncodable() {
|
138
|
+
return {
|
139
|
+
PackReceiptV1: {},
|
140
|
+
}
|
141
|
+
}
|
142
|
+
}
|
143
|
+
|
144
|
+
export interface PackContentV1JSON {
|
145
|
+
kind: "PackContentV1"
|
146
|
+
}
|
147
|
+
|
148
|
+
export class PackContentV1 {
|
149
|
+
static readonly discriminator = 6
|
150
|
+
static readonly kind = "PackContentV1"
|
151
|
+
readonly discriminator = 6
|
152
|
+
readonly kind = "PackContentV1"
|
153
|
+
|
154
|
+
toJSON(): PackContentV1JSON {
|
155
|
+
return {
|
156
|
+
kind: "PackContentV1",
|
157
|
+
}
|
158
|
+
}
|
159
|
+
|
160
|
+
toEncodable() {
|
161
|
+
return {
|
162
|
+
PackContentV1: {},
|
163
|
+
}
|
164
|
+
}
|
165
|
+
}
|
166
|
+
|
167
|
+
export interface PackOpenHolderV1JSON {
|
168
|
+
kind: "PackOpenHolderV1"
|
169
|
+
}
|
170
|
+
|
171
|
+
export class PackOpenHolderV1 {
|
172
|
+
static readonly discriminator = 7
|
173
|
+
static readonly kind = "PackOpenHolderV1"
|
174
|
+
readonly discriminator = 7
|
175
|
+
readonly kind = "PackOpenHolderV1"
|
176
|
+
|
177
|
+
toJSON(): PackOpenHolderV1JSON {
|
178
|
+
return {
|
179
|
+
kind: "PackOpenHolderV1",
|
180
|
+
}
|
181
|
+
}
|
182
|
+
|
183
|
+
toEncodable() {
|
184
|
+
return {
|
185
|
+
PackOpenHolderV1: {},
|
186
|
+
}
|
187
|
+
}
|
188
|
+
}
|
189
|
+
|
190
|
+
export interface BuyTrackV1JSON {
|
191
|
+
kind: "BuyTrackV1"
|
192
|
+
}
|
193
|
+
|
194
|
+
export class BuyTrackV1 {
|
195
|
+
static readonly discriminator = 8
|
196
|
+
static readonly kind = "BuyTrackV1"
|
197
|
+
readonly discriminator = 8
|
198
|
+
readonly kind = "BuyTrackV1"
|
199
|
+
|
200
|
+
toJSON(): BuyTrackV1JSON {
|
201
|
+
return {
|
202
|
+
kind: "BuyTrackV1",
|
203
|
+
}
|
204
|
+
}
|
205
|
+
|
206
|
+
toEncodable() {
|
207
|
+
return {
|
208
|
+
BuyTrackV1: {},
|
209
|
+
}
|
210
|
+
}
|
211
|
+
}
|
212
|
+
|
213
|
+
export interface SingleArchiveV1JSON {
|
214
|
+
kind: "SingleArchiveV1"
|
215
|
+
}
|
216
|
+
|
217
|
+
export class SingleArchiveV1 {
|
218
|
+
static readonly discriminator = 9
|
219
|
+
static readonly kind = "SingleArchiveV1"
|
220
|
+
readonly discriminator = 9
|
221
|
+
readonly kind = "SingleArchiveV1"
|
222
|
+
|
223
|
+
toJSON(): SingleArchiveV1JSON {
|
224
|
+
return {
|
225
|
+
kind: "SingleArchiveV1",
|
226
|
+
}
|
227
|
+
}
|
228
|
+
|
229
|
+
toEncodable() {
|
230
|
+
return {
|
231
|
+
SingleArchiveV1: {},
|
232
|
+
}
|
233
|
+
}
|
234
|
+
}
|
235
|
+
|
236
|
+
export interface PackArchiveV1JSON {
|
237
|
+
kind: "PackArchiveV1"
|
238
|
+
}
|
239
|
+
|
240
|
+
export class PackArchiveV1 {
|
241
|
+
static readonly discriminator = 10
|
242
|
+
static readonly kind = "PackArchiveV1"
|
243
|
+
readonly discriminator = 10
|
244
|
+
readonly kind = "PackArchiveV1"
|
245
|
+
|
246
|
+
toJSON(): PackArchiveV1JSON {
|
247
|
+
return {
|
248
|
+
kind: "PackArchiveV1",
|
249
|
+
}
|
250
|
+
}
|
251
|
+
|
252
|
+
toEncodable() {
|
253
|
+
return {
|
254
|
+
PackArchiveV1: {},
|
255
|
+
}
|
256
|
+
}
|
257
|
+
}
|
258
|
+
|
259
|
+
export interface NoneJSON {
|
260
|
+
kind: "None"
|
261
|
+
}
|
262
|
+
|
263
|
+
export class None {
|
264
|
+
static readonly discriminator = 11
|
265
|
+
static readonly kind = "None"
|
266
|
+
readonly discriminator = 11
|
267
|
+
readonly kind = "None"
|
268
|
+
|
269
|
+
toJSON(): NoneJSON {
|
270
|
+
return {
|
271
|
+
kind: "None",
|
272
|
+
}
|
273
|
+
}
|
274
|
+
|
275
|
+
toEncodable() {
|
276
|
+
return {
|
277
|
+
None: {},
|
278
|
+
}
|
279
|
+
}
|
280
|
+
}
|
281
|
+
|
282
|
+
export interface CreatorRegistryV1JSON {
|
283
|
+
kind: "CreatorRegistryV1"
|
284
|
+
}
|
285
|
+
|
286
|
+
export class CreatorRegistryV1 {
|
287
|
+
static readonly discriminator = 12
|
288
|
+
static readonly kind = "CreatorRegistryV1"
|
289
|
+
readonly discriminator = 12
|
290
|
+
readonly kind = "CreatorRegistryV1"
|
291
|
+
|
292
|
+
toJSON(): CreatorRegistryV1JSON {
|
293
|
+
return {
|
294
|
+
kind: "CreatorRegistryV1",
|
295
|
+
}
|
296
|
+
}
|
297
|
+
|
298
|
+
toEncodable() {
|
299
|
+
return {
|
300
|
+
CreatorRegistryV1: {},
|
301
|
+
}
|
302
|
+
}
|
303
|
+
}
|
304
|
+
|
305
|
+
export interface CollectorGlobalRegistryV1JSON {
|
306
|
+
kind: "CollectorGlobalRegistryV1"
|
307
|
+
}
|
308
|
+
|
309
|
+
export class CollectorGlobalRegistryV1 {
|
310
|
+
static readonly discriminator = 13
|
311
|
+
static readonly kind = "CollectorGlobalRegistryV1"
|
312
|
+
readonly discriminator = 13
|
313
|
+
readonly kind = "CollectorGlobalRegistryV1"
|
314
|
+
|
315
|
+
toJSON(): CollectorGlobalRegistryV1JSON {
|
316
|
+
return {
|
317
|
+
kind: "CollectorGlobalRegistryV1",
|
318
|
+
}
|
319
|
+
}
|
320
|
+
|
321
|
+
toEncodable() {
|
322
|
+
return {
|
323
|
+
CollectorGlobalRegistryV1: {},
|
324
|
+
}
|
325
|
+
}
|
326
|
+
}
|
327
|
+
|
328
|
+
export interface CollectorArtistRegistryV1JSON {
|
329
|
+
kind: "CollectorArtistRegistryV1"
|
330
|
+
}
|
331
|
+
|
332
|
+
export class CollectorArtistRegistryV1 {
|
333
|
+
static readonly discriminator = 14
|
334
|
+
static readonly kind = "CollectorArtistRegistryV1"
|
335
|
+
readonly discriminator = 14
|
336
|
+
readonly kind = "CollectorArtistRegistryV1"
|
337
|
+
|
338
|
+
toJSON(): CollectorArtistRegistryV1JSON {
|
339
|
+
return {
|
340
|
+
kind: "CollectorArtistRegistryV1",
|
341
|
+
}
|
342
|
+
}
|
343
|
+
|
344
|
+
toEncodable() {
|
345
|
+
return {
|
346
|
+
CollectorArtistRegistryV1: {},
|
347
|
+
}
|
348
|
+
}
|
349
|
+
}
|
350
|
+
|
351
|
+
export interface PackTraitsV1JSON {
|
352
|
+
kind: "PackTraitsV1"
|
353
|
+
}
|
354
|
+
|
355
|
+
export class PackTraitsV1 {
|
356
|
+
static readonly discriminator = 15
|
357
|
+
static readonly kind = "PackTraitsV1"
|
358
|
+
readonly discriminator = 15
|
359
|
+
readonly kind = "PackTraitsV1"
|
360
|
+
|
361
|
+
toJSON(): PackTraitsV1JSON {
|
362
|
+
return {
|
363
|
+
kind: "PackTraitsV1",
|
364
|
+
}
|
365
|
+
}
|
366
|
+
|
367
|
+
toEncodable() {
|
368
|
+
return {
|
369
|
+
PackTraitsV1: {},
|
370
|
+
}
|
371
|
+
}
|
372
|
+
}
|
373
|
+
|
374
|
+
export interface PackUploadsV1JSON {
|
375
|
+
kind: "PackUploadsV1"
|
376
|
+
}
|
377
|
+
|
378
|
+
export class PackUploadsV1 {
|
379
|
+
static readonly discriminator = 16
|
380
|
+
static readonly kind = "PackUploadsV1"
|
381
|
+
readonly discriminator = 16
|
382
|
+
readonly kind = "PackUploadsV1"
|
383
|
+
|
384
|
+
toJSON(): PackUploadsV1JSON {
|
385
|
+
return {
|
386
|
+
kind: "PackUploadsV1",
|
387
|
+
}
|
388
|
+
}
|
389
|
+
|
390
|
+
toEncodable() {
|
391
|
+
return {
|
392
|
+
PackUploadsV1: {},
|
393
|
+
}
|
394
|
+
}
|
395
|
+
}
|
396
|
+
|
397
|
+
export interface ZeroOpenHolderV1JSON {
|
398
|
+
kind: "ZeroOpenHolderV1"
|
399
|
+
}
|
400
|
+
|
401
|
+
export class ZeroOpenHolderV1 {
|
402
|
+
static readonly discriminator = 17
|
403
|
+
static readonly kind = "ZeroOpenHolderV1"
|
404
|
+
readonly discriminator = 17
|
405
|
+
readonly kind = "ZeroOpenHolderV1"
|
406
|
+
|
407
|
+
toJSON(): ZeroOpenHolderV1JSON {
|
408
|
+
return {
|
409
|
+
kind: "ZeroOpenHolderV1",
|
410
|
+
}
|
411
|
+
}
|
412
|
+
|
413
|
+
toEncodable() {
|
414
|
+
return {
|
415
|
+
ZeroOpenHolderV1: {},
|
416
|
+
}
|
417
|
+
}
|
418
|
+
}
|
419
|
+
|
420
|
+
export interface BurnDepositV1JSON {
|
421
|
+
kind: "BurnDepositV1"
|
422
|
+
}
|
423
|
+
|
424
|
+
export class BurnDepositV1 {
|
425
|
+
static readonly discriminator = 18
|
426
|
+
static readonly kind = "BurnDepositV1"
|
427
|
+
readonly discriminator = 18
|
428
|
+
readonly kind = "BurnDepositV1"
|
429
|
+
|
430
|
+
toJSON(): BurnDepositV1JSON {
|
431
|
+
return {
|
432
|
+
kind: "BurnDepositV1",
|
433
|
+
}
|
434
|
+
}
|
435
|
+
|
436
|
+
toEncodable() {
|
437
|
+
return {
|
438
|
+
BurnDepositV1: {},
|
439
|
+
}
|
440
|
+
}
|
441
|
+
}
|
442
|
+
|
443
|
+
export interface GlobalBurnTrackV1JSON {
|
444
|
+
kind: "GlobalBurnTrackV1"
|
445
|
+
}
|
446
|
+
|
447
|
+
export class GlobalBurnTrackV1 {
|
448
|
+
static readonly discriminator = 19
|
449
|
+
static readonly kind = "GlobalBurnTrackV1"
|
450
|
+
readonly discriminator = 19
|
451
|
+
readonly kind = "GlobalBurnTrackV1"
|
452
|
+
|
453
|
+
toJSON(): GlobalBurnTrackV1JSON {
|
454
|
+
return {
|
455
|
+
kind: "GlobalBurnTrackV1",
|
456
|
+
}
|
457
|
+
}
|
458
|
+
|
459
|
+
toEncodable() {
|
460
|
+
return {
|
461
|
+
GlobalBurnTrackV1: {},
|
462
|
+
}
|
463
|
+
}
|
464
|
+
}
|
465
|
+
|
466
|
+
export interface ArtistBurnTrackV1JSON {
|
467
|
+
kind: "ArtistBurnTrackV1"
|
468
|
+
}
|
469
|
+
|
470
|
+
export class ArtistBurnTrackV1 {
|
471
|
+
static readonly discriminator = 20
|
472
|
+
static readonly kind = "ArtistBurnTrackV1"
|
473
|
+
readonly discriminator = 20
|
474
|
+
readonly kind = "ArtistBurnTrackV1"
|
475
|
+
|
476
|
+
toJSON(): ArtistBurnTrackV1JSON {
|
477
|
+
return {
|
478
|
+
kind: "ArtistBurnTrackV1",
|
479
|
+
}
|
480
|
+
}
|
481
|
+
|
482
|
+
toEncodable() {
|
483
|
+
return {
|
484
|
+
ArtistBurnTrackV1: {},
|
485
|
+
}
|
486
|
+
}
|
487
|
+
}
|
488
|
+
|
489
|
+
export interface SecureHolderV1JSON {
|
490
|
+
kind: "SecureHolderV1"
|
491
|
+
}
|
492
|
+
|
493
|
+
export class SecureHolderV1 {
|
494
|
+
static readonly discriminator = 21
|
495
|
+
static readonly kind = "SecureHolderV1"
|
496
|
+
readonly discriminator = 21
|
497
|
+
readonly kind = "SecureHolderV1"
|
498
|
+
|
499
|
+
toJSON(): SecureHolderV1JSON {
|
500
|
+
return {
|
501
|
+
kind: "SecureHolderV1",
|
502
|
+
}
|
503
|
+
}
|
504
|
+
|
505
|
+
toEncodable() {
|
506
|
+
return {
|
507
|
+
SecureHolderV1: {},
|
508
|
+
}
|
509
|
+
}
|
510
|
+
}
|
511
|
+
|
512
|
+
export interface RevealerForMeV1JSON {
|
513
|
+
kind: "RevealerForMeV1"
|
514
|
+
}
|
515
|
+
|
516
|
+
export class RevealerForMeV1 {
|
517
|
+
static readonly discriminator = 22
|
518
|
+
static readonly kind = "RevealerForMeV1"
|
519
|
+
readonly discriminator = 22
|
520
|
+
readonly kind = "RevealerForMeV1"
|
521
|
+
|
522
|
+
toJSON(): RevealerForMeV1JSON {
|
523
|
+
return {
|
524
|
+
kind: "RevealerForMeV1",
|
525
|
+
}
|
526
|
+
}
|
527
|
+
|
528
|
+
toEncodable() {
|
529
|
+
return {
|
530
|
+
RevealerForMeV1: {},
|
531
|
+
}
|
532
|
+
}
|
533
|
+
}
|
534
|
+
|
535
|
+
export interface ThreeIdV1JSON {
|
536
|
+
kind: "ThreeIdV1"
|
537
|
+
}
|
538
|
+
|
539
|
+
export class ThreeIdV1 {
|
540
|
+
static readonly discriminator = 23
|
541
|
+
static readonly kind = "ThreeIdV1"
|
542
|
+
readonly discriminator = 23
|
543
|
+
readonly kind = "ThreeIdV1"
|
544
|
+
|
545
|
+
toJSON(): ThreeIdV1JSON {
|
546
|
+
return {
|
547
|
+
kind: "ThreeIdV1",
|
548
|
+
}
|
549
|
+
}
|
550
|
+
|
551
|
+
toEncodable() {
|
552
|
+
return {
|
553
|
+
ThreeIdV1: {},
|
554
|
+
}
|
555
|
+
}
|
556
|
+
}
|
557
|
+
|
558
|
+
export interface DonationRegistryV1JSON {
|
559
|
+
kind: "DonationRegistryV1"
|
560
|
+
}
|
561
|
+
|
562
|
+
export class DonationRegistryV1 {
|
563
|
+
static readonly discriminator = 24
|
564
|
+
static readonly kind = "DonationRegistryV1"
|
565
|
+
readonly discriminator = 24
|
566
|
+
readonly kind = "DonationRegistryV1"
|
567
|
+
|
568
|
+
toJSON(): DonationRegistryV1JSON {
|
569
|
+
return {
|
570
|
+
kind: "DonationRegistryV1",
|
571
|
+
}
|
572
|
+
}
|
573
|
+
|
574
|
+
toEncodable() {
|
575
|
+
return {
|
576
|
+
DonationRegistryV1: {},
|
577
|
+
}
|
578
|
+
}
|
579
|
+
}
|
580
|
+
|
581
|
+
export interface PoolVaultV1JSON {
|
582
|
+
kind: "PoolVaultV1"
|
583
|
+
}
|
584
|
+
|
585
|
+
export class PoolVaultV1 {
|
586
|
+
static readonly discriminator = 25
|
587
|
+
static readonly kind = "PoolVaultV1"
|
588
|
+
readonly discriminator = 25
|
589
|
+
readonly kind = "PoolVaultV1"
|
590
|
+
|
591
|
+
toJSON(): PoolVaultV1JSON {
|
592
|
+
return {
|
593
|
+
kind: "PoolVaultV1",
|
594
|
+
}
|
595
|
+
}
|
596
|
+
|
597
|
+
toEncodable() {
|
598
|
+
return {
|
599
|
+
PoolVaultV1: {},
|
600
|
+
}
|
601
|
+
}
|
602
|
+
}
|
603
|
+
|
604
|
+
export interface GenericUserV1JSON {
|
605
|
+
kind: "GenericUserV1"
|
606
|
+
}
|
607
|
+
|
608
|
+
export class GenericUserV1 {
|
609
|
+
static readonly discriminator = 26
|
610
|
+
static readonly kind = "GenericUserV1"
|
611
|
+
readonly discriminator = 26
|
612
|
+
readonly kind = "GenericUserV1"
|
613
|
+
|
614
|
+
toJSON(): GenericUserV1JSON {
|
615
|
+
return {
|
616
|
+
kind: "GenericUserV1",
|
617
|
+
}
|
618
|
+
}
|
619
|
+
|
620
|
+
toEncodable() {
|
621
|
+
return {
|
622
|
+
GenericUserV1: {},
|
623
|
+
}
|
624
|
+
}
|
625
|
+
}
|
626
|
+
|
627
|
+
export interface TokenManagerV1JSON {
|
628
|
+
kind: "TokenManagerV1"
|
629
|
+
}
|
630
|
+
|
631
|
+
export class TokenManagerV1 {
|
632
|
+
static readonly discriminator = 27
|
633
|
+
static readonly kind = "TokenManagerV1"
|
634
|
+
readonly discriminator = 27
|
635
|
+
readonly kind = "TokenManagerV1"
|
636
|
+
|
637
|
+
toJSON(): TokenManagerV1JSON {
|
638
|
+
return {
|
639
|
+
kind: "TokenManagerV1",
|
640
|
+
}
|
641
|
+
}
|
642
|
+
|
643
|
+
toEncodable() {
|
644
|
+
return {
|
645
|
+
TokenManagerV1: {},
|
646
|
+
}
|
647
|
+
}
|
648
|
+
}
|
649
|
+
|
650
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
651
|
+
export function fromDecoded(obj: any): types.AccountClassKind {
|
652
|
+
if (typeof obj !== "object") {
|
653
|
+
throw new Error("Invalid enum object")
|
654
|
+
}
|
655
|
+
|
656
|
+
if ("HolderV1" in obj) {
|
657
|
+
return new HolderV1()
|
658
|
+
}
|
659
|
+
if ("StoreV1" in obj) {
|
660
|
+
return new StoreV1()
|
661
|
+
}
|
662
|
+
if ("SingleV1" in obj) {
|
663
|
+
return new SingleV1()
|
664
|
+
}
|
665
|
+
if ("PackV1" in obj) {
|
666
|
+
return new PackV1()
|
667
|
+
}
|
668
|
+
if ("CardV1" in obj) {
|
669
|
+
return new CardV1()
|
670
|
+
}
|
671
|
+
if ("PackReceiptV1" in obj) {
|
672
|
+
return new PackReceiptV1()
|
673
|
+
}
|
674
|
+
if ("PackContentV1" in obj) {
|
675
|
+
return new PackContentV1()
|
676
|
+
}
|
677
|
+
if ("PackOpenHolderV1" in obj) {
|
678
|
+
return new PackOpenHolderV1()
|
679
|
+
}
|
680
|
+
if ("BuyTrackV1" in obj) {
|
681
|
+
return new BuyTrackV1()
|
682
|
+
}
|
683
|
+
if ("SingleArchiveV1" in obj) {
|
684
|
+
return new SingleArchiveV1()
|
685
|
+
}
|
686
|
+
if ("PackArchiveV1" in obj) {
|
687
|
+
return new PackArchiveV1()
|
688
|
+
}
|
689
|
+
if ("None" in obj) {
|
690
|
+
return new None()
|
691
|
+
}
|
692
|
+
if ("CreatorRegistryV1" in obj) {
|
693
|
+
return new CreatorRegistryV1()
|
694
|
+
}
|
695
|
+
if ("CollectorGlobalRegistryV1" in obj) {
|
696
|
+
return new CollectorGlobalRegistryV1()
|
697
|
+
}
|
698
|
+
if ("CollectorArtistRegistryV1" in obj) {
|
699
|
+
return new CollectorArtistRegistryV1()
|
700
|
+
}
|
701
|
+
if ("PackTraitsV1" in obj) {
|
702
|
+
return new PackTraitsV1()
|
703
|
+
}
|
704
|
+
if ("PackUploadsV1" in obj) {
|
705
|
+
return new PackUploadsV1()
|
706
|
+
}
|
707
|
+
if ("ZeroOpenHolderV1" in obj) {
|
708
|
+
return new ZeroOpenHolderV1()
|
709
|
+
}
|
710
|
+
if ("BurnDepositV1" in obj) {
|
711
|
+
return new BurnDepositV1()
|
712
|
+
}
|
713
|
+
if ("GlobalBurnTrackV1" in obj) {
|
714
|
+
return new GlobalBurnTrackV1()
|
715
|
+
}
|
716
|
+
if ("ArtistBurnTrackV1" in obj) {
|
717
|
+
return new ArtistBurnTrackV1()
|
718
|
+
}
|
719
|
+
if ("SecureHolderV1" in obj) {
|
720
|
+
return new SecureHolderV1()
|
721
|
+
}
|
722
|
+
if ("RevealerForMeV1" in obj) {
|
723
|
+
return new RevealerForMeV1()
|
724
|
+
}
|
725
|
+
if ("ThreeIdV1" in obj) {
|
726
|
+
return new ThreeIdV1()
|
727
|
+
}
|
728
|
+
if ("DonationRegistryV1" in obj) {
|
729
|
+
return new DonationRegistryV1()
|
730
|
+
}
|
731
|
+
if ("PoolVaultV1" in obj) {
|
732
|
+
return new PoolVaultV1()
|
733
|
+
}
|
734
|
+
if ("GenericUserV1" in obj) {
|
735
|
+
return new GenericUserV1()
|
736
|
+
}
|
737
|
+
if ("TokenManagerV1" in obj) {
|
738
|
+
return new TokenManagerV1()
|
739
|
+
}
|
740
|
+
|
741
|
+
throw new Error("Invalid enum object")
|
742
|
+
}
|
743
|
+
|
744
|
+
export function fromJSON(obj: types.AccountClassJSON): types.AccountClassKind {
|
745
|
+
switch (obj.kind) {
|
746
|
+
case "HolderV1": {
|
747
|
+
return new HolderV1()
|
748
|
+
}
|
749
|
+
case "StoreV1": {
|
750
|
+
return new StoreV1()
|
751
|
+
}
|
752
|
+
case "SingleV1": {
|
753
|
+
return new SingleV1()
|
754
|
+
}
|
755
|
+
case "PackV1": {
|
756
|
+
return new PackV1()
|
757
|
+
}
|
758
|
+
case "CardV1": {
|
759
|
+
return new CardV1()
|
760
|
+
}
|
761
|
+
case "PackReceiptV1": {
|
762
|
+
return new PackReceiptV1()
|
763
|
+
}
|
764
|
+
case "PackContentV1": {
|
765
|
+
return new PackContentV1()
|
766
|
+
}
|
767
|
+
case "PackOpenHolderV1": {
|
768
|
+
return new PackOpenHolderV1()
|
769
|
+
}
|
770
|
+
case "BuyTrackV1": {
|
771
|
+
return new BuyTrackV1()
|
772
|
+
}
|
773
|
+
case "SingleArchiveV1": {
|
774
|
+
return new SingleArchiveV1()
|
775
|
+
}
|
776
|
+
case "PackArchiveV1": {
|
777
|
+
return new PackArchiveV1()
|
778
|
+
}
|
779
|
+
case "None": {
|
780
|
+
return new None()
|
781
|
+
}
|
782
|
+
case "CreatorRegistryV1": {
|
783
|
+
return new CreatorRegistryV1()
|
784
|
+
}
|
785
|
+
case "CollectorGlobalRegistryV1": {
|
786
|
+
return new CollectorGlobalRegistryV1()
|
787
|
+
}
|
788
|
+
case "CollectorArtistRegistryV1": {
|
789
|
+
return new CollectorArtistRegistryV1()
|
790
|
+
}
|
791
|
+
case "PackTraitsV1": {
|
792
|
+
return new PackTraitsV1()
|
793
|
+
}
|
794
|
+
case "PackUploadsV1": {
|
795
|
+
return new PackUploadsV1()
|
796
|
+
}
|
797
|
+
case "ZeroOpenHolderV1": {
|
798
|
+
return new ZeroOpenHolderV1()
|
799
|
+
}
|
800
|
+
case "BurnDepositV1": {
|
801
|
+
return new BurnDepositV1()
|
802
|
+
}
|
803
|
+
case "GlobalBurnTrackV1": {
|
804
|
+
return new GlobalBurnTrackV1()
|
805
|
+
}
|
806
|
+
case "ArtistBurnTrackV1": {
|
807
|
+
return new ArtistBurnTrackV1()
|
808
|
+
}
|
809
|
+
case "SecureHolderV1": {
|
810
|
+
return new SecureHolderV1()
|
811
|
+
}
|
812
|
+
case "RevealerForMeV1": {
|
813
|
+
return new RevealerForMeV1()
|
814
|
+
}
|
815
|
+
case "ThreeIdV1": {
|
816
|
+
return new ThreeIdV1()
|
817
|
+
}
|
818
|
+
case "DonationRegistryV1": {
|
819
|
+
return new DonationRegistryV1()
|
820
|
+
}
|
821
|
+
case "PoolVaultV1": {
|
822
|
+
return new PoolVaultV1()
|
823
|
+
}
|
824
|
+
case "GenericUserV1": {
|
825
|
+
return new GenericUserV1()
|
826
|
+
}
|
827
|
+
case "TokenManagerV1": {
|
828
|
+
return new TokenManagerV1()
|
829
|
+
}
|
830
|
+
}
|
831
|
+
}
|
832
|
+
|
833
|
+
export function layout(property?: string) {
|
834
|
+
const ret = borsh.rustEnum([
|
835
|
+
borsh.struct([], "HolderV1"),
|
836
|
+
borsh.struct([], "StoreV1"),
|
837
|
+
borsh.struct([], "SingleV1"),
|
838
|
+
borsh.struct([], "PackV1"),
|
839
|
+
borsh.struct([], "CardV1"),
|
840
|
+
borsh.struct([], "PackReceiptV1"),
|
841
|
+
borsh.struct([], "PackContentV1"),
|
842
|
+
borsh.struct([], "PackOpenHolderV1"),
|
843
|
+
borsh.struct([], "BuyTrackV1"),
|
844
|
+
borsh.struct([], "SingleArchiveV1"),
|
845
|
+
borsh.struct([], "PackArchiveV1"),
|
846
|
+
borsh.struct([], "None"),
|
847
|
+
borsh.struct([], "CreatorRegistryV1"),
|
848
|
+
borsh.struct([], "CollectorGlobalRegistryV1"),
|
849
|
+
borsh.struct([], "CollectorArtistRegistryV1"),
|
850
|
+
borsh.struct([], "PackTraitsV1"),
|
851
|
+
borsh.struct([], "PackUploadsV1"),
|
852
|
+
borsh.struct([], "ZeroOpenHolderV1"),
|
853
|
+
borsh.struct([], "BurnDepositV1"),
|
854
|
+
borsh.struct([], "GlobalBurnTrackV1"),
|
855
|
+
borsh.struct([], "ArtistBurnTrackV1"),
|
856
|
+
borsh.struct([], "SecureHolderV1"),
|
857
|
+
borsh.struct([], "RevealerForMeV1"),
|
858
|
+
borsh.struct([], "ThreeIdV1"),
|
859
|
+
borsh.struct([], "DonationRegistryV1"),
|
860
|
+
borsh.struct([], "PoolVaultV1"),
|
861
|
+
borsh.struct([], "GenericUserV1"),
|
862
|
+
borsh.struct([], "TokenManagerV1"),
|
863
|
+
])
|
864
|
+
if (property !== undefined) {
|
865
|
+
return ret.replicate(property)
|
866
|
+
}
|
867
|
+
return ret
|
868
|
+
}
|