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

@archanova/solidity

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@archanova/solidity

Archanova solidity contracts

  • 0.0.10
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Archanova Solidity

NPM version CircleCI

Archanova solidity contracts

Installation

$ npm i @archanova/solidity -S

Usage

import { 
  ContractNames, 
  getContractAddress, 
  getContractAbi, 
  getContractByteCodeHash, 
} from '@archanova/solidity'; 

console.log(
  'AccountProvider rinkeby address:', 
  getContractAddress(ContractNames.AccountProvider, '4'),
);
console.log(
  'Account abi:', 
  getContractAbi(ContractNames.Account),
);
console.log(
  'Account byteCodeHash:',
  getContractByteCodeHash(ContractNames.Account),
);

Exported fields:

Contract nameabibyteCodeHashaddresses
Account
AccountProvider
AccountProxy
ENSRegistry
ENSResolver
Guardian
VirtualPaymentManager

Development

Setup

$ git clone git@github.com:archanova/solidity.git
$ cd ./solidity
$ npm i

Migration

Configure env variables:
NameDefault Value
PROVIDER_MNEMONIC-
PROVIDER_ENDPOINThttp://localhost:8545
ENS_TOP_LABELSarchanova,smartsafe
VIRTUAL_PAYMENT_LOCK_PERIOD30 * 24 * 60 * 60
Start Migration:
# Rinkeby TestNet
$ npm run migrate:rinkeby

# Kovan TestNet
$ npm run migrate:kovan

Building ./dist

$ npm run build

Running Tests

$ npm test

License

The MIT License

FAQs

Package last updated on 23 Apr 2019

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