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

@arcblock/forge-proto

Package Overview
Dependencies
Maintainers
3
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 1.2.0 to 1.3.0

696

index.d.ts

@@ -7,404 +7,402 @@ // Generate by [js2dts@0.3.3](https://github.com/whxaxes/js2dts#readme)

declare namespace Enums {
export enum StatusCode {
export enum StatusCode {
OK = 0,
INVALID_NONCE = 1,
INVALID_SIGNATURE = 2,
INVALID_SENDER_STATE = 3,
INVALID_RECEIVER_STATE = 4,
INSUFFICIENT_DATA = 5,
INSUFFICIENT_FUND = 6,
INVALID_OWNER = 7,
INVALID_TX = 8,
UNSUPPORTED_TX = 9,
EXPIRED_TX = 10,
TOO_MANY_TXS = 11,
INVALID_LOCK_STATUS = 12,
INVALID_REQUEST = 13,
INVALID_MONIKER = 16,
INVALID_PASSPHRASE = 17,
INVALID_MULTISIG = 20,
INVALID_WALLET = 21,
INVALID_CHAIN_ID = 22,
CONSENSUS_RPC_ERROR = 24,
STORAGE_RPC_ERROR = 25,
NOENT = 26,
ACCOUNT_MIGRATED = 27,
RPC_CONNECTION_ERROR = 28,
UNSUPPORTED_STAKE = 30,
INSUFFICIENT_STAKE = 31,
INVALID_STAKE_STATE = 32,
EXPIRED_WALLET_TOKEN = 33,
BANNED_UNSTAKE = 34,
INVALID_ASSET = 35,
INVALID_TX_SIZE = 36,
INVALID_SIGNER_STATE = 37,
INVALID_FORGE_STATE = 38,
EXPIRED_ASSET = 39,
UNTRANSFERRABLE_ASSET = 40,
READONLY_ASSET = 41,
CONSUMED_ASSET = 42,
INVALID_DEPOSIT_VALUE = 43,
EXCEED_DEPOSIT_CAP = 44,
INVALID_DEPOSIT_TARGET = 45,
INVALID_DEPOSITOR = 46,
INVALID_WITHDRAWER = 47,
INVALID_EXPIRY_DATE = 49,
INVALID_DEPOSIT = 50,
INVALID_CUSTODIAN = 51,
INSUFFICIENT_GAS = 52,
INVALID_SWAP = 53,
INVALID_HASHKEY = 54,
INVALID_DELEGATION = 55,
INSUFFICIENT_DELEGATION = 56,
INVALID_DELEGATION_RULE = 57,
INVALID_DELEGATION_TYPE_URL = 58,
SENDER_NOT_AUTHORIZED = 59,
PROTOCOL_NOT_RUNNING = 60,
PROTOCOL_NOT_PAUSED = 61,
PROTOCOL_NOT_ACTIVATED = 62,
INVALID_DEACTIVATION = 63,
SENDER_WITHDRAW_ITEMS_FULL = 64,
WITHDRAW_ITEM_MISSING = 65,
INVALID_WITHDRAW_TX = 66,
INVALID_CHAIN_TYPE = 67,
INVALID_TIME = 68,
INVALID_SUBSCRIBE = 69,
INVALID_DID_TYPE = 70,
INVALID_CANDIDATE_STATE = 71,
VALIDATOR_NOT_FOUND = 72,
VALIDATOR_NOT_CHANGED = 73,
FORBIDDEN = 403,
INTERNAL = 500,
TIMEOUT = 504,
}
INVALID_NONCE = 1,
INVALID_SIGNATURE = 2,
INVALID_SENDER_STATE = 3,
INVALID_RECEIVER_STATE = 4,
INSUFFICIENT_DATA = 5,
INSUFFICIENT_FUND = 6,
INVALID_OWNER = 7,
INVALID_TX = 8,
UNSUPPORTED_TX = 9,
EXPIRED_TX = 10,
TOO_MANY_TXS = 11,
INVALID_LOCK_STATUS = 12,
INVALID_REQUEST = 13,
INVALID_MONIKER = 16,
INVALID_PASSPHRASE = 17,
INVALID_MULTISIG = 20,
INVALID_WALLET = 21,
INVALID_CHAIN_ID = 22,
CONSENSUS_RPC_ERROR = 24,
STORAGE_RPC_ERROR = 25,
NOENT = 26,
ACCOUNT_MIGRATED = 27,
RPC_CONNECTION_ERROR = 28,
UNSUPPORTED_STAKE = 30,
INSUFFICIENT_STAKE = 31,
INVALID_STAKE_STATE = 32,
EXPIRED_WALLET_TOKEN = 33,
BANNED_UNSTAKE = 34,
INVALID_ASSET = 35,
INVALID_TX_SIZE = 36,
INVALID_SIGNER_STATE = 37,
INVALID_FORGE_STATE = 38,
EXPIRED_ASSET = 39,
UNTRANSFERRABLE_ASSET = 40,
READONLY_ASSET = 41,
CONSUMED_ASSET = 42,
INVALID_DEPOSIT_VALUE = 43,
EXCEED_DEPOSIT_CAP = 44,
INVALID_DEPOSIT_TARGET = 45,
INVALID_DEPOSITOR = 46,
INVALID_WITHDRAWER = 47,
INVALID_EXPIRY_DATE = 49,
INVALID_DEPOSIT = 50,
INVALID_CUSTODIAN = 51,
INSUFFICIENT_GAS = 52,
INVALID_SWAP = 53,
INVALID_HASHKEY = 54,
INVALID_DELEGATION = 55,
INSUFFICIENT_DELEGATION = 56,
INVALID_DELEGATION_RULE = 57,
INVALID_DELEGATION_TYPE_URL = 58,
SENDER_NOT_AUTHORIZED = 59,
PROTOCOL_NOT_RUNNING = 60,
PROTOCOL_NOT_PAUSED = 61,
PROTOCOL_NOT_ACTIVATED = 62,
INVALID_DEACTIVATION = 63,
SENDER_WITHDRAW_ITEMS_FULL = 64,
WITHDRAW_ITEM_MISSING = 65,
INVALID_WITHDRAW_TX = 66,
INVALID_CHAIN_TYPE = 67,
INVALID_TIME = 68,
INVALID_SUBSCRIBE = 69,
INVALID_DID_TYPE = 70,
INVALID_CANDIDATE_STATE = 71,
VALIDATOR_NOT_FOUND = 72,
VALIDATOR_NOT_CHANGED = 73,
FORBIDDEN = 403,
INTERNAL = 500,
TIMEOUT = 504,
}
export enum KeyType {
export enum KeyType {
ED25519 = 0,
SECP256K1 = 1,
}
SECP256K1 = 1,
}
export enum HashType {
export enum HashType {
KECCAK = 0,
SHA3 = 1,
SHA2 = 2,
KECCAK_384 = 6,
SHA3_384 = 7,
KECCAK_512 = 13,
SHA3_512 = 14,
}
SHA3 = 1,
SHA2 = 2,
KECCAK_384 = 6,
SHA3_384 = 7,
KECCAK_512 = 13,
SHA3_512 = 14,
}
export enum EncodingType {
export enum EncodingType {
BASE16 = 0,
BASE58 = 1,
}
BASE58 = 1,
}
export enum RoleType {
export enum 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,
ROLE_GROUP = 9,
ROLE_TX = 10,
ROLE_ANY = 63,
}
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,
ROLE_GROUP = 9,
ROLE_TX = 10,
ROLE_ANY = 63,
}
export enum UpgradeType {
export enum UpgradeType {
CONFIG_APP = 0,
CONFIG_FORGE = 1,
CONFIG_DFS = 2,
CONFIG_CONSENSUS = 3,
CONFIG_P2P = 4,
EXE_APP = 10,
EXE_FORGE = 11,
EXE_DFS = 12,
EXE_CONSENSUS = 13,
EXE_P2P = 14,
}
CONFIG_FORGE = 1,
CONFIG_DFS = 2,
CONFIG_CONSENSUS = 3,
CONFIG_P2P = 4,
EXE_APP = 10,
EXE_FORGE = 11,
EXE_DFS = 12,
EXE_CONSENSUS = 13,
EXE_P2P = 14,
}
export enum UpgradeAction {
export enum UpgradeAction {
VERIFY = 0,
BACKUP = 1,
REPLACE = 2,
RESTART_APP = 10,
RESTART_DFS = 11,
RESTART_CONSENSUS = 12,
RESTART_P2P = 13,
RESTART_FORGE = 14,
ROLLBACK_IF_FAIL = 30,
RESTART_ALL_IF_FAIL = 31,
CRASH_IF_FAIL = 33,
DROP_ADDRESS_BOOK = 50,
}
BACKUP = 1,
REPLACE = 2,
RESTART_APP = 10,
RESTART_DFS = 11,
RESTART_CONSENSUS = 12,
RESTART_P2P = 13,
RESTART_FORGE = 14,
ROLLBACK_IF_FAIL = 30,
RESTART_ALL_IF_FAIL = 31,
CRASH_IF_FAIL = 33,
DROP_ADDRESS_BOOK = 50,
}
export enum StateType {
export enum StateType {
STATE_ACCOUNT = 0,
STATE_ASSET = 1,
STATE_CHANNEL = 2,
STATE_FORGE = 3,
STATE_STAKE = 4,
}
STATE_ASSET = 1,
STATE_CHANNEL = 2,
STATE_FORGE = 3,
STATE_STAKE = 4,
}
export enum StakeType {
export enum StakeType {
STAKE_NODE = 0,
STAKE_USER = 1,
STAKE_ASSET = 2,
STAKE_CHAIN = 3,
}
STAKE_USER = 1,
STAKE_ASSET = 2,
STAKE_CHAIN = 3,
}
export enum ProtocolStatus {
export enum ProtocolStatus {
RUNNING = 0,
PAUSED = 1,
TERMINATED = 2,
}
PAUSED = 1,
TERMINATED = 2,
}
export enum Direction {
export enum Direction {
MUTUAL = 0,
ONE_WAY = 1,
UNION = 2,
}
ONE_WAY = 1,
UNION = 2,
}
export enum Validity {
export enum Validity {
BOTH = 0,
VALID = 1,
INVALID = 2,
}
VALID = 1,
INVALID = 2,
}
export enum SupportedTxs {
export enum SupportedTxs {
0 = AccountMigrateTx,
1 = AcquireAssetTx,
2 = ApproveWithdrawTx,
3 = ConsumeAssetTx,
4 = CreateAssetTx,
5 = DeclareTx,
6 = DelegateTx,
7 = DeployProtocolTx,
8 = DepositTokenTx,
9 = ExchangeTx,
10 = PokeTx,
11 = RefuelTx,
12 = RetrieveSwapTx,
13 = RevokeDelegateTx,
14 = RevokeSwapTx,
15 = RevokeWithdrawTx,
16 = SetupSwapTx,
17 = TransferTx,
18 = UpdateAssetTx,
19 = UpdateConsensusParamsTx,
20 = UpdateValidatorTx,
21 = UpgradeNodeTx,
22 = WithdrawTokenTx,
}
1 = AcquireAssetTx,
2 = ActivateProtocolTx,
3 = ApproveWithdrawTx,
4 = ConsumeAssetTx,
5 = CreateAssetTx,
6 = DeactivateProtocolTx,
7 = DeclareTx,
8 = DelegateTx,
9 = DeployProtocolTx,
10 = DepositTokenTx,
11 = ExchangeTx,
12 = PokeTx,
13 = RefuelTx,
14 = RetrieveSwapTx,
15 = RevokeDelegateTx,
16 = RevokeSwapTx,
17 = RevokeWithdrawTx,
18 = SetupSwapTx,
19 = TransferTx,
20 = UpdateAssetTx,
21 = UpdateConsensusParamsTx,
22 = UpdateValidatorTx,
23 = UpgradeNodeTx,
24 = WithdrawTokenTx,
}
export enum SupportedStakes {
}
export enum SupportedStakes {}
export interface main {
StatusCode: typeof Enums.StatusCode;
KeyType: typeof Enums.KeyType;
HashType: typeof Enums.HashType;
EncodingType: typeof Enums.EncodingType;
RoleType: typeof Enums.RoleType;
UpgradeType: typeof Enums.UpgradeType;
UpgradeAction: typeof Enums.UpgradeAction;
StateType: typeof Enums.StateType;
StakeType: typeof Enums.StakeType;
ProtocolStatus: typeof Enums.ProtocolStatus;
Direction: typeof Enums.Direction;
Validity: typeof Enums.Validity;
SupportedTxs: typeof Enums.SupportedTxs;
SupportedStakes: typeof Enums.SupportedStakes;
export interface main {
StatusCode: typeof Enums.StatusCode;
KeyType: typeof Enums.KeyType;
HashType: typeof Enums.HashType;
EncodingType: typeof Enums.EncodingType;
RoleType: typeof Enums.RoleType;
UpgradeType: typeof Enums.UpgradeType;
UpgradeAction: typeof Enums.UpgradeAction;
StateType: typeof Enums.StateType;
StakeType: typeof Enums.StakeType;
ProtocolStatus: typeof Enums.ProtocolStatus;
Direction: typeof Enums.Direction;
Validity: typeof Enums.Validity;
SupportedTxs: typeof Enums.SupportedTxs;
SupportedStakes: typeof Enums.SupportedStakes;
}
}
}
declare namespace Messages {
export enum StatusCode {
export enum StatusCode {
0 = OK,
1 = INVALID_NONCE,
2 = INVALID_SIGNATURE,
3 = INVALID_SENDER_STATE,
4 = INVALID_RECEIVER_STATE,
5 = INSUFFICIENT_DATA,
6 = INSUFFICIENT_FUND,
7 = INVALID_OWNER,
8 = INVALID_TX,
9 = UNSUPPORTED_TX,
10 = EXPIRED_TX,
11 = TOO_MANY_TXS,
12 = INVALID_LOCK_STATUS,
13 = INVALID_REQUEST,
16 = INVALID_MONIKER,
17 = INVALID_PASSPHRASE,
20 = INVALID_MULTISIG,
21 = INVALID_WALLET,
22 = INVALID_CHAIN_ID,
24 = CONSENSUS_RPC_ERROR,
25 = STORAGE_RPC_ERROR,
26 = NOENT,
27 = ACCOUNT_MIGRATED,
28 = RPC_CONNECTION_ERROR,
30 = UNSUPPORTED_STAKE,
31 = INSUFFICIENT_STAKE,
32 = INVALID_STAKE_STATE,
33 = EXPIRED_WALLET_TOKEN,
34 = BANNED_UNSTAKE,
35 = INVALID_ASSET,
36 = INVALID_TX_SIZE,
37 = INVALID_SIGNER_STATE,
38 = INVALID_FORGE_STATE,
39 = EXPIRED_ASSET,
40 = UNTRANSFERRABLE_ASSET,
41 = READONLY_ASSET,
42 = CONSUMED_ASSET,
43 = INVALID_DEPOSIT_VALUE,
44 = EXCEED_DEPOSIT_CAP,
45 = INVALID_DEPOSIT_TARGET,
46 = INVALID_DEPOSITOR,
47 = INVALID_WITHDRAWER,
49 = INVALID_EXPIRY_DATE,
50 = INVALID_DEPOSIT,
51 = INVALID_CUSTODIAN,
52 = INSUFFICIENT_GAS,
53 = INVALID_SWAP,
54 = INVALID_HASHKEY,
55 = INVALID_DELEGATION,
56 = INSUFFICIENT_DELEGATION,
57 = INVALID_DELEGATION_RULE,
58 = INVALID_DELEGATION_TYPE_URL,
59 = SENDER_NOT_AUTHORIZED,
60 = PROTOCOL_NOT_RUNNING,
61 = PROTOCOL_NOT_PAUSED,
62 = PROTOCOL_NOT_ACTIVATED,
63 = INVALID_DEACTIVATION,
64 = SENDER_WITHDRAW_ITEMS_FULL,
65 = WITHDRAW_ITEM_MISSING,
66 = INVALID_WITHDRAW_TX,
67 = INVALID_CHAIN_TYPE,
68 = INVALID_TIME,
69 = INVALID_SUBSCRIBE,
70 = INVALID_DID_TYPE,
71 = INVALID_CANDIDATE_STATE,
72 = VALIDATOR_NOT_FOUND,
73 = VALIDATOR_NOT_CHANGED,
403 = FORBIDDEN,
500 = INTERNAL,
504 = TIMEOUT,
}
1 = INVALID_NONCE,
2 = INVALID_SIGNATURE,
3 = INVALID_SENDER_STATE,
4 = INVALID_RECEIVER_STATE,
5 = INSUFFICIENT_DATA,
6 = INSUFFICIENT_FUND,
7 = INVALID_OWNER,
8 = INVALID_TX,
9 = UNSUPPORTED_TX,
10 = EXPIRED_TX,
11 = TOO_MANY_TXS,
12 = INVALID_LOCK_STATUS,
13 = INVALID_REQUEST,
16 = INVALID_MONIKER,
17 = INVALID_PASSPHRASE,
20 = INVALID_MULTISIG,
21 = INVALID_WALLET,
22 = INVALID_CHAIN_ID,
24 = CONSENSUS_RPC_ERROR,
25 = STORAGE_RPC_ERROR,
26 = NOENT,
27 = ACCOUNT_MIGRATED,
28 = RPC_CONNECTION_ERROR,
30 = UNSUPPORTED_STAKE,
31 = INSUFFICIENT_STAKE,
32 = INVALID_STAKE_STATE,
33 = EXPIRED_WALLET_TOKEN,
34 = BANNED_UNSTAKE,
35 = INVALID_ASSET,
36 = INVALID_TX_SIZE,
37 = INVALID_SIGNER_STATE,
38 = INVALID_FORGE_STATE,
39 = EXPIRED_ASSET,
40 = UNTRANSFERRABLE_ASSET,
41 = READONLY_ASSET,
42 = CONSUMED_ASSET,
43 = INVALID_DEPOSIT_VALUE,
44 = EXCEED_DEPOSIT_CAP,
45 = INVALID_DEPOSIT_TARGET,
46 = INVALID_DEPOSITOR,
47 = INVALID_WITHDRAWER,
49 = INVALID_EXPIRY_DATE,
50 = INVALID_DEPOSIT,
51 = INVALID_CUSTODIAN,
52 = INSUFFICIENT_GAS,
53 = INVALID_SWAP,
54 = INVALID_HASHKEY,
55 = INVALID_DELEGATION,
56 = INSUFFICIENT_DELEGATION,
57 = INVALID_DELEGATION_RULE,
58 = INVALID_DELEGATION_TYPE_URL,
59 = SENDER_NOT_AUTHORIZED,
60 = PROTOCOL_NOT_RUNNING,
61 = PROTOCOL_NOT_PAUSED,
62 = PROTOCOL_NOT_ACTIVATED,
63 = INVALID_DEACTIVATION,
64 = SENDER_WITHDRAW_ITEMS_FULL,
65 = WITHDRAW_ITEM_MISSING,
66 = INVALID_WITHDRAW_TX,
67 = INVALID_CHAIN_TYPE,
68 = INVALID_TIME,
69 = INVALID_SUBSCRIBE,
70 = INVALID_DID_TYPE,
71 = INVALID_CANDIDATE_STATE,
72 = VALIDATOR_NOT_FOUND,
73 = VALIDATOR_NOT_CHANGED,
403 = FORBIDDEN,
500 = INTERNAL,
504 = TIMEOUT,
}
export enum KeyType {
export enum KeyType {
0 = ED25519,
1 = SECP256K1,
}
1 = SECP256K1,
}
export enum HashType {
export enum HashType {
0 = KECCAK,
1 = SHA3,
2 = SHA2,
6 = KECCAK_384,
7 = SHA3_384,
13 = KECCAK_512,
14 = SHA3_512,
}
1 = SHA3,
2 = SHA2,
6 = KECCAK_384,
7 = SHA3_384,
13 = KECCAK_512,
14 = SHA3_512,
}
export enum EncodingType {
export enum EncodingType {
0 = BASE16,
1 = BASE58,
}
1 = BASE58,
}
export enum RoleType {
export enum RoleType {
0 = ROLE_ACCOUNT,
1 = ROLE_NODE,
2 = ROLE_DEVICE,
3 = ROLE_APPLICATION,
4 = ROLE_SMART_CONTRACT,
5 = ROLE_BOT,
6 = ROLE_ASSET,
7 = ROLE_STAKE,
8 = ROLE_VALIDATOR,
9 = ROLE_GROUP,
10 = ROLE_TX,
63 = ROLE_ANY,
}
1 = ROLE_NODE,
2 = ROLE_DEVICE,
3 = ROLE_APPLICATION,
4 = ROLE_SMART_CONTRACT,
5 = ROLE_BOT,
6 = ROLE_ASSET,
7 = ROLE_STAKE,
8 = ROLE_VALIDATOR,
9 = ROLE_GROUP,
10 = ROLE_TX,
63 = ROLE_ANY,
}
export enum UpgradeType {
export enum UpgradeType {
0 = CONFIG_APP,
1 = CONFIG_FORGE,
2 = CONFIG_DFS,
3 = CONFIG_CONSENSUS,
4 = CONFIG_P2P,
10 = EXE_APP,
11 = EXE_FORGE,
12 = EXE_DFS,
13 = EXE_CONSENSUS,
14 = EXE_P2P,
}
1 = CONFIG_FORGE,
2 = CONFIG_DFS,
3 = CONFIG_CONSENSUS,
4 = CONFIG_P2P,
10 = EXE_APP,
11 = EXE_FORGE,
12 = EXE_DFS,
13 = EXE_CONSENSUS,
14 = EXE_P2P,
}
export enum UpgradeAction {
export enum UpgradeAction {
0 = VERIFY,
1 = BACKUP,
2 = REPLACE,
10 = RESTART_APP,
11 = RESTART_DFS,
12 = RESTART_CONSENSUS,
13 = RESTART_P2P,
14 = RESTART_FORGE,
30 = ROLLBACK_IF_FAIL,
31 = RESTART_ALL_IF_FAIL,
33 = CRASH_IF_FAIL,
50 = DROP_ADDRESS_BOOK,
}
1 = BACKUP,
2 = REPLACE,
10 = RESTART_APP,
11 = RESTART_DFS,
12 = RESTART_CONSENSUS,
13 = RESTART_P2P,
14 = RESTART_FORGE,
30 = ROLLBACK_IF_FAIL,
31 = RESTART_ALL_IF_FAIL,
33 = CRASH_IF_FAIL,
50 = DROP_ADDRESS_BOOK,
}
export enum StateType {
export enum StateType {
0 = STATE_ACCOUNT,
1 = STATE_ASSET,
2 = STATE_CHANNEL,
3 = STATE_FORGE,
4 = STATE_STAKE,
}
1 = STATE_ASSET,
2 = STATE_CHANNEL,
3 = STATE_FORGE,
4 = STATE_STAKE,
}
export enum StakeType {
export enum StakeType {
0 = STAKE_NODE,
1 = STAKE_USER,
2 = STAKE_ASSET,
3 = STAKE_CHAIN,
}
1 = STAKE_USER,
2 = STAKE_ASSET,
3 = STAKE_CHAIN,
}
export enum ProtocolStatus {
export enum ProtocolStatus {
0 = RUNNING,
1 = PAUSED,
2 = TERMINATED,
}
1 = PAUSED,
2 = TERMINATED,
}
export enum Direction {
export enum Direction {
0 = MUTUAL,
1 = ONE_WAY,
2 = UNION,
}
1 = ONE_WAY,
2 = UNION,
}
export enum Validity {
export enum Validity {
0 = BOTH,
1 = VALID,
2 = INVALID,
}
1 = VALID,
2 = INVALID,
}
export interface main {
StatusCode: typeof Messages.StatusCode;
KeyType: typeof Messages.KeyType;
HashType: typeof Messages.HashType;
EncodingType: typeof Messages.EncodingType;
RoleType: typeof Messages.RoleType;
UpgradeType: typeof Messages.UpgradeType;
UpgradeAction: typeof Messages.UpgradeAction;
StateType: typeof Messages.StateType;
StakeType: typeof Messages.StakeType;
ProtocolStatus: typeof Messages.ProtocolStatus;
Direction: typeof Messages.Direction;
Validity: typeof Messages.Validity;
export interface main {
StatusCode: typeof Messages.StatusCode;
KeyType: typeof Messages.KeyType;
HashType: typeof Messages.HashType;
EncodingType: typeof Messages.EncodingType;
RoleType: typeof Messages.RoleType;
UpgradeType: typeof Messages.UpgradeType;
UpgradeAction: typeof Messages.UpgradeAction;
StateType: typeof Messages.StateType;
StakeType: typeof Messages.StakeType;
ProtocolStatus: typeof Messages.ProtocolStatus;
Direction: typeof Messages.Direction;
Validity: typeof Messages.Validity;
}
}
}

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

