substrate-interface 1.7.7__tar.gz → 1.7.9__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.
- {substrate-interface-1.7.7/substrate_interface.egg-info → substrate-interface-1.7.9}/PKG-INFO +1 -1
- {substrate-interface-1.7.7 → substrate-interface-1.7.9}/setup.py +1 -1
- {substrate-interface-1.7.7 → substrate-interface-1.7.9/substrate_interface.egg-info}/PKG-INFO +1 -1
- {substrate-interface-1.7.7 → substrate-interface-1.7.9}/substrate_interface.egg-info/requires.txt +1 -1
- {substrate-interface-1.7.7 → substrate-interface-1.7.9}/substrateinterface/base.py +17 -3
- {substrate-interface-1.7.7 → substrate-interface-1.7.9}/test/test_create_extrinsics.py +2 -2
- {substrate-interface-1.7.7 → substrate-interface-1.7.9}/LICENSE +0 -0
- {substrate-interface-1.7.7 → substrate-interface-1.7.9}/README.md +0 -0
- {substrate-interface-1.7.7 → substrate-interface-1.7.9}/setup.cfg +0 -0
- {substrate-interface-1.7.7 → substrate-interface-1.7.9}/substrate_interface.egg-info/SOURCES.txt +0 -0
- {substrate-interface-1.7.7 → substrate-interface-1.7.9}/substrate_interface.egg-info/dependency_links.txt +0 -0
- {substrate-interface-1.7.7 → substrate-interface-1.7.9}/substrate_interface.egg-info/top_level.txt +0 -0
- {substrate-interface-1.7.7 → substrate-interface-1.7.9}/substrateinterface/__init__.py +0 -0
- {substrate-interface-1.7.7 → substrate-interface-1.7.9}/substrateinterface/constants.py +0 -0
- {substrate-interface-1.7.7 → substrate-interface-1.7.9}/substrateinterface/contracts.py +0 -0
- {substrate-interface-1.7.7 → substrate-interface-1.7.9}/substrateinterface/exceptions.py +0 -0
- {substrate-interface-1.7.7 → substrate-interface-1.7.9}/substrateinterface/extensions.py +0 -0
- {substrate-interface-1.7.7 → substrate-interface-1.7.9}/substrateinterface/interfaces.py +0 -0
- {substrate-interface-1.7.7 → substrate-interface-1.7.9}/substrateinterface/key.py +0 -0
- {substrate-interface-1.7.7 → substrate-interface-1.7.9}/substrateinterface/keypair.py +0 -0
- {substrate-interface-1.7.7 → substrate-interface-1.7.9}/substrateinterface/storage.py +0 -0
- {substrate-interface-1.7.7 → substrate-interface-1.7.9}/substrateinterface/utils/__init__.py +0 -0
- {substrate-interface-1.7.7 → substrate-interface-1.7.9}/substrateinterface/utils/caching.py +0 -0
- {substrate-interface-1.7.7 → substrate-interface-1.7.9}/substrateinterface/utils/ecdsa_helpers.py +0 -0
- {substrate-interface-1.7.7 → substrate-interface-1.7.9}/substrateinterface/utils/encrypted_json.py +0 -0
- {substrate-interface-1.7.7 → substrate-interface-1.7.9}/substrateinterface/utils/hasher.py +0 -0
- {substrate-interface-1.7.7 → substrate-interface-1.7.9}/substrateinterface/utils/ss58.py +0 -0
- {substrate-interface-1.7.7 → substrate-interface-1.7.9}/test/test_block.py +0 -0
- {substrate-interface-1.7.7 → substrate-interface-1.7.9}/test/test_contracts.py +0 -0
- {substrate-interface-1.7.7 → substrate-interface-1.7.9}/test/test_extension_interface.py +0 -0
- {substrate-interface-1.7.7 → substrate-interface-1.7.9}/test/test_helper_functions.py +0 -0
- {substrate-interface-1.7.7 → substrate-interface-1.7.9}/test/test_init.py +0 -0
- {substrate-interface-1.7.7 → substrate-interface-1.7.9}/test/test_keypair.py +0 -0
- {substrate-interface-1.7.7 → substrate-interface-1.7.9}/test/test_query.py +0 -0
- {substrate-interface-1.7.7 → substrate-interface-1.7.9}/test/test_query_map.py +0 -0
- {substrate-interface-1.7.7 → substrate-interface-1.7.9}/test/test_rpc_compatibility.py +0 -0
- {substrate-interface-1.7.7 → substrate-interface-1.7.9}/test/test_runtime_call.py +0 -0
- {substrate-interface-1.7.7 → substrate-interface-1.7.9}/test/test_ss58.py +0 -0
- {substrate-interface-1.7.7 → substrate-interface-1.7.9}/test/test_subscriptions.py +0 -0
- {substrate-interface-1.7.7 → substrate-interface-1.7.9}/test/test_type_registry.py +0 -0
|
@@ -188,7 +188,7 @@ setup(
|
|
|
188
188
|
'eth_utils>=1.3.0,<3',
|
|
189
189
|
'pycryptodome>=3.11.0,<4',
|
|
190
190
|
'PyNaCl>=1.0.1,<2',
|
|
191
|
-
'scalecodec>=1.2.
|
|
191
|
+
'scalecodec>=1.2.10,<1.3',
|
|
192
192
|
'py-sr25519-bindings>=0.2.0,<1',
|
|
193
193
|
'py-ed25519-zebra-bindings>=1.0,<2',
|
|
194
194
|
'py-bip39-bindings>=0.1.9,<1'
|
|
@@ -1490,6 +1490,11 @@ class SubstrateInterface:
|
|
|
1490
1490
|
['asset_id', signed_extensions['ChargeAssetTxPayment']['extrinsic']]
|
|
1491
1491
|
)
|
|
1492
1492
|
|
|
1493
|
+
if 'CheckMetadataHash' in signed_extensions:
|
|
1494
|
+
signature_payload.type_mapping.append(
|
|
1495
|
+
['mode', signed_extensions['CheckMetadataHash']['extrinsic']]
|
|
1496
|
+
)
|
|
1497
|
+
|
|
1493
1498
|
if 'CheckSpecVersion' in signed_extensions:
|
|
1494
1499
|
signature_payload.type_mapping.append(
|
|
1495
1500
|
['spec_version', signed_extensions['CheckSpecVersion']['additional_signed']]
|
|
@@ -1515,6 +1520,11 @@ class SubstrateInterface:
|
|
|
1515
1520
|
['block_hash', signed_extensions['CheckEra']['additional_signed']]
|
|
1516
1521
|
)
|
|
1517
1522
|
|
|
1523
|
+
if 'CheckMetadataHash' in signed_extensions:
|
|
1524
|
+
signature_payload.type_mapping.append(
|
|
1525
|
+
['metadata_hash', signed_extensions['CheckMetadataHash']['additional_signed']]
|
|
1526
|
+
)
|
|
1527
|
+
|
|
1518
1528
|
if include_call_length:
|
|
1519
1529
|
|
|
1520
1530
|
length_obj = self.runtime_config.create_scale_object('Bytes')
|
|
@@ -1532,7 +1542,9 @@ class SubstrateInterface:
|
|
|
1532
1542
|
'genesis_hash': genesis_hash,
|
|
1533
1543
|
'block_hash': block_hash,
|
|
1534
1544
|
'transaction_version': self.transaction_version,
|
|
1535
|
-
'asset_id': {'tip': tip, 'asset_id': tip_asset_id}
|
|
1545
|
+
'asset_id': {'tip': tip, 'asset_id': tip_asset_id},
|
|
1546
|
+
'metadata_hash': None,
|
|
1547
|
+
'mode': 'Disabled'
|
|
1536
1548
|
}
|
|
1537
1549
|
|
|
1538
1550
|
signature_payload.encode(payload_dict)
|
|
@@ -1624,7 +1636,8 @@ class SubstrateInterface:
|
|
|
1624
1636
|
'nonce': nonce,
|
|
1625
1637
|
'era': era,
|
|
1626
1638
|
'tip': tip,
|
|
1627
|
-
'asset_id': {'tip': tip, 'asset_id': tip_asset_id}
|
|
1639
|
+
'asset_id': {'tip': tip, 'asset_id': tip_asset_id},
|
|
1640
|
+
'mode': 'Disabled'
|
|
1628
1641
|
}
|
|
1629
1642
|
|
|
1630
1643
|
# Check if ExtrinsicSignature is MultiSignature, otherwise omit signature_version
|
|
@@ -2355,7 +2368,8 @@ class SubstrateInterface:
|
|
|
2355
2368
|
|
|
2356
2369
|
engine = bytes(log_digest[1][0])
|
|
2357
2370
|
# Retrieve validator set
|
|
2358
|
-
|
|
2371
|
+
parent_hash = block_data['header']['parentHash']
|
|
2372
|
+
validator_set = self.query("Session", "Validators", block_hash=parent_hash)
|
|
2359
2373
|
|
|
2360
2374
|
if engine == b'BABE':
|
|
2361
2375
|
babe_predigest = self.runtime_config.create_scale_object(
|
|
@@ -192,7 +192,7 @@ class CreateExtrinsicsTestCase(unittest.TestCase):
|
|
|
192
192
|
call_module='System',
|
|
193
193
|
call_function='remark',
|
|
194
194
|
call_params={
|
|
195
|
-
'remark': '0x' + ('01' *
|
|
195
|
+
'remark': '0x' + ('01' * 175)
|
|
196
196
|
}
|
|
197
197
|
)
|
|
198
198
|
|
|
@@ -206,7 +206,7 @@ class CreateExtrinsicsTestCase(unittest.TestCase):
|
|
|
206
206
|
call_module='System',
|
|
207
207
|
call_function='remark',
|
|
208
208
|
call_params={
|
|
209
|
-
'remark': '0x' + ('01' *
|
|
209
|
+
'remark': '0x' + ('01' * 176)
|
|
210
210
|
}
|
|
211
211
|
)
|
|
212
212
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{substrate-interface-1.7.7 → substrate-interface-1.7.9}/substrate_interface.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{substrate-interface-1.7.7 → substrate-interface-1.7.9}/substrate_interface.egg-info/top_level.txt
RENAMED
|
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
|
{substrate-interface-1.7.7 → substrate-interface-1.7.9}/substrateinterface/utils/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{substrate-interface-1.7.7 → substrate-interface-1.7.9}/substrateinterface/utils/ecdsa_helpers.py
RENAMED
|
File without changes
|
{substrate-interface-1.7.7 → substrate-interface-1.7.9}/substrateinterface/utils/encrypted_json.py
RENAMED
|
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
|