@keetanetwork/keetanet-client 0.10.5 → 0.12.2

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.
Files changed (255) hide show
  1. package/api/index.d.ts +23 -7
  2. package/api/node.d.ts +27 -2
  3. package/api/vote.d.ts +4 -6
  4. package/client/builder.d.ts +17 -0
  5. package/client/client_common_tests.d.ts +1 -1
  6. package/client/index-browser.d.ts +112 -3
  7. package/client/index-browser.js +18234 -29816
  8. package/client/index.d.ts +112 -3
  9. package/client/index.js +4070 -6581
  10. package/config/index.d.ts +6 -1
  11. package/docs/assets/hierarchy.js +1 -1
  12. package/docs/assets/search.js +1 -1
  13. package/docs/classes/KeetaNetSDK.Client.html +31 -11
  14. package/docs/classes/KeetaNetSDK.Referenced.Account.html +31 -21
  15. package/docs/classes/KeetaNetSDK.Referenced.BaseSet.html +2 -2
  16. package/docs/classes/KeetaNetSDK.Referenced.Block.html +2 -4
  17. package/docs/classes/KeetaNetSDK.Referenced.BlockBuilder.html +1 -1
  18. package/docs/classes/KeetaNetSDK.Referenced.BlockHash.html +4 -5
  19. package/docs/classes/KeetaNetSDK.Referenced.BlockOperation.html +1 -1
  20. package/docs/classes/KeetaNetSDK.Referenced.BlockOperationCREATE_IDENTIFIER.html +2 -2
  21. package/docs/classes/KeetaNetSDK.Referenced.BlockOperationMANAGE_CERTIFICATE.html +12 -0
  22. package/docs/classes/KeetaNetSDK.Referenced.BlockOperationMODIFY_PERMISSIONS.html +2 -2
  23. package/docs/classes/KeetaNetSDK.Referenced.BlockOperationRECEIVE.html +2 -2
  24. package/docs/classes/KeetaNetSDK.Referenced.BlockOperationSEND.html +2 -2
  25. package/docs/classes/KeetaNetSDK.Referenced.BlockOperationSET_INFO.html +2 -2
  26. package/docs/classes/KeetaNetSDK.Referenced.BlockOperationSET_REP.html +2 -2
  27. package/docs/classes/KeetaNetSDK.Referenced.BlockOperationTOKEN_ADMIN_MODIFY_BALANCE.html +2 -2
  28. package/docs/classes/KeetaNetSDK.Referenced.BlockOperationTOKEN_ADMIN_SUPPLY.html +2 -2
  29. package/docs/classes/{KeetaNetSDK.Referenced.src_lib_utils_certificate.Certificate.html → KeetaNetSDK.Referenced.Certificate.html} +31 -14
  30. package/docs/classes/KeetaNetSDK.Referenced.CertificateBundle.html +8 -0
  31. package/docs/classes/KeetaNetSDK.Referenced.CertificateHash.html +16 -0
  32. package/docs/classes/KeetaNetSDK.Referenced.ECDSAKeyPair.html +1 -1
  33. package/docs/classes/KeetaNetSDK.Referenced.ECDSASECP256K1KeyPair.html +1 -1
  34. package/docs/classes/KeetaNetSDK.Referenced.ECDSASECP256K1PrivateKey.html +1 -1
  35. package/docs/classes/KeetaNetSDK.Referenced.ECDSASECP256K1PublicKey.html +1 -1
  36. package/docs/classes/KeetaNetSDK.Referenced.ECDSASECP256K1Signature.html +1 -1
  37. package/docs/classes/KeetaNetSDK.Referenced.ECDSASECP256R1KeyPair.html +1 -1
  38. package/docs/classes/KeetaNetSDK.Referenced.ECDSASECP256R1PrivateKey.html +1 -1
  39. package/docs/classes/KeetaNetSDK.Referenced.ECDSASECP256R1PublicKey.html +1 -1
  40. package/docs/classes/KeetaNetSDK.Referenced.ECDSASECP256R1Signature.html +1 -1
  41. package/docs/classes/KeetaNetSDK.Referenced.ED25519KeyPair.html +1 -1
  42. package/docs/classes/KeetaNetSDK.Referenced.ED25519PrivateKey.html +1 -1
  43. package/docs/classes/KeetaNetSDK.Referenced.ED25519PublicKey.html +1 -1
  44. package/docs/classes/KeetaNetSDK.Referenced.ED25519Signature.html +1 -1
  45. package/docs/classes/KeetaNetSDK.Referenced.ExternalKeyPair.html +1 -1
  46. package/docs/classes/KeetaNetSDK.Referenced.ExternalSet.html +1 -1
  47. package/docs/classes/KeetaNetSDK.Referenced.IdentifierKey.html +1 -1
  48. package/docs/classes/KeetaNetSDK.Referenced.IdentifierKeyPair.html +4 -4
  49. package/docs/classes/KeetaNetSDK.Referenced.KeetaNetError.html +1 -1
  50. package/docs/classes/KeetaNetSDK.Referenced.KeyInterface.html +1 -1
  51. package/docs/classes/KeetaNetSDK.Referenced.KeyStorage.html +1 -1
  52. package/docs/classes/KeetaNetSDK.Referenced.Ledger.html +4 -2
  53. package/docs/classes/KeetaNetSDK.Referenced.LedgerAtomicInterface.html +3 -1
  54. package/docs/classes/KeetaNetSDK.Referenced.LedgerRequestCache.html +1 -1
  55. package/docs/classes/KeetaNetSDK.Referenced.Node.html +1 -1
  56. package/docs/classes/KeetaNetSDK.Referenced.P2PSwitch.html +3 -3
  57. package/docs/classes/KeetaNetSDK.Referenced.PendingAccount.html +3 -2
  58. package/docs/classes/KeetaNetSDK.Referenced.PermissionSetHolder.html +1 -1
  59. package/docs/classes/KeetaNetSDK.Referenced.Permissions.html +2 -3
  60. package/docs/classes/KeetaNetSDK.Referenced.PossiblyExpiredVote.html +5 -3
  61. package/docs/classes/KeetaNetSDK.Referenced.RequestTiming.html +16 -2
  62. package/docs/classes/KeetaNetSDK.Referenced.SignatureStorage.html +1 -1
  63. package/docs/classes/KeetaNetSDK.Referenced.Stats.html +3 -2
  64. package/docs/classes/KeetaNetSDK.Referenced.UserClientBuilder.html +3 -2
  65. package/docs/classes/KeetaNetSDK.Referenced.Vote.html +5 -5
  66. package/docs/classes/KeetaNetSDK.Referenced.VoteBlockBundle.html +35 -0
  67. package/docs/classes/KeetaNetSDK.Referenced.VoteBlockHash.html +1 -1
  68. package/docs/classes/KeetaNetSDK.Referenced.VoteBlockHashMap.html +9 -8
  69. package/docs/classes/KeetaNetSDK.Referenced.VoteBuilder.html +2 -1
  70. package/docs/classes/KeetaNetSDK.Referenced.VoteHash.html +1 -1
  71. package/docs/classes/KeetaNetSDK.Referenced.VoteStaple.html +23 -29
  72. package/docs/classes/KeetaNetSDK.Referenced.VoteStapleHash.html +1 -1
  73. package/docs/classes/KeetaNetSDK.Referenced.src_lib_utils_asn1.BufferStorageASN1.html +1 -1
  74. package/docs/classes/KeetaNetSDK.Referenced.src_lib_utils_buffer.BufferStorage.html +1 -1
  75. package/docs/classes/KeetaNetSDK.Referenced.src_lib_utils_certificate.CertificateBuilder.html +1 -1
  76. package/docs/classes/KeetaNetSDK.UserClient.html +57 -15
  77. package/docs/documents/GETTING-STARTED.html +5 -2
  78. package/docs/enums/KeetaNetSDK.Referenced.AccountKeyAlgorithm.html +2 -1
  79. package/docs/enums/KeetaNetSDK.Referenced.AdjustMethod.html +4 -4
  80. package/docs/enums/KeetaNetSDK.Referenced.BaseFlag.html +2 -1
  81. package/docs/enums/KeetaNetSDK.Referenced.OperationType.html +2 -1
  82. package/docs/functions/KeetaNetSDK.Referenced.src_config.getDefaultConfig.html +2 -2
  83. package/docs/functions/KeetaNetSDK.Referenced.src_config.getNetworkAlias.html +1 -1
  84. package/docs/functions/KeetaNetSDK.Referenced.src_config.getValidation.html +1 -1
  85. package/docs/functions/KeetaNetSDK.Referenced.src_config.isNetwork.html +1 -1
  86. package/docs/functions/KeetaNetSDK.Referenced.src_lib_utils_asn1.isASN1Object.html +1 -0
  87. package/docs/functions/KeetaNetSDK.Referenced.src_lib_utils_buffer.ZlibDeflateAsync.html +1 -0
  88. package/docs/functions/KeetaNetSDK.Referenced.src_lib_utils_buffer.ZlibInflateAsync.html +1 -0
  89. package/docs/functions/KeetaNetSDK.Referenced.src_lib_utils_conversion.objectToBuffer.html +1 -1
  90. package/docs/functions/KeetaNetSDK.Referenced.src_lib_utils_conversion.toJSONSerializable.html +1 -1
  91. package/docs/functions/KeetaNetSDK.Referenced.src_lib_utils_helper.booleanEnv.html +1 -0
  92. package/docs/functions/KeetaNetSDK.Referenced.src_lib_utils_helper.nonNullable.html +1 -0
  93. package/docs/hierarchy.html +1 -1
  94. package/docs/interfaces/KeetaNetSDK.Referenced.ACLEntry.html +1 -1
  95. package/docs/interfaces/KeetaNetSDK.Referenced.ACLUpdate.html +1 -1
  96. package/docs/interfaces/KeetaNetSDK.Referenced.ASN1ExplicitContextTag.html +1 -1
  97. package/docs/interfaces/KeetaNetSDK.Referenced.ASN1ImplicitContextTag.html +1 -1
  98. package/docs/interfaces/KeetaNetSDK.Referenced.ASN1Object.html +1 -1
  99. package/docs/interfaces/KeetaNetSDK.Referenced.BaseExternalKeyPairFunctions.html +1 -1
  100. package/docs/interfaces/KeetaNetSDK.Referenced.BaseGenerationConfig.html +1 -1
  101. package/docs/interfaces/KeetaNetSDK.Referenced.BlockCanonical.html +2 -2
  102. package/docs/interfaces/KeetaNetSDK.Referenced.BlockJSON.html +2 -2
  103. package/docs/interfaces/KeetaNetSDK.Referenced.BlockJSONOperation.html +1 -1
  104. package/docs/interfaces/KeetaNetSDK.Referenced.BlockJSONOperationCREATE_IDENTIFIER.html +1 -1
  105. package/docs/interfaces/KeetaNetSDK.Referenced.BlockJSONOperationMANAGE_CERTIFICATE.html +6 -0
  106. package/docs/interfaces/KeetaNetSDK.Referenced.BlockJSONOperationMANAGE_CERTIFICATESerializable.html +5 -0
  107. package/docs/interfaces/KeetaNetSDK.Referenced.BlockJSONOperationMODIFY_PERMISSIONS.html +1 -1
  108. package/docs/interfaces/KeetaNetSDK.Referenced.BlockJSONOperationRECEIVE.html +1 -1
  109. package/docs/interfaces/KeetaNetSDK.Referenced.BlockJSONOperationSEND.html +1 -1
  110. package/docs/interfaces/KeetaNetSDK.Referenced.BlockJSONOperationSET_INFO.html +1 -1
  111. package/docs/interfaces/KeetaNetSDK.Referenced.BlockJSONOperationSET_REP.html +1 -1
  112. package/docs/interfaces/KeetaNetSDK.Referenced.BlockJSONOperationTOKEN_ADMIN_MODIFY_BALANCE.html +1 -1
  113. package/docs/interfaces/KeetaNetSDK.Referenced.BlockJSONOperationTOKEN_ADMIN_SUPPLY.html +2 -2
  114. package/docs/interfaces/KeetaNetSDK.Referenced.BlockUnsignedCanonical.html +2 -2
  115. package/docs/interfaces/KeetaNetSDK.Referenced.CertificateWithIntermediates.html +3 -0
  116. package/docs/interfaces/KeetaNetSDK.Referenced.CertificateWithIntermediatesResponse.html +3 -0
  117. package/docs/interfaces/KeetaNetSDK.Referenced.ComputedBlocksEffectFields.html +3 -2
  118. package/docs/interfaces/KeetaNetSDK.Referenced.Constructor.html +1 -1
  119. package/docs/interfaces/KeetaNetSDK.Referenced.DisposableTimingHandle.html +7 -0
  120. package/docs/interfaces/KeetaNetSDK.Referenced.ExternalKeyPairFunctionsNoEncryption.html +1 -1
  121. package/docs/interfaces/KeetaNetSDK.Referenced.ExternalKeyPairFunctionsSupportsEncryption.html +1 -1
  122. package/docs/interfaces/KeetaNetSDK.Referenced.FeeAmountAndToken.html +5 -0
  123. package/docs/interfaces/KeetaNetSDK.Referenced.FeeAmountAndTokenJSON.html +4 -0
  124. package/docs/interfaces/KeetaNetSDK.Referenced.IdentifierCreateRequest.html +2 -2
  125. package/docs/interfaces/KeetaNetSDK.Referenced.InitialConfigSupply.html +1 -1
  126. package/docs/interfaces/KeetaNetSDK.Referenced.InstanceSet.html +13 -0
  127. package/docs/interfaces/KeetaNetSDK.Referenced.KVGenericOptionsType.html +2 -0
  128. package/docs/interfaces/KeetaNetSDK.Referenced.KVSetOptionsType.html +3 -2
  129. package/docs/interfaces/KeetaNetSDK.Referenced.KVStorageProviderAPI.html +2 -2
  130. package/docs/interfaces/KeetaNetSDK.Referenced.LedgerConfig.html +4 -2
  131. package/docs/interfaces/KeetaNetSDK.Referenced.LedgerStatistics.html +3 -2
  132. package/docs/interfaces/KeetaNetSDK.Referenced.LedgerStorageAPI.html +15 -7
  133. package/docs/interfaces/KeetaNetSDK.Referenced.LedgerStorageTransactionBase.html +6 -0
  134. package/docs/interfaces/KeetaNetSDK.Referenced.ModifyTokenBalanceEntry.html +1 -1
  135. package/docs/interfaces/KeetaNetSDK.Referenced.NodeConfig.html +3 -3
  136. package/docs/interfaces/KeetaNetSDK.Referenced.NumericValidationRule.html +3 -0
  137. package/docs/interfaces/KeetaNetSDK.Referenced.NumericValueEntry.html +1 -1
  138. package/docs/interfaces/KeetaNetSDK.Referenced.P2PPeerBase.html +1 -1
  139. package/docs/interfaces/KeetaNetSDK.Referenced.P2PPeerListener.html +1 -1
  140. package/docs/interfaces/KeetaNetSDK.Referenced.P2PPeerRepBase.html +3 -3
  141. package/docs/interfaces/KeetaNetSDK.Referenced.PendingOperations.html +3 -2
  142. package/docs/interfaces/KeetaNetSDK.Referenced.PendingOperationsJSON.html +3 -2
  143. package/docs/interfaces/KeetaNetSDK.Referenced.PublicKeyStorage.html +1 -1
  144. package/docs/interfaces/KeetaNetSDK.Referenced.PublicKeyStringMapping.html +3 -2
  145. package/docs/interfaces/KeetaNetSDK.Referenced.RequestTokenReceiveEntry.html +1 -1
  146. package/docs/interfaces/KeetaNetSDK.Referenced.TokenNumericEntry.html +1 -1
  147. package/docs/interfaces/KeetaNetSDK.Referenced.UserClientConfig.html +2 -2
  148. package/docs/interfaces/KeetaNetSDK.Referenced.UserClientListenerOptions.html +2 -0
  149. package/docs/interfaces/KeetaNetSDK.Referenced.UserClientOptions.html +1 -1
  150. package/docs/interfaces/KeetaNetSDK.Referenced.VoteBundleConstructor.html +6 -0
  151. package/docs/interfaces/KeetaNetSDK.Referenced.VoteJSON.html +3 -2
  152. package/docs/interfaces/KeetaNetSDK.Referenced.VoteStapleJSON.html +2 -2
  153. package/docs/interfaces/KeetaNetSDK.Referenced.WithIsInstance.html +1 -1
  154. package/docs/interfaces/KeetaNetSDK.Referenced.src_config.ValidationConfig.html +2 -2
  155. package/docs/interfaces/KeetaNetSDK.Referenced.src_lib_utils_asn1.ASN1BitString.html +1 -1
  156. package/docs/interfaces/KeetaNetSDK.Referenced.src_lib_utils_asn1.ASN1Date.html +1 -1
  157. package/docs/interfaces/KeetaNetSDK.Referenced.src_lib_utils_asn1.ASN1OID.html +1 -1
  158. package/docs/interfaces/KeetaNetSDK.Referenced.src_lib_utils_asn1.ASN1Set.html +1 -1
  159. package/docs/interfaces/KeetaNetSDK.Referenced.src_lib_utils_asn1.ASN1String.html +1 -1
  160. package/docs/interfaces/KeetaNetSDK.Referenced.src_lib_utils_conversion.ToJSONSerializableOptions.html +3 -0
  161. package/docs/interfaces/KeetaNetSDK.Referenced.src_lib_utils_helper.InstanceSetConstructor.html +2 -2
  162. package/docs/modules/KeetaNetSDK.Referenced.html +1 -1
  163. package/docs/modules/KeetaNetSDK.Referenced.src_lib_utils_asn1.html +1 -1
  164. package/docs/modules/KeetaNetSDK.Referenced.src_lib_utils_buffer.html +1 -1
  165. package/docs/modules/KeetaNetSDK.Referenced.src_lib_utils_certificate.html +1 -1
  166. package/docs/modules/KeetaNetSDK.Referenced.src_lib_utils_conversion.html +1 -1
  167. package/docs/modules/KeetaNetSDK.Referenced.src_lib_utils_helper.html +1 -1
  168. package/docs/types/KeetaNetSDK.Referenced.AccountKeyAlgorithmHex.html +8 -0
  169. package/docs/types/KeetaNetSDK.Referenced.AccountKeyAlgorithmHexReverse.html +1 -0
  170. package/docs/types/KeetaNetSDK.Referenced.AccountKeyAlgorithmHexToType.html +1 -0
  171. package/docs/types/KeetaNetSDK.Referenced.AddBinaryIfIncluded.html +1 -0
  172. package/docs/types/KeetaNetSDK.Referenced.BlockHashString.html +1 -0
  173. package/docs/types/KeetaNetSDK.Referenced.CertificateErrorCode.html +1 -0
  174. package/docs/types/KeetaNetSDK.Referenced.CertificateExtensionData.html +1 -0
  175. package/docs/types/KeetaNetSDK.Referenced.CertificateExtensions.html +2 -2
  176. package/docs/types/KeetaNetSDK.Referenced.CertificateHashString.html +1 -0
  177. package/docs/types/KeetaNetSDK.Referenced.CertificateOptions.html +4 -4
  178. package/docs/types/KeetaNetSDK.Referenced.CertificateUpdate.html +2 -0
  179. package/docs/types/KeetaNetSDK.Referenced.ComputedEffectOfBlocks.html +3 -2
  180. package/docs/types/KeetaNetSDK.Referenced.DbStats.html +2 -0
  181. package/docs/types/KeetaNetSDK.Referenced.ErrorCode.html +1 -1
  182. package/docs/types/KeetaNetSDK.Referenced.ExportedJSONOperation.html +1 -0
  183. package/docs/types/KeetaNetSDK.Referenced.MultisigPublicKeyString.html +1 -0
  184. package/docs/types/KeetaNetSDK.Referenced.NodeLike-1.html +1 -0
  185. package/docs/types/KeetaNetSDK.Referenced.NodeLike.html +1 -1
  186. package/docs/types/KeetaNetSDK.Referenced.PublicKeyAndTypeStringHex.html +3 -0
  187. package/docs/types/{KeetaNetSDK.Referenced.VoteJSONOutput.html → KeetaNetSDK.Referenced.StorageAddress.html} +1 -1
  188. package/docs/types/KeetaNetSDK.Referenced.TimingData.html +2 -0
  189. package/docs/types/KeetaNetSDK.Referenced.TimingSectionHandle.html +6 -0
  190. package/docs/types/KeetaNetSDK.Referenced.VoteBuilderOptions.html +4 -0
  191. package/docs/types/KeetaNetSDK.Referenced.src_config.NetworkConfig.html +1 -1
  192. package/docs/types/KeetaNetSDK.Referenced.src_lib_utils_asn1.ValidateASN1.Schema.html +1 -1
  193. package/docs/types/KeetaNetSDK.Referenced.src_lib_utils_asn1.ValidateASN1.SchemaMap.html +1 -1
  194. package/docs/types/KeetaNetSDK.Referenced.src_lib_utils_certificate.CertificateJSONOutput.html +1 -0
  195. package/docs/types/KeetaNetSDK.Referenced.src_lib_utils_conversion.ToJSONSerializable.html +1 -1
  196. package/docs/variables/KeetaNetSDK.Referenced.BlockErrorCodes-1.html +1 -0
  197. package/docs/variables/KeetaNetSDK.Referenced.BlockErrorCodes.html +1 -1
  198. package/docs/{types/KeetaNetSDK.Referenced.JSONUnsupportedTypes.html → variables/KeetaNetSDK.Referenced.CertificateErrorType.html} +1 -1
  199. package/docs/variables/KeetaNetSDK.Referenced.ClientErrorCodes.html +1 -1
  200. package/docs/variables/KeetaNetSDK.Referenced.KVErrorCodes.html +1 -1
  201. package/docs/variables/KeetaNetSDK.Referenced.Operation.html +2 -2
  202. package/docs/variables/KeetaNetSDK.Referenced.VoteErrorCodes.html +1 -1
  203. package/docs/variables/KeetaNetSDK.Referenced.identifierKeyTypes.html +1 -1
  204. package/docs/variables/KeetaNetSDK.Referenced.src_config.networksArray.html +1 -1
  205. package/docs/variables/KeetaNetSDK.Referenced.src_lib_utils_helper.AsyncDisposableStack.html +2 -0
  206. package/docs/variables/KeetaNetSDK.Referenced.src_lib_utils_helper.crypto.html +1 -0
  207. package/lib/account.d.ts +68 -29
  208. package/lib/block/index.d.ts +53 -23
  209. package/lib/block/operations.d.ts +78 -33
  210. package/lib/error/block.d.ts +1 -1
  211. package/lib/error/certificate.d.ts +9 -0
  212. package/lib/error/client.d.ts +1 -1
  213. package/lib/error/index.d.ts +2 -1
  214. package/lib/error/kv.d.ts +1 -1
  215. package/lib/error/vote.d.ts +1 -1
  216. package/lib/kv/index.d.ts +15 -8
  217. package/lib/kv/kv_redis.d.ts +18 -8
  218. package/lib/ledger/common.d.ts +13 -5
  219. package/lib/ledger/db_dynamodb.d.ts +22 -16
  220. package/lib/ledger/db_postgres.d.ts +10 -10
  221. package/lib/ledger/db_spanner.d.ts +26 -14
  222. package/lib/ledger/db_spanner_helper.d.ts +94 -109
  223. package/lib/ledger/db_sqlite.d.ts +10 -10
  224. package/lib/ledger/effects.d.ts +19 -4
  225. package/lib/ledger/index.d.ts +57 -12
  226. package/lib/ledger/types.d.ts +7 -1
  227. package/lib/node/local.d.ts +10 -1
  228. package/lib/node/timing.d.ts +44 -5
  229. package/lib/p2p.d.ts +6 -3
  230. package/lib/permissions.d.ts +3 -3
  231. package/lib/pubsub/index.d.ts +1 -1
  232. package/lib/pubsub/providers.d.ts +2 -0
  233. package/lib/pubsub/ps_gcp.d.ts +14 -0
  234. package/lib/stats.d.ts +5 -0
  235. package/lib/utils/asn1.d.ts +4 -3
  236. package/lib/utils/buffer.d.ts +4 -0
  237. package/lib/utils/certificate.d.ts +107 -6
  238. package/lib/utils/conversion.d.ts +13 -35
  239. package/lib/utils/helper.d.ts +26 -8
  240. package/lib/utils/helper_testing.d.ts +1 -1
  241. package/lib/vote.d.ts +122 -63
  242. package/package.json +2 -3
  243. package/version.d.ts +1 -1
  244. package/docs/classes/KeetaNetSDK.Referenced.HTTPAgentManager.html +0 -4
  245. package/docs/functions/KeetaNetSDK.Referenced.src_lib_utils_conversion.RegisterSerializable.html +0 -2
  246. package/docs/interfaces/KeetaNetSDK.Referenced.BlockJSONOutput.html +0 -5
  247. package/docs/interfaces/KeetaNetSDK.Referenced.VoteJSONOutput.html +0 -4
  248. package/docs/interfaces/KeetaNetSDK.Referenced.WithConversionClass.html +0 -6
  249. package/docs/interfaces/KeetaNetSDK.Referenced.src_lib_utils_helper.InstanceSet.html +0 -10
  250. package/docs/types/KeetaNetSDK.Referenced.JSONSupportedObject.html +0 -1
  251. package/docs/types/KeetaNetSDK.Referenced.JSONSupportedValue.html +0 -1
  252. package/docs/types/KeetaNetSDK.Referenced.Vote.html +0 -1
  253. package/docs/types/KeetaNetSDK.Referenced.src_lib_utils_conversion.JSONSupported.html +0 -1
  254. package/docs/types/KeetaNetSDK.Referenced.src_lib_utils_conversion.ToJSONSerializableOptions.html +0 -3
  255. package/docs/variables/KeetaNetSDK.Referenced.default.html +0 -3
