@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.
- package/dist/node/admin/advanced.d.ts +12 -12
- package/dist/node/contracts/collection.d.ts +12 -12
- package/dist/node/contracts.d.ts +36 -36
- package/dist/node/marketplace/auction.d.ts +11 -11
- package/dist/node/marketplace/bid.d.ts +11 -11
- package/dist/node/marketplace/nft-shares.d.ts +52 -52
- package/dist/node/marketplace/offer.d.ts +11 -11
- package/dist/node/zkprogram-example/game.d.ts +4 -9
- package/dist/node/zkprogram-example/update.d.ts +4 -9
- package/dist/tsconfig.node.tsbuildinfo +1 -1
- package/dist/tsconfig.web.tsbuildinfo +1 -1
- package/dist/web/admin/advanced.d.ts +12 -12
- package/dist/web/contracts/collection.d.ts +12 -12
- package/dist/web/contracts.d.ts +36 -36
- package/dist/web/marketplace/auction.d.ts +11 -11
- package/dist/web/marketplace/bid.d.ts +11 -11
- package/dist/web/marketplace/nft-shares.d.ts +52 -52
- package/dist/web/marketplace/offer.d.ts +11 -11
- package/dist/web/zkprogram-example/game.d.ts +4 -9
- package/dist/web/zkprogram-example/update.d.ts +4 -9
- package/package.json +11 -10
|
@@ -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
|
-
|
|
336
|
+
#private: any;
|
|
337
337
|
address: PublicKey;
|
|
338
338
|
tokenId: Field;
|
|
339
339
|
init(): void;
|
|
340
340
|
requireSignature(): void;
|
|
341
341
|
skipAuthorization(): void;
|
|
342
|
-
|
|
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
|
-
|
|
350
|
-
|
|
351
|
-
|
|
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
|
-
|
|
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
|
-
|
|
396
|
+
#private: any;
|
|
397
397
|
address: PublicKey;
|
|
398
398
|
tokenId: Field;
|
|
399
399
|
init(): void;
|
|
400
400
|
requireSignature(): void;
|
|
401
401
|
skipAuthorization(): void;
|
|
402
|
-
|
|
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
|
-
|
|
410
|
-
|
|
411
|
-
|
|
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
|
-
|
|
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
|
-
|
|
448
|
+
#private: any;
|
|
449
449
|
address: PublicKey;
|
|
450
450
|
tokenId: Field;
|
|
451
451
|
init(): void;
|
|
452
452
|
requireSignature(): void;
|
|
453
453
|
skipAuthorization(): void;
|
|
454
|
-
|
|
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
|
-
|
|
462
|
-
|
|
463
|
-
|
|
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
|
-
|
|
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/
|
|
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/
|
|
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/
|
|
597
|
-
verify: (statement: import("node_modules/o1js/dist/node/
|
|
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/
|
|
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
|
-
|
|
662
|
+
#private: any;
|
|
663
663
|
address: PublicKey;
|
|
664
664
|
tokenId: Field;
|
|
665
665
|
init(): void;
|
|
666
666
|
requireSignature(): void;
|
|
667
667
|
skipAuthorization(): void;
|
|
668
|
-
|
|
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
|
-
|
|
676
|
-
|
|
677
|
-
|
|
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
|
-
|
|
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
|
-
|
|
722
|
+
#private: any;
|
|
723
723
|
address: PublicKey;
|
|
724
724
|
tokenId: Field;
|
|
725
725
|
init(): void;
|
|
726
726
|
requireSignature(): void;
|
|
727
727
|
skipAuthorization(): void;
|
|
728
|
-
|
|
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
|
-
|
|
736
|
-
|
|
737
|
-
|
|
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
|
-
|
|
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/
|
|
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/
|
|
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/
|
|
871
|
-
verify: (statement: import("node_modules/o1js/dist/node/
|
|
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/
|
|
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
|
-
|
|
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
|
-
|
|
937
|
+
#private: any;
|
|
938
938
|
address: PublicKey;
|
|
939
939
|
tokenId: Field;
|
|
940
940
|
init(): void;
|
|
941
941
|
requireSignature(): void;
|
|
942
942
|
skipAuthorization(): void;
|
|
943
|
-
|
|
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
|
-
|
|
951
|
-
|
|
952
|
-
|
|
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
|
-
|
|
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/
|
|
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/
|
|
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/
|
|
1084
|
-
verify: (statement: import("node_modules/o1js/dist/node/
|
|
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/
|
|
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
|
-
|
|
35
|
+
#private: any;
|
|
36
36
|
address: PublicKey;
|
|
37
37
|
tokenId: Field;
|
|
38
38
|
init(): void;
|
|
39
39
|
requireSignature(): void;
|
|
40
40
|
skipAuthorization(): void;
|
|
41
|
-
|
|
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
|
-
|
|
49
|
-
|
|
50
|
-
|
|
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
|
-
|
|
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/
|
|
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/
|
|
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/
|
|
181
|
-
verify: (statement: import("node_modules/o1js/dist/node/
|
|
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/
|
|
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/
|
|
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
|
-
|
|
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/
|
|
91
|
-
_proofToBase64(proof: import("node_modules/o1js/dist/node/
|
|
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/
|
|
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
|
-
|
|
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/
|
|
91
|
-
_proofToBase64(proof: import("node_modules/o1js/dist/node/
|
|
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;
|