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

Release 1.7.15 #151

Open
wants to merge 48 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
45613b4
feat: fixed incorrectly cached statistics result
wwills2 Sep 16, 2024
8653cd8
feat: removed deprecated config file
wwills2 Sep 17, 2024
f747109
fix: vintage year not included in responses
wwills2 Oct 11, 2024
c5f7230
feat: add migration for address book
newweborder007 Nov 28, 2024
6aaae53
feat: add models for address book
newweborder007 Nov 28, 2024
9c3915a
feat: add controller for address book
newweborder007 Nov 28, 2024
fc52ce4
feat: add routes for address book
newweborder007 Nov 28, 2024
41db54b
chore: Updating npm dev dependencies
ChiaAutomation Dec 4, 2024
375b15a
fix: general bug fixes and improvements
wwills2 Dec 5, 2024
590271b
build(deps): bump the npm_and_yarn group across 1 directory with 2 up…
dependabot[bot] Dec 5, 2024
74a32eb
refactor: return msg to user instead of result
newweborder007 Dec 13, 2024
7febd28
refactor: rename files to address-book
newweborder007 Dec 13, 2024
960c098
Merge branch 'develop' into statistics-fix
wwills2 Dec 17, 2024
845638e
feat: add findAll for addressbook module
newweborder007 Dec 18, 2024
8271a1e
Merge pull request #145 from Chia-Network/dependabot/npm_and_yarn/npm…
TheLastCicada Dec 18, 2024
9ef4144
Merge pull request #144 from Chia-Network/fix-organization-imports
TheLastCicada Dec 18, 2024
55e2576
Merge pull request #147 from Chia-Network/statistics-fix
TheLastCicada Dec 18, 2024
25a7139
ci: Make RC releases
TheLastCicada Dec 18, 2024
1d9b366
Merge pull request #148 from Chia-Network/rc-releases
TheLastCicada Dec 18, 2024
4c4be66
chore: dependency updates
TheLastCicada Dec 18, 2024
dc707fc
chore: dependency updates
TheLastCicada Dec 18, 2024
5feb5a3
Merge pull request #150 from Chia-Network/dep-updates-1
TheLastCicada Dec 18, 2024
97f2845
chore: version bump
TheLastCicada Dec 18, 2024
46e991f
chore: Delete unnecessary .repo-content-updater.yaml
TheLastCicada Dec 18, 2024
82f3e39
Update license
ChiaAutomation Dec 19, 2024
ebfe3ff
Update dep-review
ChiaAutomation Dec 19, 2024
dc39853
Update commit-signing
ChiaAutomation Dec 19, 2024
228ed21
Update dependabot
ChiaAutomation Dec 19, 2024
356ce47
Merge pull request #153 from Chia-Network/update-license
TheLastCicada Dec 19, 2024
7c548f5
Merge pull request #152 from Chia-Network/managed-files
TheLastCicada Dec 19, 2024
2ff6325
build(deps): bump Apple-Actions/import-codesign-certs from 1 to 3
dependabot[bot] Dec 19, 2024
7f9321a
refactor: fix field and update file extension
newweborder007 Dec 20, 2024
4d77535
refactor: update controller and modify address book migration
newweborder007 Dec 20, 2024
b579403
feat: add findOne func and update order
newweborder007 Dec 27, 2024
551cbf9
feat: revert migration
newweborder007 Dec 27, 2024
e151fb8
Update license
ChiaAutomation Jan 3, 2025
7fdb5dd
Merge pull request #154 from Chia-Network/dependabot/github_actions/A…
TheLastCicada Jan 3, 2025
5a76e03
Merge pull request #164 from Chia-Network/update-license
TheLastCicada Jan 3, 2025
31eaa28
Merge pull request #146 from Chia-Network/feat/address-book-backend
wwills2 Jan 3, 2025
2e3239f
ci: add rc releases to apt repo
TheLastCicada Jan 6, 2025
a72f155
Merge pull request #165 from Chia-Network/rc-workflow-in-apt
TheLastCicada Jan 6, 2025
1c9264f
ci: run apt always
TheLastCicada Jan 6, 2025
9e7b243
Merge pull request #166 from Chia-Network/rcaptfix
TheLastCicada Jan 6, 2025
936ff0a
fix: duplicated definitions
wwills2 Jan 8, 2025
1e8c74f
Merge pull request #167 from Chia-Network/fix-duplicated-identifiers
TheLastCicada Jan 8, 2025
a3d733b
feat: add apple ARM package target
wwills2 Jan 14, 2025
31dbde9
feat: enable sqlite WAL mode
wwills2 Jan 15, 2025
fa575ab
Merge pull request #170 from Chia-Network/enable-sqlite-wal-mode
TheLastCicada Jan 15, 2025
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
25 changes: 0 additions & 25 deletions .eslintrc.json

