kalvora.js 0.0.1-alpha.1

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 (726) hide show
  1. package/CHANGELOG.md +162 -0
  2. package/LICENSE +202 -0
  3. package/NOTICE +10 -0
  4. package/README.md +391 -0
  5. package/dist/LICENSE +202 -0
  6. package/dist/README.md +391 -0
  7. package/dist/index.cjs +78254 -0
  8. package/dist/index.cjs.map +7 -0
  9. package/dist/index.d.ts +83 -0
  10. package/dist/index.d.ts.map +1 -0
  11. package/dist/index.js +125 -0
  12. package/dist/index.js.map +1 -0
  13. package/dist/index.mjs +125 -0
  14. package/dist/proto/generated/google/protobuf/empty_pb.d.ts +63 -0
  15. package/dist/proto/generated/google/protobuf/empty_pb.js +49 -0
  16. package/dist/proto/generated/google/protobuf/timestamp_pb.d.ts +163 -0
  17. package/dist/proto/generated/google/protobuf/timestamp_pb.js +49 -0
  18. package/dist/proto/generated/guardian_pb.d.ts +1229 -0
  19. package/dist/proto/generated/guardian_pb.js +255 -0
  20. package/dist/proto/generated/kal_api_pb.d.ts +1350 -0
  21. package/dist/proto/generated/kal_api_pb.js +324 -0
  22. package/dist/proto/generated/txn_pb.d.ts +3653 -0
  23. package/dist/proto/generated/txn_pb.js +622 -0
  24. package/dist/proto/generated/validator_pb.d.ts +2385 -0
  25. package/dist/proto/generated/validator_pb.js +528 -0
  26. package/dist/proto/guardian.proto +266 -0
  27. package/dist/proto/kal_api.proto +289 -0
  28. package/dist/proto/txn.proto +718 -0
  29. package/dist/proto/validator.proto +469 -0
  30. package/dist/src/adapter/constants.d.ts +80 -0
  31. package/dist/src/adapter/constants.d.ts.map +1 -0
  32. package/dist/src/adapter/constants.js +89 -0
  33. package/dist/src/adapter/constants.js.map +1 -0
  34. package/dist/src/adapter/index.d.ts +45 -0
  35. package/dist/src/adapter/index.d.ts.map +1 -0
  36. package/dist/src/adapter/index.js +71 -0
  37. package/dist/src/adapter/index.js.map +1 -0
  38. package/dist/src/adapter/serialization.d.ts +94 -0
  39. package/dist/src/adapter/serialization.d.ts.map +1 -0
  40. package/dist/src/adapter/serialization.js +175 -0
  41. package/dist/src/adapter/serialization.js.map +1 -0
  42. package/dist/src/adapter/wallet-adapter.d.ts +230 -0
  43. package/dist/src/adapter/wallet-adapter.d.ts.map +1 -0
  44. package/dist/src/adapter/wallet-adapter.js +792 -0
  45. package/dist/src/adapter/wallet-adapter.js.map +1 -0
  46. package/dist/src/adapter/wallet-signer.d.ts +115 -0
  47. package/dist/src/adapter/wallet-signer.d.ts.map +1 -0
  48. package/dist/src/adapter/wallet-signer.js +357 -0
  49. package/dist/src/adapter/wallet-signer.js.map +1 -0
  50. package/dist/src/adapter/walletconnect.d.ts +148 -0
  51. package/dist/src/adapter/walletconnect.d.ts.map +1 -0
  52. package/dist/src/adapter/walletconnect.js +188 -0
  53. package/dist/src/adapter/walletconnect.js.map +1 -0
  54. package/dist/src/allowance/index.d.ts +2 -0
  55. package/dist/src/allowance/index.d.ts.map +1 -0
  56. package/dist/src/allowance/index.js +2 -0
  57. package/dist/src/allowance/index.js.map +1 -0
  58. package/dist/src/allowance/transaction.d.ts +227 -0
  59. package/dist/src/allowance/transaction.d.ts.map +1 -0
  60. package/dist/src/allowance/transaction.js +296 -0
  61. package/dist/src/allowance/transaction.js.map +1 -0
  62. package/dist/src/api/handler/fee-info/service.d.ts +126 -0
  63. package/dist/src/api/handler/fee-info/service.d.ts.map +1 -0
  64. package/dist/src/api/handler/fee-info/service.js +255 -0
  65. package/dist/src/api/handler/fee-info/service.js.map +1 -0
  66. package/dist/src/api/handler/index.d.ts +10 -0
  67. package/dist/src/api/handler/index.d.ts.map +1 -0
  68. package/dist/src/api/handler/index.js +14 -0
  69. package/dist/src/api/handler/index.js.map +1 -0
  70. package/dist/src/api/handler/nonce/service.d.ts +37 -0
  71. package/dist/src/api/handler/nonce/service.d.ts.map +1 -0
  72. package/dist/src/api/handler/nonce/service.js +64 -0
  73. package/dist/src/api/handler/nonce/service.js.map +1 -0
  74. package/dist/src/api/handler/token-info/service.d.ts +123 -0
  75. package/dist/src/api/handler/token-info/service.d.ts.map +1 -0
  76. package/dist/src/api/handler/token-info/service.js +218 -0
  77. package/dist/src/api/handler/token-info/service.js.map +1 -0
  78. package/dist/src/api/shared/indexer-utils.d.ts +14 -0
  79. package/dist/src/api/shared/indexer-utils.d.ts.map +1 -0
  80. package/dist/src/api/shared/indexer-utils.js +19 -0
  81. package/dist/src/api/shared/indexer-utils.js.map +1 -0
  82. package/dist/src/api/validator/balance/index.d.ts +8 -0
  83. package/dist/src/api/validator/balance/index.d.ts.map +1 -0
  84. package/dist/src/api/validator/balance/index.js +7 -0
  85. package/dist/src/api/validator/balance/index.js.map +1 -0
  86. package/dist/src/api/validator/balance/service.d.ts +42 -0
  87. package/dist/src/api/validator/balance/service.d.ts.map +1 -0
  88. package/dist/src/api/validator/balance/service.js +93 -0
  89. package/dist/src/api/validator/balance/service.js.map +1 -0
  90. package/dist/src/api/validator/base-fee/index.d.ts +8 -0
  91. package/dist/src/api/validator/base-fee/index.d.ts.map +1 -0
  92. package/dist/src/api/validator/base-fee/index.js +7 -0
  93. package/dist/src/api/validator/base-fee/index.js.map +1 -0
  94. package/dist/src/api/validator/base-fee/service.d.ts +39 -0
  95. package/dist/src/api/validator/base-fee/service.d.ts.map +1 -0
  96. package/dist/src/api/validator/base-fee/service.js +45 -0
  97. package/dist/src/api/validator/base-fee/service.js.map +1 -0
  98. package/dist/src/api/validator/fee-info/index.d.ts +7 -0
  99. package/dist/src/api/validator/fee-info/index.d.ts.map +1 -0
  100. package/dist/src/api/validator/fee-info/index.js +7 -0
  101. package/dist/src/api/validator/fee-info/index.js.map +1 -0
  102. package/dist/src/api/validator/fee-info/request.d.ts +25 -0
  103. package/dist/src/api/validator/fee-info/request.d.ts.map +1 -0
  104. package/dist/src/api/validator/fee-info/request.js +92 -0
  105. package/dist/src/api/validator/fee-info/request.js.map +1 -0
  106. package/dist/src/api/validator/nonce/index.d.ts +7 -0
  107. package/dist/src/api/validator/nonce/index.d.ts.map +1 -0
  108. package/dist/src/api/validator/nonce/index.js +7 -0
  109. package/dist/src/api/validator/nonce/index.js.map +1 -0
  110. package/dist/src/api/validator/nonce/service.d.ts +18 -0
  111. package/dist/src/api/validator/nonce/service.d.ts.map +1 -0
  112. package/dist/src/api/validator/nonce/service.js +51 -0
  113. package/dist/src/api/validator/nonce/service.js.map +1 -0
  114. package/dist/src/client/index.d.ts +8 -0
  115. package/dist/src/client/index.d.ts.map +1 -0
  116. package/dist/src/client/index.js +8 -0
  117. package/dist/src/client/index.js.map +1 -0
  118. package/dist/src/client/kalvora-client.d.ts +117 -0
  119. package/dist/src/client/kalvora-client.d.ts.map +1 -0
  120. package/dist/src/client/kalvora-client.js +112 -0
  121. package/dist/src/client/kalvora-client.js.map +1 -0
  122. package/dist/src/client/networks.d.ts +48 -0
  123. package/dist/src/client/networks.d.ts.map +1 -0
  124. package/dist/src/client/networks.js +41 -0
  125. package/dist/src/client/networks.js.map +1 -0
  126. package/dist/src/coin-txn/index.d.ts +9 -0
  127. package/dist/src/coin-txn/index.d.ts.map +1 -0
  128. package/dist/src/coin-txn/index.js +9 -0
  129. package/dist/src/coin-txn/index.js.map +1 -0
  130. package/dist/src/coin-txn/transaction.d.ts +94 -0
  131. package/dist/src/coin-txn/transaction.d.ts.map +1 -0
  132. package/dist/src/coin-txn/transaction.js +341 -0
  133. package/dist/src/coin-txn/transaction.js.map +1 -0
  134. package/dist/src/compliance/index.d.ts +2 -0
  135. package/dist/src/compliance/index.d.ts.map +1 -0
  136. package/dist/src/compliance/index.js +2 -0
  137. package/dist/src/compliance/index.js.map +1 -0
  138. package/dist/src/compliance/transaction.d.ts +150 -0
  139. package/dist/src/compliance/transaction.d.ts.map +1 -0
  140. package/dist/src/compliance/transaction.js +183 -0
  141. package/dist/src/compliance/transaction.js.map +1 -0
  142. package/dist/src/contract/create/index.d.ts +8 -0
  143. package/dist/src/contract/create/index.d.ts.map +1 -0
  144. package/dist/src/contract/create/index.js +7 -0
  145. package/dist/src/contract/create/index.js.map +1 -0
  146. package/dist/src/contract/create/transaction.d.ts +47 -0
  147. package/dist/src/contract/create/transaction.d.ts.map +1 -0
  148. package/dist/src/contract/create/transaction.js +137 -0
  149. package/dist/src/contract/create/transaction.js.map +1 -0
  150. package/dist/src/contract/index.d.ts +34 -0
  151. package/dist/src/contract/index.d.ts.map +1 -0
  152. package/dist/src/contract/index.js +34 -0
  153. package/dist/src/contract/index.js.map +1 -0
  154. package/dist/src/contract/shared/index.d.ts +6 -0
  155. package/dist/src/contract/shared/index.d.ts.map +1 -0
  156. package/dist/src/contract/shared/index.js +6 -0
  157. package/dist/src/contract/shared/index.js.map +1 -0
  158. package/dist/src/contract/shared/types.d.ts +114 -0
  159. package/dist/src/contract/shared/types.d.ts.map +1 -0
  160. package/dist/src/contract/shared/types.js +5 -0
  161. package/dist/src/contract/shared/types.js.map +1 -0
  162. package/dist/src/contract/shared/utils.d.ts +111 -0
  163. package/dist/src/contract/shared/utils.d.ts.map +1 -0
  164. package/dist/src/contract/shared/utils.js +182 -0
  165. package/dist/src/contract/shared/utils.js.map +1 -0
  166. package/dist/src/contract/update/index.d.ts +8 -0
  167. package/dist/src/contract/update/index.d.ts.map +1 -0
  168. package/dist/src/contract/update/index.js +7 -0
  169. package/dist/src/contract/update/index.js.map +1 -0
  170. package/dist/src/contract/update/transaction.d.ts +45 -0
  171. package/dist/src/contract/update/transaction.d.ts.map +1 -0
  172. package/dist/src/contract/update/transaction.js +123 -0
  173. package/dist/src/contract/update/transaction.js.map +1 -0
  174. package/dist/src/delegated-voting/index.d.ts +2 -0
  175. package/dist/src/delegated-voting/index.d.ts.map +1 -0
  176. package/dist/src/delegated-voting/index.js +2 -0
  177. package/dist/src/delegated-voting/index.js.map +1 -0
  178. package/dist/src/delegated-voting/transaction.d.ts +127 -0
  179. package/dist/src/delegated-voting/transaction.d.ts.map +1 -0
  180. package/dist/src/delegated-voting/transaction.js +195 -0
  181. package/dist/src/delegated-voting/transaction.js.map +1 -0
  182. package/dist/src/expense-ratio/index.d.ts +2 -0
  183. package/dist/src/expense-ratio/index.d.ts.map +1 -0
  184. package/dist/src/expense-ratio/index.js +2 -0
  185. package/dist/src/expense-ratio/index.js.map +1 -0
  186. package/dist/src/expense-ratio/transaction.d.ts +94 -0
  187. package/dist/src/expense-ratio/transaction.d.ts.map +1 -0
  188. package/dist/src/expense-ratio/transaction.js +122 -0
  189. package/dist/src/expense-ratio/transaction.js.map +1 -0
  190. package/dist/src/grpc/api/validator-api-client.d.ts +32 -0
  191. package/dist/src/grpc/api/validator-api-client.d.ts.map +1 -0
  192. package/dist/src/grpc/api/validator-api-client.js +61 -0
  193. package/dist/src/grpc/api/validator-api-client.js.map +1 -0
  194. package/dist/src/grpc/client-factory.d.ts +12 -0
  195. package/dist/src/grpc/client-factory.d.ts.map +1 -0
  196. package/dist/src/grpc/client-factory.js +248 -0
  197. package/dist/src/grpc/client-factory.js.map +1 -0
  198. package/dist/src/grpc/errors.d.ts +79 -0
  199. package/dist/src/grpc/errors.d.ts.map +1 -0
  200. package/dist/src/grpc/errors.js +108 -0
  201. package/dist/src/grpc/errors.js.map +1 -0
  202. package/dist/src/grpc/index.d.ts +21 -0
  203. package/dist/src/grpc/index.d.ts.map +1 -0
  204. package/dist/src/grpc/index.js +20 -0
  205. package/dist/src/grpc/index.js.map +1 -0
  206. package/dist/src/grpc/transaction/transaction-client.d.ts +97 -0
  207. package/dist/src/grpc/transaction/transaction-client.d.ts.map +1 -0
  208. package/dist/src/grpc/transaction/transaction-client.js +142 -0
  209. package/dist/src/grpc/transaction/transaction-client.js.map +1 -0
  210. package/dist/src/grpc/utils/grpc-web-fetch-wrapper.d.ts +2 -0
  211. package/dist/src/grpc/utils/grpc-web-fetch-wrapper.d.ts.map +1 -0
  212. package/dist/src/grpc/utils/grpc-web-fetch-wrapper.js +213 -0
  213. package/dist/src/grpc/utils/grpc-web-fetch-wrapper.js.map +1 -0
  214. package/dist/src/items/index.d.ts +7 -0
  215. package/dist/src/items/index.d.ts.map +1 -0
  216. package/dist/src/items/index.js +7 -0
  217. package/dist/src/items/index.js.map +1 -0
  218. package/dist/src/items/transaction.d.ts +132 -0
  219. package/dist/src/items/transaction.d.ts.map +1 -0
  220. package/dist/src/items/transaction.js +276 -0
  221. package/dist/src/items/transaction.js.map +1 -0
  222. package/dist/src/mint/index.d.ts +2 -0
  223. package/dist/src/mint/index.d.ts.map +1 -0
  224. package/dist/src/mint/index.js +2 -0
  225. package/dist/src/mint/index.js.map +1 -0
  226. package/dist/src/mint/transaction.d.ts +128 -0
  227. package/dist/src/mint/transaction.d.ts.map +1 -0
  228. package/dist/src/mint/transaction.js +118 -0
  229. package/dist/src/mint/transaction.js.map +1 -0
  230. package/dist/src/proposal/index.d.ts +3 -0
  231. package/dist/src/proposal/index.d.ts.map +1 -0
  232. package/dist/src/proposal/index.js +3 -0
  233. package/dist/src/proposal/index.js.map +1 -0
  234. package/dist/src/proposal/transaction.d.ts +95 -0
  235. package/dist/src/proposal/transaction.d.ts.map +1 -0
  236. package/dist/src/proposal/transaction.js +321 -0
  237. package/dist/src/proposal/transaction.js.map +1 -0
  238. package/dist/src/proposal-cancel/index.d.ts +2 -0
  239. package/dist/src/proposal-cancel/index.d.ts.map +1 -0
  240. package/dist/src/proposal-cancel/index.js +2 -0
  241. package/dist/src/proposal-cancel/index.js.map +1 -0
  242. package/dist/src/proposal-cancel/transaction.d.ts +31 -0
  243. package/dist/src/proposal-cancel/transaction.d.ts.map +1 -0
  244. package/dist/src/proposal-cancel/transaction.js +98 -0
  245. package/dist/src/proposal-cancel/transaction.js.map +1 -0
  246. package/dist/src/protocol/guardian-names.d.ts +35 -0
  247. package/dist/src/protocol/guardian-names.d.ts.map +1 -0
  248. package/dist/src/protocol/guardian-names.js +25 -0
  249. package/dist/src/protocol/guardian-names.js.map +1 -0
  250. package/dist/src/protocol/index.d.ts +36 -0
  251. package/dist/src/protocol/index.d.ts.map +1 -0
  252. package/dist/src/protocol/index.js +36 -0
  253. package/dist/src/protocol/index.js.map +1 -0
  254. package/dist/src/quash/index.d.ts +2 -0
  255. package/dist/src/quash/index.d.ts.map +1 -0
  256. package/dist/src/quash/index.js +2 -0
  257. package/dist/src/quash/index.js.map +1 -0
  258. package/dist/src/quash/transaction.d.ts +124 -0
  259. package/dist/src/quash/transaction.d.ts.map +1 -0
  260. package/dist/src/quash/transaction.js +118 -0
  261. package/dist/src/quash/transaction.js.map +1 -0
  262. package/dist/src/query/api-client.d.ts +368 -0
  263. package/dist/src/query/api-client.d.ts.map +1 -0
  264. package/dist/src/query/api-client.js +497 -0
  265. package/dist/src/query/api-client.js.map +1 -0
  266. package/dist/src/query/decoders.d.ts +184 -0
  267. package/dist/src/query/decoders.d.ts.map +1 -0
  268. package/dist/src/query/decoders.js +257 -0
  269. package/dist/src/query/decoders.js.map +1 -0
  270. package/dist/src/query/guardian-client.d.ts +73 -0
  271. package/dist/src/query/guardian-client.d.ts.map +1 -0
  272. package/dist/src/query/guardian-client.js +90 -0
  273. package/dist/src/query/guardian-client.js.map +1 -0
  274. package/dist/src/query/index.d.ts +16 -0
  275. package/dist/src/query/index.d.ts.map +1 -0
  276. package/dist/src/query/index.js +16 -0
  277. package/dist/src/query/index.js.map +1 -0
  278. package/dist/src/query/validator-client.d.ts +95 -0
  279. package/dist/src/query/validator-client.d.ts.map +1 -0
  280. package/dist/src/query/validator-client.js +116 -0
  281. package/dist/src/query/validator-client.js.map +1 -0
  282. package/dist/src/revoke/index.d.ts +2 -0
  283. package/dist/src/revoke/index.d.ts.map +1 -0
  284. package/dist/src/revoke/index.js +2 -0
  285. package/dist/src/revoke/index.js.map +1 -0
  286. package/dist/src/revoke/transaction.d.ts +123 -0
  287. package/dist/src/revoke/transaction.d.ts.map +1 -0
  288. package/dist/src/revoke/transaction.js +125 -0
  289. package/dist/src/revoke/transaction.js.map +1 -0
  290. package/dist/src/shared/crypto/address-utils.d.ts +71 -0
  291. package/dist/src/shared/crypto/address-utils.d.ts.map +1 -0
  292. package/dist/src/shared/crypto/address-utils.js +305 -0
  293. package/dist/src/shared/crypto/address-utils.js.map +1 -0
  294. package/dist/src/shared/crypto/constants.d.ts +29 -0
  295. package/dist/src/shared/crypto/constants.d.ts.map +1 -0
  296. package/dist/src/shared/crypto/constants.js +53 -0
  297. package/dist/src/shared/crypto/constants.js.map +1 -0
  298. package/dist/src/shared/crypto/signature-utils.d.ts +14 -0
  299. package/dist/src/shared/crypto/signature-utils.d.ts.map +1 -0
  300. package/dist/src/shared/crypto/signature-utils.js +40 -0
  301. package/dist/src/shared/crypto/signature-utils.js.map +1 -0
  302. package/dist/src/shared/fee-calculators/base-fee-constants.d.ts +33 -0
  303. package/dist/src/shared/fee-calculators/base-fee-constants.d.ts.map +1 -0
  304. package/dist/src/shared/fee-calculators/base-fee-constants.js +45 -0
  305. package/dist/src/shared/fee-calculators/base-fee-constants.js.map +1 -0
  306. package/dist/src/shared/fee-calculators/contract-fee-constants.d.ts +53 -0
  307. package/dist/src/shared/fee-calculators/contract-fee-constants.d.ts.map +1 -0
  308. package/dist/src/shared/fee-calculators/contract-fee-constants.js +73 -0
  309. package/dist/src/shared/fee-calculators/contract-fee-constants.js.map +1 -0
  310. package/dist/src/shared/fee-calculators/contract-fee-service.d.ts +60 -0
  311. package/dist/src/shared/fee-calculators/contract-fee-service.d.ts.map +1 -0
  312. package/dist/src/shared/fee-calculators/contract-fee-service.js +171 -0
  313. package/dist/src/shared/fee-calculators/contract-fee-service.js.map +1 -0
  314. package/dist/src/shared/fee-calculators/denomination-fallback.d.ts +41 -0
  315. package/dist/src/shared/fee-calculators/denomination-fallback.d.ts.map +1 -0
  316. package/dist/src/shared/fee-calculators/denomination-fallback.js +83 -0
  317. package/dist/src/shared/fee-calculators/denomination-fallback.js.map +1 -0
  318. package/dist/src/shared/fee-calculators/exchange-rate-service.d.ts +26 -0
  319. package/dist/src/shared/fee-calculators/exchange-rate-service.d.ts.map +1 -0
  320. package/dist/src/shared/fee-calculators/exchange-rate-service.js +62 -0
  321. package/dist/src/shared/fee-calculators/exchange-rate-service.js.map +1 -0
  322. package/dist/src/shared/fee-calculators/types.d.ts +81 -0
  323. package/dist/src/shared/fee-calculators/types.d.ts.map +1 -0
  324. package/dist/src/shared/fee-calculators/types.js +7 -0
  325. package/dist/src/shared/fee-calculators/types.js.map +1 -0
  326. package/dist/src/shared/fee-calculators/universal-fee-calculator.d.ts +144 -0
  327. package/dist/src/shared/fee-calculators/universal-fee-calculator.d.ts.map +1 -0
  328. package/dist/src/shared/fee-calculators/universal-fee-calculator.js +900 -0
  329. package/dist/src/shared/fee-calculators/universal-fee-calculator.js.map +1 -0
  330. package/dist/src/shared/monitoring/health-check.d.ts +37 -0
  331. package/dist/src/shared/monitoring/health-check.d.ts.map +1 -0
  332. package/dist/src/shared/monitoring/health-check.js +152 -0
  333. package/dist/src/shared/monitoring/health-check.js.map +1 -0
  334. package/dist/src/shared/monitoring/index.d.ts +9 -0
  335. package/dist/src/shared/monitoring/index.d.ts.map +1 -0
  336. package/dist/src/shared/monitoring/index.js +9 -0
  337. package/dist/src/shared/monitoring/index.js.map +1 -0
  338. package/dist/src/shared/monitoring/logger.d.ts +42 -0
  339. package/dist/src/shared/monitoring/logger.d.ts.map +1 -0
  340. package/dist/src/shared/monitoring/logger.js +185 -0
  341. package/dist/src/shared/monitoring/logger.js.map +1 -0
  342. package/dist/src/shared/monitoring/metrics.d.ts +33 -0
  343. package/dist/src/shared/monitoring/metrics.d.ts.map +1 -0
  344. package/dist/src/shared/monitoring/metrics.js +105 -0
  345. package/dist/src/shared/monitoring/metrics.js.map +1 -0
  346. package/dist/src/shared/network/constants.d.ts +34 -0
  347. package/dist/src/shared/network/constants.d.ts.map +1 -0
  348. package/dist/src/shared/network/constants.js +46 -0
  349. package/dist/src/shared/network/constants.js.map +1 -0
  350. package/dist/src/shared/protobuf/index.d.ts +18 -0
  351. package/dist/src/shared/protobuf/index.d.ts.map +1 -0
  352. package/dist/src/shared/protobuf/index.js +10 -0
  353. package/dist/src/shared/protobuf/index.js.map +1 -0
  354. package/dist/src/shared/tx/base.d.ts +24 -0
  355. package/dist/src/shared/tx/base.d.ts.map +1 -0
  356. package/dist/src/shared/tx/base.js +57 -0
  357. package/dist/src/shared/tx/base.js.map +1 -0
  358. package/dist/src/shared/tx/standard.d.ts +198 -0
  359. package/dist/src/shared/tx/standard.d.ts.map +1 -0
  360. package/dist/src/shared/tx/standard.js +283 -0
  361. package/dist/src/shared/tx/standard.js.map +1 -0
  362. package/dist/src/shared/utils/amount-utils.d.ts +110 -0
  363. package/dist/src/shared/utils/amount-utils.d.ts.map +1 -0
  364. package/dist/src/shared/utils/amount-utils.js +237 -0
  365. package/dist/src/shared/utils/amount-utils.js.map +1 -0
  366. package/dist/src/shared/utils/byte-utils.d.ts +127 -0
  367. package/dist/src/shared/utils/byte-utils.d.ts.map +1 -0
  368. package/dist/src/shared/utils/byte-utils.js +220 -0
  369. package/dist/src/shared/utils/byte-utils.js.map +1 -0
  370. package/dist/src/shared/utils/error-handler.d.ts +65 -0
  371. package/dist/src/shared/utils/error-handler.d.ts.map +1 -0
  372. package/dist/src/shared/utils/error-handler.js +157 -0
  373. package/dist/src/shared/utils/error-handler.js.map +1 -0
  374. package/dist/src/shared/utils/formatting.d.ts +133 -0
  375. package/dist/src/shared/utils/formatting.d.ts.map +1 -0
  376. package/dist/src/shared/utils/formatting.js +190 -0
  377. package/dist/src/shared/utils/formatting.js.map +1 -0
  378. package/dist/src/shared/utils/grpc-config-utils.d.ts +8 -0
  379. package/dist/src/shared/utils/grpc-config-utils.d.ts.map +1 -0
  380. package/dist/src/shared/utils/grpc-config-utils.js +11 -0
  381. package/dist/src/shared/utils/grpc-config-utils.js.map +1 -0
  382. package/dist/src/shared/utils/performance-benchmark.d.ts +136 -0
  383. package/dist/src/shared/utils/performance-benchmark.d.ts.map +1 -0
  384. package/dist/src/shared/utils/performance-benchmark.js +274 -0
  385. package/dist/src/shared/utils/performance-benchmark.js.map +1 -0
  386. package/dist/src/shared/utils/protobuf-utils.d.ts +39 -0
  387. package/dist/src/shared/utils/protobuf-utils.d.ts.map +1 -0
  388. package/dist/src/shared/utils/protobuf-utils.js +103 -0
  389. package/dist/src/shared/utils/protobuf-utils.js.map +1 -0
  390. package/dist/src/shared/utils/testing-defaults/grpc-config.d.ts +12 -0
  391. package/dist/src/shared/utils/testing-defaults/grpc-config.d.ts.map +1 -0
  392. package/dist/src/shared/utils/testing-defaults/grpc-config.js +16 -0
  393. package/dist/src/shared/utils/testing-defaults/grpc-config.js.map +1 -0
  394. package/dist/src/shared/utils/testing-defaults/index.d.ts +8 -0
  395. package/dist/src/shared/utils/testing-defaults/index.d.ts.map +1 -0
  396. package/dist/src/shared/utils/testing-defaults/index.js +8 -0
  397. package/dist/src/shared/utils/testing-defaults/index.js.map +1 -0
  398. package/dist/src/shared/utils/token-config.d.ts +31 -0
  399. package/dist/src/shared/utils/token-config.d.ts.map +1 -0
  400. package/dist/src/shared/utils/token-config.js +56 -0
  401. package/dist/src/shared/utils/token-config.js.map +1 -0
  402. package/dist/src/shared/utils/token-info.d.ts +101 -0
  403. package/dist/src/shared/utils/token-info.d.ts.map +1 -0
  404. package/dist/src/shared/utils/token-info.js +203 -0
  405. package/dist/src/shared/utils/token-info.js.map +1 -0
  406. package/dist/src/shared/utils/transaction-utils.d.ts +200 -0
  407. package/dist/src/shared/utils/transaction-utils.d.ts.map +1 -0
  408. package/dist/src/shared/utils/transaction-utils.js +293 -0
  409. package/dist/src/shared/utils/transaction-utils.js.map +1 -0
  410. package/dist/src/shared/utils/unified-amount-conversion.d.ts +65 -0
  411. package/dist/src/shared/utils/unified-amount-conversion.d.ts.map +1 -0
  412. package/dist/src/shared/utils/unified-amount-conversion.js +146 -0
  413. package/dist/src/shared/utils/unified-amount-conversion.js.map +1 -0
  414. package/dist/src/shared/utils/validation.d.ts +119 -0
  415. package/dist/src/shared/utils/validation.d.ts.map +1 -0
  416. package/dist/src/shared/utils/validation.js +540 -0
  417. package/dist/src/shared/utils/validation.js.map +1 -0
  418. package/dist/src/sign/finalize.d.ts +82 -0
  419. package/dist/src/sign/finalize.d.ts.map +1 -0
  420. package/dist/src/sign/finalize.js +216 -0
  421. package/dist/src/sign/finalize.js.map +1 -0
  422. package/dist/src/sign/index.d.ts +19 -0
  423. package/dist/src/sign/index.d.ts.map +1 -0
  424. package/dist/src/sign/index.js +21 -0
  425. package/dist/src/sign/index.js.map +1 -0
  426. package/dist/src/sign/signer.d.ts +71 -0
  427. package/dist/src/sign/signer.d.ts.map +1 -0
  428. package/dist/src/sign/signer.js +65 -0
  429. package/dist/src/sign/signer.js.map +1 -0
  430. package/dist/src/smart-contracts/deploy/index.d.ts +5 -0
  431. package/dist/src/smart-contracts/deploy/index.d.ts.map +1 -0
  432. package/dist/src/smart-contracts/deploy/index.js +5 -0
  433. package/dist/src/smart-contracts/deploy/index.js.map +1 -0
  434. package/dist/src/smart-contracts/deploy/transaction.d.ts +54 -0
  435. package/dist/src/smart-contracts/deploy/transaction.d.ts.map +1 -0
  436. package/dist/src/smart-contracts/deploy/transaction.js +116 -0
  437. package/dist/src/smart-contracts/deploy/transaction.js.map +1 -0
  438. package/dist/src/smart-contracts/execute/index.d.ts +5 -0
  439. package/dist/src/smart-contracts/execute/index.d.ts.map +1 -0
  440. package/dist/src/smart-contracts/execute/index.js +5 -0
  441. package/dist/src/smart-contracts/execute/index.js.map +1 -0
  442. package/dist/src/smart-contracts/execute/transaction.d.ts +60 -0
  443. package/dist/src/smart-contracts/execute/transaction.d.ts.map +1 -0
  444. package/dist/src/smart-contracts/execute/transaction.js +88 -0
  445. package/dist/src/smart-contracts/execute/transaction.js.map +1 -0
  446. package/dist/src/smart-contracts/instantiate/index.d.ts +6 -0
  447. package/dist/src/smart-contracts/instantiate/index.d.ts.map +1 -0
  448. package/dist/src/smart-contracts/instantiate/index.js +6 -0
  449. package/dist/src/smart-contracts/instantiate/index.js.map +1 -0
  450. package/dist/src/smart-contracts/instantiate/transaction.d.ts +43 -0
  451. package/dist/src/smart-contracts/instantiate/transaction.d.ts.map +1 -0
  452. package/dist/src/smart-contracts/instantiate/transaction.js +72 -0
  453. package/dist/src/smart-contracts/instantiate/transaction.js.map +1 -0
  454. package/dist/src/smart-contracts/shared/base.d.ts +29 -0
  455. package/dist/src/smart-contracts/shared/base.d.ts.map +1 -0
  456. package/dist/src/smart-contracts/shared/base.js +70 -0
  457. package/dist/src/smart-contracts/shared/base.js.map +1 -0
  458. package/dist/src/smart-contracts/shared/parameters.d.ts +26 -0
  459. package/dist/src/smart-contracts/shared/parameters.d.ts.map +1 -0
  460. package/dist/src/smart-contracts/shared/parameters.js +32 -0
  461. package/dist/src/smart-contracts/shared/parameters.js.map +1 -0
  462. package/dist/src/smart-contracts/shared/validation.d.ts +6 -0
  463. package/dist/src/smart-contracts/shared/validation.d.ts.map +1 -0
  464. package/dist/src/smart-contracts/shared/validation.js +13 -0
  465. package/dist/src/smart-contracts/shared/validation.js.map +1 -0
  466. package/dist/src/smart-contracts/use-cases/bootstrapping/index.d.ts +25 -0
  467. package/dist/src/smart-contracts/use-cases/bootstrapping/index.d.ts.map +1 -0
  468. package/dist/src/smart-contracts/use-cases/bootstrapping/index.js +30 -0
  469. package/dist/src/smart-contracts/use-cases/bootstrapping/index.js.map +1 -0
  470. package/dist/src/smart-contracts/use-cases/bootstrapping/transactions/index.d.ts +7 -0
  471. package/dist/src/smart-contracts/use-cases/bootstrapping/transactions/index.d.ts.map +1 -0
  472. package/dist/src/smart-contracts/use-cases/bootstrapping/transactions/index.js +7 -0
  473. package/dist/src/smart-contracts/use-cases/bootstrapping/transactions/index.js.map +1 -0
  474. package/dist/src/smart-contracts/use-cases/bootstrapping/transactions/process-rewards.d.ts +23 -0
  475. package/dist/src/smart-contracts/use-cases/bootstrapping/transactions/process-rewards.d.ts.map +1 -0
  476. package/dist/src/smart-contracts/use-cases/bootstrapping/transactions/process-rewards.js +39 -0
  477. package/dist/src/smart-contracts/use-cases/bootstrapping/transactions/process-rewards.js.map +1 -0
  478. package/dist/src/smart-contracts/use-cases/bootstrapping/transactions/stake.d.ts +27 -0
  479. package/dist/src/smart-contracts/use-cases/bootstrapping/transactions/stake.d.ts.map +1 -0
  480. package/dist/src/smart-contracts/use-cases/bootstrapping/transactions/stake.js +51 -0
  481. package/dist/src/smart-contracts/use-cases/bootstrapping/transactions/stake.js.map +1 -0
  482. package/dist/src/smart-contracts/use-cases/bootstrapping/transactions/update-wallet.d.ts +22 -0
  483. package/dist/src/smart-contracts/use-cases/bootstrapping/transactions/update-wallet.d.ts.map +1 -0
  484. package/dist/src/smart-contracts/use-cases/bootstrapping/transactions/update-wallet.js +43 -0
  485. package/dist/src/smart-contracts/use-cases/bootstrapping/transactions/update-wallet.js.map +1 -0
  486. package/dist/src/smart-contracts/use-cases/bootstrapping/types.d.ts +60 -0
  487. package/dist/src/smart-contracts/use-cases/bootstrapping/types.d.ts.map +1 -0
  488. package/dist/src/smart-contracts/use-cases/bootstrapping/types.js +8 -0
  489. package/dist/src/smart-contracts/use-cases/bootstrapping/types.js.map +1 -0
  490. package/dist/src/smart-contracts/use-cases/bootstrapping/utils.d.ts +131 -0
  491. package/dist/src/smart-contracts/use-cases/bootstrapping/utils.d.ts.map +1 -0
  492. package/dist/src/smart-contracts/use-cases/bootstrapping/utils.js +87 -0
  493. package/dist/src/smart-contracts/use-cases/bootstrapping/utils.js.map +1 -0
  494. package/dist/src/smart-contracts/use-cases/bridge/guardian/index.d.ts +49 -0
  495. package/dist/src/smart-contracts/use-cases/bridge/guardian/index.d.ts.map +1 -0
  496. package/dist/src/smart-contracts/use-cases/bridge/guardian/index.js +59 -0
  497. package/dist/src/smart-contracts/use-cases/bridge/guardian/index.js.map +1 -0
  498. package/dist/src/smart-contracts/use-cases/bridge/guardian/vaa.d.ts +150 -0
  499. package/dist/src/smart-contracts/use-cases/bridge/guardian/vaa.d.ts.map +1 -0
  500. package/dist/src/smart-contracts/use-cases/bridge/guardian/vaa.js +505 -0
  501. package/dist/src/smart-contracts/use-cases/bridge/guardian/vaa.js.map +1 -0
  502. package/dist/src/smart-contracts/use-cases/bridge/index.d.ts +68 -0
  503. package/dist/src/smart-contracts/use-cases/bridge/index.d.ts.map +1 -0
  504. package/dist/src/smart-contracts/use-cases/bridge/index.js +83 -0
  505. package/dist/src/smart-contracts/use-cases/bridge/index.js.map +1 -0
  506. package/dist/src/smart-contracts/use-cases/bridge/kalvora/index.d.ts +36 -0
  507. package/dist/src/smart-contracts/use-cases/bridge/kalvora/index.d.ts.map +1 -0
  508. package/dist/src/smart-contracts/use-cases/bridge/kalvora/index.js +53 -0
  509. package/dist/src/smart-contracts/use-cases/bridge/kalvora/index.js.map +1 -0
  510. package/dist/src/smart-contracts/use-cases/bridge/kalvora/transactions/index.d.ts +10 -0
  511. package/dist/src/smart-contracts/use-cases/bridge/kalvora/transactions/index.d.ts.map +1 -0
  512. package/dist/src/smart-contracts/use-cases/bridge/kalvora/transactions/index.js +17 -0
  513. package/dist/src/smart-contracts/use-cases/bridge/kalvora/transactions/index.js.map +1 -0
  514. package/dist/src/smart-contracts/use-cases/bridge/kalvora/transactions/lock.d.ts +65 -0
  515. package/dist/src/smart-contracts/use-cases/bridge/kalvora/transactions/lock.d.ts.map +1 -0
  516. package/dist/src/smart-contracts/use-cases/bridge/kalvora/transactions/lock.js +130 -0
  517. package/dist/src/smart-contracts/use-cases/bridge/kalvora/transactions/lock.js.map +1 -0
  518. package/dist/src/smart-contracts/use-cases/bridge/kalvora/transactions/release.d.ts +81 -0
  519. package/dist/src/smart-contracts/use-cases/bridge/kalvora/transactions/release.d.ts.map +1 -0
  520. package/dist/src/smart-contracts/use-cases/bridge/kalvora/transactions/release.js +187 -0
  521. package/dist/src/smart-contracts/use-cases/bridge/kalvora/transactions/release.js.map +1 -0
  522. package/dist/src/smart-contracts/use-cases/bridge/kalvora/types.d.ts +82 -0
  523. package/dist/src/smart-contracts/use-cases/bridge/kalvora/types.d.ts.map +1 -0
  524. package/dist/src/smart-contracts/use-cases/bridge/kalvora/types.js +7 -0
  525. package/dist/src/smart-contracts/use-cases/bridge/kalvora/types.js.map +1 -0
  526. package/dist/src/smart-contracts/use-cases/bridge/kalvora/utils.d.ts +49 -0
  527. package/dist/src/smart-contracts/use-cases/bridge/kalvora/utils.d.ts.map +1 -0
  528. package/dist/src/smart-contracts/use-cases/bridge/kalvora/utils.js +80 -0
  529. package/dist/src/smart-contracts/use-cases/bridge/kalvora/utils.js.map +1 -0
  530. package/dist/src/smart-contracts/use-cases/bridge/solana/constants.d.ts +84 -0
  531. package/dist/src/smart-contracts/use-cases/bridge/solana/constants.d.ts.map +1 -0
  532. package/dist/src/smart-contracts/use-cases/bridge/solana/constants.js +82 -0
  533. package/dist/src/smart-contracts/use-cases/bridge/solana/constants.js.map +1 -0
  534. package/dist/src/smart-contracts/use-cases/bridge/solana/index.d.ts +58 -0
  535. package/dist/src/smart-contracts/use-cases/bridge/solana/index.d.ts.map +1 -0
  536. package/dist/src/smart-contracts/use-cases/bridge/solana/index.js +90 -0
  537. package/dist/src/smart-contracts/use-cases/bridge/solana/index.js.map +1 -0
  538. package/dist/src/smart-contracts/use-cases/bridge/solana/transactions/burn.d.ts +26 -0
  539. package/dist/src/smart-contracts/use-cases/bridge/solana/transactions/burn.d.ts.map +1 -0
  540. package/dist/src/smart-contracts/use-cases/bridge/solana/transactions/burn.js +59 -0
  541. package/dist/src/smart-contracts/use-cases/bridge/solana/transactions/burn.js.map +1 -0
  542. package/dist/src/smart-contracts/use-cases/bridge/solana/transactions/helpers.d.ts +29 -0
  543. package/dist/src/smart-contracts/use-cases/bridge/solana/transactions/helpers.d.ts.map +1 -0
  544. package/dist/src/smart-contracts/use-cases/bridge/solana/transactions/helpers.js +50 -0
  545. package/dist/src/smart-contracts/use-cases/bridge/solana/transactions/helpers.js.map +1 -0
  546. package/dist/src/smart-contracts/use-cases/bridge/solana/transactions/index.d.ts +14 -0
  547. package/dist/src/smart-contracts/use-cases/bridge/solana/transactions/index.d.ts.map +1 -0
  548. package/dist/src/smart-contracts/use-cases/bridge/solana/transactions/index.js +31 -0
  549. package/dist/src/smart-contracts/use-cases/bridge/solana/transactions/index.js.map +1 -0
  550. package/dist/src/smart-contracts/use-cases/bridge/solana/transactions/lock.d.ts +70 -0
  551. package/dist/src/smart-contracts/use-cases/bridge/solana/transactions/lock.d.ts.map +1 -0
  552. package/dist/src/smart-contracts/use-cases/bridge/solana/transactions/lock.js +212 -0
  553. package/dist/src/smart-contracts/use-cases/bridge/solana/transactions/lock.js.map +1 -0
  554. package/dist/src/smart-contracts/use-cases/bridge/solana/transactions/mint.d.ts +60 -0
  555. package/dist/src/smart-contracts/use-cases/bridge/solana/transactions/mint.d.ts.map +1 -0
  556. package/dist/src/smart-contracts/use-cases/bridge/solana/transactions/mint.js +288 -0
  557. package/dist/src/smart-contracts/use-cases/bridge/solana/transactions/mint.js.map +1 -0
  558. package/dist/src/smart-contracts/use-cases/bridge/solana/transactions/registration.d.ts +54 -0
  559. package/dist/src/smart-contracts/use-cases/bridge/solana/transactions/registration.d.ts.map +1 -0
  560. package/dist/src/smart-contracts/use-cases/bridge/solana/transactions/registration.js +186 -0
  561. package/dist/src/smart-contracts/use-cases/bridge/solana/transactions/registration.js.map +1 -0
  562. package/dist/src/smart-contracts/use-cases/bridge/solana/transactions/release.d.ts +96 -0
  563. package/dist/src/smart-contracts/use-cases/bridge/solana/transactions/release.d.ts.map +1 -0
  564. package/dist/src/smart-contracts/use-cases/bridge/solana/transactions/release.js +406 -0
  565. package/dist/src/smart-contracts/use-cases/bridge/solana/transactions/release.js.map +1 -0
  566. package/dist/src/smart-contracts/use-cases/bridge/solana/transactions/token-type.d.ts +34 -0
  567. package/dist/src/smart-contracts/use-cases/bridge/solana/transactions/token-type.d.ts.map +1 -0
  568. package/dist/src/smart-contracts/use-cases/bridge/solana/transactions/token-type.js +55 -0
  569. package/dist/src/smart-contracts/use-cases/bridge/solana/transactions/token-type.js.map +1 -0
  570. package/dist/src/smart-contracts/use-cases/bridge/solana/types.d.ts +377 -0
  571. package/dist/src/smart-contracts/use-cases/bridge/solana/types.d.ts.map +1 -0
  572. package/dist/src/smart-contracts/use-cases/bridge/solana/types.js +9 -0
  573. package/dist/src/smart-contracts/use-cases/bridge/solana/types.js.map +1 -0
  574. package/dist/src/smart-contracts/use-cases/bridge/solana/utils.d.ts +121 -0
  575. package/dist/src/smart-contracts/use-cases/bridge/solana/utils.d.ts.map +1 -0
  576. package/dist/src/smart-contracts/use-cases/bridge/solana/utils.js +219 -0
  577. package/dist/src/smart-contracts/use-cases/bridge/solana/utils.js.map +1 -0
  578. package/dist/src/smart-contracts/use-cases/dex/index.d.ts +58 -0
  579. package/dist/src/smart-contracts/use-cases/dex/index.d.ts.map +1 -0
  580. package/dist/src/smart-contracts/use-cases/dex/index.js +73 -0
  581. package/dist/src/smart-contracts/use-cases/dex/index.js.map +1 -0
  582. package/dist/src/smart-contracts/use-cases/dex/transactions/add-liquidity.d.ts +34 -0
  583. package/dist/src/smart-contracts/use-cases/dex/transactions/add-liquidity.d.ts.map +1 -0
  584. package/dist/src/smart-contracts/use-cases/dex/transactions/add-liquidity.js +68 -0
  585. package/dist/src/smart-contracts/use-cases/dex/transactions/add-liquidity.js.map +1 -0
  586. package/dist/src/smart-contracts/use-cases/dex/transactions/create-pool.d.ts +35 -0
  587. package/dist/src/smart-contracts/use-cases/dex/transactions/create-pool.d.ts.map +1 -0
  588. package/dist/src/smart-contracts/use-cases/dex/transactions/create-pool.js +69 -0
  589. package/dist/src/smart-contracts/use-cases/dex/transactions/create-pool.js.map +1 -0
  590. package/dist/src/smart-contracts/use-cases/dex/transactions/index.d.ts +11 -0
  591. package/dist/src/smart-contracts/use-cases/dex/transactions/index.d.ts.map +1 -0
  592. package/dist/src/smart-contracts/use-cases/dex/transactions/index.js +11 -0
  593. package/dist/src/smart-contracts/use-cases/dex/transactions/index.js.map +1 -0
  594. package/dist/src/smart-contracts/use-cases/dex/transactions/remove-liquidity.d.ts +40 -0
  595. package/dist/src/smart-contracts/use-cases/dex/transactions/remove-liquidity.d.ts.map +1 -0
  596. package/dist/src/smart-contracts/use-cases/dex/transactions/remove-liquidity.js +76 -0
  597. package/dist/src/smart-contracts/use-cases/dex/transactions/remove-liquidity.js.map +1 -0
  598. package/dist/src/smart-contracts/use-cases/dex/transactions/swap.d.ts +38 -0
  599. package/dist/src/smart-contracts/use-cases/dex/transactions/swap.d.ts.map +1 -0
  600. package/dist/src/smart-contracts/use-cases/dex/transactions/swap.js +70 -0
  601. package/dist/src/smart-contracts/use-cases/dex/transactions/swap.js.map +1 -0
  602. package/dist/src/smart-contracts/use-cases/dex/transactions/unlock-liquidity.d.ts +37 -0
  603. package/dist/src/smart-contracts/use-cases/dex/transactions/unlock-liquidity.d.ts.map +1 -0
  604. package/dist/src/smart-contracts/use-cases/dex/transactions/unlock-liquidity.js +60 -0
  605. package/dist/src/smart-contracts/use-cases/dex/transactions/unlock-liquidity.js.map +1 -0
  606. package/dist/src/smart-contracts/use-cases/dex/types.d.ts +130 -0
  607. package/dist/src/smart-contracts/use-cases/dex/types.d.ts.map +1 -0
  608. package/dist/src/smart-contracts/use-cases/dex/types.js +11 -0
  609. package/dist/src/smart-contracts/use-cases/dex/types.js.map +1 -0
  610. package/dist/src/smart-contracts/use-cases/dex/utils.d.ts +52 -0
  611. package/dist/src/smart-contracts/use-cases/dex/utils.d.ts.map +1 -0
  612. package/dist/src/smart-contracts/use-cases/dex/utils.js +79 -0
  613. package/dist/src/smart-contracts/use-cases/dex/utils.js.map +1 -0
  614. package/dist/src/smart-contracts/use-cases/index.d.ts +35 -0
  615. package/dist/src/smart-contracts/use-cases/index.d.ts.map +1 -0
  616. package/dist/src/smart-contracts/use-cases/index.js +35 -0
  617. package/dist/src/smart-contracts/use-cases/index.js.map +1 -0
  618. package/dist/src/smart-contracts/use-cases/staking/index.d.ts +67 -0
  619. package/dist/src/smart-contracts/use-cases/staking/index.d.ts.map +1 -0
  620. package/dist/src/smart-contracts/use-cases/staking/index.js +84 -0
  621. package/dist/src/smart-contracts/use-cases/staking/index.js.map +1 -0
  622. package/dist/src/smart-contracts/use-cases/staking/transactions/index.d.ts +12 -0
  623. package/dist/src/smart-contracts/use-cases/staking/transactions/index.d.ts.map +1 -0
  624. package/dist/src/smart-contracts/use-cases/staking/transactions/index.js +12 -0
  625. package/dist/src/smart-contracts/use-cases/staking/transactions/index.js.map +1 -0
  626. package/dist/src/smart-contracts/use-cases/staking/transactions/instant-stake.d.ts +36 -0
  627. package/dist/src/smart-contracts/use-cases/staking/transactions/instant-stake.d.ts.map +1 -0
  628. package/dist/src/smart-contracts/use-cases/staking/transactions/instant-stake.js +57 -0
  629. package/dist/src/smart-contracts/use-cases/staking/transactions/instant-stake.js.map +1 -0
  630. package/dist/src/smart-contracts/use-cases/staking/transactions/release-instant.d.ts +33 -0
  631. package/dist/src/smart-contracts/use-cases/staking/transactions/release-instant.d.ts.map +1 -0
  632. package/dist/src/smart-contracts/use-cases/staking/transactions/release-instant.js +49 -0
  633. package/dist/src/smart-contracts/use-cases/staking/transactions/release-instant.js.map +1 -0
  634. package/dist/src/smart-contracts/use-cases/staking/transactions/release-liquid-stake.d.ts +33 -0
  635. package/dist/src/smart-contracts/use-cases/staking/transactions/release-liquid-stake.d.ts.map +1 -0
  636. package/dist/src/smart-contracts/use-cases/staking/transactions/release-liquid-stake.js +49 -0
  637. package/dist/src/smart-contracts/use-cases/staking/transactions/release-liquid-stake.js.map +1 -0
  638. package/dist/src/smart-contracts/use-cases/staking/transactions/stake.d.ts +36 -0
  639. package/dist/src/smart-contracts/use-cases/staking/transactions/stake.d.ts.map +1 -0
  640. package/dist/src/smart-contracts/use-cases/staking/transactions/stake.js +59 -0
  641. package/dist/src/smart-contracts/use-cases/staking/transactions/stake.js.map +1 -0
  642. package/dist/src/smart-contracts/use-cases/staking/transactions/update-instant-wallet.d.ts +36 -0
  643. package/dist/src/smart-contracts/use-cases/staking/transactions/update-instant-wallet.d.ts.map +1 -0
  644. package/dist/src/smart-contracts/use-cases/staking/transactions/update-instant-wallet.js +57 -0
  645. package/dist/src/smart-contracts/use-cases/staking/transactions/update-instant-wallet.js.map +1 -0
  646. package/dist/src/smart-contracts/use-cases/staking/transactions/update-wallet.d.ts +36 -0
  647. package/dist/src/smart-contracts/use-cases/staking/transactions/update-wallet.d.ts.map +1 -0
  648. package/dist/src/smart-contracts/use-cases/staking/transactions/update-wallet.js +57 -0
  649. package/dist/src/smart-contracts/use-cases/staking/transactions/update-wallet.js.map +1 -0
  650. package/dist/src/smart-contracts/use-cases/staking/types.d.ts +76 -0
  651. package/dist/src/smart-contracts/use-cases/staking/types.d.ts.map +1 -0
  652. package/dist/src/smart-contracts/use-cases/staking/types.js +10 -0
  653. package/dist/src/smart-contracts/use-cases/staking/types.js.map +1 -0
  654. package/dist/src/smart-contracts/use-cases/staking/utils.d.ts +27 -0
  655. package/dist/src/smart-contracts/use-cases/staking/utils.d.ts.map +1 -0
  656. package/dist/src/smart-contracts/use-cases/staking/utils.js +44 -0
  657. package/dist/src/smart-contracts/use-cases/staking/utils.js.map +1 -0
  658. package/dist/src/smart-contracts/use-cases/third-party/vision-dynamics/smart-swap/index.d.ts +26 -0
  659. package/dist/src/smart-contracts/use-cases/third-party/vision-dynamics/smart-swap/index.d.ts.map +1 -0
  660. package/dist/src/smart-contracts/use-cases/third-party/vision-dynamics/smart-swap/index.js +107 -0
  661. package/dist/src/smart-contracts/use-cases/third-party/vision-dynamics/smart-swap/index.js.map +1 -0
  662. package/dist/src/smart-contracts/use-cases/third-party/vision-dynamics/smart-swap/resolve-indexer.d.ts +18 -0
  663. package/dist/src/smart-contracts/use-cases/third-party/vision-dynamics/smart-swap/resolve-indexer.d.ts.map +1 -0
  664. package/dist/src/smart-contracts/use-cases/third-party/vision-dynamics/smart-swap/resolve-indexer.js +37 -0
  665. package/dist/src/smart-contracts/use-cases/third-party/vision-dynamics/smart-swap/resolve-indexer.js.map +1 -0
  666. package/dist/src/smart-contracts/use-cases/third-party/vision-dynamics/smart-swap/types.d.ts +126 -0
  667. package/dist/src/smart-contracts/use-cases/third-party/vision-dynamics/smart-swap/types.d.ts.map +1 -0
  668. package/dist/src/smart-contracts/use-cases/third-party/vision-dynamics/smart-swap/types.js +10 -0
  669. package/dist/src/smart-contracts/use-cases/third-party/vision-dynamics/smart-swap/types.js.map +1 -0
  670. package/dist/src/types/index.d.ts +240 -0
  671. package/dist/src/types/index.d.ts.map +1 -0
  672. package/dist/src/types/index.js +110 -0
  673. package/dist/src/types/index.js.map +1 -0
  674. package/dist/src/validator-ops/index.d.ts +2 -0
  675. package/dist/src/validator-ops/index.d.ts.map +1 -0
  676. package/dist/src/validator-ops/index.js +2 -0
  677. package/dist/src/validator-ops/index.js.map +1 -0
  678. package/dist/src/validator-ops/transaction.d.ts +312 -0
  679. package/dist/src/validator-ops/transaction.d.ts.map +1 -0
  680. package/dist/src/validator-ops/transaction.js +416 -0
  681. package/dist/src/validator-ops/transaction.js.map +1 -0
  682. package/dist/src/vote/index.d.ts +5 -0
  683. package/dist/src/vote/index.d.ts.map +1 -0
  684. package/dist/src/vote/index.js +5 -0
  685. package/dist/src/vote/index.js.map +1 -0
  686. package/dist/src/vote/transaction.d.ts +70 -0
  687. package/dist/src/vote/transaction.d.ts.map +1 -0
  688. package/dist/src/vote/transaction.js +140 -0
  689. package/dist/src/vote/transaction.js.map +1 -0
  690. package/dist/src/wallet-creation/constants.d.ts +58 -0
  691. package/dist/src/wallet-creation/constants.d.ts.map +1 -0
  692. package/dist/src/wallet-creation/constants.js +113 -0
  693. package/dist/src/wallet-creation/constants.js.map +1 -0
  694. package/dist/src/wallet-creation/crypto-core.d.ts +178 -0
  695. package/dist/src/wallet-creation/crypto-core.d.ts.map +1 -0
  696. package/dist/src/wallet-creation/crypto-core.js +516 -0
  697. package/dist/src/wallet-creation/crypto-core.js.map +1 -0
  698. package/dist/src/wallet-creation/errors.d.ts +58 -0
  699. package/dist/src/wallet-creation/errors.d.ts.map +1 -0
  700. package/dist/src/wallet-creation/errors.js +89 -0
  701. package/dist/src/wallet-creation/errors.js.map +1 -0
  702. package/dist/src/wallet-creation/hash-utils.d.ts +38 -0
  703. package/dist/src/wallet-creation/hash-utils.d.ts.map +1 -0
  704. package/dist/src/wallet-creation/hash-utils.js +147 -0
  705. package/dist/src/wallet-creation/hash-utils.js.map +1 -0
  706. package/dist/src/wallet-creation/hd-utils.d.ts +45 -0
  707. package/dist/src/wallet-creation/hd-utils.d.ts.map +1 -0
  708. package/dist/src/wallet-creation/hd-utils.js +110 -0
  709. package/dist/src/wallet-creation/hd-utils.js.map +1 -0
  710. package/dist/src/wallet-creation/index.d.ts +11 -0
  711. package/dist/src/wallet-creation/index.d.ts.map +1 -0
  712. package/dist/src/wallet-creation/index.js +21 -0
  713. package/dist/src/wallet-creation/index.js.map +1 -0
  714. package/dist/src/wallet-creation/shared.d.ts +60 -0
  715. package/dist/src/wallet-creation/shared.d.ts.map +1 -0
  716. package/dist/src/wallet-creation/shared.js +127 -0
  717. package/dist/src/wallet-creation/shared.js.map +1 -0
  718. package/dist/src/wallet-creation/wallet-factory.d.ts +107 -0
  719. package/dist/src/wallet-creation/wallet-factory.d.ts.map +1 -0
  720. package/dist/src/wallet-creation/wallet-factory.js +298 -0
  721. package/dist/src/wallet-creation/wallet-factory.js.map +1 -0
  722. package/dist/wallet.d.ts +17 -0
  723. package/dist/wallet.d.ts.map +1 -0
  724. package/dist/wallet.js +17 -0
  725. package/dist/wallet.js.map +1 -0
  726. package/package.json +129 -0
