Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/attention-streams/contracts
https://github.com/attention-streams/contracts
ethereum finance governance smart-contracts voting
Last synced: 29 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/attention-streams/contracts
- Owner: attention-streams
- Created: 2022-03-12T05:38:50.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-25T17:01:09.000Z (11 months ago)
- Last Synced: 2024-04-26T07:45:26.468Z (7 months ago)
- Topics: ethereum, finance, governance, smart-contracts, voting
- Language: Solidity
- Homepage: https://docs.google.com/document/d/1TKA-K8YadRdgz-Qek01TUcCkRaI9CKCXGtJ31AbVWIU/
- Size: 938 KB
- Stars: 7
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Attention Streams
This project is an implementation of [Attention Streams](https://docs.google.com/document/d/1TKA-K8YadRdgz-Qek01TUcCkRaI9CKCXGtJ31AbVWIU/edit?usp=sharing).
## Quick start
clone this repo in desired location:
```shell
git clone https://github.com/attention-streams/contracts.git
```cd into the repo
```shell
cd contracts
```install dependencies
```shell
npm install
```generate types from contracts for tests
```shell
npx hardhat typechain
```run test in a local hardhat blockchain
```shell
npx hardhat test
```Try running some of the following tasks:
```shell
npx hardhat accounts
npx hardhat compile
npx hardhat clean
npx hardhat test
npx hardhat node
npx hardhat help
REPORT_GAS=true npx hardhat test
npx hardhat coverage
npx hardhat run scripts/deploy.ts
TS_NODE_FILES=true npx ts-node scripts/deploy.ts
npx eslint '**/*.{js,ts}'
npx eslint '**/*.{js,ts}' --fix
npx prettier '**/*.{json,sol,md}' --check
npx prettier '**/*.{json,sol,md}' --write
npx solhint 'contracts/**/*.sol'
npx solhint 'contracts/**/*.sol' --fix
```