// source: enum.proto
/**

@@ -97,3 +98,3 @@ * @fileoverview

INTERNAL: 500,
TIMEOUT: 504
TIMEOUT: 504,
};

@@ -106,3 +107,3 @@

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

@@ -120,3 +121,3 @@

KECCAK_512: 13,
SHA3_512: 14
SHA3_512: 14,
};

@@ -129,3 +130,3 @@

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

@@ -148,3 +149,3 @@

ROLE_TX: 10,
ROLE_ANY: 63
ROLE_ANY: 63,
};

@@ -165,3 +166,3 @@

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

@@ -184,3 +185,3 @@

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

@@ -196,3 +197,3 @@

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

@@ -207,3 +208,3 @@

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

@@ -217,7 +218,5 @@

PAUSED: 1,
TERMINATED: 2
TERMINATED: 2,
};
goog.object.extend(exports, proto.forge_abi);
module.exports = proto.forge_abi;
// GENERATED CODE -- DO NOT EDIT!
'use strict';
var grpc = require('grpc');
var grpc = require('@grpc/grpc-js');
var rpc_pb = require('./rpc_pb.js');

@@ -667,3 +667,2 @@

// forge RPC definition

@@ -676,5 +675,5 @@ //

//
var ChainRpcService = exports.ChainRpcService = {
var ChainRpcService = (exports.ChainRpcService = {
// tx related
send_tx: {
send_tx: {
path: '/forge_abi.ChainRpc/send_tx',

@@ -735,3 +734,3 @@ requestStream: false,

// utility
get_chain_info: {
get_chain_info: {
path: '/forge_abi.ChainRpc/get_chain_info',

@@ -802,6 +801,6 @@ requestStream: false,

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

@@ -829,7 +828,6 @@ path: '/forge_abi.EventRpc/subscribe',

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

@@ -841,5 +839,5 @@ exports.FileRpcClient = grpc.makeGenericClientConstructor(FileRpcService);

// rpc pin_file(RequestPinFile) returns (ResponsePinFile);
var StateRpcService = exports.StateRpcService = {
var StateRpcService = (exports.StateRpcService = {
// state related
get_account_state: {
get_account_state: {
path: '/forge_abi.StateRpc/get_account_state',

@@ -878,6 +876,6 @@ requestStream: true,

// rpc get_protocol_state(stream RequestGetProtocolState) returns (stream
// ResponseGetProtocolState);
// rpc get_stake_state(stream RequestGetStakeState)
// returns (stream ResponseGetStakeState);
get_swap_state: {
// ResponseGetProtocolState);
// rpc get_stake_state(stream RequestGetStakeState)
// returns (stream ResponseGetStakeState);
get_swap_state: {
path: '/forge_abi.StateRpc/get_swap_state',

@@ -904,8 +902,8 @@ requestStream: true,

},
};
});
exports.StateRpcClient = grpc.makeGenericClientConstructor(StateRpcService);
var WalletRpcService = exports.WalletRpcService = {
var WalletRpcService = (exports.WalletRpcService = {
// wallet related
declare_node: {
declare_node: {
path: '/forge_abi.WalletRpc/declare_node',

@@ -921,6 +919,6 @@ requestStream: false,

},
};
});
exports.WalletRpcClient = grpc.makeGenericClientConstructor(WalletRpcService);
var StatsRpcService = exports.StatsRpcService = {
var StatsRpcService = (exports.StatsRpcService = {
get_forge_stats: {

@@ -1047,4 +1045,4 @@ path: '/forge_abi.StatsRpc/get_forge_stats',

},
};
});
exports.StatsRpcClient = grpc.makeGenericClientConstructor(StatsRpcService);
{
"name": "@arcblock/forge-proto",
"description": "Static modules generated from forge-sdk protobuf files",
"version": "1.2.0",
"version": "1.3.0",
"author": {

@@ -63,6 +63,7 @@ "name": "wangshijun",

"dependencies": {
"@grpc/grpc-js": "^1.0.5",
"debug": "^4.1.1",
"lodash": "^4.17.15"
},
"gitHead": "74974a6d5061e09433abe930ee7d40ac966ab4c0"
"gitHead": "33ea6780d6954906689154892f780bd48f3dc98e"
}

@@ -1,4 +0,3 @@

// Auto generated code (2020-03-25T23:21:59.704Z), DO NOT EDIT
// Auto generated code (2020-06-12T22:20:55.081Z), DO NOT EDIT
const rpcPb = require('./lib/rpc_pb.js');
const servicePb = require('./lib/service_pb.js');
const statePb = require('./lib/state_pb.js');

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

const forgeTypes = Object.assign({}, rpcPb, servicePb, statePb, enumPb, traceTypePb, txPb, typePb);
const forgeTypes = Object.assign({}, rpcPb, statePb, enumPb, traceTypePb, txPb, typePb);
const forgeServices = Object.assign({}, serviceGrpcPb);

@@ -16,0 +14,0 @@ const vendorTypes = Object.assign({}, vendorPb);

@@ -1,5 +0,4 @@

// Auto generated code (2020-03-25T23:21:59.921Z), DO NOT EDIT
// Auto generated code (2020-06-12T22:20:55.270Z), DO NOT EDIT
const enumPb = require('./lib/enum_pb.js');
const rpcPb = require('./lib/rpc_pb.js');
const servicePb = require('./lib/service_pb.js');
const statePb = require('./lib/state_pb.js');

@@ -12,4 +11,3 @@ const traceTypePb = require('./lib/trace_type_pb.js');

const forgeTypes = Object.assign({}, enumPb, rpcPb, servicePb, statePb, traceTypePb, txPb, typePb);
const forgeTypes = Object.assign({}, enumPb, rpcPb, statePb, traceTypePb, txPb, typePb);
const forgeServices = {};

@@ -16,0 +14,0 @@ const vendorTypes = Object.assign({}, vendorPb);

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