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.22.0 to 0.25.0

lib/exchange_tether_tx_pb.js

39

index.d.ts

@@ -54,2 +54,3 @@ // Generate by [js2dts@0.3.2](https://github.com/whxaxes/js2dts#readme)

INVALID_LOCK_STATUS = 12,
INVALID_REQUEST = 13,
INVALID_MONIKER = 16,

@@ -79,2 +80,7 @@ INVALID_PASSPHRASE = 17,

EXCEED_DEPOSIT_CAP = 44,
INVALID_DEPOSIT_TARGET = 45,
INVALID_DEPOSITOR = 46,
INVALID_WITHDRAWER = 47,
DUPLICATE_TETHER = 48,
INVALID_EXPIRY_DATE = 49,
FORBIDDEN = 403,

@@ -140,2 +146,3 @@ INTERNAL = 500,

ROLE_TX = 10,
ROLE_TETHER = 11,
ROLE_ANY = 63,

@@ -207,17 +214,18 @@ }

0 = ConsensusUpgradeTx,
1 = DeclareTx,
2 = DeployProtocolTx,
3 = SysUpgradeTx,
4 = DeclareFileTx,
5 = CreateAssetTx,
6 = PokeTx,
7 = ConsumeAssetTx,
8 = ExchangeTx,
9 = AccountMigrateTx,
1 = DeployProtocolTx,
2 = SysUpgradeTx,
3 = AccountMigrateTx,
4 = DeclareTx,
5 = AcquireAssetTx,
6 = DeclareFileTx,
7 = PokeTx,
8 = ExchangeTetherTx,
9 = ConsumeAssetTx,
10 = UpgradeNodeTx,
11 = UpdateAssetTx,
12 = AcquireAssetTx,
12 = CreateAssetTx,
13 = DepositTetherTx,
14 = StakeTx,
15 = TransferTx,
14 = ExchangeTx,
15 = StakeTx,
16 = TransferTx,
}

@@ -265,2 +273,3 @@

12 = INVALID_LOCK_STATUS,
13 = INVALID_REQUEST,
16 = INVALID_MONIKER,

@@ -290,2 +299,7 @@ 17 = INVALID_PASSPHRASE,

44 = EXCEED_DEPOSIT_CAP,
45 = INVALID_DEPOSIT_TARGET,
46 = INVALID_DEPOSITOR,
47 = INVALID_WITHDRAWER,
48 = DUPLICATE_TETHER,
49 = INVALID_EXPIRY_DATE,
403 = FORBIDDEN,

@@ -351,2 +365,3 @@ 500 = INTERNAL,

10 = ROLE_TX,
11 = ROLE_TETHER,
63 = ROLE_ANY,

@@ -353,0 +368,0 @@ }

