@pezkuwi/api-contract 16.5.8 → 16.5.10

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 (386) hide show
  1. package/base/util.d.ts +1 -1
  2. package/bundle-pezkuwi-api-contract.js +1 -1
  3. package/cjs/base/util.d.ts +1 -1
  4. package/cjs/packageInfo.js +1 -1
  5. package/package.json +12 -10
  6. package/packageInfo.js +1 -1
  7. package/build/Abi/index.d.ts +0 -31
  8. package/build/Abi/index.js +0 -359
  9. package/build/Abi/toLatestCompatible.d.ts +0 -15
  10. package/build/Abi/toLatestCompatible.js +0 -30
  11. package/build/Abi/toV1.d.ts +0 -3
  12. package/build/Abi/toV1.js +0 -21
  13. package/build/Abi/toV2.d.ts +0 -3
  14. package/build/Abi/toV2.js +0 -27
  15. package/build/Abi/toV3.d.ts +0 -3
  16. package/build/Abi/toV3.js +0 -10
  17. package/build/Abi/toV4.d.ts +0 -3
  18. package/build/Abi/toV4.js +0 -10
  19. package/build/LICENSE +0 -201
  20. package/build/README.md +0 -3
  21. package/build/augment.d.ts +0 -1
  22. package/build/augment.js +0 -1
  23. package/build/base/Base.d.ts +0 -13
  24. package/build/base/Base.js +0 -40
  25. package/build/base/Blueprint.d.ts +0 -24
  26. package/build/base/Blueprint.js +0 -51
  27. package/build/base/Code.d.ts +0 -22
  28. package/build/base/Code.js +0 -74
  29. package/build/base/Contract.d.ts +0 -25
  30. package/build/base/Contract.js +0 -127
  31. package/build/base/index.d.ts +0 -3
  32. package/build/base/index.js +0 -3
  33. package/build/base/mock.d.ts +0 -3
  34. package/build/base/mock.js +0 -38
  35. package/build/base/types.d.ts +0 -25
  36. package/build/base/types.js +0 -1
  37. package/build/base/util.d.ts +0 -16
  38. package/build/base/util.js +0 -33
  39. package/build/bundle-pezkuwi-api-contract.js +0 -1238
  40. package/build/bundle.d.ts +0 -4
  41. package/build/bundle.js +0 -4
  42. package/build/cjs/Abi/index.d.ts +0 -31
  43. package/build/cjs/Abi/index.js +0 -363
  44. package/build/cjs/Abi/toLatestCompatible.d.ts +0 -15
  45. package/build/cjs/Abi/toLatestCompatible.js +0 -36
  46. package/build/cjs/Abi/toV1.d.ts +0 -3
  47. package/build/cjs/Abi/toV1.js +0 -24
  48. package/build/cjs/Abi/toV2.d.ts +0 -3
  49. package/build/cjs/Abi/toV2.js +0 -30
  50. package/build/cjs/Abi/toV3.d.ts +0 -3
  51. package/build/cjs/Abi/toV3.js +0 -13
  52. package/build/cjs/Abi/toV4.d.ts +0 -3
  53. package/build/cjs/Abi/toV4.js +0 -13
  54. package/build/cjs/augment.d.ts +0 -1
  55. package/build/cjs/augment.js +0 -3
  56. package/build/cjs/base/Base.d.ts +0 -13
  57. package/build/cjs/base/Base.js +0 -44
  58. package/build/cjs/base/Blueprint.d.ts +0 -24
  59. package/build/cjs/base/Blueprint.js +0 -57
  60. package/build/cjs/base/Code.d.ts +0 -22
  61. package/build/cjs/base/Code.js +0 -80
  62. package/build/cjs/base/Contract.d.ts +0 -25
  63. package/build/cjs/base/Contract.js +0 -133
  64. package/build/cjs/base/index.d.ts +0 -3
  65. package/build/cjs/base/index.js +0 -14
  66. package/build/cjs/base/mock.d.ts +0 -3
  67. package/build/cjs/base/mock.js +0 -41
  68. package/build/cjs/base/types.d.ts +0 -25
  69. package/build/cjs/base/types.js +0 -2
  70. package/build/cjs/base/util.d.ts +0 -16
  71. package/build/cjs/base/util.js +0 -42
  72. package/build/cjs/bundle.d.ts +0 -4
  73. package/build/cjs/bundle.js +0 -10
  74. package/build/cjs/index.d.ts +0 -2
  75. package/build/cjs/index.js +0 -5
  76. package/build/cjs/package.json +0 -3
  77. package/build/cjs/packageDetect.d.ts +0 -1
  78. package/build/cjs/packageDetect.js +0 -7
  79. package/build/cjs/packageInfo.d.ts +0 -6
  80. package/build/cjs/packageInfo.js +0 -4
  81. package/build/cjs/promise/index.d.ts +0 -13
  82. package/build/cjs/promise/index.js +0 -23
  83. package/build/cjs/promise/types.d.ts +0 -3
  84. package/build/cjs/promise/types.js +0 -2
  85. package/build/cjs/rx/index.d.ts +0 -13
  86. package/build/cjs/rx/index.js +0 -23
  87. package/build/cjs/rx/types.d.ts +0 -3
  88. package/build/cjs/rx/types.js +0 -2
  89. package/build/cjs/types.d.ts +0 -79
  90. package/build/cjs/types.js +0 -2
  91. package/build/cjs/util.d.ts +0 -5
  92. package/build/cjs/util.js +0 -13
  93. package/build/index.d.ts +0 -2
  94. package/build/index.js +0 -2
  95. package/build/package.json +0 -408
  96. package/build/packageDetect.d.ts +0 -1
  97. package/build/packageDetect.js +0 -5
  98. package/build/packageInfo.d.ts +0 -6
  99. package/build/packageInfo.js +0 -1
  100. package/build/promise/index.d.ts +0 -13
  101. package/build/promise/index.js +0 -17
  102. package/build/promise/types.d.ts +0 -3
  103. package/build/promise/types.js +0 -1
  104. package/build/rx/index.d.ts +0 -13
  105. package/build/rx/index.js +0 -17
  106. package/build/rx/types.d.ts +0 -3
  107. package/build/rx/types.js +0 -1
  108. package/build/types.d.ts +0 -79
  109. package/build/types.js +0 -1
  110. package/build/util.d.ts +0 -5
  111. package/build/util.js +0 -10
  112. package/build-deno/Abi/index.ts +0 -475
  113. package/build-deno/Abi/toLatestCompatible.ts +0 -47
  114. package/build-deno/Abi/toV1.ts +0 -33
  115. package/build-deno/Abi/toV2.ts +0 -56
  116. package/build-deno/Abi/toV3.ts +0 -16
  117. package/build-deno/Abi/toV4.ts +0 -19
  118. package/build-deno/README.md +0 -3
  119. package/build-deno/augment.ts +0 -2
  120. package/build-deno/base/Base.ts +0 -50
  121. package/build-deno/base/Blueprint.ts +0 -88
  122. package/build-deno/base/Code.ts +0 -140
  123. package/build-deno/base/Contract.ts +0 -194
  124. package/build-deno/base/index.ts +0 -4
  125. package/build-deno/base/mock.ts +0 -46
  126. package/build-deno/base/types.ts +0 -38
  127. package/build-deno/base/util.ts +0 -54
  128. package/build-deno/bundle.ts +0 -6
  129. package/build-deno/checkTypes.manual.ts +0 -42
  130. package/build-deno/index.ts +0 -4
  131. package/build-deno/mod.ts +0 -2
  132. package/build-deno/packageDetect.ts +0 -9
  133. package/build-deno/packageInfo.ts +0 -3
  134. package/build-deno/promise/index.ts +0 -28
  135. package/build-deno/promise/types.ts +0 -5
  136. package/build-deno/rx/index.ts +0 -28
  137. package/build-deno/rx/types.ts +0 -5
  138. package/build-deno/test/contracts/index.ts +0 -18
  139. package/build-deno/test/contracts/ink/index.ts +0 -11
  140. package/build-deno/test/contracts/ink/v0/accumulator.wasm +0 -0
  141. package/build-deno/test/contracts/ink/v0/adder.wasm +0 -0
  142. package/build-deno/test/contracts/ink/v0/delegator.wasm +0 -0
  143. package/build-deno/test/contracts/ink/v0/dns.wasm +0 -0
  144. package/build-deno/test/contracts/ink/v0/erc20.wasm +0 -0
  145. package/build-deno/test/contracts/ink/v0/erc721.wasm +0 -0
  146. package/build-deno/test/contracts/ink/v0/flipper.wasm +0 -0
  147. package/build-deno/test/contracts/ink/v0/incrementer.wasm +0 -0
  148. package/build-deno/test/contracts/ink/v0/index.ts +0 -9
  149. package/build-deno/test/contracts/ink/v0/multisig_plain.wasm +0 -0
  150. package/build-deno/test/contracts/ink/v0/subber.wasm +0 -0
  151. package/build-deno/test/contracts/ink/v0/trait-flipper.wasm +0 -0
  152. package/build-deno/test/contracts/ink/v1/index.ts +0 -3
  153. package/build-deno/test/contracts/ink/v2/index.ts +0 -3
  154. package/build-deno/test/contracts/ink/v3/index.ts +0 -3
  155. package/build-deno/test/contracts/ink/v4/erc20.wasm +0 -0
  156. package/build-deno/test/contracts/ink/v4/flipper.wasm +0 -0
  157. package/build-deno/test/contracts/ink/v4/index.ts +0 -5
  158. package/build-deno/test/contracts/ink/v5/erc20.wasm +0 -0
  159. package/build-deno/test/contracts/ink/v5/flipper.wasm +0 -0
  160. package/build-deno/test/contracts/ink/v5/index.ts +0 -6
  161. package/build-deno/test/contracts/ink/v6/erc20.polkavm +0 -0
  162. package/build-deno/test/contracts/ink/v6/index.ts +0 -3
  163. package/build-deno/test/contracts/solang/index.ts +0 -5
  164. package/build-deno/test/contracts/solang/v0/index.ts +0 -2
  165. package/build-deno/test/contracts/solang/v0/ints256.sol +0 -13
  166. package/build-deno/test/contracts/solang/v0/ints256.wasm +0 -0
  167. package/build-deno/test/contracts/user/index.ts +0 -7
  168. package/build-deno/test/contracts/user/v0/assetTransfer.wasm +0 -0
  169. package/build-deno/test/contracts/user/v0/enumExample.wasm +0 -0
  170. package/build-deno/test/contracts/user/v0/index.ts +0 -5
  171. package/build-deno/test/contracts/user/v3/index.ts +0 -2
  172. package/build-deno/test/contracts/user/v4/index.ts +0 -2
  173. package/build-deno/test/contracts/util.ts +0 -12
  174. package/build-deno/types.ts +0 -95
  175. package/build-deno/util.ts +0 -18
  176. package/build-tsc/Abi/index.d.ts +0 -31
  177. package/build-tsc/Abi/toLatestCompatible.d.ts +0 -15
  178. package/build-tsc/Abi/toV1.d.ts +0 -3
  179. package/build-tsc/Abi/toV2.d.ts +0 -3
  180. package/build-tsc/Abi/toV3.d.ts +0 -3
  181. package/build-tsc/Abi/toV4.d.ts +0 -3
  182. package/build-tsc/augment.d.ts +0 -1
  183. package/build-tsc/base/Base.d.ts +0 -13
  184. package/build-tsc/base/Blueprint.d.ts +0 -24
  185. package/build-tsc/base/Code.d.ts +0 -22
  186. package/build-tsc/base/Contract.d.ts +0 -25
  187. package/build-tsc/base/index.d.ts +0 -3
  188. package/build-tsc/base/mock.d.ts +0 -3
  189. package/build-tsc/base/types.d.ts +0 -25
  190. package/build-tsc/base/util.d.ts +0 -16
  191. package/build-tsc/bundle.d.ts +0 -4
  192. package/build-tsc/index.d.ts +0 -2
  193. package/build-tsc/packageDetect.d.ts +0 -1
  194. package/build-tsc/packageInfo.d.ts +0 -6
  195. package/build-tsc/promise/index.d.ts +0 -13
  196. package/build-tsc/promise/types.d.ts +0 -3
  197. package/build-tsc/rx/index.d.ts +0 -13
  198. package/build-tsc/rx/types.d.ts +0 -3
  199. package/build-tsc/types.d.ts +0 -79
  200. package/build-tsc/util.d.ts +0 -5
  201. package/build-tsc-cjs/Abi/index.js +0 -363
  202. package/build-tsc-cjs/Abi/toLatestCompatible.js +0 -36
  203. package/build-tsc-cjs/Abi/toV1.js +0 -24
  204. package/build-tsc-cjs/Abi/toV2.js +0 -30
  205. package/build-tsc-cjs/Abi/toV3.js +0 -13
  206. package/build-tsc-cjs/Abi/toV4.js +0 -13
  207. package/build-tsc-cjs/augment.js +0 -3
  208. package/build-tsc-cjs/base/Base.js +0 -44
  209. package/build-tsc-cjs/base/Blueprint.js +0 -57
  210. package/build-tsc-cjs/base/Code.js +0 -80
  211. package/build-tsc-cjs/base/Contract.js +0 -133
  212. package/build-tsc-cjs/base/index.js +0 -14
  213. package/build-tsc-cjs/base/mock.js +0 -41
  214. package/build-tsc-cjs/base/types.js +0 -2
  215. package/build-tsc-cjs/base/util.js +0 -42
  216. package/build-tsc-cjs/bundle.js +0 -10
  217. package/build-tsc-cjs/index.js +0 -5
  218. package/build-tsc-cjs/packageDetect.js +0 -7
  219. package/build-tsc-cjs/packageInfo.js +0 -4
  220. package/build-tsc-cjs/promise/index.js +0 -23
  221. package/build-tsc-cjs/promise/types.js +0 -2
  222. package/build-tsc-cjs/rx/index.js +0 -23
  223. package/build-tsc-cjs/rx/types.js +0 -2
  224. package/build-tsc-cjs/types.js +0 -2
  225. package/build-tsc-cjs/util.js +0 -13
  226. package/build-tsc-esm/Abi/index.js +0 -359
  227. package/build-tsc-esm/Abi/toLatestCompatible.js +0 -30
  228. package/build-tsc-esm/Abi/toV1.js +0 -21
  229. package/build-tsc-esm/Abi/toV2.js +0 -27
  230. package/build-tsc-esm/Abi/toV3.js +0 -10
  231. package/build-tsc-esm/Abi/toV4.js +0 -10
  232. package/build-tsc-esm/augment.js +0 -1
  233. package/build-tsc-esm/base/Base.js +0 -40
  234. package/build-tsc-esm/base/Blueprint.js +0 -51
  235. package/build-tsc-esm/base/Code.js +0 -74
  236. package/build-tsc-esm/base/Contract.js +0 -127
  237. package/build-tsc-esm/base/index.js +0 -3
  238. package/build-tsc-esm/base/mock.js +0 -38
  239. package/build-tsc-esm/base/types.js +0 -1
  240. package/build-tsc-esm/base/util.js +0 -33
  241. package/build-tsc-esm/bundle.js +0 -4
  242. package/build-tsc-esm/index.js +0 -2
  243. package/build-tsc-esm/packageDetect.js +0 -5
  244. package/build-tsc-esm/packageInfo.js +0 -1
  245. package/build-tsc-esm/promise/index.js +0 -17
  246. package/build-tsc-esm/promise/types.js +0 -1
  247. package/build-tsc-esm/rx/index.js +0 -17
  248. package/build-tsc-esm/rx/types.js +0 -1
  249. package/build-tsc-esm/types.js +0 -1
  250. package/build-tsc-esm/util.js +0 -10
  251. package/src/Abi/Abi.spec.ts +0 -235
  252. package/src/Abi/index.ts +0 -477
  253. package/src/Abi/toLatestCompatible.spec.ts +0 -219
  254. package/src/Abi/toLatestCompatible.ts +0 -52
  255. package/src/Abi/toV1.ts +0 -35
  256. package/src/Abi/toV2.ts +0 -58
  257. package/src/Abi/toV3.ts +0 -18
  258. package/src/Abi/toV4.ts +0 -21
  259. package/src/augment.ts +0 -4
  260. package/src/base/Base.ts +0 -52
  261. package/src/base/Blueprint.ts +0 -90
  262. package/src/base/Code.spec.ts +0 -47
  263. package/src/base/Code.ts +0 -142
  264. package/src/base/Contract.ts +0 -197
  265. package/src/base/index.ts +0 -6
  266. package/src/base/mock.ts +0 -48
  267. package/src/base/types.ts +0 -40
  268. package/src/base/util.ts +0 -56
  269. package/src/bundle.ts +0 -10
  270. package/src/checkTypes.manual.ts +0 -45
  271. package/src/index.ts +0 -6
  272. package/src/mod.ts +0 -4
  273. package/src/packageDetect.ts +0 -13
  274. package/src/packageInfo.ts +0 -6
  275. package/src/promise/index.ts +0 -28
  276. package/src/promise/types.ts +0 -7
  277. package/src/rx/index.ts +0 -28
  278. package/src/rx/types.ts +0 -7
  279. package/src/test/compare/ink_v0_delegator.test.json +0 -47
  280. package/src/test/compare/ink_v0_dns.test.json +0 -232
  281. package/src/test/compare/ink_v0_erc20.test.json +0 -253
  282. package/src/test/compare/ink_v0_erc721.test.json +0 -415
  283. package/src/test/compare/ink_v0_flipper.test.json +0 -9
  284. package/src/test/compare/ink_v0_flipperBundle.test.json +0 -9
  285. package/src/test/compare/ink_v0_incrementer.test.json +0 -9
  286. package/src/test/compare/ink_v0_multisigPlain.test.json +0 -562
  287. package/src/test/compare/ink_v1_flipper.test.json +0 -9
  288. package/src/test/compare/ink_v1_psp22.test.json +0 -531
  289. package/src/test/compare/ink_v2_erc20.test.json +0 -205
  290. package/src/test/compare/ink_v2_flipper.test.json +0 -9
  291. package/src/test/compare/ink_v3_flipper.test.json +0 -9
  292. package/src/test/compare/ink_v3_traitErc20.test.json +0 -205
  293. package/src/test/compare/ink_v4_erc20Contract.test.json +0 -253
  294. package/src/test/compare/ink_v4_erc20Metadata.test.json +0 -253
  295. package/src/test/compare/ink_v4_flipperContract.test.json +0 -155
  296. package/src/test/compare/ink_v4_flipperMetadata.test.json +0 -155
  297. package/src/test/compare/ink_v5_erc20.test.json +0 -370
  298. package/src/test/compare/ink_v5_erc20AnonymousTransferMetadata.test.json +0 -370
  299. package/src/test/compare/ink_v5_erc20Contract.test.json +0 -370
  300. package/src/test/compare/ink_v5_erc20Metadata.test.json +0 -370
  301. package/src/test/compare/ink_v5_flipperContract.test.json +0 -174
  302. package/src/test/compare/ink_v5_flipperMetadata.test.json +0 -174
  303. package/src/test/compare/ink_v6_erc20Contract.test.json +0 -418
  304. package/src/test/compare/ink_v6_erc20Metadata.test.json +0 -418
  305. package/src/test/compare/solang_v0_ints256.test.json +0 -9
  306. package/src/test/compare/user_v0_assetTransfer.test.json +0 -54
  307. package/src/test/compare/user_v0_enumExample.test.json +0 -303
  308. package/src/test/compare/user_v0_recursive.test.json +0 -27
  309. package/src/test/compare/user_v0_withString.test.json +0 -260
  310. package/src/test/compare/user_v3_ask.test.json +0 -71
  311. package/src/test/compare/user_v4_events.test.json +0 -1328
  312. package/src/test/contracts/index.ts +0 -20
  313. package/src/test/contracts/ink/index.ts +0 -13
  314. package/src/test/contracts/ink/v0/accumulator.wasm +0 -0
  315. package/src/test/contracts/ink/v0/adder.wasm +0 -0
  316. package/src/test/contracts/ink/v0/delegator.json +0 -252
  317. package/src/test/contracts/ink/v0/delegator.wasm +0 -0
  318. package/src/test/contracts/ink/v0/dns.json +0 -713
  319. package/src/test/contracts/ink/v0/dns.wasm +0 -0
  320. package/src/test/contracts/ink/v0/erc20.json +0 -704
  321. package/src/test/contracts/ink/v0/erc20.wasm +0 -0
  322. package/src/test/contracts/ink/v0/erc721.json +0 -1197
  323. package/src/test/contracts/ink/v0/erc721.wasm +0 -0
  324. package/src/test/contracts/ink/v0/flipper.contract.json +0 -107
  325. package/src/test/contracts/ink/v0/flipper.json +0 -106
  326. package/src/test/contracts/ink/v0/flipper.wasm +0 -0
  327. package/src/test/contracts/ink/v0/incrementer.json +0 -108
  328. package/src/test/contracts/ink/v0/incrementer.wasm +0 -0
  329. package/src/test/contracts/ink/v0/index.ts +0 -11
  330. package/src/test/contracts/ink/v0/multisig_plain.json +0 -1466
  331. package/src/test/contracts/ink/v0/multisig_plain.wasm +0 -0
  332. package/src/test/contracts/ink/v0/subber.wasm +0 -0
  333. package/src/test/contracts/ink/v0/trait-flipper.json +0 -103
  334. package/src/test/contracts/ink/v0/trait-flipper.wasm +0 -0
  335. package/src/test/contracts/ink/v1/flipper.contract.json +0 -111
  336. package/src/test/contracts/ink/v1/index.ts +0 -6
  337. package/src/test/contracts/ink/v1/psp22_minter_pauser.contract.json +0 -1722
  338. package/src/test/contracts/ink/v2/erc20.contract.json +0 -630
  339. package/src/test/contracts/ink/v2/flipper.contract.json +0 -103
  340. package/src/test/contracts/ink/v2/index.ts +0 -5
  341. package/src/test/contracts/ink/v3/flipper.contract.json +0 -105
  342. package/src/test/contracts/ink/v3/index.ts +0 -6
  343. package/src/test/contracts/ink/v3/trait_erc20.contract.json +0 -631
  344. package/src/test/contracts/ink/v4/erc20.contract.json +0 -1
  345. package/src/test/contracts/ink/v4/erc20.json +0 -821
  346. package/src/test/contracts/ink/v4/erc20.wasm +0 -0
  347. package/src/test/contracts/ink/v4/flipper.contract.json +0 -1
  348. package/src/test/contracts/ink/v4/flipper.json +0 -396
  349. package/src/test/contracts/ink/v4/flipper.wasm +0 -0
  350. package/src/test/contracts/ink/v4/index.ts +0 -7
  351. package/src/test/contracts/ink/v5/erc20.contract.json +0 -1
  352. package/src/test/contracts/ink/v5/erc20.json +0 -1025
  353. package/src/test/contracts/ink/v5/erc20.wasm +0 -0
  354. package/src/test/contracts/ink/v5/erc20_anonymous_transfer.json +0 -1025
  355. package/src/test/contracts/ink/v5/flipper.contract.json +0 -1
  356. package/src/test/contracts/ink/v5/flipper.json +0 -420
  357. package/src/test/contracts/ink/v5/flipper.wasm +0 -0
  358. package/src/test/contracts/ink/v5/index.ts +0 -8
  359. package/src/test/contracts/ink/v6/erc20.contract.json +0 -1
  360. package/src/test/contracts/ink/v6/erc20.json +0 -1081
  361. package/src/test/contracts/ink/v6/erc20.polkavm +0 -0
  362. package/src/test/contracts/ink/v6/index.ts +0 -5
  363. package/src/test/contracts/solang/index.ts +0 -7
  364. package/src/test/contracts/solang/v0/index.ts +0 -4
  365. package/src/test/contracts/solang/v0/ints256.json +0 -113
  366. package/src/test/contracts/solang/v0/ints256.sol +0 -13
  367. package/src/test/contracts/solang/v0/ints256.wasm +0 -0
  368. package/src/test/contracts/user/index.ts +0 -9
  369. package/src/test/contracts/user/v0/assetTransfer.json +0 -299
  370. package/src/test/contracts/user/v0/assetTransfer.wasm +0 -0
  371. package/src/test/contracts/user/v0/enumExample.json +0 -528
  372. package/src/test/contracts/user/v0/enumExample.wasm +0 -0
  373. package/src/test/contracts/user/v0/index.ts +0 -7
  374. package/src/test/contracts/user/v0/recursive.contract.json +0 -1
  375. package/src/test/contracts/user/v0/withString.json +0 -777
  376. package/src/test/contracts/user/v3/ask.json +0 -550
  377. package/src/test/contracts/user/v3/index.ts +0 -4
  378. package/src/test/contracts/user/v4/events.contract.json +0 -2990
  379. package/src/test/contracts/user/v4/index.ts +0 -4
  380. package/src/test/contracts/util.ts +0 -14
  381. package/src/types.ts +0 -98
  382. package/src/util.ts +0 -20
  383. package/tsconfig.build.json +0 -22
  384. package/tsconfig.build.tsbuildinfo +0 -1
  385. package/tsconfig.spec.json +0 -26
  386. package/tsconfig.spec.tsbuildinfo +0 -1
