@keetanetwork/keetanet-client 0.12.0 → 0.14.0
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/api/index.d.ts +23 -2
- package/api/node.d.ts +7 -1
- package/api/p2p.d.ts +13 -0
- package/api/vote.d.ts +10 -0
- package/benchmarking/test.d.ts +4 -0
- package/client/builder.d.ts +6 -4
- package/client/client_common_tests.d.ts +18 -0
- package/client/index-browser.d.ts +42 -14
- package/client/index-browser.js +2577 -881
- package/client/index.d.ts +42 -14
- package/client/index.js +2318 -663
- package/config/index.d.ts +2 -0
- package/docs/assets/hierarchy.js +1 -1
- package/docs/assets/navigation.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/KeetaNetSDK.Client.html +14 -10
- package/docs/classes/KeetaNetSDK.Referenced.BaseSet.html +2 -2
- package/docs/classes/KeetaNetSDK.Referenced.BaseVoteBuilder.html +10 -0
- package/docs/classes/KeetaNetSDK.Referenced.Block.html +9 -5
- package/docs/classes/KeetaNetSDK.Referenced.BlockBuilder.html +3 -2
- package/docs/classes/KeetaNetSDK.Referenced.BlockHash.html +1 -1
- package/docs/classes/KeetaNetSDK.Referenced.BlockOperation.html +1 -1
- package/docs/classes/KeetaNetSDK.Referenced.BlockOperationCREATE_IDENTIFIER.html +4 -4
- package/docs/classes/KeetaNetSDK.Referenced.BlockOperationMANAGE_CERTIFICATE.html +2 -2
- package/docs/classes/KeetaNetSDK.Referenced.BlockOperationMODIFY_PERMISSIONS.html +1 -1
- package/docs/classes/KeetaNetSDK.Referenced.BlockOperationRECEIVE.html +1 -1
- package/docs/classes/KeetaNetSDK.Referenced.BlockOperationSEND.html +1 -1
- package/docs/classes/KeetaNetSDK.Referenced.BlockOperationSET_INFO.html +1 -1
- package/docs/classes/KeetaNetSDK.Referenced.BlockOperationSET_REP.html +1 -1
- package/docs/classes/KeetaNetSDK.Referenced.BlockOperationTOKEN_ADMIN_MODIFY_BALANCE.html +1 -1
- package/docs/classes/KeetaNetSDK.Referenced.BlockOperationTOKEN_ADMIN_SUPPLY.html +1 -1
- package/docs/classes/KeetaNetSDK.Referenced.Certificate.html +26 -8
- package/docs/classes/KeetaNetSDK.Referenced.CertificateBundle.html +1 -1
- package/docs/classes/KeetaNetSDK.Referenced.CertificateHash.html +1 -1
- package/docs/classes/KeetaNetSDK.Referenced.ECDSAKeyPair.html +1 -1
- package/docs/classes/KeetaNetSDK.Referenced.ECDSASECP256K1KeyPair.html +1 -1
- package/docs/classes/KeetaNetSDK.Referenced.ECDSASECP256K1PrivateKey.html +1 -1
- package/docs/classes/KeetaNetSDK.Referenced.ECDSASECP256K1PublicKey.html +1 -1
- package/docs/classes/KeetaNetSDK.Referenced.ECDSASECP256K1Signature.html +1 -1
- package/docs/classes/KeetaNetSDK.Referenced.ECDSASECP256R1KeyPair.html +1 -1
- package/docs/classes/KeetaNetSDK.Referenced.ECDSASECP256R1PrivateKey.html +1 -1
- package/docs/classes/KeetaNetSDK.Referenced.ECDSASECP256R1PublicKey.html +1 -1
- package/docs/classes/KeetaNetSDK.Referenced.ECDSASECP256R1Signature.html +1 -1
- package/docs/classes/KeetaNetSDK.Referenced.ED25519KeyPair.html +1 -1
- package/docs/classes/KeetaNetSDK.Referenced.ED25519PrivateKey.html +1 -1
- package/docs/classes/KeetaNetSDK.Referenced.ED25519PublicKey.html +1 -1
- package/docs/classes/KeetaNetSDK.Referenced.ED25519Signature.html +1 -1
- package/docs/classes/KeetaNetSDK.Referenced.ExternalKeyPair.html +1 -1
- package/docs/classes/KeetaNetSDK.Referenced.ExternalSet.html +1 -1
- package/docs/classes/KeetaNetSDK.Referenced.IdentifierKey.html +1 -1
- package/docs/classes/KeetaNetSDK.Referenced.IdentifierKeyPair.html +1 -1
- package/docs/classes/KeetaNetSDK.Referenced.KeetaNetError.html +1 -1
- package/docs/classes/KeetaNetSDK.Referenced.KeyInterface.html +1 -1
- package/docs/classes/KeetaNetSDK.Referenced.KeyStorage.html +1 -1
- package/docs/classes/KeetaNetSDK.Referenced.Ledger.html +5 -2
- package/docs/classes/KeetaNetSDK.Referenced.LedgerAtomicInterface.html +3 -1
- package/docs/classes/KeetaNetSDK.Referenced.P2PSwitch.html +6 -2
- package/docs/classes/KeetaNetSDK.Referenced.PermissionSetHolder.html +1 -1
- package/docs/classes/KeetaNetSDK.Referenced.PossiblyExpiredVote.html +31 -26
- package/docs/classes/KeetaNetSDK.Referenced.SignatureStorage.html +1 -1
- package/docs/classes/KeetaNetSDK.Referenced.UserClientBuilder.html +4 -3
- package/docs/classes/KeetaNetSDK.Referenced.Vote.html +8 -3
- package/docs/classes/KeetaNetSDK.Referenced.VoteBlockBundle.html +3 -3
- package/docs/classes/KeetaNetSDK.Referenced.VoteBlockHash.html +2 -2
- package/docs/classes/KeetaNetSDK.Referenced.VoteBuilder.html +10 -7
- package/docs/classes/KeetaNetSDK.Referenced.VoteHash.html +2 -2
- package/docs/classes/KeetaNetSDK.Referenced.VoteLikeBase.html +32 -0
- package/docs/classes/KeetaNetSDK.Referenced.VoteQuote.html +34 -0
- package/docs/classes/KeetaNetSDK.Referenced.VoteQuoteBuilder.html +11 -0
- package/docs/classes/KeetaNetSDK.Referenced.VoteStaple.html +3 -3
- package/docs/classes/KeetaNetSDK.Referenced.VoteStapleHash.html +2 -2
- package/docs/classes/KeetaNetSDK.Referenced.default.html +1 -1
- package/docs/classes/KeetaNetSDK.Referenced.src_lib_utils_asn1.ValidateASN1.html +2 -2
- package/docs/classes/KeetaNetSDK.Referenced.src_lib_utils_buffer.BufferStorage.html +1 -1
- package/docs/classes/KeetaNetSDK.UserClient.html +7 -2
- package/docs/enums/KeetaNetSDK.Referenced.BaseFlag.html +2 -1
- package/docs/enums/KeetaNetSDK.Referenced.BasePermissionGroup.html +3 -1
- package/docs/enums/KeetaNetSDK.Referenced.BlockPurpose.html +3 -0
- package/docs/functions/KeetaNetSDK.Referenced.src_lib_utils_asn1.isASN1Object.html +1 -0
- package/docs/functions/KeetaNetSDK.Referenced.src_lib_utils_buffer.ZlibDeflateAsync.html +1 -0
- package/docs/functions/KeetaNetSDK.Referenced.src_lib_utils_buffer.ZlibInflateAsync.html +1 -0
- package/docs/functions/KeetaNetSDK.Referenced.src_lib_utils_helper.bufferToBigInt.html +1 -0
- package/docs/hierarchy.html +1 -1
- package/docs/interfaces/KeetaNetSDK.PublishOptions.html +5 -0
- package/docs/interfaces/KeetaNetSDK.Referenced.ACLEntry.html +1 -1
- package/docs/interfaces/KeetaNetSDK.Referenced.ACLUpdate.html +1 -1
- package/docs/interfaces/KeetaNetSDK.Referenced.ASN1ExplicitContextTag.html +1 -1
- package/docs/interfaces/KeetaNetSDK.Referenced.ASN1ImplicitContextTag.html +1 -1
- package/docs/interfaces/KeetaNetSDK.Referenced.ASN1Object.html +1 -1
- package/docs/interfaces/KeetaNetSDK.Referenced.AccountInfo.html +4 -2
- package/docs/interfaces/KeetaNetSDK.Referenced.BaseExternalKeyPairFunctions.html +1 -1
- package/docs/interfaces/KeetaNetSDK.Referenced.BaseGenerationConfig.html +1 -1
- package/docs/interfaces/KeetaNetSDK.Referenced.BaseIdentifierCreateArguments.html +3 -0
- package/docs/interfaces/KeetaNetSDK.Referenced.BlockJSONOperation.html +1 -1
- package/docs/interfaces/KeetaNetSDK.Referenced.BlockJSONOperationCREATE_IDENTIFIER.html +3 -3
- package/docs/interfaces/KeetaNetSDK.Referenced.BlockJSONOperationMANAGE_CERTIFICATE.html +1 -1
- package/docs/interfaces/KeetaNetSDK.Referenced.BlockJSONOperationMANAGE_CERTIFICATESerializable.html +1 -1
- package/docs/interfaces/KeetaNetSDK.Referenced.BlockJSONOperationMODIFY_PERMISSIONS.html +1 -1
- package/docs/interfaces/KeetaNetSDK.Referenced.BlockJSONOperationRECEIVE.html +1 -1
- package/docs/interfaces/KeetaNetSDK.Referenced.BlockJSONOperationSEND.html +1 -1
- package/docs/interfaces/KeetaNetSDK.Referenced.BlockJSONOperationSET_INFO.html +1 -1
- package/docs/interfaces/KeetaNetSDK.Referenced.BlockJSONOperationSET_REP.html +1 -1
- package/docs/interfaces/KeetaNetSDK.Referenced.BlockJSONOperationTOKEN_ADMIN_MODIFY_BALANCE.html +1 -1
- package/docs/interfaces/KeetaNetSDK.Referenced.BlockJSONOperationTOKEN_ADMIN_SUPPLY.html +1 -1
- package/docs/interfaces/{KeetaNetSDK.Referenced.BlockCanonical.html → KeetaNetSDK.Referenced.BlockV1Canonical.html} +1 -1
- package/docs/interfaces/KeetaNetSDK.Referenced.BlockV1JSON.html +12 -0
- package/docs/interfaces/KeetaNetSDK.Referenced.BlockV1UnsignedCanonical.html +11 -0
- package/docs/interfaces/KeetaNetSDK.Referenced.BlockV2Canonical.html +11 -0
- package/docs/interfaces/KeetaNetSDK.Referenced.BlockV2JSON.html +12 -0
- package/docs/interfaces/KeetaNetSDK.Referenced.BlockV2UnsignedCanonical.html +11 -0
- package/docs/interfaces/KeetaNetSDK.Referenced.ComputedBlocksEffectFields.html +3 -2
- package/docs/interfaces/KeetaNetSDK.Referenced.Constructor.html +1 -1
- package/docs/interfaces/KeetaNetSDK.Referenced.CreateIdentifierRequest.html +4 -0
- package/docs/interfaces/KeetaNetSDK.Referenced.DisposableTimingHandle.html +1 -1
- package/docs/interfaces/KeetaNetSDK.Referenced.ExternalKeyPairFunctionsNoEncryption.html +1 -1
- package/docs/interfaces/KeetaNetSDK.Referenced.ExternalKeyPairFunctionsSupportsEncryption.html +1 -1
- package/docs/interfaces/KeetaNetSDK.Referenced.FeeAmountAndToken.html +5 -0
- package/docs/interfaces/KeetaNetSDK.Referenced.FeeAmountAndTokenJSON.html +4 -0
- package/docs/interfaces/KeetaNetSDK.Referenced.InitialConfigSupply.html +1 -1
- package/docs/interfaces/KeetaNetSDK.Referenced.InstanceSet.html +1 -1
- package/docs/interfaces/KeetaNetSDK.Referenced.KVGenericOptionsType.html +1 -1
- package/docs/interfaces/KeetaNetSDK.Referenced.KVSetOptionsType.html +1 -1
- package/docs/interfaces/KeetaNetSDK.Referenced.LedgerConfig.html +5 -3
- package/docs/interfaces/KeetaNetSDK.Referenced.LedgerStorageAPI.html +3 -3
- package/docs/interfaces/KeetaNetSDK.Referenced.ModifyTokenBalanceEntry.html +1 -1
- package/docs/interfaces/KeetaNetSDK.Referenced.MultiSigIdentifierCreateArguments.html +5 -0
- package/docs/interfaces/KeetaNetSDK.Referenced.MultisigConfig.html +3 -0
- package/docs/interfaces/KeetaNetSDK.Referenced.NumericValueEntry.html +1 -1
- package/docs/interfaces/KeetaNetSDK.Referenced.P2PConfig.html +4 -2
- package/docs/interfaces/KeetaNetSDK.Referenced.P2PPeerBase.html +1 -1
- package/docs/interfaces/KeetaNetSDK.Referenced.P2PPeerListener.html +1 -1
- package/docs/interfaces/KeetaNetSDK.Referenced.P2PPeerRepBase.html +4 -2
- package/docs/interfaces/KeetaNetSDK.Referenced.PrincipalACLWithInfoParsed.html +1 -0
- package/docs/interfaces/KeetaNetSDK.Referenced.PublicKeyStorage.html +1 -1
- package/docs/interfaces/KeetaNetSDK.Referenced.RequestTokenReceiveEntry.html +1 -1
- package/docs/interfaces/KeetaNetSDK.Referenced.TokenNumericEntry.html +1 -1
- package/docs/interfaces/KeetaNetSDK.Referenced.UserClientConfig.html +5 -3
- package/docs/interfaces/KeetaNetSDK.Referenced.UserClientOptions.html +4 -2
- package/docs/interfaces/KeetaNetSDK.Referenced.VoteJSON.html +4 -2
- package/docs/interfaces/KeetaNetSDK.Referenced.VoteStapleJSON.html +2 -2
- package/docs/interfaces/KeetaNetSDK.Referenced.WithIsInstance.html +1 -1
- package/docs/interfaces/KeetaNetSDK.Referenced.src_config.ValidationConfig.html +2 -2
- package/docs/interfaces/KeetaNetSDK.Referenced.src_lib_utils_asn1.ASN1BitString.html +1 -1
- package/docs/interfaces/KeetaNetSDK.Referenced.src_lib_utils_asn1.ASN1Date.html +1 -1
- package/docs/interfaces/KeetaNetSDK.Referenced.src_lib_utils_asn1.ASN1OID.html +1 -1
- package/docs/interfaces/KeetaNetSDK.Referenced.src_lib_utils_asn1.ASN1Set.html +1 -1
- package/docs/interfaces/KeetaNetSDK.Referenced.src_lib_utils_asn1.ASN1String.html +1 -1
- package/docs/interfaces/KeetaNetSDK.Referenced.src_lib_utils_helper.InstanceSetConstructor.html +2 -2
- package/docs/modules/KeetaNetSDK.Referenced.html +1 -1
- package/docs/modules/KeetaNetSDK.Referenced.src_lib_utils_asn1.html +1 -1
- package/docs/modules/KeetaNetSDK.Referenced.src_lib_utils_buffer.html +1 -1
- package/docs/modules/KeetaNetSDK.Referenced.src_lib_utils_helper.html +1 -1
- package/docs/modules/KeetaNetSDK.html +2 -2
- package/docs/types/KeetaNetSDK.Referenced.BlockASN1SchemaWithoutSignature.html +1 -0
- package/docs/types/KeetaNetSDK.Referenced.BlockJSON.html +1 -0
- package/docs/types/KeetaNetSDK.Referenced.BlockJSONIncomplete.html +1 -1
- package/docs/types/KeetaNetSDK.Referenced.BlockOperationASN1SchemaType.html +1 -0
- package/docs/types/KeetaNetSDK.Referenced.BlockOperationTypes.html +1 -0
- package/docs/types/KeetaNetSDK.Referenced.BlockSignature.html +2 -0
- package/docs/types/KeetaNetSDK.Referenced.BlockSignatureField.html +1 -0
- package/docs/types/KeetaNetSDK.Referenced.BlockSignerField.html +1 -0
- package/docs/types/KeetaNetSDK.Referenced.BlockSignerFieldJSON.html +1 -0
- package/docs/types/KeetaNetSDK.Referenced.BlockV1ASN1WithoutSignature.html +1 -0
- package/docs/types/KeetaNetSDK.Referenced.BlockV2ASN1WithoutSignature.html +1 -0
- package/docs/types/KeetaNetSDK.Referenced.CertificateBuilderParams.html +8 -3
- package/docs/types/KeetaNetSDK.Referenced.CertificateExtensionData.html +1 -0
- package/docs/types/KeetaNetSDK.Referenced.CertificateExtensions.html +2 -2
- package/docs/types/KeetaNetSDK.Referenced.ComputedEffectOfBlocks.html +2 -2
- package/docs/types/KeetaNetSDK.Referenced.GetAccountStateAPIResponseFormatted.html +1 -0
- package/docs/types/KeetaNetSDK.Referenced.HashNames.html +1 -0
- package/docs/types/KeetaNetSDK.Referenced.MultisigAddress.html +1 -0
- package/docs/types/KeetaNetSDK.Referenced.MultisigSignerField.html +1 -0
- package/docs/types/KeetaNetSDK.Referenced.MultisigSignerFieldJSON.html +1 -0
- package/docs/types/KeetaNetSDK.Referenced.OmitLastArrayValue.html +1 -0
- package/docs/types/KeetaNetSDK.Referenced.P2PUpdateOptions.html +1 -0
- package/docs/types/KeetaNetSDK.Referenced.StorageAddress.html +1 -0
- package/docs/types/KeetaNetSDK.Referenced.UserEditableAccountInfo.html +1 -0
- package/docs/types/KeetaNetSDK.Referenced.VoteBuilderOptions.html +4 -0
- package/docs/types/KeetaNetSDK.Referenced.src_config.NetworkConfig.html +1 -1
- package/docs/types/KeetaNetSDK.Referenced.src_lib_utils_asn1.ValidateASN1.Schema.html +1 -1
- package/docs/types/KeetaNetSDK.Referenced.src_lib_utils_asn1.ValidateASN1.SchemaMap.html +1 -1
- package/docs/variables/KeetaNetSDK.Referenced.BlockErrorCodes.html +1 -1
- package/docs/variables/KeetaNetSDK.Referenced.BlockOperationASN1Schema.html +2 -0
- package/docs/variables/KeetaNetSDK.Referenced.LedgerErrorCodes.html +1 -1
- package/docs/variables/KeetaNetSDK.Referenced.VoteErrorCodes.html +1 -1
- package/docs/variables/KeetaNetSDK.Referenced.src_lib_utils_helper.crypto.html +1 -0
- package/lib/block/index.d.ts +104 -36
- package/lib/block/operations.d.ts +31 -3
- package/lib/error/block.d.ts +1 -1
- package/lib/error/ledger.d.ts +1 -1
- package/lib/error/vote.d.ts +1 -1
- package/lib/ledger/common.d.ts +14 -1
- package/lib/ledger/db_dynamodb.d.ts +2 -2
- package/lib/ledger/db_postgres.d.ts +1 -1
- package/lib/ledger/db_spanner.d.ts +1 -1
- package/lib/ledger/db_spanner_helper.d.ts +28 -5
- package/lib/ledger/db_sqlite.d.ts +1 -1
- package/lib/ledger/effects.d.ts +10 -9
- package/lib/ledger/index.d.ts +17 -8
- package/lib/ledger/types.d.ts +10 -1
- package/lib/node/utils.d.ts +5 -0
- package/lib/p2p.d.ts +32 -0
- package/lib/permissions.d.ts +5 -2
- package/lib/utils/asn1.d.ts +5 -4
- package/lib/utils/buffer.d.ts +4 -0
- package/lib/utils/certificate.d.ts +82 -15
- package/lib/utils/helper.d.ts +9 -1
- package/lib/vote.d.ts +106 -30
- package/package.json +1 -1
- package/version.d.ts +1 -1
- package/docs/interfaces/KeetaNetSDK.Referenced.BlockJSON.html +0 -11
- package/docs/interfaces/KeetaNetSDK.Referenced.BlockUnsignedCanonical.html +0 -11
- package/docs/types/KeetaNetSDK.Referenced.CreateIdentifierRequest.html +0 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>LedgerErrorCodes | @keetanetwork/keetanet-client</title><meta name="description" content="Documentation for @keetanetwork/keetanet-client"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script><link rel="stylesheet" href="../assets/typedoc-github-style.css"/></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title"><img src="../assets/logo-keeta-light.svg" alt="Keeta Logo" class="keeta-logo-light" width="50" height="20"/><img src="../assets/logo-keeta-dark.svg" alt="Keeta Logo" class="keeta-logo-dark" width="50" height="20"/>@keetanetwork/keetanet-client</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M17.9421 17.0578L14.0304 13.1469C15.1642 11.7857 15.7295 10.0398 15.6089 8.27245C15.4882 6.50506 14.6908 4.85223 13.3825 3.65779C12.0743 2.46335 10.3559 1.81926 8.58486 1.85951C6.81382 1.89976 5.12647 2.62125 3.87383 3.87389C2.62118 5.12653 1.89969 6.81388 1.85944 8.58493C1.8192 10.356 2.46328 12.0744 3.65772 13.3826C4.85217 14.6909 6.50499 15.4883 8.27238 15.6089C10.0398 15.7296 11.7856 15.1642 13.1468 14.0305L17.0577 17.9422C17.1158 18.0003 17.1848 18.0463 17.2606 18.0777C17.3365 18.1092 17.4178 18.1253 17.4999 18.1253C17.5821 18.1253 17.6634 18.1092 17.7392 18.0777C17.8151 18.0463 17.8841 18.0003 17.9421 17.9422C18.0002 17.8841 18.0463 17.8152 18.0777 17.7393C18.1091 17.6634 18.1253 17.5821 18.1253 17.5C18.1253 17.4179 18.1091 17.3366 18.0777 17.2607C18.0463 17.1848 18.0002 17.1159 17.9421 17.0578ZM3.12493 8.75C3.12493 7.63748 3.45483 6.54994 4.07292 5.62492C4.691 4.69989 5.56951 3.97892 6.59734 3.55318C7.62517 3.12743 8.75617 3.01604 9.84732 3.23308C10.9385 3.45012 11.9407 3.98585 12.7274 4.77252C13.5141 5.55919 14.0498 6.56147 14.2669 7.65262C14.4839 8.74376 14.3725 9.87476 13.9468 10.9026C13.521 11.9304 12.8 12.8089 11.875 13.427C10.95 14.0451 9.86245 14.375 8.74993 14.375C7.2586 14.3733 5.82882 13.7802 4.77429 12.7256C3.71975 11.6711 3.12659 10.2413 3.12493 8.75Z" fill="var(--color-icon-text)"></path></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><rect x="1" y="3" width="14" height="2" fill="var(--color-icon-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-icon-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-icon-text)"></rect></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="../modules/KeetaNetSDK.html">KeetaNetSDK</a></li><li><a href="../modules/KeetaNetSDK.Referenced.html">Referenced</a></li><li><a href="" aria-current="page">LedgerErrorCodes</a></li></ul><h1>Variable LedgerErrorCodes<code class="tsd-tag">Const</code></h1></div><div class="tsd-signature"><span class="tsd-kind-variable">LedgerErrorCodes</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-keyword">readonly</span> <span class="tsd-signature-symbol">[</span><br/> <span class="tsd-signature-type">"TRANSACTION_ABORTED"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"INVALID_CHAIN"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"INVALID_NETWORK"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"INVALID_SUBNET"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"NOT_EMPTY"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"NOT_OPENING"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"NOT_SUCCESSOR"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"INVALID_PERMISSIONS"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"INVALID_OWNER_COUNT"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"INVALID_BALANCE"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"PREVIOUS_ALREADY_USED"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"PREVIOUS_NOT_SEEN"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"SUCCESSOR_VOTE_EXISTS"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"INSUFFICIENT_VOTING_WEIGHT"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"INVALID_ACCOUNT_INFO_KEY"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"RECEIVE_NOT_MET"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"DUPLICATE_VOTE_FOUND"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"CANNOT_EXCHANGE_PERM_VOTE"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"BLOCKS_DIFFER_FROM_VOTED_ON"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"NO_PERM_WITHOUT_SELF_TEMP"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"DUPLICATE_VOTE_ISSUER_FOUND"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"OTHER"</span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol"> = ...</span></div></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-icon-text)"></path></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html">@keetanetwork/keetanet-client</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">KeetaSDK Documentation</p></footer><div class="overlay"></div></body></html>
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>LedgerErrorCodes | @keetanetwork/keetanet-client</title><meta name="description" content="Documentation for @keetanetwork/keetanet-client"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script><link rel="stylesheet" href="../assets/typedoc-github-style.css"/></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title"><img src="../assets/logo-keeta-light.svg" alt="Keeta Logo" class="keeta-logo-light" width="50" height="20"/><img src="../assets/logo-keeta-dark.svg" alt="Keeta Logo" class="keeta-logo-dark" width="50" height="20"/>@keetanetwork/keetanet-client</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M17.9421 17.0578L14.0304 13.1469C15.1642 11.7857 15.7295 10.0398 15.6089 8.27245C15.4882 6.50506 14.6908 4.85223 13.3825 3.65779C12.0743 2.46335 10.3559 1.81926 8.58486 1.85951C6.81382 1.89976 5.12647 2.62125 3.87383 3.87389C2.62118 5.12653 1.89969 6.81388 1.85944 8.58493C1.8192 10.356 2.46328 12.0744 3.65772 13.3826C4.85217 14.6909 6.50499 15.4883 8.27238 15.6089C10.0398 15.7296 11.7856 15.1642 13.1468 14.0305L17.0577 17.9422C17.1158 18.0003 17.1848 18.0463 17.2606 18.0777C17.3365 18.1092 17.4178 18.1253 17.4999 18.1253C17.5821 18.1253 17.6634 18.1092 17.7392 18.0777C17.8151 18.0463 17.8841 18.0003 17.9421 17.9422C18.0002 17.8841 18.0463 17.8152 18.0777 17.7393C18.1091 17.6634 18.1253 17.5821 18.1253 17.5C18.1253 17.4179 18.1091 17.3366 18.0777 17.2607C18.0463 17.1848 18.0002 17.1159 17.9421 17.0578ZM3.12493 8.75C3.12493 7.63748 3.45483 6.54994 4.07292 5.62492C4.691 4.69989 5.56951 3.97892 6.59734 3.55318C7.62517 3.12743 8.75617 3.01604 9.84732 3.23308C10.9385 3.45012 11.9407 3.98585 12.7274 4.77252C13.5141 5.55919 14.0498 6.56147 14.2669 7.65262C14.4839 8.74376 14.3725 9.87476 13.9468 10.9026C13.521 11.9304 12.8 12.8089 11.875 13.427C10.95 14.0451 9.86245 14.375 8.74993 14.375C7.2586 14.3733 5.82882 13.7802 4.77429 12.7256C3.71975 11.6711 3.12659 10.2413 3.12493 8.75Z" fill="var(--color-icon-text)"></path></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><rect x="1" y="3" width="14" height="2" fill="var(--color-icon-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-icon-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-icon-text)"></rect></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="../modules/KeetaNetSDK.html">KeetaNetSDK</a></li><li><a href="../modules/KeetaNetSDK.Referenced.html">Referenced</a></li><li><a href="" aria-current="page">LedgerErrorCodes</a></li></ul><h1>Variable LedgerErrorCodes<code class="tsd-tag">Const</code></h1></div><div class="tsd-signature"><span class="tsd-kind-variable">LedgerErrorCodes</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-keyword">readonly</span> <span class="tsd-signature-symbol">[</span><br/> <span class="tsd-signature-type">"TRANSACTION_ABORTED"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"INVALID_CHAIN"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"INVALID_NETWORK"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"INVALID_SUBNET"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"NOT_EMPTY"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"NOT_OPENING"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"NOT_SUCCESSOR"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"INVALID_PERMISSIONS"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"INVALID_OWNER_COUNT"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"INVALID_BALANCE"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"PREVIOUS_ALREADY_USED"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"PREVIOUS_NOT_SEEN"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"SUCCESSOR_VOTE_EXISTS"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"INSUFFICIENT_VOTING_WEIGHT"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"INVALID_ACCOUNT_INFO_KEY"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"RECEIVE_NOT_MET"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"DUPLICATE_VOTE_FOUND"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"CANNOT_EXCHANGE_PERM_VOTE"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"BLOCKS_DIFFER_FROM_VOTED_ON"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"NO_PERM_WITHOUT_SELF_TEMP"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"DUPLICATE_VOTE_ISSUER_FOUND"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"OTHER"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MISSING_BLOCKS"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"FEE_AMOUNT_MISMATCH"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"FEE_TOKEN_MISMATCH"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"FEE_MISSING"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MISSING_REQUIRED_FEE_BLOCK"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"PERM_VOTE_WITH_QUOTE"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"QUOTE_MISMATCH"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"REQUIRED_FEE_MISMATCH"</span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol"> = ...</span></div></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-icon-text)"></path></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html">@keetanetwork/keetanet-client</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">KeetaSDK Documentation</p></footer><div class="overlay"></div></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>VoteErrorCodes | @keetanetwork/keetanet-client</title><meta name="description" content="Documentation for @keetanetwork/keetanet-client"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script><link rel="stylesheet" href="../assets/typedoc-github-style.css"/></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title"><img src="../assets/logo-keeta-light.svg" alt="Keeta Logo" class="keeta-logo-light" width="50" height="20"/><img src="../assets/logo-keeta-dark.svg" alt="Keeta Logo" class="keeta-logo-dark" width="50" height="20"/>@keetanetwork/keetanet-client</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M17.9421 17.0578L14.0304 13.1469C15.1642 11.7857 15.7295 10.0398 15.6089 8.27245C15.4882 6.50506 14.6908 4.85223 13.3825 3.65779C12.0743 2.46335 10.3559 1.81926 8.58486 1.85951C6.81382 1.89976 5.12647 2.62125 3.87383 3.87389C2.62118 5.12653 1.89969 6.81388 1.85944 8.58493C1.8192 10.356 2.46328 12.0744 3.65772 13.3826C4.85217 14.6909 6.50499 15.4883 8.27238 15.6089C10.0398 15.7296 11.7856 15.1642 13.1468 14.0305L17.0577 17.9422C17.1158 18.0003 17.1848 18.0463 17.2606 18.0777C17.3365 18.1092 17.4178 18.1253 17.4999 18.1253C17.5821 18.1253 17.6634 18.1092 17.7392 18.0777C17.8151 18.0463 17.8841 18.0003 17.9421 17.9422C18.0002 17.8841 18.0463 17.8152 18.0777 17.7393C18.1091 17.6634 18.1253 17.5821 18.1253 17.5C18.1253 17.4179 18.1091 17.3366 18.0777 17.2607C18.0463 17.1848 18.0002 17.1159 17.9421 17.0578ZM3.12493 8.75C3.12493 7.63748 3.45483 6.54994 4.07292 5.62492C4.691 4.69989 5.56951 3.97892 6.59734 3.55318C7.62517 3.12743 8.75617 3.01604 9.84732 3.23308C10.9385 3.45012 11.9407 3.98585 12.7274 4.77252C13.5141 5.55919 14.0498 6.56147 14.2669 7.65262C14.4839 8.74376 14.3725 9.87476 13.9468 10.9026C13.521 11.9304 12.8 12.8089 11.875 13.427C10.95 14.0451 9.86245 14.375 8.74993 14.375C7.2586 14.3733 5.82882 13.7802 4.77429 12.7256C3.71975 11.6711 3.12659 10.2413 3.12493 8.75Z" fill="var(--color-icon-text)"></path></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><rect x="1" y="3" width="14" height="2" fill="var(--color-icon-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-icon-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-icon-text)"></rect></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="../modules/KeetaNetSDK.html">KeetaNetSDK</a></li><li><a href="../modules/KeetaNetSDK.Referenced.html">Referenced</a></li><li><a href="" aria-current="page">VoteErrorCodes</a></li></ul><h1>Variable VoteErrorCodes<code class="tsd-tag">Const</code></h1></div><div class="tsd-signature"><span class="tsd-kind-variable">VoteErrorCodes</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-keyword">readonly</span> <span class="tsd-signature-symbol">[</span><br/> <span class="tsd-signature-type">"SERIAL_MISMATCH"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"INVALID_VERSION"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"INVALID_CONSTRUCTION"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"INVALID_CONSTRUCTION_JSON"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"SIGNATURE_INVALID"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"EXPIRED"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"INVALID_VALIDITY"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MOMENT_BEFORE_VALIDITY_FROM"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"STAPLE_INVALID_CONSTRUCTION"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"STAPLE_ALL_VOTES_MUST_HAVE_SAME_BLOCKS_COUNT"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"STAPLE_ALL_VOTES_MUST_HAVE_SAME_BLOCKS_MISSING"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"STAPLE_ALL_VOTES_MUST_HAVE_SAME_BLOCKS_ORDER"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"STAPLE_DUPLICATE_VOTE_ISSUER"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"STAPLE_PERMANENCE_MISMATCH"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"BUILDER_INVALID_CONSTRUCTION"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"BUILDER_INVALID_BLOCK_TYPE"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"BUILDER_INVALID_SERIAL"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"BUILDER_INVALID_VALID_TO_FROM"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_WRAPPER"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_VOTE_WRAPPER"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_VOTE_CONTENT"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_VOTE_CONTENT_EXTRA_DATA"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_VOTE_VERSION"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_VOTE_SERIAL"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_VOTE_SIGNATURE_INFORMATION"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_VOTE_ISSUER_INFORMATION"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_VOTE_SUBJECT_INFORMATION"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_VOTE_VALIDITY_INFORMATION"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_VOTE_SERIAL"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_VOTE_EXTENSIONS"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_VOTE_EXTENSIONS_VALUE"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_VOTE_EXTENSIONS_VALUE_OID"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_VOTE_EXTENSIONS_VALUE_CRITICAL"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_VOTE_EXTENSIONS_VALUE_CRITICAL_TYPE"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_VOTE_EXTENSIONS_VALUE_HASH_DATA"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_VOTE_SIGNATURE_SCHEME_DOES_NOT_MATCH_ISSUER"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_VOTE_SIGNATURE_SCHEME_DOES_NOT_MATCH_WRAPPER"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_VOTE_SIGNATURE_SCHEME_ECDSA_INVALID_CURVE"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_VOTE_SIGNATURE_UNSUPPORTED_SCHEME"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_VOTE_SUBJECT_PUBLIC_KEY_INFORMATION"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_VOTE_SIGNATURE_VALUE"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_VOTE_NO_BLOCKS_FOUND"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_STAPLE"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_STAPLE_BLOCKS"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_STAPLE_BLOCKS_AT_LEAST_ONE"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_STAPLE_VOTES"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_STAPLE_VOTES_AT_LEAST_ONE"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_FIND_RDN_INVALID_TYPE"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_FIND_RDN_MUST_HAVE_ONE"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_FIND_RDN_PART_WELL_FORMED"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_FIND_RDN_MUST_BE_SET"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_FIND_RDN_TYPE_MUST_BE_OID"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_HASHES_FROM_VOTE_INVALID_INPUT"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_HASHES_FROM_VOTE_INVALID_TYPE"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_HASHES_FROM_VOTE_INVALID_CONTEXT_SPECIFIC"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_HASHES_FROM_VOTE_DATA_NEEDS_OID"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_HASHES_FROM_VOTE_DATA_HASH_DATA_MUST_BE_SEQUENCE"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_HASHES_FROM_VOTE_DATA_NOT_TWO_ITEMS"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_HASHES_FROM_VOTE_DATA_UNSUPPORTED_HASH_FUNC"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_HASHES_FROM_VOTE_DATA_UNSUPPORTED_HASH_TYPE"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_HASHES_FROM_VOTE_DATA_SECOND_MUST_BE_SEQUENCE"</span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol"> = ...</span></div></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-icon-text)"></path></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html">@keetanetwork/keetanet-client</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">KeetaSDK Documentation</p></footer><div class="overlay"></div></body></html>
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>VoteErrorCodes | @keetanetwork/keetanet-client</title><meta name="description" content="Documentation for @keetanetwork/keetanet-client"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script><link rel="stylesheet" href="../assets/typedoc-github-style.css"/></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title"><img src="../assets/logo-keeta-light.svg" alt="Keeta Logo" class="keeta-logo-light" width="50" height="20"/><img src="../assets/logo-keeta-dark.svg" alt="Keeta Logo" class="keeta-logo-dark" width="50" height="20"/>@keetanetwork/keetanet-client</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M17.9421 17.0578L14.0304 13.1469C15.1642 11.7857 15.7295 10.0398 15.6089 8.27245C15.4882 6.50506 14.6908 4.85223 13.3825 3.65779C12.0743 2.46335 10.3559 1.81926 8.58486 1.85951C6.81382 1.89976 5.12647 2.62125 3.87383 3.87389C2.62118 5.12653 1.89969 6.81388 1.85944 8.58493C1.8192 10.356 2.46328 12.0744 3.65772 13.3826C4.85217 14.6909 6.50499 15.4883 8.27238 15.6089C10.0398 15.7296 11.7856 15.1642 13.1468 14.0305L17.0577 17.9422C17.1158 18.0003 17.1848 18.0463 17.2606 18.0777C17.3365 18.1092 17.4178 18.1253 17.4999 18.1253C17.5821 18.1253 17.6634 18.1092 17.7392 18.0777C17.8151 18.0463 17.8841 18.0003 17.9421 17.9422C18.0002 17.8841 18.0463 17.8152 18.0777 17.7393C18.1091 17.6634 18.1253 17.5821 18.1253 17.5C18.1253 17.4179 18.1091 17.3366 18.0777 17.2607C18.0463 17.1848 18.0002 17.1159 17.9421 17.0578ZM3.12493 8.75C3.12493 7.63748 3.45483 6.54994 4.07292 5.62492C4.691 4.69989 5.56951 3.97892 6.59734 3.55318C7.62517 3.12743 8.75617 3.01604 9.84732 3.23308C10.9385 3.45012 11.9407 3.98585 12.7274 4.77252C13.5141 5.55919 14.0498 6.56147 14.2669 7.65262C14.4839 8.74376 14.3725 9.87476 13.9468 10.9026C13.521 11.9304 12.8 12.8089 11.875 13.427C10.95 14.0451 9.86245 14.375 8.74993 14.375C7.2586 14.3733 5.82882 13.7802 4.77429 12.7256C3.71975 11.6711 3.12659 10.2413 3.12493 8.75Z" fill="var(--color-icon-text)"></path></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><rect x="1" y="3" width="14" height="2" fill="var(--color-icon-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-icon-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-icon-text)"></rect></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="../modules/KeetaNetSDK.html">KeetaNetSDK</a></li><li><a href="../modules/KeetaNetSDK.Referenced.html">Referenced</a></li><li><a href="" aria-current="page">VoteErrorCodes</a></li></ul><h1>Variable VoteErrorCodes<code class="tsd-tag">Const</code></h1></div><div class="tsd-signature"><span class="tsd-kind-variable">VoteErrorCodes</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-keyword">readonly</span> <span class="tsd-signature-symbol">[</span><br/> <span class="tsd-signature-type">"SERIAL_MISMATCH"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"INVALID_VERSION"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"INVALID_CONSTRUCTION"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"INVALID_CONSTRUCTION_JSON"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"SIGNATURE_INVALID"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"EXPIRED"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"INVALID_VALIDITY"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MOMENT_BEFORE_VALIDITY_FROM"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"STAPLE_INVALID_CONSTRUCTION"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"STAPLE_ALL_VOTES_MUST_HAVE_SAME_BLOCKS_COUNT"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"STAPLE_ALL_VOTES_MUST_HAVE_SAME_BLOCKS_MISSING"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"STAPLE_ALL_VOTES_MUST_HAVE_SAME_BLOCKS_ORDER"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"STAPLE_DUPLICATE_VOTE_ISSUER"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"STAPLE_PERMANENCE_MISMATCH"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"BUILDER_INVALID_CONSTRUCTION"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"BUILDER_INVALID_BLOCK_TYPE"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"BUILDER_INVALID_SERIAL"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"BUILDER_INVALID_VALID_TO_FROM"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_WRAPPER"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_VOTE_WRAPPER"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_VOTE_CONTENT"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_VOTE_CONTENT_EXTRA_DATA"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_VOTE_VERSION"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_VOTE_SERIAL"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_VOTE_SIGNATURE_INFORMATION"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_VOTE_ISSUER_INFORMATION"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_VOTE_SUBJECT_INFORMATION"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_VOTE_VALIDITY_INFORMATION"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_VOTE_SERIAL"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_VOTE_EXTENSIONS"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_VOTE_EXTENSIONS_DATA"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_VOTE_EXTENSIONS_VALUE"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_VOTE_EXTENSIONS_VALUE_OID"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_VOTE_EXTENSIONS_VALUE_CRITICAL"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_VOTE_EXTENSIONS_VALUE_CRITICAL_TYPE"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_VOTE_SIGNATURE_SCHEME_DOES_NOT_MATCH_ISSUER"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_VOTE_SIGNATURE_SCHEME_DOES_NOT_MATCH_WRAPPER"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_VOTE_SIGNATURE_SCHEME_ECDSA_INVALID_CURVE"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_VOTE_SIGNATURE_UNSUPPORTED_SCHEME"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_VOTE_SUBJECT_PUBLIC_KEY_INFORMATION"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_VOTE_SIGNATURE_VALUE"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_VOTE_NO_BLOCKS_FOUND"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_STAPLE"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_STAPLE_BLOCKS"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_STAPLE_BLOCKS_AT_LEAST_ONE"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_STAPLE_VOTES"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_STAPLE_VOTES_AT_LEAST_ONE"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_FIND_RDN_INVALID_TYPE"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_FIND_RDN_MUST_HAVE_ONE"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_FIND_RDN_PART_WELL_FORMED"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_FIND_RDN_MUST_BE_SET"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_FIND_RDN_TYPE_MUST_BE_OID"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_HASHES_FROM_VOTE_INVALID_INPUT"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_HASHES_FROM_VOTE_INVALID_TYPE"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_HASHES_FROM_VOTE_INVALID_CONTEXT_SPECIFIC"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_HASHES_FROM_VOTE_DATA_NEEDS_OID"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_HASHES_FROM_VOTE_DATA_HASH_DATA_MUST_BE_SEQUENCE"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_HASHES_FROM_VOTE_DATA_NOT_TWO_ITEMS"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_HASHES_FROM_VOTE_DATA_UNSUPPORTED_HASH_FUNC"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_HASHES_FROM_VOTE_DATA_UNSUPPORTED_HASH_TYPE"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_HASHES_FROM_VOTE_DATA_SECOND_MUST_BE_SEQUENCE"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_FEES_AMOUNT"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_FEES_FROM_VOTE_INVALID_INPUT"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_FEES_IN_PERMANENT_VOTE"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_FEES_PAY_TO_INVALID"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_FEES_TOKEN_NOT_TOKEN"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"FEE_IS_QUOTE"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"FEE_QUOTE_MISSING_FEES"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"FEE_NOT_QUOTE"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_FEES_KIND_MISSING"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">"MALFORMED_FEES_QUOTE_INVALID"</span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol"> = ...</span></div></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-icon-text)"></path></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html">@keetanetwork/keetanet-client</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">KeetaSDK Documentation</p></footer><div class="overlay"></div></body></html>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>crypto | @keetanetwork/keetanet-client</title><meta name="description" content="Documentation for @keetanetwork/keetanet-client"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script><link rel="stylesheet" href="../assets/typedoc-github-style.css"/></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title"><img src="../assets/logo-keeta-light.svg" alt="Keeta Logo" class="keeta-logo-light" width="50" height="20"/><img src="../assets/logo-keeta-dark.svg" alt="Keeta Logo" class="keeta-logo-dark" width="50" height="20"/>@keetanetwork/keetanet-client</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M17.9421 17.0578L14.0304 13.1469C15.1642 11.7857 15.7295 10.0398 15.6089 8.27245C15.4882 6.50506 14.6908 4.85223 13.3825 3.65779C12.0743 2.46335 10.3559 1.81926 8.58486 1.85951C6.81382 1.89976 5.12647 2.62125 3.87383 3.87389C2.62118 5.12653 1.89969 6.81388 1.85944 8.58493C1.8192 10.356 2.46328 12.0744 3.65772 13.3826C4.85217 14.6909 6.50499 15.4883 8.27238 15.6089C10.0398 15.7296 11.7856 15.1642 13.1468 14.0305L17.0577 17.9422C17.1158 18.0003 17.1848 18.0463 17.2606 18.0777C17.3365 18.1092 17.4178 18.1253 17.4999 18.1253C17.5821 18.1253 17.6634 18.1092 17.7392 18.0777C17.8151 18.0463 17.8841 18.0003 17.9421 17.9422C18.0002 17.8841 18.0463 17.8152 18.0777 17.7393C18.1091 17.6634 18.1253 17.5821 18.1253 17.5C18.1253 17.4179 18.1091 17.3366 18.0777 17.2607C18.0463 17.1848 18.0002 17.1159 17.9421 17.0578ZM3.12493 8.75C3.12493 7.63748 3.45483 6.54994 4.07292 5.62492C4.691 4.69989 5.56951 3.97892 6.59734 3.55318C7.62517 3.12743 8.75617 3.01604 9.84732 3.23308C10.9385 3.45012 11.9407 3.98585 12.7274 4.77252C13.5141 5.55919 14.0498 6.56147 14.2669 7.65262C14.4839 8.74376 14.3725 9.87476 13.9468 10.9026C13.521 11.9304 12.8 12.8089 11.875 13.427C10.95 14.0451 9.86245 14.375 8.74993 14.375C7.2586 14.3733 5.82882 13.7802 4.77429 12.7256C3.71975 11.6711 3.12659 10.2413 3.12493 8.75Z" fill="var(--color-icon-text)"></path></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><rect x="1" y="3" width="14" height="2" fill="var(--color-icon-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-icon-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-icon-text)"></rect></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="../modules/KeetaNetSDK.html">KeetaNetSDK</a></li><li><a href="../modules/KeetaNetSDK.Referenced.html">Referenced</a></li><li><a href="../modules/KeetaNetSDK.Referenced.src_lib_utils_helper.html">src/lib/utils/helper</a></li><li><a href="" aria-current="page">crypto</a></li></ul><h1>Variable crypto<code class="tsd-tag">Const</code></h1></div><div class="tsd-signature"><span class="tsd-kind-variable">crypto</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{</span><br/> <span class="tsd-kind-property">createCipheriv</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{</span><br/> <span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">algorithm</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">CipherCCMTypes</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">key</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">CipherKey</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">iv</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">BinaryLike</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">CipherCCMOptions</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">CipherCCM</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">algorithm</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">CipherOCBTypes</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">key</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">CipherKey</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">iv</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">BinaryLike</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">CipherOCBOptions</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">CipherOCB</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">algorithm</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">CipherGCMTypes</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">key</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">CipherKey</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">iv</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">BinaryLike</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">CipherGCMOptions</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">CipherGCM</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">algorithm</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">key</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">CipherKey</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">iv</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">BinaryLike</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">TransformOptions</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Cipher</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">createDecipheriv</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{</span><br/> <span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">algorithm</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">CipherCCMTypes</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">key</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">CipherKey</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">iv</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">BinaryLike</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">CipherCCMOptions</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">DecipherCCM</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">algorithm</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">CipherOCBTypes</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">key</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">CipherKey</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">iv</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">BinaryLike</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">CipherOCBOptions</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">DecipherOCB</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">algorithm</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">CipherGCMTypes</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">key</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">CipherKey</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">iv</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">BinaryLike</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">CipherGCMOptions</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">DecipherGCM</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">algorithm</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">key</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">CipherKey</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">iv</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">BinaryLike</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">TransformOptions</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Decipher</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">randomBytes</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{</span><br/> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">size</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Buffer</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">size</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">callback</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">err</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">Error</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">buf</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Buffer</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">randomUUID</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">|</span> (<br/> <span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">RandomUUIDOptions</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-symbol">`</span><span class="tsd-signature-symbol">${</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">}</span><span class="tsd-signature-type">-</span><span class="tsd-signature-symbol">${</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">}</span><span class="tsd-signature-type">-</span><span class="tsd-signature-symbol">${</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">}</span><span class="tsd-signature-type">-</span><span class="tsd-signature-symbol">${</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">}</span><span class="tsd-signature-type">-</span><span class="tsd-signature-symbol">${</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">`</span><br/> )<br/> <span class="tsd-signature-symbol">|</span> (<span class="tsd-signature-symbol">()</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">string</span>)<span class="tsd-signature-symbol">;</span><br/><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol"> = ...</span></div><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter"><h5 id="createcipheriv"><span class="tsd-kind-property">createCipheriv</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{</span><br/> <span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">algorithm</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">CipherCCMTypes</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">key</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">CipherKey</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">iv</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">BinaryLike</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">CipherCCMOptions</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">CipherCCM</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">algorithm</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">CipherOCBTypes</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">key</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">CipherKey</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">iv</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">BinaryLike</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">CipherOCBOptions</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">CipherOCB</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">algorithm</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">CipherGCMTypes</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">key</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">CipherKey</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">iv</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">BinaryLike</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">CipherGCMOptions</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">CipherGCM</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">algorithm</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">key</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">CipherKey</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">iv</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">BinaryLike</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">TransformOptions</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Cipher</span><span class="tsd-signature-symbol">;</span><br/><span class="tsd-signature-symbol">}</span></h5></li><li class="tsd-parameter"><h5 id="createdecipheriv"><span class="tsd-kind-property">createDecipheriv</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{</span><br/> <span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">algorithm</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">CipherCCMTypes</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">key</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">CipherKey</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">iv</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">BinaryLike</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">CipherCCMOptions</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">DecipherCCM</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">algorithm</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">CipherOCBTypes</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">key</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">CipherKey</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">iv</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">BinaryLike</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">CipherOCBOptions</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">DecipherOCB</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">algorithm</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">CipherGCMTypes</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">key</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">CipherKey</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">iv</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">BinaryLike</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">CipherGCMOptions</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">DecipherGCM</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">algorithm</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">key</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">CipherKey</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">iv</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">BinaryLike</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">TransformOptions</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Decipher</span><span class="tsd-signature-symbol">;</span><br/><span class="tsd-signature-symbol">}</span></h5></li><li class="tsd-parameter"><h5 id="randombytes"><span class="tsd-kind-property">randomBytes</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{</span><br/> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">size</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Buffer</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">size</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">callback</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">err</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">Error</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">buf</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Buffer</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">;</span><br/><span class="tsd-signature-symbol">}</span></h5></li><li class="tsd-parameter"><h5 id="randomuuid"><span class="tsd-kind-property">randomUUID</span><span class="tsd-signature-symbol">: </span><br/> <span class="tsd-signature-symbol">|</span> (<br/> <span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">RandomUUIDOptions</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-symbol">`</span><span class="tsd-signature-symbol">${</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">}</span><span class="tsd-signature-type">-</span><span class="tsd-signature-symbol">${</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">}</span><span class="tsd-signature-type">-</span><span class="tsd-signature-symbol">${</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">}</span><span class="tsd-signature-type">-</span><span class="tsd-signature-symbol">${</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">}</span><span class="tsd-signature-type">-</span><span class="tsd-signature-symbol">${</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">`</span><br/> )<br/> <span class="tsd-signature-symbol">|</span> (<span class="tsd-signature-symbol">()</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">string</span>)</h5></li></ul></div></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-icon-text)"></path></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html">@keetanetwork/keetanet-client</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">KeetaSDK Documentation</p></footer><div class="overlay"></div></body></html>
|
package/lib/block/index.d.ts
CHANGED
|
@@ -1,15 +1,19 @@
|
|
|
1
|
-
import type { GenericAccount } from '../account';
|
|
2
|
-
import Account from '../account';
|
|
1
|
+
import type { GenericAccount, MultisigAddress } from '../account';
|
|
2
|
+
import Account, { AccountKeyAlgorithm } from '../account';
|
|
3
3
|
import { BufferStorage } from '../utils/buffer';
|
|
4
4
|
import * as ASN1 from '../utils/asn1';
|
|
5
5
|
import type { ToJSONSerializable, ToJSONSerializableOptions } from '../utils/conversion';
|
|
6
6
|
import * as Operations from './operations';
|
|
7
|
+
export declare enum BlockPurpose {
|
|
8
|
+
GENERIC = 0,
|
|
9
|
+
FEE = 1
|
|
10
|
+
}
|
|
7
11
|
export declare enum AdjustMethod {
|
|
8
12
|
ADD = 0,
|
|
9
13
|
SUBTRACT = 1,
|
|
10
14
|
SET = 2
|
|
11
15
|
}
|
|
12
|
-
export declare function
|
|
16
|
+
export declare function toAdjustMethod(value: unknown): AdjustMethod;
|
|
13
17
|
type BlockHashString = string & {
|
|
14
18
|
readonly __blockhash: never;
|
|
15
19
|
};
|
|
@@ -41,8 +45,9 @@ type BlockSignature = Buffer;
|
|
|
41
45
|
/**
|
|
42
46
|
* Representation of the block
|
|
43
47
|
*/
|
|
44
|
-
export interface
|
|
48
|
+
export interface BlockV1JSON {
|
|
45
49
|
version: 1;
|
|
50
|
+
purpose?: BlockPurpose.GENERIC;
|
|
46
51
|
date: string | Date;
|
|
47
52
|
previous: string | BlockHash;
|
|
48
53
|
network: string | NetworkID;
|
|
@@ -52,16 +57,37 @@ export interface BlockJSON {
|
|
|
52
57
|
signature: string | BlockSignature;
|
|
53
58
|
operations: Operations.BlockJSONOperations[] | Operations.BlockOperations[];
|
|
54
59
|
}
|
|
55
|
-
export type
|
|
60
|
+
export type BlockV1JSONIncomplete = Partial<BlockV1JSON>;
|
|
56
61
|
/**
|
|
57
62
|
* Output of block suitable to JSON serialization
|
|
58
63
|
*/
|
|
59
|
-
|
|
60
|
-
|
|
64
|
+
/**
|
|
65
|
+
* Representation of the block V2
|
|
66
|
+
*/
|
|
67
|
+
export interface BlockV2JSON {
|
|
68
|
+
version: 2;
|
|
69
|
+
purpose: BlockPurpose;
|
|
70
|
+
date: string | Date;
|
|
71
|
+
previous: string | BlockHash;
|
|
72
|
+
network: string | NetworkID;
|
|
73
|
+
subnet?: string | SubnetID;
|
|
74
|
+
account: string | GenericAccount;
|
|
75
|
+
signer: BlockSignerFieldJSON;
|
|
76
|
+
signatures: (string | BlockSignature)[];
|
|
77
|
+
operations: (Operations.BlockJSONOperations | Operations.BlockOperations)[];
|
|
78
|
+
}
|
|
79
|
+
export type BlockV2JSONIncomplete = Partial<BlockV2JSON>;
|
|
80
|
+
export type BlockJSONOutput = ReturnType<Block['toJSON']>;
|
|
81
|
+
export type BlockJSONOutputSerialized = ToJSONSerializable<BlockJSONOutput>;
|
|
82
|
+
export type BlockJSONOutputIncomplete = Partial<BlockJSONOutputSerialized>;
|
|
83
|
+
export type BlockJSON = (Omit<BlockV1JSON, 'version'> | Omit<BlockV2JSON, 'version'>) & {
|
|
84
|
+
version: number;
|
|
85
|
+
};
|
|
86
|
+
export type BlockJSONIncomplete = Partial<BlockJSON>;
|
|
61
87
|
/**
|
|
62
88
|
* Map input to our values
|
|
63
89
|
*/
|
|
64
|
-
interface
|
|
90
|
+
interface BlockV1UnsignedCanonical {
|
|
65
91
|
version: 1;
|
|
66
92
|
date: Date;
|
|
67
93
|
previous: BlockHash;
|
|
@@ -70,17 +96,45 @@ interface BlockUnsignedCanonical {
|
|
|
70
96
|
operations: Operations.BlockOperations[];
|
|
71
97
|
network: NetworkID;
|
|
72
98
|
subnet: SubnetID | undefined;
|
|
73
|
-
signature
|
|
99
|
+
signature?: never;
|
|
74
100
|
}
|
|
75
|
-
interface
|
|
101
|
+
interface BlockV1Canonical extends Omit<BlockV1UnsignedCanonical, 'signature'> {
|
|
76
102
|
signature: BlockSignature;
|
|
77
103
|
}
|
|
78
|
-
|
|
104
|
+
interface BlockV2UnsignedCanonical {
|
|
105
|
+
version: 2;
|
|
106
|
+
date: Date;
|
|
107
|
+
purpose: BlockPurpose;
|
|
108
|
+
previous: BlockHash;
|
|
109
|
+
account: GenericAccount;
|
|
110
|
+
signer: BlockSignerField;
|
|
111
|
+
operations: Operations.BlockOperations[];
|
|
112
|
+
network: NetworkID;
|
|
113
|
+
subnet: SubnetID | undefined;
|
|
114
|
+
signatures?: never;
|
|
115
|
+
}
|
|
116
|
+
interface BlockV2Canonical extends Omit<BlockV2UnsignedCanonical, 'signatures'> {
|
|
117
|
+
signatures: BlockSignature[];
|
|
118
|
+
}
|
|
119
|
+
type OmitLastArrayValue<T> = Required<T> extends [...infer Head, any] ? Head : never;
|
|
120
|
+
type BlockV1ASN1WithoutSignature = ASN1.ValidateASN1.SchemaMap<OmitLastArrayValue<typeof BlockV1ASN1Schema>>;
|
|
121
|
+
type BlockV2ASN1WithoutSignature = ASN1.ValidateASN1.SchemaMap<OmitLastArrayValue<typeof BlockV2ASN1Schema.contains>>;
|
|
122
|
+
type MultisigSignerFieldJSON = [MultisigAddress | string, (MultisigSignerField | Account | string)[]];
|
|
123
|
+
type BlockSignerFieldJSON = Account | string | MultisigSignerFieldJSON;
|
|
124
|
+
type BlockASN1SchemaWithoutSignature = BlockV1ASN1WithoutSignature | {
|
|
125
|
+
type: 'context';
|
|
126
|
+
kind: 'explicit';
|
|
127
|
+
value: 1;
|
|
128
|
+
contains: BlockV2ASN1WithoutSignature;
|
|
129
|
+
};
|
|
130
|
+
type MultisigSignerField = [MultisigAddress, (MultisigSignerField | Account)[]];
|
|
131
|
+
type BlockSignerField = Account | [MultisigAddress, BlockSignerField[]];
|
|
132
|
+
type BlockSignatureField = [BlockSignature, ...BlockSignature[]];
|
|
79
133
|
/**
|
|
80
134
|
* Block: An item which contains a number of operations (transactions) which
|
|
81
135
|
* originated from an account at a particular instant
|
|
82
136
|
*/
|
|
83
|
-
export declare class Block implements
|
|
137
|
+
export declare class Block implements Omit<BlockV2Canonical, 'version'> {
|
|
84
138
|
#private;
|
|
85
139
|
static isInstance: (obj: any, strict?: boolean) => obj is Block;
|
|
86
140
|
static Hash: typeof BlockHash;
|
|
@@ -98,32 +152,41 @@ export declare class Block implements BlockCanonical {
|
|
|
98
152
|
};
|
|
99
153
|
static NO_PREVIOUS: string;
|
|
100
154
|
static AdjustMethod: typeof AdjustMethod;
|
|
155
|
+
static Purpose: typeof BlockPurpose;
|
|
101
156
|
static Builder: typeof BlockBuilder;
|
|
102
|
-
readonly version: 1;
|
|
157
|
+
readonly version: 1 | 2;
|
|
158
|
+
readonly purpose: BlockPurpose;
|
|
103
159
|
readonly date: Date;
|
|
104
160
|
readonly previous: BlockHash;
|
|
105
161
|
readonly account: GenericAccount;
|
|
106
|
-
readonly
|
|
107
|
-
readonly operations: BlockCanonical['operations'];
|
|
162
|
+
readonly operations: BlockV2Canonical['operations'];
|
|
108
163
|
readonly network: NetworkID;
|
|
109
164
|
readonly subnet: SubnetID | undefined;
|
|
110
|
-
readonly
|
|
111
|
-
readonly
|
|
165
|
+
readonly signer: BlockSignerField;
|
|
166
|
+
readonly signatures: BlockSignatureField;
|
|
167
|
+
get principal(): Account<AccountKeyAlgorithm.ECDSA_SECP256K1 | AccountKeyAlgorithm.ED25519 | AccountKeyAlgorithm.ECDSA_SECP256R1> | MultisigAddress;
|
|
112
168
|
readonly $opening: boolean;
|
|
113
|
-
static fromUnsignedJSON(input:
|
|
114
|
-
static isValidJSON(block:
|
|
115
|
-
|
|
169
|
+
static fromUnsignedJSON(input: BlockV1UnsignedCanonical | BlockV2UnsignedCanonical): Promise<Block>;
|
|
170
|
+
static isValidJSON<Version extends 1 | 2>(block: unknown, version?: Version): block is ({
|
|
171
|
+
1: BlockV1JSON;
|
|
172
|
+
2: BlockV2JSON;
|
|
173
|
+
}[Version]);
|
|
174
|
+
constructor(input: Buffer | ArrayBuffer | BlockJSON | BlockJSONOutput | BlockJSONOutputSerialized | Block | string);
|
|
116
175
|
static getAccountOpeningHash(account: GenericAccount): BlockHash;
|
|
117
|
-
toBytes(
|
|
118
|
-
protected static
|
|
176
|
+
toBytes(includeSignatures?: boolean): ArrayBuffer;
|
|
177
|
+
protected static getV1ASN1ContainerWithoutSignature(input: BlockV1UnsignedCanonical | BlockV1Canonical): BlockV1ASN1WithoutSignature;
|
|
178
|
+
protected static getV2ASN1ContainerWithoutSignature(input: BlockV2UnsignedCanonical | BlockV2Canonical): BlockV2ASN1WithoutSignature;
|
|
179
|
+
protected static getASN1ContainerWithoutSignature(input: BlockV1UnsignedCanonical | BlockV1Canonical | BlockV2UnsignedCanonical | BlockV2Canonical): BlockASN1SchemaWithoutSignature;
|
|
119
180
|
toJSON(options?: ToJSONSerializableOptions): {
|
|
120
181
|
$binary?: string;
|
|
121
|
-
|
|
182
|
+
signature?: string;
|
|
183
|
+
signatures?: string[];
|
|
184
|
+
version: 1 | 2;
|
|
122
185
|
date: Date;
|
|
123
186
|
previous: BlockHash;
|
|
124
187
|
account: GenericAccount;
|
|
125
|
-
|
|
126
|
-
|
|
188
|
+
purpose: BlockPurpose;
|
|
189
|
+
signer: Account | [MultisigAddress, any[]];
|
|
127
190
|
network: bigint;
|
|
128
191
|
subnet: bigint | undefined;
|
|
129
192
|
operations: Operations.ExportedJSONOperation[];
|
|
@@ -140,7 +203,7 @@ export declare class Block implements BlockCanonical {
|
|
|
140
203
|
*/
|
|
141
204
|
get hash(): BlockHash;
|
|
142
205
|
}
|
|
143
|
-
export declare class BlockBuilder
|
|
206
|
+
export declare class BlockBuilder {
|
|
144
207
|
#private;
|
|
145
208
|
static isInstance: (obj: any, strict?: boolean) => obj is BlockBuilder;
|
|
146
209
|
static OperationType: typeof Operations.OperationType;
|
|
@@ -157,32 +220,35 @@ export declare class BlockBuilder implements BlockJSONIncomplete {
|
|
|
157
220
|
MANAGE_CERTIFICATE: typeof Operations.BlockOperationMANAGE_CERTIFICATE;
|
|
158
221
|
};
|
|
159
222
|
static NO_PREVIOUS: string;
|
|
160
|
-
constructor(block?: BlockJSONIncomplete |
|
|
223
|
+
constructor(block?: BlockJSON | BlockJSONIncomplete | BlockJSONOutputSerialized | ReturnType<Block['toJSON']> | Block | ArrayBuffer | string);
|
|
161
224
|
protected get currentBlock(): Block | BlockJSONIncomplete;
|
|
162
225
|
protected get currentWIP(): BlockJSONIncomplete;
|
|
163
226
|
protected get currentBlockSealed(): Block;
|
|
164
227
|
toJSON(opts?: ToJSONSerializableOptions): {
|
|
165
228
|
$binary?: string;
|
|
166
|
-
|
|
229
|
+
signature?: string;
|
|
230
|
+
signatures?: string[];
|
|
231
|
+
version: 1 | 2;
|
|
167
232
|
date: Date;
|
|
168
233
|
previous: BlockHash;
|
|
169
234
|
account: GenericAccount;
|
|
170
|
-
|
|
171
|
-
|
|
235
|
+
purpose: BlockPurpose;
|
|
236
|
+
signer: Account | [MultisigAddress, any[]];
|
|
172
237
|
network: bigint;
|
|
173
238
|
subnet: bigint | undefined;
|
|
174
239
|
operations: Operations.ExportedJSONOperation[];
|
|
175
240
|
$hash: BlockHash;
|
|
176
241
|
$opening: boolean;
|
|
177
242
|
} | {
|
|
178
|
-
version:
|
|
243
|
+
version: number | undefined;
|
|
179
244
|
date: Date | undefined;
|
|
180
245
|
previous: BlockHash | undefined;
|
|
181
246
|
account: GenericAccount | undefined;
|
|
182
|
-
signer:
|
|
247
|
+
signer: BlockSignerFieldJSON | undefined;
|
|
183
248
|
network: bigint | undefined;
|
|
184
249
|
subnet: bigint | undefined;
|
|
185
250
|
operations: Operations.BlockOperations[] | undefined;
|
|
251
|
+
purpose: BlockPurpose;
|
|
186
252
|
$opening: boolean | undefined;
|
|
187
253
|
};
|
|
188
254
|
seal(): Promise<Block>;
|
|
@@ -190,8 +256,8 @@ export declare class BlockBuilder implements BlockJSONIncomplete {
|
|
|
190
256
|
get sealed(): boolean;
|
|
191
257
|
get block(): Block | undefined;
|
|
192
258
|
get hash(): BlockHash | undefined;
|
|
193
|
-
set signer(signer:
|
|
194
|
-
get signer():
|
|
259
|
+
set signer(signer: BlockV2JSONIncomplete['signer'] | BlockV2JSON['signer']);
|
|
260
|
+
get signer(): BlockV2JSON['signer'] | undefined;
|
|
195
261
|
set account(account: string | GenericAccount | undefined);
|
|
196
262
|
get account(): GenericAccount | undefined;
|
|
197
263
|
set previous(blockhash: string | BlockHash | undefined);
|
|
@@ -199,8 +265,10 @@ export declare class BlockBuilder implements BlockJSONIncomplete {
|
|
|
199
265
|
get $opening(): boolean | undefined;
|
|
200
266
|
set date(date: Date | string | undefined);
|
|
201
267
|
get date(): Date | undefined;
|
|
202
|
-
set version(version:
|
|
203
|
-
get version():
|
|
268
|
+
set version(version: number | undefined);
|
|
269
|
+
get version(): number | undefined;
|
|
270
|
+
set purpose(purpose: BlockPurpose | undefined);
|
|
271
|
+
get purpose(): BlockPurpose;
|
|
204
272
|
set network(network: NetworkID | string | undefined);
|
|
205
273
|
get network(): NetworkID | undefined;
|
|
206
274
|
set subnet(subnet: SubnetID | string | undefined);
|