kalvora.js 0.0.1-alpha.1 → 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 (403) hide show
  1. package/CHANGELOG.md +230 -162
  2. package/LICENSE +202 -202
  3. package/NOTICE +10 -10
  4. package/README.md +274 -391
  5. package/dist/LICENSE +202 -202
  6. package/dist/README.md +274 -391
  7. package/dist/index.cjs +17294 -11701
  8. package/dist/index.cjs.map +4 -4
  9. package/dist/index.d.ts +23 -12
  10. package/dist/index.d.ts.map +1 -1
  11. package/dist/index.js +20 -11
  12. package/dist/index.js.map +1 -1
  13. package/dist/index.mjs +20 -11
  14. package/dist/proto/generated/guardian_pb.d.ts +216 -206
  15. package/dist/proto/generated/guardian_pb.js +50 -47
  16. package/dist/proto/generated/kal_api_pb.d.ts +406 -2
  17. package/dist/proto/generated/kal_api_pb.js +81 -39
  18. package/dist/proto/generated/txn_pb.d.ts +721 -128
  19. package/dist/proto/generated/txn_pb.js +183 -71
  20. package/dist/proto/generated/validator_pb.d.ts +2218 -583
  21. package/dist/proto/generated/validator_pb.js +322 -80
  22. package/dist/proto/guardian.proto +268 -266
  23. package/dist/proto/kal_api.proto +82 -0
  24. package/dist/proto/txn.proto +189 -46
  25. package/dist/proto/validator.proto +803 -469
  26. package/dist/src/adapter/index.d.ts +1 -0
  27. package/dist/src/adapter/index.d.ts.map +1 -1
  28. package/dist/src/adapter/signing-account.d.ts +19 -0
  29. package/dist/src/adapter/signing-account.d.ts.map +1 -0
  30. package/dist/src/adapter/signing-account.js +38 -0
  31. package/dist/src/adapter/signing-account.js.map +1 -0
  32. package/dist/src/adapter/wallet-adapter.d.ts +5 -1
  33. package/dist/src/adapter/wallet-adapter.d.ts.map +1 -1
  34. package/dist/src/adapter/wallet-adapter.js +81 -33
  35. package/dist/src/adapter/wallet-adapter.js.map +1 -1
  36. package/dist/src/adapter/wallet-signer.d.ts +9 -7
  37. package/dist/src/adapter/wallet-signer.d.ts.map +1 -1
  38. package/dist/src/adapter/wallet-signer.js +35 -26
  39. package/dist/src/adapter/wallet-signer.js.map +1 -1
  40. package/dist/src/adapter/walletconnect.d.ts +4 -5
  41. package/dist/src/adapter/walletconnect.d.ts.map +1 -1
  42. package/dist/src/adapter/walletconnect.js +12 -9
  43. package/dist/src/adapter/walletconnect.js.map +1 -1
  44. package/dist/src/allowance/transaction.d.ts +3 -2
  45. package/dist/src/allowance/transaction.d.ts.map +1 -1
  46. package/dist/src/allowance/transaction.js +4 -4
  47. package/dist/src/allowance/transaction.js.map +1 -1
  48. package/dist/src/api/validator/base-fee/service.d.ts +1 -1
  49. package/dist/src/api/validator/base-fee/service.d.ts.map +1 -1
  50. package/dist/src/api/validator/base-fee/service.js +2 -2
  51. package/dist/src/api/validator/base-fee/service.js.map +1 -1
  52. package/dist/src/client/index.d.ts +1 -1
  53. package/dist/src/client/index.d.ts.map +1 -1
  54. package/dist/src/client/index.js +1 -1
  55. package/dist/src/client/index.js.map +1 -1
  56. package/dist/src/client/kalvora-client.d.ts +2 -1
  57. package/dist/src/client/kalvora-client.d.ts.map +1 -1
  58. package/dist/src/client/kalvora-client.js +3 -1
  59. package/dist/src/client/kalvora-client.js.map +1 -1
  60. package/dist/src/client/networks.d.ts +6 -0
  61. package/dist/src/client/networks.d.ts.map +1 -1
  62. package/dist/src/client/networks.js +7 -0
  63. package/dist/src/client/networks.js.map +1 -1
  64. package/dist/src/coin-txn/index.d.ts +1 -1
  65. package/dist/src/coin-txn/index.d.ts.map +1 -1
  66. package/dist/src/coin-txn/index.js +1 -1
  67. package/dist/src/coin-txn/index.js.map +1 -1
  68. package/dist/src/coin-txn/transaction.d.ts +7 -1
  69. package/dist/src/coin-txn/transaction.d.ts.map +1 -1
  70. package/dist/src/coin-txn/transaction.js +77 -76
  71. package/dist/src/coin-txn/transaction.js.map +1 -1
  72. package/dist/src/compliance/transaction.d.ts +2 -1
  73. package/dist/src/compliance/transaction.d.ts.map +1 -1
  74. package/dist/src/compliance/transaction.js +4 -4
  75. package/dist/src/compliance/transaction.js.map +1 -1
  76. package/dist/src/contract/create/transaction.d.ts +4 -20
  77. package/dist/src/contract/create/transaction.d.ts.map +1 -1
  78. package/dist/src/contract/create/transaction.js +152 -30
  79. package/dist/src/contract/create/transaction.js.map +1 -1
  80. package/dist/src/contract/shared/types.d.ts +23 -10
  81. package/dist/src/contract/shared/types.d.ts.map +1 -1
  82. package/dist/src/contract/shared/utils.d.ts +17 -9
  83. package/dist/src/contract/shared/utils.d.ts.map +1 -1
  84. package/dist/src/contract/shared/utils.js +104 -8
  85. package/dist/src/contract/shared/utils.js.map +1 -1
  86. package/dist/src/contract/update/transaction.d.ts.map +1 -1
  87. package/dist/src/contract/update/transaction.js +10 -9
  88. package/dist/src/contract/update/transaction.js.map +1 -1
  89. package/dist/src/delegated-voting/transaction.d.ts +2 -1
  90. package/dist/src/delegated-voting/transaction.d.ts.map +1 -1
  91. package/dist/src/delegated-voting/transaction.js +5 -5
  92. package/dist/src/delegated-voting/transaction.js.map +1 -1
  93. package/dist/src/expense-ratio/transaction.d.ts +5 -4
  94. package/dist/src/expense-ratio/transaction.d.ts.map +1 -1
  95. package/dist/src/expense-ratio/transaction.js +8 -7
  96. package/dist/src/expense-ratio/transaction.js.map +1 -1
  97. package/dist/src/grpc/api/validator-api-client.d.ts +5 -2
  98. package/dist/src/grpc/api/validator-api-client.d.ts.map +1 -1
  99. package/dist/src/grpc/api/validator-api-client.js +26 -4
  100. package/dist/src/grpc/api/validator-api-client.js.map +1 -1
  101. package/dist/src/grpc/client-factory.d.ts.map +1 -1
  102. package/dist/src/grpc/client-factory.js +12 -4
  103. package/dist/src/grpc/client-factory.js.map +1 -1
  104. package/dist/src/grpc/transaction/transaction-client.d.ts.map +1 -1
  105. package/dist/src/grpc/transaction/transaction-client.js +12 -5
  106. package/dist/src/grpc/transaction/transaction-client.js.map +1 -1
  107. package/dist/src/grpc/utils/grpc-web-fetch-wrapper.d.ts +1 -1
  108. package/dist/src/grpc/utils/grpc-web-fetch-wrapper.d.ts.map +1 -1
  109. package/dist/src/grpc/utils/grpc-web-fetch-wrapper.js +1 -2
  110. package/dist/src/grpc/utils/grpc-web-fetch-wrapper.js.map +1 -1
  111. package/dist/src/items/guards.d.ts +18 -0
  112. package/dist/src/items/guards.d.ts.map +1 -0
  113. package/dist/src/items/guards.js +46 -0
  114. package/dist/src/items/guards.js.map +1 -0
  115. package/dist/src/items/index.d.ts +2 -1
  116. package/dist/src/items/index.d.ts.map +1 -1
  117. package/dist/src/items/index.js +2 -1
  118. package/dist/src/items/index.js.map +1 -1
  119. package/dist/src/items/item-fee.d.ts +9 -0
  120. package/dist/src/items/item-fee.d.ts.map +1 -0
  121. package/dist/src/items/item-fee.js +21 -0
  122. package/dist/src/items/item-fee.js.map +1 -0
  123. package/dist/src/items/transaction.d.ts +14 -3
  124. package/dist/src/items/transaction.d.ts.map +1 -1
  125. package/dist/src/items/transaction.js +88 -29
  126. package/dist/src/items/transaction.js.map +1 -1
  127. package/dist/src/mint/index.d.ts +1 -1
  128. package/dist/src/mint/index.d.ts.map +1 -1
  129. package/dist/src/mint/index.js +1 -1
  130. package/dist/src/mint/index.js.map +1 -1
  131. package/dist/src/mint/transaction.d.ts +6 -4
  132. package/dist/src/mint/transaction.d.ts.map +1 -1
  133. package/dist/src/mint/transaction.js +37 -8
  134. package/dist/src/mint/transaction.js.map +1 -1
  135. package/dist/src/proposal/governance.d.ts +57 -0
  136. package/dist/src/proposal/governance.d.ts.map +1 -0
  137. package/dist/src/proposal/governance.js +174 -0
  138. package/dist/src/proposal/governance.js.map +1 -0
  139. package/dist/src/proposal/index.d.ts +2 -0
  140. package/dist/src/proposal/index.d.ts.map +1 -1
  141. package/dist/src/proposal/index.js +2 -0
  142. package/dist/src/proposal/index.js.map +1 -1
  143. package/dist/src/proposal/shape.d.ts +37 -0
  144. package/dist/src/proposal/shape.d.ts.map +1 -0
  145. package/dist/src/proposal/shape.js +147 -0
  146. package/dist/src/proposal/shape.js.map +1 -0
  147. package/dist/src/proposal/transaction.d.ts +5 -1
  148. package/dist/src/proposal/transaction.d.ts.map +1 -1
  149. package/dist/src/proposal/transaction.js +15 -7
  150. package/dist/src/proposal/transaction.js.map +1 -1
  151. package/dist/src/proposal-cancel/transaction.d.ts +5 -1
  152. package/dist/src/proposal-cancel/transaction.d.ts.map +1 -1
  153. package/dist/src/proposal-cancel/transaction.js +7 -5
  154. package/dist/src/proposal-cancel/transaction.js.map +1 -1
  155. package/dist/src/protocol/contract-id.d.ts +108 -0
  156. package/dist/src/protocol/contract-id.d.ts.map +1 -0
  157. package/dist/src/protocol/contract-id.js +237 -0
  158. package/dist/src/protocol/contract-id.js.map +1 -0
  159. package/dist/src/protocol/guardian-names.d.ts +13 -14
  160. package/dist/src/protocol/guardian-names.d.ts.map +1 -1
  161. package/dist/src/protocol/guardian-names.js +7 -8
  162. package/dist/src/protocol/guardian-names.js.map +1 -1
  163. package/dist/src/protocol/index.d.ts +5 -5
  164. package/dist/src/protocol/index.js +5 -5
  165. package/dist/src/query/api-client.d.ts +70 -15
  166. package/dist/src/query/api-client.d.ts.map +1 -1
  167. package/dist/src/query/api-client.js +256 -52
  168. package/dist/src/query/api-client.js.map +1 -1
  169. package/dist/src/query/decoders.d.ts +11 -2
  170. package/dist/src/query/decoders.d.ts.map +1 -1
  171. package/dist/src/query/decoders.js +46 -8
  172. package/dist/src/query/decoders.js.map +1 -1
  173. package/dist/src/query/events.d.ts +48 -0
  174. package/dist/src/query/events.d.ts.map +1 -0
  175. package/dist/src/query/events.js +88 -0
  176. package/dist/src/query/events.js.map +1 -0
  177. package/dist/src/query/guardian-client.js +2 -2
  178. package/dist/src/query/guardian-client.js.map +1 -1
  179. package/dist/src/query/index.d.ts +3 -1
  180. package/dist/src/query/index.d.ts.map +1 -1
  181. package/dist/src/query/index.js +3 -1
  182. package/dist/src/query/index.js.map +1 -1
  183. package/dist/src/query/keys.d.ts +14 -0
  184. package/dist/src/query/keys.d.ts.map +1 -0
  185. package/dist/src/query/keys.js +57 -0
  186. package/dist/src/query/keys.js.map +1 -0
  187. package/dist/src/query/validator-client.d.ts +8 -6
  188. package/dist/src/query/validator-client.d.ts.map +1 -1
  189. package/dist/src/query/validator-client.js +15 -13
  190. package/dist/src/query/validator-client.js.map +1 -1
  191. package/dist/src/revoke/index.d.ts +1 -1
  192. package/dist/src/revoke/index.d.ts.map +1 -1
  193. package/dist/src/revoke/index.js +1 -1
  194. package/dist/src/revoke/index.js.map +1 -1
  195. package/dist/src/revoke/transaction.d.ts +12 -15
  196. package/dist/src/revoke/transaction.d.ts.map +1 -1
  197. package/dist/src/revoke/transaction.js +13 -15
  198. package/dist/src/revoke/transaction.js.map +1 -1
  199. package/dist/src/shared/crypto/address-utils.d.ts +5 -0
  200. package/dist/src/shared/crypto/address-utils.d.ts.map +1 -1
  201. package/dist/src/shared/crypto/address-utils.js +14 -0
  202. package/dist/src/shared/crypto/address-utils.js.map +1 -1
  203. package/dist/src/shared/crypto/falcon-address.d.ts +28 -0
  204. package/dist/src/shared/crypto/falcon-address.d.ts.map +1 -0
  205. package/dist/src/shared/crypto/falcon-address.js +88 -0
  206. package/dist/src/shared/crypto/falcon-address.js.map +1 -0
  207. package/dist/src/shared/fee-calculators/proof-layout.d.ts +23 -0
  208. package/dist/src/shared/fee-calculators/proof-layout.d.ts.map +1 -0
  209. package/dist/src/shared/fee-calculators/proof-layout.js +75 -0
  210. package/dist/src/shared/fee-calculators/proof-layout.js.map +1 -0
  211. package/dist/src/shared/fee-calculators/universal-fee-calculator.d.ts +12 -2
  212. package/dist/src/shared/fee-calculators/universal-fee-calculator.d.ts.map +1 -1
  213. package/dist/src/shared/fee-calculators/universal-fee-calculator.js +264 -560
  214. package/dist/src/shared/fee-calculators/universal-fee-calculator.js.map +1 -1
  215. package/dist/src/shared/network/chain-id.d.ts +4 -0
  216. package/dist/src/shared/network/chain-id.d.ts.map +1 -0
  217. package/dist/src/shared/network/chain-id.js +12 -0
  218. package/dist/src/shared/network/chain-id.js.map +1 -0
  219. package/dist/src/shared/network/constants.d.ts +7 -7
  220. package/dist/src/shared/network/constants.d.ts.map +1 -1
  221. package/dist/src/shared/network/constants.js +9 -10
  222. package/dist/src/shared/network/constants.js.map +1 -1
  223. package/dist/src/shared/protobuf/index.d.ts +1 -1
  224. package/dist/src/shared/protobuf/index.d.ts.map +1 -1
  225. package/dist/src/shared/tx/base.d.ts +5 -1
  226. package/dist/src/shared/tx/base.d.ts.map +1 -1
  227. package/dist/src/shared/tx/base.js +18 -5
  228. package/dist/src/shared/tx/base.js.map +1 -1
  229. package/dist/src/shared/tx/standard.d.ts +18 -8
  230. package/dist/src/shared/tx/standard.d.ts.map +1 -1
  231. package/dist/src/shared/tx/standard.js +39 -13
  232. package/dist/src/shared/tx/standard.js.map +1 -1
  233. package/dist/src/shared/utils/unified-amount-conversion.d.ts +7 -8
  234. package/dist/src/shared/utils/unified-amount-conversion.d.ts.map +1 -1
  235. package/dist/src/shared/utils/unified-amount-conversion.js +31 -56
  236. package/dist/src/shared/utils/unified-amount-conversion.js.map +1 -1
  237. package/dist/src/shared/utils/validation.d.ts +2 -3
  238. package/dist/src/shared/utils/validation.d.ts.map +1 -1
  239. package/dist/src/shared/utils/validation.js +7 -29
  240. package/dist/src/shared/utils/validation.js.map +1 -1
  241. package/dist/src/sign/builder.d.ts +18 -0
  242. package/dist/src/sign/builder.d.ts.map +1 -0
  243. package/dist/src/sign/builder.js +28 -0
  244. package/dist/src/sign/builder.js.map +1 -0
  245. package/dist/src/sign/context.d.ts +21 -0
  246. package/dist/src/sign/context.d.ts.map +1 -0
  247. package/dist/src/sign/context.js +73 -0
  248. package/dist/src/sign/context.js.map +1 -0
  249. package/dist/src/sign/finalize.d.ts +33 -5
  250. package/dist/src/sign/finalize.d.ts.map +1 -1
  251. package/dist/src/sign/finalize.js +289 -32
  252. package/dist/src/sign/finalize.js.map +1 -1
  253. package/dist/src/sign/index.d.ts +3 -1
  254. package/dist/src/sign/index.d.ts.map +1 -1
  255. package/dist/src/sign/index.js +3 -1
  256. package/dist/src/sign/index.js.map +1 -1
  257. package/dist/src/sign/resources.d.ts +13 -0
  258. package/dist/src/sign/resources.d.ts.map +1 -0
  259. package/dist/src/sign/resources.js +197 -0
  260. package/dist/src/sign/resources.js.map +1 -0
  261. package/dist/src/sign/signer.d.ts +9 -1
  262. package/dist/src/sign/signer.d.ts.map +1 -1
  263. package/dist/src/sign/signer.js.map +1 -1
  264. package/dist/src/smart-contracts/deploy/transaction.d.ts +2 -1
  265. package/dist/src/smart-contracts/deploy/transaction.d.ts.map +1 -1
  266. package/dist/src/smart-contracts/deploy/transaction.js +3 -4
  267. package/dist/src/smart-contracts/deploy/transaction.js.map +1 -1
  268. package/dist/src/smart-contracts/execute/index.d.ts +1 -0
  269. package/dist/src/smart-contracts/execute/index.d.ts.map +1 -1
  270. package/dist/src/smart-contracts/execute/index.js +1 -0
  271. package/dist/src/smart-contracts/execute/index.js.map +1 -1
  272. package/dist/src/smart-contracts/execute/transaction.d.ts +5 -1
  273. package/dist/src/smart-contracts/execute/transaction.d.ts.map +1 -1
  274. package/dist/src/smart-contracts/execute/transaction.js +7 -5
  275. package/dist/src/smart-contracts/execute/transaction.js.map +1 -1
  276. package/dist/src/smart-contracts/instantiate/index.d.ts +1 -0
  277. package/dist/src/smart-contracts/instantiate/index.d.ts.map +1 -1
  278. package/dist/src/smart-contracts/instantiate/index.js +1 -0
  279. package/dist/src/smart-contracts/instantiate/index.js.map +1 -1
  280. package/dist/src/smart-contracts/instantiate/transaction.d.ts +5 -1
  281. package/dist/src/smart-contracts/instantiate/transaction.d.ts.map +1 -1
  282. package/dist/src/smart-contracts/instantiate/transaction.js +7 -5
  283. package/dist/src/smart-contracts/instantiate/transaction.js.map +1 -1
  284. package/dist/src/smart-contracts/shared/allowances.d.ts +18 -0
  285. package/dist/src/smart-contracts/shared/allowances.d.ts.map +1 -0
  286. package/dist/src/smart-contracts/shared/allowances.js +42 -0
  287. package/dist/src/smart-contracts/shared/allowances.js.map +1 -0
  288. package/dist/src/smart-contracts/shared/base.d.ts +2 -14
  289. package/dist/src/smart-contracts/shared/base.d.ts.map +1 -1
  290. package/dist/src/smart-contracts/shared/base.js +14 -24
  291. package/dist/src/smart-contracts/shared/base.js.map +1 -1
  292. package/dist/src/smart-contracts/use-cases/bootstrapping/transactions/process-rewards.d.ts +3 -2
  293. package/dist/src/smart-contracts/use-cases/bootstrapping/transactions/process-rewards.d.ts.map +1 -1
  294. package/dist/src/smart-contracts/use-cases/bootstrapping/transactions/process-rewards.js.map +1 -1
  295. package/dist/src/smart-contracts/use-cases/bootstrapping/transactions/stake.d.ts +3 -2
  296. package/dist/src/smart-contracts/use-cases/bootstrapping/transactions/stake.d.ts.map +1 -1
  297. package/dist/src/smart-contracts/use-cases/bootstrapping/transactions/stake.js.map +1 -1
  298. package/dist/src/smart-contracts/use-cases/bootstrapping/transactions/update-wallet.d.ts +3 -2
  299. package/dist/src/smart-contracts/use-cases/bootstrapping/transactions/update-wallet.d.ts.map +1 -1
  300. package/dist/src/smart-contracts/use-cases/bootstrapping/transactions/update-wallet.js.map +1 -1
  301. package/dist/src/smart-contracts/use-cases/bootstrapping/utils.d.ts +2 -1
  302. package/dist/src/smart-contracts/use-cases/bootstrapping/utils.d.ts.map +1 -1
  303. package/dist/src/smart-contracts/use-cases/bootstrapping/utils.js.map +1 -1
  304. package/dist/src/smart-contracts/use-cases/bridge/guardian/vaa.d.ts +4 -6
  305. package/dist/src/smart-contracts/use-cases/bridge/guardian/vaa.d.ts.map +1 -1
  306. package/dist/src/smart-contracts/use-cases/bridge/guardian/vaa.js +7 -25
  307. package/dist/src/smart-contracts/use-cases/bridge/guardian/vaa.js.map +1 -1
  308. package/dist/src/smart-contracts/use-cases/bridge/kalvora/transactions/lock.d.ts +5 -4
  309. package/dist/src/smart-contracts/use-cases/bridge/kalvora/transactions/lock.d.ts.map +1 -1
  310. package/dist/src/smart-contracts/use-cases/bridge/kalvora/transactions/lock.js.map +1 -1
  311. package/dist/src/smart-contracts/use-cases/bridge/kalvora/transactions/release.d.ts +7 -6
  312. package/dist/src/smart-contracts/use-cases/bridge/kalvora/transactions/release.d.ts.map +1 -1
  313. package/dist/src/smart-contracts/use-cases/bridge/kalvora/transactions/release.js +2 -2
  314. package/dist/src/smart-contracts/use-cases/bridge/kalvora/transactions/release.js.map +1 -1
  315. package/dist/src/smart-contracts/use-cases/bridge/kalvora/utils.d.ts +2 -1
  316. package/dist/src/smart-contracts/use-cases/bridge/kalvora/utils.d.ts.map +1 -1
  317. package/dist/src/smart-contracts/use-cases/bridge/kalvora/utils.js.map +1 -1
  318. package/dist/src/smart-contracts/use-cases/dex/transactions/add-liquidity.d.ts +3 -2
  319. package/dist/src/smart-contracts/use-cases/dex/transactions/add-liquidity.d.ts.map +1 -1
  320. package/dist/src/smart-contracts/use-cases/dex/transactions/add-liquidity.js.map +1 -1
  321. package/dist/src/smart-contracts/use-cases/dex/transactions/create-pool.d.ts +3 -2
  322. package/dist/src/smart-contracts/use-cases/dex/transactions/create-pool.d.ts.map +1 -1
  323. package/dist/src/smart-contracts/use-cases/dex/transactions/create-pool.js.map +1 -1
  324. package/dist/src/smart-contracts/use-cases/dex/transactions/remove-liquidity.d.ts +3 -2
  325. package/dist/src/smart-contracts/use-cases/dex/transactions/remove-liquidity.d.ts.map +1 -1
  326. package/dist/src/smart-contracts/use-cases/dex/transactions/remove-liquidity.js.map +1 -1
  327. package/dist/src/smart-contracts/use-cases/dex/transactions/swap.d.ts +3 -2
  328. package/dist/src/smart-contracts/use-cases/dex/transactions/swap.d.ts.map +1 -1
  329. package/dist/src/smart-contracts/use-cases/dex/transactions/swap.js.map +1 -1
  330. package/dist/src/smart-contracts/use-cases/dex/transactions/unlock-liquidity.d.ts +3 -2
  331. package/dist/src/smart-contracts/use-cases/dex/transactions/unlock-liquidity.d.ts.map +1 -1
  332. package/dist/src/smart-contracts/use-cases/dex/transactions/unlock-liquidity.js.map +1 -1
  333. package/dist/src/smart-contracts/use-cases/dex/types.d.ts +2 -2
  334. package/dist/src/smart-contracts/use-cases/dex/types.d.ts.map +1 -1
  335. package/dist/src/smart-contracts/use-cases/dex/utils.d.ts +2 -1
  336. package/dist/src/smart-contracts/use-cases/dex/utils.d.ts.map +1 -1
  337. package/dist/src/smart-contracts/use-cases/dex/utils.js +1 -1
  338. package/dist/src/smart-contracts/use-cases/dex/utils.js.map +1 -1
  339. package/dist/src/smart-contracts/use-cases/staking/transactions/instant-stake.d.ts +3 -2
  340. package/dist/src/smart-contracts/use-cases/staking/transactions/instant-stake.d.ts.map +1 -1
  341. package/dist/src/smart-contracts/use-cases/staking/transactions/instant-stake.js.map +1 -1
  342. package/dist/src/smart-contracts/use-cases/staking/transactions/release-instant.d.ts +3 -2
  343. package/dist/src/smart-contracts/use-cases/staking/transactions/release-instant.d.ts.map +1 -1
  344. package/dist/src/smart-contracts/use-cases/staking/transactions/release-instant.js.map +1 -1
  345. package/dist/src/smart-contracts/use-cases/staking/transactions/release-liquid-stake.d.ts +3 -2
  346. package/dist/src/smart-contracts/use-cases/staking/transactions/release-liquid-stake.d.ts.map +1 -1
  347. package/dist/src/smart-contracts/use-cases/staking/transactions/release-liquid-stake.js.map +1 -1
  348. package/dist/src/smart-contracts/use-cases/staking/transactions/stake.d.ts +3 -2
  349. package/dist/src/smart-contracts/use-cases/staking/transactions/stake.d.ts.map +1 -1
  350. package/dist/src/smart-contracts/use-cases/staking/transactions/stake.js.map +1 -1
  351. package/dist/src/smart-contracts/use-cases/staking/transactions/update-instant-wallet.d.ts +3 -2
  352. package/dist/src/smart-contracts/use-cases/staking/transactions/update-instant-wallet.d.ts.map +1 -1
  353. package/dist/src/smart-contracts/use-cases/staking/transactions/update-instant-wallet.js.map +1 -1
  354. package/dist/src/smart-contracts/use-cases/staking/transactions/update-wallet.d.ts +3 -2
  355. package/dist/src/smart-contracts/use-cases/staking/transactions/update-wallet.d.ts.map +1 -1
  356. package/dist/src/smart-contracts/use-cases/staking/transactions/update-wallet.js.map +1 -1
  357. package/dist/src/smart-contracts/use-cases/staking/utils.d.ts +2 -1
  358. package/dist/src/smart-contracts/use-cases/staking/utils.d.ts.map +1 -1
  359. package/dist/src/smart-contracts/use-cases/staking/utils.js.map +1 -1
  360. package/dist/src/types/index.d.ts +9 -1
  361. package/dist/src/types/index.d.ts.map +1 -1
  362. package/dist/src/types/index.js.map +1 -1
  363. package/dist/src/validator-ops/index.d.ts +1 -1
  364. package/dist/src/validator-ops/index.d.ts.map +1 -1
  365. package/dist/src/validator-ops/index.js.map +1 -1
  366. package/dist/src/validator-ops/transaction.d.ts +26 -252
  367. package/dist/src/validator-ops/transaction.d.ts.map +1 -1
  368. package/dist/src/validator-ops/transaction.js +165 -311
  369. package/dist/src/validator-ops/transaction.js.map +1 -1
  370. package/dist/src/vote/transaction.d.ts +10 -1
  371. package/dist/src/vote/transaction.d.ts.map +1 -1
  372. package/dist/src/vote/transaction.js +42 -7
  373. package/dist/src/vote/transaction.js.map +1 -1
  374. package/dist/src/wallet-creation/falcon.d.ts +40 -0
  375. package/dist/src/wallet-creation/falcon.d.ts.map +1 -0
  376. package/dist/src/wallet-creation/falcon.js +82 -0
  377. package/dist/src/wallet-creation/falcon.js.map +1 -0
  378. package/dist/src/wallet-creation/index.d.ts +1 -0
  379. package/dist/src/wallet-creation/index.d.ts.map +1 -1
  380. package/dist/src/wallet-creation/index.js +1 -0
  381. package/dist/src/wallet-creation/index.js.map +1 -1
  382. package/dist/src/wallet-creation/shared.js +7 -7
  383. package/dist/src/wallet-registration/index.d.ts +16 -0
  384. package/dist/src/wallet-registration/index.d.ts.map +1 -0
  385. package/dist/src/wallet-registration/index.js +28 -0
  386. package/dist/src/wallet-registration/index.js.map +1 -0
  387. package/dist/src/wallet-registration/policy.d.ts +11 -0
  388. package/dist/src/wallet-registration/policy.d.ts.map +1 -0
  389. package/dist/src/wallet-registration/policy.js +78 -0
  390. package/dist/src/wallet-registration/policy.js.map +1 -0
  391. package/dist/wallet.d.ts +3 -3
  392. package/dist/wallet.d.ts.map +1 -1
  393. package/dist/wallet.js +3 -3
  394. package/dist/wallet.js.map +1 -1
  395. package/package.json +130 -129
  396. package/dist/src/quash/index.d.ts +0 -2
  397. package/dist/src/quash/index.d.ts.map +0 -1
  398. package/dist/src/quash/index.js +0 -2
  399. package/dist/src/quash/index.js.map +0 -1
  400. package/dist/src/quash/transaction.d.ts +0 -124
  401. package/dist/src/quash/transaction.d.ts.map +0 -1
  402. package/dist/src/quash/transaction.js +0 -118
  403. package/dist/src/quash/transaction.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,162 +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.1] — Unreleased (alpha pre-release)
