npm.io
1.0.1 • Published 3 years ago

arena-tools

Licence
ISC
Version
1.0.1
Deps
4
Size
38 kB
Vulns
0
Weekly
0
Stars
1

Arena Logo
Simple event tracking tools for web3 applications

Documentation

You can get the latest version of Arena tools from npm.

npm install arena-tools

Once installed you can begin tracking your events in your code calling these methods:

Log Event

You can track any event invoking logEvent(token, address, event_you_want_to_track) method:

import React, { Component }  from 'react';
// Other imports you need
import { logEvent } from 'arena-tools'
const ARENA_TOKEN = '1234567890' // You'll get your token by signing in our website

// YOUR CODE HERE

// When you want to log an event you have to use this method
logEvent(ARENA_TOKEN, walletAddress, "event you want to log")

Keywords