@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.
@@ -23,8 +23,8 @@ declare const Bid_base: (new (value: {
23
23
  };
24
24
  } & {
25
25
  fromValue: (value: {
26
- price: bigint | UInt64;
27
- points: bigint | UInt64;
26
+ price: number | bigint | UInt64;
27
+ points: number | bigint | UInt64;
28
28
  }) => {
29
29
  price: UInt64;
30
30
  points: UInt64;
@@ -106,9 +106,9 @@ export declare function BidFactory(params: {
106
106
  getUnconstrained(): PublicKey;
107
107
  getAndRequireSignature(): PublicKey;
108
108
  };
109
- readonly account: import("node_modules/o1js/dist/node/lib/mina/precondition.js").Account;
110
- readonly network: import("node_modules/o1js/dist/node/lib/mina/precondition.js").Network;
111
- readonly currentSlot: import("node_modules/o1js/dist/node/lib/mina/precondition.js").CurrentSlot;
109
+ readonly account: import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").Account;
110
+ readonly network: import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").Network;
111
+ readonly currentSlot: import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").CurrentSlot;
112
112
  approve(update: AccountUpdate | import("o1js").AccountUpdateTree | import("o1js").AccountUpdateForest): void;
113
113
  send(args: {
114
114
  to: PublicKey | AccountUpdate | SmartContract;
@@ -143,9 +143,9 @@ export declare function BidFactory(params: {
143
143
  rows: number;
144
144
  digest: string;
145
145
  gates: import("node_modules/o1js/dist/node/snarky.js").Gate[];
146
+ proofs: import("node_modules/o1js/dist/node/lib/proof-system/proof.js").ProofClass[];
146
147
  }>;
147
148
  _provers?: import("node_modules/o1js/dist/node/snarky.js").Pickles.Prover[];
148
- _maxProofsVerified?: 0 | 1 | 2;
149
149
  _verificationKey?: {
150
150
  data: string;
151
151
  hash: Field;
@@ -164,6 +164,7 @@ export declare function BidFactory(params: {
164
164
  proof: unknown;
165
165
  maxProofsVerified: 0 | 2 | 1;
166
166
  shouldVerify: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
167
+ declare(): boolean;
167
168
  toJSON(): import("o1js").JsonProof;
168
169
  publicFields(): {
169
170
  input: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
@@ -229,7 +230,7 @@ export declare function BidFactory(params: {
229
230
  _proofFromBase64(proofString: string, maxProofsVerified: 0 | 2 | 1): unknown;
230
231
  _proofToBase64(proof: unknown, maxProofsVerified: 0 | 2 | 1): string;
231
232
  };
232
- compile({ cache, forceRecompile, }?: {
233
+ compile({ cache, forceRecompile }?: {
233
234
  cache?: import("o1js").Cache | undefined;
234
235
  forceRecompile?: boolean | undefined;
235
236
  }): Promise<{
@@ -241,6 +242,7 @@ export declare function BidFactory(params: {
241
242
  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>;
242
243
  }>;
243
244
  digest(): Promise<string>;
245
+ getMaxProofsVerified(): Promise<0 | 2 | 1>;
244
246
  runOutsideCircuit(run: () => void): void;
245
247
  analyzeMethods({ printSummary }?: {
246
248
  printSummary?: boolean | undefined;
@@ -249,6 +251,7 @@ export declare function BidFactory(params: {
249
251
  rows: number;
250
252
  digest: string;
251
253
  gates: import("node_modules/o1js/dist/node/snarky.js").Gate[];
254
+ proofs: import("node_modules/o1js/dist/node/lib/proof-system/proof.js").ProofClass[];
252
255
  }>>;
253
256
  };
254
257
  export {};
@@ -204,8 +204,8 @@ declare const NFTSharesData_base: (new (value: {
204
204
  x: Field | bigint;
205
205
  isOdd: Bool | boolean;
206
206
  };
207
- maxBuyPrice: bigint | UInt64;
208
- minSellPrice: bigint | UInt64;
207
+ maxBuyPrice: number | bigint | UInt64;
208
+ minSellPrice: number | bigint | UInt64;
209
209
  }) => {
210
210
  admin: PublicKey;
211
211
  owner: PublicKey;
@@ -346,9 +346,9 @@ export declare function NFTSharesFactory(params: {
346
346
  getUnconstrained(): PublicKey;
347
347
  getAndRequireSignature(): PublicKey;
348
348
  };
349
- readonly account: import("node_modules/o1js/dist/node/lib/mina/precondition.js").Account;
350
- readonly network: import("node_modules/o1js/dist/node/lib/mina/precondition.js").Network;
351
- readonly currentSlot: import("node_modules/o1js/dist/node/lib/mina/precondition.js").CurrentSlot;
349
+ readonly account: import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").Account;
350
+ readonly network: import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").Network;
351
+ readonly currentSlot: import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").CurrentSlot;
352
352
  approve(update: AccountUpdate | import("o1js").AccountUpdateTree | import("o1js").AccountUpdateForest): void;
353
353
  send(args: {
354
354
  to: PublicKey | AccountUpdate | SmartContract;
@@ -406,9 +406,9 @@ export declare function NFTSharesFactory(params: {
406
406
  getUnconstrained(): PublicKey;
407
407
  getAndRequireSignature(): PublicKey;
408
408
  };
409
- readonly account: import("node_modules/o1js/dist/node/lib/mina/precondition.js").Account;
410
- readonly network: import("node_modules/o1js/dist/node/lib/mina/precondition.js").Network;
411
- readonly currentSlot: import("node_modules/o1js/dist/node/lib/mina/precondition.js").CurrentSlot;
409
+ readonly account: import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").Account;
410
+ readonly network: import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").Network;
411
+ readonly currentSlot: import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").CurrentSlot;
412
412
  approve(update: AccountUpdate | import("o1js").AccountUpdateTree | import("o1js").AccountUpdateForest): void;
413
413
  send(args: {
414
414
  to: PublicKey | AccountUpdate | SmartContract;
@@ -458,9 +458,9 @@ export declare function NFTSharesFactory(params: {
458
458
  getUnconstrained(): PublicKey;
459
459
  getAndRequireSignature(): PublicKey;
460
460
  };
461
- readonly account: import("node_modules/o1js/dist/node/lib/mina/precondition.js").Account;
462
- readonly network: import("node_modules/o1js/dist/node/lib/mina/precondition.js").Network;
463
- readonly currentSlot: import("node_modules/o1js/dist/node/lib/mina/precondition.js").CurrentSlot;
461
+ readonly account: import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").Account;
462
+ readonly network: import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").Network;
463
+ readonly currentSlot: import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").CurrentSlot;
464
464
  approve(update: AccountUpdate | import("o1js").AccountUpdateTree | import("o1js").AccountUpdateForest): void;
465
465
  send(args: {
466
466
  to: PublicKey | AccountUpdate | SmartContract;
@@ -498,9 +498,9 @@ export declare function NFTSharesFactory(params: {
498
498
  rows: number;
499
499
  digest: string;
500
500
  gates: import("node_modules/o1js/dist/node/snarky.js").Gate[];
501
+ proofs: import("node_modules/o1js/dist/node/lib/proof-system/proof.js").ProofClass[];
501
502
  }>;
502
503
  _provers?: import("node_modules/o1js/dist/node/snarky.js").Pickles.Prover[];
503
- _maxProofsVerified?: 0 | 1 | 2;
504
504
  _verificationKey?: {
505
505
  data: string;
506
506
  hash: Field;
@@ -519,6 +519,7 @@ export declare function NFTSharesFactory(params: {
519
519
  proof: unknown;
520
520
  maxProofsVerified: 0 | 2 | 1;
521
521
  shouldVerify: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
522
+ declare(): boolean;
522
523
  toJSON(): import("o1js").JsonProof;
523
524
  publicFields(): {
524
525
  input: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
@@ -584,7 +585,7 @@ export declare function NFTSharesFactory(params: {
584
585
  _proofFromBase64(proofString: string, maxProofsVerified: 0 | 2 | 1): unknown;
585
586
  _proofToBase64(proof: unknown, maxProofsVerified: 0 | 2 | 1): string;
586
587
  };
587
- compile({ cache, forceRecompile, }?: {
588
+ compile({ cache, forceRecompile }?: {
588
589
  cache?: import("o1js").Cache | undefined;
589
590
  forceRecompile?: boolean | undefined;
590
591
  }): Promise<{
@@ -596,6 +597,7 @@ export declare function NFTSharesFactory(params: {
596
597
  verify: (statement: import("node_modules/o1js/dist/node/snarky.js").Pickles.Statement<import("node_modules/o1js/dist/node/lib/provable/core/fieldvar.js").FieldConst>, proof: unknown) => Promise<boolean>;
597
598
  }>;
598
599
  digest(): Promise<string>;
600
+ getMaxProofsVerified(): Promise<0 | 2 | 1>;
599
601
  runOutsideCircuit(run: () => void): void;
600
602
  analyzeMethods({ printSummary }?: {
601
603
  printSummary?: boolean | undefined;
@@ -604,6 +606,7 @@ export declare function NFTSharesFactory(params: {
604
606
  rows: number;
605
607
  digest: string;
606
608
  gates: import("node_modules/o1js/dist/node/snarky.js").Gate[];
609
+ proofs: import("node_modules/o1js/dist/node/lib/proof-system/proof.js").ProofClass[];
607
610
  }>>;
608
611
  };
609
612
  NFTSharesOwner: {
@@ -665,9 +668,9 @@ export declare function NFTSharesFactory(params: {
665
668
  getUnconstrained(): PublicKey;
666
669
  getAndRequireSignature(): PublicKey;
667
670
  };
668
- readonly account: import("node_modules/o1js/dist/node/lib/mina/precondition.js").Account;
669
- readonly network: import("node_modules/o1js/dist/node/lib/mina/precondition.js").Network;
670
- readonly currentSlot: import("node_modules/o1js/dist/node/lib/mina/precondition.js").CurrentSlot;
671
+ readonly account: import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").Account;
672
+ readonly network: import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").Network;
673
+ readonly currentSlot: import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").CurrentSlot;
671
674
  approve(update: AccountUpdate | import("o1js").AccountUpdateTree | import("o1js").AccountUpdateForest): void;
672
675
  send(args: {
673
676
  to: PublicKey | AccountUpdate | SmartContract;
@@ -725,9 +728,9 @@ export declare function NFTSharesFactory(params: {
725
728
  getUnconstrained(): PublicKey;
726
729
  getAndRequireSignature(): PublicKey;
727
730
  };
728
- readonly account: import("node_modules/o1js/dist/node/lib/mina/precondition.js").Account;
729
- readonly network: import("node_modules/o1js/dist/node/lib/mina/precondition.js").Network;
730
- readonly currentSlot: import("node_modules/o1js/dist/node/lib/mina/precondition.js").CurrentSlot;
731
+ readonly account: import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").Account;
732
+ readonly network: import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").Network;
733
+ readonly currentSlot: import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").CurrentSlot;
731
734
  approve(update: AccountUpdate | import("o1js").AccountUpdateTree | import("o1js").AccountUpdateForest): void;
732
735
  send(args: {
733
736
  to: PublicKey | AccountUpdate | SmartContract;
@@ -765,9 +768,9 @@ export declare function NFTSharesFactory(params: {
765
768
  rows: number;
766
769
  digest: string;
767
770
  gates: import("node_modules/o1js/dist/node/snarky.js").Gate[];
771
+ proofs: import("node_modules/o1js/dist/node/lib/proof-system/proof.js").ProofClass[];
768
772
  }>;
769
773
  _provers?: import("node_modules/o1js/dist/node/snarky.js").Pickles.Prover[];
770
- _maxProofsVerified?: 0 | 1 | 2;
771
774
  _verificationKey?: {
772
775
  data: string;
773
776
  hash: Field;
@@ -786,6 +789,7 @@ export declare function NFTSharesFactory(params: {
786
789
  proof: unknown;
787
790
  maxProofsVerified: 0 | 2 | 1;
788
791
  shouldVerify: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
792
+ declare(): boolean;
789
793
  toJSON(): import("o1js").JsonProof;
790
794
  publicFields(): {
791
795
  input: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
@@ -851,7 +855,7 @@ export declare function NFTSharesFactory(params: {
851
855
  _proofFromBase64(proofString: string, maxProofsVerified: 0 | 2 | 1): unknown;
852
856
  _proofToBase64(proof: unknown, maxProofsVerified: 0 | 2 | 1): string;
853
857
  };
854
- compile({ cache, forceRecompile, }?: {
858
+ compile({ cache, forceRecompile }?: {
855
859
  cache?: import("o1js").Cache | undefined;
856
860
  forceRecompile?: boolean | undefined;
857
861
  }): Promise<{
@@ -863,6 +867,7 @@ export declare function NFTSharesFactory(params: {
863
867
  verify: (statement: import("node_modules/o1js/dist/node/snarky.js").Pickles.Statement<import("node_modules/o1js/dist/node/lib/provable/core/fieldvar.js").FieldConst>, proof: unknown) => Promise<boolean>;
864
868
  }>;
865
869
  digest(): Promise<string>;
870
+ getMaxProofsVerified(): Promise<0 | 2 | 1>;
866
871
  runOutsideCircuit(run: () => void): void;
867
872
  analyzeMethods({ printSummary }?: {
868
873
  printSummary?: boolean | undefined;
@@ -871,6 +876,7 @@ export declare function NFTSharesFactory(params: {
871
876
  rows: number;
872
877
  digest: string;
873
878
  gates: import("node_modules/o1js/dist/node/snarky.js").Gate[];
879
+ proofs: import("node_modules/o1js/dist/node/lib/proof-system/proof.js").ProofClass[];
874
880
  }>>;
875
881
  };
876
882
  FungibleToken: {
@@ -933,9 +939,9 @@ export declare function NFTSharesFactory(params: {
933
939
  getUnconstrained(): PublicKey;
934
940
  getAndRequireSignature(): PublicKey;
935
941
  };
936
- readonly account: import("node_modules/o1js/dist/node/lib/mina/precondition.js").Account;
937
- readonly network: import("node_modules/o1js/dist/node/lib/mina/precondition.js").Network;
938
- readonly currentSlot: import("node_modules/o1js/dist/node/lib/mina/precondition.js").CurrentSlot;
942
+ readonly account: import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").Account;
943
+ readonly network: import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").Network;
944
+ readonly currentSlot: import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").CurrentSlot;
939
945
  approve(update: AccountUpdate | import("o1js").AccountUpdateTree | import("o1js").AccountUpdateForest): void;
940
946
  send(args: {
941
947
  to: PublicKey | AccountUpdate | SmartContract;
@@ -971,9 +977,9 @@ export declare function NFTSharesFactory(params: {
971
977
  rows: number;
972
978
  digest: string;
973
979
  gates: import("node_modules/o1js/dist/node/snarky.js").Gate[];
980
+ proofs: import("node_modules/o1js/dist/node/lib/proof-system/proof.js").ProofClass[];
974
981
  }>;
975
982
  _provers?: import("node_modules/o1js/dist/node/snarky.js").Pickles.Prover[];
976
- _maxProofsVerified?: 0 | 1 | 2;
977
983
  _verificationKey?: {
978
984
  data: string;
979
985
  hash: Field;
@@ -992,6 +998,7 @@ export declare function NFTSharesFactory(params: {
992
998
  proof: unknown;
993
999
  maxProofsVerified: 0 | 2 | 1;
994
1000
  shouldVerify: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
1001
+ declare(): boolean;
995
1002
  toJSON(): import("o1js").JsonProof;
996
1003
  publicFields(): {
997
1004
  input: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
@@ -1057,7 +1064,7 @@ export declare function NFTSharesFactory(params: {
1057
1064
  _proofFromBase64(proofString: string, maxProofsVerified: 0 | 2 | 1): unknown;
1058
1065
  _proofToBase64(proof: unknown, maxProofsVerified: 0 | 2 | 1): string;
1059
1066
  };
1060
- compile({ cache, forceRecompile, }?: {
1067
+ compile({ cache, forceRecompile }?: {
1061
1068
  cache?: import("o1js").Cache | undefined;
1062
1069
  forceRecompile?: boolean | undefined;
1063
1070
  }): Promise<{
@@ -1069,6 +1076,7 @@ export declare function NFTSharesFactory(params: {
1069
1076
  verify: (statement: import("node_modules/o1js/dist/node/snarky.js").Pickles.Statement<import("node_modules/o1js/dist/node/lib/provable/core/fieldvar.js").FieldConst>, proof: unknown) => Promise<boolean>;
1070
1077
  }>;
1071
1078
  digest(): Promise<string>;
1079
+ getMaxProofsVerified(): Promise<0 | 2 | 1>;
1072
1080
  runOutsideCircuit(run: () => void): void;
1073
1081
  analyzeMethods({ printSummary }?: {
1074
1082
  printSummary?: boolean | undefined;
@@ -1077,6 +1085,7 @@ export declare function NFTSharesFactory(params: {
1077
1085
  rows: number;
1078
1086
  digest: string;
1079
1087
  gates: import("node_modules/o1js/dist/node/snarky.js").Gate[];
1088
+ proofs: import("node_modules/o1js/dist/node/lib/proof-system/proof.js").ProofClass[];
1080
1089
  }>>;
1081
1090
  };
1082
1091
  };
@@ -45,9 +45,9 @@ export declare function OfferFactory(params: {
45
45
  getUnconstrained(): PublicKey;
46
46
  getAndRequireSignature(): PublicKey;
47
47
  };
48
- readonly account: import("node_modules/o1js/dist/node/lib/mina/precondition.js").Account;
49
- readonly network: import("node_modules/o1js/dist/node/lib/mina/precondition.js").Network;
50
- readonly currentSlot: import("node_modules/o1js/dist/node/lib/mina/precondition.js").CurrentSlot;
48
+ readonly account: import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").Account;
49
+ readonly network: import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").Network;
50
+ readonly currentSlot: import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").CurrentSlot;
51
51
  approve(update: AccountUpdate | import("o1js").AccountUpdateTree | import("o1js").AccountUpdateForest): void;
52
52
  send(args: {
53
53
  to: PublicKey | AccountUpdate | SmartContract;
@@ -82,9 +82,9 @@ export declare function OfferFactory(params: {
82
82
  rows: number;
83
83
  digest: string;
84
84
  gates: import("node_modules/o1js/dist/node/snarky.js").Gate[];
85
+ proofs: import("node_modules/o1js/dist/node/lib/proof-system/proof.js").ProofClass[];
85
86
  }>;
86
87
  _provers?: import("node_modules/o1js/dist/node/snarky.js").Pickles.Prover[];
87
- _maxProofsVerified?: 0 | 1 | 2;
88
88
  _verificationKey?: {
89
89
  data: string;
90
90
  hash: Field;
@@ -103,6 +103,7 @@ export declare function OfferFactory(params: {
103
103
  proof: unknown;
104
104
  maxProofsVerified: 0 | 2 | 1;
105
105
  shouldVerify: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
106
+ declare(): boolean;
106
107
  toJSON(): import("o1js").JsonProof;
107
108
  publicFields(): {
108
109
  input: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
@@ -168,7 +169,7 @@ export declare function OfferFactory(params: {
168
169
  _proofFromBase64(proofString: string, maxProofsVerified: 0 | 2 | 1): unknown;
169
170
  _proofToBase64(proof: unknown, maxProofsVerified: 0 | 2 | 1): string;
170
171
  };
171
- compile({ cache, forceRecompile, }?: {
172
+ compile({ cache, forceRecompile }?: {
172
173
  cache?: import("o1js").Cache | undefined;
173
174
  forceRecompile?: boolean | undefined;
174
175
  }): Promise<{
@@ -180,6 +181,7 @@ export declare function OfferFactory(params: {
180
181
  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>;
181
182
  }>;
182
183
  digest(): Promise<string>;
184
+ getMaxProofsVerified(): Promise<0 | 2 | 1>;
183
185
  runOutsideCircuit(run: () => void): void;
184
186
  analyzeMethods({ printSummary }?: {
185
187
  printSummary?: boolean | undefined;
@@ -188,5 +190,6 @@ export declare function OfferFactory(params: {
188
190
  rows: number;
189
191
  digest: string;
190
192
  gates: import("node_modules/o1js/dist/node/snarky.js").Gate[];
193
+ proofs: import("node_modules/o1js/dist/node/lib/proof-system/proof.js").ProofClass[];
191
194
  }>>;
192
195
  };
@@ -108,7 +108,7 @@ declare const SellEvent_base: (new (value: {
108
108
  x: Field | bigint;
109
109
  isOdd: Bool | boolean;
110
110
  };
111
- price: bigint | UInt64;
111
+ price: number | bigint | UInt64;
112
112
  }) => {
113
113
  collection: PublicKey;
114
114
  nft: PublicKey;
@@ -181,8 +181,8 @@ declare const DepositEvent_base: (new (value: {
181
181
  x: Field | bigint;
182
182
  isOdd: Bool | boolean;
183
183
  };
184
- amount: bigint | UInt64;
185
- maxPoints: bigint | UInt64;
184
+ amount: number | bigint | UInt64;
185
+ maxPoints: number | bigint | UInt64;
186
186
  }) => {
187
187
  buyer: PublicKey;
188
188
  amount: UInt64;
@@ -255,8 +255,8 @@ declare const WithdrawEvent_base: (new (value: {
255
255
  x: Field | bigint;
256
256
  isOdd: Bool | boolean;
257
257
  };
258
- amount: bigint | UInt64;
259
- maxPoints: bigint | UInt64;
258
+ amount: number | bigint | UInt64;
259
+ maxPoints: number | bigint | UInt64;
260
260
  }) => {
261
261
  buyer: PublicKey;
262
262
  amount: UInt64;
@@ -20,8 +20,8 @@ declare const MulDivResult_base: (new (value: {
20
20
  };
21
21
  } & {
22
22
  fromValue: (value: {
23
- result: bigint | UInt64;
24
- remainder: bigint | UInt64;
23
+ result: number | bigint | UInt64;
24
+ remainder: number | bigint | UInt64;
25
25
  }) => {
26
26
  result: UInt64;
27
27
  remainder: UInt64;
@@ -13,6 +13,7 @@ export { NFTGameProgram };
13
13
  */
14
14
  declare const NFTGameProgram: {
15
15
  name: string;
16
+ maxProofsVerified(): Promise<0 | 1 | 2>;
16
17
  compile: (options?: {
17
18
  cache?: Cache;
18
19
  forceRecompile?: boolean;
@@ -27,6 +28,7 @@ declare const NFTGameProgram: {
27
28
  digest: () => Promise<string>;
28
29
  analyzeMethods: () => Promise<{
29
30
  updateMetadataAndOwner: {
31
+ proofs: import("node_modules/o1js/dist/node/lib/proof-system/proof.js").ProofClass[];
30
32
  rows: number;
31
33
  digest: string;
32
34
  gates: import("node_modules/o1js/dist/node/snarky.js").Gate[];
@@ -35,6 +37,7 @@ declare const NFTGameProgram: {
35
37
  summary(): Partial<Record<import("node_modules/o1js/dist/node/snarky.js").GateType | "Total rows", number>>;
36
38
  };
37
39
  merge: {
40
+ proofs: import("node_modules/o1js/dist/node/lib/proof-system/proof.js").ProofClass[];
38
41
  rows: number;
39
42
  digest: string;
40
43
  gates: import("node_modules/o1js/dist/node/snarky.js").Gate[];
@@ -54,22 +57,161 @@ declare const NFTGameProgram: {
54
57
  merge: undefined;
55
58
  };
56
59
  rawMethods: {
57
- updateMetadataAndOwner: (publicInput: NFTState, ...args: [import("node_modules/o1js/dist/node/lib/provable/merkle-tree-indexed.js").IndexedMerkleMapBase, PublicKey, import("node_modules/o1js/dist/node/lib/provable/field.js").Field, import("node_modules/o1js/dist/node/lib/provable/field.js").Field, Storage, PublicKey] & any[]) => Promise<{
60
+ updateMetadataAndOwner: (publicInput: NFTState, args_0: import("node_modules/o1js/dist/node/lib/provable/merkle-tree-indexed.js").IndexedMerkleMapBase, args_1: PublicKey, args_2: import("node_modules/o1js/dist/node/lib/provable/field.js").Field, args_3: import("node_modules/o1js/dist/node/lib/provable/field.js").Field, args_4: Storage, args_5: PublicKey) => Promise<{
58
61
  publicOutput: NFTState;
59
62
  auxiliaryOutput: import("node_modules/o1js/dist/node/lib/provable/merkle-tree-indexed.js").IndexedMerkleMapBase;
60
63
  }>;
61
- merge: (publicInput: NFTState, ...args: [SelfProof<unknown, unknown>, SelfProof<unknown, unknown>] & any[]) => Promise<{
64
+ merge: (publicInput: NFTState, args_0: SelfProof<unknown, unknown>, args_1: SelfProof<unknown, unknown>) => Promise<{
62
65
  publicOutput: NFTState;
63
66
  }>;
64
67
  };
68
+ Proof: {
69
+ new ({ proof, publicInput, publicOutput, maxProofsVerified, }: {
70
+ proof: import("node_modules/o1js/dist/node/snarky.js").Pickles.Proof;
71
+ publicInput: NFTState;
72
+ publicOutput: NFTState;
73
+ maxProofsVerified: 0 | 1 | 2;
74
+ }): import("o1js").Proof<NFTState, NFTState>;
75
+ 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"]>>>;
76
+ dummy<Input, OutPut>(publicInput: Input, publicOutput: OutPut, maxProofsVerified: 0 | 1 | 2, domainLog2?: number): Promise<import("o1js").Proof<Input, OutPut>>;
77
+ readonly provable: {
78
+ toFields: (value: import("o1js").Proof<any, any>) => import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
79
+ toAuxiliary: (value?: import("o1js").Proof<any, any> | undefined) => any[];
80
+ fromFields: (fields: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[], aux: any[]) => import("o1js").Proof<any, any>;
81
+ sizeInFields(): number;
82
+ check: (value: import("o1js").Proof<any, any>) => void;
83
+ toValue: (x: import("o1js").Proof<any, any>) => import("node_modules/o1js/dist/node/lib/proof-system/proof.js").ProofValue<any, any>;
84
+ 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>;
85
+ toCanonical?: ((x: import("o1js").Proof<any, any>) => import("o1js").Proof<any, any>) | undefined;
86
+ };
87
+ publicInputType: import("o1js").FlexibleProvable<any>;
88
+ publicOutputType: import("o1js").FlexibleProvable<any>;
89
+ tag: () => {
90
+ name: string;
91
+ };
92
+ publicFields(value: import("o1js").ProofBase): {
93
+ input: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
94
+ output: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
95
+ };
96
+ _proofFromBase64(proofString: import("node_modules/o1js/dist/node/snarky.js").Base64ProofString, maxProofsVerified: 0 | 1 | 2): unknown;
97
+ _proofToBase64(proof: import("node_modules/o1js/dist/node/snarky.js").Pickles.Proof, maxProofsVerified: 0 | 1 | 2): string;
98
+ };
65
99
  proofsEnabled: boolean;
66
100
  setProofsEnabled(proofsEnabled: boolean): void;
67
101
  } & {
68
- updateMetadataAndOwner: (publicInput: NFTState, ...args: [import("node_modules/o1js/dist/node/lib/provable/merkle-tree-indexed.js").IndexedMerkleMapBase, PublicKey, import("node_modules/o1js/dist/node/lib/provable/field.js").Field, import("node_modules/o1js/dist/node/lib/provable/field.js").Field, Storage, PublicKey] & any[]) => Promise<{
102
+ updateMetadataAndOwner: (publicInput: NFTState | {
103
+ immutableState: import("../interfaces/types.js").NFTImmutableState | {
104
+ canChangeOwnerByProof: boolean | import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
105
+ canTransfer: boolean | import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
106
+ canApprove: boolean | import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
107
+ canChangeMetadata: boolean | import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
108
+ canChangeStorage: boolean | import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
109
+ canChangeName: boolean | import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
110
+ canChangeMetadataVerificationKeyHash: boolean | import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
111
+ canPause: boolean | import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
112
+ address: PublicKey | {
113
+ x: Field | bigint;
114
+ isOdd: import("o1js").Bool | boolean;
115
+ };
116
+ tokenId: string | number | bigint | import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
117
+ id: number | bigint | import("o1js").UInt64;
118
+ };
119
+ name: string | number | bigint | import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
120
+ owner: PublicKey | {
121
+ x: Field | bigint;
122
+ isOdd: import("o1js").Bool | boolean;
123
+ };
124
+ approved: PublicKey | {
125
+ x: Field | bigint;
126
+ isOdd: import("o1js").Bool | boolean;
127
+ };
128
+ metadata: string | number | bigint | import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
129
+ storage: Storage | {
130
+ url: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[] | bigint[];
131
+ };
132
+ version: number | bigint | import("o1js").UInt32;
133
+ isPaused: boolean | import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
134
+ metadataVerificationKeyHash: string | number | bigint | import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
135
+ creator: PublicKey | {
136
+ x: Field | bigint;
137
+ isOdd: import("o1js").Bool | boolean;
138
+ };
139
+ context: import("../interfaces/types.js").NFTTransactionContext | {
140
+ custom: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[] | bigint[];
141
+ };
142
+ oracleAddress: PublicKey | {
143
+ x: Field | bigint;
144
+ isOdd: import("o1js").Bool | boolean;
145
+ };
146
+ }, args_0: import("node_modules/o1js/dist/node/lib/provable/merkle-tree-indexed.js").IndexedMerkleMapBase | {
147
+ root: bigint;
148
+ length: bigint;
149
+ data: {
150
+ nodes: (bigint | undefined)[][];
151
+ sortedLeaves: {
152
+ readonly value: bigint;
153
+ readonly key: bigint;
154
+ readonly nextKey: bigint;
155
+ readonly index: number;
156
+ }[];
157
+ };
158
+ }, args_1: PublicKey | {
159
+ x: Field | bigint;
160
+ isOdd: import("o1js").Bool | boolean;
161
+ }, args_2: string | number | bigint | import("node_modules/o1js/dist/node/lib/provable/field.js").Field, args_3: string | number | bigint | import("node_modules/o1js/dist/node/lib/provable/field.js").Field, args_4: Storage | {
162
+ url: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[] | bigint[];
163
+ }, args_5: PublicKey | {
164
+ x: Field | bigint;
165
+ isOdd: import("o1js").Bool | boolean;
166
+ }) => Promise<{
69
167
  proof: import("o1js").Proof<NFTState, NFTState>;
70
168
  auxiliaryOutput: import("node_modules/o1js/dist/node/lib/provable/merkle-tree-indexed.js").IndexedMerkleMapBase;
71
169
  }>;
72
- merge: (publicInput: NFTState, ...args: [SelfProof<unknown, unknown>, SelfProof<unknown, unknown>] & any[]) => Promise<{
170
+ merge: (publicInput: NFTState | {
171
+ immutableState: import("../interfaces/types.js").NFTImmutableState | {
172
+ canChangeOwnerByProof: boolean | import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
173
+ canTransfer: boolean | import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
174
+ canApprove: boolean | import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
175
+ canChangeMetadata: boolean | import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
176
+ canChangeStorage: boolean | import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
177
+ canChangeName: boolean | import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
178
+ canChangeMetadataVerificationKeyHash: boolean | import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
179
+ canPause: boolean | import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
180
+ address: PublicKey | {
181
+ x: Field | bigint;
182
+ isOdd: import("o1js").Bool | boolean;
183
+ };
184
+ tokenId: string | number | bigint | import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
185
+ id: number | bigint | import("o1js").UInt64;
186
+ };
187
+ name: string | number | bigint | import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
188
+ owner: PublicKey | {
189
+ x: Field | bigint;
190
+ isOdd: import("o1js").Bool | boolean;
191
+ };
192
+ approved: PublicKey | {
193
+ x: Field | bigint;
194
+ isOdd: import("o1js").Bool | boolean;
195
+ };
196
+ metadata: string | number | bigint | import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
197
+ storage: Storage | {
198
+ url: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[] | bigint[];
199
+ };
200
+ version: number | bigint | import("o1js").UInt32;
201
+ isPaused: boolean | import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
202
+ metadataVerificationKeyHash: string | number | bigint | import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
203
+ creator: PublicKey | {
204
+ x: Field | bigint;
205
+ isOdd: import("o1js").Bool | boolean;
206
+ };
207
+ context: import("../interfaces/types.js").NFTTransactionContext | {
208
+ custom: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[] | bigint[];
209
+ };
210
+ oracleAddress: PublicKey | {
211
+ x: Field | bigint;
212
+ isOdd: import("o1js").Bool | boolean;
213
+ };
214
+ }, args_0: import("o1js").Proof<any, any> | import("node_modules/o1js/dist/node/lib/proof-system/proof.js").ProofValue<any, any>, args_1: import("o1js").Proof<any, any> | import("node_modules/o1js/dist/node/lib/proof-system/proof.js").ProofValue<any, any>) => Promise<{
73
215
  proof: import("o1js").Proof<NFTState, NFTState>;
74
216
  auxiliaryOutput: undefined;
75
217
  }>;