@arcblock/forge-proto
Advanced tools
Comparing version 1.0.32 to 1.0.33
710
index.d.ts
@@ -7,408 +7,412 @@ // 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, | ||
DUPLICATE_TETHER = 48, | ||
} | ||
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, | ||
DUPLICATE_TETHER = 48, | ||
} | ||
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_TETHER = 11, | ||
} | ||
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_TETHER = 11, | ||
} | ||
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 = ConsensusUpgradeTx, | ||
1 = DeployProtocolTx, | ||
2 = SysUpgradeTx, | ||
3 = WithdrawTokenTx, | ||
4 = TransferTx, | ||
5 = AccountMigrateTx, | ||
6 = DeclareTx, | ||
7 = RevokeDelegateTx, | ||
8 = DeactivateProtocolTx, | ||
9 = RevokeWithdrawTx, | ||
10 = CreateAssetTx, | ||
11 = RetrieveSwapTx, | ||
12 = ConsumeAssetTx, | ||
13 = PokeTx, | ||
14 = UpdateAssetTx, | ||
15 = ExchangeTx, | ||
16 = UpdateConsensusParamsTx, | ||
17 = RevokeSwapTx, | ||
18 = ActivateProtocolTx, | ||
19 = ApproveWithdrawTx, | ||
20 = UpgradeNodeTx, | ||
21 = UpdateValidatorTx, | ||
22 = AcquireAssetTx, | ||
23 = DelegateTx, | ||
24 = DepositTokenTx, | ||
25 = SetupSwapTx, | ||
26 = RefuelTx, | ||
} | ||
1 = DeployProtocolTx, | ||
2 = SysUpgradeTx, | ||
3 = WithdrawTokenTx, | ||
4 = TransferTx, | ||
5 = AccountMigrateTx, | ||
6 = DeclareTx, | ||
7 = RevokeDelegateTx, | ||
8 = DeactivateProtocolTx, | ||
9 = RevokeWithdrawTx, | ||
10 = CreateAssetTx, | ||
11 = RetrieveSwapTx, | ||
12 = ConsumeAssetTx, | ||
13 = PokeTx, | ||
14 = UpdateAssetTx, | ||
15 = ExchangeTx, | ||
16 = UpdateConsensusParamsTx, | ||
17 = RevokeSwapTx, | ||
18 = ActivateProtocolTx, | ||
19 = ApproveWithdrawTx, | ||
20 = UpgradeNodeTx, | ||
21 = UpdateValidatorTx, | ||
22 = AcquireAssetTx, | ||
23 = DelegateTx, | ||
24 = DepositTokenTx, | ||
25 = SetupSwapTx, | ||
26 = RefuelTx, | ||
} | ||
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, | ||
48 = DUPLICATE_TETHER, | ||
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, | ||
48 = DUPLICATE_TETHER, | ||
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, | ||
11 = ROLE_TETHER, | ||
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, | ||
11 = ROLE_TETHER, | ||
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; | ||
} | ||
} |
{ | ||
"name": "@arcblock/forge-proto", | ||
"description": "Static modules generated from forge-sdk protobuf files", | ||
"version": "1.0.32", | ||
"version": "1.0.33", | ||
"author": { | ||
@@ -66,3 +66,3 @@ "name": "wangshijun", | ||
}, | ||
"gitHead": "f3630a05a41e53b76488f343a9c6b4f4864c2d31" | ||
"gitHead": "52680b5630465c937b6a133503597fb7b5ef9e29" | ||
} |
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
1829076