@silvana-one/nft 0.1.0

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 (236) hide show
  1. package/README.md +1400 -0
  2. package/dist/node/admin/advanced.d.ts +469 -0
  3. package/dist/node/admin/advanced.js +525 -0
  4. package/dist/node/admin/advanced.js.map +1 -0
  5. package/dist/node/admin/index.d.ts +1 -0
  6. package/dist/node/admin/index.js +2 -0
  7. package/dist/node/admin/index.js.map +1 -0
  8. package/dist/node/contracts/admin.d.ts +140 -0
  9. package/dist/node/contracts/admin.js +336 -0
  10. package/dist/node/contracts/admin.js.map +1 -0
  11. package/dist/node/contracts/collection.d.ts +551 -0
  12. package/dist/node/contracts/collection.js +1049 -0
  13. package/dist/node/contracts/collection.js.map +1 -0
  14. package/dist/node/contracts/index.d.ts +3 -0
  15. package/dist/node/contracts/index.js +4 -0
  16. package/dist/node/contracts/index.js.map +1 -0
  17. package/dist/node/contracts/nft.d.ts +76 -0
  18. package/dist/node/contracts/nft.js +329 -0
  19. package/dist/node/contracts/nft.js.map +1 -0
  20. package/dist/node/contracts.d.ts +709 -0
  21. package/dist/node/contracts.js +61 -0
  22. package/dist/node/contracts.js.map +1 -0
  23. package/dist/node/index.cjs +5032 -0
  24. package/dist/node/index.d.ts +8 -0
  25. package/dist/node/index.js +9 -0
  26. package/dist/node/index.js.map +1 -0
  27. package/dist/node/interfaces/admin.d.ts +102 -0
  28. package/dist/node/interfaces/admin.js +2 -0
  29. package/dist/node/interfaces/admin.js.map +1 -0
  30. package/dist/node/interfaces/approval.d.ts +57 -0
  31. package/dist/node/interfaces/approval.js +62 -0
  32. package/dist/node/interfaces/approval.js.map +1 -0
  33. package/dist/node/interfaces/collection.d.ts +57 -0
  34. package/dist/node/interfaces/collection.js +2 -0
  35. package/dist/node/interfaces/collection.js.map +1 -0
  36. package/dist/node/interfaces/encoding.d.ts +24 -0
  37. package/dist/node/interfaces/encoding.js +32 -0
  38. package/dist/node/interfaces/encoding.js.map +1 -0
  39. package/dist/node/interfaces/events.d.ts +833 -0
  40. package/dist/node/interfaces/events.js +106 -0
  41. package/dist/node/interfaces/events.js.map +1 -0
  42. package/dist/node/interfaces/index.d.ts +10 -0
  43. package/dist/node/interfaces/index.js +11 -0
  44. package/dist/node/interfaces/index.js.map +1 -0
  45. package/dist/node/interfaces/ownable.d.ts +94 -0
  46. package/dist/node/interfaces/ownable.js +12 -0
  47. package/dist/node/interfaces/ownable.js.map +1 -0
  48. package/dist/node/interfaces/owner.d.ts +61 -0
  49. package/dist/node/interfaces/owner.js +101 -0
  50. package/dist/node/interfaces/owner.js.map +1 -0
  51. package/dist/node/interfaces/pausable.d.ts +74 -0
  52. package/dist/node/interfaces/pausable.js +14 -0
  53. package/dist/node/interfaces/pausable.js.map +1 -0
  54. package/dist/node/interfaces/types.d.ts +2297 -0
  55. package/dist/node/interfaces/types.js +507 -0
  56. package/dist/node/interfaces/types.js.map +1 -0
  57. package/dist/node/interfaces/update.d.ts +53 -0
  58. package/dist/node/interfaces/update.js +58 -0
  59. package/dist/node/interfaces/update.js.map +1 -0
  60. package/dist/node/marketplace/auction.d.ts +775 -0
  61. package/dist/node/marketplace/auction.js +430 -0
  62. package/dist/node/marketplace/auction.js.map +1 -0
  63. package/dist/node/marketplace/bid.d.ts +254 -0
  64. package/dist/node/marketplace/bid.js +260 -0
  65. package/dist/node/marketplace/bid.js.map +1 -0
  66. package/dist/node/marketplace/index.d.ts +5 -0
  67. package/dist/node/marketplace/index.js +6 -0
  68. package/dist/node/marketplace/index.js.map +1 -0
  69. package/dist/node/marketplace/nft-shares.d.ts +1083 -0
  70. package/dist/node/marketplace/nft-shares.js +398 -0
  71. package/dist/node/marketplace/nft-shares.js.map +1 -0
  72. package/dist/node/marketplace/offer.d.ts +192 -0
  73. package/dist/node/marketplace/offer.js +132 -0
  74. package/dist/node/marketplace/offer.js.map +1 -0
  75. package/dist/node/marketplace/types.d.ts +374 -0
  76. package/dist/node/marketplace/types.js +33 -0
  77. package/dist/node/marketplace/types.js.map +1 -0
  78. package/dist/node/metadata/index.d.ts +3 -0
  79. package/dist/node/metadata/index.js +4 -0
  80. package/dist/node/metadata/index.js.map +1 -0
  81. package/dist/node/metadata/metadata.d.ts +337 -0
  82. package/dist/node/metadata/metadata.js +439 -0
  83. package/dist/node/metadata/metadata.js.map +1 -0
  84. package/dist/node/metadata/text.d.ts +44 -0
  85. package/dist/node/metadata/text.js +42 -0
  86. package/dist/node/metadata/text.js.map +1 -0
  87. package/dist/node/metadata/tree.d.ts +75 -0
  88. package/dist/node/metadata/tree.js +85 -0
  89. package/dist/node/metadata/tree.js.map +1 -0
  90. package/dist/node/vk.d.ts +42 -0
  91. package/dist/node/vk.js +45 -0
  92. package/dist/node/vk.js.map +1 -0
  93. package/dist/node/zkprogram-example/game.d.ts +76 -0
  94. package/dist/node/zkprogram-example/game.js +108 -0
  95. package/dist/node/zkprogram-example/game.js.map +1 -0
  96. package/dist/node/zkprogram-example/index.d.ts +2 -0
  97. package/dist/node/zkprogram-example/index.js +3 -0
  98. package/dist/node/zkprogram-example/index.js.map +1 -0
  99. package/dist/node/zkprogram-example/update.d.ts +76 -0
  100. package/dist/node/zkprogram-example/update.js +85 -0
  101. package/dist/node/zkprogram-example/update.js.map +1 -0
  102. package/dist/tsconfig.tsbuildinfo +1 -0
  103. package/dist/tsconfig.web.tsbuildinfo +1 -0
  104. package/dist/web/admin/advanced.d.ts +469 -0
  105. package/dist/web/admin/advanced.js +525 -0
  106. package/dist/web/admin/advanced.js.map +1 -0
  107. package/dist/web/admin/index.d.ts +1 -0
  108. package/dist/web/admin/index.js +2 -0
  109. package/dist/web/admin/index.js.map +1 -0
  110. package/dist/web/contracts/admin.d.ts +140 -0
  111. package/dist/web/contracts/admin.js +336 -0
  112. package/dist/web/contracts/admin.js.map +1 -0
  113. package/dist/web/contracts/collection.d.ts +551 -0
  114. package/dist/web/contracts/collection.js +1049 -0
  115. package/dist/web/contracts/collection.js.map +1 -0
  116. package/dist/web/contracts/index.d.ts +3 -0
  117. package/dist/web/contracts/index.js +4 -0
  118. package/dist/web/contracts/index.js.map +1 -0
  119. package/dist/web/contracts/nft.d.ts +76 -0
  120. package/dist/web/contracts/nft.js +329 -0
  121. package/dist/web/contracts/nft.js.map +1 -0
  122. package/dist/web/contracts.d.ts +709 -0
  123. package/dist/web/contracts.js +61 -0
  124. package/dist/web/contracts.js.map +1 -0
  125. package/dist/web/index.d.ts +8 -0
  126. package/dist/web/index.js +9 -0
  127. package/dist/web/index.js.map +1 -0
  128. package/dist/web/interfaces/admin.d.ts +102 -0
  129. package/dist/web/interfaces/admin.js +2 -0
  130. package/dist/web/interfaces/admin.js.map +1 -0
  131. package/dist/web/interfaces/approval.d.ts +57 -0
  132. package/dist/web/interfaces/approval.js +62 -0
  133. package/dist/web/interfaces/approval.js.map +1 -0
  134. package/dist/web/interfaces/collection.d.ts +57 -0
  135. package/dist/web/interfaces/collection.js +2 -0
  136. package/dist/web/interfaces/collection.js.map +1 -0
  137. package/dist/web/interfaces/encoding.d.ts +24 -0
  138. package/dist/web/interfaces/encoding.js +32 -0
  139. package/dist/web/interfaces/encoding.js.map +1 -0
  140. package/dist/web/interfaces/events.d.ts +833 -0
  141. package/dist/web/interfaces/events.js +106 -0
  142. package/dist/web/interfaces/events.js.map +1 -0
  143. package/dist/web/interfaces/index.d.ts +10 -0
  144. package/dist/web/interfaces/index.js +11 -0
  145. package/dist/web/interfaces/index.js.map +1 -0
  146. package/dist/web/interfaces/ownable.d.ts +94 -0
  147. package/dist/web/interfaces/ownable.js +12 -0
  148. package/dist/web/interfaces/ownable.js.map +1 -0
  149. package/dist/web/interfaces/owner.d.ts +61 -0
  150. package/dist/web/interfaces/owner.js +101 -0
  151. package/dist/web/interfaces/owner.js.map +1 -0
  152. package/dist/web/interfaces/pausable.d.ts +74 -0
  153. package/dist/web/interfaces/pausable.js +14 -0
  154. package/dist/web/interfaces/pausable.js.map +1 -0
  155. package/dist/web/interfaces/types.d.ts +2297 -0
  156. package/dist/web/interfaces/types.js +507 -0
  157. package/dist/web/interfaces/types.js.map +1 -0
  158. package/dist/web/interfaces/update.d.ts +53 -0
  159. package/dist/web/interfaces/update.js +58 -0
  160. package/dist/web/interfaces/update.js.map +1 -0
  161. package/dist/web/marketplace/auction.d.ts +775 -0
  162. package/dist/web/marketplace/auction.js +430 -0
  163. package/dist/web/marketplace/auction.js.map +1 -0
  164. package/dist/web/marketplace/bid.d.ts +254 -0
  165. package/dist/web/marketplace/bid.js +260 -0
  166. package/dist/web/marketplace/bid.js.map +1 -0
  167. package/dist/web/marketplace/index.d.ts +5 -0
  168. package/dist/web/marketplace/index.js +6 -0
  169. package/dist/web/marketplace/index.js.map +1 -0
  170. package/dist/web/marketplace/nft-shares.d.ts +1083 -0
  171. package/dist/web/marketplace/nft-shares.js +398 -0
  172. package/dist/web/marketplace/nft-shares.js.map +1 -0
  173. package/dist/web/marketplace/offer.d.ts +192 -0
  174. package/dist/web/marketplace/offer.js +132 -0
  175. package/dist/web/marketplace/offer.js.map +1 -0
  176. package/dist/web/marketplace/types.d.ts +374 -0
  177. package/dist/web/marketplace/types.js +33 -0
  178. package/dist/web/marketplace/types.js.map +1 -0
  179. package/dist/web/metadata/index.d.ts +3 -0
  180. package/dist/web/metadata/index.js +4 -0
  181. package/dist/web/metadata/index.js.map +1 -0
  182. package/dist/web/metadata/metadata.d.ts +337 -0
  183. package/dist/web/metadata/metadata.js +439 -0
  184. package/dist/web/metadata/metadata.js.map +1 -0
  185. package/dist/web/metadata/text.d.ts +44 -0
  186. package/dist/web/metadata/text.js +42 -0
  187. package/dist/web/metadata/text.js.map +1 -0
  188. package/dist/web/metadata/tree.d.ts +75 -0
  189. package/dist/web/metadata/tree.js +85 -0
  190. package/dist/web/metadata/tree.js.map +1 -0
  191. package/dist/web/vk.d.ts +42 -0
  192. package/dist/web/vk.js +45 -0
  193. package/dist/web/vk.js.map +1 -0
  194. package/dist/web/zkprogram-example/game.d.ts +76 -0
  195. package/dist/web/zkprogram-example/game.js +108 -0
  196. package/dist/web/zkprogram-example/game.js.map +1 -0
  197. package/dist/web/zkprogram-example/index.d.ts +2 -0
  198. package/dist/web/zkprogram-example/index.js +3 -0
  199. package/dist/web/zkprogram-example/index.js.map +1 -0
  200. package/dist/web/zkprogram-example/update.d.ts +76 -0
  201. package/dist/web/zkprogram-example/update.js +85 -0
  202. package/dist/web/zkprogram-example/update.js.map +1 -0
  203. package/package.json +65 -0
  204. package/src/admin/advanced.ts +601 -0
  205. package/src/admin/index.ts +1 -0
  206. package/src/contracts/admin.ts +301 -0
  207. package/src/contracts/collection.ts +1172 -0
  208. package/src/contracts/index.ts +3 -0
  209. package/src/contracts/nft.ts +344 -0
  210. package/src/contracts.ts +107 -0
  211. package/src/index.ts +8 -0
  212. package/src/interfaces/admin.ts +127 -0
  213. package/src/interfaces/approval.ts +99 -0
  214. package/src/interfaces/collection.ts +68 -0
  215. package/src/interfaces/encoding.ts +32 -0
  216. package/src/interfaces/events.ts +115 -0
  217. package/src/interfaces/index.ts +10 -0
  218. package/src/interfaces/ownable.ts +32 -0
  219. package/src/interfaces/owner.ts +143 -0
  220. package/src/interfaces/pausable.ts +41 -0
  221. package/src/interfaces/types.ts +623 -0
  222. package/src/interfaces/update.ts +104 -0
  223. package/src/marketplace/auction.ts +527 -0
  224. package/src/marketplace/bid.ts +294 -0
  225. package/src/marketplace/index.ts +5 -0
  226. package/src/marketplace/nft-shares.ts +388 -0
  227. package/src/marketplace/offer.ts +153 -0
  228. package/src/marketplace/types.ts +33 -0
  229. package/src/metadata/index.ts +3 -0
  230. package/src/metadata/metadata.ts +603 -0
  231. package/src/metadata/text.ts +60 -0
  232. package/src/metadata/tree.ts +128 -0
  233. package/src/vk.ts +64 -0
  234. package/src/zkprogram-example/game.ts +136 -0
  235. package/src/zkprogram-example/index.ts +2 -0
  236. package/src/zkprogram-example/update.ts +98 -0
