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

@authereum/contracts

Package Overview
Dependencies
Maintainers
3
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@authereum/contracts

> Ethereum smart contract for [Authereum](http://authereum.org)

  • 0.0.1-beta.2
  • npm
  • Socket score

Version published
Weekly downloads
103
decreased by-0.96%
Maintainers
3
Weekly downloads
 
Created
Source

Authereum Contracts

Ethereum smart contract for Authereum

Config

Environment variables:

NETWORK_NAME=kovan
ETH_HTTP_PROVIDER_URI='https://kovan.infura.io/v3/e40bbc8b768643668cfee8eef2469487'
SENDER_ADDRESS=0xaa0c264788F94EB24F6cA150449b3048777e11Ca
SENDER_PRIVATE_KEY=0x...
LOGIC_ADDRESS=0x...
ZOS_SESSION_PATH=/absolute-path-to/.openzeppelin/.session

You may also set the config by invoking the setConfig(config) static method.

Deploy

# Deploy the logic contract. Should only be called once.
npx zos push --network development

# Deploy a user's CBA. Args are _authKey, _authereumENSManager, _label
npx zos create AuthereumAccount --network development --init initialize --args 0x0000000000000000000000000000000000000001,0x0000000000000000000000000000000000000001,ensname

create2 example

npx zos create2 AuthereumAccount --salt 0x1112 --from 0xaa0c264788F94EB24F6cA150449b3048777e11Ca --network kovan

Addresses

Kovan
  • publicENSRegistry = 0x455C52FE20DC395E850b3ED9b82c9d1A05BFc471
  • authereumENSResolver = 0x9604DD189B2d293d7f7fb540E273ac4daA0a48F7
  • publicENSReverseRegistrar = 0x082D5E17d8773287115741d73bD3cE8232D83467
  • authereumENSManager = 0x8016194885195C4eD3ff553D52F7234654FF098C

Test

ganache-cli --port 8545 --deterministic --accounts 11
make tests

Upgrading

Set up upgrade environment:

npm install
npx zos init authereumContracts
npx zos add AuthereumAccount

Note: If the process hangs at Updated zos.json, simply end the process. The action has already been completed.

Update a contract:

make zos-update

When asked "Do you want to run a function after updating the instance", type "N"

FAQ

  • Why am I getting the following when I update my zos project (or run a test)?

    connection not open on send()
    connection not open
    
    • Try running ganache-cli on a different port (either 8545 or 9545)
  • Why is my test failing on a simple test? It seemingly reverts even when it shouldn't.

    • It is because you are running out of gas. There is an issue with zos (<2.4.0) and ganache (>= 6.4.0) where gas estimation does not work. You must manually set the gasLimit in the transaction, for now. See herre for the proposed fix in 2.4.0rc2.

License

MIT

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