@silvana-one/nft 1.0.25 → 1.0.27

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.
@@ -333,28 +333,28 @@ export declare function NFTSharesFactory(params: {
333
333
  settlePayment(): Promise<void>;
334
334
  settleAuctioneerPayment(amount: UInt64): Promise<void>;
335
335
  withdraw(): Promise<void>;
336
- "__#4@#private": any;
336
+ #private: any;
337
337
  address: PublicKey;
338
338
  tokenId: Field;
339
339
  init(): void;
340
340
  requireSignature(): void;
341
341
  skipAuthorization(): void;
342
- readonly self: AccountUpdate;
342
+ get self(): AccountUpdate;
343
343
  newSelf(methodName?: string): AccountUpdate;
344
344
  sender: {
345
345
  self: SmartContract;
346
346
  getUnconstrained(): PublicKey;
347
347
  getAndRequireSignature(): PublicKey;
348
348
  };
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;
349
+ get account(): import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").Account;
350
+ get network(): import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").Network;
351
+ get 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;
355
355
  amount: number | bigint | UInt64;
356
356
  }): AccountUpdate;
357
- readonly balance: {
357
+ get balance(): {
358
358
  addInPlace(x: string | number | bigint | UInt64 | import("o1js").UInt32 | import("o1js").Int64): void;
359
359
  subInPlace(x: string | number | bigint | UInt64 | import("o1js").UInt32 | import("o1js").Int64): void;
360
360
  };
@@ -393,28 +393,28 @@ export declare function NFTSharesFactory(params: {
393
393
  canResume(collection: PublicKey, nft: PublicKey): Promise<Bool>;
394
394
  canChangeVerificationKey(collection: PublicKey, nft: PublicKey, vk: VerificationKey): Promise<Bool>;
395
395
  canApproveAddress(collection: PublicKey, nft: PublicKey, approved: PublicKey): Promise<Bool>;
396
- "__#4@#private": any;
396
+ #private: any;
397
397
  address: PublicKey;
398
398
  tokenId: Field;
399
399
  init(): void;
400
400
  requireSignature(): void;
401
401
  skipAuthorization(): void;
402
- readonly self: AccountUpdate;
402
+ get self(): AccountUpdate;
403
403
  newSelf(methodName?: string): AccountUpdate;
404
404
  sender: {
405
405
  self: SmartContract;
406
406
  getUnconstrained(): PublicKey;
407
407
  getAndRequireSignature(): PublicKey;
408
408
  };
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;
409
+ get account(): import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").Account;
410
+ get network(): import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").Network;
411
+ get 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;
415
415
  amount: number | bigint | UInt64;
416
416
  }): AccountUpdate;
417
- readonly balance: {
417
+ get balance(): {
418
418
  addInPlace(x: string | number | bigint | UInt64 | import("o1js").UInt32 | import("o1js").Int64): void;
419
419
  subInPlace(x: string | number | bigint | UInt64 | import("o1js").UInt32 | import("o1js").Int64): void;
420
420
  };
@@ -445,28 +445,28 @@ export declare function NFTSharesFactory(params: {
445
445
  canPause(): Promise<Bool>;
446
446
  canResume(): Promise<Bool>;
447
447
  canChangeVerificationKey(_vk: VerificationKey): Promise<Bool>;
448
- "__#4@#private": any;
448
+ #private: any;
449
449
  address: PublicKey;
450
450
  tokenId: Field;
451
451
  init(): void;
452
452
  requireSignature(): void;
453
453
  skipAuthorization(): void;
454
- readonly self: AccountUpdate;
454
+ get self(): AccountUpdate;
455
455
  newSelf(methodName?: string): AccountUpdate;
456
456
  sender: {
457
457
  self: SmartContract;
458
458
  getUnconstrained(): PublicKey;
459
459
  getAndRequireSignature(): PublicKey;
460
460
  };
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;
461
+ get account(): import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").Account;
462
+ get network(): import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").Network;
463
+ get 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;
467
467
  amount: number | bigint | UInt64;
468
468
  }): AccountUpdate;
469
- readonly balance: {
469
+ get balance(): {
470
470
  addInPlace(x: string | number | bigint | UInt64 | import("o1js").UInt32 | import("o1js").Int64): void;
471
471
  subInPlace(x: string | number | bigint | UInt64 | import("o1js").UInt32 | import("o1js").Int64): void;
472
472
  };
@@ -497,10 +497,10 @@ export declare function NFTSharesFactory(params: {
497
497
  actions: number;
498
498
  rows: number;
499
499
  digest: string;
500
- gates: import("node_modules/o1js/dist/node/bindings.js").Gate[];
500
+ gates: import("node_modules/o1js/dist/node/snarky.js").Gate[];
501
501
  proofs: import("node_modules/o1js/dist/node/lib/proof-system/proof.js").ProofClass[];
502
502
  }>;
503
- _provers?: import("node_modules/o1js/dist/node/bindings.js").Pickles.Prover[];
503
+ _provers?: import("node_modules/o1js/dist/node/snarky.js").Pickles.Prover[];
504
504
  _verificationKey?: {
505
505
  data: string;
506
506
  hash: Field;
@@ -593,8 +593,8 @@ export declare function NFTSharesFactory(params: {
593
593
  data: string;
594
594
  hash: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
595
595
  };
596
- provers: import("node_modules/o1js/dist/node/bindings.js").Pickles.Prover[];
597
- verify: (statement: import("node_modules/o1js/dist/node/bindings.js").Pickles.Statement<import("node_modules/o1js/dist/node/lib/provable/core/fieldvar.js").FieldConst>, proof: unknown) => Promise<boolean>;
596
+ provers: import("node_modules/o1js/dist/node/snarky.js").Pickles.Prover[];
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>;
598
598
  }>;
599
599
  digest(): Promise<string>;
600
600
  getMaxProofsVerified(): Promise<0 | 2 | 1>;
@@ -609,7 +609,7 @@ export declare function NFTSharesFactory(params: {
609
609
  actions: number;
610
610
  rows: number;
611
611
  digest: string;
612
- gates: import("node_modules/o1js/dist/node/bindings.js").Gate[];
612
+ gates: import("node_modules/o1js/dist/node/snarky.js").Gate[];
613
613
  proofs: import("node_modules/o1js/dist/node/lib/proof-system/proof.js").ProofClass[];
614
614
  }>>;
615
615
  };
@@ -659,28 +659,28 @@ export declare function NFTSharesFactory(params: {
659
659
  settlePayment(): Promise<void>;
660
660
  settleAuctioneerPayment(amount: UInt64): Promise<void>;
661
661
  withdraw(): Promise<void>;
662
- "__#4@#private": any;
662
+ #private: any;
663
663
  address: PublicKey;
664
664
  tokenId: Field;
665
665
  init(): void;
666
666
  requireSignature(): void;
667
667
  skipAuthorization(): void;
668
- readonly self: AccountUpdate;
668
+ get self(): AccountUpdate;
669
669
  newSelf(methodName?: string): AccountUpdate;
670
670
  sender: {
671
671
  self: SmartContract;
672
672
  getUnconstrained(): PublicKey;
673
673
  getAndRequireSignature(): PublicKey;
674
674
  };
675
- readonly account: import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").Account;
676
- readonly network: import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").Network;
677
- readonly currentSlot: import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").CurrentSlot;
675
+ get account(): import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").Account;
676
+ get network(): import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").Network;
677
+ get currentSlot(): import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").CurrentSlot;
678
678
  approve(update: AccountUpdate | import("o1js").AccountUpdateTree | import("o1js").AccountUpdateForest): void;
679
679
  send(args: {
680
680
  to: PublicKey | AccountUpdate | SmartContract;
681
681
  amount: number | bigint | UInt64;
682
682
  }): AccountUpdate;
683
- readonly balance: {
683
+ get balance(): {
684
684
  addInPlace(x: string | number | bigint | UInt64 | import("o1js").UInt32 | import("o1js").Int64): void;
685
685
  subInPlace(x: string | number | bigint | UInt64 | import("o1js").UInt32 | import("o1js").Int64): void;
686
686
  };
@@ -719,28 +719,28 @@ export declare function NFTSharesFactory(params: {
719
719
  canResume(collection: PublicKey, nft: PublicKey): Promise<Bool>;
720
720
  canChangeVerificationKey(collection: PublicKey, nft: PublicKey, vk: VerificationKey): Promise<Bool>;
721
721
  canApproveAddress(collection: PublicKey, nft: PublicKey, approved: PublicKey): Promise<Bool>;
722
- "__#4@#private": any;
722
+ #private: any;
723
723
  address: PublicKey;
724
724
  tokenId: Field;
725
725
  init(): void;
726
726
  requireSignature(): void;
727
727
  skipAuthorization(): void;
728
- readonly self: AccountUpdate;
728
+ get self(): AccountUpdate;
729
729
  newSelf(methodName?: string): AccountUpdate;
730
730
  sender: {
731
731
  self: SmartContract;
732
732
  getUnconstrained(): PublicKey;
733
733
  getAndRequireSignature(): PublicKey;
734
734
  };
735
- readonly account: import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").Account;
736
- readonly network: import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").Network;
737
- readonly currentSlot: import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").CurrentSlot;
735
+ get account(): import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").Account;
736
+ get network(): import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").Network;
737
+ get currentSlot(): import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").CurrentSlot;
738
738
  approve(update: AccountUpdate | import("o1js").AccountUpdateTree | import("o1js").AccountUpdateForest): void;
739
739
  send(args: {
740
740
  to: PublicKey | AccountUpdate | SmartContract;
741
741
  amount: number | bigint | UInt64;
742
742
  }): AccountUpdate;
743
- readonly balance: {
743
+ get balance(): {
744
744
  addInPlace(x: string | number | bigint | UInt64 | import("o1js").UInt32 | import("o1js").Int64): void;
745
745
  subInPlace(x: string | number | bigint | UInt64 | import("o1js").UInt32 | import("o1js").Int64): void;
746
746
  };
@@ -771,10 +771,10 @@ export declare function NFTSharesFactory(params: {
771
771
  actions: number;
772
772
  rows: number;
773
773
  digest: string;
774
- gates: import("node_modules/o1js/dist/node/bindings.js").Gate[];
774
+ gates: import("node_modules/o1js/dist/node/snarky.js").Gate[];
775
775
  proofs: import("node_modules/o1js/dist/node/lib/proof-system/proof.js").ProofClass[];
776
776
  }>;
777
- _provers?: import("node_modules/o1js/dist/node/bindings.js").Pickles.Prover[];
777
+ _provers?: import("node_modules/o1js/dist/node/snarky.js").Pickles.Prover[];
778
778
  _verificationKey?: {
779
779
  data: string;
780
780
  hash: Field;
@@ -867,8 +867,8 @@ export declare function NFTSharesFactory(params: {
867
867
  data: string;
868
868
  hash: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
869
869
  };
870
- provers: import("node_modules/o1js/dist/node/bindings.js").Pickles.Prover[];
871
- verify: (statement: import("node_modules/o1js/dist/node/bindings.js").Pickles.Statement<import("node_modules/o1js/dist/node/lib/provable/core/fieldvar.js").FieldConst>, proof: unknown) => Promise<boolean>;
870
+ provers: import("node_modules/o1js/dist/node/snarky.js").Pickles.Prover[];
871
+ 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>;
872
872
  }>;
873
873
  digest(): Promise<string>;
874
874
  getMaxProofsVerified(): Promise<0 | 2 | 1>;
@@ -883,7 +883,7 @@ export declare function NFTSharesFactory(params: {
883
883
  actions: number;
884
884
  rows: number;
885
885
  digest: string;
886
- gates: import("node_modules/o1js/dist/node/bindings.js").Gate[];
886
+ gates: import("node_modules/o1js/dist/node/snarky.js").Gate[];
887
887
  proofs: import("node_modules/o1js/dist/node/lib/proof-system/proof.js").ProofClass[];
888
888
  }>>;
889
889
  };
@@ -915,7 +915,7 @@ export declare function NFTSharesFactory(params: {
915
915
  getCirculating(): Promise<UInt64>;
916
916
  getDecimals(): Promise<import("o1js").UInt8>;
917
917
  deriveTokenId(): import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
918
- readonly internal: {
918
+ get internal(): {
919
919
  mint({ address, amount, }: {
920
920
  address: PublicKey | AccountUpdate | SmartContract;
921
921
  amount: number | bigint | UInt64;
@@ -934,28 +934,28 @@ export declare function NFTSharesFactory(params: {
934
934
  checkZeroBalanceChange(updates: import("o1js").AccountUpdateForest): void;
935
935
  approveAccountUpdate(accountUpdate: AccountUpdate | import("o1js").AccountUpdateTree): Promise<void>;
936
936
  approveAccountUpdates(accountUpdates: (AccountUpdate | import("o1js").AccountUpdateTree)[]): Promise<void>;
937
- "__#4@#private": any;
937
+ #private: any;
938
938
  address: PublicKey;
939
939
  tokenId: Field;
940
940
  init(): void;
941
941
  requireSignature(): void;
942
942
  skipAuthorization(): void;
943
- readonly self: AccountUpdate;
943
+ get self(): AccountUpdate;
944
944
  newSelf(methodName?: string): AccountUpdate;
945
945
  sender: {
946
946
  self: SmartContract;
947
947
  getUnconstrained(): PublicKey;
948
948
  getAndRequireSignature(): PublicKey;
949
949
  };
950
- readonly account: import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").Account;
951
- readonly network: import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").Network;
952
- readonly currentSlot: import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").CurrentSlot;
950
+ get account(): import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").Account;
951
+ get network(): import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").Network;
952
+ get currentSlot(): import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").CurrentSlot;
953
953
  approve(update: AccountUpdate | import("o1js").AccountUpdateTree | import("o1js").AccountUpdateForest): void;
954
954
  send(args: {
955
955
  to: PublicKey | AccountUpdate | SmartContract;
956
956
  amount: number | bigint | UInt64;
957
957
  }): AccountUpdate;
958
- readonly balance: {
958
+ get balance(): {
959
959
  addInPlace(x: string | number | bigint | UInt64 | import("o1js").UInt32 | import("o1js").Int64): void;
960
960
  subInPlace(x: string | number | bigint | UInt64 | import("o1js").UInt32 | import("o1js").Int64): void;
961
961
  };
@@ -984,10 +984,10 @@ export declare function NFTSharesFactory(params: {
984
984
  actions: number;
985
985
  rows: number;
986
986
  digest: string;
987
- gates: import("node_modules/o1js/dist/node/bindings.js").Gate[];
987
+ gates: import("node_modules/o1js/dist/node/snarky.js").Gate[];
988
988
  proofs: import("node_modules/o1js/dist/node/lib/proof-system/proof.js").ProofClass[];
989
989
  }>;
990
- _provers?: import("node_modules/o1js/dist/node/bindings.js").Pickles.Prover[];
990
+ _provers?: import("node_modules/o1js/dist/node/snarky.js").Pickles.Prover[];
991
991
  _verificationKey?: {
992
992
  data: string;
993
993
  hash: Field;
@@ -1080,8 +1080,8 @@ export declare function NFTSharesFactory(params: {
1080
1080
  data: string;
1081
1081
  hash: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
1082
1082
  };
1083
- provers: import("node_modules/o1js/dist/node/bindings.js").Pickles.Prover[];
1084
- verify: (statement: import("node_modules/o1js/dist/node/bindings.js").Pickles.Statement<import("node_modules/o1js/dist/node/lib/provable/core/fieldvar.js").FieldConst>, proof: unknown) => Promise<boolean>;
1083
+ provers: import("node_modules/o1js/dist/node/snarky.js").Pickles.Prover[];
1084
+ 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>;
1085
1085
  }>;
1086
1086
  digest(): Promise<string>;
1087
1087
  getMaxProofsVerified(): Promise<0 | 2 | 1>;
@@ -1096,7 +1096,7 @@ export declare function NFTSharesFactory(params: {
1096
1096
  actions: number;
1097
1097
  rows: number;
1098
1098
  digest: string;
1099
- gates: import("node_modules/o1js/dist/node/bindings.js").Gate[];
1099
+ gates: import("node_modules/o1js/dist/node/snarky.js").Gate[];
1100
1100
  proofs: import("node_modules/o1js/dist/node/lib/proof-system/proof.js").ProofClass[];
1101
1101
  }>>;
1102
1102
  };
@@ -32,28 +32,28 @@ export declare function OfferFactory(params: {
32
32
  getCollectionContract(address: PublicKey): NFTCollectionBase;
33
33
  buy(buyer: PublicKey): Promise<void>;
34
34
  canTransfer(params: TransferExtendedParams): Promise<Bool>;
35
- "__#4@#private": any;
35
+ #private: any;
36
36
  address: PublicKey;
37
37
  tokenId: Field;
38
38
  init(): void;
39
39
  requireSignature(): void;
40
40
  skipAuthorization(): void;
41
- readonly self: AccountUpdate;
41
+ get self(): AccountUpdate;
42
42
  newSelf(methodName?: string): AccountUpdate;
43
43
  sender: {
44
44
  self: SmartContract;
45
45
  getUnconstrained(): PublicKey;
46
46
  getAndRequireSignature(): PublicKey;
47
47
  };
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;
48
+ get account(): import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").Account;
49
+ get network(): import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").Network;
50
+ get 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;
54
54
  amount: number | bigint | UInt64;
55
55
  }): AccountUpdate;
56
- readonly balance: {
56
+ get balance(): {
57
57
  addInPlace(x: string | number | bigint | UInt64 | import("o1js").UInt32 | import("o1js").Int64): void;
58
58
  subInPlace(x: string | number | bigint | UInt64 | import("o1js").UInt32 | import("o1js").Int64): void;
59
59
  };
@@ -81,10 +81,10 @@ export declare function OfferFactory(params: {
81
81
  actions: number;
82
82
  rows: number;
83
83
  digest: string;
84
- gates: import("node_modules/o1js/dist/node/bindings.js").Gate[];
84
+ gates: import("node_modules/o1js/dist/node/snarky.js").Gate[];
85
85
  proofs: import("node_modules/o1js/dist/node/lib/proof-system/proof.js").ProofClass[];
86
86
  }>;
87
- _provers?: import("node_modules/o1js/dist/node/bindings.js").Pickles.Prover[];
87
+ _provers?: import("node_modules/o1js/dist/node/snarky.js").Pickles.Prover[];
88
88
  _verificationKey?: {
89
89
  data: string;
90
90
  hash: Field;
@@ -177,8 +177,8 @@ export declare function OfferFactory(params: {
177
177
  data: string;
178
178
  hash: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
179
179
  };
180
- provers: import("node_modules/o1js/dist/node/bindings.js").Pickles.Prover[];
181
- verify: (statement: import("node_modules/o1js/dist/node/bindings.js").Pickles.Statement<import("node_modules/o1js/dist/node/lib/provable/core/fieldvar.js").FieldConst>, proof: unknown) => Promise<boolean>;
180
+ provers: import("node_modules/o1js/dist/node/snarky.js").Pickles.Prover[];
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>;
182
182
  }>;
183
183
  digest(): Promise<string>;
184
184
  getMaxProofsVerified(): Promise<0 | 2 | 1>;
@@ -193,7 +193,7 @@ export declare function OfferFactory(params: {
193
193
  actions: number;
194
194
  rows: number;
195
195
  digest: string;
196
- gates: import("node_modules/o1js/dist/node/bindings.js").Gate[];
196
+ gates: import("node_modules/o1js/dist/node/snarky.js").Gate[];
197
197
  proofs: import("node_modules/o1js/dist/node/lib/proof-system/proof.js").ProofClass[];
198
198
  }>>;
199
199
  };
@@ -19,8 +19,6 @@ declare const NFTGameProgram: {
19
19
  forceRecompile?: boolean;
20
20
  proofsEnabled?: boolean;
21
21
  withRuntimeTables?: boolean;
22
- numChunks?: number;
23
- lazyMode?: boolean;
24
22
  }) => Promise<{
25
23
  verificationKey: {
26
24
  data: string;
@@ -37,9 +35,6 @@ declare const NFTGameProgram: {
37
35
  proofs: import("node_modules/o1js/dist/node/lib/proof-system/proof.js").ProofClass[];
38
36
  };
39
37
  }>;
40
- analyzeSingleMethod<K extends "merge" | "updateMetadataAndOwner">(methodName: K): Promise<import("node_modules/o1js/dist/node/lib/provable/core/provable-context.js").ConstraintSystemSummary & {
41
- proofs: import("node_modules/o1js/dist/node/lib/proof-system/proof.js").ProofClass[];
42
- }>;
43
38
  publicInputType: typeof NFTState;
44
39
  publicOutputType: typeof NFTState;
45
40
  privateInputTypes: {
@@ -61,14 +56,14 @@ declare const NFTGameProgram: {
61
56
  };
62
57
  Proof: {
63
58
  new ({ proof, publicInput, publicOutput, maxProofsVerified, }: {
64
- proof: import("node_modules/o1js/dist/node/bindings.js").Pickles.Proof;
59
+ proof: import("node_modules/o1js/dist/node/snarky.js").Pickles.Proof;
65
60
  publicInput: NFTState;
66
61
  publicOutput: NFTState;
67
62
  maxProofsVerified: 0 | 1 | 2;
68
63
  }): import("o1js").Proof<NFTState, NFTState>;
69
64
  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"]>>>;
70
65
  dummy<Input, OutPut>(publicInput: Input, publicOutput: OutPut, maxProofsVerified: 0 | 1 | 2, domainLog2?: number): Promise<import("o1js").Proof<Input, OutPut>>;
71
- readonly provable: {
66
+ get provable(): {
72
67
  toFields: (value: import("o1js").Proof<any, any>) => import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
73
68
  toAuxiliary: (value?: import("o1js").Proof<any, any> | undefined) => any[];
74
69
  fromFields: (fields: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[], aux: any[]) => import("o1js").Proof<any, any>;
@@ -87,8 +82,8 @@ declare const NFTGameProgram: {
87
82
  input: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
88
83
  output: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
89
84
  };
90
- _proofFromBase64(proofString: import("node_modules/o1js/dist/node/bindings.js").Base64ProofString, maxProofsVerified: 0 | 1 | 2): unknown;
91
- _proofToBase64(proof: import("node_modules/o1js/dist/node/bindings.js").Pickles.Proof, maxProofsVerified: 0 | 1 | 2): string;
85
+ _proofFromBase64(proofString: import("node_modules/o1js/dist/node/snarky.js").Base64ProofString, maxProofsVerified: 0 | 1 | 2): unknown;
86
+ _proofToBase64(proof: import("node_modules/o1js/dist/node/snarky.js").Pickles.Proof, maxProofsVerified: 0 | 1 | 2): string;
92
87
  };
93
88
  proofsEnabled: boolean;
94
89
  setProofsEnabled(proofsEnabled: boolean): void;
@@ -19,8 +19,6 @@ declare const NFTProgram: {
19
19
  forceRecompile?: boolean;
20
20
  proofsEnabled?: boolean;
21
21
  withRuntimeTables?: boolean;
22
- numChunks?: number;
23
- lazyMode?: boolean;
24
22
  }) => Promise<{
25
23
  verificationKey: {
26
24
  data: string;
@@ -37,9 +35,6 @@ declare const NFTProgram: {
37
35
  proofs: import("node_modules/o1js/dist/node/lib/proof-system/proof.js").ProofClass[];
38
36
  };
39
37
  }>;
40
- analyzeSingleMethod<K extends "insertMetadata" | "merge">(methodName: K): Promise<import("node_modules/o1js/dist/node/lib/provable/core/provable-context.js").ConstraintSystemSummary & {
41
- proofs: import("node_modules/o1js/dist/node/lib/proof-system/proof.js").ProofClass[];
42
- }>;
43
38
  publicInputType: typeof NFTState;
44
39
  publicOutputType: typeof NFTState;
45
40
  privateInputTypes: {
@@ -61,14 +56,14 @@ declare const NFTProgram: {
61
56
  };
62
57
  Proof: {
63
58
  new ({ proof, publicInput, publicOutput, maxProofsVerified, }: {
64
- proof: import("node_modules/o1js/dist/node/bindings.js").Pickles.Proof;
59
+ proof: import("node_modules/o1js/dist/node/snarky.js").Pickles.Proof;
65
60
  publicInput: NFTState;
66
61
  publicOutput: NFTState;
67
62
  maxProofsVerified: 0 | 1 | 2;
68
63
  }): import("o1js").Proof<NFTState, NFTState>;
69
64
  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"]>>>;
70
65
  dummy<Input, OutPut>(publicInput: Input, publicOutput: OutPut, maxProofsVerified: 0 | 1 | 2, domainLog2?: number): Promise<import("o1js").Proof<Input, OutPut>>;
71
- readonly provable: {
66
+ get provable(): {
72
67
  toFields: (value: import("o1js").Proof<any, any>) => import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
73
68
  toAuxiliary: (value?: import("o1js").Proof<any, any> | undefined) => any[];
74
69
  fromFields: (fields: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[], aux: any[]) => import("o1js").Proof<any, any>;
@@ -87,8 +82,8 @@ declare const NFTProgram: {
87
82
  input: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
88
83
  output: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
89
84
  };
90
- _proofFromBase64(proofString: import("node_modules/o1js/dist/node/bindings.js").Base64ProofString, maxProofsVerified: 0 | 1 | 2): unknown;
91
- _proofToBase64(proof: import("node_modules/o1js/dist/node/bindings.js").Pickles.Proof, maxProofsVerified: 0 | 1 | 2): string;
85
+ _proofFromBase64(proofString: import("node_modules/o1js/dist/node/snarky.js").Base64ProofString, maxProofsVerified: 0 | 1 | 2): unknown;
86
+ _proofToBase64(proof: import("node_modules/o1js/dist/node/snarky.js").Pickles.Proof, maxProofsVerified: 0 | 1 | 2): string;
92
87
  };
93
88
  proofsEnabled: boolean;
94
89
  setProofsEnabled(proofsEnabled: boolean): void;
package/package.json CHANGED
@@ -1,22 +1,22 @@
1
1
  {
2
2
  "name": "@silvana-one/nft",
3
3
  "description": "Mina NFT library",
4
- "version": "1.0.25",
4
+ "version": "1.0.27",
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.25",
12
- "@silvana-one/storage": "1.0.25",
13
- "@silvana-one/token": "1.0.25",
14
- "@silvana-one/upgradable": "1.0.25",
11
+ "@silvana-one/mina-utils": "1.0.27",
12
+ "@silvana-one/storage": "1.0.27",
13
+ "@silvana-one/token": "1.0.27",
14
+ "@silvana-one/upgradable": "1.0.27",
15
15
  "@types/node": "^24.0.14",
16
16
  "c8": "^10.1.3",
17
17
  "dotenv": "^17.2.0",
18
18
  "esbuild": "^0.25.6",
19
- "o1js": "^2.4.0",
19
+ "o1js": "2.4.0",
20
20
  "ts-node": "^10.9.2",
21
21
  "typescript": "^5.8.3",
22
22
  "unique-names-generator": "^4.7.1"
@@ -50,10 +50,10 @@
50
50
  "license": "Apache-2.0",
51
51
  "main": "dist/web/index.js",
52
52
  "peerDependencies": {
53
- "@silvana-one/storage": "1.0.25",
54
- "@silvana-one/token": "1.0.25",
55
- "@silvana-one/upgradable": "1.0.25",
56
- "o1js": "^2.4.0"
53
+ "@silvana-one/storage": "1.0.27",
54
+ "@silvana-one/token": "1.0.27",
55
+ "@silvana-one/upgradable": "1.0.27",
56
+ "o1js": "2.4.0"
57
57
  },
58
58
  "publishConfig": {
59
59
  "access": "public"
@@ -84,6 +84,7 @@
84
84
  "devnet:algolia": "CHAIN=devnet npm run test test/algolia.test.ts",
85
85
  "local:zkprogram": "CHAIN=local CLOUD=local READ_ONLY=false npm run test test/zkprogram.test.ts",
86
86
  "devnet:zkprogram": "CHAIN=devnet CLOUD=local READ_ONLY=false npm run test test/zkprogram.test.ts",
87
+ "zeko:zkprogram": "CHAIN=zeko CLOUD=local READ_ONLY=false npm run test test/zkprogram.test.ts",
87
88
  "lightnet:zkprogram": "CHAIN=lightnet CLOUD=local READ_ONLY=false npm run test test/zkprogram.test.ts",
88
89
  "local:auction:matrix": "CHAIN=local sh ./scripts/auction.zsh",
89
90
  "devnet:auction:matrix": "CHAIN=devnet sh ./scripts/auction.zsh",