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