2021-01-20 22:10:35 -08:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package solana.storage.TransactionByAddr;
|
|
|
|
|
|
|
|
message TransactionByAddr {
|
|
|
|
repeated TransactionByAddrInfo tx_by_addrs = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message TransactionByAddrInfo {
|
|
|
|
bytes signature = 1;
|
|
|
|
TransactionError err = 2;
|
|
|
|
uint32 index = 3;
|
|
|
|
Memo memo = 4;
|
|
|
|
UnixTimestamp block_time = 5;
|
|
|
|
}
|
|
|
|
|
|
|
|
message Memo {
|
|
|
|
string memo = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message TransactionError {
|
|
|
|
TransactionErrorType transaction_error = 1;
|
|
|
|
InstructionError instruction_error = 2;
|
2022-05-16 08:35:34 -07:00
|
|
|
TransactionDetails transaction_details = 3;
|
2021-01-20 22:10:35 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
enum TransactionErrorType {
|
|
|
|
ACCOUNT_IN_USE = 0;
|
|
|
|
ACCOUNT_LOADED_TWICE = 1;
|
|
|
|
ACCOUNT_NOT_FOUND = 2;
|
|
|
|
PROGRAM_ACCOUNT_NOT_FOUND = 3;
|
|
|
|
INSUFFICIENT_FUNDS_FOR_FEE = 4;
|
|
|
|
INVALID_ACCOUNT_FOR_FEE = 5;
|
2021-05-26 21:16:16 -07:00
|
|
|
ALREADY_PROCESSED = 6;
|
2021-01-20 22:10:35 -08:00
|
|
|
BLOCKHASH_NOT_FOUND = 7;
|
|
|
|
INSTRUCTION_ERROR = 8;
|
|
|
|
CALL_CHAIN_TOO_DEEP = 9;
|
|
|
|
MISSING_SIGNATURE_FOR_FEE = 10;
|
|
|
|
INVALID_ACCOUNT_INDEX = 11;
|
|
|
|
SIGNATURE_FAILURE = 12;
|
|
|
|
INVALID_PROGRAM_FOR_EXECUTION = 13;
|
|
|
|
SANITIZE_FAILURE = 14;
|
|
|
|
CLUSTER_MAINTENANCE = 15;
|
2021-05-26 21:16:16 -07:00
|
|
|
ACCOUNT_BORROW_OUTSTANDING_TX = 16;
|
2021-08-12 08:48:47 -07:00
|
|
|
WOULD_EXCEED_MAX_BLOCK_COST_LIMIT = 17;
|
2021-08-17 15:17:56 -07:00
|
|
|
UNSUPPORTED_VERSION = 18;
|
2021-09-08 14:21:52 -07:00
|
|
|
INVALID_WRITABLE_ACCOUNT = 19;
|
2021-11-11 23:04:53 -08:00
|
|
|
WOULD_EXCEED_MAX_ACCOUNT_COST_LIMIT = 20;
|
2022-03-13 08:58:57 -07:00
|
|
|
WOULD_EXCEED_ACCOUNT_DATA_BLOCK_LIMIT = 21;
|
2022-01-03 22:25:23 -08:00
|
|
|
TOO_MANY_ACCOUNT_LOCKS = 22;
|
2022-01-06 19:59:09 -08:00
|
|
|
ADDRESS_LOOKUP_TABLE_NOT_FOUND = 23;
|
|
|
|
INVALID_ADDRESS_LOOKUP_TABLE_OWNER = 24;
|
|
|
|
INVALID_ADDRESS_LOOKUP_TABLE_DATA = 25;
|
|
|
|
INVALID_ADDRESS_LOOKUP_TABLE_INDEX = 26;
|
2022-01-11 10:32:25 -08:00
|
|
|
INVALID_RENT_PAYING_ACCOUNT = 27;
|
2022-01-12 21:27:19 -08:00
|
|
|
WOULD_EXCEED_MAX_VOTE_COST_LIMIT = 28;
|
2022-03-13 08:58:57 -07:00
|
|
|
WOULD_EXCEED_ACCOUNT_DATA_TOTAL_LIMIT = 29;
|
2022-05-12 11:07:36 -07:00
|
|
|
DUPLICATE_INSTRUCTION = 30;
|
2022-05-16 08:35:34 -07:00
|
|
|
INSUFFICIENT_FUNDS_FOR_RENT = 31;
|
2023-01-31 20:51:35 -08:00
|
|
|
MAX_LOADED_ACCOUNTS_DATA_SIZE_EXCEEDED = 32;
|
2023-03-08 17:41:45 -08:00
|
|
|
INVALID_LOADED_ACCOUNTS_DATA_SIZE_LIMIT = 33;
|
2021-01-20 22:10:35 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
message InstructionError {
|
|
|
|
uint32 index = 1;
|
|
|
|
InstructionErrorType error = 2;
|
|
|
|
CustomError custom = 3;
|
|
|
|
}
|
|
|
|
|
2022-05-16 08:35:34 -07:00
|
|
|
message TransactionDetails {
|
2022-05-12 11:07:36 -07:00
|
|
|
uint32 index = 1;
|
|
|
|
}
|
|
|
|
|
2021-01-20 22:10:35 -08:00
|
|
|
enum InstructionErrorType {
|
|
|
|
GENERIC_ERROR = 0;
|
|
|
|
INVALID_ARGUMENT = 1;
|
|
|
|
INVALID_INSTRUCTION_DATA = 2;
|
|
|
|
INVALID_ACCOUNT_DATA = 3;
|
|
|
|
ACCOUNT_DATA_TOO_SMALL = 4;
|
|
|
|
INSUFFICIENT_FUNDS = 5;
|
|
|
|
INCORRECT_PROGRAM_ID = 6;
|
|
|
|
MISSING_REQUIRED_SIGNATURE = 7;
|
|
|
|
ACCOUNT_ALREADY_INITIALIZED = 8;
|
|
|
|
UNINITIALIZED_ACCOUNT = 9;
|
|
|
|
UNBALANCED_INSTRUCTION = 10;
|
|
|
|
MODIFIED_PROGRAM_ID = 11;
|
|
|
|
EXTERNAL_ACCOUNT_LAMPORT_SPEND = 12;
|
|
|
|
EXTERNAL_ACCOUNT_DATA_MODIFIED = 13;
|
|
|
|
READONLY_LAMPORT_CHANGE = 14;
|
|
|
|
READONLY_DATA_MODIFIED = 15;
|
|
|
|
DUPLICATE_ACCOUNT_INDEX = 16;
|
|
|
|
EXECUTABLE_MODIFIED = 17;
|
|
|
|
RENT_EPOCH_MODIFIED = 18;
|
|
|
|
NOT_ENOUGH_ACCOUNT_KEYS = 19;
|
|
|
|
ACCOUNT_DATA_SIZE_CHANGED = 20;
|
|
|
|
ACCOUNT_NOT_EXECUTABLE = 21;
|
|
|
|
ACCOUNT_BORROW_FAILED = 22;
|
|
|
|
ACCOUNT_BORROW_OUTSTANDING = 23;
|
|
|
|
DUPLICATE_ACCOUNT_OUT_OF_SYNC = 24;
|
|
|
|
CUSTOM = 25;
|
|
|
|
INVALID_ERROR = 26;
|
|
|
|
EXECUTABLE_DATA_MODIFIED = 27;
|
|
|
|
EXECUTABLE_LAMPORT_CHANGE = 28;
|
|
|
|
EXECUTABLE_ACCOUNT_NOT_RENT_EXEMPT = 29;
|
|
|
|
UNSUPPORTED_PROGRAM_ID = 30;
|
|
|
|
CALL_DEPTH = 31;
|
|
|
|
MISSING_ACCOUNT = 32;
|
|
|
|
REENTRANCY_NOT_ALLOWED = 33;
|
|
|
|
MAX_SEED_LENGTH_EXCEEDED = 34;
|
|
|
|
INVALID_SEEDS = 35;
|
|
|
|
INVALID_REALLOC = 36;
|
|
|
|
COMPUTATIONAL_BUDGET_EXCEEDED = 37;
|
|
|
|
PRIVILEGE_ESCALATION = 38;
|
|
|
|
PROGRAM_ENVIRONMENT_SETUP_FAILURE = 39;
|
|
|
|
PROGRAM_FAILED_TO_COMPLETE = 40;
|
|
|
|
PROGRAM_FAILED_TO_COMPILE = 41;
|
|
|
|
IMMUTABLE = 42;
|
|
|
|
INCORRECT_AUTHORITY = 43;
|
2021-02-19 08:53:13 -08:00
|
|
|
BORSH_IO_ERROR = 44;
|
|
|
|
ACCOUNT_NOT_RENT_EXEMPT = 45;
|
2021-02-26 14:21:34 -08:00
|
|
|
INVALID_ACCOUNT_OWNER = 46;
|
2021-03-08 17:37:57 -08:00
|
|
|
ARITHMETIC_OVERFLOW = 47;
|
2021-05-26 21:16:16 -07:00
|
|
|
UNSUPPORTED_SYSVAR = 48;
|
2021-07-09 10:31:26 -07:00
|
|
|
ILLEGAL_OWNER = 49;
|
2022-08-29 11:30:48 -07:00
|
|
|
MAX_ACCOUNTS_DATA_ALLOCATIONS_EXCEEDED = 50;
|
2022-07-20 05:12:43 -07:00
|
|
|
MAX_ACCOUNTS_EXCEEDED = 51;
|
2022-09-26 01:47:16 -07:00
|
|
|
MAX_INSTRUCTION_TRACE_LENGTH_EXCEEDED = 52;
|
2023-03-24 09:31:01 -07:00
|
|
|
BUILTIN_PROGRAMS_MUST_CONSUME_COMPUTE_UNITS = 53;
|
2021-01-20 22:10:35 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
message UnixTimestamp {
|
|
|
|
int64 timestamp = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message CustomError {
|
|
|
|
uint32 custom = 1;
|
|
|
|
}
|