@@ -0,0 +1,775 @@
1
+ import { AccountUpdate, DeployArgs, PublicKey, State, UInt64, SmartContract, Bool, UInt32, Field } from "o1js";
2
+ import { TransferEvent, NFTCollectionContractConstructor, NFTCollectionBase, TransferExtendedParams, TransferParams } from "../interfaces/index.js";
3
+ declare const AuctionPacked_base: (new (value: {
4
+ ownerX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
5
+ collectionX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
6
+ nftX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
7
+ auctioneerX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
8
+ bidderX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
9
+ data: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
10
+ }) => {
11
+ ownerX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
12
+ collectionX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
13
+ nftX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
14
+ auctioneerX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
15
+ bidderX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
16
+ data: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
17
+ }) & {
18
+ _isStruct: true;
19
+ } & Omit<import("node_modules/o1js/dist/node/lib/provable/types/provable-intf.js").Provable<{
20
+ ownerX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
21
+ collectionX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
22
+ nftX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
23
+ auctioneerX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
24
+ bidderX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
25
+ data: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
26
+ }, {
27
+ ownerX: bigint;
28
+ collectionX: bigint;
29
+ nftX: bigint;
30
+ auctioneerX: bigint;
31
+ bidderX: bigint;
32
+ data: bigint;
33
+ }>, "fromFields"> & {
34
+ fromFields: (fields: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[]) => {
35
+ ownerX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
36
+ collectionX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
37
+ nftX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
38
+ auctioneerX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
39
+ bidderX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
40
+ data: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
41
+ };
42
+ } & {
43
+ fromValue: (value: {
44
+ ownerX: string | number | bigint | import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
45
+ collectionX: string | number | bigint | import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
46
+ nftX: string | number | bigint | import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
47
+ auctioneerX: string | number | bigint | import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
48
+ bidderX: string | number | bigint | import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
49
+ data: string | number | bigint | import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
50
+ }) => {
51
+ ownerX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
52
+ collectionX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
53
+ nftX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
54
+ auctioneerX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
55
+ bidderX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
56
+ data: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
57
+ };
58
+ toInput: (x: {
59
+ ownerX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
60
+ collectionX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
61
+ nftX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
62
+ auctioneerX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
63
+ bidderX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
64
+ data: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
65
+ }) => {
66
+ fields?: Field[] | undefined;
67
+ packed?: [Field, number][] | undefined;
68
+ };
69
+ toJSON: (x: {
70
+ ownerX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
71
+ collectionX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
72
+ nftX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
73
+ auctioneerX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
74
+ bidderX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
75
+ data: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
76
+ }) => {
77
+ ownerX: string;
78
+ collectionX: string;
79
+ nftX: string;
80
+ auctioneerX: string;
81
+ bidderX: string;
82
+ data: string;
83
+ };
84
+ fromJSON: (x: {
85
+ ownerX: string;
86
+ collectionX: string;
87
+ nftX: string;
88
+ auctioneerX: string;
89
+ bidderX: string;
90
+ data: string;
91
+ }) => {
92
+ ownerX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
93
+ collectionX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
94
+ nftX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
95
+ auctioneerX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
96
+ bidderX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
97
+ data: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
98
+ };
99
+ empty: () => {
100
+ ownerX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
101
+ collectionX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
102
+ nftX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
103
+ auctioneerX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
104
+ bidderX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
105
+ data: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
106
+ };
107
+ };
108
+ export declare class AuctionPacked extends AuctionPacked_base {
109
+ }
110
+ declare const Auction_base: (new (value: {
111
+ owner: PublicKey;
112
+ collection: PublicKey;
113
+ nft: PublicKey;
114
+ auctioneer: PublicKey;
115
+ bidder: PublicKey;
116
+ minimumPrice: UInt64;
117
+ transferFee: UInt64;
118
+ saleFee: UInt32;
119
+ auctionEndTime: UInt32;
120
+ withdrawPeriod: UInt32;
121
+ isOwnerPaid: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
122
+ isNFTtransferred: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
123
+ isNFTwithdrawn: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
124
+ }) => {
125
+ owner: PublicKey;
126
+ collection: PublicKey;
127
+ nft: PublicKey;
128
+ auctioneer: PublicKey;
129
+ bidder: PublicKey;
130
+ minimumPrice: UInt64;
131
+ transferFee: UInt64;
132
+ saleFee: UInt32;
133
+ auctionEndTime: UInt32;
134
+ withdrawPeriod: UInt32;
135
+ isOwnerPaid: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
136
+ isNFTtransferred: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
137
+ isNFTwithdrawn: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
138
+ }) & {
139
+ _isStruct: true;
140
+ } & Omit<import("node_modules/o1js/dist/node/lib/provable/types/provable-intf.js").Provable<{
141
+ owner: PublicKey;
142
+ collection: PublicKey;
143
+ nft: PublicKey;
144
+ auctioneer: PublicKey;
145
+ bidder: PublicKey;
146
+ minimumPrice: UInt64;
147
+ transferFee: UInt64;
148
+ saleFee: UInt32;
149
+ auctionEndTime: UInt32;
150
+ withdrawPeriod: UInt32;
151
+ isOwnerPaid: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
152
+ isNFTtransferred: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
153
+ isNFTwithdrawn: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
154
+ }, {
155
+ owner: {
156
+ x: bigint;
157
+ isOdd: boolean;
158
+ };
159
+ collection: {
160
+ x: bigint;
161
+ isOdd: boolean;
162
+ };
163
+ nft: {
164
+ x: bigint;
165
+ isOdd: boolean;
166
+ };
167
+ auctioneer: {
168
+ x: bigint;
169
+ isOdd: boolean;
170
+ };
171
+ bidder: {
172
+ x: bigint;
173
+ isOdd: boolean;
174
+ };
175
+ minimumPrice: bigint;
176
+ transferFee: bigint;
177
+ saleFee: bigint;
178
+ auctionEndTime: bigint;
179
+ withdrawPeriod: bigint;
180
+ isOwnerPaid: boolean;
181
+ isNFTtransferred: boolean;
182
+ isNFTwithdrawn: boolean;
183
+ }>, "fromFields"> & {
184
+ fromFields: (fields: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[]) => {
185
+ owner: PublicKey;
186
+ collection: PublicKey;
187
+ nft: PublicKey;
188
+ auctioneer: PublicKey;
189
+ bidder: PublicKey;
190
+ minimumPrice: UInt64;
191
+ transferFee: UInt64;
192
+ saleFee: UInt32;
193
+ auctionEndTime: UInt32;
194
+ withdrawPeriod: UInt32;
195
+ isOwnerPaid: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
196
+ isNFTtransferred: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
197
+ isNFTwithdrawn: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
198
+ };
199
+ } & {
200
+ fromValue: (value: {
201
+ owner: PublicKey | {
202
+ x: Field | bigint;
203
+ isOdd: Bool | boolean;
204
+ };
205
+ collection: PublicKey | {
206
+ x: Field | bigint;
207
+ isOdd: Bool | boolean;
208
+ };
209
+ nft: PublicKey | {
210
+ x: Field | bigint;
211
+ isOdd: Bool | boolean;
212
+ };
213
+ auctioneer: PublicKey | {
214
+ x: Field | bigint;
215
+ isOdd: Bool | boolean;
216
+ };
217
+ bidder: PublicKey | {
218
+ x: Field | bigint;
219
+ isOdd: Bool | boolean;
220
+ };
221
+ minimumPrice: bigint | UInt64;
222
+ transferFee: bigint | UInt64;
223
+ saleFee: bigint | UInt32;
224
+ auctionEndTime: bigint | UInt32;
225
+ withdrawPeriod: bigint | UInt32;
226
+ isOwnerPaid: boolean | import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
227
+ isNFTtransferred: boolean | import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
228
+ isNFTwithdrawn: boolean | import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
229
+ }) => {
230
+ owner: PublicKey;
231
+ collection: PublicKey;
232
+ nft: PublicKey;
233
+ auctioneer: PublicKey;
234
+ bidder: PublicKey;
235
+ minimumPrice: UInt64;
236
+ transferFee: UInt64;
237
+ saleFee: UInt32;
238
+ auctionEndTime: UInt32;
239
+ withdrawPeriod: UInt32;
240
+ isOwnerPaid: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
241
+ isNFTtransferred: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
242
+ isNFTwithdrawn: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
243
+ };
244
+ toInput: (x: {
245
+ owner: PublicKey;
246
+ collection: PublicKey;
247
+ nft: PublicKey;
248
+ auctioneer: PublicKey;
249
+ bidder: PublicKey;
250
+ minimumPrice: UInt64;
251
+ transferFee: UInt64;
252
+ saleFee: UInt32;
253
+ auctionEndTime: UInt32;
254
+ withdrawPeriod: UInt32;
255
+ isOwnerPaid: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
256
+ isNFTtransferred: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
257
+ isNFTwithdrawn: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
258
+ }) => {
259
+ fields?: Field[] | undefined;
260
+ packed?: [Field, number][] | undefined;
261
+ };
262
+ toJSON: (x: {
263
+ owner: PublicKey;
264
+ collection: PublicKey;
265
+ nft: PublicKey;
266
+ auctioneer: PublicKey;
267
+ bidder: PublicKey;
268
+ minimumPrice: UInt64;
269
+ transferFee: UInt64;
270
+ saleFee: UInt32;
271
+ auctionEndTime: UInt32;
272
+ withdrawPeriod: UInt32;
273
+ isOwnerPaid: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
274
+ isNFTtransferred: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
275
+ isNFTwithdrawn: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
276
+ }) => {
277
+ owner: string;
278
+ collection: string;
279
+ nft: string;
280
+ auctioneer: string;
281
+ bidder: string;
282
+ minimumPrice: string;
283
+ transferFee: string;
284
+ saleFee: string;
285
+ auctionEndTime: string;
286
+ withdrawPeriod: string;
287
+ isOwnerPaid: boolean;
288
+ isNFTtransferred: boolean;
289
+ isNFTwithdrawn: boolean;
290
+ };
291
+ fromJSON: (x: {
292
+ owner: string;
293
+ collection: string;
294
+ nft: string;
295
+ auctioneer: string;
296
+ bidder: string;
297
+ minimumPrice: string;
298
+ transferFee: string;
299
+ saleFee: string;
300
+ auctionEndTime: string;
301
+ withdrawPeriod: string;
302
+ isOwnerPaid: boolean;
303
+ isNFTtransferred: boolean;
304
+ isNFTwithdrawn: boolean;
305
+ }) => {
306
+ owner: PublicKey;
307
+ collection: PublicKey;
308
+ nft: PublicKey;
309
+ auctioneer: PublicKey;
310
+ bidder: PublicKey;
311
+ minimumPrice: UInt64;
312
+ transferFee: UInt64;
313
+ saleFee: UInt32;
314
+ auctionEndTime: UInt32;
315
+ withdrawPeriod: UInt32;
316
+ isOwnerPaid: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
317
+ isNFTtransferred: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
318
+ isNFTwithdrawn: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
319
+ };
320
+ empty: () => {
321
+ owner: PublicKey;
322
+ collection: PublicKey;
323
+ nft: PublicKey;
324
+ auctioneer: PublicKey;
325
+ bidder: PublicKey;
326
+ minimumPrice: UInt64;
327
+ transferFee: UInt64;
328
+ saleFee: UInt32;
329
+ auctionEndTime: UInt32;
330
+ withdrawPeriod: UInt32;
331
+ isOwnerPaid: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
332
+ isNFTtransferred: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
333
+ isNFTwithdrawn: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
334
+ };
335
+ };
336
+ export declare class Auction extends Auction_base {
337
+ pack(): AuctionPacked;
338
+ static unpack(packed: AuctionPacked): Auction;
339
+ }
340
+ declare const AuctionState_base: (new (value: {
341
+ bidAmount: UInt64;
342
+ auction: Auction;
343
+ settled: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
344
+ }) => {
345
+ bidAmount: UInt64;
346
+ auction: Auction;
347
+ settled: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
348
+ }) & {
349
+ _isStruct: true;
350
+ } & Omit<import("node_modules/o1js/dist/node/lib/provable/types/provable-intf.js").Provable<{
351
+ bidAmount: UInt64;
352
+ auction: Auction;
353
+ settled: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
354
+ }, {
355
+ bidAmount: bigint;
356
+ auction: {
357
+ owner: {
358
+ x: bigint;
359
+ isOdd: boolean;
360
+ };
361
+ collection: {
362
+ x: bigint;
363
+ isOdd: boolean;
364
+ };
365
+ nft: {
366
+ x: bigint;
367
+ isOdd: boolean;
368
+ };
369
+ auctioneer: {
370
+ x: bigint;
371
+ isOdd: boolean;
372
+ };
373
+ bidder: {
374
+ x: bigint;
375
+ isOdd: boolean;
376
+ };
377
+ minimumPrice: bigint;
378
+ transferFee: bigint;
379
+ saleFee: bigint;
380
+ auctionEndTime: bigint;
381
+ withdrawPeriod: bigint;
382
+ isOwnerPaid: boolean;
383
+ isNFTtransferred: boolean;
384
+ isNFTwithdrawn: boolean;
385
+ };
386
+ settled: boolean;
387
+ }>, "fromFields"> & {
388
+ fromFields: (fields: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[]) => {
389
+ bidAmount: UInt64;
390
+ auction: Auction;
391
+ settled: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
392
+ };
393
+ } & {
394
+ fromValue: (value: {
395
+ bidAmount: bigint | UInt64;
396
+ auction: Auction | {
397
+ owner: PublicKey | {
398
+ x: Field | bigint;
399
+ isOdd: Bool | boolean;
400
+ };
401
+ collection: PublicKey | {
402
+ x: Field | bigint;
403
+ isOdd: Bool | boolean;
404
+ };
405
+ nft: PublicKey | {
406
+ x: Field | bigint;
407
+ isOdd: Bool | boolean;
408
+ };
409
+ auctioneer: PublicKey | {
410
+ x: Field | bigint;
411
+ isOdd: Bool | boolean;
412
+ };
413
+ bidder: PublicKey | {
414
+ x: Field | bigint;
415
+ isOdd: Bool | boolean;
416
+ };
417
+ minimumPrice: bigint | UInt64;
418
+ transferFee: bigint | UInt64;
419
+ saleFee: bigint | UInt32;
420
+ auctionEndTime: bigint | UInt32;
421
+ withdrawPeriod: bigint | UInt32;
422
+ isOwnerPaid: boolean | import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
423
+ isNFTtransferred: boolean | import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
424
+ isNFTwithdrawn: boolean | import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
425
+ };
426
+ settled: boolean | import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
427
+ }) => {
428
+ bidAmount: UInt64;
429
+ auction: Auction;
430
+ settled: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
431
+ };
432
+ toInput: (x: {
433
+ bidAmount: UInt64;
434
+ auction: Auction;
435
+ settled: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
436
+ }) => {
437
+ fields?: Field[] | undefined;
438
+ packed?: [Field, number][] | undefined;
439
+ };
440
+ toJSON: (x: {
441
+ bidAmount: UInt64;
442
+ auction: Auction;
443
+ settled: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
444
+ }) => {
445
+ bidAmount: string;
446
+ auction: {
447
+ owner: string;
448
+ collection: string;
449
+ nft: string;
450
+ auctioneer: string;
451
+ bidder: string;
452
+ minimumPrice: string;
453
+ transferFee: string;
454
+ saleFee: string;
455
+ auctionEndTime: string;
456
+ withdrawPeriod: string;
457
+ isOwnerPaid: boolean;
458
+ isNFTtransferred: boolean;
459
+ isNFTwithdrawn: boolean;
460
+ };
461
+ settled: boolean;
462
+ };
463
+ fromJSON: (x: {
464
+ bidAmount: string;
465
+ auction: {
466
+ owner: string;
467
+ collection: string;
468
+ nft: string;
469
+ auctioneer: string;
470
+ bidder: string;
471
+ minimumPrice: string;
472
+ transferFee: string;
473
+ saleFee: string;
474
+ auctionEndTime: string;
475
+ withdrawPeriod: string;
476
+ isOwnerPaid: boolean;
477
+ isNFTtransferred: boolean;
478
+ isNFTwithdrawn: boolean;
479
+ };
480
+ settled: boolean;
481
+ }) => {
482
+ bidAmount: UInt64;
483
+ auction: Auction;
484
+ settled: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
485
+ };
486
+ empty: () => {
487
+ bidAmount: UInt64;
488
+ auction: Auction;
489
+ settled: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
490
+ };
491
+ };
492
+ export declare class AuctionState extends AuctionState_base {
493
+ }
494
+ export interface NonFungibleTokenAuctionContractDeployProps extends Exclude<DeployArgs, undefined> {
495
+ /** The minimum price. */
496
+ minimumPrice: UInt64;
497
+ /** The auction end time. */
498
+ auctionEndTime: UInt32;
499
+ /** The collection of the NFT. */
500
+ collection: PublicKey;
501
+ /** The address of the NFT. */
502
+ nft: PublicKey;
503
+ /** The owner of the NFT. */
504
+ owner: PublicKey;
505
+ /** The auctioneer of the NFT. */
506
+ auctioneer: PublicKey;
507
+ /** The transfer fee. */
508
+ transferFee: UInt64;
509
+ /** The sale fee. */
510
+ saleFee: UInt32;
511
+ /** The withdraw period. */
512
+ withdrawPeriod: UInt32;
513
+ }
514
+ declare const AuctionBidEvent_base: (new (value: {
515
+ bidder: PublicKey;
516
+ price: UInt64;
517
+ }) => {
518
+ bidder: PublicKey;
519
+ price: UInt64;
520
+ }) & {
521
+ _isStruct: true;
522
+ } & Omit<import("node_modules/o1js/dist/node/lib/provable/types/provable-intf.js").Provable<{
523
+ bidder: PublicKey;
524
+ price: UInt64;
525
+ }, {
526
+ bidder: {
527
+ x: bigint;
528
+ isOdd: boolean;
529
+ };
530
+ price: bigint;
531
+ }>, "fromFields"> & {
532
+ fromFields: (fields: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[]) => {
533
+ bidder: PublicKey;
534
+ price: UInt64;
535
+ };
536
+ } & {
537
+ fromValue: (value: {
538
+ bidder: PublicKey | {
539
+ x: Field | bigint;
540
+ isOdd: Bool | boolean;
541
+ };
542
+ price: bigint | UInt64;
543
+ }) => {
544
+ bidder: PublicKey;
545
+ price: UInt64;
546
+ };
547
+ toInput: (x: {
548
+ bidder: PublicKey;
549
+ price: UInt64;
550
+ }) => {
551
+ fields?: Field[] | undefined;
552
+ packed?: [Field, number][] | undefined;
553
+ };
554
+ toJSON: (x: {
555
+ bidder: PublicKey;
556
+ price: UInt64;
557
+ }) => {
558
+ bidder: string;
559
+ price: string;
560
+ };
561
+ fromJSON: (x: {
562
+ bidder: string;
563
+ price: string;
564
+ }) => {
565
+ bidder: PublicKey;
566
+ price: UInt64;
567
+ };
568
+ empty: () => {
569
+ bidder: PublicKey;
570
+ price: UInt64;
571
+ };
572
+ };
573
+ export declare class AuctionBidEvent extends AuctionBidEvent_base {
574
+ }
575
+ /**
576
+ * Creates a new NFT Collection Contract class.
577
+ *
578
+ * @param params - Constructor parameters including admin and upgrade contracts, and network ID.
579
+ * @returns The Collection class extending TokenContract and implementing required interfaces.
580
+ */
581
+ export declare function AuctionFactory(params: {
582
+ collectionContract: () => NFTCollectionContractConstructor;
583
+ }): {
584
+ new (address: PublicKey, tokenId?: Field): {
585
+ auctionData: State<AuctionPacked>;
586
+ bidAmount: State<UInt64>;
587
+ settled: State<import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool>;
588
+ deploy(args: NonFungibleTokenAuctionContractDeployProps): Promise<void>;
589
+ events: {
590
+ bid: typeof AuctionBidEvent;
591
+ settleAuction: typeof TransferParams;
592
+ canTransfer: typeof TransferEvent;
593
+ settlePayment: typeof UInt64;
594
+ settleAuctioneerPayment: typeof UInt64;
595
+ withdraw: typeof UInt64;
596
+ };
597
+ getCollectionContract(address: PublicKey): NFTCollectionBase;
598
+ calculateSaleFee(params: {
599
+ price: UInt64;
600
+ saleFee: UInt32;
601
+ transferFee: UInt64;
602
+ }): UInt64;
603
+ bid(price: UInt64, bidder: PublicKey): Promise<Auction>;
604
+ getAuctionState(): Promise<AuctionState>;
605
+ settleAuction(): Promise<void>;
606
+ withdrawNFT(): Promise<void>;
607
+ canTransfer(params: TransferExtendedParams): Promise<Bool>;
608
+ settlePayment(): Promise<void>;
609
+ settleAuctioneerPayment(amount: UInt64): Promise<void>;
610
+ /**
611
+ * Withdraw the deposit from the auction
612
+ * in case the auction is not settled during the WITHDRAW_PERIOD
613
+ * for any reason
614
+ * Anybody can call this method to allow the use of bots by the auctioneer or bidder
615
+ */
616
+ withdraw(): Promise<void>;
617
+ "__#3@#private": any;
618
+ address: PublicKey;
619
+ tokenId: Field;
620
+ init(): void;
621
+ requireSignature(): void;
622
+ skipAuthorization(): void;
623
+ readonly self: AccountUpdate;
624
+ newSelf(methodName?: string): AccountUpdate;
625
+ sender: {
626
+ self: SmartContract;
627
+ getUnconstrained(): PublicKey;
628
+ getAndRequireSignature(): PublicKey;
629
+ };
630
+ readonly account: import("node_modules/o1js/dist/node/lib/mina/precondition.js").Account;
631
+ readonly network: import("node_modules/o1js/dist/node/lib/mina/precondition.js").Network;
632
+ readonly currentSlot: import("node_modules/o1js/dist/node/lib/mina/precondition.js").CurrentSlot;
633
+ approve(update: AccountUpdate | import("o1js").AccountUpdateTree | import("o1js").AccountUpdateForest): void;
634
+ send(args: {
635
+ to: PublicKey | AccountUpdate | SmartContract;
636
+ amount: number | bigint | UInt64;
637
+ }): AccountUpdate;
638
+ readonly balance: {
639
+ addInPlace(x: string | number | bigint | UInt64 | UInt32 | import("o1js").Int64): void;
640
+ subInPlace(x: string | number | bigint | UInt64 | UInt32 | import("o1js").Int64): void;
641
+ };
642
+ emitEventIf<K extends "canTransfer" | "withdraw" | "bid" | "settleAuction" | "settlePayment" | "settleAuctioneerPayment">(condition: Bool, type: K, event: any): void;
643
+ emitEvent<K extends "canTransfer" | "withdraw" | "bid" | "settleAuction" | "settlePayment" | "settleAuctioneerPayment">(type: K, event: any): void;
644
+ fetchEvents(start?: UInt32, end?: UInt32): Promise<{
645
+ type: string;
646
+ event: {
647
+ data: import("o1js").ProvablePure<any>;
648
+ transactionInfo: {
649
+ transactionHash: string;
650
+ transactionStatus: string;
651
+ transactionMemo: string;
652
+ };
653
+ };
654
+ blockHeight: UInt32;
655
+ blockHash: string;
656
+ parentBlockHash: string;
657
+ globalSlot: UInt32;
658
+ chainStatus: string;
659
+ }[]>;
660
+ };
661
+ _methods?: import("node_modules/o1js/dist/node/lib/proof-system/zkprogram.js").MethodInterface[];
662
+ _methodMetadata?: Record<string, {
663
+ actions: number;
664
+ rows: number;
665
+ digest: string;
666
+ gates: import("node_modules/o1js/dist/node/snarky.js").Gate[];
667
+ }>;
668
+ _provers?: import("node_modules/o1js/dist/node/snarky.js").Pickles.Prover[];
669
+ _maxProofsVerified?: 0 | 1 | 2;
670
+ _verificationKey?: {
671
+ data: string;
672
+ hash: Field;
673
+ };
674
+ Proof(): {
675
+ new ({ proof, publicInput, publicOutput, maxProofsVerified, }: {
676
+ proof: unknown;
677
+ publicInput: import("o1js").ZkappPublicInput;
678
+ publicOutput: undefined;
679
+ maxProofsVerified: 0 | 2 | 1;
680
+ }): {
681
+ verify(): void;
682
+ verifyIf(condition: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool): void;
683
+ publicInput: import("o1js").ZkappPublicInput;
684
+ publicOutput: undefined;
685
+ proof: unknown;
686
+ maxProofsVerified: 0 | 2 | 1;
687
+ shouldVerify: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
688
+ toJSON(): import("o1js").JsonProof;
689
+ publicFields(): {
690
+ input: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
691
+ output: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
692
+ };
693
+ };
694
+ publicInputType: Omit<import("node_modules/o1js/dist/node/lib/provable/types/provable-intf.js").Provable<{
695
+ accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
696
+ calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
697
+ }, {
698
+ accountUpdate: bigint;
699
+ calls: bigint;
700
+ }>, "fromFields"> & {
701
+ fromFields: (fields: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[]) => {
702
+ accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
703
+ calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
704
+ };
705
+ } & {
706
+ toInput: (x: {
707
+ accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
708
+ calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
709
+ }) => {
710
+ fields?: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[] | undefined;
711
+ packed?: [import("node_modules/o1js/dist/node/lib/provable/field.js").Field, number][] | undefined;
712
+ };
713
+ toJSON: (x: {
714
+ accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
715
+ calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
716
+ }) => {
717
+ accountUpdate: string;
718
+ calls: string;
719
+ };
720
+ fromJSON: (x: {
721
+ accountUpdate: string;
722
+ calls: string;
723
+ }) => {
724
+ accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
725
+ calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
726
+ };
727
+ empty: () => {
728
+ accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
729
+ calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
730
+ };
731
+ };
732
+ publicOutputType: import("node_modules/o1js/dist/node/lib/provable/types/struct.js").ProvablePureExtended<undefined, undefined, null>;
733
+ tag: () => typeof SmartContract;
734
+ fromJSON<S extends import("node_modules/o1js/dist/node/lib/util/types.js").Subclass<typeof import("o1js").Proof>>(this: S, { maxProofsVerified, proof: proofString, publicInput: publicInputJson, publicOutput: publicOutputJson, }: import("o1js").JsonProof): Promise<import("o1js").Proof<import("o1js").InferProvable<S["publicInputType"]>, import("o1js").InferProvable<S["publicOutputType"]>>>;
735
+ dummy<Input, OutPut>(publicInput: Input, publicOutput: OutPut, maxProofsVerified: 0 | 2 | 1, domainLog2?: number): Promise<import("o1js").Proof<Input, OutPut>>;
736
+ readonly provable: {
737
+ toFields: (value: import("o1js").Proof<any, any>) => import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
738
+ toAuxiliary: (value?: import("o1js").Proof<any, any> | undefined) => any[];
739
+ fromFields: (fields: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[], aux: any[]) => import("o1js").Proof<any, any>;
740
+ sizeInFields(): number;
741
+ check: (value: import("o1js").Proof<any, any>) => void;
742
+ toValue: (x: import("o1js").Proof<any, any>) => import("node_modules/o1js/dist/node/lib/proof-system/proof.js").ProofValue<any, any>;
743
+ fromValue: (x: import("o1js").Proof<any, any> | import("node_modules/o1js/dist/node/lib/proof-system/proof.js").ProofValue<any, any>) => import("o1js").Proof<any, any>;
744
+ toCanonical?: ((x: import("o1js").Proof<any, any>) => import("o1js").Proof<any, any>) | undefined;
745
+ };
746
+ publicFields(value: import("o1js").ProofBase<any, any>): {
747
+ input: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
748
+ output: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
749
+ };
750
+ _proofFromBase64(proofString: string, maxProofsVerified: 0 | 2 | 1): unknown;
751
+ _proofToBase64(proof: unknown, maxProofsVerified: 0 | 2 | 1): string;
752
+ };
753
+ compile({ cache, forceRecompile, }?: {
754
+ cache?: import("o1js").Cache | undefined;
755
+ forceRecompile?: boolean | undefined;
756
+ }): Promise<{
757
+ verificationKey: {
758
+ data: string;
759
+ hash: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
760
+ };
761
+ provers: import("node_modules/o1js/dist/node/snarky.js").Pickles.Prover[];
762
+ verify: (statement: import("node_modules/o1js/dist/node/snarky.js").Pickles.Statement<import("node_modules/o1js/dist/node/lib/provable/core/fieldvar.js").FieldConst>, proof: unknown) => Promise<boolean>;
763
+ }>;
764
+ digest(): Promise<string>;
765
+ runOutsideCircuit(run: () => void): void;
766
+ analyzeMethods({ printSummary }?: {
767
+ printSummary?: boolean | undefined;
768
+ }): Promise<Record<string, {
769
+ actions: number;
770
+ rows: number;
771
+ digest: string;
772
+ gates: import("node_modules/o1js/dist/node/snarky.js").Gate[];
773
+ }>>;
774
+ };
775
+ export {};