|
1 | 1 | import { Test } from '../../../bindings.js'; |
2 | | -import { Field } from '../../provable/wrapped.js'; |
3 | | -import { UInt64 } from '../../provable/int.js'; |
4 | | -import { PublicKey } from '../../provable/crypto/signature.js'; |
5 | | -import { TokenId, Authorization } from './account-update.js'; |
6 | | -import * as Fetch from './fetch.js'; |
7 | | -import { humanizeErrors, invalidTransactionError } from './errors.js'; |
8 | 2 | import { Types } from '../../../bindings/mina-transaction/v1/types.js'; |
9 | | -import { Account } from './account.js'; |
10 | 3 | import { NetworkId } from '../../../mina-signer/src/types.js'; |
11 | | -import { currentTransaction } from './transaction-context.js'; |
| 4 | +import { PublicKey } from '../../provable/crypto/signature.js'; |
| 5 | +import { UInt64 } from '../../provable/int.js'; |
| 6 | +import { Field } from '../../provable/wrapped.js'; |
| 7 | +import { Authorization, TokenId } from './account-update.js'; |
| 8 | +import { Account } from './account.js'; |
| 9 | +import { humanizeErrors, invalidTransactionError } from './errors.js'; |
| 10 | +import * as Fetch from './fetch.js'; |
| 11 | +import { type EventActionFilterOptions } from './graphql.js'; |
| 12 | +import { LocalBlockchain, TestPublicKey } from './local-blockchain.js'; |
12 | 13 | import { |
13 | | - type FeePayerSpec, |
14 | | - type ActionStates, |
15 | | - type NetworkConstants, |
16 | | - activeInstance, |
17 | | - setActiveInstance, |
18 | 14 | Mina, |
19 | | - defaultNetworkConstants, |
| 15 | + activeInstance, |
20 | 16 | currentSlot, |
| 17 | + defaultNetworkConstants, |
| 18 | + fetchActions, |
| 19 | + fetchEvents, |
21 | 20 | getAccount, |
22 | | - hasAccount, |
| 21 | + getActions, |
23 | 22 | getBalance, |
24 | | - getNetworkId, |
25 | 23 | getNetworkConstants, |
| 24 | + getNetworkId, |
26 | 25 | getNetworkState, |
27 | | - fetchEvents, |
28 | | - fetchActions, |
29 | | - getActions, |
30 | 26 | getProofsEnabled, |
| 27 | + hasAccount, |
| 28 | + setActiveInstance, |
| 29 | + type ActionStates, |
| 30 | + type FeePayerSpec, |
| 31 | + type NetworkConstants, |
31 | 32 | } from './mina-instance.js'; |
32 | | -import { type EventActionFilterOptions } from './graphql.js'; |
| 33 | +import { currentTransaction } from './transaction-context.js'; |
| 34 | +import { |
| 35 | + defaultNetworkState, |
| 36 | + filterGroups, |
| 37 | + reportGetAccountError, |
| 38 | + verifyTransactionLimits, |
| 39 | +} from './transaction-validation.js'; |
33 | 40 | import { |
34 | 41 | Transaction, |
35 | | - type PendingTransaction, |
36 | | - type IncludedTransaction, |
37 | | - type RejectedTransaction, |
38 | | - type PendingTransactionStatus, |
39 | | - type PendingTransactionPromise, |
| 42 | + createIncludedTransaction, |
| 43 | + createRejectedTransaction, |
40 | 44 | createTransaction, |
| 45 | + toPendingTransactionPromise, |
41 | 46 | toTransactionPromise, |
42 | 47 | transaction, |
43 | | - createRejectedTransaction, |
44 | | - createIncludedTransaction, |
45 | | - toPendingTransactionPromise, |
| 48 | + type IncludedTransaction, |
| 49 | + type PendingTransaction, |
| 50 | + type PendingTransactionPromise, |
| 51 | + type PendingTransactionStatus, |
| 52 | + type RejectedTransaction, |
46 | 53 | } from './transaction.js'; |
47 | | -import { |
48 | | - reportGetAccountError, |
49 | | - verifyTransactionLimits, |
50 | | - defaultNetworkState, |
51 | | - filterGroups, |
52 | | -} from './transaction-validation.js'; |
53 | | -import { LocalBlockchain, TestPublicKey } from './local-blockchain.js'; |
54 | 54 |
|
55 | 55 | export { |
| 56 | + ActionStates, |
| 57 | + FeePayerSpec, |
56 | 58 | LocalBlockchain, |
57 | 59 | Network, |
58 | | - currentTransaction, |
59 | | - Transaction, |
60 | | - type PendingTransaction, |
61 | | - type IncludedTransaction, |
62 | | - type RejectedTransaction, |
63 | | - type PendingTransactionStatus, |
64 | | - type PendingTransactionPromise, |
65 | 60 | TestPublicKey, |
| 61 | + Transaction, |
66 | 62 | activeInstance, |
67 | | - setActiveInstance, |
68 | | - transaction, |
69 | | - sender, |
70 | 63 | currentSlot, |
| 64 | + currentTransaction, |
| 65 | + faucet, |
| 66 | + fetchActions, |
| 67 | + fetchEvents, |
| 68 | + // for internal testing only |
| 69 | + filterGroups, |
71 | 70 | getAccount, |
72 | | - hasAccount, |
| 71 | + getActions, |
73 | 72 | getBalance, |
74 | | - getNetworkId, |
75 | 73 | getNetworkConstants, |
| 74 | + getNetworkId, |
76 | 75 | getNetworkState, |
77 | | - fetchEvents, |
78 | | - fetchActions, |
79 | | - getActions, |
80 | | - FeePayerSpec, |
81 | | - ActionStates, |
82 | | - faucet, |
83 | | - waitForFunding, |
84 | 76 | getProofsEnabled, |
85 | | - // for internal testing only |
86 | | - filterGroups, |
| 77 | + hasAccount, |
| 78 | + sender, |
| 79 | + setActiveInstance, |
| 80 | + transaction, |
| 81 | + waitForFunding, |
| 82 | + type IncludedTransaction, |
87 | 83 | type NetworkConstants, |
| 84 | + type PendingTransaction, |
| 85 | + type PendingTransactionPromise, |
| 86 | + type PendingTransactionStatus, |
| 87 | + type RejectedTransaction, |
88 | 88 | }; |
89 | 89 |
|
90 | 90 | // patch active instance so that we can still create basic transactions without giving Mina network details |
@@ -254,6 +254,7 @@ function Network( |
254 | 254 | errors: updatedErrors, |
255 | 255 | transaction: txn.transaction, |
256 | 256 | setFee: txn.setFee, |
| 257 | + setFeePerAccountUpdate: txn.setFeePerAccountUpdate, |
257 | 258 | hash, |
258 | 259 | toJSON: txn.toJSON, |
259 | 260 | toPretty: txn.toPretty, |
|
0 commit comments