Skip to content

Commit

Permalink
chore: add @VenusProtocol prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
coreyar committed Nov 21, 2024
1 parent af86e74 commit 50fc3ea
Show file tree
Hide file tree
Showing 37 changed files with 1,000 additions and 844 deletions.
38 changes: 19 additions & 19 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,16 +62,16 @@ jobs:

- name: Generate Core Pool graphql types
run: |
docker exec -i subgraph-hardhat-node yarn workspace venus-subgraph run prepare:docker
docker exec -i subgraph-hardhat-node yarn workspace venus-subgraph run codegen
docker exec -i subgraph-hardhat-node yarn workspace venus-subgraph run create:docker
docker exec -i subgraph-hardhat-node yarn workspace venus-subgraph run deploy:docker
docker exec -i subgraph-hardhat-node yarn workspace @venusprotocol/core-pool-subgraph run prepare:docker
docker exec -i subgraph-hardhat-node yarn workspace @venusprotocol/core-pool-subgraph run codegen
docker exec -i subgraph-hardhat-node yarn workspace @venusprotocol/core-pool-subgraph run create:docker
docker exec -i subgraph-hardhat-node yarn workspace @venusprotocol/core-pool-subgraph run deploy:docker
sleep 5s
docker exec -i subgraph-hardhat-node yarn workspace venus-subgraph run generate-subgraph-types
docker exec -i subgraph-hardhat-node yarn workspace @venusprotocol/core-pool-subgraph run generate-subgraph-types
- name: Run Core Pool integration tests
run: |
docker exec -i subgraph-hardhat-node yarn workspace venus-subgraph run test:integration --bail
docker exec -i subgraph-hardhat-node yarn workspace @venusprotocol/core-pool-subgraph run test:integration --bail
- name: Stop containers
if: always()
Expand All @@ -95,16 +95,16 @@ jobs:

- name: Generate Isolated Pools graphql types
run: |
docker exec -i subgraph-hardhat-node yarn workspace isolated-pools-subgraph run prepare:docker
docker exec -i subgraph-hardhat-node yarn workspace isolated-pools-subgraph run codegen
docker exec -i subgraph-hardhat-node yarn workspace isolated-pools-subgraph run create:docker
docker exec -i subgraph-hardhat-node yarn workspace isolated-pools-subgraph run deploy:docker
docker exec -i subgraph-hardhat-node yarn workspace @venusprotocol/isolated-pools-subgraph run prepare:docker
docker exec -i subgraph-hardhat-node yarn workspace @venusprotocol/isolated-pools-subgraph run codegen
docker exec -i subgraph-hardhat-node yarn workspace @venusprotocol/isolated-pools-subgraph run create:docker
docker exec -i subgraph-hardhat-node yarn workspace @venusprotocol/isolated-pools-subgraph run deploy:docker
sleep 5s
docker exec -i subgraph-hardhat-node yarn workspace isolated-pools-subgraph run generate-subgraph-types
docker exec -i subgraph-hardhat-node yarn workspace @venusprotocol/isolated-pools-subgraph run generate-subgraph-types
- name: Run Isolated Pools integration tests
run: |
docker exec -i subgraph-hardhat-node yarn workspace isolated-pools-subgraph run test:integration --bail
docker exec -i subgraph-hardhat-node yarn workspace @venusprotocol/isolated-pools-subgraph run test:integration --bail
- name: Stop containers
if: always()
Expand All @@ -128,16 +128,16 @@ jobs:

