@midnightntwrk/wallet-sdk-capabilities 4.0.0-rc.1 → 4.0.0
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/README.md +10 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/liveness/livenessReads.js +11 -10
- package/dist/liveness/livenessService.js +4 -5
- package/dist/proving/index.d.ts +1 -0
- package/dist/proving/index.js +1 -0
- package/dist/proving/provingService.d.ts +16 -49
- package/dist/proving/provingService.js +1 -89
- package/dist/proving/v8ProvingService.d.ts +34 -7
- package/dist/proving/v8ProvingService.js +36 -6
- package/dist/proving/v9ProvingService.d.ts +108 -0
- package/dist/proving/v9ProvingService.js +146 -0
- package/dist/proving/versionedProving.d.ts +22 -4
- package/dist/proving/versionedProving.js +28 -2
- package/dist/signatures/v8Signatures.d.ts +1 -1
- package/dist/simulation/index.d.ts +4 -6
- package/dist/simulation/index.js +4 -7
- package/dist/simulation/v8/Simulator.d.ts +1 -3
- package/dist/simulation/v8/Simulator.js +1 -3
- package/dist/simulation/v8/SimulatorState.d.ts +1 -10
- package/dist/simulation/v8/SimulatorState.js +1 -9
- package/dist/simulation/v8/index.d.ts +1 -1
- package/dist/simulation/v8/index.js +1 -1
- package/dist/simulation/v9/Simulator.d.ts +0 -2
- package/dist/simulation/v9/Simulator.js +0 -2
- package/dist/simulation/v9/SimulatorState.d.ts +0 -9
- package/dist/simulation/v9/SimulatorState.js +0 -8
- package/dist/simulation/v9/index.d.ts +1 -1
- package/dist/simulation/v9/index.js +1 -1
- package/dist/submission/submissionService.d.ts +57 -9
- package/dist/submission/submissionService.js +61 -15
- package/dist/transactionLifecycle/SnapshotFormat.d.ts +51 -0
- package/dist/transactionLifecycle/SnapshotFormat.js +120 -0
- package/dist/transactionLifecycle/index.d.ts +4 -0
- package/dist/{pendingTransactions → transactionLifecycle}/index.js +4 -2
- package/dist/transactionLifecycle/lifecycle.d.ts +402 -0
- package/dist/transactionLifecycle/lifecycle.js +407 -0
- package/dist/transactionLifecycle/lifecycleService.d.ts +448 -0
- package/dist/transactionLifecycle/lifecycleService.js +350 -0
- package/dist/transactionLifecycle/transactionTraits.d.ts +106 -0
- package/dist/transactionLifecycle/transactionTraits.js +53 -0
- package/dist/validation/blockData.d.ts +23 -4
- package/dist/validation/blockData.js +34 -10
- package/dist/validation/index.d.ts +1 -0
- package/dist/validation/index.js +1 -0
- package/dist/validation/promiseBoundary.d.ts +10 -0
- package/dist/validation/promiseBoundary.js +30 -0
- package/dist/validation/v8ValidationService.d.ts +6 -5
- package/dist/validation/v8ValidationService.js +11 -4
- package/dist/validation/v9ValidationService.d.ts +30 -0
- package/dist/validation/v9ValidationService.js +61 -0
- package/dist/validation/validationService.d.ts +54 -32
- package/dist/validation/validationService.js +29 -49
- package/dist/validation/versionedValidation.d.ts +5 -3
- package/dist/validation/versionedValidation.js +5 -3
- package/package.json +12 -12
- package/dist/pendingTransactions/index.d.ts +0 -2
- package/dist/pendingTransactions/pendingTransactions.d.ts +0 -266
- package/dist/pendingTransactions/pendingTransactions.js +0 -302
- package/dist/pendingTransactions/pendingTransactionsService.d.ts +0 -108
- package/dist/pendingTransactions/pendingTransactionsService.js +0 -186
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
// This file is part of MIDNIGHT-WALLET-SDK.
|
|
2
|
+
// Copyright (C) Midnight Foundation
|
|
3
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
// You may not use this file except in compliance with the License.
|
|
6
|
+
// You may obtain a copy of the License at
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
9
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
+
// See the License for the specific language governing permissions and
|
|
12
|
+
// limitations under the License.
|
|
13
|
+
/**
|
|
14
|
+
* Proving on ledger-v9.
|
|
15
|
+
*
|
|
16
|
+
* @remarks
|
|
17
|
+
* The ledger-v9 twin of `v8ProvingService.ts`, built on the version-neutral contracts in `provingService.ts`: obtain a
|
|
18
|
+
* proving provider, drive the transaction's own `prove` with ledger-v9's cost model, report failures as a
|
|
19
|
+
* {@link ProvingError}.
|
|
20
|
+
*/
|
|
21
|
+
import * as ledger from '@midnightntwrk/ledger-v9';
|
|
22
|
+
import { HttpProverClient, WasmProver } from '@midnightntwrk/wallet-sdk-prover-client/effect';
|
|
23
|
+
import { ClientError, ServerError, } from '@midnightntwrk/wallet-sdk-utilities/networking';
|
|
24
|
+
import { Effect, pipe } from 'effect';
|
|
25
|
+
import { ProvingError, } from './provingService.js';
|
|
26
|
+
const wrapEffectService = (effectService) => ({
|
|
27
|
+
prove: (transaction) => Effect.runPromise(effectService.prove(transaction)),
|
|
28
|
+
});
|
|
29
|
+
/**
|
|
30
|
+
* Drives a ledger-v9 transaction's proving with a low-level proving provider.
|
|
31
|
+
*
|
|
32
|
+
* @param provider The proving provider, or the reason one could not be built.
|
|
33
|
+
* @returns A backend that proves ledger-v9 transactions.
|
|
34
|
+
*/
|
|
35
|
+
export const fromV9ProvingProviderEffect = (provider) => {
|
|
36
|
+
return {
|
|
37
|
+
prove(transaction) {
|
|
38
|
+
return pipe(provider, Effect.flatMap((provider) => Effect.tryPromise({
|
|
39
|
+
try: () => transaction.prove(provider, ledger.CostModel.initialCostModel()),
|
|
40
|
+
catch: (error) => error instanceof ClientError || error instanceof ServerError
|
|
41
|
+
? error
|
|
42
|
+
: new ClientError({ message: 'Failed to prove transaction', cause: error }),
|
|
43
|
+
})), Effect.catchAll((error) => Effect.fail(new ProvingError({
|
|
44
|
+
message: error.message,
|
|
45
|
+
cause: error,
|
|
46
|
+
}))));
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* Drives a ledger-v9 transaction's proving with a low-level proving provider.
|
|
52
|
+
*
|
|
53
|
+
* @param provider The proving provider.
|
|
54
|
+
* @returns A backend that proves ledger-v9 transactions.
|
|
55
|
+
*/
|
|
56
|
+
export const fromV9ProvingProvider = (provider) => {
|
|
57
|
+
return fromV9ProvingProviderEffect(Effect.succeed(provider));
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* Proves ledger-v9 transactions at a proof server.
|
|
61
|
+
*
|
|
62
|
+
* @example
|
|
63
|
+
* ```typescript
|
|
64
|
+
* const proving = makeV9ServerProvingServiceEffect({ provingServerUrl: new URL('http://localhost:6300') });
|
|
65
|
+
* const unbound = yield* proving.prove(unprovenTransaction);
|
|
66
|
+
* ```;
|
|
67
|
+
*
|
|
68
|
+
* @param configuration The proof server to send ledger-v9 proving requests to.
|
|
69
|
+
* @returns A backend that proves ledger-v9 transactions over HTTP.
|
|
70
|
+
*/
|
|
71
|
+
export const makeV9ServerProvingServiceEffect = (configuration) => {
|
|
72
|
+
return pipe(HttpProverClient.create({
|
|
73
|
+
url: configuration.provingServerUrl,
|
|
74
|
+
}), Effect.map((client) => client.asProvingProvider()), fromV9ProvingProviderEffect);
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* Proves ledger-v9 transactions in this process.
|
|
78
|
+
*
|
|
79
|
+
* @remarks
|
|
80
|
+
* The ledger-v9 twin of `makeV8WasmProvingServiceEffect`: the same bundled prover, with ledger-v9's key material —
|
|
81
|
+
* circuit generation 10 ({@link WasmProver.makeV9KeyMaterialProvider}) — unless it is given key material of its own.
|
|
82
|
+
* @param configuration Optional key material override.
|
|
83
|
+
* @returns A backend that proves ledger-v9 transactions in-process.
|
|
84
|
+
*/
|
|
85
|
+
export const makeV9WasmProvingServiceEffect = (configuration) => {
|
|
86
|
+
return pipe(WasmProver.create({
|
|
87
|
+
keyMaterialProvider: configuration?.keyMaterialProvider ?? WasmProver.makeV9KeyMaterialProvider(),
|
|
88
|
+
}), Effect.map((prover) => prover.asProvingProvider()), fromV9ProvingProviderEffect);
|
|
89
|
+
};
|
|
90
|
+
/**
|
|
91
|
+
* Erases the proofs of ledger-v9 transactions instead of proving them, for the in-memory simulator.
|
|
92
|
+
*
|
|
93
|
+
* @example
|
|
94
|
+
* ```typescript
|
|
95
|
+
* const proving = makeV9SimulatorProvingServiceEffect();
|
|
96
|
+
* const proofErased = yield* proving.prove(unprovenTransaction);
|
|
97
|
+
* yield* simulator.submitTransaction(proofErased);
|
|
98
|
+
* ```;
|
|
99
|
+
*
|
|
100
|
+
* @returns A backend that hands back each ledger-v9 transaction proof-erased, which the simulator accepts.
|
|
101
|
+
*/
|
|
102
|
+
export const makeV9SimulatorProvingServiceEffect = () => {
|
|
103
|
+
return {
|
|
104
|
+
prove(transaction) {
|
|
105
|
+
return Effect.succeed(transaction.eraseProofs());
|
|
106
|
+
},
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
/**
|
|
110
|
+
* The promise-facing surface of {@link makeV9ServerProvingServiceEffect}.
|
|
111
|
+
*
|
|
112
|
+
* @example
|
|
113
|
+
* ```typescript
|
|
114
|
+
* const proving = makeV9ServerProvingService({ provingServerUrl: new URL('http://localhost:6300') });
|
|
115
|
+
* const unbound = await proving.prove(unprovenTransaction);
|
|
116
|
+
* ```;
|
|
117
|
+
*
|
|
118
|
+
* @param configuration The proof server to send ledger-v9 proving requests to.
|
|
119
|
+
* @returns A backend that proves ledger-v9 transactions over HTTP.
|
|
120
|
+
*/
|
|
121
|
+
export const makeV9ServerProvingService = (configuration) => wrapEffectService(makeV9ServerProvingServiceEffect(configuration));
|
|
122
|
+
/**
|
|
123
|
+
* The promise-facing surface of {@link makeV9WasmProvingServiceEffect}.
|
|
124
|
+
*
|
|
125
|
+
* @example
|
|
126
|
+
* ```typescript
|
|
127
|
+
* const proving = makeV9WasmProvingService();
|
|
128
|
+
* const unbound = await proving.prove(unprovenTransaction);
|
|
129
|
+
* ```;
|
|
130
|
+
*
|
|
131
|
+
* @param configuration Optional key material override.
|
|
132
|
+
* @returns A backend that proves ledger-v9 transactions in-process.
|
|
133
|
+
*/
|
|
134
|
+
export const makeV9WasmProvingService = (configuration) => wrapEffectService(makeV9WasmProvingServiceEffect(configuration));
|
|
135
|
+
/**
|
|
136
|
+
* The promise-facing surface of {@link makeV9SimulatorProvingServiceEffect}.
|
|
137
|
+
*
|
|
138
|
+
* @example
|
|
139
|
+
* ```typescript
|
|
140
|
+
* const proving = makeV9SimulatorProvingService();
|
|
141
|
+
* const proofErased = await proving.prove(unprovenTransaction);
|
|
142
|
+
* ```;
|
|
143
|
+
*
|
|
144
|
+
* @returns A backend that hands back each ledger-v9 transaction proof-erased, which the simulator accepts.
|
|
145
|
+
*/
|
|
146
|
+
export const makeV9SimulatorProvingService = () => wrapEffectService(makeV9SimulatorProvingServiceEffect());
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as ledgerV9 from '@midnightntwrk/ledger-v9';
|
|
2
1
|
import { ProtocolVersion } from '@midnightntwrk/wallet-sdk-abstractions';
|
|
3
2
|
import { Either } from 'effect';
|
|
4
3
|
import { type V8UnboundTransaction, type V8UnprovenTransaction } from './v8ProvingService.js';
|
|
5
|
-
import { type DefaultProvingConfiguration, type ProvingConfigurationError, type ProvingServiceEffect, type ProvingServices, type
|
|
4
|
+
import { type DefaultProvingConfiguration, type ProvingConfigurationError, type ProvingServiceEffect, type ProvingServices, type VersionedProvingService, type VersionedProvingServiceEffect, type WasmProvingConfiguration } from './provingService.js';
|
|
5
|
+
import { type V9UnboundTransaction, type V9UnprovenTransaction } from './v9ProvingService.js';
|
|
6
6
|
/**
|
|
7
7
|
* Every unproven transaction either ledger version can be asked to prove.
|
|
8
8
|
*
|
|
@@ -10,13 +10,31 @@ import { type DefaultProvingConfiguration, type ProvingConfigurationError, type
|
|
|
10
10
|
* A genuine union: the two ledger versions' transaction types are nominally distinct, so a caller holding one of them
|
|
11
11
|
* is holding something the other version's backend provably cannot read.
|
|
12
12
|
*/
|
|
13
|
-
/** Ledger-v9's unproven transaction, named for symmetry with {@link V8UnprovenTransaction}. */
|
|
14
|
-
export type V9UnprovenTransaction = ledgerV9.UnprovenTransaction;
|
|
15
13
|
export type AnyVersionUnprovenTransaction = V9UnprovenTransaction | V8UnprovenTransaction;
|
|
16
14
|
/** Every proved-but-unbound transaction either ledger version can hand back. */
|
|
17
15
|
export type AnyVersionUnboundTransaction = V9UnboundTransaction | V8UnboundTransaction;
|
|
18
16
|
/** A backend registered in a two-version registry, whichever ledger version it was written against. */
|
|
19
17
|
export type VersionProvingServiceEffect = ProvingServiceEffect<AnyVersionUnboundTransaction, AnyVersionUnprovenTransaction>;
|
|
18
|
+
/**
|
|
19
|
+
* Registers the in-process WASM prover, driven by ledger-v9, from a given protocol version upwards.
|
|
20
|
+
*
|
|
21
|
+
* @remarks
|
|
22
|
+
* Every entry here is ledger-v9's backend, so `sinceVersion` should not be below a protocol boundary: what a version
|
|
23
|
+
* below it needs is the ledger-v8 driver, which {@link makeDefaultProvingServices} registers for the epoch the fork
|
|
24
|
+
* schedule it is given places below `forks.v9`. A ledger-v8 transaction the router hands this backend anyway is
|
|
25
|
+
* refused with {@link ProvingEpochMismatchError}, naming the range it was registered for, rather than passed to a
|
|
26
|
+
* ledger that cannot read it.
|
|
27
|
+
* @example
|
|
28
|
+
* ```typescript
|
|
29
|
+
* const proving = makeVersionedProvingServiceEffect(makeV9WasmProvingServices(forks.v9));
|
|
30
|
+
* const unbound = yield* proving.prove(unprovenTransaction, protocolVersion);
|
|
31
|
+
* ```;
|
|
32
|
+
*
|
|
33
|
+
* @param sinceVersion The first protocol version to register the bundled prover for.
|
|
34
|
+
* @param configuration Optional key material override.
|
|
35
|
+
* @returns The proving backends, keyed by version.
|
|
36
|
+
*/
|
|
37
|
+
export declare const makeV9WasmProvingServices: (sinceVersion: ProtocolVersion.ProtocolVersion, configuration?: WasmProvingConfiguration) => ProvingServices<AnyVersionUnboundTransaction, AnyVersionUnprovenTransaction>;
|
|
20
38
|
/**
|
|
21
39
|
* Registers a proving backend either side of the protocol boundary.
|
|
22
40
|
*
|
|
@@ -20,12 +20,13 @@
|
|
|
20
20
|
* fork schedule the wallets are built with. Written the same way validation's `versionedValidation.ts` is, because it
|
|
21
21
|
* is the same problem.
|
|
22
22
|
*/
|
|
23
|
-
import * as ledgerV8 from '@
|
|
23
|
+
import * as ledgerV8 from '@midnightntwrk/ledger-v8';
|
|
24
24
|
import * as ledgerV9 from '@midnightntwrk/ledger-v9';
|
|
25
25
|
import { ProtocolVersion } from '@midnightntwrk/wallet-sdk-abstractions';
|
|
26
26
|
import { Effect, Either, Option } from 'effect';
|
|
27
27
|
import { makeV8ServerProvingServiceEffect, makeV8WasmProvingServiceEffect, } from './v8ProvingService.js';
|
|
28
|
-
import {
|
|
28
|
+
import { makeVersionedProvingServiceEffect, ProvingEpochMismatchError, resolveProvingBackends, wrapVersionedEffectService, } from './provingService.js';
|
|
29
|
+
import { makeV9ServerProvingServiceEffect, makeV9WasmProvingServiceEffect, } from './v9ProvingService.js';
|
|
29
30
|
/**
|
|
30
31
|
* Narrows a backend written against one ledger version to the union the registry is keyed by.
|
|
31
32
|
*
|
|
@@ -59,6 +60,31 @@ const makeV8Backend = (backend, epoch) => onlyFrom(backend.kind === 'server'
|
|
|
59
60
|
const makeV9Backend = (backend, epoch) => onlyFrom(backend.kind === 'server'
|
|
60
61
|
? makeV9ServerProvingServiceEffect({ provingServerUrl: backend.url })
|
|
61
62
|
: makeV9WasmProvingServiceEffect(wasmConfigurationOf(backend)), isV9Transaction, epoch);
|
|
63
|
+
/**
|
|
64
|
+
* Registers the in-process WASM prover, driven by ledger-v9, from a given protocol version upwards.
|
|
65
|
+
*
|
|
66
|
+
* @remarks
|
|
67
|
+
* Every entry here is ledger-v9's backend, so `sinceVersion` should not be below a protocol boundary: what a version
|
|
68
|
+
* below it needs is the ledger-v8 driver, which {@link makeDefaultProvingServices} registers for the epoch the fork
|
|
69
|
+
* schedule it is given places below `forks.v9`. A ledger-v8 transaction the router hands this backend anyway is
|
|
70
|
+
* refused with {@link ProvingEpochMismatchError}, naming the range it was registered for, rather than passed to a
|
|
71
|
+
* ledger that cannot read it.
|
|
72
|
+
* @example
|
|
73
|
+
* ```typescript
|
|
74
|
+
* const proving = makeVersionedProvingServiceEffect(makeV9WasmProvingServices(forks.v9));
|
|
75
|
+
* const unbound = yield* proving.prove(unprovenTransaction, protocolVersion);
|
|
76
|
+
* ```;
|
|
77
|
+
*
|
|
78
|
+
* @param sinceVersion The first protocol version to register the bundled prover for.
|
|
79
|
+
* @param configuration Optional key material override.
|
|
80
|
+
* @returns The proving backends, keyed by version.
|
|
81
|
+
*/
|
|
82
|
+
export const makeV9WasmProvingServices = (sinceVersion, configuration) => {
|
|
83
|
+
const range = ProtocolVersion.makeRange(sinceVersion, ProtocolVersion.MaxSupportedVersion);
|
|
84
|
+
return {
|
|
85
|
+
entries: [{ range, value: onlyFrom(makeV9WasmProvingServiceEffect(configuration), isV9Transaction, range) }],
|
|
86
|
+
};
|
|
87
|
+
};
|
|
62
88
|
/**
|
|
63
89
|
* The range of protocol versions each ledger version reads on a chain, from where the chain says the hand-over is.
|
|
64
90
|
*
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* and a partial one in the other: a signature of a scheme ledger-v8 has never heard of cannot be lowered at all, and
|
|
9
9
|
* says so rather than being handed over as bytes it would misread.
|
|
10
10
|
*/
|
|
11
|
-
import type * as ledgerV8 from '@
|
|
11
|
+
import type * as ledgerV8 from '@midnightntwrk/ledger-v8';
|
|
12
12
|
import { Either } from 'effect';
|
|
13
13
|
import type * as Signing from './signing.js';
|
|
14
14
|
declare const UnsupportedSignatureKindError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
@@ -5,16 +5,14 @@
|
|
|
5
5
|
* ledger, so a chain on either side of the hard fork is driven with the same API. Their shared, ledger-agnostic
|
|
6
6
|
* internals live in `core/`.
|
|
7
7
|
*
|
|
8
|
-
* - **{@link V9}** — the ledger-v9 line.
|
|
9
|
-
* simulator; this is what existing code gets.
|
|
8
|
+
* - **{@link V9}** — the ledger-v9 line. Used to drive a chain from the v9 fork, standalone or via {@link ForkSimulator}.
|
|
10
9
|
* - **{@link V8}** — the ledger-v8 line. Used to drive a chain before the v9 fork, standalone or via {@link ForkSimulator}.
|
|
11
10
|
* - **{@link ForkSimulator}** — the two composed into a single chain that crosses the fork.
|
|
12
11
|
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
12
|
+
* Neither twin is exported unqualified: they export identical names over structurally distinct ledger types, so a
|
|
13
|
+
* simulator is always named by the ledger version it runs, `V9.Simulator` or `V8.Simulator`.
|
|
15
14
|
*/
|
|
16
|
-
|
|
17
|
-
/** The ledger-v9 simulator. Same as the unqualified exports above, named for symmetry with {@link V8}. */
|
|
15
|
+
/** The ledger-v9 simulator. */
|
|
18
16
|
export * as V9 from './v9/index.js';
|
|
19
17
|
/** The ledger-v8 simulator. */
|
|
20
18
|
export * as V8 from './v8/index.js';
|
package/dist/simulation/index.js
CHANGED
|
@@ -17,17 +17,14 @@
|
|
|
17
17
|
* ledger, so a chain on either side of the hard fork is driven with the same API. Their shared, ledger-agnostic
|
|
18
18
|
* internals live in `core/`.
|
|
19
19
|
*
|
|
20
|
-
* - **{@link V9}** — the ledger-v9 line.
|
|
21
|
-
* simulator; this is what existing code gets.
|
|
20
|
+
* - **{@link V9}** — the ledger-v9 line. Used to drive a chain from the v9 fork, standalone or via {@link ForkSimulator}.
|
|
22
21
|
* - **{@link V8}** — the ledger-v8 line. Used to drive a chain before the v9 fork, standalone or via {@link ForkSimulator}.
|
|
23
22
|
* - **{@link ForkSimulator}** — the two composed into a single chain that crosses the fork.
|
|
24
23
|
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
24
|
+
* Neither twin is exported unqualified: they export identical names over structurally distinct ledger types, so a
|
|
25
|
+
* simulator is always named by the ledger version it runs, `V9.Simulator` or `V8.Simulator`.
|
|
27
26
|
*/
|
|
28
|
-
|
|
29
|
-
export * from './v9/index.js';
|
|
30
|
-
/** The ledger-v9 simulator. Same as the unqualified exports above, named for symmetry with {@link V8}. */
|
|
27
|
+
/** The ledger-v9 simulator. */
|
|
31
28
|
export * as V9 from './v9/index.js';
|
|
32
29
|
/** The ledger-v8 simulator. */
|
|
33
30
|
export * as V8 from './v8/index.js';
|
|
@@ -10,12 +10,10 @@
|
|
|
10
10
|
* - Time advancement for TTL and time-sensitive tests
|
|
11
11
|
*/
|
|
12
12
|
import { type Array as Arr, Effect, type Scope, Stream, SubscriptionRef } from 'effect';
|
|
13
|
-
import { type ProofErasedTransaction, type SignatureVerifyingKey } from '@
|
|
13
|
+
import { type ProofErasedTransaction, type SignatureVerifyingKey } from '@midnightntwrk/ledger-v8';
|
|
14
14
|
import { LedgerOps } from '@midnightntwrk/wallet-sdk-utilities';
|
|
15
15
|
import { NetworkId, ProtocolVersion } from '@midnightntwrk/wallet-sdk-abstractions';
|
|
16
16
|
import { type Block, type BlockProducer, type FullnessSpec, type GenesisMint, type SimulatorState, type StrictnessConfig } from './SimulatorState.js';
|
|
17
|
-
export type { SimulatorState, Block, BlockTransaction, PendingTransaction, BlockInfo, BlockProductionRequest, BlockProducer, FullnessSpec, GenesisMint, ScheduledFork, StrictnessConfig, } from './SimulatorState.js';
|
|
18
|
-
export { getLastBlock, getCurrentBlockNumber, getBlockByNumber, getLastBlockResults, getLastBlockEvents, hasPendingTransactions, getCurrentTime, getProtocolVersion, protocolVersionAt, applyTransaction, defaultStrictness, genesisStrictness, createStrictness, } from './SimulatorState.js';
|
|
19
17
|
/**
|
|
20
18
|
* Default block producer: produces a block for each state change with non-empty mempool.
|
|
21
19
|
*
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
* - Time advancement for TTL and time-sensitive tests
|
|
23
23
|
*/
|
|
24
24
|
import { Effect, Either, pipe, Stream, SubscriptionRef } from 'effect';
|
|
25
|
-
import { addressFromKey, ClaimRewardsTransaction, createShieldedCoinInfo, Intent, LedgerState, SignatureErased, Transaction, TransactionContext, UnshieldedOffer, ZswapOffer, ZswapOutput, } from '@
|
|
25
|
+
import { addressFromKey, ClaimRewardsTransaction, createShieldedCoinInfo, Intent, LedgerState, SignatureErased, Transaction, TransactionContext, UnshieldedOffer, ZswapOffer, ZswapOutput, } from '@midnightntwrk/ledger-v8';
|
|
26
26
|
import { DateOps, LedgerOps } from '@midnightntwrk/wallet-sdk-utilities';
|
|
27
27
|
import { NetworkId, ProtocolVersion, Token } from '@midnightntwrk/wallet-sdk-abstractions';
|
|
28
28
|
import { addToMempool, allMempoolTransactions, blankState, blockHash, createBlock, createEmptyBlock, createStrictness, defaultStrictness, genesisStrictness, getLastBlock, hasPendingTransactions, nextBlockContextFromBlock, processTransactions, removeFromMempool, resolveFullness, scheduleFork, setProtocolVersion, } from './SimulatorState.js';
|
|
@@ -38,8 +38,6 @@ const isUnshieldedMint = (mint) => mint.type === 'unshielded';
|
|
|
38
38
|
* SDK's own `Token.night`, which is what both ledger versions call the native token.
|
|
39
39
|
*/
|
|
40
40
|
const isNightToken = (tokenType) => tokenType === Token.night;
|
|
41
|
-
// Re-export state accessors for backward compatibility
|
|
42
|
-
export { getLastBlock, getCurrentBlockNumber, getBlockByNumber, getLastBlockResults, getLastBlockEvents, hasPendingTransactions, getCurrentTime, getProtocolVersion, protocolVersionAt, applyTransaction, defaultStrictness, genesisStrictness, createStrictness, } from './SimulatorState.js';
|
|
43
41
|
// =============================================================================
|
|
44
42
|
// Block Producers
|
|
45
43
|
// =============================================================================
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* synchronous and side-effect free.
|
|
6
6
|
*/
|
|
7
7
|
import { Either, type Stream, Array as EArray } from 'effect';
|
|
8
|
-
import { LedgerState, WellFormedStrictness, type TransactionResult, type ProofErasedTransaction, type SyntheticCost, type RawTokenType, type ZswapSecretKeys, type UserAddress, type SignatureVerifyingKey } from '@
|
|
8
|
+
import { LedgerState, WellFormedStrictness, type TransactionResult, type ProofErasedTransaction, type SyntheticCost, type RawTokenType, type ZswapSecretKeys, type UserAddress, type SignatureVerifyingKey } from '@midnightntwrk/ledger-v8';
|
|
9
9
|
import { LedgerOps } from '@midnightntwrk/wallet-sdk-utilities';
|
|
10
10
|
import { type NetworkId, ProtocolVersion } from '@midnightntwrk/wallet-sdk-abstractions';
|
|
11
11
|
import { type BlockContext, type ScheduledFork, type StrictnessConfig } from '../core/index.js';
|
|
@@ -216,15 +216,6 @@ export declare const getBlockEventsFrom: {
|
|
|
216
216
|
(fromBlockNumber: bigint): (state: SimulatorState) => readonly TransactionResult['events'][number][];
|
|
217
217
|
(state: SimulatorState, fromBlockNumber: bigint): readonly TransactionResult['events'][number][];
|
|
218
218
|
};
|
|
219
|
-
/**
|
|
220
|
-
* @deprecated Use getBlockEventsFrom instead with proper appliedIndex semantics Get all events from blocks with number
|
|
221
|
-
*
|
|
222
|
-
* > AfterBlockNumber.
|
|
223
|
-
*/
|
|
224
|
-
export declare const getBlockEventsSince: {
|
|
225
|
-
(afterBlockNumber: bigint): (state: SimulatorState) => readonly TransactionResult['events'][number][];
|
|
226
|
-
(state: SimulatorState, afterBlockNumber: bigint): readonly TransactionResult['events'][number][];
|
|
227
|
-
};
|
|
228
219
|
/** Check if there are pending transactions in the mempool. */
|
|
229
220
|
export declare const hasPendingTransactions: (state: SimulatorState) => boolean;
|
|
230
221
|
/** Get the current simulator time. */
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* synchronous and side-effect free.
|
|
18
18
|
*/
|
|
19
19
|
import { Either, Function as EFunction, Array as EArray } from 'effect';
|
|
20
|
-
import { LedgerState, WellFormedStrictness, TransactionContext, } from '@
|
|
20
|
+
import { LedgerState, WellFormedStrictness, TransactionContext, } from '@midnightntwrk/ledger-v8';
|
|
21
21
|
import { DateOps, LedgerOps } from '@midnightntwrk/wallet-sdk-utilities';
|
|
22
22
|
import { ProtocolVersion } from '@midnightntwrk/wallet-sdk-abstractions';
|
|
23
23
|
import { blockHash, protocolVersionAt, } from '../core/index.js';
|
|
@@ -59,14 +59,6 @@ export const getLastBlockEvents = (state) => getLastBlockResults(state).flatMap(
|
|
|
59
59
|
export const getBlockEventsFrom = EFunction.dual(2, (state, fromBlockNumber) => state.blocks
|
|
60
60
|
.filter((b) => b.number >= fromBlockNumber)
|
|
61
61
|
.flatMap((b) => b.transactions.flatMap((t) => t.result.events)));
|
|
62
|
-
/**
|
|
63
|
-
* @deprecated Use getBlockEventsFrom instead with proper appliedIndex semantics Get all events from blocks with number
|
|
64
|
-
*
|
|
65
|
-
* > AfterBlockNumber.
|
|
66
|
-
*/
|
|
67
|
-
export const getBlockEventsSince = EFunction.dual(2, (state, afterBlockNumber) => state.blocks
|
|
68
|
-
.filter((b) => b.number > afterBlockNumber)
|
|
69
|
-
.flatMap((b) => b.transactions.flatMap((t) => t.result.events)));
|
|
70
62
|
/** Check if there are pending transactions in the mempool. */
|
|
71
63
|
export const hasPendingTransactions = (state) => state.mempool.length > 0;
|
|
72
64
|
/** Get the current simulator time. */
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { getLastBlock, getCurrentBlockNumber, getCurrentTime, getProtocolVersion, protocolVersionAt, getBlockByNumber, getLastBlockResults, getLastBlockEvents, getBlockEventsFrom,
|
|
1
|
+
export { getLastBlock, getCurrentBlockNumber, getCurrentTime, getProtocolVersion, protocolVersionAt, getBlockByNumber, getLastBlockResults, getLastBlockEvents, getBlockEventsFrom, hasPendingTransactions, resolveFullness, allMempoolTransactions, blankState, addToMempool, removeFromMempool, advanceTime, updateLedger, appendBlock, applyTransaction, setProtocolVersion, scheduleFork, processTransaction, processTransactions, createBlock, createEmptyBlock, type TransactionProcessingResult, createStrictness, blockHash, assignStrictness, assignStrictnessToAll, defaultStrictness, genesisStrictness, type SimulatorState, type Block, type BlockTransaction, type BlockInfo, type PendingTransaction, type ReadyTransaction, type BlockProductionRequest, type BlockProducer, type FullnessSpec, type GenesisMint, type ScheduledFork, type StrictnessConfig, } from './SimulatorState.js';
|
|
2
2
|
export { Simulator, immediateBlockProducer, type SimulatorConfig } from './Simulator.js';
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
// Re-export everything from SimulatorState
|
|
14
14
|
export {
|
|
15
15
|
// State accessor functions (composable with simulator.query())
|
|
16
|
-
getLastBlock, getCurrentBlockNumber, getCurrentTime, getProtocolVersion, protocolVersionAt, getBlockByNumber, getLastBlockResults, getLastBlockEvents, getBlockEventsFrom,
|
|
16
|
+
getLastBlock, getCurrentBlockNumber, getCurrentTime, getProtocolVersion, protocolVersionAt, getBlockByNumber, getLastBlockResults, getLastBlockEvents, getBlockEventsFrom, hasPendingTransactions,
|
|
17
17
|
// State transformation functions
|
|
18
18
|
resolveFullness, allMempoolTransactions, blankState, addToMempool, removeFromMempool, advanceTime, updateLedger, appendBlock, applyTransaction, setProtocolVersion, scheduleFork,
|
|
19
19
|
// Block production functions
|
|
@@ -14,8 +14,6 @@ import { type ProofErasedTransaction, type SignatureVerifyingKey } from '@midnig
|
|
|
14
14
|
import { LedgerOps } from '@midnightntwrk/wallet-sdk-utilities';
|
|
15
15
|
import { NetworkId, ProtocolVersion } from '@midnightntwrk/wallet-sdk-abstractions';
|
|
16
16
|
import { type Block, type BlockProducer, type FullnessSpec, type GenesisMint, type SimulatorState, type StrictnessConfig } from './SimulatorState.js';
|
|
17
|
-
export type { SimulatorState, Block, BlockTransaction, PendingTransaction, BlockInfo, BlockProductionRequest, BlockProducer, FullnessSpec, GenesisMint, ScheduledFork, StrictnessConfig, } from './SimulatorState.js';
|
|
18
|
-
export { getLastBlock, getCurrentBlockNumber, getBlockByNumber, getLastBlockResults, getLastBlockEvents, hasPendingTransactions, getCurrentTime, getProtocolVersion, protocolVersionAt, applyTransaction, defaultStrictness, genesisStrictness, createStrictness, } from './SimulatorState.js';
|
|
19
17
|
/**
|
|
20
18
|
* Default block producer: produces a block for each state change with non-empty mempool.
|
|
21
19
|
*
|
|
@@ -38,8 +38,6 @@ const isUnshieldedMint = (mint) => mint.type === 'unshielded';
|
|
|
38
38
|
* SDK's own `Token.night`, which is what both ledger versions call the native token.
|
|
39
39
|
*/
|
|
40
40
|
const isNightToken = (tokenType) => tokenType === Token.night;
|
|
41
|
-
// Re-export state accessors for backward compatibility
|
|
42
|
-
export { getLastBlock, getCurrentBlockNumber, getBlockByNumber, getLastBlockResults, getLastBlockEvents, hasPendingTransactions, getCurrentTime, getProtocolVersion, protocolVersionAt, applyTransaction, defaultStrictness, genesisStrictness, createStrictness, } from './SimulatorState.js';
|
|
43
41
|
// =============================================================================
|
|
44
42
|
// Block Producers
|
|
45
43
|
// =============================================================================
|
|
@@ -216,15 +216,6 @@ export declare const getBlockEventsFrom: {
|
|
|
216
216
|
(fromBlockNumber: bigint): (state: SimulatorState) => readonly TransactionResult['events'][number][];
|
|
217
217
|
(state: SimulatorState, fromBlockNumber: bigint): readonly TransactionResult['events'][number][];
|
|
218
218
|
};
|
|
219
|
-
/**
|
|
220
|
-
* @deprecated Use getBlockEventsFrom instead with proper appliedIndex semantics Get all events from blocks with number
|
|
221
|
-
*
|
|
222
|
-
* > AfterBlockNumber.
|
|
223
|
-
*/
|
|
224
|
-
export declare const getBlockEventsSince: {
|
|
225
|
-
(afterBlockNumber: bigint): (state: SimulatorState) => readonly TransactionResult['events'][number][];
|
|
226
|
-
(state: SimulatorState, afterBlockNumber: bigint): readonly TransactionResult['events'][number][];
|
|
227
|
-
};
|
|
228
219
|
/** Check if there are pending transactions in the mempool. */
|
|
229
220
|
export declare const hasPendingTransactions: (state: SimulatorState) => boolean;
|
|
230
221
|
/** Get the current simulator time. */
|
|
@@ -59,14 +59,6 @@ export const getLastBlockEvents = (state) => getLastBlockResults(state).flatMap(
|
|
|
59
59
|
export const getBlockEventsFrom = EFunction.dual(2, (state, fromBlockNumber) => state.blocks
|
|
60
60
|
.filter((b) => b.number >= fromBlockNumber)
|
|
61
61
|
.flatMap((b) => b.transactions.flatMap((t) => t.result.events)));
|
|
62
|
-
/**
|
|
63
|
-
* @deprecated Use getBlockEventsFrom instead with proper appliedIndex semantics Get all events from blocks with number
|
|
64
|
-
*
|
|
65
|
-
* > AfterBlockNumber.
|
|
66
|
-
*/
|
|
67
|
-
export const getBlockEventsSince = EFunction.dual(2, (state, afterBlockNumber) => state.blocks
|
|
68
|
-
.filter((b) => b.number > afterBlockNumber)
|
|
69
|
-
.flatMap((b) => b.transactions.flatMap((t) => t.result.events)));
|
|
70
62
|
/** Check if there are pending transactions in the mempool. */
|
|
71
63
|
export const hasPendingTransactions = (state) => state.mempool.length > 0;
|
|
72
64
|
/** Get the current simulator time. */
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { getLastBlock, getCurrentBlockNumber, getCurrentTime, getProtocolVersion, protocolVersionAt, getBlockByNumber, getLastBlockResults, getLastBlockEvents, getBlockEventsFrom,
|
|
1
|
+
export { getLastBlock, getCurrentBlockNumber, getCurrentTime, getProtocolVersion, protocolVersionAt, getBlockByNumber, getLastBlockResults, getLastBlockEvents, getBlockEventsFrom, hasPendingTransactions, resolveFullness, allMempoolTransactions, blankState, addToMempool, removeFromMempool, advanceTime, updateLedger, appendBlock, applyTransaction, setProtocolVersion, scheduleFork, processTransaction, processTransactions, createBlock, createEmptyBlock, type TransactionProcessingResult, createStrictness, blockHash, assignStrictness, assignStrictnessToAll, defaultStrictness, genesisStrictness, type SimulatorState, type Block, type BlockTransaction, type BlockInfo, type PendingTransaction, type ReadyTransaction, type BlockProductionRequest, type BlockProducer, type FullnessSpec, type GenesisMint, type ScheduledFork, type StrictnessConfig, } from './SimulatorState.js';
|
|
2
2
|
export { Simulator, immediateBlockProducer, type SimulatorConfig } from './Simulator.js';
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
// Re-export everything from SimulatorState
|
|
14
14
|
export {
|
|
15
15
|
// State accessor functions (composable with simulator.query())
|
|
16
|
-
getLastBlock, getCurrentBlockNumber, getCurrentTime, getProtocolVersion, protocolVersionAt, getBlockByNumber, getLastBlockResults, getLastBlockEvents, getBlockEventsFrom,
|
|
16
|
+
getLastBlock, getCurrentBlockNumber, getCurrentTime, getProtocolVersion, protocolVersionAt, getBlockByNumber, getLastBlockResults, getLastBlockEvents, getBlockEventsFrom, hasPendingTransactions,
|
|
17
17
|
// State transformation functions
|
|
18
18
|
resolveFullness, allMempoolTransactions, blankState, addToMempool, removeFromMempool, advanceTime, updateLedger, appendBlock, applyTransaction, setProtocolVersion, scheduleFork,
|
|
19
19
|
// Block production functions
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { Effect } from 'effect';
|
|
1
|
+
import { Cause, Effect } from 'effect';
|
|
2
2
|
import { SubmissionEvent as SubmissionEventImported } from '@midnightntwrk/wallet-sdk-node-client/effect';
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import type * as ledgerV8 from '@midnightntwrk/ledger-v8';
|
|
4
|
+
import type * as ledgerV9 from '@midnightntwrk/ledger-v9';
|
|
5
|
+
import { type SimulatorState } from '../simulation/v9/SimulatorState.js';
|
|
5
6
|
export declare const SubmissionEvent: typeof SubmissionEventImported;
|
|
6
7
|
export type SubmissionEvent = SubmissionEventImported.SubmissionEvent;
|
|
7
8
|
export declare namespace SubmissionEventCases {
|
|
@@ -9,7 +10,7 @@ export declare namespace SubmissionEventCases {
|
|
|
9
10
|
type Submitted = SubmissionEventImported.Cases.Submitted;
|
|
10
11
|
type InBlock = SubmissionEventImported.Cases.InBlock;
|
|
11
12
|
}
|
|
12
|
-
declare const SubmissionError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) =>
|
|
13
|
+
declare const SubmissionError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => Cause.YieldableError & {
|
|
13
14
|
readonly _tag: "SubmissionError";
|
|
14
15
|
} & Readonly<A>;
|
|
15
16
|
export declare class SubmissionError extends SubmissionError_base<{
|
|
@@ -42,20 +43,67 @@ export interface SubmissionService<TTransaction> {
|
|
|
42
43
|
export type DefaultSubmissionConfiguration = {
|
|
43
44
|
relayURL: URL;
|
|
44
45
|
};
|
|
46
|
+
/** A transaction either ledger version has proved and bound, and so one a node will put in a block. */
|
|
47
|
+
export type AnyVersionFinalizedTransaction = ledgerV8.FinalizedTransaction | ledgerV9.FinalizedTransaction;
|
|
48
|
+
/**
|
|
49
|
+
* Submits transactions to a node through its relay.
|
|
50
|
+
*
|
|
51
|
+
* @remarks
|
|
52
|
+
* The node takes a transaction's bytes, whichever ledger version wrote them, so left unnamed the transaction type is
|
|
53
|
+
* either ledger version's finalized transaction: never one still to be proved or bound, which no block would take.
|
|
54
|
+
* @example
|
|
55
|
+
* ```typescript
|
|
56
|
+
* const submission = makeDefaultSubmissionServiceEffect({ relayURL: new URL('ws://localhost:9944') });
|
|
57
|
+
* const inBlock = yield* submission.submitTransaction(finalizedTransaction, 'InBlock');
|
|
58
|
+
* yield* submission.close();
|
|
59
|
+
* ```;
|
|
60
|
+
*
|
|
61
|
+
* @param config The relay to submit through.
|
|
62
|
+
* @returns A submission service that closes its connection on `close`.
|
|
63
|
+
*/
|
|
45
64
|
export declare const makeDefaultSubmissionServiceEffect: <TTransaction extends {
|
|
46
65
|
serialize: () => Uint8Array;
|
|
47
66
|
toString: () => string;
|
|
48
|
-
} =
|
|
67
|
+
} = AnyVersionFinalizedTransaction>(config: DefaultSubmissionConfiguration) => SubmissionServiceEffect<TTransaction>;
|
|
68
|
+
/**
|
|
69
|
+
* The promise-facing surface of {@link makeDefaultSubmissionServiceEffect}.
|
|
70
|
+
*
|
|
71
|
+
* @example
|
|
72
|
+
* ```typescript
|
|
73
|
+
* const submission = makeDefaultSubmissionService({ relayURL: new URL('ws://localhost:9944') });
|
|
74
|
+
* const inBlock = await submission.submitTransaction(finalizedTransaction, 'InBlock');
|
|
75
|
+
* await submission.close();
|
|
76
|
+
* ```;
|
|
77
|
+
*
|
|
78
|
+
* @param config The relay to submit through.
|
|
79
|
+
* @returns A submission service that closes its connection on `close`.
|
|
80
|
+
*/
|
|
49
81
|
export declare const makeDefaultSubmissionService: <TTransaction extends {
|
|
50
82
|
serialize: () => Uint8Array;
|
|
51
|
-
} =
|
|
52
|
-
|
|
83
|
+
} = AnyVersionFinalizedTransaction>(config: DefaultSubmissionConfiguration) => SubmissionService<TTransaction>;
|
|
84
|
+
/** The ledger-v9 simulator a {@link makeV9SimulatorSubmissionService} submits to and reads blocks from. */
|
|
85
|
+
export type V9SimulatorSubmissionConfiguration<TTransaction> = {
|
|
53
86
|
simulator: {
|
|
54
87
|
submitTransaction: (transaction: TTransaction) => Effect.Effect<void, Error>;
|
|
55
88
|
getLatestState: () => Effect.Effect<SimulatorState>;
|
|
56
89
|
};
|
|
57
90
|
};
|
|
58
|
-
|
|
91
|
+
/**
|
|
92
|
+
* Submits transactions to the in-memory ledger-v9 simulator, answering as a node would.
|
|
93
|
+
*
|
|
94
|
+
* @remarks
|
|
95
|
+
* The simulator has no relay to report progress, so every submission answers with the one status this service was built
|
|
96
|
+
* for, read off the simulator's latest block once the transaction is in.
|
|
97
|
+
* @example
|
|
98
|
+
* ```typescript
|
|
99
|
+
* const submission = makeV9SimulatorSubmissionService<ledger.ProofErasedTransaction>('InBlock')({ simulator });
|
|
100
|
+
* const inBlock = yield* submission.submitTransaction(proofErasedTransaction);
|
|
101
|
+
* ```;
|
|
102
|
+
*
|
|
103
|
+
* @param waitForStatus The status every submission reports. Defaults to `InBlock`, as a node's does.
|
|
104
|
+
* @returns A function from the simulator to the submission service over it.
|
|
105
|
+
*/
|
|
106
|
+
export declare const makeV9SimulatorSubmissionService: <TTransaction extends {
|
|
59
107
|
serialize: () => Uint8Array;
|
|
60
|
-
}>(waitForStatus?: "Submitted" | "InBlock" | "Finalized") => (config:
|
|
108
|
+
}>(waitForStatus?: "Submitted" | "InBlock" | "Finalized") => (config: V9SimulatorSubmissionConfiguration<TTransaction>) => SubmissionServiceEffect<TTransaction>;
|
|
61
109
|
export {};
|