Socket
Book a DemoInstallSign in
Socket

@circles/analysis

Package Overview
Dependencies
Maintainers
5
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@circles/analysis

Circles statistics and analytics toolkit

0.6.1
latest
Source
npmnpm
Version published
Weekly downloads
33
13.79%
Maintainers
5
Weekly downloads
 
Created
Source

circles-analysis

Analysis and statistics toolkit for Circles

License chat Follow Circles

Handbook | Releases | Contributing


Analysis and statistics toolkit for Circles, displaying basic metrics and exporting tabular data for further analysis in .csv or .json format.

Example

$ circles-analysis --output example.csv --format csv velocity
Analyse "velocity" (transfer velocity):
Request all "notifications" data from Graph ...
◆ Total days recorded: 112
◆ Velocity (Circles / Day): 20.069135714285716134
◆ Max velocity (one day): 553.2
Done processing 112 data entries total!
Stored results in example.csv

Installation

npm i -g @circles/analysis

Usage

Usage: circles-analysis [options] [command]

Circles statistics and analysis toolkit

Options:
  -V, --version                output the version number
  -e, --endpoint <url>         graphQL subgraph endpoint (default: "https://api.thegraph.com/..")
  -f, --format <csv|json>      file format of output file (default: "csv")
  -o, --output <path>          optional file output for tabular data
  -s, --relayer_address <str>  address of relayer funder (default: "0x0739..")
  -h, --help                   display help for command

Commands:
  transitive                transitive transactions in the Circles hub
  transfers                 regular transfer transactions including: transfer steps, ubi payouts, and gas fees
  transfersWithTimestamp    regular transfer transactions with timestamps including: transfer steps, ubi payouts, and gas fees
  trusts                    trust connection events
  ownerships                safe ownership events / device changes
  safes                     safe deployments and balances
  velocity                  transfer velocity
  help [command]            display help for command

Development

# Install dependencies
npm install

# Run commands like ..
node ./index.js --output results.csv velocity
// Import methods like ..
import analysis from '@circles/analysis';

analysis.setConfiguration({
 safeAddress: '...',
 endpoint: '...',
});

const velocity = await analysis.getVelocity();

License

GNU Affero General Public License v3.0 AGPL-3.0

FAQs

Package last updated on 06 Apr 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.