@@ -42,7 +42,7 @@ pub const InstructionDiscriminant = enum(u8) {
4242};
4343
4444pub fn IxOption (T : type ) type {
45- return packed struct {
45+ return extern struct {
4646 is_some : u8 ,
4747 value : T ,
4848 const Self = @This ();
@@ -81,7 +81,7 @@ pub fn IxOption(T: type) type {
8181 };
8282}
8383
84- pub const InitializeMintData = packed struct {
84+ pub const InitializeMintData = extern struct {
8585 /// Number of base 10 digits to the right of the decimal place.
8686 decimals : u8 ,
8787 /// The authority/multisignature to mint tokens.
@@ -90,7 +90,7 @@ pub const InitializeMintData = packed struct {
9090 freeze_authority : IxOption (PublicKey ),
9191};
9292
93- pub const AmountData = packed struct {
93+ pub const AmountData = extern struct {
9494 /// The amount of tokens to process.
9595 amount : u64 ,
9696};
@@ -149,7 +149,7 @@ pub const Instruction = union(InstructionDiscriminant) {
149149 /// 1. `[]` Rent sysvar
150150 /// 2. ..2+N. `[]` The signer accounts, must equal to N where 1 <= N <=
151151 /// 11.
152- initialize_multisig : packed struct {
152+ initialize_multisig : extern struct {
153153 /// The number of signers (M) required to validate this multisignature
154154 /// account.
155155 m : u8 ,
@@ -213,7 +213,7 @@ pub const Instruction = union(InstructionDiscriminant) {
213213 /// 0. `[writable]` The mint or account to change the authority of.
214214 /// 1. `[]` The mint's or account's current multisignature authority.
215215 /// 2. ..2+M `[signer]` M signer accounts
216- set_authority : packed struct {
216+ set_authority : extern struct {
217217 /// The type of authority to update.
218218 authority_type : AuthorityType ,
219219 /// The new authority.
@@ -321,7 +321,7 @@ pub const Instruction = union(InstructionDiscriminant) {
321321 /// 2. `[writable]` The destination account.
322322 /// 3. `[]` The source account's multisignature owner/delegate.
323323 /// 4. ..4+M `[signer]` M signer accounts.
324- transfer_checked : packed struct {
324+ transfer_checked : extern struct {
325325 /// The amount of tokens to transfer.
326326 amount : u64 ,
327327 /// Expected number of base 10 digits to the right of the decimal place.
@@ -348,7 +348,7 @@ pub const Instruction = union(InstructionDiscriminant) {
348348 /// 2. `[]` The delegate.
349349 /// 3. `[]` The source account's multisignature owner.
350350 /// 4. ..4+M `[signer]` M signer accounts
351- approve_checked : packed struct {
351+ approve_checked : extern struct {
352352 /// The amount of tokens the delegate is approved for.
353353 amount : u64 ,
354354 /// Expected number of base 10 digits to the right of the decimal place.
@@ -373,7 +373,7 @@ pub const Instruction = union(InstructionDiscriminant) {
373373 /// 1. `[writable]` The account to mint tokens to.
374374 /// 2. `[]` The mint's multisignature mint-tokens authority.
375375 /// 3. ..3+M `[signer]` M signer accounts.
376- mint_to_checked : packed struct {
376+ mint_to_checked : extern struct {
377377 /// The amount of new tokens to mint.
378378 amount : u64 ,
379379 /// Expected number of base 10 digits to the right of the decimal place.
@@ -399,7 +399,7 @@ pub const Instruction = union(InstructionDiscriminant) {
399399 /// 1. `[writable]` The token mint.
400400 /// 2. `[]` The account's multisignature owner/delegate.
401401 /// 3. ..3+M `[signer]` M signer accounts.
402- burn_checked : packed struct {
402+ burn_checked : extern struct {
403403 /// The amount of tokens to burn.
404404 amount : u64 ,
405405 /// Expected number of base 10 digits to the right of the decimal place.
@@ -415,7 +415,7 @@ pub const Instruction = union(InstructionDiscriminant) {
415415 /// 0. `[writable]` The account to initialize.
416416 /// 1. `[]` The mint this account will be associated with.
417417 /// 3. `[]` Rent sysvar
418- initialize_account_2 : packed struct {
418+ initialize_account_2 : extern struct {
419419 /// The new account's owner/multisignature.
420420 owner_id : PublicKey ,
421421 },
@@ -435,7 +435,7 @@ pub const Instruction = union(InstructionDiscriminant) {
435435 ///
436436 /// 0. `[writable]` The account to initialize.
437437 /// 1. `[]` The mint this account will be associated with.
438- initialize_account_3 : packed struct {
438+ initialize_account_3 : extern struct {
439439 /// The new account's owner/multisignature.
440440 owner_id : PublicKey ,
441441 },
@@ -446,7 +446,7 @@ pub const Instruction = union(InstructionDiscriminant) {
446446 /// 0. `[writable]` The multisignature account to initialize.
447447 /// 1. ..1+N. `[]` The signer accounts, must equal to N where 1 <= N <=
448448 /// 11.
449- initialize_multisig_2 : packed struct {
449+ initialize_multisig_2 : extern struct {
450450 /// The number of signers (M) required to validate this multisignature
451451 /// account.
452452 m : u8 ,
@@ -457,7 +457,7 @@ pub const Instruction = union(InstructionDiscriminant) {
457457 ///
458458 /// 0. `[writable]` The mint to initialize.
459459 ///
460- initialize_mint_2 : packed struct {
460+ initialize_mint_2 : extern struct {
461461 /// Number of base 10 digits to the right of the decimal place.
462462 decimals : u8 ,
463463 /// The authority/multisignature to mint tokens.
@@ -501,7 +501,7 @@ pub const Instruction = union(InstructionDiscriminant) {
501501 /// Accounts expected by this instruction:
502502 ///
503503 /// 0. `[]` The mint to calculate for
504- amount_to_ui_amount : packed struct {
504+ amount_to_ui_amount : extern struct {
505505 /// The amount of tokens to reformat.
506506 amount : u64 ,
507507 },
@@ -514,7 +514,7 @@ pub const Instruction = union(InstructionDiscriminant) {
514514 /// Accounts expected by this instruction:
515515 ///
516516 /// 0. `[]` The mint to calculate for
517- ui_amount_to_amount : packed struct {
517+ ui_amount_to_amount : extern struct {
518518 /// The ui_amount of tokens to reformat.
519519 ui_amount : [* :0 ]u8 ,
520520 },
0 commit comments