UNPKG

o1js

Version:

TypeScript framework for zk-SNARKs and zkApps

14 lines (13 loc) 550 B
import type { AccountUpdateLayout } from './account-update.js'; import type { PublicKey } from '../../provable/crypto/signature.js'; import { Context } from '../../util/global-context.js'; export { currentTransaction, CurrentTransaction, FetchMode }; type FetchMode = 'fetch' | 'cached' | 'test'; type CurrentTransaction = { sender?: PublicKey; layout: AccountUpdateLayout; fetchMode: FetchMode; isFinalRunOutsideCircuit: boolean; numberOfRuns: 0 | 1 | undefined; }; declare let currentTransaction: Context.t<CurrentTransaction>;