@@ -1,46 +1,24 @@
1
- import type { Vote, VoteStaple } from '../vote';
2
- import type Account from '../account';
3
- import type { Block, BlockHash } from '../block';
4
- import type { Permissions } from '../permissions';
5
1
  export type JSONSerializable = string | number | boolean | null | JSONSerializable[] | {
6
2
  [key: string]: JSONSerializable;
7
3
  };
8
4
  export type JSONSerializableObject = {
9
5
  [key: string]: JSONSerializable;
10
6
  };
11
- type JSONUnsupportedTypes = Date | BlockHash | Account | bigint | Permissions | Vote | Block | VoteStaple;
12
- type JSONSupportedObject<T> = {
13
- [Property in keyof T]: Exclude<T[Property], JSONUnsupportedTypes>;
14
- };
15
- type JSONSupportedValue<T> = JSONSupportedObject<T>[any];
16
- export type JSONSupported<T> = JSONSupportedObject<T> | JSONSupportedValue<T>;
17
- export type ToJSONSerializableOptions = {
7
+ export interface ToJSONSerializableOptions<AddBinary extends boolean = boolean> {
18
8
  debugUnsafe?: boolean;
19
- addBinary?: boolean;
20
- };
21
- export type ToJSONSerializable<T> = T extends bigint ? string : T extends Date ? string : T extends Buffer ? string : T extends {
22
- toJSONSerializable(): infer U;
23
- } ? U : T extends {
9
+ addBinary?: AddBinary;
10
+ }
11
+ type AddBinaryIfIncluded<I> = I extends {
12
+ '$binary'?: infer BinaryType;
13
+ } ? Omit<I, '$binary'> & {
14
+ '$binary': NonNullable<BinaryType>;
15
+ } : I;
16
+ export type ToJSONSerializable<T, Options extends ToJSONSerializableOptions = ToJSONSerializableOptions> = T extends JSONSerializable ? T : T extends undefined ? undefined : T extends bigint ? string : T extends Date ? string : T extends Buffer | ArrayBuffer ? string : T extends {
24
17
  toJSON(): infer U;
25
- } ? ToJSONSerializable<U> : T extends Account<infer K extends typeof Account.AccountKeyAlgorithm[keyof typeof Account.AccountKeyAlgorithm]> ? ReturnType<Account<K>['publicKeyString']['get']> : T extends BlockHash ? string : T extends Permissions ? [string, string] : T extends Vote ? ReturnType<Vote['toJSON']> & {
26
- '$binary': string;
27
- } : T extends VoteStaple ? ReturnType<VoteStaple['toJSON']> & {
28
- '$binary': string;
29
- } : T extends Block ? ReturnType<Block['toJSON']> & {
30
- '$binary': string;
31
- } : T extends JSONSerializable ? T : T extends object ? {
32
- [K in keyof T]: ToJSONSerializable<T[K]>;
18
+ } ? Options['addBinary'] extends true ? ToJSONSerializable<AddBinaryIfIncluded<U>, Options> : ToJSONSerializable<U, Options> : T extends object ? {
19
+ [K in keyof T]: ToJSONSerializable<T[K], Options>;
33
20
  } : never;
34
- export declare function toJSONSerializable(data: JSONSupported<any>, opts?: ToJSONSerializableOptions): JSONSupported<any> & JSONSerializable;
35
- /** @deprecated -- move to toJSON methods */
36
- interface WithConversionClass<T, Y> {
37
- toJSONSerializablePrefix: string;
38
- toJSONSerializable(value: T, options: ToJSONSerializableOptions): Y;
39
- isInstance(value: any): value is T;
40
- new (...args: any[]): T;
41
- }
42
- /** @deprecated -- move to toJSON methods */
43
- export declare function RegisterSerializable(name: string): <X, Y>(target: WithConversionClass<X, Y>) => void;
44
- export declare function objectToBuffer(data: JSONSupported<any>, opts?: ToJSONSerializableOptions): Buffer;
21
+ export declare function toJSONSerializable<Value, Options extends ToJSONSerializableOptions>(data: Value, opts?: Options): ToJSONSerializable<Value, Options>;
22
+ export declare function objectToBuffer(data: any, opts?: ToJSONSerializableOptions): Buffer;
45
23
  export declare function parseHexBigIntString(input: string): bigint;
46
24
  export {};
@@ -1,3 +1,4 @@
1
+ import _crypto from 'crypto';
1
2
  import type { JSONSerializable } from './conversion';
2
3
  export type DistributiveOmit<T, P extends PropertyKey> = T extends T ? Omit<T, P> : never;
3
4
  export declare function bufferToArrayBuffer(input: Buffer): ArrayBuffer;
@@ -23,6 +24,7 @@ export declare function waitTicks(ticks: number): Promise<void>;
23
24
  * Throws if neither are defined
24
25
  */
25
26
  export declare function env(name: string, defaultValue?: string): string;
27
+ export declare function booleanEnv(name: string, defaultValue?: boolean): boolean;
26
28
  /**
27
29
  * Generate a random string from length provided (default 32)
28
30
  */
@@ -44,6 +46,7 @@ interface IsInstance<T> {
44
46
  check(obj: any, strict?: boolean): obj is T;
45
47
  }
46
48
  export declare function checkableGenerator<P extends Constructor<T>, T = InstanceType<P>>(parent: P, defaultStrict?: boolean): IsInstance<T>['check'];
49
+ export declare function nonNullable<T>(value: T): NonNullable<T>;
47
50
  export type DeepMutable<T> = {
48
51
  -readonly [P in keyof T]: DeepMutable<T[P]>;
49
52
  };
@@ -53,15 +56,30 @@ interface WithIsInstance<Inst> extends Constructor<Inst> {
53
56
  type EncodeFunc<Inst, Enc> = (a: Inst) => Enc;
54
57
  type DecodeFunc<Inst, Enc> = (a: Enc) => Inst;
55
58
  type CanBeArray<T> = T | T[];
56
- export interface InstanceSet<Instance, Encoded = string> extends Set<Encoded> {
57
- add(data: CanBeArray<Instance | Encoded>): this;
58
- delete(data: Instance | Encoded): boolean;
59
- has(data: Instance | Encoded): boolean;
60
- decodedArray: Instance[];
61
- encodedArray: Encoded[];
59
+ interface InstanceSet<Instance, Encoded = string> extends Set<Instance> {
60
+ add(data: CanBeArray<Instance>): this;
61
+ forEach(callbackfn: (value: Instance, value2: Instance, set: InstanceSet<Instance, Encoded>) => void, thisArg?: any): void;
62
+ hasInternal(data: Encoded): boolean;
63
+ addInternal(data: Encoded): this;
64
+ deleteInternal(data: Encoded): boolean;
65
+ valuesInternal(): IterableIterator<Encoded>;
66
+ toArray(): Instance[];
67
+ toArrayInternal(): Encoded[];
68
+ isSubsetOf(data: InstanceSet<Instance, Encoded>): boolean;
69
+ isEqualTo(data: InstanceSet<Instance, Encoded>): boolean;
62
70
  }
63
- export interface InstanceSetConstructor<Instance, Encoded> {
64
- new (data?: (Instance | Encoded)[]): InstanceSet<Instance, Encoded>;
71
+ /**
72
+ * AsyncDisposableStack https://github.com/tc39/proposal-explicit-resource-management
73
+ */
74
+ export declare const AsyncDisposableStack: AsyncDisposableStackConstructor;
75
+ export interface InstanceSetConstructor<Instance, Encoded = string> {
76
+ new (data?: (Instance)[]): InstanceSet<Instance, Encoded>;
65
77
  }
66
78
  export declare function setGenerator<P extends WithIsInstance<Instance>, E extends EncodeFunc<Instance, Encoded>, D extends DecodeFunc<Instance, Encoded>, Instance = InstanceType<P>, Encoded = ReturnType<E>>(parent: P, rawEncode: E, rawDecode: D): InstanceSetConstructor<Instance, Encoded>;
79
+ export declare const crypto: {
80
+ randomUUID: typeof _crypto.randomUUID | (() => string);
81
+ randomBytes: typeof _crypto.randomBytes;
82
+ createCipheriv: typeof _crypto.createCipheriv;
83
+ createDecipheriv: typeof _crypto.createDecipheriv;
84
+ };
67
85
  export {};
@@ -2,7 +2,7 @@ import Account from '../account';
2
2
  import LocalNode from '../node/local';
3
3
  import { VoteStaple } from '../vote';
4
4
  import type { Block } from '../block';
5
- export declare const testingNetworkId: bigint;
5
+ export declare const testingNetworkId = 0n;
6
6
  type NodeConfig = ConstructorParameters<typeof LocalNode>[0];
7
7
  export declare function canListenOn(ip: string): Promise<boolean>;
8
8
  export declare function findListenableIP(checkIPs: string[]): Promise<string | null>;
package/lib/vote.d.ts CHANGED
@@ -1,9 +1,22 @@
1
1
  import { Block, BlockHash } from './block';
2
2
  import type { BlockJSON, BlockJSONOutput } from './block';
3
- import Account from './account';
3
+ import Account, { AccountKeyAlgorithm, type StorageAddress, type TokenAddress } from './account';
4
4
  import type { ASN1Date } from './utils/asn1';
5
- import type { JSONSupported, ToJSONSerializableOptions } from './utils/conversion';
5
+ import { type ToJSONSerializableOptions, type ToJSONSerializable } from './utils/conversion';
6
6
  import { BufferStorage } from './utils/buffer';
7
+ /**
8
+ * Representation of the expected fee for this vote
9
+ */
10
+ export interface FeeAmountAndToken {
11
+ amount: bigint;
12
+ payTo?: Account | StorageAddress;
13
+ token?: TokenAddress;
14
+ }
15
+ interface FeeAmountAndTokenJSON {
16
+ amount: string | bigint;
17
+ payTo?: string | Account | StorageAddress;
18
+ token?: string | TokenAddress;
19
+ }
7
20
  /**
8
21
  * Representation of the vote
9
22
  */
@@ -14,12 +27,9 @@ export interface VoteJSON {
14
27
  validityFrom: string | Date;
15
28
  validityTo: string | Date;
16
29
  signature: string | ArrayBuffer;
30
+ fee?: FeeAmountAndTokenJSON;
17
31
  }
18
- export interface VoteJSONOutput extends JSONSupported<VoteJSON> {
19
- $permanent: boolean;
20
- $trusted: boolean;
21
- $uid: string;
22
- }
32
+ type VoteJSONOutput = ToJSONSerializable<ReturnType<Vote['toJSON']>>;
23
33
  export interface VoteStapleJSON {
24
34
  blocks: BlockJSON[] | BlockJSONOutput[];
25
35
  votes: VoteJSON[] | VoteJSONOutput[];
@@ -53,17 +63,31 @@ type CertificatePublicKeyInfo = [CertificateOID[], {
53
63
  type: 'bitstring';
54
64
  value: Buffer;
55
65
  }];
66
+ export type CertificateExtensionFeeEntry = [
67
+ amount: bigint,
68
+ payTo?: {
69
+ type: 'context';
70
+ value: 0;
71
+ kind: 'implicit';
72
+ contains: Buffer;
73
+ },
74
+ token?: {
75
+ type: 'context';
76
+ value: 1;
77
+ kind: 'implicit';
78
+ contains: Buffer;
79
+ }
80
+ ];
81
+ type CertificateExtensionData = [
82
+ CertificateOID,
83
+ boolean,
84
+ Buffer
85
+ ];
56
86
  type CertificateExtensions = {
57
87
  type: 'context';
58
88
  value: number;
59
89
  kind: 'explicit';
60
- contains: [
61
- [
62
- CertificateOID,
63
- boolean,
64
- Buffer
65
- ]
66
- ];
90
+ contains: CertificateExtensionData[];
67
91
  };
68
92
  type CertificateSchema = [
69
93
  version: CertificateVersionInfo,
@@ -75,18 +99,14 @@ type CertificateSchema = [
75
99
  publicKey: CertificatePublicKeyInfo,
76
100
  extensions: CertificateExtensions
77
101
  ];
78
- /**
79
- * Parse a set of distinguished names
80
- */
81
- declare function findRDN(input: any[], findOID: string): any;
82
- declare function blockHashesFromVote(input: Buffer): BlockHash[];
83
102
  /**
84
103
  * A map for VoteBlockHashes
85
104
  */
86
105
  export declare class VoteBlockHashMap<ValueType = unknown> implements Map<VoteBlockHash, ValueType> {
87
106
  #private;
88
107
  constructor();
89
- [Symbol.iterator](): IterableIterator<[VoteBlockHash, ValueType]>;
108
+ [Symbol.iterator](): MapIterator<[VoteBlockHash, ValueType]>;
109
+ [Symbol.dispose](): void;
90
110
  [Symbol.toStringTag]: string;
91
111
  add(key: VoteBlockHash, value: ValueType): this;
92
112
  delete(key: VoteBlockHash): boolean;
@@ -95,9 +115,9 @@ export declare class VoteBlockHashMap<ValueType = unknown> implements Map<VoteBl
95
115
  has(key: VoteBlockHash): boolean;
96
116
  set(key: VoteBlockHash, value: ValueType): this;
97
117
  get size(): number;
98
- entries(): IterableIterator<[VoteBlockHash, ValueType]>;
99
- keys(): IterableIterator<VoteBlockHash>;
100
- values(): IterableIterator<ValueType>;
118
+ entries(): MapIterator<[VoteBlockHash, ValueType]>;
119
+ keys(): MapIterator<VoteBlockHash>;
120
+ values(): MapIterator<ValueType>;
101
121
  clear(): void;
102
122
  }
103
123
  /**
@@ -125,6 +145,15 @@ type VoteOptions = {
125
145
  */
126
146
  now?: Date;
127
147
  };
148
+ /**
149
+ * Options for Vote Builder
150
+ */
151
+ type VoteBuilderOptions = {
152
+ /**
153
+ * Fee amount to add to the vote
154
+ */
155
+ fee?: FeeAmountAndToken;
156
+ };
128
157
  export declare class PossiblyExpiredVote {
129
158
  #private;
130
159
  readonly issuer: Account;
@@ -133,9 +162,11 @@ export declare class PossiblyExpiredVote {
133
162
  readonly validityFrom: Date;
134
163
  readonly validityTo: Date;
135
164
  readonly signature: ArrayBuffer;
165
+ readonly fee: FeeAmountAndToken | undefined;
136
166
  readonly $trusted: boolean;
137
167
  readonly $permanent: boolean;
138
168
  readonly $uid: string;
169
+ readonly $id: string;
139
170
  protected static allowedSlop: number;
140
171
  protected static permanentVoteThreshold: number;
141
172
  static Staple: typeof VoteStaple;
@@ -149,7 +180,20 @@ export declare class PossiblyExpiredVote {
149
180
  get hash(): VoteHash;
150
181
  get blocksHash(): VoteBlockHash;
151
182
  toString(): string;
152
- toJSON(): VoteJSONOutput;
183
+ toJSON(options?: ToJSONSerializableOptions): {
184
+ $binary?: string;
185
+ fee?: FeeAmountAndTokenJSON;
186
+ issuer: Account<AccountKeyAlgorithm.ECDSA_SECP256K1 | AccountKeyAlgorithm.ED25519 | AccountKeyAlgorithm.ECDSA_SECP256R1>;
187
+ serial: bigint;
188
+ blocks: BlockHash[];
189
+ validityFrom: Date;
190
+ validityTo: Date;
191
+ signature: ArrayBuffer;
192
+ $trusted: boolean;
193
+ $permanent: boolean;
194
+ $uid: string;
195
+ $id: string;
196
+ };
153
197
  protected expirationCheckMoment(): number;
154
198
  get expired(): boolean;
155
199
  }
@@ -161,13 +205,6 @@ export declare class Vote extends PossiblyExpiredVote {
161
205
  readonly possiblyExpired = false;
162
206
  static isInstance: (obj: any, strict?: boolean) => obj is Vote;
163
207
  constructor(vote: Buffer | ArrayBuffer | Vote | PossiblyExpiredVote | string | VoteJSON | VoteJSONOutput, options?: VoteOptions);
164
- static toJSONSerializablePrefix: string;
165
- static toJSONSerializable(value: Vote, opts: ToJSONSerializableOptions): {
166
- [x: string]: any;
167
- $permanent: boolean;
168
- $trusted: boolean;
169
- $uid: string;
170
- };
171
208
  }
172
209
  /**
173
210
  * A vote staple is a distributable block consisting of one or more blocks
@@ -179,13 +216,25 @@ declare class VoteStapleHash extends BufferStorage {
179
216
  get hashFunctionName(): string;
180
217
  constructor(stapleHash: ConstructorParameters<typeof BufferStorage>[0]);
181
218
  }
182
- export declare class VoteStaple {
219
+ interface VoteBundleConstructor<T> {
220
+ new (votesStapled: ArrayBuffer | Buffer | VoteStapleJSON | string, voteOptions: VoteOptions): T;
221
+ fromVotesAndBlocks(votes: Vote[], blocks: Block[], voteOptions?: VoteOptions): T;
222
+ fromVotesAndBlocksWithFiltering(votes: PossiblyExpiredVote[], blocks: Block[], opts: Parameters<typeof VoteBlockBundle['fromVotesAndBlocks']>[2]): T | null;
223
+ fromVotesAndBlocksToHashMap(votes: PossiblyExpiredVote[], blocks: Block[], opts: Parameters<typeof VoteBlockBundle['fromVotesAndBlocks']>[2] & {
224
+ voteBlockHashes?: VoteBlockHash[];
225
+ }): VoteBlockHashMap<T | null>;
226
+ fromJSON(staple: VoteStapleJSON, voteOptions: VoteOptions): T;
227
+ }
228
+ export declare class VoteBlockBundle {
183
229
  #private;
230
+ readonly votes: Vote[];
231
+ readonly blocks: Block[];
184
232
  static readonly VoteBlockHash: typeof VoteBlockHash;
233
+ static isInstance: (obj: any, strict?: boolean) => obj is VoteBlockBundle;
185
234
  /**
186
- * Construct a new staple from votes and blocks
235
+ * Construct a new vote bundle from votes and blocks
187
236
  */
188
- static fromVotesAndBlocks(votes: Vote[], blocks: Block[], voteOptions?: VoteOptions): VoteStaple;
237
+ static fromVotesAndBlocks<T extends VoteBlockBundle>(this: VoteBundleConstructor<T>, votes: Vote[], blocks: Block[], voteOptions?: VoteOptions): T;
189
238
  /**
190
239
  * Convert a list of Votes and Blocks into a VoteStaple
191
240
  * This is slightly different from VoteStaple.fromVotesAndBlocks in
@@ -195,13 +244,12 @@ export declare class VoteStaple {
195
244
  *
196
245
  * Additionally, it will filter out any votes that are expired
197
246
  */
198
- static fromVotesAndBlocksWithFiltering(votes: PossiblyExpiredVote[], blocks: Block[], opts: Parameters<typeof VoteStaple['fromVotesAndBlocks']>[2]): VoteStaple | null;
199
- static fromVotesAndBlocksToHashMap(votes: PossiblyExpiredVote[], blocks: Block[], opts: Parameters<typeof VoteStaple['fromVotesAndBlocks']>[2] & {
247
+ static fromVotesAndBlocksWithFiltering<T extends VoteBlockBundle>(this: VoteBundleConstructor<T>, votes: PossiblyExpiredVote[], blocks: Block[], opts: Parameters<typeof VoteBlockBundle['fromVotesAndBlocks']>[2]): T | null;
248
+ static fromVotesAndBlocksToHashMap<T extends VoteBlockBundle>(this: VoteBundleConstructor<T>, votes: PossiblyExpiredVote[], blocks: Block[], opts: Parameters<typeof VoteBlockBundle['fromVotesAndBlocks']>[2] & {
200
249
  voteBlockHashes?: VoteBlockHash[];
201
- }): VoteBlockHashMap<VoteStaple | null>;
250
+ }): VoteBlockHashMap<T | null>;
202
251
  static isValidJSON(staple: VoteStapleJSON): boolean;
203
- static fromJSON(staple: VoteStapleJSON, voteOptions?: VoteOptions): VoteStaple;
204
- static isInstance: (obj: any, strict?: boolean) => obj is VoteStaple;
252
+ static fromJSON<T extends VoteBlockBundle>(this: VoteBundleConstructor<T>, staple: VoteStapleJSON, voteOptions?: VoteOptions): T;
205
253
  /**
206
254
  * Construct a new staple from a message buffer
207
255
  */
@@ -211,13 +259,6 @@ export declare class VoteStaple {
211
259
  */
212
260
  toBytes(uncompressed?: boolean): ArrayBuffer;
213
261
  toString(): string;
214
- /**
215
- * Get the serialized version as JSON
216
- */
217
- toJSON(): {
218
- votes: VoteJSONOutput[];
219
- blocks: BlockJSONOutput[];
220
- };
221
262
  /**
222
263
  * Hash of the Vote Staple -- this is the hash of the data in the
223
264
  * canonical form of the staple, which may be different from
@@ -229,14 +270,6 @@ export declare class VoteStaple {
229
270
  * for the staple regardless of which votes are included in the staple.
230
271
  */
231
272
  get blocksHash(): VoteBlockHash;
232
- /**
233
- * Get the votes for this staple
234
- */
235
- get votes(): Vote[];
236
- /**
237
- * Get the blocks for this staple
238
- */
239
- get blocks(): Block[];
240
273
  /**
241
274
  * Get the timestamp of the staple
242
275
  *
@@ -245,19 +278,49 @@ export declare class VoteStaple {
245
278
  * if it issued a vote in the staple.
246
279
  */
247
280
  timestamp(preferRep?: Account): Date;
248
- static toJSONSerializablePrefix: string;
249
- static toJSONSerializable(value: VoteStaple, opts: ToJSONSerializableOptions): {
250
- votes: VoteJSONOutput[];
251
- blocks: BlockJSONOutput[];
281
+ toJSON(options?: ToJSONSerializableOptions): {
252
282
  $binary?: string;
283
+ votes: {
284
+ $binary?: string;
285
+ fee?: FeeAmountAndTokenJSON;
286
+ issuer: Account<AccountKeyAlgorithm.ECDSA_SECP256K1 | AccountKeyAlgorithm.ED25519 | AccountKeyAlgorithm.ECDSA_SECP256R1>;
287
+ serial: bigint;
288
+ blocks: BlockHash[];
289
+ validityFrom: Date;
290
+ validityTo: Date;
291
+ signature: ArrayBuffer;
292
+ $trusted: boolean;
293
+ $permanent: boolean;
294
+ $uid: string;
295
+ $id: string;
296
+ }[];
297
+ blocks: {
298
+ $binary?: string;
299
+ version: 1;
300
+ date: Date;
301
+ previous: BlockHash;
302
+ account: import("./account").GenericAccount;
303
+ signer: Account<AccountKeyAlgorithm.ECDSA_SECP256K1 | AccountKeyAlgorithm.ED25519 | AccountKeyAlgorithm.ECDSA_SECP256R1>;
304
+ signature: string;
305
+ network: bigint;
306
+ subnet: bigint | undefined;
307
+ operations: import("./block/operations").ExportedJSONOperation[];
308
+ $hash: BlockHash;
309
+ $opening: boolean;
310
+ }[];
253
311
  };
254
312
  }
313
+ export declare class VoteStaple extends VoteBlockBundle {
314
+ static isInstance: (obj: any, strict?: boolean) => obj is VoteStaple;
315
+ constructor(votesStapled: ArrayBuffer | Buffer | VoteStapleJSON | string, voteOptions?: VoteOptions);
316
+ }
255
317
  export declare class VoteBuilder {
256
318
  #private;
257
319
  static isInstance: (obj: any, strict?: boolean) => obj is VoteBuilder;
258
- constructor(account: Account, blocks?: (Block | BlockHash)[]);
320
+ constructor(account: Account, blocks?: (Block | BlockHash)[], options?: VoteBuilderOptions);
259
321
  addBlocks(blocks: (Block | BlockHash | string)[]): void;
260
322
  addBlock(block: Block | BlockHash | string): void;
323
+ addFee(feeInput: FeeAmountAndTokenJSON): void;
261
324
  generateVoteData(serial: bigint, validTo: Date, validFrom: Date): {
262
325
  voteData: ArrayBuffer;
263
326
  tbsCertificate: CertificateSchema;
@@ -267,7 +330,3 @@ export declare class VoteBuilder {
267
330
  seal(serial: bigint, validTo: Date | null, validFrom?: Date, voteOptions?: VoteOptions): Promise<Vote>;
268
331
  }
269
332
  export default Vote;
270
- export declare const Testing: {
271
- findRDN: typeof findRDN;
272
- blockHashesFromVote: typeof blockHashesFromVote;
273
- };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@keetanetwork/keetanet-client",
3
3
  "repository": "https://github.com/keetanetwork/node.git",
4
- "version": "0.10.5",
4
+ "version": "0.12.2",
5
5
  "description": "KeetaNet Client TypeScript Reference Implementation",
6
6
  "files": [
7
7
  "**/*.js",
@@ -18,11 +18,10 @@
18
18
  "asn1js": "2.4.0",
19
19
  "ecies-25519": "1.3.1",
20
20
  "ecies-geth": "1.7.3",
21
- "elliptic": "6.6.0",
21
+ "elliptic": "6.6.1",
22
22
  "extract-zip": "2.0.1",
23
23
  "futoin-hkdf": "1.5.3",
24
24
  "isomorphic-ws": "5.0.0",
25
- "node-fetch": "2.7.0",
26
25
  "rfc4648": "1.5.4",
27
26
  "uuid": "11.0.3",
28
27
  "ws": "8.18.0"
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const version = "0.10.5";
1
+ export declare const version = "0.12.2+g77a8a16ada9dfab5604b605cbe69d373a414d204";
2
2
  export default version;
@@ -1,4 +0,0 @@
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>HTTPAgentManager | @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">HTTPAgentManager</a></li></ul><h1>Class HTTPAgentManager</h1></div><section class="tsd-panel-group tsd-index-group"><section class="tsd-panel tsd-index-panel"><details class="tsd-index-content tsd-accordion" open><summary class="tsd-accordion-summary tsd-index-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><h5 class="tsd-index-heading uppercase">Index</h5></summary><div class="tsd-accordion-details"><section class="tsd-index-section"><h3 class="tsd-index-heading">Constructors</h3><div class="tsd-index-list"><a href="#constructor" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Constructor" stroke="black"><rect fill="var(--color-icon-background)" stroke="black" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle" stroke-width="0">C</text></svg><span>constructor</span></a>
2
- </div></section><section class="tsd-index-section"><h3 class="tsd-index-heading">Methods</h3><div class="tsd-index-list"><a href="#destroy" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method" stroke="black"><rect fill="var(--color-icon-background)" stroke="black" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle" stroke-width="0">M</text></svg><span>destroy</span></a>
3
- <a href="#getagent" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method" stroke="black"><rect fill="var(--color-icon-background)" stroke="black" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle" stroke-width="0">M</text></svg><span>get<wbr/>Agent</span></a>
4
- </div></section></div></details></section></section><details class="tsd-panel-group tsd-member-group tsd-accordion" open><summary class="tsd-accordion-summary" data-key="section-Constructors"><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><h2>Constructors</h2></summary><section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="constructor"><span>constructor</span><a href="#constructor" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><g stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></g></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="constructorhttpagentmanager"><span class="tsd-signature-keyword">new</span> <span class="tsd-kind-constructor-signature">HTTPAgentManager</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <a href="" class="tsd-signature-type tsd-kind-class">HTTPAgentManager</a><a href="#constructorhttpagentmanager" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><g stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></g></svg></a></div><div class="tsd-description"><h4 class="tsd-returns-title">Returns <a href="" class="tsd-signature-type tsd-kind-class">HTTPAgentManager</a></h4></div></li></ul></section></section></details><details class="tsd-panel-group tsd-member-group tsd-accordion" open><summary class="tsd-accordion-summary" data-key="section-Methods"><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><h2>Methods</h2></summary><section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="destroy"><span>destroy</span><a href="#destroy" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><g stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></g></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="destroy-1"><span class="tsd-kind-call-signature">destroy</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#destroy-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><g stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></g></svg></a></div><div class="tsd-description"><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="getagent"><span>get<wbr/>Agent</span><a href="#getagent" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><g stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></g></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="getagent-1"><span class="tsd-kind-call-signature">getAgent</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">url</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">URL</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Agent</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">Agent</span><a href="#getagent-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><g stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></g></svg></a></div><div class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">url</span>: <span class="tsd-signature-type">URL</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Agent</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">Agent</span></h4></div></li></ul></section></section></details></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><details open class="tsd-accordion tsd-page-navigation"><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>On This Page</h3></summary><div class="tsd-accordion-details"><details open class="tsd-accordion tsd-page-navigation-section"><summary class="tsd-accordion-summary" data-key="section-Constructors"><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>Constructors</summary><div><a href="#constructor"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Constructor" stroke="black"><rect fill="var(--color-icon-background)" stroke="black" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle" stroke-width="0">C</text></svg><span>constructor</span></a></div></details><details open class="tsd-accordion tsd-page-navigation-section"><summary class="tsd-accordion-summary" data-key="section-Methods"><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>Methods</summary><div><a href="#destroy"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method" stroke="black"><rect fill="var(--color-icon-background)" stroke="black" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle" stroke-width="0">M</text></svg><span>destroy</span></a><a href="#getagent"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method" stroke="black"><rect fill="var(--color-icon-background)" stroke="black" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle" stroke-width="0">M</text></svg><span>get<wbr/>Agent</span></a></div></details></div></details></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,2 +0,0 @@
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>RegisterSerializable | @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_conversion.html">src/lib/utils/conversion</a></li><li><a href="" aria-current="page">RegisterSerializable</a></li></ul><h1 class="deprecated">Function RegisterSerializable</h1></div><section class="tsd-panel"><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="registerserializable"><span class="tsd-kind-call-signature">RegisterSerializable</span><span class="tsd-signature-symbol">(</span><br/>    <span class="tsd-kind-parameter">name</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> <span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">X</span><span class="tsd-signature-symbol">,</span> <span class="tsd-signature-type tsd-kind-type-parameter">Y</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">target</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/KeetaNetSDK.Referenced.WithConversionClass.html" class="tsd-signature-type tsd-kind-interface">WithConversionClass</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">X</span><span class="tsd-signature-symbol">,</span> <span class="tsd-signature-type tsd-kind-type-parameter">Y</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">void</span><a href="#registerserializable" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><g stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></g></svg></a></div><div class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">name</span>: <span class="tsd-signature-type">string</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">X</span><span class="tsd-signature-symbol">,</span> <span class="tsd-signature-type tsd-kind-type-parameter">Y</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">target</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/KeetaNetSDK.Referenced.WithConversionClass.html" class="tsd-signature-type tsd-kind-interface">WithConversionClass</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">X</span><span class="tsd-signature-symbol">,</span> <span class="tsd-signature-type tsd-kind-type-parameter">Y</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">void</span></h4><div class="tsd-comment tsd-typography"><div class="tsd-tag-deprecated"><h4 class="tsd-anchor-link" id="deprecated">Deprecated<a href="#deprecated" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><g stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></g></svg></a></h4><p>-- move to toJSON methods</p>
2
- </div></div></div></li></ul></section></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,5 +0,0 @@
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>BlockJSONOutput | @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">BlockJSONOutput</a></li></ul><h1>Interface BlockJSONOutput</h1></div><section class="tsd-panel tsd-comment"><div class="tsd-comment tsd-typography"><p>Output of block suitable to JSON serialization</p>
2
- </div><div class="tsd-comment tsd-typography"></div></section><div class="tsd-signature"><span class="tsd-signature-keyword">interface</span> <span class="tsd-kind-interface">BlockJSONOutput</span> <span class="tsd-signature-symbol">{</span><br/>    <a class="tsd-kind-property" href="#hash">$hash</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br/>    <a class="tsd-kind-property" href="#opening">$opening</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">;</span><br/>    <a class="tsd-kind-property" href="#operations">operations</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">;</span><br/>    <span class="tsd-signature-symbol">[</span><span class="tsd-kind-index-signature">key</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">any</span><span class="tsd-signature-symbol">;</span><br/><span class="tsd-signature-symbol">}</span></div><section class="tsd-panel tsd-hierarchy" data-refl="1097"><h4>Hierarchy (<a href="../hierarchy.html#KeetaNetSDK.Referenced.BlockJSONOutput">View Summary</a>)</h4><ul class="tsd-hierarchy"><li class="tsd-hierarchy-item"><a href="../types/KeetaNetSDK.Referenced.src_lib_utils_conversion.JSONSupported.html" class="tsd-signature-type tsd-kind-type-alias">JSONSupported</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Omit</span><span class="tsd-signature-symbol">&lt;</span><a href="KeetaNetSDK.Referenced.BlockJSON.html" class="tsd-signature-type tsd-kind-interface">BlockJSON</a><span class="tsd-signature-symbol">,</span> <span class="tsd-signature-type">&quot;operations&quot;</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><ul class="tsd-hierarchy"><li class="tsd-hierarchy-item"><span class="tsd-hierarchy-target">BlockJSONOutput</span></li></ul></li></ul></section><section class="tsd-panel"><h4 class="tsd-before-signature">Indexable</h4><ul class="tsd-signatures"><li class="tsd-index-signature"><div class="tsd-signature"><span class="tsd-signature-symbol">[</span><span class="tsd-kind-parameter">key</span>: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">]:</span> <span class="tsd-signature-type">any</span></div></li></ul></section><section class="tsd-panel-group tsd-index-group"><section class="tsd-panel tsd-index-panel"><details class="tsd-index-content tsd-accordion" open><summary class="tsd-accordion-summary tsd-index-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><h5 class="tsd-index-heading uppercase">Index</h5></summary><div class="tsd-accordion-details"><section class="tsd-index-section"><h3 class="tsd-index-heading">Properties</h3><div class="tsd-index-list"><a href="#hash" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property" stroke="black"><rect fill="var(--color-icon-background)" stroke="black" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle" stroke-width="0">P</text></svg><span>$hash</span></a>
3
- <a href="#opening" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property" stroke="black"><rect fill="var(--color-icon-background)" stroke="black" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle" stroke-width="0">P</text></svg><span>$opening</span></a>
4
- <a href="#operations" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property" stroke="black"><rect fill="var(--color-icon-background)" stroke="black" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle" stroke-width="0">P</text></svg><span>operations</span></a>
5
- </div></section></div></details></section></section><details class="tsd-panel-group tsd-member-group tsd-accordion" open><summary class="tsd-accordion-summary" data-key="section-Properties"><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><h2>Properties</h2></summary><section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="hash"><span>$hash</span><a href="#hash" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><g stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></g></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">$hash</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="opening"><span>$opening</span><a href="#opening" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><g stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></g></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">$opening</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="operations"><span>operations</span><a href="#operations" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><g stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></g></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">operations</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">[]</span></div></section></section></details></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><details open class="tsd-accordion tsd-page-navigation"><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>On This Page</h3></summary><div class="tsd-accordion-details"><details open class="tsd-accordion tsd-page-navigation-section"><summary class="tsd-accordion-summary" data-key="section-Properties"><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>Properties</summary><div><a href="#hash"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property" stroke="black"><rect fill="var(--color-icon-background)" stroke="black" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle" stroke-width="0">P</text></svg><span>$hash</span></a><a href="#opening"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property" stroke="black"><rect fill="var(--color-icon-background)" stroke="black" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle" stroke-width="0">P</text></svg><span>$opening</span></a><a href="#operations"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property" stroke="black"><rect fill="var(--color-icon-background)" stroke="black" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle" stroke-width="0">P</text></svg><span>operations</span></a></div></details></div></details></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>