@silvana-one/nft 0.1.31 → 0.2.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 (197) hide show
  1. package/dist/node/index.cjs +57 -1
  2. package/dist/node/marketplace/bb.d.ts +18 -0
  3. package/dist/node/marketplace/bb.js +58 -0
  4. package/dist/node/marketplace/bb.js.map +1 -1
  5. package/dist/tsconfig.node.tsbuildinfo +1 -0
  6. package/dist/web/src/admin/advanced.js.map +1 -0
  7. package/dist/web/src/admin/index.js.map +1 -0
  8. package/dist/web/src/contracts/admin.js.map +1 -0
  9. package/dist/web/src/contracts/collection.js.map +1 -0
  10. package/dist/web/src/contracts/index.js.map +1 -0
  11. package/dist/web/src/contracts/nft.js.map +1 -0
  12. package/dist/web/src/contracts.js.map +1 -0
  13. package/dist/web/src/index.js.map +1 -0
  14. package/dist/web/{interfaces → src/interfaces}/admin.js.map +1 -1
  15. package/dist/web/src/interfaces/approval.js.map +1 -0
  16. package/dist/web/src/interfaces/collection.js.map +1 -0
  17. package/dist/web/src/interfaces/encoding.js.map +1 -0
  18. package/dist/web/src/interfaces/events.js.map +1 -0
  19. package/dist/web/src/interfaces/index.js.map +1 -0
  20. package/dist/web/src/interfaces/ownable.js.map +1 -0
  21. package/dist/web/src/interfaces/owner.js.map +1 -0
  22. package/dist/web/src/interfaces/pausable.js.map +1 -0
  23. package/dist/web/src/interfaces/types.js.map +1 -0
  24. package/dist/web/src/interfaces/update.js.map +1 -0
  25. package/dist/web/src/marketplace/auction.js.map +1 -0
  26. package/dist/web/{marketplace → src/marketplace}/bb.d.ts +18 -0
  27. package/dist/web/{marketplace → src/marketplace}/bb.js +58 -0
  28. package/dist/web/src/marketplace/bb.js.map +1 -0
  29. package/dist/web/src/marketplace/bid.js.map +1 -0
  30. package/dist/web/src/marketplace/index.js.map +1 -0
  31. package/dist/web/src/marketplace/nft-shares.js.map +1 -0
  32. package/dist/web/src/marketplace/offer.js.map +1 -0
  33. package/dist/web/src/marketplace/types.js.map +1 -0
  34. package/dist/web/src/metadata/address.js.map +1 -0
  35. package/dist/web/src/metadata/index.js.map +1 -0
  36. package/dist/web/src/metadata/metadata.js.map +1 -0
  37. package/dist/web/src/metadata/pin.js.map +1 -0
  38. package/dist/web/src/metadata/text.js.map +1 -0
  39. package/dist/web/src/metadata/tree.js.map +1 -0
  40. package/dist/web/src/util/div.js.map +1 -0
  41. package/dist/web/src/util/index.js.map +1 -0
  42. package/dist/web/src/vk.js.map +1 -0
  43. package/dist/web/src/zkprogram-example/game.js.map +1 -0
  44. package/dist/web/src/zkprogram-example/index.js.map +1 -0
  45. package/dist/web/src/zkprogram-example/update.js.map +1 -0
  46. package/dist/web/test/auction.test.d.ts +1212 -0
  47. package/dist/web/test/auction.test.js +1248 -0
  48. package/dist/web/test/auction.test.js.map +1 -0
  49. package/dist/web/test/bb.test.d.ts +1 -0
  50. package/dist/web/test/bb.test.js +159 -0
  51. package/dist/web/test/bb.test.js.map +1 -0
  52. package/dist/web/test/contract.test.d.ts +1 -0
  53. package/dist/web/test/contract.test.js +1333 -0
  54. package/dist/web/test/contract.test.js.map +1 -0
  55. package/dist/web/test/div.test.d.ts +1 -0
  56. package/dist/web/test/div.test.js +55 -0
  57. package/dist/web/test/div.test.js.map +1 -0
  58. package/dist/web/test/helpers/config.d.ts +4 -0
  59. package/dist/web/test/helpers/config.js +103 -0
  60. package/dist/web/test/helpers/config.js.map +1 -0
  61. package/dist/web/test/helpers/metadata.d.ts +30 -0
  62. package/dist/web/test/helpers/metadata.js +155 -0
  63. package/dist/web/test/helpers/metadata.js.map +1 -0
  64. package/dist/web/test/helpers/utils.d.ts +16 -0
  65. package/dist/web/test/helpers/utils.js +36 -0
  66. package/dist/web/test/helpers/utils.js.map +1 -0
  67. package/dist/web/test/helpers/validators.d.ts +15 -0
  68. package/dist/web/test/helpers/validators.js +46 -0
  69. package/dist/web/test/helpers/validators.js.map +1 -0
  70. package/dist/web/test/metadata.test.d.ts +1 -0
  71. package/dist/web/test/metadata.test.js +66 -0
  72. package/dist/web/test/metadata.test.js.map +1 -0
  73. package/dist/web/test/mint.test.d.ts +1 -0
  74. package/dist/web/test/mint.test.js +262 -0
  75. package/dist/web/test/mint.test.js.map +1 -0
  76. package/dist/web/test/pack.test.d.ts +1 -0
  77. package/dist/web/test/pack.test.js +141 -0
  78. package/dist/web/test/pack.test.js.map +1 -0
  79. package/dist/web/test/zkprogram.test.d.ts +1 -0
  80. package/dist/web/test/zkprogram.test.js +728 -0
  81. package/dist/web/test/zkprogram.test.js.map +1 -0
  82. package/dist/web/tsconfig.web.tsbuildinfo +1 -0
  83. package/package.json +88 -14
  84. package/src/marketplace/bb.ts +51 -0
  85. package/dist/tsconfig.tsbuildinfo +0 -1
  86. package/dist/tsconfig.web.tsbuildinfo +0 -1
  87. package/dist/web/admin/advanced.js.map +0 -1
  88. package/dist/web/admin/index.js.map +0 -1
  89. package/dist/web/contracts/admin.js.map +0 -1
  90. package/dist/web/contracts/collection.js.map +0 -1
  91. package/dist/web/contracts/index.js.map +0 -1
  92. package/dist/web/contracts/nft.js.map +0 -1
  93. package/dist/web/contracts.js.map +0 -1
  94. package/dist/web/index.js.map +0 -1
  95. package/dist/web/interfaces/approval.js.map +0 -1
  96. package/dist/web/interfaces/collection.js.map +0 -1
  97. package/dist/web/interfaces/encoding.js.map +0 -1
  98. package/dist/web/interfaces/events.js.map +0 -1
  99. package/dist/web/interfaces/index.js.map +0 -1
  100. package/dist/web/interfaces/ownable.js.map +0 -1
  101. package/dist/web/interfaces/owner.js.map +0 -1
  102. package/dist/web/interfaces/pausable.js.map +0 -1
  103. package/dist/web/interfaces/types.js.map +0 -1
  104. package/dist/web/interfaces/update.js.map +0 -1
  105. package/dist/web/marketplace/auction.js.map +0 -1
  106. package/dist/web/marketplace/bb.js.map +0 -1
  107. package/dist/web/marketplace/bid.js.map +0 -1
  108. package/dist/web/marketplace/index.js.map +0 -1
  109. package/dist/web/marketplace/nft-shares.js.map +0 -1
  110. package/dist/web/marketplace/offer.js.map +0 -1
  111. package/dist/web/marketplace/types.js.map +0 -1
  112. package/dist/web/metadata/address.js.map +0 -1
  113. package/dist/web/metadata/index.js.map +0 -1
  114. package/dist/web/metadata/metadata.js.map +0 -1
  115. package/dist/web/metadata/pin.js.map +0 -1
  116. package/dist/web/metadata/text.js.map +0 -1
  117. package/dist/web/metadata/tree.js.map +0 -1
  118. package/dist/web/util/div.js.map +0 -1
  119. package/dist/web/util/index.js.map +0 -1
  120. package/dist/web/vk.js.map +0 -1
  121. package/dist/web/zkprogram-example/game.js.map +0 -1
  122. package/dist/web/zkprogram-example/index.js.map +0 -1
  123. package/dist/web/zkprogram-example/update.js.map +0 -1
  124. /package/dist/web/{admin → src/admin}/advanced.d.ts +0 -0
  125. /package/dist/web/{admin → src/admin}/advanced.js +0 -0
  126. /package/dist/web/{admin → src/admin}/index.d.ts +0 -0
  127. /package/dist/web/{admin → src/admin}/index.js +0 -0
  128. /package/dist/web/{contracts → src/contracts}/admin.d.ts +0 -0
  129. /package/dist/web/{contracts → src/contracts}/admin.js +0 -0
  130. /package/dist/web/{contracts → src/contracts}/collection.d.ts +0 -0
  131. /package/dist/web/{contracts → src/contracts}/collection.js +0 -0
  132. /package/dist/web/{contracts → src/contracts}/index.d.ts +0 -0
  133. /package/dist/web/{contracts → src/contracts}/index.js +0 -0
  134. /package/dist/web/{contracts → src/contracts}/nft.d.ts +0 -0
  135. /package/dist/web/{contracts → src/contracts}/nft.js +0 -0
  136. /package/dist/web/{contracts.d.ts → src/contracts.d.ts} +0 -0
  137. /package/dist/web/{contracts.js → src/contracts.js} +0 -0
  138. /package/dist/web/{index.d.ts → src/index.d.ts} +0 -0
  139. /package/dist/web/{index.js → src/index.js} +0 -0
  140. /package/dist/web/{interfaces → src/interfaces}/admin.d.ts +0 -0
  141. /package/dist/web/{interfaces → src/interfaces}/admin.js +0 -0
  142. /package/dist/web/{interfaces → src/interfaces}/approval.d.ts +0 -0
  143. /package/dist/web/{interfaces → src/interfaces}/approval.js +0 -0
  144. /package/dist/web/{interfaces → src/interfaces}/collection.d.ts +0 -0
  145. /package/dist/web/{interfaces → src/interfaces}/collection.js +0 -0
  146. /package/dist/web/{interfaces → src/interfaces}/encoding.d.ts +0 -0
  147. /package/dist/web/{interfaces → src/interfaces}/encoding.js +0 -0
  148. /package/dist/web/{interfaces → src/interfaces}/events.d.ts +0 -0
  149. /package/dist/web/{interfaces → src/interfaces}/events.js +0 -0
  150. /package/dist/web/{interfaces → src/interfaces}/index.d.ts +0 -0
  151. /package/dist/web/{interfaces → src/interfaces}/index.js +0 -0
  152. /package/dist/web/{interfaces → src/interfaces}/ownable.d.ts +0 -0
  153. /package/dist/web/{interfaces → src/interfaces}/ownable.js +0 -0
  154. /package/dist/web/{interfaces → src/interfaces}/owner.d.ts +0 -0
  155. /package/dist/web/{interfaces → src/interfaces}/owner.js +0 -0
  156. /package/dist/web/{interfaces → src/interfaces}/pausable.d.ts +0 -0
  157. /package/dist/web/{interfaces → src/interfaces}/pausable.js +0 -0
  158. /package/dist/web/{interfaces → src/interfaces}/types.d.ts +0 -0
  159. /package/dist/web/{interfaces → src/interfaces}/types.js +0 -0
  160. /package/dist/web/{interfaces → src/interfaces}/update.d.ts +0 -0
  161. /package/dist/web/{interfaces → src/interfaces}/update.js +0 -0
  162. /package/dist/web/{marketplace → src/marketplace}/auction.d.ts +0 -0
  163. /package/dist/web/{marketplace → src/marketplace}/auction.js +0 -0
  164. /package/dist/web/{marketplace → src/marketplace}/bid.d.ts +0 -0
  165. /package/dist/web/{marketplace → src/marketplace}/bid.js +0 -0
  166. /package/dist/web/{marketplace → src/marketplace}/index.d.ts +0 -0
  167. /package/dist/web/{marketplace → src/marketplace}/index.js +0 -0
  168. /package/dist/web/{marketplace → src/marketplace}/nft-shares.d.ts +0 -0
  169. /package/dist/web/{marketplace → src/marketplace}/nft-shares.js +0 -0
  170. /package/dist/web/{marketplace → src/marketplace}/offer.d.ts +0 -0
  171. /package/dist/web/{marketplace → src/marketplace}/offer.js +0 -0
  172. /package/dist/web/{marketplace → src/marketplace}/types.d.ts +0 -0
  173. /package/dist/web/{marketplace → src/marketplace}/types.js +0 -0
  174. /package/dist/web/{metadata → src/metadata}/address.d.ts +0 -0
  175. /package/dist/web/{metadata → src/metadata}/address.js +0 -0
  176. /package/dist/web/{metadata → src/metadata}/index.d.ts +0 -0
  177. /package/dist/web/{metadata → src/metadata}/index.js +0 -0
  178. /package/dist/web/{metadata → src/metadata}/metadata.d.ts +0 -0
  179. /package/dist/web/{metadata → src/metadata}/metadata.js +0 -0
  180. /package/dist/web/{metadata → src/metadata}/pin.d.ts +0 -0
  181. /package/dist/web/{metadata → src/metadata}/pin.js +0 -0
  182. /package/dist/web/{metadata → src/metadata}/text.d.ts +0 -0
  183. /package/dist/web/{metadata → src/metadata}/text.js +0 -0
  184. /package/dist/web/{metadata → src/metadata}/tree.d.ts +0 -0
  185. /package/dist/web/{metadata → src/metadata}/tree.js +0 -0
  186. /package/dist/web/{util → src/util}/div.d.ts +0 -0
  187. /package/dist/web/{util → src/util}/div.js +0 -0
  188. /package/dist/web/{util → src/util}/index.d.ts +0 -0
  189. /package/dist/web/{util → src/util}/index.js +0 -0
  190. /package/dist/web/{vk.d.ts → src/vk.d.ts} +0 -0
  191. /package/dist/web/{vk.js → src/vk.js} +0 -0
  192. /package/dist/web/{zkprogram-example → src/zkprogram-example}/game.d.ts +0 -0
  193. /package/dist/web/{zkprogram-example → src/zkprogram-example}/game.js +0 -0
  194. /package/dist/web/{zkprogram-example → src/zkprogram-example}/index.d.ts +0 -0
  195. /package/dist/web/{zkprogram-example → src/zkprogram-example}/index.js +0 -0
  196. /package/dist/web/{zkprogram-example → src/zkprogram-example}/update.d.ts +0 -0
  197. /package/dist/web/{zkprogram-example → src/zkprogram-example}/update.js +0 -0
