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

@hcaptcha/hmt-escrow-js

Package Overview
Dependencies
Maintainers
3
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hcaptcha/hmt-escrow-js

Hmt-escrow JS library

  • 1.0.0-a1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

HMT-Escrow Javascript Module

This is currently a work in progress port of the escrow library to JS

Getting started

Setup a .env file with following spec and the values you want to deploy with:

INFURA_KEY=<Fill me in>
MNEMONIC=<Fill me in>
NETWORK="rinkeby"

Install Package

To start using this, you'll need to install it into your project via one of the below methods:

# with Yarn
yarn install hmt-escrow-js

# Using NPM
npm yarn install --save hmt-escrow-js

Use the module directly to launch new job

  const { Job } = require('hmt_escrow_js')
  try {
    const job = new Job(gas_payer,
                        gas_payer_priv,
                        rep_oracle_pub_key,
                        manifest_url)
    job.launch()
    console.log("Pending Verification & Upload")
  }
  catch(e) {
    console.log(e)
  }

Contributing / Development

Generating JSON schema from basemodels

from basemodels.pydantic.manifest import Manifest
js_model = Manifest.schema_json(indent=2)
with open('manifest-schema-pydantic.json', 'w', encoding='utf-8') as f:
    json.dump(js_model, f, ensure_ascii=False)

FAQs

Package last updated on 08 Oct 2020

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