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

@arcblock/forge-proto

Package Overview
Dependencies
Maintainers
1
Versions
126
Alerts
File Explorer

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.1 to 0.7.4

101

lib/abi_pb.js

@@ -470,2 +470,3 @@ /**

),
context: (f = msg.getContext()) && type_pb.AbciContext.toObject(includeInstance, f),
};

@@ -520,2 +521,7 @@

break;
case 4:
var value = new type_pb.AbciContext();
reader.readMessage(value, type_pb.AbciContext.deserializeBinaryFromReader);
msg.setContext(value);
break;
default:

@@ -560,2 +566,6 @@ reader.skipField();

}
f = message.getContext();
if (f != null) {
writer.writeMessage(4, f, type_pb.AbciContext.serializeBinaryToWriter);
}
};

@@ -658,2 +668,31 @@

/**
* optional AbciContext context = 4;
* @return {?proto.forge_abi.AbciContext}
*/
proto.forge_abi.RequestUpdateState.prototype.getContext = function() {
return /** @type{?proto.forge_abi.AbciContext} */ (jspb.Message.getWrapperField(
this,
type_pb.AbciContext,
4
));
};
/** @param {?proto.forge_abi.AbciContext|undefined} value */
proto.forge_abi.RequestUpdateState.prototype.setContext = function(value) {
jspb.Message.setWrapperField(this, 4, value);
};
proto.forge_abi.RequestUpdateState.prototype.clearContext = function() {
this.setContext(undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
*/
proto.forge_abi.RequestUpdateState.prototype.hasContext = function() {
return jspb.Message.getField(this, 4) != null;
};
/**
* Generated by JsPbCodeGenerator.

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

*/
proto.forge_abi.ResponseUpdateState.repeatedFields_ = [2, 3, 4];
proto.forge_abi.ResponseUpdateState.repeatedFields_ = [2, 3, 4, 5];

@@ -733,2 +772,7 @@ if (jspb.Message.GENERATE_TO_OBJECT) {

),
stakesList: jspb.Message.toObjectList(
msg.getStakesList(),
state_pb.StakeState.toObject,
includeInstance
),
appState: (f = msg.getAppState()) && state_pb.ForgeState.toObject(includeInstance, f),

@@ -789,2 +833,7 @@ };

case 5:
var value = new state_pb.StakeState();
reader.readMessage(value, state_pb.StakeState.deserializeBinaryFromReader);
msg.addStakes(value);
break;
case 15:
var value = new state_pb.ForgeState();

@@ -837,5 +886,9 @@ reader.readMessage(value, state_pb.ForgeState.deserializeBinaryFromReader);

}
f = message.getStakesList();
if (f.length > 0) {
writer.writeRepeatedMessage(5, f, state_pb.StakeState.serializeBinaryToWriter);
}
f = message.getAppState();
if (f != null) {
writer.writeMessage(5, f, state_pb.ForgeState.serializeBinaryToWriter);
writer.writeMessage(15, f, state_pb.ForgeState.serializeBinaryToWriter);
}

@@ -966,3 +1019,39 @@ };

/**
* optional ForgeState app_state = 5;
* repeated StakeState stakes = 5;
* @return {!Array.<!proto.forge_abi.StakeState>}
*/
proto.forge_abi.ResponseUpdateState.prototype.getStakesList = function() {
return /** @type{!Array.<!proto.forge_abi.StakeState>} */ (jspb.Message.getRepeatedWrapperField(
this,
state_pb.StakeState,
5
));
};
/** @param {!Array.<!proto.forge_abi.StakeState>} value */
proto.forge_abi.ResponseUpdateState.prototype.setStakesList = function(value) {
jspb.Message.setRepeatedWrapperField(this, 5, value);
};
/**
* @param {!proto.forge_abi.StakeState=} opt_value
* @param {number=} opt_index
* @return {!proto.forge_abi.StakeState}
*/
proto.forge_abi.ResponseUpdateState.prototype.addStakes = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(
this,
5,
opt_value,
proto.forge_abi.StakeState,
opt_index
);
};
proto.forge_abi.ResponseUpdateState.prototype.clearStakesList = function() {
this.setStakesList([]);
};
/**
* optional ForgeState app_state = 15;
* @return {?proto.forge_abi.ForgeState}

@@ -974,3 +1063,3 @@ */

state_pb.ForgeState,
5
15
));

@@ -981,3 +1070,3 @@ };

proto.forge_abi.ResponseUpdateState.prototype.setAppState = function(value) {
jspb.Message.setWrapperField(this, 5, value);
jspb.Message.setWrapperField(this, 15, value);
};

@@ -994,3 +1083,3 @@

proto.forge_abi.ResponseUpdateState.prototype.hasAppState = function() {
return jspb.Message.getField(this, 5) != null;
return jspb.Message.getField(this, 15) != null;
};

@@ -997,0 +1086,0 @@

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

