Skip to content

Commit 97a11a6

Browse files
committed
Update dependencies
1 parent 8b4b71d commit 97a11a6

Some content is hidden

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

48 files changed

+281
-354
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ 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-address = { version = "1.0", git = "https://github.com/febo/solana-sdk.git", branch = "derive-address" }
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" }
2728
syn = "1.0"
2829

2930
[workspace.metadata.cli]

programs/memo/src/instructions/mod.rs

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

33
use pinocchio::{
4-
account_info::AccountInfo,
4+
account_view::AccountView,
55
cpi::{slice_invoke_signed, MAX_CPI_ACCOUNTS},
66
instruction::{AccountMeta, Instruction, Signer},
77
program_error::ProgramError,
@@ -14,7 +14,7 @@ use pinocchio::{
1414
/// 0. `..+N` `[SIGNER]` N signing accounts
1515
pub struct Memo<'a, 'b, 'c> {
1616
/// Signing accounts
17-
pub signers: &'b [&'a AccountInfo],
17+
pub signers: &'b [&'a AccountView],
1818
/// Memo
1919
pub memo: &'c str,
2020
}

programs/system/src/instructions/create_account.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ pub struct CreateAccount<'a> {
3333
impl<'a> CreateAccount<'a> {
3434
#[inline(always)]
3535
pub fn with_minimal_balance(
36-
from: &'a AccountInfo,
37-
to: &'a AccountInfo,
38-
rent_sysvar: &'a AccountInfo,
36+
from: &'a AccountView,
37+
to: &'a AccountView,
38+
rent_sysvar: &'a AccountView,
3939
space: u64,
4040
owner: &'a Address,
4141
) -> Result<Self, ProgramError> {

programs/system/src/instructions/create_account_with_seed.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ pub struct CreateAccountWithSeed<'a, 'b, 'c> {
4545
impl<'a, 'b, 'c> CreateAccountWithSeed<'a, 'b, 'c> {
4646
#[inline(always)]
4747
pub fn with_minimal_balance(
48-
from: &'a AccountInfo,
49-
to: &'a AccountInfo,
50-
base: Option<&'a AccountInfo>,
48+
from: &'a AccountView,
49+
to: &'a AccountView,
50+
base: Option<&'a AccountView>,
5151
seed: &'b str,
52-
rent_sysvar: &'a AccountInfo,
52+
rent_sysvar: &'a AccountView,
5353
space: u64,
5454
owner: &'c Address,
5555
) -> Result<Self, ProgramError> {

programs/token-2022/src/instructions/approve.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use core::slice::from_raw_parts;
22

33
use pinocchio::{
4-
account_info::AccountInfo,
4+
account_view::AccountView,
55
address::Address,
66
instruction::{AccountMeta, Instruction, Signer},
77
program::invoke_signed,
@@ -18,11 +18,11 @@ use crate::{write_bytes, UNINIT_BYTE};
1818
/// 2. `[SIGNER]` The source account owner.
1919
pub struct Approve<'a, 'b> {
2020
/// Source Account.
21-
pub source: &'a AccountInfo,
21+
pub source: &'a AccountView,
2222
/// Delegate Account
23-
pub delegate: &'a AccountInfo,
23+
pub delegate: &'a AccountView,
2424
/// Source Owner Account
25-
pub authority: &'a AccountInfo,
25+
pub authority: &'a AccountView,
2626
/// Amount
2727
pub amount: u64,
2828
/// Token Program

programs/token-2022/src/instructions/approve_checked.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use core::slice::from_raw_parts;
22

33
use pinocchio::{
4-
account_info::AccountInfo,
4+
account_view::AccountView,
55
address::Address,
66
instruction::{AccountMeta, Instruction, Signer},
77
program::invoke_signed,
@@ -19,13 +19,13 @@ use crate::{write_bytes, UNINIT_BYTE};
1919
/// 3. `[SIGNER]` The source account owner.
2020
pub struct ApproveChecked<'a, 'b> {
2121
/// Source Account.
22-
pub source: &'a AccountInfo,
22+
pub source: &'a AccountView,
2323
/// Mint Account.
24-
pub mint: &'a AccountInfo,
24+
pub mint: &'a AccountView,
2525
/// Delegate Account.
26-
pub delegate: &'a AccountInfo,
26+
pub delegate: &'a AccountView,
2727
/// Source Owner Account.
28-
pub authority: &'a AccountInfo,
28+
pub authority: &'a AccountView,
2929
/// Amount.
3030
pub amount: u64,
3131
/// Decimals.

programs/token-2022/src/instructions/burn.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use core::slice::from_raw_parts;
22

33
use pinocchio::{
4-
account_info::AccountInfo,
4+
account_view::AccountView,
55
address::Address,
66
instruction::{AccountMeta, Instruction, Signer},
77
program::invoke_signed,
@@ -18,11 +18,11 @@ use crate::{write_bytes, UNINIT_BYTE};
1818
/// 2. `[SIGNER]` The account's owner/delegate.
1919
pub struct Burn<'a, 'b> {
2020
/// Source of the Burn Account
21-
pub account: &'a AccountInfo,
21+
pub account: &'a AccountView,
2222
/// Mint Account
23-
pub mint: &'a AccountInfo,
23+
pub mint: &'a AccountView,
2424
/// Owner of the Token Account
25-
pub authority: &'a AccountInfo,
25+
pub authority: &'a AccountView,
2626
/// Amount
2727
pub amount: u64,
2828
/// Token Program

programs/token-2022/src/instructions/burn_checked.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use core::slice::from_raw_parts;
22

33
use crate::{write_bytes, UNINIT_BYTE};
44
use pinocchio::{
5-
account_info::AccountInfo,
5+
account_view::AccountView,
66
address::Address,
77
instruction::{AccountMeta, Instruction, Signer},
88
program::invoke_signed,
@@ -17,11 +17,11 @@ use pinocchio::{
1717
/// 2. `[SIGNER]` The account's owner/delegate.
1818
pub struct BurnChecked<'a, 'b> {
1919
/// Source of the Burn Account
20-
pub account: &'a AccountInfo,
20+
pub account: &'a AccountView,
2121
/// Mint Account
22-
pub mint: &'a AccountInfo,
22+
pub mint: &'a AccountView,
2323
/// Owner of the Token Account
24-
pub authority: &'a AccountInfo,
24+
pub authority: &'a AccountView,
2525
/// Amount
2626
pub amount: u64,
2727
/// Decimals

programs/token-2022/src/instructions/close_account.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use pinocchio::{
2-
account_info::AccountInfo,
2+
account_view::AccountView,
33
address::Address,
44
instruction::{AccountMeta, Instruction, Signer},
55
program::invoke_signed,
@@ -14,11 +14,11 @@ use pinocchio::{
1414
/// 2. `[SIGNER]` The account's owner.
1515
pub struct CloseAccount<'a, 'b> {
1616
/// Token Account.
17-
pub account: &'a AccountInfo,
17+
pub account: &'a AccountView,
1818
/// Destination Account
19-
pub destination: &'a AccountInfo,
19+
pub destination: &'a AccountView,
2020
/// Owner Account
21-
pub authority: &'a AccountInfo,
21+
pub authority: &'a AccountView,
2222
/// Token Program
2323
pub token_program: &'b Address,
2424
}

0 commit comments

Comments
 (0)