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.5 to 0.7.6

59

lib/enum_pb.js

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

goog.exportSymbol('proto.forge_abi.KeyType', null, global);
goog.exportSymbol('proto.forge_abi.RoleType', null, global);
goog.exportSymbol('proto.forge_abi.StakeType', null, global);

@@ -38,10 +39,8 @@ goog.exportSymbol('proto.forge_abi.StateType', null, global);

UNSUPPORTED_TX: 9,
EXPIRED_TX: 10,
INVALID_MONIKER: 16,
INVALID_PASSPHRASE: 17,
INVALID_CHANNEL: 18,
INVALID_CHANNEL_WAITING_DATA: 19,
INVALID_MULTISIG: 20,
INVALID_WALLET: 21,
INVALID_CHAIN_ID: 22,
NEED_CONFIRMATION: 23,
CONSENSUS_RPC_ERROR: 24,

@@ -51,4 +50,2 @@ STORAGE_RPC_ERROR: 25,

ACCOUNT_MIGRATED: 27,
CHANNEL_IS_FULL: 28,
REVOKED_TX: 29,
UNSUPPORTED_STAKE: 30,

@@ -61,5 +58,6 @@ INSUFFICIENT_STAKE: 31,

INVALID_TX_SIZE: 36,
EXPIRED_TX: 37,
INVALID_SIGNER_STATE: 37,
INVALID_FORGE_STATE: 38,
FORBIDDEN: 403,
INTERNAL: 500
INTERNAL: 500,
};

@@ -72,20 +70,17 @@

TRANSFER: 0,
ACCOUNT_MIGRATE: 1,
CONFIRM: 2,
EXCHANGE: 1,
DECLARE: 2,
CREATE_ASSET: 3,
EXCHANGE: 4,
REVOKE: 5,
UPDATE_ASSET: 4,
STAKE: 5,
ACCOUNT_MIGRATE: 6,
BEGIN_BLOCK: 16,
END_BLOCK: 17,
DECLARE: 19,
UPDATE_ASSET: 20,
CONSENSUS_UPGRADE: 21,
DECLARE_FILE: 22,
SYS_UPGRADE: 23,
STAKE: 24,
ACCOUNT_STATE: 129,
ASSET_STATE: 130,
CHANNEL_STATE: 131,
FORGE_STATE: 132,
STAKE_STATE: 133
FORGE_STATE: 131,
STAKE_STATE: 132,
};

@@ -98,3 +93,3 @@

ED25519: 0,
SECP256K1: 1
SECP256K1: 1,
};

@@ -108,9 +103,6 @@

SHA3: 1,
SHA2: 2,
KECCAK_384: 6,
SHA3_384: 7,
SHA2_384: 9,
KECCAK_512: 13,
SHA3_512: 14,
SHA2_512: 15
};

@@ -123,3 +115,3 @@

BASE16: 0,
BASE58: 1
BASE58: 1,
};

@@ -130,2 +122,17 @@

*/
proto.forge_abi.RoleType = {
ROLE_ACCOUNT: 0,
ROLE_NODE: 1,
ROLE_DEVICE: 2,
ROLE_APPLICATION: 3,
ROLE_SMART_CONTRACT: 4,
ROLE_BOT: 5,
ROLE_ASSET: 6,
ROLE_STAKE: 7,
ROLE_VALIDATOR: 8,
};
/**
* @enum {number}
*/
proto.forge_abi.UpgradeType = {

@@ -141,3 +148,3 @@ CONFIG_APP: 0,

EXE_CONSENSUS: 13,
EXE_P2P: 14
EXE_P2P: 14,
};

@@ -160,3 +167,3 @@

CRASH_IF_FAIL: 33,
DROP_ADDRESS_BOOK: 50
DROP_ADDRESS_BOOK: 50,
};

@@ -172,3 +179,3 @@

STATE_FORGE: 3,
STATE_STAKE: 4
STATE_STAKE: 4,
};

@@ -183,3 +190,3 @@

STAKE_ASSET: 2,
STAKE_CHAIN: 3
STAKE_CHAIN: 3,
};

@@ -186,0 +193,0 @@

@@ -73,5 +73,5 @@ // GENERATED CODE -- DO NOT EDIT!

