Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
13 changes: 13 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"$schema": "https://unpkg.com/@changesets/config@3.1.1/schema.json",
"commit": false,
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"changelog": false,
"bumpVersionsWithWorkspaceProtocolOnly": true,
"privatePackages": {
"version": false,
"tag": false
}
}
7 changes: 7 additions & 0 deletions .changeset/grumpy-hotels-help.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@human-protocol/sdk': patch
'@human-protocol/logger': patch
'@human-protocol/core': patch
---

chore: changesets added for better release management
5 changes: 5 additions & 0 deletions .changeset/metal-fans-lay.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@human-protocol/sdk": minor
---

feat: read kvstore data using kvstore client
5 changes: 5 additions & 0 deletions .changeset/petite-comics-float.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@human-protocol/sdk': minor
---

chore: use exact core dep version for sdk
5 changes: 5 additions & 0 deletions .changeset/plenty-melons-fetch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@human-protocol/sdk": patch
---

feat: fixed gas price on aurora testnet
30 changes: 0 additions & 30 deletions .github/workflows/cd-core.yaml

This file was deleted.

26 changes: 0 additions & 26 deletions .github/workflows/cd-logger.yaml

This file was deleted.

45 changes: 0 additions & 45 deletions .github/workflows/cd-node-sdk.yaml

This file was deleted.

38 changes: 38 additions & 0 deletions .github/workflows/cd-packages.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Publish packages

permissions:
contents: write # needed to push tags

on:
push:
branches:
- main

jobs:
publish:
name: Publish packages to NPM
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: yarn
- name: Install dependencies
run: yarn install --immutable
# If there is no new version for dependency package (e.g. core)
# then `prepack` is not called for it during publish step
# and it's not built. As a result dependant package (e.g. sdk)
# don't have its dependency and can't be build as well,
# so we have to build all deps in their topological order first.
- name: Build packages
run: yarn workspaces foreach --all --no-private -pt run build
- name: Publish packages
run: yarn workspaces foreach --all --no-private -pt npm publish --tolerate-republish --json | tee publish.log
env:
SKIP_PREPACK: true
YARN_NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Tag published packages
run: node scripts/tag-published-packages.mjs publish.log
- name: Push created tags
run: git push origin --tags
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,15 @@ yarn-error.log*
# OS
.DS_Store

# Artifacts
build
dist
*.tsbuildinfo
hardhat-dependency-compiler
package.tgz

# cache
# Cache
cache

# Ignore developer-only local files
.local
3 changes: 0 additions & 3 deletions .prettierignore

This file was deleted.

724 changes: 359 additions & 365 deletions .yarn/releases/yarn-4.9.1.cjs → .yarn/releases/yarn-4.9.4.cjs

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
yarnPath: .yarn/releases/yarn-4.9.1.cjs
yarnPath: .yarn/releases/yarn-4.9.4.cjs

nodeLinker: node-modules

npmPublishAccess: public
8 changes: 0 additions & 8 deletions jest.config.ts