function serialize_forge_abi_RequestGetConfig(arg) {
if (!(arg instanceof rpc_pb.RequestGetConfig)) {
throw new Error('Expected argument of type forge_abi.RequestGetConfig');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_forge_abi_RequestGetConfig(buffer_arg) {
return rpc_pb.RequestGetConfig.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_forge_abi_RequestGetForgeState(arg) {

@@ -360,2 +371,13 @@ if (!(arg instanceof rpc_pb.RequestGetForgeState)) {

function serialize_forge_abi_ResponseGetConfig(arg) {
if (!(arg instanceof rpc_pb.ResponseGetConfig)) {
throw new Error('Expected argument of type forge_abi.ResponseGetConfig');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_forge_abi_ResponseGetConfig(buffer_arg) {
return rpc_pb.ResponseGetConfig.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_forge_abi_ResponseGetForgeState(arg) {

@@ -646,2 +668,13 @@ if (!(arg instanceof rpc_pb.ResponseGetForgeState)) {

},
get_config: {
path: '/forge_abi.ChainRpc/get_config',
requestStream: false,
responseStream: false,
requestType: rpc_pb.RequestGetConfig,
responseType: rpc_pb.ResponseGetConfig,
requestSerialize: serialize_forge_abi_RequestGetConfig,
requestDeserialize: deserialize_forge_abi_RequestGetConfig,
responseSerialize: serialize_forge_abi_ResponseGetConfig,
responseDeserialize: deserialize_forge_abi_ResponseGetConfig,
},
});

@@ -648,0 +681,0 @@

@@ -52,3 +52,3 @@ /**

*/
proto.forge_abi.AccountState.repeatedFields_ = [14];
proto.forge_abi.AccountState.repeatedFields_ = [13, 14];

@@ -90,3 +90,3 @@ if (jspb.Message.GENERATE_TO_OBJECT) {

context: (f = msg.getContext()) && type_pb.StateContext.toObject(includeInstance, f),
migratedTo: jspb.Message.getFieldWithDefault(msg, 13, ''),
migratedToList: jspb.Message.getRepeatedField(msg, 13),
migratedFromList: jspb.Message.getRepeatedField(msg, 14),

@@ -167,3 +167,3 @@ numAssets: jspb.Message.getFieldWithDefault(msg, 15, 0),

var value = /** @type {string} */ (reader.readString());
msg.setMigratedTo(value);
msg.addMigratedTo(value);
break;

@@ -247,5 +247,5 @@ case 14:

}
f = message.getMigratedTo();
f = message.getMigratedToList();
if (f.length > 0) {
writer.writeString(13, f);
writer.writeRepeatedString(13, f);
}

@@ -443,15 +443,27 @@ f = message.getMigratedFromList();

/**
* optional string migrated_to = 13;
* @return {string}
* repeated string migrated_to = 13;
* @return {!Array.<string>}
*/
proto.forge_abi.AccountState.prototype.getMigratedTo = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ''));
proto.forge_abi.AccountState.prototype.getMigratedToList = function() {
return /** @type {!Array.<string>} */ (jspb.Message.getRepeatedField(this, 13));
};
/** @param {string} value */
proto.forge_abi.AccountState.prototype.setMigratedTo = function(value) {
jspb.Message.setField(this, 13, value);
/** @param {!Array.<string>} value */
proto.forge_abi.AccountState.prototype.setMigratedToList = function(value) {
jspb.Message.setField(this, 13, value || []);
};
/**
* @param {!string} value
* @param {number=} opt_index
*/
proto.forge_abi.AccountState.prototype.addMigratedTo = function(value, opt_index) {
jspb.Message.addToRepeatedField(this, 13, value, opt_index);
};
proto.forge_abi.AccountState.prototype.clearMigratedToList = function() {
this.setMigratedToList([]);
};
/**
* repeated string migrated_from = 14;

@@ -1271,2 +1283,4 @@ * @return {!Array.<string>}

: [],
version: jspb.Message.getFieldWithDefault(msg, 4, ''),
dataVersion: jspb.Message.getFieldWithDefault(msg, 5, ''),
data: (f = msg.getData()) && google_protobuf_any_pb.Any.toObject(includeInstance, f),

@@ -1336,2 +1350,10 @@ };

break;
case 4:
var value = /** @type {string} */ (reader.readString());
msg.setVersion(value);
break;
case 5:
var value = /** @type {string} */ (reader.readString());
msg.setDataVersion(value);
break;
case 15:

@@ -1393,2 +1415,10 @@ var value = new google_protobuf_any_pb.Any();

}
f = message.getVersion();
if (f.length > 0) {
writer.writeString(4, f);
}
f = message.getDataVersion();
if (f.length > 0) {
writer.writeString(5, f);
}
f = message.getData();

@@ -1468,2 +1498,28 @@ if (f != null) {

/**
* optional string version = 4;
* @return {string}
*/
proto.forge_abi.ForgeState.prototype.getVersion = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ''));
};
/** @param {string} value */
proto.forge_abi.ForgeState.prototype.setVersion = function(value) {
jspb.Message.setField(this, 4, value);
};
/**
* optional string data_version = 5;
* @return {string}
*/
proto.forge_abi.ForgeState.prototype.getDataVersion = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ''));
};
/** @param {string} value */
proto.forge_abi.ForgeState.prototype.setDataVersion = function(value) {
jspb.Message.setField(this, 5, value);
};
/**
* optional google.protobuf.Any data = 15;

@@ -1470,0 +1526,0 @@ * @return {?proto.google.protobuf.Any}

4

package.json
{
"name": "@arcblock/forge-proto",
"description": "Static modules generated from forge-sdk protobuf files",
"version": "0.7.1",
"version": "0.7.4",
"author": "wangshijun <shijun@arcblock.io> (https://www.arcblock.io)",

@@ -55,3 +55,3 @@ "engines": {

},
"gitHead": "620f766855f2b62d973c50f0797717e8b06e2dbe"
"gitHead": "945f1202ce4d3335898c419c685173a1cd9b21bc"
}

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

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