0.5.0 • Published 10 months ago

@moonwell-fi/moonwell-sdk v0.5.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

Moonwell SDK

Features

  • Up-to-date repository of Moonwell deployed contracts
  • First-class APIs for interacting with Moonwell Smart Contracts
  • Support for multiple networks: Base, Optimism, Moonbeam, and Moonriver
  • Comprehensive market data retrieval
  • User position and reward tracking
  • Governance functionality
  • Morpho integration

Installation

npm install @moonwell-fi/moonwell-sdk
# or
yarn add @moonwell-fi/moonwell-sdk

Quick Start

// 1. Import modules.
import { createMoonwellClient, base, optimism } from '@moonwell-fi/moonwell-sdk';

// 2. Set up your client with desired networks & RPC urls.
const moonwellClient = createMoonwellClient({
  networks: {
    base: {
      rpcUrls: ["https://base.llamarpc.com"],
    },
    optimism: {
      rpcUrls: ["https://optimism.llamarpc.com"],
    },
  },
});

// 3. Consume an action!
const markets = await moonwellClient.getMarkets();

Documentation

For detailed documentation and API reference, visit our SDK Documentation.

Supported Networks

  • Base
  • Optimism
  • Moonbeam
  • Moonriver

Key Features

  • Market Data: Retrieve comprehensive information about Moonwell markets
  • User Positions: Get user positions across all markets or for specific markets
  • Rewards: Track user rewards across markets
  • Governance: Access proposal data and voting information
  • Morpho Integration: Interact with Morpho markets and vaults

Contributing

We welcome contributions! Please read our contributing guidelines before submitting pull requests.

Community

Join our community and stay updated:

License

This project is licensed under the MIT License.

0.4.4

10 months ago

0.5.0

10 months ago

0.4.1

10 months ago

0.3.2

10 months ago

0.4.0

10 months ago

0.4.3

10 months ago

0.4.2

10 months ago

0.2.1

11 months ago

0.2.0

11 months ago

0.1.0

11 months ago

0.0.1

11 months ago

1.0.0

11 months ago