1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-21 05:48:23 +00:00
trezor-firmware/common/tests/fixtures/solana/sign_tx.system_program.json
2023-12-05 22:11:41 +01:00

587 lines
18 KiB
JSON

{
"setup": {
"mnemonic": "all all all all all all all all all all all all",
"passphrase": ""
},
"tests": [
{
"description": "Create Account",
"parameters": {
"address": "m/44'/501'/0'/0'",
"construct": {
"version": null,
"header": {
"signers": 2,
"readonly_signers": 0,
"readonly_non_signers": 1
},
"accounts": [
"14CCvQzQzHCVgZM3j9soPnXuJXh1RmCfwLVUcdfbZVBS",
"AeDJ1BqA7ruBbd6mEcS1QNxFbT8FQbiBVuN9NqK94Taq",
"11111111111111111111111111111111"
],
"blockhash": "2p4rYZAaFfV5Uk5ugdG5KPNty9Uda9B3b4gWB8qnNqak",
"instructions": [
{
"program_index": 2,
"accounts": {
"funding_account": 0,
"new_account": 1
},
"data": {
"instruction_id": 0,
"lamports": 20000000,
"space": 1000,
"owner": "11111111111111111111111111111111"
}
}
],
"luts": []
}
},
"result": {
"expected_signature": "aa5d16f3f67860182ac8170c0a10941c1bf2ae788ea0e9a06f09d8a8be0543bc7d9d1d485f7caed99653a5bb17d9ad70768c2fca14f80c7ab79aad19f6c81a00"
}
},
{
"description": "Assign",
"parameters": {
"address": "m/44'/501'/0'/0'",
"construct": {
"version": null,
"header": {
"signers": 1,
"readonly_signers": 0,
"readonly_non_signers": 1
},
"accounts": [
"14CCvQzQzHCVgZM3j9soPnXuJXh1RmCfwLVUcdfbZVBS",
"11111111111111111111111111111111"
],
"blockhash": "2p4rYZAaFfV5Uk5ugdG5KPNty9Uda9B3b4gWB8qnNqak",
"instructions": [
{
"program_index": 1,
"accounts": {
"assigned_account": 0
},
"data": {
"instruction_id": 1,
"owner": "11111111111111111111111111111111"
}
}
],
"luts": []
}
},
"result": {
"expected_signature": "d533f38bcc0b302d2353ee1883217f7cdb283b749ca1b7251b365a4e8c8742b49e8847b759ab845abe2d0b37f4cc916a91a566e40559f5679794cb458be1750e"
}
},
{
"description": "Transfer",
"parameters": {
"address": "m/44'/501'/0'/0'",
"construct": {
"version": null,
"header": {
"signers": 1,
"readonly_signers": 0,
"readonly_non_signers": 1
},
"accounts": [
"14CCvQzQzHCVgZM3j9soPnXuJXh1RmCfwLVUcdfbZVBS",
"ETxHeBBcuw9Yu4dGuP3oXrD12V5RECvmi8ogQ9PkjyVF",
"11111111111111111111111111111111"
],
"blockhash": "2p4rYZAaFfV5Uk5ugdG5KPNty9Uda9B3b4gWB8qnNqak",
"instructions": [
{
"program_index": 2,
"accounts": {
"funding_account": 0,
"recipient_account": 1
},
"data": {
"instruction_id": 2,
"lamports": 200000
}
}
],
"luts": []
}
},
"result": {
"expected_signature": "7d9b551808a878b6dd6255c7b775b7afcd2edb011a1918611d9b72c3fd2f5fe89d8bf30ea41fa6dc91f33e20e9eb07527aadf1e082eb746880167d102a76270c"
}
},
{
"description": "Create Account With Seed",
"parameters": {
"address": "m/44'/501'/0'/0'",
"construct": {
"version": null,
"header": {
"signers": 1,
"readonly_signers": 0,
"readonly_non_signers": 1
},
"accounts": [
"14CCvQzQzHCVgZM3j9soPnXuJXh1RmCfwLVUcdfbZVBS",
"ByFfsNTE1vJcgfqFmdJz8gXVHbDuNUnKXunSpm1hjKxU",
"11111111111111111111111111111111"
],
"blockhash": "2p4rYZAaFfV5Uk5ugdG5KPNty9Uda9B3b4gWB8qnNqak",
"instructions": [
{
"program_index": 2,
"accounts": {
"funding_account": 0,
"created_account": 1
},
"data": {
"instruction_id": 3,
"base": "14CCvQzQzHCVgZM3j9soPnXuJXh1RmCfwLVUcdfbZVBS",
"seed": {
"length": 6,
"chars": "seed:1"
},
"lamports": 20000000,
"space": 0,
"owner": "11111111111111111111111111111111"
}
}
],
"luts": []
}
},
"result": {
"expected_signature": "7a84a43d6397d8e8ae8fc508c78a02edde84e9a027e74545e9fa338757ffee165adc41c32f56b023fa6e1ce1f0b6e5a2723ddcf84e2bac2bfaccad786d1f310a"
}
},
{
"description": "Advance Nonce Account",
"parameters": {
"address": "m/44'/501'/0'/0'",
"construct": {
"version": null,
"header": {
"signers": 1,
"readonly_signers": 0,
"readonly_non_signers": 2
},
"accounts": [
"14CCvQzQzHCVgZM3j9soPnXuJXh1RmCfwLVUcdfbZVBS",
"AeDJ1BqA7ruBbd6mEcS1QNxFbT8FQbiBVuN9NqK94Taq",
"11111111111111111111111111111111",
"SysvarRecentB1ockHashes11111111111111111111"
],
"blockhash": "2p4rYZAaFfV5Uk5ugdG5KPNty9Uda9B3b4gWB8qnNqak",
"instructions": [
{
"program_index": 2,
"accounts": {
"nonce_account": 1,
"recent_blockhashes_sysvar": 3,
"nonce_authority": 0
},
"data": {
"instruction_id": 4
}
}
],
"luts": []
}
},
"result": {
"expected_signature": "1e87379f8d601f582c23f84daad03450161c37ab4b64822fa845821e2ed5df5e7c922e8e3a87f51f986252016a5ceef0d443542f0c1ca8479cf4d62aa80cfd09"
}
},
{
"description": "Withdraw Nonce Account",
"parameters": {
"address": "m/44'/501'/0'/0'",
"construct": {
"version": null,
"header": {
"signers": 1,
"readonly_signers": 0,
"readonly_non_signers": 3
},
"accounts": [
"14CCvQzQzHCVgZM3j9soPnXuJXh1RmCfwLVUcdfbZVBS",
"AeDJ1BqA7ruBbd6mEcS1QNxFbT8FQbiBVuN9NqK94Taq",
"11111111111111111111111111111111",
"SysvarRecentB1ockHashes11111111111111111111",
"SysvarRent111111111111111111111111111111111"
],
"blockhash": "2p4rYZAaFfV5Uk5ugdG5KPNty9Uda9B3b4gWB8qnNqak",
"instructions": [
{
"program_index": 2,
"accounts": {
"nonce_account": 1,
"recipient_account": 0,
"recent_blockhashes_sysvar": 3,
"rent_sysvar": 4,
"nonce_authority": 0
},
"data": {
"instruction_id": 5,
"lamports": 200000
}
}
],
"luts": []
}
},
"result": {
"expected_signature": "c43d76dc84a56f5014c7f853a6a7ed41c094cec70c26b602703ec50f5bfe525b96ddcbf8f69eae16d6290f5aca5096e3c5a515d1742d975000883a1c3d04390e"
}
},
{
"description": "Initialize Nonce Account",
"parameters": {
"address": "m/44'/501'/0'/0'",
"construct": {
"version": null,
"header": {
"signers": 1,
"readonly_signers": 0,
"readonly_non_signers": 3
},
"accounts": [
"14CCvQzQzHCVgZM3j9soPnXuJXh1RmCfwLVUcdfbZVBS",
"AeDJ1BqA7ruBbd6mEcS1QNxFbT8FQbiBVuN9NqK94Taq",
"11111111111111111111111111111111",
"SysvarRecentB1ockHashes11111111111111111111",
"SysvarRent111111111111111111111111111111111"
],
"blockhash": "2p4rYZAaFfV5Uk5ugdG5KPNty9Uda9B3b4gWB8qnNqak",
"instructions": [
{
"program_index": 2,
"accounts": {
"nonce_account": 1,
"recent_blockhashes_sysvar": 3,
"rent_sysvar": 4
},
"data": {
"instruction_id": 6,
"nonce_authority": "14CCvQzQzHCVgZM3j9soPnXuJXh1RmCfwLVUcdfbZVBS"
}
}
],
"luts": []
}
},
"result": {
"expected_signature": "7dc7f032ee3ca32a52b11c8f66e414058b6d14a5b21799a4e44201a4cc1394ed8e9237b1e9bb81f56ccf4bdef3034d9fccb257e58945fce3f63f2539039f1306"
}
},
{
"description": "Authorize Nonce Account",
"parameters": {
"address": "m/44'/501'/0'/0'",
"construct": {
"version": null,
"header": {
"signers": 1,
"readonly_signers": 0,
"readonly_non_signers": 1
},
"accounts": [
"14CCvQzQzHCVgZM3j9soPnXuJXh1RmCfwLVUcdfbZVBS",
"AeDJ1BqA7ruBbd6mEcS1QNxFbT8FQbiBVuN9NqK94Taq",
"11111111111111111111111111111111"
],
"blockhash": "2p4rYZAaFfV5Uk5ugdG5KPNty9Uda9B3b4gWB8qnNqak",
"instructions": [
{
"program_index": 2,
"accounts": {
"nonce_account": 1,
"nonce_authority": 0
},
"data": {
"instruction_id": 7,
"nonce_authority": "ETxHeBBcuw9Yu4dGuP3oXrD12V5RECvmi8ogQ9PkjyVF"
}
}
],
"luts": []
}
},
"result": {
"expected_signature": "cba3c4a5f24c775fc4e39e4e01395caeec0749a6ed0ab1e2beae3db07ba69f22d71cd4c1f11f743d0d394e8d297fc57788a916d1791eb9acae0533e8b125ba03"
}
},
{
"description": "Allocate",
"parameters": {
"address": "m/44'/501'/0'/0'",
"construct": {
"version": null,
"header": {
"signers": 1,
"readonly_signers": 0,
"readonly_non_signers": 1
},
"accounts": [
"14CCvQzQzHCVgZM3j9soPnXuJXh1RmCfwLVUcdfbZVBS",
"11111111111111111111111111111111"
],
"blockhash": "2p4rYZAaFfV5Uk5ugdG5KPNty9Uda9B3b4gWB8qnNqak",
"instructions": [
{
"program_index": 1,
"accounts": {
"new_account": 0
},
"data": {
"instruction_id": 8,
"space": 200
}
}
],
"luts": []
}
},
"result": {
"expected_signature": "c910c3be30a17014e31e301c24516d44c8d8fc346de9e5e90505ed97c7c62fd1012353d9bb2a24bf254aa7b6627606a28f0e0402547517e506c873bda218a305"
}
},
{
"description": "Allocate With Seed",
"parameters": {
"address": "m/44'/501'/0'/0'",
"construct": {
"version": null,
"header": {
"signers": 1,
"readonly_signers": 0,
"readonly_non_signers": 1
},
"accounts": [
"14CCvQzQzHCVgZM3j9soPnXuJXh1RmCfwLVUcdfbZVBS",
"ByFfsNTE1vJcgfqFmdJz8gXVHbDuNUnKXunSpm1hjKxU",
"11111111111111111111111111111111"
],
"blockhash": "2p4rYZAaFfV5Uk5ugdG5KPNty9Uda9B3b4gWB8qnNqak",
"instructions": [
{
"program_index": 2,
"accounts": {
"allocated_account": 1,
"base_account": 0
},
"data": {
"instruction_id": 9,
"base": "14CCvQzQzHCVgZM3j9soPnXuJXh1RmCfwLVUcdfbZVBS",
"seed": {
"length": 6,
"chars": "seed:0"
},
"space": 22200,
"owner": "11111111111111111111111111111111"
}
}
],
"luts": []
}
},
"result": {
"expected_signature": "6beb42dfccb317bae7fa4e8ad09e218d27853686207d25b8462f8760c918a21e44c387a55b6750727305eaa995461eb42a4a17aec8d6d7257b45642ed457da07"
}
},
{
"description": "Assign With Seed",
"parameters": {
"address": "m/44'/501'/0'/0'",
"construct": {
"version": null,
"header": {
"signers": 1,
"readonly_signers": 0,
"readonly_non_signers": 1
},
"accounts": [
"14CCvQzQzHCVgZM3j9soPnXuJXh1RmCfwLVUcdfbZVBS",
"ByFfsNTE1vJcgfqFmdJz8gXVHbDuNUnKXunSpm1hjKxU",
"11111111111111111111111111111111"
],
"blockhash": "2p4rYZAaFfV5Uk5ugdG5KPNty9Uda9B3b4gWB8qnNqak",
"instructions": [
{
"program_index": 2,
"accounts": {
"assigned_account": 1,
"base_account": 0
},
"data": {
"instruction_id": 10,
"base": "14CCvQzQzHCVgZM3j9soPnXuJXh1RmCfwLVUcdfbZVBS",
"seed": {
"length": 6,
"chars": "seed:0"
},
"owner": "11111111111111111111111111111111"
}
}
],
"luts": []
}
},
"result": {
"expected_signature": "3bf731a9508faa94e194c4d0475a266bf19548ac5292a5fc817a62dee2798313a4a8eec118c6648efd7021e684bf3238eda56279af47cbc8567133acfcbfc804"
}
},
{
"description": "Transfer With Seed",
"parameters": {
"address": "m/44'/501'/0'/0'",
"construct": {
"version": null,
"header": {
"signers": 1,
"readonly_signers": 0,
"readonly_non_signers": 1
},
"accounts": [
"14CCvQzQzHCVgZM3j9soPnXuJXh1RmCfwLVUcdfbZVBS",
"ByFfsNTE1vJcgfqFmdJz8gXVHbDuNUnKXunSpm1hjKxU",
"11111111111111111111111111111111"
],
"blockhash": "2p4rYZAaFfV5Uk5ugdG5KPNty9Uda9B3b4gWB8qnNqak",
"instructions": [
{
"program_index": 2,
"accounts": {
"funding_account": 0,
"base_account": 0,
"recipient_account": 1
},
"data": {
"instruction_id": 11,
"lamports": 200000,
"from_seed": {
"length": 6,
"chars": "seed:0"
},
"from_owner": "11111111111111111111111111111111"
}
}
],
"luts": []
}
},
"result": {
"expected_signature": "18e6373c7f0374a0901c72957e6931a45bc8572493c591ff0dad975762fb03dafbc1a99e903291bf5c0de665fe961951e43d5fa0c3f48dfdc6e1e2e7c471310b"
}
},
{
"description": "Lookup tables",
"parameters": {
"address": "m/44'/501'/0'/0'",
"construct": {
"version": 0,
"header": {
"signers": 1,
"readonly_signers": 0,
"readonly_non_signers": 1
},
"accounts": [
"14CCvQzQzHCVgZM3j9soPnXuJXh1RmCfwLVUcdfbZVBS",
"11111111111111111111111111111111"
],
"blockhash": "2p4rYZAaFfV5Uk5ugdG5KPNty9Uda9B3b4gWB8qnNqak",
"instructions": [
{
"program_index": 1,
"accounts": {
"funding_account": 0,
"recipient_account": 2
},
"data": {
"instruction_id": 2,
"lamports": 20000000
}
},
{
"program_index": 1,
"accounts": {
"funding_account": 0,
"recipient_account": 3
},
"data": {
"instruction_id": 2,
"lamports": 30000000
}
},
{
"program_index": 1,
"accounts": {
"funding_account": 0,
"recipient_account": 4
},
"data": {
"instruction_id": 2,
"lamports": 40000000
}
}
],
"luts": [
{
"account": "AeDJ1BqA7ruBbd6mEcS1QNxFbT8FQbiBVuN9NqK94Taq",
"readwrite": [0, 1],
"readonly": []
},
{
"account": "H8JEG2wjU2LnjXJUVkivEokcK1pmtHXTyoGeDaBtazCy",
"readwrite": [0],
"readonly": []
}
]
}
},
"result": {
"expected_signature": "18cfc28c0119e9045b3ead4e82cfee79450ecda7e18835d0461278c1df0e6dee4c75ad01fab32c3d395390703fc755e68f8de1832e8b3f8503c0fbc82359af0b"
}
},
{
"description": "Upgrade Nonce",
"parameters": {
"address": "m/44'/501'/0'/0'",
"construct": {
"version": null,
"header": {
"signers": 1,
"readonly_signers": 0,
"readonly_non_signers": 0
},
"accounts": [
"14CCvQzQzHCVgZM3j9soPnXuJXh1RmCfwLVUcdfbZVBS",
"11111111111111111111111111111111"
],
"blockhash": "2p4rYZAaFfV5Uk5ugdG5KPNty9Uda9B3b4gWB8qnNqak",
"instructions": [
{
"program_index": 1,
"accounts": {
"nonce_account": 0
},
"data": {
"instruction_id": 12
}
}
],
"luts": []
}
},
"result": {
"expected_signature": "94fc370a351e845aae30832ee8101d6859c0fecff4b88cb7ec2faae1f30f930564724093a6ef924f2584898fbf6c3e54101eeaa9a7b04baab421d961341f220f"
}
}
]
}