@silvana-one/nft 1.0.0 → 1.0.1

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.
@@ -151,7 +151,7 @@ export declare const NFTAdvancedAdmin: {
151
151
  calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
152
152
  };
153
153
  };
154
- publicOutputType: import("node_modules/o1js/dist/node/lib/provable/types/struct.js").ProvablePureExtended<undefined, undefined, null>;
154
+ publicOutputType: import("o1js").ProvablePureExtended<undefined, undefined, null>;
155
155
  tag: () => typeof import("o1js").SmartContract;
156
156
  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"]>>>;
157
157
  dummy<Input, OutPut>(publicInput: Input, publicOutput: OutPut, maxProofsVerified: 0 | 2 | 1, domainLog2?: number): Promise<import("o1js").Proof<Input, OutPut>>;
@@ -185,6 +185,10 @@ export declare const NFTAdvancedAdmin: {
185
185
  }>;
186
186
  digest(): Promise<string>;
187
187
  getMaxProofsVerified(): Promise<0 | 2 | 1>;
188
+ setVerificationKeyUnsafe(verificationKey: {
189
+ data: string;
190
+ hash: import("o1js").Field | string;
191
+ }): void;
188
192
  runOutsideCircuit(run: () => void): void;
189
193
  analyzeMethods({ printSummary }?: {
190
194
  printSummary?: boolean | undefined;
@@ -421,7 +425,7 @@ export declare const Collection: {
421
425
  calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
422
426
  };
423
427
  };
424
- publicOutputType: import("node_modules/o1js/dist/node/lib/provable/types/struct.js").ProvablePureExtended<undefined, undefined, null>;
428
+ publicOutputType: import("o1js").ProvablePureExtended<undefined, undefined, null>;
425
429
  tag: () => typeof import("o1js").SmartContract;
426
430
  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"]>>>;
427
431
  dummy<Input, OutPut>(publicInput: Input, publicOutput: OutPut, maxProofsVerified: 0 | 2 | 1, domainLog2?: number): Promise<import("o1js").Proof<Input, OutPut>>;
@@ -455,6 +459,10 @@ export declare const Collection: {
455
459
  }>;
456
460
  digest(): Promise<string>;
457
461
  getMaxProofsVerified(): Promise<0 | 2 | 1>;
462
+ setVerificationKeyUnsafe(verificationKey: {
463
+ data: string;
464
+ hash: import("o1js").Field | string;
465
+ }): void;
458
466
  runOutsideCircuit(run: () => void): void;
459
467
  analyzeMethods({ printSummary }?: {
460
468
  printSummary?: boolean | undefined;
@@ -679,7 +687,7 @@ export declare const AdvancedCollection: {
679
687
  calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
680
688
  };
681
689
  };
682
- publicOutputType: import("node_modules/o1js/dist/node/lib/provable/types/struct.js").ProvablePureExtended<undefined, undefined, null>;
690
+ publicOutputType: import("o1js").ProvablePureExtended<undefined, undefined, null>;
683
691
  tag: () => typeof import("o1js").SmartContract;
684
692
  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"]>>>;
685
693
  dummy<Input, OutPut>(publicInput: Input, publicOutput: OutPut, maxProofsVerified: 0 | 2 | 1, domainLog2?: number): Promise<import("o1js").Proof<Input, OutPut>>;
@@ -713,6 +721,10 @@ export declare const AdvancedCollection: {
713
721
  }>;
714
722
  digest(): Promise<string>;
715
723
  getMaxProofsVerified(): Promise<0 | 2 | 1>;
724
+ setVerificationKeyUnsafe(verificationKey: {
725
+ data: string;
726
+ hash: import("o1js").Field | string;
727
+ }): void;
716
728
  runOutsideCircuit(run: () => void): void;
717
729
  analyzeMethods({ printSummary }?: {
718
730
  printSummary?: boolean | undefined;
@@ -730,7 +730,7 @@ export declare function AuctionFactory(params: {
730
730
  calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
731
731
  };
732
732
  };
733
- publicOutputType: import("node_modules/o1js/dist/node/lib/provable/types/struct.js").ProvablePureExtended<undefined, undefined, null>;
733
+ publicOutputType: import("o1js").ProvablePureExtended<undefined, undefined, null>;
734
734
  tag: () => typeof SmartContract;
735
735
  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"]>>>;
736
736
  dummy<Input, OutPut>(publicInput: Input, publicOutput: OutPut, maxProofsVerified: 0 | 2 | 1, domainLog2?: number): Promise<import("o1js").Proof<Input, OutPut>>;
@@ -764,6 +764,10 @@ export declare function AuctionFactory(params: {
764
764
  }>;
765
765
  digest(): Promise<string>;
766
766
  getMaxProofsVerified(): Promise<0 | 2 | 1>;
767
+ setVerificationKeyUnsafe(verificationKey: {
768
+ data: string;
769
+ hash: Field | string;
770
+ }): void;
767
771
  runOutsideCircuit(run: () => void): void;
768
772
  analyzeMethods({ printSummary }?: {
769
773
  printSummary?: boolean | undefined;
@@ -209,7 +209,7 @@ export declare function BidFactory(params: {
209
209
  calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
210
210
  };
211
211
  };
212
- publicOutputType: import("node_modules/o1js/dist/node/lib/provable/types/struct.js").ProvablePureExtended<undefined, undefined, null>;
212
+ publicOutputType: import("o1js").ProvablePureExtended<undefined, undefined, null>;
213
213
  tag: () => typeof SmartContract;
214
214
  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"]>>>;
215
215
  dummy<Input, OutPut>(publicInput: Input, publicOutput: OutPut, maxProofsVerified: 0 | 2 | 1, domainLog2?: number): Promise<import("o1js").Proof<Input, OutPut>>;
@@ -243,6 +243,10 @@ export declare function BidFactory(params: {
243
243
  }>;
244
244
  digest(): Promise<string>;
245
245
  getMaxProofsVerified(): Promise<0 | 2 | 1>;
246
+ setVerificationKeyUnsafe(verificationKey: {
247
+ data: string;
248
+ hash: Field | string;
249
+ }): void;
246
250
  runOutsideCircuit(run: () => void): void;
247
251
  analyzeMethods({ printSummary }?: {
248
252
  printSummary?: boolean | undefined;
@@ -564,7 +564,7 @@ export declare function NFTSharesFactory(params: {
564
564
  calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
565
565
  };
566
566
  };
567
- publicOutputType: import("node_modules/o1js/dist/node/lib/provable/types/struct.js").ProvablePureExtended<undefined, undefined, null>;
567
+ publicOutputType: import("o1js").ProvablePureExtended<undefined, undefined, null>;
568
568
  tag: () => typeof SmartContract;
569
569
  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"]>>>;
570
570
  dummy<Input, OutPut>(publicInput: Input, publicOutput: OutPut, maxProofsVerified: 0 | 2 | 1, domainLog2?: number): Promise<import("o1js").Proof<Input, OutPut>>;
@@ -598,6 +598,10 @@ export declare function NFTSharesFactory(params: {
598
598
  }>;
599
599
  digest(): Promise<string>;
600
600
  getMaxProofsVerified(): Promise<0 | 2 | 1>;
601
+ setVerificationKeyUnsafe(verificationKey: {
602
+ data: string;
603
+ hash: Field | string;
604
+ }): void;
601
605
  runOutsideCircuit(run: () => void): void;
602
606
  analyzeMethods({ printSummary }?: {
603
607
  printSummary?: boolean | undefined;
@@ -834,7 +838,7 @@ export declare function NFTSharesFactory(params: {
834
838
  calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
835
839
  };
836
840
  };
837
- publicOutputType: import("node_modules/o1js/dist/node/lib/provable/types/struct.js").ProvablePureExtended<undefined, undefined, null>;
841
+ publicOutputType: import("o1js").ProvablePureExtended<undefined, undefined, null>;
838
842
  tag: () => typeof SmartContract;
839
843
  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"]>>>;
840
844
  dummy<Input, OutPut>(publicInput: Input, publicOutput: OutPut, maxProofsVerified: 0 | 2 | 1, domainLog2?: number): Promise<import("o1js").Proof<Input, OutPut>>;
@@ -868,6 +872,10 @@ export declare function NFTSharesFactory(params: {
868
872
  }>;
869
873
  digest(): Promise<string>;
870
874
  getMaxProofsVerified(): Promise<0 | 2 | 1>;
875
+ setVerificationKeyUnsafe(verificationKey: {
876
+ data: string;
877
+ hash: Field | string;
878
+ }): void;
871
879
  runOutsideCircuit(run: () => void): void;
872
880
  analyzeMethods({ printSummary }?: {
873
881
  printSummary?: boolean | undefined;
@@ -1043,7 +1051,7 @@ export declare function NFTSharesFactory(params: {
1043
1051
  calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
1044
1052
  };
1045
1053
  };
1046
- publicOutputType: import("node_modules/o1js/dist/node/lib/provable/types/struct.js").ProvablePureExtended<undefined, undefined, null>;
1054
+ publicOutputType: import("o1js").ProvablePureExtended<undefined, undefined, null>;
1047
1055
  tag: () => typeof SmartContract;
1048
1056
  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"]>>>;
1049
1057
  dummy<Input, OutPut>(publicInput: Input, publicOutput: OutPut, maxProofsVerified: 0 | 2 | 1, domainLog2?: number): Promise<import("o1js").Proof<Input, OutPut>>;
@@ -1077,6 +1085,10 @@ export declare function NFTSharesFactory(params: {
1077
1085
  }>;
1078
1086
  digest(): Promise<string>;
1079
1087
  getMaxProofsVerified(): Promise<0 | 2 | 1>;
1088
+ setVerificationKeyUnsafe(verificationKey: {
1089
+ data: string;
1090
+ hash: Field | string;
1091
+ }): void;
1080
1092
  runOutsideCircuit(run: () => void): void;
1081
1093
  analyzeMethods({ printSummary }?: {
1082
1094
  printSummary?: boolean | undefined;
@@ -148,7 +148,7 @@ export declare function OfferFactory(params: {
148
148
  calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
149
149
  };
150
150
  };
151
- publicOutputType: import("node_modules/o1js/dist/node/lib/provable/types/struct.js").ProvablePureExtended<undefined, undefined, null>;
151
+ publicOutputType: import("o1js").ProvablePureExtended<undefined, undefined, null>;
152
152
  tag: () => typeof SmartContract;
153
153
  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"]>>>;
154
154
  dummy<Input, OutPut>(publicInput: Input, publicOutput: OutPut, maxProofsVerified: 0 | 2 | 1, domainLog2?: number): Promise<import("o1js").Proof<Input, OutPut>>;
@@ -182,6 +182,10 @@ export declare function OfferFactory(params: {
182
182
  }>;
183
183
  digest(): Promise<string>;
184
184
  getMaxProofsVerified(): Promise<0 | 2 | 1>;
185
+ setVerificationKeyUnsafe(verificationKey: {
186
+ data: string;
187
+ hash: Field | string;
188
+ }): void;
185
189
  runOutsideCircuit(run: () => void): void;
186
190
  analyzeMethods({ printSummary }?: {
187
191
  printSummary?: boolean | undefined;
@@ -18,6 +18,7 @@ declare const NFTGameProgram: {
18
18
  cache?: Cache;
19
19
  forceRecompile?: boolean;
20
20
  proofsEnabled?: boolean;
21
+ withRuntimeTables?: boolean;
21
22
  }) => Promise<{
22
23
  verificationKey: {
23
24
  data: string;
@@ -27,23 +28,11 @@ declare const NFTGameProgram: {
27
28
  verify: (proof: import("o1js").Proof<NFTState, NFTState>) => Promise<boolean>;
28
29
  digest: () => Promise<string>;
29
30
  analyzeMethods: () => Promise<{
30
- updateMetadataAndOwner: {
31
+ updateMetadataAndOwner: import("node_modules/o1js/dist/node/lib/provable/core/provable-context.js").ConstraintSystemSummary & {
31
32
  proofs: import("node_modules/o1js/dist/node/lib/proof-system/proof.js").ProofClass[];
32
- rows: number;
33
- digest: string;
34
- gates: import("node_modules/o1js/dist/node/snarky.js").Gate[];
35
- publicInputSize: number;
36
- print(): void;
37
- summary(): Partial<Record<import("node_modules/o1js/dist/node/snarky.js").GateType | "Total rows", number>>;
38
- };
39
- merge: {
33
+ };
34
+ merge: import("node_modules/o1js/dist/node/lib/provable/core/provable-context.js").ConstraintSystemSummary & {
40
35
  proofs: import("node_modules/o1js/dist/node/lib/proof-system/proof.js").ProofClass[];
41
- rows: number;
42
- digest: string;
43
- gates: import("node_modules/o1js/dist/node/snarky.js").Gate[];
44
- publicInputSize: number;
45
- print(): void;
46
- summary(): Partial<Record<import("node_modules/o1js/dist/node/snarky.js").GateType | "Total rows", number>>;
47
36
  };
48
37
  }>;
49
38
  publicInputType: typeof NFTState;
@@ -18,6 +18,7 @@ declare const NFTProgram: {
18
18
  cache?: Cache;
19
19
  forceRecompile?: boolean;
20
20
  proofsEnabled?: boolean;
21
+ withRuntimeTables?: boolean;
21
22
  }) => Promise<{
22
23
  verificationKey: {
23
24
  data: string;
@@ -27,23 +28,11 @@ declare const NFTProgram: {
27
28
  verify: (proof: import("o1js").Proof<NFTState, NFTState>) => Promise<boolean>;
28
29
  digest: () => Promise<string>;
29
30
  analyzeMethods: () => Promise<{
30
- insertMetadata: {
31
+ insertMetadata: import("node_modules/o1js/dist/node/lib/provable/core/provable-context.js").ConstraintSystemSummary & {
31
32
  proofs: import("node_modules/o1js/dist/node/lib/proof-system/proof.js").ProofClass[];
32
- rows: number;
33
- digest: string;
34
- gates: import("node_modules/o1js/dist/node/snarky.js").Gate[];
35
- publicInputSize: number;
36
- print(): void;
37
- summary(): Partial<Record<import("node_modules/o1js/dist/node/snarky.js").GateType | "Total rows", number>>;
38
- };
39
- merge: {
33
+ };
34
+ merge: import("node_modules/o1js/dist/node/lib/provable/core/provable-context.js").ConstraintSystemSummary & {
40
35
  proofs: import("node_modules/o1js/dist/node/lib/proof-system/proof.js").ProofClass[];
41
- rows: number;
42
- digest: string;
43
- gates: import("node_modules/o1js/dist/node/snarky.js").Gate[];
44
- publicInputSize: number;
45
- print(): void;
46
- summary(): Partial<Record<import("node_modules/o1js/dist/node/snarky.js").GateType | "Total rows", number>>;
47
36
  };
48
37
  }>;
49
38
  publicInputType: typeof NFTState;
package/package.json CHANGED
@@ -1,24 +1,24 @@
1
1
  {
2
2
  "name": "@silvana-one/nft",
3
3
  "description": "Mina NFT library",
4
- "version": "1.0.0",
4
+ "version": "1.0.1",
5
5
  "author": "DFST",
6
6
  "bugs": "https://github.com/SilvanaOne/silvana-lib/issues",
7
7
  "dependencies": {
8
8
  "tslib": "^2.8.1"
9
9
  },
10
10
  "devDependencies": {
11
- "@silvana-one/mina-utils": "1.0.0",
12
- "@silvana-one/storage": "1.0.0",
13
- "@silvana-one/token": "1.0.0",
14
- "@silvana-one/upgradable": "1.0.0",
15
- "@types/node": "^22.13.8",
11
+ "@silvana-one/mina-utils": "1.0.1",
12
+ "@silvana-one/storage": "1.0.1",
13
+ "@silvana-one/token": "1.0.1",
14
+ "@silvana-one/upgradable": "1.0.1",
15
+ "@types/node": "^22.14.1",
16
16
  "c8": "^10.1.3",
17
- "dotenv": "^16.4.7",
18
- "esbuild": "^0.25.0",
19
- "o1js": "^2.3.0",
17
+ "dotenv": "^16.5.0",
18
+ "esbuild": "^0.25.2",
19
+ "o1js": "^2.4.0",
20
20
  "ts-node": "^10.9.2",
21
- "typescript": "^5.8.2",
21
+ "typescript": "^5.8.3",
22
22
  "unique-names-generator": "^4.7.1"
23
23
  },
24
24
  "engines": {
@@ -50,9 +50,9 @@
50
50
  "license": "Apache-2.0",
51
51
  "main": "dist/web/index.js",
52
52
  "peerDependencies": {
53
- "@silvana-one/storage": "1.0.0",
54
- "@silvana-one/token": "1.0.0",
55
- "@silvana-one/upgradable": "1.0.0",
53
+ "@silvana-one/storage": "1.0.1",
54
+ "@silvana-one/token": "1.0.1",
55
+ "@silvana-one/upgradable": "1.0.1",
56
56
  "o1js": "^2.3.0"
57
57
  },
58
58
  "publishConfig": {