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

@arcblock/forge-proto

Package Overview
Dependencies
Maintainers
2
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.39.7 to 0.40.0

6

index.d.ts

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

ACCOUNT_MIGRATED = 27,
RPC_CONNECTION_ERROR = 28,
UNSUPPORTED_STAKE = 30,

@@ -51,3 +52,2 @@ INSUFFICIENT_STAKE = 31,

INVALID_WITHDRAWER = 47,
DUPLICATE_TETHER = 48,
INVALID_EXPIRY_DATE = 49,

@@ -76,2 +76,3 @@ INVALID_DEPOSIT = 50,

TIMEOUT = 504,
DUPLICATE_TETHER = 48,
}

@@ -111,4 +112,4 @@

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

@@ -255,2 +256,3 @@

27 = ACCOUNT_MIGRATED,
28 = RPC_CONNECTION_ERROR,
30 = UNSUPPORTED_STAKE,

@@ -257,0 +259,0 @@ 31 = INSUFFICIENT_STAKE,

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

ACCOUNT_MIGRATED: 27,
RPC_CONNECTION_ERROR: 28,
UNSUPPORTED_STAKE: 30,

@@ -70,3 +71,2 @@ INSUFFICIENT_STAKE: 31,

INVALID_WITHDRAWER: 47,
DUPLICATE_TETHER: 48,
INVALID_EXPIRY_DATE: 49,

@@ -141,3 +141,2 @@ INVALID_DEPOSIT: 50,

ROLE_TX: 10,
ROLE_TETHER: 11,
ROLE_ANY: 63

@@ -144,0 +143,0 @@ };

@@ -7,24 +7,2 @@ // GENERATED CODE -- DO NOT EDIT!

