Skip to content

Commit 7313b16

Browse files
committed
Fix imports
1 parent c218f3f commit 7313b16

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+320
-363
lines changed

Cargo.lock

Lines changed: 16 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@ pinocchio = { version = "0.9", path = "sdk/pinocchio" }
2323
pinocchio-log-macro = { version = "0.5", path = "sdk/log/macro" }
2424
quote = "1.0"
2525
regex = "1"
26-
solana-account-view = { version = "0.0.0", git = "https://github.com/febo/solana-sdk.git", branch = "solana-account-view" }
27-
solana-address = { version = "1.0", git = "https://github.com/febo/solana-sdk.git", branch = "solana-account-view" }
26+
solana-account-view = { version = "0.0.0", git = "https://github.com/febo/solana-sdk.git", branch = "solana-instruction-view" }
27+
solana-address = { version = "1.0", git = "https://github.com/febo/solana-sdk.git", branch = "solana-instruction-view" }
28+
solana-instruction-view = { version = "0.0.0", git = "https://github.com/febo/solana-sdk.git", branch = "solana-instruction-view" }
29+
solana-program-error = { version = "3.0.0", git = "https://github.com/febo/solana-sdk.git", branch = "solana-instruction-view" }
2830
syn = "1.0"
2931

3032
[workspace.metadata.cli]

programs/associated-token-account/Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,7 @@ rust-version = { workspace = true }
1212
crate-type = ["rlib"]
1313

1414
[dependencies]
15-
pinocchio = { workspace = true }
15+
solana-account-view = { workspace = true }
1616
solana-address = { workspace = true, features = ["decode"] }
17+
solana-instruction-view = { workspace = true, features = ["cpi"] }
18+
solana-program-error = { workspace = true }

programs/associated-token-account/src/instructions/create.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use solana_account_view::AccountView;
22
use solana_instruction_view::{
33
cpi::{invoke_signed, Signer},
4-
AccountMeta, InstructionView,
4+
AccountPrivilege, InstructionView,
55
};
66
use solana_program_error::ProgramResult;
77

programs/associated-token-account/src/instructions/create_idempotent.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use solana_account_view::AccountView;
22
use solana_instruction_view::{
33
cpi::{invoke_signed, Signer},
4-
AccountMeta, InstructionView,
4+
AccountPrivilege, InstructionView,
55
};
66
use solana_program_error::ProgramResult;
77

programs/associated-token-account/src/instructions/recover_nested.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use solana_account_view::AccountView;
22
use solana_instruction_view::{
33
cpi::{invoke_signed, Signer},
4-
AccountMeta, InstructionView,
4+
AccountPrivilege, InstructionView,
55
};
66
use solana_program_error::ProgramResult;
77

programs/memo/Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,7 @@ rust-version = { workspace = true }
1212
crate-type = ["rlib"]
1313

1414
[dependencies]
15-
pinocchio = { workspace = true }
15+
solana-account-view = { workspace = true }
1616
solana-address = { workspace = true, features = ["decode"] }
17+
solana-instruction-view = { workspace = true, features = ["cpi"] }
18+
solana-program-error = { workspace = true }

programs/memo/src/instructions/mod.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
use core::mem::MaybeUninit;
22

3-
use pinocchio::{
4-
account_view::AccountView,
5-
cpi::{slice_invoke_signed, MAX_CPI_ACCOUNTS},
6-
instruction::{AccountMeta, Instruction, Signer},
7-
program_error::ProgramError,
8-
ProgramResult,
3+
use solana_account_view::AccountView;
4+
use solana_instruction_view::{
5+
cpi::{slice_invoke_signed, Signer, MAX_CPI_ACCOUNTS},
6+
AccountPrivilege, InstructionView,
97
};
8+
use solana_program_error::{ProgramError, ProgramResult};
109

1110
/// Memo instruction.
1211
///
@@ -27,7 +26,8 @@ impl Memo<'_, '_, '_> {
2726

2827
#[inline(always)]
2928
pub fn invoke_signed(&self, signers_seeds: &[Signer]) -> ProgramResult {
30-
const UNINIT_META: MaybeUninit<AccountMeta> = MaybeUninit::<AccountMeta>::uninit();
29+
const UNINIT_META: MaybeUninit<AccountPrivilege> =
30+
MaybeUninit::<AccountPrivilege>::uninit();
3131

3232
// We don't know num_accounts at compile time, so we use MAX_CPI_ACCOUNTS
3333
let mut account_metas = [UNINIT_META; MAX_CPI_ACCOUNTS];
@@ -50,7 +50,7 @@ impl Memo<'_, '_, '_> {
5050
}
5151

5252
// SAFETY: len(account_metas) <= MAX_CPI_ACCOUNTS
53-
let instruction = Instruction {
53+
let instruction = InstructionView {
5454
program_id: &crate::ID,
5555
accounts: unsafe {
5656
core::slice::from_raw_parts(account_metas.as_ptr() as _, num_accounts)

programs/system/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,7 @@ crate-type = ["rlib"]
1313

1414
[dependencies]
1515
pinocchio = { workspace = true }
16+
solana-account-view = { workspace = true }
1617
solana-address = { workspace = true, features = ["decode"] }
18+
solana-instruction-view = { workspace = true, features = ["cpi"] }
19+
solana-program-error = { workspace = true }

programs/system/src/instructions/advance_nonce_account.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use solana_account_view::AccountView;
22
use solana_instruction_view::{
33
cpi::{invoke_signed, Signer},
4-
AccountMeta, InstructionView,
4+
AccountPrivilege, InstructionView,
55
};
66
use solana_program_error::ProgramResult;
77

0 commit comments

Comments
 (0)