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

Commit f247af1

Browse files
token: Bump C bindings (#2109)
* Update token C bindings * Fix Readme typo
1 parent 5159608 commit f247af1

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

token/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ utilize to create and use their tokens.
77

88
Full documentation is available at https://spl.solana.com/token
99

10-
JavaScript binding are available in the `./js` directory.
10+
JavaScript bindings are available in the `./js` directory.

token/program/inc/token.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,18 @@ typedef enum Token_TokenInstruction_Tag {
427427
* 3. `[]` Rent sysvar
428428
*/
429429
Token_TokenInstruction_InitializeAccount2,
430+
/**
431+
* Given a wrapped / native token account (a token account containing SOL)
432+
* updates its amount field based on the account's underlying `lamports`.
433+
* This is useful if a non-wrapped SOL account uses `system_instruction::transfer`
434+
* to move lamports to a wrapped token account, and needs to have its token
435+
* `amount` field updated.
436+
*
437+
* Accounts expected by this instruction:
438+
*
439+
* 0. `[writable]` The native token account to sync with its underlying lamports.
440+
*/
441+
Token_TokenInstruction_SyncNative,
430442
} Token_TokenInstruction_Tag;
431443

432444
typedef struct Token_TokenInstruction_Token_InitializeMint_Body {

0 commit comments

Comments
 (0)