kalvora.js 0.0.1-alpha.2 → 0.0.1-alpha.3

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 (364) hide show
  1. package/CHANGELOG.md +230 -202
  2. package/LICENSE +202 -202
  3. package/NOTICE +10 -10
  4. package/README.md +274 -393
  5. package/dist/LICENSE +202 -202
  6. package/dist/README.md +274 -393
  7. package/dist/index.cjs +16738 -11985
  8. package/dist/index.cjs.map +4 -4
  9. package/dist/index.d.ts +18 -8
  10. package/dist/index.d.ts.map +1 -1
  11. package/dist/index.js +15 -7
  12. package/dist/index.js.map +1 -1
  13. package/dist/index.mjs +15 -7
  14. package/dist/proto/generated/kal_api_pb.d.ts +406 -2
  15. package/dist/proto/generated/kal_api_pb.js +81 -39
  16. package/dist/proto/generated/txn_pb.d.ts +721 -128
  17. package/dist/proto/generated/txn_pb.js +183 -71
  18. package/dist/proto/generated/validator_pb.d.ts +2218 -583
  19. package/dist/proto/generated/validator_pb.js +322 -80
  20. package/dist/proto/kal_api.proto +82 -0
  21. package/dist/proto/txn.proto +189 -46
  22. package/dist/proto/validator.proto +803 -469
  23. package/dist/src/adapter/index.d.ts +1 -0
  24. package/dist/src/adapter/index.d.ts.map +1 -1
  25. package/dist/src/adapter/signing-account.d.ts +19 -0
  26. package/dist/src/adapter/signing-account.d.ts.map +1 -0
  27. package/dist/src/adapter/signing-account.js +38 -0
  28. package/dist/src/adapter/signing-account.js.map +1 -0
  29. package/dist/src/adapter/wallet-adapter.d.ts +5 -1
  30. package/dist/src/adapter/wallet-adapter.d.ts.map +1 -1
  31. package/dist/src/adapter/wallet-adapter.js +81 -33
  32. package/dist/src/adapter/wallet-adapter.js.map +1 -1
  33. package/dist/src/adapter/wallet-signer.d.ts +9 -7
  34. package/dist/src/adapter/wallet-signer.d.ts.map +1 -1
  35. package/dist/src/adapter/wallet-signer.js +35 -26
  36. package/dist/src/adapter/wallet-signer.js.map +1 -1
  37. package/dist/src/adapter/walletconnect.d.ts +4 -5
  38. package/dist/src/adapter/walletconnect.d.ts.map +1 -1
  39. package/dist/src/adapter/walletconnect.js +12 -9
  40. package/dist/src/adapter/walletconnect.js.map +1 -1
  41. package/dist/src/allowance/transaction.d.ts +3 -2
  42. package/dist/src/allowance/transaction.d.ts.map +1 -1
  43. package/dist/src/allowance/transaction.js +4 -4
  44. package/dist/src/allowance/transaction.js.map +1 -1
  45. package/dist/src/api/validator/base-fee/service.d.ts +1 -1
  46. package/dist/src/api/validator/base-fee/service.d.ts.map +1 -1
  47. package/dist/src/api/validator/base-fee/service.js +2 -2
  48. package/dist/src/api/validator/base-fee/service.js.map +1 -1
  49. package/dist/src/client/index.d.ts +1 -1
  50. package/dist/src/client/index.d.ts.map +1 -1
  51. package/dist/src/client/index.js +1 -1
  52. package/dist/src/client/index.js.map +1 -1
  53. package/dist/src/client/kalvora-client.d.ts +2 -1
  54. package/dist/src/client/kalvora-client.d.ts.map +1 -1
  55. package/dist/src/client/kalvora-client.js +3 -1
  56. package/dist/src/client/kalvora-client.js.map +1 -1
  57. package/dist/src/client/networks.d.ts +6 -0
  58. package/dist/src/client/networks.d.ts.map +1 -1
  59. package/dist/src/client/networks.js +7 -0
  60. package/dist/src/client/networks.js.map +1 -1
  61. package/dist/src/coin-txn/transaction.d.ts +7 -1
  62. package/dist/src/coin-txn/transaction.d.ts.map +1 -1
  63. package/dist/src/coin-txn/transaction.js +77 -76
  64. package/dist/src/coin-txn/transaction.js.map +1 -1
  65. package/dist/src/compliance/transaction.d.ts +2 -1
  66. package/dist/src/compliance/transaction.d.ts.map +1 -1
  67. package/dist/src/compliance/transaction.js +4 -4
  68. package/dist/src/compliance/transaction.js.map +1 -1
  69. package/dist/src/contract/create/transaction.d.ts.map +1 -1
  70. package/dist/src/contract/create/transaction.js +43 -17
  71. package/dist/src/contract/create/transaction.js.map +1 -1
  72. package/dist/src/contract/shared/types.d.ts +11 -9
  73. package/dist/src/contract/shared/types.d.ts.map +1 -1
  74. package/dist/src/contract/shared/utils.d.ts +17 -6
  75. package/dist/src/contract/shared/utils.d.ts.map +1 -1
  76. package/dist/src/contract/shared/utils.js +96 -8
  77. package/dist/src/contract/shared/utils.js.map +1 -1
  78. package/dist/src/contract/update/transaction.d.ts.map +1 -1
  79. package/dist/src/contract/update/transaction.js +10 -9
  80. package/dist/src/contract/update/transaction.js.map +1 -1
  81. package/dist/src/delegated-voting/transaction.d.ts +2 -1
  82. package/dist/src/delegated-voting/transaction.d.ts.map +1 -1
  83. package/dist/src/delegated-voting/transaction.js +5 -5
  84. package/dist/src/delegated-voting/transaction.js.map +1 -1
  85. package/dist/src/expense-ratio/transaction.d.ts +5 -4
  86. package/dist/src/expense-ratio/transaction.d.ts.map +1 -1
  87. package/dist/src/expense-ratio/transaction.js +8 -7
  88. package/dist/src/expense-ratio/transaction.js.map +1 -1
  89. package/dist/src/grpc/api/validator-api-client.d.ts +5 -2
  90. package/dist/src/grpc/api/validator-api-client.d.ts.map +1 -1
  91. package/dist/src/grpc/api/validator-api-client.js +26 -4
  92. package/dist/src/grpc/api/validator-api-client.js.map +1 -1
  93. package/dist/src/grpc/client-factory.d.ts.map +1 -1
  94. package/dist/src/grpc/client-factory.js +12 -4
  95. package/dist/src/grpc/client-factory.js.map +1 -1
  96. package/dist/src/grpc/transaction/transaction-client.d.ts.map +1 -1
  97. package/dist/src/grpc/transaction/transaction-client.js +12 -5
  98. package/dist/src/grpc/transaction/transaction-client.js.map +1 -1
  99. package/dist/src/grpc/utils/grpc-web-fetch-wrapper.d.ts +1 -1
  100. package/dist/src/grpc/utils/grpc-web-fetch-wrapper.d.ts.map +1 -1
  101. package/dist/src/grpc/utils/grpc-web-fetch-wrapper.js +1 -2
  102. package/dist/src/grpc/utils/grpc-web-fetch-wrapper.js.map +1 -1
  103. package/dist/src/items/transaction.d.ts +11 -3
  104. package/dist/src/items/transaction.d.ts.map +1 -1
  105. package/dist/src/items/transaction.js +29 -16
  106. package/dist/src/items/transaction.js.map +1 -1
  107. package/dist/src/mint/transaction.d.ts +4 -4
  108. package/dist/src/mint/transaction.d.ts.map +1 -1
  109. package/dist/src/mint/transaction.js +8 -14
  110. package/dist/src/mint/transaction.js.map +1 -1
  111. package/dist/src/proposal/governance.d.ts +13 -2
  112. package/dist/src/proposal/governance.d.ts.map +1 -1
  113. package/dist/src/proposal/governance.js +93 -13
  114. package/dist/src/proposal/governance.js.map +1 -1
  115. package/dist/src/proposal/index.d.ts +1 -1
  116. package/dist/src/proposal/index.d.ts.map +1 -1
  117. package/dist/src/proposal/index.js +1 -1
  118. package/dist/src/proposal/index.js.map +1 -1
  119. package/dist/src/proposal/shape.d.ts +11 -3
  120. package/dist/src/proposal/shape.d.ts.map +1 -1
  121. package/dist/src/proposal/shape.js +69 -4
  122. package/dist/src/proposal/shape.js.map +1 -1
  123. package/dist/src/proposal/transaction.d.ts +5 -1
  124. package/dist/src/proposal/transaction.d.ts.map +1 -1
  125. package/dist/src/proposal/transaction.js +15 -7
  126. package/dist/src/proposal/transaction.js.map +1 -1
  127. package/dist/src/proposal-cancel/transaction.d.ts +5 -1
  128. package/dist/src/proposal-cancel/transaction.d.ts.map +1 -1
  129. package/dist/src/proposal-cancel/transaction.js +7 -5
  130. package/dist/src/proposal-cancel/transaction.js.map +1 -1
  131. package/dist/src/protocol/contract-id.d.ts +1 -0
  132. package/dist/src/protocol/contract-id.d.ts.map +1 -1
  133. package/dist/src/protocol/contract-id.js +19 -6
  134. package/dist/src/protocol/contract-id.js.map +1 -1
  135. package/dist/src/protocol/index.d.ts +1 -1
  136. package/dist/src/protocol/index.js +1 -1
  137. package/dist/src/query/api-client.d.ts +54 -14
  138. package/dist/src/query/api-client.d.ts.map +1 -1
  139. package/dist/src/query/api-client.js +219 -44
  140. package/dist/src/query/api-client.js.map +1 -1
  141. package/dist/src/query/decoders.d.ts +9 -2
  142. package/dist/src/query/decoders.d.ts.map +1 -1
  143. package/dist/src/query/decoders.js +43 -7
  144. package/dist/src/query/decoders.js.map +1 -1
  145. package/dist/src/query/events.d.ts +15 -6
  146. package/dist/src/query/events.d.ts.map +1 -1
  147. package/dist/src/query/events.js +37 -27
  148. package/dist/src/query/events.js.map +1 -1
  149. package/dist/src/query/index.d.ts +2 -2
  150. package/dist/src/query/index.d.ts.map +1 -1
  151. package/dist/src/query/index.js +2 -2
  152. package/dist/src/query/index.js.map +1 -1
  153. package/dist/src/query/keys.d.ts +2 -0
  154. package/dist/src/query/keys.d.ts.map +1 -1
  155. package/dist/src/query/keys.js +13 -0
  156. package/dist/src/query/keys.js.map +1 -1
  157. package/dist/src/query/validator-client.d.ts +8 -6
  158. package/dist/src/query/validator-client.d.ts.map +1 -1
  159. package/dist/src/query/validator-client.js +15 -13
  160. package/dist/src/query/validator-client.js.map +1 -1
  161. package/dist/src/revoke/transaction.d.ts +3 -3
  162. package/dist/src/revoke/transaction.d.ts.map +1 -1
  163. package/dist/src/revoke/transaction.js +5 -6
  164. package/dist/src/revoke/transaction.js.map +1 -1
  165. package/dist/src/shared/crypto/address-utils.d.ts +5 -0
  166. package/dist/src/shared/crypto/address-utils.d.ts.map +1 -1
  167. package/dist/src/shared/crypto/address-utils.js +14 -0
  168. package/dist/src/shared/crypto/address-utils.js.map +1 -1
  169. package/dist/src/shared/crypto/falcon-address.d.ts +28 -0
  170. package/dist/src/shared/crypto/falcon-address.d.ts.map +1 -0
  171. package/dist/src/shared/crypto/falcon-address.js +88 -0
  172. package/dist/src/shared/crypto/falcon-address.js.map +1 -0
  173. package/dist/src/shared/fee-calculators/proof-layout.d.ts +23 -0
  174. package/dist/src/shared/fee-calculators/proof-layout.d.ts.map +1 -0
  175. package/dist/src/shared/fee-calculators/proof-layout.js +75 -0
  176. package/dist/src/shared/fee-calculators/proof-layout.js.map +1 -0
  177. package/dist/src/shared/fee-calculators/universal-fee-calculator.d.ts +12 -2
  178. package/dist/src/shared/fee-calculators/universal-fee-calculator.d.ts.map +1 -1
  179. package/dist/src/shared/fee-calculators/universal-fee-calculator.js +216 -547
  180. package/dist/src/shared/fee-calculators/universal-fee-calculator.js.map +1 -1
  181. package/dist/src/shared/network/chain-id.d.ts +4 -0
  182. package/dist/src/shared/network/chain-id.d.ts.map +1 -0
  183. package/dist/src/shared/network/chain-id.js +12 -0
  184. package/dist/src/shared/network/chain-id.js.map +1 -0
  185. package/dist/src/shared/protobuf/index.d.ts +1 -1
  186. package/dist/src/shared/protobuf/index.d.ts.map +1 -1
  187. package/dist/src/shared/tx/base.d.ts +5 -1
  188. package/dist/src/shared/tx/base.d.ts.map +1 -1
  189. package/dist/src/shared/tx/base.js +18 -5
  190. package/dist/src/shared/tx/base.js.map +1 -1
  191. package/dist/src/shared/tx/standard.d.ts +11 -6
  192. package/dist/src/shared/tx/standard.d.ts.map +1 -1
  193. package/dist/src/shared/tx/standard.js +17 -11
  194. package/dist/src/shared/tx/standard.js.map +1 -1
  195. package/dist/src/shared/utils/unified-amount-conversion.d.ts +7 -8
  196. package/dist/src/shared/utils/unified-amount-conversion.d.ts.map +1 -1
  197. package/dist/src/shared/utils/unified-amount-conversion.js +31 -56
  198. package/dist/src/shared/utils/unified-amount-conversion.js.map +1 -1
  199. package/dist/src/shared/utils/validation.d.ts +2 -3
  200. package/dist/src/shared/utils/validation.d.ts.map +1 -1
  201. package/dist/src/shared/utils/validation.js +7 -29
  202. package/dist/src/shared/utils/validation.js.map +1 -1
  203. package/dist/src/sign/builder.d.ts +18 -0
  204. package/dist/src/sign/builder.d.ts.map +1 -0
  205. package/dist/src/sign/builder.js +28 -0
  206. package/dist/src/sign/builder.js.map +1 -0
  207. package/dist/src/sign/context.d.ts +21 -0
  208. package/dist/src/sign/context.d.ts.map +1 -0
  209. package/dist/src/sign/context.js +73 -0
  210. package/dist/src/sign/context.js.map +1 -0
  211. package/dist/src/sign/finalize.d.ts +33 -5
  212. package/dist/src/sign/finalize.d.ts.map +1 -1
  213. package/dist/src/sign/finalize.js +289 -32
  214. package/dist/src/sign/finalize.js.map +1 -1
  215. package/dist/src/sign/index.d.ts +3 -1
  216. package/dist/src/sign/index.d.ts.map +1 -1
  217. package/dist/src/sign/index.js +3 -1
  218. package/dist/src/sign/index.js.map +1 -1
  219. package/dist/src/sign/resources.d.ts +13 -0
  220. package/dist/src/sign/resources.d.ts.map +1 -0
  221. package/dist/src/sign/resources.js +197 -0
  222. package/dist/src/sign/resources.js.map +1 -0
  223. package/dist/src/sign/signer.d.ts +9 -1
  224. package/dist/src/sign/signer.d.ts.map +1 -1
  225. package/dist/src/sign/signer.js.map +1 -1
  226. package/dist/src/smart-contracts/deploy/transaction.d.ts +2 -1
  227. package/dist/src/smart-contracts/deploy/transaction.d.ts.map +1 -1
  228. package/dist/src/smart-contracts/deploy/transaction.js +3 -4
  229. package/dist/src/smart-contracts/deploy/transaction.js.map +1 -1
  230. package/dist/src/smart-contracts/execute/index.d.ts +1 -0
  231. package/dist/src/smart-contracts/execute/index.d.ts.map +1 -1
  232. package/dist/src/smart-contracts/execute/index.js +1 -0
  233. package/dist/src/smart-contracts/execute/index.js.map +1 -1
  234. package/dist/src/smart-contracts/execute/transaction.d.ts +5 -1
  235. package/dist/src/smart-contracts/execute/transaction.d.ts.map +1 -1
  236. package/dist/src/smart-contracts/execute/transaction.js +7 -5
  237. package/dist/src/smart-contracts/execute/transaction.js.map +1 -1
  238. package/dist/src/smart-contracts/instantiate/index.d.ts +1 -0
  239. package/dist/src/smart-contracts/instantiate/index.d.ts.map +1 -1
  240. package/dist/src/smart-contracts/instantiate/index.js +1 -0
  241. package/dist/src/smart-contracts/instantiate/index.js.map +1 -1
  242. package/dist/src/smart-contracts/instantiate/transaction.d.ts +5 -1
  243. package/dist/src/smart-contracts/instantiate/transaction.d.ts.map +1 -1
  244. package/dist/src/smart-contracts/instantiate/transaction.js +7 -5
  245. package/dist/src/smart-contracts/instantiate/transaction.js.map +1 -1
  246. package/dist/src/smart-contracts/shared/allowances.d.ts +18 -0
  247. package/dist/src/smart-contracts/shared/allowances.d.ts.map +1 -0
  248. package/dist/src/smart-contracts/shared/allowances.js +42 -0
  249. package/dist/src/smart-contracts/shared/allowances.js.map +1 -0
  250. package/dist/src/smart-contracts/shared/base.d.ts +2 -14
  251. package/dist/src/smart-contracts/shared/base.d.ts.map +1 -1
  252. package/dist/src/smart-contracts/shared/base.js +14 -24
  253. package/dist/src/smart-contracts/shared/base.js.map +1 -1
  254. package/dist/src/smart-contracts/use-cases/bootstrapping/transactions/process-rewards.d.ts +3 -2
  255. package/dist/src/smart-contracts/use-cases/bootstrapping/transactions/process-rewards.d.ts.map +1 -1
  256. package/dist/src/smart-contracts/use-cases/bootstrapping/transactions/process-rewards.js.map +1 -1
  257. package/dist/src/smart-contracts/use-cases/bootstrapping/transactions/stake.d.ts +3 -2
  258. package/dist/src/smart-contracts/use-cases/bootstrapping/transactions/stake.d.ts.map +1 -1
  259. package/dist/src/smart-contracts/use-cases/bootstrapping/transactions/stake.js.map +1 -1
  260. package/dist/src/smart-contracts/use-cases/bootstrapping/transactions/update-wallet.d.ts +3 -2
  261. package/dist/src/smart-contracts/use-cases/bootstrapping/transactions/update-wallet.d.ts.map +1 -1
  262. package/dist/src/smart-contracts/use-cases/bootstrapping/transactions/update-wallet.js.map +1 -1
  263. package/dist/src/smart-contracts/use-cases/bootstrapping/utils.d.ts +2 -1
  264. package/dist/src/smart-contracts/use-cases/bootstrapping/utils.d.ts.map +1 -1
  265. package/dist/src/smart-contracts/use-cases/bootstrapping/utils.js.map +1 -1
  266. package/dist/src/smart-contracts/use-cases/bridge/guardian/vaa.d.ts +4 -6
  267. package/dist/src/smart-contracts/use-cases/bridge/guardian/vaa.d.ts.map +1 -1
  268. package/dist/src/smart-contracts/use-cases/bridge/guardian/vaa.js +5 -23
  269. package/dist/src/smart-contracts/use-cases/bridge/guardian/vaa.js.map +1 -1
  270. package/dist/src/smart-contracts/use-cases/bridge/kalvora/transactions/lock.d.ts +5 -4
  271. package/dist/src/smart-contracts/use-cases/bridge/kalvora/transactions/lock.d.ts.map +1 -1
  272. package/dist/src/smart-contracts/use-cases/bridge/kalvora/transactions/lock.js.map +1 -1
  273. package/dist/src/smart-contracts/use-cases/bridge/kalvora/transactions/release.d.ts +7 -6
  274. package/dist/src/smart-contracts/use-cases/bridge/kalvora/transactions/release.d.ts.map +1 -1
  275. package/dist/src/smart-contracts/use-cases/bridge/kalvora/transactions/release.js.map +1 -1
  276. package/dist/src/smart-contracts/use-cases/bridge/kalvora/utils.d.ts +2 -1
  277. package/dist/src/smart-contracts/use-cases/bridge/kalvora/utils.d.ts.map +1 -1
  278. package/dist/src/smart-contracts/use-cases/bridge/kalvora/utils.js.map +1 -1
  279. package/dist/src/smart-contracts/use-cases/dex/transactions/add-liquidity.d.ts +3 -2
  280. package/dist/src/smart-contracts/use-cases/dex/transactions/add-liquidity.d.ts.map +1 -1
  281. package/dist/src/smart-contracts/use-cases/dex/transactions/add-liquidity.js.map +1 -1
  282. package/dist/src/smart-contracts/use-cases/dex/transactions/create-pool.d.ts +3 -2
  283. package/dist/src/smart-contracts/use-cases/dex/transactions/create-pool.d.ts.map +1 -1
  284. package/dist/src/smart-contracts/use-cases/dex/transactions/create-pool.js.map +1 -1
  285. package/dist/src/smart-contracts/use-cases/dex/transactions/remove-liquidity.d.ts +3 -2
  286. package/dist/src/smart-contracts/use-cases/dex/transactions/remove-liquidity.d.ts.map +1 -1
  287. package/dist/src/smart-contracts/use-cases/dex/transactions/remove-liquidity.js.map +1 -1
  288. package/dist/src/smart-contracts/use-cases/dex/transactions/swap.d.ts +3 -2
  289. package/dist/src/smart-contracts/use-cases/dex/transactions/swap.d.ts.map +1 -1
  290. package/dist/src/smart-contracts/use-cases/dex/transactions/swap.js.map +1 -1
  291. package/dist/src/smart-contracts/use-cases/dex/transactions/unlock-liquidity.d.ts +3 -2
  292. package/dist/src/smart-contracts/use-cases/dex/transactions/unlock-liquidity.d.ts.map +1 -1
  293. package/dist/src/smart-contracts/use-cases/dex/transactions/unlock-liquidity.js.map +1 -1
  294. package/dist/src/smart-contracts/use-cases/dex/types.d.ts +2 -2
  295. package/dist/src/smart-contracts/use-cases/dex/types.d.ts.map +1 -1
  296. package/dist/src/smart-contracts/use-cases/dex/utils.d.ts +2 -1
  297. package/dist/src/smart-contracts/use-cases/dex/utils.d.ts.map +1 -1
  298. package/dist/src/smart-contracts/use-cases/dex/utils.js +1 -1
  299. package/dist/src/smart-contracts/use-cases/dex/utils.js.map +1 -1
  300. package/dist/src/smart-contracts/use-cases/staking/transactions/instant-stake.d.ts +3 -2
  301. package/dist/src/smart-contracts/use-cases/staking/transactions/instant-stake.d.ts.map +1 -1
  302. package/dist/src/smart-contracts/use-cases/staking/transactions/instant-stake.js.map +1 -1
  303. package/dist/src/smart-contracts/use-cases/staking/transactions/release-instant.d.ts +3 -2
  304. package/dist/src/smart-contracts/use-cases/staking/transactions/release-instant.d.ts.map +1 -1
  305. package/dist/src/smart-contracts/use-cases/staking/transactions/release-instant.js.map +1 -1
  306. package/dist/src/smart-contracts/use-cases/staking/transactions/release-liquid-stake.d.ts +3 -2
  307. package/dist/src/smart-contracts/use-cases/staking/transactions/release-liquid-stake.d.ts.map +1 -1
  308. package/dist/src/smart-contracts/use-cases/staking/transactions/release-liquid-stake.js.map +1 -1
  309. package/dist/src/smart-contracts/use-cases/staking/transactions/stake.d.ts +3 -2
  310. package/dist/src/smart-contracts/use-cases/staking/transactions/stake.d.ts.map +1 -1
  311. package/dist/src/smart-contracts/use-cases/staking/transactions/stake.js.map +1 -1
  312. package/dist/src/smart-contracts/use-cases/staking/transactions/update-instant-wallet.d.ts +3 -2
  313. package/dist/src/smart-contracts/use-cases/staking/transactions/update-instant-wallet.d.ts.map +1 -1
  314. package/dist/src/smart-contracts/use-cases/staking/transactions/update-instant-wallet.js.map +1 -1
  315. package/dist/src/smart-contracts/use-cases/staking/transactions/update-wallet.d.ts +3 -2
  316. package/dist/src/smart-contracts/use-cases/staking/transactions/update-wallet.d.ts.map +1 -1
  317. package/dist/src/smart-contracts/use-cases/staking/transactions/update-wallet.js.map +1 -1
  318. package/dist/src/smart-contracts/use-cases/staking/utils.d.ts +2 -1
  319. package/dist/src/smart-contracts/use-cases/staking/utils.d.ts.map +1 -1
  320. package/dist/src/smart-contracts/use-cases/staking/utils.js.map +1 -1
  321. package/dist/src/types/index.d.ts +9 -1
  322. package/dist/src/types/index.d.ts.map +1 -1
  323. package/dist/src/types/index.js.map +1 -1
  324. package/dist/src/validator-ops/index.d.ts +1 -1
  325. package/dist/src/validator-ops/index.d.ts.map +1 -1
  326. package/dist/src/validator-ops/index.js.map +1 -1
  327. package/dist/src/validator-ops/transaction.d.ts +26 -252
  328. package/dist/src/validator-ops/transaction.d.ts.map +1 -1
  329. package/dist/src/validator-ops/transaction.js +165 -311
  330. package/dist/src/validator-ops/transaction.js.map +1 -1
  331. package/dist/src/vote/transaction.d.ts +10 -1
  332. package/dist/src/vote/transaction.d.ts.map +1 -1
  333. package/dist/src/vote/transaction.js +42 -7
  334. package/dist/src/vote/transaction.js.map +1 -1
  335. package/dist/src/wallet-creation/falcon.d.ts +40 -0
  336. package/dist/src/wallet-creation/falcon.d.ts.map +1 -0
  337. package/dist/src/wallet-creation/falcon.js +82 -0
  338. package/dist/src/wallet-creation/falcon.js.map +1 -0
  339. package/dist/src/wallet-creation/index.d.ts +1 -0
  340. package/dist/src/wallet-creation/index.d.ts.map +1 -1
  341. package/dist/src/wallet-creation/index.js +1 -0
  342. package/dist/src/wallet-creation/index.js.map +1 -1
  343. package/dist/src/wallet-creation/shared.js +7 -7
  344. package/dist/src/wallet-registration/index.d.ts +16 -0
  345. package/dist/src/wallet-registration/index.d.ts.map +1 -0
  346. package/dist/src/wallet-registration/index.js +28 -0
  347. package/dist/src/wallet-registration/index.js.map +1 -0
  348. package/dist/src/wallet-registration/policy.d.ts +11 -0
  349. package/dist/src/wallet-registration/policy.d.ts.map +1 -0
  350. package/dist/src/wallet-registration/policy.js +78 -0
  351. package/dist/src/wallet-registration/policy.js.map +1 -0
  352. package/dist/wallet.d.ts +3 -3
  353. package/dist/wallet.d.ts.map +1 -1
  354. package/dist/wallet.js +3 -3
  355. package/dist/wallet.js.map +1 -1
  356. package/package.json +130 -129
  357. package/dist/src/quash/index.d.ts +0 -2
  358. package/dist/src/quash/index.d.ts.map +0 -1
  359. package/dist/src/quash/index.js +0 -2
  360. package/dist/src/quash/index.js.map +0 -1
  361. package/dist/src/quash/transaction.d.ts +0 -124
  362. package/dist/src/quash/transaction.d.ts.map +0 -1
  363. package/dist/src/quash/transaction.js +0 -118
  364. package/dist/src/quash/transaction.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,202 +1,230 @@
