@arcblock/forge-proto
Advanced tools
Comparing version 0.34.0 to 0.35.0
@@ -59,2 +59,11 @@ // Generate by [js2dts@0.3.3](https://github.com/whxaxes/js2dts#readme) | ||
TIMEOUT = 504, | ||
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, | ||
} | ||
@@ -188,19 +197,22 @@ | ||
4 = AcquireAssetTx, | ||
5 = ApproveTetherTx, | ||
6 = ConsumeAssetTx, | ||
7 = CreateAssetTx, | ||
8 = DeclareTx, | ||
9 = DepositTetherTx, | ||
10 = ExchangeTetherTx, | ||
11 = ExchangeTx, | ||
12 = PokeTx, | ||
13 = RetrieveSwapTx, | ||
14 = RevokeSwapTx, | ||
15 = RevokeTetherTx, | ||
16 = SetupSwapTx, | ||
17 = StakeTx, | ||
18 = TransferTx, | ||
19 = UpdateAssetTx, | ||
20 = UpgradeNodeTx, | ||
21 = WithdrawTetherTx, | ||
5 = ActivateProtocolTx, | ||
6 = ApproveTetherTx, | ||
7 = ConsumeAssetTx, | ||
8 = CreateAssetTx, | ||
9 = DeactivateProtocolTx, | ||
10 = DeclareTx, | ||
11 = DelegateTx, | ||
12 = DepositTetherTx, | ||
13 = ExchangeTetherTx, | ||
14 = ExchangeTx, | ||
15 = PokeTx, | ||
16 = RetrieveSwapTx, | ||
17 = RevokeSwapTx, | ||
18 = RevokeTetherTx, | ||
19 = SetupSwapTx, | ||
20 = StakeTx, | ||
21 = TransferTx, | ||
22 = UpdateAssetTx, | ||
23 = UpgradeNodeTx, | ||
24 = WithdrawTetherTx, | ||
} | ||
@@ -283,2 +295,11 @@ | ||
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, | ||
403 = FORBIDDEN, | ||
@@ -285,0 +306,0 @@ 500 = INTERNAL, |
@@ -22,3 +22,2 @@ /** | ||
goog.exportSymbol('proto.forge_abi.StatusCode', null, global); | ||
goog.exportSymbol('proto.forge_abi.TopicType', null, global); | ||
goog.exportSymbol('proto.forge_abi.UpgradeAction', null, global); | ||
@@ -78,2 +77,11 @@ goog.exportSymbol('proto.forge_abi.UpgradeType', null, global); | ||
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, | ||
FORBIDDEN: 403, | ||
@@ -87,28 +95,2 @@ INTERNAL: 500, | ||
*/ | ||
proto.forge_abi.TopicType = { | ||
TRANSFER: 0, | ||
EXCHANGE: 1, | ||
DECLARE: 2, | ||
CREATE_ASSET: 3, | ||
UPDATE_ASSET: 4, | ||
STAKE: 5, | ||
ACCOUNT_MIGRATE: 6, | ||
BEGIN_BLOCK: 16, | ||
END_BLOCK: 17, | ||
CONSENSUS_UPGRADE: 21, | ||
DECLARE_FILE: 22, | ||
SYS_UPGRADE: 23, | ||
APPLICATION: 24, | ||
CONSUME_ASSET: 25, | ||
POKE: 26, | ||
ACCOUNT_STATE: 129, | ||
ASSET_STATE: 130, | ||
FORGE_STATE: 131, | ||
STAKE_STATE: 132, | ||
PROTOCOL_STATE: 133, | ||
}; | ||
/** | ||
* @enum {number} | ||
*/ | ||
proto.forge_abi.KeyType = { | ||
@@ -115,0 +97,0 @@ ED25519: 0, |
@@ -106,2 +106,13 @@ // GENERATED CODE -- DO NOT EDIT! | ||
function serialize_forge_abi_RequestGetDelegateState(arg) { | ||
if (!(arg instanceof rpc_pb.RequestGetDelegateState)) { | ||
throw new Error('Expected argument of type forge_abi.RequestGetDelegateState'); | ||
} | ||
return Buffer.from(arg.serializeBinary()); | ||
} | ||
function deserialize_forge_abi_RequestGetDelegateState(buffer_arg) { | ||
return rpc_pb.RequestGetDelegateState.deserializeBinary(new Uint8Array(buffer_arg)); | ||
} | ||
function serialize_forge_abi_RequestGetForgeState(arg) { | ||
@@ -569,2 +580,13 @@ if (!(arg instanceof rpc_pb.RequestGetForgeState)) { | ||
function serialize_forge_abi_ResponseGetDelegateState(arg) { | ||
if (!(arg instanceof rpc_pb.ResponseGetDelegateState)) { | ||
throw new Error('Expected argument of type forge_abi.ResponseGetDelegateState'); | ||
} | ||
return Buffer.from(arg.serializeBinary()); | ||
} | ||
function deserialize_forge_abi_ResponseGetDelegateState(buffer_arg) { | ||
return rpc_pb.ResponseGetDelegateState.deserializeBinary(new Uint8Array(buffer_arg)); | ||
} | ||
function serialize_forge_abi_ResponseGetForgeState(arg) { | ||
@@ -1232,2 +1254,13 @@ if (!(arg instanceof rpc_pb.ResponseGetForgeState)) { | ||
}, | ||
get_delegate_state: { | ||
path: '/forge_abi.StateRpc/get_delegate_state', | ||
requestStream: true, | ||
responseStream: true, | ||
requestType: rpc_pb.RequestGetDelegateState, | ||
responseType: rpc_pb.ResponseGetDelegateState, | ||
requestSerialize: serialize_forge_abi_RequestGetDelegateState, | ||
requestDeserialize: deserialize_forge_abi_RequestGetDelegateState, | ||
responseSerialize: serialize_forge_abi_ResponseGetDelegateState, | ||
responseDeserialize: deserialize_forge_abi_ResponseGetDelegateState, | ||
}, | ||
}); | ||
@@ -1234,0 +1267,0 @@ |
@@ -107,2 +107,3 @@ { | ||
"invalid_custodian": "The custodian does not exist on the chain.", | ||
"invalid_delegation": "The delegation parameters are invalid.", | ||
"forbidden": "Operation is not permitted with current authorization.", | ||
@@ -109,0 +110,0 @@ "internal": "Internal error occurred - mainly a server implementation issue.", |
{ | ||
"name": "@arcblock/forge-proto", | ||
"description": "Static modules generated from forge-sdk protobuf files", | ||
"version": "0.34.0", | ||
"version": "0.35.0", | ||
"author": { | ||
@@ -68,3 +68,3 @@ "name": "wangshijun", | ||
}, | ||
"gitHead": "e2b48a5c0a28d6b9b2f2948935319365bbcf7dba" | ||
"gitHead": "57a6fb9db075c208775443657fa78c12cfcafc0e" | ||
} |
@@ -1,2 +0,2 @@ | ||
// Auto generated code (2019-07-08T09:57:40.876Z), DO NOT EDIT | ||
// Auto generated code (2019-08-03T22:42:16.938Z), DO NOT EDIT | ||
const enumPb = require('./lib/enum_pb.js'); | ||
@@ -11,6 +11,9 @@ const rpcPb = require('./lib/rpc_pb.js'); | ||
const acquireAssetTxPb = require('./lib/acquire_asset_tx_pb.js'); | ||
const activateProtocolTxPb = require('./lib/activate_protocol_tx_pb.js'); | ||
const approveTetherTxPb = require('./lib/approve_tether_tx_pb.js'); | ||
const consumeAssetTxPb = require('./lib/consume_asset_tx_pb.js'); | ||
const createAssetTxPb = require('./lib/create_asset_tx_pb.js'); | ||
const deactivateProtocolTxPb = require('./lib/deactivate_protocol_tx_pb.js'); | ||
const declareTxPb = require('./lib/declare_tx_pb.js'); | ||
const delegateTxPb = require('./lib/delegate_tx_pb.js'); | ||
const deployProtocolTxPb = require('./lib/deploy_protocol_tx_pb.js'); | ||
@@ -44,6 +47,9 @@ const depositTetherTxPb = require('./lib/deposit_tether_tx_pb.js'); | ||
acquireAssetTxPb, | ||
activateProtocolTxPb, | ||
approveTetherTxPb, | ||
consumeAssetTxPb, | ||
createAssetTxPb, | ||
deactivateProtocolTxPb, | ||
declareTxPb, | ||
delegateTxPb, | ||
deployProtocolTxPb, | ||
@@ -50,0 +56,0 @@ depositTetherTxPb, |
@@ -1,2 +0,2 @@ | ||
// Auto generated code (2019-07-08T09:57:41.055Z), DO NOT EDIT | ||
// Auto generated code (2019-08-03T22:42:17.104Z), DO NOT EDIT | ||
const enumPb = require('./lib/enum_pb.js'); | ||
@@ -6,6 +6,9 @@ const typePb = require('./lib/type_pb.js'); | ||
const acquireAssetTxPb = require('./lib/acquire_asset_tx_pb.js'); | ||
const activateProtocolTxPb = require('./lib/activate_protocol_tx_pb.js'); | ||
const approveTetherTxPb = require('./lib/approve_tether_tx_pb.js'); | ||
const consumeAssetTxPb = require('./lib/consume_asset_tx_pb.js'); | ||
const createAssetTxPb = require('./lib/create_asset_tx_pb.js'); | ||
const deactivateProtocolTxPb = require('./lib/deactivate_protocol_tx_pb.js'); | ||
const declareTxPb = require('./lib/declare_tx_pb.js'); | ||
const delegateTxPb = require('./lib/delegate_tx_pb.js'); | ||
const deployProtocolTxPb = require('./lib/deploy_protocol_tx_pb.js'); | ||
@@ -34,6 +37,9 @@ const depositTetherTxPb = require('./lib/deposit_tether_tx_pb.js'); | ||
acquireAssetTxPb, | ||
activateProtocolTxPb, | ||
approveTetherTxPb, | ||
consumeAssetTxPb, | ||
createAssetTxPb, | ||
deactivateProtocolTxPb, | ||
declareTxPb, | ||
delegateTxPb, | ||
deployProtocolTxPb, | ||
@@ -40,0 +46,0 @@ depositTetherTxPb, |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1969021
44
57048
31