Update project to use new account serialization format (#5848)
This commit is contained in:
9
genesis/src/lib.rs
Normal file
9
genesis/src/lib.rs
Normal file
@ -0,0 +1,9 @@
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug)]
|
||||
pub struct PrimordialAccountDetails {
|
||||
pub balance: u64,
|
||||
pub owner: String,
|
||||
pub data: String,
|
||||
pub executable: bool,
|
||||
}
|
@ -2,8 +2,8 @@
|
||||
|
||||
use base64;
|
||||
use clap::{crate_description, crate_name, crate_version, value_t_or_exit, App, Arg};
|
||||
use serde::{Deserialize, Serialize};
|
||||
use solana_core::blocktree::create_new_ledger;
|
||||
use solana_genesis::PrimordialAccountDetails;
|
||||
use solana_sdk::account::Account;
|
||||
use solana_sdk::clock;
|
||||
use solana_sdk::fee_calculator::FeeCalculator;
|
||||
@ -33,14 +33,6 @@ pub enum AccountFileFormat {
|
||||
Keypair,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug)]
|
||||
pub struct PrimordialAccountDetails {
|
||||
balance: u64,
|
||||
owner: String,
|
||||
data: String,
|
||||
executable: bool,
|
||||
}
|
||||
|
||||
pub fn append_primordial_accounts(
|
||||
file: &str,
|
||||
file_format: AccountFileFormat,
|
||||
|
Reference in New Issue
Block a user