From a9104bfb1b3c13f371478a7cf3e5e1eed3b2571b Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Mon, 29 Jun 2020 20:21:56 -0700 Subject: [PATCH] native-iface --- token/src/instruction.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/token/src/instruction.rs b/token/src/instruction.rs index 8c4b44b2027..639632dd73c 100644 --- a/token/src/instruction.rs +++ b/token/src/instruction.rs @@ -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)