@mimicprotocol/lib-ts
v0.0.1-rc.32
Published
<h1 align="center"> <a href="https://mimic.fi"><img src="https://www.mimic.fi/logo.png" alt="Mimic Protocol" width="200"></a> </h1>
Readme
Content
This package provides a lightweight standard library for writing Mimic Protocol tasks in AssemblyScript. It includes:
- Typed primitives to interact with oracles and contracts
- Safe and minimal bindings for blockchain-specific operations
- Utility helpers for developing deterministic, deployable task logic
Setup
To set up this project you'll need git and yarn installed.
Install the library from the root of the monorepo:
# Clone this repository
$ git clone https://github.com/mimic-protocol/tooling
# Go into the repository
$ cd tooling
# Install dependencies
$ yarnUsage
Here’s an example of how to use the library in a Mimic task:
import { environment, ERC20Token } from '@mimicprotocol/lib-ts'
const USDC = ERC20Token.fromString('0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48', 1)
environment.tokenPriceQuery(USDC, new Date(1744818017000))For full task development guide and examples please visit docs.mimic.fi
Security
To read more about our auditing and related security processes please refer to the security section of our docs site.
However, if you found any potential issue in any of our smart contracts or in any piece of code you consider critical for the safety of the protocol, please contact us through [email protected].
License
This project is licensed under the GNU General Public License v3.0.
See the LICENSE file for details.
Third-Party Code
This project includes code from The Graph Tooling, licensed under the MIT License.
See the LICENSE-MIT file for details.
Their original license and attribution are preserved.
Website mimic.fi · Docs docs.mimic.fi · GitHub @mimic-fi · Twitter @mimicfi · Discord mimic
