flop-sdk 0.3.2__tar.gz → 0.3.3__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.3}/PKG-INFO +3 -3
- {flop_sdk-0.3.2 → flop_sdk-0.3.3}/README.md +2 -2
- {flop_sdk-0.3.2 → flop_sdk-0.3.3}/pyproject.toml +1 -1
- {flop_sdk-0.3.2 → flop_sdk-0.3.3}/src/flop_sdk/__init__.py +1 -1
- {flop_sdk-0.3.2 → flop_sdk-0.3.3}/src/flop_sdk/client.py +6 -1
- {flop_sdk-0.3.2 → flop_sdk-0.3.3}/tests/test_runtime_compatibility.py +9 -3
- {flop_sdk-0.3.2 → flop_sdk-0.3.3}/tests/test_session_keys_contract.py +1 -1
- {flop_sdk-0.3.2 → flop_sdk-0.3.3}/.gitignore +0 -0
- {flop_sdk-0.3.2 → flop_sdk-0.3.3}/LICENSE +0 -0
- {flop_sdk-0.3.2 → flop_sdk-0.3.3}/src/flop_sdk/_session.py +0 -0
- {flop_sdk-0.3.2 → flop_sdk-0.3.3}/src/flop_sdk/agent/errors.py +0 -0
- {flop_sdk-0.3.2 → flop_sdk-0.3.3}/src/flop_sdk/agent_wallet.py +0 -0
- {flop_sdk-0.3.2 → flop_sdk-0.3.3}/src/flop_sdk/compute_channel.py +0 -0
- {flop_sdk-0.3.2 → flop_sdk-0.3.3}/src/flop_sdk/da_client.py +0 -0
- {flop_sdk-0.3.2 → flop_sdk-0.3.3}/src/flop_sdk/errors.py +0 -0
- {flop_sdk-0.3.2 → flop_sdk-0.3.3}/src/flop_sdk/hardware.py +0 -0
- {flop_sdk-0.3.2 → flop_sdk-0.3.3}/src/flop_sdk/htlc_tee.py +0 -0
- {flop_sdk-0.3.2 → flop_sdk-0.3.3}/src/flop_sdk/paid_storage_wire.py +0 -0
- {flop_sdk-0.3.2 → flop_sdk-0.3.3}/src/flop_sdk/staking_client.py +0 -0
- {flop_sdk-0.3.2 → flop_sdk-0.3.3}/src/flop_sdk/staking_types.py +0 -0
- {flop_sdk-0.3.2 → flop_sdk-0.3.3}/src/flop_sdk/stream.py +0 -0
- {flop_sdk-0.3.2 → flop_sdk-0.3.3}/src/flop_sdk/substrate.py +0 -0
- {flop_sdk-0.3.2 → flop_sdk-0.3.3}/src/flop_sdk/tracing.py +0 -0
- {flop_sdk-0.3.2 → flop_sdk-0.3.3}/src/flop_sdk/types.py +0 -0
- {flop_sdk-0.3.2 → flop_sdk-0.3.3}/src/flop_sdk/utils.py +0 -0
- {flop_sdk-0.3.2 → flop_sdk-0.3.3}/src/flop_sdk/x402.py +0 -0
- {flop_sdk-0.3.2 → flop_sdk-0.3.3}/tests/fixtures/devnet-runtime-v14.md +0 -0
- {flop_sdk-0.3.2 → flop_sdk-0.3.3}/tests/fixtures/devnet-runtime-v14.scale +0 -0
- {flop_sdk-0.3.2 → flop_sdk-0.3.3}/tests/test_circuit_breaker_submit.py +0 -0
- {flop_sdk-0.3.2 → flop_sdk-0.3.3}/tests/test_compute_channel.py +0 -0
- {flop_sdk-0.3.2 → flop_sdk-0.3.3}/tests/test_da_client.py +0 -0
- {flop_sdk-0.3.2 → flop_sdk-0.3.3}/tests/test_fcu_runtime_metadata.py +0 -0
- {flop_sdk-0.3.2 → flop_sdk-0.3.3}/tests/test_hardware.py +0 -0
- {flop_sdk-0.3.2 → flop_sdk-0.3.3}/tests/test_has_station_rpc_integration.py +0 -0
- {flop_sdk-0.3.2 → flop_sdk-0.3.3}/tests/test_htlc_adapters.py +0 -0
- {flop_sdk-0.3.2 → flop_sdk-0.3.3}/tests/test_paid_storage_wire.py +0 -0
- {flop_sdk-0.3.2 → flop_sdk-0.3.3}/tests/test_public_metadata.py +0 -0
- {flop_sdk-0.3.2 → flop_sdk-0.3.3}/tests/test_sdk.py +0 -0
- {flop_sdk-0.3.2 → flop_sdk-0.3.3}/tests/test_staking.py +0 -0
- {flop_sdk-0.3.2 → flop_sdk-0.3.3}/tests/test_stream_and_exports.py +0 -0
- {flop_sdk-0.3.2 → flop_sdk-0.3.3}/tests/test_substrate_seeds.py +0 -0
- {flop_sdk-0.3.2 → flop_sdk-0.3.3}/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.3
|
|
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`, and `1014031` 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..1014031`; versions inside it that are not listed, `1014006`, `1014028` and `1014030` 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`, and `1014031` 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..1014031`; versions inside it that are not listed, `1014006`, `1014028` and `1014030` 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,10 @@ 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.
|
|
55
59
|
# 1014013, additive native profile registry and validated-inherent UTC clock.
|
|
56
60
|
# 1014012, primary-admission pause candidate with unchanged receipt/offer wire bytes.
|
|
57
61
|
# 1014011, funding-time economic snapshots and the v5 empty-state gate (#3132).
|
|
@@ -85,9 +89,10 @@ SUPPORTED_SPEC_VERSIONS = (
|
|
|
85
89
|
1_014_026,
|
|
86
90
|
1_014_027,
|
|
87
91
|
1_014_029,
|
|
92
|
+
1_014_031,
|
|
88
93
|
)
|
|
89
94
|
# Compatibility envelope only; admission requires membership in SUPPORTED_SPEC_VERSIONS.
|
|
90
|
-
SUPPORTED_SPEC_VERSION_RANGE = (1_013_000,
|
|
95
|
+
SUPPORTED_SPEC_VERSION_RANGE = (1_013_000, 1_014_031)
|
|
91
96
|
|
|
92
97
|
|
|
93
98
|
def assert_supported_runtime(runtime: dict[str, Any]) -> None:
|
|
@@ -20,6 +20,7 @@ REJECTED_VERSIONS = [
|
|
|
20
20
|
1_014_006,
|
|
21
21
|
1_014_028,
|
|
22
22
|
1_014_030,
|
|
23
|
+
1_014_032,
|
|
23
24
|
None,
|
|
24
25
|
"1014000",
|
|
25
26
|
True,
|
|
@@ -58,8 +59,9 @@ def test_qualified_versions_and_envelope():
|
|
|
58
59
|
1_014_026,
|
|
59
60
|
1_014_027,
|
|
60
61
|
1_014_029,
|
|
62
|
+
1_014_031,
|
|
61
63
|
)
|
|
62
|
-
assert SUPPORTED_SPEC_VERSION_RANGE == (1_013_000,
|
|
64
|
+
assert SUPPORTED_SPEC_VERSION_RANGE == (1_013_000, 1_014_031)
|
|
63
65
|
|
|
64
66
|
|
|
65
67
|
@pytest.fixture
|
|
@@ -122,6 +124,7 @@ async def runtime_rpc():
|
|
|
122
124
|
1_014_026,
|
|
123
125
|
1_014_027,
|
|
124
126
|
1_014_029,
|
|
127
|
+
1_014_031,
|
|
125
128
|
],
|
|
126
129
|
)
|
|
127
130
|
async def test_http_accepts_supported_runtime(runtime_rpc, version):
|
|
@@ -138,7 +141,7 @@ async def test_http_rejects_unsupported_runtime_on_connect(runtime_rpc, version)
|
|
|
138
141
|
state["version"] = version
|
|
139
142
|
with pytest.raises(
|
|
140
143
|
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",
|
|
144
|
+
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.*Upgrade flop-sdk",
|
|
142
145
|
) as error:
|
|
143
146
|
await client.connect()
|
|
144
147
|
assert error.value.code == "RUNTIME_INCOMPATIBLE"
|
|
@@ -207,6 +210,7 @@ def substrate_runtime(monkeypatch):
|
|
|
207
210
|
1_014_026,
|
|
208
211
|
1_014_027,
|
|
209
212
|
1_014_029,
|
|
213
|
+
1_014_031,
|
|
210
214
|
],
|
|
211
215
|
)
|
|
212
216
|
def test_substrate_accepts_supported_runtime(substrate_runtime, version):
|
|
@@ -227,7 +231,7 @@ def test_substrate_rejects_runtime_on_connect_and_upgrade(substrate_runtime, ver
|
|
|
227
231
|
state["version"] = version
|
|
228
232
|
with pytest.raises(
|
|
229
233
|
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",
|
|
234
|
+
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.*Upgrade flop-sdk",
|
|
231
235
|
):
|
|
232
236
|
SubstrateClient()
|
|
233
237
|
close.assert_called_once()
|
|
@@ -274,6 +278,7 @@ def test_substrate_rejects_runtime_on_connect_and_upgrade(substrate_runtime, ver
|
|
|
274
278
|
1_014_026,
|
|
275
279
|
1_014_027,
|
|
276
280
|
1_014_029,
|
|
281
|
+
1_014_031,
|
|
277
282
|
],
|
|
278
283
|
)
|
|
279
284
|
async def test_http_accepts_qualified_runtime_upgrade(runtime_rpc, version):
|
|
@@ -315,6 +320,7 @@ async def test_http_accepts_qualified_runtime_upgrade(runtime_rpc, version):
|
|
|
315
320
|
1_014_026,
|
|
316
321
|
1_014_027,
|
|
317
322
|
1_014_029,
|
|
323
|
+
1_014_031,
|
|
318
324
|
],
|
|
319
325
|
)
|
|
320
326
|
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.3"
|
|
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
|