1
- # Changelog
2
-
3
- All notable changes to this project are documented here. The format follows
4
- [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and the project uses
5
- [Semantic Versioning](https://semver.org/). While the version is `0.0.x`, any
6
- release may change APIs; pin an exact version.
7
-
8
- ## [0.0.1-alpha.2] — 2026-10-01
9
-
10
- Checksummed contract IDs, executable governance proposals, and the re-issued
11
- `kal_guardian` proto.
12
-
13
- ### Changed
14
-
15
- - **Breaking:** `guardian.proto` is updated to the re-issued bridge guardian
16
- proto. Its package is now `kal_guardian`, so `GuardianService.typeName` and
17
- `KalvoraRpcError.service` for guardian calls are
18
- `kal_guardian.GuardianService`; callers passing their own `transport` send
19
- `/kal_guardian.GuardianService/*` (the default transport still sends the
20
- Envoy alias `/guardian/*`). The generated Kalvora-side names drop the former
21
- network name: messages `KalPayload`, `KalContractPayload`, `KalMintPayload`,
22
- `KalReleasePayload`, `KalRefundPayload`; fields `kalContractId`,
23
- `kalWalletAddress`, `kalKey`, `kalPayloads`, `kalPayload`. `NETWORK_TYPE`
24
- gains `KALVORA` (`0`), `ETHEREUM` (`2`) and `ZERA` (`3`).
25
- `NETWORK_TYPE_KALVORA` is unchanged (`0`); `GUARDIAN_KALVORA_PAYLOAD_CASE`
26
- is now `'kalPayload'`. The `KalvoraGuardian*Payload` aliases keep working.
27
-
28
- ### Added
29
-
30
- - Contract-id helpers: `deriveGenesisContractId`, `deriveOrdinaryContractId`,
31
- `deriveContractDataHash`, `encodeContractId`, `isCanonicalContractId`,
32
- `decodeContractId`, `GENESIS_CONTRACT_IDS`, and `GENESIS_CONTRACT_NONCES`.
33
- `buildContractTXN` derives the id from `vanityNonce`. See
34
- [Contract IDs](./docs/guides/contract-ids.md).
35
- - `buildGovernanceProposalTXN` (`buildGovernanceProposal`) for proposals that
36
- carry transactions, plus `applyProposalStageFee` and
37
- `FORBIDDEN_OPTION_WORDS`. Usage, including a coin transfer attachment, is
38
- in [src/proposal/README.md](./src/proposal/README.md).
39
- - Query helpers: `getContractItem`, `acceptSmartContractEvent`,
40
- `verifySmartContractEventSignature`, `nextSmartContractEventSearchStart`.
41
- `getContractSupply` also returns `circulation`.
42
- - `itemFeeParts` and `parseUint256`. Builder aliases `buildCoinTransfer`,
43
- `buildInstrumentContract`, `buildItemMint`, `buildNftTransfer`,
44
- `buildSbtBurn`, `buildRevoke`, and signed `buildMint`.
45
- - The 2026-09-30 SDK audit is recorded in
46
- [docs/audit-2026-09-30.md](./docs/audit-2026-09-30.md).
47
-
48
- ## [0.0.1-alpha.1] — 2026-09-29
49
-
50
- Documentation cleanup, a rewritten README, and a few SDK-only renames. Key
51
- derivation and every derived address are byte-identical to 0.0.1-alpha.0.
52
-
53
- Earlier builds (`0.1.0` and `0.0.1-alpha.0`) are withdrawn from npm and
54
- replaced by this release.
55
-
56
- ### Changed
57
-
58
- - **Breaking:** the Solana bridge lock options (`LockSplOptions`,
59
- `LockSolOptions`, `LockToken2022Options` and the token-type routed lock)
60
- take `kalvoraAddress`, and `BurnWrappedOptions` takes `kalvoraRecipient`.
61
- The value is Borsh-encoded positionally, so the instruction bytes are
62
- unchanged (pinned by golden tests).
63
- - **Breaking:** `releaseKalvora`, `mintSol`, `createSol` and their `*AndSend`
64
- variants name their first parameter `toKalvoraAddress` (positional; only the
65
- name and the "is required" error message change).
66
- - **Breaking:** the root type export for the Kalvora-bound guardian payload is
67
- `KalvoraGuardianPayload`, and `guardianBridge` exports
68
- `KalvoraGuardianPayload`, `KalvoraGuardianContractPayload`,
69
- `KalvoraGuardianMintPayload`, `KalvoraGuardianReleasePayload` and
70
- `KalvoraGuardianRefundPayload` in place of the generated message names. The
71
- generated bindings are still available under `proto.guardian`.
72
- - **Breaking:** the Kalvora-side bridge namespace inside the bridge use-case
73
- module is `kalvora`.
74
- - The README quick start now creates a standard Kalvora address (base58 of the
75
- raw public key, no `hashTypes`) instead of a legacy hashed address.
76
- - Documentation: the README is rewritten; guides, module READMEs, TSDoc and
77
- examples describe wire values through named constants; the migration guide
78
- for the SDK this project was derived from is removed.
79
-
80
- ### Added
81
-
82
- - Wallet protocol constants, exported from the package root and pinned by
83
- tests: `KALVORA_INJECTED_PROVIDER_KEY`, `KALVORA_PROVIDER_FLAG`,
84
- `KALVORA_PROVIDER_METHODS`, `KALVORA_DEEP_LINK_SCHEME`,
85
- `KALVORA_DEFAULT_DEEP_LINK` and `KALVORA_DEEP_LINK_PARAMS`. The adapter and
86
- signers use them; their values are unchanged.
87
- - `LEGACY_TXN_TYPE_PREFIX`, the pre-rename transaction package prefix that
88
- serialized envelopes may still carry.
89
- - Guardian protocol names: `NETWORK_TYPE_KALVORA` (equal to the guardian
90
- enum's Kalvora value, `0`) and `GUARDIAN_KALVORA_PAYLOAD_CASE`.
91
- - `BRIDGE_FUNCTIONS`: the bridge proxy contract's function names, used by the
92
- Kalvora-side bridge builders.
93
-
94
- ## [0.0.1-alpha.0] — withdrawn (alpha pre-release)
95
-
96
- Renumbered kalvora.js as an **alpha**, made Ed25519 HD derivation standard
97
- SLIP-0010, and switched the SDK to the official Kalvora protos (`txn.proto`,
98
- `validator.proto`, `kal_api.proto`).
99
-
100
- The version went *down* from 0.1.0 on purpose: 0.1.0 was an earlier
101
- pre-release, published before the key derivation and wire protocol were
102
- settled, and has been withdrawn; everything it added is part of the `0.0.x`
103
- line. The `0.0.x` line carries no compatibility promise between releases.
104
-
105
- ### Changed
106
-
107
- - **Breaking (keys): Ed25519 HD derivation is now standard
108
- [SLIP-0010](https://github.com/satoshilabs/slips/blob/master/slip-0010.md).**
109
- It previously used the Ed448-style scheme — master key `"Kalvora seed"` and
110
- a child step over little-endian `index || key` — which was described as
111
- SLIP-0010 but was not. It now uses the `"ed25519 seed"`
112
- master key and `0x00 || key || ser32BE(index)`, so every SLIP-0010 wallet
113
- derives the same Ed25519 key from the same seed and path. **The same
114
- mnemonic now gives a different Ed25519 address**: the BIP-39 test
115
- mnemonic's first address changes from
116
- `Hb6KH2BhgcjCYnc3JwDU1VNfbLds2yfMDMVwZGUWSunE` to
117
- `35q7SEc9HVV7Gd9oVKCnZjPMxpLrH9DftTcBUyHahTZP`. No Kalvora wallet had
118
- shipped on the old scheme, so there is no legacy option.
119
- - **Breaking:** an Ed25519 derivation path with an unhardened segment now
120
- throws, since SLIP-0010 defines only hardened Ed25519 children. Every path
121
- the SDK builds itself is already fully hardened.
122
- - **Ed448 derivation is unchanged.** SLIP-0010 does not define Ed448 and no
123
- other standard does, so Ed448 keeps Kalvora's scheme byte for byte, now
124
- pinned by reference vectors. See
125
- [docs/guides/hd-derivation.md](./docs/guides/hd-derivation.md).
126
-
127
- - **Breaking:** protobuf packages moved to the official `kal_txn`,
128
- `kal_api`, `kal_validator` packages. Every generated `$typeName` /
129
- `typeName` changes accordingly (e.g. `kal_txn.CoinTXN`), as do
130
- `SerializedTransaction.type`, `SMART_SWAP_TRANSACTION_TYPE`
131
- (`kal_txn.SmartContractExecuteTXN`) and `KalvoraRpcError.service`. The
132
- guardian service keeps its own proto package (the guardian proto was not
133
- re-issued).
134
- - **Breaking (wire):** fully qualified gRPC paths are now
135
- `/kal_api.APIService/*`, `/kal_txn.TXNService/*`,
136
- `/kal_validator.ValidatorService/*`. The default transport still sends the
137
- Envoy aliases `/api/*`, `/txn/*`, `/validator/*`, `/guardian/*`
138
- (unchanged); only callers passing their own `transport` send the fully
139
- qualified path. Nodes and their Envoy routes must serve the `kal_*`
140
- services.
141
- - **Breaking:** the API proto file is now `proto/kal_api.proto` and its
142
- bindings `proto/generated/kal_api_pb.js` (was `api.proto` / `api_pb.js`);
143
- `dist/proto/` ships `kal_api.proto` and now also `guardian.proto`.
144
- - Proto sources are committed byte-identical to the official release (CRLF
145
- line endings, no repo-local options; `proto/.gitattributes` disables
146
- line-ending conversion). `proto:sync` / `proto:check` accept the official
147
- flat release or a kalvora-indexer checkout, no longer normalise trailing
148
- newlines, and treat `guardian.proto` as optional.
149
- - `deserializeTransaction` and `getSchemaForTypeName` accept type names with
150
- the pre-rename transaction package prefix (message bytes are unchanged by
151
- the rename); the Smart Swap facade accepts such an envelope for
152
- `SmartContractExecuteTXN` and reports it as `kal_txn`.
153
- - **Breaking:** native token symbol is `KALV` everywhere. `KALVORA_SYMBOL`
154
- (and therefore `wallet.symbol` on created wallets) changes from `KAL` to
155
- `KALV`, matching `KALVORA_NETWORKS.protonet.nativeSymbol`;
156
- `TransactionFormatter.formatAmount` defaults to `KALV`, and the internal
157
- `formatAmount` helper labels the native token `KALV` instead of slicing the
158
- contract ID. The `KAL`+Base58 contract-ID prefix is unchanged.
159
- - **Breaking (default endpoint):** the default gRPC-Web origin is now
160
- `https://kal-proto.visiondynamics.ch` (Envoy, port 443), replacing
161
- `kal-protonet.visiondynamics.ch`, in `createClient`, `PROTONET_GRPC_CONFIG`,
162
- `KALVORA_PROTONET_ENDPOINT`, the `protonet` network preset, examples and
163
- docs. Callers passing an explicit `host`/`endpoint` are unaffected.
164
-
165
- ### Added
166
-
167
- - `kalvora.js/wallet`: the wallet surface on its own (mnemonics, HD
168
- derivation, key pairs, address encoding), depending only on
169
- `@noble/curves`, `@noble/hashes`, `bip39`, and `bs58`, with no network or
170
- protobuf code. ESM-only; the same exports remain on the main entry.
171
- - `deriveHDPrivateKey(seed, path?, keyType?)`: the 32-byte key at a path and
172
- nothing else, zeroing every intermediate node. Defaults to Ed25519 at
173
- `m/44'/5258'/0'/0'/0'`.
174
- - `docs/guides/hd-derivation.md`: the byte-level derivation spec for both key
175
- types, with reference vectors; the SLIP-0010 Ed25519 test vector 1 and the
176
- Kalvora vectors are checked in `hd-derivation-vectors.test.ts`.
177
-
178
- - `TextGovernanceProposalInput.proposalType` (`ProposalType`, field 11).
179
- Defaults to `ProposalType.NONE`, which is not encoded, so existing proposals
180
- are byte-identical; the v1 golden vector is unchanged.
181
- - `ProposalLedgerView.statuses` (`ProposalStatusView[]`) from
182
- `ProposalLedgerResponse.proposal_statuses`, with the pre-governance phase,
183
- outcome, window dates, fees, `promotionPending` and the contract's
184
- `PreGovernance` policy.
185
- - `TransactionResult.proposalIdentifier` (`TXNStatusFees.proposal_identifier`).
186
- - `CheckpointInfo.fileHash`, `publicKey` and `signature` (returned as
187
- received; not verified by the SDK).
188
- - Exports: `ProposalType`, `PROPOSAL_PHASE`, `PRE_GOVERNANCE_OUTCOME`,
189
- `ProposalStatusView`, `normalizeTransactionTypeName`.
190
- - New protocol fields are available through the raw bindings (`proto.*`):
191
- `NFT.parameters/expiry/valid_from`, `Voter.phase`, `Proposal` fields 19–25,
192
- `ProposalResult.pre_governance`.
193
-
194
- ### Removed
195
-
196
- - **Breaking:** `ValidatorInfoInput.stakedContractIds`. `Validator` field 5
197
- (`staked_contract_ids`) is reserved because staking is KALV-only; passing the
198
- option now throws instead of being silently dropped.
199
- - **Breaking:** `StakeMultipliers` message (`proto.validator`).
200
- - **Breaking:** the governance auth message is now `KalGovernanceAuth`;
201
- `ProcessLedger.cycle_contract_ids` changed from `bytes` to `string`
202
- (canonical Base58 contract IDs). Neither was used by the typed API.
1
+ # Changelog
2
+
3
+ All notable changes to this project are documented here. The format follows
4
+ [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and the project uses
5
+ [Semantic Versioning](https://semver.org/). While the version is `0.0.x`, any
6
+ release may change APIs; pin an exact version.
7
+
8
+ ## [Unreleased]
9
+
10
+ ## [0.0.1-alpha.3] — prerelease
11
+
12
+ ### Changed
13
+
14
+ - Migrate fresh-genesis wallets to registered Falcon addresses. Derive the wire chain ID from the network name and final genesis hash. The SDK supports registrations, single-key and policy spends, sponsorship and two-role validator assignments.
15
+ - Add registry and governance queries, signed response verification, V2 wallet-created contract IDs, typed grants and safe sends. See the [implementation overview and acceptance status](./docs/protocol-migration-overview-2026-11-25.md).
16
+ - Correct Coin amount and fee conversion for nondecimal denominations and large values. Verify the default-zero vanity nonce on wallet-created contracts, validate recipient and nested proof shapes, and preserve the order of governance results when v35 closes multiple steps in one block. Unary RPCs honor configured deadlines during submission and receipt recovery.
17
+
18
+ - **Breaking:** remove Quash APIs and retired restricted-key delay/quash and
19
+ contract quash-threshold fields. Legacy signed transactions must be rebuilt
20
+ and signed again.
21
+ - **Breaking:** smart-contract execute/instantiate allowances use a finite
22
+ uint256 `allowedAmount` or the exact string `"unlimited"`. Omitted lists
23
+ and unlisted tokens have zero caller-wallet spending budget.
24
+ - Processing-result decoders require explicit `TXNStatusFees.status` presence;
25
+ transaction polling ignores hash-only rows. Receipt polling does not verify
26
+ block finality evidence.
27
+
28
+ ### Added
29
+
30
+ - Canonical offline/multisig signing and hashing helpers, sponsor signing
31
+ bytes, and explicit transaction-context overrides. See
32
+ [transaction signing](./src/sign/README.md).
33
+ - Optional BLS attestation key input for validator registration, with key/proof
34
+ byte-length validation.
35
+
36
+ ## [0.0.1-alpha.2] — 2026-10-01
37
+
38
+ Checksummed contract IDs, executable governance proposals, and the re-issued
39
+ `kal_guardian` proto.
40
+
41
+ ### Changed
42
+
43
+ - **Breaking:** `guardian.proto` is updated to the re-issued bridge guardian
44
+ proto. Its package is now `kal_guardian`, so `GuardianService.typeName` and
45
+ `KalvoraRpcError.service` for guardian calls are
46
+ `kal_guardian.GuardianService`; callers passing their own `transport` send
47
+ `/kal_guardian.GuardianService/*` (the default transport still sends the
48
+ Envoy alias `/guardian/*`). The generated Kalvora-side names drop the former
49
+ network name: messages `KalPayload`, `KalContractPayload`, `KalMintPayload`,
50
+ `KalReleasePayload`, `KalRefundPayload`; fields `kalContractId`,
51
+ `kalWalletAddress`, `kalKey`, `kalPayloads`, `kalPayload`. `NETWORK_TYPE`
52
+ gains `KALVORA` (`0`), `ETHEREUM` (`2`) and `ZERA` (`3`).
53
+ `NETWORK_TYPE_KALVORA` is unchanged (`0`); `GUARDIAN_KALVORA_PAYLOAD_CASE`
54
+ is now `'kalPayload'`. The `KalvoraGuardian*Payload` aliases keep working.
55
+
56
+ ### Added
57
+
58
+ - Contract-id helpers: `deriveGenesisContractId`, `deriveOrdinaryContractId`,
59
+ `deriveContractDataHash`, `encodeContractId`, `isCanonicalContractId`,
60
+ `decodeContractId`, `GENESIS_CONTRACT_IDS`, and `GENESIS_CONTRACT_NONCES`.
61
+ `buildContractTXN` derives the id from `vanityNonce`. See
62
+ [Contract IDs](./docs/guides/contract-ids.md).
63
+ - `buildGovernanceProposalTXN` (`buildGovernanceProposal`) for proposals that
64
+ carry transactions, plus `applyProposalStageFee` and
65
+ `FORBIDDEN_OPTION_WORDS`. Usage, including a coin transfer attachment, is
66
+ in [src/proposal/README.md](./src/proposal/README.md).
67
+ - Query helpers: `getContractItem`, `acceptSmartContractEvent`,
68
+ `verifySmartContractEventSignature`, `nextSmartContractEventSearchStart`.
69
+ `getContractSupply` also returns `circulation`.
70
+ - `itemFeeParts` and `parseUint256`. Builder aliases `buildCoinTransfer`,
71
+ `buildInstrumentContract`, `buildItemMint`, `buildNftTransfer`,
72
+ `buildSbtBurn`, `buildRevoke`, and signed `buildMint`.
73
+ - The 2026-09-30 SDK audit is recorded in
74
+ [docs/audit-2026-09-30.md](./docs/audit-2026-09-30.md).
75
+
76
+ ## [0.0.1-alpha.1] — 2026-09-29
77
+
78
+ Documentation cleanup, a rewritten README, and a few SDK-only renames. Key
79
+ derivation and every derived address are byte-identical to 0.0.1-alpha.0.
80
+
81
+ Earlier builds (`0.1.0` and `0.0.1-alpha.0`) are withdrawn from npm and
82
+ replaced by this release.
83
+
84
+ ### Changed
85
+
86
+ - **Breaking:** the Solana bridge lock options (`LockSplOptions`,
87
+ `LockSolOptions`, `LockToken2022Options` and the token-type routed lock)
88
+ take `kalvoraAddress`, and `BurnWrappedOptions` takes `kalvoraRecipient`.
89
+ The value is Borsh-encoded positionally, so the instruction bytes are
90
+ unchanged (pinned by golden tests).
91
+ - **Breaking:** `releaseKalvora`, `mintSol`, `createSol` and their `*AndSend`
92
+ variants name their first parameter `toKalvoraAddress` (positional; only the
93
+ name and the "is required" error message change).
94
+ - **Breaking:** the root type export for the Kalvora-bound guardian payload is
95
+ `KalvoraGuardianPayload`, and `guardianBridge` exports
96
+ `KalvoraGuardianPayload`, `KalvoraGuardianContractPayload`,
97
+ `KalvoraGuardianMintPayload`, `KalvoraGuardianReleasePayload` and
98
+ `KalvoraGuardianRefundPayload` in place of the generated message names. The
99
+ generated bindings are still available under `proto.guardian`.
100
+ - **Breaking:** the Kalvora-side bridge namespace inside the bridge use-case
101
+ module is `kalvora`.
102
+ - The README quick start now creates a standard Kalvora address (base58 of the
103
+ raw public key, no `hashTypes`) instead of a legacy hashed address.
104
+ - Documentation: the README is rewritten; guides, module READMEs, TSDoc and
105
+ examples describe wire values through named constants; the migration guide
106
+ for the SDK this project was derived from is removed.
107
+
108
+ ### Added
109
+
110
+ - Wallet protocol constants, exported from the package root and pinned by
111
+ tests: `KALVORA_INJECTED_PROVIDER_KEY`, `KALVORA_PROVIDER_FLAG`,
112
+ `KALVORA_PROVIDER_METHODS`, `KALVORA_DEEP_LINK_SCHEME`,
113
+ `KALVORA_DEFAULT_DEEP_LINK` and `KALVORA_DEEP_LINK_PARAMS`. The adapter and
114
+ signers use them; their values are unchanged.
115
+ - `LEGACY_TXN_TYPE_PREFIX`, the pre-rename transaction package prefix that
116
+ serialized envelopes may still carry.
117
+ - Guardian protocol names: `NETWORK_TYPE_KALVORA` (equal to the guardian
118
+ enum's Kalvora value, `0`) and `GUARDIAN_KALVORA_PAYLOAD_CASE`.
119
+ - `BRIDGE_FUNCTIONS`: the bridge proxy contract's function names, used by the
120
+ Kalvora-side bridge builders.
121
+
122
+ ## [0.0.1-alpha.0] — withdrawn (alpha pre-release)
123
+
124
+ Renumbered kalvora.js as an **alpha**, made Ed25519 HD derivation standard
125
+ SLIP-0010, and switched the SDK to the official Kalvora protos (`txn.proto`,
126
+ `validator.proto`, `kal_api.proto`).
127
+
128
+ The version went *down* from 0.1.0 on purpose: 0.1.0 was an earlier
129
+ pre-release, published before the key derivation and wire protocol were
130
+ settled, and has been withdrawn; everything it added is part of the `0.0.x`
131
+ line. The `0.0.x` line carries no compatibility promise between releases.
132
+
133
+ ### Changed
134
+
135
+ - **Breaking (keys): Ed25519 HD derivation is now standard
136
+ [SLIP-0010](https://github.com/satoshilabs/slips/blob/master/slip-0010.md).**
137
+ It previously used the Ed448-style scheme — master key `"Kalvora seed"` and
138
+ a child step over little-endian `index || key` — which was described as
139
+ SLIP-0010 but was not. It now uses the `"ed25519 seed"`
140
+ master key and `0x00 || key || ser32BE(index)`, so every SLIP-0010 wallet
141
+ derives the same Ed25519 key from the same seed and path. **The same
142
+ mnemonic now gives a different Ed25519 address**: the BIP-39 test
143
+ mnemonic's first address changes from
144
+ `Hb6KH2BhgcjCYnc3JwDU1VNfbLds2yfMDMVwZGUWSunE` to
145
+ `35q7SEc9HVV7Gd9oVKCnZjPMxpLrH9DftTcBUyHahTZP`. No Kalvora wallet had
146
+ shipped on the old scheme, so there is no legacy option.
147
+ - **Breaking:** an Ed25519 derivation path with an unhardened segment now
148
+ throws, since SLIP-0010 defines only hardened Ed25519 children. Every path
149
+ the SDK builds itself is already fully hardened.
150
+ - **Ed448 derivation is unchanged.** SLIP-0010 does not define Ed448 and no
151
+ other standard does, so Ed448 keeps Kalvora's scheme byte for byte, now
152
+ pinned by reference vectors. See
153
+ [docs/guides/hd-derivation.md](./docs/guides/hd-derivation.md).
154
+
155
+ - **Breaking:** protobuf packages moved to the official `kal_txn`,
156
+ `kal_api`, `kal_validator` packages. Every generated `$typeName` /
157
+ `typeName` changes accordingly (e.g. `kal_txn.CoinTXN`), as do
158
+ `SerializedTransaction.type`, `SMART_SWAP_TRANSACTION_TYPE`
159
+ (`kal_txn.SmartContractExecuteTXN`) and `KalvoraRpcError.service`. The
160
+ guardian service keeps its own proto package (the guardian proto was not
161
+ re-issued).
162
+ - **Breaking (wire):** fully qualified gRPC paths are now
163
+ `/kal_api.APIService/*`, `/kal_txn.TXNService/*`,
164
+ `/kal_validator.ValidatorService/*`. The default transport still sends the
165
+ Envoy aliases `/api/*`, `/txn/*`, `/validator/*`, `/guardian/*`
166
+ (unchanged); only callers passing their own `transport` send the fully
167
+ qualified path. Nodes and their Envoy routes must serve the `kal_*`
168
+ services.
169
+ - **Breaking:** the API proto file is now `proto/kal_api.proto` and its
170
+ bindings `proto/generated/kal_api_pb.js` (was `api.proto` / `api_pb.js`);
171
+ `dist/proto/` ships `kal_api.proto` and now also `guardian.proto`.
172
+ - Proto sources are committed byte-identical to the official release (CRLF
173
+ line endings, no repo-local options; `proto/.gitattributes` disables
174
+ line-ending conversion). `proto:sync` / `proto:check` accept the official
175
+ flat release or a kalvora-indexer checkout, no longer normalise trailing
176
+ newlines, and treat `guardian.proto` as optional.
177
+ - `deserializeTransaction` and `getSchemaForTypeName` accept type names with
178
+ the pre-rename transaction package prefix (message bytes are unchanged by
179
+ the rename); the Smart Swap facade accepts such an envelope for
180
+ `SmartContractExecuteTXN` and reports it as `kal_txn`.
181
+ - **Breaking:** native token symbol is `KALV` everywhere. `KALVORA_SYMBOL`
182
+ (and therefore `wallet.symbol` on created wallets) changes from `KAL` to
183
+ `KALV`, matching `KALVORA_NETWORKS.protonet.nativeSymbol`;
184
+ `TransactionFormatter.formatAmount` defaults to `KALV`, and the internal
185
+ `formatAmount` helper labels the native token `KALV` instead of slicing the
186
+ contract ID. The `KAL`+Base58 contract-ID prefix is unchanged.
187
+ - **Breaking (default endpoint):** the default gRPC-Web origin is now
188
+ `https://kal-proto.visiondynamics.ch` (Envoy, port 443), replacing
189
+ `kal-protonet.visiondynamics.ch`, in `createClient`, `PROTONET_GRPC_CONFIG`,
190
+ `KALVORA_PROTONET_ENDPOINT`, the `protonet` network preset, examples and
191
+ docs. Callers passing an explicit `host`/`endpoint` are unaffected.
192
+
193
+ ### Added
194
+
195
+ - `kalvora.js/wallet`: the wallet surface on its own (mnemonics, HD
196
+ derivation, key pairs, address encoding), depending only on
197
+ `@noble/curves`, `@noble/hashes`, `bip39`, and `bs58`, with no network or
198
+ protobuf code. ESM-only; the same exports remain on the main entry.
199
+ - `deriveHDPrivateKey(seed, path?, keyType?)`: the 32-byte key at a path and
200
+ nothing else, zeroing every intermediate node. Defaults to Ed25519 at
201
+ `m/44'/5258'/0'/0'/0'`.
202
+ - `docs/guides/hd-derivation.md`: the byte-level derivation spec for both key
203
+ types, with reference vectors; the SLIP-0010 Ed25519 test vector 1 and the
204
+ Kalvora vectors are checked in `hd-derivation-vectors.test.ts`.
205
+
206
+ - `TextGovernanceProposalInput.proposalType` (`ProposalType`, field 11).
207
+ Defaults to `ProposalType.NONE`, which is not encoded, so existing proposals
208
+ are byte-identical; the v1 golden vector is unchanged.
209
+ - `ProposalLedgerView.statuses` (`ProposalStatusView[]`) from
210
+ `ProposalLedgerResponse.proposal_statuses`, with the pre-governance phase,
211
+ outcome, window dates, fees, `promotionPending` and the contract's
212
+ `PreGovernance` policy.
213
+ - `TransactionResult.proposalIdentifier` (`TXNStatusFees.proposal_identifier`).
214
+ - `CheckpointInfo.fileHash`, `publicKey` and `signature` (returned as
215
+ received; not verified by the SDK).
216
+ - Exports: `ProposalType`, `PROPOSAL_PHASE`, `PRE_GOVERNANCE_OUTCOME`,
217
+ `ProposalStatusView`, `normalizeTransactionTypeName`.
218
+ - New protocol fields are available through the raw bindings (`proto.*`):
219
+ `NFT.parameters/expiry/valid_from`, `Voter.phase`, `Proposal` fields 19–25,
220
+ `ProposalResult.pre_governance`.
221
+
222
+ ### Removed
223
+
224
+ - **Breaking:** `ValidatorInfoInput.stakedContractIds`. `Validator` field 5
225
+ (`staked_contract_ids`) is reserved because staking is KALV-only; passing the
226
+ option now throws instead of being silently dropped.
227
+ - **Breaking:** `StakeMultipliers` message (`proto.validator`).
228
+ - **Breaking:** the governance auth message is now `KalGovernanceAuth`;
229
+ `ProcessLedger.cycle_contract_ids` changed from `bytes` to `string`
230
+ (canonical Base58 contract IDs). Neither was used by the typed API.