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

@arcblock/forge-proto

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@arcblock/forge-proto - npm Package Compare versions

Comparing version 0.7.6 to 0.7.9

@@ -51,2 +51,13 @@ // GENERATED CODE -- DO NOT EDIT!

function serialize_forge_abi_RequestGetAssetAddress(arg) {
if (!(arg instanceof rpc_pb.RequestGetAssetAddress)) {
throw new Error('Expected argument of type forge_abi.RequestGetAssetAddress');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_forge_abi_RequestGetAssetAddress(buffer_arg) {
return rpc_pb.RequestGetAssetAddress.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_forge_abi_RequestGetAssetState(arg) {

@@ -184,2 +195,13 @@ if (!(arg instanceof rpc_pb.RequestGetAssetState)) {

function serialize_forge_abi_RequestListTransactions(arg) {
if (!(arg instanceof rpc_pb.RequestListTransactions)) {
throw new Error('Expected argument of type forge_abi.RequestListTransactions');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_forge_abi_RequestListTransactions(buffer_arg) {
return rpc_pb.RequestListTransactions.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_forge_abi_RequestListWallet(arg) {

@@ -361,2 +383,13 @@ if (!(arg instanceof rpc_pb.RequestListWallet)) {

function serialize_forge_abi_ResponseGetAssetAddress(arg) {
if (!(arg instanceof rpc_pb.ResponseGetAssetAddress)) {
throw new Error('Expected argument of type forge_abi.ResponseGetAssetAddress');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_forge_abi_ResponseGetAssetAddress(buffer_arg) {
return rpc_pb.ResponseGetAssetAddress.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_forge_abi_ResponseGetAssetState(arg) {

@@ -494,2 +527,13 @@ if (!(arg instanceof rpc_pb.ResponseGetAssetState)) {

function serialize_forge_abi_ResponseListTransactions(arg) {
if (!(arg instanceof rpc_pb.ResponseListTransactions)) {
throw new Error('Expected argument of type forge_abi.ResponseListTransactions');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_forge_abi_ResponseListTransactions(buffer_arg) {
return rpc_pb.ResponseListTransactions.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_forge_abi_ResponseListWallet(arg) {

@@ -769,2 +813,13 @@ if (!(arg instanceof rpc_pb.ResponseListWallet)) {

},
get_asset_address: {
path: '/forge_abi.ChainRpc/get_asset_address',
requestStream: false,
responseStream: false,
requestType: rpc_pb.RequestGetAssetAddress,
responseType: rpc_pb.ResponseGetAssetAddress,
requestSerialize: serialize_forge_abi_RequestGetAssetAddress,
requestDeserialize: deserialize_forge_abi_RequestGetAssetAddress,
responseSerialize: serialize_forge_abi_ResponseGetAssetAddress,
responseDeserialize: deserialize_forge_abi_ResponseGetAssetAddress,
},
});

@@ -969,4 +1024,15 @@

},
list_transactions: {
path: '/forge_abi.StatisticRpc/list_transactions',
requestStream: false,
responseStream: false,
requestType: rpc_pb.RequestListTransactions,
responseType: rpc_pb.ResponseListTransactions,
requestSerialize: serialize_forge_abi_RequestListTransactions,
requestDeserialize: deserialize_forge_abi_RequestListTransactions,
responseSerialize: serialize_forge_abi_ResponseListTransactions,
responseDeserialize: deserialize_forge_abi_ResponseListTransactions,
},
});
exports.StatisticRpcClient = grpc.makeGenericClientConstructor(StatisticRpcService);

@@ -1656,6 +1656,6 @@ /**

numTxs: jspb.Message.getFieldWithDefault(msg, 3, 0),
numAccounts: jspb.Message.getFieldWithDefault(msg, 4, 0),
numAssets: jspb.Message.getFieldWithDefault(msg, 5, 0),
numStakes: (f = msg.getNumStakes()) && type_pb.BigUint.toObject(includeInstance, f),
numValidators: jspb.Message.getFieldWithDefault(msg, 7, 0),
numValidators: jspb.Message.getFieldWithDefault(msg, 5, 0),
txStatistics:
(f = msg.getTxStatistics()) && type_pb.TxStatistics.toObject(includeInstance, f),
};

@@ -1708,10 +1708,2 @@

case 4:
var value = /** @type {number} */ (reader.readUint32());
msg.setNumAccounts(value);
break;
case 5:
var value = /** @type {number} */ (reader.readUint32());
msg.setNumAssets(value);
break;
case 6:
var value = new type_pb.BigUint();

@@ -1721,6 +1713,11 @@ reader.readMessage(value, type_pb.BigUint.deserializeBinaryFromReader);

break;
case 7:
case 5:
var value = /** @type {number} */ (reader.readUint32());
msg.setNumValidators(value);
break;
case 6:
var value = new type_pb.TxStatistics();
reader.readMessage(value, type_pb.TxStatistics.deserializeBinaryFromReader);
msg.setTxStatistics(value);
break;
default:

@@ -1765,18 +1762,14 @@ reader.skipField();

}
f = message.getNumAccounts();
if (f !== 0) {
writer.writeUint32(4, f);
f = message.getNumStakes();
if (f != null) {
writer.writeMessage(4, f, type_pb.BigUint.serializeBinaryToWriter);
}
f = message.getNumAssets();
f = message.getNumValidators();
if (f !== 0) {
writer.writeUint32(5, f);
}
f = message.getNumStakes();
f = message.getTxStatistics();
if (f != null) {
writer.writeMessage(6, f, type_pb.BigUint.serializeBinaryToWriter);
writer.writeMessage(6, f, type_pb.TxStatistics.serializeBinaryToWriter);
}
f = message.getNumValidators();
if (f !== 0) {
writer.writeUint32(7, f);
}
};

@@ -1824,19 +1817,35 @@

/**
* optional uint32 num_accounts = 4;
* @return {number}
* optional BigUint num_stakes = 4;
* @return {?proto.forge_abi.BigUint}
*/
proto.forge_abi.StatisticsState.prototype.getNumAccounts = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
proto.forge_abi.StatisticsState.prototype.getNumStakes = function() {
return /** @type{?proto.forge_abi.BigUint} */ (jspb.Message.getWrapperField(
this,
type_pb.BigUint,
4
));
};
/** @param {number} value */
proto.forge_abi.StatisticsState.prototype.setNumAccounts = function(value) {
jspb.Message.setField(this, 4, value);
/** @param {?proto.forge_abi.BigUint|undefined} value */
proto.forge_abi.StatisticsState.prototype.setNumStakes = function(value) {
jspb.Message.setWrapperField(this, 4, value);
};
proto.forge_abi.StatisticsState.prototype.clearNumStakes = function() {
this.setNumStakes(undefined);
};
/**
* optional uint32 num_assets = 5;
* Returns whether this field is set.
* @return {!boolean}
*/
proto.forge_abi.StatisticsState.prototype.hasNumStakes = function() {
return jspb.Message.getField(this, 4) != null;
};
/**
* optional uint32 num_validators = 5;
* @return {number}
*/
proto.forge_abi.StatisticsState.prototype.getNumAssets = function() {
proto.forge_abi.StatisticsState.prototype.getNumValidators = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));

@@ -1846,3 +1855,3 @@ };

/** @param {number} value */
proto.forge_abi.StatisticsState.prototype.setNumAssets = function(value) {
proto.forge_abi.StatisticsState.prototype.setNumValidators = function(value) {
jspb.Message.setField(this, 5, value);

@@ -1852,9 +1861,9 @@ };

/**
* optional BigUint num_stakes = 6;
* @return {?proto.forge_abi.BigUint}
* optional TxStatistics tx_statistics = 6;
* @return {?proto.forge_abi.TxStatistics}
*/
proto.forge_abi.StatisticsState.prototype.getNumStakes = function() {
return /** @type{?proto.forge_abi.BigUint} */ (jspb.Message.getWrapperField(
proto.forge_abi.StatisticsState.prototype.getTxStatistics = function() {
return /** @type{?proto.forge_abi.TxStatistics} */ (jspb.Message.getWrapperField(
this,
type_pb.BigUint,
type_pb.TxStatistics,
6

@@ -1864,9 +1873,9 @@ ));

/** @param {?proto.forge_abi.BigUint|undefined} value */
proto.forge_abi.StatisticsState.prototype.setNumStakes = function(value) {
/** @param {?proto.forge_abi.TxStatistics|undefined} value */
proto.forge_abi.StatisticsState.prototype.setTxStatistics = function(value) {
jspb.Message.setWrapperField(this, 6, value);
};
proto.forge_abi.StatisticsState.prototype.clearNumStakes = function() {
this.setNumStakes(undefined);
proto.forge_abi.StatisticsState.prototype.clearTxStatistics = function() {
this.setTxStatistics(undefined);
};

@@ -1878,21 +1887,8 @@

*/
proto.forge_abi.StatisticsState.prototype.hasNumStakes = function() {
proto.forge_abi.StatisticsState.prototype.hasTxStatistics = function() {
return jspb.Message.getField(this, 6) != null;
};
/**
* optional uint32 num_validators = 7;
* @return {number}
*/
proto.forge_abi.StatisticsState.prototype.getNumValidators = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
};
/** @param {number} value */
proto.forge_abi.StatisticsState.prototype.setNumValidators = function(value) {
jspb.Message.setField(this, 7, value);
};
goog.object.extend(exports, proto.forge_abi);
module.exports = proto.forge_abi;
{
"name": "@arcblock/forge-proto",
"description": "Static modules generated from forge-sdk protobuf files",
"version": "0.7.6",
"version": "0.7.9",
"author": "wangshijun <shijun@arcblock.io> (https://www.arcblock.io)",

@@ -42,2 +42,3 @@ "engines": {

"scripts": {
"upgrade": "npm run copy",
"copy": "npm run copy:js && npm run copy:json",

@@ -56,3 +57,3 @@ "copy:js": "rm -f lib/*.js && cp $FORGE_SDK_PROTO_GEN_DIR/*.js lib/ && sh ./tools/patch.sh",

},
"gitHead": "fead3504f132784f5c50b3c88445d0f8468573bb"
"gitHead": "27dbce895f6583d14175c908b63edd85311562c4"
}

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