flop-sdk 0.3.2__tar.gz → 0.3.4__tar.gz
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.
- {flop_sdk-0.3.2 → flop_sdk-0.3.4}/PKG-INFO +3 -3
- {flop_sdk-0.3.2 → flop_sdk-0.3.4}/README.md +2 -2
- {flop_sdk-0.3.2 → flop_sdk-0.3.4}/pyproject.toml +1 -1
- {flop_sdk-0.3.2 → flop_sdk-0.3.4}/src/flop_sdk/__init__.py +1 -1
- {flop_sdk-0.3.2 → flop_sdk-0.3.4}/src/flop_sdk/client.py +11 -1
- {flop_sdk-0.3.2 → flop_sdk-0.3.4}/tests/test_runtime_compatibility.py +16 -3
- {flop_sdk-0.3.2 → flop_sdk-0.3.4}/tests/test_session_keys_contract.py +1 -1
- {flop_sdk-0.3.2 → flop_sdk-0.3.4}/.gitignore +0 -0
- {flop_sdk-0.3.2 → flop_sdk-0.3.4}/LICENSE +0 -0
- {flop_sdk-0.3.2 → flop_sdk-0.3.4}/src/flop_sdk/_session.py +0 -0
- {flop_sdk-0.3.2 → flop_sdk-0.3.4}/src/flop_sdk/agent/errors.py +0 -0
- {flop_sdk-0.3.2 → flop_sdk-0.3.4}/src/flop_sdk/agent_wallet.py +0 -0
- {flop_sdk-0.3.2 → flop_sdk-0.3.4}/src/flop_sdk/compute_channel.py +0 -0
- {flop_sdk-0.3.2 → flop_sdk-0.3.4}/src/flop_sdk/da_client.py +0 -0
- {flop_sdk-0.3.2 → flop_sdk-0.3.4}/src/flop_sdk/errors.py +0 -0
- {flop_sdk-0.3.2 → flop_sdk-0.3.4}/src/flop_sdk/hardware.py +0 -0
- {flop_sdk-0.3.2 → flop_sdk-0.3.4}/src/flop_sdk/htlc_tee.py +0 -0
- {flop_sdk-0.3.2 → flop_sdk-0.3.4}/src/flop_sdk/paid_storage_wire.py +0 -0
- {flop_sdk-0.3.2 → flop_sdk-0.3.4}/src/flop_sdk/staking_client.py +0 -0
- {flop_sdk-0.3.2 → flop_sdk-0.3.4}/src/flop_sdk/staking_types.py +0 -0
- {flop_sdk-0.3.2 → flop_sdk-0.3.4}/src/flop_sdk/stream.py +0 -0
- {flop_sdk-0.3.2 → flop_sdk-0.3.4}/src/flop_sdk/substrate.py +0 -0
- {flop_sdk-0.3.2 → flop_sdk-0.3.4}/src/flop_sdk/tracing.py +0 -0
- {flop_sdk-0.3.2 → flop_sdk-0.3.4}/src/flop_sdk/types.py +0 -0
- {flop_sdk-0.3.2 → flop_sdk-0.3.4}/src/flop_sdk/utils.py +0 -0
- {flop_sdk-0.3.2 → flop_sdk-0.3.4}/src/flop_sdk/x402.py +0 -0
- {flop_sdk-0.3.2 → flop_sdk-0.3.4}/tests/fixtures/devnet-runtime-v14.md +0 -0
- {flop_sdk-0.3.2 → flop_sdk-0.3.4}/tests/fixtures/devnet-runtime-v14.scale +0 -0
- {flop_sdk-0.3.2 → flop_sdk-0.3.4}/tests/test_circuit_breaker_submit.py +0 -0
- {flop_sdk-0.3.2 → flop_sdk-0.3.4}/tests/test_compute_channel.py +0 -0
- {flop_sdk-0.3.2 → flop_sdk-0.3.4}/tests/test_da_client.py +0 -0
- {flop_sdk-0.3.2 → flop_sdk-0.3.4}/tests/test_fcu_runtime_metadata.py +0 -0
- {flop_sdk-0.3.2 → flop_sdk-0.3.4}/tests/test_hardware.py +0 -0
- {flop_sdk-0.3.2 → flop_sdk-0.3.4}/tests/test_has_station_rpc_integration.py +0 -0
- {flop_sdk-0.3.2 → flop_sdk-0.3.4}/tests/test_htlc_adapters.py +0 -0
- {flop_sdk-0.3.2 → flop_sdk-0.3.4}/tests/test_paid_storage_wire.py +0 -0
- {flop_sdk-0.3.2 → flop_sdk-0.3.4}/tests/test_public_metadata.py +0 -0
- {flop_sdk-0.3.2 → flop_sdk-0.3.4}/tests/test_sdk.py +0 -0
- {flop_sdk-0.3.2 → flop_sdk-0.3.4}/tests/test_staking.py +0 -0
- {flop_sdk-0.3.2 → flop_sdk-0.3.4}/tests/test_stream_and_exports.py +0 -0
- {flop_sdk-0.3.2 → flop_sdk-0.3.4}/tests/test_substrate_seeds.py +0 -0
- {flop_sdk-0.3.2 → flop_sdk-0.3.4}/tests/test_tracing.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: flop-sdk
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.4
|
|
4
4
|
Summary: FLOP Network SDK for Python - HTLC workflows, PoUI proofs, and account management
|
|
5
5
|
Project-URL: Bug Tracker, https://github.com/flop-labs/network/issues/new/choose
|
|
6
6
|
Project-URL: Homepage, https://flop.network
|
|
@@ -43,9 +43,9 @@ For the examples, set `FLOP_HTLC_TEE_REQUIREMENTS` to that canonical hex from yo
|
|
|
43
43
|
FLOP Network SDK for Python — HTLC workflows, PoI proofs, and account management.
|
|
44
44
|
|
|
45
45
|
`SUPPORTED_SPEC_VERSIONS` admits exactly `1013000`, `1014000` through `1014005`, `1014007`
|
|
46
|
-
through `1014027`, and `
|
|
46
|
+
through `1014027`, `1014029`, `1014031`, and `1014034` in this source. Published `0.2.0` stops at `1014011`.
|
|
47
47
|
`SUPPORTED_SPEC_VERSION_RANGE` retains its exported shape as the envelope
|
|
48
|
-
`1013000..
|
|
48
|
+
`1013000..1014034`; versions inside it that are not listed, `1014006`, `1014028`, `1014030`, `1014032` and `1014033` among them, are not
|
|
49
49
|
admitted. Qualification covers
|
|
50
50
|
runtime `1013000` at `44a5fedc88614b9a6e8c97605c2ec943faf47d9d`, the
|
|
51
51
|
registrar runtime `1014000` at `e4f01cc849fa6c768d5c0f9c111dffb450ea4fa9`
|
|
@@ -8,9 +8,9 @@ For the examples, set `FLOP_HTLC_TEE_REQUIREMENTS` to that canonical hex from yo
|
|
|
8
8
|
FLOP Network SDK for Python — HTLC workflows, PoI proofs, and account management.
|
|
9
9
|
|
|
10
10
|
`SUPPORTED_SPEC_VERSIONS` admits exactly `1013000`, `1014000` through `1014005`, `1014007`
|
|
11
|
-
through `1014027`, and `
|
|
11
|
+
through `1014027`, `1014029`, `1014031`, and `1014034` in this source. Published `0.2.0` stops at `1014011`.
|
|
12
12
|
`SUPPORTED_SPEC_VERSION_RANGE` retains its exported shape as the envelope
|
|
13
|
-
`1013000..
|
|
13
|
+
`1013000..1014034`; versions inside it that are not listed, `1014006`, `1014028`, `1014030`, `1014032` and `1014033` among them, are not
|
|
14
14
|
admitted. Qualification covers
|
|
15
15
|
runtime `1013000` at `44a5fedc88614b9a6e8c97605c2ec943faf47d9d`, the
|
|
16
16
|
registrar runtime `1014000` at `e4f01cc849fa6c768d5c0f9c111dffb450ea4fa9`
|
|
@@ -52,6 +52,14 @@ class FLOPError(Exception):
|
|
|
52
52
|
# reconciliation and the default-off DA custody gate. Existing call indices and encodings unchanged.
|
|
53
53
|
# 1014029, candidate 1.14.29: ModelRegistry v4 stamp after the D-0533 repricing (#4395). 1014028
|
|
54
54
|
# was never activated and stays rejected. Call indices and encodings are unchanged.
|
|
55
|
+
# 1014031, candidate 1.14.31: voucher activation providers (#4288), the default-off RetainedIssuer
|
|
56
|
+
# pallet at index 155 (#4310), the risc0 3.1.0 verifier (#4421) and bounded Aleph gossip queues
|
|
57
|
+
# (#2005). 1014030 was never deployed and stays rejected. Additive pallet; transaction
|
|
58
|
+
# version stays 2.
|
|
59
|
+
# 1014034, candidate 1.14.34: SOFT calibration ceiling at 10M G_n/s behind a direct-PoI clamp
|
|
60
|
+
# (D-0553, #4575), plus node-side Aleph/BABE and sync guards (#4394, #4568). 1014032 and 1014033
|
|
61
|
+
# were never built from main and stay rejected. No call, event or storage shape changes;
|
|
62
|
+
# transaction version stays 2.
|
|
55
63
|
# 1014013, additive native profile registry and validated-inherent UTC clock.
|
|
56
64
|
# 1014012, primary-admission pause candidate with unchanged receipt/offer wire bytes.
|
|
57
65
|
# 1014011, funding-time economic snapshots and the v5 empty-state gate (#3132).
|
|
@@ -85,9 +93,11 @@ SUPPORTED_SPEC_VERSIONS = (
|
|
|
85
93
|
1_014_026,
|
|
86
94
|
1_014_027,
|
|
87
95
|
1_014_029,
|
|
96
|
+
1_014_031,
|
|
97
|
+
1_014_034,
|
|
88
98
|
)
|
|
89
99
|
# Compatibility envelope only; admission requires membership in SUPPORTED_SPEC_VERSIONS.
|
|
90
|
-
SUPPORTED_SPEC_VERSION_RANGE = (1_013_000,
|
|
100
|
+
SUPPORTED_SPEC_VERSION_RANGE = (1_013_000, 1_014_034)
|
|
91
101
|
|
|
92
102
|
|
|
93
103
|
def assert_supported_runtime(runtime: dict[str, Any]) -> None:
|
|
@@ -20,6 +20,9 @@ REJECTED_VERSIONS = [
|
|
|
20
20
|
1_014_006,
|
|
21
21
|
1_014_028,
|
|
22
22
|
1_014_030,
|
|
23
|
+
1_014_032,
|
|
24
|
+
1_014_033,
|
|
25
|
+
1_014_035,
|
|
23
26
|
None,
|
|
24
27
|
"1014000",
|
|
25
28
|
True,
|
|
@@ -58,8 +61,10 @@ def test_qualified_versions_and_envelope():
|
|
|
58
61
|
1_014_026,
|
|
59
62
|
1_014_027,
|
|
60
63
|
1_014_029,
|
|
64
|
+
1_014_031,
|
|
65
|
+
1_014_034,
|
|
61
66
|
)
|
|
62
|
-
assert SUPPORTED_SPEC_VERSION_RANGE == (1_013_000,
|
|
67
|
+
assert SUPPORTED_SPEC_VERSION_RANGE == (1_013_000, 1_014_034)
|
|
63
68
|
|
|
64
69
|
|
|
65
70
|
@pytest.fixture
|
|
@@ -122,6 +127,8 @@ async def runtime_rpc():
|
|
|
122
127
|
1_014_026,
|
|
123
128
|
1_014_027,
|
|
124
129
|
1_014_029,
|
|
130
|
+
1_014_031,
|
|
131
|
+
1_014_034,
|
|
125
132
|
],
|
|
126
133
|
)
|
|
127
134
|
async def test_http_accepts_supported_runtime(runtime_rpc, version):
|
|
@@ -138,7 +145,7 @@ async def test_http_rejects_unsupported_runtime_on_connect(runtime_rpc, version)
|
|
|
138
145
|
state["version"] = version
|
|
139
146
|
with pytest.raises(
|
|
140
147
|
FLOPError,
|
|
141
|
-
match="qualified spec versions.*1013000.*1014000.*1014001.*1014002.*1014003.*1014004.*1014005.*1014007.*1014008.*1014009.*1014010.*1014011.*1014012.*1014013.*1014014.*1014015.*1014016.*1014017.*1014018.*1014019.*1014020.*1014021.*1014022.*1014023.*1014024.*1014025.*1014026.*1014027.*1014029.*Upgrade flop-sdk",
|
|
148
|
+
match="qualified spec versions.*1013000.*1014000.*1014001.*1014002.*1014003.*1014004.*1014005.*1014007.*1014008.*1014009.*1014010.*1014011.*1014012.*1014013.*1014014.*1014015.*1014016.*1014017.*1014018.*1014019.*1014020.*1014021.*1014022.*1014023.*1014024.*1014025.*1014026.*1014027.*1014029.*1014031.*1014034.*Upgrade flop-sdk",
|
|
142
149
|
) as error:
|
|
143
150
|
await client.connect()
|
|
144
151
|
assert error.value.code == "RUNTIME_INCOMPATIBLE"
|
|
@@ -207,6 +214,8 @@ def substrate_runtime(monkeypatch):
|
|
|
207
214
|
1_014_026,
|
|
208
215
|
1_014_027,
|
|
209
216
|
1_014_029,
|
|
217
|
+
1_014_031,
|
|
218
|
+
1_014_034,
|
|
210
219
|
],
|
|
211
220
|
)
|
|
212
221
|
def test_substrate_accepts_supported_runtime(substrate_runtime, version):
|
|
@@ -227,7 +236,7 @@ def test_substrate_rejects_runtime_on_connect_and_upgrade(substrate_runtime, ver
|
|
|
227
236
|
state["version"] = version
|
|
228
237
|
with pytest.raises(
|
|
229
238
|
FLOPError,
|
|
230
|
-
match="qualified spec versions.*1013000.*1014000.*1014001.*1014002.*1014003.*1014004.*1014005.*1014007.*1014008.*1014009.*1014010.*1014011.*1014012.*1014013.*1014014.*1014015.*1014016.*1014017.*1014018.*1014019.*1014020.*1014021.*1014022.*1014023.*1014024.*1014025.*1014026.*1014027.*1014029.*Upgrade flop-sdk",
|
|
239
|
+
match="qualified spec versions.*1013000.*1014000.*1014001.*1014002.*1014003.*1014004.*1014005.*1014007.*1014008.*1014009.*1014010.*1014011.*1014012.*1014013.*1014014.*1014015.*1014016.*1014017.*1014018.*1014019.*1014020.*1014021.*1014022.*1014023.*1014024.*1014025.*1014026.*1014027.*1014029.*1014031.*1014034.*Upgrade flop-sdk",
|
|
231
240
|
):
|
|
232
241
|
SubstrateClient()
|
|
233
242
|
close.assert_called_once()
|
|
@@ -274,6 +283,8 @@ def test_substrate_rejects_runtime_on_connect_and_upgrade(substrate_runtime, ver
|
|
|
274
283
|
1_014_026,
|
|
275
284
|
1_014_027,
|
|
276
285
|
1_014_029,
|
|
286
|
+
1_014_031,
|
|
287
|
+
1_014_034,
|
|
277
288
|
],
|
|
278
289
|
)
|
|
279
290
|
async def test_http_accepts_qualified_runtime_upgrade(runtime_rpc, version):
|
|
@@ -315,6 +326,8 @@ async def test_http_accepts_qualified_runtime_upgrade(runtime_rpc, version):
|
|
|
315
326
|
1_014_026,
|
|
316
327
|
1_014_027,
|
|
317
328
|
1_014_029,
|
|
329
|
+
1_014_031,
|
|
330
|
+
1_014_034,
|
|
318
331
|
],
|
|
319
332
|
)
|
|
320
333
|
def test_substrate_accepts_qualified_runtime_upgrade(substrate_runtime, version):
|
|
@@ -216,7 +216,7 @@ def test_only_an_absent_option_is_an_absent_session(query):
|
|
|
216
216
|
|
|
217
217
|
|
|
218
218
|
def test_both_public_export_families_reach_the_corrected_helpers():
|
|
219
|
-
assert flop_sdk.__version__ == "0.3.
|
|
219
|
+
assert flop_sdk.__version__ == "0.3.4"
|
|
220
220
|
assert flop_sdk.create_session is substrate.create_session
|
|
221
221
|
assert flop_sdk.create_session_onchain is agent_wallet.create_session
|
|
222
222
|
assert flop_sdk.execute_via_session is substrate.execute_via_session
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|