@silvana-one/token 0.2.4 → 0.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/node/BondingCurveAdmin.d.ts +25 -22
- package/dist/node/FungibleToken.d.ts +16 -10
- package/dist/node/FungibleTokenAdvancedAdmin.d.ts +1 -1
- package/dist/node/FungibleTokenContract.d.ts +10 -7
- package/dist/node/bid.d.ts +1 -1
- package/dist/node/claim.d.ts +1 -1
- package/dist/node/div.d.ts +2 -2
- package/dist/node/offer.d.ts +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/tsconfig.web.tsbuildinfo +1 -1
- package/dist/web/BondingCurveAdmin.d.ts +25 -22
- package/dist/web/FungibleToken.d.ts +16 -10
- package/dist/web/FungibleTokenAdvancedAdmin.d.ts +1 -1
- package/dist/web/FungibleTokenContract.d.ts +10 -7
- package/dist/web/bid.d.ts +1 -1
- package/dist/web/claim.d.ts +1 -1
- package/dist/web/div.d.ts +2 -2
- package/dist/web/offer.d.ts +1 -1
- package/package.json +5 -5
|
@@ -60,9 +60,9 @@ declare const FungibleToken: {
|
|
|
60
60
|
getUnconstrained(): import("o1js").PublicKey;
|
|
61
61
|
getAndRequireSignature(): import("o1js").PublicKey;
|
|
62
62
|
};
|
|
63
|
-
readonly account: import("node_modules/o1js/dist/node/lib/mina/precondition.js").Account;
|
|
64
|
-
readonly network: import("node_modules/o1js/dist/node/lib/mina/precondition.js").Network;
|
|
65
|
-
readonly currentSlot: import("node_modules/o1js/dist/node/lib/mina/precondition.js").CurrentSlot;
|
|
63
|
+
readonly account: import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").Account;
|
|
64
|
+
readonly network: import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").Network;
|
|
65
|
+
readonly currentSlot: import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").CurrentSlot;
|
|
66
66
|
approve(update: import("o1js").AccountUpdate | import("o1js").AccountUpdateTree | import("o1js").AccountUpdateForest): void;
|
|
67
67
|
send(args: {
|
|
68
68
|
to: import("o1js").PublicKey | import("o1js").AccountUpdate | import("o1js").SmartContract;
|
|
@@ -98,9 +98,9 @@ declare const FungibleToken: {
|
|
|
98
98
|
rows: number;
|
|
99
99
|
digest: string;
|
|
100
100
|
gates: import("node_modules/o1js/dist/node/snarky.js").Gate[];
|
|
101
|
+
proofs: import("node_modules/o1js/dist/node/lib/proof-system/proof.js").ProofClass[];
|
|
101
102
|
}>;
|
|
102
103
|
_provers?: import("node_modules/o1js/dist/node/snarky.js").Pickles.Prover[];
|
|
103
|
-
_maxProofsVerified?: 0 | 1 | 2;
|
|
104
104
|
_verificationKey?: {
|
|
105
105
|
data: string;
|
|
106
106
|
hash: import("o1js").Field;
|
|
@@ -119,6 +119,7 @@ declare const FungibleToken: {
|
|
|
119
119
|
proof: unknown;
|
|
120
120
|
maxProofsVerified: 0 | 2 | 1;
|
|
121
121
|
shouldVerify: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
|
|
122
|
+
declare(): boolean;
|
|
122
123
|
toJSON(): import("o1js").JsonProof;
|
|
123
124
|
publicFields(): {
|
|
124
125
|
input: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
|
|
@@ -184,7 +185,7 @@ declare const FungibleToken: {
|
|
|
184
185
|
_proofFromBase64(proofString: string, maxProofsVerified: 0 | 2 | 1): unknown;
|
|
185
186
|
_proofToBase64(proof: unknown, maxProofsVerified: 0 | 2 | 1): string;
|
|
186
187
|
};
|
|
187
|
-
compile({ cache, forceRecompile
|
|
188
|
+
compile({ cache, forceRecompile }?: {
|
|
188
189
|
cache?: import("o1js").Cache | undefined;
|
|
189
190
|
forceRecompile?: boolean | undefined;
|
|
190
191
|
}): Promise<{
|
|
@@ -196,6 +197,7 @@ declare const FungibleToken: {
|
|
|
196
197
|
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>;
|
|
197
198
|
}>;
|
|
198
199
|
digest(): Promise<string>;
|
|
200
|
+
getMaxProofsVerified(): Promise<0 | 2 | 1>;
|
|
199
201
|
runOutsideCircuit(run: () => void): void;
|
|
200
202
|
analyzeMethods({ printSummary }?: {
|
|
201
203
|
printSummary?: boolean | undefined;
|
|
@@ -204,6 +206,7 @@ declare const FungibleToken: {
|
|
|
204
206
|
rows: number;
|
|
205
207
|
digest: string;
|
|
206
208
|
gates: import("node_modules/o1js/dist/node/snarky.js").Gate[];
|
|
209
|
+
proofs: import("node_modules/o1js/dist/node/lib/proof-system/proof.js").ProofClass[];
|
|
207
210
|
}>>;
|
|
208
211
|
};
|
|
209
212
|
declare const AdvancedFungibleToken: {
|
|
@@ -266,9 +269,9 @@ declare const AdvancedFungibleToken: {
|
|
|
266
269
|
getUnconstrained(): import("o1js").PublicKey;
|
|
267
270
|
getAndRequireSignature(): import("o1js").PublicKey;
|
|
268
271
|
};
|
|
269
|
-
readonly account: import("node_modules/o1js/dist/node/lib/mina/precondition.js").Account;
|
|
270
|
-
readonly network: import("node_modules/o1js/dist/node/lib/mina/precondition.js").Network;
|
|
271
|
-
readonly currentSlot: import("node_modules/o1js/dist/node/lib/mina/precondition.js").CurrentSlot;
|
|
272
|
+
readonly account: import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").Account;
|
|
273
|
+
readonly network: import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").Network;
|
|
274
|
+
readonly currentSlot: import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").CurrentSlot;
|
|
272
275
|
approve(update: import("o1js").AccountUpdate | import("o1js").AccountUpdateTree | import("o1js").AccountUpdateForest): void;
|
|
273
276
|
send(args: {
|
|
274
277
|
to: import("o1js").PublicKey | import("o1js").AccountUpdate | import("o1js").SmartContract;
|
|
@@ -304,9 +307,9 @@ declare const AdvancedFungibleToken: {
|
|
|
304
307
|
rows: number;
|
|
305
308
|
digest: string;
|
|
306
309
|
gates: import("node_modules/o1js/dist/node/snarky.js").Gate[];
|
|
310
|
+
proofs: import("node_modules/o1js/dist/node/lib/proof-system/proof.js").ProofClass[];
|
|
307
311
|
}>;
|
|
308
312
|
_provers?: import("node_modules/o1js/dist/node/snarky.js").Pickles.Prover[];
|
|
309
|
-
_maxProofsVerified?: 0 | 1 | 2;
|
|
310
313
|
_verificationKey?: {
|
|
311
314
|
data: string;
|
|
312
315
|
hash: import("o1js").Field;
|
|
@@ -325,6 +328,7 @@ declare const AdvancedFungibleToken: {
|
|
|
325
328
|
proof: unknown;
|
|
326
329
|
maxProofsVerified: 0 | 2 | 1;
|
|
327
330
|
shouldVerify: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
|
|
331
|
+
declare(): boolean;
|
|
328
332
|
toJSON(): import("o1js").JsonProof;
|
|
329
333
|
publicFields(): {
|
|
330
334
|
input: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
|
|
@@ -390,7 +394,7 @@ declare const AdvancedFungibleToken: {
|
|
|
390
394
|
_proofFromBase64(proofString: string, maxProofsVerified: 0 | 2 | 1): unknown;
|
|
391
395
|
_proofToBase64(proof: unknown, maxProofsVerified: 0 | 2 | 1): string;
|
|
392
396
|
};
|
|
393
|
-
compile({ cache, forceRecompile
|
|
397
|
+
compile({ cache, forceRecompile }?: {
|
|
394
398
|
cache?: import("o1js").Cache | undefined;
|
|
395
399
|
forceRecompile?: boolean | undefined;
|
|
396
400
|
}): Promise<{
|
|
@@ -402,6 +406,7 @@ declare const AdvancedFungibleToken: {
|
|
|
402
406
|
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>;
|
|
403
407
|
}>;
|
|
404
408
|
digest(): Promise<string>;
|
|
409
|
+
getMaxProofsVerified(): Promise<0 | 2 | 1>;
|
|
405
410
|
runOutsideCircuit(run: () => void): void;
|
|
406
411
|
analyzeMethods({ printSummary }?: {
|
|
407
412
|
printSummary?: boolean | undefined;
|
|
@@ -410,5 +415,6 @@ declare const AdvancedFungibleToken: {
|
|
|
410
415
|
rows: number;
|
|
411
416
|
digest: string;
|
|
412
417
|
gates: import("node_modules/o1js/dist/node/snarky.js").Gate[];
|
|
418
|
+
proofs: import("node_modules/o1js/dist/node/lib/proof-system/proof.js").ProofClass[];
|
|
413
419
|
}>>;
|
|
414
420
|
};
|
|
@@ -27,7 +27,7 @@ declare const AdvancedAdminData_base: (new (value: {
|
|
|
27
27
|
};
|
|
28
28
|
} & {
|
|
29
29
|
fromValue: (value: {
|
|
30
|
-
totalSupply: bigint | UInt64;
|
|
30
|
+
totalSupply: number | bigint | UInt64;
|
|
31
31
|
requireAdminSignatureForMint: boolean | import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
|
|
32
32
|
anyoneCanMint: boolean | import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
|
|
33
33
|
}) => {
|
|
@@ -104,9 +104,9 @@ export declare function FungibleTokenContract(adminContract: FungibleTokenAdminC
|
|
|
104
104
|
getUnconstrained(): PublicKey;
|
|
105
105
|
getAndRequireSignature(): PublicKey;
|
|
106
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;
|
|
107
|
+
readonly account: import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").Account;
|
|
108
|
+
readonly network: import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").Network;
|
|
109
|
+
readonly currentSlot: import("node_modules/o1js/dist/node/lib/mina/v1/precondition.js").CurrentSlot;
|
|
110
110
|
approve(update: AccountUpdate | import("o1js").AccountUpdateTree | AccountUpdateForest): void;
|
|
111
111
|
send(args: {
|
|
112
112
|
to: PublicKey | AccountUpdate | SmartContract;
|
|
@@ -142,9 +142,9 @@ export declare function FungibleTokenContract(adminContract: FungibleTokenAdminC
|
|
|
142
142
|
rows: number;
|
|
143
143
|
digest: string;
|
|
144
144
|
gates: import("node_modules/o1js/dist/node/snarky.js").Gate[];
|
|
145
|
+
proofs: import("node_modules/o1js/dist/node/lib/proof-system/proof.js").ProofClass[];
|
|
145
146
|
}>;
|
|
146
147
|
_provers?: import("node_modules/o1js/dist/node/snarky.js").Pickles.Prover[];
|
|
147
|
-
_maxProofsVerified?: 0 | 1 | 2;
|
|
148
148
|
_verificationKey?: {
|
|
149
149
|
data: string;
|
|
150
150
|
hash: Field;
|
|
@@ -163,6 +163,7 @@ export declare function FungibleTokenContract(adminContract: FungibleTokenAdminC
|
|
|
163
163
|
proof: unknown;
|
|
164
164
|
maxProofsVerified: 0 | 2 | 1;
|
|
165
165
|
shouldVerify: import("node_modules/o1js/dist/node/lib/provable/bool.js").Bool;
|
|
166
|
+
declare(): boolean;
|
|
166
167
|
toJSON(): import("o1js").JsonProof;
|
|
167
168
|
publicFields(): {
|
|
168
169
|
input: import("node_modules/o1js/dist/node/lib/provable/field.js").Field[];
|
|
@@ -228,7 +229,7 @@ export declare function FungibleTokenContract(adminContract: FungibleTokenAdminC
|
|
|
228
229
|
_proofFromBase64(proofString: string, maxProofsVerified: 0 | 2 | 1): unknown;
|
|
229
230
|
_proofToBase64(proof: unknown, maxProofsVerified: 0 | 2 | 1): string;
|
|
230
231
|
};
|
|
231
|
-
compile({ cache, forceRecompile
|
|
232
|
+
compile({ cache, forceRecompile }?: {
|
|
232
233
|
cache?: import("o1js").Cache | undefined;
|
|
233
234
|
forceRecompile?: boolean | undefined;
|
|
234
235
|
}): Promise<{
|
|
@@ -240,6 +241,7 @@ export declare function FungibleTokenContract(adminContract: FungibleTokenAdminC
|
|
|
240
241
|
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
|
}>;
|
|
242
243
|
digest(): Promise<string>;
|
|
244
|
+
getMaxProofsVerified(): Promise<0 | 2 | 1>;
|
|
243
245
|
runOutsideCircuit(run: () => void): void;
|
|
244
246
|
analyzeMethods({ printSummary }?: {
|
|
245
247
|
printSummary?: boolean | undefined;
|
|
@@ -248,6 +250,7 @@ export declare function FungibleTokenContract(adminContract: FungibleTokenAdminC
|
|
|
248
250
|
rows: number;
|
|
249
251
|
digest: string;
|
|
250
252
|
gates: import("node_modules/o1js/dist/node/snarky.js").Gate[];
|
|
253
|
+
proofs: import("node_modules/o1js/dist/node/lib/proof-system/proof.js").ProofClass[];
|
|
251
254
|
}>>;
|
|
252
255
|
};
|
|
253
256
|
declare const SetAdminEvent_base: (new (value: {
|
|
@@ -368,7 +371,7 @@ declare const MintEvent_base: (new (value: {
|
|
|
368
371
|
x: Field | bigint;
|
|
369
372
|
isOdd: Bool | boolean;
|
|
370
373
|
};
|
|
371
|
-
amount: bigint | Types.UInt64;
|
|
374
|
+
amount: number | bigint | Types.UInt64;
|
|
372
375
|
}) => {
|
|
373
376
|
recipient: PublicKey;
|
|
374
377
|
amount: Types.UInt64;
|
|
@@ -429,7 +432,7 @@ declare const BurnEvent_base: (new (value: {
|
|
|
429
432
|
x: Field | bigint;
|
|
430
433
|
isOdd: Bool | boolean;
|
|
431
434
|
};
|
|
432
|
-
amount: bigint | Types.UInt64;
|
|
435
|
+
amount: number | bigint | Types.UInt64;
|
|
433
436
|
}) => {
|
|
434
437
|
from: PublicKey;
|
|
435
438
|
amount: Types.UInt64;
|
package/dist/web/bid.d.ts
CHANGED
package/dist/web/claim.d.ts
CHANGED
package/dist/web/div.d.ts
CHANGED
|
@@ -20,8 +20,8 @@ declare const MulDivResult_base: (new (value: {
|
|
|
20
20
|
};
|
|
21
21
|
} & {
|
|
22
22
|
fromValue: (value: {
|
|
23
|
-
result: bigint | UInt64;
|
|
24
|
-
remainder: bigint | UInt64;
|
|
23
|
+
result: number | bigint | UInt64;
|
|
24
|
+
remainder: number | bigint | UInt64;
|
|
25
25
|
}) => {
|
|
26
26
|
result: UInt64;
|
|
27
27
|
remainder: UInt64;
|
package/dist/web/offer.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silvana-one/token",
|
|
3
3
|
"description": "Silvana Fungible Token Library",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.6",
|
|
5
5
|
"author": "DFST",
|
|
6
6
|
"bugs": "https://github.com/SilvanaOne/silvana-lib/issues",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"tslib": "^2.8.1"
|
|
9
9
|
},
|
|
10
10
|
"devDependencies": {
|
|
11
|
-
"@silvana-one/api": "0.2.
|
|
12
|
-
"@silvana-one/storage": "0.2.
|
|
11
|
+
"@silvana-one/api": "0.2.6",
|
|
12
|
+
"@silvana-one/storage": "0.2.6",
|
|
13
13
|
"@types/node": "^22.13.8",
|
|
14
14
|
"esbuild": "^0.25.0",
|
|
15
15
|
"o1js": "^2.2.0",
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"license": "Apache-2.0",
|
|
48
48
|
"main": "dist/web/index.js",
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"@silvana-one/api": "0.2.
|
|
51
|
-
"@silvana-one/storage": "0.2.
|
|
50
|
+
"@silvana-one/api": "0.2.6",
|
|
51
|
+
"@silvana-one/storage": "0.2.6",
|
|
52
52
|
"o1js": "^2.2.0"
|
|
53
53
|
},
|
|
54
54
|
"publishConfig": {
|