- name: Generate Governance graphql types
run: |
docker exec -i subgraph-hardhat-node yarn workspace venus-governance-subgraph run prepare:docker
docker exec -i subgraph-hardhat-node yarn workspace venus-governance-subgraph run codegen
docker exec -i subgraph-hardhat-node yarn workspace venus-governance-subgraph run create:docker
docker exec -i subgraph-hardhat-node yarn workspace venus-governance-subgraph run deploy:docker
docker exec -i subgraph-hardhat-node yarn workspace @venusprotocol/governance-subgraph run prepare:docker
docker exec -i subgraph-hardhat-node yarn workspace @venusprotocol/governance-subgraph run codegen
docker exec -i subgraph-hardhat-node yarn workspace @venusprotocol/governance-subgraph run create:docker
docker exec -i subgraph-hardhat-node yarn workspace @venusprotocol/governance-subgraph run deploy:docker
sleep 5s
docker exec -i subgraph-hardhat-node yarn workspace venus-governance-subgraph run generate-subgraph-types
docker exec -i subgraph-hardhat-node yarn workspace @venusprotocol/governance-subgraph run generate-subgraph-types
- name: Run Governance integration integration tests
run: |
docker exec -i subgraph-hardhat-node yarn workspace venus-governance-subgraph run test:integration --bail
docker exec -i subgraph-hardhat-node yarn workspace @venusprotocol/governance-subgraph run test:integration --bail
- name: Stop containers
if: always()
Expand Down Expand Up @@ -169,7 +169,7 @@ jobs:
GIT_COMMITTER_EMAIL: [email protected]
run: |
yarn workspace @venusprotocol/cross-chain-governance-subgraph run semantic-release
yarn workspace @venusprotocol/etherfi-promo run semantic-release
yarn workspace @venusprotocol/etherfi-promo-subgraph run semantic-release
yarn workspace @venusprotocol/isolated-pools-subgraph run semantic-release
yarn workspace @venusprotocol/protocol-reserve-subgraph run semantic-release
yarn workspace @venusprotocol/core-pool-subgraph run semantic-release
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "venus-subgraph-utils",
"name": "@venusprotocol/subgraph-utils",
"version": "0.0.0",
"license": "MIT",
"main": "src",
Expand Down
6 changes: 6 additions & 0 deletions subgraphs/cross-chain-governance/.releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@
],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
],
[
"@semantic-release/exec",
{
"prepareCmd": "./prepare.sh"
}
]
],
"branches": [
Expand Down
3 changes: 2 additions & 1 deletion subgraphs/cross-chain-governance/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "venus-cross-chain-governance-subgraph",
"name": "@venusprotocol/cross-chain-governance-subgraph",
"version": "0.1.7",
"license": "MIT",
"repository": {
Expand Down Expand Up @@ -41,6 +41,7 @@
"@graphprotocol/graph-cli": "^0.80.0",
"@layerzerolabs/solidity-examples": "^1.0.0",
"@venusprotocol/governance-contracts": "2.5.0-dev.4",
"@venusprotocol/subgraph-utils": "0.0.0",
"apollo-fetch": "^0.7.0",
"hardhat": "^2.10.2",
"ts-node": "^10.9.2",
Expand Down
4 changes: 4 additions & 0 deletions subgraphs/cross-chain-governance/prepare.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
# Install from root
cd ../..
yarn
6 changes: 6 additions & 0 deletions subgraphs/etherfi-promo/.releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@
],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
],
[
"@semantic-release/exec",
{
"prepareCmd": "./prepare.sh"
}
]
],
"branches": [
Expand Down
4 changes: 4 additions & 0 deletions subgraphs/etherfi-promo/prepare.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
# Install from root
cd ../..
yarn
6 changes: 6 additions & 0 deletions subgraphs/isolated-pools/.releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@
],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
],
[
"@semantic-release/exec",
{
"prepareCmd": "./prepare.sh"
}
]
],
"branches": [
Expand Down
6 changes: 3 additions & 3 deletions subgraphs/isolated-pools/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "isolated-pools-subgraph",
"name": "@venusprotocol/isolated-pools-subgraph",
"version": "0.3.0",
"license": "MIT",
"repository": {
Expand Down Expand Up @@ -49,12 +49,12 @@
"devDependencies": {
"@graphprotocol/client-cli": "3.0.0",
"@graphprotocol/graph-cli": "^0.80.0",
"@venusprotocol/subgraph-utils": "0.0.0",
"apollo-fetch": "^0.7.0",
"hardhat": "^2.10.2",
"semantic-release": "^23.1.1",
"semantic-release-monorepo": "^8.0.2",
"ts-node": "^10.9.2",
"urql": "^3.0.3",
"venus-subgraph-utils": "0.0.0"
"urql": "^3.0.3"
}
}
4 changes: 4 additions & 0 deletions subgraphs/isolated-pools/prepare.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
# Install from root
cd ../..
yarn
2 changes: 1 addition & 1 deletion subgraphs/isolated-pools/tests/integration/pool.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { scaleValue, waitForSubgraphToBeSynced } from '@venusprotocol/subgraph-utils';
import { expect } from 'chai';
import { ethers } from 'hardhat';
import { scaleValue, waitForSubgraphToBeSynced } from 'venus-subgraph-utils';

import subgraphClient from '../../subgraph-client';
import { defaultMarkets } from './constants';
Expand Down
2 changes: 1 addition & 1 deletion subgraphs/isolated-pools/tests/integration/poolRegistry.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { SignerWithAddress } from '@nomiclabs/hardhat-ethers/signers';
import { waitForSubgraphToBeSynced } from '@venusprotocol/subgraph-utils';
import { expect } from 'chai';
import { Contract } from 'ethers';
import { ethers } from 'hardhat';
import { waitForSubgraphToBeSynced } from 'venus-subgraph-utils';

import subgraphClient from '../../subgraph-client';

Expand Down
4 changes: 2 additions & 2 deletions subgraphs/isolated-pools/tests/integration/setup.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { deploy } from 'venus-subgraph-utils';
import { deploy } from '@venusprotocol/subgraph-utils';

import { SUBGRAPH_ACCOUNT, SUBGRAPH_NAME, SYNC_DELAY } from './constants';

Expand All @@ -8,7 +8,7 @@ describe('Deploy Subgraph', function () {

await deploy({
root,
packageName: 'isolated-pools-subgraph',
packageName: '@venusprotocol/isolated-pools-subgraph',
subgraphAccount: SUBGRAPH_ACCOUNT,
subgraphName: SUBGRAPH_NAME,
syncDelay: SYNC_DELAY,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { waitForSubgraphToBeSynced } from '@venusprotocol/subgraph-utils';
import { expect } from 'chai';
import { Contract } from 'ethers';
import { ethers } from 'hardhat';
import { waitForSubgraphToBeSynced } from 'venus-subgraph-utils';

import subgraphClient from '../../subgraph-client';

Expand Down
2 changes: 1 addition & 1 deletion subgraphs/isolated-pools/tests/integration/utils/deploy.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { exec, fetchSubgraph, waitForSubgraphToBeSynced } from 'venus-subgraph-utils';
import { exec, fetchSubgraph, waitForSubgraphToBeSynced } from '@venusprotocol/subgraph-utils';

import { SUBGRAPH_ACCOUNT, SUBGRAPH_NAME, SYNC_DELAY } from '../constants';

Expand Down
2 changes: 1 addition & 1 deletion subgraphs/isolated-pools/tests/integration/vTokens.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { SignerWithAddress } from '@nomiclabs/hardhat-ethers/signers';
import { waitForSubgraphToBeSynced } from '@venusprotocol/subgraph-utils';
import { expect } from 'chai';
import { Contract } from 'ethers';
import { ethers } from 'hardhat';
import { waitForSubgraphToBeSynced } from 'venus-subgraph-utils';

import subgraphClient from '../../subgraph-client';
import { checkAccountVToken, checkMarket } from './checkEntities';
Expand Down
6 changes: 6 additions & 0 deletions subgraphs/protocol-reserve/.releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@
],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
],
[
"@semantic-release/exec",
{
"prepareCmd": "./prepare.sh"
}
]
],
"branches": [
Expand Down
6 changes: 3 additions & 3 deletions subgraphs/protocol-reserve/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "protocol-reserve-subgraph",
"name": "@venusprotocol/protocol-reserve-subgraph",
"version": "0.0.5",
"license": "MIT",
"repository": {
Expand Down Expand Up @@ -32,11 +32,11 @@
},
"devDependencies": {
"@graphprotocol/graph-cli": "^0.80.0",
"@venusprotocol/subgraph-utils": "0.0.0",
"apollo-fetch": "^0.7.0",
"semantic-release": "^23.1.1",
"semantic-release-monorepo": "^8.0.2",
"ts-node": "^10.9.2",
"urql": "^3.0.3",
"venus-subgraph-utils": "0.0.0"
"urql": "^3.0.3"
}
}
4 changes: 4 additions & 0 deletions subgraphs/protocol-reserve/prepare.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
# Install from root
cd ../..
yarn
6 changes: 6 additions & 0 deletions subgraphs/venus-governance/.releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@
],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
],
[
"@semantic-release/exec",
{
"prepareCmd": "./prepare.sh"
}
]
],
"branches": [
Expand Down
6 changes: 3 additions & 3 deletions subgraphs/venus-governance/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "venus-governance-subgraph",
"name": "@venusprotocol/governance-subgraph",
"version": "0.1.0",
"license": "MIT",
"repository": {
Expand Down Expand Up @@ -29,12 +29,12 @@
"@graphprotocol/client-cli": "3.0.0",
"@graphprotocol/graph-cli": "^0.80.0",
"@venusprotocol/governance-contracts": "2.5.0-dev.3",
"@venusprotocol/subgraph-utils": "0.0.0",
"apollo-fetch": "^0.7.0",
"hardhat": "^2.10.2",
"semantic-release": "^23.1.1",
"semantic-release-monorepo": "^8.0.2",
"ts-node": "^10.9.2",
"urql": "^3.0.3",
"venus-subgraph-utils": "0.0.0"
"urql": "^3.0.3"
}
}
4 changes: 4 additions & 0 deletions subgraphs/venus-governance/prepare.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
# Install from root
cd ../..
yarn
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import '@nomiclabs/hardhat-ethers';
import { waitForSubgraphToBeSynced } from '@venusprotocol/subgraph-utils';
import { expect } from 'chai';
import { Contract } from 'ethers';
import { ethers } from 'hardhat';
import { waitForSubgraphToBeSynced } from 'venus-subgraph-utils';

