@ocap/proto 1.6.5 → 1.6.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/lib/gen/enum_pb.js +21 -12
- package/lib/gen/spec.json +2923 -2237
- package/lib/gen/state_pb.js +3497 -2314
- package/lib/gen/trace-type_pb.js +7768 -2352
- package/lib/gen/tx_pb.js +9361 -3718
- package/lib/gen/type_pb.js +6285 -5838
- package/lib/gen/vendor_pb.js +1827 -9499
- package/lib/index.d.ts +49 -26
- package/lib/proto.d.ts +3 -0
- package/lib/proto.js +2 -2
- package/lib/provider.d.ts +2 -0
- package/lib/provider.js +20 -5
- package/package.json +10 -12
- package/lib/gen/rpc_pb.js +0 -14224
- package/lib/gen/status-code.json +0 -117
package/lib/gen/status-code.json
DELETED
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"invalid_nonce": {
|
|
3
|
-
"default": "This transaction has been seen in the chain and is treated as a replay tx.\n",
|
|
4
|
-
"poke": "`PokeTx.nonce` must be `0`.\n",
|
|
5
|
-
"deploy_protocol": "`DeployProtocolTx.nonce` must be `0`.\n"
|
|
6
|
-
},
|
|
7
|
-
"invalid_signature": {
|
|
8
|
-
"default": "This transaction's signature or multi-signature does not match the corresponding pk.\n"
|
|
9
|
-
},
|
|
10
|
-
"invalid_sender_state": {
|
|
11
|
-
"default": "The sender of this transaction does not exist on this chain.\n",
|
|
12
|
-
"declare": "`tx.from` already exist on this chain.\n"
|
|
13
|
-
},
|
|
14
|
-
"invalid_receiver_state": {
|
|
15
|
-
"default": "The receiver of this transaction does not exist on this chain.\n",
|
|
16
|
-
"account_migrate": "Possible causes:\n1. `AccountMigrateTx.address` is not correctly calculated with `AccountMigrateTx.pk` and `AccountMigrateTx.type`\n2. `AccountMigrateTx.address` already exist on this chain.\n",
|
|
17
|
-
"consume_asset": "The `signer` included in first `tx.signatures` does not exist on this chain.\n",
|
|
18
|
-
"poke": "`PokeTx.address` is not correct or does not exist on this chain.\n",
|
|
19
|
-
"stake": "`tx.to` does not exist on this chain or `tx.to` is not a a valid DID address\n",
|
|
20
|
-
"exchange": "Either `ExchangeTx.to` or the `signer` included in first `tx.signatures` does not exist on this chain.\n",
|
|
21
|
-
"transfer": "`TransferTx.to` does not exist on this chain.\n"
|
|
22
|
-
},
|
|
23
|
-
"insufficient_data": {
|
|
24
|
-
"default": "There is some required data missing to construct this transaction properly.\n",
|
|
25
|
-
"account_migrate": "`AccountMigrateTx.pk`, `AccountMigrateTx.type`, and `AccountMigrateTx.address` can not be empty.\n",
|
|
26
|
-
"declare": "`DelcareTx.moniker` can not be empty.\n",
|
|
27
|
-
"acquire_asset": "`AcquireAssetTx.specs` can not be empty.\n",
|
|
28
|
-
"consume_asset": "`ConsumeAssetTx.issuer` and `Tx.signatures` can not be empty.\n",
|
|
29
|
-
"create_asset": "`CreateAssetTx.data` and `CreateAssetTx.address` can not be empty.\n",
|
|
30
|
-
"update_asset": "`UpdateAssetTx.data` and `UpdateAssetTx.address` can not be empty.\n",
|
|
31
|
-
"poke": "`PokeTx.date` and `PokeTx.address` can not be empty.\n",
|
|
32
|
-
"stake": "`StakeTx.to`, `StakeTx.value`, `StakeTx.data`, `StakeTx.address` can not be empty.\n",
|
|
33
|
-
"exchange": "`ExchangeTx.sender`, `ExchangeTx.receiver`, and `Tx.signatures` can not be empty.\n",
|
|
34
|
-
"transfer": "`TransferTx.to`, `TransferTx.value`/`TransferTx.asset` can not be empty.\n"
|
|
35
|
-
},
|
|
36
|
-
"insufficient_fund": {
|
|
37
|
-
"default": "There is not enough balance in participants account.\n",
|
|
38
|
-
"poke": "Poke account does not have enough balance.\n"
|
|
39
|
-
},
|
|
40
|
-
"invalid_owner": {
|
|
41
|
-
"default": "One or more of the assets included this tx do not belong to the provided owners.\n"
|
|
42
|
-
},
|
|
43
|
-
"invalid_tx": {
|
|
44
|
-
"default": "The transaction cannot pass sanity check. Possible Causes:\n 1. Anti Land Attack: Sender and receiver address should not be equal\n 2. Anti Replay Attack: This transaction has been seen in the chain and is treated as a replay tx.\n 3. decode tx: This transaction includes `type-url` that can not be decoded properly.\n 4. verify date: the transaction is expired.\n 5. verify itx size: The size of itx in this transaction exceeds max size.\n 6. verify signer: the multisig signer is invalid\n 7. verify tx size: The size of this transaction exceeds max size.\n 8. pre_pipeline extract signers: the multisig signer is invalid\n",
|
|
45
|
-
"declare": "Possible Causes:\n1. The signer in `tx.signatures` should be the same as `DeclareTx.issuer`.\n2. This chain requires a valid issuer to declare a new account.\n",
|
|
46
|
-
"acquire_asset": "Possible Causes:\n1. Asset Factory does not have enough assets left.\n2. This transaction's sender does not have enough balance.\n3. The asset addresses included in `AcquireAssetTx.specs` are not correct.\n",
|
|
47
|
-
"consume_asset": "The issuer of the asset to be consumed, should be the same as or issued by `ConsumeAsset.issuer`.\n",
|
|
48
|
-
"create_asset": "If `tx.data` contains `AssetFactory`, possible causes:\n1. `AssetFactory.description`, `AssetFactory.attributes`, `AssetFactory.price`, `AssetFactory.template`, `AssetFactory.allowed_spec_args`, `AssetFactory.asset_name` can not be empty.\n2. `AssetFactory.template` and `AssetFactory.sllowed_spec_args` should match.\n3. `AssetFactory.asset_name` should contain a deployed protobuf type.\n",
|
|
49
|
-
"update_asset": "If `tx.data` contains `AssetFactory`, 'AssetFactory.price', `AssetFactory.template`. `AssetFactory.allowed_spec_args` and `AssetFactory.asset_name` can not be empty.\n",
|
|
50
|
-
"deploy_protocol": "Possible causes:\n1. Sender should be moderator\n2. `DeployProtocolTx.address`, `DeployProtocolTx.name`, `DeployProtocolTx.namespace`, `DeployProtocolTx.code` should not be empty. The size of `DeployProtocolTx.description` should not exceed max size.\n3. `DeployProtocolTx.address` should be correctly calculated using `DeployProtocolTx`.\n4. `type_url` and the module doesn't match.\n5. the binary of the protocol is modified on purpose.\n6. Version of new protocol should be bigger than the old ones.\n",
|
|
51
|
-
"upgrade_node": "Possible causes:\n1. `tx.from` should be the same as moderator address\n2. `UpgradeNodeTx.version` should be bigger than forge version\n3. `UpgradeNodeTx.height` should be bigger than current block height.\n4. an existing upgrade_node operation is going to be carried out while the new upgrade_node tx has no `override` flag.\n",
|
|
52
|
-
"stake": "1. `StakeTx.address` should be calculated from `tx.from` and `StakeTx.to`.\n2. `StakeTx.message` should not exceed the max size.\n"
|
|
53
|
-
},
|
|
54
|
-
"unsupported_tx": "This transaction contains type_urls that are not registered on the chain.",
|
|
55
|
-
"expired_tx": "This transaction has expired.",
|
|
56
|
-
"too_many_txs": "There are too many transactions.",
|
|
57
|
-
"invalid_lock_status": "The lock status is invalid.",
|
|
58
|
-
"invalid_request": "This request is invalid.",
|
|
59
|
-
"invalid_moniker": {
|
|
60
|
-
"default": "This moniker is invalid.\n",
|
|
61
|
-
"declare": "`DeclareTx.moniker` should have at least 4 characters.\n"
|
|
62
|
-
},
|
|
63
|
-
"invalid_passphrase": {
|
|
64
|
-
"default": "This passphrase is invalid.\n"
|
|
65
|
-
},
|
|
66
|
-
"invalid_multisig": "This multisig is invalid.",
|
|
67
|
-
"invalid_wallet": "This wallet is invalid.",
|
|
68
|
-
"invalid_chain_id": "This chain_id is invalid.",
|
|
69
|
-
"consensus_rpc_error": "This transaction has already occurred on the chain before.",
|
|
70
|
-
"storage_rpc_error": "This is a storage rpc error.",
|
|
71
|
-
"noent": "Noent",
|
|
72
|
-
"account_migrated": "This account has migrated to a new one.",
|
|
73
|
-
"unsupported_stake": "This stake is not supported.",
|
|
74
|
-
"insufficient_stake": "The require stake amount should be more than minimum stake.",
|
|
75
|
-
"invalid_stake_state": "The required stake state is invalid.",
|
|
76
|
-
"expired_wallet_token": "The token included in this transaction has expired.",
|
|
77
|
-
"banned_unstake": "This unstake action is banned.",
|
|
78
|
-
"invalid_asset": {
|
|
79
|
-
"default": "The asset included in this transaction is invalid.\n",
|
|
80
|
-
"consume_asset": "The asset included in `tx.signatures.data` is not valid.\n",
|
|
81
|
-
"create_asset": "Possible causes:\n1. `CreateAssetTx.address` is not calculated correctly.\n2. `CreateAssetTx.moniker` should have at least 5 characters.\n3. Asset parent does not have a valid state.\n4. Asset already exists on the chain. This is a duplicate asset.\n",
|
|
82
|
-
"update_asset": "`UpdateAssetTx.address` is not a valid asset.\n",
|
|
83
|
-
"exchange": "`ExchangeTx.sender.assets` or `ExchangeTx.receiver.assets` contain invalid assets.\n",
|
|
84
|
-
"transfer": "'TransferTx.assets' contain invalid assets.\n"
|
|
85
|
-
},
|
|
86
|
-
"invalid_tx_size": "The size of `tx.itx` should be smaller than max size.\n",
|
|
87
|
-
"invalid_signer_state": "All signers participating in this tx should have a valid state on this chain.\n",
|
|
88
|
-
"invalid_forge_state": {
|
|
89
|
-
"default": "The forge state is invalid.\n",
|
|
90
|
-
"deploy_protocol": "The forge state is invalid.\n",
|
|
91
|
-
"upgrade_node": "The forge state is invalid.\n",
|
|
92
|
-
"stake": "The forge state is invalid.\n"
|
|
93
|
-
},
|
|
94
|
-
"expired_asset": "This asset has expired.",
|
|
95
|
-
"untransferrable_asset": "This asset can not be transferred.",
|
|
96
|
-
"readonly_asset": "This asset is readonly and therefore can not be modified.",
|
|
97
|
-
"consumed_asset": "This asset has already been consumed before.",
|
|
98
|
-
"invalid_deposit_value": "The deposit value is not valid.",
|
|
99
|
-
"exceed_deposit_cap": "The amount exceeds the deposit cap.",
|
|
100
|
-
"invalid_deposit_target": "The target of this deposit is invalid.",
|
|
101
|
-
"invalid_depositor": "The depositor does not exist on the chain.",
|
|
102
|
-
"invalid_withdrawer": "The withdrawer does not exist on the chain.",
|
|
103
|
-
"duplicate_tether": "The tether is duplicated.",
|
|
104
|
-
"invalid_expiry_date": "The expiry date is invalid.",
|
|
105
|
-
"invalid_deposit": "The deposit is invalid.",
|
|
106
|
-
"invalid_custodian": "The custodian does not exist on the chain.",
|
|
107
|
-
"invalid_delegation": "The delegation parameters are invalid.",
|
|
108
|
-
"invalid_subscribe": "the subscription is invalid, most likely the topic or the filter is invalid.",
|
|
109
|
-
"forbidden": "Operation is not permitted with current authorization.",
|
|
110
|
-
"internal": "Internal error occurred - mainly a server implementation issue.",
|
|
111
|
-
"timeout": "Operation is timeout.",
|
|
112
|
-
"invalid_delegation_type_url": "The type_url you want to delegate is not allowed in your forge config",
|
|
113
|
-
"invalid_did_type": "DID type is not valid for the current transaction",
|
|
114
|
-
"invalid_candidate_state": "candidate address shall be declared before using update_validator tx",
|
|
115
|
-
"validator_not_found": "trying to delete a validator, however it is not in current validator list",
|
|
116
|
-
"validator_not_changed": "the update_validator has no side effect to the current validator list"
|
|
117
|
-
}
|