@@ -326,7 +326,7 @@ typedef enum Token_TokenInstruction_Tag {
326
326
* account.
327
327
*
328
328
* This instruction differs from Transfer in that the token mint and
329
- * decimals value is asserted by the caller. This may be useful when
329
+ * decimals value is checked by the caller. This may be useful when
330
330
* creating transactions offline or within a hardware wallet.
331
331
*
332
332
* Accounts expected by this instruction:
@@ -344,13 +344,13 @@ typedef enum Token_TokenInstruction_Tag {
344
344
* 3. `[]` The source account's multisignature owner/delegate.
345
345
* 4. ..4+M `[signer]` M signer accounts.
346
346
*/
347
- Token_TokenInstruction_Transfer2 ,
347
+ Token_TokenInstruction_TransferChecked ,
348
348
/* *
349
349
* Approves a delegate. A delegate is given the authority over tokens on
350
350
* behalf of the source account's owner.
351
351
*
352
352
* This instruction differs from Approve in that the token mint and
353
- * decimals value is asserted by the caller. This may be useful when
353
+ * decimals value is checked by the caller. This may be useful when
354
354
* creating transactions offline or within a hardware wallet.
355
355
*
356
356
* Accounts expected by this instruction:
@@ -368,13 +368,13 @@ typedef enum Token_TokenInstruction_Tag {
368
368
* 3. `[]` The source account's multisignature owner.
369
369
* 4. ..4+M `[signer]` M signer accounts
370
370
*/
371
- Token_TokenInstruction_Approve2 ,
371
+ Token_TokenInstruction_ApproveChecked ,
372
372
/* *
373
373
* Mints new tokens to an account. The native mint does not support
374
374
* minting.
375
375
*
376
376
* This instruction differs from MintTo in that the decimals value is
377
- * asserted by the caller. This may be useful when creating transactions
377
+ * checked by the caller. This may be useful when creating transactions
378
378
* offline or within a hardware wallet.
379
379
*
380
380
* Accounts expected by this instruction:
@@ -390,13 +390,13 @@ typedef enum Token_TokenInstruction_Tag {
390
390
* 2. `[]` The mint's multisignature mint-tokens authority.
391
391
* 3. ..3+M `[signer]` M signer accounts.
392
392
*/
393
- Token_TokenInstruction_MintTo2 ,
393
+ Token_TokenInstruction_MintToChecked ,
394
394
/* *
395
- * Burns tokens by removing them from an account. `Burn2 ` does not
395
+ * Burns tokens by removing them from an account. `BurnChecked ` does not
396
396
* support accounts associated with the native mint, use `CloseAccount`
397
397
* instead.
398
398
*
399
- * This instruction differs from Burn in that the decimals value is asserted
399
+ * This instruction differs from Burn in that the decimals value is checked
400
400
* by the caller. This may be useful when creating transactions offline or
401
401
* within a hardware wallet.
402
402
*
@@ -413,7 +413,7 @@ typedef enum Token_TokenInstruction_Tag {
413
413
* 2. `[]` The account's multisignature owner/delegate.
414
414
* 3. ..3+M `[signer]` M signer accounts.
415
415
*/
416
- Token_TokenInstruction_Burn2 ,
416
+ Token_TokenInstruction_BurnChecked ,
417
417
} Token_TokenInstruction_Tag;
418
418
419
419
typedef struct Token_TokenInstruction_Token_InitializeMint_Body {
@@ -478,7 +478,7 @@ typedef struct Token_TokenInstruction_Token_Burn_Body {
478
478
uint64_t amount;
479
479
} Token_TokenInstruction_Token_Burn_Body;
480
480
481
- typedef struct Token_TokenInstruction_Token_Transfer2_Body {
481
+ typedef struct Token_TokenInstruction_Token_TransferChecked_Body {
482
482
/* *
483
483
* The amount of tokens to transfer.
484
484
*/
@@ -487,9 +487,9 @@ typedef struct Token_TokenInstruction_Token_Transfer2_Body {
487
487
* Expected number of base 10 digits to the right of the decimal place.
488
488
*/
489
489
uint8_t decimals;
490
- } Token_TokenInstruction_Token_Transfer2_Body ;
490
+ } Token_TokenInstruction_Token_TransferChecked_Body ;
491
491
492
- typedef struct Token_TokenInstruction_Token_Approve2_Body {
492
+ typedef struct Token_TokenInstruction_Token_ApproveChecked_Body {
493
493
/* *
494
494
* The amount of tokens the delegate is approved for.
495
495
*/
@@ -498,9 +498,9 @@ typedef struct Token_TokenInstruction_Token_Approve2_Body {
498
498
* Expected number of base 10 digits to the right of the decimal place.
499
499
*/
500
500
uint8_t decimals;
501
- } Token_TokenInstruction_Token_Approve2_Body ;
501
+ } Token_TokenInstruction_Token_ApproveChecked_Body ;
502
502
503
- typedef struct Token_TokenInstruction_Token_MintTo2_Body {
503
+ typedef struct Token_TokenInstruction_Token_MintToChecked_Body {
504
504
/* *
505
505
* The amount of new tokens to mint.
506
506
*/
@@ -509,9 +509,9 @@ typedef struct Token_TokenInstruction_Token_MintTo2_Body {
509
509
* Expected number of base 10 digits to the right of the decimal place.
510
510
*/
511
511
uint8_t decimals;
512
- } Token_TokenInstruction_Token_MintTo2_Body ;
512
+ } Token_TokenInstruction_Token_MintToChecked_Body ;
513
513
514
- typedef struct Token_TokenInstruction_Token_Burn2_Body {
514
+ typedef struct Token_TokenInstruction_Token_BurnChecked_Body {
515
515
/* *
516
516
* The amount of tokens to burn.
517
517
*/
@@ -520,7 +520,7 @@ typedef struct Token_TokenInstruction_Token_Burn2_Body {
520
520
* Expected number of base 10 digits to the right of the decimal place.
521
521
*/
522
522
uint8_t decimals;
523
- } Token_TokenInstruction_Token_Burn2_Body ;
523
+ } Token_TokenInstruction_Token_BurnChecked_Body ;
524
524
525
525
typedef struct Token_TokenInstruction {
526
526
Token_TokenInstruction_Tag tag;
@@ -532,10 +532,10 @@ typedef struct Token_TokenInstruction {
532
532
Token_TokenInstruction_Token_SetAuthority_Body set_authority;
533
533
Token_TokenInstruction_Token_MintTo_Body mint_to;
534
534
Token_TokenInstruction_Token_Burn_Body burn;
535
- Token_TokenInstruction_Token_Transfer2_Body transfer2 ;
536
- Token_TokenInstruction_Token_Approve2_Body approve2 ;
537
- Token_TokenInstruction_Token_MintTo2_Body mint_to2 ;
538
- Token_TokenInstruction_Token_Burn2_Body burn2 ;
535
+ Token_TokenInstruction_Token_TransferChecked_Body transfer_checked ;
536
+ Token_TokenInstruction_Token_ApproveChecked_Body approve_checked ;
537
+ Token_TokenInstruction_Token_MintToChecked_Body mint_to_checked ;
538
+ Token_TokenInstruction_Token_BurnChecked_Body burn_checked ;
539
539
};
540
540
} Token_TokenInstruction;
541
541
0 commit comments