1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-29 17:48:10 +00:00
trezor-firmware/common/tests/fixtures/solana/sign_tx.compute_budget_program.json

354 lines
11 KiB
JSON

{
"setup": {
"mnemonic": "all all all all all all all all all all all all",
"passphrase": ""
},
"tests": [
{
"description": "Transfer With Compute Budget",
"parameters": {
"address": "m/44'/501'/0'/0'",
"construct": {
"version": null,
"header": {
"signers": 1,
"readonly_signers": 0,
"readonly_non_signers": 2
},
"accounts": [
"14CCvQzQzHCVgZM3j9soPnXuJXh1RmCfwLVUcdfbZVBS",
"ETxHeBBcuw9Yu4dGuP3oXrD12V5RECvmi8ogQ9PkjyVF",
"11111111111111111111111111111111",
"ComputeBudget111111111111111111111111111111"
],
"blockhash": "2p4rYZAaFfV5Uk5ugdG5KPNty9Uda9B3b4gWB8qnNqak",
"instructions": [
{
"program_index": 3,
"accounts": {},
"data": {
"instruction_id": 1,
"bytes": 2048
}
},
{
"program_index": 3,
"accounts": {},
"data": {
"instruction_id": 2,
"units": 200000
}
},
{
"program_index": 3,
"accounts": {},
"data": {
"instruction_id": 3,
"lamports": 8000
}
},
{
"program_index": 2,
"accounts": {
"funding_account": 0,
"recipient_account": 1
},
"data": {
"instruction_id": 2,
"lamports": 20000000
}
}
],
"luts": []
}
},
"result": {
"expected_signature": "682ba0889bcf9061ce0560fb7f300bfce25ff8ecdc65f1904a3fced1895de5145cf3c73352a811021d930bd224d4789b3c263acc1f1ae0fb48959d8332cc1702"
}
},
{
"description": "Transfer With Compute Budget Without Heap Confirmation",
"parameters": {
"address": "m/44'/501'/0'/0'",
"construct": {
"version": null,
"header": {
"signers": 1,
"readonly_signers": 0,
"readonly_non_signers": 2
},
"accounts": [
"14CCvQzQzHCVgZM3j9soPnXuJXh1RmCfwLVUcdfbZVBS",
"ETxHeBBcuw9Yu4dGuP3oXrD12V5RECvmi8ogQ9PkjyVF",
"11111111111111111111111111111111",
"ComputeBudget111111111111111111111111111111"
],
"blockhash": "2p4rYZAaFfV5Uk5ugdG5KPNty9Uda9B3b4gWB8qnNqak",
"instructions": [
{
"program_index": 3,
"accounts": {},
"data": {
"instruction_id": 2,
"units": 200000
}
},
{
"program_index": 3,
"accounts": {},
"data": {
"instruction_id": 3,
"lamports": 8000
}
},
{
"program_index": 2,
"accounts": {
"funding_account": 0,
"recipient_account": 1
},
"data": {
"instruction_id": 2,
"lamports": 20000000
}
}
],
"luts": []
}
},
"result": {
"expected_signature": "742baf7a4e92f2d8e617512cb75b8698dd44cff6568a29c288767b31403879424ec16c0642b12081995a727f4a936ba49fc1797e900431a8c66297ba0da3c708"
}
},
{
"description": "Transfer Token With Compute Budget",
"parameters": {
"address": "m/44'/501'/0'/0'",
"construct": {
"version": null,
"header": {
"signers": 1,
"readonly_signers": 0,
"readonly_non_signers": 2
},
"accounts": [
"14CCvQzQzHCVgZM3j9soPnXuJXh1RmCfwLVUcdfbZVBS",
"74pZnim7gywyschy4MGkW6eZURv1DBXqwHTCqLRk63wz",
"92YgwqTtTWB7qY92JT6mbL2WCmhAs7LPZL4jLcizNfwx",
"GHArwcWCuk9WkUG4XKUbt935rKfmBmywbEWyFxdH3mou",
"TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
"ComputeBudget111111111111111111111111111111"
],
"blockhash": "26kt5r94ZYdTZY27nAHqjropeDf7dPS19VkZJrta7duL",
"instructions": [
{
"program_index": 5,
"accounts": {},
"data": {
"instruction_id": 1,
"bytes": 2048
}
},
{
"program_index": 5,
"accounts": {},
"data": {
"instruction_id": 2,
"units": 200000
}
},
{
"program_index": 5,
"accounts": {},
"data": {
"instruction_id": 3,
"lamports": 8000
}
},
{
"program_index": 4,
"accounts": {
"source_account": 1,
"token_mint": 3,
"destination_account": 2,
"owner": 0,
"multisig_signers": []
},
"data": {
"instruction_id": 12,
"amount": 11,
"decimals": 9
}
}
],
"luts": []
},
"additional_info": {
"token_accounts_infos": [
{
"base_address": "BkoECWJYM7w9qNZ6EGCoBtnkphWau6nZMPbPqvm4eYF4",
"token_program": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
"token_mint": "GHArwcWCuk9WkUG4XKUbt935rKfmBmywbEWyFxdH3mou",
"token_account": "92YgwqTtTWB7qY92JT6mbL2WCmhAs7LPZL4jLcizNfwx"
}
]
}
},
"result": {
"expected_signature": "72fd7f8653661847387363f1c3a0ae48edd488b655861b67062678ffc9f0b1153ceabb9494dec8bb0a897f2a1cc94130f5a64af9b270d0c9a1c93c5efd269a06"
}
},
{
"description": "Transfer Token With Compute Budget Without Heap Confrimation",
"parameters": {
"address": "m/44'/501'/0'/0'",
"construct": {
"version": null,
"header": {
"signers": 1,
"readonly_signers": 0,
"readonly_non_signers": 2
},
"accounts": [
"14CCvQzQzHCVgZM3j9soPnXuJXh1RmCfwLVUcdfbZVBS",
"74pZnim7gywyschy4MGkW6eZURv1DBXqwHTCqLRk63wz",
"92YgwqTtTWB7qY92JT6mbL2WCmhAs7LPZL4jLcizNfwx",
"GHArwcWCuk9WkUG4XKUbt935rKfmBmywbEWyFxdH3mou",
"TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
"ComputeBudget111111111111111111111111111111"
],
"blockhash": "26kt5r94ZYdTZY27nAHqjropeDf7dPS19VkZJrta7duL",
"instructions": [
{
"program_index": 5,
"accounts": {},
"data": {
"instruction_id": 2,
"units": 200000
}
},
{
"program_index": 5,
"accounts": {},
"data": {
"instruction_id": 3,
"lamports": 8000
}
},
{
"program_index": 4,
"accounts": {
"source_account": 1,
"token_mint": 3,
"destination_account": 2,
"owner": 0,
"multisig_signers": []
},
"data": {
"instruction_id": 12,
"amount": 11,
"decimals": 9
}
}
],
"luts": []
},
"additional_info": {
"token_accounts_infos": [
{
"base_address": "BkoECWJYM7w9qNZ6EGCoBtnkphWau6nZMPbPqvm4eYF4",
"token_program": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
"token_mint": "GHArwcWCuk9WkUG4XKUbt935rKfmBmywbEWyFxdH3mou",
"token_account": "92YgwqTtTWB7qY92JT6mbL2WCmhAs7LPZL4jLcizNfwx"
}
]
}
},
"result": {
"expected_signature": "1eae0dca0209903a44e38964566c87c6db4f60c68067d8e6dec22c2dfb085f98147eb8e29fbf0e1bff390730e76eadf492cc5dd916b564ae892069b3fe485c09"
}
},
{
"description": "Create Stake Account With Compute Budget",
"parameters": {
"address": "m/44'/501'/0'/0'",
"construct": {
"version": null,
"header": {
"signers": 2,
"readonly_signers": 0,
"readonly_non_signers": 3
},
"accounts": [
"14CCvQzQzHCVgZM3j9soPnXuJXh1RmCfwLVUcdfbZVBS",
"ATFXMD5cYiw9yHkvexgx3nf9LNSouEViB5BZBsgwunAv",
"11111111111111111111111111111111",
"Stake11111111111111111111111111111111111111",
"SysvarRent111111111111111111111111111111111",
"ComputeBudget111111111111111111111111111111"
],
"blockhash": "2p4rYZAaFfV5Uk5ugdG5KPNty9Uda9B3b4gWB8qnNqak",
"instructions": [
{
"program_index": 5,
"accounts": {},
"data": {
"instruction_id": 1,
"bytes": 2048
}
},
{
"program_index": 5,
"accounts": {},
"data": {
"instruction_id": 2,
"units": 200000
}
},
{
"program_index": 5,
"accounts": {},
"data": {
"instruction_id": 3,
"lamports": 8000
}
},
{
"program_index": 2,
"accounts": {
"funding_account": 0,
"new_account": 1
},
"data": {
"instruction_id": 0,
"lamports": 20000000,
"space": 1000,
"owner": "Stake11111111111111111111111111111111111111"
}
},
{
"program_index": 3,
"accounts": {
"uninitialized_stake_account": 1,
"rent_sysvar": 4
},
"data": {
"instruction_id": 0,
"staker": "14CCvQzQzHCVgZM3j9soPnXuJXh1RmCfwLVUcdfbZVBS",
"withdrawer": "14CCvQzQzHCVgZM3j9soPnXuJXh1RmCfwLVUcdfbZVBS",
"unix_timestamp": 0,
"epoch": 0,
"custodian": "11111111111111111111111111111111"
}
}
],
"luts": []
}
},
"result": {
"expected_signature": "28ea83fcee7c5e51678e04aa72d37018fd41240ec0c3262268b2dc449971bcc2705ac7d9d24515b9a2c23fe59343d9732466a2207a30ca4f4d84c0ee31451f00"
}
}
]
}