-
Notifications
You must be signed in to change notification settings - Fork 30
/
DeprecatedValidateSafetyDepositBoxV1.go
513 lines (458 loc) · 24.4 KB
/
DeprecatedValidateSafetyDepositBoxV1.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
// Code generated by https://github.com/gagliardetto/anchor-go. DO NOT EDIT.
package metaplex
import (
"errors"
ag_binary "github.com/gagliardetto/binary"
ag_solanago "github.com/gagliardetto/solana-go"
ag_format "github.com/gagliardetto/solana-go/text/format"
ag_treeout "github.com/gagliardetto/treeout"
)
// Validates that a given safety deposit box has in it contents that match the expected WinningConfig in the auction manager.
// A stateful call, this will error out if you call it a second time after validation has occurred.
type DeprecatedValidateSafetyDepositBoxV1 struct {
// [0] = [WRITE] uninitializedSafetyDepositValidationTicket
// ··········· Uninitialized Safety deposit validation ticket, pda of seed ['metaplex', program id, auction manager key, safety deposit key]
//
// [1] = [WRITE] auctionManager
// ··········· Auction manager
//
// [2] = [WRITE] metadataAccount
// ··········· Metadata account
//
// [3] = [WRITE] originalAuthorityLookup
// ··········· Original authority lookup - unallocated uninitialized pda account with seed ['metaplex', auction key, metadata key]
// ··········· We will store original authority here to return it later.
//
// [4] = [] whitelistedCreatorEntry
// ··········· A whitelisted creator entry for the store of this auction manager pda of ['metaplex', store key, creator key]
// ··········· where creator key comes from creator list of metadata, any will do
//
// [5] = [] auctionManagerStoreKey
// ··········· The auction manager's store key
//
// [6] = [] safetyDepositBox
// ··········· Safety deposit box account
//
// [7] = [] safetyDepositBoxStorage
// ··········· Safety deposit box storage account where the actual nft token is stored
//
// [8] = [] mintAccount
// ··········· Mint account of the token in the safety deposit box
//
// [9] = [] editionOrMasterEditionRecordKey
// ··········· Edition OR MasterEdition record key
// ··········· Remember this does not need to be an existing account (may not be depending on token), just is a pda with seed
// ··········· of ['metadata', program id, Printing mint id, 'edition']. - remember PDA is relative to token metadata program.
//
// [10] = [] vaultAccount
// ··········· Vault account
//
// [11] = [SIGNER] authority
// ··········· Authority
//
// [12] = [SIGNER] metadataAuthority
// ··········· [optional] Metadata Authority - Signer only required if doing a full ownership txfer
//
// [13] = [SIGNER] payer
// ··········· Payer
//
// [14] = [] tokenMetadataProgram
// ··········· Token metadata program
//
// [15] = [] system
// ··········· System
//
// [16] = [] rentSysvar
// ··········· Rent sysvar
//
// [17] = [WRITE] limitedEditionPrintingMint
// ··········· Limited edition Printing mint account (optional - only if using sending Limited Edition)
//
// [18] = [SIGNER] limitedEditionPrintingMintAuthority
// ··········· Limited edition Printing mint Authority account, this will TEMPORARILY TRANSFER MINTING AUTHORITY to the auction manager
// ··········· until all limited editions have been redeemed for authority tokens.
ag_solanago.AccountMetaSlice `bin:"-"`
}
// NewDeprecatedValidateSafetyDepositBoxV1InstructionBuilder creates a new `DeprecatedValidateSafetyDepositBoxV1` instruction builder.
func NewDeprecatedValidateSafetyDepositBoxV1InstructionBuilder() *DeprecatedValidateSafetyDepositBoxV1 {
nd := &DeprecatedValidateSafetyDepositBoxV1{
AccountMetaSlice: make(ag_solanago.AccountMetaSlice, 19),
}
return nd
}
// SetUninitializedSafetyDepositValidationTicketAccount sets the "uninitializedSafetyDepositValidationTicket" account.
// Uninitialized Safety deposit validation ticket, pda of seed ['metaplex', program id, auction manager key, safety deposit key]
func (inst *DeprecatedValidateSafetyDepositBoxV1) SetUninitializedSafetyDepositValidationTicketAccount(uninitializedSafetyDepositValidationTicket ag_solanago.PublicKey) *DeprecatedValidateSafetyDepositBoxV1 {
inst.AccountMetaSlice[0] = ag_solanago.Meta(uninitializedSafetyDepositValidationTicket).WRITE()
return inst
}
// GetUninitializedSafetyDepositValidationTicketAccount gets the "uninitializedSafetyDepositValidationTicket" account.
// Uninitialized Safety deposit validation ticket, pda of seed ['metaplex', program id, auction manager key, safety deposit key]
func (inst *DeprecatedValidateSafetyDepositBoxV1) GetUninitializedSafetyDepositValidationTicketAccount() *ag_solanago.AccountMeta {
return inst.AccountMetaSlice.Get(0)
}
// SetAuctionManagerAccount sets the "auctionManager" account.
// Auction manager
func (inst *DeprecatedValidateSafetyDepositBoxV1) SetAuctionManagerAccount(auctionManager ag_solanago.PublicKey) *DeprecatedValidateSafetyDepositBoxV1 {
inst.AccountMetaSlice[1] = ag_solanago.Meta(auctionManager).WRITE()
return inst
}
// GetAuctionManagerAccount gets the "auctionManager" account.
// Auction manager
func (inst *DeprecatedValidateSafetyDepositBoxV1) GetAuctionManagerAccount() *ag_solanago.AccountMeta {
return inst.AccountMetaSlice.Get(1)
}
// SetMetadataAccount sets the "metadataAccount" account.
// Metadata account
func (inst *DeprecatedValidateSafetyDepositBoxV1) SetMetadataAccount(metadataAccount ag_solanago.PublicKey) *DeprecatedValidateSafetyDepositBoxV1 {
inst.AccountMetaSlice[2] = ag_solanago.Meta(metadataAccount).WRITE()
return inst
}
// GetMetadataAccount gets the "metadataAccount" account.
// Metadata account
func (inst *DeprecatedValidateSafetyDepositBoxV1) GetMetadataAccount() *ag_solanago.AccountMeta {
return inst.AccountMetaSlice.Get(2)
}
// SetOriginalAuthorityLookupAccount sets the "originalAuthorityLookup" account.
// Original authority lookup - unallocated uninitialized pda account with seed ['metaplex', auction key, metadata key]
// We will store original authority here to return it later.
func (inst *DeprecatedValidateSafetyDepositBoxV1) SetOriginalAuthorityLookupAccount(originalAuthorityLookup ag_solanago.PublicKey) *DeprecatedValidateSafetyDepositBoxV1 {
inst.AccountMetaSlice[3] = ag_solanago.Meta(originalAuthorityLookup).WRITE()
return inst
}
// GetOriginalAuthorityLookupAccount gets the "originalAuthorityLookup" account.
// Original authority lookup - unallocated uninitialized pda account with seed ['metaplex', auction key, metadata key]
// We will store original authority here to return it later.
func (inst *DeprecatedValidateSafetyDepositBoxV1) GetOriginalAuthorityLookupAccount() *ag_solanago.AccountMeta {
return inst.AccountMetaSlice.Get(3)
}
// SetWhitelistedCreatorEntryAccount sets the "whitelistedCreatorEntry" account.
// A whitelisted creator entry for the store of this auction manager pda of ['metaplex', store key, creator key]
// where creator key comes from creator list of metadata, any will do
func (inst *DeprecatedValidateSafetyDepositBoxV1) SetWhitelistedCreatorEntryAccount(whitelistedCreatorEntry ag_solanago.PublicKey) *DeprecatedValidateSafetyDepositBoxV1 {
inst.AccountMetaSlice[4] = ag_solanago.Meta(whitelistedCreatorEntry)
return inst
}
// GetWhitelistedCreatorEntryAccount gets the "whitelistedCreatorEntry" account.
// A whitelisted creator entry for the store of this auction manager pda of ['metaplex', store key, creator key]
// where creator key comes from creator list of metadata, any will do
func (inst *DeprecatedValidateSafetyDepositBoxV1) GetWhitelistedCreatorEntryAccount() *ag_solanago.AccountMeta {
return inst.AccountMetaSlice.Get(4)
}
// SetAuctionManagerStoreKeyAccount sets the "auctionManagerStoreKey" account.
// The auction manager's store key
func (inst *DeprecatedValidateSafetyDepositBoxV1) SetAuctionManagerStoreKeyAccount(auctionManagerStoreKey ag_solanago.PublicKey) *DeprecatedValidateSafetyDepositBoxV1 {
inst.AccountMetaSlice[5] = ag_solanago.Meta(auctionManagerStoreKey)
return inst
}
// GetAuctionManagerStoreKeyAccount gets the "auctionManagerStoreKey" account.
// The auction manager's store key
func (inst *DeprecatedValidateSafetyDepositBoxV1) GetAuctionManagerStoreKeyAccount() *ag_solanago.AccountMeta {
return inst.AccountMetaSlice.Get(5)
}
// SetSafetyDepositBoxAccount sets the "safetyDepositBox" account.
// Safety deposit box account
func (inst *DeprecatedValidateSafetyDepositBoxV1) SetSafetyDepositBoxAccount(safetyDepositBox ag_solanago.PublicKey) *DeprecatedValidateSafetyDepositBoxV1 {
inst.AccountMetaSlice[6] = ag_solanago.Meta(safetyDepositBox)
return inst
}
// GetSafetyDepositBoxAccount gets the "safetyDepositBox" account.
// Safety deposit box account
func (inst *DeprecatedValidateSafetyDepositBoxV1) GetSafetyDepositBoxAccount() *ag_solanago.AccountMeta {
return inst.AccountMetaSlice.Get(6)
}
// SetSafetyDepositBoxStorageAccount sets the "safetyDepositBoxStorage" account.
// Safety deposit box storage account where the actual nft token is stored
func (inst *DeprecatedValidateSafetyDepositBoxV1) SetSafetyDepositBoxStorageAccount(safetyDepositBoxStorage ag_solanago.PublicKey) *DeprecatedValidateSafetyDepositBoxV1 {
inst.AccountMetaSlice[7] = ag_solanago.Meta(safetyDepositBoxStorage)
return inst
}
// GetSafetyDepositBoxStorageAccount gets the "safetyDepositBoxStorage" account.
// Safety deposit box storage account where the actual nft token is stored
func (inst *DeprecatedValidateSafetyDepositBoxV1) GetSafetyDepositBoxStorageAccount() *ag_solanago.AccountMeta {
return inst.AccountMetaSlice.Get(7)
}
// SetMintAccount sets the "mintAccount" account.
// Mint account of the token in the safety deposit box
func (inst *DeprecatedValidateSafetyDepositBoxV1) SetMintAccount(mintAccount ag_solanago.PublicKey) *DeprecatedValidateSafetyDepositBoxV1 {
inst.AccountMetaSlice[8] = ag_solanago.Meta(mintAccount)
return inst
}
// GetMintAccount gets the "mintAccount" account.
// Mint account of the token in the safety deposit box
func (inst *DeprecatedValidateSafetyDepositBoxV1) GetMintAccount() *ag_solanago.AccountMeta {
return inst.AccountMetaSlice.Get(8)
}
// SetEditionOrMasterEditionRecordKeyAccount sets the "editionOrMasterEditionRecordKey" account.
// Edition OR MasterEdition record key
// Remember this does not need to be an existing account (may not be depending on token), just is a pda with seed
// of ['metadata', program id, Printing mint id, 'edition']. - remember PDA is relative to token metadata program.
func (inst *DeprecatedValidateSafetyDepositBoxV1) SetEditionOrMasterEditionRecordKeyAccount(editionOrMasterEditionRecordKey ag_solanago.PublicKey) *DeprecatedValidateSafetyDepositBoxV1 {
inst.AccountMetaSlice[9] = ag_solanago.Meta(editionOrMasterEditionRecordKey)
return inst
}
// GetEditionOrMasterEditionRecordKeyAccount gets the "editionOrMasterEditionRecordKey" account.
// Edition OR MasterEdition record key
// Remember this does not need to be an existing account (may not be depending on token), just is a pda with seed
// of ['metadata', program id, Printing mint id, 'edition']. - remember PDA is relative to token metadata program.
func (inst *DeprecatedValidateSafetyDepositBoxV1) GetEditionOrMasterEditionRecordKeyAccount() *ag_solanago.AccountMeta {
return inst.AccountMetaSlice.Get(9)
}
// SetVaultAccount sets the "vaultAccount" account.
// Vault account
func (inst *DeprecatedValidateSafetyDepositBoxV1) SetVaultAccount(vaultAccount ag_solanago.PublicKey) *DeprecatedValidateSafetyDepositBoxV1 {
inst.AccountMetaSlice[10] = ag_solanago.Meta(vaultAccount)
return inst
}
// GetVaultAccount gets the "vaultAccount" account.
// Vault account
func (inst *DeprecatedValidateSafetyDepositBoxV1) GetVaultAccount() *ag_solanago.AccountMeta {
return inst.AccountMetaSlice.Get(10)
}
// SetAuthorityAccount sets the "authority" account.
// Authority
func (inst *DeprecatedValidateSafetyDepositBoxV1) SetAuthorityAccount(authority ag_solanago.PublicKey) *DeprecatedValidateSafetyDepositBoxV1 {
inst.AccountMetaSlice[11] = ag_solanago.Meta(authority).SIGNER()
return inst
}
// GetAuthorityAccount gets the "authority" account.
// Authority
func (inst *DeprecatedValidateSafetyDepositBoxV1) GetAuthorityAccount() *ag_solanago.AccountMeta {
return inst.AccountMetaSlice.Get(11)
}
// SetMetadataAuthorityAccount sets the "metadataAuthority" account.
// [optional] Metadata Authority - Signer only required if doing a full ownership txfer
func (inst *DeprecatedValidateSafetyDepositBoxV1) SetMetadataAuthorityAccount(metadataAuthority ag_solanago.PublicKey) *DeprecatedValidateSafetyDepositBoxV1 {
inst.AccountMetaSlice[12] = ag_solanago.Meta(metadataAuthority).SIGNER()
return inst
}
// GetMetadataAuthorityAccount gets the "metadataAuthority" account (optional).
// [optional] Metadata Authority - Signer only required if doing a full ownership txfer
func (inst *DeprecatedValidateSafetyDepositBoxV1) GetMetadataAuthorityAccount() *ag_solanago.AccountMeta {
return inst.AccountMetaSlice.Get(12)
}
// SetPayerAccount sets the "payer" account.
// Payer
func (inst *DeprecatedValidateSafetyDepositBoxV1) SetPayerAccount(payer ag_solanago.PublicKey) *DeprecatedValidateSafetyDepositBoxV1 {
inst.AccountMetaSlice[13] = ag_solanago.Meta(payer).SIGNER()
return inst
}
// GetPayerAccount gets the "payer" account.
// Payer
func (inst *DeprecatedValidateSafetyDepositBoxV1) GetPayerAccount() *ag_solanago.AccountMeta {
return inst.AccountMetaSlice.Get(13)
}
// SetTokenMetadataProgramAccount sets the "tokenMetadataProgram" account.
// Token metadata program
func (inst *DeprecatedValidateSafetyDepositBoxV1) SetTokenMetadataProgramAccount(tokenMetadataProgram ag_solanago.PublicKey) *DeprecatedValidateSafetyDepositBoxV1 {
inst.AccountMetaSlice[14] = ag_solanago.Meta(tokenMetadataProgram)
return inst
}
// GetTokenMetadataProgramAccount gets the "tokenMetadataProgram" account.
// Token metadata program
func (inst *DeprecatedValidateSafetyDepositBoxV1) GetTokenMetadataProgramAccount() *ag_solanago.AccountMeta {
return inst.AccountMetaSlice.Get(14)
}
// SetSystemAccount sets the "system" account.
// System
func (inst *DeprecatedValidateSafetyDepositBoxV1) SetSystemAccount(system ag_solanago.PublicKey) *DeprecatedValidateSafetyDepositBoxV1 {
inst.AccountMetaSlice[15] = ag_solanago.Meta(system)
return inst
}
// GetSystemAccount gets the "system" account.
// System
func (inst *DeprecatedValidateSafetyDepositBoxV1) GetSystemAccount() *ag_solanago.AccountMeta {
return inst.AccountMetaSlice.Get(15)
}
// SetRentSysvarAccount sets the "rentSysvar" account.
// Rent sysvar
func (inst *DeprecatedValidateSafetyDepositBoxV1) SetRentSysvarAccount(rentSysvar ag_solanago.PublicKey) *DeprecatedValidateSafetyDepositBoxV1 {
inst.AccountMetaSlice[16] = ag_solanago.Meta(rentSysvar)
return inst
}
// GetRentSysvarAccount gets the "rentSysvar" account.
// Rent sysvar
func (inst *DeprecatedValidateSafetyDepositBoxV1) GetRentSysvarAccount() *ag_solanago.AccountMeta {
return inst.AccountMetaSlice.Get(16)
}
// SetLimitedEditionPrintingMintAccount sets the "limitedEditionPrintingMint" account.
// Limited edition Printing mint account (optional - only if using sending Limited Edition)
func (inst *DeprecatedValidateSafetyDepositBoxV1) SetLimitedEditionPrintingMintAccount(limitedEditionPrintingMint ag_solanago.PublicKey) *DeprecatedValidateSafetyDepositBoxV1 {
inst.AccountMetaSlice[17] = ag_solanago.Meta(limitedEditionPrintingMint).WRITE()
return inst
}
// GetLimitedEditionPrintingMintAccount gets the "limitedEditionPrintingMint" account (optional).
// Limited edition Printing mint account (optional - only if using sending Limited Edition)
func (inst *DeprecatedValidateSafetyDepositBoxV1) GetLimitedEditionPrintingMintAccount() *ag_solanago.AccountMeta {
return inst.AccountMetaSlice.Get(17)
}
// SetLimitedEditionPrintingMintAuthorityAccount sets the "limitedEditionPrintingMintAuthority" account.
// Limited edition Printing mint Authority account, this will TEMPORARILY TRANSFER MINTING AUTHORITY to the auction manager
// until all limited editions have been redeemed for authority tokens.
func (inst *DeprecatedValidateSafetyDepositBoxV1) SetLimitedEditionPrintingMintAuthorityAccount(limitedEditionPrintingMintAuthority ag_solanago.PublicKey) *DeprecatedValidateSafetyDepositBoxV1 {
inst.AccountMetaSlice[18] = ag_solanago.Meta(limitedEditionPrintingMintAuthority).SIGNER()
return inst
}
// GetLimitedEditionPrintingMintAuthorityAccount gets the "limitedEditionPrintingMintAuthority" account.
// Limited edition Printing mint Authority account, this will TEMPORARILY TRANSFER MINTING AUTHORITY to the auction manager
// until all limited editions have been redeemed for authority tokens.
func (inst *DeprecatedValidateSafetyDepositBoxV1) GetLimitedEditionPrintingMintAuthorityAccount() *ag_solanago.AccountMeta {
return inst.AccountMetaSlice.Get(18)
}
func (inst DeprecatedValidateSafetyDepositBoxV1) Build() *Instruction {
return &Instruction{BaseVariant: ag_binary.BaseVariant{
Impl: inst,
TypeID: ag_binary.TypeIDFromUint8(Instruction_DeprecatedValidateSafetyDepositBoxV1),
}}
}
// ValidateAndBuild validates the instruction parameters and accounts;
// if there is a validation error, it returns the error.
// Otherwise, it builds and returns the instruction.
func (inst DeprecatedValidateSafetyDepositBoxV1) ValidateAndBuild() (*Instruction, error) {
if err := inst.Validate(); err != nil {
return nil, err
}
return inst.Build(), nil
}
func (inst *DeprecatedValidateSafetyDepositBoxV1) Validate() error {
// Check whether all (required) accounts are set:
{
if inst.AccountMetaSlice[0] == nil {
return errors.New("accounts.UninitializedSafetyDepositValidationTicket is not set")
}
if inst.AccountMetaSlice[1] == nil {
return errors.New("accounts.AuctionManager is not set")
}
if inst.AccountMetaSlice[2] == nil {
return errors.New("accounts.MetadataAccount is not set")
}
if inst.AccountMetaSlice[3] == nil {
return errors.New("accounts.OriginalAuthorityLookup is not set")
}
if inst.AccountMetaSlice[4] == nil {
return errors.New("accounts.WhitelistedCreatorEntry is not set")
}
if inst.AccountMetaSlice[5] == nil {
return errors.New("accounts.AuctionManagerStoreKey is not set")
}
if inst.AccountMetaSlice[6] == nil {
return errors.New("accounts.SafetyDepositBox is not set")
}
if inst.AccountMetaSlice[7] == nil {
return errors.New("accounts.SafetyDepositBoxStorage is not set")
}
if inst.AccountMetaSlice[8] == nil {
return errors.New("accounts.MintAccount is not set")
}
if inst.AccountMetaSlice[9] == nil {
return errors.New("accounts.EditionOrMasterEditionRecordKey is not set")
}
if inst.AccountMetaSlice[10] == nil {
return errors.New("accounts.VaultAccount is not set")
}
if inst.AccountMetaSlice[11] == nil {
return errors.New("accounts.Authority is not set")
}
// [12] = MetadataAuthority is optional
if inst.AccountMetaSlice[13] == nil {
return errors.New("accounts.Payer is not set")
}
if inst.AccountMetaSlice[14] == nil {
return errors.New("accounts.TokenMetadataProgram is not set")
}
if inst.AccountMetaSlice[15] == nil {
return errors.New("accounts.System is not set")
}
if inst.AccountMetaSlice[16] == nil {
return errors.New("accounts.RentSysvar is not set")
}
// [17] = LimitedEditionPrintingMint is optional
if inst.AccountMetaSlice[18] == nil {
return errors.New("accounts.LimitedEditionPrintingMintAuthority is not set")
}
}
return nil
}
func (inst *DeprecatedValidateSafetyDepositBoxV1) EncodeToTree(parent ag_treeout.Branches) {
parent.Child(ag_format.Program(ProgramName, ProgramID)).
//
ParentFunc(func(programBranch ag_treeout.Branches) {
programBranch.Child(ag_format.Instruction("DeprecatedValidateSafetyDepositBoxV1")).
//
ParentFunc(func(instructionBranch ag_treeout.Branches) {
// Parameters of the instruction:
instructionBranch.Child("Params[len=0]").ParentFunc(func(paramsBranch ag_treeout.Branches) {})
// Accounts of the instruction:
instructionBranch.Child("Accounts[len=19]").ParentFunc(func(accountsBranch ag_treeout.Branches) {
accountsBranch.Child(ag_format.Meta("uninitializedSafetyDepositValidationTicket", inst.AccountMetaSlice.Get(0)))
accountsBranch.Child(ag_format.Meta(" auctionManager", inst.AccountMetaSlice.Get(1)))
accountsBranch.Child(ag_format.Meta(" metadata", inst.AccountMetaSlice.Get(2)))
accountsBranch.Child(ag_format.Meta(" originalAuthorityLookup", inst.AccountMetaSlice.Get(3)))
accountsBranch.Child(ag_format.Meta(" whitelistedCreatorEntry", inst.AccountMetaSlice.Get(4)))
accountsBranch.Child(ag_format.Meta(" auctionManagerStoreKey", inst.AccountMetaSlice.Get(5)))
accountsBranch.Child(ag_format.Meta(" safetyDepositBox", inst.AccountMetaSlice.Get(6)))
accountsBranch.Child(ag_format.Meta(" safetyDepositBoxStorage", inst.AccountMetaSlice.Get(7)))
accountsBranch.Child(ag_format.Meta(" mint", inst.AccountMetaSlice.Get(8)))
accountsBranch.Child(ag_format.Meta(" editionOrMasterEditionRecordKey", inst.AccountMetaSlice.Get(9)))
accountsBranch.Child(ag_format.Meta(" vault", inst.AccountMetaSlice.Get(10)))
accountsBranch.Child(ag_format.Meta(" authority", inst.AccountMetaSlice.Get(11)))
accountsBranch.Child(ag_format.Meta(" metadataAuthority", inst.AccountMetaSlice.Get(12)))
accountsBranch.Child(ag_format.Meta(" payer", inst.AccountMetaSlice.Get(13)))
accountsBranch.Child(ag_format.Meta(" tokenMetadataProgram", inst.AccountMetaSlice.Get(14)))
accountsBranch.Child(ag_format.Meta(" system", inst.AccountMetaSlice.Get(15)))
accountsBranch.Child(ag_format.Meta(" rentSysvar", inst.AccountMetaSlice.Get(16)))
accountsBranch.Child(ag_format.Meta(" limitedEditionPrintingMint", inst.AccountMetaSlice.Get(17)))
accountsBranch.Child(ag_format.Meta(" limitedEditionPrintingMintAuthority", inst.AccountMetaSlice.Get(18)))
})
})
})
}
func (obj DeprecatedValidateSafetyDepositBoxV1) MarshalWithEncoder(encoder *ag_binary.Encoder) (err error) {
return nil
}
func (obj *DeprecatedValidateSafetyDepositBoxV1) UnmarshalWithDecoder(decoder *ag_binary.Decoder) (err error) {
return nil
}
// NewDeprecatedValidateSafetyDepositBoxV1Instruction declares a new DeprecatedValidateSafetyDepositBoxV1 instruction with the provided parameters and accounts.
func NewDeprecatedValidateSafetyDepositBoxV1Instruction(
// Accounts:
uninitializedSafetyDepositValidationTicket ag_solanago.PublicKey,
auctionManager ag_solanago.PublicKey,
metadataAccount ag_solanago.PublicKey,
originalAuthorityLookup ag_solanago.PublicKey,
whitelistedCreatorEntry ag_solanago.PublicKey,
auctionManagerStoreKey ag_solanago.PublicKey,
safetyDepositBox ag_solanago.PublicKey,
safetyDepositBoxStorage ag_solanago.PublicKey,
mintAccount ag_solanago.PublicKey,
editionOrMasterEditionRecordKey ag_solanago.PublicKey,
vaultAccount ag_solanago.PublicKey,
authority ag_solanago.PublicKey,
metadataAuthority ag_solanago.PublicKey,
payer ag_solanago.PublicKey,
tokenMetadataProgram ag_solanago.PublicKey,
system ag_solanago.PublicKey,
rentSysvar ag_solanago.PublicKey,
limitedEditionPrintingMint ag_solanago.PublicKey,
limitedEditionPrintingMintAuthority ag_solanago.PublicKey) *DeprecatedValidateSafetyDepositBoxV1 {
return NewDeprecatedValidateSafetyDepositBoxV1InstructionBuilder().
SetUninitializedSafetyDepositValidationTicketAccount(uninitializedSafetyDepositValidationTicket).
SetAuctionManagerAccount(auctionManager).
SetMetadataAccount(metadataAccount).
SetOriginalAuthorityLookupAccount(originalAuthorityLookup).
SetWhitelistedCreatorEntryAccount(whitelistedCreatorEntry).
SetAuctionManagerStoreKeyAccount(auctionManagerStoreKey).
SetSafetyDepositBoxAccount(safetyDepositBox).
SetSafetyDepositBoxStorageAccount(safetyDepositBoxStorage).
SetMintAccount(mintAccount).
SetEditionOrMasterEditionRecordKeyAccount(editionOrMasterEditionRecordKey).
SetVaultAccount(vaultAccount).
SetAuthorityAccount(authority).
SetMetadataAuthorityAccount(metadataAuthority).
SetPayerAccount(payer).
SetTokenMetadataProgramAccount(tokenMetadataProgram).
SetSystemAccount(system).
SetRentSysvarAccount(rentSysvar).
SetLimitedEditionPrintingMintAccount(limitedEditionPrintingMint).
SetLimitedEditionPrintingMintAuthorityAccount(limitedEditionPrintingMintAuthority)
}