Introduction
Introduction
maple-js
is a powerful and user-friendly JavaScript SDK designed for seamless interaction with Maple Protocol's smart contracts on the Ethereum blockchain. This SDK provides developers with essential tools to easily integrate with the Maple Protocol ecosystem, streamlining the process of connecting to the blockchain, managing accounts, submitting transactions, and handling events generated by smart contracts.
By utilizing the JavaScript SDK for Maple Protocol, developers can efficiently build robust and secure dApps that unlock the full potential of Maple Protocol's smart contracts, encouraging innovation and promoting the adoption of decentralized finance solutions.
Whether you're developing backend services, frontend applications, or a combination of both, the Maple SDK offers the tools necessary for a smooth user experience.
Exports
Addresses
Export | Purpose |
---|---|
| Contains the contract addresses for the Maple Protocol on different networks (mainnet & Goerli testnet) |
TypeChain
maple-js
exports are provided via TypeChain - convenient and error-resistant way for developers to call smart contract functions, ensuring a smoother integration with Maple Protocol's ecosystem.
TypeChain exports are automatically generated TypeScript bindings for Ethereum smart contracts. These bindings make it easier for developers to interact with smart contracts by providing type-safe methods for contract functions. This means that developers can leverage TypeScript's type-checking and autocomplete features, reducing the likelihood of errors and improving the overall development experience.
Export | Purpose |
---|---|
| Manages Balancer liquidity pool functionality |
| Standard ERC20 token contract functionality |
| Manages fixed-term loan creation and management functionality |
| Manages loan creation and management functionality |
| Implements loan v4 functionality |
| Implements loan v5 functionality |
| Manages global settings and configurations for Maple Protocol (version 2) |
| Manages global settings and configurations for Maple Protocol (version 2.2) |
| Implements the Maple Protocol token functionality |
| Implements open-term loans functionality |
| Manages open-term loan creation and management functionality |
| Manages pool creation and management functionality |
| Manages pool creation and management functionality (version 2) |
| Manages liquidity pools in the Maple Protocol ecosystem (version 2) |
| Manages withdrawal functionality in the Maple Protocol ecosystem |
| Implements the XMPL token functionality |
Depending on the smart contract package structure, the SDK export might include different properties, such as core
, factory
, initializer
, deployer
, which can be accessible through the export. For example, the openTermLoan
export includes the following properties:
Types
Export | Purpose |
---|---|
| Enumerates different contract types in the Maple Protocol ecosystem |
| Mapping of contract addresses to their respective types in the Maple Protocol ecosystem |
Last updated