Skip to content

Commit

Permalink
feat: accounts-v2 (#28)
Browse files Browse the repository at this point in the history
* feat: accounts-v2

* fmt
  • Loading branch information
RequescoS authored Aug 28, 2023
1 parent 0fe6d7c commit 216e158
Show file tree
Hide file tree
Showing 4 changed files with 278 additions and 237 deletions.
29 changes: 14 additions & 15 deletions src/flatbuffer/account_info.fbs
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
include "common.fbs";
namespace AccountInfoV2;

namespace AccountInfo;

table AccountInfo {
pubkey: Common.Pubkey;
lamports: uint64;
owner: Common.Pubkey;
executable: bool;
rent_epoch: uint64;
data: [uint8];
write_version: uint64;
table AccountInfoV2 {
pubkey: string;
owner: string;
slot: uint64;
is_startup: bool;
pubkey_string: string;
owner_string: string;
account_data: AccountData;
}

table AccountData {
lamports: ulong;
rent_epoch: ulong;
executable: bool;
version: ulong;
data: [ubyte];
}

root_type AccountInfo;
root_type AccountInfoV2;
Loading

0 comments on commit 216e158

Please sign in to comment.