@layerzerolabs/framework-solana-anchor-trait 0.2.64 → 0.2.65

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.
package/README.md CHANGED
@@ -6,7 +6,7 @@ The Anchor framework provides no mechanism for defining or enforcing instruction
6
6
 
7
7
  `anchor-trait` introduces **instruction traits** to Anchor: compile-time enforceable instruction interfaces with optional default implementations. A trait author declares an instruction set — each instruction's parameter type, return type, and whether a default implementation is provided — and the framework ensures, during proc-macro expansion, that every implementing program satisfies the trait contract. Missing required instructions produce compile errors. View instructions additionally enforce **compile-time immutability**: handlers receive `&Context<T>` (not `&mut`), so read-only semantics are upheld by the type system rather than relying solely on Solana runtime protections.
8
8
 
9
- The framework is domain-agnostic. It operates purely at the instruction-signature and accounts-struct level, with no knowledge of any specific application domain. Macro crates such as `lz-oapp-macros` or `rbac-macros` integrate with `anchor-trait` to define their own domain-specific instruction traits.
9
+ The framework is domain-agnostic. It operates purely at the instruction-signature and accounts-struct level, with no knowledge of any specific application domain. Macro crates such as `oapp-macros` or `rbac-macros` integrate with `anchor-trait` to define their own domain-specific instruction traits.
10
10
 
11
11
  ### Correspondence to Rust traits
12
12
 
@@ -249,11 +249,11 @@ Each provided instruction's `DefaultAccounts` produces two outputs: the concrete
249
249
 
250
250
  ### Naming conventions
251
251
 
252
- | Item | Convention | Example |
253
- | ----------------------- | ---------------------------- | --------------------------------- |
254
- | Default accounts struct | `Std<PascalCaseInstruction>` | `StdSetPeer` |
255
- | Override attribute | `<domain>_instruction` | `oapp_instruction` |
256
- | Params type | Fully qualified path | `::lz_oapp::types::SetPeerParams` |
252
+ | Item | Convention | Example |
253
+ | ----------------------- | ---------------------------- | ------------------------------ |
254
+ | Default accounts struct | `Std<PascalCaseInstruction>` | `StdSetPeer` |
255
+ | Override attribute | `<domain>_instruction` | `oapp_instruction` |
256
+ | Params type | Fully qualified path | `::oapp::types::SetPeerParams` |
257
257
 
258
258
  ### InstructionSpec fields
259
259
 
@@ -1 +1 @@
1
- [73,153,199,14,45,23,5,37,62,234,38,31,60,200,156,204,35,237,246,34,72,188,56,69,13,236,5,206,127,206,36,137,61,200,17,165,123,14,230,111,61,132,87,121,222,171,249,224,231,177,13,33,33,145,186,84,53,18,72,224,166,64,148,167]
1
+ [143,237,208,137,148,97,72,197,129,0,160,178,75,9,2,44,196,175,204,40,70,117,61,37,237,233,142,249,249,238,28,61,109,101,145,186,7,51,68,36,42,149,5,235,136,87,24,144,57,197,82,169,204,215,249,105,58,110,10,53,187,25,153,198]
@@ -1 +1 @@
1
- [199,92,79,227,123,11,4,4,98,32,92,173,73,70,184,174,177,222,127,176,228,243,162,53,28,201,39,86,250,138,46,36,69,181,62,90,249,162,177,76,8,34,203,114,178,89,79,60,88,50,182,196,23,224,99,145,16,2,149,18,20,8,243,144]
1
+ [244,248,2,78,59,247,194,68,247,45,37,98,43,8,253,138,212,87,43,247,99,192,196,197,47,42,160,42,176,138,196,243,228,63,253,20,179,133,24,94,71,230,27,114,191,144,199,250,248,153,140,126,39,189,51,5,161,92,192,178,37,165,229,47]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@layerzerolabs/framework-solana-anchor-trait",
3
- "version": "0.2.64",
3
+ "version": "0.2.65",
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.64",
18
- "@layerzerolabs/tsup-configuration": "0.2.64",
19
- "@layerzerolabs/vm-tooling-solana": "0.2.64",
20
- "@layerzerolabs/typescript-configuration": "0.2.64"
17
+ "@layerzerolabs/build-utils-solana": "0.2.65",
18
+ "@layerzerolabs/typescript-configuration": "0.2.65",
19
+ "@layerzerolabs/vm-tooling-solana": "0.2.65",
20
+ "@layerzerolabs/tsup-configuration": "0.2.65"
21
21
  },
22
22
  "publishConfig": {
23
23
  "access": "restricted",