Browse Source

token: Bump C bindings (#2109)

* Update token C bindings

* Fix Readme typo
Tyera Eulberg 4 years ago
parent
commit
164d6e3fd3
1 changed files with 12 additions and 0 deletions
  1. 12 0
      program/inc/token.h

+ 12 - 0
program/inc/token.h

@@ -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 {