import subgraphClient from '../../subgraph-client/index';
import { SYNC_DELAY, nullAddress } from './utils/constants';
Expand Down
2 changes: 1 addition & 1 deletion subgraphs/venus-governance/tests/integration/alpha.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { mine } from '@nomicfoundation/hardhat-network-helpers';
import '@nomiclabs/hardhat-ethers';
import type { SignerWithAddress } from '@nomiclabs/hardhat-ethers/signers';
import { scaleValue, waitForSubgraphToBeSynced } from '@venusprotocol/subgraph-utils';
import { expect } from 'chai';
import { Contract } from 'ethers';
import { ethers } from 'hardhat';
import { scaleValue, waitForSubgraphToBeSynced } from 'venus-subgraph-utils';

import subgraphClient from '../../subgraph-client/index';
import { SYNC_DELAY } from './utils/constants';
Expand Down
2 changes: 1 addition & 1 deletion subgraphs/venus-governance/tests/integration/bravo.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { mine } from '@nomicfoundation/hardhat-network-helpers';
import '@nomiclabs/hardhat-ethers';
import type { SignerWithAddress } from '@nomiclabs/hardhat-ethers/signers';
import { scaleValue, waitForSubgraphToBeSynced } from '@venusprotocol/subgraph-utils';
import { expect } from 'chai';
import { Contract } from 'ethers';
import { ethers, network } from 'hardhat';
import { scaleValue, waitForSubgraphToBeSynced } from 'venus-subgraph-utils';