@@ -0,0 +1,105 @@
1
+ /**
2
+ * Metrics Collection
3
+ *
4
+ * Collects and reports performance metrics.
5
+ */
6
+ class MetricsCollector {
7
+ constructor() {
8
+ this.metrics = new Map();
9
+ this.maxPoints = 1000;
10
+ }
11
+ getMetricKey(name, labels) {
12
+ if (!labels)
13
+ return name;
14
+ const labelStr = Object.entries(labels)
15
+ .sort(([a], [b]) => a.localeCompare(b))
16
+ .map(([k, v]) => `${k}=${v}`)
17
+ .join(',');
18
+ return `${name}{${labelStr}}`;
19
+ }
20
+ addPoint(metric, value, labels) {
21
+ const point = {
22
+ timestamp: Date.now(),
23
+ value,
24
+ labels
25
+ };
26
+ metric.points.push(point);
27
+ // Keep only recent points
28
+ if (metric.points.length > this.maxPoints) {
29
+ metric.points = metric.points.slice(-this.maxPoints);
30
+ }
31
+ }
32
+ counter(name, value = 1, labels) {
33
+ const key = this.getMetricKey(name, labels);
34
+ let metric = this.metrics.get(key);
35
+ if (!metric) {
36
+ metric = {
37
+ name,
38
+ type: 'counter',
39
+ value: 0,
40
+ labels,
41
+ points: []
42
+ };
43
+ this.metrics.set(key, metric);
44
+ }
45
+ metric.value += value;
46
+ this.addPoint(metric, metric.value, labels);
47
+ }
48
+ gauge(name, value, labels) {
49
+ const key = this.getMetricKey(name, labels);
50
+ let metric = this.metrics.get(key);
51
+ if (!metric) {
52
+ metric = {
53
+ name,
54
+ type: 'gauge',
55
+ value,
56
+ labels,
57
+ points: []
58
+ };
59
+ this.metrics.set(key, metric);
60
+ }
61
+ else {
62
+ metric.value = value;
63
+ }
64
+ this.addPoint(metric, value, labels);
65
+ }
66
+ histogram(name, value, labels) {
67
+ const key = this.getMetricKey(name, labels);
68
+ let metric = this.metrics.get(key);
69
+ if (!metric) {
70
+ metric = {
71
+ name,
72
+ type: 'histogram',
73
+ value: 0,
74
+ labels,
75
+ points: []
76
+ };
77
+ this.metrics.set(key, metric);
78
+ }
79
+ this.addPoint(metric, value, labels);
80
+ }
81
+ getMetrics() {
82
+ return Array.from(this.metrics.values());
83
+ }
84
+ getMetric(name, labels) {
85
+ const key = this.getMetricKey(name, labels);
86
+ return this.metrics.get(key);
87
+ }
88
+ clear() {
89
+ this.metrics.clear();
90
+ }
91
+ export() {
92
+ const metrics = this.getMetrics();
93
+ const lines = [];
94
+ for (const metric of metrics) {
95
+ const labelStr = metric.labels
96
+ ? `{${Object.entries(metric.labels).map(([k, v]) => `${k}="${v}"`).join(',')}}`
97
+ : '';
98
+ lines.push(`# TYPE ${metric.name} ${metric.type}`);
99
+ lines.push(`${metric.name}${labelStr} ${metric.value}`);
100
+ }
101
+ return lines.join('\n');
102
+ }
103
+ }
104
+ export const metrics = new MetricsCollector();
105
+ //# sourceMappingURL=metrics.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"metrics.js","sourceRoot":"","sources":["../../../../src/shared/monitoring/metrics.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAgBH,MAAM,gBAAgB;IAAtB;QACU,YAAO,GAAwB,IAAI,GAAG,EAAE,CAAC;QAChC,cAAS,GAAG,IAAI,CAAC;IA+GpC,CAAC;IA7GS,YAAY,CAAC,IAAY,EAAE,MAA+B;QAChE,IAAI,CAAC,MAAM;YAAE,OAAO,IAAI,CAAC;QACzB,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC;aACpC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;aACtC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;aAC5B,IAAI,CAAC,GAAG,CAAC,CAAC;QACb,OAAO,GAAG,IAAI,IAAI,QAAQ,GAAG,CAAC;IAChC,CAAC;IAEO,QAAQ,CAAC,MAAc,EAAE,KAAa,EAAE,MAA+B;QAC7E,MAAM,KAAK,GAAgB;YACzB,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE;YACrB,KAAK;YACL,MAAM;SACP,CAAC;QAEF,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAE1B,0BAA0B;QAC1B,IAAI,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC;YAC1C,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,SAA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,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG;gBAC/E,CAAC,CAAC,EAAE,CAAC;YAEP,KAAK,CAAC,IAAI,CAAC,UAAU,MAAM,CAAC,IAAI,IAAI,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC;YACnD,KAAK,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,IAAI,GAAG,QAAQ,IAAI,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC;QAC1D,CAAC;QAED,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;CACF;AAED,MAAM,CAAC,MAAM,OAAO,GAAG,IAAI,gBAAgB,EAAE,CAAC"}
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Kalvora network identifiers and protocol-level identifier validation.
3
+ *
4
+ * Kalvora stores token and contract references as mint IDs. Native/local mint
5
+ * IDs are plain bounded identifiers; bridge instruments may retain the
6
+ * `$sol-ASSET+VERSION` form used by the Kalvora bridge APIs.
7
+ */
8
+ /**
9
+ * Mint ID of the native Kalvora token (symbol `KALV`, name `Kalvora`).
10
+ *
11
+ * Kalvora contract IDs are hash-derived (`KAL` + base58 digest, found with
12
+ * `InstrumentContract.vanity_nonce`). The native token has 9 decimals
13
+ * (denomination `1000000000`, smallest unit "kalv"), is the default base-fee
14
+ * instrument for every builder, and is exempt from the non-native fee
15
+ * multiplier.
16
+ *
17
+ * The pre-release placeholder `KAL111112` is rejected by the network as a
18
+ * malformed contract ID.
19
+ */
20
+ export declare const KALVORA_NATIVE_TOKEN: "KALXvxhUMJERCse4e6b2jeXFkcqqpiUByQQckvPZm4szmF3Ao";
21
+ /** Chain identifier of Kalvora protonet (used in WalletConnect and proposal contexts). */
22
+ export declare const KALVORA_PROTONET_NETWORK: "kalvora:protonet";
23
+ /** Maximum UTF-8 byte length of a mint ID accepted by the API. */
24
+ export declare const KALVORA_MINT_ID_MAX_BYTES: 512;
25
+ /**
26
+ * Validate the bounded, printable mint-ID form accepted by this SDK.
27
+ *
28
+ * The network owns the final semantic validation. The SDK only rejects
29
+ * values that cannot safely be sent as canonical identifiers or exceed the
30
+ * API's documented 512-byte bound.
31
+ */
32
+ export declare function isKalvoraMintId(value: unknown): value is string;
33
+ export declare const KALVORA_MINT_ID_ERROR: string;
34
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/shared/network/constants.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,oBAAoB,EAAG,mDAA4D,CAAC;AACjG,0FAA0F;AAC1F,eAAO,MAAM,wBAAwB,EAAG,kBAA2B,CAAC;AAEpE,kEAAkE;AAClE,eAAO,MAAM,yBAAyB,EAAG,GAAY,CAAC;AAMtD;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAa/D;AAED,eAAO,MAAM,qBAAqB,QAC8E,CAAC"}
@@ -0,0 +1,46 @@
1
+ /**
2
+ * Kalvora network identifiers and protocol-level identifier validation.
3
+ *
4
+ * Kalvora stores token and contract references as mint IDs. Native/local mint
5
+ * IDs are plain bounded identifiers; bridge instruments may retain the
6
+ * `$sol-ASSET+VERSION` form used by the Kalvora bridge APIs.
7
+ */
8
+ /**
9
+ * Mint ID of the native Kalvora token (symbol `KALV`, name `Kalvora`).
10
+ *
11
+ * Kalvora contract IDs are hash-derived (`KAL` + base58 digest, found with
12
+ * `InstrumentContract.vanity_nonce`). The native token has 9 decimals
13
+ * (denomination `1000000000`, smallest unit "kalv"), is the default base-fee
14
+ * instrument for every builder, and is exempt from the non-native fee
15
+ * multiplier.
16
+ *
17
+ * The pre-release placeholder `KAL111112` is rejected by the network as a
18
+ * malformed contract ID.
19
+ */
20
+ export const KALVORA_NATIVE_TOKEN = 'KALXvxhUMJERCse4e6b2jeXFkcqqpiUByQQckvPZm4szmF3Ao';
21
+ /** Chain identifier of Kalvora protonet (used in WalletConnect and proposal contexts). */
22
+ export const KALVORA_PROTONET_NETWORK = 'kalvora:protonet';
23
+ /** Maximum UTF-8 byte length of a mint ID accepted by the API. */
24
+ export const KALVORA_MINT_ID_MAX_BYTES = 512;
25
+ const KALVORA_MINT_ID_PATTERN = /^[A-Za-z0-9][A-Za-z0-9._:+/-]*$/u;
26
+ const KALVORA_BRIDGED_MINT_ID_PATTERN = /^\$[A-Za-z0-9]+-[A-Za-z0-9]+(?:\+[A-Za-z0-9]+)?$/u;
27
+ const UTF8_ENCODER = new TextEncoder();
28
+ /**
29
+ * Validate the bounded, printable mint-ID form accepted by this SDK.
30
+ *
31
+ * The network owns the final semantic validation. The SDK only rejects
32
+ * values that cannot safely be sent as canonical identifiers or exceed the
33
+ * API's documented 512-byte bound.
34
+ */
35
+ export function isKalvoraMintId(value) {
36
+ if (typeof value !== 'string' || value.length === 0 || value !== value.trim()) {
37
+ return false;
38
+ }
39
+ if (UTF8_ENCODER.encode(value).length > KALVORA_MINT_ID_MAX_BYTES) {
40
+ return false;
41
+ }
42
+ return (KALVORA_MINT_ID_PATTERN.test(value) ||
43
+ KALVORA_BRIDGED_MINT_ID_PATTERN.test(value));
44
+ }
45
+ export const KALVORA_MINT_ID_ERROR = `a Kalvora mint ID (1-${KALVORA_MINT_ID_MAX_BYTES} bytes, using a local identifier or supported bridged form)`;
46
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/shared/network/constants.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,mDAA4D,CAAC;AACjG,0FAA0F;AAC1F,MAAM,CAAC,MAAM,wBAAwB,GAAG,kBAA2B,CAAC;AAEpE,kEAAkE;AAClE,MAAM,CAAC,MAAM,yBAAyB,GAAG,GAAY,CAAC;AAEtD,MAAM,uBAAuB,GAAG,kCAAkC,CAAC;AACnE,MAAM,+BAA+B,GAAG,mDAAmD,CAAC;AAC5F,MAAM,YAAY,GAAG,IAAI,WAAW,EAAE,CAAC;AAEvC;;;;;;GAMG;AACH,MAAM,UAAU,eAAe,CAAC,KAAc;IAC5C,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,IAAI,KAAK,KAAK,KAAK,CAAC,IAAI,EAAE,EAAE,CAAC;QAC9E,OAAO,KAAK,CAAC;IACf,CAAC;IAED,IAAI,YAAY,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,MAAM,GAAG,yBAAyB,EAAE,CAAC;QAClE,OAAO,KAAK,CAAC;IACf,CAAC;IAED,OAAO,CACL,uBAAuB,CAAC,IAAI,CAAC,KAAK,CAAC;QACnC,+BAA+B,CAAC,IAAI,CAAC,KAAK,CAAC,CAC5C,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,qBAAqB,GAChC,wBAAwB,yBAAyB,6DAA6D,CAAC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Centralized Protobuf Imports
3
+ *
4
+ * This file provides a single import point for all protobuf-related types and enums.
5
+ * This eliminates the need for long relative import paths throughout the codebase.
6
+ */
7
+ import { TRANSACTION_TYPE, TXN_STATUS, CONTRACT_FEE_TYPE, GOVERNANCE_TYPE, CONTRACT_TYPE, LANGUAGE, PROPOSAL_PERIOD, VARIABLE_TYPE } from '../../../proto/generated/txn_pb.js';
8
+ export { TRANSACTION_TYPE, TXN_STATUS, CONTRACT_FEE_TYPE, GOVERNANCE_TYPE, CONTRACT_TYPE, LANGUAGE, PROPOSAL_PERIOD, VARIABLE_TYPE };
9
+ export type { CoinTXN, MintTXN, ItemizedMintTXN, InstrumentContract, GovernanceVote, GovernanceProposal, SmartContractTXN, SmartContractExecuteTXN, SmartContractInstantiateTXN, ExpenseRatioTXN, NFTTXN, ContractUpdateTXN, DelegatedTXN, QuashTXN, RevokeTXN, ComplianceTXN, BurnSBTTXN, AllowanceTXN, ProposalCancelTXN, BaseTXN, TransferAuthentication, PublicKey } from '../../../proto/generated/txn_pb.js';
10
+ export type TransactionType = typeof TRANSACTION_TYPE;
11
+ export type TxnStatus = typeof TXN_STATUS;
12
+ export type ContractFeeType = typeof CONTRACT_FEE_TYPE;
13
+ export type GovernanceType = typeof GOVERNANCE_TYPE;
14
+ export type ContractType = typeof CONTRACT_TYPE;
15
+ export type Language = typeof LANGUAGE;
16
+ export type ProposalPeriod = typeof PROPOSAL_PERIOD;
17
+ export type VariableType = typeof VARIABLE_TYPE;
18
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shared/protobuf/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EACL,gBAAgB,EAChB,UAAU,EACV,iBAAiB,EACjB,eAAe,EACf,aAAa,EACb,QAAQ,EACR,eAAe,EACf,aAAa,EACd,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EACL,gBAAgB,EAChB,UAAU,EACV,iBAAiB,EACjB,eAAe,EACf,aAAa,EACb,QAAQ,EACR,eAAe,EACf,aAAa,EACd,CAAC;AAGF,YAAY,EACV,OAAO,EACP,OAAO,EACP,eAAe,EACf,kBAAkB,EAClB,cAAc,EACd,kBAAkB,EAClB,gBAAgB,EAChB,uBAAuB,EACvB,2BAA2B,EAC3B,eAAe,EACf,MAAM,EACN,iBAAiB,EACjB,YAAY,EACZ,QAAQ,EACR,SAAS,EACT,aAAa,EACb,UAAU,EACV,YAAY,EACZ,iBAAiB,EACjB,OAAO,EACP,sBAAsB,EACtB,SAAS,EACV,MAAM,oCAAoC,CAAC;AAG5C,MAAM,MAAM,eAAe,GAAG,OAAO,gBAAgB,CAAC;AACtD,MAAM,MAAM,SAAS,GAAG,OAAO,UAAU,CAAC;AAC1C,MAAM,MAAM,eAAe,GAAG,OAAO,iBAAiB,CAAC;AACvD,MAAM,MAAM,cAAc,GAAG,OAAO,eAAe,CAAC;AACpD,MAAM,MAAM,YAAY,GAAG,OAAO,aAAa,CAAC;AAChD,MAAM,MAAM,QAAQ,GAAG,OAAO,QAAQ,CAAC;AACvC,MAAM,MAAM,cAAc,GAAG,OAAO,eAAe,CAAC;AACpD,MAAM,MAAM,YAAY,GAAG,OAAO,aAAa,CAAC"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Centralized Protobuf Imports
3
+ *
4
+ * This file provides a single import point for all protobuf-related types and enums.
5
+ * This eliminates the need for long relative import paths throughout the codebase.
6
+ */
7
+ // Import and re-export all enums from generated protobuf files
8
+ import { TRANSACTION_TYPE, TXN_STATUS, CONTRACT_FEE_TYPE, GOVERNANCE_TYPE, CONTRACT_TYPE, LANGUAGE, PROPOSAL_PERIOD, VARIABLE_TYPE } from '../../../proto/generated/txn_pb.js';
9
+ export { TRANSACTION_TYPE, TXN_STATUS, CONTRACT_FEE_TYPE, GOVERNANCE_TYPE, CONTRACT_TYPE, LANGUAGE, PROPOSAL_PERIOD, VARIABLE_TYPE };
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/shared/protobuf/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,+DAA+D;AAC/D,OAAO,EACL,gBAAgB,EAChB,UAAU,EACV,iBAAiB,EACjB,eAAe,EACf,aAAa,EACb,QAAQ,EACR,eAAe,EACf,aAAa,EACd,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EACL,gBAAgB,EAChB,UAAU,EACV,iBAAiB,EACjB,eAAe,EACf,aAAa,EACb,QAAQ,EACR,eAAe,EACf,aAAa,EACd,CAAC"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Shared utilities for standard (non-CoinTXN) transactions
3
+ */
4
+ import type { BaseTXN } from '../../../proto/generated/txn_pb.js';
5
+ import type { GRPCConfig } from '../../types/index.js';
6
+ /**
7
+ * Build a standard BaseTXN (includes public key and nonce)
8
+ */
9
+ export declare function buildStandardBaseTXN(params: {
10
+ publicKeyId: string;
11
+ feeId?: string;
12
+ feeAmountParts?: string;
13
+ nonce: bigint;
14
+ memo?: string;
15
+ timestamp?: Date;
16
+ }): BaseTXN;
17
+ /**
18
+ * Derive address from public key identifier and fetch its nonce
19
+ */
20
+ export declare function getAddressAndNonce(publicKeyId: string, grpcConfig?: GRPCConfig): Promise<{
21
+ address: string;
22
+ nonce: bigint;
23
+ }>;
24
+ //# sourceMappingURL=base.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../src/shared/tx/base.ts"],"names":[],"mappings":"AAAA;;GAEG;AAMH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAC;AAIlE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEvD;;GAEG;AACH,wBAAgB,oBAAoB,CAClC,MAAM,EAAE;IACN,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,IAAI,CAAC;CAClB,GACA,OAAO,CAuCT;AAED;;GAEG;AACH,wBAAsB,kBAAkB,CACtC,WAAW,EAAE,MAAM,EACnB,UAAU,GAAE,UAAe,GAC1B,OAAO,CAAC;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC,CAK7C"}
@@ -0,0 +1,57 @@
1
+ /**
2
+ * Shared utilities for standard (non-CoinTXN) transactions
3
+ */
4
+ import { protoInt64, create } from '@bufbuild/protobuf';
5
+ import { TimestampSchema } from '../../../proto/generated/google/protobuf/timestamp_pb.js';
6
+ import { BaseTXNSchema, PublicKeySchema } from '../../../proto/generated/txn_pb.js';
7
+ import { getNonce as fetchNonce } from '../../api/handler/nonce/service.js';
8
+ import { generateAddressFromPublicKey, getPublicKeyBytes } from '../../shared/crypto/address-utils.js';
9
+ import { KALVORA_NATIVE_TOKEN } from '../../shared/network/constants.js';
10
+ /**
11
+ * Build a standard BaseTXN (includes public key and nonce)
12
+ */
13
+ export function buildStandardBaseTXN(params) {
14
+ const { publicKeyId, nonce, memo } = params;
15
+ const finalFeeId = params.feeId || KALVORA_NATIVE_TOKEN;
16
+ const finalFeeAmount = params.feeAmountParts || '1';
17
+ if (!finalFeeAmount || finalFeeAmount === '0') {
18
+ throw new Error('Base fee must be provided and cannot be 0');
19
+ }
20
+ const now = params.timestamp ?? new Date();
21
+ const timestampMilliseconds = now instanceof Date ? now.getTime() : Number.NaN;
22
+ const earliestProtobufTimestamp = Date.parse('0001-01-01T00:00:00.000Z');
23
+ const latestProtobufTimestamp = Date.parse('9999-12-31T23:59:59.999Z');
24
+ if (!Number.isFinite(timestampMilliseconds) ||
25
+ timestampMilliseconds < earliestProtobufTimestamp ||
26
+ timestampMilliseconds > latestProtobufTimestamp) {
27
+ throw new Error('Base transaction timestamp must be a valid protobuf Date');
28
+ }
29
+ const timestampSeconds = Math.floor(timestampMilliseconds / 1000);
30
+ const timestamp = create(TimestampSchema, {
31
+ seconds: protoInt64.parse(timestampSeconds),
32
+ nanos: (timestampMilliseconds - timestampSeconds * 1000) * 1000000
33
+ });
34
+ const publicKey = create(PublicKeySchema, {
35
+ single: new Uint8Array(getPublicKeyBytes(publicKeyId))
36
+ });
37
+ const base = {
38
+ publicKey,
39
+ timestamp,
40
+ feeAmount: String(finalFeeAmount),
41
+ feeId: finalFeeId,
42
+ nonce
43
+ };
44
+ if (memo && memo.trim() !== '')
45
+ base.memo = memo;
46
+ return create(BaseTXNSchema, base);
47
+ }
48
+ /**
49
+ * Derive address from public key identifier and fetch its nonce
50
+ */
51
+ export async function getAddressAndNonce(publicKeyId, grpcConfig = {}) {
52
+ const address = generateAddressFromPublicKey(publicKeyId);
53
+ const nonceDecimal = await fetchNonce(address, grpcConfig);
54
+ const nonce = protoInt64.uParse(nonceDecimal.toString());
55
+ return { address, nonce };
56
+ }
57
+ //# sourceMappingURL=base.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.js","sourceRoot":"","sources":["../../../../src/shared/tx/base.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAExD,OAAO,EAAE,eAAe,EAAE,MAAM,0DAA0D,CAAC;AAC3F,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAEpF,OAAO,EAAE,QAAQ,IAAI,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAC5E,OAAO,EAAE,4BAA4B,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AACvG,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAGzE;;GAEG;AACH,MAAM,UAAU,oBAAoB,CAClC,MAOC;IAED,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,MAAM,CAAC;IAC5C,MAAM,UAAU,GAAG,MAAM,CAAC,KAAK,IAAI,oBAAoB,CAAC;IACxD,MAAM,cAAc,GAAG,MAAM,CAAC,cAAc,IAAI,GAAG,CAAC;IACpD,IAAI,CAAC,cAAc,IAAI,cAAc,KAAK,GAAG,EAAE,CAAC;QAC9C,MAAM,IAAI,KAAK,CAAC,2CAA2C,CAAC,CAAC;IAC/D,CAAC;IAED,MAAM,GAAG,GAAG,MAAM,CAAC,SAAS,IAAI,IAAI,IAAI,EAAE,CAAC;IAC3C,MAAM,qBAAqB,GAAG,GAAG,YAAY,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC;IAC/E,MAAM,yBAAyB,GAAG,IA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CAAC;IAC3D,MAAM,KAAK,GAAG,UAAU,CAAC,MAAM,CAAC,YAAY,CAAC,QAAQ,EAAE,CAAC,CAAC;IACzD,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;AAC5B,CAAC"}
@@ -0,0 +1,198 @@
1
+ /**
2
+ * Standard Transaction Pipeline
3
+ *
4
+ * Every Kalvora transaction other than `CoinTXN` shares the same envelope:
5
+ * a single-signer {@link BaseTXN} (public key, timestamp, nonce, fee, memo,
6
+ * optional safe-send / interface-fee fields) followed by type-specific fields.
7
+ *
8
+ * This module centralises the build → fee → sign → submit lifecycle so that
9
+ * individual transaction modules only describe *their own* fields:
10
+ *
11
+ * ```typescript
12
+ * export async function buildQuashTXN(input, options) {
13
+ * return buildStandardTransaction({
14
+ * operation: 'buildQuashTXN',
15
+ * schema: QuashTXNSchema,
16
+ * publicKeyId: input.publicKey,
17
+ * contractId: input.contractId,
18
+ * fields: { contractId: input.contractId, txnHash: parseHash32(input.txnHash, 'txnHash') },
19
+ * options
20
+ * });
21
+ * }
22
+ * ```
23
+ *
24
+ * ## Lifecycle
25
+ *
26
+ * | Stage | Function | Network? |
27
+ * |---------|----------------------------------|---------------------------------|
28
+ * | build | {@link buildStandardTransaction} | nonce + fee lookup unless given |
29
+ * | sign | {@link signWithKey} / `signAndFinalize` | no |
30
+ * | submit | {@link submitStandardTransaction}| yes |
31
+ *
32
+ * Passing both `nonce` and `feeAmountParts` makes `build` fully offline and
33
+ * deterministic (useful for cold signing, tests, and hardware wallets).
34
+ *
35
+ * @module shared/tx/standard
36
+ */
37
+ import { type DescMessage, type MessageInitShape, type MessageShape } from '@bufbuild/protobuf';
38
+ import type { BaseTXN } from '../../../proto/generated/txn_pb.js';
39
+ import type { GRPCConfig } from '../../types/index.js';
40
+ /**
41
+ * Options accepted by every standard (single-signer, `BaseTXN`-based)
42
+ * transaction builder in the SDK.
43
+ *
44
+ * All fields are optional. Omitted values are resolved from the network
45
+ * (nonce, base fee) or fall back to documented defaults.
46
+ */
47
+ export interface StandardTXNOptions {
48
+ /**
49
+ * gRPC endpoint used for nonce and fee lookups.
50
+ * Defaults to {@link PROTONET_GRPC_CONFIG} (which currently targets protonet).
51
+ */
52
+ grpcConfig?: GRPCConfig;
53
+ /**
54
+ * Explicit replay-protection nonce. When set, the network nonce lookup is
55
+ * skipped. Must be the *next* nonce for the signing wallet (current + 1).
56
+ *
57
+ * WARNING: manual nonces are not validated; an incorrect value causes the
58
+ * network to reject the transaction.
59
+ */
60
+ nonce?: string | number | bigint;
61
+ /** Transaction timestamp. Defaults to `new Date()`. */
62
+ timestamp?: Date;
63
+ /** Optional free-form memo stored on-chain in `BaseTXN.memo`. */
64
+ memo?: string;
65
+ /** Base (network) fee instrument. Defaults to {@link KALVORA_NATIVE_TOKEN}. */
66
+ feeId?: string;
67
+ /**
68
+ * Exact base fee in the fee instrument's smallest units ("parts").
69
+ * When set, the automatic fee calculation (and its network calls) is skipped.
70
+ */
71
+ feeAmountParts?: string;
72
+ /**
73
+ * Maximum overestimate applied to the automatically calculated base fee,
74
+ * in percent (default 5). The network only charges the real fee.
75
+ */
76
+ overestimatePercent?: number;
77
+ /**
78
+ * When `true`, sets `BaseTXN.safe_send`, asking validators to reject the
79
+ * transaction instead of executing it if any recipient wallet does not yet
80
+ * exist. Omitted from the wire when not set.
81
+ */
82
+ safeSend?: boolean;
83
+ /**
84
+ * Optional interface (front-end / integrator) fee. All three interface
85
+ * fields must be supplied together. `interfaceFee` is in whole-token units.
86
+ */
87
+ interfaceFeeId?: string;
88
+ /** Interface fee amount in whole-token units (e.g. `'0.25'`). */
89
+ interfaceFee?: string;
90
+ /** Base58 address that receives the interface fee. */
91
+ interfaceAddress?: string;
92
+ }
93
+ /**
94
+ * Parameters for {@link buildStandardTransaction}.
95
+ *
96
+ * @typeParam Desc - protobuf-es message descriptor (e.g. `QuashTXNSchema`)
97
+ */
98
+ export interface BuildStandardTransactionParams<Desc extends DescMessage> {
99
+ /** Name of the public builder, used in logs and error messages. */
100
+ operation: string;
101
+ /** Generated protobuf-es schema for the transaction message. */
102
+ schema: Desc;
103
+ /** Base58 public key identifier of the signer (e.g. `A_c_…`). */
104
+ publicKeyId: string;
105
+ /**
106
+ * Contract the transaction acts on. Used to look up fee information; pass
107
+ * `undefined` for transactions that are not bound to a single contract.
108
+ */
109
+ contractId?: string | undefined;
110
+ /** Type-specific message fields (everything except `base`). */
111
+ fields: Omit<MessageInitShape<Desc>, 'base' | '$typeName'>;
112
+ /** Shared builder options. */
113
+ options?: StandardTXNOptions;
114
+ }
115
+ /**
116
+ * Ensure a value is a bounded, printable Kalvora mint/contract ID.
117
+ *
118
+ * This is a *syntactic* check only (see `isKalvoraMintId`); the network
119
+ * performs the final semantic validation (e.g. whether the contract exists).
120
+ *
121
+ * @param value - Candidate contract ID (e.g. `KALXvxhUMJERCse4e6b2jeXFkcqqpiUByQQckvPZm4szmF3Ao`)
122
+ * @param field - Field name used in the error message
123
+ * @returns The same value, typed as a string
124
+ * @throws Error when the ID is not canonical
125
+ */
126
+ export declare function requireContractId(value: unknown, field?: string): string;
127
+ /**
128
+ * Decode a base58 wallet address into raw bytes, with a field-specific error.
129
+ *
130
+ * @param address - Base58 Kalvora wallet address
131
+ * @param field - Field name used in the error message
132
+ * @returns Raw address bytes suitable for protobuf `bytes` fields
133
+ */
134
+ export declare function parseAddress(address: unknown, field?: string): Uint8Array;
135
+ /**
136
+ * Parse a 32-byte hash (transaction hash, proposal ID) from hex.
137
+ * Accepts an optional `0x` prefix.
138
+ *
139
+ * @param hex - 64 hex characters, optionally `0x`-prefixed
140
+ * @param field - Field name used in the error message
141
+ */
142
+ export declare function parseHash32(hex: unknown, field?: string): Uint8Array;
143
+ /**
144
+ * Parse a non-negative integer amount expressed in a token's smallest units
145
+ * ("parts"). Returned as a canonical decimal string (no leading zeros).
146
+ *
147
+ * @param value - Integer as string, number, or bigint
148
+ * @param field - Field name used in the error message
149
+ * @param allowZero - Whether `0` is acceptable (default `false`)
150
+ */
151
+ export declare function parsePartsAmount(value: unknown, field?: string, allowZero?: boolean): string;
152
+ /**
153
+ * Parse an unsigned 64-bit integer (nonce, height) with a field-specific error.
154
+ *
155
+ * @param value - Integer as string, number, or bigint
156
+ * @param field - Field name used in the error message
157
+ */
158
+ export declare function parseUint64(value: unknown, field?: string): bigint;
159
+ /**
160
+ * Convert a `Date` into a protobuf `Timestamp` init shape.
161
+ *
162
+ * @throws Error when the date is invalid
163
+ */
164
+ export declare function toTimestampInit(date: Date, field?: string): {
165
+ seconds: bigint;
166
+ nanos: number;
167
+ };
168
+ /**
169
+ * Resolve the nonce for a standard transaction: use the explicit option when
170
+ * given, otherwise query the network for the signer's next nonce.
171
+ */
172
+ export declare function resolveNonce(operation: string, publicKeyId: string, options: StandardTXNOptions): Promise<bigint>;
173
+ /**
174
+ * Build an **unsigned** standard transaction.
175
+ *
176
+ * Steps:
177
+ * 1. Validate `publicKeyId`, `feeId`, and interface-fee options.
178
+ * 2. Resolve the nonce (explicit or network).
179
+ * 3. Build the `BaseTXN` (timestamp, memo, fee instrument, safe-send).
180
+ * 4. Create the protobuf message from `fields`.
181
+ * 5. Compute the base fee (and interface fee) unless `feeAmountParts` is set.
182
+ * 6. Assert no signature/hash material leaked into the unsigned message.
183
+ *
184
+ * @returns A fully-populated but unsigned protobuf message.
185
+ */
186
+ export declare function buildStandardTransaction<Desc extends DescMessage>(params: BuildStandardTransactionParams<Desc>): Promise<MessageShape<Desc>>;
187
+ /**
188
+ * Submit any signed standard transaction via the universal transaction client.
189
+ *
190
+ * @param txn - Signed protobuf transaction
191
+ * @param grpcConfig - Endpoint configuration
192
+ * @returns Hex transaction hash
193
+ */
194
+ export declare function submitStandardTransaction(txn: {
195
+ $typeName: string;
196
+ base?: BaseTXN;
197
+ }, grpcConfig?: GRPCConfig): Promise<string>;
198
+ //# sourceMappingURL=standard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"standard.d.ts","sourceRoot":"","sources":["../../../../src/shared/tx/standard.ts"],"names":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