This repository was archived by the owner on Mar 11, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +22
-0
lines changed Expand file tree Collapse file tree 3 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,24 @@ pub enum TokenInstruction {
85
85
/// 2. `[writable]` Token being burned.
86
86
/// 3. Optional: `[writable]` Source account if key 1 is a delegate account.
87
87
Burn ( u64 ) ,
88
+
89
+ /// Initialize a wrapped SOL token account. The full SOL balance in the uninitialized account
90
+ /// will be wrapped.
91
+ ///
92
+ /// The `InitializeWrappedAccount` instruction requires no signers and MUST be included within
93
+ /// the Transaction that creates the uninitialized account with the system program. Otherwise
94
+ /// another party can acquire ownership of the uninitialized token account.
95
+ ///
96
+ /// 0. `[writable]` An uninitialized token account
97
+ /// 1. `[]` Initial owner for the token account.
98
+ ///
99
+ InitializeWrappedAccount ,
100
+
101
+ /// Deallocate and release all native SOL held by a token account
102
+ /// 0. `[signer]` Owner of the token account.
103
+ /// 1. `[writable]` Token account to release.
104
+ /// 2. `[writable]` Destination account to receive the full SOL balance of the account.
105
+ ReleaseAccount ,
88
106
}
89
107
impl TokenInstruction {
90
108
/// Deserializes a byte buffer into an [TokenInstruction](enum.TokenInstruction.html)
Original file line number Diff line number Diff line change @@ -7,3 +7,4 @@ pub mod instruction;
7
7
pub mod option;
8
8
pub mod processor;
9
9
pub mod state;
10
+ pub mod native_token;
Original file line number Diff line number Diff line change
1
+
2
+ /// The token type for wrapped native SOL
3
+ solana_sdk:: declare_id!( "So11111111111111111111111111111111111111111" ) ;
You can’t perform that action at this time.
0 commit comments