This file was deleted.

72 changes: 72 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# This file is managed by the repo-content-updater project. Manual changes here will result in a PR to bring back
# inline with the upstream template, unless you remove the dependabot managed file property from the repo

version: 2
updates:
- package-ecosystem: "gomod"
directory: /
schedule:
interval: "weekly"
day: "tuesday"
open-pull-requests-limit: 10
rebase-strategy: auto
labels:
- dependencies
- go
- "Changed"
reviewers: ["cmmarslender", "starttoaster"]
groups:
global:
patterns:
- "*"

- package-ecosystem: "pip"
directory: /
schedule:
interval: "weekly"
day: "tuesday"
open-pull-requests-limit: 10
rebase-strategy: auto
labels:
- dependencies
- python
- "Changed"
reviewers: ["emlowe", "altendky"]

- package-ecosystem: "github-actions"
directories: ["/", ".github/actions/*"]
schedule:
interval: "weekly"
day: "tuesday"
open-pull-requests-limit: 10
rebase-strategy: auto
labels:
- dependencies
- github_actions
- "Changed"
reviewers: ["cmmarslender", "Starttoaster", "pmaslana"]

- package-ecosystem: "npm"
directory: /
schedule:
interval: "weekly"
day: "tuesday"
open-pull-requests-limit: 10
rebase-strategy: auto
labels:
- dependencies
- javascript
- "Changed"
reviewers: ["cmmarslender", "ChiaMineJP"]

- package-ecosystem: cargo
directory: /
schedule:
interval: "weekly"
day: "tuesday"
open-pull-requests-limit: 10
rebase-strategy: auto
labels:
- dependencies
- rust
- "Changed"
79 changes: 79 additions & 0 deletions .github/workflows/auto-release-rc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
# Compares the version in package.json to tags on the repo. If the tag doesn't exist, a new tag is created, which
# then triggers the normal "on tag" release automation in the build job
name: Auto Tag RC

on:
push:
branches:
- develop

concurrency:
group: rc-release-check

jobs:
release-dev:
name: Release rc version
runs-on: ubuntu-latest
steps:
- name: Checkout current branch
uses: actions/checkout@v4
with:
# Need REPO_COMMIT token so when the tag is created, the tag automation runs
token: ${{ secrets.REPO_COMMIT }}
fetch-depth: 0

- name: Setup commit signing for ChiaAutomation
uses: Chia-Network/actions/commit-sign/gpg@main
with:
gpg_private_key: ${{ secrets.CHIA_AUTOMATION_PRIVATE_GPG_KEY }}
passphrase: ${{ secrets.CHIA_AUTOMATION_PRIVATE_GPG_PASSPHRASE }}

- name: Check for current version tag. Create if it doesn't exist
env:
GH_TOKEN: ${{ github.token }}
run: |
stable_version=$(gh release list --limit 1 --order desc --exclude-pre-releases --json tagName --jq ".[].tagName")
echo "Latest release is $stable_version"
rc_version=$(gh release list --json tagName --jq ".[] | select(.tagName | test(\"${version}-rc*\")) | .tagName")
echo "Latest release candidate is $rc_version"

if [[ -z ${rc_version} ]]; then
# Extract the major, minor, and patch versions
IFS='.' read -r major minor patch <<< "$stable_version"

# Increment the patch version
new_patch=$((patch + 1))

# Construct the new version string
version="$major.$minor.$new_patch-rc1"

echo "New version: $version"

else
# Extract the major, minor, patch, and rc parts
IFS='.-' read -r major minor patch rc <<< "$rc_version"

# Extract just the number of the rc
rc_number="${rc#rc}"

# Increment the rc number
rc_number=$((rc_number +1))

# Construct the new version string
version="$major.$minor.$patch-rc$rc_number"

echo "New version: $version"

fi

if [ $(git tag -l "$version") ]; then
echo "$version tag exists, deleting..."
git tag -d $version
git push --delete origin $version
fi
echo "Tag does not exist. Creating and pushing tag"
rm -f CHANGELOG.md
npx conventional-changelog-cli -p angular -i CHANGELOG.md -s -r 0
changes=$(npx conventional-changelog-cli -r 1 | tail -n +2)
git tag $version -m "Release $version $changes"
git push origin $version
60 changes: 47 additions & 13 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name: Build Binaries

