1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 07:28:10 +00:00

chore(cardano): format test fixture files

This commit is contained in:
gabrielkerekes 2021-06-30 14:20:08 +02:00 committed by matejcik
parent 28f0f60295
commit 500d29f43b
7 changed files with 23 additions and 22 deletions

View File

@ -7,7 +7,7 @@
{
"parameters": {
"path": "m/44'/1815'/0'/0/0",
"address_type":"byron",
"address_type": "byron",
"protocol_magic": 764824073,
"network_id": 1
},
@ -16,7 +16,7 @@
}
},
{
"parameters":{
"parameters": {
"path": "m/44'/1815'/0'/0/1",
"address_type": "byron",
"protocol_magic": 764824073,
@ -33,7 +33,7 @@
"protocol_magic": 764824073,
"network_id": 1
},
"result": {
"result": {
"expected_address": "Ae2tdPwUPEZFm6Y7aPZGKMyMAK16yA5pWWKU9g73ncUQNZsAjzjhszenCsq"
}
},
@ -49,7 +49,7 @@
}
},
{
"parameters":{
"parameters": {
"path": "m/44'/1815'/0'/0/1",
"address_type": "byron",
"protocol_magic": 42,
@ -66,7 +66,7 @@
"protocol_magic": 42,
"network_id": 0
},
"result": {
"result": {
"expected_address": "2657WMsDfac7hr1ioJGr6g7r6JRx4r1My8Rj91tcPTeVjJDpfBYKURrPG2zVLx2Sq"
}
}

View File

@ -1,9 +1,9 @@
{
"setup": {
"mnemonic": [
"extra extend academic bishop cricket bundle tofu goat apart victim enlarge program behavior permit course armed jerky faint language modern",
"extra extend academic acne away best indicate impact square oasis prospect painting voting guest either argue username racism enemy eclipse",
"extra extend academic arcade born dive legal hush gross briefing talent drug much home firefly toxic analysis idea umbrella slice"
"extra extend academic bishop cricket bundle tofu goat apart victim enlarge program behavior permit course armed jerky faint language modern",
"extra extend academic acne away best indicate impact square oasis prospect painting voting guest either argue username racism enemy eclipse",
"extra extend academic arcade born dive legal hush gross briefing talent drug much home firefly toxic analysis idea umbrella slice"
],
"passphrase": "TREZOR"
},
@ -11,11 +11,11 @@
{
"parameters": {
"path": "m/44'/1815'/0'/0/0",
"address_type":"byron",
"address_type": "byron",
"protocol_magic": 764824073,
"network_id":1
"network_id": 1
},
"result":{
"result": {
"expected_address": "Ae2tdPwUPEYxF9NAMNdd3v2LZoMeWp7gCZiDb6bZzFQeeVASzoP7HC4V9s6"
}
},

View File

@ -7,7 +7,7 @@
{
"parameters": {
"path": "m/1852'/1815'/4'/0/0",
"address_type":"base",
"address_type": "base",
"staking_key_hash": "1bc428e4720702ebd5dab4fb175324c192dc9bb76cc5da956e3c8dff",
"network_id": 1,
"protocol_magic": 764824073

View File

@ -5,10 +5,10 @@
},
"tests": [
{
"parameters":{
"parameters": {
"path": "m/44'/1815'/0'"
},
"result":{
"result": {
"public_key": "c0fce1839f1a84c4e770293ac2f5e0875141b29017b7f56ab135352d00ad6966",
"chain_code": "07faa161c9f5464315d2855f70fdf1431d5fa39eb838767bf17b69772137452f"
}

View File

@ -1,9 +1,9 @@
{
"setup": {
"mnemonic": [
"extra extend academic bishop cricket bundle tofu goat apart victim enlarge program behavior permit course armed jerky faint language modern",
"extra extend academic acne away best indicate impact square oasis prospect painting voting guest either argue username racism enemy eclipse",
"extra extend academic arcade born dive legal hush gross briefing talent drug much home firefly toxic analysis idea umbrella slice"
"extra extend academic bishop cricket bundle tofu goat apart victim enlarge program behavior permit course armed jerky faint language modern",
"extra extend academic acne away best indicate impact square oasis prospect painting voting guest either argue username racism enemy eclipse",
"extra extend academic arcade born dive legal hush gross briefing talent drug much home firefly toxic analysis idea umbrella slice"
],
"passphrase": "TREZOR"
},
@ -21,7 +21,7 @@
"parameters": {
"path": "m/44'/1815'/0'/0/1"
},
"result": {
"result": {
"public_key": "24c4fe188a39103db88818bc191fd8571eae7b284ebcbdf2462bde97b058a95c",
"chain_code": "6f7a744035f4b3ddb8f861c18446169643cc3ae85e271b4b4f0eda05cf84c65b"
}
@ -30,7 +30,7 @@
"parameters": {
"path": "m/44'/1815'/0'/0/2"
},
"result": {
"result": {
"public_key": "831a63d381a8dab1e6e1ee991a4300fc70687aae5f97f4fcf92ed1b6c2bd99de",
"chain_code": "672d6af4707aba201b7940231e83dd357f92f8851b3dfdc224ef311e1b64cdeb"
}

View File

@ -1178,7 +1178,8 @@
]
}
},
{"description": "transaction with everything set except pool registration certificate",
{
"description": "transaction with everything set except pool registration certificate",
"parameters": {
"protocol_magic": 764824073,
"network_id": 1,

View File

@ -34,7 +34,7 @@ pytestmark = [
"cardano/sign_tx.slip39.json",
)
def test_cardano_sign_tx(client, parameters, result):
signing_mode = cardano.SIGNING_MODE_IDS[parameters["signing_mode"]]
signing_mode = messages.CardanoTxSigningMode.__members__[parameters["signing_mode"]]
inputs = [cardano.parse_input(i) for i in parameters["inputs"]]
outputs = [cardano.parse_output(o) for o in parameters["outputs"]]
certificates = [cardano.parse_certificate(c) for c in parameters["certificates"]]
@ -70,7 +70,7 @@ def test_cardano_sign_tx(client, parameters, result):
"cardano/sign_tx.failed.json", "cardano/sign_tx_stake_pool_registration.failed.json"
)
def test_cardano_sign_tx_failed(client, parameters, result):
signing_mode = cardano.SIGNING_MODE_IDS[parameters["signing_mode"]]
signing_mode = messages.CardanoTxSigningMode.__members__[parameters["signing_mode"]]
inputs = [cardano.parse_input(i) for i in parameters["inputs"]]
outputs = [cardano.parse_output(o) for o in parameters["outputs"]]
certificates = [cardano.parse_certificate(c) for c in parameters["certificates"]]