bump version to v0.0.14, update dist

This commit is contained in:
woodser 2023-08-21 16:56:47 -04:00
parent b2c89fb76a
commit 62f3781bee
6 changed files with 383 additions and 579 deletions

View File

@ -1639,9 +1639,6 @@ export class OfferInfo extends jspb.Message {
getSellerSecurityDeposit(): string; getSellerSecurityDeposit(): string;
setSellerSecurityDeposit(value: string): OfferInfo; setSellerSecurityDeposit(value: string): OfferInfo;
getOfferFeeTxId(): string;
setOfferFeeTxId(value: string): OfferInfo;
getMakerFee(): string; getMakerFee(): string;
setMakerFee(value: string): OfferInfo; setMakerFee(value: string): OfferInfo;
@ -1695,7 +1692,6 @@ export namespace OfferInfo {
date: number, date: number,
state: string, state: string,
sellerSecurityDeposit: string, sellerSecurityDeposit: string,
offerFeeTxId: string,
makerFee: string, makerFee: string,
isActivated: boolean, isActivated: boolean,
isMyOffer: boolean, isMyOffer: boolean,

View File

@ -15332,15 +15332,14 @@ proto.io.haveno.protobuffer.OfferInfo.toObject = function(includeInstance, msg)
date: jspb.Message.getFieldWithDefault(msg, 17, 0), date: jspb.Message.getFieldWithDefault(msg, 17, 0),
state: jspb.Message.getFieldWithDefault(msg, 18, ""), state: jspb.Message.getFieldWithDefault(msg, 18, ""),
sellerSecurityDeposit: jspb.Message.getFieldWithDefault(msg, 19, "0"), sellerSecurityDeposit: jspb.Message.getFieldWithDefault(msg, 19, "0"),
offerFeeTxId: jspb.Message.getFieldWithDefault(msg, 20, ""), makerFee: jspb.Message.getFieldWithDefault(msg, 20, "0"),
makerFee: jspb.Message.getFieldWithDefault(msg, 22, "0"), isActivated: jspb.Message.getBooleanFieldWithDefault(msg, 21, false),
isActivated: jspb.Message.getBooleanFieldWithDefault(msg, 23, false), isMyOffer: jspb.Message.getBooleanFieldWithDefault(msg, 22, false),
isMyOffer: jspb.Message.getBooleanFieldWithDefault(msg, 24, false), ownerNodeAddress: jspb.Message.getFieldWithDefault(msg, 23, ""),
ownerNodeAddress: jspb.Message.getFieldWithDefault(msg, 25, ""), pubKeyRing: jspb.Message.getFieldWithDefault(msg, 24, ""),
pubKeyRing: jspb.Message.getFieldWithDefault(msg, 26, ""), versionNr: jspb.Message.getFieldWithDefault(msg, 25, ""),
versionNr: jspb.Message.getFieldWithDefault(msg, 27, ""), protocolVersion: jspb.Message.getFieldWithDefault(msg, 26, 0),
protocolVersion: jspb.Message.getFieldWithDefault(msg, 28, 0), arbitratorSigner: jspb.Message.getFieldWithDefault(msg, 27, "")
arbitratorSigner: jspb.Message.getFieldWithDefault(msg, 29, "")
}; };
if (includeInstance) { if (includeInstance) {
@ -15454,38 +15453,34 @@ proto.io.haveno.protobuffer.OfferInfo.deserializeBinaryFromReader = function(msg
msg.setSellerSecurityDeposit(value); msg.setSellerSecurityDeposit(value);
break; break;
case 20: case 20:
var value = /** @type {string} */ (reader.readString());
msg.setOfferFeeTxId(value);
break;
case 22:
var value = /** @type {string} */ (reader.readUint64String()); var value = /** @type {string} */ (reader.readUint64String());
msg.setMakerFee(value); msg.setMakerFee(value);
break; break;
case 23: case 21:
var value = /** @type {boolean} */ (reader.readBool()); var value = /** @type {boolean} */ (reader.readBool());
msg.setIsActivated(value); msg.setIsActivated(value);
break; break;
case 24: case 22:
var value = /** @type {boolean} */ (reader.readBool()); var value = /** @type {boolean} */ (reader.readBool());
msg.setIsMyOffer(value); msg.setIsMyOffer(value);
break; break;
case 25: case 23:
var value = /** @type {string} */ (reader.readString()); var value = /** @type {string} */ (reader.readString());
msg.setOwnerNodeAddress(value); msg.setOwnerNodeAddress(value);
break; break;
case 26: case 24:
var value = /** @type {string} */ (reader.readString()); var value = /** @type {string} */ (reader.readString());
msg.setPubKeyRing(value); msg.setPubKeyRing(value);
break; break;
case 27: case 25:
var value = /** @type {string} */ (reader.readString()); var value = /** @type {string} */ (reader.readString());
msg.setVersionNr(value); msg.setVersionNr(value);
break; break;
case 28: case 26:
var value = /** @type {number} */ (reader.readInt32()); var value = /** @type {number} */ (reader.readInt32());
msg.setProtocolVersion(value); msg.setProtocolVersion(value);
break; break;
case 29: case 27:
var value = /** @type {string} */ (reader.readString()); var value = /** @type {string} */ (reader.readString());
msg.setArbitratorSigner(value); msg.setArbitratorSigner(value);
break; break;
@ -15651,66 +15646,59 @@ proto.io.haveno.protobuffer.OfferInfo.serializeBinaryToWriter = function(message
f f
); );
} }
f = message.getOfferFeeTxId();
if (f.length > 0) {
writer.writeString(
20,
f
);
}
f = message.getMakerFee(); f = message.getMakerFee();
if (parseInt(f, 10) !== 0) { if (parseInt(f, 10) !== 0) {
writer.writeUint64String( writer.writeUint64String(
22, 20,
f f
); );
} }
f = message.getIsActivated(); f = message.getIsActivated();
if (f) { if (f) {
writer.writeBool( writer.writeBool(
23, 21,
f f
); );
} }
f = message.getIsMyOffer(); f = message.getIsMyOffer();
if (f) { if (f) {
writer.writeBool( writer.writeBool(
24, 22,
f f
); );
} }
f = message.getOwnerNodeAddress(); f = message.getOwnerNodeAddress();
if (f.length > 0) { if (f.length > 0) {
writer.writeString( writer.writeString(
25, 23,
f f
); );
} }
f = message.getPubKeyRing(); f = message.getPubKeyRing();
if (f.length > 0) { if (f.length > 0) {
writer.writeString( writer.writeString(
26, 24,
f f
); );
} }
f = message.getVersionNr(); f = message.getVersionNr();
if (f.length > 0) { if (f.length > 0) {
writer.writeString( writer.writeString(
27, 25,
f f
); );
} }
f = message.getProtocolVersion(); f = message.getProtocolVersion();
if (f !== 0) { if (f !== 0) {
writer.writeInt32( writer.writeInt32(
28, 26,
f f
); );
} }
f = message.getArbitratorSigner(); f = message.getArbitratorSigner();
if (f.length > 0) { if (f.length > 0) {
writer.writeString( writer.writeString(
29, 27,
f f
); );
} }
@ -16060,29 +16048,11 @@ proto.io.haveno.protobuffer.OfferInfo.prototype.setSellerSecurityDeposit = funct
/** /**
* optional string offer_fee_tx_id = 20; * optional uint64 maker_fee = 20;
* @return {string}
*/
proto.io.haveno.protobuffer.OfferInfo.prototype.getOfferFeeTxId = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 20, ""));
};
/**
* @param {string} value
* @return {!proto.io.haveno.protobuffer.OfferInfo} returns this
*/
proto.io.haveno.protobuffer.OfferInfo.prototype.setOfferFeeTxId = function(value) {
return jspb.Message.setProto3StringField(this, 20, value);
};
/**
* optional uint64 maker_fee = 22;
* @return {string} * @return {string}
*/ */
proto.io.haveno.protobuffer.OfferInfo.prototype.getMakerFee = function() { proto.io.haveno.protobuffer.OfferInfo.prototype.getMakerFee = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 22, "0")); return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 20, "0"));
}; };
@ -16091,16 +16061,16 @@ proto.io.haveno.protobuffer.OfferInfo.prototype.getMakerFee = function() {
* @return {!proto.io.haveno.protobuffer.OfferInfo} returns this * @return {!proto.io.haveno.protobuffer.OfferInfo} returns this
*/ */
proto.io.haveno.protobuffer.OfferInfo.prototype.setMakerFee = function(value) { proto.io.haveno.protobuffer.OfferInfo.prototype.setMakerFee = function(value) {
return jspb.Message.setProto3StringIntField(this, 22, value); return jspb.Message.setProto3StringIntField(this, 20, value);
}; };
/** /**
* optional bool is_activated = 23; * optional bool is_activated = 21;
* @return {boolean} * @return {boolean}
*/ */
proto.io.haveno.protobuffer.OfferInfo.prototype.getIsActivated = function() { proto.io.haveno.protobuffer.OfferInfo.prototype.getIsActivated = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 23, false)); return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 21, false));
}; };
@ -16109,16 +16079,16 @@ proto.io.haveno.protobuffer.OfferInfo.prototype.getIsActivated = function() {
* @return {!proto.io.haveno.protobuffer.OfferInfo} returns this * @return {!proto.io.haveno.protobuffer.OfferInfo} returns this
*/ */
proto.io.haveno.protobuffer.OfferInfo.prototype.setIsActivated = function(value) { proto.io.haveno.protobuffer.OfferInfo.prototype.setIsActivated = function(value) {
return jspb.Message.setProto3BooleanField(this, 23, value); return jspb.Message.setProto3BooleanField(this, 21, value);
}; };
/** /**
* optional bool is_my_offer = 24; * optional bool is_my_offer = 22;
* @return {boolean} * @return {boolean}
*/ */
proto.io.haveno.protobuffer.OfferInfo.prototype.getIsMyOffer = function() { proto.io.haveno.protobuffer.OfferInfo.prototype.getIsMyOffer = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 24, false)); return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 22, false));
}; };
@ -16127,16 +16097,16 @@ proto.io.haveno.protobuffer.OfferInfo.prototype.getIsMyOffer = function() {
* @return {!proto.io.haveno.protobuffer.OfferInfo} returns this * @return {!proto.io.haveno.protobuffer.OfferInfo} returns this
*/ */
proto.io.haveno.protobuffer.OfferInfo.prototype.setIsMyOffer = function(value) { proto.io.haveno.protobuffer.OfferInfo.prototype.setIsMyOffer = function(value) {
return jspb.Message.setProto3BooleanField(this, 24, value); return jspb.Message.setProto3BooleanField(this, 22, value);
}; };
/** /**
* optional string owner_node_address = 25; * optional string owner_node_address = 23;
* @return {string} * @return {string}
*/ */
proto.io.haveno.protobuffer.OfferInfo.prototype.getOwnerNodeAddress = function() { proto.io.haveno.protobuffer.OfferInfo.prototype.getOwnerNodeAddress = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 25, "")); return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 23, ""));
}; };
@ -16145,16 +16115,16 @@ proto.io.haveno.protobuffer.OfferInfo.prototype.getOwnerNodeAddress = function()
* @return {!proto.io.haveno.protobuffer.OfferInfo} returns this * @return {!proto.io.haveno.protobuffer.OfferInfo} returns this
*/ */
proto.io.haveno.protobuffer.OfferInfo.prototype.setOwnerNodeAddress = function(value) { proto.io.haveno.protobuffer.OfferInfo.prototype.setOwnerNodeAddress = function(value) {
return jspb.Message.setProto3StringField(this, 25, value); return jspb.Message.setProto3StringField(this, 23, value);
}; };
/** /**
* optional string pub_key_ring = 26; * optional string pub_key_ring = 24;
* @return {string} * @return {string}
*/ */
proto.io.haveno.protobuffer.OfferInfo.prototype.getPubKeyRing = function() { proto.io.haveno.protobuffer.OfferInfo.prototype.getPubKeyRing = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 26, "")); return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 24, ""));
}; };
@ -16163,16 +16133,16 @@ proto.io.haveno.protobuffer.OfferInfo.prototype.getPubKeyRing = function() {
* @return {!proto.io.haveno.protobuffer.OfferInfo} returns this * @return {!proto.io.haveno.protobuffer.OfferInfo} returns this
*/ */
proto.io.haveno.protobuffer.OfferInfo.prototype.setPubKeyRing = function(value) { proto.io.haveno.protobuffer.OfferInfo.prototype.setPubKeyRing = function(value) {
return jspb.Message.setProto3StringField(this, 26, value); return jspb.Message.setProto3StringField(this, 24, value);
}; };
/** /**
* optional string version_nr = 27; * optional string version_nr = 25;
* @return {string} * @return {string}
*/ */
proto.io.haveno.protobuffer.OfferInfo.prototype.getVersionNr = function() { proto.io.haveno.protobuffer.OfferInfo.prototype.getVersionNr = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 27, "")); return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 25, ""));
}; };
@ -16181,16 +16151,16 @@ proto.io.haveno.protobuffer.OfferInfo.prototype.getVersionNr = function() {
* @return {!proto.io.haveno.protobuffer.OfferInfo} returns this * @return {!proto.io.haveno.protobuffer.OfferInfo} returns this
*/ */
proto.io.haveno.protobuffer.OfferInfo.prototype.setVersionNr = function(value) { proto.io.haveno.protobuffer.OfferInfo.prototype.setVersionNr = function(value) {
return jspb.Message.setProto3StringField(this, 27, value); return jspb.Message.setProto3StringField(this, 25, value);
}; };
/** /**
* optional int32 protocol_version = 28; * optional int32 protocol_version = 26;
* @return {number} * @return {number}
*/ */
proto.io.haveno.protobuffer.OfferInfo.prototype.getProtocolVersion = function() { proto.io.haveno.protobuffer.OfferInfo.prototype.getProtocolVersion = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 28, 0)); return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 26, 0));
}; };
@ -16199,16 +16169,16 @@ proto.io.haveno.protobuffer.OfferInfo.prototype.getProtocolVersion = function()
* @return {!proto.io.haveno.protobuffer.OfferInfo} returns this * @return {!proto.io.haveno.protobuffer.OfferInfo} returns this
*/ */
proto.io.haveno.protobuffer.OfferInfo.prototype.setProtocolVersion = function(value) { proto.io.haveno.protobuffer.OfferInfo.prototype.setProtocolVersion = function(value) {
return jspb.Message.setProto3IntField(this, 28, value); return jspb.Message.setProto3IntField(this, 26, value);
}; };
/** /**
* optional string arbitrator_signer = 29; * optional string arbitrator_signer = 27;
* @return {string} * @return {string}
*/ */
proto.io.haveno.protobuffer.OfferInfo.prototype.getArbitratorSigner = function() { proto.io.haveno.protobuffer.OfferInfo.prototype.getArbitratorSigner = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 29, "")); return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 27, ""));
}; };
@ -16217,7 +16187,7 @@ proto.io.haveno.protobuffer.OfferInfo.prototype.getArbitratorSigner = function()
* @return {!proto.io.haveno.protobuffer.OfferInfo} returns this * @return {!proto.io.haveno.protobuffer.OfferInfo} returns this
*/ */
proto.io.haveno.protobuffer.OfferInfo.prototype.setArbitratorSigner = function(value) { proto.io.haveno.protobuffer.OfferInfo.prototype.setArbitratorSigner = function(value) {
return jspb.Message.setProto3StringField(this, 29, value); return jspb.Message.setProto3StringField(this, 27, value);
}; };

