diff --git a/README.md b/README.md index 56541749b5..18f92cf915 100644 --- a/README.md +++ b/README.md @@ -43,9 +43,11 @@ Tests use sample contract from `near-hello` npm package, see https://github.com/ Follow next steps: -1. [Change hash for the commit with errors in the nearcore](https://github.com/near/near-api-js/blob/master/fetch_error_schema.js#L8-L9) +1. [Optionally, set a specific hash for the commit with errors in the nearcore](https://github.com/near/near-api-js/blob/master/packages/utils/fetch_error_schema.js#L4-L5) 2. Fetch new schema: `node fetch_error_schema.js` -3. `pnpm build` to update `lib/**.js` files +3. `pnpm build` and `pnpm test` to check tests still work +4. `pnpm changeset` to generate a changeset with a minor bump for the @near-js/utils package +5. commit all changes and submit a PR on GitHub ## Packages diff --git a/packages/near-api-js/src/generated/rpc_error_schema.json b/packages/near-api-js/src/generated/rpc_error_schema.json deleted file mode 100644 index e5ac6cec66..0000000000 --- a/packages/near-api-js/src/generated/rpc_error_schema.json +++ /dev/null @@ -1,869 +0,0 @@ -{ - "schema": { - "BadUTF16": { - "name": "BadUTF16", - "subtypes": [], - "props": {} - }, - "BadUTF8": { - "name": "BadUTF8", - "subtypes": [], - "props": {} - }, - "BalanceExceeded": { - "name": "BalanceExceeded", - "subtypes": [], - "props": {} - }, - "BreakpointTrap": { - "name": "BreakpointTrap", - "subtypes": [], - "props": {} - }, - "CacheError": { - "name": "CacheError", - "subtypes": [ - "ReadError", - "WriteError", - "DeserializationError", - "SerializationError" - ], - "props": {} - }, - "CallIndirectOOB": { - "name": "CallIndirectOOB", - "subtypes": [], - "props": {} - }, - "CannotAppendActionToJointPromise": { - "name": "CannotAppendActionToJointPromise", - "subtypes": [], - "props": {} - }, - "CannotReturnJointPromise": { - "name": "CannotReturnJointPromise", - "subtypes": [], - "props": {} - }, - "CodeDoesNotExist": { - "name": "CodeDoesNotExist", - "subtypes": [], - "props": { - "account_id": "" - } - }, - "CompilationError": { - "name": "CompilationError", - "subtypes": [ - "CodeDoesNotExist", - "PrepareError", - "WasmerCompileError" - ], - "props": {} - }, - "ContractSizeExceeded": { - "name": "ContractSizeExceeded", - "subtypes": [], - "props": { - "limit": "", - "size": "" - } - }, - "Deprecated": { - "name": "Deprecated", - "subtypes": [], - "props": { - "method_name": "" - } - }, - "Deserialization": { - "name": "Deserialization", - "subtypes": [], - "props": {} - }, - "DeserializationError": { - "name": "DeserializationError", - "subtypes": [], - "props": {} - }, - "EmptyMethodName": { - "name": "EmptyMethodName", - "subtypes": [], - "props": {} - }, - "FunctionCallError": { - "name": "FunctionCallError", - "subtypes": [ - "CompilationError", - "LinkError", - "MethodResolveError", - "WasmTrap", - "WasmUnknownError", - "HostError", - "EvmError" - ], - "props": {} - }, - "GasExceeded": { - "name": "GasExceeded", - "subtypes": [], - "props": {} - }, - "GasInstrumentation": { - "name": "GasInstrumentation", - "subtypes": [], - "props": {} - }, - "GasLimitExceeded": { - "name": "GasLimitExceeded", - "subtypes": [], - "props": {} - }, - "GenericTrap": { - "name": "GenericTrap", - "subtypes": [], - "props": {} - }, - "GuestPanic": { - "name": "GuestPanic", - "subtypes": [], - "props": { - "panic_msg": "" - } - }, - "HostError": { - "name": "HostError", - "subtypes": [ - "BadUTF16", - "BadUTF8", - "GasExceeded", - "GasLimitExceeded", - "BalanceExceeded", - "EmptyMethodName", - "GuestPanic", - "IntegerOverflow", - "InvalidPromiseIndex", - "CannotAppendActionToJointPromise", - "CannotReturnJointPromise", - "InvalidPromiseResultIndex", - "InvalidRegisterId", - "IteratorWasInvalidated", - "MemoryAccessViolation", - "InvalidReceiptIndex", - "InvalidIteratorIndex", - "InvalidAccountId", - "InvalidMethodName", - "InvalidPublicKey", - "ProhibitedInView", - "NumberOfLogsExceeded", - "KeyLengthExceeded", - "ValueLengthExceeded", - "TotalLogLengthExceeded", - "NumberPromisesExceeded", - "NumberInputDataDependenciesExceeded", - "ReturnedValueLengthExceeded", - "ContractSizeExceeded", - "Deprecated" - ], - "props": {} - }, - "IllegalArithmetic": { - "name": "IllegalArithmetic", - "subtypes": [], - "props": {} - }, - "IncorrectCallIndirectSignature": { - "name": "IncorrectCallIndirectSignature", - "subtypes": [], - "props": {} - }, - "Instantiate": { - "name": "Instantiate", - "subtypes": [], - "props": {} - }, - "IntegerOverflow": { - "name": "IntegerOverflow", - "subtypes": [], - "props": {} - }, - "InternalMemoryDeclared": { - "name": "InternalMemoryDeclared", - "subtypes": [], - "props": {} - }, - "InvalidAccountId": { - "name": "InvalidAccountId", - "subtypes": [], - "props": { - "account_id": "" - } - }, - "InvalidIteratorIndex": { - "name": "InvalidIteratorIndex", - "subtypes": [], - "props": { - "iterator_index": "" - } - }, - "InvalidMethodName": { - "name": "InvalidMethodName", - "subtypes": [], - "props": {} - }, - "InvalidPromiseIndex": { - "name": "InvalidPromiseIndex", - "subtypes": [], - "props": { - "promise_idx": "" - } - }, - "InvalidPromiseResultIndex": { - "name": "InvalidPromiseResultIndex", - "subtypes": [], - "props": { - "result_idx": "" - } - }, - "InvalidPublicKey": { - "name": "InvalidPublicKey", - "subtypes": [], - "props": {} - }, - "InvalidReceiptIndex": { - "name": "InvalidReceiptIndex", - "subtypes": [], - "props": { - "receipt_index": "" - } - }, - "InvalidRegisterId": { - "name": "InvalidRegisterId", - "subtypes": [], - "props": { - "register_id": "" - } - }, - "IteratorWasInvalidated": { - "name": "IteratorWasInvalidated", - "subtypes": [], - "props": { - "iterator_index": "" - } - }, - "KeyLengthExceeded": { - "name": "KeyLengthExceeded", - "subtypes": [], - "props": { - "length": "", - "limit": "" - } - }, - "LinkError": { - "name": "LinkError", - "subtypes": [], - "props": { - "msg": "" - } - }, - "Memory": { - "name": "Memory", - "subtypes": [], - "props": {} - }, - "MemoryAccessViolation": { - "name": "MemoryAccessViolation", - "subtypes": [], - "props": {} - }, - "MemoryOutOfBounds": { - "name": "MemoryOutOfBounds", - "subtypes": [], - "props": {} - }, - "MethodEmptyName": { - "name": "MethodEmptyName", - "subtypes": [], - "props": {} - }, - "MethodInvalidSignature": { - "name": "MethodInvalidSignature", - "subtypes": [], - "props": {} - }, - "MethodNotFound": { - "name": "MethodNotFound", - "subtypes": [], - "props": {} - }, - "MethodResolveError": { - "name": "MethodResolveError", - "subtypes": [ - "MethodEmptyName", - "MethodUTF8Error", - "MethodNotFound", - "MethodInvalidSignature" - ], - "props": {} - }, - "MethodUTF8Error": { - "name": "MethodUTF8Error", - "subtypes": [], - "props": {} - }, - "MisalignedAtomicAccess": { - "name": "MisalignedAtomicAccess", - "subtypes": [], - "props": {} - }, - "NumberInputDataDependenciesExceeded": { - "name": "NumberInputDataDependenciesExceeded", - "subtypes": [], - "props": { - "limit": "", - "number_of_input_data_dependencies": "" - } - }, - "NumberOfLogsExceeded": { - "name": "NumberOfLogsExceeded", - "subtypes": [], - "props": { - "limit": "" - } - }, - "NumberPromisesExceeded": { - "name": "NumberPromisesExceeded", - "subtypes": [], - "props": { - "limit": "", - "number_of_promises": "" - } - }, - "PrepareError": { - "name": "PrepareError", - "subtypes": [ - "Serialization", - "Deserialization", - "InternalMemoryDeclared", - "GasInstrumentation", - "StackHeightInstrumentation", - "Instantiate", - "Memory" - ], - "props": {} - }, - "ProhibitedInView": { - "name": "ProhibitedInView", - "subtypes": [], - "props": { - "method_name": "" - } - }, - "ReadError": { - "name": "ReadError", - "subtypes": [], - "props": {} - }, - "ReturnedValueLengthExceeded": { - "name": "ReturnedValueLengthExceeded", - "subtypes": [], - "props": { - "length": "", - "limit": "" - } - }, - "Serialization": { - "name": "Serialization", - "subtypes": [], - "props": {} - }, - "SerializationError": { - "name": "SerializationError", - "subtypes": [], - "props": { - "hash": "" - } - }, - "StackHeightInstrumentation": { - "name": "StackHeightInstrumentation", - "subtypes": [], - "props": {} - }, - "StackOverflow": { - "name": "StackOverflow", - "subtypes": [], - "props": {} - }, - "TotalLogLengthExceeded": { - "name": "TotalLogLengthExceeded", - "subtypes": [], - "props": { - "length": "", - "limit": "" - } - }, - "Unreachable": { - "name": "Unreachable", - "subtypes": [], - "props": {} - }, - "ValueLengthExceeded": { - "name": "ValueLengthExceeded", - "subtypes": [], - "props": { - "length": "", - "limit": "" - } - }, - "WasmTrap": { - "name": "WasmTrap", - "subtypes": [ - "Unreachable", - "IncorrectCallIndirectSignature", - "MemoryOutOfBounds", - "CallIndirectOOB", - "IllegalArithmetic", - "MisalignedAtomicAccess", - "BreakpointTrap", - "StackOverflow", - "GenericTrap" - ], - "props": {} - }, - "WasmUnknownError": { - "name": "WasmUnknownError", - "subtypes": [], - "props": {} - }, - "WasmerCompileError": { - "name": "WasmerCompileError", - "subtypes": [], - "props": { - "msg": "" - } - }, - "WriteError": { - "name": "WriteError", - "subtypes": [], - "props": {} - }, - "AccessKeyNotFound": { - "name": "AccessKeyNotFound", - "subtypes": [], - "props": { - "account_id": "", - "public_key": "" - } - }, - "AccountAlreadyExists": { - "name": "AccountAlreadyExists", - "subtypes": [], - "props": { - "account_id": "" - } - }, - "AccountDoesNotExist": { - "name": "AccountDoesNotExist", - "subtypes": [], - "props": { - "account_id": "" - } - }, - "ActionError": { - "name": "ActionError", - "subtypes": [ - "AccountAlreadyExists", - "AccountDoesNotExist", - "CreateAccountOnlyByRegistrar", - "CreateAccountNotAllowed", - "ActorNoPermission", - "DeleteKeyDoesNotExist", - "AddKeyAlreadyExists", - "DeleteAccountStaking", - "LackBalanceForState", - "TriesToUnstake", - "TriesToStake", - "InsufficientStake", - "FunctionCallError", - "NewReceiptValidationError", - "OnlyImplicitAccountCreationAllowed" - ], - "props": { - "index": "" - } - }, - "ActionsValidationError": { - "name": "ActionsValidationError", - "subtypes": [ - "DeleteActionMustBeFinal", - "TotalPrepaidGasExceeded", - "TotalNumberOfActionsExceeded", - "AddKeyMethodNamesNumberOfBytesExceeded", - "AddKeyMethodNameLengthExceeded", - "IntegerOverflow", - "InvalidAccountId", - "ContractSizeExceeded", - "FunctionCallMethodNameLengthExceeded", - "FunctionCallArgumentsLengthExceeded", - "UnsuitableStakingKey", - "FunctionCallZeroAttachedGas" - ], - "props": {} - }, - "ActorNoPermission": { - "name": "ActorNoPermission", - "subtypes": [], - "props": { - "account_id": "", - "actor_id": "" - } - }, - "AddKeyAlreadyExists": { - "name": "AddKeyAlreadyExists", - "subtypes": [], - "props": { - "account_id": "", - "public_key": "" - } - }, - "AddKeyMethodNameLengthExceeded": { - "name": "AddKeyMethodNameLengthExceeded", - "subtypes": [], - "props": { - "length": "", - "limit": "" - } - }, - "AddKeyMethodNamesNumberOfBytesExceeded": { - "name": "AddKeyMethodNamesNumberOfBytesExceeded", - "subtypes": [], - "props": { - "limit": "", - "total_number_of_bytes": "" - } - }, - "BalanceMismatchError": { - "name": "BalanceMismatchError", - "subtypes": [], - "props": { - "final_accounts_balance": "", - "final_postponed_receipts_balance": "", - "incoming_receipts_balance": "", - "incoming_validator_rewards": "", - "initial_accounts_balance": "", - "initial_postponed_receipts_balance": "", - "new_delayed_receipts_balance": "", - "other_burnt_amount": "", - "outgoing_receipts_balance": "", - "processed_delayed_receipts_balance": "", - "slashed_burnt_amount": "", - "tx_burnt_amount": "" - } - }, - "CostOverflow": { - "name": "CostOverflow", - "subtypes": [], - "props": {} - }, - "CreateAccountNotAllowed": { - "name": "CreateAccountNotAllowed", - "subtypes": [], - "props": { - "account_id": "", - "predecessor_id": "" - } - }, - "CreateAccountOnlyByRegistrar": { - "name": "CreateAccountOnlyByRegistrar", - "subtypes": [], - "props": { - "account_id": "", - "predecessor_id": "", - "registrar_account_id": "" - } - }, - "DeleteAccountStaking": { - "name": "DeleteAccountStaking", - "subtypes": [], - "props": { - "account_id": "" - } - }, - "DeleteActionMustBeFinal": { - "name": "DeleteActionMustBeFinal", - "subtypes": [], - "props": {} - }, - "DeleteKeyDoesNotExist": { - "name": "DeleteKeyDoesNotExist", - "subtypes": [], - "props": { - "account_id": "", - "public_key": "" - } - }, - "DepositWithFunctionCall": { - "name": "DepositWithFunctionCall", - "subtypes": [], - "props": {} - }, - "Expired": { - "name": "Expired", - "subtypes": [], - "props": {} - }, - "FunctionCallArgumentsLengthExceeded": { - "name": "FunctionCallArgumentsLengthExceeded", - "subtypes": [], - "props": { - "length": "", - "limit": "" - } - }, - "FunctionCallMethodNameLengthExceeded": { - "name": "FunctionCallMethodNameLengthExceeded", - "subtypes": [], - "props": { - "length": "", - "limit": "" - } - }, - "FunctionCallZeroAttachedGas": { - "name": "FunctionCallZeroAttachedGas", - "subtypes": [], - "props": {} - }, - "InsufficientStake": { - "name": "InsufficientStake", - "subtypes": [], - "props": { - "account_id": "", - "minimum_stake": "", - "stake": "" - } - }, - "InvalidAccessKeyError": { - "name": "InvalidAccessKeyError", - "subtypes": [ - "AccessKeyNotFound", - "ReceiverMismatch", - "MethodNameMismatch", - "RequiresFullAccess", - "NotEnoughAllowance", - "DepositWithFunctionCall" - ], - "props": {} - }, - "InvalidChain": { - "name": "InvalidChain", - "subtypes": [], - "props": {} - }, - "InvalidDataReceiverId": { - "name": "InvalidDataReceiverId", - "subtypes": [], - "props": { - "account_id": "" - } - }, - "InvalidNonce": { - "name": "InvalidNonce", - "subtypes": [], - "props": { - "ak_nonce": "", - "tx_nonce": "" - } - }, - "InvalidPredecessorId": { - "name": "InvalidPredecessorId", - "subtypes": [], - "props": { - "account_id": "" - } - }, - "InvalidReceiverId": { - "name": "InvalidReceiverId", - "subtypes": [], - "props": { - "account_id": "" - } - }, - "InvalidSignature": { - "name": "InvalidSignature", - "subtypes": [], - "props": {} - }, - "InvalidSignerId": { - "name": "InvalidSignerId", - "subtypes": [], - "props": { - "account_id": "" - } - }, - "InvalidTxError": { - "name": "InvalidTxError", - "subtypes": [ - "InvalidAccessKeyError", - "InvalidSignerId", - "SignerDoesNotExist", - "InvalidNonce", - "InvalidReceiverId", - "InvalidSignature", - "NotEnoughBalance", - "LackBalanceForState", - "CostOverflow", - "InvalidChain", - "Expired", - "ActionsValidation" - ], - "props": {} - }, - "LackBalanceForState": { - "name": "LackBalanceForState", - "subtypes": [], - "props": { - "account_id": "", - "amount": "" - } - }, - "MethodNameMismatch": { - "name": "MethodNameMismatch", - "subtypes": [], - "props": { - "method_name": "" - } - }, - "NotEnoughAllowance": { - "name": "NotEnoughAllowance", - "subtypes": [], - "props": { - "account_id": "", - "allowance": "", - "cost": "", - "public_key": "" - } - }, - "NotEnoughBalance": { - "name": "NotEnoughBalance", - "subtypes": [], - "props": { - "balance": "", - "cost": "", - "signer_id": "" - } - }, - "OnlyImplicitAccountCreationAllowed": { - "name": "OnlyImplicitAccountCreationAllowed", - "subtypes": [], - "props": { - "account_id": "" - } - }, - "ReceiptValidationError": { - "name": "ReceiptValidationError", - "subtypes": [ - "InvalidPredecessorId", - "InvalidReceiverId", - "InvalidSignerId", - "InvalidDataReceiverId", - "ReturnedValueLengthExceeded", - "NumberInputDataDependenciesExceeded", - "ActionsValidation" - ], - "props": {} - }, - "ReceiverMismatch": { - "name": "ReceiverMismatch", - "subtypes": [], - "props": { - "ak_receiver": "", - "tx_receiver": "" - } - }, - "RequiresFullAccess": { - "name": "RequiresFullAccess", - "subtypes": [], - "props": {} - }, - "SignerDoesNotExist": { - "name": "SignerDoesNotExist", - "subtypes": [], - "props": { - "signer_id": "" - } - }, - "TotalNumberOfActionsExceeded": { - "name": "TotalNumberOfActionsExceeded", - "subtypes": [], - "props": { - "limit": "", - "total_number_of_actions": "" - } - }, - "TotalPrepaidGasExceeded": { - "name": "TotalPrepaidGasExceeded", - "subtypes": [], - "props": { - "limit": "", - "total_prepaid_gas": "" - } - }, - "TriesToStake": { - "name": "TriesToStake", - "subtypes": [], - "props": { - "account_id": "", - "balance": "", - "locked": "", - "stake": "" - } - }, - "TriesToUnstake": { - "name": "TriesToUnstake", - "subtypes": [], - "props": { - "account_id": "" - } - }, - "TxExecutionError": { - "name": "TxExecutionError", - "subtypes": [ - "ActionError", - "InvalidTxError" - ], - "props": {} - }, - "UnsuitableStakingKey": { - "name": "UnsuitableStakingKey", - "subtypes": [], - "props": { - "public_key": "" - } - }, - "Closed": { - "name": "Closed", - "subtypes": [], - "props": {} - }, - "InternalError": { - "name": "InternalError", - "subtypes": [], - "props": {} - }, - "ServerError": { - "name": "ServerError", - "subtypes": [ - "TxExecutionError", - "Timeout", - "Closed", - "InternalError" - ], - "props": {} - }, - "Timeout": { - "name": "Timeout", - "subtypes": [], - "props": {} - } - } -} \ No newline at end of file diff --git a/packages/near-api-js/src/res/error_messages.json b/packages/near-api-js/src/res/error_messages.json deleted file mode 100644 index 085313959a..0000000000 --- a/packages/near-api-js/src/res/error_messages.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "GasLimitExceeded": "Exceeded the maximum amount of gas allowed to burn per contract", - "MethodEmptyName": "Method name is empty", - "WasmerCompileError": "Wasmer compilation error: {{msg}}", - "GuestPanic": "Smart contract panicked: {{panic_msg}}", - "Memory": "Error creating Wasm memory", - "GasExceeded": "Exceeded the prepaid gas", - "MethodUTF8Error": "Method name is not valid UTF8 string", - "BadUTF16": "String encoding is bad UTF-16 sequence", - "WasmTrap": "WebAssembly trap: {{msg}}", - "GasInstrumentation": "Gas instrumentation failed or contract has denied instructions.", - "InvalidPromiseIndex": "{{promise_idx}} does not correspond to existing promises", - "InvalidPromiseResultIndex": "Accessed invalid promise result index: {{result_idx}}", - "Deserialization": "Error happened while deserializing the module", - "MethodNotFound": "Contract method is not found", - "InvalidRegisterId": "Accessed invalid register id: {{register_id}}", - "InvalidReceiptIndex": "VM Logic returned an invalid receipt index: {{receipt_index}}", - "EmptyMethodName": "Method name is empty in contract call", - "CannotReturnJointPromise": "Returning joint promise is currently prohibited", - "StackHeightInstrumentation": "Stack instrumentation failed", - "CodeDoesNotExist": "Cannot find contract code for account {{account_id}}", - "MethodInvalidSignature": "Invalid method signature", - "IntegerOverflow": "Integer overflow happened during contract execution", - "MemoryAccessViolation": "MemoryAccessViolation", - "InvalidIteratorIndex": "Iterator index {{iterator_index}} does not exist", - "IteratorWasInvalidated": "Iterator {{iterator_index}} was invalidated after its creation by performing a mutable operation on trie", - "InvalidAccountId": "VM Logic returned an invalid account id", - "Serialization": "Error happened while serializing the module", - "CannotAppendActionToJointPromise": "Actions can only be appended to non-joint promise.", - "InternalMemoryDeclared": "Internal memory declaration has been found in the module", - "Instantiate": "Error happened during instantiation", - "ProhibitedInView": "{{method_name}} is not allowed in view calls", - "InvalidMethodName": "VM Logic returned an invalid method name", - "BadUTF8": "String encoding is bad UTF-8 sequence", - "BalanceExceeded": "Exceeded the account balance", - "LinkError": "Wasm contract link error: {{msg}}", - "InvalidPublicKey": "VM Logic provided an invalid public key", - "ActorNoPermission": "Actor {{actor_id}} doesn't have permission to account {{account_id}} to complete the action", - "LackBalanceForState": "The account {{account_id}} wouldn't have enough balance to cover storage, required to have {{amount}} yoctoNEAR more", - "ReceiverMismatch": "Wrong AccessKey used for transaction: transaction is sent to receiver_id={{tx_receiver}}, but is signed with function call access key that restricted to only use with receiver_id={{ak_receiver}}. Either change receiver_id in your transaction or switch to use a FullAccessKey.", - "CostOverflow": "Transaction gas or balance cost is too high", - "InvalidSignature": "Transaction is not signed with the given public key", - "AccessKeyNotFound": "Signer \"{{account_id}}\" doesn't have access key with the given public_key {{public_key}}", - "NotEnoughBalance": "Sender {{signer_id}} does not have enough balance {{#formatNear}}{{balance}}{{/formatNear}} for operation costing {{#formatNear}}{{cost}}{{/formatNear}}", - "NotEnoughAllowance": "Access Key {account_id}:{public_key} does not have enough balance {{#formatNear}}{{allowance}}{{/formatNear}} for transaction costing {{#formatNear}}{{cost}}{{/formatNear}}", - "Expired": "Transaction has expired", - "DeleteAccountStaking": "Account {{account_id}} is staking and can not be deleted", - "SignerDoesNotExist": "Signer {{signer_id}} does not exist", - "TriesToStake": "Account {{account_id}} tried to stake {{#formatNear}}{{stake}}{{/formatNear}}, but has staked {{#formatNear}}{{locked}}{{/formatNear}} and only has {{#formatNear}}{{balance}}{{/formatNear}}", - "AddKeyAlreadyExists": "The public key {{public_key}} is already used for an existing access key", - "InvalidSigner": "Invalid signer account ID {{signer_id}} according to requirements", - "CreateAccountNotAllowed": "The new account_id {{account_id}} can't be created by {{predecessor_id}}", - "RequiresFullAccess": "The transaction contains more then one action, but it was signed with an access key which allows transaction to apply only one specific action. To apply more then one actions TX must be signed with a full access key", - "TriesToUnstake": "Account {{account_id}} is not yet staked, but tried to unstake", - "InvalidNonce": "Transaction nonce {{tx_nonce}} must be larger than nonce of the used access key {{ak_nonce}}", - "AccountAlreadyExists": "Can't create a new account {{account_id}}, because it already exists", - "InvalidChain": "Transaction parent block hash doesn't belong to the current chain", - "AccountDoesNotExist": "Can't complete the action because account {{account_id}} doesn't exist", - "MethodNameMismatch": "Transaction method name {{method_name}} isn't allowed by the access key", - "DeleteAccountHasRent": "Account {{account_id}} can't be deleted. It has {{#formatNear}}{{balance}}{{/formatNear}}, which is enough to cover the rent", - "DeleteAccountHasEnoughBalance": "Account {{account_id}} can't be deleted. It has {{#formatNear}}{{balance}}{{/formatNear}}, which is enough to cover it's storage", - "InvalidReceiver": "Invalid receiver account ID {{receiver_id}} according to requirements", - "DeleteKeyDoesNotExist": "Account {{account_id}} tries to remove an access key that doesn't exist", - "Timeout": "Timeout exceeded", - "Closed": "Connection closed" -}