@silvana-one/nft 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1400 -0
- package/dist/node/admin/advanced.d.ts +469 -0
- package/dist/node/admin/advanced.js +525 -0
- package/dist/node/admin/advanced.js.map +1 -0
- package/dist/node/admin/index.d.ts +1 -0
- package/dist/node/admin/index.js +2 -0
- package/dist/node/admin/index.js.map +1 -0
- package/dist/node/contracts/admin.d.ts +140 -0
- package/dist/node/contracts/admin.js +336 -0
- package/dist/node/contracts/admin.js.map +1 -0
- package/dist/node/contracts/collection.d.ts +551 -0
- package/dist/node/contracts/collection.js +1049 -0
- package/dist/node/contracts/collection.js.map +1 -0
- package/dist/node/contracts/index.d.ts +3 -0
- package/dist/node/contracts/index.js +4 -0
- package/dist/node/contracts/index.js.map +1 -0
- package/dist/node/contracts/nft.d.ts +76 -0
- package/dist/node/contracts/nft.js +329 -0
- package/dist/node/contracts/nft.js.map +1 -0
- package/dist/node/contracts.d.ts +709 -0
- package/dist/node/contracts.js +61 -0
- package/dist/node/contracts.js.map +1 -0
- package/dist/node/index.cjs +5032 -0
- package/dist/node/index.d.ts +8 -0
- package/dist/node/index.js +9 -0
- package/dist/node/index.js.map +1 -0
- package/dist/node/interfaces/admin.d.ts +102 -0
- package/dist/node/interfaces/admin.js +2 -0
- package/dist/node/interfaces/admin.js.map +1 -0
- package/dist/node/interfaces/approval.d.ts +57 -0
- package/dist/node/interfaces/approval.js +62 -0
- package/dist/node/interfaces/approval.js.map +1 -0
- package/dist/node/interfaces/collection.d.ts +57 -0
- package/dist/node/interfaces/collection.js +2 -0
- package/dist/node/interfaces/collection.js.map +1 -0
- package/dist/node/interfaces/encoding.d.ts +24 -0
- package/dist/node/interfaces/encoding.js +32 -0
- package/dist/node/interfaces/encoding.js.map +1 -0
- package/dist/node/interfaces/events.d.ts +833 -0
- package/dist/node/interfaces/events.js +106 -0
- package/dist/node/interfaces/events.js.map +1 -0
- package/dist/node/interfaces/index.d.ts +10 -0
- package/dist/node/interfaces/index.js +11 -0
- package/dist/node/interfaces/index.js.map +1 -0
- package/dist/node/interfaces/ownable.d.ts +94 -0
- package/dist/node/interfaces/ownable.js +12 -0
- package/dist/node/interfaces/ownable.js.map +1 -0
- package/dist/node/interfaces/owner.d.ts +61 -0
- package/dist/node/interfaces/owner.js +101 -0
- package/dist/node/interfaces/owner.js.map +1 -0
- package/dist/node/interfaces/pausable.d.ts +74 -0
- package/dist/node/interfaces/pausable.js +14 -0
- package/dist/node/interfaces/pausable.js.map +1 -0
- package/dist/node/interfaces/types.d.ts +2297 -0
- package/dist/node/interfaces/types.js +507 -0
- package/dist/node/interfaces/types.js.map +1 -0
- package/dist/node/interfaces/update.d.ts +53 -0
- package/dist/node/interfaces/update.js +58 -0
- package/dist/node/interfaces/update.js.map +1 -0
- package/dist/node/marketplace/auction.d.ts +775 -0
- package/dist/node/marketplace/auction.js +430 -0
- package/dist/node/marketplace/auction.js.map +1 -0
- package/dist/node/marketplace/bid.d.ts +254 -0
- package/dist/node/marketplace/bid.js +260 -0
- package/dist/node/marketplace/bid.js.map +1 -0
- package/dist/node/marketplace/index.d.ts +5 -0
- package/dist/node/marketplace/index.js +6 -0
- package/dist/node/marketplace/index.js.map +1 -0
- package/dist/node/marketplace/nft-shares.d.ts +1083 -0
- package/dist/node/marketplace/nft-shares.js +398 -0
- package/dist/node/marketplace/nft-shares.js.map +1 -0
- package/dist/node/marketplace/offer.d.ts +192 -0
- package/dist/node/marketplace/offer.js +132 -0
- package/dist/node/marketplace/offer.js.map +1 -0
- package/dist/node/marketplace/types.d.ts +374 -0
- package/dist/node/marketplace/types.js +33 -0
- package/dist/node/marketplace/types.js.map +1 -0
- package/dist/node/metadata/index.d.ts +3 -0
- package/dist/node/metadata/index.js +4 -0
- package/dist/node/metadata/index.js.map +1 -0
- package/dist/node/metadata/metadata.d.ts +337 -0
- package/dist/node/metadata/metadata.js +439 -0
- package/dist/node/metadata/metadata.js.map +1 -0
- package/dist/node/metadata/text.d.ts +44 -0
- package/dist/node/metadata/text.js +42 -0
- package/dist/node/metadata/text.js.map +1 -0
- package/dist/node/metadata/tree.d.ts +75 -0
- package/dist/node/metadata/tree.js +85 -0
- package/dist/node/metadata/tree.js.map +1 -0
- package/dist/node/vk.d.ts +42 -0
- package/dist/node/vk.js +45 -0
- package/dist/node/vk.js.map +1 -0
- package/dist/node/zkprogram-example/game.d.ts +76 -0
- package/dist/node/zkprogram-example/game.js +108 -0
- package/dist/node/zkprogram-example/game.js.map +1 -0
- package/dist/node/zkprogram-example/index.d.ts +2 -0
- package/dist/node/zkprogram-example/index.js +3 -0
- package/dist/node/zkprogram-example/index.js.map +1 -0
- package/dist/node/zkprogram-example/update.d.ts +76 -0
- package/dist/node/zkprogram-example/update.js +85 -0
- package/dist/node/zkprogram-example/update.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/tsconfig.web.tsbuildinfo +1 -0
- package/dist/web/admin/advanced.d.ts +469 -0
- package/dist/web/admin/advanced.js +525 -0
- package/dist/web/admin/advanced.js.map +1 -0
- package/dist/web/admin/index.d.ts +1 -0
- package/dist/web/admin/index.js +2 -0
- package/dist/web/admin/index.js.map +1 -0
- package/dist/web/contracts/admin.d.ts +140 -0
- package/dist/web/contracts/admin.js +336 -0
- package/dist/web/contracts/admin.js.map +1 -0
- package/dist/web/contracts/collection.d.ts +551 -0
- package/dist/web/contracts/collection.js +1049 -0
- package/dist/web/contracts/collection.js.map +1 -0
- package/dist/web/contracts/index.d.ts +3 -0
- package/dist/web/contracts/index.js +4 -0
- package/dist/web/contracts/index.js.map +1 -0
- package/dist/web/contracts/nft.d.ts +76 -0
- package/dist/web/contracts/nft.js +329 -0
- package/dist/web/contracts/nft.js.map +1 -0
- package/dist/web/contracts.d.ts +709 -0
- package/dist/web/contracts.js +61 -0
- package/dist/web/contracts.js.map +1 -0
- package/dist/web/index.d.ts +8 -0
- package/dist/web/index.js +9 -0
- package/dist/web/index.js.map +1 -0
- package/dist/web/interfaces/admin.d.ts +102 -0
- package/dist/web/interfaces/admin.js +2 -0
- package/dist/web/interfaces/admin.js.map +1 -0
- package/dist/web/interfaces/approval.d.ts +57 -0
- package/dist/web/interfaces/approval.js +62 -0
- package/dist/web/interfaces/approval.js.map +1 -0
- package/dist/web/interfaces/collection.d.ts +57 -0
- package/dist/web/interfaces/collection.js +2 -0
- package/dist/web/interfaces/collection.js.map +1 -0
- package/dist/web/interfaces/encoding.d.ts +24 -0
- package/dist/web/interfaces/encoding.js +32 -0
- package/dist/web/interfaces/encoding.js.map +1 -0
- package/dist/web/interfaces/events.d.ts +833 -0
- package/dist/web/interfaces/events.js +106 -0
- package/dist/web/interfaces/events.js.map +1 -0
- package/dist/web/interfaces/index.d.ts +10 -0
- package/dist/web/interfaces/index.js +11 -0
- package/dist/web/interfaces/index.js.map +1 -0
- package/dist/web/interfaces/ownable.d.ts +94 -0
- package/dist/web/interfaces/ownable.js +12 -0
- package/dist/web/interfaces/ownable.js.map +1 -0
- package/dist/web/interfaces/owner.d.ts +61 -0
- package/dist/web/interfaces/owner.js +101 -0
- package/dist/web/interfaces/owner.js.map +1 -0
- package/dist/web/interfaces/pausable.d.ts +74 -0
- package/dist/web/interfaces/pausable.js +14 -0
- package/dist/web/interfaces/pausable.js.map +1 -0
- package/dist/web/interfaces/types.d.ts +2297 -0
- package/dist/web/interfaces/types.js +507 -0
- package/dist/web/interfaces/types.js.map +1 -0
- package/dist/web/interfaces/update.d.ts +53 -0
- package/dist/web/interfaces/update.js +58 -0
- package/dist/web/interfaces/update.js.map +1 -0
- package/dist/web/marketplace/auction.d.ts +775 -0
- package/dist/web/marketplace/auction.js +430 -0
- package/dist/web/marketplace/auction.js.map +1 -0
- package/dist/web/marketplace/bid.d.ts +254 -0
- package/dist/web/marketplace/bid.js +260 -0
- package/dist/web/marketplace/bid.js.map +1 -0
- package/dist/web/marketplace/index.d.ts +5 -0
- package/dist/web/marketplace/index.js +6 -0
- package/dist/web/marketplace/index.js.map +1 -0
- package/dist/web/marketplace/nft-shares.d.ts +1083 -0
- package/dist/web/marketplace/nft-shares.js +398 -0
- package/dist/web/marketplace/nft-shares.js.map +1 -0
- package/dist/web/marketplace/offer.d.ts +192 -0
- package/dist/web/marketplace/offer.js +132 -0
- package/dist/web/marketplace/offer.js.map +1 -0
- package/dist/web/marketplace/types.d.ts +374 -0
- package/dist/web/marketplace/types.js +33 -0
- package/dist/web/marketplace/types.js.map +1 -0
- package/dist/web/metadata/index.d.ts +3 -0
- package/dist/web/metadata/index.js +4 -0
- package/dist/web/metadata/index.js.map +1 -0
- package/dist/web/metadata/metadata.d.ts +337 -0
- package/dist/web/metadata/metadata.js +439 -0
- package/dist/web/metadata/metadata.js.map +1 -0
- package/dist/web/metadata/text.d.ts +44 -0
- package/dist/web/metadata/text.js +42 -0
- package/dist/web/metadata/text.js.map +1 -0
- package/dist/web/metadata/tree.d.ts +75 -0
- package/dist/web/metadata/tree.js +85 -0
- package/dist/web/metadata/tree.js.map +1 -0
- package/dist/web/vk.d.ts +42 -0
- package/dist/web/vk.js +45 -0
- package/dist/web/vk.js.map +1 -0
- package/dist/web/zkprogram-example/game.d.ts +76 -0
- package/dist/web/zkprogram-example/game.js +108 -0
- package/dist/web/zkprogram-example/game.js.map +1 -0
- package/dist/web/zkprogram-example/index.d.ts +2 -0
- package/dist/web/zkprogram-example/index.js +3 -0
- package/dist/web/zkprogram-example/index.js.map +1 -0
- package/dist/web/zkprogram-example/update.d.ts +76 -0
- package/dist/web/zkprogram-example/update.js +85 -0
- package/dist/web/zkprogram-example/update.js.map +1 -0
- package/package.json +65 -0
- package/src/admin/advanced.ts +601 -0
- package/src/admin/index.ts +1 -0
- package/src/contracts/admin.ts +301 -0
- package/src/contracts/collection.ts +1172 -0
- package/src/contracts/index.ts +3 -0
- package/src/contracts/nft.ts +344 -0
- package/src/contracts.ts +107 -0
- package/src/index.ts +8 -0
- package/src/interfaces/admin.ts +127 -0
- package/src/interfaces/approval.ts +99 -0
- package/src/interfaces/collection.ts +68 -0
- package/src/interfaces/encoding.ts +32 -0
- package/src/interfaces/events.ts +115 -0
- package/src/interfaces/index.ts +10 -0
- package/src/interfaces/ownable.ts +32 -0
- package/src/interfaces/owner.ts +143 -0
- package/src/interfaces/pausable.ts +41 -0
- package/src/interfaces/types.ts +623 -0
- package/src/interfaces/update.ts +104 -0
- package/src/marketplace/auction.ts +527 -0
- package/src/marketplace/bid.ts +294 -0
- package/src/marketplace/index.ts +5 -0
- package/src/marketplace/nft-shares.ts +388 -0
- package/src/marketplace/offer.ts +153 -0
- package/src/marketplace/types.ts +33 -0
- package/src/metadata/index.ts +3 -0
- package/src/metadata/metadata.ts +603 -0
- package/src/metadata/text.ts +60 -0
- package/src/metadata/tree.ts +128 -0
- package/src/vk.ts +64 -0
- package/src/zkprogram-example/game.ts +136 -0
- package/src/zkprogram-example/index.ts +2 -0
- package/src/zkprogram-example/update.ts +98 -0
|
@@ -0,0 +1,709 @@
|
|
|
1
|
+
import { CollectionFactory } from "./contracts/index.js";
|
|
2
|
+
import { NFTOwnerContractConstructor, NFTAdminContractConstructor, NFTApprovalContractConstructor, DefineApprovalFactory, DefineOwnerFactory, DefineUpdateFactory, NFTUpdateContractConstructor } from "./interfaces/index.js";
|
|
3
|
+
export declare const NFTAdvancedAdmin: {
|
|
4
|
+
new (address: import("o1js").PublicKey, tokenId?: import("o1js").Field): {
|
|
5
|
+
admin: import("o1js").State<import("o1js").PublicKey>;
|
|
6
|
+
upgradeAuthority: import("o1js").State<import("o1js").PublicKey>;
|
|
7
|
+
whitelist: import("o1js").State<import("@silvana-one/storage").Whitelist>;
|
|
8
|
+
data: import("o1js").State<import("node_modules/o1js/dist/node/lib/provable/field.js").Field>;
|
|
9
|
+
deploy(props: import("./admin/advanced.js").NFTAdvancedAdminDeployProps): Promise<void>;
|
|
10
|
+
events: {
|
|
11
|
+
upgradeVerificationKey: typeof import("node_modules/o1js/dist/node/lib/provable/field.js").Field & ((x: string | number | bigint | import("node_modules/o1js/dist/node/lib/provable/core/fieldvar.js").FieldConst | import("node_modules/o1js/dist/node/lib/provable/core/fieldvar.js").FieldVar | import("node_modules/o1js/dist/node/lib/provable/field.js").Field) => import("node_modules/o1js/dist/node/lib/provable/field.js").Field);
|
|
12
|
+
pause: typeof import("./interfaces/pausable.js").PauseEvent;
|
|
13
|
+
resume: typeof import("./interfaces/pausable.js").PauseEvent;
|
|
14
|
+
ownershipChange: typeof import("./interfaces/ownable.js").OwnershipChangeEvent;
|
|
15
|
+
updateWhitelist: typeof import("@silvana-one/storage").Whitelist;
|
|
16
|
+
};
|
|
17
|
+
ensureOwnerSignature(): Promise<import("o1js").AccountUpdate>;
|
|
18
|
+
readonly getUpgradeContractConstructor: import("@silvana-one/upgradable").UpgradeAuthorityContractConstructor;
|
|
19
|
+
getUpgradeContract(): Promise<import("@silvana-one/upgradable").UpgradeAuthorityBase>;
|
|
20
|
+
upgradeVerificationKey(vk: import("o1js").VerificationKey): Promise<void>;
|
|
21
|
+
canMint(mintRequest: import("./interfaces/types.js").MintRequest): Promise<import("./interfaces/types.js").MintParamsOption>;
|
|
22
|
+
canUpdate(input: import("./interfaces/types.js").NFTState, output: import("./interfaces/types.js").NFTState): Promise<import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool>;
|
|
23
|
+
canTransfer(transferEvent: import("./interfaces/events.js").TransferEvent): Promise<import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool>;
|
|
24
|
+
updateWhitelist(whitelist: import("@silvana-one/storage").Whitelist): Promise<void>;
|
|
25
|
+
pause(): Promise<void>;
|
|
26
|
+
resume(): Promise<void>;
|
|
27
|
+
transferOwnership(to: import("o1js").PublicKey): Promise<import("o1js").PublicKey>;
|
|
28
|
+
canChangeVerificationKey(vk: import("o1js").VerificationKey, address: import("o1js").PublicKey, tokenId: import("o1js").Field): Promise<import("o1js").Bool>;
|
|
29
|
+
canChangeName(name: import("o1js").Field): Promise<import("o1js").Bool>;
|
|
30
|
+
canChangeCreator(creator: import("o1js").PublicKey): Promise<import("o1js").Bool>;
|
|
31
|
+
canChangeBaseUri(baseUri: import("o1js").Field): Promise<import("o1js").Bool>;
|
|
32
|
+
canChangeRoyalty(royaltyFee: import("o1js").UInt32): Promise<import("o1js").Bool>;
|
|
33
|
+
canChangeTransferFee(transferFee: import("o1js").UInt64): Promise<import("o1js").Bool>;
|
|
34
|
+
canSetAdmin(admin: import("o1js").PublicKey): Promise<import("o1js").Bool>;
|
|
35
|
+
canPause(): Promise<import("o1js").Bool>;
|
|
36
|
+
canResume(): Promise<import("o1js").Bool>;
|
|
37
|
+
"__#3@#private": any;
|
|
38
|
+
address: import("o1js").PublicKey;
|
|
39
|
+
tokenId: import("o1js").Field;
|
|
40
|
+
init(): void;
|
|
41
|
+
requireSignature(): void;
|
|
42
|
+
skipAuthorization(): void;
|
|
43
|
+
readonly self: import("o1js").AccountUpdate;
|
|
44
|
+
newSelf(methodName?: string): import("o1js").AccountUpdate;
|
|
45
|
+
sender: {
|
|
46
|
+
self: import("o1js").SmartContract;
|
|
47
|
+
getUnconstrained(): import("o1js").PublicKey;
|
|
48
|
+
getAndRequireSignature(): import("o1js").PublicKey;
|
|
49
|
+
};
|
|
50
|
+
readonly account: import("node_modules/o1js/dist/node/lib/mina/precondition.js").Account;
|
|
51
|
+
readonly network: import("node_modules/o1js/dist/node/lib/mina/precondition.js").Network;
|
|
52
|
+
readonly currentSlot: import("node_modules/o1js/dist/node/lib/mina/precondition.js").CurrentSlot;
|
|
53
|
+
approve(update: import("o1js").AccountUpdate | import("o1js").AccountUpdateTree | import("o1js").AccountUpdateForest): void;
|
|
54
|
+
send(args: {
|
|
55
|
+
to: import("o1js").PublicKey | import("o1js").AccountUpdate | import("o1js").SmartContract;
|
|
56
|
+
amount: number | bigint | import("o1js").UInt64;
|
|
57
|
+
}): import("o1js").AccountUpdate;
|
|
58
|
+
readonly balance: {
|
|
59
|
+
addInPlace(x: string | number | bigint | import("o1js").UInt64 | import("o1js").UInt32 | import("o1js").Int64): void;
|
|
60
|
+
subInPlace(x: string | number | bigint | import("o1js").UInt64 | import("o1js").UInt32 | import("o1js").Int64): void;
|
|
61
|
+
};
|
|
62
|
+
emitEventIf<K extends "upgradeVerificationKey" | "pause" | "resume" | "ownershipChange" | "updateWhitelist">(condition: import("o1js").Bool, type: K, event: any): void;
|
|
63
|
+
emitEvent<K extends "upgradeVerificationKey" | "pause" | "resume" | "ownershipChange" | "updateWhitelist">(type: K, event: any): void;
|
|
64
|
+
fetchEvents(start?: import("o1js").UInt32, end?: import("o1js").UInt32): Promise<{
|
|
65
|
+
type: string;
|
|
66
|
+
event: {
|
|
67
|
+
data: import("o1js").ProvablePure<any>;
|
|
68
|
+
transactionInfo: {
|
|
69
|
+
transactionHash: string;
|
|
70
|
+
transactionStatus: string;
|
|
71
|
+
transactionMemo: string;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
blockHeight: import("o1js").UInt32;
|
|
75
|
+
blockHash: string;
|
|
76
|
+
parentBlockHash: string;
|
|
77
|
+
globalSlot: import("o1js").UInt32;
|
|
78
|
+
chainStatus: string;
|
|
79
|
+
}[]>;
|
|
80
|
+
};
|
|
81
|
+
_methods?: import("node_modules/o1js/dist/node/lib/proof-system/zkprogram.js").MethodInterface[];
|
|
82
|
+
_methodMetadata?: Record<string, {
|
|
83
|
+
actions: number;
|
|
84
|
+
rows: number;
|
|
85
|
+
digest: string;
|
|
86
|
+
gates: import("node_modules/o1js/dist/node/snarky.js").Gate[];
|
|
87
|
+
}>;
|
|
88
|
+
_provers?: import("node_modules/o1js/dist/node/snarky.js").Pickles.Prover[];
|
|
89
|
+
_maxProofsVerified?: 0 | 1 | 2;
|
|
90
|
+
_verificationKey?: {
|
|
91
|
+
data: string;
|
|
92
|
+
hash: import("o1js").Field;
|
|
93
|
+
};
|
|
94
|
+
Proof(): {
|
|
95
|
+
new ({ proof, publicInput, publicOutput, maxProofsVerified, }: {
|
|
96
|
+
proof: unknown;
|
|
97
|
+
publicInput: import("o1js").ZkappPublicInput;
|
|
98
|
+
publicOutput: undefined;
|
|
99
|
+
maxProofsVerified: 0 | 2 | 1;
|
|
100
|
+
}): {
|
|
101
|
+
verify(): void;
|
|
102
|
+
verifyIf(condition: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool): void;
|
|
103
|
+
publicInput: import("o1js").ZkappPublicInput;
|
|
104
|
+
publicOutput: undefined;
|
|
105
|
+
proof: unknown;
|
|
106
|
+
maxProofsVerified: 0 | 2 | 1;
|
|
107
|
+
shouldVerify: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
|
|
108
|
+
toJSON(): import("o1js").JsonProof;
|
|
109
|
+
publicFields(): {
|
|
110
|
+
input: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
|
|
111
|
+
output: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
publicInputType: Omit<import("node_modules/o1js/dist/node/lib/provable/types/provable-intf.js").Provable<{
|
|
115
|
+
accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
|
|
116
|
+
calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
|
|
117
|
+
}, {
|
|
118
|
+
accountUpdate: bigint;
|
|
119
|
+
calls: bigint;
|
|
120
|
+
}>, "fromFields"> & {
|
|
121
|
+
fromFields: (fields: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[]) => {
|
|
122
|
+
accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
|
|
123
|
+
calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
|
|
124
|
+
};
|
|
125
|
+
} & {
|
|
126
|
+
toInput: (x: {
|
|
127
|
+
accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
|
|
128
|
+
calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
|
|
129
|
+
}) => {
|
|
130
|
+
fields?: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[] | undefined;
|
|
131
|
+
packed?: [import("node_modules/o1js/dist/node/lib/provable/field.js").Field, number][] | undefined;
|
|
132
|
+
};
|
|
133
|
+
toJSON: (x: {
|
|
134
|
+
accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
|
|
135
|
+
calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
|
|
136
|
+
}) => {
|
|
137
|
+
accountUpdate: string;
|
|
138
|
+
calls: string;
|
|
139
|
+
};
|
|
140
|
+
fromJSON: (x: {
|
|
141
|
+
accountUpdate: string;
|
|
142
|
+
calls: string;
|
|
143
|
+
}) => {
|
|
144
|
+
accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
|
|
145
|
+
calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
|
|
146
|
+
};
|
|
147
|
+
empty: () => {
|
|
148
|
+
accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
|
|
149
|
+
calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
publicOutputType: import("node_modules/o1js/dist/node/lib/provable/types/struct.js").ProvablePureExtended<undefined, undefined, null>;
|
|
153
|
+
tag: () => typeof import("o1js").SmartContract;
|
|
154
|
+
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"]>>>;
|
|
155
|
+
dummy<Input, OutPut>(publicInput: Input, publicOutput: OutPut, maxProofsVerified: 0 | 2 | 1, domainLog2?: number): Promise<import("o1js").Proof<Input, OutPut>>;
|
|
156
|
+
readonly provable: {
|
|
157
|
+
toFields: (value: import("o1js").Proof<any, any>) => import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
|
|
158
|
+
toAuxiliary: (value?: import("o1js").Proof<any, any> | undefined) => any[];
|
|
159
|
+
fromFields: (fields: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[], aux: any[]) => import("o1js").Proof<any, any>;
|
|
160
|
+
sizeInFields(): number;
|
|
161
|
+
check: (value: import("o1js").Proof<any, any>) => void;
|
|
162
|
+
toValue: (x: import("o1js").Proof<any, any>) => import("node_modules/o1js/dist/node/lib/proof-system/proof.js").ProofValue<any, any>;
|
|
163
|
+
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>;
|
|
164
|
+
toCanonical?: ((x: import("o1js").Proof<any, any>) => import("o1js").Proof<any, any>) | undefined;
|
|
165
|
+
};
|
|
166
|
+
publicFields(value: import("o1js").ProofBase<any, any>): {
|
|
167
|
+
input: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
|
|
168
|
+
output: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
|
|
169
|
+
};
|
|
170
|
+
_proofFromBase64(proofString: string, maxProofsVerified: 0 | 2 | 1): unknown;
|
|
171
|
+
_proofToBase64(proof: unknown, maxProofsVerified: 0 | 2 | 1): string;
|
|
172
|
+
};
|
|
173
|
+
compile({ cache, forceRecompile, }?: {
|
|
174
|
+
cache?: import("o1js").Cache | undefined;
|
|
175
|
+
forceRecompile?: boolean | undefined;
|
|
176
|
+
}): Promise<{
|
|
177
|
+
verificationKey: {
|
|
178
|
+
data: string;
|
|
179
|
+
hash: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
|
|
180
|
+
};
|
|
181
|
+
provers: import("node_modules/o1js/dist/node/snarky.js").Pickles.Prover[];
|
|
182
|
+
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>;
|
|
183
|
+
}>;
|
|
184
|
+
digest(): Promise<string>;
|
|
185
|
+
runOutsideCircuit(run: () => void): void;
|
|
186
|
+
analyzeMethods({ printSummary }?: {
|
|
187
|
+
printSummary?: boolean | undefined;
|
|
188
|
+
}): Promise<Record<string, {
|
|
189
|
+
actions: number;
|
|
190
|
+
rows: number;
|
|
191
|
+
digest: string;
|
|
192
|
+
gates: import("node_modules/o1js/dist/node/snarky.js").Gate[];
|
|
193
|
+
}>>;
|
|
194
|
+
};
|
|
195
|
+
export type NonFungibleTokenContracts = {
|
|
196
|
+
Collection: ReturnType<typeof CollectionFactory>;
|
|
197
|
+
Approval: NFTApprovalContractConstructor;
|
|
198
|
+
Owner: NFTOwnerContractConstructor;
|
|
199
|
+
Admin: NFTAdminContractConstructor;
|
|
200
|
+
Update: NFTUpdateContractConstructor;
|
|
201
|
+
};
|
|
202
|
+
export declare function NonFungibleTokenContractsFactory(params: {
|
|
203
|
+
adminContract?: NFTAdminContractConstructor;
|
|
204
|
+
approvalFactory?: DefineApprovalFactory;
|
|
205
|
+
ownerFactory?: DefineOwnerFactory;
|
|
206
|
+
updateFactory?: DefineUpdateFactory;
|
|
207
|
+
}): NonFungibleTokenContracts;
|
|
208
|
+
export declare const Collection: {
|
|
209
|
+
new (address: import("o1js").PublicKey, tokenId?: import("o1js").Field): {
|
|
210
|
+
collectionName: import("o1js").State<import("node_modules/o1js/dist/node/lib/provable/field.js").Field>;
|
|
211
|
+
creator: import("o1js").State<import("o1js").PublicKey>;
|
|
212
|
+
admin: import("o1js").State<import("o1js").PublicKey>;
|
|
213
|
+
baseURL: import("o1js").State<import("node_modules/o1js/dist/node/lib/provable/field.js").Field>;
|
|
214
|
+
packedData: import("o1js").State<import("node_modules/o1js/dist/node/lib/provable/field.js").Field>;
|
|
215
|
+
deploy(props: import("./contracts/collection.js").CollectionDeployProps): Promise<void>;
|
|
216
|
+
initialize(masterNFT: import("./interfaces/types.js").MintParams, collectionData: import("./interfaces/types.js").CollectionData): Promise<void>;
|
|
217
|
+
events: {
|
|
218
|
+
mint: typeof import("./interfaces/events.js").MintEvent;
|
|
219
|
+
update: typeof import("o1js").PublicKey;
|
|
220
|
+
transfer: typeof import("./interfaces/events.js").TransferEvent;
|
|
221
|
+
approve: typeof import("./interfaces/events.js").ApproveEvent;
|
|
222
|
+
upgradeNFTVerificationKey: typeof import("./interfaces/events.js").UpgradeVerificationKeyEvent;
|
|
223
|
+
upgradeVerificationKey: typeof import("node_modules/o1js/dist/node/lib/provable/field.js").Field & ((x: string | number | bigint | import("node_modules/o1js/dist/node/lib/provable/core/fieldvar.js").FieldConst | import("node_modules/o1js/dist/node/lib/provable/core/fieldvar.js").FieldVar | import("node_modules/o1js/dist/node/lib/provable/field.js").Field) => import("node_modules/o1js/dist/node/lib/provable/field.js").Field);
|
|
224
|
+
limitMinting: typeof import("./interfaces/events.js").LimitMintingEvent;
|
|
225
|
+
pause: typeof import("./interfaces/pausable.js").PauseEvent;
|
|
226
|
+
resume: typeof import("./interfaces/pausable.js").PauseEvent;
|
|
227
|
+
pauseNFT: typeof import("./interfaces/events.js").PauseNFTEvent;
|
|
228
|
+
resumeNFT: typeof import("./interfaces/events.js").PauseNFTEvent;
|
|
229
|
+
ownershipChange: typeof import("./interfaces/ownable.js").OwnershipChangeEvent;
|
|
230
|
+
setName: typeof import("node_modules/o1js/dist/node/lib/provable/field.js").Field & ((x: string | number | bigint | import("node_modules/o1js/dist/node/lib/provable/core/fieldvar.js").FieldConst | import("node_modules/o1js/dist/node/lib/provable/core/fieldvar.js").FieldVar | import("node_modules/o1js/dist/node/lib/provable/field.js").Field) => import("node_modules/o1js/dist/node/lib/provable/field.js").Field);
|
|
231
|
+
setBaseURL: typeof import("node_modules/o1js/dist/node/lib/provable/field.js").Field & ((x: string | number | bigint | import("node_modules/o1js/dist/node/lib/provable/core/fieldvar.js").FieldConst | import("node_modules/o1js/dist/node/lib/provable/core/fieldvar.js").FieldVar | import("node_modules/o1js/dist/node/lib/provable/field.js").Field) => import("node_modules/o1js/dist/node/lib/provable/field.js").Field);
|
|
232
|
+
setRoyaltyFee: typeof import("o1js").UInt32;
|
|
233
|
+
setTransferFee: typeof import("o1js").UInt64;
|
|
234
|
+
setAdmin: typeof import("o1js").PublicKey;
|
|
235
|
+
};
|
|
236
|
+
approveBase(forest: import("o1js").AccountUpdateForest): Promise<void>;
|
|
237
|
+
getAdminContract(): import("./interfaces/admin.js").NFTAdminBase;
|
|
238
|
+
getOwnerContract(address: import("o1js").PublicKey): import("./interfaces/owner.js").NFTOwnerBase;
|
|
239
|
+
getApprovalContract(address: import("o1js").PublicKey): import("./interfaces/approval.js").NFTApprovalBase;
|
|
240
|
+
getUpdateContract(address: import("o1js").PublicKey): import("./interfaces/update.js").NFTUpdateBase;
|
|
241
|
+
ensureCreatorSignature(): Promise<import("o1js").AccountUpdate>;
|
|
242
|
+
ensureOwnerSignature(owner: import("o1js").PublicKey): Promise<import("o1js").AccountUpdate>;
|
|
243
|
+
ensureNotPaused(): Promise<void>;
|
|
244
|
+
mintByCreator(params: import("./interfaces/types.js").MintParams): Promise<void>;
|
|
245
|
+
mint(mintRequest: import("./interfaces/types.js").MintRequest): Promise<void>;
|
|
246
|
+
_mint(params: import("./interfaces/types.js").MintParams): Promise<import("./interfaces/events.js").MintEvent>;
|
|
247
|
+
update(proof: import("./interfaces/types.js").NFTUpdateProof, vk: import("o1js").VerificationKey): Promise<void>;
|
|
248
|
+
updateWithOracle(proof: import("./interfaces/types.js").NFTUpdateProof, vk: import("o1js").VerificationKey): Promise<void>;
|
|
249
|
+
_update(proof: import("./interfaces/types.js").NFTUpdateProof, vk: import("o1js").VerificationKey): Promise<void>;
|
|
250
|
+
approveAddress(nftAddress: import("o1js").PublicKey, approved: import("o1js").PublicKey): Promise<void>;
|
|
251
|
+
approveAddressByProof(nftAddress: import("o1js").PublicKey, approved: import("o1js").PublicKey): Promise<void>;
|
|
252
|
+
transferBySignature(params: import("./interfaces/types.js").TransferParams): Promise<void>;
|
|
253
|
+
transferByProof(params: import("./interfaces/types.js").TransferParams): Promise<void>;
|
|
254
|
+
approvedTransferByProof(params: import("./interfaces/types.js").TransferParams): Promise<void>;
|
|
255
|
+
approvedTransferBySignature(params: import("./interfaces/types.js").TransferParams): Promise<void>;
|
|
256
|
+
_transfer(params: {
|
|
257
|
+
transferEventDraft: import("./interfaces/types.js").TransferExtendedParams;
|
|
258
|
+
transferFee: import("o1js").UInt64;
|
|
259
|
+
royaltyFee: import("o1js").UInt32;
|
|
260
|
+
}): Promise<import("./interfaces/types.js").TransferExtendedParams>;
|
|
261
|
+
upgradeNFTVerificationKeyBySignature(address: import("o1js").PublicKey, vk: import("o1js").VerificationKey): Promise<void>;
|
|
262
|
+
upgradeNFTVerificationKeyByProof(address: import("o1js").PublicKey, vk: import("o1js").VerificationKey): Promise<void>;
|
|
263
|
+
_upgrade(address: import("o1js").PublicKey, vk: import("o1js").VerificationKey): Promise<import("./interfaces/events.js").UpgradeVerificationKeyData>;
|
|
264
|
+
upgradeVerificationKey(vk: import("o1js").VerificationKey): Promise<void>;
|
|
265
|
+
limitMinting(): Promise<void>;
|
|
266
|
+
pause(): Promise<void>;
|
|
267
|
+
resume(): Promise<void>;
|
|
268
|
+
pauseNFTBySignature(address: import("o1js").PublicKey): Promise<void>;
|
|
269
|
+
pauseNFTByProof(address: import("o1js").PublicKey): Promise<void>;
|
|
270
|
+
resumeNFT(address: import("o1js").PublicKey): Promise<void>;
|
|
271
|
+
resumeNFTByProof(address: import("o1js").PublicKey): Promise<void>;
|
|
272
|
+
setName(name: import("o1js").Field): Promise<void>;
|
|
273
|
+
setBaseURL(baseURL: import("o1js").Field): Promise<void>;
|
|
274
|
+
setAdmin(admin: import("o1js").PublicKey): Promise<void>;
|
|
275
|
+
setRoyaltyFee(royaltyFee: import("o1js").UInt32): Promise<void>;
|
|
276
|
+
setTransferFee(transferFee: import("o1js").UInt64): Promise<void>;
|
|
277
|
+
transferOwnership(to: import("o1js").PublicKey): Promise<import("o1js").PublicKey>;
|
|
278
|
+
getNFTState(address: import("o1js").PublicKey): Promise<import("./interfaces/types.js").NFTStateStruct>;
|
|
279
|
+
deriveTokenId(): import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
|
|
280
|
+
readonly internal: {
|
|
281
|
+
mint({ address, amount, }: {
|
|
282
|
+
address: import("o1js").PublicKey | import("o1js").AccountUpdate | import("o1js").SmartContract;
|
|
283
|
+
amount: number | bigint | import("o1js").UInt64;
|
|
284
|
+
}): import("o1js").AccountUpdate;
|
|
285
|
+
burn({ address, amount, }: {
|
|
286
|
+
address: import("o1js").PublicKey | import("o1js").AccountUpdate | import("o1js").SmartContract;
|
|
287
|
+
amount: number | bigint | import("o1js").UInt64;
|
|
288
|
+
}): import("o1js").AccountUpdate;
|
|
289
|
+
send({ from, to, amount, }: {
|
|
290
|
+
from: import("o1js").PublicKey | import("o1js").AccountUpdate | import("o1js").SmartContract;
|
|
291
|
+
to: import("o1js").PublicKey | import("o1js").AccountUpdate | import("o1js").SmartContract;
|
|
292
|
+
amount: number | bigint | import("o1js").UInt64;
|
|
293
|
+
}): import("o1js").AccountUpdate;
|
|
294
|
+
};
|
|
295
|
+
forEachUpdate(updates: import("o1js").AccountUpdateForest, callback: (update: import("o1js").AccountUpdate, usesToken: import("o1js").Bool) => void): void;
|
|
296
|
+
checkZeroBalanceChange(updates: import("o1js").AccountUpdateForest): void;
|
|
297
|
+
approveAccountUpdate(accountUpdate: import("o1js").AccountUpdate | import("o1js").AccountUpdateTree): Promise<void>;
|
|
298
|
+
approveAccountUpdates(accountUpdates: (import("o1js").AccountUpdate | import("o1js").AccountUpdateTree)[]): Promise<void>;
|
|
299
|
+
transfer(from: import("o1js").PublicKey | import("o1js").AccountUpdate, to: import("o1js").PublicKey | import("o1js").AccountUpdate, amount: import("o1js").UInt64 | number | bigint): Promise<void>;
|
|
300
|
+
"__#3@#private": any;
|
|
301
|
+
address: import("o1js").PublicKey;
|
|
302
|
+
tokenId: import("o1js").Field;
|
|
303
|
+
init(): void;
|
|
304
|
+
requireSignature(): void;
|
|
305
|
+
skipAuthorization(): void;
|
|
306
|
+
readonly self: import("o1js").AccountUpdate;
|
|
307
|
+
newSelf(methodName?: string): import("o1js").AccountUpdate;
|
|
308
|
+
sender: {
|
|
309
|
+
self: import("o1js").SmartContract;
|
|
310
|
+
getUnconstrained(): import("o1js").PublicKey;
|
|
311
|
+
getAndRequireSignature(): import("o1js").PublicKey;
|
|
312
|
+
};
|
|
313
|
+
readonly account: import("node_modules/o1js/dist/node/lib/mina/precondition.js").Account;
|
|
314
|
+
readonly network: import("node_modules/o1js/dist/node/lib/mina/precondition.js").Network;
|
|
315
|
+
readonly currentSlot: import("node_modules/o1js/dist/node/lib/mina/precondition.js").CurrentSlot;
|
|
316
|
+
approve(update: import("o1js").AccountUpdate | import("o1js").AccountUpdateTree | import("o1js").AccountUpdateForest): void;
|
|
317
|
+
send(args: {
|
|
318
|
+
to: import("o1js").PublicKey | import("o1js").AccountUpdate | import("o1js").SmartContract;
|
|
319
|
+
amount: number | bigint | import("o1js").UInt64;
|
|
320
|
+
}): import("o1js").AccountUpdate;
|
|
321
|
+
readonly balance: {
|
|
322
|
+
addInPlace(x: string | number | bigint | import("o1js").UInt64 | import("o1js").UInt32 | import("o1js").Int64): void;
|
|
323
|
+
subInPlace(x: string | number | bigint | import("o1js").UInt64 | import("o1js").UInt32 | import("o1js").Int64): void;
|
|
324
|
+
};
|
|
325
|
+
emitEventIf<K extends "update" | "approve" | "transfer" | "upgradeVerificationKey" | "pause" | "resume" | "mint" | "upgradeNFTVerificationKey" | "limitMinting" | "pauseNFT" | "resumeNFT" | "ownershipChange" | "setName" | "setBaseURL" | "setRoyaltyFee" | "setTransferFee" | "setAdmin">(condition: import("o1js").Bool, type: K, event: any): void;
|
|
326
|
+
emitEvent<K extends "update" | "approve" | "transfer" | "upgradeVerificationKey" | "pause" | "resume" | "mint" | "upgradeNFTVerificationKey" | "limitMinting" | "pauseNFT" | "resumeNFT" | "ownershipChange" | "setName" | "setBaseURL" | "setRoyaltyFee" | "setTransferFee" | "setAdmin">(type: K, event: any): void;
|
|
327
|
+
fetchEvents(start?: import("o1js").UInt32, end?: import("o1js").UInt32): Promise<{
|
|
328
|
+
type: string;
|
|
329
|
+
event: {
|
|
330
|
+
data: import("o1js").ProvablePure<any>;
|
|
331
|
+
transactionInfo: {
|
|
332
|
+
transactionHash: string;
|
|
333
|
+
transactionStatus: string;
|
|
334
|
+
transactionMemo: string;
|
|
335
|
+
};
|
|
336
|
+
};
|
|
337
|
+
blockHeight: import("o1js").UInt32;
|
|
338
|
+
blockHash: string;
|
|
339
|
+
parentBlockHash: string;
|
|
340
|
+
globalSlot: import("o1js").UInt32;
|
|
341
|
+
chainStatus: string;
|
|
342
|
+
}[]>;
|
|
343
|
+
};
|
|
344
|
+
MAX_ACCOUNT_UPDATES: number;
|
|
345
|
+
_methods?: import("node_modules/o1js/dist/node/lib/proof-system/zkprogram.js").MethodInterface[];
|
|
346
|
+
_methodMetadata?: Record<string, {
|
|
347
|
+
actions: number;
|
|
348
|
+
rows: number;
|
|
349
|
+
digest: string;
|
|
350
|
+
gates: import("node_modules/o1js/dist/node/snarky.js").Gate[];
|
|
351
|
+
}>;
|
|
352
|
+
_provers?: import("node_modules/o1js/dist/node/snarky.js").Pickles.Prover[];
|
|
353
|
+
_maxProofsVerified?: 0 | 1 | 2;
|
|
354
|
+
_verificationKey?: {
|
|
355
|
+
data: string;
|
|
356
|
+
hash: import("o1js").Field;
|
|
357
|
+
};
|
|
358
|
+
Proof(): {
|
|
359
|
+
new ({ proof, publicInput, publicOutput, maxProofsVerified, }: {
|
|
360
|
+
proof: unknown;
|
|
361
|
+
publicInput: import("o1js").ZkappPublicInput;
|
|
362
|
+
publicOutput: undefined;
|
|
363
|
+
maxProofsVerified: 0 | 2 | 1;
|
|
364
|
+
}): {
|
|
365
|
+
verify(): void;
|
|
366
|
+
verifyIf(condition: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool): void;
|
|
367
|
+
publicInput: import("o1js").ZkappPublicInput;
|
|
368
|
+
publicOutput: undefined;
|
|
369
|
+
proof: unknown;
|
|
370
|
+
maxProofsVerified: 0 | 2 | 1;
|
|
371
|
+
shouldVerify: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
|
|
372
|
+
toJSON(): import("o1js").JsonProof;
|
|
373
|
+
publicFields(): {
|
|
374
|
+
input: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
|
|
375
|
+
output: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
|
|
376
|
+
};
|
|
377
|
+
};
|
|
378
|
+
publicInputType: Omit<import("node_modules/o1js/dist/node/lib/provable/types/provable-intf.js").Provable<{
|
|
379
|
+
accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
|
|
380
|
+
calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
|
|
381
|
+
}, {
|
|
382
|
+
accountUpdate: bigint;
|
|
383
|
+
calls: bigint;
|
|
384
|
+
}>, "fromFields"> & {
|
|
385
|
+
fromFields: (fields: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[]) => {
|
|
386
|
+
accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
|
|
387
|
+
calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
|
|
388
|
+
};
|
|
389
|
+
} & {
|
|
390
|
+
toInput: (x: {
|
|
391
|
+
accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
|
|
392
|
+
calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
|
|
393
|
+
}) => {
|
|
394
|
+
fields?: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[] | undefined;
|
|
395
|
+
packed?: [import("node_modules/o1js/dist/node/lib/provable/field.js").Field, number][] | undefined;
|
|
396
|
+
};
|
|
397
|
+
toJSON: (x: {
|
|
398
|
+
accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
|
|
399
|
+
calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
|
|
400
|
+
}) => {
|
|
401
|
+
accountUpdate: string;
|
|
402
|
+
calls: string;
|
|
403
|
+
};
|
|
404
|
+
fromJSON: (x: {
|
|
405
|
+
accountUpdate: string;
|
|
406
|
+
calls: string;
|
|
407
|
+
}) => {
|
|
408
|
+
accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
|
|
409
|
+
calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
|
|
410
|
+
};
|
|
411
|
+
empty: () => {
|
|
412
|
+
accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
|
|
413
|
+
calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
|
|
414
|
+
};
|
|
415
|
+
};
|
|
416
|
+
publicOutputType: import("node_modules/o1js/dist/node/lib/provable/types/struct.js").ProvablePureExtended<undefined, undefined, null>;
|
|
417
|
+
tag: () => typeof import("o1js").SmartContract;
|
|
418
|
+
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"]>>>;
|
|
419
|
+
dummy<Input, OutPut>(publicInput: Input, publicOutput: OutPut, maxProofsVerified: 0 | 2 | 1, domainLog2?: number): Promise<import("o1js").Proof<Input, OutPut>>;
|
|
420
|
+
readonly provable: {
|
|
421
|
+
toFields: (value: import("o1js").Proof<any, any>) => import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
|
|
422
|
+
toAuxiliary: (value?: import("o1js").Proof<any, any> | undefined) => any[];
|
|
423
|
+
fromFields: (fields: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[], aux: any[]) => import("o1js").Proof<any, any>;
|
|
424
|
+
sizeInFields(): number;
|
|
425
|
+
check: (value: import("o1js").Proof<any, any>) => void;
|
|
426
|
+
toValue: (x: import("o1js").Proof<any, any>) => import("node_modules/o1js/dist/node/lib/proof-system/proof.js").ProofValue<any, any>;
|
|
427
|
+
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>;
|
|
428
|
+
toCanonical?: ((x: import("o1js").Proof<any, any>) => import("o1js").Proof<any, any>) | undefined;
|
|
429
|
+
};
|
|
430
|
+
publicFields(value: import("o1js").ProofBase<any, any>): {
|
|
431
|
+
input: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
|
|
432
|
+
output: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
|
|
433
|
+
};
|
|
434
|
+
_proofFromBase64(proofString: string, maxProofsVerified: 0 | 2 | 1): unknown;
|
|
435
|
+
_proofToBase64(proof: unknown, maxProofsVerified: 0 | 2 | 1): string;
|
|
436
|
+
};
|
|
437
|
+
compile({ cache, forceRecompile, }?: {
|
|
438
|
+
cache?: import("o1js").Cache | undefined;
|
|
439
|
+
forceRecompile?: boolean | undefined;
|
|
440
|
+
}): Promise<{
|
|
441
|
+
verificationKey: {
|
|
442
|
+
data: string;
|
|
443
|
+
hash: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
|
|
444
|
+
};
|
|
445
|
+
provers: import("node_modules/o1js/dist/node/snarky.js").Pickles.Prover[];
|
|
446
|
+
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>;
|
|
447
|
+
}>;
|
|
448
|
+
digest(): Promise<string>;
|
|
449
|
+
runOutsideCircuit(run: () => void): void;
|
|
450
|
+
analyzeMethods({ printSummary }?: {
|
|
451
|
+
printSummary?: boolean | undefined;
|
|
452
|
+
}): Promise<Record<string, {
|
|
453
|
+
actions: number;
|
|
454
|
+
rows: number;
|
|
455
|
+
digest: string;
|
|
456
|
+
gates: import("node_modules/o1js/dist/node/snarky.js").Gate[];
|
|
457
|
+
}>>;
|
|
458
|
+
}, Approval: NFTApprovalContractConstructor, Owner: NFTOwnerContractConstructor, Admin: NFTAdminContractConstructor, Update: NFTUpdateContractConstructor;
|
|
459
|
+
export declare const AdvancedCollection: {
|
|
460
|
+
new (address: import("o1js").PublicKey, tokenId?: import("o1js").Field): {
|
|
461
|
+
collectionName: import("o1js").State<import("node_modules/o1js/dist/node/lib/provable/field.js").Field>;
|
|
462
|
+
creator: import("o1js").State<import("o1js").PublicKey>;
|
|
463
|
+
admin: import("o1js").State<import("o1js").PublicKey>;
|
|
464
|
+
baseURL: import("o1js").State<import("node_modules/o1js/dist/node/lib/provable/field.js").Field>;
|
|
465
|
+
packedData: import("o1js").State<import("node_modules/o1js/dist/node/lib/provable/field.js").Field>;
|
|
466
|
+
deploy(props: import("./contracts/collection.js").CollectionDeployProps): Promise<void>;
|
|
467
|
+
initialize(masterNFT: import("./interfaces/types.js").MintParams, collectionData: import("./interfaces/types.js").CollectionData): Promise<void>;
|
|
468
|
+
events: {
|
|
469
|
+
mint: typeof import("./interfaces/events.js").MintEvent;
|
|
470
|
+
update: typeof import("o1js").PublicKey;
|
|
471
|
+
transfer: typeof import("./interfaces/events.js").TransferEvent;
|
|
472
|
+
approve: typeof import("./interfaces/events.js").ApproveEvent;
|
|
473
|
+
upgradeNFTVerificationKey: typeof import("./interfaces/events.js").UpgradeVerificationKeyEvent;
|
|
474
|
+
upgradeVerificationKey: typeof import("node_modules/o1js/dist/node/lib/provable/field.js").Field & ((x: string | number | bigint | import("node_modules/o1js/dist/node/lib/provable/core/fieldvar.js").FieldConst | import("node_modules/o1js/dist/node/lib/provable/core/fieldvar.js").FieldVar | import("node_modules/o1js/dist/node/lib/provable/field.js").Field) => import("node_modules/o1js/dist/node/lib/provable/field.js").Field);
|
|
475
|
+
limitMinting: typeof import("./interfaces/events.js").LimitMintingEvent;
|
|
476
|
+
pause: typeof import("./interfaces/pausable.js").PauseEvent;
|
|
477
|
+
resume: typeof import("./interfaces/pausable.js").PauseEvent;
|
|
478
|
+
pauseNFT: typeof import("./interfaces/events.js").PauseNFTEvent;
|
|
479
|
+
resumeNFT: typeof import("./interfaces/events.js").PauseNFTEvent;
|
|
480
|
+
ownershipChange: typeof import("./interfaces/ownable.js").OwnershipChangeEvent;
|
|
481
|
+
setName: typeof import("node_modules/o1js/dist/node/lib/provable/field.js").Field & ((x: string | number | bigint | import("node_modules/o1js/dist/node/lib/provable/core/fieldvar.js").FieldConst | import("node_modules/o1js/dist/node/lib/provable/core/fieldvar.js").FieldVar | import("node_modules/o1js/dist/node/lib/provable/field.js").Field) => import("node_modules/o1js/dist/node/lib/provable/field.js").Field);
|
|
482
|
+
setBaseURL: typeof import("node_modules/o1js/dist/node/lib/provable/field.js").Field & ((x: string | number | bigint | import("node_modules/o1js/dist/node/lib/provable/core/fieldvar.js").FieldConst | import("node_modules/o1js/dist/node/lib/provable/core/fieldvar.js").FieldVar | import("node_modules/o1js/dist/node/lib/provable/field.js").Field) => import("node_modules/o1js/dist/node/lib/provable/field.js").Field);
|
|
483
|
+
setRoyaltyFee: typeof import("o1js").UInt32;
|
|
484
|
+
setTransferFee: typeof import("o1js").UInt64;
|
|
485
|
+
setAdmin: typeof import("o1js").PublicKey;
|
|
486
|
+
};
|
|
487
|
+
approveBase(forest: import("o1js").AccountUpdateForest): Promise<void>;
|
|
488
|
+
getAdminContract(): import("./interfaces/admin.js").NFTAdminBase;
|
|
489
|
+
getOwnerContract(address: import("o1js").PublicKey): import("./interfaces/owner.js").NFTOwnerBase;
|
|
490
|
+
getApprovalContract(address: import("o1js").PublicKey): import("./interfaces/approval.js").NFTApprovalBase;
|
|
491
|
+
getUpdateContract(address: import("o1js").PublicKey): import("./interfaces/update.js").NFTUpdateBase;
|
|
492
|
+
ensureCreatorSignature(): Promise<import("o1js").AccountUpdate>;
|
|
493
|
+
ensureOwnerSignature(owner: import("o1js").PublicKey): Promise<import("o1js").AccountUpdate>;
|
|
494
|
+
ensureNotPaused(): Promise<void>;
|
|
495
|
+
mintByCreator(params: import("./interfaces/types.js").MintParams): Promise<void>;
|
|
496
|
+
mint(mintRequest: import("./interfaces/types.js").MintRequest): Promise<void>;
|
|
497
|
+
_mint(params: import("./interfaces/types.js").MintParams): Promise<import("./interfaces/events.js").MintEvent>;
|
|
498
|
+
update(proof: import("./interfaces/types.js").NFTUpdateProof, vk: import("o1js").VerificationKey): Promise<void>;
|
|
499
|
+
updateWithOracle(proof: import("./interfaces/types.js").NFTUpdateProof, vk: import("o1js").VerificationKey): Promise<void>;
|
|
500
|
+
_update(proof: import("./interfaces/types.js").NFTUpdateProof, vk: import("o1js").VerificationKey): Promise<void>;
|
|
501
|
+
approveAddress(nftAddress: import("o1js").PublicKey, approved: import("o1js").PublicKey): Promise<void>;
|
|
502
|
+
approveAddressByProof(nftAddress: import("o1js").PublicKey, approved: import("o1js").PublicKey): Promise<void>;
|
|
503
|
+
transferBySignature(params: import("./interfaces/types.js").TransferParams): Promise<void>;
|
|
504
|
+
transferByProof(params: import("./interfaces/types.js").TransferParams): Promise<void>;
|
|
505
|
+
approvedTransferByProof(params: import("./interfaces/types.js").TransferParams): Promise<void>;
|
|
506
|
+
approvedTransferBySignature(params: import("./interfaces/types.js").TransferParams): Promise<void>;
|
|
507
|
+
_transfer(params: {
|
|
508
|
+
transferEventDraft: import("./interfaces/types.js").TransferExtendedParams;
|
|
509
|
+
transferFee: import("o1js").UInt64;
|
|
510
|
+
royaltyFee: import("o1js").UInt32;
|
|
511
|
+
}): Promise<import("./interfaces/types.js").TransferExtendedParams>;
|
|
512
|
+
upgradeNFTVerificationKeyBySignature(address: import("o1js").PublicKey, vk: import("o1js").VerificationKey): Promise<void>;
|
|
513
|
+
upgradeNFTVerificationKeyByProof(address: import("o1js").PublicKey, vk: import("o1js").VerificationKey): Promise<void>;
|
|
514
|
+
_upgrade(address: import("o1js").PublicKey, vk: import("o1js").VerificationKey): Promise<import("./interfaces/events.js").UpgradeVerificationKeyData>;
|
|
515
|
+
upgradeVerificationKey(vk: import("o1js").VerificationKey): Promise<void>;
|
|
516
|
+
limitMinting(): Promise<void>;
|
|
517
|
+
pause(): Promise<void>;
|
|
518
|
+
resume(): Promise<void>;
|
|
519
|
+
pauseNFTBySignature(address: import("o1js").PublicKey): Promise<void>;
|
|
520
|
+
pauseNFTByProof(address: import("o1js").PublicKey): Promise<void>;
|
|
521
|
+
resumeNFT(address: import("o1js").PublicKey): Promise<void>;
|
|
522
|
+
resumeNFTByProof(address: import("o1js").PublicKey): Promise<void>;
|
|
523
|
+
setName(name: import("o1js").Field): Promise<void>;
|
|
524
|
+
setBaseURL(baseURL: import("o1js").Field): Promise<void>;
|
|
525
|
+
setAdmin(admin: import("o1js").PublicKey): Promise<void>;
|
|
526
|
+
setRoyaltyFee(royaltyFee: import("o1js").UInt32): Promise<void>;
|
|
527
|
+
setTransferFee(transferFee: import("o1js").UInt64): Promise<void>;
|
|
528
|
+
transferOwnership(to: import("o1js").PublicKey): Promise<import("o1js").PublicKey>;
|
|
529
|
+
getNFTState(address: import("o1js").PublicKey): Promise<import("./interfaces/types.js").NFTStateStruct>;
|
|
530
|
+
deriveTokenId(): import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
|
|
531
|
+
readonly internal: {
|
|
532
|
+
mint({ address, amount, }: {
|
|
533
|
+
address: import("o1js").PublicKey | import("o1js").AccountUpdate | import("o1js").SmartContract;
|
|
534
|
+
amount: number | bigint | import("o1js").UInt64;
|
|
535
|
+
}): import("o1js").AccountUpdate;
|
|
536
|
+
burn({ address, amount, }: {
|
|
537
|
+
address: import("o1js").PublicKey | import("o1js").AccountUpdate | import("o1js").SmartContract;
|
|
538
|
+
amount: number | bigint | import("o1js").UInt64;
|
|
539
|
+
}): import("o1js").AccountUpdate;
|
|
540
|
+
send({ from, to, amount, }: {
|
|
541
|
+
from: import("o1js").PublicKey | import("o1js").AccountUpdate | import("o1js").SmartContract;
|
|
542
|
+
to: import("o1js").PublicKey | import("o1js").AccountUpdate | import("o1js").SmartContract;
|
|
543
|
+
amount: number | bigint | import("o1js").UInt64;
|
|
544
|
+
}): import("o1js").AccountUpdate;
|
|
545
|
+
};
|
|
546
|
+
forEachUpdate(updates: import("o1js").AccountUpdateForest, callback: (update: import("o1js").AccountUpdate, usesToken: import("o1js").Bool) => void): void;
|
|
547
|
+
checkZeroBalanceChange(updates: import("o1js").AccountUpdateForest): void;
|
|
548
|
+
approveAccountUpdate(accountUpdate: import("o1js").AccountUpdate | import("o1js").AccountUpdateTree): Promise<void>;
|
|
549
|
+
approveAccountUpdates(accountUpdates: (import("o1js").AccountUpdate | import("o1js").AccountUpdateTree)[]): Promise<void>;
|
|
550
|
+
transfer(from: import("o1js").PublicKey | import("o1js").AccountUpdate, to: import("o1js").PublicKey | import("o1js").AccountUpdate, amount: import("o1js").UInt64 | number | bigint): Promise<void>;
|
|
551
|
+
"__#3@#private": any;
|
|
552
|
+
address: import("o1js").PublicKey;
|
|
553
|
+
tokenId: import("o1js").Field;
|
|
554
|
+
init(): void;
|
|
555
|
+
requireSignature(): void;
|
|
556
|
+
skipAuthorization(): void;
|
|
557
|
+
readonly self: import("o1js").AccountUpdate;
|
|
558
|
+
newSelf(methodName?: string): import("o1js").AccountUpdate;
|
|
559
|
+
sender: {
|
|
560
|
+
self: import("o1js").SmartContract;
|
|
561
|
+
getUnconstrained(): import("o1js").PublicKey;
|
|
562
|
+
getAndRequireSignature(): import("o1js").PublicKey;
|
|
563
|
+
};
|
|
564
|
+
readonly account: import("node_modules/o1js/dist/node/lib/mina/precondition.js").Account;
|
|
565
|
+
readonly network: import("node_modules/o1js/dist/node/lib/mina/precondition.js").Network;
|
|
566
|
+
readonly currentSlot: import("node_modules/o1js/dist/node/lib/mina/precondition.js").CurrentSlot;
|
|
567
|
+
approve(update: import("o1js").AccountUpdate | import("o1js").AccountUpdateTree | import("o1js").AccountUpdateForest): void;
|
|
568
|
+
send(args: {
|
|
569
|
+
to: import("o1js").PublicKey | import("o1js").AccountUpdate | import("o1js").SmartContract;
|
|
570
|
+
amount: number | bigint | import("o1js").UInt64;
|
|
571
|
+
}): import("o1js").AccountUpdate;
|
|
572
|
+
readonly balance: {
|
|
573
|
+
addInPlace(x: string | number | bigint | import("o1js").UInt64 | import("o1js").UInt32 | import("o1js").Int64): void;
|
|
574
|
+
subInPlace(x: string | number | bigint | import("o1js").UInt64 | import("o1js").UInt32 | import("o1js").Int64): void;
|
|
575
|
+
};
|
|
576
|
+
emitEventIf<K extends "update" | "approve" | "transfer" | "upgradeVerificationKey" | "pause" | "resume" | "mint" | "upgradeNFTVerificationKey" | "limitMinting" | "pauseNFT" | "resumeNFT" | "ownershipChange" | "setName" | "setBaseURL" | "setRoyaltyFee" | "setTransferFee" | "setAdmin">(condition: import("o1js").Bool, type: K, event: any): void;
|
|
577
|
+
emitEvent<K extends "update" | "approve" | "transfer" | "upgradeVerificationKey" | "pause" | "resume" | "mint" | "upgradeNFTVerificationKey" | "limitMinting" | "pauseNFT" | "resumeNFT" | "ownershipChange" | "setName" | "setBaseURL" | "setRoyaltyFee" | "setTransferFee" | "setAdmin">(type: K, event: any): void;
|
|
578
|
+
fetchEvents(start?: import("o1js").UInt32, end?: import("o1js").UInt32): Promise<{
|
|
579
|
+
type: string;
|
|
580
|
+
event: {
|
|
581
|
+
data: import("o1js").ProvablePure<any>;
|
|
582
|
+
transactionInfo: {
|
|
583
|
+
transactionHash: string;
|
|
584
|
+
transactionStatus: string;
|
|
585
|
+
transactionMemo: string;
|
|
586
|
+
};
|
|
587
|
+
};
|
|
588
|
+
blockHeight: import("o1js").UInt32;
|
|
589
|
+
blockHash: string;
|
|
590
|
+
parentBlockHash: string;
|
|
591
|
+
globalSlot: import("o1js").UInt32;
|
|
592
|
+
chainStatus: string;
|
|
593
|
+
}[]>;
|
|
594
|
+
};
|
|
595
|
+
MAX_ACCOUNT_UPDATES: number;
|
|
596
|
+
_methods?: import("node_modules/o1js/dist/node/lib/proof-system/zkprogram.js").MethodInterface[];
|
|
597
|
+
_methodMetadata?: Record<string, {
|
|
598
|
+
actions: number;
|
|
599
|
+
rows: number;
|
|
600
|
+
digest: string;
|
|
601
|
+
gates: import("node_modules/o1js/dist/node/snarky.js").Gate[];
|
|
602
|
+
}>;
|
|
603
|
+
_provers?: import("node_modules/o1js/dist/node/snarky.js").Pickles.Prover[];
|
|
604
|
+
_maxProofsVerified?: 0 | 1 | 2;
|
|
605
|
+
_verificationKey?: {
|
|
606
|
+
data: string;
|
|
607
|
+
hash: import("o1js").Field;
|
|
608
|
+
};
|
|
609
|
+
Proof(): {
|
|
610
|
+
new ({ proof, publicInput, publicOutput, maxProofsVerified, }: {
|
|
611
|
+
proof: unknown;
|
|
612
|
+
publicInput: import("o1js").ZkappPublicInput;
|
|
613
|
+
publicOutput: undefined;
|
|
614
|
+
maxProofsVerified: 0 | 2 | 1;
|
|
615
|
+
}): {
|
|
616
|
+
verify(): void;
|
|
617
|
+
verifyIf(condition: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool): void;
|
|
618
|
+
publicInput: import("o1js").ZkappPublicInput;
|
|
619
|
+
publicOutput: undefined;
|
|
620
|
+
proof: unknown;
|
|
621
|
+
maxProofsVerified: 0 | 2 | 1;
|
|
622
|
+
shouldVerify: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
|
|
623
|
+
toJSON(): import("o1js").JsonProof;
|
|
624
|
+
publicFields(): {
|
|
625
|
+
input: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
|
|
626
|
+
output: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
|
|
627
|
+
};
|
|
628
|
+
};
|
|
629
|
+
publicInputType: Omit<import("node_modules/o1js/dist/node/lib/provable/types/provable-intf.js").Provable<{
|
|
630
|
+
accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
|
|
631
|
+
calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
|
|
632
|
+
}, {
|
|
633
|
+
accountUpdate: bigint;
|
|
634
|
+
calls: bigint;
|
|
635
|
+
}>, "fromFields"> & {
|
|
636
|
+
fromFields: (fields: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[]) => {
|
|
637
|
+
accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
|
|
638
|
+
calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
|
|
639
|
+
};
|
|
640
|
+
} & {
|
|
641
|
+
toInput: (x: {
|
|
642
|
+
accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
|
|
643
|
+
calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
|
|
644
|
+
}) => {
|
|
645
|
+
fields?: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[] | undefined;
|
|
646
|
+
packed?: [import("node_modules/o1js/dist/node/lib/provable/field.js").Field, number][] | undefined;
|
|
647
|
+
};
|
|
648
|
+
toJSON: (x: {
|
|
649
|
+
accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
|
|
650
|
+
calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
|
|
651
|
+
}) => {
|
|
652
|
+
accountUpdate: string;
|
|
653
|
+
calls: string;
|
|
654
|
+
};
|
|
655
|
+
fromJSON: (x: {
|
|
656
|
+
accountUpdate: string;
|
|
657
|
+
calls: string;
|
|
658
|
+
}) => {
|
|
659
|
+
accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
|
|
660
|
+
calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
|
|
661
|
+
};
|
|
662
|
+
empty: () => {
|
|
663
|
+
accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
|
|
664
|
+
calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
|
|
665
|
+
};
|
|
666
|
+
};
|
|
667
|
+
publicOutputType: import("node_modules/o1js/dist/node/lib/provable/types/struct.js").ProvablePureExtended<undefined, undefined, null>;
|
|
668
|
+
tag: () => typeof import("o1js").SmartContract;
|
|
669
|
+
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"]>>>;
|
|
670
|
+
dummy<Input, OutPut>(publicInput: Input, publicOutput: OutPut, maxProofsVerified: 0 | 2 | 1, domainLog2?: number): Promise<import("o1js").Proof<Input, OutPut>>;
|
|
671
|
+
readonly provable: {
|
|
672
|
+
toFields: (value: import("o1js").Proof<any, any>) => import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
|
|
673
|
+
toAuxiliary: (value?: import("o1js").Proof<any, any> | undefined) => any[];
|
|
674
|
+
fromFields: (fields: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[], aux: any[]) => import("o1js").Proof<any, any>;
|
|
675
|
+
sizeInFields(): number;
|
|
676
|
+
check: (value: import("o1js").Proof<any, any>) => void;
|
|
677
|
+
toValue: (x: import("o1js").Proof<any, any>) => import("node_modules/o1js/dist/node/lib/proof-system/proof.js").ProofValue<any, any>;
|
|
678
|
+
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>;
|
|
679
|
+
toCanonical?: ((x: import("o1js").Proof<any, any>) => import("o1js").Proof<any, any>) | undefined;
|
|
680
|
+
};
|
|
681
|
+
publicFields(value: import("o1js").ProofBase<any, any>): {
|
|
682
|
+
input: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
|
|
683
|
+
output: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
|
|
684
|
+
};
|
|
685
|
+
_proofFromBase64(proofString: string, maxProofsVerified: 0 | 2 | 1): unknown;
|
|
686
|
+
_proofToBase64(proof: unknown, maxProofsVerified: 0 | 2 | 1): string;
|
|
687
|
+
};
|
|
688
|
+
compile({ cache, forceRecompile, }?: {
|
|
689
|
+
cache?: import("o1js").Cache | undefined;
|
|
690
|
+
forceRecompile?: boolean | undefined;
|
|
691
|
+
}): Promise<{
|
|
692
|
+
verificationKey: {
|
|
693
|
+
data: string;
|
|
694
|
+
hash: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
|
|
695
|
+
};
|
|
696
|
+
provers: import("node_modules/o1js/dist/node/snarky.js").Pickles.Prover[];
|
|
697
|
+
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>;
|
|
698
|
+
}>;
|
|
699
|
+
digest(): Promise<string>;
|
|
700
|
+
runOutsideCircuit(run: () => void): void;
|
|
701
|
+
analyzeMethods({ printSummary }?: {
|
|
702
|
+
printSummary?: boolean | undefined;
|
|
703
|
+
}): Promise<Record<string, {
|
|
704
|
+
actions: number;
|
|
705
|
+
rows: number;
|
|
706
|
+
digest: string;
|
|
707
|
+
gates: import("node_modules/o1js/dist/node/snarky.js").Gate[];
|
|
708
|
+
}>>;
|
|
709
|
+
}, AdvancedApproval: NFTApprovalContractConstructor, AdvancedOwner: NFTOwnerContractConstructor, AdvancedAdmin: NFTAdminContractConstructor;
|