@@ -16,4 +16,2 @@ /**

goog.object.extend(proto, google_protobuf_any_pb);
var type_pb = require('./type_pb.js');
goog.object.extend(proto, type_pb);
goog.exportSymbol('proto.forge_abi.AcquireAssetTx', null, global);

@@ -20,0 +18,0 @@ goog.exportSymbol('proto.forge_abi.AssetSpec', null, global);

@@ -14,4 +14,2 @@ /**

var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js');
goog.object.extend(proto, google_protobuf_any_pb);
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');

@@ -18,0 +16,0 @@ goog.object.extend(proto, google_protobuf_timestamp_pb);

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

INVALID_LOCK_STATUS: 12,
INVALID_REQUEST: 13,
INVALID_MONIKER: 16,

@@ -67,2 +68,7 @@ INVALID_PASSPHRASE: 17,

EXCEED_DEPOSIT_CAP: 44,
INVALID_DEPOSIT_TARGET: 45,
INVALID_DEPOSITOR: 46,
INVALID_WITHDRAWER: 47,
DUPLICATE_TETHER: 48,
INVALID_EXPIRY_DATE: 49,
FORBIDDEN: 403,

@@ -143,2 +149,3 @@ INTERNAL: 500,

ROLE_TX: 10,
ROLE_TETHER: 11,
ROLE_ANY: 63,

@@ -145,0 +152,0 @@ };

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

function serialize_forge_abi_RequestGetTetherInfo(arg) {
if (!(arg instanceof rpc_pb.RequestGetTetherInfo)) {
throw new Error('Expected argument of type forge_abi.RequestGetTetherInfo');
function serialize_forge_abi_RequestGetTetherState(arg) {
if (!(arg instanceof rpc_pb.RequestGetTetherState)) {
throw new Error('Expected argument of type forge_abi.RequestGetTetherState');
}

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

function deserialize_forge_abi_RequestGetTetherInfo(buffer_arg) {
return rpc_pb.RequestGetTetherInfo.deserializeBinary(new Uint8Array(buffer_arg));
function deserialize_forge_abi_RequestGetTetherState(buffer_arg) {
return rpc_pb.RequestGetTetherState.deserializeBinary(new Uint8Array(buffer_arg));
}

@@ -614,5 +614,5 @@

function serialize_forge_abi_ResponseGetTetherInfo(arg) {
if (!(arg instanceof rpc_pb.ResponseGetTetherInfo)) {
throw new Error('Expected argument of type forge_abi.ResponseGetTetherInfo');
function serialize_forge_abi_ResponseGetTetherState(arg) {
if (!(arg instanceof rpc_pb.ResponseGetTetherState)) {
throw new Error('Expected argument of type forge_abi.ResponseGetTetherState');
}

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

function deserialize_forge_abi_ResponseGetTetherInfo(buffer_arg) {
return rpc_pb.ResponseGetTetherInfo.deserializeBinary(new Uint8Array(buffer_arg));
function deserialize_forge_abi_ResponseGetTetherState(buffer_arg) {
return rpc_pb.ResponseGetTetherState.deserializeBinary(new Uint8Array(buffer_arg));
}

@@ -1146,12 +1146,12 @@

},
get_tether_info: {
path: '/forge_abi.StateRpc/get_tether_info',
get_tether_state: {
path: '/forge_abi.StateRpc/get_tether_state',
requestStream: true,
responseStream: true,
requestType: rpc_pb.RequestGetTetherInfo,
responseType: rpc_pb.ResponseGetTetherInfo,
requestSerialize: serialize_forge_abi_RequestGetTetherInfo,
requestDeserialize: deserialize_forge_abi_RequestGetTetherInfo,
responseSerialize: serialize_forge_abi_ResponseGetTetherInfo,
responseDeserialize: deserialize_forge_abi_ResponseGetTetherInfo,
requestType: rpc_pb.RequestGetTetherState,
responseType: rpc_pb.ResponseGetTetherState,
requestSerialize: serialize_forge_abi_RequestGetTetherState,
requestDeserialize: deserialize_forge_abi_RequestGetTetherState,
responseSerialize: serialize_forge_abi_ResponseGetTetherState,
responseDeserialize: deserialize_forge_abi_ResponseGetTetherState,
},

@@ -1158,0 +1158,0 @@ });

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

goog.exportSymbol('proto.forge_abi.ConsensusUpgradeTx', null, global);
goog.exportSymbol('proto.forge_abi.DeclareTx', null, global);
goog.exportSymbol('proto.forge_abi.DeployProtocolTx', null, global);

@@ -36,193 +35,2 @@ goog.exportSymbol('proto.forge_abi.SysUpgradeTx', null, global);

*/
proto.forge_abi.DeclareTx = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.forge_abi.DeclareTx, jspb.Message);
if (goog.DEBUG && !COMPILED) {
proto.forge_abi.DeclareTx.displayName = 'proto.forge_abi.DeclareTx';
}
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.DeclareTx.prototype.toObject = function(opt_includeInstance) {
return proto.forge_abi.DeclareTx.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.DeclareTx} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.forge_abi.DeclareTx.toObject = function(includeInstance, msg) {
var f,
obj = {
moniker: jspb.Message.getFieldWithDefault(msg, 1, ''),
issuer: jspb.Message.getFieldWithDefault(msg, 2, ''),
data: (f = msg.getData()) && google_protobuf_any_pb.Any.toObject(includeInstance, f),
};
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.DeclareTx}
*/
proto.forge_abi.DeclareTx.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.forge_abi.DeclareTx();
return proto.forge_abi.DeclareTx.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.forge_abi.DeclareTx} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.forge_abi.DeclareTx}
*/
proto.forge_abi.DeclareTx.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {string} */ (reader.readString());
msg.setMoniker(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setIssuer(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;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.forge_abi.DeclareTx.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.forge_abi.DeclareTx.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.DeclareTx} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.forge_abi.DeclareTx.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getMoniker();
if (f.length > 0) {
writer.writeString(1, f);
}
f = message.getIssuer();
if (f.length > 0) {
writer.writeString(2, f);
}
f = message.getData();
if (f != null) {
writer.writeMessage(15, f, google_protobuf_any_pb.Any.serializeBinaryToWriter);
}
};
/**
* optional string moniker = 1;
* @return {string}
*/
proto.forge_abi.DeclareTx.prototype.getMoniker = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ''));
};
/** @param {string} value */
proto.forge_abi.DeclareTx.prototype.setMoniker = function(value) {
jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional string issuer = 2;
* @return {string}
*/
proto.forge_abi.DeclareTx.prototype.getIssuer = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ''));
};
/** @param {string} value */
proto.forge_abi.DeclareTx.prototype.setIssuer = function(value) {
jspb.Message.setProto3StringField(this, 2, value);
};
/**
* optional google.protobuf.Any data = 15;
* @return {?proto.google.protobuf.Any}
*/
proto.forge_abi.DeclareTx.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.DeclareTx.prototype.setData = function(value) {
jspb.Message.setWrapperField(this, 15, value);
};
proto.forge_abi.DeclareTx.prototype.clearData = function() {
this.setData(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.forge_abi.DeclareTx.prototype.hasData = function() {
return jspb.Message.getField(this, 15) != null;
};
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.forge_abi.CodeInfo = function(opt_data) {

@@ -591,3 +399,3 @@ jspb.Message.initialize(this, opt_data, 0, -1, null, null);

*/
proto.forge_abi.DeployProtocolTx.repeatedFields_ = [6, 9, 10];
proto.forge_abi.DeployProtocolTx.repeatedFields_ = [6, 9, 10, 11];

@@ -639,2 +447,3 @@ if (jspb.Message.GENERATE_TO_OBJECT) {

),
tagsList: jspb.Message.getRepeatedField(msg, 11),
data: (f = msg.getData()) && google_protobuf_any_pb.Any.toObject(includeInstance, f),

@@ -717,2 +526,6 @@ };

break;
case 11:
var value = /** @type {string} */ (reader.readString());
msg.addTags(value);
break;
case 15:

@@ -790,2 +603,6 @@ var value = new google_protobuf_any_pb.Any();

}
f = message.getTagsList();
if (f.length > 0) {
writer.writeRepeatedString(11, f);
}
f = message.getData();

@@ -986,2 +803,27 @@ if (f != null) {

/**
* repeated string tags = 11;
* @return {!Array<string>}
*/
proto.forge_abi.DeployProtocolTx.prototype.getTagsList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 11));
};
/** @param {!Array<string>} value */
proto.forge_abi.DeployProtocolTx.prototype.setTagsList = function(value) {
jspb.Message.setField(this, 11, value || []);
};
/**
* @param {string} value
* @param {number=} opt_index
*/
proto.forge_abi.DeployProtocolTx.prototype.addTags = function(value, opt_index) {
jspb.Message.addToRepeatedField(this, 11, value, opt_index);
};
proto.forge_abi.DeployProtocolTx.prototype.clearTagsList = function() {
this.setTagsList([]);
};
/**
* optional google.protobuf.Any data = 15;

@@ -988,0 +830,0 @@ * @return {?proto.google.protobuf.Any}

{
"name": "@arcblock/forge-proto",
"description": "Static modules generated from forge-sdk protobuf files",
"version": "0.22.0",
"version": "0.25.0",
"author": "wangshijun <shijun@arcblock.io> (https://www.arcblock.io)",
"engines": {
"node": ">=0.10.0",
"forge": ">=0.11.1"
"forge": ">=0.25.3"
},

@@ -64,3 +64,3 @@ "bugs": {

},
"gitHead": "1e2bc71da51158cd827b3b5e544d91a73fdfadf4"
"gitHead": "3cdb22e676cc7ed25a9c90579b3296bf84e5edcf"
}

@@ -1,26 +0,25 @@

// Auto generated code (2019-04-30T10:12:58.537Z), DO NOT EDIT
// Auto generated code (2019-05-05T01:32:08.913Z), DO NOT EDIT
const typePb = require('./lib/type_pb.js');
const txPb = require('./lib/tx_pb.js');
const traceTypePb = require('./lib/trace_type_pb.js');
const enumPb = require('./lib/enum_pb.js');
const statePb = require('./lib/state_pb.js');
const enumPb = require('./lib/enum_pb.js');
const rpcPb = require('./lib/rpc_pb.js');
const servicePb = require('./lib/service_pb.js');
const rpcPb = require('./lib/rpc_pb.js');
const abiPb = require('./lib/abi_pb.js');
const deployProtocolTxPb = require('./lib/deploy_protocol_tx_pb.js');
const accountMigrateTxPb = require('./lib/account_migrate_tx_pb.js');
const declareTxPb = require('./lib/declare_tx_pb.js');
const acquireAssetTxPb = require('./lib/acquire_asset_tx_pb.js');
const declareFileTxPb = require('./lib/declare_file_tx_pb.js');
const createAssetTxPb = require('./lib/create_asset_tx_pb.js');
const pokeTxPb = require('./lib/poke_tx_pb.js');
const exchangeTetherTxPb = require('./lib/exchange_tether_tx_pb.js');
const consumeAssetTxPb = require('./lib/consume_asset_tx_pb.js');
const exchangeTxPb = require('./lib/exchange_tx_pb.js');
const deployProtocolTxPb = require('./lib/deploy_protocol_tx_pb.js');
const accountMigrateTxPb = require('./lib/account_migrate_tx_pb.js');
const upgradeNodeTxPb = require('./lib/upgrade_node_tx_pb.js');
const updateAssetTxPb = require('./lib/update_asset_tx_pb.js');
const acquireAssetTxPb = require('./lib/acquire_asset_tx_pb.js');
const declareTxPb = require('./lib/declare_tx_pb.js');
const createAssetTxPb = require('./lib/create_asset_tx_pb.js');
const depositTetherTxPb = require('./lib/deposit_tether_tx_pb.js');
const exchangeTxPb = require('./lib/exchange_tx_pb.js');
const stakeTxPb = require('./lib/stake_tx_pb.js');
const transferTxPb = require('./lib/transfer_tx_pb.js');
const serviceGrpcPb = require('./lib/service_grpc_pb.js');
const abiGrpcPb = require('./lib/abi_grpc_pb.js');
const vendorPb = require('./lib/vendor_pb.js');

@@ -33,23 +32,23 @@

traceTypePb,
enumPb,
statePb,
enumPb,
rpcPb,
servicePb,
rpcPb,
abiPb,
deployProtocolTxPb,
accountMigrateTxPb,
declareTxPb,
acquireAssetTxPb,
declareFileTxPb,
createAssetTxPb,
pokeTxPb,
exchangeTetherTxPb,
consumeAssetTxPb,
exchangeTxPb,
deployProtocolTxPb,
accountMigrateTxPb,
upgradeNodeTxPb,
updateAssetTxPb,
acquireAssetTxPb,
declareTxPb,
createAssetTxPb,
depositTetherTxPb,
exchangeTxPb,
stakeTxPb,
transferTxPb
);
const forgeServices = Object.assign({}, serviceGrpcPb, abiGrpcPb);
const forgeServices = Object.assign({}, serviceGrpcPb);
const vendorTypes = Object.assign({}, vendorPb);

@@ -56,0 +55,0 @@ const vendorServices = {};

@@ -1,18 +0,19 @@

// Auto generated code (2019-04-30T10:12:58.724Z), DO NOT EDIT
// Auto generated code (2019-05-05T01:32:09.092Z), DO NOT EDIT
const typePb = require('./lib/type_pb.js');
const enumPb = require('./lib/enum_pb.js');
const consumeAssetTxPb = require('./lib/consume_asset_tx_pb.js');
const declareTxPb = require('./lib/declare_tx_pb.js');
const accountMigrateTxPb = require('./lib/account_migrate_tx_pb.js');
const declareFileTxPb = require('./lib/declare_file_tx_pb.js');
const exchangeTetherTxPb = require('./lib/exchange_tether_tx_pb.js');
const transferTxPb = require('./lib/transfer_tx_pb.js');
const pokeTxPb = require('./lib/poke_tx_pb.js');
const transferTxPb = require('./lib/transfer_tx_pb.js');
const exchangeTxPb = require('./lib/exchange_tx_pb.js');
const deployProtocolTxPb = require('./lib/deploy_protocol_tx_pb.js');
const depositTetherTxPb = require('./lib/deposit_tether_tx_pb.js');
const upgradeNodeTxPb = require('./lib/upgrade_node_tx_pb.js');
const updateAssetTxPb = require('./lib/update_asset_tx_pb.js');
const accountMigrateTxPb = require('./lib/account_migrate_tx_pb.js');
const consumeAssetTxPb = require('./lib/consume_asset_tx_pb.js');
const createAssetTxPb = require('./lib/create_asset_tx_pb.js');
const deployProtocolTxPb = require('./lib/deploy_protocol_tx_pb.js');
const acquireAssetTxPb = require('./lib/acquire_asset_tx_pb.js');
const declareTxPb = require('./lib/declare_tx_pb.js');
const depositTetherTxPb = require('./lib/deposit_tether_tx_pb.js');
const createAssetTxPb = require('./lib/create_asset_tx_pb.js');
const exchangeTxPb = require('./lib/exchange_tx_pb.js');
const stakeTxPb = require('./lib/stake_tx_pb.js');
const declareFileTxPb = require('./lib/declare_file_tx_pb.js');

@@ -25,16 +26,17 @@ const vendorPb = require('./lib/vendor_pb.js');

enumPb,
consumeAssetTxPb,
declareTxPb,
accountMigrateTxPb,
declareFileTxPb,
exchangeTetherTxPb,
transferTxPb,
pokeTxPb,
transferTxPb,
exchangeTxPb,
deployProtocolTxPb,
depositTetherTxPb,
upgradeNodeTxPb,
updateAssetTxPb,
accountMigrateTxPb,
consumeAssetTxPb,
createAssetTxPb,
deployProtocolTxPb,
acquireAssetTxPb,
declareTxPb,
depositTetherTxPb,
createAssetTxPb,
stakeTxPb,
declareFileTxPb
exchangeTxPb,
stakeTxPb
);

@@ -41,0 +43,0 @@ const forgeServices = {};

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