zkcloudworker 0.18.9 → 0.18.10

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.
Files changed (67) hide show
  1. package/dist/ts/mina/token/FungibleTokenAdmin.d.ts +1 -6
  2. package/dist/ts/mina/token/FungibleTokenAdmin.js.map +1 -1
  3. package/dist/ts/mina/token/FungibleTokenContract.d.ts +520 -0
  4. package/dist/ts/mina/token/FungibleTokenContract.js +290 -0
  5. package/dist/ts/mina/token/FungibleTokenContract.js.map +1 -0
  6. package/dist/ts/mina/token/FungibleTokenWhitelistedAdmin.d.ts +33 -0
  7. package/dist/ts/mina/token/FungibleTokenWhitelistedAdmin.js +119 -0
  8. package/dist/ts/mina/token/FungibleTokenWhitelistedAdmin.js.map +1 -0
  9. package/dist/ts/mina/token/api.d.ts +1 -1
  10. package/dist/ts/mina/token/bid.d.ts +24 -0
  11. package/dist/ts/mina/token/bid.js +167 -0
  12. package/dist/ts/mina/token/bid.js.map +1 -0
  13. package/dist/ts/mina/token/build.d.ts +64 -0
  14. package/dist/ts/mina/token/build.js +437 -0
  15. package/dist/ts/mina/token/build.js.map +1 -0
  16. package/dist/ts/mina/token/fee.d.ts +2 -0
  17. package/dist/ts/mina/token/fee.js +3 -0
  18. package/dist/ts/mina/token/fee.js.map +1 -0
  19. package/dist/ts/mina/token/index.d.ts +5 -2
  20. package/dist/ts/mina/token/index.js +5 -2
  21. package/dist/ts/mina/token/index.js.map +1 -1
  22. package/dist/ts/mina/token/offer.d.ts +25 -0
  23. package/dist/ts/mina/token/offer.js +175 -0
  24. package/dist/ts/mina/token/offer.js.map +1 -0
  25. package/dist/ts/mina/token/token.d.ts +426 -0
  26. package/dist/ts/mina/token/token.js +87 -0
  27. package/dist/ts/mina/token/token.js.map +1 -0
  28. package/dist/tsconfig.web.tsbuildinfo +1 -1
  29. package/dist/web/mina/token/FungibleTokenAdmin.d.ts +1 -6
  30. package/dist/web/mina/token/FungibleTokenAdmin.js.map +1 -1
  31. package/dist/web/mina/token/FungibleTokenContract.d.ts +520 -0
  32. package/dist/web/mina/token/FungibleTokenContract.js +290 -0
  33. package/dist/web/mina/token/FungibleTokenContract.js.map +1 -0
  34. package/dist/web/mina/token/FungibleTokenWhitelistedAdmin.d.ts +33 -0
  35. package/dist/web/mina/token/FungibleTokenWhitelistedAdmin.js +119 -0
  36. package/dist/web/mina/token/FungibleTokenWhitelistedAdmin.js.map +1 -0
  37. package/dist/web/mina/token/api.d.ts +1 -1
  38. package/dist/web/mina/token/bid.d.ts +24 -0
  39. package/dist/web/mina/token/bid.js +167 -0
  40. package/dist/web/mina/token/bid.js.map +1 -0
  41. package/dist/web/mina/token/build.d.ts +64 -0
  42. package/dist/web/mina/token/build.js +437 -0
  43. package/dist/web/mina/token/build.js.map +1 -0
  44. package/dist/web/mina/token/fee.d.ts +2 -0
  45. package/dist/web/mina/token/fee.js +3 -0
  46. package/dist/web/mina/token/fee.js.map +1 -0
  47. package/dist/web/mina/token/index.d.ts +5 -2
  48. package/dist/web/mina/token/index.js +5 -2
  49. package/dist/web/mina/token/index.js.map +1 -1
  50. package/dist/web/mina/token/offer.d.ts +25 -0
  51. package/dist/web/mina/token/offer.js +175 -0
  52. package/dist/web/mina/token/offer.js.map +1 -0
  53. package/dist/web/mina/token/token.d.ts +426 -0
  54. package/dist/web/mina/token/token.js +87 -0
  55. package/dist/web/mina/token/token.js.map +1 -0
  56. package/package.json +1 -1
  57. package/src/mina/token/FungibleTokenAdmin.ts +1 -7
  58. package/src/mina/token/FungibleTokenContract.ts +327 -0
  59. package/src/mina/token/FungibleTokenWhitelistedAdmin.ts +112 -0
  60. package/src/mina/token/api.ts +1 -1
  61. package/src/mina/token/bid.ts +173 -0
  62. package/src/mina/token/build.ts +610 -0
  63. package/src/mina/token/fee.ts +2 -0
  64. package/src/mina/token/index.ts +5 -2
  65. package/src/mina/token/offer.ts +174 -0
  66. package/src/mina/token/token.ts +127 -0
  67. package/src/mina/token/FungibleToken.ts +0 -316