@@ -0,0 +1,1212 @@
1
+ import { VerificationKey, Field, AccountUpdate, UInt32, Bool, Cache, UInt64, PublicKey, UInt8 } from "o1js";
2
+ import { NFTAdmin, CollectionData, MintParams, Auction, TransferParams, NFTApprovalContractConstructor } from "../src/index.js";
3
+ import { Whitelist } from "@silvana-one/storage";
4
+ export declare function AuctionContractsFactory(params: {
5
+ useAdvancedAdmin: boolean;
6
+ approval: "auction" | "shares";
7
+ }): {
8
+ Collection: {
9
+ new (address: PublicKey, tokenId?: Field): {
10
+ collectionName: import("o1js").State<import("node_modules/o1js/dist/node/lib/provable/field.js").Field>;
11
+ creator: import("o1js").State<PublicKey>;
12
+ admin: import("o1js").State<PublicKey>;
13
+ baseURL: import("o1js").State<import("node_modules/o1js/dist/node/lib/provable/field.js").Field>;
14
+ packedData: import("o1js").State<import("node_modules/o1js/dist/node/lib/provable/field.js").Field>;
15
+ deploy(props: import("../src/index.js").CollectionDeployProps): Promise<void>;
16
+ initialize(masterNFT: MintParams, collectionData: CollectionData): Promise<void>;
17
+ events: {
18
+ mint: typeof import("../src/index.js").MintEvent;
19
+ update: typeof PublicKey;
20
+ transfer: typeof import("../src/index.js").TransferEvent;
21
+ approve: typeof import("../src/index.js").ApproveEvent;
22
+ upgradeNFTVerificationKey: typeof import("../src/index.js").UpgradeVerificationKeyEvent;
23
+ upgradeVerificationKey: typeof import("node_modules/o1js/dist/node/lib/provable/field.js").Field & ((x: string | number | bigint | import("node_modules/o1js/dist/node/lib/provable/core/fieldvar.js").FieldConst | import("node_modules/o1js/dist/node/lib/provable/core/fieldvar.js").FieldVar | import("node_modules/o1js/dist/node/lib/provable/field.js").Field) => import("node_modules/o1js/dist/node/lib/provable/field.js").Field);
24
+ limitMinting: typeof import("../src/index.js").LimitMintingEvent;
25
+ pause: typeof import("../src/index.js").PauseEvent;
26
+ resume: typeof import("../src/index.js").PauseEvent;
27
+ pauseNFT: typeof import("../src/index.js").PauseNFTEvent;
28
+ resumeNFT: typeof import("../src/index.js").PauseNFTEvent;
29
+ ownershipChange: typeof import("../src/index.js").OwnershipChangeEvent;
30
+ setName: typeof import("node_modules/o1js/dist/node/lib/provable/field.js").Field & ((x: string | number | bigint | import("node_modules/o1js/dist/node/lib/provable/core/fieldvar.js").FieldConst | import("node_modules/o1js/dist/node/lib/provable/core/fieldvar.js").FieldVar | import("node_modules/o1js/dist/node/lib/provable/field.js").Field) => import("node_modules/o1js/dist/node/lib/provable/field.js").Field);
31
+ setBaseURL: typeof import("node_modules/o1js/dist/node/lib/provable/field.js").Field & ((x: string | number | bigint | import("node_modules/o1js/dist/node/lib/provable/core/fieldvar.js").FieldConst | import("node_modules/o1js/dist/node/lib/provable/core/fieldvar.js").FieldVar | import("node_modules/o1js/dist/node/lib/provable/field.js").Field) => import("node_modules/o1js/dist/node/lib/provable/field.js").Field);
32
+ setRoyaltyFee: typeof UInt32;
33
+ setTransferFee: typeof UInt64;
34
+ setAdmin: typeof PublicKey;
35
+ };
36
+ approveBase(forest: import("o1js").AccountUpdateForest): Promise<void>;
37
+ getAdminContract(): import("../src/index.js").NFTAdminBase;
38
+ getOwnerContract(address: PublicKey): import("../src/index.js").NFTOwnerBase;
39
+ getApprovalContract(address: PublicKey): import("../src/index.js").NFTApprovalBase;
40
+ getUpdateContract(address: PublicKey): import("../src/index.js").NFTUpdateBase;
41
+ ensureCreatorSignature(): Promise<AccountUpdate>;
42
+ ensureOwnerSignature(owner: PublicKey): Promise<AccountUpdate>;
43
+ ensureNotPaused(): Promise<void>;
44
+ mintByCreator(params: MintParams): Promise<void>;
45
+ mint(mintRequest: import("../src/index.js").MintRequest): Promise<void>;
46
+ _mint(params: MintParams): Promise<import("../src/index.js").MintEvent>;
47
+ update(proof: import("../src/index.js").NFTUpdateProof, vk: VerificationKey): Promise<void>;
48
+ updateWithOracle(proof: import("../src/index.js").NFTUpdateProof, vk: VerificationKey): Promise<void>;
49
+ _update(proof: import("../src/index.js").NFTUpdateProof, vk: VerificationKey): Promise<void>;
50
+ approveAddress(nftAddress: PublicKey, approved: PublicKey): Promise<void>;
51
+ approveAddressByProof(nftAddress: PublicKey, approved: PublicKey): Promise<void>;
52
+ transferBySignature(params: TransferParams): Promise<void>;
53
+ transferByProof(params: TransferParams): Promise<void>;
54
+ approvedTransferByProof(params: TransferParams): Promise<void>;
55
+ approvedTransferBySignature(params: TransferParams): Promise<void>;
56
+ _transfer(params: {
57
+ transferEventDraft: import("../src/index.js").TransferExtendedParams;
58
+ transferFee: UInt64;
59
+ royaltyFee: UInt32;
60
+ }): Promise<import("../src/index.js").TransferExtendedParams>;
61
+ upgradeNFTVerificationKeyBySignature(address: PublicKey, vk: VerificationKey): Promise<void>;
62
+ upgradeNFTVerificationKeyByProof(address: PublicKey, vk: VerificationKey): Promise<void>;
63
+ _upgrade(address: PublicKey, vk: VerificationKey): Promise<import("../src/index.js").UpgradeVerificationKeyData>;
64
+ upgradeVerificationKey(vk: VerificationKey): Promise<void>;
65
+ limitMinting(): Promise<void>;
66
+ pause(): Promise<void>;
67
+ resume(): Promise<void>;
68
+ pauseNFTBySignature(address: PublicKey): Promise<void>;
69
+ pauseNFTByProof(address: PublicKey): Promise<void>;
70
+ resumeNFT(address: PublicKey): Promise<void>;
71
+ resumeNFTByProof(address: PublicKey): Promise<void>;
72
+ setName(name: Field): Promise<void>;
73
+ setBaseURL(baseURL: Field): Promise<void>;
74
+ setAdmin(admin: PublicKey): Promise<void>;
75
+ setRoyaltyFee(royaltyFee: UInt32): Promise<void>;
76
+ setTransferFee(transferFee: UInt64): Promise<void>;
77
+ transferOwnership(to: PublicKey): Promise<PublicKey>;
78
+ getNFTState(address: PublicKey): Promise<import("../src/index.js").NFTStateStruct>;
79
+ deriveTokenId(): import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
80
+ readonly internal: {
81
+ mint({ address, amount, }: {
82
+ address: PublicKey | AccountUpdate | import("o1js").SmartContract;
83
+ amount: number | bigint | UInt64;
84
+ }): AccountUpdate;
85
+ burn({ address, amount, }: {
86
+ address: PublicKey | AccountUpdate | import("o1js").SmartContract;
87
+ amount: number | bigint | UInt64;
88
+ }): AccountUpdate;
89
+ send({ from, to, amount, }: {
90
+ from: PublicKey | AccountUpdate | import("o1js").SmartContract;
91
+ to: PublicKey | AccountUpdate | import("o1js").SmartContract;
92
+ amount: number | bigint | UInt64;
93
+ }): AccountUpdate;
94
+ };
95
+ forEachUpdate(updates: import("o1js").AccountUpdateForest, callback: (update: AccountUpdate, usesToken: Bool) => void): void;
96
+ checkZeroBalanceChange(updates: import("o1js").AccountUpdateForest): void;
97
+ approveAccountUpdate(accountUpdate: AccountUpdate | import("o1js").AccountUpdateTree): Promise<void>;
98
+ approveAccountUpdates(accountUpdates: (AccountUpdate | import("o1js").AccountUpdateTree)[]): Promise<void>;
99
+ transfer(from: PublicKey | AccountUpdate, to: PublicKey | AccountUpdate, amount: UInt64 | number | bigint): Promise<void>;
100
+ "__#3@#private": any;
101
+ address: PublicKey;
102
+ tokenId: Field;
103
+ init(): void;
104
+ requireSignature(): void;
105
+ skipAuthorization(): void;
106
+ readonly self: AccountUpdate;
107
+ newSelf(methodName?: string): AccountUpdate;
108
+ sender: {
109
+ self: import("o1js").SmartContract;
110
+ getUnconstrained(): PublicKey;
111
+ getAndRequireSignature(): PublicKey;
112
+ };
113
+ readonly account: import("node_modules/o1js/dist/node/lib/mina/precondition.js").Account;
114
+ readonly network: import("node_modules/o1js/dist/node/lib/mina/precondition.js").Network;
115
+ readonly currentSlot: import("node_modules/o1js/dist/node/lib/mina/precondition.js").CurrentSlot;
116
+ approve(update: AccountUpdate | import("o1js").AccountUpdateTree | import("o1js").AccountUpdateForest): void;
117
+ send(args: {
118
+ to: PublicKey | AccountUpdate | import("o1js").SmartContract;
119
+ amount: number | bigint | UInt64;
120
+ }): AccountUpdate;
121
+ readonly balance: {
122
+ addInPlace(x: string | number | bigint | UInt64 | UInt32 | import("o1js").Int64): void;
123
+ subInPlace(x: string | number | bigint | UInt64 | UInt32 | import("o1js").Int64): void;
124
+ };
125
+ emitEventIf<K extends "update" | "approve" | "transfer" | "upgradeVerificationKey" | "pause" | "resume" | "mint" | "upgradeNFTVerificationKey" | "limitMinting" | "pauseNFT" | "resumeNFT" | "ownershipChange" | "setName" | "setBaseURL" | "setRoyaltyFee" | "setTransferFee" | "setAdmin">(condition: Bool, type: K, event: any): void;
126
+ emitEvent<K extends "update" | "approve" | "transfer" | "upgradeVerificationKey" | "pause" | "resume" | "mint" | "upgradeNFTVerificationKey" | "limitMinting" | "pauseNFT" | "resumeNFT" | "ownershipChange" | "setName" | "setBaseURL" | "setRoyaltyFee" | "setTransferFee" | "setAdmin">(type: K, event: any): void;
127
+ fetchEvents(start?: UInt32, end?: UInt32): Promise<{
128
+ type: string;
129
+ event: {
130
+ data: import("o1js").ProvablePure<any>;
131
+ transactionInfo: {
132
+ transactionHash: string;
133
+ transactionStatus: string;
134
+ transactionMemo: string;
135
+ };
136
+ };
137
+ blockHeight: UInt32;
138
+ blockHash: string;
139
+ parentBlockHash: string;
140
+ globalSlot: UInt32;
141
+ chainStatus: string;
142
+ }[]>;
143
+ };
144
+ MAX_ACCOUNT_UPDATES: number;
145
+ _methods?: import("node_modules/o1js/dist/node/lib/proof-system/zkprogram.js").MethodInterface[];
146
+ _methodMetadata?: Record<string, {
147
+ actions: number;
148
+ rows: number;
149
+ digest: string;
150
+ gates: import("node_modules/o1js/dist/node/snarky.js").Gate[];
151
+ }>;
152
+ _provers?: import("node_modules/o1js/dist/node/snarky.js").Pickles.Prover[];
153
+ _maxProofsVerified?: 0 | 1 | 2;
154
+ _verificationKey?: {
155
+ data: string;
156
+ hash: Field;
157
+ };
158
+ Proof(): {
159
+ new ({ proof, publicInput, publicOutput, maxProofsVerified, }: {
160
+ proof: unknown;
161
+ publicInput: import("o1js").ZkappPublicInput;
162
+ publicOutput: undefined;
163
+ maxProofsVerified: 0 | 2 | 1;
164
+ }): {
165
+ verify(): void;
166
+ verifyIf(condition: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool): void;
167
+ publicInput: import("o1js").ZkappPublicInput;
168
+ publicOutput: undefined;
169
+ proof: unknown;
170
+ maxProofsVerified: 0 | 2 | 1;
171
+ shouldVerify: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
172
+ toJSON(): import("o1js").JsonProof;
173
+ publicFields(): {
174
+ input: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
175
+ output: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
176
+ };
177
+ };
178
+ publicInputType: Omit<import("node_modules/o1js/dist/node/lib/provable/types/provable-intf.js").Provable<{
179
+ accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
180
+ calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
181
+ }, {
182
+ accountUpdate: bigint;
183
+ calls: bigint;
184
+ }>, "fromFields"> & {
185
+ fromFields: (fields: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[]) => {
186
+ accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
187
+ calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
188
+ };
189
+ } & {
190
+ toInput: (x: {
191
+ accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
192
+ calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
193
+ }) => {
194
+ fields?: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[] | undefined;
195
+ packed?: [import("node_modules/o1js/dist/node/lib/provable/field.js").Field, number][] | undefined;
196
+ };
197
+ toJSON: (x: {
198
+ accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
199
+ calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
200
+ }) => {
201
+ accountUpdate: string;
202
+ calls: string;
203
+ };
204
+ fromJSON: (x: {
205
+ accountUpdate: string;
206
+ calls: string;
207
+ }) => {
208
+ accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
209
+ calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
210
+ };
211
+ empty: () => {
212
+ accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
213
+ calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
214
+ };
215
+ };
216
+ publicOutputType: import("node_modules/o1js/dist/node/lib/provable/types/struct.js").ProvablePureExtended<undefined, undefined, null>;
217
+ tag: () => typeof import("o1js").SmartContract;
218
+ 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"]>>>;
219
+ dummy<Input, OutPut>(publicInput: Input, publicOutput: OutPut, maxProofsVerified: 0 | 2 | 1, domainLog2?: number): Promise<import("o1js").Proof<Input, OutPut>>;
220
+ readonly provable: {
221
+ toFields: (value: import("o1js").Proof<any, any>) => import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
222
+ toAuxiliary: (value?: import("o1js").Proof<any, any> | undefined) => any[];
223
+ fromFields: (fields: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[], aux: any[]) => import("o1js").Proof<any, any>;
224
+ sizeInFields(): number;
225
+ check: (value: import("o1js").Proof<any, any>) => void;
226
+ toValue: (x: import("o1js").Proof<any, any>) => import("node_modules/o1js/dist/node/lib/proof-system/proof.js").ProofValue<any, any>;
227
+ 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>;
228
+ toCanonical?: ((x: import("o1js").Proof<any, any>) => import("o1js").Proof<any, any>) | undefined;
229
+ };
230
+ publicFields(value: import("o1js").ProofBase<any, any>): {
231
+ input: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
232
+ output: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
233
+ };
234
+ _proofFromBase64(proofString: string, maxProofsVerified: 0 | 2 | 1): unknown;
235
+ _proofToBase64(proof: unknown, maxProofsVerified: 0 | 2 | 1): string;
236
+ };
237
+ compile({ cache, forceRecompile, }?: {
238
+ cache?: Cache | undefined;
239
+ forceRecompile?: boolean | undefined;
240
+ }): Promise<{
241
+ verificationKey: {
242
+ data: string;
243
+ hash: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
244
+ };
245
+ provers: import("node_modules/o1js/dist/node/snarky.js").Pickles.Prover[];
246
+ 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>;
247
+ }>;
248
+ digest(): Promise<string>;
249
+ runOutsideCircuit(run: () => void): void;
250
+ analyzeMethods({ printSummary }?: {
251
+ printSummary?: boolean | undefined;
252
+ }): Promise<Record<string, {
253
+ actions: number;
254
+ rows: number;
255
+ digest: string;
256
+ gates: import("node_modules/o1js/dist/node/snarky.js").Gate[];
257
+ }>>;
258
+ };
259
+ Approval: NFTApprovalContractConstructor;
260
+ Admin: typeof NFTAdmin | {
261
+ new (address: PublicKey, tokenId?: Field): {
262
+ admin: import("o1js").State<PublicKey>;
263
+ upgradeAuthority: import("o1js").State<PublicKey>;
264
+ whitelist: import("o1js").State<Whitelist>;
265
+ data: import("o1js").State<import("node_modules/o1js/dist/node/lib/provable/field.js").Field>;
266
+ deploy(props: import("../src/index.js").NFTAdvancedAdminDeployProps): Promise<void>;
267
+ events: {
268
+ upgradeVerificationKey: typeof import("node_modules/o1js/dist/node/lib/provable/field.js").Field & ((x: string | number | bigint | import("node_modules/o1js/dist/node/lib/provable/core/fieldvar.js").FieldConst | import("node_modules/o1js/dist/node/lib/provable/core/fieldvar.js").FieldVar | import("node_modules/o1js/dist/node/lib/provable/field.js").Field) => import("node_modules/o1js/dist/node/lib/provable/field.js").Field);
269
+ pause: typeof import("../src/index.js").PauseEvent;
270
+ resume: typeof import("../src/index.js").PauseEvent;
271
+ ownershipChange: typeof import("../src/index.js").OwnershipChangeEvent;
272
+ updateWhitelist: typeof Whitelist;
273
+ };
274
+ ensureOwnerSignature(): Promise<AccountUpdate>;
275
+ readonly getUpgradeContractConstructor: import("@silvana-one/upgradable").UpgradeAuthorityContractConstructor;
276
+ getUpgradeContract(): Promise<import("@silvana-one/upgradable").UpgradeAuthorityBase>;
277
+ upgradeVerificationKey(vk: VerificationKey): Promise<void>;
278
+ canMint(mintRequest: import("../src/index.js").MintRequest): Promise<import("../src/index.js").MintParamsOption>;
279
+ canUpdate(input: import("../src/index.js").NFTState, output: import("../src/index.js").NFTState): Promise<import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool>;
280
+ canTransfer(transferEvent: import("../src/index.js").TransferEvent): Promise<import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool>;
281
+ updateWhitelist(whitelist: Whitelist): Promise<void>;
282
+ pause(): Promise<void>;
283
+ resume(): Promise<void>;
284
+ transferOwnership(to: PublicKey): Promise<PublicKey>;
285
+ canChangeVerificationKey(vk: VerificationKey, address: PublicKey, tokenId: Field): Promise<Bool>;
286
+ canChangeName(name: Field): Promise<Bool>;
287
+ canChangeCreator(creator: PublicKey): Promise<Bool>;
288
+ canChangeBaseUri(baseUri: Field): Promise<Bool>;
289
+ canChangeRoyalty(royaltyFee: UInt32): Promise<Bool>;
290
+ canChangeTransferFee(transferFee: UInt64): Promise<Bool>;
291
+ canSetAdmin(admin: PublicKey): Promise<Bool>;
292
+ canPause(): Promise<Bool>;
293
+ canResume(): Promise<Bool>;
294
+ "__#3@#private": any;
295
+ address: PublicKey;
296
+ tokenId: Field;
297
+ init(): void;
298
+ requireSignature(): void;
299
+ skipAuthorization(): void;
300
+ readonly self: AccountUpdate;
301
+ newSelf(methodName?: string): AccountUpdate;
302
+ sender: {
303
+ self: import("o1js").SmartContract;
304
+ getUnconstrained(): PublicKey;
305
+ getAndRequireSignature(): PublicKey;
306
+ };
307
+ readonly account: import("node_modules/o1js/dist/node/lib/mina/precondition.js").Account;
308
+ readonly network: import("node_modules/o1js/dist/node/lib/mina/precondition.js").Network;
309
+ readonly currentSlot: import("node_modules/o1js/dist/node/lib/mina/precondition.js").CurrentSlot;
310
+ approve(update: AccountUpdate | import("o1js").AccountUpdateTree | import("o1js").AccountUpdateForest): void;
311
+ send(args: {
312
+ to: PublicKey | AccountUpdate | import("o1js").SmartContract;
313
+ amount: number | bigint | UInt64;
314
+ }): AccountUpdate;
315
+ readonly balance: {
316
+ addInPlace(x: string | number | bigint | UInt64 | UInt32 | import("o1js").Int64): void;
317
+ subInPlace(x: string | number | bigint | UInt64 | UInt32 | import("o1js").Int64): void;
318
+ };
319
+ emitEventIf<K extends "upgradeVerificationKey" | "pause" | "resume" | "ownershipChange" | "updateWhitelist">(condition: Bool, type: K, event: any): void;
320
+ emitEvent<K extends "upgradeVerificationKey" | "pause" | "resume" | "ownershipChange" | "updateWhitelist">(type: K, event: any): void;
321
+ fetchEvents(start?: UInt32, end?: UInt32): Promise<{
322
+ type: string;
323
+ event: {
324
+ data: import("o1js").ProvablePure<any>;
325
+ transactionInfo: {
326
+ transactionHash: string;
327
+ transactionStatus: string;
328
+ transactionMemo: string;
329
+ };
330
+ };
331
+ blockHeight: UInt32;
332
+ blockHash: string;
333
+ parentBlockHash: string;
334
+ globalSlot: UInt32;
335
+ chainStatus: string;
336
+ }[]>;
337
+ };
338
+ _methods?: import("node_modules/o1js/dist/node/lib/proof-system/zkprogram.js").MethodInterface[];
339
+ _methodMetadata?: Record<string, {
340
+ actions: number;
341
+ rows: number;
342
+ digest: string;
343
+ gates: import("node_modules/o1js/dist/node/snarky.js").Gate[];
344
+ }>;
345
+ _provers?: import("node_modules/o1js/dist/node/snarky.js").Pickles.Prover[];
346
+ _maxProofsVerified?: 0 | 1 | 2;
347
+ _verificationKey?: {
348
+ data: string;
349
+ hash: Field;
350
+ };
351
+ Proof(): {
352
+ new ({ proof, publicInput, publicOutput, maxProofsVerified, }: {
353
+ proof: unknown;
354
+ publicInput: import("o1js").ZkappPublicInput;
355
+ publicOutput: undefined;
356
+ maxProofsVerified: 0 | 2 | 1;
357
+ }): {
358
+ verify(): void;
359
+ verifyIf(condition: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool): void;
360
+ publicInput: import("o1js").ZkappPublicInput;
361
+ publicOutput: undefined;
362
+ proof: unknown;
363
+ maxProofsVerified: 0 | 2 | 1;
364
+ shouldVerify: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
365
+ toJSON(): import("o1js").JsonProof;
366
+ publicFields(): {
367
+ input: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
368
+ output: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
369
+ };
370
+ };
371
+ publicInputType: Omit<import("node_modules/o1js/dist/node/lib/provable/types/provable-intf.js").Provable<{
372
+ accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
373
+ calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
374
+ }, {
375
+ accountUpdate: bigint;
376
+ calls: bigint;
377
+ }>, "fromFields"> & {
378
+ fromFields: (fields: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[]) => {
379
+ accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
380
+ calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
381
+ };
382
+ } & {
383
+ toInput: (x: {
384
+ accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
385
+ calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
386
+ }) => {
387
+ fields?: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[] | undefined;
388
+ packed?: [import("node_modules/o1js/dist/node/lib/provable/field.js").Field, number][] | undefined;
389
+ };
390
+ toJSON: (x: {
391
+ accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
392
+ calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
393
+ }) => {
394
+ accountUpdate: string;
395
+ calls: string;
396
+ };
397
+ fromJSON: (x: {
398
+ accountUpdate: string;
399
+ calls: string;
400
+ }) => {
401
+ accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
402
+ calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
403
+ };
404
+ empty: () => {
405
+ accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
406
+ calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
407
+ };
408
+ };
409
+ publicOutputType: import("node_modules/o1js/dist/node/lib/provable/types/struct.js").ProvablePureExtended<undefined, undefined, null>;
410
+ tag: () => typeof import("o1js").SmartContract;
411
+ 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"]>>>;
412
+ dummy<Input, OutPut>(publicInput: Input, publicOutput: OutPut, maxProofsVerified: 0 | 2 | 1, domainLog2?: number): Promise<import("o1js").Proof<Input, OutPut>>;
413
+ readonly provable: {
414
+ toFields: (value: import("o1js").Proof<any, any>) => import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
415
+ toAuxiliary: (value?: import("o1js").Proof<any, any> | undefined) => any[];
416
+ fromFields: (fields: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[], aux: any[]) => import("o1js").Proof<any, any>;
417
+ sizeInFields(): number;
418
+ check: (value: import("o1js").Proof<any, any>) => void;
419
+ toValue: (x: import("o1js").Proof<any, any>) => import("node_modules/o1js/dist/node/lib/proof-system/proof.js").ProofValue<any, any>;
420
+ 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>;
421
+ toCanonical?: ((x: import("o1js").Proof<any, any>) => import("o1js").Proof<any, any>) | undefined;
422
+ };
423
+ publicFields(value: import("o1js").ProofBase<any, any>): {
424
+ input: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
425
+ output: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
426
+ };
427
+ _proofFromBase64(proofString: string, maxProofsVerified: 0 | 2 | 1): unknown;
428
+ _proofToBase64(proof: unknown, maxProofsVerified: 0 | 2 | 1): string;
429
+ };
430
+ compile({ cache, forceRecompile, }?: {
431
+ cache?: Cache | undefined;
432
+ forceRecompile?: boolean | undefined;
433
+ }): Promise<{
434
+ verificationKey: {
435
+ data: string;
436
+ hash: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
437
+ };
438
+ provers: import("node_modules/o1js/dist/node/snarky.js").Pickles.Prover[];
439
+ 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>;
440
+ }>;
441
+ digest(): Promise<string>;
442
+ runOutsideCircuit(run: () => void): void;
443
+ analyzeMethods({ printSummary }?: {
444
+ printSummary?: boolean | undefined;
445
+ }): Promise<Record<string, {
446
+ actions: number;
447
+ rows: number;
448
+ digest: string;
449
+ gates: import("node_modules/o1js/dist/node/snarky.js").Gate[];
450
+ }>>;
451
+ };
452
+ NFTSharesAdmin: {
453
+ new (address: PublicKey, tokenId?: Field): {
454
+ admin: import("o1js").State<PublicKey>;
455
+ owner: import("o1js").State<PublicKey>;
456
+ deploy(props: import("../src/index.js").NFTSharesAdminDeployProps): Promise<void>;
457
+ updateVerificationKey(vk: VerificationKey): Promise<void>;
458
+ ensureAdminSignature(): AccountUpdate;
459
+ getOwner(): {
460
+ data: import("o1js").State<import("../src/index.js").NFTSharesDataPacked>;
461
+ subscriptionOpen: import("o1js").State<import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool>;
462
+ sharesOutstanding: import("o1js").State<UInt64>;
463
+ deploy(props: import("../src/index.js").NFTSharesOwnerDeployProps): Promise<void>;
464
+ ensureOwnerSignature(): import("../src/index.js").NFTSharesData;
465
+ getAuction(auction: PublicKey): {
466
+ auctionData: import("o1js").State<import("../src/index.js").AuctionPacked>;
467
+ bidAmount: import("o1js").State<UInt64>;
468
+ settled: import("o1js").State<import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool>;
469
+ deploy(args: import("../src/index.js").NonFungibleTokenAuctionContractDeployProps): Promise<void>;
470
+ events: {
471
+ bid: typeof import("../src/index.js").AuctionBidEvent;
472
+ settleAuction: typeof TransferParams;
473
+ canTransfer: typeof import("../src/index.js").TransferEvent;
474
+ settlePayment: typeof UInt64;
475
+ settleAuctioneerPayment: typeof UInt64;
476
+ withdraw: typeof UInt64;
477
+ };
478
+ getCollectionContract(address: PublicKey): import("../src/index.js").NFTCollectionBase;
479
+ calculateSaleFee(params: {
480
+ price: UInt64;
481
+ saleFee: UInt32;
482
+ transferFee: UInt64;
483
+ }): UInt64;
484
+ bid(price: UInt64, bidder: PublicKey): Promise<Auction>;
485
+ getAuctionState(): Promise<import("../src/index.js").AuctionState>;
486
+ settleAuction(): Promise<void>;
487
+ withdrawNFT(): Promise<void>;
488
+ canTransfer(params: import("../src/index.js").TransferExtendedParams): Promise<Bool>;
489
+ settlePayment(): Promise<void>;
490
+ settleAuctioneerPayment(amount: UInt64): Promise<void>;
491
+ withdraw(): Promise<void>;
492
+ "__#3@#private": any;
493
+ address: PublicKey;
494
+ tokenId: Field;
495
+ init(): void;
496
+ requireSignature(): void;
497
+ skipAuthorization(): void;
498
+ readonly self: AccountUpdate;
499
+ newSelf(methodName?: string): AccountUpdate;
500
+ sender: {
501
+ self: import("o1js").SmartContract;
502
+ getUnconstrained(): PublicKey;
503
+ getAndRequireSignature(): PublicKey;
504
+ };
505
+ readonly account: import("node_modules/o1js/dist/node/lib/mina/precondition.js").Account;
506
+ readonly network: import("node_modules/o1js/dist/node/lib/mina/precondition.js").Network;
507
+ readonly currentSlot: import("node_modules/o1js/dist/node/lib/mina/precondition.js").CurrentSlot;
508
+ approve(update: AccountUpdate | import("o1js").AccountUpdateTree | import("o1js").AccountUpdateForest): void;
509
+ send(args: {
510
+ to: PublicKey | AccountUpdate | import("o1js").SmartContract;
511
+ amount: number | bigint | UInt64;
512
+ }): AccountUpdate;
513
+ readonly balance: {
514
+ addInPlace(x: string | number | bigint | UInt64 | UInt32 | import("o1js").Int64): void;
515
+ subInPlace(x: string | number | bigint | UInt64 | UInt32 | import("o1js").Int64): void;
516
+ };
517
+ emitEventIf<K extends "canTransfer" | "withdraw" | "bid" | "settleAuction" | "settlePayment" | "settleAuctioneerPayment">(condition: Bool, type: K, event: any): void;
518
+ emitEvent<K extends "canTransfer" | "withdraw" | "bid" | "settleAuction" | "settlePayment" | "settleAuctioneerPayment">(type: K, event: any): void;
519
+ fetchEvents(start?: UInt32, end?: UInt32): Promise<{
520
+ type: string;
521
+ event: {
522
+ data: import("o1js").ProvablePure<any>;
523
+ transactionInfo: {
524
+ transactionHash: string;
525
+ transactionStatus: string;
526
+ transactionMemo: string;
527
+ };
528
+ };
529
+ blockHeight: UInt32;
530
+ blockHash: string;
531
+ parentBlockHash: string;
532
+ globalSlot: UInt32;
533
+ chainStatus: string;
534
+ }[]>;
535
+ };
536
+ canMint(_accountUpdate: AccountUpdate): Promise<Bool>;
537
+ withdraw(shares: UInt64): Promise<void>;
538
+ closeSubscription(): Promise<void>;
539
+ bid(price: UInt64): Promise<void>;
540
+ canTransfer(params: import("../src/index.js").TransferExtendedParams): Promise<Bool>;
541
+ canPause(collection: PublicKey, nft: PublicKey): Promise<Bool>;
542
+ canResume(collection: PublicKey, nft: PublicKey): Promise<Bool>;
543
+ canChangeVerificationKey(collection: PublicKey, nft: PublicKey, vk: VerificationKey): Promise<Bool>;
544
+ canApproveAddress(collection: PublicKey, nft: PublicKey, approved: PublicKey): Promise<Bool>;
545
+ "__#3@#private": any;
546
+ address: PublicKey;
547
+ tokenId: Field;
548
+ init(): void;
549
+ requireSignature(): void;
550
+ skipAuthorization(): void;
551
+ readonly self: AccountUpdate;
552
+ newSelf(methodName?: string): AccountUpdate;
553
+ sender: {
554
+ self: import("o1js").SmartContract;
555
+ getUnconstrained(): PublicKey;
556
+ getAndRequireSignature(): PublicKey;
557
+ };
558
+ readonly account: import("node_modules/o1js/dist/node/lib/mina/precondition.js").Account;
559
+ readonly network: import("node_modules/o1js/dist/node/lib/mina/precondition.js").Network;
560
+ readonly currentSlot: import("node_modules/o1js/dist/node/lib/mina/precondition.js").CurrentSlot;
561
+ approve(update: AccountUpdate | import("o1js").AccountUpdateTree | import("o1js").AccountUpdateForest): void;
562
+ send(args: {
563
+ to: PublicKey | AccountUpdate | import("o1js").SmartContract;
564
+ amount: number | bigint | UInt64;
565
+ }): AccountUpdate;
566
+ readonly balance: {
567
+ addInPlace(x: string | number | bigint | UInt64 | UInt32 | import("o1js").Int64): void;
568
+ subInPlace(x: string | number | bigint | UInt64 | UInt32 | import("o1js").Int64): void;
569
+ };
570
+ events: {
571
+ [key: string]: import("o1js").FlexibleProvablePure<any>;
572
+ };
573
+ emitEventIf<K extends string | number>(condition: Bool, type: K, event: any): void;
574
+ emitEvent<K extends string | number>(type: K, event: any): void;
575
+ fetchEvents(start?: UInt32, end?: UInt32): Promise<{
576
+ type: string;
577
+ event: {
578
+ data: import("o1js").ProvablePure<any>;
579
+ transactionInfo: {
580
+ transactionHash: string;
581
+ transactionStatus: string;
582
+ transactionMemo: string;
583
+ };
584
+ };
585
+ blockHeight: UInt32;
586
+ blockHash: string;
587
+ parentBlockHash: string;
588
+ globalSlot: UInt32;
589
+ chainStatus: string;
590
+ }[]>;
591
+ };
592
+ canMint(_accountUpdate: AccountUpdate): Promise<import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool>;
593
+ canChangeAdmin(_admin: PublicKey): Promise<import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool>;
594
+ canPause(): Promise<Bool>;
595
+ canResume(): Promise<Bool>;
596
+ canChangeVerificationKey(_vk: VerificationKey): Promise<Bool>;
597
+ "__#3@#private": any;
598
+ address: PublicKey;
599
+ tokenId: Field;
600
+ init(): void;
601
+ requireSignature(): void;
602
+ skipAuthorization(): void;
603
+ readonly self: AccountUpdate;
604
+ newSelf(methodName?: string): AccountUpdate;
605
+ sender: {
606
+ self: import("o1js").SmartContract;
607
+ getUnconstrained(): PublicKey;
608
+ getAndRequireSignature(): PublicKey;
609
+ };
610
+ readonly account: import("node_modules/o1js/dist/node/lib/mina/precondition.js").Account;
611
+ readonly network: import("node_modules/o1js/dist/node/lib/mina/precondition.js").Network;
612
+ readonly currentSlot: import("node_modules/o1js/dist/node/lib/mina/precondition.js").CurrentSlot;
613
+ approve(update: AccountUpdate | import("o1js").AccountUpdateTree | import("o1js").AccountUpdateForest): void;
614
+ send(args: {
615
+ to: PublicKey | AccountUpdate | import("o1js").SmartContract;
616
+ amount: number | bigint | UInt64;
617
+ }): AccountUpdate;
618
+ readonly balance: {
619
+ addInPlace(x: string | number | bigint | UInt64 | UInt32 | import("o1js").Int64): void;
620
+ subInPlace(x: string | number | bigint | UInt64 | UInt32 | import("o1js").Int64): void;
621
+ };
622
+ events: {
623
+ [key: string]: import("o1js").FlexibleProvablePure<any>;
624
+ };
625
+ emitEventIf<K extends string | number>(condition: Bool, type: K, event: any): void;
626
+ emitEvent<K extends string | number>(type: K, event: any): void;
627
+ fetchEvents(start?: UInt32, end?: UInt32): Promise<{
628
+ type: string;
629
+ event: {
630
+ data: import("o1js").ProvablePure<any>;
631
+ transactionInfo: {
632
+ transactionHash: string;
633
+ transactionStatus: string;
634
+ transactionMemo: string;
635
+ };
636
+ };
637
+ blockHeight: UInt32;
638
+ blockHash: string;
639
+ parentBlockHash: string;
640
+ globalSlot: UInt32;
641
+ chainStatus: string;
642
+ }[]>;
643
+ };
644
+ _methods?: import("node_modules/o1js/dist/node/lib/proof-system/zkprogram.js").MethodInterface[];
645
+ _methodMetadata?: Record<string, {
646
+ actions: number;
647
+ rows: number;
648
+ digest: string;
649
+ gates: import("node_modules/o1js/dist/node/snarky.js").Gate[];
650
+ }>;
651
+ _provers?: import("node_modules/o1js/dist/node/snarky.js").Pickles.Prover[];
652
+ _maxProofsVerified?: 0 | 1 | 2;
653
+ _verificationKey?: {
654
+ data: string;
655
+ hash: Field;
656
+ };
657
+ Proof(): {
658
+ new ({ proof, publicInput, publicOutput, maxProofsVerified, }: {
659
+ proof: unknown;
660
+ publicInput: import("o1js").ZkappPublicInput;
661
+ publicOutput: undefined;
662
+ maxProofsVerified: 0 | 2 | 1;
663
+ }): {
664
+ verify(): void;
665
+ verifyIf(condition: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool): void;
666
+ publicInput: import("o1js").ZkappPublicInput;
667
+ publicOutput: undefined;
668
+ proof: unknown;
669
+ maxProofsVerified: 0 | 2 | 1;
670
+ shouldVerify: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
671
+ toJSON(): import("o1js").JsonProof;
672
+ publicFields(): {
673
+ input: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
674
+ output: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
675
+ };
676
+ };
677
+ publicInputType: Omit<import("node_modules/o1js/dist/node/lib/provable/types/provable-intf.js").Provable<{
678
+ accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
679
+ calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
680
+ }, {
681
+ accountUpdate: bigint;
682
+ calls: bigint;
683
+ }>, "fromFields"> & {
684
+ fromFields: (fields: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[]) => {
685
+ accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
686
+ calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
687
+ };
688
+ } & {
689
+ toInput: (x: {
690
+ accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
691
+ calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
692
+ }) => {
693
+ fields?: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[] | undefined;
694
+ packed?: [import("node_modules/o1js/dist/node/lib/provable/field.js").Field, number][] | undefined;
695
+ };
696
+ toJSON: (x: {
697
+ accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
698
+ calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
699
+ }) => {
700
+ accountUpdate: string;
701
+ calls: string;
702
+ };
703
+ fromJSON: (x: {
704
+ accountUpdate: string;
705
+ calls: string;
706
+ }) => {
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
+ empty: () => {
711
+ accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
712
+ calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
713
+ };
714
+ };
715
+ publicOutputType: import("node_modules/o1js/dist/node/lib/provable/types/struct.js").ProvablePureExtended<undefined, undefined, null>;
716
+ tag: () => typeof import("o1js").SmartContract;
717
+ 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"]>>>;
718
+ dummy<Input, OutPut>(publicInput: Input, publicOutput: OutPut, maxProofsVerified: 0 | 2 | 1, domainLog2?: number): Promise<import("o1js").Proof<Input, OutPut>>;
719
+ readonly provable: {
720
+ toFields: (value: import("o1js").Proof<any, any>) => import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
721
+ toAuxiliary: (value?: import("o1js").Proof<any, any> | undefined) => any[];
722
+ fromFields: (fields: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[], aux: any[]) => import("o1js").Proof<any, any>;
723
+ sizeInFields(): number;
724
+ check: (value: import("o1js").Proof<any, any>) => void;
725
+ toValue: (x: import("o1js").Proof<any, any>) => import("node_modules/o1js/dist/node/lib/proof-system/proof.js").ProofValue<any, any>;
726
+ 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>;
727
+ toCanonical?: ((x: import("o1js").Proof<any, any>) => import("o1js").Proof<any, any>) | undefined;
728
+ };
729
+ publicFields(value: import("o1js").ProofBase<any, any>): {
730
+ input: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
731
+ output: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
732
+ };
733
+ _proofFromBase64(proofString: string, maxProofsVerified: 0 | 2 | 1): unknown;
734
+ _proofToBase64(proof: unknown, maxProofsVerified: 0 | 2 | 1): string;
735
+ };
736
+ compile({ cache, forceRecompile, }?: {
737
+ cache?: Cache | undefined;
738
+ forceRecompile?: boolean | undefined;
739
+ }): Promise<{
740
+ verificationKey: {
741
+ data: string;
742
+ hash: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
743
+ };
744
+ provers: import("node_modules/o1js/dist/node/snarky.js").Pickles.Prover[];
745
+ 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>;
746
+ }>;
747
+ digest(): Promise<string>;
748
+ runOutsideCircuit(run: () => void): void;
749
+ analyzeMethods({ printSummary }?: {
750
+ printSummary?: boolean | undefined;
751
+ }): Promise<Record<string, {
752
+ actions: number;
753
+ rows: number;
754
+ digest: string;
755
+ gates: import("node_modules/o1js/dist/node/snarky.js").Gate[];
756
+ }>>;
757
+ };
758
+ FungibleToken: {
759
+ new (address: PublicKey, tokenId?: Field): {
760
+ decimals: import("o1js").State<UInt8>;
761
+ admin: import("o1js").State<PublicKey>;
762
+ paused: import("o1js").State<import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool>;
763
+ readonly events: {
764
+ SetAdmin: typeof import("@silvana-one/token").SetAdminEvent;
765
+ Pause: typeof import("@silvana-one/token").PauseEvent;
766
+ Mint: typeof import("@silvana-one/token").MintEvent;
767
+ Burn: typeof import("@silvana-one/token").BurnEvent;
768
+ BalanceChange: typeof import("@silvana-one/token").BalanceChangeEvent;
769
+ };
770
+ deploy(props: import("@silvana-one/token").FungibleTokenDeployProps): Promise<void>;
771
+ updateVerificationKey(vk: VerificationKey): Promise<void>;
772
+ initialize(admin: PublicKey, decimals: UInt8, startPaused: Bool): Promise<void>;
773
+ getAdminContract(): Promise<import("@silvana-one/token").FungibleTokenAdminBase>;
774
+ setAdmin(admin: PublicKey): Promise<void>;
775
+ mint(recipient: PublicKey, amount: UInt64): Promise<AccountUpdate>;
776
+ burn(from: PublicKey, amount: UInt64): Promise<AccountUpdate>;
777
+ pause(): Promise<void>;
778
+ resume(): Promise<void>;
779
+ transfer(from: PublicKey, to: PublicKey, amount: UInt64): Promise<void>;
780
+ checkPermissionsUpdate(update: AccountUpdate): void;
781
+ approveBase(updates: import("o1js").AccountUpdateForest): Promise<void>;
782
+ getBalanceOf(address: PublicKey): Promise<UInt64>;
783
+ getCirculating(): Promise<UInt64>;
784
+ getDecimals(): Promise<UInt8>;
785
+ deriveTokenId(): import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
786
+ readonly internal: {
787
+ mint({ address, amount, }: {
788
+ address: PublicKey | AccountUpdate | import("o1js").SmartContract;
789
+ amount: number | bigint | UInt64;
790
+ }): AccountUpdate;
791
+ burn({ address, amount, }: {
792
+ address: PublicKey | AccountUpdate | import("o1js").SmartContract;
793
+ amount: number | bigint | UInt64;
794
+ }): AccountUpdate;
795
+ send({ from, to, amount, }: {
796
+ from: PublicKey | AccountUpdate | import("o1js").SmartContract;
797
+ to: PublicKey | AccountUpdate | import("o1js").SmartContract;
798
+ amount: number | bigint | UInt64;
799
+ }): AccountUpdate;
800
+ };
801
+ forEachUpdate(updates: import("o1js").AccountUpdateForest, callback: (update: AccountUpdate, usesToken: Bool) => void): void;
802
+ checkZeroBalanceChange(updates: import("o1js").AccountUpdateForest): void;
803
+ approveAccountUpdate(accountUpdate: AccountUpdate | import("o1js").AccountUpdateTree): Promise<void>;
804
+ approveAccountUpdates(accountUpdates: (AccountUpdate | import("o1js").AccountUpdateTree)[]): Promise<void>;
805
+ "__#3@#private": any;
806
+ address: PublicKey;
807
+ tokenId: Field;
808
+ init(): void;
809
+ requireSignature(): void;
810
+ skipAuthorization(): void;
811
+ readonly self: AccountUpdate;
812
+ newSelf(methodName?: string): AccountUpdate;
813
+ sender: {
814
+ self: import("o1js").SmartContract;
815
+ getUnconstrained(): PublicKey;
816
+ getAndRequireSignature(): PublicKey;
817
+ };
818
+ readonly account: import("node_modules/o1js/dist/node/lib/mina/precondition.js").Account;
819
+ readonly network: import("node_modules/o1js/dist/node/lib/mina/precondition.js").Network;
820
+ readonly currentSlot: import("node_modules/o1js/dist/node/lib/mina/precondition.js").CurrentSlot;
821
+ approve(update: AccountUpdate | import("o1js").AccountUpdateTree | import("o1js").AccountUpdateForest): void;
822
+ send(args: {
823
+ to: PublicKey | AccountUpdate | import("o1js").SmartContract;
824
+ amount: number | bigint | UInt64;
825
+ }): AccountUpdate;
826
+ readonly balance: {
827
+ addInPlace(x: string | number | bigint | UInt64 | UInt32 | import("o1js").Int64): void;
828
+ subInPlace(x: string | number | bigint | UInt64 | UInt32 | import("o1js").Int64): void;
829
+ };
830
+ emitEventIf<K extends "SetAdmin" | "Pause" | "Mint" | "Burn" | "BalanceChange">(condition: Bool, type: K, event: any): void;
831
+ emitEvent<K extends "SetAdmin" | "Pause" | "Mint" | "Burn" | "BalanceChange">(type: K, event: any): void;
832
+ fetchEvents(start?: UInt32, end?: UInt32): Promise<{
833
+ type: string;
834
+ event: {
835
+ data: import("o1js").ProvablePure<any>;
836
+ transactionInfo: {
837
+ transactionHash: string;
838
+ transactionStatus: string;
839
+ transactionMemo: string;
840
+ };
841
+ };
842
+ blockHeight: UInt32;
843
+ blockHash: string;
844
+ parentBlockHash: string;
845
+ globalSlot: UInt32;
846
+ chainStatus: string;
847
+ }[]>;
848
+ };
849
+ MAX_ACCOUNT_UPDATES: number;
850
+ _methods?: import("node_modules/o1js/dist/node/lib/proof-system/zkprogram.js").MethodInterface[];
851
+ _methodMetadata?: Record<string, {
852
+ actions: number;
853
+ rows: number;
854
+ digest: string;
855
+ gates: import("node_modules/o1js/dist/node/snarky.js").Gate[];
856
+ }>;
857
+ _provers?: import("node_modules/o1js/dist/node/snarky.js").Pickles.Prover[];
858
+ _maxProofsVerified?: 0 | 1 | 2;
859
+ _verificationKey?: {
860
+ data: string;
861
+ hash: Field;
862
+ };
863
+ Proof(): {
864
+ new ({ proof, publicInput, publicOutput, maxProofsVerified, }: {
865
+ proof: unknown;
866
+ publicInput: import("o1js").ZkappPublicInput;
867
+ publicOutput: undefined;
868
+ maxProofsVerified: 0 | 2 | 1;
869
+ }): {
870
+ verify(): void;
871
+ verifyIf(condition: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool): void;
872
+ publicInput: import("o1js").ZkappPublicInput;
873
+ publicOutput: undefined;
874
+ proof: unknown;
875
+ maxProofsVerified: 0 | 2 | 1;
876
+ shouldVerify: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
877
+ toJSON(): import("o1js").JsonProof;
878
+ publicFields(): {
879
+ input: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
880
+ output: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
881
+ };
882
+ };
883
+ publicInputType: Omit<import("node_modules/o1js/dist/node/lib/provable/types/provable-intf.js").Provable<{
884
+ accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
885
+ calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
886
+ }, {
887
+ accountUpdate: bigint;
888
+ calls: bigint;
889
+ }>, "fromFields"> & {
890
+ fromFields: (fields: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[]) => {
891
+ accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
892
+ calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
893
+ };
894
+ } & {
895
+ toInput: (x: {
896
+ accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
897
+ calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
898
+ }) => {
899
+ fields?: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[] | undefined;
900
+ packed?: [import("node_modules/o1js/dist/node/lib/provable/field.js").Field, number][] | undefined;
901
+ };
902
+ toJSON: (x: {
903
+ accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
904
+ calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
905
+ }) => {
906
+ accountUpdate: string;
907
+ calls: string;
908
+ };
909
+ fromJSON: (x: {
910
+ accountUpdate: string;
911
+ calls: string;
912
+ }) => {
913
+ accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
914
+ calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
915
+ };
916
+ empty: () => {
917
+ accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
918
+ calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
919
+ };
920
+ };
921
+ publicOutputType: import("node_modules/o1js/dist/node/lib/provable/types/struct.js").ProvablePureExtended<undefined, undefined, null>;
922
+ tag: () => typeof import("o1js").SmartContract;
923
+ 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"]>>>;
924
+ dummy<Input, OutPut>(publicInput: Input, publicOutput: OutPut, maxProofsVerified: 0 | 2 | 1, domainLog2?: number): Promise<import("o1js").Proof<Input, OutPut>>;
925
+ readonly provable: {
926
+ toFields: (value: import("o1js").Proof<any, any>) => import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
927
+ toAuxiliary: (value?: import("o1js").Proof<any, any> | undefined) => any[];
928
+ fromFields: (fields: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[], aux: any[]) => import("o1js").Proof<any, any>;
929
+ sizeInFields(): number;
930
+ check: (value: import("o1js").Proof<any, any>) => void;
931
+ toValue: (x: import("o1js").Proof<any, any>) => import("node_modules/o1js/dist/node/lib/proof-system/proof.js").ProofValue<any, any>;
932
+ 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>;
933
+ toCanonical?: ((x: import("o1js").Proof<any, any>) => import("o1js").Proof<any, any>) | undefined;
934
+ };
935
+ publicFields(value: import("o1js").ProofBase<any, any>): {
936
+ input: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
937
+ output: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
938
+ };
939
+ _proofFromBase64(proofString: string, maxProofsVerified: 0 | 2 | 1): unknown;
940
+ _proofToBase64(proof: unknown, maxProofsVerified: 0 | 2 | 1): string;
941
+ };
942
+ compile({ cache, forceRecompile, }?: {
943
+ cache?: import("o1js").Cache | undefined;
944
+ forceRecompile?: boolean | undefined;
945
+ }): Promise<{
946
+ verificationKey: {
947
+ data: string;
948
+ hash: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
949
+ };
950
+ provers: import("node_modules/o1js/dist/node/snarky.js").Pickles.Prover[];
951
+ 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>;
952
+ }>;
953
+ digest(): Promise<string>;
954
+ runOutsideCircuit(run: () => void): void;
955
+ analyzeMethods({ printSummary }?: {
956
+ printSummary?: boolean | undefined;
957
+ }): Promise<Record<string, {
958
+ actions: number;
959
+ rows: number;
960
+ digest: string;
961
+ gates: import("node_modules/o1js/dist/node/snarky.js").Gate[];
962
+ }>>;
963
+ };
964
+ NFTSharesOwner: {
965
+ new (address: PublicKey, tokenId?: Field): {
966
+ data: import("o1js").State<import("../src/index.js").NFTSharesDataPacked>;
967
+ subscriptionOpen: import("o1js").State<import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool>;
968
+ sharesOutstanding: import("o1js").State<UInt64>;
969
+ deploy(props: import("../src/index.js").NFTSharesOwnerDeployProps): Promise<void>;
970
+ ensureOwnerSignature(): import("../src/index.js").NFTSharesData;
971
+ getAuction(auction: PublicKey): {
972
+ auctionData: import("o1js").State<import("../src/index.js").AuctionPacked>;
973
+ bidAmount: import("o1js").State<UInt64>;
974
+ settled: import("o1js").State<import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool>;
975
+ deploy(args: import("../src/index.js").NonFungibleTokenAuctionContractDeployProps): Promise<void>;
976
+ events: {
977
+ bid: typeof import("../src/index.js").AuctionBidEvent;
978
+ settleAuction: typeof TransferParams;
979
+ canTransfer: typeof import("../src/index.js").TransferEvent;
980
+ settlePayment: typeof UInt64;
981
+ settleAuctioneerPayment: typeof UInt64;
982
+ withdraw: typeof UInt64;
983
+ };
984
+ getCollectionContract(address: PublicKey): import("../src/index.js").NFTCollectionBase;
985
+ calculateSaleFee(params: {
986
+ price: UInt64;
987
+ saleFee: UInt32;
988
+ transferFee: UInt64;
989
+ }): UInt64;
990
+ bid(price: UInt64, bidder: PublicKey): Promise<Auction>;
991
+ getAuctionState(): Promise<import("../src/index.js").AuctionState>;
992
+ settleAuction(): Promise<void>;
993
+ withdrawNFT(): Promise<void>;
994
+ canTransfer(params: import("../src/index.js").TransferExtendedParams): Promise<Bool>;
995
+ settlePayment(): Promise<void>;
996
+ settleAuctioneerPayment(amount: UInt64): Promise<void>;
997
+ withdraw(): Promise<void>;
998
+ "__#3@#private": any;
999
+ address: PublicKey;
1000
+ tokenId: Field;
1001
+ init(): void;
1002
+ requireSignature(): void;
1003
+ skipAuthorization(): void;
1004
+ readonly self: AccountUpdate;
1005
+ newSelf(methodName?: string): AccountUpdate;
1006
+ sender: {
1007
+ self: import("o1js").SmartContract;
1008
+ getUnconstrained(): PublicKey;
1009
+ getAndRequireSignature(): PublicKey;
1010
+ };
1011
+ readonly account: import("node_modules/o1js/dist/node/lib/mina/precondition.js").Account;
1012
+ readonly network: import("node_modules/o1js/dist/node/lib/mina/precondition.js").Network;
1013
+ readonly currentSlot: import("node_modules/o1js/dist/node/lib/mina/precondition.js").CurrentSlot;
1014
+ approve(update: AccountUpdate | import("o1js").AccountUpdateTree | import("o1js").AccountUpdateForest): void;
1015
+ send(args: {
1016
+ to: PublicKey | AccountUpdate | import("o1js").SmartContract;
1017
+ amount: number | bigint | UInt64;
1018
+ }): AccountUpdate;
1019
+ readonly balance: {
1020
+ addInPlace(x: string | number | bigint | UInt64 | UInt32 | import("o1js").Int64): void;
1021
+ subInPlace(x: string | number | bigint | UInt64 | UInt32 | import("o1js").Int64): void;
1022
+ };
1023
+ emitEventIf<K extends "canTransfer" | "withdraw" | "bid" | "settleAuction" | "settlePayment" | "settleAuctioneerPayment">(condition: Bool, type: K, event: any): void;
1024
+ emitEvent<K extends "canTransfer" | "withdraw" | "bid" | "settleAuction" | "settlePayment" | "settleAuctioneerPayment">(type: K, event: any): void;
1025
+ fetchEvents(start?: UInt32, end?: UInt32): Promise<{
1026
+ type: string;
1027
+ event: {
1028
+ data: import("o1js").ProvablePure<any>;
1029
+ transactionInfo: {
1030
+ transactionHash: string;
1031
+ transactionStatus: string;
1032
+ transactionMemo: string;
1033
+ };
1034
+ };
1035
+ blockHeight: UInt32;
1036
+ blockHash: string;
1037
+ parentBlockHash: string;
1038
+ globalSlot: UInt32;
1039
+ chainStatus: string;
1040
+ }[]>;
1041
+ };
1042
+ canMint(_accountUpdate: AccountUpdate): Promise<Bool>;
1043
+ withdraw(shares: UInt64): Promise<void>;
1044
+ closeSubscription(): Promise<void>;
1045
+ bid(price: UInt64): Promise<void>;
1046
+ canTransfer(params: import("../src/index.js").TransferExtendedParams): Promise<Bool>;
1047
+ canPause(collection: PublicKey, nft: PublicKey): Promise<Bool>;
1048
+ canResume(collection: PublicKey, nft: PublicKey): Promise<Bool>;
1049
+ canChangeVerificationKey(collection: PublicKey, nft: PublicKey, vk: VerificationKey): Promise<Bool>;
1050
+ canApproveAddress(collection: PublicKey, nft: PublicKey, approved: PublicKey): Promise<Bool>;
1051
+ "__#3@#private": any;
1052
+ address: PublicKey;
1053
+ tokenId: Field;
1054
+ init(): void;
1055
+ requireSignature(): void;
1056
+ skipAuthorization(): void;
1057
+ readonly self: AccountUpdate;
1058
+ newSelf(methodName?: string): AccountUpdate;
1059
+ sender: {
1060
+ self: import("o1js").SmartContract;
1061
+ getUnconstrained(): PublicKey;
1062
+ getAndRequireSignature(): PublicKey;
1063
+ };
1064
+ readonly account: import("node_modules/o1js/dist/node/lib/mina/precondition.js").Account;
1065
+ readonly network: import("node_modules/o1js/dist/node/lib/mina/precondition.js").Network;
1066
+ readonly currentSlot: import("node_modules/o1js/dist/node/lib/mina/precondition.js").CurrentSlot;
1067
+ approve(update: AccountUpdate | import("o1js").AccountUpdateTree | import("o1js").AccountUpdateForest): void;
1068
+ send(args: {
1069
+ to: PublicKey | AccountUpdate | import("o1js").SmartContract;
1070
+ amount: number | bigint | UInt64;
1071
+ }): AccountUpdate;
1072
+ readonly balance: {
1073
+ addInPlace(x: string | number | bigint | UInt64 | UInt32 | import("o1js").Int64): void;
1074
+ subInPlace(x: string | number | bigint | UInt64 | UInt32 | import("o1js").Int64): void;
1075
+ };
1076
+ events: {
1077
+ [key: string]: import("o1js").FlexibleProvablePure<any>;
1078
+ };
1079
+ emitEventIf<K extends string | number>(condition: Bool, type: K, event: any): void;
1080
+ emitEvent<K extends string | number>(type: K, event: any): void;
1081
+ fetchEvents(start?: UInt32, end?: UInt32): Promise<{
1082
+ type: string;
1083
+ event: {
1084
+ data: import("o1js").ProvablePure<any>;
1085
+ transactionInfo: {
1086
+ transactionHash: string;
1087
+ transactionStatus: string;
1088
+ transactionMemo: string;
1089
+ };
1090
+ };
1091
+ blockHeight: UInt32;
1092
+ blockHash: string;
1093
+ parentBlockHash: string;
1094
+ globalSlot: UInt32;
1095
+ chainStatus: string;
1096
+ }[]>;
1097
+ };
1098
+ _methods?: import("node_modules/o1js/dist/node/lib/proof-system/zkprogram.js").MethodInterface[];
1099
+ _methodMetadata?: Record<string, {
1100
+ actions: number;
1101
+ rows: number;
1102
+ digest: string;
1103
+ gates: import("node_modules/o1js/dist/node/snarky.js").Gate[];
1104
+ }>;
1105
+ _provers?: import("node_modules/o1js/dist/node/snarky.js").Pickles.Prover[];
1106
+ _maxProofsVerified?: 0 | 1 | 2;
1107
+ _verificationKey?: {
1108
+ data: string;
1109
+ hash: Field;
1110
+ };
1111
+ Proof(): {
1112
+ new ({ proof, publicInput, publicOutput, maxProofsVerified, }: {
1113
+ proof: unknown;
1114
+ publicInput: import("o1js").ZkappPublicInput;
1115
+ publicOutput: undefined;
1116
+ maxProofsVerified: 0 | 2 | 1;
1117
+ }): {
1118
+ verify(): void;
1119
+ verifyIf(condition: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool): void;
1120
+ publicInput: import("o1js").ZkappPublicInput;
1121
+ publicOutput: undefined;
1122
+ proof: unknown;
1123
+ maxProofsVerified: 0 | 2 | 1;
1124
+ shouldVerify: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
1125
+ toJSON(): import("o1js").JsonProof;
1126
+ publicFields(): {
1127
+ input: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
1128
+ output: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
1129
+ };
1130
+ };
1131
+ publicInputType: Omit<import("node_modules/o1js/dist/node/lib/provable/types/provable-intf.js").Provable<{
1132
+ accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
1133
+ calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
1134
+ }, {
1135
+ accountUpdate: bigint;
1136
+ calls: bigint;
1137
+ }>, "fromFields"> & {
1138
+ fromFields: (fields: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[]) => {
1139
+ accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
1140
+ calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
1141
+ };
1142
+ } & {
1143
+ toInput: (x: {
1144
+ accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
1145
+ calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
1146
+ }) => {
1147
+ fields?: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[] | undefined;
1148
+ packed?: [import("node_modules/o1js/dist/node/lib/provable/field.js").Field, number][] | undefined;
1149
+ };
1150
+ toJSON: (x: {
1151
+ accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
1152
+ calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
1153
+ }) => {
1154
+ accountUpdate: string;
1155
+ calls: string;
1156
+ };
1157
+ fromJSON: (x: {
1158
+ accountUpdate: string;
1159
+ calls: string;
1160
+ }) => {
1161
+ accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
1162
+ calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
1163
+ };
1164
+ empty: () => {
1165
+ accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
1166
+ calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
1167
+ };
1168
+ };
1169
+ publicOutputType: import("node_modules/o1js/dist/node/lib/provable/types/struct.js").ProvablePureExtended<undefined, undefined, null>;
1170
+ tag: () => typeof import("o1js").SmartContract;
1171
+ 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"]>>>;
1172
+ dummy<Input, OutPut>(publicInput: Input, publicOutput: OutPut, maxProofsVerified: 0 | 2 | 1, domainLog2?: number): Promise<import("o1js").Proof<Input, OutPut>>;
1173
+ readonly provable: {
1174
+ toFields: (value: import("o1js").Proof<any, any>) => import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
1175
+ toAuxiliary: (value?: import("o1js").Proof<any, any> | undefined) => any[];
1176
+ fromFields: (fields: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[], aux: any[]) => import("o1js").Proof<any, any>;
1177
+ sizeInFields(): number;
1178
+ check: (value: import("o1js").Proof<any, any>) => void;
1179
+ toValue: (x: import("o1js").Proof<any, any>) => import("node_modules/o1js/dist/node/lib/proof-system/proof.js").ProofValue<any, any>;
1180
+ 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>;
1181
+ toCanonical?: ((x: import("o1js").Proof<any, any>) => import("o1js").Proof<any, any>) | undefined;
1182
+ };
1183
+ publicFields(value: import("o1js").ProofBase<any, any>): {
1184
+ input: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
1185
+ output: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
1186
+ };
1187
+ _proofFromBase64(proofString: string, maxProofsVerified: 0 | 2 | 1): unknown;
1188
+ _proofToBase64(proof: unknown, maxProofsVerified: 0 | 2 | 1): string;
1189
+ };
1190
+ compile({ cache, forceRecompile, }?: {
1191
+ cache?: Cache | undefined;
1192
+ forceRecompile?: boolean | undefined;
1193
+ }): Promise<{
1194
+ verificationKey: {
1195
+ data: string;
1196
+ hash: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
1197
+ };
1198
+ provers: import("node_modules/o1js/dist/node/snarky.js").Pickles.Prover[];
1199
+ 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>;
1200
+ }>;
1201
+ digest(): Promise<string>;
1202
+ runOutsideCircuit(run: () => void): void;
1203
+ analyzeMethods({ printSummary }?: {
1204
+ printSummary?: boolean | undefined;
1205
+ }): Promise<Record<string, {
1206
+ actions: number;
1207
+ rows: number;
1208
+ digest: string;
1209
+ gates: import("node_modules/o1js/dist/node/snarky.js").Gate[];
1210
+ }>>;
1211
+ };
1212
+ };