View File

@ -2740,9 +2740,6 @@ export class OfferPayload extends jspb.Message {
getMakerPaymentAccountId(): string; getMakerPaymentAccountId(): string;
setMakerPaymentAccountId(value: string): OfferPayload; setMakerPaymentAccountId(value: string): OfferPayload;
getOfferFeeTxId(): string;
setOfferFeeTxId(value: string): OfferPayload;
getCountryCode(): string; getCountryCode(): string;
setCountryCode(value: string): OfferPayload; setCountryCode(value: string): OfferPayload;
@ -2843,7 +2840,6 @@ export namespace OfferPayload {
counterCurrencyCode: string, counterCurrencyCode: string,
paymentMethodId: string, paymentMethodId: string,
makerPaymentAccountId: string, makerPaymentAccountId: string,
offerFeeTxId: string,
countryCode: string, countryCode: string,
acceptedCountryCodesList: Array<string>, acceptedCountryCodesList: Array<string>,
bankId: string, bankId: string,
@ -2989,19 +2985,11 @@ export class Dispute extends jspb.Message {
getContractHash_asB64(): string; getContractHash_asB64(): string;
setContractHash(value: Uint8Array | string): Dispute; setContractHash(value: Uint8Array | string): Dispute;
getDepositTxSerialized(): Uint8Array | string;
getDepositTxSerialized_asU8(): Uint8Array;
getDepositTxSerialized_asB64(): string;
setDepositTxSerialized(value: Uint8Array | string): Dispute;
getPayoutTxSerialized(): Uint8Array | string; getPayoutTxSerialized(): Uint8Array | string;
getPayoutTxSerialized_asU8(): Uint8Array; getPayoutTxSerialized_asU8(): Uint8Array;
getPayoutTxSerialized_asB64(): string; getPayoutTxSerialized_asB64(): string;
setPayoutTxSerialized(value: Uint8Array | string): Dispute; setPayoutTxSerialized(value: Uint8Array | string): Dispute;
getDepositTxId(): string;
setDepositTxId(value: string): Dispute;
getPayoutTxId(): string; getPayoutTxId(): string;
setPayoutTxId(value: string): Dispute; setPayoutTxId(value: string): Dispute;
@ -3094,9 +3082,7 @@ export namespace Dispute {
tradeDate: number, tradeDate: number,
contract?: Contract.AsObject, contract?: Contract.AsObject,
contractHash: Uint8Array | string, contractHash: Uint8Array | string,
depositTxSerialized: Uint8Array | string,
payoutTxSerialized: Uint8Array | string, payoutTxSerialized: Uint8Array | string,
depositTxId: string,
payoutTxId: string, payoutTxId: string,
contractAsJson: string, contractAsJson: string,
makerContractSignature: Uint8Array | string, makerContractSignature: Uint8Array | string,
@ -6333,9 +6319,6 @@ export class ProcessModel extends jspb.Message {
hasPubKeyRing(): boolean; hasPubKeyRing(): boolean;
clearPubKeyRing(): ProcessModel; clearPubKeyRing(): ProcessModel;
getTakeOfferFeeTxId(): string;
setTakeOfferFeeTxId(value: string): ProcessModel;
getPayoutTxSignature(): Uint8Array | string; getPayoutTxSignature(): Uint8Array | string;
getPayoutTxSignature_asU8(): Uint8Array; getPayoutTxSignature_asU8(): Uint8Array;
getPayoutTxSignature_asB64(): string; getPayoutTxSignature_asB64(): string;
@ -6417,7 +6400,6 @@ export namespace ProcessModel {
offerId: string, offerId: string,
accountId: string, accountId: string,
pubKeyRing?: PubKeyRing.AsObject, pubKeyRing?: PubKeyRing.AsObject,
takeOfferFeeTxId: string,
payoutTxSignature: Uint8Array | string, payoutTxSignature: Uint8Array | string,
useSavingsWallet: boolean, useSavingsWallet: boolean,
fundsNeededForTrade: number, fundsNeededForTrade: number,

810
dist/protobuf/pb_pb.js vendored

File diff suppressed because it is too large Load Diff

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "haveno-ts", "name": "haveno-ts",
"version": "0.0.13", "version": "0.0.14",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "haveno-ts", "name": "haveno-ts",
"version": "0.0.13", "version": "0.0.14",
"license": "Apache-2.0", "license": "Apache-2.0",
"dependencies": { "dependencies": {
"@types/node": "^18.14.2", "@types/node": "^18.14.2",

View File

@ -1,6 +1,6 @@
{ {
"name": "haveno-ts", "name": "haveno-ts",
"version": "0.0.13", "version": "0.0.14",
"description": "Haveno TypeScript interface", "description": "Haveno TypeScript interface",
"main": "dist/index.js", "main": "dist/index.js",
"types": "dist/index.d.ts", "types": "dist/index.d.ts",