9
-
10
- Documentation cleanup, a rewritten README, and a few SDK-only renames. Key
11
- derivation and every derived address are byte-identical to 0.0.1-alpha.0.
12
-
13
- Earlier builds (`0.1.0` and `0.0.1-alpha.0`) are withdrawn from npm and
14
- replaced by this release.
15
-
16
- ### Changed
17
-
18
- - **Breaking:** the Solana bridge lock options (`LockSplOptions`,
19
- `LockSolOptions`, `LockToken2022Options` and the token-type routed lock)
20
- take `kalvoraAddress`, and `BurnWrappedOptions` takes `kalvoraRecipient`.
21
- The value is Borsh-encoded positionally, so the instruction bytes are
22
- unchanged (pinned by golden tests).
23
- - **Breaking:** `releaseKalvora`, `mintSol`, `createSol` and their `*AndSend`
24
- variants name their first parameter `toKalvoraAddress` (positional; only the
25
- name and the "is required" error message change).
26
- - **Breaking:** the root type export for the Kalvora-bound guardian payload is
27
- `KalvoraGuardianPayload`, and `guardianBridge` exports
28
- `KalvoraGuardianPayload`, `KalvoraGuardianContractPayload`,
29
- `KalvoraGuardianMintPayload`, `KalvoraGuardianReleasePayload` and
30
- `KalvoraGuardianRefundPayload` in place of the generated message names. The
31
- generated bindings are still available under `proto.guardian`.
32
- - **Breaking:** the Kalvora-side bridge namespace inside the bridge use-case
33
- module is `kalvora`.
34
- - The README quick start now creates a standard Kalvora address (base58 of the
35
- raw public key, no `hashTypes`) instead of a legacy hashed address.
36
- - Documentation: the README is rewritten; guides, module READMEs, TSDoc and
37
- examples describe wire values through named constants; the migration guide
38
- for the SDK this project was derived from is removed.
39
-
40
- ### Added
41
-
42
- - Wallet protocol constants, exported from the package root and pinned by
43
- tests: `KALVORA_INJECTED_PROVIDER_KEY`, `KALVORA_PROVIDER_FLAG`,
44
- `KALVORA_PROVIDER_METHODS`, `KALVORA_DEEP_LINK_SCHEME`,
45
- `KALVORA_DEFAULT_DEEP_LINK` and `KALVORA_DEEP_LINK_PARAMS`. The adapter and
46
- signers use them; their values are unchanged.
47
- - `LEGACY_TXN_TYPE_PREFIX`, the pre-rename transaction package prefix that
48
- serialized envelopes may still carry.
49
- - Guardian protocol names: `NETWORK_TYPE_KALVORA` (equal to the guardian
50
- enum's Kalvora value, `0`) and `GUARDIAN_KALVORA_PAYLOAD_CASE`.
51
- - `BRIDGE_FUNCTIONS`: the bridge proxy contract's function names, used by the
52
- Kalvora-side bridge builders.
53
-
54
- ## [0.0.1-alpha.0] — withdrawn (alpha pre-release)
55
-
56
- Renumbered kalvora.js as an **alpha**, made Ed25519 HD derivation standard
57
- SLIP-0010, and switched the SDK to the official Kalvora protos (`txn.proto`,
58
- `validator.proto`, `kal_api.proto`).
59
-
60
- The version went *down* from 0.1.0 on purpose: 0.1.0 was an earlier
61
- pre-release, published before the key derivation and wire protocol were
62
- settled, and has been withdrawn; everything it added is part of the `0.0.x`
63
- line. The `0.0.x` line carries no compatibility promise between releases.
64
-
65
- ### Changed
66
-
67
- - **Breaking (keys): Ed25519 HD derivation is now standard
68
- [SLIP-0010](https://github.com/satoshilabs/slips/blob/master/slip-0010.md).**
69
- It previously used the Ed448-style scheme — master key `"Kalvora seed"` and
70
- a child step over little-endian `index || key` — which was described as
71
- SLIP-0010 but was not. It now uses the `"ed25519 seed"`
72
- master key and `0x00 || key || ser32BE(index)`, so every SLIP-0010 wallet
73
- derives the same Ed25519 key from the same seed and path. **The same
74
- mnemonic now gives a different Ed25519 address**: the BIP-39 test
75
- mnemonic's first address changes from
76
- `Hb6KH2BhgcjCYnc3JwDU1VNfbLds2yfMDMVwZGUWSunE` to
77
- `35q7SEc9HVV7Gd9oVKCnZjPMxpLrH9DftTcBUyHahTZP`. No Kalvora wallet had
78
- shipped on the old scheme, so there is no legacy option.
79
- - **Breaking:** an Ed25519 derivation path with an unhardened segment now
80
- throws, since SLIP-0010 defines only hardened Ed25519 children. Every path
81
- the SDK builds itself is already fully hardened.
82
- - **Ed448 derivation is unchanged.** SLIP-0010 does not define Ed448 and no
83
- other standard does, so Ed448 keeps Kalvora's scheme byte for byte, now
84
- pinned by reference vectors. See
85
- [docs/guides/hd-derivation.md](./docs/guides/hd-derivation.md).
86
-
87
- - **Breaking:** protobuf packages moved to the official `kal_txn`,
88
- `kal_api`, `kal_validator` packages. Every generated `$typeName` /
89
- `typeName` changes accordingly (e.g. `kal_txn.CoinTXN`), as do
90
- `SerializedTransaction.type`, `SMART_SWAP_TRANSACTION_TYPE`
91
- (`kal_txn.SmartContractExecuteTXN`) and `KalvoraRpcError.service`. The
92
- guardian service keeps its own proto package (the guardian proto was not
93
- re-issued).
94
- - **Breaking (wire):** fully qualified gRPC paths are now
95
- `/kal_api.APIService/*`, `/kal_txn.TXNService/*`,
96
- `/kal_validator.ValidatorService/*`. The default transport still sends the
97
- Envoy aliases `/api/*`, `/txn/*`, `/validator/*`, `/guardian/*`
98
- (unchanged); only callers passing their own `transport` send the fully
99
- qualified path. Nodes and their Envoy routes must serve the `kal_*`
100
- services.
101
- - **Breaking:** the API proto file is now `proto/kal_api.proto` and its
102
- bindings `proto/generated/kal_api_pb.js` (was `api.proto` / `api_pb.js`);
103
- `dist/proto/` ships `kal_api.proto` and now also `guardian.proto`.
104
- - Proto sources are committed byte-identical to the official release (CRLF
105
- line endings, no repo-local options; `proto/.gitattributes` disables
106
- line-ending conversion). `proto:sync` / `proto:check` accept the official
107
- flat release or a kalvora-indexer checkout, no longer normalise trailing
108
- newlines, and treat `guardian.proto` as optional.
109
- - `deserializeTransaction` and `getSchemaForTypeName` accept type names with
110
- the pre-rename transaction package prefix (message bytes are unchanged by
111
- the rename); the Smart Swap facade accepts such an envelope for
112
- `SmartContractExecuteTXN` and reports it as `kal_txn`.
113
- - **Breaking:** native token symbol is `KALV` everywhere. `KALVORA_SYMBOL`
114
- (and therefore `wallet.symbol` on created wallets) changes from `KAL` to
115
- `KALV`, matching `KALVORA_NETWORKS.protonet.nativeSymbol`;
116
- `TransactionFormatter.formatAmount` defaults to `KALV`, and the internal
117
- `formatAmount` helper labels the native token `KALV` instead of slicing the
118
- contract ID. The `KAL`+Base58 contract-ID prefix is unchanged.
119
- - **Breaking (default endpoint):** the default gRPC-Web origin is now
120
- `https://kal-proto.visiondynamics.ch` (Envoy, port 443), replacing
121
- `kal-protonet.visiondynamics.ch`, in `createClient`, `PROTONET_GRPC_CONFIG`,
122
- `KALVORA_PROTONET_ENDPOINT`, the `protonet` network preset, examples and
123
- docs. Callers passing an explicit `host`/`endpoint` are unaffected.
124
-
125
- ### Added
126
-
127
- - `kalvora.js/wallet`: the wallet surface on its own (mnemonics, HD
128
- derivation, key pairs, address encoding), depending only on
129
- `@noble/curves`, `@noble/hashes`, `bip39`, and `bs58`, with no network or
130
- protobuf code. ESM-only; the same exports remain on the main entry.
131
- - `deriveHDPrivateKey(seed, path?, keyType?)`: the 32-byte key at a path and
132
- nothing else, zeroing every intermediate node. Defaults to Ed25519 at
133
- `m/44'/5258'/0'/0'/0'`.
134
- - `docs/guides/hd-derivation.md`: the byte-level derivation spec for both key
135
- types, with reference vectors; the SLIP-0010 Ed25519 test vector 1 and the
136
- Kalvora vectors are checked in `hd-derivation-vectors.test.ts`.
137
-
138
- - `TextGovernanceProposalInput.proposalType` (`ProposalType`, field 11).
139
- Defaults to `ProposalType.NONE`, which is not encoded, so existing proposals
140
- are byte-identical; the v1 golden vector is unchanged.
141
- - `ProposalLedgerView.statuses` (`ProposalStatusView[]`) from
142
- `ProposalLedgerResponse.proposal_statuses`, with the pre-governance phase,
143
- outcome, window dates, fees, `promotionPending` and the contract's
144
- `PreGovernance` policy.
145
- - `TransactionResult.proposalIdentifier` (`TXNStatusFees.proposal_identifier`).
146
- - `CheckpointInfo.fileHash`, `publicKey` and `signature` (returned as
147
- received; not verified by the SDK).
148
- - Exports: `ProposalType`, `PROPOSAL_PHASE`, `PRE_GOVERNANCE_OUTCOME`,
149
- `ProposalStatusView`, `normalizeTransactionTypeName`.
150
- - New protocol fields are available through the raw bindings (`proto.*`):
151
- `NFT.parameters/expiry/valid_from`, `Voter.phase`, `Proposal` fields 19–25,
152
- `ProposalResult.pre_governance`.
153
-
154
- ### Removed
155
-
156
- - **Breaking:** `ValidatorInfoInput.stakedContractIds`. `Validator` field 5
157
- (`staked_contract_ids`) is reserved because staking is KALV-only; passing the
158
- option now throws instead of being silently dropped.
159
- - **Breaking:** `StakeMultipliers` message (`proto.validator`).
160
- - **Breaking:** the governance auth message is now `KalGovernanceAuth`;
161
- `ProcessLedger.cycle_contract_ids` changed from `bytes` to `string`
162
- (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.