Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@devprotocol/dev-kit

Package Overview
Dependencies
Maintainers
0
Versions
140
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@devprotocol/dev-kit

Dev Kit for JavaScript

  • 8.7.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8.9K
increased by210.34%
Maintainers
0
Weekly downloads
 
Created
Source

dev-kit-js

CI Status code style: prettier

Dev Kit for JavaScript

How to use

install

First, install this repository as an npm package.

> npm i -D @devprotocol/dev-kit

import

You can use the Dev Protocol by importing it from a JavaScript(TypeScript) file.

import { contractFactory } from '@devprotocol/dev-kit'
import { providers } from 'ethers'

const provider = new providers.Web3Provider(window.ethereum)
const factory = contractFactory(provider)
const balance = await factory
	.dev()
	.balanceOf('0xB204f0Bb68De735b98abBA5ccAE7459837c2f084')

This is an example of retrieving the balance of the DEV token held by 0xB204f0Bb68De735b98abBA5ccAE7459837c2f084

It covers all the contracts and their functions that can be executed with the Dev Protocol.

The URL of the provider is easy to use with each node provisioning service.

how to develop

## install dependency
> yarn

## test
> yarn test

## test with coverage
> yarn test:coverage

## build
> yarn build

how to publish

> npm version [major|minor|patch]
> git push && git push --tags

GitHub Actions "Publish" automatically publishes the new version.

FAQs

Package last updated on 13 Aug 2024

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