moonproof 0.2.1__py3-none-win_amd64.whl
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.
- moonproof/__init__.py +66 -0
- moonproof/_native.py +49105 -0
- moonproof/moonproof_ffi.dll +4 -0
- moonproof/sdk.py +1684 -0
- moonproof-0.2.1.dist-info/METADATA +40 -0
- moonproof-0.2.1.dist-info/RECORD +8 -0
- moonproof-0.2.1.dist-info/WHEEL +5 -0
- moonproof-0.2.1.dist-info/top_level.txt +1 -0
moonproof/__init__.py
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"""Moonproof Python SDK.
|
|
2
|
+
|
|
3
|
+
Re-exports the generated UniFFI primitives from `_native` and layers
|
|
4
|
+
idiomatic Python ergonomics (`Chain`, `Contract`, `Receipt`, `AsyncChain`,
|
|
5
|
+
`AsyncContract`, `InvariantSuite`, `AsyncInvariantSuite`, `simulator`,
|
|
6
|
+
`connect`, `chain_from_env`, `load`, `NIGHT`, native value coercion,
|
|
7
|
+
`with chain.batch():`, `with chain.snapshot_scope():`, `with chain.prank_scope(...):`,
|
|
8
|
+
`with contract.witness(...):`, `assert_privacy_clean`, `assert_invariants_hold`,
|
|
9
|
+
and `iter_stream`) on top.
|
|
10
|
+
"""
|
|
11
|
+
|
|
12
|
+
from ._native import * # noqa: F401,F403
|
|
13
|
+
from ._native import ( # noqa: F401
|
|
14
|
+
ActionRecordDto,
|
|
15
|
+
CallWithDiffResult,
|
|
16
|
+
CircuitProfileRecord,
|
|
17
|
+
ContractStateDiffRecord,
|
|
18
|
+
FieldChangeRecord,
|
|
19
|
+
InvariantActionSpec,
|
|
20
|
+
InvariantConfigRecord,
|
|
21
|
+
InvariantFailureDto,
|
|
22
|
+
InvariantReportDto,
|
|
23
|
+
InvariantSession,
|
|
24
|
+
InvariantStep,
|
|
25
|
+
LedgerContractSnapshotRecord,
|
|
26
|
+
StaticAuditReportRecord,
|
|
27
|
+
StaticFindingRecord,
|
|
28
|
+
WitnessCallRecord,
|
|
29
|
+
ZkirCheckReportRecord,
|
|
30
|
+
)
|
|
31
|
+
from .sdk import ( # noqa: F401
|
|
32
|
+
NIGHT,
|
|
33
|
+
AsyncChain,
|
|
34
|
+
AsyncContract,
|
|
35
|
+
AsyncInvariantSuite,
|
|
36
|
+
Chain,
|
|
37
|
+
CircuitContext,
|
|
38
|
+
CircuitResults,
|
|
39
|
+
CompactCrypto,
|
|
40
|
+
ConstructorContext,
|
|
41
|
+
ConstructorResult,
|
|
42
|
+
Contract,
|
|
43
|
+
ContractHandle,
|
|
44
|
+
InvariantSuite,
|
|
45
|
+
Receipt,
|
|
46
|
+
WitnessMap,
|
|
47
|
+
assert_invariants_hold,
|
|
48
|
+
assert_privacy_clean,
|
|
49
|
+
async_chain_from_env,
|
|
50
|
+
async_connect,
|
|
51
|
+
async_connect_endpoint,
|
|
52
|
+
async_simulator,
|
|
53
|
+
chain_from_env,
|
|
54
|
+
compact_merkle_path,
|
|
55
|
+
connect,
|
|
56
|
+
connect_endpoint,
|
|
57
|
+
from_runtime_value,
|
|
58
|
+
inspect_proven_tx,
|
|
59
|
+
iter_stream,
|
|
60
|
+
load,
|
|
61
|
+
run_circuit,
|
|
62
|
+
run_initialize,
|
|
63
|
+
simulator,
|
|
64
|
+
to_runtime_value,
|
|
65
|
+
witnesses,
|
|
66
|
+
)
|