@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,1083 @@
1
+ import { AccountUpdate, Bool, DeployArgs, PublicKey, SmartContract, State, VerificationKey, UInt64, Field } from "o1js";
2
+ import { FungibleTokenAdminBase } from "@silvana-one/token";
3
+ import { TransferExtendedParams } from "../interfaces/index.js";
4
+ import { Auction, AuctionFactory } from "./auction.js";
5
+ export interface NFTSharesAdminDeployProps extends Exclude<DeployArgs, undefined> {
6
+ admin: PublicKey;
7
+ owner: PublicKey;
8
+ }
9
+ export interface NFTSharesOwnerDeployProps extends Exclude<DeployArgs, undefined> {
10
+ admin: PublicKey;
11
+ owner: PublicKey;
12
+ collection: PublicKey;
13
+ nft: PublicKey;
14
+ auction: PublicKey;
15
+ maxBuyPrice: UInt64;
16
+ minSellPrice: UInt64;
17
+ uri: string;
18
+ }
19
+ declare const NFTSharesDataPacked_base: (new (value: {
20
+ adminX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
21
+ ownerX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
22
+ collectionX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
23
+ nftX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
24
+ auctionX: 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
+ adminX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
28
+ ownerX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
29
+ collectionX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
30
+ nftX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
31
+ auctionX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
32
+ data: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
33
+ }) & {
34
+ _isStruct: true;
35
+ } & Omit<import("node_modules/o1js/dist/node/lib/provable/types/provable-intf.js").Provable<{
36
+ adminX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
37
+ ownerX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
38
+ collectionX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
39
+ nftX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
40
+ auctionX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
41
+ data: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
42
+ }, {
43
+ adminX: bigint;
44
+ ownerX: bigint;
45
+ collectionX: bigint;
46
+ nftX: bigint;
47
+ auctionX: bigint;
48
+ data: bigint;
49
+ }>, "fromFields"> & {
50
+ fromFields: (fields: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[]) => {
51
+ adminX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
52
+ ownerX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
53
+ collectionX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
54
+ nftX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
55
+ auctionX: 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
+ } & {
59
+ fromValue: (value: {
60
+ adminX: string | number | bigint | import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
61
+ ownerX: string | number | bigint | import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
62
+ collectionX: string | number | bigint | import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
63
+ nftX: string | number | bigint | import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
64
+ auctionX: string | number | bigint | import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
65
+ data: string | number | bigint | import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
66
+ }) => {
67
+ adminX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
68
+ ownerX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
69
+ collectionX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
70
+ nftX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
71
+ auctionX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
72
+ data: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
73
+ };
74
+ toInput: (x: {
75
+ adminX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
76
+ ownerX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
77
+ collectionX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
78
+ nftX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
79
+ auctionX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
80
+ data: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
81
+ }) => {
82
+ fields?: Field[] | undefined;
83
+ packed?: [Field, number][] | undefined;
84
+ };
85
+ toJSON: (x: {
86
+ adminX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
87
+ ownerX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
88
+ collectionX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
89
+ nftX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
90
+ auctionX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
91
+ data: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
92
+ }) => {
93
+ adminX: string;
94
+ ownerX: string;
95
+ collectionX: string;
96
+ nftX: string;
97
+ auctionX: string;
98
+ data: string;
99
+ };
100
+ fromJSON: (x: {
101
+ adminX: string;
102
+ ownerX: string;
103
+ collectionX: string;
104
+ nftX: string;
105
+ auctionX: string;
106
+ data: string;
107
+ }) => {
108
+ adminX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
109
+ ownerX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
110
+ collectionX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
111
+ nftX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
112
+ auctionX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
113
+ data: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
114
+ };
115
+ empty: () => {
116
+ adminX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
117
+ ownerX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
118
+ collectionX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
119
+ nftX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
120
+ auctionX: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
121
+ data: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
122
+ };
123
+ };
124
+ export declare class NFTSharesDataPacked extends NFTSharesDataPacked_base {
125
+ }
126
+ declare const NFTSharesData_base: (new (value: {
127
+ admin: PublicKey;
128
+ owner: PublicKey;
129
+ collection: PublicKey;
130
+ nft: PublicKey;
131
+ auction: PublicKey;
132
+ maxBuyPrice: UInt64;
133
+ minSellPrice: UInt64;
134
+ }) => {
135
+ admin: PublicKey;
136
+ owner: PublicKey;
137
+ collection: PublicKey;
138
+ nft: PublicKey;
139
+ auction: PublicKey;
140
+ maxBuyPrice: UInt64;
141
+ minSellPrice: UInt64;
142
+ }) & {
143
+ _isStruct: true;
144
+ } & Omit<import("node_modules/o1js/dist/node/lib/provable/types/provable-intf.js").Provable<{
145
+ admin: PublicKey;
146
+ owner: PublicKey;
147
+ collection: PublicKey;
148
+ nft: PublicKey;
149
+ auction: PublicKey;
150
+ maxBuyPrice: UInt64;
151
+ minSellPrice: UInt64;
152
+ }, {
153
+ admin: {
154
+ x: bigint;
155
+ isOdd: boolean;
156
+ };
157
+ owner: {
158
+ x: bigint;
159
+ isOdd: boolean;
160
+ };
161
+ collection: {
162
+ x: bigint;
163
+ isOdd: boolean;
164
+ };
165
+ nft: {
166
+ x: bigint;
167
+ isOdd: boolean;
168
+ };
169
+ auction: {
170
+ x: bigint;
171
+ isOdd: boolean;
172
+ };
173
+ maxBuyPrice: bigint;
174
+ minSellPrice: bigint;
175
+ }>, "fromFields"> & {
176
+ fromFields: (fields: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[]) => {
177
+ admin: PublicKey;
178
+ owner: PublicKey;
179
+ collection: PublicKey;
180
+ nft: PublicKey;
181
+ auction: PublicKey;
182
+ maxBuyPrice: UInt64;
183
+ minSellPrice: UInt64;
184
+ };
185
+ } & {
186
+ fromValue: (value: {
187
+ admin: PublicKey | {
188
+ x: Field | bigint;
189
+ isOdd: Bool | boolean;
190
+ };
191
+ owner: PublicKey | {
192
+ x: Field | bigint;
193
+ isOdd: Bool | boolean;
194
+ };
195
+ collection: PublicKey | {
196
+ x: Field | bigint;
197
+ isOdd: Bool | boolean;
198
+ };
199
+ nft: PublicKey | {
200
+ x: Field | bigint;
201
+ isOdd: Bool | boolean;
202
+ };
203
+ auction: PublicKey | {
204
+ x: Field | bigint;
205
+ isOdd: Bool | boolean;
206
+ };
207
+ maxBuyPrice: bigint | UInt64;
208
+ minSellPrice: bigint | UInt64;
209
+ }) => {
210
+ admin: PublicKey;
211
+ owner: PublicKey;
212
+ collection: PublicKey;
213
+ nft: PublicKey;
214
+ auction: PublicKey;
215
+ maxBuyPrice: UInt64;
216
+ minSellPrice: UInt64;
217
+ };
218
+ toInput: (x: {
219
+ admin: PublicKey;
220
+ owner: PublicKey;
221
+ collection: PublicKey;
222
+ nft: PublicKey;
223
+ auction: PublicKey;
224
+ maxBuyPrice: UInt64;
225
+ minSellPrice: UInt64;
226
+ }) => {
227
+ fields?: Field[] | undefined;
228
+ packed?: [Field, number][] | undefined;
229
+ };
230
+ toJSON: (x: {
231
+ admin: PublicKey;
232
+ owner: PublicKey;
233
+ collection: PublicKey;
234
+ nft: PublicKey;
235
+ auction: PublicKey;
236
+ maxBuyPrice: UInt64;
237
+ minSellPrice: UInt64;
238
+ }) => {
239
+ admin: string;
240
+ owner: string;
241
+ collection: string;
242
+ nft: string;
243
+ auction: string;
244
+ maxBuyPrice: string;
245
+ minSellPrice: string;
246
+ };
247
+ fromJSON: (x: {
248
+ admin: string;
249
+ owner: string;
250
+ collection: string;
251
+ nft: string;
252
+ auction: string;
253
+ maxBuyPrice: string;
254
+ minSellPrice: string;
255
+ }) => {
256
+ admin: PublicKey;
257
+ owner: PublicKey;
258
+ collection: PublicKey;
259
+ nft: PublicKey;
260
+ auction: PublicKey;
261
+ maxBuyPrice: UInt64;
262
+ minSellPrice: UInt64;
263
+ };
264
+ empty: () => {
265
+ admin: PublicKey;
266
+ owner: PublicKey;
267
+ collection: PublicKey;
268
+ nft: PublicKey;
269
+ auction: PublicKey;
270
+ maxBuyPrice: UInt64;
271
+ minSellPrice: UInt64;
272
+ };
273
+ };
274
+ export declare class NFTSharesData extends NFTSharesData_base {
275
+ pack(): NFTSharesDataPacked;
276
+ static unpack(packed: NFTSharesDataPacked): NFTSharesData;
277
+ }
278
+ export type DefineNFTSharesFactory = (params: {
279
+ auctionContract: () => ReturnType<typeof AuctionFactory>;
280
+ }) => ReturnType<typeof NFTSharesFactory>;
281
+ export declare function NFTSharesFactory(params: {
282
+ auctionContract: () => ReturnType<typeof AuctionFactory>;
283
+ }): {
284
+ NFTSharesAdmin: {
285
+ new (address: PublicKey, tokenId?: Field): {
286
+ admin: State<PublicKey>;
287
+ owner: State<PublicKey>;
288
+ deploy(props: NFTSharesAdminDeployProps): Promise<void>;
289
+ updateVerificationKey(vk: VerificationKey): Promise<void>;
290
+ ensureAdminSignature(): AccountUpdate;
291
+ getOwner(): {
292
+ /**
293
+ * The public key of the contract's administrator.
294
+ * This account has the authority to perform administrative actions such as pausing the contract or upgrading the verification key.
295
+ */
296
+ data: State<NFTSharesDataPacked>;
297
+ subscriptionOpen: State<import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool>;
298
+ sharesOutstanding: State<UInt64>;
299
+ /**
300
+ * Deploys the contract with initial settings.
301
+ * @param props - Deployment properties including admin, upgradeAuthority, uri, canPause, and isPaused.
302
+ */
303
+ deploy(props: NFTSharesOwnerDeployProps): Promise<void>;
304
+ /**
305
+ * Ensures that the transaction is authorized by the contract owner.
306
+ * @returns A signed `AccountUpdate` from the admin.
307
+ */
308
+ ensureOwnerSignature(): NFTSharesData;
309
+ getAuction(auction: PublicKey): {
310
+ auctionData: State<import("./auction.js").AuctionPacked>;
311
+ bidAmount: State<UInt64>;
312
+ settled: State<import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool>;
313
+ deploy(args: import("./auction.js").NonFungibleTokenAuctionContractDeployProps): Promise<void>;
314
+ events: {
315
+ bid: typeof import("./auction.js").AuctionBidEvent;
316
+ settleAuction: typeof import("../interfaces/types.js").TransferParams;
317
+ canTransfer: typeof import("../interfaces/events.js").TransferEvent;
318
+ settlePayment: typeof UInt64;
319
+ settleAuctioneerPayment: typeof UInt64;
320
+ withdraw: typeof UInt64;
321
+ };
322
+ getCollectionContract(address: PublicKey): import("../interfaces/collection.js").NFTCollectionBase;
323
+ calculateSaleFee(params: {
324
+ price: UInt64;
325
+ saleFee: import("o1js").UInt32;
326
+ transferFee: UInt64;
327
+ }): UInt64;
328
+ bid(price: UInt64, bidder: PublicKey): Promise<Auction>;
329
+ getAuctionState(): Promise<import("./auction.js").AuctionState>;
330
+ settleAuction(): Promise<void>;
331
+ withdrawNFT(): Promise<void>;
332
+ canTransfer(params: TransferExtendedParams): Promise<Bool>;
333
+ settlePayment(): Promise<void>;
334
+ settleAuctioneerPayment(amount: UInt64): Promise<void>;
335
+ withdraw(): Promise<void>;
336
+ "__#3@#private": any;
337
+ address: PublicKey;
338
+ tokenId: Field;
339
+ init(): void;
340
+ requireSignature(): void;
341
+ skipAuthorization(): void;
342
+ readonly self: AccountUpdate;
343
+ newSelf(methodName?: string): AccountUpdate;
344
+ sender: {
345
+ self: SmartContract;
346
+ getUnconstrained(): PublicKey;
347
+ getAndRequireSignature(): PublicKey;
348
+ };
349
+ readonly account: import("node_modules/o1js/dist/node/lib/mina/precondition.js").Account;
350
+ readonly network: import("node_modules/o1js/dist/node/lib/mina/precondition.js").Network;
351
+ readonly currentSlot: import("node_modules/o1js/dist/node/lib/mina/precondition.js").CurrentSlot;
352
+ approve(update: AccountUpdate | import("o1js").AccountUpdateTree | import("o1js").AccountUpdateForest): void;
353
+ send(args: {
354
+ to: PublicKey | AccountUpdate | SmartContract;
355
+ amount: number | bigint | UInt64;
356
+ }): AccountUpdate;
357
+ readonly balance: {
358
+ addInPlace(x: string | number | bigint | UInt64 | import("o1js").UInt32 | import("o1js").Int64): void;
359
+ subInPlace(x: string | number | bigint | UInt64 | import("o1js").UInt32 | import("o1js").Int64): void;
360
+ };
361
+ emitEventIf<K extends "canTransfer" | "withdraw" | "bid" | "settleAuction" | "settlePayment" | "settleAuctioneerPayment">(condition: Bool, type: K, event: any): void;
362
+ emitEvent<K extends "canTransfer" | "withdraw" | "bid" | "settleAuction" | "settlePayment" | "settleAuctioneerPayment">(type: K, event: any): void;
363
+ fetchEvents(start?: import("o1js").UInt32, end?: import("o1js").UInt32): Promise<{
364
+ type: string;
365
+ event: {
366
+ data: import("o1js").ProvablePure<any>;
367
+ transactionInfo: {
368
+ transactionHash: string;
369
+ transactionStatus: string;
370
+ transactionMemo: string;
371
+ };
372
+ };
373
+ blockHeight: import("o1js").UInt32;
374
+ blockHash: string;
375
+ parentBlockHash: string;
376
+ globalSlot: import("o1js").UInt32;
377
+ chainStatus: string;
378
+ }[]>;
379
+ };
380
+ /**
381
+ * Allows the owner to mint shares.
382
+ * This method should NOT called directly, but through the FungibleToken.mint()
383
+ *
384
+ * @param _accountUpdate - The account update containing the sender's information.
385
+ * @returns A boolean indicating if the minting is allowed.
386
+ */
387
+ canMint(_accountUpdate: AccountUpdate): Promise<Bool>;
388
+ withdraw(shares: UInt64): Promise<void>;
389
+ closeSubscription(): Promise<void>;
390
+ bid(price: UInt64): Promise<void>;
391
+ canTransfer(params: TransferExtendedParams): Promise<Bool>;
392
+ canPause(collection: PublicKey, nft: PublicKey): Promise<Bool>;
393
+ canResume(collection: PublicKey, nft: PublicKey): Promise<Bool>;
394
+ canChangeVerificationKey(collection: PublicKey, nft: PublicKey, vk: VerificationKey): Promise<Bool>;
395
+ canApproveAddress(collection: PublicKey, nft: PublicKey, approved: PublicKey): Promise<Bool>;
396
+ "__#3@#private": any;
397
+ address: PublicKey;
398
+ tokenId: Field;
399
+ init(): void;
400
+ requireSignature(): void;
401
+ skipAuthorization(): void;
402
+ readonly self: AccountUpdate;
403
+ newSelf(methodName?: string): AccountUpdate;
404
+ sender: {
405
+ self: SmartContract;
406
+ getUnconstrained(): PublicKey;
407
+ getAndRequireSignature(): PublicKey;
408
+ };
409
+ readonly account: import("node_modules/o1js/dist/node/lib/mina/precondition.js").Account;
410
+ readonly network: import("node_modules/o1js/dist/node/lib/mina/precondition.js").Network;
411
+ readonly currentSlot: import("node_modules/o1js/dist/node/lib/mina/precondition.js").CurrentSlot;
412
+ approve(update: AccountUpdate | import("o1js").AccountUpdateTree | import("o1js").AccountUpdateForest): void;
413
+ send(args: {
414
+ to: PublicKey | AccountUpdate | SmartContract;
415
+ amount: number | bigint | UInt64;
416
+ }): AccountUpdate;
417
+ readonly balance: {
418
+ addInPlace(x: string | number | bigint | UInt64 | import("o1js").UInt32 | import("o1js").Int64): void;
419
+ subInPlace(x: string | number | bigint | UInt64 | import("o1js").UInt32 | import("o1js").Int64): void;
420
+ };
421
+ events: {
422
+ [key: string]: import("o1js").FlexibleProvablePure<any>;
423
+ };
424
+ emitEventIf<K extends string | number>(condition: Bool, type: K, event: any): void;
425
+ emitEvent<K extends string | number>(type: K, event: any): void;
426
+ fetchEvents(start?: import("o1js").UInt32, end?: import("o1js").UInt32): Promise<{
427
+ type: string;
428
+ event: {
429
+ data: import("o1js").ProvablePure<any>;
430
+ transactionInfo: {
431
+ transactionHash: string;
432
+ transactionStatus: string;
433
+ transactionMemo: string;
434
+ };
435
+ };
436
+ blockHeight: import("o1js").UInt32;
437
+ blockHash: string;
438
+ parentBlockHash: string;
439
+ globalSlot: import("o1js").UInt32;
440
+ chainStatus: string;
441
+ }[]>;
442
+ };
443
+ canMint(_accountUpdate: AccountUpdate): Promise<import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool>;
444
+ canChangeAdmin(_admin: PublicKey): Promise<import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool>;
445
+ canPause(): Promise<Bool>;
446
+ canResume(): Promise<Bool>;
447
+ canChangeVerificationKey(_vk: VerificationKey): Promise<Bool>;
448
+ "__#3@#private": any;
449
+ address: PublicKey;
450
+ tokenId: Field;
451
+ init(): void;
452
+ requireSignature(): void;
453
+ skipAuthorization(): void;
454
+ readonly self: AccountUpdate;
455
+ newSelf(methodName?: string): AccountUpdate;
456
+ sender: {
457
+ self: SmartContract;
458
+ getUnconstrained(): PublicKey;
459
+ getAndRequireSignature(): PublicKey;
460
+ };
461
+ readonly account: import("node_modules/o1js/dist/node/lib/mina/precondition.js").Account;
462
+ readonly network: import("node_modules/o1js/dist/node/lib/mina/precondition.js").Network;
463
+ readonly currentSlot: import("node_modules/o1js/dist/node/lib/mina/precondition.js").CurrentSlot;
464
+ approve(update: AccountUpdate | import("o1js").AccountUpdateTree | import("o1js").AccountUpdateForest): void;
465
+ send(args: {
466
+ to: PublicKey | AccountUpdate | SmartContract;
467
+ amount: number | bigint | UInt64;
468
+ }): AccountUpdate;
469
+ readonly balance: {
470
+ addInPlace(x: string | number | bigint | UInt64 | import("o1js").UInt32 | import("o1js").Int64): void;
471
+ subInPlace(x: string | number | bigint | UInt64 | import("o1js").UInt32 | import("o1js").Int64): void;
472
+ };
473
+ events: {
474
+ [key: string]: import("o1js").FlexibleProvablePure<any>;
475
+ };
476
+ emitEventIf<K extends string | number>(condition: Bool, type: K, event: any): void;
477
+ emitEvent<K extends string | number>(type: K, event: any): void;
478
+ fetchEvents(start?: import("o1js").UInt32, end?: import("o1js").UInt32): Promise<{
479
+ type: string;
480
+ event: {
481
+ data: import("o1js").ProvablePure<any>;
482
+ transactionInfo: {
483
+ transactionHash: string;
484
+ transactionStatus: string;
485
+ transactionMemo: string;
486
+ };
487
+ };
488
+ blockHeight: import("o1js").UInt32;
489
+ blockHash: string;
490
+ parentBlockHash: string;
491
+ globalSlot: import("o1js").UInt32;
492
+ chainStatus: string;
493
+ }[]>;
494
+ };
495
+ _methods?: import("node_modules/o1js/dist/node/lib/proof-system/zkprogram.js").MethodInterface[];
496
+ _methodMetadata?: Record<string, {
497
+ actions: number;
498
+ rows: number;
499
+ digest: string;
500
+ gates: import("node_modules/o1js/dist/node/snarky.js").Gate[];
501
+ }>;
502
+ _provers?: import("node_modules/o1js/dist/node/snarky.js").Pickles.Prover[];
503
+ _maxProofsVerified?: 0 | 1 | 2;
504
+ _verificationKey?: {
505
+ data: string;
506
+ hash: Field;
507
+ };
508
+ Proof(): {
509
+ new ({ proof, publicInput, publicOutput, maxProofsVerified, }: {
510
+ proof: unknown;
511
+ publicInput: import("o1js").ZkappPublicInput;
512
+ publicOutput: undefined;
513
+ maxProofsVerified: 0 | 2 | 1;
514
+ }): {
515
+ verify(): void;
516
+ verifyIf(condition: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool): void;
517
+ publicInput: import("o1js").ZkappPublicInput;
518
+ publicOutput: undefined;
519
+ proof: unknown;
520
+ maxProofsVerified: 0 | 2 | 1;
521
+ shouldVerify: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
522
+ toJSON(): import("o1js").JsonProof;
523
+ publicFields(): {
524
+ input: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
525
+ output: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
526
+ };
527
+ };
528
+ publicInputType: Omit<import("node_modules/o1js/dist/node/lib/provable/types/provable-intf.js").Provable<{
529
+ accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
530
+ calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
531
+ }, {
532
+ accountUpdate: bigint;
533
+ calls: bigint;
534
+ }>, "fromFields"> & {
535
+ fromFields: (fields: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[]) => {
536
+ accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
537
+ calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
538
+ };
539
+ } & {
540
+ toInput: (x: {
541
+ accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
542
+ calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
543
+ }) => {
544
+ fields?: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[] | undefined;
545
+ packed?: [import("node_modules/o1js/dist/node/lib/provable/field.js").Field, number][] | undefined;
546
+ };
547
+ toJSON: (x: {
548
+ accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
549
+ calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
550
+ }) => {
551
+ accountUpdate: string;
552
+ calls: string;
553
+ };
554
+ fromJSON: (x: {
555
+ accountUpdate: string;
556
+ calls: string;
557
+ }) => {
558
+ accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
559
+ calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
560
+ };
561
+ empty: () => {
562
+ accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
563
+ calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
564
+ };
565
+ };
566
+ publicOutputType: import("node_modules/o1js/dist/node/lib/provable/types/struct.js").ProvablePureExtended<undefined, undefined, null>;
567
+ tag: () => typeof SmartContract;
568
+ 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"]>>>;
569
+ dummy<Input, OutPut>(publicInput: Input, publicOutput: OutPut, maxProofsVerified: 0 | 2 | 1, domainLog2?: number): Promise<import("o1js").Proof<Input, OutPut>>;
570
+ readonly provable: {
571
+ toFields: (value: import("o1js").Proof<any, any>) => import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
572
+ toAuxiliary: (value?: import("o1js").Proof<any, any> | undefined) => any[];
573
+ fromFields: (fields: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[], aux: any[]) => import("o1js").Proof<any, any>;
574
+ sizeInFields(): number;
575
+ check: (value: import("o1js").Proof<any, any>) => void;
576
+ toValue: (x: import("o1js").Proof<any, any>) => import("node_modules/o1js/dist/node/lib/proof-system/proof.js").ProofValue<any, any>;
577
+ 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>;
578
+ toCanonical?: ((x: import("o1js").Proof<any, any>) => import("o1js").Proof<any, any>) | undefined;
579
+ };
580
+ publicFields(value: import("o1js").ProofBase<any, any>): {
581
+ input: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
582
+ output: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
583
+ };
584
+ _proofFromBase64(proofString: string, maxProofsVerified: 0 | 2 | 1): unknown;
585
+ _proofToBase64(proof: unknown, maxProofsVerified: 0 | 2 | 1): string;
586
+ };
587
+ compile({ cache, forceRecompile, }?: {
588
+ cache?: import("o1js").Cache | undefined;
589
+ forceRecompile?: boolean | undefined;
590
+ }): Promise<{
591
+ verificationKey: {
592
+ data: string;
593
+ hash: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
594
+ };
595
+ provers: import("node_modules/o1js/dist/node/snarky.js").Pickles.Prover[];
596
+ 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>;
597
+ }>;
598
+ digest(): Promise<string>;
599
+ runOutsideCircuit(run: () => void): void;
600
+ analyzeMethods({ printSummary }?: {
601
+ printSummary?: boolean | undefined;
602
+ }): Promise<Record<string, {
603
+ actions: number;
604
+ rows: number;
605
+ digest: string;
606
+ gates: import("node_modules/o1js/dist/node/snarky.js").Gate[];
607
+ }>>;
608
+ };
609
+ NFTSharesOwner: {
610
+ new (address: PublicKey, tokenId?: Field): {
611
+ /**
612
+ * The public key of the contract's administrator.
613
+ * This account has the authority to perform administrative actions such as pausing the contract or upgrading the verification key.
614
+ */
615
+ data: State<NFTSharesDataPacked>;
616
+ subscriptionOpen: State<import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool>;
617
+ sharesOutstanding: State<UInt64>;
618
+ /**
619
+ * Deploys the contract with initial settings.
620
+ * @param props - Deployment properties including admin, upgradeAuthority, uri, canPause, and isPaused.
621
+ */
622
+ deploy(props: NFTSharesOwnerDeployProps): Promise<void>;
623
+ /**
624
+ * Ensures that the transaction is authorized by the contract owner.
625
+ * @returns A signed `AccountUpdate` from the admin.
626
+ */
627
+ ensureOwnerSignature(): NFTSharesData;
628
+ getAuction(auction: PublicKey): {
629
+ auctionData: State<import("./auction.js").AuctionPacked>;
630
+ bidAmount: State<UInt64>;
631
+ settled: State<import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool>;
632
+ deploy(args: import("./auction.js").NonFungibleTokenAuctionContractDeployProps): Promise<void>;
633
+ events: {
634
+ bid: typeof import("./auction.js").AuctionBidEvent;
635
+ settleAuction: typeof import("../interfaces/types.js").TransferParams;
636
+ canTransfer: typeof import("../interfaces/events.js").TransferEvent;
637
+ settlePayment: typeof UInt64;
638
+ settleAuctioneerPayment: typeof UInt64;
639
+ withdraw: typeof UInt64;
640
+ };
641
+ getCollectionContract(address: PublicKey): import("../interfaces/collection.js").NFTCollectionBase;
642
+ calculateSaleFee(params: {
643
+ price: UInt64;
644
+ saleFee: import("o1js").UInt32;
645
+ transferFee: UInt64;
646
+ }): UInt64;
647
+ bid(price: UInt64, bidder: PublicKey): Promise<Auction>;
648
+ getAuctionState(): Promise<import("./auction.js").AuctionState>;
649
+ settleAuction(): Promise<void>;
650
+ withdrawNFT(): Promise<void>;
651
+ canTransfer(params: TransferExtendedParams): Promise<Bool>;
652
+ settlePayment(): Promise<void>;
653
+ settleAuctioneerPayment(amount: UInt64): Promise<void>;
654
+ withdraw(): Promise<void>;
655
+ "__#3@#private": any;
656
+ address: PublicKey;
657
+ tokenId: Field;
658
+ init(): void;
659
+ requireSignature(): void;
660
+ skipAuthorization(): void;
661
+ readonly self: AccountUpdate;
662
+ newSelf(methodName?: string): AccountUpdate;
663
+ sender: {
664
+ self: SmartContract;
665
+ getUnconstrained(): PublicKey;
666
+ getAndRequireSignature(): PublicKey;
667
+ };
668
+ readonly account: import("node_modules/o1js/dist/node/lib/mina/precondition.js").Account;
669
+ readonly network: import("node_modules/o1js/dist/node/lib/mina/precondition.js").Network;
670
+ readonly currentSlot: import("node_modules/o1js/dist/node/lib/mina/precondition.js").CurrentSlot;
671
+ approve(update: AccountUpdate | import("o1js").AccountUpdateTree | import("o1js").AccountUpdateForest): void;
672
+ send(args: {
673
+ to: PublicKey | AccountUpdate | SmartContract;
674
+ amount: number | bigint | UInt64;
675
+ }): AccountUpdate;
676
+ readonly balance: {
677
+ addInPlace(x: string | number | bigint | UInt64 | import("o1js").UInt32 | import("o1js").Int64): void;
678
+ subInPlace(x: string | number | bigint | UInt64 | import("o1js").UInt32 | import("o1js").Int64): void;
679
+ };
680
+ emitEventIf<K extends "canTransfer" | "withdraw" | "bid" | "settleAuction" | "settlePayment" | "settleAuctioneerPayment">(condition: Bool, type: K, event: any): void;
681
+ emitEvent<K extends "canTransfer" | "withdraw" | "bid" | "settleAuction" | "settlePayment" | "settleAuctioneerPayment">(type: K, event: any): void;
682
+ fetchEvents(start?: import("o1js").UInt32, end?: import("o1js").UInt32): Promise<{
683
+ type: string;
684
+ event: {
685
+ data: import("o1js").ProvablePure<any>;
686
+ transactionInfo: {
687
+ transactionHash: string;
688
+ transactionStatus: string;
689
+ transactionMemo: string;
690
+ };
691
+ };
692
+ blockHeight: import("o1js").UInt32;
693
+ blockHash: string;
694
+ parentBlockHash: string;
695
+ globalSlot: import("o1js").UInt32;
696
+ chainStatus: string;
697
+ }[]>;
698
+ };
699
+ /**
700
+ * Allows the owner to mint shares.
701
+ * This method should NOT called directly, but through the FungibleToken.mint()
702
+ *
703
+ * @param _accountUpdate - The account update containing the sender's information.
704
+ * @returns A boolean indicating if the minting is allowed.
705
+ */
706
+ canMint(_accountUpdate: AccountUpdate): Promise<Bool>;
707
+ withdraw(shares: UInt64): Promise<void>;
708
+ closeSubscription(): Promise<void>;
709
+ bid(price: UInt64): Promise<void>;
710
+ canTransfer(params: TransferExtendedParams): Promise<Bool>;
711
+ canPause(collection: PublicKey, nft: PublicKey): Promise<Bool>;
712
+ canResume(collection: PublicKey, nft: PublicKey): Promise<Bool>;
713
+ canChangeVerificationKey(collection: PublicKey, nft: PublicKey, vk: VerificationKey): Promise<Bool>;
714
+ canApproveAddress(collection: PublicKey, nft: PublicKey, approved: PublicKey): Promise<Bool>;
715
+ "__#3@#private": any;
716
+ address: PublicKey;
717
+ tokenId: Field;
718
+ init(): void;
719
+ requireSignature(): void;
720
+ skipAuthorization(): void;
721
+ readonly self: AccountUpdate;
722
+ newSelf(methodName?: string): AccountUpdate;
723
+ sender: {
724
+ self: SmartContract;
725
+ getUnconstrained(): PublicKey;
726
+ getAndRequireSignature(): PublicKey;
727
+ };
728
+ readonly account: import("node_modules/o1js/dist/node/lib/mina/precondition.js").Account;
729
+ readonly network: import("node_modules/o1js/dist/node/lib/mina/precondition.js").Network;
730
+ readonly currentSlot: import("node_modules/o1js/dist/node/lib/mina/precondition.js").CurrentSlot;
731
+ approve(update: AccountUpdate | import("o1js").AccountUpdateTree | import("o1js").AccountUpdateForest): void;
732
+ send(args: {
733
+ to: PublicKey | AccountUpdate | SmartContract;
734
+ amount: number | bigint | UInt64;
735
+ }): AccountUpdate;
736
+ readonly balance: {
737
+ addInPlace(x: string | number | bigint | UInt64 | import("o1js").UInt32 | import("o1js").Int64): void;
738
+ subInPlace(x: string | number | bigint | UInt64 | import("o1js").UInt32 | import("o1js").Int64): void;
739
+ };
740
+ events: {
741
+ [key: string]: import("o1js").FlexibleProvablePure<any>;
742
+ };
743
+ emitEventIf<K extends string | number>(condition: Bool, type: K, event: any): void;
744
+ emitEvent<K extends string | number>(type: K, event: any): void;
745
+ fetchEvents(start?: import("o1js").UInt32, end?: import("o1js").UInt32): Promise<{
746
+ type: string;
747
+ event: {
748
+ data: import("o1js").ProvablePure<any>;
749
+ transactionInfo: {
750
+ transactionHash: string;
751
+ transactionStatus: string;
752
+ transactionMemo: string;
753
+ };
754
+ };
755
+ blockHeight: import("o1js").UInt32;
756
+ blockHash: string;
757
+ parentBlockHash: string;
758
+ globalSlot: import("o1js").UInt32;
759
+ chainStatus: string;
760
+ }[]>;
761
+ };
762
+ _methods?: import("node_modules/o1js/dist/node/lib/proof-system/zkprogram.js").MethodInterface[];
763
+ _methodMetadata?: Record<string, {
764
+ actions: number;
765
+ rows: number;
766
+ digest: string;
767
+ gates: import("node_modules/o1js/dist/node/snarky.js").Gate[];
768
+ }>;
769
+ _provers?: import("node_modules/o1js/dist/node/snarky.js").Pickles.Prover[];
770
+ _maxProofsVerified?: 0 | 1 | 2;
771
+ _verificationKey?: {
772
+ data: string;
773
+ hash: Field;
774
+ };
775
+ Proof(): {
776
+ new ({ proof, publicInput, publicOutput, maxProofsVerified, }: {
777
+ proof: unknown;
778
+ publicInput: import("o1js").ZkappPublicInput;
779
+ publicOutput: undefined;
780
+ maxProofsVerified: 0 | 2 | 1;
781
+ }): {
782
+ verify(): void;
783
+ verifyIf(condition: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool): void;
784
+ publicInput: import("o1js").ZkappPublicInput;
785
+ publicOutput: undefined;
786
+ proof: unknown;
787
+ maxProofsVerified: 0 | 2 | 1;
788
+ shouldVerify: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
789
+ toJSON(): import("o1js").JsonProof;
790
+ publicFields(): {
791
+ input: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
792
+ output: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
793
+ };
794
+ };
795
+ publicInputType: Omit<import("node_modules/o1js/dist/node/lib/provable/types/provable-intf.js").Provable<{
796
+ accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
797
+ calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
798
+ }, {
799
+ accountUpdate: bigint;
800
+ calls: bigint;
801
+ }>, "fromFields"> & {
802
+ fromFields: (fields: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[]) => {
803
+ accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
804
+ calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
805
+ };
806
+ } & {
807
+ toInput: (x: {
808
+ accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
809
+ calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
810
+ }) => {
811
+ fields?: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[] | undefined;
812
+ packed?: [import("node_modules/o1js/dist/node/lib/provable/field.js").Field, number][] | undefined;
813
+ };
814
+ toJSON: (x: {
815
+ accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
816
+ calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
817
+ }) => {
818
+ accountUpdate: string;
819
+ calls: string;
820
+ };
821
+ fromJSON: (x: {
822
+ accountUpdate: string;
823
+ calls: string;
824
+ }) => {
825
+ accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
826
+ calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
827
+ };
828
+ empty: () => {
829
+ accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
830
+ calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
831
+ };
832
+ };
833
+ publicOutputType: import("node_modules/o1js/dist/node/lib/provable/types/struct.js").ProvablePureExtended<undefined, undefined, null>;
834
+ tag: () => typeof SmartContract;
835
+ 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"]>>>;
836
+ dummy<Input, OutPut>(publicInput: Input, publicOutput: OutPut, maxProofsVerified: 0 | 2 | 1, domainLog2?: number): Promise<import("o1js").Proof<Input, OutPut>>;
837
+ readonly provable: {
838
+ toFields: (value: import("o1js").Proof<any, any>) => import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
839
+ toAuxiliary: (value?: import("o1js").Proof<any, any> | undefined) => any[];
840
+ fromFields: (fields: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[], aux: any[]) => import("o1js").Proof<any, any>;
841
+ sizeInFields(): number;
842
+ check: (value: import("o1js").Proof<any, any>) => void;
843
+ toValue: (x: import("o1js").Proof<any, any>) => import("node_modules/o1js/dist/node/lib/proof-system/proof.js").ProofValue<any, any>;
844
+ 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>;
845
+ toCanonical?: ((x: import("o1js").Proof<any, any>) => import("o1js").Proof<any, any>) | undefined;
846
+ };
847
+ publicFields(value: import("o1js").ProofBase<any, any>): {
848
+ input: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
849
+ output: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
850
+ };
851
+ _proofFromBase64(proofString: string, maxProofsVerified: 0 | 2 | 1): unknown;
852
+ _proofToBase64(proof: unknown, maxProofsVerified: 0 | 2 | 1): string;
853
+ };
854
+ compile({ cache, forceRecompile, }?: {
855
+ cache?: import("o1js").Cache | undefined;
856
+ forceRecompile?: boolean | undefined;
857
+ }): Promise<{
858
+ verificationKey: {
859
+ data: string;
860
+ hash: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
861
+ };
862
+ provers: import("node_modules/o1js/dist/node/snarky.js").Pickles.Prover[];
863
+ 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>;
864
+ }>;
865
+ digest(): Promise<string>;
866
+ runOutsideCircuit(run: () => void): void;
867
+ analyzeMethods({ printSummary }?: {
868
+ printSummary?: boolean | undefined;
869
+ }): Promise<Record<string, {
870
+ actions: number;
871
+ rows: number;
872
+ digest: string;
873
+ gates: import("node_modules/o1js/dist/node/snarky.js").Gate[];
874
+ }>>;
875
+ };
876
+ FungibleToken: {
877
+ new (address: PublicKey, tokenId?: Field): {
878
+ decimals: State<import("o1js").UInt8>;
879
+ admin: State<PublicKey>;
880
+ paused: State<import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool>;
881
+ readonly events: {
882
+ SetAdmin: typeof import("@silvana-one/token").SetAdminEvent;
883
+ Pause: typeof import("@silvana-one/token").PauseEvent;
884
+ Mint: typeof import("@silvana-one/token").MintEvent;
885
+ Burn: typeof import("@silvana-one/token").BurnEvent;
886
+ BalanceChange: typeof import("@silvana-one/token").BalanceChangeEvent;
887
+ };
888
+ deploy(props: import("@silvana-one/token").FungibleTokenDeployProps): Promise<void>;
889
+ updateVerificationKey(vk: VerificationKey): Promise<void>;
890
+ initialize(admin: PublicKey, decimals: import("o1js").UInt8, startPaused: Bool): Promise<void>;
891
+ getAdminContract(): Promise<FungibleTokenAdminBase>;
892
+ setAdmin(admin: PublicKey): Promise<void>;
893
+ mint(recipient: PublicKey, amount: UInt64): Promise<AccountUpdate>;
894
+ burn(from: PublicKey, amount: UInt64): Promise<AccountUpdate>;
895
+ pause(): Promise<void>;
896
+ resume(): Promise<void>;
897
+ transfer(from: PublicKey, to: PublicKey, amount: UInt64): Promise<void>;
898
+ checkPermissionsUpdate(update: AccountUpdate): void;
899
+ approveBase(updates: import("o1js").AccountUpdateForest): Promise<void>;
900
+ getBalanceOf(address: PublicKey): Promise<UInt64>;
901
+ getCirculating(): Promise<UInt64>;
902
+ getDecimals(): Promise<import("o1js").UInt8>;
903
+ deriveTokenId(): import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
904
+ readonly internal: {
905
+ mint({ address, amount, }: {
906
+ address: PublicKey | AccountUpdate | SmartContract;
907
+ amount: number | bigint | UInt64;
908
+ }): AccountUpdate;
909
+ burn({ address, amount, }: {
910
+ address: PublicKey | AccountUpdate | SmartContract;
911
+ amount: number | bigint | UInt64;
912
+ }): AccountUpdate;
913
+ send({ from, to, amount, }: {
914
+ from: PublicKey | AccountUpdate | SmartContract;
915
+ to: PublicKey | AccountUpdate | SmartContract;
916
+ amount: number | bigint | UInt64;
917
+ }): AccountUpdate;
918
+ };
919
+ forEachUpdate(updates: import("o1js").AccountUpdateForest, callback: (update: AccountUpdate, usesToken: Bool) => void): void;
920
+ checkZeroBalanceChange(updates: import("o1js").AccountUpdateForest): void;
921
+ approveAccountUpdate(accountUpdate: AccountUpdate | import("o1js").AccountUpdateTree): Promise<void>;
922
+ approveAccountUpdates(accountUpdates: (AccountUpdate | import("o1js").AccountUpdateTree)[]): Promise<void>;
923
+ "__#3@#private": any;
924
+ address: PublicKey;
925
+ tokenId: Field;
926
+ init(): void;
927
+ requireSignature(): void;
928
+ skipAuthorization(): void;
929
+ readonly self: AccountUpdate;
930
+ newSelf(methodName?: string): AccountUpdate;
931
+ sender: {
932
+ self: SmartContract;
933
+ getUnconstrained(): PublicKey;
934
+ getAndRequireSignature(): PublicKey;
935
+ };
936
+ readonly account: import("node_modules/o1js/dist/node/lib/mina/precondition.js").Account;
937
+ readonly network: import("node_modules/o1js/dist/node/lib/mina/precondition.js").Network;
938
+ readonly currentSlot: import("node_modules/o1js/dist/node/lib/mina/precondition.js").CurrentSlot;
939
+ approve(update: AccountUpdate | import("o1js").AccountUpdateTree | import("o1js").AccountUpdateForest): void;
940
+ send(args: {
941
+ to: PublicKey | AccountUpdate | SmartContract;
942
+ amount: number | bigint | UInt64;
943
+ }): AccountUpdate;
944
+ readonly balance: {
945
+ addInPlace(x: string | number | bigint | UInt64 | import("o1js").UInt32 | import("o1js").Int64): void;
946
+ subInPlace(x: string | number | bigint | UInt64 | import("o1js").UInt32 | import("o1js").Int64): void;
947
+ };
948
+ emitEventIf<K extends "SetAdmin" | "Pause" | "Mint" | "Burn" | "BalanceChange">(condition: Bool, type: K, event: any): void;
949
+ emitEvent<K extends "SetAdmin" | "Pause" | "Mint" | "Burn" | "BalanceChange">(type: K, event: any): void;
950
+ fetchEvents(start?: import("o1js").UInt32, end?: import("o1js").UInt32): Promise<{
951
+ type: string;
952
+ event: {
953
+ data: import("o1js").ProvablePure<any>;
954
+ transactionInfo: {
955
+ transactionHash: string;
956
+ transactionStatus: string;
957
+ transactionMemo: string;
958
+ };
959
+ };
960
+ blockHeight: import("o1js").UInt32;
961
+ blockHash: string;
962
+ parentBlockHash: string;
963
+ globalSlot: import("o1js").UInt32;
964
+ chainStatus: string;
965
+ }[]>;
966
+ };
967
+ MAX_ACCOUNT_UPDATES: number;
968
+ _methods?: import("node_modules/o1js/dist/node/lib/proof-system/zkprogram.js").MethodInterface[];
969
+ _methodMetadata?: Record<string, {
970
+ actions: number;
971
+ rows: number;
972
+ digest: string;
973
+ gates: import("node_modules/o1js/dist/node/snarky.js").Gate[];
974
+ }>;
975
+ _provers?: import("node_modules/o1js/dist/node/snarky.js").Pickles.Prover[];
976
+ _maxProofsVerified?: 0 | 1 | 2;
977
+ _verificationKey?: {
978
+ data: string;
979
+ hash: Field;
980
+ };
981
+ Proof(): {
982
+ new ({ proof, publicInput, publicOutput, maxProofsVerified, }: {
983
+ proof: unknown;
984
+ publicInput: import("o1js").ZkappPublicInput;
985
+ publicOutput: undefined;
986
+ maxProofsVerified: 0 | 2 | 1;
987
+ }): {
988
+ verify(): void;
989
+ verifyIf(condition: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool): void;
990
+ publicInput: import("o1js").ZkappPublicInput;
991
+ publicOutput: undefined;
992
+ proof: unknown;
993
+ maxProofsVerified: 0 | 2 | 1;
994
+ shouldVerify: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
995
+ toJSON(): import("o1js").JsonProof;
996
+ publicFields(): {
997
+ input: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
998
+ output: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
999
+ };
1000
+ };
1001
+ publicInputType: Omit<import("node_modules/o1js/dist/node/lib/provable/types/provable-intf.js").Provable<{
1002
+ accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
1003
+ calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
1004
+ }, {
1005
+ accountUpdate: bigint;
1006
+ calls: bigint;
1007
+ }>, "fromFields"> & {
1008
+ fromFields: (fields: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[]) => {
1009
+ accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
1010
+ calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
1011
+ };
1012
+ } & {
1013
+ toInput: (x: {
1014
+ accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
1015
+ calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
1016
+ }) => {
1017
+ fields?: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[] | undefined;
1018
+ packed?: [import("node_modules/o1js/dist/node/lib/provable/field.js").Field, number][] | undefined;
1019
+ };
1020
+ toJSON: (x: {
1021
+ accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
1022
+ calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
1023
+ }) => {
1024
+ accountUpdate: string;
1025
+ calls: string;
1026
+ };
1027
+ fromJSON: (x: {
1028
+ accountUpdate: string;
1029
+ calls: string;
1030
+ }) => {
1031
+ accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
1032
+ calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
1033
+ };
1034
+ empty: () => {
1035
+ accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
1036
+ calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
1037
+ };
1038
+ };
1039
+ publicOutputType: import("node_modules/o1js/dist/node/lib/provable/types/struct.js").ProvablePureExtended<undefined, undefined, null>;
1040
+ tag: () => typeof SmartContract;
1041
+ 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"]>>>;
1042
+ dummy<Input, OutPut>(publicInput: Input, publicOutput: OutPut, maxProofsVerified: 0 | 2 | 1, domainLog2?: number): Promise<import("o1js").Proof<Input, OutPut>>;
1043
+ readonly provable: {
1044
+ toFields: (value: import("o1js").Proof<any, any>) => import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
1045
+ toAuxiliary: (value?: import("o1js").Proof<any, any> | undefined) => any[];
1046
+ fromFields: (fields: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[], aux: any[]) => import("o1js").Proof<any, any>;
1047
+ sizeInFields(): number;
1048
+ check: (value: import("o1js").Proof<any, any>) => void;
1049
+ toValue: (x: import("o1js").Proof<any, any>) => import("node_modules/o1js/dist/node/lib/proof-system/proof.js").ProofValue<any, any>;
1050
+ 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>;
1051
+ toCanonical?: ((x: import("o1js").Proof<any, any>) => import("o1js").Proof<any, any>) | undefined;
1052
+ };
1053
+ publicFields(value: import("o1js").ProofBase<any, any>): {
1054
+ input: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
1055
+ output: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
1056
+ };
1057
+ _proofFromBase64(proofString: string, maxProofsVerified: 0 | 2 | 1): unknown;
1058
+ _proofToBase64(proof: unknown, maxProofsVerified: 0 | 2 | 1): string;
1059
+ };
1060
+ compile({ cache, forceRecompile, }?: {
1061
+ cache?: import("o1js").Cache | undefined;
1062
+ forceRecompile?: boolean | undefined;
1063
+ }): Promise<{
1064
+ verificationKey: {
1065
+ data: string;
1066
+ hash: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
1067
+ };
1068
+ provers: import("node_modules/o1js/dist/node/snarky.js").Pickles.Prover[];
1069
+ 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>;
1070
+ }>;
1071
+ digest(): Promise<string>;
1072
+ runOutsideCircuit(run: () => void): void;
1073
+ analyzeMethods({ printSummary }?: {
1074
+ printSummary?: boolean | undefined;
1075
+ }): Promise<Record<string, {
1076
+ actions: number;
1077
+ rows: number;
1078
+ digest: string;
1079
+ gates: import("node_modules/o1js/dist/node/snarky.js").Gate[];
1080
+ }>>;
1081
+ };
1082
+ };
1083
+ export {};