New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@topocount/gasless-conviction-sdk

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@topocount/gasless-conviction-sdk

A gasless conviction sdk browser client

  • 0.0.1-beta.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Gasless Conviction Voting Client SDK

Background

This SDK is for use with the Gasless Conviction Service. It abstracts away the details of interacting with the service and Ceramic to create and update user docs, and retrieve the global state document and the documents it references.

Getting Started

Install the package in your webapp

npm i @topocount/gasless-conviction-sdk

Then import the class and use it to interact with ceramic and the service:

// index.js
import {CvApi} from "@topocount/gasless-conviction-sdk";
{
  // some async scope
  const cvApi = await CvApi.from({
    ceramic,
    serviceURI: "https://myCVService.io",
  });
}

See api.ts for inline api documentation.

Lifecycle Details

Currently, there is no way to delete proposals from the global state document using the SDK. This is still an undeveloped lifecycle, since it requires some compromise on decentralization. Ideas and feedback are welcome.

For now, frontend developers can implement policies that filter out proposals based on some combination of:

  • trigger state
  • age
  • proposer

FAQs

Package last updated on 06 Oct 2021

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc