@silvana-one/nft 0.2.3 → 0.2.5
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.
- package/README.md +46 -1
- package/dist/node/admin/advanced.d.ts +9 -9
- package/dist/node/contracts/collection.d.ts +14 -12
- package/dist/node/contracts.d.ts +24 -15
- package/dist/node/interfaces/events.d.ts +1 -1
- package/dist/node/interfaces/types.d.ts +11 -11
- package/dist/node/marketplace/auction.d.ts +20 -17
- package/dist/node/marketplace/bb.d.ts +3 -3
- package/dist/node/marketplace/bid.d.ts +10 -7
- package/dist/node/marketplace/nft-shares.d.ts +35 -26
- package/dist/node/marketplace/offer.d.ts +8 -5
- package/dist/node/marketplace/types.d.ts +5 -5
- package/dist/node/util/div.d.ts +2 -2
- package/dist/node/zkprogram-example/game.d.ts +146 -4
- package/dist/node/zkprogram-example/update.d.ts +141 -4
- package/dist/tsconfig.node.tsbuildinfo +1 -1
- package/dist/tsconfig.web.tsbuildinfo +1 -1
- package/dist/web/admin/advanced.d.ts +9 -9
- package/dist/web/contracts/collection.d.ts +14 -12
- package/dist/web/contracts.d.ts +24 -15
- package/dist/web/interfaces/events.d.ts +1 -1
- package/dist/web/interfaces/types.d.ts +11 -11
- package/dist/web/marketplace/auction.d.ts +20 -17
- package/dist/web/marketplace/bb.d.ts +3 -3
- package/dist/web/marketplace/bid.d.ts +10 -7
- package/dist/web/marketplace/nft-shares.d.ts +35 -26
- package/dist/web/marketplace/offer.d.ts +8 -5
- package/dist/web/marketplace/types.d.ts +5 -5
- package/dist/web/util/div.d.ts +2 -2
- package/dist/web/zkprogram-example/game.d.ts +146 -4
- package/dist/web/zkprogram-example/update.d.ts +141 -4
- package/package.json +9 -11
package/README.md
CHANGED
|
@@ -12,14 +12,22 @@ https://devnet.minanft.io/
|
|
|
12
12
|
|
|
13
13
|
## API
|
|
14
14
|
|
|
15
|
-
Docs:
|
|
15
|
+
Docs:
|
|
16
|
+
|
|
17
|
+
https://docs.minanft.io/OpenAPI/launch-nft-collection
|
|
18
|
+
|
|
19
|
+
https://docs.minanft.io/api/nft
|
|
20
|
+
|
|
16
21
|
Example: https://github.com/SilvanaOne/token-api-example/blob/main/tests/nft.test.ts
|
|
22
|
+
|
|
17
23
|
API monitoring and keys: https://minatokens.com/api
|
|
18
24
|
|
|
19
25
|
## Contracts Code
|
|
20
26
|
|
|
21
27
|
https://github.com/SilvanaOne/silvana-lib/tree/main/packages/nft
|
|
22
28
|
|
|
29
|
+
Coverage: https://docs.minanft.io/coverage/
|
|
30
|
+
|
|
23
31
|
### NFT Standard Contracts
|
|
24
32
|
|
|
25
33
|
Main contracts: packages/nft/src/contracts/
|
|
@@ -56,6 +64,43 @@ Tests are available at packages/nft/test
|
|
|
56
64
|
|
|
57
65
|
See [TESTS.md](TESTS.md) for more information how to run tests
|
|
58
66
|
|
|
67
|
+
### Number of Constraints
|
|
68
|
+
|
|
69
|
+
The Mina blockchain imposes a maximum constraint limit of 65,536 rows for zk-SNARK proofs generated by smart contracts. It is essential to be aware of the number of constraints used by each contract to ensure they are within acceptable limits and to optimize performance.
|
|
70
|
+
|
|
71
|
+
Below is a summary of the constraints used by each key contract in the MinaNFT standard:
|
|
72
|
+
|
|
73
|
+
| **Contract** | **Constraints (rows)** | **Percentage of Max Constraints** |
|
|
74
|
+
| ----------------- | ---------------------- | --------------------------------- |
|
|
75
|
+
| Collection | 40,789 | 62.24% |
|
|
76
|
+
| NFT | 4,807 | 7.33% |
|
|
77
|
+
| Offer | 1,996 | 3.05% |
|
|
78
|
+
| Bid | 8,978 | 13.70% |
|
|
79
|
+
| Standard Admin | 8,607 | 13.13% |
|
|
80
|
+
| Advanced Admin | 16,032 | 24.46% |
|
|
81
|
+
| Upgrade Authority | 3,117 | 4.76% |
|
|
82
|
+
| NFTProgram | 1,833 | 2.80% |
|
|
83
|
+
|
|
84
|
+
### Test Coverage
|
|
85
|
+
|
|
86
|
+
```sh
|
|
87
|
+
npm run nft:coverage
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
The test statements coverage is summarized below:
|
|
91
|
+
|
|
92
|
+
| **Contract** | **Test Statements Coverage** |
|
|
93
|
+
| -------------- | ---------------------------- |
|
|
94
|
+
| NFT | 100% |
|
|
95
|
+
| Collection | 99.65% |
|
|
96
|
+
| Standard Admin | 100% |
|
|
97
|
+
| Advanced Admin | 98.33% |
|
|
98
|
+
| Auction | 100% |
|
|
99
|
+
| Offer | 100% |
|
|
100
|
+
| Bid | 98.97% |
|
|
101
|
+
|
|
102
|
+
Details are available at https://docs.minanft.io/coverage/
|
|
103
|
+
|
|
59
104
|
## Project Background
|
|
60
105
|
|
|
61
106
|
Non-Fungible Tokens (NFTs) have become a pivotal aspect of digital ownership, allowing creators, individuals, and corporations to represent unique digital assets on the blockchain. However, current NFT standards, like ERC721, lack essential privacy, verifiability, and versatile content integration features. The NFT standard on Mina seeks to overcome these limitations by introducing enhanced functionality such as privacy features, verifiable proofs for both public and private data, unlocking new use cases for NFTs in the realms of digital identity, secure document sharing, and multimedia content.
|
|
@@ -319,9 +319,9 @@ declare function NFTAdvancedAdminContract(params: {
|
|
|
319
319
|
getUnconstrained(): PublicKey;
|
|
320
320
|
getAndRequireSignature(): PublicKey;
|
|
321
321
|
};
|
|
322
|
-
readonly account: import("node_modules/o1js/dist/node/lib/mina/precondition.js").Account;
|
|
323
|
-
readonly network: import("node_modules/o1js/dist/node/lib/mina/precondition.js").Network;
|
|
324
|
-
readonly currentSlot: import("node_modules/o1js/dist/node/lib/mina/precondition.js").CurrentSlot;
|
|
322
|
+
readonly account: import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").Account;
|
|
323
|
+
readonly network: import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").Network;
|
|
324
|
+
readonly currentSlot: import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").CurrentSlot;
|
|
325
325
|
approve(update: AccountUpdate | import("o1js").AccountUpdateTree | import("o1js").AccountUpdateForest): void;
|
|
326
326
|
send(args: {
|
|
327
327
|
to: PublicKey | AccountUpdate | SmartContract;
|
|
@@ -356,9 +356,9 @@ declare function NFTAdvancedAdminContract(params: {
|
|
|
356
356
|
rows: number;
|
|
357
357
|
digest: string;
|
|
358
358
|
gates: import("node_modules/o1js/dist/node/snarky.js").Gate[];
|
|
359
|
+
proofs: import("node_modules/o1js/dist/node/lib/proof-system/proof.js").ProofClass[];
|
|
359
360
|
}>;
|
|
360
361
|
_provers?: import("node_modules/o1js/dist/node/snarky.js").Pickles.Prover[];
|
|
361
|
-
_maxProofsVerified?: 0 | 1 | 2;
|
|
362
362
|
_verificationKey?: {
|
|
363
363
|
data: string;
|
|
364
364
|
hash: Field;
|
|
@@ -377,16 +377,14 @@ declare function NFTAdvancedAdminContract(params: {
|
|
|
377
377
|
proof: unknown;
|
|
378
378
|
maxProofsVerified: 0 | 2 | 1;
|
|
379
379
|
shouldVerify: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
|
|
380
|
+
declare(): boolean;
|
|
380
381
|
toJSON(): import("o1js").JsonProof;
|
|
381
382
|
publicFields(): {
|
|
382
383
|
input: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
|
|
383
384
|
output: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
|
|
384
385
|
};
|
|
385
386
|
};
|
|
386
|
-
publicInputType: Omit<import("node_modules/o1js/dist/node/lib/provable/types/provable-intf.js"
|
|
387
|
-
* Packs the pause data into a `Field`.
|
|
388
|
-
* @returns A `Field` representing the packed pause data.
|
|
389
|
-
*/).Provable<{
|
|
387
|
+
publicInputType: Omit<import("node_modules/o1js/dist/node/lib/provable/types/provable-intf.js").Provable<{
|
|
390
388
|
accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
|
|
391
389
|
calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
|
|
392
390
|
}, {
|
|
@@ -445,7 +443,7 @@ declare function NFTAdvancedAdminContract(params: {
|
|
|
445
443
|
_proofFromBase64(proofString: string, maxProofsVerified: 0 | 2 | 1): unknown;
|
|
446
444
|
_proofToBase64(proof: unknown, maxProofsVerified: 0 | 2 | 1): string;
|
|
447
445
|
};
|
|
448
|
-
compile({ cache, forceRecompile
|
|
446
|
+
compile({ cache, forceRecompile }?: {
|
|
449
447
|
cache?: import("o1js").Cache | undefined;
|
|
450
448
|
forceRecompile?: boolean | undefined;
|
|
451
449
|
}): Promise<{
|
|
@@ -457,6 +455,7 @@ declare function NFTAdvancedAdminContract(params: {
|
|
|
457
455
|
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>;
|
|
458
456
|
}>;
|
|
459
457
|
digest(): Promise<string>;
|
|
458
|
+
getMaxProofsVerified(): Promise<0 | 2 | 1>;
|
|
460
459
|
runOutsideCircuit(run: () => void): void;
|
|
461
460
|
analyzeMethods({ printSummary }?: {
|
|
462
461
|
printSummary?: boolean | undefined;
|
|
@@ -465,5 +464,6 @@ declare function NFTAdvancedAdminContract(params: {
|
|
|
465
464
|
rows: number;
|
|
466
465
|
digest: string;
|
|
467
466
|
gates: import("node_modules/o1js/dist/node/snarky.js").Gate[];
|
|
467
|
+
proofs: import("node_modules/o1js/dist/node/lib/proof-system/proof.js").ProofClass[];
|
|
468
468
|
}>>;
|
|
469
469
|
};
|
|
@@ -403,9 +403,9 @@ declare function CollectionFactory(params: {
|
|
|
403
403
|
getUnconstrained(): PublicKey;
|
|
404
404
|
getAndRequireSignature(): PublicKey;
|
|
405
405
|
};
|
|
406
|
-
readonly account: import("node_modules/o1js/dist/node/lib/mina/precondition.js").Account;
|
|
407
|
-
readonly network: import("node_modules/o1js/dist/node/lib/mina/precondition.js").Network;
|
|
408
|
-
readonly currentSlot: import("node_modules/o1js/dist/node/lib/mina/precondition.js").CurrentSlot;
|
|
406
|
+
readonly account: import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").Account;
|
|
407
|
+
readonly network: import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").Network;
|
|
408
|
+
readonly currentSlot: import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").CurrentSlot;
|
|
409
409
|
approve(update: AccountUpdate | import("o1js").AccountUpdateTree | AccountUpdateForest): void;
|
|
410
410
|
send(args: {
|
|
411
411
|
to: PublicKey | AccountUpdate | SmartContract;
|
|
@@ -441,9 +441,9 @@ declare function CollectionFactory(params: {
|
|
|
441
441
|
rows: number;
|
|
442
442
|
digest: string;
|
|
443
443
|
gates: import("node_modules/o1js/dist/node/snarky.js").Gate[];
|
|
444
|
+
proofs: import("node_modules/o1js/dist/node/lib/proof-system/proof.js").ProofClass[];
|
|
444
445
|
}>;
|
|
445
446
|
_provers?: import("node_modules/o1js/dist/node/snarky.js").Pickles.Prover[];
|
|
446
|
-
_maxProofsVerified?: 0 | 1 | 2;
|
|
447
447
|
_verificationKey?: {
|
|
448
448
|
data: string;
|
|
449
449
|
hash: Field;
|
|
@@ -462,6 +462,7 @@ declare function CollectionFactory(params: {
|
|
|
462
462
|
proof: unknown;
|
|
463
463
|
maxProofsVerified: 0 | 2 | 1;
|
|
464
464
|
shouldVerify: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
|
|
465
|
+
declare(): boolean;
|
|
465
466
|
toJSON(): import("o1js").JsonProof;
|
|
466
467
|
publicFields(): {
|
|
467
468
|
input: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
|
|
@@ -488,7 +489,11 @@ declare function CollectionFactory(params: {
|
|
|
488
489
|
packed?: [import("node_modules/o1js/dist/node/lib/provable/field.js").Field, number][] | undefined;
|
|
489
490
|
};
|
|
490
491
|
toJSON: (x: {
|
|
491
|
-
accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js"
|
|
492
|
+
accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js" /**
|
|
493
|
+
* Deploys the NFT Collection Contract with the initial settings.
|
|
494
|
+
*
|
|
495
|
+
* @param props - Deployment properties including collection name, creator, admin, baseURL, symbol, and URL.
|
|
496
|
+
*/).Field;
|
|
492
497
|
calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
|
|
493
498
|
}) => {
|
|
494
499
|
accountUpdate: string;
|
|
@@ -509,12 +514,7 @@ declare function CollectionFactory(params: {
|
|
|
509
514
|
publicOutputType: import("node_modules/o1js/dist/node/lib/provable/types/struct.js").ProvablePureExtended<undefined, undefined, null>;
|
|
510
515
|
tag: () => typeof SmartContract;
|
|
511
516
|
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"]>>>;
|
|
512
|
-
dummy<Input, OutPut>(publicInput: Input, publicOutput: OutPut, maxProofsVerified: 0 | 2 | 1, domainLog2
|
|
513
|
-
* Initializes the collection with a master NFT and initial data.
|
|
514
|
-
*
|
|
515
|
-
* @param masterNFT - The master NFT parameters.
|
|
516
|
-
* @param collectionData - Initial collection data including flags and configurations.
|
|
517
|
-
*/: number): Promise<import("o1js").Proof<Input, OutPut>>;
|
|
517
|
+
dummy<Input, OutPut>(publicInput: Input, publicOutput: OutPut, maxProofsVerified: 0 | 2 | 1, domainLog2?: number): Promise<import("o1js").Proof<Input, OutPut>>;
|
|
518
518
|
readonly provable: {
|
|
519
519
|
toFields: (value: import("o1js").Proof<any, any>) => import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
|
|
520
520
|
toAuxiliary: (value?: import("o1js").Proof<any, any> | undefined) => any[];
|
|
@@ -532,7 +532,7 @@ declare function CollectionFactory(params: {
|
|
|
532
532
|
_proofFromBase64(proofString: string, maxProofsVerified: 0 | 2 | 1): unknown;
|
|
533
533
|
_proofToBase64(proof: unknown, maxProofsVerified: 0 | 2 | 1): string;
|
|
534
534
|
};
|
|
535
|
-
compile({ cache, forceRecompile
|
|
535
|
+
compile({ cache, forceRecompile }?: {
|
|
536
536
|
cache?: import("o1js").Cache | undefined;
|
|
537
537
|
forceRecompile?: boolean | undefined;
|
|
538
538
|
}): Promise<{
|
|
@@ -544,6 +544,7 @@ declare function CollectionFactory(params: {
|
|
|
544
544
|
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>;
|
|
545
545
|
}>;
|
|
546
546
|
digest(): Promise<string>;
|
|
547
|
+
getMaxProofsVerified(): Promise<0 | 2 | 1>;
|
|
547
548
|
runOutsideCircuit(run: () => void): void;
|
|
548
549
|
analyzeMethods({ printSummary }?: {
|
|
549
550
|
printSummary?: boolean | undefined;
|
|
@@ -552,5 +553,6 @@ declare function CollectionFactory(params: {
|
|
|
552
553
|
rows: number;
|
|
553
554
|
digest: string;
|
|
554
555
|
gates: import("node_modules/o1js/dist/node/snarky.js").Gate[];
|
|
556
|
+
proofs: import("node_modules/o1js/dist/node/lib/proof-system/proof.js").ProofClass[];
|
|
555
557
|
}>>;
|
|
556
558
|
};
|
package/dist/node/contracts.d.ts
CHANGED
|
@@ -48,9 +48,9 @@ export declare const NFTAdvancedAdmin: {
|
|
|
48
48
|
getUnconstrained(): import("o1js").PublicKey;
|
|
49
49
|
getAndRequireSignature(): import("o1js").PublicKey;
|
|
50
50
|
};
|
|
51
|
-
readonly account: import("node_modules/o1js/dist/node/lib/mina/precondition.js").Account;
|
|
52
|
-
readonly network: import("node_modules/o1js/dist/node/lib/mina/precondition.js").Network;
|
|
53
|
-
readonly currentSlot: import("node_modules/o1js/dist/node/lib/mina/precondition.js").CurrentSlot;
|
|
51
|
+
readonly account: import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").Account;
|
|
52
|
+
readonly network: import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").Network;
|
|
53
|
+
readonly currentSlot: import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").CurrentSlot;
|
|
54
54
|
approve(update: import("o1js").AccountUpdate | import("o1js").AccountUpdateTree | import("o1js").AccountUpdateForest): void;
|
|
55
55
|
send(args: {
|
|
56
56
|
to: import("o1js").PublicKey | import("o1js").AccountUpdate | import("o1js").SmartContract;
|
|
@@ -85,9 +85,9 @@ export declare const NFTAdvancedAdmin: {
|
|
|
85
85
|
rows: number;
|
|
86
86
|
digest: string;
|
|
87
87
|
gates: import("node_modules/o1js/dist/node/snarky.js").Gate[];
|
|
88
|
+
proofs: import("node_modules/o1js/dist/node/lib/proof-system/proof.js").ProofClass[];
|
|
88
89
|
}>;
|
|
89
90
|
_provers?: import("node_modules/o1js/dist/node/snarky.js").Pickles.Prover[];
|
|
90
|
-
_maxProofsVerified?: 0 | 1 | 2;
|
|
91
91
|
_verificationKey?: {
|
|
92
92
|
data: string;
|
|
93
93
|
hash: import("o1js").Field;
|
|
@@ -106,6 +106,7 @@ export declare const NFTAdvancedAdmin: {
|
|
|
106
106
|
proof: unknown;
|
|
107
107
|
maxProofsVerified: 0 | 2 | 1;
|
|
108
108
|
shouldVerify: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
|
|
109
|
+
declare(): boolean;
|
|
109
110
|
toJSON(): import("o1js").JsonProof;
|
|
110
111
|
publicFields(): {
|
|
111
112
|
input: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
|
|
@@ -171,7 +172,7 @@ export declare const NFTAdvancedAdmin: {
|
|
|
171
172
|
_proofFromBase64(proofString: string, maxProofsVerified: 0 | 2 | 1): unknown;
|
|
172
173
|
_proofToBase64(proof: unknown, maxProofsVerified: 0 | 2 | 1): string;
|
|
173
174
|
};
|
|
174
|
-
compile({ cache, forceRecompile
|
|
175
|
+
compile({ cache, forceRecompile }?: {
|
|
175
176
|
cache?: import("o1js").Cache | undefined;
|
|
176
177
|
forceRecompile?: boolean | undefined;
|
|
177
178
|
}): Promise<{
|
|
@@ -183,6 +184,7 @@ export declare const NFTAdvancedAdmin: {
|
|
|
183
184
|
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>;
|
|
184
185
|
}>;
|
|
185
186
|
digest(): Promise<string>;
|
|
187
|
+
getMaxProofsVerified(): Promise<0 | 2 | 1>;
|
|
186
188
|
runOutsideCircuit(run: () => void): void;
|
|
187
189
|
analyzeMethods({ printSummary }?: {
|
|
188
190
|
printSummary?: boolean | undefined;
|
|
@@ -191,6 +193,7 @@ export declare const NFTAdvancedAdmin: {
|
|
|
191
193
|
rows: number;
|
|
192
194
|
digest: string;
|
|
193
195
|
gates: import("node_modules/o1js/dist/node/snarky.js").Gate[];
|
|
196
|
+
proofs: import("node_modules/o1js/dist/node/lib/proof-system/proof.js").ProofClass[];
|
|
194
197
|
}>>;
|
|
195
198
|
};
|
|
196
199
|
export type NonFungibleTokenContracts = {
|
|
@@ -311,9 +314,9 @@ export declare const Collection: {
|
|
|
311
314
|
getUnconstrained(): import("o1js").PublicKey;
|
|
312
315
|
getAndRequireSignature(): import("o1js").PublicKey;
|
|
313
316
|
};
|
|
314
|
-
readonly account: import("node_modules/o1js/dist/node/lib/mina/precondition.js").Account;
|
|
315
|
-
readonly network: import("node_modules/o1js/dist/node/lib/mina/precondition.js").Network;
|
|
316
|
-
readonly currentSlot: import("node_modules/o1js/dist/node/lib/mina/precondition.js").CurrentSlot;
|
|
317
|
+
readonly account: import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").Account;
|
|
318
|
+
readonly network: import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").Network;
|
|
319
|
+
readonly currentSlot: import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").CurrentSlot;
|
|
317
320
|
approve(update: import("o1js").AccountUpdate | import("o1js").AccountUpdateTree | import("o1js").AccountUpdateForest): void;
|
|
318
321
|
send(args: {
|
|
319
322
|
to: import("o1js").PublicKey | import("o1js").AccountUpdate | import("o1js").SmartContract;
|
|
@@ -349,9 +352,9 @@ export declare const Collection: {
|
|
|
349
352
|
rows: number;
|
|
350
353
|
digest: string;
|
|
351
354
|
gates: import("node_modules/o1js/dist/node/snarky.js").Gate[];
|
|
355
|
+
proofs: import("node_modules/o1js/dist/node/lib/proof-system/proof.js").ProofClass[];
|
|
352
356
|
}>;
|
|
353
357
|
_provers?: import("node_modules/o1js/dist/node/snarky.js").Pickles.Prover[];
|
|
354
|
-
_maxProofsVerified?: 0 | 1 | 2;
|
|
355
358
|
_verificationKey?: {
|
|
356
359
|
data: string;
|
|
357
360
|
hash: import("o1js").Field;
|
|
@@ -370,6 +373,7 @@ export declare const Collection: {
|
|
|
370
373
|
proof: unknown;
|
|
371
374
|
maxProofsVerified: 0 | 2 | 1;
|
|
372
375
|
shouldVerify: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
|
|
376
|
+
declare(): boolean;
|
|
373
377
|
toJSON(): import("o1js").JsonProof;
|
|
374
378
|
publicFields(): {
|
|
375
379
|
input: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
|
|
@@ -435,7 +439,7 @@ export declare const Collection: {
|
|
|
435
439
|
_proofFromBase64(proofString: string, maxProofsVerified: 0 | 2 | 1): unknown;
|
|
436
440
|
_proofToBase64(proof: unknown, maxProofsVerified: 0 | 2 | 1): string;
|
|
437
441
|
};
|
|
438
|
-
compile({ cache, forceRecompile
|
|
442
|
+
compile({ cache, forceRecompile }?: {
|
|
439
443
|
cache?: import("o1js").Cache | undefined;
|
|
440
444
|
forceRecompile?: boolean | undefined;
|
|
441
445
|
}): Promise<{
|
|
@@ -447,6 +451,7 @@ export declare const Collection: {
|
|
|
447
451
|
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>;
|
|
448
452
|
}>;
|
|
449
453
|
digest(): Promise<string>;
|
|
454
|
+
getMaxProofsVerified(): Promise<0 | 2 | 1>;
|
|
450
455
|
runOutsideCircuit(run: () => void): void;
|
|
451
456
|
analyzeMethods({ printSummary }?: {
|
|
452
457
|
printSummary?: boolean | undefined;
|
|
@@ -455,6 +460,7 @@ export declare const Collection: {
|
|
|
455
460
|
rows: number;
|
|
456
461
|
digest: string;
|
|
457
462
|
gates: import("node_modules/o1js/dist/node/snarky.js").Gate[];
|
|
463
|
+
proofs: import("node_modules/o1js/dist/node/lib/proof-system/proof.js").ProofClass[];
|
|
458
464
|
}>>;
|
|
459
465
|
}, Approval: NFTApprovalContractConstructor, Owner: NFTOwnerContractConstructor, Admin: NFTAdminContractConstructor, Update: NFTUpdateContractConstructor;
|
|
460
466
|
export declare const Offer: ReturnType<typeof OfferFactory>;
|
|
@@ -563,9 +569,9 @@ export declare const AdvancedCollection: {
|
|
|
563
569
|
getUnconstrained(): import("o1js").PublicKey;
|
|
564
570
|
getAndRequireSignature(): import("o1js").PublicKey;
|
|
565
571
|
};
|
|
566
|
-
readonly account: import("node_modules/o1js/dist/node/lib/mina/precondition.js").Account;
|
|
567
|
-
readonly network: import("node_modules/o1js/dist/node/lib/mina/precondition.js").Network;
|
|
568
|
-
readonly currentSlot: import("node_modules/o1js/dist/node/lib/mina/precondition.js").CurrentSlot;
|
|
572
|
+
readonly account: import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").Account;
|
|
573
|
+
readonly network: import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").Network;
|
|
574
|
+
readonly currentSlot: import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").CurrentSlot;
|
|
569
575
|
approve(update: import("o1js").AccountUpdate | import("o1js").AccountUpdateTree | import("o1js").AccountUpdateForest): void;
|
|
570
576
|
send(args: {
|
|
571
577
|
to: import("o1js").PublicKey | import("o1js").AccountUpdate | import("o1js").SmartContract;
|
|
@@ -601,9 +607,9 @@ export declare const AdvancedCollection: {
|
|
|
601
607
|
rows: number;
|
|
602
608
|
digest: string;
|
|
603
609
|
gates: import("node_modules/o1js/dist/node/snarky.js").Gate[];
|
|
610
|
+
proofs: import("node_modules/o1js/dist/node/lib/proof-system/proof.js").ProofClass[];
|
|
604
611
|
}>;
|
|
605
612
|
_provers?: import("node_modules/o1js/dist/node/snarky.js").Pickles.Prover[];
|
|
606
|
-
_maxProofsVerified?: 0 | 1 | 2;
|
|
607
613
|
_verificationKey?: {
|
|
608
614
|
data: string;
|
|
609
615
|
hash: import("o1js").Field;
|
|
@@ -622,6 +628,7 @@ export declare const AdvancedCollection: {
|
|
|
622
628
|
proof: unknown;
|
|
623
629
|
maxProofsVerified: 0 | 2 | 1;
|
|
624
630
|
shouldVerify: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
|
|
631
|
+
declare(): boolean;
|
|
625
632
|
toJSON(): import("o1js").JsonProof;
|
|
626
633
|
publicFields(): {
|
|
627
634
|
input: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
|
|
@@ -687,7 +694,7 @@ export declare const AdvancedCollection: {
|
|
|
687
694
|
_proofFromBase64(proofString: string, maxProofsVerified: 0 | 2 | 1): unknown;
|
|
688
695
|
_proofToBase64(proof: unknown, maxProofsVerified: 0 | 2 | 1): string;
|
|
689
696
|
};
|
|
690
|
-
compile({ cache, forceRecompile
|
|
697
|
+
compile({ cache, forceRecompile }?: {
|
|
691
698
|
cache?: import("o1js").Cache | undefined;
|
|
692
699
|
forceRecompile?: boolean | undefined;
|
|
693
700
|
}): Promise<{
|
|
@@ -699,6 +706,7 @@ export declare const AdvancedCollection: {
|
|
|
699
706
|
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>;
|
|
700
707
|
}>;
|
|
701
708
|
digest(): Promise<string>;
|
|
709
|
+
getMaxProofsVerified(): Promise<0 | 2 | 1>;
|
|
702
710
|
runOutsideCircuit(run: () => void): void;
|
|
703
711
|
analyzeMethods({ printSummary }?: {
|
|
704
712
|
printSummary?: boolean | undefined;
|
|
@@ -707,6 +715,7 @@ export declare const AdvancedCollection: {
|
|
|
707
715
|
rows: number;
|
|
708
716
|
digest: string;
|
|
709
717
|
gates: import("node_modules/o1js/dist/node/snarky.js").Gate[];
|
|
718
|
+
proofs: import("node_modules/o1js/dist/node/lib/proof-system/proof.js").ProofClass[];
|
|
710
719
|
}>>;
|
|
711
720
|
}, AdvancedApproval: NFTApprovalContractConstructor, AdvancedOwner: NFTOwnerContractConstructor, AdvancedAdmin: NFTAdminContractConstructor;
|
|
712
721
|
export declare const AdvancedOffer: ReturnType<typeof OfferFactory>;
|
|
@@ -186,7 +186,7 @@ declare const UpdateEvent_base: (new (value: {
|
|
|
186
186
|
x: Field | bigint;
|
|
187
187
|
isOdd: Bool | boolean;
|
|
188
188
|
};
|
|
189
|
-
version: bigint | UInt32;
|
|
189
|
+
version: number | bigint | UInt32;
|
|
190
190
|
isPaused: boolean | import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
|
|
191
191
|
metadataVerificationKeyHash: string | number | bigint | import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
|
|
192
192
|
}) => {
|
|
@@ -307,7 +307,7 @@ declare const NFTImmutableState_base: (new (value: {
|
|
|
307
307
|
isOdd: Bool | boolean;
|
|
308
308
|
};
|
|
309
309
|
tokenId: string | number | bigint | import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
|
|
310
|
-
id: bigint | UInt64;
|
|
310
|
+
id: number | bigint | UInt64;
|
|
311
311
|
}) => {
|
|
312
312
|
canChangeOwnerByProof: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
|
|
313
313
|
canTransfer: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
|
|
@@ -582,7 +582,7 @@ declare const NFTState_base: (new (value: {
|
|
|
582
582
|
isOdd: Bool | boolean;
|
|
583
583
|
};
|
|
584
584
|
tokenId: string | number | bigint | import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
|
|
585
|
-
id: bigint | UInt64;
|
|
585
|
+
id: number | bigint | UInt64;
|
|
586
586
|
};
|
|
587
587
|
name: string | number | bigint | import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
|
|
588
588
|
owner: PublicKey | {
|
|
@@ -597,7 +597,7 @@ declare const NFTState_base: (new (value: {
|
|
|
597
597
|
storage: Storage | {
|
|
598
598
|
url: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[] | bigint[];
|
|
599
599
|
};
|
|
600
|
-
version: bigint | UInt32;
|
|
600
|
+
version: number | bigint | UInt32;
|
|
601
601
|
isPaused: boolean | import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
|
|
602
602
|
metadataVerificationKeyHash: string | number | bigint | import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
|
|
603
603
|
creator: PublicKey | {
|
|
@@ -880,8 +880,8 @@ declare const NFTData_base: (new (value: {
|
|
|
880
880
|
x: Field | bigint;
|
|
881
881
|
isOdd: Bool | boolean;
|
|
882
882
|
};
|
|
883
|
-
version: bigint | UInt32;
|
|
884
|
-
id: bigint | UInt64;
|
|
883
|
+
version: number | bigint | UInt32;
|
|
884
|
+
id: number | bigint | UInt64;
|
|
885
885
|
canChangeOwnerByProof: boolean | import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
|
|
886
886
|
canTransfer: boolean | import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
|
|
887
887
|
canApprove: boolean | import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
|
|
@@ -1080,8 +1080,8 @@ declare const CollectionData_base: (new (value: {
|
|
|
1080
1080
|
};
|
|
1081
1081
|
} & {
|
|
1082
1082
|
fromValue: (value: {
|
|
1083
|
-
royaltyFee: bigint | UInt32;
|
|
1084
|
-
transferFee: bigint | UInt64;
|
|
1083
|
+
royaltyFee: number | bigint | UInt32;
|
|
1084
|
+
transferFee: number | bigint | UInt64;
|
|
1085
1085
|
requireTransferApproval: boolean | import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
|
|
1086
1086
|
mintingIsLimited: boolean | import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
|
|
1087
1087
|
isPaused: boolean | import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
|
|
@@ -1264,8 +1264,8 @@ declare const MintParams_base: (new (value: {
|
|
|
1264
1264
|
x: Field | bigint;
|
|
1265
1265
|
isOdd: Bool | boolean;
|
|
1266
1266
|
};
|
|
1267
|
-
version: bigint | UInt32;
|
|
1268
|
-
id: bigint | UInt64;
|
|
1267
|
+
version: number | bigint | UInt32;
|
|
1268
|
+
id: number | bigint | UInt64;
|
|
1269
1269
|
canChangeOwnerByProof: boolean | import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
|
|
1270
1270
|
canTransfer: boolean | import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
|
|
1271
1271
|
canApprove: boolean | import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
|
|
@@ -1277,13 +1277,13 @@ declare const MintParams_base: (new (value: {
|
|
|
1277
1277
|
isPaused: boolean | import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
|
|
1278
1278
|
requireOwnerAuthorizationToUpgrade: boolean | import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
|
|
1279
1279
|
};
|
|
1280
|
-
fee: bigint | UInt64;
|
|
1280
|
+
fee: number | bigint | UInt64;
|
|
1281
1281
|
metadata: string | number | bigint | import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
|
|
1282
1282
|
storage: Storage | {
|
|
1283
1283
|
url: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[] | bigint[];
|
|
1284
1284
|
};
|
|
1285
1285
|
metadataVerificationKeyHash: string | number | bigint | import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
|
|
1286
|
-
expiry: bigint | UInt32;
|
|
1286
|
+
expiry: number | bigint | UInt32;
|
|
1287
1287
|
}) => {
|
|
1288
1288
|
name: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
|
|
1289
1289
|
address: PublicKey;
|
|
@@ -218,11 +218,11 @@ declare const Auction_base: (new (value: {
|
|
|
218
218
|
x: Field | bigint;
|
|
219
219
|
isOdd: Bool | boolean;
|
|
220
220
|
};
|
|
221
|
-
minimumPrice: bigint | UInt64;
|
|
222
|
-
transferFee: bigint | UInt64;
|
|
223
|
-
saleFee: bigint | UInt32;
|
|
224
|
-
auctionEndTime: bigint | UInt32;
|
|
225
|
-
withdrawPeriod: bigint | UInt32;
|
|
221
|
+
minimumPrice: number | bigint | UInt64;
|
|
222
|
+
transferFee: number | bigint | UInt64;
|
|
223
|
+
saleFee: number | bigint | UInt32;
|
|
224
|
+
auctionEndTime: number | bigint | UInt32;
|
|
225
|
+
withdrawPeriod: number | bigint | UInt32;
|
|
226
226
|
isOwnerPaid: boolean | import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
|
|
227
227
|
isNFTtransferred: boolean | import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
|
|
228
228
|
isNFTwithdrawn: boolean | import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
|
|
@@ -392,7 +392,7 @@ declare const AuctionState_base: (new (value: {
|
|
|
392
392
|
};
|
|
393
393
|
} & {
|
|
394
394
|
fromValue: (value: {
|
|
395
|
-
bidAmount: bigint | UInt64;
|
|
395
|
+
bidAmount: number | bigint | UInt64;
|
|
396
396
|
auction: Auction | {
|
|
397
397
|
owner: PublicKey | {
|
|
398
398
|
x: Field | bigint;
|
|
@@ -414,11 +414,11 @@ declare const AuctionState_base: (new (value: {
|
|
|
414
414
|
x: Field | bigint;
|
|
415
415
|
isOdd: Bool | boolean;
|
|
416
416
|
};
|
|
417
|
-
minimumPrice: bigint | UInt64;
|
|
418
|
-
transferFee: bigint | UInt64;
|
|
419
|
-
saleFee: bigint | UInt32;
|
|
420
|
-
auctionEndTime: bigint | UInt32;
|
|
421
|
-
withdrawPeriod: bigint | UInt32;
|
|
417
|
+
minimumPrice: number | bigint | UInt64;
|
|
418
|
+
transferFee: number | bigint | UInt64;
|
|
419
|
+
saleFee: number | bigint | UInt32;
|
|
420
|
+
auctionEndTime: number | bigint | UInt32;
|
|
421
|
+
withdrawPeriod: number | bigint | UInt32;
|
|
422
422
|
isOwnerPaid: boolean | import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
|
|
423
423
|
isNFTtransferred: boolean | import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
|
|
424
424
|
isNFTwithdrawn: boolean | import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
|
|
@@ -539,7 +539,7 @@ declare const AuctionBidEvent_base: (new (value: {
|
|
|
539
539
|
x: Field | bigint;
|
|
540
540
|
isOdd: Bool | boolean;
|
|
541
541
|
};
|
|
542
|
-
price: bigint | UInt64;
|
|
542
|
+
price: number | bigint | UInt64;
|
|
543
543
|
}) => {
|
|
544
544
|
bidder: PublicKey;
|
|
545
545
|
price: UInt64;
|
|
@@ -627,9 +627,9 @@ export declare function AuctionFactory(params: {
|
|
|
627
627
|
getUnconstrained(): PublicKey;
|
|
628
628
|
getAndRequireSignature(): PublicKey;
|
|
629
629
|
};
|
|
630
|
-
readonly account: import("node_modules/o1js/dist/node/lib/mina/precondition.js").Account;
|
|
631
|
-
readonly network: import("node_modules/o1js/dist/node/lib/mina/precondition.js").Network;
|
|
632
|
-
readonly currentSlot: import("node_modules/o1js/dist/node/lib/mina/precondition.js").CurrentSlot;
|
|
630
|
+
readonly account: import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").Account;
|
|
631
|
+
readonly network: import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").Network;
|
|
632
|
+
readonly currentSlot: import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").CurrentSlot;
|
|
633
633
|
approve(update: AccountUpdate | import("o1js").AccountUpdateTree | import("o1js").AccountUpdateForest): void;
|
|
634
634
|
send(args: {
|
|
635
635
|
to: PublicKey | AccountUpdate | SmartContract;
|
|
@@ -664,9 +664,9 @@ export declare function AuctionFactory(params: {
|
|
|
664
664
|
rows: number;
|
|
665
665
|
digest: string;
|
|
666
666
|
gates: import("node_modules/o1js/dist/node/snarky.js").Gate[];
|
|
667
|
+
proofs: import("node_modules/o1js/dist/node/lib/proof-system/proof.js").ProofClass[];
|
|
667
668
|
}>;
|
|
668
669
|
_provers?: import("node_modules/o1js/dist/node/snarky.js").Pickles.Prover[];
|
|
669
|
-
_maxProofsVerified?: 0 | 1 | 2;
|
|
670
670
|
_verificationKey?: {
|
|
671
671
|
data: string;
|
|
672
672
|
hash: Field;
|
|
@@ -685,6 +685,7 @@ export declare function AuctionFactory(params: {
|
|
|
685
685
|
proof: unknown;
|
|
686
686
|
maxProofsVerified: 0 | 2 | 1;
|
|
687
687
|
shouldVerify: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
|
|
688
|
+
declare(): boolean;
|
|
688
689
|
toJSON(): import("o1js").JsonProof;
|
|
689
690
|
publicFields(): {
|
|
690
691
|
input: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
|
|
@@ -750,7 +751,7 @@ export declare function AuctionFactory(params: {
|
|
|
750
751
|
_proofFromBase64(proofString: string, maxProofsVerified: 0 | 2 | 1): unknown;
|
|
751
752
|
_proofToBase64(proof: unknown, maxProofsVerified: 0 | 2 | 1): string;
|
|
752
753
|
};
|
|
753
|
-
compile({ cache, forceRecompile
|
|
754
|
+
compile({ cache, forceRecompile }?: {
|
|
754
755
|
cache?: import("o1js").Cache | undefined;
|
|
755
756
|
forceRecompile?: boolean | undefined;
|
|
756
757
|
}): Promise<{
|
|
@@ -762,6 +763,7 @@ export declare function AuctionFactory(params: {
|
|
|
762
763
|
verify: (statement: import("node_modules/o1js/dist/node/snarky.js").Pickles.Statement<import("node_modules/o1js/dist/node/lib/provable/core/fieldvar.js").FieldConst>, proof: unknown) => Promise<boolean>;
|
|
763
764
|
}>;
|
|
764
765
|
digest(): Promise<string>;
|
|
766
|
+
getMaxProofsVerified(): Promise<0 | 2 | 1>;
|
|
765
767
|
runOutsideCircuit(run: () => void): void;
|
|
766
768
|
analyzeMethods({ printSummary }?: {
|
|
767
769
|
printSummary?: boolean | undefined;
|
|
@@ -770,6 +772,7 @@ export declare function AuctionFactory(params: {
|
|
|
770
772
|
rows: number;
|
|
771
773
|
digest: string;
|
|
772
774
|
gates: import("node_modules/o1js/dist/node/snarky.js").Gate[];
|
|
775
|
+
proofs: import("node_modules/o1js/dist/node/lib/proof-system/proof.js").ProofClass[];
|
|
773
776
|
}>>;
|
|
774
777
|
};
|
|
775
778
|
export {};
|
|
@@ -117,7 +117,7 @@ declare const BB_OfferEvent_base: (new (value: {
|
|
|
117
117
|
x: Field | bigint;
|
|
118
118
|
isOdd: Bool | boolean;
|
|
119
119
|
};
|
|
120
|
-
price: bigint | UInt64;
|
|
120
|
+
price: number | bigint | UInt64;
|
|
121
121
|
}) => {
|
|
122
122
|
collection: PublicKey;
|
|
123
123
|
nft: PublicKey;
|
|
@@ -283,7 +283,7 @@ declare const BB_BidEvent_base: (new (value: {
|
|
|
283
283
|
x: Field | bigint;
|
|
284
284
|
isOdd: Bool | boolean;
|
|
285
285
|
};
|
|
286
|
-
price: bigint | UInt64;
|
|
286
|
+
price: number | bigint | UInt64;
|
|
287
287
|
}) => {
|
|
288
288
|
collection: PublicKey;
|
|
289
289
|
nft: PublicKey;
|
|
@@ -468,7 +468,7 @@ declare const BB_SaleEvent_base: (new (value: {
|
|
|
468
468
|
x: Field | bigint;
|
|
469
469
|
isOdd: Bool | boolean;
|
|
470
470
|
};
|
|
471
|
-
price: bigint | UInt64;
|
|
471
|
+
price: number | bigint | UInt64;
|
|
472
472
|
}) => {
|
|
473
473
|
collection: PublicKey;
|
|
474
474
|
nft: PublicKey;
|