Repository containing an SDK for easier interaction with FIAT
Install the FIAT SDK by running the following command
yarn add @fiatdao/sdk # npm install @fiatdao/sdk
Instantiating the SDK via an existing provider
const detectEthereumProvider = require('@metamask/detect-provider');
const fiat = await fiat.fromProvider(await detectEthereumProvider());
Instantiating the SDK via private key in a node environment
const fiat = await FIAT.fromPrivateKey(
process.env.JSON_RPC_ENDPOINT_URL,
process.env.PRIVATE_KEY
);
This repository uses Node.js and Yarn for building and testing.
Copy and update contents from .env.example
to .env
After installing dependencies with yarn
, run yarn test
to run the tests.
git clone https://github.com/fiatdao/sdk
cd fiat
yarn # This installs the project's dependencies.
yarn test