Closed maxrobot closed 1 month ago
The recent changes introduce the injective-std-derive
package, a procedural macro library designed to enhance the integration of CosmWasm smart contracts with the Cosmos SDK. This addition streamlines the development process by offering new capabilities for proto-generated types, improved query functionalities, and enhanced serialization. Alongside this, the injective-std
package has been updated to leverage these new macros, ensuring greater stability and functionality within the ecosystem.
Files | Change Summary |
---|---|
packages/injective-std-derive/* |
Introduced the injective-std-derive package, including Cargo.toml , README.md , and lib.rs , which implements the derive_cosmwasm_ext macro to generate traits and handle Cosmos SDK queries. Added test files to ensure the correctness of implementations and functionalities. |
packages/injective-std/Cargo.toml |
Downgraded the package version from 1.13.2-testnet to 1.13.0 , updated cosmwasm-std to version 2.1.0 , and replaced osmosis-std-derive with injective-std-derive . |
packages/injective-std/src/types/cosmos/* |
Updated multiple files to change the import of CosmwasmExt from osmosis_std_derive to injective_std_derive , indicating a shift in dependency. Several data structures were also modified for consistent naming conventions, particularly changing from snake_case to camelCase. |
sequenceDiagram
participant Developer
participant ProceduralMacro
participant CosmosSDK
participant QuerySystem
Developer->>ProceduralMacro: Define message struct with attributes
ProceduralMacro->>Developer: Generate traits and implementations
Developer->>CosmosSDK: Use generated traits for smart contract
Developer->>QuerySystem: Execute queries using new request structures
QuerySystem->>CosmosSDK: Return results based on query execution
π° In fields of code, I hop with glee,
Procedural macros set my logic free!
With traits and queries, I dance and play,
Enhancing contracts in a clever way.
Join me, dear devs, letβs code with delight,
The future is bright, letβs code day and night! π
As discussed.
Summary by CodeRabbit
New Features
injective-std-derive
package that provides procedural macros to streamline development with CosmWasm smart contracts.Bug Fixes
Documentation
injective-std-derive
package to explain its purpose and usage, improving developer understanding.Tests
Style