Skip to main content

protochain_api/
protochain.solana.program.system.v1.rs

1// @generated
2// This file is @generated by prost-build.
3/// CreateRequest represents the parameters needed to create a new Solana account
4/// Maps to the Solana system program's create_account instruction
5#[allow(clippy::derive_partial_eq_without_eq)]
6#[derive(Clone, PartialEq, ::prost::Message)]
7pub struct CreateRequest {
8    /// The account that will pay for the new account creation (must be a signer)
9    #[prost(string, tag="1")]
10    pub payer: ::prost::alloc::string::String,
11    /// The public key of the new account to be created (must be a signer)
12    #[prost(string, tag="2")]
13    pub new_account: ::prost::alloc::string::String,
14    /// The program that will own the new account (defaults to system program)
15    #[prost(string, tag="3")]
16    pub owner: ::prost::alloc::string::String,
17    /// Amount of lamports to transfer to the new account
18    #[prost(uint64, tag="4")]
19    pub lamports: u64,
20    /// Number of bytes of memory to allocate for the account
21    #[prost(uint64, tag="5")]
22    pub space: u64,
23}
24/// TransferRequest transfers SOL between accounts
25#[allow(clippy::derive_partial_eq_without_eq)]
26#[derive(Clone, PartialEq, ::prost::Message)]
27pub struct TransferRequest {
28    /// The account sending the lamports (must be a signer)
29    #[prost(string, tag="1")]
30    pub from: ::prost::alloc::string::String,
31    /// The account receiving the lamports
32    #[prost(string, tag="2")]
33    pub to: ::prost::alloc::string::String,
34    /// Amount of lamports to transfer
35    #[prost(uint64, tag="3")]
36    pub lamports: u64,
37}
38/// AllocateRequest allocates space for an account
39#[allow(clippy::derive_partial_eq_without_eq)]
40#[derive(Clone, PartialEq, ::prost::Message)]
41pub struct AllocateRequest {
42    /// The account to allocate space for (must be a signer)
43    #[prost(string, tag="1")]
44    pub account: ::prost::alloc::string::String,
45    /// Number of bytes of memory to allocate
46    #[prost(uint64, tag="2")]
47    pub space: u64,
48}
49/// AssignRequest changes the owner of an account
50#[allow(clippy::derive_partial_eq_without_eq)]
51#[derive(Clone, PartialEq, ::prost::Message)]
52pub struct AssignRequest {
53    /// The account to assign a new owner to (must be a signer)
54    #[prost(string, tag="1")]
55    pub account: ::prost::alloc::string::String,
56    /// The new owner program
57    #[prost(string, tag="2")]
58    pub owner_program: ::prost::alloc::string::String,
59}
60/// CreateWithSeedRequest creates a new account with a seed
61#[allow(clippy::derive_partial_eq_without_eq)]
62#[derive(Clone, PartialEq, ::prost::Message)]
63pub struct CreateWithSeedRequest {
64    /// The account that will pay for the new account creation (must be a signer)
65    #[prost(string, tag="1")]
66    pub payer: ::prost::alloc::string::String,
67    /// The public key of the new account to be created
68    #[prost(string, tag="2")]
69    pub new_account: ::prost::alloc::string::String,
70    /// The base public key used to derive the new account address
71    #[prost(string, tag="3")]
72    pub base: ::prost::alloc::string::String,
73    /// The seed string used to derive the new account address
74    #[prost(string, tag="4")]
75    pub seed: ::prost::alloc::string::String,
76    /// Amount of lamports to transfer to the new account
77    #[prost(uint64, tag="5")]
78    pub lamports: u64,
79    /// Number of bytes of memory to allocate for the account
80    #[prost(uint64, tag="6")]
81    pub space: u64,
82}
83/// Extended request messages for new operations
84#[allow(clippy::derive_partial_eq_without_eq)]
85#[derive(Clone, PartialEq, ::prost::Message)]
86pub struct AllocateWithSeedRequest {
87    #[prost(string, tag="1")]
88    pub account: ::prost::alloc::string::String,
89    #[prost(string, tag="2")]
90    pub base: ::prost::alloc::string::String,
91    #[prost(string, tag="3")]
92    pub seed: ::prost::alloc::string::String,
93    #[prost(uint64, tag="4")]
94    pub space: u64,
95}
96#[allow(clippy::derive_partial_eq_without_eq)]
97#[derive(Clone, PartialEq, ::prost::Message)]
98pub struct AssignWithSeedRequest {
99    #[prost(string, tag="1")]
100    pub account: ::prost::alloc::string::String,
101    #[prost(string, tag="2")]
102    pub base: ::prost::alloc::string::String,
103    #[prost(string, tag="3")]
104    pub seed: ::prost::alloc::string::String,
105    #[prost(string, tag="4")]
106    pub owner_program: ::prost::alloc::string::String,
107}
108#[allow(clippy::derive_partial_eq_without_eq)]
109#[derive(Clone, PartialEq, ::prost::Message)]
110pub struct TransferWithSeedRequest {
111    #[prost(string, tag="1")]
112    pub from: ::prost::alloc::string::String,
113    #[prost(string, tag="2")]
114    pub from_base: ::prost::alloc::string::String,
115    #[prost(string, tag="3")]
116    pub from_seed: ::prost::alloc::string::String,
117    #[prost(string, tag="4")]
118    pub to: ::prost::alloc::string::String,
119    #[prost(uint64, tag="5")]
120    pub lamports: u64,
121}
122#[allow(clippy::derive_partial_eq_without_eq)]
123#[derive(Clone, PartialEq, ::prost::Message)]
124pub struct InitializeNonceAccountRequest {
125    #[prost(string, tag="1")]
126    pub nonce_account: ::prost::alloc::string::String,
127    #[prost(string, tag="2")]
128    pub authority: ::prost::alloc::string::String,
129}
130#[allow(clippy::derive_partial_eq_without_eq)]
131#[derive(Clone, PartialEq, ::prost::Message)]
132pub struct AuthorizeNonceAccountRequest {
133    #[prost(string, tag="1")]
134    pub nonce_account: ::prost::alloc::string::String,
135    #[prost(string, tag="2")]
136    pub current_authority: ::prost::alloc::string::String,
137    #[prost(string, tag="3")]
138    pub new_authority: ::prost::alloc::string::String,
139}
140#[allow(clippy::derive_partial_eq_without_eq)]
141#[derive(Clone, PartialEq, ::prost::Message)]
142pub struct WithdrawNonceAccountRequest {
143    #[prost(string, tag="1")]
144    pub nonce_account: ::prost::alloc::string::String,
145    #[prost(string, tag="2")]
146    pub authority: ::prost::alloc::string::String,
147    #[prost(string, tag="3")]
148    pub to: ::prost::alloc::string::String,
149    #[prost(uint64, tag="4")]
150    pub lamports: u64,
151}
152#[allow(clippy::derive_partial_eq_without_eq)]
153#[derive(Clone, PartialEq, ::prost::Message)]
154pub struct AdvanceNonceAccountRequest {
155    #[prost(string, tag="1")]
156    pub nonce_account: ::prost::alloc::string::String,
157    #[prost(string, tag="2")]
158    pub authority: ::prost::alloc::string::String,
159}
160#[allow(clippy::derive_partial_eq_without_eq)]
161#[derive(Clone, PartialEq, ::prost::Message)]
162pub struct UpgradeNonceAccountRequest {
163    #[prost(string, tag="1")]
164    pub nonce_account: ::prost::alloc::string::String,
165}
166/// Response messages - each RPC has its own response type containing the instruction
167#[allow(clippy::derive_partial_eq_without_eq)]
168#[derive(Clone, PartialEq, ::prost::Message)]
169pub struct CreateResponse {
170    #[prost(message, optional, tag="1")]
171    pub instruction: ::core::option::Option<super::super::super::transaction::v1::SolanaInstruction>,
172}
173#[allow(clippy::derive_partial_eq_without_eq)]
174#[derive(Clone, PartialEq, ::prost::Message)]
175pub struct TransferResponse {
176    #[prost(message, optional, tag="1")]
177    pub instruction: ::core::option::Option<super::super::super::transaction::v1::SolanaInstruction>,
178}
179#[allow(clippy::derive_partial_eq_without_eq)]
180#[derive(Clone, PartialEq, ::prost::Message)]
181pub struct AllocateResponse {
182    #[prost(message, optional, tag="1")]
183    pub instruction: ::core::option::Option<super::super::super::transaction::v1::SolanaInstruction>,
184}
185#[allow(clippy::derive_partial_eq_without_eq)]
186#[derive(Clone, PartialEq, ::prost::Message)]
187pub struct AssignResponse {
188    #[prost(message, optional, tag="1")]
189    pub instruction: ::core::option::Option<super::super::super::transaction::v1::SolanaInstruction>,
190}
191#[allow(clippy::derive_partial_eq_without_eq)]
192#[derive(Clone, PartialEq, ::prost::Message)]
193pub struct CreateWithSeedResponse {
194    #[prost(message, optional, tag="1")]
195    pub instruction: ::core::option::Option<super::super::super::transaction::v1::SolanaInstruction>,
196}
197#[allow(clippy::derive_partial_eq_without_eq)]
198#[derive(Clone, PartialEq, ::prost::Message)]
199pub struct AllocateWithSeedResponse {
200    #[prost(message, optional, tag="1")]
201    pub instruction: ::core::option::Option<super::super::super::transaction::v1::SolanaInstruction>,
202}
203#[allow(clippy::derive_partial_eq_without_eq)]
204#[derive(Clone, PartialEq, ::prost::Message)]
205pub struct AssignWithSeedResponse {
206    #[prost(message, optional, tag="1")]
207    pub instruction: ::core::option::Option<super::super::super::transaction::v1::SolanaInstruction>,
208}
209#[allow(clippy::derive_partial_eq_without_eq)]
210#[derive(Clone, PartialEq, ::prost::Message)]
211pub struct TransferWithSeedResponse {
212    #[prost(message, optional, tag="1")]
213    pub instruction: ::core::option::Option<super::super::super::transaction::v1::SolanaInstruction>,
214}
215#[allow(clippy::derive_partial_eq_without_eq)]
216#[derive(Clone, PartialEq, ::prost::Message)]
217pub struct InitializeNonceAccountResponse {
218    #[prost(message, optional, tag="1")]
219    pub instruction: ::core::option::Option<super::super::super::transaction::v1::SolanaInstruction>,
220}
221#[allow(clippy::derive_partial_eq_without_eq)]
222#[derive(Clone, PartialEq, ::prost::Message)]
223pub struct AuthorizeNonceAccountResponse {
224    #[prost(message, optional, tag="1")]
225    pub instruction: ::core::option::Option<super::super::super::transaction::v1::SolanaInstruction>,
226}
227#[allow(clippy::derive_partial_eq_without_eq)]
228#[derive(Clone, PartialEq, ::prost::Message)]
229pub struct WithdrawNonceAccountResponse {
230    #[prost(message, optional, tag="1")]
231    pub instruction: ::core::option::Option<super::super::super::transaction::v1::SolanaInstruction>,
232}
233#[allow(clippy::derive_partial_eq_without_eq)]
234#[derive(Clone, PartialEq, ::prost::Message)]
235pub struct AdvanceNonceAccountResponse {
236    #[prost(message, optional, tag="1")]
237    pub instruction: ::core::option::Option<super::super::super::transaction::v1::SolanaInstruction>,
238}
239#[allow(clippy::derive_partial_eq_without_eq)]
240#[derive(Clone, PartialEq, ::prost::Message)]
241pub struct UpgradeNonceAccountResponse {
242    #[prost(message, optional, tag="1")]
243    pub instruction: ::core::option::Option<super::super::super::transaction::v1::SolanaInstruction>,
244}
245include!("protochain.solana.program.system.v1.tonic.rs");
246// @@protoc_insertion_point(module)