|
1 | | -import { Bool, Field } from '../../provable/wrapped.js'; |
2 | | -import { circuitValueEquals, cloneCircuitValue } from '../../provable/types/struct.js'; |
3 | | -import { Provable } from '../../provable/provable.js'; |
4 | | -import { activeInstance as Mina } from './mina-instance.js'; |
5 | | -import type { AccountUpdate } from './account-update.js'; |
6 | | -import { Int64, UInt32, UInt64 } from '../../provable/int.js'; |
7 | | -import { Layout } from '../../../bindings/mina-transaction/gen/v1/transaction.js'; |
8 | 1 | import { jsLayout } from '../../../bindings/mina-transaction/gen/v1/js-layout.js'; |
9 | | -import { emptyReceiptChainHash, TokenSymbol } from '../../provable/crypto/poseidon.js'; |
10 | | -import { PublicKey } from '../../provable/crypto/signature.js'; |
| 2 | +import { Layout } from '../../../bindings/mina-transaction/gen/v1/transaction.js'; |
11 | 3 | import { |
12 | 4 | ActionState, |
13 | 5 | Actions, |
14 | 6 | ZkappUri, |
15 | 7 | } from '../../../bindings/mina-transaction/v1/transaction-leaves.js'; |
16 | 8 | import type { Types } from '../../../bindings/mina-transaction/v1/types.js'; |
17 | | -import type { Permissions } from './account-update.js'; |
18 | | -import { ZkappStateLength } from './mina-instance.js'; |
| 9 | +import { TokenSymbol, emptyReceiptChainHash } from '../../provable/crypto/poseidon.js'; |
| 10 | +import { PublicKey } from '../../provable/crypto/signature.js'; |
| 11 | +import { Int64, UInt32, UInt64 } from '../../provable/int.js'; |
| 12 | +import { Provable } from '../../provable/provable.js'; |
| 13 | +import { circuitValueEquals, cloneCircuitValue } from '../../provable/types/struct.js'; |
| 14 | +import { Bool, Field } from '../../provable/wrapped.js'; |
19 | 15 | import { assertInternal } from '../../util/errors.js'; |
| 16 | +import type { AccountUpdate, Permissions } from './account-update.js'; |
| 17 | +import { ZkappConstants } from './constants.js'; |
| 18 | +import { activeInstance as Mina } from './mina-instance.js'; |
20 | 19 |
|
21 | 20 | export { |
22 | | - preconditions, |
23 | 21 | Account, |
24 | | - Network, |
| 22 | + AccountValue, |
| 23 | + ClosedInterval, |
25 | 24 | CurrentSlot, |
| 25 | + Network, |
| 26 | + NetworkValue, |
| 27 | + OrIgnore, |
| 28 | + Preconditions, |
26 | 29 | assertPreconditionInvariants, |
27 | 30 | cleanPreconditionsCache, |
28 | 31 | ensureConsistentPrecondition, |
29 | | - AccountValue, |
30 | | - NetworkValue, |
31 | 32 | getAccountPreconditions, |
32 | | - Preconditions, |
33 | | - OrIgnore, |
34 | | - ClosedInterval, |
| 33 | + preconditions, |
35 | 34 | }; |
36 | 35 |
|
37 | 36 | type AccountUpdateBody = Types.AccountUpdate['body']; |
@@ -104,7 +103,7 @@ type AccountPrecondition = Preconditions['account']; |
104 | 103 | const AccountPrecondition = { |
105 | 104 | ignoreAll(): AccountPrecondition { |
106 | 105 | let appState: Array<OrIgnore<Field>> = []; |
107 | | - for (let i = 0; i < ZkappStateLength; ++i) { |
| 106 | + for (let i = 0; i < ZkappConstants.MAX_ZKAPP_STATE_FIELDS; ++i) { |
108 | 107 | appState.push(ignore(Field(0))); |
109 | 108 | } |
110 | 109 | return { |
|
0 commit comments