on:
push:
branches:
- stage
tags:
- '**'
pull_request:
Expand Down Expand Up @@ -43,9 +41,6 @@ jobs:
sqlite-path: .\node_modules\sqlite3\build\Release\

steps:
- name: Clean workspace
uses: Chia-Network/actions/clean-workspace@main

- name: Checkout Code
uses: actions/checkout@v4

Expand All @@ -61,6 +56,17 @@ jobs:
run: npm pkg delete scripts.prepare
if: matrix.runs-on != 'windows-2019'

- name: Change the package.json version if an RC tag
shell: bash
if: startsWith(github.ref, 'refs/tags/') && contains( github.ref, '-rc')
run: |
echo "Github ref: $GITHUB_REF"
IFS='/' read -r base directory tag <<< "$GITHUB_REF"
echo "Extracted tag is $tag"

jq ".version = \"${tag}\"" package.json > package.tmp
mv package.tmp package.json

- name: npm install
run: |
node --version
Expand Down Expand Up @@ -112,16 +118,16 @@ jobs:

# Mac .pkg build + sign
- name: Import Apple installer signing certificate
if: matrix.runs-on == 'macos-latest' && steps.check_secrets.outputs.HAS_SIGNING_SECRET
uses: Apple-Actions/import-codesign-certs@v1
if: matrix.runs-on == 'macos-latest' && steps.check_secrets.outputs.HAS_SIGNING_SECRET && startsWith(github.ref, 'refs/tags/')
uses: Apple-Actions/import-codesign-certs@v3
with:
keychain-password: ${{ secrets.KEYCHAIN_PASSWORD }}
p12-file-base64: ${{ secrets.APPLE_DEV_ID_INSTALLER }}
p12-password: ${{ secrets.APPLE_DEV_ID_INSTALLER_PASS }}

- name: Import Apple Application signing certificate
if: matrix.runs-on == 'macos-latest' && steps.check_secrets.outputs.HAS_SIGNING_SECRET
uses: Apple-Actions/import-codesign-certs@v1
if: matrix.runs-on == 'macos-latest' && steps.check_secrets.outputs.HAS_SIGNING_SECRET && startsWith(github.ref, 'refs/tags/')
uses: Apple-Actions/import-codesign-certs@v3
with:
create-keychain: false # Created when importing the first cert
keychain-password: ${{ secrets.KEYCHAIN_PASSWORD }}
Expand All @@ -135,7 +141,7 @@ jobs:
cp -r ${{ github.workspace }}/dist ${{ github.workspace }}/build-scripts/macos/application

- name: Sign Mac binaries
if: matrix.runs-on == 'macos-latest' && steps.check_secrets.outputs.HAS_SIGNING_SECRET
if: matrix.runs-on == 'macos-latest' && steps.check_secrets.outputs.HAS_SIGNING_SECRET && startsWith(github.ref, 'refs/tags/')
run: |
echo "Signing the binaries"
codesign -f -s "Developer ID Application: Chia Network Inc." --timestamp --options=runtime --entitlements ${{ github.workspace }}/build-scripts/macos/entitlements.mac.plist ${{ github.workspace }}/build-scripts/macos/application/core-registry-cadt
Expand All @@ -153,7 +159,7 @@ jobs:
cp ${{ github.workspace }}/build-scripts/macos/target/pkg/core-registry-cadt-macos-installer-x64.pkg ${{ github.workspace }}/build-scripts/macos/target/ready-to-upload/core-registry-cadt-macos-installer-x64.pkg

- name: Notarize Mac .pkg
if: matrix.runs-on == 'macos-latest' && steps.check_secrets.outputs.HAS_SIGNING_SECRET
if: matrix.runs-on == 'macos-latest' && steps.check_secrets.outputs.HAS_SIGNING_SECRET && startsWith(github.ref, 'refs/tags/')
run: |
mkdir -p ${{ github.workspace }}/build-scripts/macos/target/pkg-signed

Expand Down Expand Up @@ -212,6 +218,7 @@ jobs:
echo "TAGNAME=$(echo $GITHUB_REF | cut -d / -f 3)" >> $GITHUB_OUTPUT

