@@ -28,22 +28,18 @@ service Account {
2828 rpc LinkAdditionalAccounts (LinkAdditionalAccountsRequest ) returns (LinkAdditionalAccountsResponse );
2929}
3030
31-
32-
3331message IsCodeAccountRequest {
3432 // The owner account to check against.
35- common.v1.SolanaAccountId owner = 1 ;
33+ common.v1.SolanaAccountId owner = 1 ;
3634
3735
3836 // The signature is of serialize(IsCodeAccountRequest) without this field set
3937 // using the private key of the owner account. This provides an authentication
4038 // mechanism to the RPC.
41- common.v1.Signature signature = 2 ;
39+ common.v1.Signature signature = 2 ;
4240
4341}
4442
45-
46-
4743message IsCodeAccountResponse {
4844 Result result = 1 ;
4945 enum Result {
@@ -54,62 +50,50 @@ message IsCodeAccountResponse {
5450 // The account exists, but at least one timelock account is unlocked.
5551 UNLOCKED_TIMELOCK_ACCOUNT = 2 ;
5652 }
57-
58-
5953}
6054
61-
62-
6355message GetTokenAccountInfosRequest {
6456 // The owner account, which can also be thought of as a parent account for this
6557 // RPC that links to one or more token accounts.
66- common.v1.SolanaAccountId owner = 1 ;
58+ common.v1.SolanaAccountId owner = 1 ;
6759
6860
6961 // The signature is of serialize(GetTokenAccountInfosRequest) without this field set
7062 // using the private key of the owner account. This provides an authentication
7163 // mechanism to the RPC.
72- common.v1.Signature signature = 2 ;
64+ common.v1.Signature signature = 2 ;
7365
7466}
7567
76-
77-
7868message GetTokenAccountInfosResponse {
7969 Result result = 1 ;
8070 enum Result {
8171 OK = 0 ;
8272 NOT_FOUND = 1 ;
8373 }
8474
85-
86-
8775 map <string , TokenAccountInfo > token_account_infos = 2 ;
8876}
8977
90-
91-
9278message LinkAdditionalAccountsRequest {
9379 // The owner account to link to
94- common.v1.SolanaAccountId owner = 1 ;
80+ common.v1.SolanaAccountId owner = 1 ;
9581
9682
9783 // The authority account derived off the user's 12 words, which contains
9884 // the USDC ATA (and potentially others in the future) that will be used
9985 // in swaps.
100- common.v1.SolanaAccountId swap_authority = 2 ;
86+ common.v1.SolanaAccountId swap_authority = 2 ;
10187
10288
10389 // Signature values for each account provided in this request. Each signature
10490 // must be generated without this array set. The expected ordering of signatures:
10591 // 1. owner
10692 // 2. swap_authority
107- repeated common.v1.Signature signatures = 3 ;
93+ repeated common.v1.Signature signatures = 3 ;
10894
10995}
11096
111-
112-
11397message LinkAdditionalAccountsResponse {
11498 Result result = 1 ;
11599 enum Result {
@@ -121,15 +105,11 @@ message LinkAdditionalAccountsResponse {
121105 // An account being linked is not valid
122106 INVALID_ACCOUNT = 2 ;
123107 }
124-
125-
126108}
127109
128-
129-
130110message TokenAccountInfo {
131111 // The token account's address
132- common.v1.SolanaAccountId address = 1 ;
112+ common.v1.SolanaAccountId address = 1 ;
133113
134114
135115 // The owner of the token account, which can also be thought of as a parent
@@ -143,7 +123,7 @@ message TokenAccountInfo {
143123 common.v1.SolanaAccountId authority = 3 ;
144124
145125 // The type of token account, which infers its intended use.
146- common.v1.AccountType account_type = 4 ;
126+ common.v1.AccountType account_type = 4 ;
147127
148128
149129 // The account's derivation index for applicable account types. When this field
@@ -164,8 +144,6 @@ message TokenAccountInfo {
164144 BALANCE_SOURCE_CACHE = 2 ;
165145 }
166146
167-
168-
169147 // The balance in quarks, as observed by Code. This may not reflect the value
170148 // on the blockchain and could be non-zero even if the account hasn't been created.
171149 // Use balance_source to determine how this value was calculated.
@@ -197,8 +175,6 @@ message TokenAccountInfo {
197175 MANAGEMENT_STATE_CLOSED = 7 ;
198176 }
199177
200-
201-
202178 // The state of the account on the blockchain.
203179 BlockchainState blockchain_state = 9 ;
204180 enum BlockchainState {
@@ -211,8 +187,6 @@ message TokenAccountInfo {
211187 BLOCKCHAIN_STATE_EXISTS = 2 ;
212188 }
213189
214-
215-
216190 // For temporary incoming accounts only. Flag indicates whether client must
217191 // actively try rotating it by issuing a ReceivePaymentsPrivately intent. In
218192 // general, clients should wait as long as possible until this flag is true
@@ -235,8 +209,6 @@ message TokenAccountInfo {
235209 CLAIM_STATE_EXPIRED = 3 ;
236210 }
237211
238-
239-
240212 // For account types used as an intermediary for sending money between two
241213 // users (eg. REMOTE_SEND_GIFT_CARD), this represents the original exchange
242214 // data used to fund the account. Over time, this value will become stale:
@@ -265,5 +237,3 @@ message TokenAccountInfo {
265237 // the tiem created on the blockchain.
266238 google.protobuf.Timestamp created_at = 17 ;
267239}
268-
269-
0 commit comments