Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@keepkey/device-protocol

Package Overview
Dependencies
Maintainers
4
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@keepkey/device-protocol - npm Package Compare versions

Comparing version 6.2.3 to 6.4.0

99

lib/exchange_pb.d.ts

@@ -22,7 +22,2 @@ // package:

hasRsAddress(): boolean;
clearRsAddress(): void;
getRsAddress(): string | undefined;
setRsAddress(value: string): void;
serializeBinary(): Uint8Array;

@@ -43,3 +38,2 @@ toObject(includeInstance?: boolean): ExchangeAddress.AsObject;

destTag?: string,
rsAddress?: string,
}

@@ -111,2 +105,7 @@ }

hasType(): boolean;
clearType(): void;
getType(): OrderTypeMap[keyof OrderTypeMap] | undefined;
setType(value: OrderTypeMap[keyof OrderTypeMap]): void;
serializeBinary(): Uint8Array;

@@ -134,2 +133,3 @@ toObject(includeInstance?: boolean): ExchangeResponseV2.AsObject;

orderId: Uint8Array | string,
type?: OrderTypeMap[keyof OrderTypeMap],
}

@@ -139,7 +139,2 @@ }

export class SignedExchangeResponse extends jspb.Message {
hasResponse(): boolean;
clearResponse(): void;
getResponse(): ExchangeResponse | undefined;
setResponse(value?: ExchangeResponse): void;
hasSignature(): boolean;

@@ -169,3 +164,2 @@ clearSignature(): void;

export type AsObject = {
response?: ExchangeResponse.AsObject,
signature: Uint8Array | string,

@@ -176,81 +170,8 @@ responsev2?: ExchangeResponseV2.AsObject,

export class ExchangeResponse extends jspb.Message {
hasDepositAddress(): boolean;
clearDepositAddress(): void;
getDepositAddress(): ExchangeAddress | undefined;
setDepositAddress(value?: ExchangeAddress): void;
hasDepositAmount(): boolean;
clearDepositAmount(): void;
getDepositAmount(): number | undefined;
setDepositAmount(value: number): void;
hasExpiration(): boolean;
clearExpiration(): void;
getExpiration(): number | undefined;
setExpiration(value: number): void;
hasQuotedRate(): boolean;
clearQuotedRate(): void;
getQuotedRate(): number | undefined;
setQuotedRate(value: number): void;
hasWithdrawalAddress(): boolean;
clearWithdrawalAddress(): void;
getWithdrawalAddress(): ExchangeAddress | undefined;
setWithdrawalAddress(value?: ExchangeAddress): void;
hasWithdrawalAmount(): boolean;
clearWithdrawalAmount(): void;
getWithdrawalAmount(): number | undefined;
setWithdrawalAmount(value: number): void;
hasReturnAddress(): boolean;
clearReturnAddress(): void;
getReturnAddress(): ExchangeAddress | undefined;
setReturnAddress(value?: ExchangeAddress): void;
hasApiKey(): boolean;
clearApiKey(): void;
getApiKey(): Uint8Array | string;
getApiKey_asU8(): Uint8Array;
getApiKey_asB64(): string;
setApiKey(value: Uint8Array | string): void;
hasMinerFee(): boolean;
clearMinerFee(): void;
getMinerFee(): number | undefined;
setMinerFee(value: number): void;
hasOrderId(): boolean;
clearOrderId(): void;
getOrderId(): Uint8Array | string;
getOrderId_asU8(): Uint8Array;
getOrderId_asB64(): string;
setOrderId(value: Uint8Array | string): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): ExchangeResponse.AsObject;
static toObject(includeInstance: boolean, msg: ExchangeResponse): ExchangeResponse.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: ExchangeResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): ExchangeResponse;
static deserializeBinaryFromReader(message: ExchangeResponse, reader: jspb.BinaryReader): ExchangeResponse;
export interface OrderTypeMap {
PRECISE: 0;
QUICK: 1;
}
export namespace ExchangeResponse {
export type AsObject = {
depositAddress?: ExchangeAddress.AsObject,
depositAmount?: number,
expiration?: number,
quotedRate?: number,
withdrawalAddress?: ExchangeAddress.AsObject,
withdrawalAmount?: number,
returnAddress?: ExchangeAddress.AsObject,
apiKey: Uint8Array | string,
minerFee?: number,
orderId: Uint8Array | string,
}
}
export const OrderType: OrderTypeMap;

@@ -15,4 +15,4 @@ /**

goog.exportSymbol('proto.ExchangeAddress', null, global);
goog.exportSymbol('proto.ExchangeResponse', null, global);
goog.exportSymbol('proto.ExchangeResponseV2', null, global);
goog.exportSymbol('proto.OrderType', null, global);
goog.exportSymbol('proto.SignedExchangeResponse', null, global);

@@ -68,4 +68,3 @@

address: jspb.Message.getField(msg, 2),
destTag: jspb.Message.getField(msg, 3),
rsAddress: jspb.Message.getField(msg, 4)
destTag: jspb.Message.getField(msg, 3)
};

@@ -119,6 +118,2 @@

break;
case 4:
var value = /** @type {string} */ (reader.readString());
msg.setRsAddress(value);
break;
default:

@@ -174,9 +169,2 @@ reader.skipField();

}
f = /** @type {string} */ (jspb.Message.getField(message, 4));
if (f != null) {
writer.writeString(
4,
f
);
}
};

