Socket
Socket
Sign inDemoInstall

@archanova/contracts

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@archanova/contracts

Archanova solidity contracts


Version published
Weekly downloads
30
increased by66.67%
Maintainers
1
Weekly downloads
 
Created
Source

Archanova Solidity

NPM version CircleCI

Archanova solidity contracts

Installation

$ npm i @archanova/contracts -S

Usage

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

console.log(
  'AccountProvider mainnet address:', 
  getContractAddress(ContractNames.AccountProvider, '1'),
);
console.log(
  'AccountProvider kovan address:', 
  getContractAddress(ContractNames.AccountProvider, '42'),
);
console.log(
  'Account abi:', 
  getContractAbi(ContractNames.Account),
);
console.log(
  'Account byteCodeHash:',
  getContractByteCodeHash(ContractNames.Account),
);

Contracts:

NameabibyteCodeHashaddresses
Account
AccountProvider
AccountProxy
AccountFriendRecovery
ENSRegistry
ENSResolver
ExampleToken
ERC20Token
Guardian
VirtualPaymentManager

Development

Setup

$ git clone https://github.com/netgum/archanova-contracts.git
$ cd ./archanova-contracts
$ npm i

Migration

Configure env variables:
NameDefault Value
PROVIDER_MNEMONIC-
PROVIDER_ENDPOINThttp://localhost:8545
ENS_ADDRESS-
ENS_TOP_LABELSarchanova,smartsafe,pillar
VIRTUAL_PAYMENT_LOCK_PERIOD30 * 24 * 60 * 60
Start Migration:
$ npm run migrate:main
$ npm run migrate:ropsten
$ npm run migrate:rinkeby
$ npm run migrate:kovan
$ npm run migrate:sokol
$ npm run migrate:xdai

Building ./dist

$ npm run build

Running Tests

$ npm test

License

The MIT License

FAQs

Package last updated on 12 Jul 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