| Crates.io | stork-cw |
| lib.rs | stork-cw |
| version | 0.1.2 |
| created_at | 2025-01-28 17:21:37.346722+00 |
| updated_at | 2025-09-11 20:00:32.200994+00 |
| description | A Stork Protocol contract for the CosmWasm ecosystem |
| homepage | |
| repository | https://github.com/Stork-Oracle/stork-external |
| max_upload_size | |
| id | 1533787 |
| size | 73,336 |
This is the Stork CosmWasm compatible contract. This crate is maintained by Stork Labs.
It is available on crates.io.
This crate can be used as an SDK to build contracts that interact with the Stork Contract by including it as a dependency and enabling the library feature.
The Stork CosmWasm Contract allows users to consume Stork price updates on a pull basis. This puts the responsibility of submitting the price updates on-chain to the user whenever they want to interact with an app that consumes Stork price feeds. Stork Labs maintains a Chain Pusher in order to do this.
On CosmWasm, Stork feeds exist inside a table stored on-chain. This table associates a given encoded asset id (keccak256 of the plaintext asset id) with a TemporalNumericValue instance.
This contract is built using the Sylvia Framework. This heavily reduces the amount of boilerplate needed to create a CosmWasm contract while remaining fully compatible with the CosmWasm SDK. This generates the sv and entry_points modules, in the contract module.
Examples of using this crate as an SDK in both Sylvia and Non-Sylvia contracts to consume Stork data can be found in the stork-external github repo.