function serialize_forge_abi_RequestGetChainInfo(arg) {
if (!(arg instanceof rpc_pb.RequestGetChainInfo)) {
throw new Error('Expected argument of type forge_abi.RequestGetChainInfo');
function serialize_forge_abi_RequestGetBlocks(arg) {
if (!(arg instanceof rpc_pb.RequestGetBlocks)) {
throw new Error('Expected argument of type forge_abi.RequestGetBlocks');
}

@@ -81,9 +81,9 @@ return Buffer.from(arg.serializeBinary());

function deserialize_forge_abi_RequestGetChainInfo(buffer_arg) {
return rpc_pb.RequestGetChainInfo.deserializeBinary(new Uint8Array(buffer_arg));
function deserialize_forge_abi_RequestGetBlocks(buffer_arg) {
return rpc_pb.RequestGetBlocks.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_forge_abi_RequestGetChannelState(arg) {
if (!(arg instanceof rpc_pb.RequestGetChannelState)) {
throw new Error('Expected argument of type forge_abi.RequestGetChannelState');
function serialize_forge_abi_RequestGetChainInfo(arg) {
if (!(arg instanceof rpc_pb.RequestGetChainInfo)) {
throw new Error('Expected argument of type forge_abi.RequestGetChainInfo');
}

@@ -93,4 +93,4 @@ return Buffer.from(arg.serializeBinary());

function deserialize_forge_abi_RequestGetChannelState(buffer_arg) {
return rpc_pb.RequestGetChannelState.deserializeBinary(new Uint8Array(buffer_arg));
function deserialize_forge_abi_RequestGetChainInfo(buffer_arg) {
return rpc_pb.RequestGetChainInfo.deserializeBinary(new Uint8Array(buffer_arg));
}

@@ -120,2 +120,13 @@

function serialize_forge_abi_RequestGetForgeStatistics(arg) {
if (!(arg instanceof rpc_pb.RequestGetForgeStatistics)) {
throw new Error('Expected argument of type forge_abi.RequestGetForgeStatistics');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_forge_abi_RequestGetForgeStatistics(buffer_arg) {
return rpc_pb.RequestGetForgeStatistics.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_forge_abi_RequestGetNetInfo(arg) {

@@ -209,2 +220,24 @@ if (!(arg instanceof rpc_pb.RequestGetNetInfo)) {

function serialize_forge_abi_RequestMultisig(arg) {
if (!(arg instanceof rpc_pb.RequestMultisig)) {
throw new Error('Expected argument of type forge_abi.RequestMultisig');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_forge_abi_RequestMultisig(buffer_arg) {
return rpc_pb.RequestMultisig.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_forge_abi_RequestPinFile(arg) {
if (!(arg instanceof rpc_pb.RequestPinFile)) {
throw new Error('Expected argument of type forge_abi.RequestPinFile');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_forge_abi_RequestPinFile(buffer_arg) {
return rpc_pb.RequestPinFile.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_forge_abi_RequestRecoverWallet(arg) {

@@ -353,5 +386,5 @@ if (!(arg instanceof rpc_pb.RequestRecoverWallet)) {

function serialize_forge_abi_ResponseGetChainInfo(arg) {
if (!(arg instanceof rpc_pb.ResponseGetChainInfo)) {
throw new Error('Expected argument of type forge_abi.ResponseGetChainInfo');
function serialize_forge_abi_ResponseGetBlocks(arg) {
if (!(arg instanceof rpc_pb.ResponseGetBlocks)) {
throw new Error('Expected argument of type forge_abi.ResponseGetBlocks');
}

@@ -361,9 +394,9 @@ return Buffer.from(arg.serializeBinary());

function deserialize_forge_abi_ResponseGetChainInfo(buffer_arg) {
return rpc_pb.ResponseGetChainInfo.deserializeBinary(new Uint8Array(buffer_arg));
function deserialize_forge_abi_ResponseGetBlocks(buffer_arg) {
return rpc_pb.ResponseGetBlocks.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_forge_abi_ResponseGetChannelState(arg) {
if (!(arg instanceof rpc_pb.ResponseGetChannelState)) {
throw new Error('Expected argument of type forge_abi.ResponseGetChannelState');
function serialize_forge_abi_ResponseGetChainInfo(arg) {
if (!(arg instanceof rpc_pb.ResponseGetChainInfo)) {
throw new Error('Expected argument of type forge_abi.ResponseGetChainInfo');
}

@@ -373,4 +406,4 @@ return Buffer.from(arg.serializeBinary());

function deserialize_forge_abi_ResponseGetChannelState(buffer_arg) {
return rpc_pb.ResponseGetChannelState.deserializeBinary(new Uint8Array(buffer_arg));
function deserialize_forge_abi_ResponseGetChainInfo(buffer_arg) {
return rpc_pb.ResponseGetChainInfo.deserializeBinary(new Uint8Array(buffer_arg));
}

@@ -400,2 +433,13 @@

function serialize_forge_abi_ResponseGetForgeStatistics(arg) {
if (!(arg instanceof rpc_pb.ResponseGetForgeStatistics)) {
throw new Error('Expected argument of type forge_abi.ResponseGetForgeStatistics');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_forge_abi_ResponseGetForgeStatistics(buffer_arg) {
return rpc_pb.ResponseGetForgeStatistics.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_forge_abi_ResponseGetNetInfo(arg) {

@@ -489,2 +533,24 @@ if (!(arg instanceof rpc_pb.ResponseGetNetInfo)) {

function serialize_forge_abi_ResponseMultisig(arg) {
if (!(arg instanceof rpc_pb.ResponseMultisig)) {
throw new Error('Expected argument of type forge_abi.ResponseMultisig');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_forge_abi_ResponseMultisig(buffer_arg) {
return rpc_pb.ResponseMultisig.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_forge_abi_ResponsePinFile(arg) {
if (!(arg instanceof rpc_pb.ResponsePinFile)) {
throw new Error('Expected argument of type forge_abi.ResponsePinFile');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_forge_abi_ResponsePinFile(buffer_arg) {
return rpc_pb.ResponsePinFile.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_forge_abi_ResponseRecoverWallet(arg) {

@@ -567,3 +633,2 @@ if (!(arg instanceof rpc_pb.ResponseRecoverWallet)) {

// forge RPC definition

@@ -576,3 +641,3 @@ //

//
var ChainRpcService = exports.ChainRpcService = {
var ChainRpcService = (exports.ChainRpcService = {
// tx related

@@ -590,2 +655,13 @@ create_tx: {

},
multisig: {
path: '/forge_abi.ChainRpc/multisig',
requestStream: false,
responseStream: false,
requestType: rpc_pb.RequestMultisig,
responseType: rpc_pb.ResponseMultisig,
requestSerialize: serialize_forge_abi_RequestMultisig,
requestDeserialize: deserialize_forge_abi_RequestMultisig,
responseSerialize: serialize_forge_abi_ResponseMultisig,
responseDeserialize: deserialize_forge_abi_ResponseMultisig,
},
send_tx: {

@@ -624,2 +700,13 @@ path: '/forge_abi.ChainRpc/send_tx',

},
get_blocks: {
path: '/forge_abi.ChainRpc/get_blocks',
requestStream: false,
responseStream: false,
requestType: rpc_pb.RequestGetBlocks,
responseType: rpc_pb.ResponseGetBlocks,
requestSerialize: serialize_forge_abi_RequestGetBlocks,
requestDeserialize: deserialize_forge_abi_RequestGetBlocks,
responseSerialize: serialize_forge_abi_ResponseGetBlocks,
responseDeserialize: deserialize_forge_abi_ResponseGetBlocks,
},
get_unconfirmed_txs: {

@@ -692,6 +779,6 @@ path: '/forge_abi.ChainRpc/get_unconfirmed_txs',

},
};
});
exports.ChainRpcClient = grpc.makeGenericClientConstructor(ChainRpcService);
var EventRpcService = exports.EventRpcService = {
var EventRpcService = (exports.EventRpcService = {
subscribe: {

@@ -719,6 +806,6 @@ path: '/forge_abi.EventRpc/subscribe',

},
};
});
exports.EventRpcClient = grpc.makeGenericClientConstructor(EventRpcService);
var FileRpcService = exports.FileRpcService = {
var FileRpcService = (exports.FileRpcService = {
// filesystem related

@@ -747,6 +834,17 @@ store_file: {

},
};
pin_file: {
path: '/forge_abi.FileRpc/pin_file',
requestStream: false,
responseStream: false,
requestType: rpc_pb.RequestPinFile,
responseType: rpc_pb.ResponsePinFile,
requestSerialize: serialize_forge_abi_RequestPinFile,
requestDeserialize: deserialize_forge_abi_RequestPinFile,
responseSerialize: serialize_forge_abi_ResponsePinFile,
responseDeserialize: deserialize_forge_abi_ResponsePinFile,
},
});
exports.FileRpcClient = grpc.makeGenericClientConstructor(FileRpcService);
var StateRpcService = exports.StateRpcService = {
var StateRpcService = (exports.StateRpcService = {
// state related

@@ -775,13 +873,2 @@ get_account_state: {

},
get_channel_state: {
path: '/forge_abi.StateRpc/get_channel_state',
requestStream: true,
responseStream: true,
requestType: rpc_pb.RequestGetChannelState,
responseType: rpc_pb.ResponseGetChannelState,
requestSerialize: serialize_forge_abi_RequestGetChannelState,
requestDeserialize: deserialize_forge_abi_RequestGetChannelState,
responseSerialize: serialize_forge_abi_ResponseGetChannelState,
responseDeserialize: deserialize_forge_abi_ResponseGetChannelState,
},
get_stake_state: {

@@ -809,6 +896,6 @@ path: '/forge_abi.StateRpc/get_stake_state',

},
};
});
exports.StateRpcClient = grpc.makeGenericClientConstructor(StateRpcService);
var WalletRpcService = exports.WalletRpcService = {
var WalletRpcService = (exports.WalletRpcService = {
// wallet related

@@ -881,4 +968,19 @@ create_wallet: {

},
};
});
exports.WalletRpcClient = grpc.makeGenericClientConstructor(WalletRpcService);
var StatisticRpcService = (exports.StatisticRpcService = {
get_forge_statistics: {
path: '/forge_abi.StatisticRpc/get_forge_statistics',
requestStream: false,
responseStream: false,
requestType: rpc_pb.RequestGetForgeStatistics,
responseType: rpc_pb.ResponseGetForgeStatistics,
requestSerialize: serialize_forge_abi_RequestGetForgeStatistics,
requestDeserialize: deserialize_forge_abi_RequestGetForgeStatistics,
responseSerialize: serialize_forge_abi_ResponseGetForgeStatistics,
responseDeserialize: deserialize_forge_abi_ResponseGetForgeStatistics,
},
});
exports.StatisticRpcClient = grpc.makeGenericClientConstructor(StatisticRpcService);

@@ -18,5 +18,5 @@ /**

goog.exportSymbol('proto.forge_abi.AssetState', null, global);
goog.exportSymbol('proto.forge_abi.ChannelState', null, global);
goog.exportSymbol('proto.forge_abi.ForgeState', null, global);
goog.exportSymbol('proto.forge_abi.StakeState', null, global);
goog.exportSymbol('proto.forge_abi.StatisticsState', null, global);

@@ -34,3 +34,10 @@ /**

proto.forge_abi.AccountState = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.forge_abi.AccountState.repeatedFields_, null);
jspb.Message.initialize(
this,
opt_data,
0,
-1,
proto.forge_abi.AccountState.repeatedFields_,
null
);
};

@@ -46,56 +53,55 @@ goog.inherits(proto.forge_abi.AccountState, jspb.Message);

*/
proto.forge_abi.AccountState.repeatedFields_ = [13,14];
proto.forge_abi.AccountState.repeatedFields_ = [13, 14];
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.forge_abi.AccountState.prototype.toObject = function(opt_includeInstance) {
return proto.forge_abi.AccountState.toObject(opt_includeInstance, this);
};
/**
* 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.forge_abi.AccountState.prototype.toObject = function(opt_includeInstance) {
return proto.forge_abi.AccountState.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.forge_abi.AccountState} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.forge_abi.AccountState.toObject = function(includeInstance, msg) {
var f,
obj = {
balance: (f = msg.getBalance()) && type_pb.BigUint.toObject(includeInstance, f),
nonce: jspb.Message.getFieldWithDefault(msg, 2, 0),
numTxs: jspb.Message.getFieldWithDefault(msg, 3, 0),
address: jspb.Message.getFieldWithDefault(msg, 4, ''),
pk: msg.getPk(),
type: (f = msg.getType()) && type_pb.WalletType.toObject(includeInstance, f),
moniker: jspb.Message.getFieldWithDefault(msg, 7, ''),
context: (f = msg.getContext()) && type_pb.StateContext.toObject(includeInstance, f),
migratedToList: jspb.Message.getRepeatedField(msg, 13),
migratedFromList: jspb.Message.getRepeatedField(msg, 14),
numAssets: jspb.Message.getFieldWithDefault(msg, 15, 0),
stake: (f = msg.getStake()) && type_pb.StakeContext.toObject(includeInstance, f),
pinnedFiles:
(f = msg.getPinnedFiles()) && type_pb.CircularQueue.toObject(includeInstance, f),
data: (f = msg.getData()) && google_protobuf_any_pb.Any.toObject(includeInstance, f),
};
/**
* 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.forge_abi.AccountState} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.forge_abi.AccountState.toObject = function(includeInstance, msg) {
var f, obj = {
balance: (f = msg.getBalance()) && type_pb.BigUint.toObject(includeInstance, f),
nonce: jspb.Message.getFieldWithDefault(msg, 2, 0),
numTxs: jspb.Message.getFieldWithDefault(msg, 3, 0),
address: jspb.Message.getFieldWithDefault(msg, 4, ""),
pk: msg.getPk(),
type: (f = msg.getType()) && type_pb.WalletType.toObject(includeInstance, f),
moniker: jspb.Message.getFieldWithDefault(msg, 7, ""),
context: (f = msg.getContext()) && type_pb.StateContext.toObject(includeInstance, f),
migratedToList: jspb.Message.getRepeatedField(msg, 13),
migratedFromList: jspb.Message.getRepeatedField(msg, 14),
numAssets: jspb.Message.getFieldWithDefault(msg, 15, 0),
stake: (f = msg.getStake()) && type_pb.StakeContext.toObject(includeInstance, f),
data: (f = msg.getData()) && google_protobuf_any_pb.Any.toObject(includeInstance, f)
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**

@@ -108,7 +114,6 @@ * Deserializes binary data (in protobuf wire format).

var reader = new jspb.BinaryReader(bytes);
var msg = new proto.forge_abi.AccountState;
var msg = new proto.forge_abi.AccountState();
return proto.forge_abi.AccountState.deserializeBinaryFromReader(msg, reader);
};
/**

@@ -128,62 +133,67 @@ * Deserializes binary data (in protobuf wire format) from the

switch (field) {
case 1:
var value = new type_pb.BigUint;
reader.readMessage(value,type_pb.BigUint.deserializeBinaryFromReader);
msg.setBalance(value);
break;
case 2:
var value = /** @type {number} */ (reader.readUint64());
msg.setNonce(value);
break;
case 3:
var value = /** @type {number} */ (reader.readUint64());
msg.setNumTxs(value);
break;
case 4:
var value = /** @type {string} */ (reader.readString());
msg.setAddress(value);
break;
case 5:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.setPk(value);
break;
case 6:
var value = new type_pb.WalletType;
reader.readMessage(value,type_pb.WalletType.deserializeBinaryFromReader);
msg.setType(value);
break;
case 7:
var value = /** @type {string} */ (reader.readString());
msg.setMoniker(value);
break;
case 8:
var value = new type_pb.StateContext;
reader.readMessage(value,type_pb.StateContext.deserializeBinaryFromReader);
msg.setContext(value);
break;
case 13:
var value = /** @type {string} */ (reader.readString());
msg.addMigratedTo(value);
break;
case 14:
var value = /** @type {string} */ (reader.readString());
msg.addMigratedFrom(value);
break;
case 15:
var value = /** @type {number} */ (reader.readUint64());
msg.setNumAssets(value);
break;
case 16:
var value = new type_pb.StakeContext;
reader.readMessage(value,type_pb.StakeContext.deserializeBinaryFromReader);
msg.setStake(value);
break;
case 50:
var value = new google_protobuf_any_pb.Any;
reader.readMessage(value,google_protobuf_any_pb.Any.deserializeBinaryFromReader);
msg.setData(value);
break;
default:
reader.skipField();
break;
case 1:
var value = new type_pb.BigUint();
reader.readMessage(value, type_pb.BigUint.deserializeBinaryFromReader);
msg.setBalance(value);
break;
case 2:
var value = /** @type {number} */ (reader.readUint64());
msg.setNonce(value);
break;
case 3:
var value = /** @type {number} */ (reader.readUint64());
msg.setNumTxs(value);
break;
case 4:
var value = /** @type {string} */ (reader.readString());
msg.setAddress(value);
break;
case 5:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.setPk(value);
break;
case 6:
var value = new type_pb.WalletType();
reader.readMessage(value, type_pb.WalletType.deserializeBinaryFromReader);
msg.setType(value);
break;
case 7:
var value = /** @type {string} */ (reader.readString());
msg.setMoniker(value);
break;
case 8:
var value = new type_pb.StateContext();
reader.readMessage(value, type_pb.StateContext.deserializeBinaryFromReader);
msg.setContext(value);
break;
case 13:
var value = /** @type {string} */ (reader.readString());
msg.addMigratedTo(value);
break;
case 14:
var value = /** @type {string} */ (reader.readString());
msg.addMigratedFrom(value);
break;
case 15:
var value = /** @type {number} */ (reader.readUint64());
msg.setNumAssets(value);
break;
case 16:
var value = new type_pb.StakeContext();
reader.readMessage(value, type_pb.StakeContext.deserializeBinaryFromReader);
msg.setStake(value);
break;
case 17:
var value = new type_pb.CircularQueue();
reader.readMessage(value, type_pb.CircularQueue.deserializeBinaryFromReader);
msg.setPinnedFiles(value);
break;
case 50:
var value = new google_protobuf_any_pb.Any();
reader.readMessage(value, google_protobuf_any_pb.Any.deserializeBinaryFromReader);
msg.setData(value);
break;
default:
reader.skipField();
break;
}

@@ -194,3 +204,2 @@ }

/**

@@ -206,3 +215,2 @@ * Serializes the message to binary data (in protobuf wire format).

/**

@@ -219,99 +227,58 @@ * Serializes the given message to binary data (in protobuf wire

if (f != null) {
writer.writeMessage(
1,
f,
type_pb.BigUint.serializeBinaryToWriter
);
writer.writeMessage(1, f, type_pb.BigUint.serializeBinaryToWriter);
}
f = message.getNonce();
if (f !== 0) {
writer.writeUint64(
2,
f
);
writer.writeUint64(2, f);
}
f = message.getNumTxs();
if (f !== 0) {
writer.writeUint64(
3,
f
);
writer.writeUint64(3, f);
}
f = message.getAddress();
if (f.length > 0) {
writer.writeString(
4,
f
);
writer.writeString(4, f);
}
f = message.getPk_asU8();
if (f.length > 0) {
writer.writeBytes(
5,
f
);
writer.writeBytes(5, f);
}
f = message.getType();
if (f != null) {
writer.writeMessage(
6,
f,
type_pb.WalletType.serializeBinaryToWriter
);
writer.writeMessage(6, f, type_pb.WalletType.serializeBinaryToWriter);
}
f = message.getMoniker();
if (f.length > 0) {
writer.writeString(
7,
f
);
writer.writeString(7, f);
}
f = message.getContext();
if (f != null) {
writer.writeMessage(
8,
f,
type_pb.StateContext.serializeBinaryToWriter
);
writer.writeMessage(8, f, type_pb.StateContext.serializeBinaryToWriter);
}
f = message.getMigratedToList();
if (f.length > 0) {
writer.writeRepeatedString(
13,
f
);
writer.writeRepeatedString(13, f);
}
f = message.getMigratedFromList();
if (f.length > 0) {
writer.writeRepeatedString(
14,
f
);
writer.writeRepeatedString(14, f);
}
f = message.getNumAssets();
if (f !== 0) {
writer.writeUint64(
15,
f
);
writer.writeUint64(15, f);
}
f = message.getStake();
if (f != null) {
writer.writeMessage(
16,
f,
type_pb.StakeContext.serializeBinaryToWriter
);
writer.writeMessage(16, f, type_pb.StakeContext.serializeBinaryToWriter);
}
f = message.getPinnedFiles();
if (f != null) {
writer.writeMessage(17, f, type_pb.CircularQueue.serializeBinaryToWriter);
}
f = message.getData();
if (f != null) {
writer.writeMessage(
50,
f,
google_protobuf_any_pb.Any.serializeBinaryToWriter
);
writer.writeMessage(50, f, google_protobuf_any_pb.Any.serializeBinaryToWriter);
}
};
/**

@@ -322,7 +289,9 @@ * optional BigUint balance = 1;

proto.forge_abi.AccountState.prototype.getBalance = function() {
return /** @type{?proto.forge_abi.BigUint} */ (
jspb.Message.getWrapperField(this, type_pb.BigUint, 1));
return /** @type{?proto.forge_abi.BigUint} */ (jspb.Message.getWrapperField(
this,
type_pb.BigUint,
1
));
};
/** @param {?proto.forge_abi.BigUint|undefined} value */

@@ -333,3 +302,2 @@ proto.forge_abi.AccountState.prototype.setBalance = function(value) {

proto.forge_abi.AccountState.prototype.clearBalance = function() {

@@ -339,3 +307,2 @@ this.setBalance(undefined);

/**

@@ -349,3 +316,2 @@ * Returns whether this field is set.

/**

@@ -359,3 +325,2 @@ * optional uint64 nonce = 2;

/** @param {number} value */

@@ -366,3 +331,2 @@ proto.forge_abi.AccountState.prototype.setNonce = function(value) {

/**

@@ -376,3 +340,2 @@ * optional uint64 num_txs = 3;

/** @param {number} value */

@@ -383,3 +346,2 @@ proto.forge_abi.AccountState.prototype.setNumTxs = function(value) {

/**

@@ -390,6 +352,5 @@ * optional string address = 4;

proto.forge_abi.AccountState.prototype.getAddress = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ''));
};
/** @param {string} value */

@@ -400,3 +361,2 @@ proto.forge_abi.AccountState.prototype.setAddress = function(value) {

/**

@@ -407,6 +367,5 @@ * optional bytes pk = 5;

proto.forge_abi.AccountState.prototype.getPk = function() {
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 5, ''));
};
/**

@@ -418,7 +377,5 @@ * optional bytes pk = 5;

proto.forge_abi.AccountState.prototype.getPk_asB64 = function() {
return /** @type {string} */ (jspb.Message.bytesAsB64(
this.getPk()));
return /** @type {string} */ (jspb.Message.bytesAsB64(this.getPk()));
};
/**

@@ -432,7 +389,5 @@ * optional bytes pk = 5;

proto.forge_abi.AccountState.prototype.getPk_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
this.getPk()));
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(this.getPk()));
};
/** @param {!(string|Uint8Array)} value */

@@ -443,3 +398,2 @@ proto.forge_abi.AccountState.prototype.setPk = function(value) {

/**

@@ -450,7 +404,9 @@ * optional WalletType type = 6;

proto.forge_abi.AccountState.prototype.getType = function() {
return /** @type{?proto.forge_abi.WalletType} */ (
jspb.Message.getWrapperField(this, type_pb.WalletType, 6));
return /** @type{?proto.forge_abi.WalletType} */ (jspb.Message.getWrapperField(
this,
type_pb.WalletType,
6
));
};
/** @param {?proto.forge_abi.WalletType|undefined} value */

@@ -461,3 +417,2 @@ proto.forge_abi.AccountState.prototype.setType = function(value) {

proto.forge_abi.AccountState.prototype.clearType = function() {

@@ -467,3 +422,2 @@ this.setType(undefined);

/**

@@ -477,3 +431,2 @@ * Returns whether this field is set.

/**

@@ -484,6 +437,5 @@ * optional string moniker = 7;

proto.forge_abi.AccountState.prototype.getMoniker = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ''));
};
/** @param {string} value */

@@ -494,3 +446,2 @@ proto.forge_abi.AccountState.prototype.setMoniker = function(value) {

/**

@@ -501,7 +452,9 @@ * optional StateContext context = 8;

proto.forge_abi.AccountState.prototype.getContext = function() {
return /** @type{?proto.forge_abi.StateContext} */ (
jspb.Message.getWrapperField(this, type_pb.StateContext, 8));
return /** @type{?proto.forge_abi.StateContext} */ (jspb.Message.getWrapperField(
this,
type_pb.StateContext,
8
));
};
/** @param {?proto.forge_abi.StateContext|undefined} value */

@@ -512,3 +465,2 @@ proto.forge_abi.AccountState.prototype.setContext = function(value) {

proto.forge_abi.AccountState.prototype.clearContext = function() {

@@ -518,3 +470,2 @@ this.setContext(undefined);

/**

@@ -528,3 +479,2 @@ * Returns whether this field is set.

/**

@@ -538,3 +488,2 @@ * repeated string migrated_to = 13;

/** @param {!Array.<string>} value */

@@ -545,3 +494,2 @@ proto.forge_abi.AccountState.prototype.setMigratedToList = function(value) {

/**

@@ -555,3 +503,2 @@ * @param {!string} value

proto.forge_abi.AccountState.prototype.clearMigratedToList = function() {

@@ -561,3 +508,2 @@ this.setMigratedToList([]);

/**

@@ -571,3 +517,2 @@ * repeated string migrated_from = 14;

/** @param {!Array.<string>} value */

@@ -578,3 +523,2 @@ proto.forge_abi.AccountState.prototype.setMigratedFromList = function(value) {

/**

@@ -588,3 +532,2 @@ * @param {!string} value

proto.forge_abi.AccountState.prototype.clearMigratedFromList = function() {

@@ -594,3 +537,2 @@ this.setMigratedFromList([]);

/**

@@ -604,3 +546,2 @@ * optional uint64 num_assets = 15;

/** @param {number} value */

@@ -611,3 +552,2 @@ proto.forge_abi.AccountState.prototype.setNumAssets = function(value) {

/**

@@ -618,7 +558,9 @@ * optional StakeContext stake = 16;

proto.forge_abi.AccountState.prototype.getStake = function() {
return /** @type{?proto.forge_abi.StakeContext} */ (
jspb.Message.getWrapperField(this, type_pb.StakeContext, 16));
return /** @type{?proto.forge_abi.StakeContext} */ (jspb.Message.getWrapperField(
this,
type_pb.StakeContext,
16
));
};
/** @param {?proto.forge_abi.StakeContext|undefined} value */

@@ -629,3 +571,2 @@ proto.forge_abi.AccountState.prototype.setStake = function(value) {

proto.forge_abi.AccountState.prototype.clearStake = function() {

@@ -635,3 +576,2 @@ this.setStake(undefined);

/**

@@ -645,4 +585,32 @@ * Returns whether this field is set.

/**
* optional CircularQueue pinned_files = 17;
* @return {?proto.forge_abi.CircularQueue}
*/
proto.forge_abi.AccountState.prototype.getPinnedFiles = function() {
return /** @type{?proto.forge_abi.CircularQueue} */ (jspb.Message.getWrapperField(
this,
type_pb.CircularQueue,
17
));
};
/** @param {?proto.forge_abi.CircularQueue|undefined} value */
proto.forge_abi.AccountState.prototype.setPinnedFiles = function(value) {
jspb.Message.setWrapperField(this, 17, value);
};
proto.forge_abi.AccountState.prototype.clearPinnedFiles = function() {
this.setPinnedFiles(undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
*/
proto.forge_abi.AccountState.prototype.hasPinnedFiles = function() {
return jspb.Message.getField(this, 17) != null;
};
/**
* optional google.protobuf.Any data = 50;

@@ -652,7 +620,9 @@ * @return {?proto.google.protobuf.Any}

proto.forge_abi.AccountState.prototype.getData = function() {
return /** @type{?proto.google.protobuf.Any} */ (
jspb.Message.getWrapperField(this, google_protobuf_any_pb.Any, 50));
return /** @type{?proto.google.protobuf.Any} */ (jspb.Message.getWrapperField(
this,
google_protobuf_any_pb.Any,
50
));
};
/** @param {?proto.google.protobuf.Any|undefined} value */

@@ -663,3 +633,2 @@ proto.forge_abi.AccountState.prototype.setData = function(value) {

proto.forge_abi.AccountState.prototype.clearData = function() {

@@ -669,3 +638,2 @@ this.setData(undefined);

/**

@@ -679,4 +647,2 @@ * Returns whether this field is set.

/**

@@ -700,47 +666,45 @@ * Generated by JsPbCodeGenerator.

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.forge_abi.AssetState.prototype.toObject = function(opt_includeInstance) {
return proto.forge_abi.AssetState.toObject(opt_includeInstance, this);
};
/**
* 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.forge_abi.AssetState.prototype.toObject = function(opt_includeInstance) {
return proto.forge_abi.AssetState.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.forge_abi.AssetState} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.forge_abi.AssetState.toObject = function(includeInstance, msg) {
var f,
obj = {
address: jspb.Message.getFieldWithDefault(msg, 1, ''),
owner: jspb.Message.getFieldWithDefault(msg, 2, ''),
moniker: jspb.Message.getFieldWithDefault(msg, 3, ''),
readonly: jspb.Message.getFieldWithDefault(msg, 4, false),
stake: (f = msg.getStake()) && type_pb.StakeContext.toObject(includeInstance, f),
context: (f = msg.getContext()) && type_pb.StateContext.toObject(includeInstance, f),
data: (f = msg.getData()) && google_protobuf_any_pb.Any.toObject(includeInstance, f),
};
/**
* 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.forge_abi.AssetState} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.forge_abi.AssetState.toObject = function(includeInstance, msg) {
var f, obj = {
address: jspb.Message.getFieldWithDefault(msg, 1, ""),
owner: jspb.Message.getFieldWithDefault(msg, 2, ""),
moniker: jspb.Message.getFieldWithDefault(msg, 3, ""),
readonly: jspb.Message.getFieldWithDefault(msg, 4, false),
stake: (f = msg.getStake()) && type_pb.StakeContext.toObject(includeInstance, f),
context: (f = msg.getContext()) && type_pb.StateContext.toObject(includeInstance, f),
data: (f = msg.getData()) && google_protobuf_any_pb.Any.toObject(includeInstance, f)
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**

@@ -753,7 +717,6 @@ * Deserializes binary data (in protobuf wire format).

var reader = new jspb.BinaryReader(bytes);
var msg = new proto.forge_abi.AssetState;
var msg = new proto.forge_abi.AssetState();
return proto.forge_abi.AssetState.deserializeBinaryFromReader(msg, reader);
};
/**

@@ -773,36 +736,36 @@ * Deserializes binary data (in protobuf wire format) from the

switch (field) {
case 1:
var value = /** @type {string} */ (reader.readString());
msg.setAddress(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setOwner(value);
break;
case 3:
var value = /** @type {string} */ (reader.readString());
msg.setMoniker(value);
break;
case 4:
var value = /** @type {boolean} */ (reader.readBool());
msg.setReadonly(value);
break;
case 13:
var value = new type_pb.StakeContext;
reader.readMessage(value,type_pb.StakeContext.deserializeBinaryFromReader);
msg.setStake(value);
break;
case 14:
var value = new type_pb.StateContext;
reader.readMessage(value,type_pb.StateContext.deserializeBinaryFromReader);
msg.setContext(value);
break;
case 50:
var value = new google_protobuf_any_pb.Any;
reader.readMessage(value,google_protobuf_any_pb.Any.deserializeBinaryFromReader);
msg.setData(value);
break;
default:
reader.skipField();
break;
case 1:
var value = /** @type {string} */ (reader.readString());
msg.setAddress(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setOwner(value);
break;
case 3:
var value = /** @type {string} */ (reader.readString());
msg.setMoniker(value);
break;
case 4:
var value = /** @type {boolean} */ (reader.readBool());
msg.setReadonly(value);
break;
case 13:
var value = new type_pb.StakeContext();
reader.readMessage(value, type_pb.StakeContext.deserializeBinaryFromReader);
msg.setStake(value);
break;
case 14:
var value = new type_pb.StateContext();
reader.readMessage(value, type_pb.StateContext.deserializeBinaryFromReader);
msg.setContext(value);
break;
case 50:
var value = new google_protobuf_any_pb.Any();
reader.readMessage(value, google_protobuf_any_pb.Any.deserializeBinaryFromReader);
msg.setData(value);
break;
default:
reader.skipField();
break;
}

@@ -813,3 +776,2 @@ }

/**

@@ -825,3 +787,2 @@ * Serializes the message to binary data (in protobuf wire format).

/**

@@ -838,55 +799,30 @@ * Serializes the given message to binary data (in protobuf wire

if (f.length > 0) {
writer.writeString(
1,
f
);
writer.writeString(1, f);
}
f = message.getOwner();
if (f.length > 0) {
writer.writeString(
2,
f
);
writer.writeString(2, f);
}
f = message.getMoniker();
if (f.length > 0) {
writer.writeString(
3,
f
);
writer.writeString(3, f);
}
f = message.getReadonly();
if (f) {
writer.writeBool(
4,
f
);
writer.writeBool(4, f);
}
f = message.getStake();
if (f != null) {
writer.writeMessage(
13,
f,
type_pb.StakeContext.serializeBinaryToWriter
);
writer.writeMessage(13, f, type_pb.StakeContext.serializeBinaryToWriter);
}
f = message.getContext();
if (f != null) {
writer.writeMessage(
14,
f,
type_pb.StateContext.serializeBinaryToWriter
);
writer.writeMessage(14, f, type_pb.StateContext.serializeBinaryToWriter);
}
f = message.getData();
if (f != null) {
writer.writeMessage(
50,
f,
google_protobuf_any_pb.Any.serializeBinaryToWriter
);
writer.writeMessage(50, f, google_protobuf_any_pb.Any.serializeBinaryToWriter);
}
};
/**

@@ -897,6 +833,5 @@ * optional string address = 1;

proto.forge_abi.AssetState.prototype.getAddress = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ''));
};
/** @param {string} value */

@@ -907,3 +842,2 @@ proto.forge_abi.AssetState.prototype.setAddress = function(value) {

/**

@@ -914,6 +848,5 @@ * optional string owner = 2;

proto.forge_abi.AssetState.prototype.getOwner = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ''));
};
/** @param {string} value */

@@ -924,3 +857,2 @@ proto.forge_abi.AssetState.prototype.setOwner = function(value) {

/**

@@ -931,6 +863,5 @@ * optional string moniker = 3;

proto.forge_abi.AssetState.prototype.getMoniker = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ''));
};
/** @param {string} value */

@@ -941,3 +872,2 @@ proto.forge_abi.AssetState.prototype.setMoniker = function(value) {

/**

@@ -953,3 +883,2 @@ * optional bool readonly = 4;

/** @param {boolean} value */

@@ -960,3 +889,2 @@ proto.forge_abi.AssetState.prototype.setReadonly = function(value) {

/**

@@ -967,7 +895,9 @@ * optional StakeContext stake = 13;

proto.forge_abi.AssetState.prototype.getStake = function() {
return /** @type{?proto.forge_abi.StakeContext} */ (
jspb.Message.getWrapperField(this, type_pb.StakeContext, 13));
return /** @type{?proto.forge_abi.StakeContext} */ (jspb.Message.getWrapperField(
this,
type_pb.StakeContext,
13
));
};
/** @param {?proto.forge_abi.StakeContext|undefined} value */

@@ -978,3 +908,2 @@ proto.forge_abi.AssetState.prototype.setStake = function(value) {

proto.forge_abi.AssetState.prototype.clearStake = function() {

@@ -984,3 +913,2 @@ this.setStake(undefined);

/**

@@ -994,3 +922,2 @@ * Returns whether this field is set.

/**

@@ -1001,7 +928,9 @@ * optional StateContext context = 14;

proto.forge_abi.AssetState.prototype.getContext = function() {
return /** @type{?proto.forge_abi.StateContext} */ (
jspb.Message.getWrapperField(this, type_pb.StateContext, 14));
return /** @type{?proto.forge_abi.StateContext} */ (jspb.Message.getWrapperField(
this,
type_pb.StateContext,
14
));
};
/** @param {?proto.forge_abi.StateContext|undefined} value */

@@ -1012,3 +941,2 @@ proto.forge_abi.AssetState.prototype.setContext = function(value) {

proto.forge_abi.AssetState.prototype.clearContext = function() {

@@ -1018,3 +946,2 @@ this.setContext(undefined);

/**

@@ -1028,3 +955,2 @@ * Returns whether this field is set.

/**

@@ -1035,7 +961,9 @@ * optional google.protobuf.Any data = 50;

proto.forge_abi.AssetState.prototype.getData = function() {
return /** @type{?proto.google.protobuf.Any} */ (
jspb.Message.getWrapperField(this, google_protobuf_any_pb.Any, 50));
return /** @type{?proto.google.protobuf.Any} */ (jspb.Message.getWrapperField(
this,
google_protobuf_any_pb.Any,
50
));
};
/** @param {?proto.google.protobuf.Any|undefined} value */

@@ -1046,3 +974,2 @@ proto.forge_abi.AssetState.prototype.setData = function(value) {

proto.forge_abi.AssetState.prototype.clearData = function() {

@@ -1052,3 +979,2 @@ this.setData(undefined);

/**

@@ -1062,4 +988,2 @@ * Returns whether this field is set.

/**

@@ -1075,76 +999,77 @@ * Generated by JsPbCodeGenerator.

*/
proto.forge_abi.ChannelState = function(opt_data) {
proto.forge_abi.ForgeState = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.forge_abi.ChannelState, jspb.Message);
goog.inherits(proto.forge_abi.ForgeState, jspb.Message);
if (goog.DEBUG && !COMPILED) {
proto.forge_abi.ChannelState.displayName = 'proto.forge_abi.ChannelState';
proto.forge_abi.ForgeState.displayName = 'proto.forge_abi.ForgeState';
}
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.forge_abi.ChannelState.prototype.toObject = function(opt_includeInstance) {
return proto.forge_abi.ChannelState.toObject(opt_includeInstance, this);
};
/**
* 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.forge_abi.ForgeState.prototype.toObject = function(opt_includeInstance) {
return proto.forge_abi.ForgeState.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.forge_abi.ForgeState} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.forge_abi.ForgeState.toObject = function(includeInstance, msg) {
var f,
obj = {
address: jspb.Message.getFieldWithDefault(msg, 1, ''),
consensus: (f = msg.getConsensus()) && type_pb.ConsensusParams.toObject(includeInstance, f),
tasksMap: (f = msg.getTasksMap())
? f.toObject(includeInstance, proto.forge_abi.UpgradeTasks.toObject)
: [],
stakeSummaryMap: (f = msg.getStakeSummaryMap())
? f.toObject(includeInstance, proto.forge_abi.StakeSummary.toObject)
: [],
version: jspb.Message.getFieldWithDefault(msg, 5, ''),
dataVersion: jspb.Message.getFieldWithDefault(msg, 6, ''),
forgeAppHash: msg.getForgeAppHash(),
data: (f = msg.getData()) && google_protobuf_any_pb.Any.toObject(includeInstance, f),
};
/**
* 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.forge_abi.ChannelState} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.forge_abi.ChannelState.toObject = function(includeInstance, msg) {
var f, obj = {
address: jspb.Message.getFieldWithDefault(msg, 1, ""),
totalConfirmed: jspb.Message.getFieldWithDefault(msg, 2, 0),
maxWaiting: jspb.Message.getFieldWithDefault(msg, 3, 0),
maxConfirmed: jspb.Message.getFieldWithDefault(msg, 4, 0),
waiting: (f = msg.getWaiting()) && type_pb.CircularQueue.toObject(includeInstance, f),
confirmed: (f = msg.getConfirmed()) && type_pb.CircularQueue.toObject(includeInstance, f),
context: (f = msg.getContext()) && type_pb.StateContext.toObject(includeInstance, f),
data: (f = msg.getData()) && google_protobuf_any_pb.Any.toObject(includeInstance, f)
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.forge_abi.ChannelState}
* @return {!proto.forge_abi.ForgeState}
*/
proto.forge_abi.ChannelState.deserializeBinary = function(bytes) {
proto.forge_abi.ForgeState.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.forge_abi.ChannelState;
return proto.forge_abi.ChannelState.deserializeBinaryFromReader(msg, reader);
var msg = new proto.forge_abi.ForgeState();
return proto.forge_abi.ForgeState.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.forge_abi.ChannelState} msg The message object to deserialize into.
* @param {!proto.forge_abi.ForgeState} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.forge_abi.ChannelState}
* @return {!proto.forge_abi.ForgeState}
*/
proto.forge_abi.ChannelState.deserializeBinaryFromReader = function(msg, reader) {
proto.forge_abi.ForgeState.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {

@@ -1156,41 +1081,55 @@ if (reader.isEndGroup()) {

switch (field) {
case 1:
var value = /** @type {string} */ (reader.readString());
msg.setAddress(value);
break;
case 2:
var value = /** @type {number} */ (reader.readUint64());
msg.setTotalConfirmed(value);
break;
case 3:
var value = /** @type {number} */ (reader.readUint32());
msg.setMaxWaiting(value);
break;
case 4:
var value = /** @type {number} */ (reader.readUint32());
msg.setMaxConfirmed(value);
break;
case 5:
var value = new type_pb.CircularQueue;
reader.readMessage(value,type_pb.CircularQueue.deserializeBinaryFromReader);
msg.setWaiting(value);
break;
case 6:
var value = new type_pb.CircularQueue;
reader.readMessage(value,type_pb.CircularQueue.deserializeBinaryFromReader);
msg.setConfirmed(value);
break;
case 14:
var value = new type_pb.StateContext;
reader.readMessage(value,type_pb.StateContext.deserializeBinaryFromReader);
msg.setContext(value);
break;
case 50:
var value = new google_protobuf_any_pb.Any;
reader.readMessage(value,google_protobuf_any_pb.Any.deserializeBinaryFromReader);
msg.setData(value);
break;
default:
reader.skipField();
break;
case 1:
var value = /** @type {string} */ (reader.readString());
msg.setAddress(value);
break;
case 2:
var value = new type_pb.ConsensusParams();
reader.readMessage(value, type_pb.ConsensusParams.deserializeBinaryFromReader);
msg.setConsensus(value);
break;
case 3:
var value = msg.getTasksMap();
reader.readMessage(value, function(message, reader) {
jspb.Map.deserializeBinary(
message,
reader,
jspb.BinaryReader.prototype.readUint64,
jspb.BinaryReader.prototype.readMessage,
proto.forge_abi.UpgradeTasks.deserializeBinaryFromReader
);
});
break;
case 4:
var value = msg.getStakeSummaryMap();
reader.readMessage(value, function(message, reader) {
jspb.Map.deserializeBinary(
message,
reader,
jspb.BinaryReader.prototype.readUint32,
jspb.BinaryReader.prototype.readMessage,
proto.forge_abi.StakeSummary.deserializeBinaryFromReader
);
});
break;
case 5:
var value = /** @type {string} */ (reader.readString());
msg.setVersion(value);
break;
case 6:
var value = /** @type {string} */ (reader.readString());
msg.setDataVersion(value);
break;
case 7:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.setForgeAppHash(value);
break;
case 15:
var value = new google_protobuf_any_pb.Any();
reader.readMessage(value, google_protobuf_any_pb.Any.deserializeBinaryFromReader);
msg.setData(value);
break;
default:
reader.skipField();
break;
}

@@ -1201,3 +1140,2 @@ }

/**

@@ -1207,81 +1145,63 @@ * Serializes the message to binary data (in protobuf wire format).

*/
proto.forge_abi.ChannelState.prototype.serializeBinary = function() {
proto.forge_abi.ForgeState.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.forge_abi.ChannelState.serializeBinaryToWriter(this, writer);
proto.forge_abi.ForgeState.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.forge_abi.ChannelState} message
* @param {!proto.forge_abi.ForgeState} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.forge_abi.ChannelState.serializeBinaryToWriter = function(message, writer) {
proto.forge_abi.ForgeState.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getAddress();
if (f.length > 0) {
writer.writeString(
1,
f
);
writer.writeString(1, f);
}
f = message.getTotalConfirmed();
if (f !== 0) {
writer.writeUint64(
2,
f
);
f = message.getConsensus();
if (f != null) {
writer.writeMessage(2, f, type_pb.ConsensusParams.serializeBinaryToWriter);
}
f = message.getMaxWaiting();
if (f !== 0) {
writer.writeUint32(
f = message.getTasksMap(true);
if (f && f.getLength() > 0) {
f.serializeBinary(
3,
f
writer,
jspb.BinaryWriter.prototype.writeUint64,
jspb.BinaryWriter.prototype.writeMessage,
proto.forge_abi.UpgradeTasks.serializeBinaryToWriter
);
}
f = message.getMaxConfirmed();
if (f !== 0) {
writer.writeUint32(
f = message.getStakeSummaryMap(true);
if (f && f.getLength() > 0) {
f.serializeBinary(
4,
f
writer,
jspb.BinaryWriter.prototype.writeUint32,
jspb.BinaryWriter.prototype.writeMessage,
proto.forge_abi.StakeSummary.serializeBinaryToWriter
);
}
f = message.getWaiting();
if (f != null) {
writer.writeMessage(
5,
f,
type_pb.CircularQueue.serializeBinaryToWriter
);
f = message.getVersion();
if (f.length > 0) {
writer.writeString(5, f);
}
f = message.getConfirmed();
if (f != null) {
writer.writeMessage(
6,
f,
type_pb.CircularQueue.serializeBinaryToWriter
);
f = message.getDataVersion();
if (f.length > 0) {
writer.writeString(6, f);
}
f = message.getContext();
if (f != null) {
writer.writeMessage(
14,
f,
type_pb.StateContext.serializeBinaryToWriter
);
f = message.getForgeAppHash_asU8();
if (f.length > 0) {
writer.writeBytes(7, f);
}
f = message.getData();
if (f != null) {
writer.writeMessage(
50,
f,
google_protobuf_any_pb.Any.serializeBinaryToWriter
);
writer.writeMessage(15, f, google_protobuf_any_pb.Any.serializeBinaryToWriter);
}
};
/**

@@ -1291,169 +1211,158 @@ * optional string address = 1;

*/
proto.forge_abi.ChannelState.prototype.getAddress = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
proto.forge_abi.ForgeState.prototype.getAddress = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ''));
};
/** @param {string} value */
proto.forge_abi.ChannelState.prototype.setAddress = function(value) {
proto.forge_abi.ForgeState.prototype.setAddress = function(value) {
jspb.Message.setField(this, 1, value);
};
/**
* optional uint64 total_confirmed = 2;
* @return {number}
* optional ConsensusParams consensus = 2;
* @return {?proto.forge_abi.ConsensusParams}
*/
proto.forge_abi.ChannelState.prototype.getTotalConfirmed = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
proto.forge_abi.ForgeState.prototype.getConsensus = function() {
return /** @type{?proto.forge_abi.ConsensusParams} */ (jspb.Message.getWrapperField(
this,
type_pb.ConsensusParams,
2
));
};
/** @param {?proto.forge_abi.ConsensusParams|undefined} value */
proto.forge_abi.ForgeState.prototype.setConsensus = function(value) {
jspb.Message.setWrapperField(this, 2, value);
};
/** @param {number} value */
proto.forge_abi.ChannelState.prototype.setTotalConfirmed = function(value) {
jspb.Message.setField(this, 2, value);
proto.forge_abi.ForgeState.prototype.clearConsensus = function() {
this.setConsensus(undefined);
};
/**
* optional uint32 max_waiting = 3;
* @return {number}
* Returns whether this field is set.
* @return {!boolean}
*/
proto.forge_abi.ChannelState.prototype.getMaxWaiting = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
proto.forge_abi.ForgeState.prototype.hasConsensus = function() {
return jspb.Message.getField(this, 2) != null;
};
/** @param {number} value */
proto.forge_abi.ChannelState.prototype.setMaxWaiting = function(value) {
jspb.Message.setField(this, 3, value);
};
/**
* optional uint32 max_confirmed = 4;
* @return {number}
* map<uint64, UpgradeTasks> tasks = 3;
* @param {boolean=} opt_noLazyCreate Do not create the map if
* empty, instead returning `undefined`
* @return {!jspb.Map<number,!proto.forge_abi.UpgradeTasks>}
*/
proto.forge_abi.ChannelState.prototype.getMaxConfirmed = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
proto.forge_abi.ForgeState.prototype.getTasksMap = function(opt_noLazyCreate) {
return /** @type {!jspb.Map<number,!proto.forge_abi.UpgradeTasks>} */ (jspb.Message.getMapField(
this,
3,
opt_noLazyCreate,
proto.forge_abi.UpgradeTasks
));
};
/** @param {number} value */
proto.forge_abi.ChannelState.prototype.setMaxConfirmed = function(value) {
jspb.Message.setField(this, 4, value);
proto.forge_abi.ForgeState.prototype.clearTasksMap = function() {
this.getTasksMap().clear();
};
/**
* optional CircularQueue waiting = 5;
* @return {?proto.forge_abi.CircularQueue}
* map<uint32, StakeSummary> stake_summary = 4;
* @param {boolean=} opt_noLazyCreate Do not create the map if
* empty, instead returning `undefined`
* @return {!jspb.Map<number,!proto.forge_abi.StakeSummary>}
*/
proto.forge_abi.ChannelState.prototype.getWaiting = function() {
return /** @type{?proto.forge_abi.CircularQueue} */ (
jspb.Message.getWrapperField(this, type_pb.CircularQueue, 5));
proto.forge_abi.ForgeState.prototype.getStakeSummaryMap = function(opt_noLazyCreate) {
return /** @type {!jspb.Map<number,!proto.forge_abi.StakeSummary>} */ (jspb.Message.getMapField(
this,
4,
opt_noLazyCreate,
proto.forge_abi.StakeSummary
));
};
/** @param {?proto.forge_abi.CircularQueue|undefined} value */
proto.forge_abi.ChannelState.prototype.setWaiting = function(value) {
jspb.Message.setWrapperField(this, 5, value);
proto.forge_abi.ForgeState.prototype.clearStakeSummaryMap = function() {
this.getStakeSummaryMap().clear();
};
proto.forge_abi.ChannelState.prototype.clearWaiting = function() {
this.setWaiting(undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
* optional string version = 5;
* @return {string}
*/
proto.forge_abi.ChannelState.prototype.hasWaiting = function() {
return jspb.Message.getField(this, 5) != null;
proto.forge_abi.ForgeState.prototype.getVersion = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ''));
};
/** @param {string} value */
proto.forge_abi.ForgeState.prototype.setVersion = function(value) {
jspb.Message.setField(this, 5, value);
};
/**
* optional CircularQueue confirmed = 6;
* @return {?proto.forge_abi.CircularQueue}
* optional string data_version = 6;
* @return {string}
*/
proto.forge_abi.ChannelState.prototype.getConfirmed = function() {
return /** @type{?proto.forge_abi.CircularQueue} */ (
jspb.Message.getWrapperField(this, type_pb.CircularQueue, 6));
proto.forge_abi.ForgeState.prototype.getDataVersion = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ''));
};
/** @param {?proto.forge_abi.CircularQueue|undefined} value */
proto.forge_abi.ChannelState.prototype.setConfirmed = function(value) {
jspb.Message.setWrapperField(this, 6, value);
/** @param {string} value */
proto.forge_abi.ForgeState.prototype.setDataVersion = function(value) {
jspb.Message.setField(this, 6, value);
};
proto.forge_abi.ChannelState.prototype.clearConfirmed = function() {
this.setConfirmed(undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
* optional bytes forge_app_hash = 7;
* @return {!(string|Uint8Array)}
*/
proto.forge_abi.ChannelState.prototype.hasConfirmed = function() {
return jspb.Message.getField(this, 6) != null;
proto.forge_abi.ForgeState.prototype.getForgeAppHash = function() {
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 7, ''));
};
/**
* optional StateContext context = 14;
* @return {?proto.forge_abi.StateContext}
* optional bytes forge_app_hash = 7;
* This is a type-conversion wrapper around `getForgeAppHash()`
* @return {string}
*/
proto.forge_abi.ChannelState.prototype.getContext = function() {
return /** @type{?proto.forge_abi.StateContext} */ (
jspb.Message.getWrapperField(this, type_pb.StateContext, 14));
proto.forge_abi.ForgeState.prototype.getForgeAppHash_asB64 = function() {
return /** @type {string} */ (jspb.Message.bytesAsB64(this.getForgeAppHash()));
};
/** @param {?proto.forge_abi.StateContext|undefined} value */
proto.forge_abi.ChannelState.prototype.setContext = function(value) {
jspb.Message.setWrapperField(this, 14, value);
};
proto.forge_abi.ChannelState.prototype.clearContext = function() {
this.setContext(undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
* optional bytes forge_app_hash = 7;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getForgeAppHash()`
* @return {!Uint8Array}
*/
proto.forge_abi.ChannelState.prototype.hasContext = function() {
return jspb.Message.getField(this, 14) != null;
proto.forge_abi.ForgeState.prototype.getForgeAppHash_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(this.getForgeAppHash()));
};
/** @param {!(string|Uint8Array)} value */
proto.forge_abi.ForgeState.prototype.setForgeAppHash = function(value) {
jspb.Message.setField(this, 7, value);
};
/**
* optional google.protobuf.Any data = 50;
* optional google.protobuf.Any data = 15;
* @return {?proto.google.protobuf.Any}
*/
proto.forge_abi.ChannelState.prototype.getData = function() {
return /** @type{?proto.google.protobuf.Any} */ (
jspb.Message.getWrapperField(this, google_protobuf_any_pb.Any, 50));
proto.forge_abi.ForgeState.prototype.getData = function() {
return /** @type{?proto.google.protobuf.Any} */ (jspb.Message.getWrapperField(
this,
google_protobuf_any_pb.Any,
15
));
};
/** @param {?proto.google.protobuf.Any|undefined} value */
proto.forge_abi.ChannelState.prototype.setData = function(value) {
jspb.Message.setWrapperField(this, 50, value);
proto.forge_abi.ForgeState.prototype.setData = function(value) {
jspb.Message.setWrapperField(this, 15, value);
};
proto.forge_abi.ChannelState.prototype.clearData = function() {
proto.forge_abi.ForgeState.prototype.clearData = function() {
this.setData(undefined);
};
/**

@@ -1463,8 +1372,6 @@ * Returns whether this field is set.

*/
proto.forge_abi.ChannelState.prototype.hasData = function() {
return jspb.Message.getField(this, 50) != null;
proto.forge_abi.ForgeState.prototype.hasData = function() {
return jspb.Message.getField(this, 15) != null;
};
/**

@@ -1480,74 +1387,72 @@ * Generated by JsPbCodeGenerator.

*/
proto.forge_abi.ForgeState = function(opt_data) {
proto.forge_abi.StakeState = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.forge_abi.ForgeState, jspb.Message);
goog.inherits(proto.forge_abi.StakeState, jspb.Message);
if (goog.DEBUG && !COMPILED) {
proto.forge_abi.ForgeState.displayName = 'proto.forge_abi.ForgeState';
proto.forge_abi.StakeState.displayName = 'proto.forge_abi.StakeState';
}
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.forge_abi.ForgeState.prototype.toObject = function(opt_includeInstance) {
return proto.forge_abi.ForgeState.toObject(opt_includeInstance, this);
};
/**
* 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.forge_abi.StakeState.prototype.toObject = function(opt_includeInstance) {
return proto.forge_abi.StakeState.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.forge_abi.StakeState} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.forge_abi.StakeState.toObject = function(includeInstance, msg) {
var f,
obj = {
address: jspb.Message.getFieldWithDefault(msg, 1, ''),
from: jspb.Message.getFieldWithDefault(msg, 2, ''),
to: jspb.Message.getFieldWithDefault(msg, 3, ''),
balance: (f = msg.getBalance()) && type_pb.BigUint.toObject(includeInstance, f),
message: jspb.Message.getFieldWithDefault(msg, 5, ''),
context: (f = msg.getContext()) && type_pb.StateContext.toObject(includeInstance, f),
data: (f = msg.getData()) && google_protobuf_any_pb.Any.toObject(includeInstance, f),
};
/**
* 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.forge_abi.ForgeState} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.forge_abi.ForgeState.toObject = function(includeInstance, msg) {
var f, obj = {
consensus: (f = msg.getConsensus()) && type_pb.ConsensusParams.toObject(includeInstance, f),
tasksMap: (f = msg.getTasksMap()) ? f.toObject(includeInstance, proto.forge_abi.UpgradeTasks.toObject) : [],
stakeSummaryMap: (f = msg.getStakeSummaryMap()) ? f.toObject(includeInstance, proto.forge_abi.StakeSummary.toObject) : [],
version: jspb.Message.getFieldWithDefault(msg, 4, ""),
dataVersion: jspb.Message.getFieldWithDefault(msg, 5, ""),
data: (f = msg.getData()) && google_protobuf_any_pb.Any.toObject(includeInstance, f)
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.forge_abi.ForgeState}
* @return {!proto.forge_abi.StakeState}
*/
proto.forge_abi.ForgeState.deserializeBinary = function(bytes) {
proto.forge_abi.StakeState.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.forge_abi.ForgeState;
return proto.forge_abi.ForgeState.deserializeBinaryFromReader(msg, reader);
var msg = new proto.forge_abi.StakeState();
return proto.forge_abi.StakeState.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.forge_abi.ForgeState} msg The message object to deserialize into.
* @param {!proto.forge_abi.StakeState} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.forge_abi.ForgeState}
* @return {!proto.forge_abi.StakeState}
*/
proto.forge_abi.ForgeState.deserializeBinaryFromReader = function(msg, reader) {
proto.forge_abi.StakeState.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {

@@ -1559,35 +1464,36 @@ if (reader.isEndGroup()) {

switch (field) {
case 1:
var value = new type_pb.ConsensusParams;
reader.readMessage(value,type_pb.ConsensusParams.deserializeBinaryFromReader);
msg.setConsensus(value);
break;
case 2:
var value = msg.getTasksMap();
reader.readMessage(value, function(message, reader) {
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readUint64, jspb.BinaryReader.prototype.readMessage, proto.forge_abi.UpgradeTasks.deserializeBinaryFromReader);
});
break;
case 3:
var value = msg.getStakeSummaryMap();
reader.readMessage(value, function(message, reader) {
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readUint32, jspb.BinaryReader.prototype.readMessage, proto.forge_abi.StakeSummary.deserializeBinaryFromReader);
});
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:
var value = new google_protobuf_any_pb.Any;
reader.readMessage(value,google_protobuf_any_pb.Any.deserializeBinaryFromReader);
msg.setData(value);
break;
default:
reader.skipField();
break;
case 1:
var value = /** @type {string} */ (reader.readString());
msg.setAddress(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setFrom(value);
break;
case 3:
var value = /** @type {string} */ (reader.readString());
msg.setTo(value);
break;
case 4:
var value = new type_pb.BigUint();
reader.readMessage(value, type_pb.BigUint.deserializeBinaryFromReader);
msg.setBalance(value);
break;
case 5:
var value = /** @type {string} */ (reader.readString());
msg.setMessage(value);
break;
case 14:
var value = new type_pb.StateContext();
reader.readMessage(value, type_pb.StateContext.deserializeBinaryFromReader);
msg.setContext(value);
break;
case 15:
var value = new google_protobuf_any_pb.Any();
reader.readMessage(value, google_protobuf_any_pb.Any.deserializeBinaryFromReader);
msg.setData(value);
break;
default:
reader.skipField();
break;
}

@@ -1598,3 +1504,2 @@ }

/**

@@ -1604,154 +1509,156 @@ * Serializes the message to binary data (in protobuf wire format).

*/
proto.forge_abi.ForgeState.prototype.serializeBinary = function() {
proto.forge_abi.StakeState.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.forge_abi.ForgeState.serializeBinaryToWriter(this, writer);
proto.forge_abi.StakeState.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.forge_abi.ForgeState} message
* @param {!proto.forge_abi.StakeState} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.forge_abi.ForgeState.serializeBinaryToWriter = function(message, writer) {
proto.forge_abi.StakeState.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getConsensus();
if (f != null) {
writer.writeMessage(
1,
f,
type_pb.ConsensusParams.serializeBinaryToWriter
);
f = message.getAddress();
if (f.length > 0) {
writer.writeString(1, f);
}
f = message.getTasksMap(true);
if (f && f.getLength() > 0) {
f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeUint64, jspb.BinaryWriter.prototype.writeMessage, proto.forge_abi.UpgradeTasks.serializeBinaryToWriter);
f = message.getFrom();
if (f.length > 0) {
writer.writeString(2, f);
}
f = message.getStakeSummaryMap(true);
if (f && f.getLength() > 0) {
f.serializeBinary(3, writer, jspb.BinaryWriter.prototype.writeUint32, jspb.BinaryWriter.prototype.writeMessage, proto.forge_abi.StakeSummary.serializeBinaryToWriter);
}
f = message.getVersion();
f = message.getTo();
if (f.length > 0) {
writer.writeString(
4,
f
);
writer.writeString(3, f);
}
f = message.getDataVersion();
f = message.getBalance();
if (f != null) {
writer.writeMessage(4, f, type_pb.BigUint.serializeBinaryToWriter);
}
f = message.getMessage();
if (f.length > 0) {
writer.writeString(
5,
f
);
writer.writeString(5, f);
}
f = message.getContext();
if (f != null) {
writer.writeMessage(14, f, type_pb.StateContext.serializeBinaryToWriter);
}
f = message.getData();
if (f != null) {
writer.writeMessage(
15,
f,
google_protobuf_any_pb.Any.serializeBinaryToWriter
);
writer.writeMessage(15, f, google_protobuf_any_pb.Any.serializeBinaryToWriter);
}
};
/**
* optional ConsensusParams consensus = 1;
* @return {?proto.forge_abi.ConsensusParams}
* optional string address = 1;
* @return {string}
*/
proto.forge_abi.ForgeState.prototype.getConsensus = function() {
return /** @type{?proto.forge_abi.ConsensusParams} */ (
jspb.Message.getWrapperField(this, type_pb.ConsensusParams, 1));
proto.forge_abi.StakeState.prototype.getAddress = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ''));
};
/** @param {string} value */
proto.forge_abi.StakeState.prototype.setAddress = function(value) {
jspb.Message.setField(this, 1, value);
};
/** @param {?proto.forge_abi.ConsensusParams|undefined} value */
proto.forge_abi.ForgeState.prototype.setConsensus = function(value) {
jspb.Message.setWrapperField(this, 1, value);
/**
* optional string from = 2;
* @return {string}
*/
proto.forge_abi.StakeState.prototype.getFrom = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ''));
};
proto.forge_abi.ForgeState.prototype.clearConsensus = function() {
this.setConsensus(undefined);
/** @param {string} value */
proto.forge_abi.StakeState.prototype.setFrom = function(value) {
jspb.Message.setField(this, 2, value);
};
/**
* Returns whether this field is set.
* @return {!boolean}
* optional string to = 3;
* @return {string}
*/
proto.forge_abi.ForgeState.prototype.hasConsensus = function() {
return jspb.Message.getField(this, 1) != null;
proto.forge_abi.StakeState.prototype.getTo = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ''));
};
/** @param {string} value */
proto.forge_abi.StakeState.prototype.setTo = function(value) {
jspb.Message.setField(this, 3, value);
};
/**
* map<uint64, UpgradeTasks> tasks = 2;
* @param {boolean=} opt_noLazyCreate Do not create the map if
* empty, instead returning `undefined`
* @return {!jspb.Map<number,!proto.forge_abi.UpgradeTasks>}
* optional BigUint balance = 4;
* @return {?proto.forge_abi.BigUint}
*/
proto.forge_abi.ForgeState.prototype.getTasksMap = function(opt_noLazyCreate) {
return /** @type {!jspb.Map<number,!proto.forge_abi.UpgradeTasks>} */ (
jspb.Message.getMapField(this, 2, opt_noLazyCreate,
proto.forge_abi.UpgradeTasks));
proto.forge_abi.StakeState.prototype.getBalance = function() {
return /** @type{?proto.forge_abi.BigUint} */ (jspb.Message.getWrapperField(
this,
type_pb.BigUint,
4
));
};
/** @param {?proto.forge_abi.BigUint|undefined} value */
proto.forge_abi.StakeState.prototype.setBalance = function(value) {
jspb.Message.setWrapperField(this, 4, value);
};
proto.forge_abi.ForgeState.prototype.clearTasksMap = function() {
this.getTasksMap().clear();
proto.forge_abi.StakeState.prototype.clearBalance = function() {
this.setBalance(undefined);
};
/**
* map<uint32, StakeSummary> stake_summary = 3;
* @param {boolean=} opt_noLazyCreate Do not create the map if
* empty, instead returning `undefined`
* @return {!jspb.Map<number,!proto.forge_abi.StakeSummary>}
* Returns whether this field is set.
* @return {!boolean}
*/
proto.forge_abi.ForgeState.prototype.getStakeSummaryMap = function(opt_noLazyCreate) {
return /** @type {!jspb.Map<number,!proto.forge_abi.StakeSummary>} */ (
jspb.Message.getMapField(this, 3, opt_noLazyCreate,
proto.forge_abi.StakeSummary));
proto.forge_abi.StakeState.prototype.hasBalance = function() {
return jspb.Message.getField(this, 4) != null;
};
proto.forge_abi.ForgeState.prototype.clearStakeSummaryMap = function() {
this.getStakeSummaryMap().clear();
};
/**
* optional string version = 4;
* optional string message = 5;
* @return {string}
*/
proto.forge_abi.ForgeState.prototype.getVersion = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
proto.forge_abi.StakeState.prototype.getMessage = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ''));
};
/** @param {string} value */
proto.forge_abi.ForgeState.prototype.setVersion = function(value) {
jspb.Message.setField(this, 4, value);
proto.forge_abi.StakeState.prototype.setMessage = function(value) {
jspb.Message.setField(this, 5, value);
};
/**
* optional string data_version = 5;
* @return {string}
* optional StateContext context = 14;
* @return {?proto.forge_abi.StateContext}
*/
proto.forge_abi.ForgeState.prototype.getDataVersion = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
proto.forge_abi.StakeState.prototype.getContext = function() {
return /** @type{?proto.forge_abi.StateContext} */ (jspb.Message.getWrapperField(
this,
type_pb.StateContext,
14
));
};
/** @param {?proto.forge_abi.StateContext|undefined} value */
proto.forge_abi.StakeState.prototype.setContext = function(value) {
jspb.Message.setWrapperField(this, 14, value);
};
/** @param {string} value */
proto.forge_abi.ForgeState.prototype.setDataVersion = function(value) {
jspb.Message.setField(this, 5, value);
proto.forge_abi.StakeState.prototype.clearContext = function() {
this.setContext(undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
*/
proto.forge_abi.StakeState.prototype.hasContext = function() {
return jspb.Message.getField(this, 14) != null;
};

@@ -1762,19 +1669,19 @@ /**

*/
proto.forge_abi.ForgeState.prototype.getData = function() {
return /** @type{?proto.google.protobuf.Any} */ (
jspb.Message.getWrapperField(this, google_protobuf_any_pb.Any, 15));
proto.forge_abi.StakeState.prototype.getData = function() {
return /** @type{?proto.google.protobuf.Any} */ (jspb.Message.getWrapperField(
this,
google_protobuf_any_pb.Any,
15
));
};
/** @param {?proto.google.protobuf.Any|undefined} value */
proto.forge_abi.ForgeState.prototype.setData = function(value) {
proto.forge_abi.StakeState.prototype.setData = function(value) {
jspb.Message.setWrapperField(this, 15, value);
};
proto.forge_abi.ForgeState.prototype.clearData = function() {
proto.forge_abi.StakeState.prototype.clearData = function() {
this.setData(undefined);
};
/**

@@ -1784,8 +1691,6 @@ * Returns whether this field is set.

*/
proto.forge_abi.ForgeState.prototype.hasData = function() {
proto.forge_abi.StakeState.prototype.hasData = function() {
return jspb.Message.getField(this, 15) != null;
};
/**

@@ -1801,75 +1706,72 @@ * Generated by JsPbCodeGenerator.

*/
proto.forge_abi.StakeState = function(opt_data) {
proto.forge_abi.StatisticsState = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.forge_abi.StakeState, jspb.Message);
goog.inherits(proto.forge_abi.StatisticsState, jspb.Message);
if (goog.DEBUG && !COMPILED) {
proto.forge_abi.StakeState.displayName = 'proto.forge_abi.StakeState';
proto.forge_abi.StatisticsState.displayName = 'proto.forge_abi.StatisticsState';
}
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.forge_abi.StakeState.prototype.toObject = function(opt_includeInstance) {
return proto.forge_abi.StakeState.toObject(opt_includeInstance, this);
};
/**
* 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.forge_abi.StatisticsState.prototype.toObject = function(opt_includeInstance) {
return proto.forge_abi.StatisticsState.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.forge_abi.StatisticsState} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.forge_abi.StatisticsState.toObject = function(includeInstance, msg) {
var f,
obj = {
address: jspb.Message.getFieldWithDefault(msg, 1, ''),
numBlocks: jspb.Message.getFieldWithDefault(msg, 2, 0),
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),
};
/**
* 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.forge_abi.StakeState} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.forge_abi.StakeState.toObject = function(includeInstance, msg) {
var f, obj = {
address: jspb.Message.getFieldWithDefault(msg, 1, ""),
from: jspb.Message.getFieldWithDefault(msg, 2, ""),
to: jspb.Message.getFieldWithDefault(msg, 3, ""),
balance: (f = msg.getBalance()) && type_pb.BigUint.toObject(includeInstance, f),
message: jspb.Message.getFieldWithDefault(msg, 5, ""),
context: (f = msg.getContext()) && type_pb.StateContext.toObject(includeInstance, f),
data: (f = msg.getData()) && google_protobuf_any_pb.Any.toObject(includeInstance, f)
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.forge_abi.StakeState}
* @return {!proto.forge_abi.StatisticsState}
*/
proto.forge_abi.StakeState.deserializeBinary = function(bytes) {
proto.forge_abi.StatisticsState.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.forge_abi.StakeState;
return proto.forge_abi.StakeState.deserializeBinaryFromReader(msg, reader);
var msg = new proto.forge_abi.StatisticsState();
return proto.forge_abi.StatisticsState.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.forge_abi.StakeState} msg The message object to deserialize into.
* @param {!proto.forge_abi.StatisticsState} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.forge_abi.StakeState}
* @return {!proto.forge_abi.StatisticsState}
*/
proto.forge_abi.StakeState.deserializeBinaryFromReader = function(msg, reader) {
proto.forge_abi.StatisticsState.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {

@@ -1881,36 +1783,34 @@ if (reader.isEndGroup()) {

switch (field) {
case 1:
var value = /** @type {string} */ (reader.readString());
msg.setAddress(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setFrom(value);
break;
case 3:
var value = /** @type {string} */ (reader.readString());
msg.setTo(value);
break;
case 4:
var value = new type_pb.BigUint;
reader.readMessage(value,type_pb.BigUint.deserializeBinaryFromReader);
msg.setBalance(value);
break;
case 5:
var value = /** @type {string} */ (reader.readString());
msg.setMessage(value);
break;
case 14:
var value = new type_pb.StateContext;
reader.readMessage(value,type_pb.StateContext.deserializeBinaryFromReader);
msg.setContext(value);
break;
case 15:
var value = new google_protobuf_any_pb.Any;
reader.readMessage(value,google_protobuf_any_pb.Any.deserializeBinaryFromReader);
msg.setData(value);
break;
default:
reader.skipField();
break;
case 1:
var value = /** @type {string} */ (reader.readString());
msg.setAddress(value);
break;
case 2:
var value = /** @type {number} */ (reader.readUint64());
msg.setNumBlocks(value);
break;
case 3:
var value = /** @type {number} */ (reader.readUint64());
msg.setNumTxs(value);
break;
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();
reader.readMessage(value, type_pb.BigUint.deserializeBinaryFromReader);
msg.setNumStakes(value);
break;
case 7:
var value = /** @type {number} */ (reader.readUint32());
msg.setNumValidators(value);
break;
default:
reader.skipField();
break;
}

@@ -1921,3 +1821,2 @@ }

/**

@@ -1927,73 +1826,47 @@ * Serializes the message to binary data (in protobuf wire format).

*/
proto.forge_abi.StakeState.prototype.serializeBinary = function() {
proto.forge_abi.StatisticsState.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.forge_abi.StakeState.serializeBinaryToWriter(this, writer);
proto.forge_abi.StatisticsState.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.forge_abi.StakeState} message
* @param {!proto.forge_abi.StatisticsState} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.forge_abi.StakeState.serializeBinaryToWriter = function(message, writer) {
proto.forge_abi.StatisticsState.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getAddress();
if (f.length > 0) {
writer.writeString(
1,
f
);
writer.writeString(1, f);
}
f = message.getFrom();
if (f.length > 0) {
writer.writeString(
2,
f
);
f = message.getNumBlocks();
if (f !== 0) {
writer.writeUint64(2, f);
}
f = message.getTo();
if (f.length > 0) {
writer.writeString(
3,
f
);
f = message.getNumTxs();
if (f !== 0) {
writer.writeUint64(3, f);
}
f = message.getBalance();
if (f != null) {
writer.writeMessage(
4,
f,
type_pb.BigUint.serializeBinaryToWriter
);
f = message.getNumAccounts();
if (f !== 0) {
writer.writeUint32(4, f);
}
f = message.getMessage();
if (f.length > 0) {
writer.writeString(
5,
f
);
f = message.getNumAssets();
if (f !== 0) {
writer.writeUint32(5, f);
}
f = message.getContext();
f = message.getNumStakes();
if (f != null) {
writer.writeMessage(
14,
f,
type_pb.StateContext.serializeBinaryToWriter
);
writer.writeMessage(6, f, type_pb.BigUint.serializeBinaryToWriter);
}
f = message.getData();
if (f != null) {
writer.writeMessage(
15,
f,
google_protobuf_any_pb.Any.serializeBinaryToWriter
);
f = message.getNumValidators();
if (f !== 0) {
writer.writeUint32(7, f);
}
};
/**

@@ -2003,109 +1876,84 @@ * optional string address = 1;

*/
proto.forge_abi.StakeState.prototype.getAddress = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
proto.forge_abi.StatisticsState.prototype.getAddress = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ''));
};
/** @param {string} value */
proto.forge_abi.StakeState.prototype.setAddress = function(value) {
proto.forge_abi.StatisticsState.prototype.setAddress = function(value) {
jspb.Message.setField(this, 1, value);
};
/**
* optional string from = 2;
* @return {string}
* optional uint64 num_blocks = 2;
* @return {number}
*/
proto.forge_abi.StakeState.prototype.getFrom = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
proto.forge_abi.StatisticsState.prototype.getNumBlocks = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
};
/** @param {string} value */
proto.forge_abi.StakeState.prototype.setFrom = function(value) {
/** @param {number} value */
proto.forge_abi.StatisticsState.prototype.setNumBlocks = function(value) {
jspb.Message.setField(this, 2, value);
};
/**
* optional string to = 3;
* @return {string}
* optional uint64 num_txs = 3;
* @return {number}
*/
proto.forge_abi.StakeState.prototype.getTo = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
proto.forge_abi.StatisticsState.prototype.getNumTxs = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
};
/** @param {string} value */
proto.forge_abi.StakeState.prototype.setTo = function(value) {
/** @param {number} value */
proto.forge_abi.StatisticsState.prototype.setNumTxs = function(value) {
jspb.Message.setField(this, 3, value);
};
/**
* optional BigUint balance = 4;
* @return {?proto.forge_abi.BigUint}
* optional uint32 num_accounts = 4;
* @return {number}
*/
proto.forge_abi.StakeState.prototype.getBalance = function() {
return /** @type{?proto.forge_abi.BigUint} */ (
jspb.Message.getWrapperField(this, type_pb.BigUint, 4));
proto.forge_abi.StatisticsState.prototype.getNumAccounts = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
};
/** @param {?proto.forge_abi.BigUint|undefined} value */
proto.forge_abi.StakeState.prototype.setBalance = function(value) {
jspb.Message.setWrapperField(this, 4, value);
/** @param {number} value */
proto.forge_abi.StatisticsState.prototype.setNumAccounts = function(value) {
jspb.Message.setField(this, 4, value);
};
proto.forge_abi.StakeState.prototype.clearBalance = function() {
this.setBalance(undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
* optional uint32 num_assets = 5;
* @return {number}
*/
proto.forge_abi.StakeState.prototype.hasBalance = function() {
return jspb.Message.getField(this, 4) != null;
proto.forge_abi.StatisticsState.prototype.getNumAssets = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
};
/**
* optional string message = 5;
* @return {string}
*/
proto.forge_abi.StakeState.prototype.getMessage = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
};
/** @param {string} value */
proto.forge_abi.StakeState.prototype.setMessage = function(value) {
/** @param {number} value */
proto.forge_abi.StatisticsState.prototype.setNumAssets = function(value) {
jspb.Message.setField(this, 5, value);
};
/**
* optional StateContext context = 14;
* @return {?proto.forge_abi.StateContext}
* optional BigUint num_stakes = 6;
* @return {?proto.forge_abi.BigUint}
*/
proto.forge_abi.StakeState.prototype.getContext = function() {
return /** @type{?proto.forge_abi.StateContext} */ (
jspb.Message.getWrapperField(this, type_pb.StateContext, 14));
proto.forge_abi.StatisticsState.prototype.getNumStakes = function() {
return /** @type{?proto.forge_abi.BigUint} */ (jspb.Message.getWrapperField(
this,
type_pb.BigUint,
6
));
};
/** @param {?proto.forge_abi.StateContext|undefined} value */
proto.forge_abi.StakeState.prototype.setContext = function(value) {
jspb.Message.setWrapperField(this, 14, value);
/** @param {?proto.forge_abi.BigUint|undefined} value */
proto.forge_abi.StatisticsState.prototype.setNumStakes = function(value) {
jspb.Message.setWrapperField(this, 6, value);
};
proto.forge_abi.StakeState.prototype.clearContext = function() {
this.setContext(undefined);
proto.forge_abi.StatisticsState.prototype.clearNumStakes = function() {
this.setNumStakes(undefined);
};
/**

@@ -2115,39 +1963,21 @@ * Returns whether this field is set.

*/
proto.forge_abi.StakeState.prototype.hasContext = function() {
return jspb.Message.getField(this, 14) != null;
proto.forge_abi.StatisticsState.prototype.hasNumStakes = function() {
return jspb.Message.getField(this, 6) != null;
};
/**
* optional google.protobuf.Any data = 15;
* @return {?proto.google.protobuf.Any}
* optional uint32 num_validators = 7;
* @return {number}
*/
proto.forge_abi.StakeState.prototype.getData = function() {
return /** @type{?proto.google.protobuf.Any} */ (
jspb.Message.getWrapperField(this, google_protobuf_any_pb.Any, 15));
proto.forge_abi.StatisticsState.prototype.getNumValidators = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
};
/** @param {?proto.google.protobuf.Any|undefined} value */
proto.forge_abi.StakeState.prototype.setData = function(value) {
jspb.Message.setWrapperField(this, 15, value);
/** @param {number} value */
proto.forge_abi.StatisticsState.prototype.setNumValidators = function(value) {
jspb.Message.setField(this, 7, value);
};
proto.forge_abi.StakeState.prototype.clearData = function() {
this.setData(undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
*/
proto.forge_abi.StakeState.prototype.hasData = function() {
return jspb.Message.getField(this, 15) != null;
};
goog.object.extend(exports, proto.forge_abi);
module.exports = proto.forge_abi;

@@ -8,5 +8,5 @@ // GENERATED CODE -- DO NOT EDIT!

function serialize_forge_vendor_RequestBeginBlock(arg) {
function serialize_abci_vendor_RequestBeginBlock(arg) {
if (!(arg instanceof vendor_pb.RequestBeginBlock)) {
throw new Error('Expected argument of type forge_vendor.RequestBeginBlock');
throw new Error('Expected argument of type abci_vendor.RequestBeginBlock');
}

@@ -16,9 +16,9 @@ return Buffer.from(arg.serializeBinary());

function deserialize_forge_vendor_RequestBeginBlock(buffer_arg) {
function deserialize_abci_vendor_RequestBeginBlock(buffer_arg) {
return vendor_pb.RequestBeginBlock.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_forge_vendor_RequestCheckTx(arg) {
function serialize_abci_vendor_RequestCheckTx(arg) {
if (!(arg instanceof vendor_pb.RequestCheckTx)) {
throw new Error('Expected argument of type forge_vendor.RequestCheckTx');
throw new Error('Expected argument of type abci_vendor.RequestCheckTx');
}

@@ -28,9 +28,9 @@ return Buffer.from(arg.serializeBinary());

function deserialize_forge_vendor_RequestCheckTx(buffer_arg) {
function deserialize_abci_vendor_RequestCheckTx(buffer_arg) {
return vendor_pb.RequestCheckTx.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_forge_vendor_RequestCommit(arg) {
function serialize_abci_vendor_RequestCommit(arg) {
if (!(arg instanceof vendor_pb.RequestCommit)) {
throw new Error('Expected argument of type forge_vendor.RequestCommit');
throw new Error('Expected argument of type abci_vendor.RequestCommit');
}

@@ -40,9 +40,9 @@ return Buffer.from(arg.serializeBinary());

function deserialize_forge_vendor_RequestCommit(buffer_arg) {
function deserialize_abci_vendor_RequestCommit(buffer_arg) {
return vendor_pb.RequestCommit.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_forge_vendor_RequestDeliverTx(arg) {
function serialize_abci_vendor_RequestDeliverTx(arg) {
if (!(arg instanceof vendor_pb.RequestDeliverTx)) {
throw new Error('Expected argument of type forge_vendor.RequestDeliverTx');
throw new Error('Expected argument of type abci_vendor.RequestDeliverTx');
}

@@ -52,9 +52,9 @@ return Buffer.from(arg.serializeBinary());

function deserialize_forge_vendor_RequestDeliverTx(buffer_arg) {
function deserialize_abci_vendor_RequestDeliverTx(buffer_arg) {
return vendor_pb.RequestDeliverTx.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_forge_vendor_RequestEcho(arg) {
function serialize_abci_vendor_RequestEcho(arg) {
if (!(arg instanceof vendor_pb.RequestEcho)) {
throw new Error('Expected argument of type forge_vendor.RequestEcho');
throw new Error('Expected argument of type abci_vendor.RequestEcho');
}

@@ -64,9 +64,9 @@ return Buffer.from(arg.serializeBinary());

function deserialize_forge_vendor_RequestEcho(buffer_arg) {
function deserialize_abci_vendor_RequestEcho(buffer_arg) {
return vendor_pb.RequestEcho.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_forge_vendor_RequestEndBlock(arg) {
function serialize_abci_vendor_RequestEndBlock(arg) {
if (!(arg instanceof vendor_pb.RequestEndBlock)) {
throw new Error('Expected argument of type forge_vendor.RequestEndBlock');
throw new Error('Expected argument of type abci_vendor.RequestEndBlock');
}

@@ -76,9 +76,9 @@ return Buffer.from(arg.serializeBinary());

function deserialize_forge_vendor_RequestEndBlock(buffer_arg) {
function deserialize_abci_vendor_RequestEndBlock(buffer_arg) {
return vendor_pb.RequestEndBlock.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_forge_vendor_RequestFlush(arg) {
function serialize_abci_vendor_RequestFlush(arg) {
if (!(arg instanceof vendor_pb.RequestFlush)) {
throw new Error('Expected argument of type forge_vendor.RequestFlush');
throw new Error('Expected argument of type abci_vendor.RequestFlush');
}

@@ -88,9 +88,9 @@ return Buffer.from(arg.serializeBinary());

function deserialize_forge_vendor_RequestFlush(buffer_arg) {
function deserialize_abci_vendor_RequestFlush(buffer_arg) {
return vendor_pb.RequestFlush.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_forge_vendor_RequestInfo(arg) {
function serialize_abci_vendor_RequestInfo(arg) {
if (!(arg instanceof vendor_pb.RequestInfo)) {
throw new Error('Expected argument of type forge_vendor.RequestInfo');
throw new Error('Expected argument of type abci_vendor.RequestInfo');
}

@@ -100,9 +100,9 @@ return Buffer.from(arg.serializeBinary());

function deserialize_forge_vendor_RequestInfo(buffer_arg) {
function deserialize_abci_vendor_RequestInfo(buffer_arg) {
return vendor_pb.RequestInfo.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_forge_vendor_RequestInitChain(arg) {
function serialize_abci_vendor_RequestInitChain(arg) {
if (!(arg instanceof vendor_pb.RequestInitChain)) {
throw new Error('Expected argument of type forge_vendor.RequestInitChain');
throw new Error('Expected argument of type abci_vendor.RequestInitChain');
}

@@ -112,9 +112,9 @@ return Buffer.from(arg.serializeBinary());

function deserialize_forge_vendor_RequestInitChain(buffer_arg) {
function deserialize_abci_vendor_RequestInitChain(buffer_arg) {
return vendor_pb.RequestInitChain.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_forge_vendor_RequestQuery(arg) {
function serialize_abci_vendor_RequestQuery(arg) {
if (!(arg instanceof vendor_pb.RequestQuery)) {
throw new Error('Expected argument of type forge_vendor.RequestQuery');
throw new Error('Expected argument of type abci_vendor.RequestQuery');
}

@@ -124,9 +124,9 @@ return Buffer.from(arg.serializeBinary());

function deserialize_forge_vendor_RequestQuery(buffer_arg) {
function deserialize_abci_vendor_RequestQuery(buffer_arg) {
return vendor_pb.RequestQuery.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_forge_vendor_RequestSetOption(arg) {
function serialize_abci_vendor_RequestSetOption(arg) {
if (!(arg instanceof vendor_pb.RequestSetOption)) {
throw new Error('Expected argument of type forge_vendor.RequestSetOption');
throw new Error('Expected argument of type abci_vendor.RequestSetOption');
}

@@ -136,9 +136,9 @@ return Buffer.from(arg.serializeBinary());

function deserialize_forge_vendor_RequestSetOption(buffer_arg) {
function deserialize_abci_vendor_RequestSetOption(buffer_arg) {
return vendor_pb.RequestSetOption.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_forge_vendor_ResponseBeginBlock(arg) {
function serialize_abci_vendor_ResponseBeginBlock(arg) {
if (!(arg instanceof vendor_pb.ResponseBeginBlock)) {
throw new Error('Expected argument of type forge_vendor.ResponseBeginBlock');
throw new Error('Expected argument of type abci_vendor.ResponseBeginBlock');
}

@@ -148,9 +148,9 @@ return Buffer.from(arg.serializeBinary());

function deserialize_forge_vendor_ResponseBeginBlock(buffer_arg) {
function deserialize_abci_vendor_ResponseBeginBlock(buffer_arg) {
return vendor_pb.ResponseBeginBlock.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_forge_vendor_ResponseCheckTx(arg) {
function serialize_abci_vendor_ResponseCheckTx(arg) {
if (!(arg instanceof vendor_pb.ResponseCheckTx)) {
throw new Error('Expected argument of type forge_vendor.ResponseCheckTx');
throw new Error('Expected argument of type abci_vendor.ResponseCheckTx');
}

@@ -160,9 +160,9 @@ return Buffer.from(arg.serializeBinary());

function deserialize_forge_vendor_ResponseCheckTx(buffer_arg) {
function deserialize_abci_vendor_ResponseCheckTx(buffer_arg) {
return vendor_pb.ResponseCheckTx.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_forge_vendor_ResponseCommit(arg) {
function serialize_abci_vendor_ResponseCommit(arg) {
if (!(arg instanceof vendor_pb.ResponseCommit)) {
throw new Error('Expected argument of type forge_vendor.ResponseCommit');
throw new Error('Expected argument of type abci_vendor.ResponseCommit');
}

@@ -172,9 +172,9 @@ return Buffer.from(arg.serializeBinary());

function deserialize_forge_vendor_ResponseCommit(buffer_arg) {
function deserialize_abci_vendor_ResponseCommit(buffer_arg) {
return vendor_pb.ResponseCommit.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_forge_vendor_ResponseDeliverTx(arg) {
function serialize_abci_vendor_ResponseDeliverTx(arg) {
if (!(arg instanceof vendor_pb.ResponseDeliverTx)) {
throw new Error('Expected argument of type forge_vendor.ResponseDeliverTx');
throw new Error('Expected argument of type abci_vendor.ResponseDeliverTx');
}

@@ -184,9 +184,9 @@ return Buffer.from(arg.serializeBinary());

function deserialize_forge_vendor_ResponseDeliverTx(buffer_arg) {
function deserialize_abci_vendor_ResponseDeliverTx(buffer_arg) {
return vendor_pb.ResponseDeliverTx.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_forge_vendor_ResponseEcho(arg) {
function serialize_abci_vendor_ResponseEcho(arg) {
if (!(arg instanceof vendor_pb.ResponseEcho)) {
throw new Error('Expected argument of type forge_vendor.ResponseEcho');
throw new Error('Expected argument of type abci_vendor.ResponseEcho');
}

@@ -196,9 +196,9 @@ return Buffer.from(arg.serializeBinary());

function deserialize_forge_vendor_ResponseEcho(buffer_arg) {
function deserialize_abci_vendor_ResponseEcho(buffer_arg) {
return vendor_pb.ResponseEcho.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_forge_vendor_ResponseEndBlock(arg) {
function serialize_abci_vendor_ResponseEndBlock(arg) {
if (!(arg instanceof vendor_pb.ResponseEndBlock)) {
throw new Error('Expected argument of type forge_vendor.ResponseEndBlock');
throw new Error('Expected argument of type abci_vendor.ResponseEndBlock');
}

@@ -208,9 +208,9 @@ return Buffer.from(arg.serializeBinary());

function deserialize_forge_vendor_ResponseEndBlock(buffer_arg) {
function deserialize_abci_vendor_ResponseEndBlock(buffer_arg) {
return vendor_pb.ResponseEndBlock.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_forge_vendor_ResponseFlush(arg) {
function serialize_abci_vendor_ResponseFlush(arg) {
if (!(arg instanceof vendor_pb.ResponseFlush)) {
throw new Error('Expected argument of type forge_vendor.ResponseFlush');
throw new Error('Expected argument of type abci_vendor.ResponseFlush');
}

@@ -220,9 +220,9 @@ return Buffer.from(arg.serializeBinary());

function deserialize_forge_vendor_ResponseFlush(buffer_arg) {
function deserialize_abci_vendor_ResponseFlush(buffer_arg) {
return vendor_pb.ResponseFlush.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_forge_vendor_ResponseInfo(arg) {
function serialize_abci_vendor_ResponseInfo(arg) {
if (!(arg instanceof vendor_pb.ResponseInfo)) {
throw new Error('Expected argument of type forge_vendor.ResponseInfo');
throw new Error('Expected argument of type abci_vendor.ResponseInfo');
}

@@ -232,9 +232,9 @@ return Buffer.from(arg.serializeBinary());

function deserialize_forge_vendor_ResponseInfo(buffer_arg) {
function deserialize_abci_vendor_ResponseInfo(buffer_arg) {
return vendor_pb.ResponseInfo.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_forge_vendor_ResponseInitChain(arg) {
function serialize_abci_vendor_ResponseInitChain(arg) {
if (!(arg instanceof vendor_pb.ResponseInitChain)) {
throw new Error('Expected argument of type forge_vendor.ResponseInitChain');
throw new Error('Expected argument of type abci_vendor.ResponseInitChain');
}

@@ -244,9 +244,9 @@ return Buffer.from(arg.serializeBinary());

function deserialize_forge_vendor_ResponseInitChain(buffer_arg) {
function deserialize_abci_vendor_ResponseInitChain(buffer_arg) {
return vendor_pb.ResponseInitChain.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_forge_vendor_ResponseQuery(arg) {
function serialize_abci_vendor_ResponseQuery(arg) {
if (!(arg instanceof vendor_pb.ResponseQuery)) {
throw new Error('Expected argument of type forge_vendor.ResponseQuery');
throw new Error('Expected argument of type abci_vendor.ResponseQuery');
}

@@ -256,9 +256,9 @@ return Buffer.from(arg.serializeBinary());

function deserialize_forge_vendor_ResponseQuery(buffer_arg) {
function deserialize_abci_vendor_ResponseQuery(buffer_arg) {
return vendor_pb.ResponseQuery.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_forge_vendor_ResponseSetOption(arg) {
function serialize_abci_vendor_ResponseSetOption(arg) {
if (!(arg instanceof vendor_pb.ResponseSetOption)) {
throw new Error('Expected argument of type forge_vendor.ResponseSetOption');
throw new Error('Expected argument of type abci_vendor.ResponseSetOption');
}

@@ -268,13 +268,12 @@ return Buffer.from(arg.serializeBinary());

function deserialize_forge_vendor_ResponseSetOption(buffer_arg) {
function deserialize_abci_vendor_ResponseSetOption(buffer_arg) {
return vendor_pb.ResponseSetOption.deserializeBinary(new Uint8Array(buffer_arg));
}
// ----------------------------------------
// Service Definition
//
var ABCIApplicationService = exports.ABCIApplicationService = {
var ABCIApplicationService = (exports.ABCIApplicationService = {
echo: {
path: '/forge_vendor.ABCIApplication/Echo',
path: '/abci_vendor.ABCIApplication/Echo',
requestStream: false,

@@ -284,9 +283,9 @@ responseStream: false,

responseType: vendor_pb.ResponseEcho,
requestSerialize: serialize_forge_vendor_RequestEcho,
requestDeserialize: deserialize_forge_vendor_RequestEcho,
responseSerialize: serialize_forge_vendor_ResponseEcho,
responseDeserialize: deserialize_forge_vendor_ResponseEcho,
requestSerialize: serialize_abci_vendor_RequestEcho,
requestDeserialize: deserialize_abci_vendor_RequestEcho,
responseSerialize: serialize_abci_vendor_ResponseEcho,
responseDeserialize: deserialize_abci_vendor_ResponseEcho,
},
flush: {
path: '/forge_vendor.ABCIApplication/Flush',
path: '/abci_vendor.ABCIApplication/Flush',
requestStream: false,

@@ -296,9 +295,9 @@ responseStream: false,

responseType: vendor_pb.ResponseFlush,
requestSerialize: serialize_forge_vendor_RequestFlush,
requestDeserialize: deserialize_forge_vendor_RequestFlush,
responseSerialize: serialize_forge_vendor_ResponseFlush,
responseDeserialize: deserialize_forge_vendor_ResponseFlush,
requestSerialize: serialize_abci_vendor_RequestFlush,
requestDeserialize: deserialize_abci_vendor_RequestFlush,
responseSerialize: serialize_abci_vendor_ResponseFlush,
responseDeserialize: deserialize_abci_vendor_ResponseFlush,
},
info: {
path: '/forge_vendor.ABCIApplication/Info',
path: '/abci_vendor.ABCIApplication/Info',
requestStream: false,

@@ -308,9 +307,9 @@ responseStream: false,

responseType: vendor_pb.ResponseInfo,
requestSerialize: serialize_forge_vendor_RequestInfo,
requestDeserialize: deserialize_forge_vendor_RequestInfo,
responseSerialize: serialize_forge_vendor_ResponseInfo,
responseDeserialize: deserialize_forge_vendor_ResponseInfo,
requestSerialize: serialize_abci_vendor_RequestInfo,
requestDeserialize: deserialize_abci_vendor_RequestInfo,
responseSerialize: serialize_abci_vendor_ResponseInfo,
responseDeserialize: deserialize_abci_vendor_ResponseInfo,
},
setOption: {
path: '/forge_vendor.ABCIApplication/SetOption',
path: '/abci_vendor.ABCIApplication/SetOption',
requestStream: false,

@@ -320,9 +319,9 @@ responseStream: false,

responseType: vendor_pb.ResponseSetOption,
requestSerialize: serialize_forge_vendor_RequestSetOption,
requestDeserialize: deserialize_forge_vendor_RequestSetOption,
responseSerialize: serialize_forge_vendor_ResponseSetOption,
responseDeserialize: deserialize_forge_vendor_ResponseSetOption,
requestSerialize: serialize_abci_vendor_RequestSetOption,
requestDeserialize: deserialize_abci_vendor_RequestSetOption,
responseSerialize: serialize_abci_vendor_ResponseSetOption,
responseDeserialize: deserialize_abci_vendor_ResponseSetOption,
},
deliverTx: {
path: '/forge_vendor.ABCIApplication/DeliverTx',
path: '/abci_vendor.ABCIApplication/DeliverTx',
requestStream: false,

@@ -332,9 +331,9 @@ responseStream: false,

responseType: vendor_pb.ResponseDeliverTx,
requestSerialize: serialize_forge_vendor_RequestDeliverTx,
requestDeserialize: deserialize_forge_vendor_RequestDeliverTx,
responseSerialize: serialize_forge_vendor_ResponseDeliverTx,
responseDeserialize: deserialize_forge_vendor_ResponseDeliverTx,
requestSerialize: serialize_abci_vendor_RequestDeliverTx,
requestDeserialize: deserialize_abci_vendor_RequestDeliverTx,
responseSerialize: serialize_abci_vendor_ResponseDeliverTx,
responseDeserialize: deserialize_abci_vendor_ResponseDeliverTx,
},
checkTx: {
path: '/forge_vendor.ABCIApplication/CheckTx',
path: '/abci_vendor.ABCIApplication/CheckTx',
requestStream: false,

@@ -344,9 +343,9 @@ responseStream: false,

responseType: vendor_pb.ResponseCheckTx,
requestSerialize: serialize_forge_vendor_RequestCheckTx,
requestDeserialize: deserialize_forge_vendor_RequestCheckTx,
responseSerialize: serialize_forge_vendor_ResponseCheckTx,
responseDeserialize: deserialize_forge_vendor_ResponseCheckTx,
requestSerialize: serialize_abci_vendor_RequestCheckTx,
requestDeserialize: deserialize_abci_vendor_RequestCheckTx,
responseSerialize: serialize_abci_vendor_ResponseCheckTx,
responseDeserialize: deserialize_abci_vendor_ResponseCheckTx,
},
query: {
path: '/forge_vendor.ABCIApplication/Query',
path: '/abci_vendor.ABCIApplication/Query',
requestStream: false,

@@ -356,9 +355,9 @@ responseStream: false,

responseType: vendor_pb.ResponseQuery,
requestSerialize: serialize_forge_vendor_RequestQuery,
requestDeserialize: deserialize_forge_vendor_RequestQuery,
responseSerialize: serialize_forge_vendor_ResponseQuery,
responseDeserialize: deserialize_forge_vendor_ResponseQuery,
requestSerialize: serialize_abci_vendor_RequestQuery,
requestDeserialize: deserialize_abci_vendor_RequestQuery,
responseSerialize: serialize_abci_vendor_ResponseQuery,
responseDeserialize: deserialize_abci_vendor_ResponseQuery,
},
commit: {
path: '/forge_vendor.ABCIApplication/Commit',
path: '/abci_vendor.ABCIApplication/Commit',
requestStream: false,

@@ -368,9 +367,9 @@ responseStream: false,

responseType: vendor_pb.ResponseCommit,
requestSerialize: serialize_forge_vendor_RequestCommit,
requestDeserialize: deserialize_forge_vendor_RequestCommit,
responseSerialize: serialize_forge_vendor_ResponseCommit,
responseDeserialize: deserialize_forge_vendor_ResponseCommit,
requestSerialize: serialize_abci_vendor_RequestCommit,
requestDeserialize: deserialize_abci_vendor_RequestCommit,
responseSerialize: serialize_abci_vendor_ResponseCommit,
responseDeserialize: deserialize_abci_vendor_ResponseCommit,
},
initChain: {
path: '/forge_vendor.ABCIApplication/InitChain',
path: '/abci_vendor.ABCIApplication/InitChain',
requestStream: false,

@@ -380,9 +379,9 @@ responseStream: false,

responseType: vendor_pb.ResponseInitChain,
requestSerialize: serialize_forge_vendor_RequestInitChain,
requestDeserialize: deserialize_forge_vendor_RequestInitChain,
responseSerialize: serialize_forge_vendor_ResponseInitChain,
responseDeserialize: deserialize_forge_vendor_ResponseInitChain,
requestSerialize: serialize_abci_vendor_RequestInitChain,
requestDeserialize: deserialize_abci_vendor_RequestInitChain,
responseSerialize: serialize_abci_vendor_ResponseInitChain,
responseDeserialize: deserialize_abci_vendor_ResponseInitChain,
},
beginBlock: {
path: '/forge_vendor.ABCIApplication/BeginBlock',
path: '/abci_vendor.ABCIApplication/BeginBlock',
requestStream: false,

@@ -392,9 +391,9 @@ responseStream: false,

responseType: vendor_pb.ResponseBeginBlock,
requestSerialize: serialize_forge_vendor_RequestBeginBlock,
requestDeserialize: deserialize_forge_vendor_RequestBeginBlock,
responseSerialize: serialize_forge_vendor_ResponseBeginBlock,
responseDeserialize: deserialize_forge_vendor_ResponseBeginBlock,
requestSerialize: serialize_abci_vendor_RequestBeginBlock,
requestDeserialize: deserialize_abci_vendor_RequestBeginBlock,
responseSerialize: serialize_abci_vendor_ResponseBeginBlock,
responseDeserialize: deserialize_abci_vendor_ResponseBeginBlock,
},
endBlock: {
path: '/forge_vendor.ABCIApplication/EndBlock',
path: '/abci_vendor.ABCIApplication/EndBlock',
requestStream: false,

@@ -404,9 +403,9 @@ responseStream: false,

responseType: vendor_pb.ResponseEndBlock,
requestSerialize: serialize_forge_vendor_RequestEndBlock,
requestDeserialize: deserialize_forge_vendor_RequestEndBlock,
responseSerialize: serialize_forge_vendor_ResponseEndBlock,
responseDeserialize: deserialize_forge_vendor_ResponseEndBlock,
requestSerialize: serialize_abci_vendor_RequestEndBlock,
requestDeserialize: deserialize_abci_vendor_RequestEndBlock,
responseSerialize: serialize_abci_vendor_ResponseEndBlock,
responseDeserialize: deserialize_abci_vendor_ResponseEndBlock,
},
};
});
exports.ABCIApplicationClient = grpc.makeGenericClientConstructor(ABCIApplicationService);
{
"name": "@arcblock/forge-proto",
"description": "Static modules generated from forge-sdk protobuf files",
"version": "0.7.5",
"version": "0.7.6",
"author": "wangshijun <shijun@arcblock.io> (https://www.arcblock.io)",

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

},
"gitHead": "87990c8b5e215107fc587c1ced0d6b3e2cd2483e"
"gitHead": "fead3504f132784f5c50b3c88445d0f8468573bb"
}

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

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