Skip to content

Commit 5320c0a

Browse files
committed
Add filters to GetTokenAccountInfosRequest
1 parent c66659a commit 5320c0a

File tree

7 files changed

+281
-172
lines changed

7 files changed

+281
-172
lines changed

generated/go/account/v1/account_service.pb.go

Lines changed: 230 additions & 169 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

generated/go/account/v1/account_service.pb.validate.go

Lines changed: 21 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

generated/go/transaction/v2/transaction_service.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

generated/protobuf-es/account/v1/account_service_pb.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,25 @@ export class GetTokenAccountInfosRequest extends Message<GetTokenAccountInfosReq
169169
*/
170170
requestingOwnerSignature?: Signature;
171171

172+
/**
173+
* Filter to apply to limit response sizes
174+
*
175+
* @generated from oneof code.account.v1.GetTokenAccountInfosRequest.Filter
176+
*/
177+
Filter: {
178+
/**
179+
* @generated from field: code.common.v1.SolanaAccountId filter_by_token_address = 10;
180+
*/
181+
value: SolanaAccountId;
182+
case: "filterByTokenAddress";
183+
} | {
184+
/**
185+
* @generated from field: code.common.v1.AccountType filter_by_account_type = 11;
186+
*/
187+
value: AccountType;
188+
case: "filterByAccountType";
189+
} | { case: undefined; value?: undefined } = { case: undefined };
190+
172191
constructor(data?: PartialMessage<GetTokenAccountInfosRequest>) {
173192
super();
174193
proto3.util.initPartial(data, this);
@@ -181,6 +200,8 @@ export class GetTokenAccountInfosRequest extends Message<GetTokenAccountInfosReq
181200
{ no: 2, name: "signature", kind: "message", T: Signature },
182201
{ no: 3, name: "requesting_owner", kind: "message", T: SolanaAccountId },
183202
{ no: 4, name: "requesting_owner_signature", kind: "message", T: Signature },
203+
{ no: 10, name: "filter_by_token_address", kind: "message", T: SolanaAccountId, oneof: "Filter" },
204+
{ no: 11, name: "filter_by_account_type", kind: "enum", T: proto3.getEnumType(AccountType), oneof: "Filter" },
184205
]);
185206

186207
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetTokenAccountInfosRequest {

generated/protobuf-es/transaction/v2/transaction_service_pb.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1417,7 +1417,7 @@ export class ReceivePaymentsPubliclyMetadata extends Message<ReceivePaymentsPubl
14171417
*
14181418
* for distribution in distributions[:len(distributions)-1]
14191419
* actions.push_back(NoPrivacyTransferAction(POOL, distribution.destination, distributions.quarks))
1420-
* actions.push_back(NoPrivacyWithdrawAction(POOL, distributions[:len(distributions)-1].destination, distributions[:len(distributions)-1].quarks))
1420+
* actions.push_back(NoPrivacyWithdrawAction(POOL, distributions[len(distributions)-1].destination, distributions[len(distributions)-1].quarks))
14211421
*
14221422
* Notes:
14231423
* - All funds must distributed. The balance of the pool must be zero at the end of the intent

proto/account/v1/account_service.proto

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,12 @@ message GetTokenAccountInfosRequest {
6767
//
6868
// This must be set when requesting_owner is present.
6969
common.v1.Signature requesting_owner_signature = 4;
70+
71+
// Filter to apply to limit response sizes
72+
oneof Filter {
73+
common.v1.SolanaAccountId filter_by_token_address = 10;
74+
common.v1.AccountType filter_by_account_type = 11;
75+
}
7076
}
7177

7278
message GetTokenAccountInfosResponse {

proto/transaction/v2/transaction_service.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ message ReceivePaymentsPubliclyMetadata {
431431
//
432432
// for distribution in distributions[:len(distributions)-1]
433433
// actions.push_back(NoPrivacyTransferAction(POOL, distribution.destination, distributions.quarks))
434-
// actions.push_back(NoPrivacyWithdrawAction(POOL, distributions[:len(distributions)-1].destination, distributions[:len(distributions)-1].quarks))
434+
// actions.push_back(NoPrivacyWithdrawAction(POOL, distributions[len(distributions)-1].destination, distributions[len(distributions)-1].quarks))
435435
//
436436
// Notes:
437437
// - All funds must distributed. The balance of the pool must be zero at the end of the intent

0 commit comments

Comments
 (0)