Socket
Socket
Sign inDemoInstall

@hcaptcha/hmt-escrow-js

Package Overview
Dependencies
624
Maintainers
3
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @hcaptcha/hmt-escrow-js

Hmt-escrow JS library


Version published
Maintainers
3
Created

Readme

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

Last updated on 08 Oct 2020

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc