New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

tribute-contracts-cli

Package Overview
Dependencies
Maintainers
5
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tribute-contracts-cli

A command line interface tool to interact with @openlaw/tribute-contracts.

  • 0.1.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
5
Weekly downloads
 
Created
Source

Tribute Contract CLI

Build

npm ci

Setup

From the root folder of the project:

  • Create the contracts.js, and set the contract's names and addresses from your DAO:
    const contracts = {
    // DAO Core Contracts
    DaoRegistry: "0x...",
    
    // Extensions
    BankExtension: "0x...",
    
    // Adapters
    ManagingContract: "0x...",
    OffchainVotingContract: "0x...",
    };
    
    module.exports = { contracts };
    
  • Create the .env file, and set the env vars:
    # The mnemonic to open your wallet and sign transactions
    TRUFFLE_MNEMONIC=...
    
    # The snapshot-hub URL to connect
    SNAPSHOT_HUB_API_URL=https://...
    
    # The space name defined in the Snapshot Hub API
    SNAPSHOT_HUB_SPACE=...
    
    # The Ethereum Network which CLI should interact with: ganache, rinkeby, mainnet
    ETHEREUM_NETWORK=rinkeby
    
    # Enable DEBUG to see the logs of the CLI interactions with SnapshotHub and DAO
    DEBUG=false
    
    # Infura Key
    INFURA_KEY=...
    
    # Alchemy Key
    ALCHEMY_KEY=...
    

Compile

npm run compile

Run

npm link trib --help

Version Compatibility

ContractsUICLISnapshot
v1.0.0v1.1.0v0.1.1v1.2.0
v1.0.2v1.1.0v0.1.2v1.2.0

FAQs

Package last updated on 13 Sep 2021

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