@layerzerolabs/framework-solana-anchor-trait 0.2.73 → 0.2.75

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,7 +3,7 @@ members = ["programs/ellipse", "programs/triangle", "macros"]
3
3
  resolver = "2"
4
4
 
5
5
  [workspace.dependencies]
6
- anchor-lang = "0.32.1"
6
+ anchor-lang = "1.0.0"
7
7
  anchor-trait = { path = "../.." }
8
8
  shapes-macros = { path = "macros" }
9
9
  mollusk-svm = { version = "0.8", features = ["inner-instructions"] }
@@ -1,6 +1,6 @@
1
1
  //! Shared test helpers: PDA derivation, account builders, fixtures, and instruction builders.
2
2
 
3
- use anchor_lang::{AnchorSerialize, Discriminator};
3
+ use anchor_lang::{prelude::borsh, AnchorSerialize, Discriminator};
4
4
  use mollusk_svm::{program::keyed_account_for_system_program, Mollusk};
5
5
  use shapes_ellipse::{instruction as ix, DimensionParams, InitParams, ShapeState};
6
6
  use solana_account::Account;
@@ -52,7 +52,7 @@ pub fn sys_keyed() -> (Pubkey, Account) {
52
52
 
53
53
  pub fn ix_data<T: AnchorSerialize>(discriminator: &[u8], params: T) -> Vec<u8> {
54
54
  let mut d = discriminator.to_vec();
55
- d.extend(params.try_to_vec().unwrap());
55
+ d.extend(borsh::to_vec(&params).unwrap());
56
56
  d
57
57
  }
58
58
 
@@ -1,6 +1,6 @@
1
1
  //! Shared test helpers: PDA derivation, account builders, fixtures, and instruction builders.
2
2
 
3
- use anchor_lang::{AnchorSerialize, Discriminator};
3
+ use anchor_lang::{prelude::borsh, AnchorSerialize, Discriminator};
4
4
  use mollusk_svm::{program::keyed_account_for_system_program, Mollusk};
5
5
  use shapes_triangle::{instruction as ix, DimensionParams, InitParams, ShapeState};
6
6
  use solana_account::Account;
@@ -64,7 +64,7 @@ pub fn sys_keyed() -> (Pubkey, Account) {
64
64
 
65
65
  pub fn ix_data<T: AnchorSerialize>(discriminator: &[u8], params: T) -> Vec<u8> {
66
66
  let mut d = discriminator.to_vec();
67
- d.extend(params.try_to_vec().unwrap());
67
+ d.extend(borsh::to_vec(&params).unwrap());
68
68
  d
69
69
  }
70
70
 
@@ -120,4 +120,3 @@ pub fn get_dimension_ix(shape: &Pubkey, index: u8) -> Instruction {
120
120
  data: ix_data(ix::GetDimension::DISCRIMINATOR, DimensionParams { index }),
121
121
  }
122
122
  }
123
-
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@layerzerolabs/framework-solana-anchor-trait",
3
- "version": "0.2.73",
3
+ "version": "0.2.75",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -14,10 +14,10 @@
14
14
  "rustfmt.toml"
15
15
  ],
16
16
  "devDependencies": {
17
- "@layerzerolabs/build-utils-solana": "0.2.73",
18
- "@layerzerolabs/typescript-configuration": "0.2.73",
19
- "@layerzerolabs/vm-tooling-solana": "0.2.73",
20
- "@layerzerolabs/tsup-configuration": "0.2.73"
17
+ "@layerzerolabs/build-utils-solana": "0.2.75",
18
+ "@layerzerolabs/tsup-configuration": "0.2.75",
19
+ "@layerzerolabs/typescript-configuration": "0.2.75",
20
+ "@layerzerolabs/vm-tooling-solana": "0.2.75"
21
21
  },
22
22
  "publishConfig": {
23
23
  "access": "restricted",
@@ -31,7 +31,7 @@
31
31
  "scripts": {
32
32
  "allow-read-write": "[ -z \"$CI\" ] || sudo chmod -R a+rwx ./target ./examples/shapes/target",
33
33
  "build": "pnpm build:lib && pnpm build:example && pnpm allow-read-write",
34
- "build:example": "pnpm exec lz-tool --script 'anchor build --no-idl' anchor",
34
+ "build:example": "pnpm exec lz-tool --script 'anchor build --no-idl --ignore-keys' anchor",
35
35
  "build:lib": "pnpm exec lz-tool --script 'cargo build' anchor",
36
36
  "check": "pnpm exec lz-tool --script 'cargo check' anchor",
37
37
  "clean": "rm -rf target",