Skip to content

Commit db52093

Browse files
authored
Added Acala specific MultiSignature type (#85)
1 parent de95260 commit db52093

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

scalecodec/type_registry/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
SUPPORTED_TYPE_REGISTRY_PRESETS = ('canvas', 'default', 'development', 'kusama', 'polkadot', 'rococo', 'metadata_types',
2424
'substrate-node-template', 'westend', 'statemint', 'statemine', 'karura',
2525
'moonbeam', 'moonriver', 'moonbase-alpha', 'crust', 'polymesh-mainnet',
26-
'polymesh-testnet', 'test')
26+
'polymesh-testnet', 'acala', 'test')
2727

2828
ONLINE_BASE_URL = 'https://raw.githubusercontent.com/polkascan/py-scale-codec/v1.0/scalecodec/type_registry/'
2929

scalecodec/type_registry/acala.json

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"types": {
3+
"MultiSignature": {
4+
"type": "enum",
5+
"type_mapping": [
6+
[
7+
"Ed25519",
8+
"Ed25519Signature"
9+
],
10+
[
11+
"Sr25519",
12+
"Sr25519Signature"
13+
],
14+
[
15+
"Ecdsa",
16+
"EcdsaSignature"
17+
],
18+
[
19+
"Ethereum",
20+
"[u8; 65]"
21+
],
22+
[
23+
"Eip712",
24+
"[u8; 65]"
25+
]
26+
]
27+
}
28+
}
29+
}

0 commit comments

Comments
 (0)