@@ -1,54 +0,0 @@
1
-
2
- import type { SubmittableResult } from 'https://deno.land/x/pezkuwi/api/mod.ts';
3
- import type { SubmittableExtrinsic } from 'https://deno.land/x/pezkuwi/api/submittable/types.ts';
4
- import type { ApiTypes } from 'https://deno.land/x/pezkuwi/api/types/index.ts';
5
- import type { WeightV1, WeightV2 } from 'https://deno.land/x/pezkuwi/types/interfaces/index.ts';
6
- import type { BN } from 'https://deno.land/x/pezkuwi/util/mod.ts';
7
- import type { AbiConstructor, AbiMessage, BlueprintOptions, WeightAll } from '../types.ts';
8
- import type { BlueprintDeploy, ContractGeneric } from './types.ts';
9
-
10
- import { Bytes } from 'https://deno.land/x/pezkuwi/types/mod.ts';
11
- import { bnToBn, compactAddLength, u8aToU8a } from 'https://deno.land/x/pezkuwi/util/mod.ts';
12
- import { randomAsU8a } from 'https://deno.land/x/pezkuwi/util-crypto/mod.ts';
13
-
14
- export const EMPTY_SALT = new Uint8Array();
15
-
16
- export function withMeta <T extends { meta: AbiMessage }> (meta: AbiMessage, creator: Omit<T, 'meta'>): T {
17
- (creator as T).meta = meta;
18
-
19
- return creator as T;
20
- }
21
-
22
- export function createBluePrintTx <ApiType extends ApiTypes, R extends SubmittableResult> (meta: AbiMessage, fn: (options: BlueprintOptions, params: unknown[]) => SubmittableExtrinsic<ApiType, R>): BlueprintDeploy<ApiType> {
23
- return withMeta(meta, (options: BlueprintOptions, ...params: unknown[]): SubmittableExtrinsic<ApiType, R> =>
24
- fn(options, params)
25
- );
26
- }
27
-
28
- export function createBluePrintWithId <T> (fn: (constructorOrId: AbiConstructor | string | number, options: BlueprintOptions, params: unknown[]) => T): ContractGeneric<BlueprintOptions, T> {
29
- return (constructorOrId: AbiConstructor | string | number, options: BlueprintOptions, ...params: unknown[]): T =>
30
- fn(constructorOrId, options, params);
31
- }
32
-
33
- export function encodeSalt (salt: Uint8Array | string | null = randomAsU8a()): Uint8Array {
34
- return salt instanceof Bytes
35
- ? salt
36
- : salt?.length
37
- ? compactAddLength(u8aToU8a(salt))
38
- : EMPTY_SALT;
39
- }
40
-
41
- export function convertWeight (weight: WeightV1 | WeightV2 | bigint | string | number | BN): WeightAll {
42
- const [refTime, proofSize] = isWeightV2(weight)
43
- ? [weight.refTime.toBn(), weight.proofSize.toBn()]
44
- : [bnToBn(weight), undefined];
45
-
46
- return {
47
- v1Weight: refTime,
48
- v2Weight: { proofSize, refTime }
49
- };
50
- }
51
-
52
- export function isWeightV2 (weight: WeightV1 | WeightV2 | bigint | string | number | BN): weight is WeightV2 {
53
- return !!(weight as WeightV2).proofSize;
54
- }
@@ -1,6 +0,0 @@
1
-
2
- export { Abi } from './Abi/index.ts';
3
- export { packageInfo } from './packageInfo.ts';
4
-
5
- export * from './promise/index.ts';
6
- export * from './rx/index.ts';
@@ -1,42 +0,0 @@
1
-
2
-
3
- import 'https://deno.land/x/pezkuwi/api-augment/mod.ts';
4
-
5
- import type { TestKeyringMapBizinikiwi } from 'https://deno.land/x/pezkuwi/keyring/testingPairs.ts';
6
-
7
- import { ApiPromise } from 'https://deno.land/x/pezkuwi/api/mod.ts';
8
- import { BlueprintPromise, ContractPromise } from 'https://deno.land/x/pezkuwi/api-contract/mod.ts';
9
- import { createTestPairs } from 'https://deno.land/x/pezkuwi/keyring/testingPairs.ts';
10
-
11
- import abiIncrementer from './test/contracts/ink/v0/incrementer.json' assert { type: 'json' };
12
-
13
- async function checkBlueprint (api: ApiPromise, pairs: TestKeyringMapBizinikiwi): Promise<void> {
14
- const blueprint = new BlueprintPromise(api, abiIncrementer as Record<string, unknown>, '0x1234');
15
-
16
- await blueprint.tx['new']({ gasLimit: 456, salt: '0x1234', value: 123 }, 42).signAndSend(pairs.bob);
17
- await blueprint.tx['new']({ gasLimit: 456, value: 123 }, 42).signAndSend(pairs.bob);
18
- }
19
-
20
- async function checkContract (api: ApiPromise, pairs: TestKeyringMapBizinikiwi): Promise<void> {
21
- const contract = new ContractPromise(api, abiIncrementer as Record<string, unknown>, '0x1234');
22
-
23
- // queries
24
- await contract.query['get'](pairs.alice.address, {});
25
-
26
- // execute
27
- await contract.tx['inc']({ gasLimit: 1234 }, 123).signAndSend(pairs.eve);
28
- }
29
-
30
- async function main (): Promise<void> {
31
- const api = await ApiPromise.create({
32
- hasher: (data: Uint8Array): Uint8Array => data
33
- });
34
- const pairs = createTestPairs();
35
-
36
- await Promise.all([
37
- checkBlueprint(api, pairs),
38
- checkContract(api, pairs)
39
- ]);
40
- }
41
-
42
- main().catch(console.error);
@@ -1,4 +0,0 @@
1
-
2
- import './packageDetect.ts';
3
-
4
- export * from './bundle.ts';
package/build-deno/mod.ts DELETED
@@ -1,2 +0,0 @@
1
-
2
- export * from './index.ts';
@@ -1,9 +0,0 @@
1
-
2
-
3
- import { packageInfo as apiInfo } from 'https://deno.land/x/pezkuwi/api/packageInfo.ts';
4
- import { packageInfo as typesInfo } from 'https://deno.land/x/pezkuwi/types/packageInfo.ts';
5
- import { detectPackage } from 'https://deno.land/x/pezkuwi/util/mod.ts';
6
-
7
- import { packageInfo } from './packageInfo.ts';
8
-
9
- detectPackage(packageInfo, null, [apiInfo, typesInfo]);
@@ -1,3 +0,0 @@
1
-
2
-
3
- export const packageInfo = { name: '@pezkuwi/api-contract', path: new URL(import.meta.url).pathname, type: 'deno', version: '16.5.8' };
@@ -1,28 +0,0 @@
1
- import { Buffer } from 'node:buffer';
2
-
3
-
4
- import type { ApiPromise } from 'https://deno.land/x/pezkuwi/api/mod.ts';
5
- import type { AccountId, AccountId20, Hash } from 'https://deno.land/x/pezkuwi/types/interfaces/index.ts';
6
- import type { Abi } from '../Abi/index.ts';
7
-
8
- import { toPromiseMethod } from 'https://deno.land/x/pezkuwi/api/mod.ts';
9
-
10
- import { Blueprint, Code, Contract } from '../base/index.ts';
11
-
12
- export class BlueprintPromise extends Blueprint<'promise'> {
13
- constructor (api: ApiPromise, abi: string | Record<string, unknown> | Abi, codeHash: string | Hash) {
14
- super(api, abi, codeHash, toPromiseMethod);
15
- }
16
- }
17
-
18
- export class CodePromise extends Code<'promise'> {
19
- constructor (api: ApiPromise, abi: string | Record<string, unknown> | Abi, wasm: Uint8Array | string | Buffer | null | undefined) {
20
- super(api, abi, wasm, toPromiseMethod);
21
- }
22
- }
23
-
24
- export class ContractPromise extends Contract<'promise'> {
25
- constructor (api: ApiPromise, abi: string | Record<string, unknown> | Abi, address: string | AccountId | AccountId20) {
26
- super(api, abi, address, toPromiseMethod);
27
- }
28
- }
@@ -1,5 +0,0 @@
1
-
2
- import type { BlueprintSubmittableResult as BaseBlueprintSubmittableResult, CodeSubmittableResult as BaseCodeSubmittableResult } from '../base/index.ts';
3
-
4
- export type BlueprintSubmittableResult = BaseBlueprintSubmittableResult<'promise'>;
5
- export type CodeSubmittableResult = BaseCodeSubmittableResult<'promise'>;
@@ -1,28 +0,0 @@
1
- import { Buffer } from 'node:buffer';
2
-
3
-
4
- import type { ApiRx } from 'https://deno.land/x/pezkuwi/api/mod.ts';
5
- import type { AccountId, Hash } from 'https://deno.land/x/pezkuwi/types/interfaces/index.ts';
6
- import type { Abi } from '../Abi/index.ts';
7
-
8
- import { toRxMethod } from 'https://deno.land/x/pezkuwi/api/mod.ts';
9
-
10
- import { Blueprint, Code, Contract } from '../base/index.ts';
11
-
12
- export class BlueprintRx extends Blueprint<'rxjs'> {
13
- constructor (api: ApiRx, abi: string | Record<string, unknown> | Abi, codeHash: string | Hash) {
14
- super(api, abi, codeHash, toRxMethod);
15
- }
16
- }
17
-
18
- export class CodeRx extends Code<'rxjs'> {
19
- constructor (api: ApiRx, abi: string | Record<string, unknown> | Abi, wasm: Uint8Array | string | Buffer | null | undefined) {
20
- super(api, abi, wasm, toRxMethod);
21
- }
22
- }
23
-
24
- export class ContractRx extends Contract<'rxjs'> {
25
- constructor (api: ApiRx, abi: string | Record<string, unknown> | Abi, address: string | AccountId) {
26
- super(api, abi, address, toRxMethod);
27
- }
28
- }
@@ -1,5 +0,0 @@
1
-
2
- import type { BlueprintSubmittableResult as BaseBlueprintSubmittableResult, CodeSubmittableResult as BaseCodeSubmittableResult } from '../base/index.ts';
3
-
4
- export type BlueprintSubmittableResult = BaseBlueprintSubmittableResult<'promise'>;
5
- export type CodeSubmittableResult = BaseCodeSubmittableResult<'promise'>;
@@ -1,18 +0,0 @@
1
-
2
- import ink from './ink/index.ts';
3
- import solang from './solang/index.ts';
4
- import user from './user/index.ts';
5
-
6
- const all: Record<string, Record<string, unknown>> = {};
7
-
8
- Object
9
- .entries({ ink, solang, user })
10
- .forEach(([type, abis]) =>
11
- Object
12
- .entries(abis)
13
- .forEach(([name, abi]): void => {
14
- all[`${type}_${name}`] = abi;
15
- })
16
- );
17
-
18
- export default all;
@@ -1,11 +0,0 @@
1
-
2
- import { createVersionedExport } from '../util.ts';
3
- import * as v0 from './v0/index.ts';
4
- import * as v1 from './v1/index.ts';
5
- import * as v2 from './v2/index.ts';
6
- import * as v3 from './v3/index.ts';
7
- import * as v4 from './v4/index.ts';
8
- import * as v5 from './v5/index.ts';
9
- import * as v6 from './v6/index.ts';
10
-
11
- export default createVersionedExport({ v0, v1, v2, v3, v4, v5, v6 });
@@ -1,9 +0,0 @@
1
-
2
- export { default as delegator } from './delegator.json' assert { type: 'json' };
3
- export { default as dns } from './dns.json' assert { type: 'json' };
4
- export { default as erc20 } from './erc20.json' assert { type: 'json' };
5
- export { default as erc721 } from './erc721.json' assert { type: 'json' };
6
- export { default as flipperBundle } from './flipper.contract.json' assert { type: 'json' };
7
- export { default as flipper } from './flipper.json' assert { type: 'json' };
8
- export { default as incrementer } from './incrementer.json' assert { type: 'json' };
9
- export { default as multisigPlain } from './multisig_plain.json' assert { type: 'json' };
@@ -1,3 +0,0 @@
1
-
2
- export { default as flipper } from './flipper.contract.json' assert { type: 'json' };
3
- export { default as psp22 } from './psp22_minter_pauser.contract.json' assert { type: 'json' };
@@ -1,3 +0,0 @@
1
-
2
- export { default as erc20 } from './erc20.contract.json' assert { type: 'json' };
3
- export { default as flipper } from './flipper.contract.json' assert { type: 'json' };
@@ -1,3 +0,0 @@
1
-
2
- export { default as flipper } from './flipper.contract.json' assert { type: 'json' };
3
- export { default as traitErc20 } from './trait_erc20.contract.json' assert { type: 'json' };
@@ -1,5 +0,0 @@
1
-
2
- export { default as erc20Contract } from './erc20.contract.json' assert { type: 'json' };
3
- export { default as erc20Metadata } from './erc20.json' assert { type: 'json' };
4
- export { default as flipperContract } from './flipper.contract.json' assert { type: 'json' };
5
- export { default as flipperMetadata } from './flipper.json' assert { type: 'json' };
@@ -1,6 +0,0 @@
1
-
2
- export { default as erc20Contract } from './erc20.contract.json' assert { type: 'json' };
3
- export { default as erc20Metadata } from './erc20.json' assert { type: 'json' };
4
- export { default as erc20AnonymousTransferMetadata } from './erc20_anonymous_transfer.json' assert { type: 'json' };
5
- export { default as flipperContract } from './flipper.contract.json' assert { type: 'json' };
6
- export { default as flipperMetadata } from './flipper.json' assert { type: 'json' };
@@ -1,3 +0,0 @@
1
-
2
- export { default as erc20Contract } from './erc20.contract.json' assert { type: 'json' };
3
- export { default as erc20Metadata } from './erc20.json' assert { type: 'json' };
@@ -1,5 +0,0 @@
1
-
2
- import { createVersionedExport } from '../util.ts';
3
- import * as v0 from './v0/index.ts';
4
-
5
- export default createVersionedExport({ v0 });
@@ -1,2 +0,0 @@
1
-
2
- export { default as ints256 } from './ints256.json' assert { type: 'json' };
@@ -1,13 +0,0 @@
1
- /// @title Test 256 bits types
2
- /// @author Sean Young <sean@mess.org>
3
- contract ints256 {
4
- /// Multiply two 256 bit values
5
- function multiply(uint256 a, uint256 b) public pure returns (uint256) {
6
- return a * b;
7
- }
8
-
9
- /// Add two 256 bit values
10
- function add(uint256 a, uint256 b) public pure returns (uint256) {
11
- return a + b;
12
- }
13
- }
@@ -1,7 +0,0 @@
1
-
2
- import { createVersionedExport } from '../util.ts';
3
- import * as v0 from './v0/index.ts';
4
- import * as v3 from './v3/index.ts';
5
- import * as v4 from './v4/index.ts';
6
-
7
- export default createVersionedExport({ v0, v3, v4 });
@@ -1,5 +0,0 @@
1
-
2
- export { default as assetTransfer } from './assetTransfer.json' assert { type: 'json' };
3
- export { default as enumExample } from './enumExample.json' assert { type: 'json' };
4
- export { default as recursive } from './recursive.contract.json' assert { type: 'json' };
5
- export { default as withString } from './withString.json' assert { type: 'json' };
@@ -1,2 +0,0 @@
1
-
2
- export { default as ask } from './ask.json' assert { type: 'json' };
@@ -1,2 +0,0 @@
1
-
2
- export { default as events } from './events.contract.json' assert { type: 'json' };
@@ -1,12 +0,0 @@
1
-
2
- export function createVersionedExport (versioned: Record<string, Record<string, unknown>>): Record<string, Record<string, unknown>> {
3
- const result: Record<string, Record<string, unknown>> = {};
4
-
5
- Object.entries(versioned).forEach(([version, contracts]) =>
6
- Object.entries(contracts).forEach(([name, contract]): void => {
7
- result[`${version}_${name}`] = contract as Record<string, unknown>;
8
- })
9
- );
10
-
11
- return result;
12
- }
@@ -1,95 +0,0 @@
1
-
2
- import type { ApiBase } from 'https://deno.land/x/pezkuwi/api/base/index.ts';
3
- import type { ApiTypes } from 'https://deno.land/x/pezkuwi/api/types/index.ts';
4
- import type { Text } from 'https://deno.land/x/pezkuwi/types/mod.ts';
5
- import type { ContractExecResultResult, ContractSelector, StorageDeposit, Weight, WeightV2 } from 'https://deno.land/x/pezkuwi/types/interfaces/index.ts';
6
- import type { Codec, TypeDef } from 'https://deno.land/x/pezkuwi/types/types/index.ts';
7
- import type { BN } from 'https://deno.land/x/pezkuwi/util/mod.ts';
8
- import type { HexString } from 'https://deno.land/x/pezkuwi/util/types.ts';
9
- import type { Abi } from './index.ts';
10
-
11
- export interface ContractBase<ApiType extends ApiTypes> {
12
- readonly abi: Abi;
13
- readonly api: ApiBase<ApiType>;
14
-
15
- getMessage: (name: string) => AbiMessage;
16
- messages: AbiMessage[];
17
- }
18
-
19
- export interface AbiParam {
20
- name: string;
21
- type: TypeDef;
22
- }
23
-
24
- export type AbiMessageParam = AbiParam
25
-
26
- export interface AbiEventParam extends AbiParam{
27
- indexed: boolean;
28
- }
29
-
30
- export interface AbiEvent {
31
- args: AbiEventParam[];
32
- docs: string[];
33
- fromU8a: (data: Uint8Array) => DecodedEvent;
34
- identifier: string;
35
- index: number;
36
- signatureTopic?: HexString | null;
37
- }
38
-
39
- export interface AbiMessage {
40
- args: AbiMessageParam[];
41
- docs: string[];
42
- fromU8a: (data: Uint8Array) => DecodedMessage;
43
- identifier: string;
44
- index: number;
45
- isConstructor?: boolean;
46
- isDefault?: boolean;
47
- isMutating?: boolean;
48
- isPayable?: boolean;
49
- method: string;
50
- path: string[];
51
- returnType?: TypeDef | null;
52
- selector: ContractSelector;
53
- toU8a: (params: unknown[]) => Uint8Array;
54
- }
55
-
56
- export type AbiConstructor = AbiMessage;
57
-
58
- export type InterfaceContractCalls = Record<string, Function>;
59
-
60
- export interface ContractCallOutcome {
61
- debugMessage: Text;
62
- gasConsumed: Weight;
63
- gasRequired: Weight;
64
- output: Codec | null;
65
- result: ContractExecResultResult;
66
- storageDeposit: StorageDeposit;
67
- }
68
-
69
- export interface DecodedEvent {
70
- args: Codec[];
71
- event: AbiEvent;
72
- }
73
-
74
- export interface DecodedMessage {
75
- args: Codec[];
76
- message: AbiMessage;
77
- }
78
-
79
- export interface ContractOptions {
80
- gasLimit?: bigint | string | number | BN | WeightV2;
81
- storageDepositLimit?: bigint | string | number | BN | null;
82
- value?: bigint | BN | string | number;
83
- }
84
-
85
- export interface BlueprintOptions extends ContractOptions {
86
- salt?: Uint8Array | string | null;
87
- }
88
-
89
- export interface WeightAll {
90
- v1Weight: BN;
91
- v2Weight: {
92
- refTime: BN;
93
- proofSize?: BN | undefined;
94
- };
95
- }
@@ -1,18 +0,0 @@
1
-
2
- import type { SubmittableResult } from 'https://deno.land/x/pezkuwi/api/mod.ts';
3
- import type { EventRecord } from 'https://deno.land/x/pezkuwi/types/interfaces/index.ts';
4
-
5
- type ContractEvents = 'CodeStored' | 'ContractEmitted' | 'ContractExecution' | 'Instantiated';
6
-
7
- export function applyOnEvent <T> (result: SubmittableResult, types: ContractEvents[], fn: (records: EventRecord[]) => T, isRevive: boolean): T | undefined {
8
- if (result.isInBlock || result.isFinalized) {
9
- const section = isRevive ? 'revive' : 'contracts';
10
- const records = result.filterRecords(section, types);
11
-
12
- if (records.length) {
13
- return fn(records);
14
- }
15
- }
16
-
17
- return undefined;
18
- }
@@ -1,31 +0,0 @@
1
- import type { ChainProperties, ContractMetadataV4, ContractMetadataV5, ContractMetadataV6, ContractProjectInfo, EventRecord } from '@pezkuwi/types/interfaces';
2
- import type { Codec, Registry, TypeDef } from '@pezkuwi/types/types';
3
- import type { AbiConstructor, AbiEvent, AbiMessage, DecodedEvent, DecodedMessage } from '../types.js';
4
- export type ContractMetadataSupported = ContractMetadataV4 | ContractMetadataV5 | ContractMetadataV6;
5
- export declare class Abi {
6
- #private;
7
- readonly events: AbiEvent[];
8
- readonly constructors: AbiConstructor[];
9
- readonly info: ContractProjectInfo;
10
- readonly json: Record<string, unknown>;
11
- readonly messages: AbiMessage[];
12
- readonly metadata: ContractMetadataSupported;
13
- readonly registry: Registry;
14
- readonly environment: Map<string, TypeDef | Codec>;
15
- readonly isRevive: boolean;
16
- constructor(abiJson: Record<string, unknown> | string, chainProperties?: ChainProperties);
17
- /**
18
- * Warning: Unstable API, bound to change
19
- */
20
- decodeEvent(record: EventRecord): DecodedEvent;
21
- /**
22
- * Warning: Unstable API, bound to change
23
- */
24
- decodeConstructor(data: Uint8Array): DecodedMessage;
25
- /**
26
- * Warning: Unstable API, bound to change
27
- */
28
- decodeMessage(data: Uint8Array): DecodedMessage;
29
- findConstructor(constructorOrId: AbiConstructor | string | number): AbiConstructor;
30
- findMessage(messageOrId: AbiMessage | string | number): AbiMessage;
31
- }
@@ -1,15 +0,0 @@
1
- import type { ContractMetadataV4, ContractMetadataV5, ContractMetadataV6 } from '@pezkuwi/types/interfaces';
2
- import type { Registry } from '@pezkuwi/types/types';
3
- import type { ContractMetadataSupported } from './index.js';
4
- export declare const enumVersions: readonly ["V6", "V5", "V4", "V3", "V2", "V1"];
5
- type Versions = typeof enumVersions[number] | 'V0';
6
- type Converter = (registry: Registry, vx: any) => ContractMetadataSupported;
7
- export declare function v6ToLatestCompatible(_registry: Registry, v6: ContractMetadataV6): ContractMetadataV6;
8
- export declare function v5ToLatestCompatible(_registry: Registry, v5: ContractMetadataV5): ContractMetadataV5;
9
- export declare function v4ToLatestCompatible(_registry: Registry, v4: ContractMetadataV4): ContractMetadataV4;
10
- export declare const v3ToLatestCompatible: (registry: Registry, input: import("@pezkuwi/types/interfaces").ContractMetadataV3) => ContractMetadataSupported;
11
- export declare const v2ToLatestCompatible: (registry: Registry, input: import("@pezkuwi/types/interfaces").ContractMetadataV2) => ContractMetadataSupported;
12
- export declare const v1ToLatestCompatible: (registry: Registry, input: import("@pezkuwi/types/interfaces").ContractMetadataV1) => ContractMetadataSupported;
13
- export declare const v0ToLatestCompatible: (registry: Registry, input: import("@pezkuwi/types/interfaces").ContractMetadataV0) => ContractMetadataSupported;
14
- export declare const convertVersions: [Versions, Converter][];
15
- export {};
@@ -1,3 +0,0 @@
1
- import type { ContractMetadataV0, ContractMetadataV1 } from '@pezkuwi/types/interfaces';
2
- import type { Registry } from '@pezkuwi/types/types';
3
- export declare function v0ToV1(registry: Registry, v0: ContractMetadataV0): ContractMetadataV1;
@@ -1,3 +0,0 @@
1
- import type { ContractMetadataV1, ContractMetadataV2 } from '@pezkuwi/types/interfaces';
2
- import type { Registry } from '@pezkuwi/types/types';
3
- export declare function v1ToV2(registry: Registry, v1: ContractMetadataV1): ContractMetadataV2;
@@ -1,3 +0,0 @@
1
- import type { ContractMetadataV2, ContractMetadataV3 } from '@pezkuwi/types/interfaces';
2
- import type { Registry } from '@pezkuwi/types/types';
3
- export declare function v2ToV3(registry: Registry, v2: ContractMetadataV2): ContractMetadataV3;
@@ -1,3 +0,0 @@
1
- import type { ContractMetadataV3, ContractMetadataV4 } from '@pezkuwi/types/interfaces';
2
- import type { Registry } from '@pezkuwi/types/types';
3
- export declare function v3ToV4(registry: Registry, v3: ContractMetadataV3): ContractMetadataV4;
@@ -1 +0,0 @@
1
- import '@pezkuwi/api-augment';
@@ -1,13 +0,0 @@
1
- import type { ApiBase } from '@pezkuwi/api/base';
2
- import type { ApiTypes, DecorateMethod } from '@pezkuwi/api/types';
3
- import type { Registry } from '@pezkuwi/types/types';
4
- import { Abi } from '../Abi/index.js';
5
- export declare abstract class Base<ApiType extends ApiTypes> {
6
- readonly abi: Abi;
7
- readonly api: ApiBase<ApiType>;
8
- protected readonly _decorateMethod: DecorateMethod<ApiType>;
9
- protected readonly _isWeightV1: boolean;
10
- protected readonly _isRevive: boolean;
11
- constructor(api: ApiBase<ApiType>, abi: string | Record<string, unknown> | Abi, decorateMethod: DecorateMethod<ApiType>);
12
- get registry(): Registry;
13
- }
@@ -1,24 +0,0 @@
1
- import type { ApiBase } from '@pezkuwi/api/base';
2
- import type { ApiTypes, DecorateMethod } from '@pezkuwi/api/types';
3
- import type { Hash } from '@pezkuwi/types/interfaces';
4
- import type { ISubmittableResult } from '@pezkuwi/types/types';
5
- import type { Abi } from '../Abi/index.js';
6
- import type { MapConstructorExec } from './types.js';
7
- import { SubmittableResult } from '@pezkuwi/api';
8
- import { Base } from './Base.js';
9
- import { Contract } from './Contract.js';
10
- export type BlueprintConstructor<ApiType extends ApiTypes> = new (api: ApiBase<ApiType>, abi: string | Record<string, unknown> | Abi, codeHash: string | Hash | Uint8Array) => Blueprint<ApiType>;
11
- export declare class BlueprintSubmittableResult<ApiType extends ApiTypes> extends SubmittableResult {
12
- readonly contract?: Contract<ApiType> | undefined;
13
- constructor(result: ISubmittableResult, contract?: Contract<ApiType>);
14
- }
15
- export declare class Blueprint<ApiType extends ApiTypes> extends Base<ApiType> {
16
- #private;
17
- /**
18
- * @description The on-chain code hash for this blueprint
19
- */
20
- readonly codeHash: Hash;
21
- constructor(api: ApiBase<ApiType>, abi: string | Record<string, unknown> | Abi, codeHash: string | Hash | Uint8Array, decorateMethod: DecorateMethod<ApiType>);
22
- get tx(): MapConstructorExec<ApiType>;
23
- }
24
- export declare function extendBlueprint<ApiType extends ApiTypes>(type: ApiType, decorateMethod: DecorateMethod<ApiType>): BlueprintConstructor<ApiType>;