Skip to content

Commit

Permalink
Works
Browse files Browse the repository at this point in the history
  • Loading branch information
tinystarinagalaxy committed Nov 22, 2022
1 parent c95bc96 commit 1f1f0a3
Show file tree
Hide file tree
Showing 6 changed files with 138 additions and 138 deletions.
40 changes: 20 additions & 20 deletions js/ffi/proto/ffi/ffi_pb.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import * as jspb from "google-protobuf";
import * as api_pb from "../api_pb";

export class SolanaAccountsRequest extends jspb.Message {
clearAccountidsList(): void;
getAccountidsList(): Array<string>;
setAccountidsList(value: Array<string>): SolanaAccountsRequest;
addAccountids(value: string, index?: number): string;
clearAccountpksList(): void;
getAccountpksList(): Array<string>;
setAccountpksList(value: Array<string>): SolanaAccountsRequest;
addAccountpks(value: string, index?: number): string;

serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): SolanaAccountsRequest.AsObject;
Expand All @@ -25,7 +25,7 @@ export class SolanaAccountsRequest extends jspb.Message {

export namespace SolanaAccountsRequest {
export type AsObject = {
accountidsList: Array<string>,
accountpksList: Array<string>,
}
}

Expand All @@ -34,10 +34,10 @@ export class SolanaAccountsResponse extends jspb.Message {
getAccountsList(): Array<SolanaAccount>;
setAccountsList(value: Array<SolanaAccount>): SolanaAccountsResponse;
addAccounts(value?: SolanaAccount, index?: number): SolanaAccount;
clearAccountidsList(): void;
getAccountidsList(): Array<string>;
setAccountidsList(value: Array<string>): SolanaAccountsResponse;
addAccountids(value: string, index?: number): string;
clearAccountpksList(): void;
getAccountpksList(): Array<string>;
setAccountpksList(value: Array<string>): SolanaAccountsResponse;
addAccountpks(value: string, index?: number): string;
getError(): string;
setError(value: string): SolanaAccountsResponse;

Expand All @@ -54,7 +54,7 @@ export class SolanaAccountsResponse extends jspb.Message {
export namespace SolanaAccountsResponse {
export type AsObject = {
accountsList: Array<SolanaAccount.AsObject>,
accountidsList: Array<string>,
accountpksList: Array<string>,
error: string,
}
}
Expand Down Expand Up @@ -117,10 +117,10 @@ export namespace JupiterPairToAccountsRequest {
}

export class JupiterPairToAccountsResponse extends jspb.Message {
clearAccountidsList(): void;
getAccountidsList(): Array<string>;
setAccountidsList(value: Array<string>): JupiterPairToAccountsResponse;
addAccountids(value: string, index?: number): string;
clearAccountpksList(): void;
getAccountpksList(): Array<string>;
setAccountpksList(value: Array<string>): JupiterPairToAccountsResponse;
addAccountpks(value: string, index?: number): string;

serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): JupiterPairToAccountsResponse.AsObject;
Expand All @@ -134,7 +134,7 @@ export class JupiterPairToAccountsResponse extends jspb.Message {

export namespace JupiterPairToAccountsResponse {
export type AsObject = {
accountidsList: Array<string>,
accountpksList: Array<string>,
}
}

Expand All @@ -158,10 +158,10 @@ export namespace JupiterIsReadyRequest {
export class JupiterIsReadyResponse extends jspb.Message {
getReady(): boolean;
setReady(value: boolean): JupiterIsReadyResponse;
clearAccountidsList(): void;
getAccountidsList(): Array<string>;
setAccountidsList(value: Array<string>): JupiterIsReadyResponse;
addAccountids(value: string, index?: number): string;
clearAccountpksList(): void;
getAccountpksList(): Array<string>;
setAccountpksList(value: Array<string>): JupiterIsReadyResponse;
addAccountpks(value: string, index?: number): string;

serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): JupiterIsReadyResponse.AsObject;
Expand All @@ -176,7 +176,7 @@ export class JupiterIsReadyResponse extends jspb.Message {
export namespace JupiterIsReadyResponse {
export type AsObject = {
ready: boolean,
accountidsList: Array<string>,
accountpksList: Array<string>,
}
}

Expand Down
72 changes: 36 additions & 36 deletions js/ffi/proto/ffi/ffi_pb.js
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ proto.ffi.SolanaAccountsRequest.prototype.toObject = function(opt_includeInstanc
*/
proto.ffi.SolanaAccountsRequest.toObject = function(includeInstance, msg) {
var f, obj = {
accountidsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
accountpksList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
};

if (includeInstance) {
Expand Down Expand Up @@ -426,7 +426,7 @@ proto.ffi.SolanaAccountsRequest.deserializeBinaryFromReader = function(msg, read
switch (field) {
case 1:
var value = /** @type {string} */ (reader.readString());
msg.addAccountids(value);
msg.addAccountpks(value);
break;
default:
reader.skipField();
Expand Down Expand Up @@ -457,7 +457,7 @@ proto.ffi.SolanaAccountsRequest.prototype.serializeBinary = function() {
*/
proto.ffi.SolanaAccountsRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getAccountidsList();
f = message.getAccountpksList();
if (f.length > 0) {
writer.writeRepeatedString(
1,
Expand All @@ -468,10 +468,10 @@ proto.ffi.SolanaAccountsRequest.serializeBinaryToWriter = function(message, writ


/**
* repeated string accountIDs = 1;
* repeated string accountPks = 1;
* @return {!Array<string>}
*/
proto.ffi.SolanaAccountsRequest.prototype.getAccountidsList = function() {
proto.ffi.SolanaAccountsRequest.prototype.getAccountpksList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
};

Expand All @@ -480,7 +480,7 @@ proto.ffi.SolanaAccountsRequest.prototype.getAccountidsList = function() {
* @param {!Array<string>} value
* @return {!proto.ffi.SolanaAccountsRequest} returns this
*/
proto.ffi.SolanaAccountsRequest.prototype.setAccountidsList = function(value) {
proto.ffi.SolanaAccountsRequest.prototype.setAccountpksList = function(value) {
return jspb.Message.setField(this, 1, value || []);
};

Expand All @@ -490,7 +490,7 @@ proto.ffi.SolanaAccountsRequest.prototype.setAccountidsList = function(value) {
* @param {number=} opt_index
* @return {!proto.ffi.SolanaAccountsRequest} returns this
*/
proto.ffi.SolanaAccountsRequest.prototype.addAccountids = function(value, opt_index) {
proto.ffi.SolanaAccountsRequest.prototype.addAccountpks = function(value, opt_index) {
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
};

Expand All @@ -499,8 +499,8 @@ proto.ffi.SolanaAccountsRequest.prototype.addAccountids = function(value, opt_in
* Clears the list making it empty but non-null.
* @return {!proto.ffi.SolanaAccountsRequest} returns this
*/
proto.ffi.SolanaAccountsRequest.prototype.clearAccountidsList = function() {
return this.setAccountidsList([]);
proto.ffi.SolanaAccountsRequest.prototype.clearAccountpksList = function() {
return this.setAccountpksList([]);
};


Expand Down Expand Up @@ -545,7 +545,7 @@ proto.ffi.SolanaAccountsResponse.toObject = function(includeInstance, msg) {
var f, obj = {
accountsList: jspb.Message.toObjectList(msg.getAccountsList(),
proto.ffi.SolanaAccount.toObject, includeInstance),
accountidsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
accountpksList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
error: jspb.Message.getFieldWithDefault(msg, 3, "")
};

Expand Down Expand Up @@ -590,7 +590,7 @@ proto.ffi.SolanaAccountsResponse.deserializeBinaryFromReader = function(msg, rea
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.addAccountids(value);
msg.addAccountpks(value);
break;
case 3:
var value = /** @type {string} */ (reader.readString());
Expand Down Expand Up @@ -633,7 +633,7 @@ proto.ffi.SolanaAccountsResponse.serializeBinaryToWriter = function(message, wri
proto.ffi.SolanaAccount.serializeBinaryToWriter
);
}
f = message.getAccountidsList();
f = message.getAccountpksList();
if (f.length > 0) {
writer.writeRepeatedString(
2,
Expand Down Expand Up @@ -689,10 +689,10 @@ proto.ffi.SolanaAccountsResponse.prototype.clearAccountsList = function() {


/**
* repeated string accountIDs = 2;
* repeated string accountPks = 2;
* @return {!Array<string>}
*/
proto.ffi.SolanaAccountsResponse.prototype.getAccountidsList = function() {
proto.ffi.SolanaAccountsResponse.prototype.getAccountpksList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
};

Expand All @@ -701,7 +701,7 @@ proto.ffi.SolanaAccountsResponse.prototype.getAccountidsList = function() {
* @param {!Array<string>} value
* @return {!proto.ffi.SolanaAccountsResponse} returns this
*/
proto.ffi.SolanaAccountsResponse.prototype.setAccountidsList = function(value) {
proto.ffi.SolanaAccountsResponse.prototype.setAccountpksList = function(value) {
return jspb.Message.setField(this, 2, value || []);
};

Expand All @@ -711,7 +711,7 @@ proto.ffi.SolanaAccountsResponse.prototype.setAccountidsList = function(value) {
* @param {number=} opt_index
* @return {!proto.ffi.SolanaAccountsResponse} returns this
*/
proto.ffi.SolanaAccountsResponse.prototype.addAccountids = function(value, opt_index) {
proto.ffi.SolanaAccountsResponse.prototype.addAccountpks = function(value, opt_index) {
return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
};

Expand All @@ -720,8 +720,8 @@ proto.ffi.SolanaAccountsResponse.prototype.addAccountids = function(value, opt_i
* Clears the list making it empty but non-null.
* @return {!proto.ffi.SolanaAccountsResponse} returns this
*/
proto.ffi.SolanaAccountsResponse.prototype.clearAccountidsList = function() {
return this.setAccountidsList([]);
proto.ffi.SolanaAccountsResponse.prototype.clearAccountpksList = function() {
return this.setAccountpksList([]);
};


Expand Down Expand Up @@ -1216,7 +1216,7 @@ proto.ffi.JupiterPairToAccountsResponse.prototype.toObject = function(opt_includ
*/
proto.ffi.JupiterPairToAccountsResponse.toObject = function(includeInstance, msg) {
var f, obj = {
accountidsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
accountpksList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
};

if (includeInstance) {
Expand Down Expand Up @@ -1255,7 +1255,7 @@ proto.ffi.JupiterPairToAccountsResponse.deserializeBinaryFromReader = function(m
switch (field) {
case 2:
var value = /** @type {string} */ (reader.readString());
msg.addAccountids(value);
msg.addAccountpks(value);
break;
default:
reader.skipField();
Expand Down Expand Up @@ -1286,7 +1286,7 @@ proto.ffi.JupiterPairToAccountsResponse.prototype.serializeBinary = function() {
*/
proto.ffi.JupiterPairToAccountsResponse.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getAccountidsList();
f = message.getAccountpksList();
if (f.length > 0) {
writer.writeRepeatedString(
2,
Expand All @@ -1297,10 +1297,10 @@ proto.ffi.JupiterPairToAccountsResponse.serializeBinaryToWriter = function(messa


/**
* repeated string accountIDs = 2;
* repeated string accountPks = 2;
* @return {!Array<string>}
*/
proto.ffi.JupiterPairToAccountsResponse.prototype.getAccountidsList = function() {
proto.ffi.JupiterPairToAccountsResponse.prototype.getAccountpksList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
};

Expand All @@ -1309,7 +1309,7 @@ proto.ffi.JupiterPairToAccountsResponse.prototype.getAccountidsList = function()
* @param {!Array<string>} value
* @return {!proto.ffi.JupiterPairToAccountsResponse} returns this
*/
proto.ffi.JupiterPairToAccountsResponse.prototype.setAccountidsList = function(value) {
proto.ffi.JupiterPairToAccountsResponse.prototype.setAccountpksList = function(value) {
return jspb.Message.setField(this, 2, value || []);
};

Expand All @@ -1319,7 +1319,7 @@ proto.ffi.JupiterPairToAccountsResponse.prototype.setAccountidsList = function(v
* @param {number=} opt_index
* @return {!proto.ffi.JupiterPairToAccountsResponse} returns this
*/
proto.ffi.JupiterPairToAccountsResponse.prototype.addAccountids = function(value, opt_index) {
proto.ffi.JupiterPairToAccountsResponse.prototype.addAccountpks = function(value, opt_index) {
return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
};

Expand All @@ -1328,8 +1328,8 @@ proto.ffi.JupiterPairToAccountsResponse.prototype.addAccountids = function(value
* Clears the list making it empty but non-null.
* @return {!proto.ffi.JupiterPairToAccountsResponse} returns this
*/
proto.ffi.JupiterPairToAccountsResponse.prototype.clearAccountidsList = function() {
return this.setAccountidsList([]);
proto.ffi.JupiterPairToAccountsResponse.prototype.clearAccountpksList = function() {
return this.setAccountpksList([]);
};


Expand Down Expand Up @@ -1474,7 +1474,7 @@ proto.ffi.JupiterIsReadyResponse.prototype.toObject = function(opt_includeInstan
proto.ffi.JupiterIsReadyResponse.toObject = function(includeInstance, msg) {
var f, obj = {
ready: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
accountidsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
accountpksList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
};

if (includeInstance) {
Expand Down Expand Up @@ -1517,7 +1517,7 @@ proto.ffi.JupiterIsReadyResponse.deserializeBinaryFromReader = function(msg, rea
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.addAccountids(value);
msg.addAccountpks(value);
break;
default:
reader.skipField();
Expand Down Expand Up @@ -1555,7 +1555,7 @@ proto.ffi.JupiterIsReadyResponse.serializeBinaryToWriter = function(message, wri
f
);
}
f = message.getAccountidsList();
f = message.getAccountpksList();
if (f.length > 0) {
writer.writeRepeatedString(
2,
Expand Down Expand Up @@ -1584,10 +1584,10 @@ proto.ffi.JupiterIsReadyResponse.prototype.setReady = function(value) {


/**
* repeated string accountIDs = 2;
* repeated string accountPks = 2;
* @return {!Array<string>}
*/
proto.ffi.JupiterIsReadyResponse.prototype.getAccountidsList = function() {
proto.ffi.JupiterIsReadyResponse.prototype.getAccountpksList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
};

Expand All @@ -1596,7 +1596,7 @@ proto.ffi.JupiterIsReadyResponse.prototype.getAccountidsList = function() {
* @param {!Array<string>} value
* @return {!proto.ffi.JupiterIsReadyResponse} returns this
*/
proto.ffi.JupiterIsReadyResponse.prototype.setAccountidsList = function(value) {
proto.ffi.JupiterIsReadyResponse.prototype.setAccountpksList = function(value) {
return jspb.Message.setField(this, 2, value || []);
};

Expand All @@ -1606,7 +1606,7 @@ proto.ffi.JupiterIsReadyResponse.prototype.setAccountidsList = function(value) {
* @param {number=} opt_index
* @return {!proto.ffi.JupiterIsReadyResponse} returns this
*/
proto.ffi.JupiterIsReadyResponse.prototype.addAccountids = function(value, opt_index) {
proto.ffi.JupiterIsReadyResponse.prototype.addAccountpks = function(value, opt_index) {
return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
};

Expand All @@ -1615,8 +1615,8 @@ proto.ffi.JupiterIsReadyResponse.prototype.addAccountids = function(value, opt_i
* Clears the list making it empty but non-null.
* @return {!proto.ffi.JupiterIsReadyResponse} returns this
*/
proto.ffi.JupiterIsReadyResponse.prototype.clearAccountidsList = function() {
return this.setAccountidsList([]);
proto.ffi.JupiterIsReadyResponse.prototype.clearAccountpksList = function() {
return this.setAccountpksList([]);
};


Expand Down
Loading

0 comments on commit 1f1f0a3

Please sign in to comment.