0.0.40 • Published 1 year ago

@fiatdao/sdk v0.0.40

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

FIAT SDK

Repository containing an SDK for easier interaction with FIAT

Getting started

Installing

Install the FIAT SDK by running the following command

yarn add @fiatdao/sdk # npm install @fiatdao/sdk

Usage

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
);

Requirements

This repository uses Node.js and Yarn for building and testing.

Set .env

Copy and update contents from .env.example to .env

Tests

After installing dependencies with yarn, run yarn test to run the tests.

Building and testing

git clone https://github.com/fiatdao/sdk
cd fiat
yarn # This installs the project's dependencies.
yarn test
0.0.40

1 year ago

0.0.37

1 year ago

0.0.38

1 year ago

0.0.39

1 year ago

0.0.35

1 year ago

0.0.36

1 year ago

0.0.34

1 year ago

0.0.33

1 year ago

0.0.32

1 year ago

0.0.31

1 year ago

0.0.30

1 year ago

0.0.29

1 year ago

0.0.28

1 year ago

0.0.27

1 year ago

0.0.26

1 year ago

0.0.25

1 year ago

0.0.24

1 year ago

0.0.23

1 year ago

0.0.22

1 year ago

0.0.21

1 year ago

0.0.20

1 year ago

0.0.19

1 year ago

0.0.18

1 year ago

0.0.17

1 year ago

0.0.16

1 year ago

0.0.15

1 year ago

0.0.14

1 year ago

0.0.13

1 year ago

0.0.12

1 year ago

0.0.10

1 year ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago