Skip to content

Commit 862a447

Browse files
committed
Fix imports
1 parent d475428 commit 862a447

File tree

9 files changed

+26
-17
lines changed

9 files changed

+26
-17
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ 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" }
2829
syn = "1.0"
2930

3031
[workspace.metadata.cli]

sdk/pinocchio/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ std = ["solana-address/std"]
2323
[dependencies]
2424
solana-account-view = { workspace = true }
2525
solana-address = { workspace = true, features = ["syscalls"] }
26-
solana-program-error = { version = "3.0.0", git = "https://github.com/febo/solana-sdk.git", branch = "solana-account-view" }
26+
solana-instruction-view = { workspace = true, features = ["cpi"] }
27+
solana-program-error = { version = "3.0.0", git = "https://github.com/febo/solana-sdk.git", branch = "solana-instruction-view" }
2728

2829
[dev-dependencies]
2930
five8_const = { workspace = true }

sdk/pinocchio/src/entrypoint/lazy.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ use crate::{
99
};
1010
use solana_address::Address;
1111

12-
use crate::{program_error::ProgramError, BPF_ALIGN_OF_U128, NON_DUP_MARKER};
13-
1412
/// Declare the lazy program entrypoint.
1513
///
1614
/// Use the `lazy_program_entrypoint!` macro instead.

sdk/pinocchio/src/entrypoint/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ use crate::{
2323
};
2424
use solana_address::Address;
2525

26-
use crate::{BPF_ALIGN_OF_U128, NON_DUP_MARKER};
27-
2826
/// Start address of the memory region used for program heap.
2927
pub const HEAP_START_ADDRESS: u64 = 0x300000000;
3028

sdk/pinocchio/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ pub use entrypoint::lazy as lazy_entrypoint;
235235
pub use solana_account_view as account_view;
236236
// Re-export the `solana_address` for downstream use.
237237
pub use solana_address as address;
238+
pub use solana_instruction_view as instruction_view;
238239
// Re-export the `solana_program_error` for downstream use.
239240
pub use solana_program_error as program_error;
240241
pub use solana_program_error::ProgramResult;

sdk/pinocchio/src/syscalls.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ define_syscall!(fn sol_invoke_signed_rust(instruction_addr: *const u8, account_i
5858
define_syscall!(fn sol_set_return_data(data: *const u8, length: u64));
5959
define_syscall!(fn sol_get_return_data(data: *mut u8, length: u64, program_id: *mut u8) -> u64);
6060
define_syscall!(fn sol_log_data(data: *const u8, data_len: u64));
61-
define_syscall!(fn sol_get_processed_sibling_instruction(index: u64, meta: *mut ProcessedSiblingInstruction, program_id: *mut u8, data: *mut u8, accounts: *mut AccountMeta) -> u64);
61+
define_syscall!(fn sol_get_processed_sibling_instruction(index: u64, meta: *mut u8, program_id: *mut u8, data: *mut u8, accounts: *mut u8) -> u64);
6262
define_syscall!(fn sol_get_stack_height() -> u64);
6363
define_syscall!(fn sol_curve_validate_point(curve_id: u64, point_addr: *const u8, result: *mut u8) -> u64);
6464
define_syscall!(fn sol_curve_group_op(curve_id: u64, group_op: u64, left_input_addr: *const u8, right_input_addr: *const u8, result_point_addr: *mut u8) -> u64);

sdk/pinocchio/src/sysvars/instructions.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use solana_address::{Address, ADDRESS_BYTES};
33

44
use crate::{
55
account_view::{AccountView, Ref},
6-
instruction::AccountMeta,
6+
instruction_view::AccountPrivilege,
77
program_error::ProgramError,
88
};
99

@@ -241,7 +241,7 @@ impl IntrospectedAccountMeta {
241241

242242
/// Convert the `IntrospectedAccountMeta` to an `AccountMeta`.
243243
#[inline(always)]
244-
pub fn to_account_meta(&self) -> AccountMeta {
245-
AccountMeta::new(&self.key, self.is_writable(), self.is_signer())
244+
pub fn to_account_meta(&self) -> AccountPrivilege {
245+
AccountPrivilege::new(&self.key, self.is_writable(), self.is_signer())
246246
}
247247
}

sdk/pinocchio/src/sysvars/rent.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ use crate::{
1111
program_error::ProgramError,
1212
sysvars::Sysvar,
1313
};
14-
use solana_address::Address;
1514

1615
/// The ID of the rent sysvar.
1716
pub const RENT_ID: Address = Address::new_from_array([

0 commit comments

Comments
 (0)