Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: merge develop into main #75

Merged
merged 154 commits into from
Apr 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
154 commits
Select commit Hold shift + click to select a range
f47241c
setup repo with subgraph
Rekard0 Jul 20, 2023
d9e9b48
add pull request template
Rekard0 Jul 20, 2023
42e6ed9
add empty lines
Rekard0 Jul 20, 2023
7cc77fa
re-structure the folders
Rekard0 Jul 21, 2023
f5e7479
Merge pull request #1 from aragon/f/OS-600_setup-osx-commons-with-sub…
Rekard0 Jul 21, 2023
38431a9
add plugin repos ids
Rekard0 Aug 17, 2023
b7c0ef5
re org the folder structure
Rekard0 Aug 17, 2023
f22262e
chore: moves pull request template to correct location (#2)
mathewmeconry Aug 17, 2023
0703322
add plugin, setup, & plugin permission ids
Rekard0 Aug 25, 2023
60f3eb2
F OS-601 Add subgraph tests (#4)
josemarinas Aug 25, 2023
db62b6c
refactor
Rekard0 Aug 28, 2023
99be32f
Merge branch 'develop' into f/OS-588_abstract-pluginRepo-pluginSetup-ids
Rekard0 Aug 28, 2023
dafccc8
Add test for pluginRepo
Rekard0 Aug 28, 2023
36e589a
yarn subgraph test workflow
Rekard0 Aug 28, 2023
3ea46e1
remove cache yarn
Rekard0 Aug 28, 2023
fd92edd
refactor outputs
Rekard0 Aug 30, 2023
e0fd41d
add comment
Rekard0 Aug 30, 2023
91d9e53
Merge pull request #3 from aragon/f/OS-588_abstract-pluginRepo-plugin…
Rekard0 Sep 11, 2023
4f8f0c5
abstract permissions
Rekard0 Sep 11, 2023
b059afe
update change log
Rekard0 Sep 11, 2023
40b2918
add security contact to the readmes
Rekard0 Sep 25, 2023
6c032e7
Merge pull request #6 from aragon/chore/OS-704_Add-security-contact-t…
Rekard0 Sep 25, 2023
ab7eee1
Update subgraph/src/ids/permissions.ts
Rekard0 Oct 9, 2023
2140b7a
adapt id and test to osx update
Rekard0 Oct 9, 2023
941aef2
update changelog
Rekard0 Oct 9, 2023
1ab2440
organize permission tests
Rekard0 Oct 9, 2023
8f963d1
rename get***Id to generate***EntityId
Rekard0 Oct 10, 2023
ef79b80
Update readme & changelog
Rekard0 Oct 10, 2023
b921e6b
Merge branch 'develop' into f/OS-586_abstract-permission-ids
Rekard0 Oct 16, 2023
0cf95e5
Merge pull request #5 from aragon/f/OS-586_abstract-permission-ids
Rekard0 Oct 17, 2023
e446956
OS-593: refactors repo for linting and linting during workflows (#8)
heueristik Oct 19, 2023
c06c147
feat: added contracts and tests (#7)
heueristik Oct 25, 2023
e5cad78
refactor: moved files into governance folder (#10)
heueristik Oct 30, 2023
7fe5eba
F/os 587 abstract actions and callback ids (#14)
josemarinas Nov 2, 2023
d22ba85
chore: maintained changelogs (#15)
heueristik Nov 10, 2023
bb88eb4
feature: abstracted balance and transfer IDs (#12)
josemarinas Nov 10, 2023
2dd4a18
docs: improved majority voting docs formatting (#16)
heueristik Nov 10, 2023
593b034
Feature: add id generation for iplugin, iproposal and transactionActi…
josemarinas Nov 10, 2023
27279c6
Feature: Add js client commons (#11)
josemarinas Nov 10, 2023
1155059
fix: wrong contract name (#18)
heueristik Nov 13, 2023
c6782d3
chore: added arbitrum support (#17)
heueristik Nov 20, 2023
cab4991
fix: Add range test for `bigIntToBytes32`
Rekard0 Nov 27, 2023
03e9d12
fix: remove redundant test
Rekard0 Nov 27, 2023
4f87783
Merge pull request #23 from aragon/chore/add-test-to-bigIntToBytes32
Rekard0 Nov 27, 2023
490f3e8
build(sdk): replaces tsdx with dts-cli (#22)
mathewmeconry Nov 28, 2023
4d29b88
ci: adds workflows to release and publish new versions of packages (#24)
mathewmeconry Dec 15, 2023
3632fc5
build: bump dependencies (#25)
heueristik Dec 18, 2023
6e993ee
Feature: Add mock getters (#26)
josemarinas Dec 19, 2023
0ae386f
Fix: Reusable check tag workflow (#27)
josemarinas Dec 19, 2023
7eda293
osx-commons-subgraph v0.0.1-alpha.0 (#28)
josemarinas Dec 19, 2023
dc9566c
fix publish worflow (#29)
josemarinas Dec 19, 2023
656e67c
fix package version (#30)
josemarinas Dec 19, 2023
f008a66
release 0.0.1 (#31)
josemarinas Dec 19, 2023
b2c3eef
fix regex pattern in reusable check workflow (#32)
josemarinas Dec 20, 2023
ab16b7e
fix typo (#33)
josemarinas Dec 20, 2023
e27f775
Fix: Add missing exports (#35)
josemarinas Dec 20, 2023
ad0c148
feat(configs): abstract network settings (#34)
mathewmeconry Dec 21, 2023
92967df
feat(configs): exports networks properly typed with generics (#38)
mathewmeconry Jan 4, 2024
fc1e450
cicd(configs): renames publish workflow (#37)
mathewmeconry Jan 4, 2024
ea1b44d
docs: reference audit files from previous osx versions (#39)
heueristik Jan 9, 2024
d5575f6
Add: generic entity ID generators (#41)
josemarinas Jan 10, 2024
4cf06f4
feat: contracts and sdk refactoring (#36)
heueristik Jan 11, 2024
75cf864
ci: fixes check tag to ignore semver additions (#42)
mathewmeconry Jan 11, 2024
65c9643
test: interfaces and ERC-165 (#40)
heueristik Jan 12, 2024
2de5fd2
test: base classes and free functions (#43)
heueristik Jan 24, 2024
1b8ca59
feat(configs): adds helper function for networks and deployments (#44)
mathewmeconry Jan 24, 2024
2a6704c
ci: fixes reusable publish workflow to install deps before trying to …
mathewmeconry Jan 24, 2024
c7bce7e
refactor: adaptations to use `osx-commons` in `osx-plugin-template-ha…
heueristik Jan 24, 2024
67b6ccd
ci: fixes publish workflows (#50)
mathewmeconry Jan 25, 2024
e788454
refactor: `PluginSetup` and deployment helpers (`Proxy`, `CloneFactor…
heueristik Jan 31, 2024
8547e91
docs(configs): adds readme for configs package (#49)
mathewmeconry Jan 31, 2024
5d00e99
fix: createWrappedERC20TokenCalls function (#52)
josemarinas Feb 1, 2024
83fd110
fix: update yarn lock (#53)
josemarinas Feb 1, 2024
1cf46ff
feat: Add missing methods and local network support (#51)
josemarinas Feb 6, 2024
3ac6c88
feat: add new configs folder structure (#54)
josemarinas Feb 15, 2024
ce3409b
F/os 1008 fix pr tagging (#59)
josemarinas Feb 28, 2024
3fc71af
fix: mocks, missing permission ID, event name removal (#62)
heueristik Feb 29, 2024
f9fd76d
CI: remove push contraints for tests (#63)
josemarinas Mar 1, 2024
179b72c
feat: improve folder structure for bitmap and events (#56)
josemarinas Mar 4, 2024
79e06f2
chore: maintained changelog (#64)
heueristik Mar 4, 2024
742d9b2
feat: add ens resolving functions (#61)
josemarinas Mar 4, 2024
273260f
feat: define the common domain and the current used exceptions and ad…
clauBv23 Mar 4, 2024
5231479
feat: define Network domain type
clauBv23 Mar 4, 2024
038b9a6
ci: move the getters to the getter file
clauBv23 Mar 4, 2024
0a3f9cd
ci: create a folder for the deployment tests
clauBv23 Mar 4, 2024
7664949
feat: add tests for the get dao and plugin functions
clauBv23 Mar 4, 2024
70f1d8a
feat: add new deployment test folder to avoid being ignored in the pr…
clauBv23 Mar 4, 2024
846215c
ci: remove log
clauBv23 Mar 4, 2024
9bd2866
featL update the changelog
clauBv23 Mar 4, 2024
cf36808
ci: rename types commented in the PR review
clauBv23 Mar 4, 2024
7f583eb
Update configs/src/deployments/types.ts
clauBv23 Mar 5, 2024
7a9dd3b
feat: fix types issues after using the supported network type
clauBv23 Mar 5, 2024
706b19a
ci: rename the osx ens domains file
clauBv23 Mar 6, 2024
a9e1f22
feat: update the package version
clauBv23 Mar 6, 2024
4438a1c
ci:change to public rpc
Rekard0 Mar 7, 2024
a6f536f
feat: improve folder structure, add hex and plugin folders (#57)
josemarinas Mar 7, 2024
76e99a1
Merge pull request #65 from aragon/OS-1024/add-in-osx-commons-used-do…
clauBv23 Mar 7, 2024
f8ede2c
Merge branch 'develop' into chore/use-public-rpc
clauBv23 Mar 7, 2024
bd1a707
feat: add change to changelog and update the package version
clauBv23 Mar 7, 2024
df48f27
feat: define new rpc urls
clauBv23 Mar 8, 2024
06ae211
feat: add needed index
clauBv23 Mar 8, 2024
5b9480e
ci: update changelog
clauBv23 Mar 8, 2024
801249e
feat: update the hardhat config file to use the common networks
clauBv23 Mar 8, 2024
ff36ade
feat: update the .env.examples
clauBv23 Mar 8, 2024
9112e22
ci: remove not needed imports
clauBv23 Mar 8, 2024
aec336c
feat: update the hardhat config to initialize the configuration
clauBv23 Mar 8, 2024
e3f6993
feat: add initializer function to provide the rpc apiKey to the netwo…
clauBv23 Mar 8, 2024
ccdf8b6
Merge branch 'chore/use-public-rpc' into OS-1109/update-commons-contr…
clauBv23 Mar 8, 2024
18bbbb7
ci: remove not needed console logs
clauBv23 Mar 8, 2024
b156f7f
Merge branch 'chore/use-public-rpc' into OS-1109/update-commons-contr…
clauBv23 Mar 8, 2024
16ad779
feat: move the init function to the network file, and complete the rp…
clauBv23 Mar 8, 2024
e282a55
ci: change the string char
clauBv23 Mar 8, 2024
f69a7ab
ci: remove my api key from the env examples
clauBv23 Mar 8, 2024
459b3e2
feat: refactor the hardhat config file
clauBv23 Mar 8, 2024
0a18c59
feat: add commons config to the dependencies
clauBv23 Mar 8, 2024
264b48e
ci: update the comments in the env example
clauBv23 Mar 8, 2024
03b53b8
Merge branch 'chore/use-public-rpc' into OS-1109/update-commons-contr…
clauBv23 Mar 8, 2024
40f4b35
feat: remove the rpc url from the networks and add a function to set …
clauBv23 Mar 11, 2024
ba66e83
feat: update the changelog and the README
clauBv23 Mar 11, 2024
e57b416
ci: update readme
clauBv23 Mar 11, 2024
797d1e0
ci: remove comment
clauBv23 Mar 11, 2024
bcf5b3b
Merge branch 'chore/use-public-rpc' into OS-1109/update-commons-contr…
clauBv23 Mar 11, 2024
370e43c
feat: update the hardhat config file to use the new addRpcUrlToNetwor…
clauBv23 Mar 11, 2024
bb86a7b
Chore: Change all RPCs to public RPC (#66)
Rekard0 Mar 12, 2024
b2b900b
feat: add new commons config version to contracts
clauBv23 Mar 12, 2024
4fd653e
Merge branch 'develop' into OS-1109/update-commons-contracts-to-use-c…
clauBv23 Mar 12, 2024
ba9c9f5
feat: update the workflows to use the new api key
clauBv23 Mar 12, 2024
73263ac
feat: bump commons config version in sdk package
clauBv23 Mar 12, 2024
acf3cdc
feat: update changelog
clauBv23 Mar 12, 2024
96b2eda
Merge pull request #67 from aragon/OS-1109/update-commons-contracts-t…
clauBv23 Mar 13, 2024
bdfb7fe
f: added more fields to action ID generation and re-organized the str…
jordaniza Mar 26, 2024
51b7e36
chore: bumped version and updated changelog
jordaniza Mar 26, 2024
c017029
lint: prettier:write
jordaniza Mar 26, 2024
d3e79d9
lint: subgraph linter
jordaniza Mar 26, 2024
403c441
Merge pull request #68 from aragon/f/generate-action-id
jordaniza Mar 28, 2024
cc6fa03
ci: minor update
clauBv23 Mar 28, 2024
7aca725
Merge pull request #69 from aragon/release/subgraph-commons
jordaniza Apr 2, 2024
79db694
feat: define the develop and main branch to run the actions on commit…
clauBv23 Apr 9, 2024
eec8543
ci: fix prettier
clauBv23 Apr 9, 2024
84d62bd
ci: reorder the events
clauBv23 Apr 9, 2024
16c098e
ci: reorder also in the sdk
clauBv23 Apr 9, 2024
a3b05e0
fix: typo in the name of the action event
clauBv23 Apr 9, 2024
317bccf
Update .github/workflows/sdk-tests.yml
clauBv23 Apr 10, 2024
f901f51
ci: add new line removed
clauBv23 Apr 10, 2024
c128667
Merge pull request #71 from aragon/OS-1134/fix-GH-actions-to-run-over…
clauBv23 Apr 10, 2024
871f039
chore: remove SDK 1.0 related code from osx-sdk (#72)
josemarinas Apr 16, 2024
1c745cc
refactor: restructure `osx-commons-sdk` (#73)
josemarinas Apr 18, 2024
2093fe6
feat: bump OZ to v4.9.6 (#74)
heueristik Apr 18, 2024
b3bd6da
feat(sdk): add `getProtocolVersion` function (#76)
josemarinas Apr 22, 2024
ffa6b45
fix(sdk): `getProtocolVersion` function (#77)
josemarinas Apr 23, 2024
5c9ac9a
feat(sdk): add back `PluginType` enum and fix npm dependencies (#78)
heueristik Apr 23, 2024
78b5d72
chore: change authors after AA dissolution (#21)
heueristik Apr 23, 2024
60ea358
chore: adapt contracts and bump version (#79)
heueristik Apr 23, 2024
8bc09d4
docs: added and improved `README.md`s (#80)
heueristik Apr 26, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# GENERAL

## The network used for testing purposes
NETWORK_NAME="mainnet" # ["mainnet", "sepolia", "polygon", "mumbai","baseMainnet", "baseGoerli", "baseSepolia", "arbitrum", "arbitrumSepolia"]

# CONTRACTS

## Hex encoded private keys separated by a comma `,`a
PRIVATE_KEY="0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80" # Default hardhat account 0 private key. DON'T USE FOR DEPLOYMENTS

## RPC alchemy credentials
ALCHEMY_API_KEY="zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz"

## Gas Reporting
REPORT_GAS='true'
COINMARKETCAP_API_KEY="zzzzzzzz-zzzz-zzzz-zzzz-zzzzzzzzzzzz"

## Block explorers
ETHERSCAN_API_KEY="zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz"
POLYGONSCAN_API_KEY="zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz"
BASESCAN_API_KEY="zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz"
ARBISCAN_API_KEY="zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz"

# SUBGRAPH

## The Graph credentials
GRAPH_KEY="zzzzzzzzzzzz"

## Subgraph
SUBGRAPH_NAME="osx"
SUBGRAPH_VERSION="alice-debug-1s"
SUBGRAPH_NETWORK_NAME="goerli" # ["mainnet", "goerli", "polygon", "polygonMumbai"]
34 changes: 34 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
root: true

extends:
- 'eslint:recommended'
- 'plugin:@typescript-eslint/eslint-recommended'
- 'plugin:@typescript-eslint/recommended'
- 'prettier'

plugins:
- '@typescript-eslint'
- 'unused-imports'

rules:
'@typescript-eslint/no-floating-promises':
- error
- ignoreIIFE: true
ignoreVoid: true
'@typescript-eslint/no-inferrable-types': 'off'
'@typescript-eslint/no-explicit-any': 'off'
'@typescript-eslint/no-unused-vars':
- error
- argsIgnorePattern: '_'
varsIgnorePattern: '_'

'unused-imports/no-unused-imports': 'error'

ignorePatterns:
- '*.log'
- '*.env'
- '.env'
- '.DS_Store'
- .pnp.*
- 'node_modules'
- '*.config.js'
34 changes: 34 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
name: Bug report
about: Create a bug report to help us
title: 'Bug: <add-text-here>'
labels: bug
assignees: ''
---

**Describe the bug**
A short summary of what the bug is. Please be clear and concise.

**To Reproduce (please complete the following information)**

- Config and flags: [e.g. variable="xyz"]
- Steps to reproduce the behavior:
1. node '...'
2. make request with '....'
3. '...'
4. See error

**Current behavior**
In depth explanation, if required, or a clear and concise description of what actually happens.

**Expected behavior**
A clear and concise description of what you expected to happen.

**System (please complete the following information):**

- OS: [e.g. Fedora 35]
- Software version [e.g. Docker 8, Node 14.19.1]
- Commit hash [e.g. e84617d]

**Additional context**
Add any other context about the problem here.
27 changes: 27 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
contracts:
- changed-files:
- any-glob-to-any-file:
- 'contracts/**/*'
- 'contracts/*'
- '.github/workflows/contracts-*.yml'

sdk:
- changed-files:
- any-glob-to-any-file:
- 'sdk/**/*'
- 'sdk/*'
- '.github/workflows/sdk-*.yml'

subgraph:
- changed-files:
- any-glob-to-any-file:
- 'subgraph/**/*'
- 'subgraph/*'
- '.github/workflows/subgraph-*.yml'

configs:
- changed-files:
- any-glob-to-any-file:
- 'configs/**/*'
- 'configs/*'
- '.github/workflows/configs-*.yml'
20 changes: 20 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
## Description

Please include a summary of the change and be sure you follow the contributions rules we do provide [here](./CONTRIBUTIONS.md)

Task ID: [OS-?](https://aragonassociation.atlassian.net/browse/OS-?)

<!--- Use the https://www.conventionalcommits.org to name this PR and its commits.-->
<!--- Consider using https://commitizen.github.io/cz-cli/ for this purpose.-->

## Checklist:

- [ ] I have selected the correct base branch.
- [ ] I have performed a self-review of my own code.
- [ ] I have commented my code, particularly in hard-to-understand areas.
- [ ] I have made corresponding changes to the documentation.
- [ ] My changes generate no new warnings.
- [ ] Any dependent changes have been merged and published in downstream modules.
- [ ] I created tasks to update dependent repositories (OSx, Plugins)
- [ ] I ran all tests with success and extended them if necessary.
- [ ] I have updated the `CHANGELOG.md` file in the root folder.
58 changes: 58 additions & 0 deletions .github/scripts/generate_release_matrix.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
import json
import os

#
# // PULL_LABELS = toJson(github.event.pull_request.labels)
#
# [
# {
# "color": "FFFFF7",
# "default": false,
# "description": "Issue describes change in the development process",
# "id": 1786730933,
# "name": "label_pqr-xyz-release",
# "node_id": "MDU6TGFiZWwxNzg2NzMwOTMz",
# "url": "https://api.github.com/repos/parzh/parzh.github.io/labels/Domain:%20dev"
# },
# {
# "color": "cc062a",
# "default": false,
# "description": "Issue must be addressed right now",
# "id": 1786706637,
# "name": "label_abc-release",
# "node_id": "MDU6TGFiZWwxNzg2NzA2NjM3",
# "url": "https://api.github.com/repos/parzh/parzh.github.io/labels/Priority:%20top"
# },
# {
# "color": "00727C",
# "default": false,
# "description": "Issue describes lack of a functionality or an open possibility of enhancement",
# "id": 1786726751,
# "name": "label_123-improvement",
# "node_id": "MDU6TGFiZWwxNzg2NzI2NzUx",
# "url": "https://api.github.com/repos/parzh/parzh.github.io/labels/Type:%20improvement"
# }
# ]
#
# Test:
# PULL_LABELS=$(cat labels.json) python3 generate_release_matrix.py
#

try:
labels = json.loads(os.getenv('PULL_LABELS'))
except:
labels = []

trigger_substring = "-release"
matrix = []
hasLabels = False
for label in labels:
label_name = str(label['name'])
trigger_substring_index = label_name.find(trigger_substring)
if trigger_substring_index != -1:
matrix.append({
'package': label_name[:trigger_substring_index],
})
hasLabels = True

print(json.dumps({'include': matrix}))
24 changes: 24 additions & 0 deletions .github/scripts/generate_release_notes.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash

PACKAGE=$1

echo "RELEASE_NOTES<<EOF" >> $GITHUB_ENV
echo "## All changes in $PACKAGE" >> $GITHUB_ENV
echo "" >> $GITHUB_ENV

PULL_REQUESTS=$(gh pr list --label $PACKAGE --state merged --json title,mergeCommit,number)

# convert to base64 so we only have one line per pull request that we iterate over
echo $PULL_REQUESTS | jq -r '.[] | @base64' | while read pull_request ; do
COMMIT=$(echo $pull_request | base64 -d | jq -r '.mergeCommit.oid')
NUMBER=$(echo $pull_request | base64 -d | jq -r '.number')
TITLE=$(echo $pull_request | base64 -d | jq -r '.title')

# if there is more than 1 tag, the pull request is already included in another release
if [ $(git tag --contain $COMMIT | grep -i $PACKAGE | wc -l) -le 1 ]; then
echo "- $TITLE in #$NUMBER" >> $GITHUB_ENV
fi
done


echo "EOF" >> $GITHUB_ENV
21 changes: 21 additions & 0 deletions .github/workflows/configs-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Configs Publish

on:
push:
tags:
- '*-configs'

jobs:
check_tag:
uses: ./.github/workflows/reusable-check-tag.yml
with:
ref: ${{ github.ref }}

publish:
needs: [check_tag]
uses: ./.github/workflows/reusable-publish.yml
with:
package: ${{ needs.check_tag.outputs.package }}
version: ${{ needs.check_tag.outputs.version }}
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
40 changes: 40 additions & 0 deletions .github/workflows/configs-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Configs Tests

on:
push:
branches:
- main
- develop
pull_request:
paths:
- 'configs/**'
- '.github/workflows/configs-*.yml'
workflow_dispatch:
workflow_call:

jobs:
formatting-linting:
uses: ./.github/workflows/formatting-linting.yml
tests:
runs-on: 'ubuntu-latest'
defaults:
run:
working-directory: configs
steps:
- name: 'Check out the repo'
uses: 'actions/checkout@v3'

- name: 'Install Node.js'
uses: 'actions/setup-node@v3'
with:
cache: 'yarn'
node-version: 18

- name: 'Install the dependencies'
run: 'yarn install --frozen-lockfile'

- name: 'Build the configs'
run: 'yarn build'

- name: 'Test the configs'
run: 'yarn test >> $GITHUB_STEP_SUMMARY'
28 changes: 28 additions & 0 deletions .github/workflows/contracts-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Contracts Publish

on:
push:
tags:
- '*-contracts'

jobs:
check_tag:
uses: ./.github/workflows/reusable-check-tag.yml
with:
ref: ${{ github.ref }}

tests:
needs: [check_tag]
if: ${{ needs.check_tag.outputs.package == 'contracts' }}
uses: ./.github/workflows/contracts-tests.yml
secrets:
ALCHEMY_API_KEY: ${{ secrets.ALCHEMY_API_KEY }}

publish:
needs: [check_tag, tests]
uses: ./.github/workflows/reusable-publish.yml
with:
package: ${{ needs.check_tag.outputs.package }}
version: ${{ needs.check_tag.outputs.version }}
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
52 changes: 52 additions & 0 deletions .github/workflows/contracts-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Contracts Tests

on:
push:
branches:
- main
- develop
pull_request:
paths:
- 'contracts/**'
- '.github/workflows/contracts-*.yml'
workflow_dispatch:
workflow_call:
secrets:
ALCHEMY_API_KEY:
required: true

jobs:
formatting-linting:
uses: ./.github/workflows/formatting-linting.yml
tests:
runs-on: 'ubuntu-latest'
defaults:
run:
working-directory: contracts
steps:
- name: 'Check out the repo'
uses: 'actions/checkout@v3'

- name: 'Install Node.js'
uses: 'actions/setup-node@v3'
with:
cache: 'yarn'
node-version: 18

- name: 'Install the dependencies'
run: 'yarn install --frozen-lockfile'

- name: 'Build the contracts'
run: 'yarn build'
env:
ALCHEMY_API_KEY: ${{ secrets.ALCHEMY_API_KEY }}

- name: 'Build the typechain'
run: 'yarn typechain'
env:
ALCHEMY_API_KEY: ${{ secrets.ALCHEMY_API_KEY }}

- name: 'Test the contracts and generate the coverage report'
run: 'yarn coverage >> $GITHUB_STEP_SUMMARY'
env:
ALCHEMY_API_KEY: ${{ secrets.ALCHEMY_API_KEY }}
Loading
Loading