0.0.1-aplha • Published 12 months ago

timegraph-ts v0.0.1-aplha

Weekly downloads
-
License
MIT
Repository
-
Last release
12 months ago

TimeGraph Typescript SDK

Implementation of TimeGraph Gateway and Timechain functionalities.

Prerequisites

This project requires NodeJS (version 14 or later) and NPM. Node and NPM are really easy to install. To make sure you have them available on your machine, try running the following command.

$ npm -v && node -v
9.5.1
v18.16.0

Table of contents

Installation

BEFORE YOU INSTALL: please read the prerequisites

To install and set up the library, run:

npm install timegraph-ts

Or if you prefer using Yarn:

yarn add timegraph-ts

Usage

 // esm import
 import { Client } from 'timegraph-ts';

// cjs import
const { Client }  = require('timegraph-ts');

 // Client
const client  = new Client(<wssurl>);

API

Proxy

createProxyAccount(signer, address, client, proxyData, callback);
removeProxyAccount(signer, address, client, callback);
updateProxyAccount(signer, address, status, client, callback);
getProxyAccounts(client);

Task

getTasks(client);
createTask(client, address, signer, taskMetaData, callback);

Collections

createCollections(client, address, signer, collectionMedata, callback);
getCollections(client);

Contributing

Credits

Built With

Versioning

Authors

License