upgrade to steel v3

This commit is contained in:
Hardhat Chad
2025-02-10 13:22:10 -08:00
parent ec84d18860
commit cee50ae16d
4 changed files with 1038 additions and 662 deletions

1680
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -16,14 +16,14 @@ keywords = ["solana", "crypto", "mining"]
array-const-fn-init = "0.1.1"
bytemuck = "1.14.3"
const-crypto = "0.1.0"
drillx = { version = "2.0.0", features = ["solana"] }
mpl-token-metadata = "4.1.2"
drillx = { version = "2.2", features = ["solana"] }
mpl-token-metadata = "5.1"
num_enum = "0.7.2"
ore-api = { path = "api" }
ore-boost-api = "1.1"
solana-program = "^1.18"
ore-boost-api = { version = "1.1", path = "../ore-boost/api" }
solana-program = "^2.1"
spl-token = { version = "^4", features = ["no-entrypoint"] }
spl-associated-token-account = { version = "^2.3", features = [ "no-entrypoint" ] }
spl-associated-token-account = { version = "^6", features = [ "no-entrypoint" ] }
static_assertions = "1.1.0"
steel = { features = ["spl"], version = "2.0" }
steel = { features = ["spl"], version = "3.0" }
thiserror = "1.0.57"

View File

@@ -77,7 +77,7 @@ pub fn process_initialize(accounts: &[AccountInfo<'_>], _data: &[u8]) -> Program
bus_7_info,
];
for i in 0..BUS_COUNT {
create_account::<Bus>(
create_program_account::<Bus>(
bus_infos[i],
system_program,
signer_info,
@@ -92,7 +92,7 @@ pub fn process_initialize(accounts: &[AccountInfo<'_>], _data: &[u8]) -> Program
}
// Initialize config.
create_account::<Config>(
create_program_account::<Config>(
config_info,
system_program,
signer_info,
@@ -105,7 +105,7 @@ pub fn process_initialize(accounts: &[AccountInfo<'_>], _data: &[u8]) -> Program
config.min_difficulty = INITIAL_MIN_DIFFICULTY as u64;
// Initialize treasury.
create_account::<Treasury>(
create_program_account::<Treasury>(
treasury_info,
system_program,
signer_info,

View File

@@ -22,7 +22,7 @@ pub fn process_open(accounts: &[AccountInfo<'_>], _data: &[u8]) -> ProgramResult
slot_hashes_info.is_sysvar(&sysvar::slot_hashes::ID)?;
// Initialize proof.
create_account::<Proof>(
create_program_account::<Proof>(
proof_info,
system_program,
payer_info,