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

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