You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At some point in the future we will work on having scripts that will populate data in the subgraph
90
-
on ropsten, so we can better test.
91
+
on ropsten, so we can better test.
91
92
92
93
## Installation & Deployment of Contracts
94
+
93
95
1. Install Node.js `^11.0.0`
94
96
1. Run `npm install` at project root directory
95
97
1. Install and run `testrpc`, `ganache-cli`, or similar blockchain emulator
96
-
- Configure to run on port `8545` or edit `truffle.js` to change the port used by Truffle
98
+
- Configure to run on port `8545` or edit `truffle.js` to change the port used by Truffle
97
99
1. Install Truffle 5.0.0
98
-
-`npm install -g truffle`
100
+
-`npm install -g truffle`
99
101
1. Truffle project commands
100
-
-`truffle install` (installs ethPM dependencies)
101
-
-`truffle compile` (compiles without deploying, local blockchain emulator not neccessary)
102
-
-`truffle migrate [--reset] [--compile-all]` (deploys contracts to your local emulator or specified blockchain)
103
-
-`truffle test` (runs tests)
102
+
-`truffle install` (installs ethPM dependencies)
103
+
-`truffle compile` (compiles without deploying, local blockchain emulator not neccessary)
104
+
-`truffle migrate [--reset] [--compile-all]` (deploys contracts to your local emulator or specified blockchain)
105
+
-`truffle test` (runs tests)
104
106
1. See [DEPLOYMENT.md](./DEPLOYMENT.md) for instructions on deploying the contracts to the blockchain.
105
107
106
108
## Abstract
109
+
107
110
This repository will contain the Solidity smart contracts needed to facilitate the processes defined in the Product Requirements Document provided by The Graph.
108
111
(see: [PRD on Notion](https://www.notion.so/Hybrid-POC-Smart-Contracts-18646757d3644f73bf9fdfb2e98b93eb))
*[See ./contracts/README.md for full list of contracts](./contracts/)*
131
+
_[See ./contracts/README.md for full list of contracts](./contracts/)_
128
132
129
133
## Requirement and Implementation Annotations
130
-
Each contract includes docstring-like comments with requirements listed at the top of the file.
134
+
135
+
Each contract includes docstring-like comments with requirements listed at the top of the file.
131
136
132
137
Example: `@req c01 Any User can stake Graph Tokens to be included as a Curator for a given subgraphId.`
133
138
134
139
Explanation: The `c01` denotes a section and number for the requirement. `c` in this case stands for `curation` and later in the contract we see `@req s01` used for a `staking` requirement.
135
140
136
141
Farther down in the code you should see annotations for the implementation of each requirement written as `@imp c01` (and so on). This is meant to be a simple way of defining and matching requirements and their implementations.
0 commit comments