@osmosis-labs/stores
TypeScript icon, indicating that this package has built-in type declarations

4.0.0 • Public • Published

@osmosis-labs/stores

Contains observable stores via mobx data storage framework.

Components:

  • OsmosisAccount: account store creator (use). Creates mobx object mapped to chain IDs with:
    • Keplr wallet connection status, bech32Address
    • Cosmos messages
    • Cosmwasm contract execute message
    • Osmosis messages
  • CurrencyRegistrar: maps IBC denoms to human readable denoms into ChainStore objects
  • IbcHistory: stores IBC transfer transactoin state in localStorage for some time, including pending status
  • Price: maps coin denoms to price info (currently CoinGecko, with a fallback to pool data for tokens not on CoinGecko)
  • Queries: queries and computes on Osmosis chain data
  • QueriesExternal: queries and computes on external APIs. e.g. Imperator historical chain data & price API.
  • Tx: stores utilities for sending IBC transfer message and working with transaction result objects originating from Keplr
  • UIConfig: contains various stores for UI state related to common Osmosis frontend user activites: choosing lock duration, adding/removing liquidity, creating pool, choosing a token amount, trading token in, etc.

Test

Will run a Docker container from LocalOsmosis image (arch: M1 Pro).

yarn build && yarn test

Install

npm i @osmosis-labs/stores

DownloadsWeekly Downloads

8

Version

4.0.0

License

Apache-2.0

Unpacked Size

2.31 MB

Total Files

418

Last publish

Collaborators

  • jonator
  • daniel-farinax
  • pyramation