- name: Build .deb
shell: bash
env:
CADT_VERSION: ${{ steps.tag-name.outputs.TAGNAME }}
PLATFORM: ${{ matrix.platform }}
Expand Down Expand Up @@ -296,9 +303,36 @@ jobs:
zip -r core-registry-cadt-linux-x64-${{ steps.tag-name.outputs.TAGNAME }}.zip core-registry-cadt-linux-x64
zip -r core-registry-cadt-macos-binary-x64-${{ steps.tag-name.outputs.TAGNAME }}.zip core-registry-cadt-macos-x64

# RC release should not be set as latest
- name: Decide if release should be set as latest and set glue project
id: is_latest
shell: bash
run: |
unset IS_LATEST

echo "Github ref is $GITHUB_REF"

if [[ "$GITHUB_REF" =~ "-rc" ]]; then
echo "release candidate tag matched"
IS_LATEST='false'
IS_PRERELEASE='true'
GLUE_PROJECT='climate-tokenization-test'
else
echo "main branch release matched"
IS_LATEST='true'
IS_PRERELEASE='false'
GLUE_PROJECT='climate-tokenization'
fi

echo "IS_LATEST=${IS_LATEST}" >> "$GITHUB_OUTPUT"
echo "IS_PRERELEASE=${IS_PRERELEASE}" >> "$GITHUB_OUTPUT"
echo "GLUE_PROJECT=${GLUE_PROJECT}" >> "$GITHUB_OUTPUT"

- name: Release
uses: softprops/action-gh-release@v0.1.15
uses: softprops/action-gh-release@v2
with:
prerelease: ${{steps.is_latest.outputs.IS_PRERELEASE}}
make_latest: "${{steps.is_latest.outputs.IS_LATEST}}"
files: |
core-registry-cadt-windows-x64-${{ steps.tag-name.outputs.TAGNAME }}.zip
core-registry-cadt-macos-x64-${{ steps.tag-name.outputs.TAGNAME }}.zip
Expand All @@ -318,5 +352,5 @@ jobs:
with:
json_data: '{"climate_tokenization_repo":"${{ steps.repo-name.outputs.REPO_NAME }}","application_name":"[\"core-registry-cadt\"]","release_version":"${{ steps.tag-name.outputs.TAGNAME }}","add_debian_version":"true","arm64":"available"}'
glue_url: ${{ secrets.GLUE_API_URL }}
glue_project: "climate-tokenization"
glue_project: "${{steps.is_latest.outputs.GLUE_PROJECT}}"
glue_path: "trigger"
29 changes: 29 additions & 0 deletions .github/workflows/check-commit-signing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: 🚨 Check commit signing

on:
push:
branches:
- long_lived/**
- main
- release/**
pull_request:
branches:
- "**"

concurrency:
group: ${{ github.event_name == 'pull_request' && format('{0}-{1}', github.workflow_ref, github.event.pull_request.number) || github.run_id }}
cancel-in-progress: true

jobs:
check-commit-signing:
name: Check commit signing
runs-on: [ubuntu-latest]
timeout-minutes: 5

steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: chia-network/actions/check-commit-signing@main
25 changes: 25 additions & 0 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Managed by repo-content-updater
# Dependency Review Action
#
# This Action will scan dependency manifest files that change as part of a Pull Request, surfacing known-vulnerable versions of the packages declared or updated in the PR. Once installed, if the workflow run is marked as required, PRs introducing known-vulnerable packages will be blocked from merging.
#
# Source repository: https://github.com/actions/dependency-review-action
# Public documentation: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#dependency-review-enforcement
name: "🚨 Dependency Review"
on: [pull_request]

permissions:
contents: read

jobs:
dependency-review:
runs-on: ubuntu-latest
steps:
- name: "Checkout Repository"
uses: actions/checkout@v4

- name: "Dependency Review"
uses: actions/dependency-review-action@v4
with:
allow-dependencies-licenses: pkg:pypi/pyinstaller
deny-licenses: AGPL-1.0-only, AGPL-1.0-or-later, AGPL-1.0-or-later, AGPL-3.0-or-later, GPL-1.0-only, GPL-1.0-or-later, GPL-2.0-only, GPL-2.0-or-later, GPL-3.0-only, GPL-3.0-or-later
4 changes: 0 additions & 4 deletions .repo-content-updater.yaml

This file was deleted.

18 changes: 2 additions & 16 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,18 +1,4 @@
Copyright 2023 Chia Network Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and limitations under the License.



Apache License
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/

Expand Down Expand Up @@ -200,7 +186,7 @@ See the License for the specific language governing permissions and limitations
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2023 Chia Network Inc.
Copyright 2025 Chia Network Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
Loading
Loading