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
Copy file name to clipboardExpand all lines: README.md
+8-12
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@
29
29
30
30
## Packages
31
31
32
-
This repository is a Yarn workspaces monorepo containing the following packages:
32
+
This repository is a pnpm workspaces monorepo containing the following packages:
33
33
34
34
| Package | Latest version | Description |
35
35
| --- | --- | --- |
@@ -46,26 +46,22 @@ This repository is a Yarn workspaces monorepo containing the following packages:
46
46
## Development
47
47
48
48
### Setup
49
-
To set up this project you'll need [git](https://git-scm.com) and [yarn](https://yarnpkg.com/) installed. Note that Yarn v4 is required to install the dependencies and build the project.
49
+
To set up this project you'll need [git](https://git-scm.com) and [pnpm](https://pnpm.io/) installed.
@@ -77,7 +73,7 @@ We use [changesets](https://github.com/changesets/changesets) to manage package
77
73
A changeset is a file that describes the changes that have been made to the packages in the repository. To create a changeset, run the following command from the root of the repository:
78
74
79
75
```bash
80
-
$ yarn changeset
76
+
$ pnpm changeset
81
77
```
82
78
83
79
Changeset files are stored in the `.changeset` directory until they are packaged into a release. You can commit these files and even merge them into your main branch without publishing a release.
@@ -87,7 +83,7 @@ Changeset files are stored in the `.changeset` directory until they are packaged
87
83
When you are ready to create a new package release, run the following command to package all changesets, this will also bump package versions and dependencies:
88
84
89
85
```bash
90
-
$ yarn changeset version
86
+
$ pnpm changeset version
91
87
```
92
88
93
89
### Step 3: Tagging the release
@@ -97,7 +93,7 @@ __Note__: this step is meant to be run on the main branch.
97
93
After creating a package release, you will need to tag the release commit with the version number. To do this, run the following command from the root of the repository:
98
94
99
95
```bash
100
-
$ yarn changeset tag
96
+
$ pnpm changeset tag
101
97
$ git push --follow-tags
102
98
```
103
99
@@ -109,7 +105,7 @@ Packages are published and distributed via NPM. To publish a package, run the fo
109
105
110
106
```bash
111
107
# Publish the package
112
-
$ yarn npm publish --access public --tag <tag>
108
+
$ pnpm npm publish --access public --tag <tag>
113
109
```
114
110
115
111
Alternatively, there is a GitHub action that can be manually triggered to publish a package.
@@ -100,7 +100,7 @@ Some contracts require the address from previously deployed contracts. For that
100
100
### Deploying a new testnet
101
101
102
102
1. Make sure contracts are up to date as you please.
103
-
2.`yarn deploy-goerli` to deploy to Goerli. This will create new contracts with new addresses in `addresses.json`.
103
+
2.`pnpm deploy-goerli` to deploy to Goerli. This will create new contracts with new addresses in `addresses.json`.
104
104
3. Update the `package.json` and `package-lock.json` files with the new package version and publish a new npm package with `npm publish`. You can dry-run the files to be uploaded by running `npm publish --dry-run`.
105
105
4. Merge this update into master, branch off and save for whatever version of the testnet is going on, and then tag this on the github repo, pointing to your branch (ex. at `testnet-phase-1` branch). This way we can always get the contract code for testnet, while continuing to do work on mainnet.
106
106
5. Pull the updated package into the subgraph, and other apps that depend on the package.json.
Copy file name to clipboardExpand all lines: packages/contracts/README.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -56,7 +56,7 @@ The contracts are upgradable, following the [Open Zeppelin Proxy Upgrade Pattern
56
56
The [NPM package](https://www.npmjs.com/package/@graphprotocol/contracts) contains contract interfaces and addresses for the testnet and mainnet. It also contains [typechain](https://github.com/ethereum-ts/TypeChain) generated objects to easily interact with the contracts. This allows for anyone to install the package in their repository and interact with the protocol. It is updated and released whenever a change to the contracts occurs.
57
57
58
58
```
59
-
yarn add @graphprotocol/contracts
59
+
pnpm add @graphprotocol/contracts
60
60
```
61
61
62
62
# Contract Addresses
@@ -68,8 +68,8 @@ The testnet runs on Goerli, while mainnet is on Ethereum Mainnet. The addresses
68
68
To setup the contracts locally, checkout the `dev` branch, then run:
0 commit comments