Skip to content

Commit a4e6c26

Browse files
tmigonepcarranzav
authored andcommitted
chore: bump contracts package version
Signed-off-by: Tomás Migone <[email protected]>
1 parent 7d096e1 commit a4e6c26

File tree

12 files changed

+74
-39
lines changed

12 files changed

+74
-39
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: 28 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2795,7 +2795,7 @@ __metadata:
27952795
languageName: node
27962796
linkType: hard
27972797

2798-
"@graphprotocol/contracts@npm:5.3.3, @graphprotocol/contracts@npm:^5.0.0":
2798+
"@graphprotocol/contracts@npm:5.3.3":
27992799
version: 5.3.3
28002800
resolution: "@graphprotocol/contracts@npm:5.3.3"
28012801
dependencies:
@@ -2805,7 +2805,7 @@ __metadata:
28052805
languageName: node
28062806
linkType: hard
28072807

2808-
"@graphprotocol/contracts@workspace:^6.2.0, @graphprotocol/contracts@workspace:packages/contracts":
2808+
"@graphprotocol/contracts@workspace:^7.0.0, @graphprotocol/contracts@workspace:packages/contracts":
28092809
version: 0.0.0-use.local
28102810
resolution: "@graphprotocol/contracts@workspace:packages/contracts"
28112811
dependencies:
@@ -2869,7 +2869,7 @@ __metadata:
28692869
solidity-coverage: "npm:^0.7.16"
28702870
ts-node: "npm:^10.9.1"
28712871
typechain: "npm:^5.0.0"
2872-
typescript: "npm:^4.7.4"
2872+
typescript: "npm:^5.2.2"
28732873
winston: "npm:^3.3.3"
28742874
yaml: "npm:^1.10.2"
28752875
yargs: "npm:^17.0.0"
@@ -2936,7 +2936,7 @@ __metadata:
29362936
"@arbitrum/sdk": "npm:~3.1.13"
29372937
"@ethersproject/experimental": "npm:^5.7.0"
29382938
"@graphprotocol/common-ts": "npm:^2.0.7"
2939-
"@graphprotocol/contracts": "workspace:^6.2.0"
2939+
"@graphprotocol/contracts": "workspace:^7.0.0"
29402940
"@nomicfoundation/hardhat-network-helpers": "npm:^1.0.9"
29412941
"@nomiclabs/hardhat-ethers": "npm:^2.2.3"
29422942
"@types/chai": "npm:^4.3.9"
@@ -2973,7 +2973,7 @@ __metadata:
29732973
dependencies:
29742974
"@ethersproject/experimental": "npm:^5.0.7"
29752975
"@graphprotocol/client-cli": "npm:^2.0.2"
2976-
"@graphprotocol/contracts": "npm:^5.0.0"
2976+
"@graphprotocol/contracts": "workspace:^7.0.0"
29772977
"@nomiclabs/hardhat-ethers": "npm:^2.0.0"
29782978
"@nomiclabs/hardhat-etherscan": "npm:^3.1.7"
29792979
"@nomiclabs/hardhat-waffle": "npm:^2.0.0"
@@ -3007,7 +3007,7 @@ __metadata:
30073007
solhint-plugin-prettier: "npm:^0.1.0"
30083008
ts-node: "npm:^10.9.1"
30093009
typechain: "npm:^5.0.0"
3010-
typescript: "npm:^4.0.2"
3010+
typescript: "npm:^5.2.2"
30113011
languageName: unknown
30123012
linkType: soft
30133013

@@ -23171,7 +23171,7 @@ __metadata:
2317123171
languageName: node
2317223172
linkType: hard
2317323173

23174-
"typescript@npm:^4.0.2, typescript@npm:^4.4.3, typescript@npm:^4.7.4":
23174+
"typescript@npm:^4.0.2, typescript@npm:^4.4.3":
2317523175
version: 4.9.5
2317623176
resolution: "typescript@npm:4.9.5"
2317723177
bin:
@@ -23191,7 +23191,17 @@ __metadata:
2319123191
languageName: node
2319223192
linkType: hard
2319323193

23194-
"typescript@patch:typescript@npm%3A^4.0.2#optional!builtin<compat/typescript>, typescript@patch:typescript@npm%3A^4.4.3#optional!builtin<compat/typescript>, typescript@patch:typescript@npm%3A^4.7.4#optional!builtin<compat/typescript>":
23194+
"typescript@npm:^5.2.2":
23195+
version: 5.4.2
23196+
resolution: "typescript@npm:5.4.2"
23197+
bin:
23198+
tsc: bin/tsc
23199+
tsserver: bin/tsserver
23200+
checksum: 583ff68cafb0c076695f72d61df6feee71689568179fb0d3a4834dac343df6b6ed7cf7b6f6c801fa52d43cd1d324e2f2d8ae4497b09f9e6cfe3d80a6d6c9ca52
23201+
languageName: node
23202+
linkType: hard
23203+
23204+
"typescript@patch:typescript@npm%3A^4.0.2#optional!builtin<compat/typescript>, typescript@patch:typescript@npm%3A^4.4.3#optional!builtin<compat/typescript>":
2319523205
version: 4.9.5
2319623206
resolution: "typescript@patch:typescript@npm%3A4.9.5#optional!builtin<compat/typescript>::version=4.9.5&hash=289587"
2319723207
bin:
@@ -23211,6 +23221,16 @@ __metadata:
2321123221
languageName: node
2321223222
linkType: hard
2321323223

23224+
"typescript@patch:typescript@npm%3A^5.2.2#optional!builtin<compat/typescript>":
23225+
version: 5.4.2
23226+
resolution: "typescript@patch:typescript@npm%3A5.4.2#optional!builtin<compat/typescript>::version=5.4.2&hash=e012d7"
23227+
bin:
23228+
tsc: bin/tsc
23229+
tsserver: bin/tsserver
23230+
checksum: 22e2f213c3ffe5960c5eaec6c95c04e01858fed57a94be250746f540b935b2c18c3c3fc80d3ab65d28c0aba1eb76284557ba3bf521d28caee811c44ba2b648f9
23231+
languageName: node
23232+
linkType: hard
23233+
2321423234
"typewise-core@npm:^1.2, typewise-core@npm:^1.2.0":
2321523235
version: 1.2.0
2321623236
resolution: "typewise-core@npm:1.2.0"

0 commit comments

Comments
 (0)