function serialize_forge_abi_RequestCreateTx(arg) {
if (!(arg instanceof rpc_pb.RequestCreateTx)) {
throw new Error('Expected argument of type forge_abi.RequestCreateTx');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_forge_abi_RequestCreateTx(buffer_arg) {
return rpc_pb.RequestCreateTx.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_forge_abi_RequestCreateWallet(arg) {
if (!(arg instanceof rpc_pb.RequestCreateWallet)) {
throw new Error('Expected argument of type forge_abi.RequestCreateWallet');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_forge_abi_RequestCreateWallet(buffer_arg) {
return rpc_pb.RequestCreateWallet.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_forge_abi_RequestDeclareNode(arg) {

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

function serialize_forge_abi_RequestGetTetherState(arg) {
if (!(arg instanceof rpc_pb.RequestGetTetherState)) {
throw new Error('Expected argument of type forge_abi.RequestGetTetherState');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_forge_abi_RequestGetTetherState(buffer_arg) {
return rpc_pb.RequestGetTetherState.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_forge_abi_RequestGetTx(arg) {

@@ -317,13 +284,2 @@ if (!(arg instanceof rpc_pb.RequestGetTx)) {

function serialize_forge_abi_RequestListTethers(arg) {
if (!(arg instanceof rpc_pb.RequestListTethers)) {
throw new Error('Expected argument of type forge_abi.RequestListTethers');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_forge_abi_RequestListTethers(buffer_arg) {
return rpc_pb.RequestListTethers.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_forge_abi_RequestListTopAccounts(arg) {

@@ -351,13 +307,2 @@ if (!(arg instanceof rpc_pb.RequestListTopAccounts)) {

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

@@ -374,24 +319,2 @@ if (!(arg instanceof rpc_pb.RequestLoadFile)) {

function serialize_forge_abi_RequestLoadWallet(arg) {
if (!(arg instanceof rpc_pb.RequestLoadWallet)) {
throw new Error('Expected argument of type forge_abi.RequestLoadWallet');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_forge_abi_RequestLoadWallet(buffer_arg) {
return rpc_pb.RequestLoadWallet.deserializeBinary(new Uint8Array(buffer_arg));
}
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) {

@@ -408,24 +331,2 @@ if (!(arg instanceof rpc_pb.RequestPinFile)) {

function serialize_forge_abi_RequestRecoverWallet(arg) {
if (!(arg instanceof rpc_pb.RequestRecoverWallet)) {
throw new Error('Expected argument of type forge_abi.RequestRecoverWallet');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_forge_abi_RequestRecoverWallet(buffer_arg) {
return rpc_pb.RequestRecoverWallet.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_forge_abi_RequestRemoveWallet(arg) {
if (!(arg instanceof rpc_pb.RequestRemoveWallet)) {
throw new Error('Expected argument of type forge_abi.RequestRemoveWallet');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_forge_abi_RequestRemoveWallet(buffer_arg) {
return rpc_pb.RequestRemoveWallet.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_forge_abi_RequestSearch(arg) {

@@ -486,24 +387,2 @@ if (!(arg instanceof rpc_pb.RequestSearch)) {

function serialize_forge_abi_ResponseCreateTx(arg) {
if (!(arg instanceof rpc_pb.ResponseCreateTx)) {
throw new Error('Expected argument of type forge_abi.ResponseCreateTx');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_forge_abi_ResponseCreateTx(buffer_arg) {
return rpc_pb.ResponseCreateTx.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_forge_abi_ResponseCreateWallet(arg) {
if (!(arg instanceof rpc_pb.ResponseCreateWallet)) {
throw new Error('Expected argument of type forge_abi.ResponseCreateWallet');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_forge_abi_ResponseCreateWallet(buffer_arg) {
return rpc_pb.ResponseCreateWallet.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_forge_abi_ResponseDeclareNode(arg) {

@@ -685,13 +564,2 @@ if (!(arg instanceof rpc_pb.ResponseDeclareNode)) {

function serialize_forge_abi_ResponseGetTetherState(arg) {
if (!(arg instanceof rpc_pb.ResponseGetTetherState)) {
throw new Error('Expected argument of type forge_abi.ResponseGetTetherState');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_forge_abi_ResponseGetTetherState(buffer_arg) {
return rpc_pb.ResponseGetTetherState.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_forge_abi_ResponseGetTx(arg) {

@@ -796,13 +664,2 @@ if (!(arg instanceof rpc_pb.ResponseGetTx)) {

function serialize_forge_abi_ResponseListTethers(arg) {
if (!(arg instanceof rpc_pb.ResponseListTethers)) {
throw new Error('Expected argument of type forge_abi.ResponseListTethers');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_forge_abi_ResponseListTethers(buffer_arg) {
return rpc_pb.ResponseListTethers.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_forge_abi_ResponseListTopAccounts(arg) {

@@ -830,13 +687,2 @@ if (!(arg instanceof rpc_pb.ResponseListTopAccounts)) {

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

@@ -853,24 +699,2 @@ if (!(arg instanceof rpc_pb.ResponseLoadFile)) {

function serialize_forge_abi_ResponseLoadWallet(arg) {
if (!(arg instanceof rpc_pb.ResponseLoadWallet)) {
throw new Error('Expected argument of type forge_abi.ResponseLoadWallet');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_forge_abi_ResponseLoadWallet(buffer_arg) {
return rpc_pb.ResponseLoadWallet.deserializeBinary(new Uint8Array(buffer_arg));
}
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) {

@@ -887,24 +711,2 @@ if (!(arg instanceof rpc_pb.ResponsePinFile)) {

function serialize_forge_abi_ResponseRecoverWallet(arg) {
if (!(arg instanceof rpc_pb.ResponseRecoverWallet)) {
throw new Error('Expected argument of type forge_abi.ResponseRecoverWallet');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_forge_abi_ResponseRecoverWallet(buffer_arg) {
return rpc_pb.ResponseRecoverWallet.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_forge_abi_ResponseRemoveWallet(arg) {
if (!(arg instanceof rpc_pb.ResponseRemoveWallet)) {
throw new Error('Expected argument of type forge_abi.ResponseRemoveWallet');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_forge_abi_ResponseRemoveWallet(buffer_arg) {
return rpc_pb.ResponseRemoveWallet.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_forge_abi_ResponseSearch(arg) {

@@ -975,24 +777,2 @@ if (!(arg instanceof rpc_pb.ResponseSearch)) {

// tx related
create_tx: {
path: '/forge_abi.ChainRpc/create_tx',
requestStream: false,
responseStream: false,
requestType: rpc_pb.RequestCreateTx,
responseType: rpc_pb.ResponseCreateTx,
requestSerialize: serialize_forge_abi_RequestCreateTx,
requestDeserialize: deserialize_forge_abi_RequestCreateTx,
responseSerialize: serialize_forge_abi_ResponseCreateTx,
responseDeserialize: deserialize_forge_abi_ResponseCreateTx,
},
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: {

@@ -1244,13 +1024,2 @@ path: '/forge_abi.ChainRpc/send_tx',

},
get_tether_state: {
path: '/forge_abi.StateRpc/get_tether_state',
requestStream: true,
responseStream: true,
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,
},
get_swap_state: {

@@ -1283,57 +1052,2 @@ path: '/forge_abi.StateRpc/get_swap_state',

// wallet related
create_wallet: {
path: '/forge_abi.WalletRpc/create_wallet',
requestStream: false,
responseStream: false,
requestType: rpc_pb.RequestCreateWallet,
responseType: rpc_pb.ResponseCreateWallet,
requestSerialize: serialize_forge_abi_RequestCreateWallet,
requestDeserialize: deserialize_forge_abi_RequestCreateWallet,
responseSerialize: serialize_forge_abi_ResponseCreateWallet,
responseDeserialize: deserialize_forge_abi_ResponseCreateWallet,
},
load_wallet: {
path: '/forge_abi.WalletRpc/load_wallet',
requestStream: false,
responseStream: false,
requestType: rpc_pb.RequestLoadWallet,
responseType: rpc_pb.ResponseLoadWallet,
requestSerialize: serialize_forge_abi_RequestLoadWallet,
requestDeserialize: deserialize_forge_abi_RequestLoadWallet,
responseSerialize: serialize_forge_abi_ResponseLoadWallet,
responseDeserialize: deserialize_forge_abi_ResponseLoadWallet,
},
recover_wallet: {
path: '/forge_abi.WalletRpc/recover_wallet',
requestStream: false,
responseStream: false,
requestType: rpc_pb.RequestRecoverWallet,
responseType: rpc_pb.ResponseRecoverWallet,
requestSerialize: serialize_forge_abi_RequestRecoverWallet,
requestDeserialize: deserialize_forge_abi_RequestRecoverWallet,
responseSerialize: serialize_forge_abi_ResponseRecoverWallet,
responseDeserialize: deserialize_forge_abi_ResponseRecoverWallet,
},
list_wallet: {
path: '/forge_abi.WalletRpc/list_wallet',
requestStream: false,
responseStream: true,
requestType: rpc_pb.RequestListWallet,
responseType: rpc_pb.ResponseListWallet,
requestSerialize: serialize_forge_abi_RequestListWallet,
requestDeserialize: deserialize_forge_abi_RequestListWallet,
responseSerialize: serialize_forge_abi_ResponseListWallet,
responseDeserialize: deserialize_forge_abi_ResponseListWallet,
},
remove_wallet: {
path: '/forge_abi.WalletRpc/remove_wallet',
requestStream: false,
responseStream: false,
requestType: rpc_pb.RequestRemoveWallet,
responseType: rpc_pb.ResponseRemoveWallet,
requestSerialize: serialize_forge_abi_RequestRemoveWallet,
requestDeserialize: deserialize_forge_abi_RequestRemoveWallet,
responseSerialize: serialize_forge_abi_ResponseRemoveWallet,
responseDeserialize: deserialize_forge_abi_ResponseRemoveWallet,
},
declare_node: {

@@ -1453,13 +1167,2 @@ path: '/forge_abi.WalletRpc/declare_node',

},
list_tethers: {
path: '/forge_abi.StatsRpc/list_tethers',
requestStream: false,
responseStream: false,
requestType: rpc_pb.RequestListTethers,
responseType: rpc_pb.ResponseListTethers,
requestSerialize: serialize_forge_abi_RequestListTethers,
requestDeserialize: deserialize_forge_abi_RequestListTethers,
responseSerialize: serialize_forge_abi_ResponseListTethers,
responseDeserialize: deserialize_forge_abi_ResponseListTethers,
},
list_swap: {

@@ -1466,0 +1169,0 @@ path: '/forge_abi.StatsRpc/list_swap',

{
"name": "@arcblock/forge-proto",
"description": "Static modules generated from forge-sdk protobuf files",
"version": "0.39.7",
"version": "0.40.0",
"author": {

@@ -70,3 +70,3 @@ "name": "wangshijun",

},
"gitHead": "8a9f9caec73d880ea3a8696d7257fe40413b50fd"
"gitHead": "5fa29df30026600f0ce71caf3143bd4c034ffb2d"
}

@@ -1,2 +0,2 @@

// Auto generated code (2019-10-28T02:01:26.966Z), DO NOT EDIT
// Auto generated code (2019-10-31T02:39:04.670Z), DO NOT EDIT
const typePb = require('./lib/type_pb.js');

@@ -3,0 +3,0 @@ const txPb = require('./lib/tx_pb.js');

@@ -1,2 +0,2 @@

// Auto generated code (2019-10-28T02:01:27.193Z), DO NOT EDIT
// Auto generated code (2019-10-31T02:39:04.933Z), DO NOT EDIT
const typePb = require('./lib/type_pb.js');

@@ -3,0 +3,0 @@ const enumPb = require('./lib/enum_pb.js');

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