prophet-sdk
v0.0.0-a6edc18d
Published
Lightweight and user-friendly wrapper around Prophet contracts
Downloads
3
Readme
Prophet SDK
⚠️ The code is under development, tread with caution.
Overview
Lightweight and user-friendly wrapper around Prophet contracts. The SDK will be a wrapper for blockchain calls, and will support all of the shared interfaces mirroring all of the oracle’s and the modules’ functions in the Smart Contracts.
The SDK will also support adding custom modules so that any developer can create and use modules specific to their use case.
Setup
To build it locally, run:
git clone [email protected]:defi-wonderland/prophet-sdk.git
cd
yarn install
yarn build
Installation
You can install the sdk via yarn:
yarn add prophet-sdk
Structure
~~ Structure ~~
├── examples: Simple examples that use the sdk
├── docs: Documentation for the sdk
├── src: The sdk scripts and logic
│ ├─── types/: All the contract types and defined types
│ │ ├─── Oracle: The oracle class
│ │ ├─── Module: The general module class
│ │ ├─── X_Modules: The rest of the modules as interfaces
│ │ └─── ...
│ ├─── utils/: General util functions we will need
│ │ ├─── batching: Util responsible to batch calls
│ │ ├─── chain constants: Addresses and general constants
│ │ └─── other utils like handling pinata etc
│ ├─── provider.ts: Handles different providers and networks
│ ├─── Oracle.ts: The main logic of the oracle sdk
| └─── ...
├── tests: Tests for the sdk
│ ├─── helpers/: Helpers needed for the tests
│ └─── ...
├── README.md
Contributors
Prophet SDK was built with ❤️ by Wonderland.
Wonderland is a team of top Web3 researchers, developers, and operators who believe that the future needs to be open-source, permissionless, and decentralized.
DeFi sucks, but Wonderland is here to make it better.