Skip to content

Commit d83c74f

Browse files
Bump @codama/renderers-rust from 1.0.6 to 1.0.7 (#675)
* Bump @codama/renderers-rust from 1.0.6 to 1.0.7 Bumps [@codama/renderers-rust](https://github.com/codama-idl/codama) from 1.0.6 to 1.0.7. - [Release notes](https://github.com/codama-idl/codama/releases) - [Commits](https://github.com/codama-idl/codama/compare/@codama/[email protected]...@codama/[email protected]) --- updated-dependencies: - dependency-name: "@codama/renderers-rust" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * Bump @codama/renderers-rust from 1.0.6 to 1.0.7 Bumps [@codama/renderers-rust](https://github.com/codama-idl/codama) from 1.0.6 to 1.0.7. - [Release notes](https://github.com/codama-idl/codama/releases) - [Commits](https://github.com/codama-idl/codama/compare/@codama/[email protected]...@codama/[email protected]) --- updated-dependencies: - dependency-name: "@codama/renderers-rust" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * Tweaks * Lockfile * Tweak * fmt --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Wilhelm Thieme <[email protected]>
1 parent 5fe0db9 commit d83c74f

File tree

14 files changed

+84
-82
lines changed

14 files changed

+84
-82
lines changed

.github/workflows/checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050

5151
changeset:
5252
runs-on: ubuntu-latest
53-
if: ${{ github.actor != 'dependabot[bot]' && github.actor != 'github-actions[bot]' }}
53+
if: ${{ github.event.pull_request.user.login != 'dependabot[bot]' && github.event.pull_request.user.login != 'github-actions[bot]' }}
5454
steps:
5555
- name: Checkout repository
5656
uses: actions/checkout@v4

rust-sdk/client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"devDependencies": {
1414
"@codama/nodes-from-anchor": "^1.1.1",
15-
"@codama/renderers-rust": "^1.0.6",
15+
"@codama/renderers-rust": "^1.0.10",
1616
"@orca-so/whirlpools-program": "*",
1717
"@orca-so/whirlpools-rust-core": "*",
1818
"codama": "^1.2.1"

rust-sdk/client/src/gpa/fee_tier.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ use solana_client::rpc_filter::RpcFilterType;
44
use solana_program::pubkey::Pubkey;
55
use std::error::Error;
66

7+
use crate::generated::shared::DecodedAccount;
78
use crate::FeeTier;
89

910
use super::utils::fetch_decoded_program_accounts;
10-
use super::utils::DecodedAccount;
1111

1212
pub const FEE_TIER_DISCRIMINATOR: &[u8] = &[56, 75, 159, 76, 142, 68, 190, 105];
1313

rust-sdk/client/src/gpa/position.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ use solana_client::{
66
};
77
use solana_sdk::pubkey::Pubkey;
88

9-
use crate::Position;
9+
use crate::{generated::shared::DecodedAccount, Position};
1010

11-
use super::utils::{fetch_decoded_program_accounts, DecodedAccount};
11+
use super::fetch_decoded_program_accounts;
1212

1313
pub const POSITION_DISCRIMINATOR: &[u8] = &[170, 188, 143, 228, 122, 64, 247, 208];
1414

rust-sdk/client/src/gpa/position_bundle.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ use solana_client::rpc_filter::Memcmp;
55
use solana_client::rpc_filter::RpcFilterType;
66
use solana_program::pubkey::Pubkey;
77

8-
use super::utils::{fetch_decoded_program_accounts, DecodedAccount};
9-
use crate::PositionBundle;
8+
use crate::{generated::shared::DecodedAccount, PositionBundle};
9+
10+
use super::fetch_decoded_program_accounts;
1011

1112
pub const POSITION_BUNDLE_DISCRIMINATOR: &[u8] = &[129, 169, 175, 65, 185, 95, 32, 100];
1213

rust-sdk/client/src/gpa/tick_array.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ use solana_client::nonblocking::rpc_client::RpcClient;
44
use solana_client::rpc_filter::{Memcmp, RpcFilterType};
55
use solana_program::pubkey::Pubkey;
66

7-
use super::utils::{fetch_decoded_program_accounts, DecodedAccount};
8-
use crate::TickArray;
7+
use super::fetch_decoded_program_accounts;
8+
use crate::{generated::shared::DecodedAccount, TickArray};
99

1010
pub const TICK_ARRAY_DISCRIMINATOR: &[u8] = &[69, 97, 189, 190, 110, 7, 66, 187];
1111

rust-sdk/client/src/gpa/token_badge.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ use solana_client::nonblocking::rpc_client::RpcClient;
44
use solana_client::rpc_filter::{Memcmp, RpcFilterType};
55
use solana_program::pubkey::Pubkey;
66

7-
use super::utils::{fetch_decoded_program_accounts, DecodedAccount};
8-
use crate::TokenBadge;
7+
use super::fetch_decoded_program_accounts;
8+
use crate::{generated::shared::DecodedAccount, TokenBadge};
99

1010
pub const TOKEN_BADGE_DISCRIMINATOR: &[u8] = &[116, 219, 204, 229, 249, 116, 255, 150];
1111

rust-sdk/client/src/gpa/utils.rs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,8 @@ use solana_client::{
77
rpc_config::{RpcAccountInfoConfig, RpcProgramAccountsConfig},
88
rpc_filter::RpcFilterType,
99
};
10-
use solana_program::pubkey::Pubkey;
11-
use solana_sdk::account::Account;
1210

13-
use crate::WHIRLPOOL_ID;
14-
15-
#[derive(Debug, Clone)]
16-
pub struct DecodedAccount<T> {
17-
pub address: Pubkey,
18-
pub account: Account,
19-
pub data: T,
20-
}
11+
use crate::{generated::shared::DecodedAccount, WHIRLPOOL_ID};
2112

2213
pub(crate) async fn fetch_decoded_program_accounts<T: BorshDeserialize>(
2314
rpc: &RpcClient,

rust-sdk/client/src/gpa/whirlpool.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ use solana_client::{
66
};
77
use solana_sdk::pubkey::Pubkey;
88

9-
use super::utils::{fetch_decoded_program_accounts, DecodedAccount};
10-
use crate::Whirlpool;
9+
use super::fetch_decoded_program_accounts;
10+
use crate::{generated::shared::DecodedAccount, Whirlpool};
1111

1212
pub const WHIRLPOOL_DISCRIMINATOR: &[u8] = &[63, 149, 209, 12, 225, 128, 99, 9];
1313

rust-sdk/client/src/gpa/whirlpools_config.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ use solana_client::{
66
};
77
use solana_sdk::pubkey::Pubkey;
88

9-
use super::utils::{fetch_decoded_program_accounts, DecodedAccount};
10-
use crate::WhirlpoolsConfig;
9+
use super::fetch_decoded_program_accounts;
10+
use crate::{generated::shared::DecodedAccount, WhirlpoolsConfig};
1111

1212
pub const WHIRLPOOLS_CONFIG_DISCRIMINATOR: &[u8] = &[157, 20, 49, 224, 217, 87, 193, 254];
1313

0 commit comments

Comments
 (0)