Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

token: Bump C bindings #2109

Merged
merged 2 commits into from
Jul 19, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion token/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ utilize to create and use their tokens.

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

JavaScript binding are available in the `./js` directory.
JavaScript bindings are available in the `./js` directory.
12 changes: 12 additions & 0 deletions token/program/inc/token.h
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,18 @@ typedef enum Token_TokenInstruction_Tag {
* 3. `[]` Rent sysvar
*/
Token_TokenInstruction_InitializeAccount2,
/**
* Given a wrapped / native token account (a token account containing SOL)
* updates its amount field based on the account's underlying `lamports`.
* This is useful if a non-wrapped SOL account uses `system_instruction::transfer`
* to move lamports to a wrapped token account, and needs to have its token
* `amount` field updated.
*
* Accounts expected by this instruction:
*
* 0. `[writable]` The native token account to sync with its underlying lamports.
*/
Token_TokenInstruction_SyncNative,
} Token_TokenInstruction_Tag;

typedef struct Token_TokenInstruction_Token_InitializeMint_Body {
Expand Down