@@ -0,0 +1,520 @@
1
+ import { AccountUpdate, AccountUpdateForest, Bool, DeployArgs, Field, Int64, PublicKey, SmartContract, State, Types, UInt64, UInt8, VerificationKey } from "o1js";
2
+ export type FungibleTokenAdminBase = SmartContract & {
3
+ canMint(accountUpdate: AccountUpdate): Promise<Bool>;
4
+ canChangeAdmin(admin: PublicKey): Promise<Bool>;
5
+ canPause(): Promise<Bool>;
6
+ canResume(): Promise<Bool>;
7
+ };
8
+ export type FungibleTokenAdminConstructor = new (adminPublicKey: PublicKey) => FungibleTokenAdminBase;
9
+ export interface FungibleTokenDeployProps extends Exclude<DeployArgs, undefined> {
10
+ /** The token symbol. */
11
+ symbol: string;
12
+ /** A source code reference, which is placed within the `zkappUri` of the contract account.
13
+ * Typically a link to a file on github. */
14
+ src: string;
15
+ }
16
+ export declare const FungibleTokenErrors: {
17
+ noAdminKey: string;
18
+ noPermissionToChangeAdmin: string;
19
+ tokenPaused: string;
20
+ noPermissionToMint: string;
21
+ noPermissionToPause: string;
22
+ noPermissionToResume: string;
23
+ noTransferFromCirculation: string;
24
+ noPermissionChangeAllowed: string;
25
+ flashMinting: string;
26
+ unbalancedTransaction: string;
27
+ };
28
+ export declare function FungibleTokenContract(adminContract: FungibleTokenAdminConstructor): {
29
+ new (address: PublicKey, tokenId?: Field): {
30
+ decimals: State<UInt8>;
31
+ admin: State<PublicKey>;
32
+ paused: State<import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool>;
33
+ readonly events: {
34
+ SetAdmin: typeof SetAdminEvent;
35
+ Pause: typeof PauseEvent;
36
+ Mint: typeof MintEvent;
37
+ Burn: typeof BurnEvent;
38
+ BalanceChange: typeof BalanceChangeEvent;
39
+ };
40
+ deploy(props: FungibleTokenDeployProps): Promise<void>;
41
+ /** Update the verification key.
42
+ * Note that because we have set the permissions for setting the verification key to `impossibleDuringCurrentVersion()`, this will only be possible in case of a protocol update that requires an update.
43
+ */
44
+ updateVerificationKey(vk: VerificationKey): Promise<void>;
45
+ /** Initializes the account for tracking total circulation.
46
+ * @argument {PublicKey} admin - public key where the admin contract is deployed
47
+ * @argument {UInt8} decimals - number of decimals for the token
48
+ * @argument {Bool} startPaused - if set to `Bool(true), the contract will start in a mode where token minting and transfers are paused. This should be used for non-atomic deployments
49
+ */
50
+ initialize(admin: PublicKey, decimals: UInt8, startPaused: Bool): Promise<void>;
51
+ getAdminContract(): Promise<FungibleTokenAdminBase>;
52
+ setAdmin(admin: PublicKey): Promise<void>;
53
+ mint(recipient: PublicKey, amount: UInt64): Promise<AccountUpdate>;
54
+ burn(from: PublicKey, amount: UInt64): Promise<AccountUpdate>;
55
+ pause(): Promise<void>;
56
+ resume(): Promise<void>;
57
+ transfer(from: PublicKey, to: PublicKey, amount: UInt64): Promise<void>;
58
+ checkPermissionsUpdate(update: AccountUpdate): void;
59
+ /** Approve `AccountUpdate`s that have been created outside of the token contract.
60
+ *
61
+ * @argument {AccountUpdateForest} updates - The `AccountUpdate`s to approve. Note that the forest size is limited by the base token contract, @see TokenContract.MAX_ACCOUNT_UPDATES The current limit is 9.
62
+ */
63
+ approveBase(updates: AccountUpdateForest): Promise<void>;
64
+ getBalanceOf(address: PublicKey): Promise<UInt64>;
65
+ /** Reports the current circulating supply
66
+ * This does take into account currently unreduced actions.
67
+ */
68
+ getCirculating(): Promise<UInt64>;
69
+ getDecimals(): Promise<UInt8>;
70
+ deriveTokenId(): import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
71
+ readonly internal: {
72
+ mint({ address, amount, }: {
73
+ address: PublicKey | AccountUpdate | SmartContract;
74
+ amount: number | bigint | UInt64;
75
+ }): AccountUpdate;
76
+ burn({ address, amount, }: {
77
+ address: PublicKey | AccountUpdate | SmartContract;
78
+ amount: number | bigint | UInt64;
79
+ }): AccountUpdate;
80
+ send({ from, to, amount, }: {
81
+ from: PublicKey | AccountUpdate | SmartContract;
82
+ to: PublicKey | AccountUpdate | SmartContract;
83
+ amount: number | bigint | UInt64;
84
+ }): AccountUpdate;
85
+ };
86
+ forEachUpdate(updates: AccountUpdateForest, callback: (update: AccountUpdate, usesToken: Bool) => void): void;
87
+ checkZeroBalanceChange(updates: AccountUpdateForest): void;
88
+ approveAccountUpdate(accountUpdate: AccountUpdate | import("o1js").AccountUpdateTree): Promise<void>;
89
+ approveAccountUpdates(accountUpdates: (AccountUpdate | import("o1js").AccountUpdateTree)[]): Promise<void>;
90
+ "__#3@#private": any;
91
+ address: PublicKey;
92
+ tokenId: Field;
93
+ init(): void;
94
+ requireSignature(): void;
95
+ skipAuthorization(): void;
96
+ readonly self: AccountUpdate;
97
+ newSelf(methodName?: string): AccountUpdate;
98
+ sender: {
99
+ self: SmartContract;
100
+ getUnconstrained(): PublicKey;
101
+ getAndRequireSignature(): PublicKey;
102
+ };
103
+ readonly account: import("node_modules/o1js/dist/node/lib/mina/precondition.js").Account;
104
+ readonly network: import("node_modules/o1js/dist/node/lib/mina/precondition.js").Network;
105
+ readonly currentSlot: import("node_modules/o1js/dist/node/lib/mina/precondition.js").CurrentSlot;
106
+ approve(update: AccountUpdate | import("o1js").AccountUpdateTree | AccountUpdateForest): void;
107
+ send(args: {
108
+ to: PublicKey | AccountUpdate | SmartContract;
109
+ amount: number | bigint | UInt64;
110
+ }): AccountUpdate;
111
+ readonly balance: {
112
+ addInPlace(x: string | number | bigint | UInt64 | Types.UInt32 | import("node_modules/o1js/dist/node/lib/provable/int.js").Int64): void;
113
+ subInPlace(x: string | number | bigint | UInt64 | Types.UInt32 | import("node_modules/o1js/dist/node/lib/provable/int.js").Int64): void;
114
+ };
115
+ emitEventIf<K extends "SetAdmin" | "Pause" | "Mint" | "Burn" | "BalanceChange">(condition: Bool, type: K, event: any): void;
116
+ emitEvent<K extends "SetAdmin" | "Pause" | "Mint" | "Burn" | "BalanceChange">(type: K, event: any): void;
117
+ fetchEvents(start?: Types.UInt32, end?: Types.UInt32): Promise<{
118
+ type: string;
119
+ event: {
120
+ data: import("o1js").ProvablePure<any>;
121
+ transactionInfo: {
122
+ transactionHash: string;
123
+ transactionStatus: string;
124
+ transactionMemo: string;
125
+ };
126
+ };
127
+ blockHeight: Types.UInt32;
128
+ blockHash: string;
129
+ parentBlockHash: string;
130
+ globalSlot: Types.UInt32;
131
+ chainStatus: string;
132
+ }[]>;
133
+ };
134
+ MAX_ACCOUNT_UPDATES: number;
135
+ _methods?: import("node_modules/o1js/dist/node/lib/proof-system/zkprogram.js").MethodInterface[];
136
+ _methodMetadata?: Record<string, {
137
+ actions: number;
138
+ rows: number;
139
+ digest: string;
140
+ gates: import("node_modules/o1js/dist/node/snarky.js").Gate[];
141
+ }>;
142
+ _provers?: import("node_modules/o1js/dist/node/snarky.js").Pickles.Prover[];
143
+ _maxProofsVerified?: 0 | 1 | 2;
144
+ _verificationKey?: {
145
+ data: string;
146
+ hash: Field;
147
+ };
148
+ Proof(): {
149
+ new ({ proof, publicInput, publicOutput, maxProofsVerified, }: {
150
+ proof: unknown;
151
+ publicInput: import("o1js").ZkappPublicInput;
152
+ publicOutput: undefined;
153
+ maxProofsVerified: 0 | 2 | 1;
154
+ }): {
155
+ verify(): void;
156
+ verifyIf(condition: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool): void;
157
+ publicInput: import("o1js").ZkappPublicInput;
158
+ publicOutput: undefined;
159
+ proof: unknown;
160
+ maxProofsVerified: 0 | 2 | 1;
161
+ shouldVerify: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
162
+ toJSON(): import("o1js").JsonProof;
163
+ publicFields(): {
164
+ input: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
165
+ output: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
166
+ };
167
+ };
168
+ publicInputType: Omit<import("node_modules/o1js/dist/node/lib/provable/types/provable-intf.js").Provable<{
169
+ accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
170
+ calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
171
+ }, {
172
+ accountUpdate: bigint;
173
+ calls: bigint;
174
+ }>, "fromFields"> & {
175
+ fromFields: (fields: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[]) => {
176
+ accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
177
+ calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
178
+ };
179
+ } & {
180
+ toInput: (x: {
181
+ accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
182
+ calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
183
+ }) => {
184
+ fields?: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[] | undefined;
185
+ packed?: [import("node_modules/o1js/dist/node/lib/provable/field.js").Field, number][] | undefined;
186
+ };
187
+ toJSON: (x: {
188
+ accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
189
+ calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
190
+ }) => {
191
+ accountUpdate: string;
192
+ calls: string;
193
+ };
194
+ fromJSON: (x: {
195
+ accountUpdate: string;
196
+ calls: string;
197
+ }) => {
198
+ accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
199
+ calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
200
+ };
201
+ empty: () => {
202
+ accountUpdate: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
203
+ calls: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
204
+ };
205
+ };
206
+ publicOutputType: import("node_modules/o1js/dist/node/lib/provable/types/struct.js").ProvablePureExtended<undefined, undefined, null>;
207
+ tag: () => typeof SmartContract;
208
+ 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"]>>>;
209
+ dummy<Input, OutPut>(publicInput: Input, publicOutput: OutPut, maxProofsVerified: 0 | 2 | 1, domainLog2?: number): Promise<import("o1js").Proof<Input, OutPut>>;
210
+ readonly provable: {
211
+ toFields: (value: import("o1js").Proof<any, any>) => import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
212
+ toAuxiliary: (value?: import("o1js").Proof<any, any> | undefined) => any[];
213
+ fromFields: (fields: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[], aux: any[]) => import("o1js").Proof<any, any>;
214
+ sizeInFields(): number;
215
+ check: (value: import("o1js").Proof<any, any>) => void;
216
+ toValue: (x: import("o1js").Proof<any, any>) => import("node_modules/o1js/dist/node/lib/proof-system/proof.js").ProofValue<any, any>;
217
+ 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>;
218
+ toCanonical?: ((x: import("o1js").Proof<any, any>) => import("o1js").Proof<any, any>) | undefined;
219
+ };
220
+ publicFields(value: import("o1js").ProofBase<any, any>): {
221
+ input: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
222
+ output: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
223
+ };
224
+ };
225
+ compile({ cache, forceRecompile, }?: {
226
+ cache?: import("o1js").Cache | undefined;
227
+ forceRecompile?: boolean | undefined;
228
+ }): Promise<{
229
+ verificationKey: {
230
+ data: string;
231
+ hash: import("node_modules/o1js/dist/node/lib/provable/field.js").Field;
232
+ };
233
+ provers: import("node_modules/o1js/dist/node/snarky.js").Pickles.Prover[];
234
+ 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>;
235
+ }>;
236
+ digest(): Promise<string>;
237
+ runOutsideCircuit(run: () => void): void;
238
+ analyzeMethods({ printSummary }?: {
239
+ printSummary?: boolean | undefined;
240
+ }): Promise<Record<string, {
241
+ actions: number;
242
+ rows: number;
243
+ digest: string;
244
+ gates: import("node_modules/o1js/dist/node/snarky.js").Gate[];
245
+ }>>;
246
+ };
247
+ declare const SetAdminEvent_base: (new (value: {
248
+ adminKey: PublicKey;
249
+ }) => {
250
+ adminKey: PublicKey;
251
+ }) & {
252
+ _isStruct: true;
253
+ } & Omit<import("node_modules/o1js/dist/node/lib/provable/types/provable-intf.js").Provable<{
254
+ adminKey: PublicKey;
255
+ }, {
256
+ adminKey: {
257
+ x: bigint;
258
+ isOdd: boolean;
259
+ };
260
+ }>, "fromFields"> & {
261
+ fromFields: (fields: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[]) => {
262
+ adminKey: PublicKey;
263
+ };
264
+ } & {
265
+ fromValue: (value: {
266
+ adminKey: PublicKey | {
267
+ x: Field | bigint;
268
+ isOdd: Bool | boolean;
269
+ };
270
+ }) => {
271
+ adminKey: PublicKey;
272
+ };
273
+ toInput: (x: {
274
+ adminKey: PublicKey;
275
+ }) => {
276
+ fields?: Field[] | undefined;
277
+ packed?: [Field, number][] | undefined;
278
+ };
279
+ toJSON: (x: {
280
+ adminKey: PublicKey;
281
+ }) => {
282
+ adminKey: string;
283
+ };
284
+ fromJSON: (x: {
285
+ adminKey: string;
286
+ }) => {
287
+ adminKey: PublicKey;
288
+ };
289
+ empty: () => {
290
+ adminKey: PublicKey;
291
+ };
292
+ };
293
+ export declare class SetAdminEvent extends SetAdminEvent_base {
294
+ }
295
+ declare const PauseEvent_base: (new (value: {
296
+ isPaused: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
297
+ }) => {
298
+ isPaused: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
299
+ }) & {
300
+ _isStruct: true;
301
+ } & Omit<import("node_modules/o1js/dist/node/lib/provable/types/provable-intf.js").Provable<{
302
+ isPaused: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
303
+ }, {
304
+ isPaused: boolean;
305
+ }>, "fromFields"> & {
306
+ fromFields: (fields: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[]) => {
307
+ isPaused: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
308
+ };
309
+ } & {
310
+ fromValue: (value: {
311
+ isPaused: boolean | import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
312
+ }) => {
313
+ isPaused: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
314
+ };
315
+ toInput: (x: {
316
+ isPaused: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
317
+ }) => {
318
+ fields?: Field[] | undefined;
319
+ packed?: [Field, number][] | undefined;
320
+ };
321
+ toJSON: (x: {
322
+ isPaused: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
323
+ }) => {
324
+ isPaused: boolean;
325
+ };
326
+ fromJSON: (x: {
327
+ isPaused: boolean;
328
+ }) => {
329
+ isPaused: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
330
+ };
331
+ empty: () => {
332
+ isPaused: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
333
+ };
334
+ };
335
+ export declare class PauseEvent extends PauseEvent_base {
336
+ }
337
+ declare const MintEvent_base: (new (value: {
338
+ recipient: PublicKey;
339
+ amount: Types.UInt64;
340
+ }) => {
341
+ recipient: PublicKey;
342
+ amount: Types.UInt64;
343
+ }) & {
344
+ _isStruct: true;
345
+ } & Omit<import("node_modules/o1js/dist/node/lib/provable/types/provable-intf.js").Provable<{
346
+ recipient: PublicKey;
347
+ amount: Types.UInt64;
348
+ }, {
349
+ recipient: {
350
+ x: bigint;
351
+ isOdd: boolean;
352
+ };
353
+ amount: bigint;
354
+ }>, "fromFields"> & {
355
+ fromFields: (fields: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[]) => {
356
+ recipient: PublicKey;
357
+ amount: Types.UInt64;
358
+ };
359
+ } & {
360
+ fromValue: (value: {
361
+ recipient: PublicKey | {
362
+ x: Field | bigint;
363
+ isOdd: Bool | boolean;
364
+ };
365
+ amount: bigint | Types.UInt64;
366
+ }) => {
367
+ recipient: PublicKey;
368
+ amount: Types.UInt64;
369
+ };
370
+ toInput: (x: {
371
+ recipient: PublicKey;
372
+ amount: Types.UInt64;
373
+ }) => {
374
+ fields?: Field[] | undefined;
375
+ packed?: [Field, number][] | undefined;
376
+ };
377
+ toJSON: (x: {
378
+ recipient: PublicKey;
379
+ amount: Types.UInt64;
380
+ }) => {
381
+ recipient: string;
382
+ amount: string;
383
+ };
384
+ fromJSON: (x: {
385
+ recipient: string;
386
+ amount: string;
387
+ }) => {
388
+ recipient: PublicKey;
389
+ amount: Types.UInt64;
390
+ };
391
+ empty: () => {
392
+ recipient: PublicKey;
393
+ amount: Types.UInt64;
394
+ };
395
+ };
396
+ export declare class MintEvent extends MintEvent_base {
397
+ }
398
+ declare const BurnEvent_base: (new (value: {
399
+ from: PublicKey;
400
+ amount: Types.UInt64;
401
+ }) => {
402
+ from: PublicKey;
403
+ amount: Types.UInt64;
404
+ }) & {
405
+ _isStruct: true;
406
+ } & Omit<import("node_modules/o1js/dist/node/lib/provable/types/provable-intf.js").Provable<{
407
+ from: PublicKey;
408
+ amount: Types.UInt64;
409
+ }, {
410
+ from: {
411
+ x: bigint;
412
+ isOdd: boolean;
413
+ };
414
+ amount: bigint;
415
+ }>, "fromFields"> & {
416
+ fromFields: (fields: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[]) => {
417
+ from: PublicKey;
418
+ amount: Types.UInt64;
419
+ };
420
+ } & {
421
+ fromValue: (value: {
422
+ from: PublicKey | {
423
+ x: Field | bigint;
424
+ isOdd: Bool | boolean;
425
+ };
426
+ amount: bigint | Types.UInt64;
427
+ }) => {
428
+ from: PublicKey;
429
+ amount: Types.UInt64;
430
+ };
431
+ toInput: (x: {
432
+ from: PublicKey;
433
+ amount: Types.UInt64;
434
+ }) => {
435
+ fields?: Field[] | undefined;
436
+ packed?: [Field, number][] | undefined;
437
+ };
438
+ toJSON: (x: {
439
+ from: PublicKey;
440
+ amount: Types.UInt64;
441
+ }) => {
442
+ from: string;
443
+ amount: string;
444
+ };
445
+ fromJSON: (x: {
446
+ from: string;
447
+ amount: string;
448
+ }) => {
449
+ from: PublicKey;
450
+ amount: Types.UInt64;
451
+ };
452
+ empty: () => {
453
+ from: PublicKey;
454
+ amount: Types.UInt64;
455
+ };
456
+ };
457
+ export declare class BurnEvent extends BurnEvent_base {
458
+ }
459
+ declare const BalanceChangeEvent_base: (new (value: {
460
+ address: PublicKey;
461
+ amount: Int64;
462
+ }) => {
463
+ address: PublicKey;
464
+ amount: Int64;
465
+ }) & {
466
+ _isStruct: true;
467
+ } & Omit<import("node_modules/o1js/dist/node/lib/provable/types/provable-intf.js").Provable<{
468
+ address: PublicKey;
469
+ amount: Int64;
470
+ }, {
471
+ address: {
472
+ x: bigint;
473
+ isOdd: boolean;
474
+ };
475
+ amount: any;
476
+ }>, "fromFields"> & {
477
+ fromFields: (fields: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[]) => {
478
+ address: PublicKey;
479
+ amount: Int64;
480
+ };
481
+ } & {
482
+ fromValue: (value: {
483
+ address: PublicKey | {
484
+ x: Field | bigint;
485
+ isOdd: Bool | boolean;
486
+ };
487
+ amount: any;
488
+ }) => {
489
+ address: PublicKey;
490
+ amount: Int64;
491
+ };
492
+ toInput: (x: {
493
+ address: PublicKey;
494
+ amount: Int64;
495
+ }) => {
496
+ fields?: Field[] | undefined;
497
+ packed?: [Field, number][] | undefined;
498
+ };
499
+ toJSON: (x: {
500
+ address: PublicKey;
501
+ amount: Int64;
502
+ }) => {
503
+ address: string;
504
+ amount: any;
505
+ };
506
+ fromJSON: (x: {
507
+ address: string;
508
+ amount: any;
509
+ }) => {
510
+ address: PublicKey;
511
+ amount: Int64;
512
+ };
513
+ empty: () => {
514
+ address: PublicKey;
515
+ amount: Int64;
516
+ };
517
+ };
518
+ export declare class BalanceChangeEvent extends BalanceChangeEvent_base {
519
+ }
520
+ export {};