Skip to content

Commit 1b27dfa

Browse files
committed
chore: bump contracts package version
Signed-off-by: Tomás Migone <[email protected]>
1 parent 075d270 commit 1b27dfa

File tree

12 files changed

+75
-40
lines changed

12 files changed

+75
-40
lines changed

.github/workflows/ci-token-dist.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,6 @@ jobs:
2323
- name: Set up environment
2424
uses: ./.github/actions/setup
2525
- name: Run tests
26-
run: yarn test
26+
run: |
27+
pushd packages/token-distribution
28+
yarn test

packages/contracts/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @graphprotocol/contracts
22

3+
## 7.0.0
4+
5+
### Major Changes
6+
7+
- 9686ce1: Add Horizon staking interface
8+
39
## 6.2.1
410

511
### Patch Changes
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Arbitrum contracts
2+
3+
These contracts have been copied from the [Arbitrum repo](https://github.com/OffchainLabs/arbitrum).
4+
5+
They are also available as part of the npm packages [arb-bridge-eth](https://www.npmjs.com/package/arb-bridge-eth) and [arb-bridge-peripherals](https://www.npmjs.com/package/arb-bridge-peripherals). The reason for copying them rather than installing those packages is the contracts only support Solidity `^0.6.11`, so we had to change the version to `^0.7.6` for it to be compatible with our other contracts.

packages/contracts/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@graphprotocol/contracts",
3-
"version": "6.2.1",
3+
"version": "7.0.0",
44
"description": "Contracts for the Graph Protocol",
55
"directories": {
66
"test": "test"
@@ -75,13 +75,13 @@
7575
"solidity-coverage": "^0.7.16",
7676
"ts-node": "^10.9.1",
7777
"typechain": "^5.0.0",
78-
"typescript": "^4.7.4",
78+
"typescript": "^5.2.2",
7979
"winston": "^3.3.3",
8080
"yaml": "^1.10.2",
8181
"yargs": "^17.0.0"
8282
},
8383
"scripts": {
84-
"prepack": "scripts/prepack",
84+
"prepack": "SKIP_LOAD=true scripts/build",
8585
"build": "SKIP_LOAD=true scripts/build",
8686
"clean": "rm -rf build/ cache/ dist/",
8787
"compile": "hardhat compile",

packages/contracts/scripts/build

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
#!/bin/bash
22

3+
TYPECHAIN_DIR=dist/types
4+
35
set -eo pipefail
46

5-
# Build
7+
# Build contracts
8+
yarn clean
69
yarn compile
10+
11+
# Refresh distribution folder
12+
rm -rf dist && mkdir -p ${TYPECHAIN_DIR}
13+
cp -R build/abis/ dist/abis
14+
cp -R build/types/ ${TYPECHAIN_DIR}
15+
16+
tsc --esModuleInterop

packages/contracts/scripts/prepack

Lines changed: 0 additions & 20 deletions
This file was deleted.

packages/contracts/scripts/test

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ source $(pwd)/scripts/evm
66
### Setup EVM
77

88
# Ensure we compiled sources
9-
109
yarn build
1110

1211
### Cleanup

packages/sdk/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @graphprotocol/sdk
22

3+
## 0.5.1
4+
5+
### Patch Changes
6+
7+
- Bump contracts dependency
8+
39
## 0.5.0
410

511
### Minor Changes

packages/sdk/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@graphprotocol/sdk",
3-
"version": "0.5.0",
3+
"version": "0.5.1",
44
"description": "TypeScript based SDK to interact with The Graph protocol contracts",
55
"main": "build/index.js",
66
"types": "src/index.ts",
@@ -21,7 +21,7 @@
2121
"@arbitrum/sdk": "~3.1.13",
2222
"@ethersproject/experimental": "^5.7.0",
2323
"@graphprotocol/common-ts": "^2.0.7",
24-
"@graphprotocol/contracts": "workspace:^6.2.0",
24+
"@graphprotocol/contracts": "workspace:^7.0.0",
2525
"@nomicfoundation/hardhat-network-helpers": "^1.0.9",
2626
"@nomiclabs/hardhat-ethers": "^2.2.3",
2727
"debug": "^4.3.4",
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# @graphprotocol/token-distribution
2+
3+
## 1.2.1
4+
5+
### Patch Changes
6+
7+
- Bump contracts dependency

packages/token-distribution/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@graphprotocol/token-distribution",
3-
"version": "1.2.0",
3+
"version": "1.2.1",
44
"description": "Graph Token Distribution",
55
"main": "index.js",
66
"scripts": {
@@ -31,7 +31,7 @@
3131
"devDependencies": {
3232
"@ethersproject/experimental": "^5.0.7",
3333
"@graphprotocol/client-cli": "^2.0.2",
34-
"@graphprotocol/contracts": "^5.0.0",
34+
"@graphprotocol/contracts": "workspace:^7.0.0",
3535
"@nomiclabs/hardhat-ethers": "^2.0.0",
3636
"@nomiclabs/hardhat-etherscan": "^3.1.7",
3737
"@nomiclabs/hardhat-waffle": "^2.0.0",
@@ -65,6 +65,6 @@
6565
"solhint-plugin-prettier": "^0.1.0",
6666
"ts-node": "^10.9.1",
6767
"typechain": "^5.0.0",
68-
"typescript": "^4.0.2"
68+
"typescript": "^5.2.2"
6969
}
7070
}

yarn.lock

Lines changed: 29 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2607,7 +2607,7 @@ __metadata:
26072607
languageName: node
26082608
linkType: hard
26092609

2610-
"@graphprotocol/contracts@npm:5.3.3, @graphprotocol/contracts@npm:^5.0.0":
2610+
"@graphprotocol/contracts@npm:5.3.3":
26112611
version: 5.3.3
26122612
resolution: "@graphprotocol/contracts@npm:5.3.3"
26132613
dependencies:
@@ -2617,7 +2617,7 @@ __metadata:
26172617
languageName: node
26182618
linkType: hard
26192619

2620-
"@graphprotocol/contracts@workspace:^6.2.0, @graphprotocol/contracts@workspace:packages/contracts":
2620+
"@graphprotocol/contracts@workspace:^7.0.0, @graphprotocol/contracts@workspace:packages/contracts":
26212621
version: 0.0.0-use.local
26222622
resolution: "@graphprotocol/contracts@workspace:packages/contracts"
26232623
dependencies:
@@ -2681,7 +2681,7 @@ __metadata:
26812681
solidity-coverage: "npm:^0.7.16"
26822682
ts-node: "npm:^10.9.1"
26832683
typechain: "npm:^5.0.0"
2684-
typescript: "npm:^4.7.4"
2684+
typescript: "npm:^5.2.2"
26852685
winston: "npm:^3.3.3"
26862686
yaml: "npm:^1.10.2"
26872687
yargs: "npm:^17.0.0"
@@ -2707,7 +2707,7 @@ __metadata:
27072707
"@arbitrum/sdk": "npm:~3.1.13"
27082708
"@ethersproject/experimental": "npm:^5.7.0"
27092709
"@graphprotocol/common-ts": "npm:^2.0.7"
2710-
"@graphprotocol/contracts": "workspace:^6.2.0"
2710+
"@graphprotocol/contracts": "workspace:^7.0.0"
27112711
"@nomicfoundation/hardhat-network-helpers": "npm:^1.0.9"
27122712
"@nomiclabs/hardhat-ethers": "npm:^2.2.3"
27132713
"@types/chai": "npm:^4.3.9"
@@ -2744,7 +2744,7 @@ __metadata:
27442744
dependencies:
27452745
"@ethersproject/experimental": "npm:^5.0.7"
27462746
"@graphprotocol/client-cli": "npm:^2.0.2"
2747-
"@graphprotocol/contracts": "npm:^5.0.0"
2747+
"@graphprotocol/contracts": "workspace:^7.0.0"
27482748
"@nomiclabs/hardhat-ethers": "npm:^2.0.0"
27492749
"@nomiclabs/hardhat-etherscan": "npm:^3.1.7"
27502750
"@nomiclabs/hardhat-waffle": "npm:^2.0.0"
@@ -2778,7 +2778,7 @@ __metadata:
27782778
solhint-plugin-prettier: "npm:^0.1.0"
27792779
ts-node: "npm:^10.9.1"
27802780
typechain: "npm:^5.0.0"
2781-
typescript: "npm:^4.0.2"
2781+
typescript: "npm:^5.2.2"
27822782
languageName: unknown
27832783
linkType: soft
27842784

@@ -21601,7 +21601,7 @@ __metadata:
2160121601
languageName: node
2160221602
linkType: hard
2160321603

21604-
"typescript@npm:^4.0.2, typescript@npm:^4.7.4":
21604+
"typescript@npm:^4.0.2":
2160521605
version: 4.9.5
2160621606
resolution: "typescript@npm:4.9.5"
2160721607
bin:
@@ -21621,13 +21621,23 @@ __metadata:
2162121621
languageName: node
2162221622
linkType: hard
2162321623

21624-
"typescript@patch:typescript@npm%3A^4.0.2#optional!builtin<compat/typescript>, typescript@patch:typescript@npm%3A^4.7.4#optional!builtin<compat/typescript>":
21624+
"typescript@npm:^5.2.2":
21625+
version: 5.4.2
21626+
resolution: "typescript@npm:5.4.2"
21627+
bin:
21628+
tsc: bin/tsc
21629+
tsserver: bin/tsserver
21630+
checksum: 583ff68cafb0c076695f72d61df6feee71689568179fb0d3a4834dac343df6b6ed7cf7b6f6c801fa52d43cd1d324e2f2d8ae4497b09f9e6cfe3d80a6d6c9ca52
21631+
languageName: node
21632+
linkType: hard
21633+
21634+
"typescript@patch:typescript@npm%3A^4.0.2#optional!builtin<compat/typescript>":
2162521635
version: 4.9.5
2162621636
resolution: "typescript@patch:typescript@npm%3A4.9.5#optional!builtin<compat/typescript>::version=4.9.5&hash=289587"
2162721637
bin:
2162821638
tsc: bin/tsc
2162921639
tsserver: bin/tsserver
21630-
checksum: e3333f887c6829dfe0ab6c1dbe0dd1e3e2aeb56c66460cb85c5440c566f900c833d370ca34eb47558c0c69e78ced4bfe09b8f4f98b6de7afed9b84b8d1dd06a1
21640+
checksum: 583ff68cafb0c076695f72d61df6feee71689568179fb0d3a4834dac343df6b6ed7cf7b6f6c801fa52d43cd1d324e2f2d8ae4497b09f9e6cfe3d80a6d6c9ca52
2163121641
languageName: node
2163221642
linkType: hard
2163321643

@@ -21641,6 +21651,16 @@ __metadata:
2164121651
languageName: node
2164221652
linkType: hard
2164321653

21654+
"typescript@patch:typescript@npm%3A^5.2.2#optional!builtin<compat/typescript>":
21655+
version: 5.4.2
21656+
resolution: "typescript@patch:typescript@npm%3A5.4.2#optional!builtin<compat/typescript>::version=5.4.2&hash=e012d7"
21657+
bin:
21658+
tsc: bin/tsc
21659+
tsserver: bin/tsserver
21660+
checksum: 22e2f213c3ffe5960c5eaec6c95c04e01858fed57a94be250746f540b935b2c18c3c3fc80d3ab65d28c0aba1eb76284557ba3bf521d28caee811c44ba2b648f9
21661+
languageName: node
21662+
linkType: hard
21663+
2164421664
"typewise-core@npm:^1.2, typewise-core@npm:^1.2.0":
2164521665
version: 1.2.0
2164621666
resolution: "typewise-core@npm:1.2.0"

0 commit comments

Comments
 (0)