import subgraphClient from '../../subgraph-client/index';
import { SYNC_DELAY, mockAddress } from './utils/constants';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import '@nomiclabs/hardhat-ethers';
import { numberToByteId, waitForSubgraphToBeSynced } from '@venusprotocol/subgraph-utils';
import { expect } from 'chai';
import { Contract } from 'ethers';
import { ethers } from 'hardhat';
import { numberToByteId, waitForSubgraphToBeSynced } from 'venus-subgraph-utils';

import subgraphClient from '../../subgraph-client/index';
import { SYNC_DELAY } from './utils/constants';
Expand Down
4 changes: 2 additions & 2 deletions subgraphs/venus-governance/tests/integration/setup.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { deploy } from 'venus-subgraph-utils';
import { deploy } from '@venusprotocol/subgraph-utils';

import { SUBGRAPH_ACCOUNT, SUBGRAPH_NAME, SYNC_DELAY } from './utils/constants';

Expand All @@ -8,7 +8,7 @@ describe('Deploy Subgraph', function () {

await deploy({
root,
packageName: 'venus-governance-subgraph',
packageName: '@venusprotocol/governance-subgraph',
subgraphAccount: SUBGRAPH_ACCOUNT,
subgraphName: SUBGRAPH_NAME,
syncDelay: SYNC_DELAY,
Expand Down
2 changes: 1 addition & 1 deletion subgraphs/venus-governance/tests/integration/xvsVault.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import '@nomiclabs/hardhat-ethers';
import type { SignerWithAddress } from '@nomiclabs/hardhat-ethers/signers';
import { scaleValue, waitForSubgraphToBeSynced } from '@venusprotocol/subgraph-utils';
import { expect } from 'chai';
import { Contract } from 'ethers';
import { ethers } from 'hardhat';
import { scaleValue, waitForSubgraphToBeSynced } from 'venus-subgraph-utils';

import subgraphClient from '../../subgraph-client/index';
import { SYNC_DELAY } from './utils/constants';
Expand Down
6 changes: 6 additions & 0 deletions subgraphs/venus/.releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@
],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
],
[
"@semantic-release/exec",
{
"prepareCmd": "./prepare.sh"
}
]
],
"branches": [
Expand Down
Loading

0 comments on commit 50fc3ea

Please sign in to comment.