Skip to content

Commit

Permalink
native-iface
Browse files Browse the repository at this point in the history
  • Loading branch information
mvines committed Jun 30, 2020
1 parent fec29d1 commit a9104bf
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions token/src/instruction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,19 @@ pub enum TokenInstruction {
/// 2. `[writable]` Token being burned.
/// 3. Optional: `[writable]` Source account if key 1 is a delegate account.
Burn(u64),

/// Wrap native SOL in the `S011111111111111111` token account owned by the
/// 0. `[signer]` Owner of the token.
/// 1. `[]` Rent sysvar
/// 3. `[writable]` Account to wrap the native SOL with. Any lamports in this account above
/// the rent-exempt minimum will be reflected in the new token balance
NewNative,

/// Deallocate a `S011111111111111111` token account and reclaim the native SOL
/// 0. `[signer]` Owner of the token.
/// 2. `[writable]` Destination account to assign the SOL to
ReclaimNative,

}
impl TokenInstruction {
/// Deserializes a byte buffer into an [TokenInstruction](enum.TokenInstruction.html)
Expand Down

0 comments on commit a9104bf

Please sign in to comment.