Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit 7cc1055

Browse files
committed
token: Rename v2 instructions in C bindings
1 parent 1254af2 commit 7cc1055

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

token/program/inc/token.h

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ typedef enum Token_TokenInstruction_Tag {
326326
* account.
327327
*
328328
* 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
330330
* creating transactions offline or within a hardware wallet.
331331
*
332332
* Accounts expected by this instruction:
@@ -344,13 +344,13 @@ typedef enum Token_TokenInstruction_Tag {
344344
* 3. `[]` The source account's multisignature owner/delegate.
345345
* 4. ..4+M `[signer]` M signer accounts.
346346
*/
347-
Token_TokenInstruction_Transfer2,
347+
Token_TokenInstruction_TransferChecked,
348348
/**
349349
* Approves a delegate. A delegate is given the authority over tokens on
350350
* behalf of the source account's owner.
351351
*
352352
* 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
354354
* creating transactions offline or within a hardware wallet.
355355
*
356356
* Accounts expected by this instruction:
@@ -368,13 +368,13 @@ typedef enum Token_TokenInstruction_Tag {
368368
* 3. `[]` The source account's multisignature owner.
369369
* 4. ..4+M `[signer]` M signer accounts
370370
*/
371-
Token_TokenInstruction_Approve2,
371+
Token_TokenInstruction_ApproveChecked,
372372
/**
373373
* Mints new tokens to an account. The native mint does not support
374374
* minting.
375375
*
376376
* 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
378378
* offline or within a hardware wallet.
379379
*
380380
* Accounts expected by this instruction:
@@ -390,13 +390,13 @@ typedef enum Token_TokenInstruction_Tag {
390390
* 2. `[]` The mint's multisignature mint-tokens authority.
391391
* 3. ..3+M `[signer]` M signer accounts.
392392
*/
393-
Token_TokenInstruction_MintTo2,
393+
Token_TokenInstruction_MintToChecked,
394394
/**
395-
* Burns tokens by removing them from an account. `Burn2` does not
395+
* Burns tokens by removing them from an account. `BurnChecked` does not
396396
* support accounts associated with the native mint, use `CloseAccount`
397397
* instead.
398398
*
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
400400
* by the caller. This may be useful when creating transactions offline or
401401
* within a hardware wallet.
402402
*
@@ -413,7 +413,7 @@ typedef enum Token_TokenInstruction_Tag {
413413
* 2. `[]` The account's multisignature owner/delegate.
414414
* 3. ..3+M `[signer]` M signer accounts.
415415
*/
416-
Token_TokenInstruction_Burn2,
416+
Token_TokenInstruction_BurnChecked,
417417
} Token_TokenInstruction_Tag;
418418

419419
typedef struct Token_TokenInstruction_Token_InitializeMint_Body {
@@ -478,7 +478,7 @@ typedef struct Token_TokenInstruction_Token_Burn_Body {
478478
uint64_t amount;
479479
} Token_TokenInstruction_Token_Burn_Body;
480480

481-
typedef struct Token_TokenInstruction_Token_Transfer2_Body {
481+
typedef struct Token_TokenInstruction_Token_TransferChecked_Body {
482482
/**
483483
* The amount of tokens to transfer.
484484
*/
@@ -487,9 +487,9 @@ typedef struct Token_TokenInstruction_Token_Transfer2_Body {
487487
* Expected number of base 10 digits to the right of the decimal place.
488488
*/
489489
uint8_t decimals;
490-
} Token_TokenInstruction_Token_Transfer2_Body;
490+
} Token_TokenInstruction_Token_TransferChecked_Body;
491491

492-
typedef struct Token_TokenInstruction_Token_Approve2_Body {
492+
typedef struct Token_TokenInstruction_Token_ApproveChecked_Body {
493493
/**
494494
* The amount of tokens the delegate is approved for.
495495
*/
@@ -498,9 +498,9 @@ typedef struct Token_TokenInstruction_Token_Approve2_Body {
498498
* Expected number of base 10 digits to the right of the decimal place.
499499
*/
500500
uint8_t decimals;
501-
} Token_TokenInstruction_Token_Approve2_Body;
501+
} Token_TokenInstruction_Token_ApproveChecked_Body;
502502

503-
typedef struct Token_TokenInstruction_Token_MintTo2_Body {
503+
typedef struct Token_TokenInstruction_Token_MintToChecked_Body {
504504
/**
505505
* The amount of new tokens to mint.
506506
*/
@@ -509,9 +509,9 @@ typedef struct Token_TokenInstruction_Token_MintTo2_Body {
509509
* Expected number of base 10 digits to the right of the decimal place.
510510
*/
511511
uint8_t decimals;
512-
} Token_TokenInstruction_Token_MintTo2_Body;
512+
} Token_TokenInstruction_Token_MintToChecked_Body;
513513

514-
typedef struct Token_TokenInstruction_Token_Burn2_Body {
514+
typedef struct Token_TokenInstruction_Token_BurnChecked_Body {
515515
/**
516516
* The amount of tokens to burn.
517517
*/
@@ -520,7 +520,7 @@ typedef struct Token_TokenInstruction_Token_Burn2_Body {
520520
* Expected number of base 10 digits to the right of the decimal place.
521521
*/
522522
uint8_t decimals;
523-
} Token_TokenInstruction_Token_Burn2_Body;
523+
} Token_TokenInstruction_Token_BurnChecked_Body;
524524

525525
typedef struct Token_TokenInstruction {
526526
Token_TokenInstruction_Tag tag;
@@ -532,10 +532,10 @@ typedef struct Token_TokenInstruction {
532532
Token_TokenInstruction_Token_SetAuthority_Body set_authority;
533533
Token_TokenInstruction_Token_MintTo_Body mint_to;
534534
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;
539539
};
540540
} Token_TokenInstruction;
541541

0 commit comments

Comments
 (0)