0.1.0
This commit is contained in:
39
migration/khadhroony-bot2-reference/kb_rpc/tests/fixtures/get_transaction_equivalent_a.json
vendored
Normal file
39
migration/khadhroony-bot2-reference/kb_rpc/tests/fixtures/get_transaction_equivalent_a.json
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"slot": 104,
|
||||
"blockTime": null,
|
||||
"version": "legacy",
|
||||
"transaction": {
|
||||
"signatures": ["6psR5zDjAeh7HyLceXFQkWTJeRxjor8asYrG1AeUrrKVNXGE7DkvDqvVo98R9rPPQKHGm6TW3PBMSLrw2fHfxaX"],
|
||||
"message": {
|
||||
"header": {
|
||||
"numRequiredSignatures": 1,
|
||||
"numReadonlySignedAccounts": 0,
|
||||
"numReadonlyUnsignedAccounts": 1
|
||||
},
|
||||
"accountKeys": [
|
||||
"11111111111111111111111111111111",
|
||||
"ComputeBudget111111111111111111111111111111"
|
||||
],
|
||||
"recentBlockhash": "11111111111111111111111111111111",
|
||||
"instructions": [
|
||||
{"programIdIndex": 1, "accounts": [0], "data": "8", "stackHeight": null}
|
||||
],
|
||||
"addressTableLookups": []
|
||||
}
|
||||
},
|
||||
"meta": {
|
||||
"err": null,
|
||||
"fee": 5000,
|
||||
"preBalances": [10000, 1],
|
||||
"postBalances": [5000, 1],
|
||||
"innerInstructions": null,
|
||||
"logMessages": null,
|
||||
"preTokenBalances": null,
|
||||
"postTokenBalances": null,
|
||||
"rewards": null,
|
||||
"loadedAddresses": null,
|
||||
"returnData": null,
|
||||
"computeUnitsConsumed": null,
|
||||
"costUnits": null
|
||||
}
|
||||
}
|
||||
30
migration/khadhroony-bot2-reference/kb_rpc/tests/fixtures/get_transaction_equivalent_b.json
vendored
Normal file
30
migration/khadhroony-bot2-reference/kb_rpc/tests/fixtures/get_transaction_equivalent_b.json
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"meta": {
|
||||
"postBalances": [5000, 1],
|
||||
"fee": 5000,
|
||||
"status": {"Ok": null},
|
||||
"err": null,
|
||||
"preBalances": [10000, 1]
|
||||
},
|
||||
"transaction": {
|
||||
"message": {
|
||||
"instructions": [
|
||||
{"data": "8", "accounts": [0], "programIdIndex": 1}
|
||||
],
|
||||
"recentBlockhash": "11111111111111111111111111111111",
|
||||
"accountKeys": [
|
||||
"11111111111111111111111111111111",
|
||||
"ComputeBudget111111111111111111111111111111"
|
||||
],
|
||||
"header": {
|
||||
"numReadonlyUnsignedAccounts": 1,
|
||||
"numReadonlySignedAccounts": 0,
|
||||
"numRequiredSignatures": 1
|
||||
}
|
||||
},
|
||||
"signatures": ["6psR5zDjAeh7HyLceXFQkWTJeRxjor8asYrG1AeUrrKVNXGE7DkvDqvVo98R9rPPQKHGm6TW3PBMSLrw2fHfxaX"]
|
||||
},
|
||||
"blockTime": null,
|
||||
"slot": 104,
|
||||
"providerSpecificField": "ignored"
|
||||
}
|
||||
37
migration/khadhroony-bot2-reference/kb_rpc/tests/fixtures/get_transaction_legacy_failure.json
vendored
Normal file
37
migration/khadhroony-bot2-reference/kb_rpc/tests/fixtures/get_transaction_legacy_failure.json
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"blockTime": 1700000002,
|
||||
"meta": {
|
||||
"err": {"InstructionError": [0, {"Custom": 6001}]},
|
||||
"fee": 5000,
|
||||
"innerInstructions": null,
|
||||
"loadedAddresses": {"readonly": [], "writable": []},
|
||||
"logMessages": ["Program 11111111111111111111111111111111 failed: custom program error: 0x1771"],
|
||||
"postBalances": [5000, 1],
|
||||
"postTokenBalances": [],
|
||||
"preBalances": [10000, 1],
|
||||
"preTokenBalances": [],
|
||||
"rewards": null,
|
||||
"status": {"Err": {"InstructionError": [0, {"Custom": 6001}]}}
|
||||
},
|
||||
"slot": 101,
|
||||
"transaction": {
|
||||
"message": {
|
||||
"accountKeys": [
|
||||
"11111111111111111111111111111111",
|
||||
"ComputeBudget111111111111111111111111111111"
|
||||
],
|
||||
"addressTableLookups": [],
|
||||
"header": {
|
||||
"numReadonlySignedAccounts": 0,
|
||||
"numReadonlyUnsignedAccounts": 1,
|
||||
"numRequiredSignatures": 1
|
||||
},
|
||||
"instructions": [
|
||||
{"accounts": [0], "data": "4", "programIdIndex": 1}
|
||||
],
|
||||
"recentBlockhash": "11111111111111111111111111111111"
|
||||
},
|
||||
"signatures": ["3LJnHMv3ygbULcerbSFVsk2Jo33Qv8DoyUJQh2E9UZAGYXcv7Y7KGZ3hPw5F5j9C9tBhVcYqipRnNEugKV1rnSU"]
|
||||
},
|
||||
"version": "legacy"
|
||||
}
|
||||
80
migration/khadhroony-bot2-reference/kb_rpc/tests/fixtures/get_transaction_legacy_success.json
vendored
Normal file
80
migration/khadhroony-bot2-reference/kb_rpc/tests/fixtures/get_transaction_legacy_success.json
vendored
Normal file
@@ -0,0 +1,80 @@
|
||||
{
|
||||
"slot": 100,
|
||||
"blockTime": 1700000001,
|
||||
"version": "legacy",
|
||||
"transaction": {
|
||||
"signatures": ["2Ana1pUpv2ZbMVkwF5FXapYeBEjdxDatLn7nvJkhgTSXbs59SyZSx866bXirPgj8QQVB57uxHJBG1YFvkRbFj4T"],
|
||||
"message": {
|
||||
"header": {
|
||||
"numRequiredSignatures": 1,
|
||||
"numReadonlySignedAccounts": 0,
|
||||
"numReadonlyUnsignedAccounts": 2
|
||||
},
|
||||
"accountKeys": [
|
||||
"11111111111111111111111111111111",
|
||||
"ComputeBudget111111111111111111111111111111",
|
||||
"TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
|
||||
],
|
||||
"recentBlockhash": "11111111111111111111111111111111",
|
||||
"instructions": [
|
||||
{
|
||||
"programIdIndex": 1,
|
||||
"accounts": [0],
|
||||
"data": "2",
|
||||
"stackHeight": 1
|
||||
}
|
||||
],
|
||||
"addressTableLookups": []
|
||||
}
|
||||
},
|
||||
"meta": {
|
||||
"err": null,
|
||||
"status": {"Ok": null},
|
||||
"fee": 5000,
|
||||
"preBalances": [10000, 1, 1],
|
||||
"postBalances": [5000, 1, 1],
|
||||
"innerInstructions": [
|
||||
{
|
||||
"index": 0,
|
||||
"instructions": [
|
||||
{
|
||||
"programIdIndex": 2,
|
||||
"accounts": [0],
|
||||
"data": "3",
|
||||
"stackHeight": 2
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"logMessages": [
|
||||
"Program ComputeBudget111111111111111111111111111111 invoke [1]",
|
||||
"Program ComputeBudget111111111111111111111111111111 success"
|
||||
],
|
||||
"preTokenBalances": [],
|
||||
"postTokenBalances": [
|
||||
{
|
||||
"accountIndex": 0,
|
||||
"mint": "So11111111111111111111111111111111111111112",
|
||||
"owner": "11111111111111111111111111111111",
|
||||
"programId": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
|
||||
"uiTokenAmount": {
|
||||
"amount": "12345678901234567890",
|
||||
"decimals": 9,
|
||||
"uiAmount": null,
|
||||
"uiAmountString": "12345678901.23456789"
|
||||
}
|
||||
}
|
||||
],
|
||||
"rewards": [],
|
||||
"loadedAddresses": {
|
||||
"writable": [],
|
||||
"readonly": []
|
||||
},
|
||||
"returnData": {
|
||||
"programId": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
|
||||
"data": ["AQI=", "base64"]
|
||||
},
|
||||
"computeUnitsConsumed": 1200,
|
||||
"costUnits": 1300
|
||||
}
|
||||
}
|
||||
28
migration/khadhroony-bot2-reference/kb_rpc/tests/fixtures/get_transaction_optional_absent.json
vendored
Normal file
28
migration/khadhroony-bot2-reference/kb_rpc/tests/fixtures/get_transaction_optional_absent.json
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"slot": 103,
|
||||
"blockTime": null,
|
||||
"transaction": {
|
||||
"signatures": ["5fMCpSnW6zfEJrShJAFSTaye2dexqwVfErfeETB34kbkRriTSfD3uQxtzjn2ToyKeqakLbpcbrvq5eDBTbs4uCW"],
|
||||
"message": {
|
||||
"header": {
|
||||
"numRequiredSignatures": 1,
|
||||
"numReadonlySignedAccounts": 0,
|
||||
"numReadonlyUnsignedAccounts": 1
|
||||
},
|
||||
"accountKeys": [
|
||||
"11111111111111111111111111111111",
|
||||
"ComputeBudget111111111111111111111111111111"
|
||||
],
|
||||
"recentBlockhash": "11111111111111111111111111111111",
|
||||
"instructions": [
|
||||
{"programIdIndex": 1, "accounts": [0], "data": "7"}
|
||||
]
|
||||
}
|
||||
},
|
||||
"meta": {
|
||||
"err": null,
|
||||
"fee": 5000,
|
||||
"preBalances": [10000, 1],
|
||||
"postBalances": [5000, 1]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,88 @@
|
||||
{
|
||||
"slot": 102,
|
||||
"blockTime": 1700000003,
|
||||
"version": 0,
|
||||
"transaction": {
|
||||
"signatures": ["4VpzYuMH3LdMKjYmwoFUAfVyQqMBt2rjcAV2TjhbGet1VCAgn6fBaz1JCLRdmmZFuMtDv7BjALgJiwZRtYSTqpV"],
|
||||
"message": {
|
||||
"header": {
|
||||
"numRequiredSignatures": 1,
|
||||
"numReadonlySignedAccounts": 0,
|
||||
"numReadonlyUnsignedAccounts": 2
|
||||
},
|
||||
"accountKeys": [
|
||||
"11111111111111111111111111111111",
|
||||
"TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb",
|
||||
"ComputeBudget111111111111111111111111111111"
|
||||
],
|
||||
"recentBlockhash": "11111111111111111111111111111111",
|
||||
"instructions": [
|
||||
{
|
||||
"programIdIndex": 3,
|
||||
"accounts": [0, 4],
|
||||
"data": "5",
|
||||
"stackHeight": 1
|
||||
}
|
||||
],
|
||||
"addressTableLookups": [
|
||||
{
|
||||
"accountKey": "AddressLookupTab1e1111111111111111111111111",
|
||||
"writableIndexes": [0],
|
||||
"readonlyIndexes": [1]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"meta": {
|
||||
"err": null,
|
||||
"fee": 7000,
|
||||
"preBalances": [100000, 1, 1, 1, 1],
|
||||
"postBalances": [93000, 1, 1, 1, 1],
|
||||
"innerInstructions": [
|
||||
{
|
||||
"index": 0,
|
||||
"instructions": [
|
||||
{
|
||||
"programIdIndex": 4,
|
||||
"accounts": [0, 1],
|
||||
"data": "6",
|
||||
"stackHeight": 2
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"logMessages": ["Program log: Token-2022 CPI"],
|
||||
"preTokenBalances": [
|
||||
{
|
||||
"accountIndex": 1,
|
||||
"mint": "So11111111111111111111111111111111111111112",
|
||||
"owner": "11111111111111111111111111111111",
|
||||
"programId": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb",
|
||||
"uiTokenAmount": {
|
||||
"amount": "10",
|
||||
"decimals": 0,
|
||||
"uiAmountString": "10"
|
||||
}
|
||||
}
|
||||
],
|
||||
"postTokenBalances": [
|
||||
{
|
||||
"accountIndex": 1,
|
||||
"mint": "So11111111111111111111111111111111111111112",
|
||||
"owner": "11111111111111111111111111111111",
|
||||
"programId": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb",
|
||||
"uiTokenAmount": {
|
||||
"amount": "9",
|
||||
"decimals": 0,
|
||||
"uiAmountString": "9"
|
||||
}
|
||||
}
|
||||
],
|
||||
"rewards": [],
|
||||
"loadedAddresses": {
|
||||
"writable": ["SysvarRent111111111111111111111111111111111"],
|
||||
"readonly": ["SysvarC1ock11111111111111111111111111111111"]
|
||||
},
|
||||
"computeUnitsConsumed": 9999
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user