This file was deleted.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"scripts": {
"clean": "yarn workspaces foreach --all -p run clean",
"lint": "yarn workspaces foreach --all -p run lint",
"build:libs": "yarn workspaces foreach -Rpt --from '{@human-protocol/sdk,packages/libs/*}' run build",
"build:libs": "yarn workspaces foreach --all --no-private -pt run build",
"docker:infra-up": "make -C ./docker-setup -f Makefile.dev infra-up",
"docker:infra-stop": "make -C ./docker-setup -f Makefile.dev infra-stop",
"docker:infra-down": "make -C ./docker-setup -f Makefile.dev infra-down",
Expand All @@ -19,6 +19,7 @@
"packages/**"
],
"devDependencies": {
"@changesets/cli": "^2.29.6",
"husky": "^9.1.6",
"lint-staged": "^15.4.3"
},
Expand All @@ -28,5 +29,5 @@
"@graphql-tools/executor-graphql-ws/ws": "^8.17.1",
"@graphql-tools/executor-legacy-ws/ws": "^8.17.1"
},
"packageManager": "yarn@4.9.1"
"packageManager": "yarn@4.9.4"
}
2 changes: 2 additions & 0 deletions packages/apps/faucet/client/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
*.test.tsx.snap
.vercel
dist
node_modules
7 changes: 7 additions & 0 deletions packages/apps/faucet/client/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"semi": true,
"trailingComma": "es5",
"singleQuote": true,
"printWidth": 80,
"arrowParens": "always"
}
26 changes: 13 additions & 13 deletions packages/apps/faucet/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,19 @@
"version": "1.0.0",
"description": "Human Protocol Faucet",
"license": "MIT",
"scripts": {
"clean": "rm -rf dist",
"lint": "eslint '**/*.{ts,tsx}'",
"start": "vite",
"build": "vite build",
"preview": "vite preview",
"start-prod": "serve -s dist",
"format:prettier": "prettier --write '**/*.{ts,tsx}'",
"format:lint": "eslint --fix '**/*.{ts,tsx}'",
"format": "yarn format:prettier && yarn format:lint",
"vercel-build": "yarn workspace human-protocol build:libs && yarn build",
"test": "exit 0"
},
"dependencies": {
"@human-protocol/sdk": "workspace:*",
"@mui/icons-material": "^7.0.1",
Expand All @@ -30,19 +43,6 @@
"vite": "^6.2.4",
"vite-plugin-node-polyfills": "^0.23.0"
},
"scripts": {
"clean": "rm -rf dist",
"lint": "eslint '**/*.{ts,tsx}'",
"start": "vite",
"build": "vite build",
"preview": "vite preview",
"start-prod": "serve -s dist",
"format:prettier": "prettier --write '**/*.{ts,tsx}'",
"format:lint": "eslint --fix '**/*.{ts,tsx}'",
"format": "yarn format:prettier && yarn format:lint",
"vercel-build": "yarn workspace human-protocol build:libs && yarn build",
"test": "exit 0"
},
"lint-staged": {
"*.{ts,tsx}": [
"prettier --write",
Expand Down
File renamed without changes.
1 change: 0 additions & 1 deletion .eslintrc → packages/apps/faucet/server/.eslintrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2020,
Expand Down
3 changes: 3 additions & 0 deletions packages/apps/faucet/server/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -133,3 +133,6 @@ dist
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

# build dirs
build
7 changes: 7 additions & 0 deletions packages/apps/faucet/server/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"semi": true,
"trailingComma": "es5",
"singleQuote": true,
"printWidth": 80,
"arrowParens": "always"
}
14 changes: 14 additions & 0 deletions packages/apps/fortune/recording-oracle/.eslintrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module"
},
"plugins": ["@typescript-eslint", "prettier", "jest"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"rules": {
"no-console": "warn",
"prettier/prettier": "error",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-explicit-any": "off"
}
Expand Down
14 changes: 14 additions & 0 deletions packages/core/.eslintrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module"
},
"plugins": ["@typescript-eslint", "prettier", "jest"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"rules": {
"no-console": "warn",
"prettier/prettier": "error",
"prefer-const": "warn",
"no-extra-semi": "off",
"@typescript-eslint/no-extra-semi": "off",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/.prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
node_modules
typechain-types
dist
File renamed without changes.
4 changes: 2 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@human-protocol/core",
"description": "Human Protocol Core Smart Contracts",
"version": "4.1.3",
"version": "4.2.0",
"files": [
"contracts/**/*.sol",
"abis/**/*.json",
Expand Down Expand Up @@ -37,7 +37,7 @@
"format": "yarn format:contracts && yarn format:scripts",
"clean:build": "tsc --build --clean && rm -rf dist",
"build": "yarn compile && yarn clean:build && tsc --build",
"prepublish": "yarn build"
"prepack": "[ \"${SKIP_PREPACK:-}\" = \"true\" ] && exit 0 || yarn build"
},
"repository": {
"type": "git",
Expand Down
4 changes: 4 additions & 0 deletions packages/examples/gcv/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"singleQuote": true,
"trailingComma": "all"
}
1 change: 1 addition & 0 deletions packages/examples/gcv/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "gcv",
"private": true,
"version": "1.0.0",
"license": "UNLICENSED",
"scripts": {
Expand Down
Loading
Loading