@@ -272,33 +260,4 @@

/**
* optional string rs_address = 4;
* @return {string}
*/
proto.ExchangeAddress.prototype.getRsAddress = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
};
/** @param {string} value */
proto.ExchangeAddress.prototype.setRsAddress = function(value) {
jspb.Message.setField(this, 4, value);
};
proto.ExchangeAddress.prototype.clearRsAddress = function() {
jspb.Message.setField(this, 4, undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
*/
proto.ExchangeAddress.prototype.hasRsAddress = function() {
return jspb.Message.getField(this, 4) != null;
};
/**
* Generated by JsPbCodeGenerator.

@@ -358,3 +317,4 @@ * @param {Array=} opt_data Optional initial data array, typically from a

minerFee: msg.getMinerFee_asB64(),
orderId: msg.getOrderId_asB64()
orderId: msg.getOrderId_asB64(),
type: jspb.Message.getFieldWithDefault(msg, 11, 0)
};

@@ -439,2 +399,6 @@

break;
case 11:
var value = /** @type {!proto.OrderType} */ (reader.readEnum());
msg.setType(value);
break;
default:

@@ -542,2 +506,9 @@ reader.skipField();

}
f = /** @type {!proto.OrderType} */ (jspb.Message.getField(message, 11));
if (f != null) {
writer.writeEnum(
11,
f
);
}
};

@@ -983,4 +954,33 @@

/**
* optional OrderType type = 11;
* @return {!proto.OrderType}
*/
proto.ExchangeResponseV2.prototype.getType = function() {
return /** @type {!proto.OrderType} */ (jspb.Message.getFieldWithDefault(this, 11, 0));
};
/** @param {!proto.OrderType} value */
proto.ExchangeResponseV2.prototype.setType = function(value) {
jspb.Message.setField(this, 11, value);
};
proto.ExchangeResponseV2.prototype.clearType = function() {
jspb.Message.setField(this, 11, undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
*/
proto.ExchangeResponseV2.prototype.hasType = function() {
return jspb.Message.getField(this, 11) != null;
};
/**
* Generated by JsPbCodeGenerator.

@@ -1031,3 +1031,2 @@ * @param {Array=} opt_data Optional initial data array, typically from a

var f, obj = {
response: (f = msg.getResponse()) && proto.ExchangeResponse.toObject(includeInstance, f),
signature: msg.getSignature_asB64(),

@@ -1071,7 +1070,2 @@ responsev2: (f = msg.getResponsev2()) && proto.ExchangeResponseV2.toObject(includeInstance, f)

switch (field) {
case 1:
var value = new proto.ExchangeResponse;
reader.readMessage(value,proto.ExchangeResponse.deserializeBinaryFromReader);
msg.setResponse(value);
break;
case 2:

@@ -1115,10 +1109,2 @@ var value = /** @type {!Uint8Array} */ (reader.readBytes());

var f = undefined;
f = message.getResponse();
if (f != null) {
writer.writeMessage(
1,
f,
proto.ExchangeResponse.serializeBinaryToWriter
);
}
f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 2));

