bctsag-wallets

1.0.0 • Public • Published

Background

Multi-signature wallets are used in the governance smart-contract of the Tellor Protocol.

The package contains the gnosis safe and multisig contracts from:

  1. https://github.com/gnosis/safe-contracts
  2. https://github.com/gnosis/MultiSigWallet

Initial Setup

Prerequisites

The following tools are expected to be installed on your system to run this project:

  • Node
  • NPM
  • YARN
  • Hardhat
  • Git

Setup

Install dependencies:

yarn install

Compile

Compile contracts:

npx hardhat compile

Lint

Run linter:

npx eslint .

Publish

Publish to NPM repository.

Login to your account at https://www.npmjs.com/:

npm login

Publish package to your NPM account:

npm publish

Usage

Test Locally (on hardhat)

Run unit tests on the contracts (on hardhat):

npx hardhat test

Test Locally (on localhost)

  1. Start HTTP and WebSocket JSON-RPC server at http://127.0.0.1:8545/:
npx hardhat node
  1. Run unit tests on the contracts (by other command line terminal):
npx hardhat test --network localhost

Deploy Smart Contracts

You need to set the environment variables NODE_URL and PRIVATE_KEY.
To learn more about these environment variables, see the README.md in the tellorFlex folder.

Deploy Smart Contracts onto Fantom testnet

Deploy the contract onto the Fantom testnet:

npx hardhat run --network fantom_testnet scripts/deployMultiSig.js

Deploy Smart Contracts onto SwissDLT testnet

Deploy the contract onto the SwissDLT testnet:

npx hardhat run --network swissdlt_testnet scripts/deployMultiSig.js

Deploy Smart Contracts onto Hedera testnet

Deploy the contract onto the Hedera testnet:

npx hardhat run --network hedera_testnet scripts/deployMultiSig.js

Contributing

Bug reports and pull requests are welcome on GitHub at:
https://github.com/BCTSAG/tellor

Readme

Keywords

none

Package Sidebar

Install

npm i bctsag-wallets

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

4.67 MB

Total Files

87

Last publish

Collaborators

  • zazhigin