update to monero-ts 0.9.6

This commit is contained in:
woodser 2024-01-27 17:36:42 -05:00
parent d6438f7895
commit 3345a6033b
6 changed files with 42 additions and 8 deletions

View File

@ -7178,6 +7178,9 @@ export class UserPayload extends jspb.Message {
getCookieMap(): jspb.Map<string, string>; getCookieMap(): jspb.Map<string, string>;
clearCookieMap(): UserPayload; clearCookieMap(): UserPayload;
getWalletCreationDate(): number;
setWalletCreationDate(value: number): UserPayload;
serializeBinary(): Uint8Array; serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): UserPayload.AsObject; toObject(includeInstance?: boolean): UserPayload.AsObject;
static toObject(includeInstance: boolean, msg: UserPayload): UserPayload.AsObject; static toObject(includeInstance: boolean, msg: UserPayload): UserPayload.AsObject;
@ -7204,6 +7207,7 @@ export namespace UserPayload {
acceptedRefundAgentsList: Array<RefundAgent.AsObject>, acceptedRefundAgentsList: Array<RefundAgent.AsObject>,
registeredRefundAgent?: RefundAgent.AsObject, registeredRefundAgent?: RefundAgent.AsObject,
cookieMap: Array<[string, string]>, cookieMap: Array<[string, string]>,
walletCreationDate: number,
} }
} }

View File

@ -57360,7 +57360,8 @@ proto.io.haveno.protobuffer.UserPayload.toObject = function(includeInstance, msg
acceptedRefundAgentsList: jspb.Message.toObjectList(msg.getAcceptedRefundAgentsList(), acceptedRefundAgentsList: jspb.Message.toObjectList(msg.getAcceptedRefundAgentsList(),
proto.io.haveno.protobuffer.RefundAgent.toObject, includeInstance), proto.io.haveno.protobuffer.RefundAgent.toObject, includeInstance),
registeredRefundAgent: (f = msg.getRegisteredRefundAgent()) && proto.io.haveno.protobuffer.RefundAgent.toObject(includeInstance, f), registeredRefundAgent: (f = msg.getRegisteredRefundAgent()) && proto.io.haveno.protobuffer.RefundAgent.toObject(includeInstance, f),
cookieMap: (f = msg.getCookieMap()) ? f.toObject(includeInstance, undefined) : [] cookieMap: (f = msg.getCookieMap()) ? f.toObject(includeInstance, undefined) : [],
walletCreationDate: jspb.Message.getFieldWithDefault(msg, 17, 0)
}; };
if (includeInstance) { if (includeInstance) {
@ -57476,6 +57477,10 @@ proto.io.haveno.protobuffer.UserPayload.deserializeBinaryFromReader = function(m
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
}); });
break; break;
case 17:
var value = /** @type {number} */ (reader.readInt64());
msg.setWalletCreationDate(value);
break;
default: default:
reader.skipField(); reader.skipField();
break; break;
@ -57627,6 +57632,13 @@ proto.io.haveno.protobuffer.UserPayload.serializeBinaryToWriter = function(messa
if (f && f.getLength() > 0) { if (f && f.getLength() > 0) {
f.serializeBinary(16, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); f.serializeBinary(16, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
} }
f = message.getWalletCreationDate();
if (f !== 0) {
writer.writeInt64(
17,
f
);
}
}; };
@ -58193,6 +58205,24 @@ proto.io.haveno.protobuffer.UserPayload.prototype.clearCookieMap = function() {
return this;}; return this;};
/**
* optional int64 wallet_creation_date = 17;
* @return {number}
*/
proto.io.haveno.protobuffer.UserPayload.prototype.getWalletCreationDate = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 17, 0));
};
/**
* @param {number} value
* @return {!proto.io.haveno.protobuffer.UserPayload} returns this
*/
proto.io.haveno.protobuffer.UserPayload.prototype.setWalletCreationDate = function(value) {
return jspb.Message.setProto3IntField(this, 17, value);
};

File diff suppressed because one or more lines are too long

8
package-lock.json generated
View File

@ -28,7 +28,7 @@
"eslint-plugin-import": "^2.27.5", "eslint-plugin-import": "^2.27.5",
"eslint-plugin-jsx-a11y": "^6.7.1", "eslint-plugin-jsx-a11y": "^6.7.1",
"jest": "^26.6.0", "jest": "^26.6.0",
"monero-ts": "^0.9.5", "monero-ts": "^0.9.6",
"typedoc": "^0.23.26", "typedoc": "^0.23.26",
"typedoc-plugin-missing-exports": "^1.0.0", "typedoc-plugin-missing-exports": "^1.0.0",
"typedoc-plugin-rename-defaults": "^0.6.4", "typedoc-plugin-rename-defaults": "^0.6.4",
@ -11905,9 +11905,9 @@
} }
}, },
"node_modules/monero-ts": { "node_modules/monero-ts": {
"version": "0.9.5", "version": "0.9.6",
"resolved": "https://registry.npmjs.org/monero-ts/-/monero-ts-0.9.5.tgz", "resolved": "https://registry.npmjs.org/monero-ts/-/monero-ts-0.9.6.tgz",
"integrity": "sha512-fdX0c2bN7wgIJnV5m9FvFSkKcqyw+/bB12r+5YXFppUSn8TPuQpMy7ZaxJRML8wNvD7MjbyHt2ku8nAd7sLMwQ==", "integrity": "sha512-iYsdoOiDeMfMrBaIJg0FjSlM1aFvKs+3gnZc5YUsgNCaoQvMixjTkwm70Bq63qj7gGgLqt1hcK2H39cEpOI29Q==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"@babel/runtime": "^7.23.2", "@babel/runtime": "^7.23.2",

View File

@ -54,7 +54,7 @@
"eslint-plugin-import": "^2.27.5", "eslint-plugin-import": "^2.27.5",
"eslint-plugin-jsx-a11y": "^6.7.1", "eslint-plugin-jsx-a11y": "^6.7.1",
"jest": "^26.6.0", "jest": "^26.6.0",
"monero-ts": "^0.9.5", "monero-ts": "^0.9.6",
"typedoc": "^0.23.26", "typedoc": "^0.23.26",
"typedoc-plugin-missing-exports": "^1.0.0", "typedoc-plugin-missing-exports": "^1.0.0",
"typedoc-plugin-rename-defaults": "^0.6.4", "typedoc-plugin-rename-defaults": "^0.6.4",

View File

@ -33,8 +33,8 @@ import path from "path";
import net from "net"; import net from "net";
import assert from "assert"; import assert from "assert";
import console from "console"; // import console because jest swallows messages in real time import console from "console"; // import console because jest swallows messages in real time
import moneroTs from "monero-ts";
import * as os from 'os'; import * as os from 'os';
import * as moneroTs from "monero-ts";
// ------------------------------ TEST CONFIG --------------------------------- // ------------------------------ TEST CONFIG ---------------------------------