@@ -1143,32 +1129,2 @@ if (f != null) {

/**
* optional ExchangeResponse response = 1;
* @return {?proto.ExchangeResponse}
*/
proto.SignedExchangeResponse.prototype.getResponse = function() {
return /** @type{?proto.ExchangeResponse} */ (
jspb.Message.getWrapperField(this, proto.ExchangeResponse, 1));
};
/** @param {?proto.ExchangeResponse|undefined} value */
proto.SignedExchangeResponse.prototype.setResponse = function(value) {
jspb.Message.setWrapperField(this, 1, value);
};
proto.SignedExchangeResponse.prototype.clearResponse = function() {
this.setResponse(undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
*/
proto.SignedExchangeResponse.prototype.hasResponse = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional bytes signature = 2;

@@ -1256,584 +1212,10 @@ * @return {!(string|Uint8Array)}

/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
* @enum {number}
*/
proto.ExchangeResponse = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
proto.OrderType = {
PRECISE: 0,
QUICK: 1
};
goog.inherits(proto.ExchangeResponse, jspb.Message);
if (goog.DEBUG && !COMPILED) {
proto.ExchangeResponse.displayName = 'proto.ExchangeResponse';
}
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto suitable for use in Soy templates.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
* for transitional soy proto support: http://goto/soy-param-migration
* @return {!Object}
*/
proto.ExchangeResponse.prototype.toObject = function(opt_includeInstance) {
return proto.ExchangeResponse.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Whether to include the JSPB
* instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.ExchangeResponse} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.ExchangeResponse.toObject = function(includeInstance, msg) {
var f, obj = {
depositAddress: (f = msg.getDepositAddress()) && proto.ExchangeAddress.toObject(includeInstance, f),
depositAmount: jspb.Message.getField(msg, 2),
expiration: jspb.Message.getField(msg, 3),
quotedRate: jspb.Message.getField(msg, 4),
withdrawalAddress: (f = msg.getWithdrawalAddress()) && proto.ExchangeAddress.toObject(includeInstance, f),
withdrawalAmount: jspb.Message.getField(msg, 6),
returnAddress: (f = msg.getReturnAddress()) && proto.ExchangeAddress.toObject(includeInstance, f),
apiKey: msg.getApiKey_asB64(),
minerFee: jspb.Message.getField(msg, 9),
orderId: msg.getOrderId_asB64()
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.ExchangeResponse}
*/
proto.ExchangeResponse.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.ExchangeResponse;
return proto.ExchangeResponse.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.ExchangeResponse} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.ExchangeResponse}
*/
proto.ExchangeResponse.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new proto.ExchangeAddress;
reader.readMessage(value,proto.ExchangeAddress.deserializeBinaryFromReader);
msg.setDepositAddress(value);
break;
case 2:
var value = /** @type {number} */ (reader.readUint64());
msg.setDepositAmount(value);
break;
case 3:
var value = /** @type {number} */ (reader.readInt64());
msg.setExpiration(value);
break;
case 4:
var value = /** @type {number} */ (reader.readUint64());
msg.setQuotedRate(value);
break;
case 5:
var value = new proto.ExchangeAddress;
reader.readMessage(value,proto.ExchangeAddress.deserializeBinaryFromReader);
msg.setWithdrawalAddress(value);
break;
case 6:
var value = /** @type {number} */ (reader.readUint64());
msg.setWithdrawalAmount(value);
break;
case 7:
var value = new proto.ExchangeAddress;
reader.readMessage(value,proto.ExchangeAddress.deserializeBinaryFromReader);
msg.setReturnAddress(value);
break;
case 8:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.setApiKey(value);
break;
case 9:
var value = /** @type {number} */ (reader.readUint64());
msg.setMinerFee(value);
break;
case 10:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.setOrderId(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.ExchangeResponse.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.ExchangeResponse.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.ExchangeResponse} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.ExchangeResponse.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getDepositAddress();
if (f != null) {
writer.writeMessage(
1,
f,
proto.ExchangeAddress.serializeBinaryToWriter
);
}
f = /** @type {number} */ (jspb.Message.getField(message, 2));
if (f != null) {
writer.writeUint64(
2,
f
);
}
f = /** @type {number} */ (jspb.Message.getField(message, 3));
if (f != null) {
writer.writeInt64(
3,
f
);
}
f = /** @type {number} */ (jspb.Message.getField(message, 4));
if (f != null) {
writer.writeUint64(
4,
f
);
}
f = message.getWithdrawalAddress();
if (f != null) {
writer.writeMessage(
5,
f,
proto.ExchangeAddress.serializeBinaryToWriter
);
}
f = /** @type {number} */ (jspb.Message.getField(message, 6));
if (f != null) {
writer.writeUint64(
6,
f
);
}
f = message.getReturnAddress();
if (f != null) {
writer.writeMessage(
7,
f,
proto.ExchangeAddress.serializeBinaryToWriter
);
}
f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 8));
if (f != null) {
writer.writeBytes(
8,
f
);
}
f = /** @type {number} */ (jspb.Message.getField(message, 9));
if (f != null) {
writer.writeUint64(
9,
f
);
}
f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 10));
if (f != null) {
writer.writeBytes(
10,
f
);
}
};
/**
* optional ExchangeAddress deposit_address = 1;
* @return {?proto.ExchangeAddress}
*/
proto.ExchangeResponse.prototype.getDepositAddress = function() {
return /** @type{?proto.ExchangeAddress} */ (
jspb.Message.getWrapperField(this, proto.ExchangeAddress, 1));
};
/** @param {?proto.ExchangeAddress|undefined} value */
proto.ExchangeResponse.prototype.setDepositAddress = function(value) {
jspb.Message.setWrapperField(this, 1, value);
};
proto.ExchangeResponse.prototype.clearDepositAddress = function() {
this.setDepositAddress(undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
*/
proto.ExchangeResponse.prototype.hasDepositAddress = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional uint64 deposit_amount = 2;
* @return {number}
*/
proto.ExchangeResponse.prototype.getDepositAmount = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
};
/** @param {number} value */
proto.ExchangeResponse.prototype.setDepositAmount = function(value) {
jspb.Message.setField(this, 2, value);
};
proto.ExchangeResponse.prototype.clearDepositAmount = function() {
jspb.Message.setField(this, 2, undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
*/
proto.ExchangeResponse.prototype.hasDepositAmount = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* optional int64 expiration = 3;
* @return {number}
*/
proto.ExchangeResponse.prototype.getExpiration = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
};
/** @param {number} value */
proto.ExchangeResponse.prototype.setExpiration = function(value) {
jspb.Message.setField(this, 3, value);
};
proto.ExchangeResponse.prototype.clearExpiration = function() {
jspb.Message.setField(this, 3, undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
*/
proto.ExchangeResponse.prototype.hasExpiration = function() {
return jspb.Message.getField(this, 3) != null;
};
/**
* optional uint64 quoted_rate = 4;
* @return {number}
*/
proto.ExchangeResponse.prototype.getQuotedRate = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
};
/** @param {number} value */
proto.ExchangeResponse.prototype.setQuotedRate = function(value) {
jspb.Message.setField(this, 4, value);
};
proto.ExchangeResponse.prototype.clearQuotedRate = function() {
jspb.Message.setField(this, 4, undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
*/
proto.ExchangeResponse.prototype.hasQuotedRate = function() {
return jspb.Message.getField(this, 4) != null;
};
/**
* optional ExchangeAddress withdrawal_address = 5;
* @return {?proto.ExchangeAddress}
*/
proto.ExchangeResponse.prototype.getWithdrawalAddress = function() {
return /** @type{?proto.ExchangeAddress} */ (
jspb.Message.getWrapperField(this, proto.ExchangeAddress, 5));
};
/** @param {?proto.ExchangeAddress|undefined} value */
proto.ExchangeResponse.prototype.setWithdrawalAddress = function(value) {
jspb.Message.setWrapperField(this, 5, value);
};
proto.ExchangeResponse.prototype.clearWithdrawalAddress = function() {
this.setWithdrawalAddress(undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
*/
proto.ExchangeResponse.prototype.hasWithdrawalAddress = function() {
return jspb.Message.getField(this, 5) != null;
};
/**
* optional uint64 withdrawal_amount = 6;
* @return {number}
*/
proto.ExchangeResponse.prototype.getWithdrawalAmount = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
};
/** @param {number} value */
proto.ExchangeResponse.prototype.setWithdrawalAmount = function(value) {
jspb.Message.setField(this, 6, value);
};
proto.ExchangeResponse.prototype.clearWithdrawalAmount = function() {
jspb.Message.setField(this, 6, undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
*/
proto.ExchangeResponse.prototype.hasWithdrawalAmount = function() {
return jspb.Message.getField(this, 6) != null;
};
/**
* optional ExchangeAddress return_address = 7;
* @return {?proto.ExchangeAddress}
*/
proto.ExchangeResponse.prototype.getReturnAddress = function() {
return /** @type{?proto.ExchangeAddress} */ (
jspb.Message.getWrapperField(this, proto.ExchangeAddress, 7));
};
/** @param {?proto.ExchangeAddress|undefined} value */
proto.ExchangeResponse.prototype.setReturnAddress = function(value) {
jspb.Message.setWrapperField(this, 7, value);
};
proto.ExchangeResponse.prototype.clearReturnAddress = function() {
this.setReturnAddress(undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
*/
proto.ExchangeResponse.prototype.hasReturnAddress = function() {
return jspb.Message.getField(this, 7) != null;
};
/**
* optional bytes api_key = 8;
* @return {!(string|Uint8Array)}
*/
proto.ExchangeResponse.prototype.getApiKey = function() {
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
};
/**
* optional bytes api_key = 8;
* This is a type-conversion wrapper around `getApiKey()`
* @return {string}
*/
proto.ExchangeResponse.prototype.getApiKey_asB64 = function() {
return /** @type {string} */ (jspb.Message.bytesAsB64(
this.getApiKey()));
};
/**
* optional bytes api_key = 8;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getApiKey()`
* @return {!Uint8Array}
*/
proto.ExchangeResponse.prototype.getApiKey_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
this.getApiKey()));
};
/** @param {!(string|Uint8Array)} value */
proto.ExchangeResponse.prototype.setApiKey = function(value) {
jspb.Message.setField(this, 8, value);
};
proto.ExchangeResponse.prototype.clearApiKey = function() {
jspb.Message.setField(this, 8, undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
*/
proto.ExchangeResponse.prototype.hasApiKey = function() {
return jspb.Message.getField(this, 8) != null;
};
/**
* optional uint64 miner_fee = 9;
* @return {number}
*/
proto.ExchangeResponse.prototype.getMinerFee = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
};
/** @param {number} value */
proto.ExchangeResponse.prototype.setMinerFee = function(value) {
jspb.Message.setField(this, 9, value);
};
proto.ExchangeResponse.prototype.clearMinerFee = function() {
jspb.Message.setField(this, 9, undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
*/
proto.ExchangeResponse.prototype.hasMinerFee = function() {
return jspb.Message.getField(this, 9) != null;
};
/**
* optional bytes order_id = 10;
* @return {!(string|Uint8Array)}
*/
proto.ExchangeResponse.prototype.getOrderId = function() {
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
};
/**
* optional bytes order_id = 10;
* This is a type-conversion wrapper around `getOrderId()`
* @return {string}
*/
proto.ExchangeResponse.prototype.getOrderId_asB64 = function() {
return /** @type {string} */ (jspb.Message.bytesAsB64(
this.getOrderId()));
};
/**
* optional bytes order_id = 10;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getOrderId()`
* @return {!Uint8Array}
*/
proto.ExchangeResponse.prototype.getOrderId_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
this.getOrderId()));
};
/** @param {!(string|Uint8Array)} value */
proto.ExchangeResponse.prototype.setOrderId = function(value) {
jspb.Message.setField(this, 10, value);
};
proto.ExchangeResponse.prototype.clearOrderId = function() {
jspb.Message.setField(this, 10, undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
*/
proto.ExchangeResponse.prototype.hasOrderId = function() {
return jspb.Message.getField(this, 10) != null;
};
goog.object.extend(exports, proto);

12

lib/messages-cosmos_pb.d.ts

@@ -175,2 +175,12 @@ // package:

hasAddressType(): boolean;
clearAddressType(): void;
getAddressType(): types_pb.OutputAddressTypeMap[keyof types_pb.OutputAddressTypeMap] | undefined;
setAddressType(value: types_pb.OutputAddressTypeMap[keyof types_pb.OutputAddressTypeMap]): void;
hasExchangeType(): boolean;
clearExchangeType(): void;
getExchangeType(): types_pb.ExchangeType | undefined;
setExchangeType(value?: types_pb.ExchangeType): void;
serializeBinary(): Uint8Array;

@@ -191,2 +201,4 @@ toObject(includeInstance?: boolean): CosmosMsgSend.AsObject;

amount?: string,
addressType?: types_pb.OutputAddressTypeMap[keyof types_pb.OutputAddressTypeMap],
exchangeType?: types_pb.ExchangeType.AsObject,
}

@@ -193,0 +205,0 @@ }

@@ -1158,3 +1158,5 @@ /**

toAddress: jspb.Message.getField(msg, 7),
amount: jspb.Message.getField(msg, 8)
amount: jspb.Message.getField(msg, 8),
addressType: jspb.Message.getField(msg, 9),
exchangeType: (f = msg.getExchangeType()) && types_pb.ExchangeType.toObject(includeInstance, f)
};

@@ -1208,2 +1210,11 @@

break;
case 9:
var value = /** @type {!proto.OutputAddressType} */ (reader.readEnum());
msg.setAddressType(value);
break;
case 10:
var value = new types_pb.ExchangeType;
reader.readMessage(value,types_pb.ExchangeType.deserializeBinaryFromReader);
msg.setExchangeType(value);
break;
default:

@@ -1259,2 +1270,17 @@ reader.skipField();

}
f = /** @type {!proto.OutputAddressType} */ (jspb.Message.getField(message, 9));
if (f != null) {
writer.writeEnum(
9,
f
);
}
f = message.getExchangeType();
if (f != null) {
writer.writeMessage(
10,
f,
types_pb.ExchangeType.serializeBinaryToWriter
);
}
};

@@ -1350,4 +1376,63 @@

/**
* optional OutputAddressType address_type = 9;
* @return {!proto.OutputAddressType}
*/
proto.CosmosMsgSend.prototype.getAddressType = function() {
return /** @type {!proto.OutputAddressType} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
};
/** @param {!proto.OutputAddressType} value */
proto.CosmosMsgSend.prototype.setAddressType = function(value) {
jspb.Message.setField(this, 9, value);
};
proto.CosmosMsgSend.prototype.clearAddressType = function() {
jspb.Message.setField(this, 9, undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
*/
proto.CosmosMsgSend.prototype.hasAddressType = function() {
return jspb.Message.getField(this, 9) != null;
};
/**
* optional ExchangeType exchange_type = 10;
* @return {?proto.ExchangeType}
*/
proto.CosmosMsgSend.prototype.getExchangeType = function() {
return /** @type{?proto.ExchangeType} */ (
jspb.Message.getWrapperField(this, types_pb.ExchangeType, 10));
};
/** @param {?proto.ExchangeType|undefined} value */
proto.CosmosMsgSend.prototype.setExchangeType = function(value) {
jspb.Message.setWrapperField(this, 10, value);
};
proto.CosmosMsgSend.prototype.clearExchangeType = function() {
this.setExchangeType(undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
*/
proto.CosmosMsgSend.prototype.hasExchangeType = function() {
return jspb.Message.getField(this, 10) != null;
};
/**
* Generated by JsPbCodeGenerator.

@@ -1354,0 +1439,0 @@ * @param {Array=} opt_data Optional initial data array, typically from a

{
"name": "@keepkey/device-protocol",
"version": "6.2.3",
"version": "6.4.0",
"publishConfig": {

@@ -5,0 +5,0 @@ "access": "public"

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc