11/**
22 * Include in this file all the exports that should be part of the public API.
33 */
4- export { TupleN } from './lib/util/types.js' ;
5- export type { ProvablePure } from './lib/provable/types/provable-intf.js' ;
6- export { Ledger , initializeBindings } from './bindings.js' ;
7- export { Field , Bool , Group , Scalar } from './lib/provable/wrapped.js' ;
4+ export { initializeBindings , Ledger } from './bindings.js' ;
5+ export { createForeignCurve , ForeignCurve , toPoint } from './lib/provable/crypto/foreign-curve.js' ;
6+ export type { FlexiblePoint } from './lib/provable/crypto/foreign-curve.js' ;
7+ export { createEcdsa , EcdsaSignature } from './lib/provable/crypto/foreign-ecdsa.js' ;
8+ export { Hash } from './lib/provable/crypto/hash.js' ;
9+ export { Keccak } from './lib/provable/crypto/keccak.js' ;
10+ export { Poseidon , ProvableHashable , TokenSymbol } from './lib/provable/crypto/poseidon.js' ;
811export {
9- createForeignField ,
10- ForeignField ,
1112 AlmostForeignField ,
1213 CanonicalForeignField ,
14+ createForeignField ,
15+ ForeignField ,
1316} from './lib/provable/foreign-field.js' ;
14- export { createForeignCurve , ForeignCurve , toPoint } from './lib/provable/crypto/foreign-curve.js' ;
15- export type { FlexiblePoint } from './lib/provable/crypto/foreign-curve.js' ;
16- export { createEcdsa , EcdsaSignature } from './lib/provable/crypto/foreign-ecdsa.js' ;
1717export { ScalarField } from './lib/provable/scalar-field.js' ;
18- export { Poseidon , TokenSymbol , ProvableHashable } from './lib/provable/crypto/poseidon .js' ;
19- export { Keccak } from './lib/provable/crypto/keccak .js' ;
20- export { Hash } from './lib/provable/crypto/hash .js' ;
18+ export type { ProvablePure } from './lib/provable/types/provable-intf .js' ;
19+ export { Bool , Field , Group , Scalar } from './lib/provable/wrapped .js' ;
20+ export { TupleN } from './lib/util/types .js' ;
2121
2222export { assert } from './lib/provable/gadgets/common.js' ;
2323
2424export * from './lib/provable/crypto/signature.js' ;
2525export type {
26- ProvableExtended ,
2726 FlexibleProvable ,
2827 FlexibleProvablePure ,
2928 InferProvable ,
29+ ProvableExtended ,
3030} from './lib/provable/types/struct.js' ;
3131
3232export { provableFromClass } from './lib/provable/types/provable-derivers.js' ;
3333export type { ProvablePureExtended } from './lib/provable/types/struct.js' ;
3434
35- export { From , InferValue , InferJson , IsPure } from './bindings/lib/provable-generic.js' ;
36- export { ProvableType } from './lib/provable/types/provable-intf.js' ;
35+ export { From , InferJson , InferValue , IsPure } from './bindings/lib/provable-generic.js' ;
36+ export { Types } from './bindings/mina-transaction/v1/types.js' ;
37+ export { Circuit , circuitMain , Keypair , public_ } from './lib/proof-system/circuit.js' ;
38+ export { DynamicArray } from './lib/provable/dynamic-array.js' ;
39+ export { Gadgets } from './lib/provable/gadgets/gadgets.js' ;
40+ export { RuntimeTable } from './lib/provable/gadgets/runtime-table.js' ;
41+ export { Int64 , Sign , UInt32 , UInt64 , UInt8 } from './lib/provable/int.js' ;
42+ export { Hashed , Packed } from './lib/provable/packed.js' ;
43+ export { Provable } from './lib/provable/provable.js' ;
3744export { provable , provablePure } from './lib/provable/types/provable-derivers.js' ;
45+ export { ProvableType } from './lib/provable/types/provable-intf.js' ;
3846export { Struct } from './lib/provable/types/struct.js' ;
3947export { Unconstrained } from './lib/provable/types/unconstrained.js' ;
40- export { Provable } from './lib/provable/provable.js' ;
41- export { Circuit , Keypair , public_ , circuitMain } from './lib/proof-system/circuit.js' ;
42- export { UInt32 , UInt64 , Int64 , Sign , UInt8 } from './lib/provable/int.js' ;
4348export { Bytes , FlexibleBytes } from './lib/provable/wrapped-classes.js' ;
44- export { Packed , Hashed } from './lib/provable/packed.js' ;
45- export { Gadgets } from './lib/provable/gadgets/gadgets.js' ;
46- export { RuntimeTable } from './lib/provable/gadgets/runtime-table.js' ;
47- export { Types } from './bindings/mina-transaction/v1/types.js' ;
48- export { DynamicArray } from './lib/provable/dynamic-array.js' ;
4949
5050export { MerkleList , MerkleListIterator } from './lib/provable/merkle-list.js' ;
51+ export { Option } from './lib/provable/option.js' ;
5152import {
5253 IndexedMerkleMap as IndexedMerkleMap_ ,
5354 IndexedMerkleMapBase ,
5455} from './lib/provable/merkle-tree-indexed.js' ;
5556export let IndexedMerkleMap = IndexedMerkleMap_ ;
5657export type IndexedMerkleMap = IndexedMerkleMapBase ;
57- export { Option } from './lib/provable/option.js' ;
5858
59+ export { Reducer } from './lib/mina/v1/actions/reducer.js' ;
5960export * as Mina from './lib/mina/v1/mina.js' ;
61+ export { declareState , state , State } from './lib/mina/v1/state.js' ;
6062export {
6163 Transaction ,
62- type TransactionPromise ,
63- type PendingTransaction ,
6464 type IncludedTransaction ,
65- type RejectedTransaction ,
65+ type PendingTransaction ,
6666 type PendingTransactionPromise ,
67+ type RejectedTransaction ,
68+ type TransactionPromise ,
6769} from './lib/mina/v1/transaction.js' ;
70+ export { declareMethods , method , SmartContract } from './lib/mina/v1/zkapp.js' ;
6871export type { DeployArgs } from './lib/mina/v1/zkapp.js' ;
69- export { SmartContract , method , declareMethods } from './lib/mina/v1/zkapp.js' ;
70- export { Reducer } from './lib/mina/v1/actions/reducer.js' ;
71- export { state , State , declareState } from './lib/mina/v1/state.js' ;
7272
73- export type { JsonProof } from './lib/proof-system/zkprogram.js' ;
74- export { SelfProof , verify , Empty , Undefined , Void } from './lib/proof-system/zkprogram.js' ;
75- export { VerificationKey } from './lib/proof-system/verification-key.js' ;
76- export { type ProofBase , Proof , DynamicProof } from './lib/proof-system/proof.js' ;
77- export { FeatureFlags } from './lib/proof-system/feature-flags.js' ;
7873export { Cache , CacheHeader } from './lib/proof-system/cache.js' ;
74+ export { FeatureFlags } from './lib/proof-system/feature-flags.js' ;
75+ export { DynamicProof , Proof , type ProofBase } from './lib/proof-system/proof.js' ;
76+ export { VerificationKey } from './lib/proof-system/verification-key.js' ;
77+ export { Empty , SelfProof , Undefined , verify , Void } from './lib/proof-system/zkprogram.js' ;
78+ export type { JsonProof } from './lib/proof-system/zkprogram.js' ;
7979
80- export { Account } from './lib/mina/v1/account.js' ;
8180export {
82- TokenId ,
8381 AccountUpdate ,
84- Permissions ,
85- ZkappPublicInput ,
86- TransactionVersion ,
8782 AccountUpdateForest ,
8883 AccountUpdateTree ,
84+ Permissions ,
85+ TokenId ,
86+ TransactionVersion ,
87+ ZkappPublicInput ,
8988} from './lib/mina/v1/account-update.js' ;
89+ export { Account } from './lib/mina/v1/account.js' ;
9090
9191export { TokenAccountUpdateIterator } from './lib/mina/v1/token/forest-iterator.js' ;
9292export { TokenContract } from './lib/mina/v1/token/token-contract.js' ;
9393
94- export type { TransactionStatus } from './lib/mina/v1/graphql .js' ;
94+ export * as Encoding from './bindings/ lib/encoding .js' ;
9595export {
96+ addCachedAccount ,
97+ checkZkappTransaction ,
9698 fetchAccount ,
99+ fetchEvents ,
97100 fetchLastBlock ,
98101 fetchTransactionStatus ,
99- checkZkappTransaction ,
100- fetchEvents ,
101- addCachedAccount ,
102+ Lightnet ,
103+ sendZkapp ,
104+ setArchiveGraphqlEndpoint ,
102105 setGraphqlEndpoint ,
103106 setGraphqlEndpoints ,
104- setArchiveGraphqlEndpoint ,
105- sendZkapp ,
106- Lightnet ,
107107} from './lib/mina/v1/fetch.js' ;
108+ export type { TransactionStatus } from './lib/mina/v1/graphql.js' ;
108109export * as Encryption from './lib/provable/crypto/encryption.js' ;
109- export * as Encoding from './bindings/lib/encoding.js' ;
110- export { Character , CircuitString } from './lib/provable/string.js' ;
111- export { MerkleTree , MerkleWitness } from './lib/provable/merkle-tree.js' ;
112110export { MerkleMap , MerkleMapWitness } from './lib/provable/merkle-map.js' ;
111+ export { MerkleTree , MerkleWitness } from './lib/provable/merkle-tree.js' ;
112+ export { Character , CircuitString } from './lib/provable/string.js' ;
113113
114114export { Nullifier } from './lib/provable/crypto/nullifier.js' ;
115115
@@ -120,20 +120,25 @@ export { Crypto } from './lib/provable/crypto/crypto.js';
120120export type { NetworkId } from './mina-signer/mina-signer.js' ;
121121
122122export { setNumberOfWorkers } from './lib/proof-system/workers.js' ;
123+ export { Experimental } ;
123124
124125// experimental APIs
125- import { memoizeWitness } from './lib/provable/provable.js' ;
126- import * as OffchainState_ from './lib/mina/v1/actions/offchain-state.js' ;
127126import * as BatchReducer_ from './lib/mina/v1/actions/batch-reducer.js' ;
128127import { Actionable } from './lib/mina/v1/actions/offchain-state-serialization.js' ;
129- import { InferProvable } from './lib/provable/types/struct .js' ;
128+ import * as OffchainState_ from './lib/mina/v1/actions/offchain-state .js' ;
130129import { Recursive as Recursive_ } from './lib/proof-system/recursive.js' ;
131130import {
132- ProvableBigInt as ProvableBigInt_ ,
131+ KimchiJsonProof as KimchiJsonProof_ ,
132+ KimchiProof as KimchiProof_ ,
133+ KimchiVerificationKey as KimchiVerificationKey_ ,
134+ ZkFunction as ZkFunction_ ,
135+ } from './lib/proof-system/zkfunction.js' ;
136+ import {
133137 createProvableBigInt as createProvableBigInt_ ,
138+ ProvableBigInt as ProvableBigInt_ ,
134139} from './lib/provable/bigint.js' ;
135- import { ZkFunction as ZkFunction_ } from './lib/proof-system/zkfunction .js' ;
136- export { Experimental } ;
140+ import { memoizeWitness } from './lib/provable/provable .js' ;
141+ import { InferProvable } from './lib/provable/types/struct.js' ;
137142
138143import * as V2_ from './lib/mina/v2/index.js' ;
139144import { Field } from './lib/provable/wrapped.js' ;
@@ -156,15 +161,15 @@ namespace Experimental {
156161 export type MinaProgramMethodReturn <
157162 State extends V2_ . StateLayout = 'GenericState' ,
158163 Event = Field [ ] ,
159- Action = Field [ ]
164+ Action = Field [ ] ,
160165 > = V2_ . MinaProgramMethodReturn < State , Event , Action > ;
161166 export type StateDefinition < State extends V2_ . StateLayout > = V2_ . StateDefinition < State > ;
162167 export type ZkappCommandAuthorizationEnvironment = V2_ . ZkappCommandAuthorizationEnvironment ;
163168 export type MinaProgram <
164169 State extends StateLayout ,
165170 Event ,
166171 Action ,
167- MethodPrivateInputs extends { [ key : string ] : V2_ . ProvableTuple }
172+ MethodPrivateInputs extends { [ key : string ] : V2_ . ProvableTuple } ,
168173 > = V2_ . MinaProgram < State , Event , Action , MethodPrivateInputs > ;
169174 export type DynamicProvable < P > = V2_ . DynamicProvable < P > ;
170175 }
@@ -177,6 +182,12 @@ namespace Experimental {
177182 export let createProvableBigInt = createProvableBigInt_ ;
178183
179184 export let ZkFunction = ZkFunction_ ;
185+ export type KimchiProof = KimchiProof_ ;
186+ export type KimchiVerificationKey = KimchiVerificationKey_ ;
187+ export let KimchiProof = KimchiProof_ ;
188+ export let KimchiVerificationKey = KimchiVerificationKey_ ;
189+
190+ export type KimchiJsonProof = KimchiJsonProof_ ;
180191
181192 // offchain state
182193 export let OffchainState = OffchainState_ . OffchainState ;
@@ -216,7 +227,7 @@ namespace Experimental {
216227 export class BatchReducer <
217228 ActionType extends Actionable < any > ,
218229 BatchSize extends number = number ,
219- Action = InferProvable < ActionType >
230+ Action = InferProvable < ActionType > ,
220231 > extends BatchReducer_ . BatchReducer < ActionType , BatchSize , Action > { }
221232
222233 /**
0 commit comments