From d1a103a698805f98718c33129c382f8db3fb68bf Mon Sep 17 00:00:00 2001 From: Ankur Banerjee Date: Thu, 28 Jul 2022 16:01:00 +0100 Subject: [PATCH] Squashed commit of the following: commit a8963ab7e62b9b4c007887d27c353119f0641a6c Merge: 87952cd adf2b22 Author: Ankur Banerjee Date: Thu Jul 28 15:58:17 2022 +0100 Merge branch 'forbole:cosmos/v0.44.x' into chains/cheqd commit 87952cd107e90db95fb3a753f7eecd402463cfd7 Author: Ankur Banerjee Date: Thu Jul 28 15:53:06 2022 +0100 Update lint.yml commit 3781b961c7780a385d9e17e50d60c987638d5768 Author: Ankur Banerjee Date: Thu Jul 28 15:48:25 2022 +0100 Update .hadolint.yml commit 66772b375d9eea76cb66e7b8f49a6c5215b90800 Author: Ankur Banerjee Date: Thu Jul 28 15:43:35 2022 +0100 Update lint-pr.yml commit ba17d38668f64030e13767811dca5ba504752812 Author: Ankur Banerjee Date: Thu Jul 28 15:43:04 2022 +0100 Create dispatch.yml commit 45800e372fa76257b3a49fed787ceaffa70efa7e Author: Ankur Banerjee Date: Thu Jul 28 15:42:51 2022 +0100 Update lint.yml commit eb462fc3eac1dde40e3bc556c6f4e9e77e410670 Author: Ankur Banerjee Date: Thu Jul 28 15:39:46 2022 +0100 Add Linter configs commit adf2b22e7017468cefe3bcc1f127f6d11503c898 Author: Magic Cat <37407870+MonikaCat@users.noreply.github.com> Date: Thu Jul 28 22:28:25 2022 +0800 build(deps): bump forbole/juno to v3.3.0 (#440) ## Description Closes: #XXXX --- ### Author Checklist *All items are required. Please add a note to the item if the item is not applicable and please add links to any relevant follow up issues.* I have... - [ ] included the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title - [ ] added `!` to the type prefix if API or client breaking change - [ ] targeted the correct branch - [ ] provided a link to the relevant issue or specification - [ ] added a changelog entry to `CHANGELOG.md` - [ ] included comments for [documenting Go code](https://blog.golang.org/godoc) - [ ] updated the relevant documentation or specification - [ ] reviewed "Files changed" and left comments if necessary - [ ] confirmed all CI checks have passed ### Reviewers Checklist *All items are required. Please add a note if the item is not applicable and please add your handle next to the items reviewed if you only reviewed selected items.* I have... - [ ] confirmed the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title - [ ] confirmed `!` in the type prefix if API or client breaking change - [ ] confirmed all author checklist items have been addressed - [ ] reviewed API design and naming - [ ] reviewed documentation is accurate - [ ] reviewed tests and test coverage - [ ] manually tested (if applicable) commit 3f3e97062bdbe8073d9a4ffa790ff13bb9c5e309 Author: Ankur Banerjee Date: Thu Jul 28 15:27:55 2022 +0100 Delete docker-build.yml commit 4d1459992e56dc707fe9bd7a0f60f6c217215599 Author: Ankur Banerjee Date: Thu Jul 28 15:27:41 2022 +0100 Lint PR commit 7c31ce077c6860ec0ec06bc2d9ea49d3328f2e28 Author: Ankur Banerjee Date: Thu Jul 28 15:27:09 2022 +0100 Delete .mergify.yml commit 51495b0cbf28fdf587450c5c305e584d018bd131 Author: Ankur Banerjee Date: Thu Jul 28 15:26:43 2022 +0100 Revert "Update PR title check" This reverts commit 9740889cb6ddebabeadf8b23887c3c270f61e74c. commit 6d4be9bc50038c422b0506239d08917ee5661094 Author: Ankur Banerjee Date: Thu Jul 28 15:24:29 2022 +0100 Update test.yml commit 3594c4fabf914e0b57cf9826b83be0f6982affe6 Author: Ankur Banerjee Date: Thu Jul 28 15:19:36 2022 +0100 Delete .codecov.yaml commit 9e6ea794929bc3f06525cbdf09fb59b591578ac6 Author: Ankur Banerjee Date: Thu Jul 28 15:16:43 2022 +0100 Update dependabot.yml commit 9740889cb6ddebabeadf8b23887c3c270f61e74c Author: Ankur Banerjee Date: Thu Jul 28 15:16:26 2022 +0100 Update PR title check commit a0544e1541728e1d7896c07b54dbad784f000dab Author: Ankur Banerjee Date: Thu Jul 28 15:15:24 2022 +0100 Update .gitignore commit 5290970676cfdb0627e031f73590cd51e6a07899 Author: Ankur Banerjee Date: Thu Jul 28 15:15:06 2022 +0100 Delete .mergify.yml --- .codecov.yaml | 26 -- .github/dependabot.yml | 47 ++- .github/linters/.commitlint.rules.js | 37 ++ .github/linters/.hadolint.yml | 17 + .github/linters/.markdown-lint.yml | 139 ++++++ .github/scripts/ensure_set_euox_pipefail.sh | 26 ++ .github/workflows/dispatch.yml | 17 + .github/workflows/docker-build.yml | 51 --- .github/workflows/lint-pr.yml | 26 +- .github/workflows/lint.yml | 73 +++- .github/workflows/test.yml | 34 +- .gitignore | 444 ++++++++++++++++++++ .mergify.yml | 20 - CHANGELOG.md | 3 + go.mod | 2 +- 15 files changed, 806 insertions(+), 156 deletions(-) delete mode 100644 .codecov.yaml create mode 100644 .github/linters/.commitlint.rules.js create mode 100644 .github/linters/.hadolint.yml create mode 100644 .github/linters/.markdown-lint.yml create mode 100644 .github/scripts/ensure_set_euox_pipefail.sh create mode 100644 .github/workflows/dispatch.yml delete mode 100644 .github/workflows/docker-build.yml delete mode 100644 .mergify.yml diff --git a/.codecov.yaml b/.codecov.yaml deleted file mode 100644 index bab6d06af..000000000 --- a/.codecov.yaml +++ /dev/null @@ -1,26 +0,0 @@ -# -# This codecov.yml is the default configuration for -# all repositories on Codecov. You may adjust the settings -# below in your own codecov.yml in your repository. -# -coverage: - precision: 2 - round: down - range: 70...100 - - status: - # Learn more at https://codecov.io/docs#yaml_default_commit_status - project: - default: - threshold: 1% # allow this much decrease on project - changes: false - -comment: - layout: "header, diff" - behavior: default # update.md if exists else create new - -ignore: - - "docs" - - "*.md" - - "*.rst" - - "x/**/test_common.go" diff --git a/.github/dependabot.yml b/.github/dependabot.yml index ab1c21e8a..42b425a8e 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,17 +1,42 @@ +################################# +# GitHub Dependabot Config info # +################################# + version: 2 updates: - - package-ecosystem: github-actions + + # Maintain dependencies for GitHub Actions + - package-ecosystem: "github-actions" directory: "/" schedule: - interval: daily - open-pull-requests-limit: 10 - - package-ecosystem: gomod + interval: "weekly" + + # Maintain dependencies for NPM + - package-ecosystem: "npm" directory: "/" schedule: - interval: daily - open-pull-requests-limit: 10 - reviewers: - - riccardom - labels: - - automerge - - dependencies \ No newline at end of file + interval: "weekly" + + # Maintain dependencies for Docker + - package-ecosystem: "docker" + directory: "/" + schedule: + interval: "weekly" + + # Maintain dependencies for Golang + - package-ecosystem: "gomod" + directory: "/" + schedule: + interval: "weekly" + + # Maintain dependencies for Terraform + - package-ecosystem: "terraform" + directory: "/" + schedule: + interval: "weekly" + + # Maintain dependencies for Python + - package-ecosystem: "pip" + directory: "/" + schedule: + interval: "weekly" diff --git a/.github/linters/.commitlint.rules.js b/.github/linters/.commitlint.rules.js new file mode 100644 index 000000000..cc73a8017 --- /dev/null +++ b/.github/linters/.commitlint.rules.js @@ -0,0 +1,37 @@ +module.exports = { + rules: { + 'type-case': [2, 'always', 'lower-case'], + 'type-empty': [2, 'never'], + 'type-enum': [ + 2, + 'always', + [ + 'build', + 'chore', + 'ci', + 'docs', + 'feat', + 'fix', + 'perf', + 'refactor', + 'revert', + 'style', + 'test', + ], + ], + 'scope-case': [2, 'always', 'lower-case'], + 'scope-empty': [1, 'never'], + 'subject-case': [ + 2, + 'always', + ['sentence-case'], + ], + 'subject-empty': [1, 'never'], + 'subject-full-stop': [1, 'never', '.'], + 'header-max-length': [2, 'always', 100], + 'body-leading-blank': [1, 'always'], + 'body-max-line-length': [2, 'always', 1000], + 'footer-leading-blank': [1, 'always'], + 'footer-max-line-length': [2, 'always', 100], + }, +}; diff --git a/.github/linters/.hadolint.yml b/.github/linters/.hadolint.yml new file mode 100644 index 000000000..c0140c8ef --- /dev/null +++ b/.github/linters/.hadolint.yml @@ -0,0 +1,17 @@ +# Set threshold level (error | warning | info | style | ignore | none) +failure-threshold: warning + +# List of ignored rules +# See list for reference: https://github.com/hadolint/hadolint#rules +ignored: + +# Override default levels for specific rules +override: + error: + warning: + info: + - DL3007 + - DL3008 + - DL3018 + - DL3027 + style: diff --git a/.github/linters/.markdown-lint.yml b/.github/linters/.markdown-lint.yml new file mode 100644 index 000000000..e8b2033f1 --- /dev/null +++ b/.github/linters/.markdown-lint.yml @@ -0,0 +1,139 @@ +default: false # includes/excludes all rules by default + +# Heading levels should only increment by one level at a time +MD001: true + +# Heading style +MD003: + style: 'consistent' + +# Unordered list style +MD004: + style: 'consistent' + +# Inconsistent indentation for list items at the same level +MD005: true + +# Consider starting bulleted lists at the beginning of the line +MD006: true + +# Unordered list indentation +MD007: false + +# Trailing spaces +MD009: true + +# Hard tabs +MD010: false + +# Reversed link syntax +MD011: true + +# Multiple consecutive blank lines +MD012: + maximum: 2 + +# Line length +MD013: false + +# Dollar signs used before commands without showing output +MD014: true + +# No space after hash on atx style heading +MD018: true + +# Multiple spaces after hash on atx style heading +MD019: true + +# No space inside hashes on closed atx style heading +MD020: true + +# Multiple spaces inside hashes on closed atx style heading +MD021: true + +# Headings should be surrounded by blank lines +MD022: true + +# Headings must start at the beginning of the line +MD023: true + +# Multiple headings with the same content +MD024: + allow_different_nesting: true + +# Multiple top level headings in the same document +MD025: false + +# Trailing punctuation in heading +MD026: true + +# Multiple spaces after blockquote symbol +MD027: true + +# Blank line inside blockquote +MD028: false + +# Ordered list item prefix +MD029: + style: 'one_or_ordered' + +# Spaces after list markers +MD030: true + +# Fenced code blocks should be surrounded by blank lines +MD031: true + +# Lists should be surrounded by blank lines +MD032: true + +# Inline HTML +MD033: + allowed_elements: ['a'] + +# Bare URL used +MD034: true + +# Horizontal rule style +MD035: + style: 'consistent' + +# Emphasis used instead of a heading +MD036: true + +# Spaces inside emphasis markers +MD037: true + +# Spaces inside code span elements +MD038: true + +# Spaces inside link text +MD039: true + +# Fenced code blocks should have a language specified +MD040: true + +# First line in file should be a top level heading +MD041: true + +# No empty links +MD042: true + +# Required heading structure +MD043: false + +# Proper names should have the correct capitalization +MD044: false + +# Images should have alternate text (alt text) +MD045: true + +# Code block style +MD046: + style: 'consistent' + +# Files should end with a single newline character +MD047: true + +# Code fence style +MD048: + style: 'consistent' diff --git a/.github/scripts/ensure_set_euox_pipefail.sh b/.github/scripts/ensure_set_euox_pipefail.sh new file mode 100644 index 000000000..2dd9fbfdf --- /dev/null +++ b/.github/scripts/ensure_set_euox_pipefail.sh @@ -0,0 +1,26 @@ +#!/bin/bash + +# Ensures that all bash scripts in the repository use `set -euox pipefail` or `set -euo pipefail` statement at the beginning. + +set -euo pipefail + +INVALID_FILES_FOUND=0 + +while IFS= read -r -d '' BASH_SCRIPT +do + echo "checking ${BASH_SCRIPT}" + if ( ! grep -q "set -euo pipefail" "${BASH_SCRIPT}" ) && ( ! grep -q "set -euox pipefail" "${BASH_SCRIPT}" ) + then + echo "${BASH_SCRIPT}" + INVALID_FILES_FOUND=1 + fi +done < <(find . -type f -name "*.sh" -print0) # See https://github.com/koalaman/shellcheck/wiki/SC2044 + +if [[ INVALID_FILES_FOUND -eq 1 ]] +then + echo "" + echo "The bash scripts above must include either 'set -euo pipefail' or 'set -euox pipefail." + exit 1 +else + echo "euox-pipefaile check finished successfully" +fi diff --git a/.github/workflows/dispatch.yml b/.github/workflows/dispatch.yml new file mode 100644 index 000000000..d8774ef7b --- /dev/null +++ b/.github/workflows/dispatch.yml @@ -0,0 +1,17 @@ +name: "Workflow Dispatch" +on: push +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + + +jobs: + + call-lint: + name: "Lint" + uses: cheqd/bdjuno/.github/workflows/lint.yml@chains/cheqd + + call-test: + name: "Test" + uses: cheqd/bdjuno/.github/workflows/test.yml@chains/cheqd + diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml deleted file mode 100644 index 71ec6d6cc..000000000 --- a/.github/workflows/docker-build.yml +++ /dev/null @@ -1,51 +0,0 @@ -name: docker-build - -on: - push: - branches: - - chains/*/* - -jobs: - docker: - runs-on: ubuntu-latest - steps: - - - name: Checkout - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - - name: Set bdjuno chain_name - shell: bash - run: echo "CHAIN_NAME=$(echo ${GITHUB_REF#refs/heads/} | sed 's/\//_/g')" >> $GITHUB_ENV - - - name: Set bdjuno version - shell: bash - run: echo "GITHUB_VERSION=$(git describe --tags)" >> $GITHUB_ENV - - - name: Prepare tags - id: prep - run: | - DOCKER_IMAGE=${{ secrets.DOCKERHUB_BDJUNO_REPO }} - CHAIN_NAME="${{env.CHAIN_NAME}}" - VERSION="${{env.GITHUB_VERSION}}" - TAGS="${DOCKER_IMAGE}:${CHAIN_NAME}-${VERSION}" - echo ::set-output name=version::${VERSION} - echo ::set-output name=tags::${TAGS} - echo ::set-output name=created::$(date -u +'%Y-%m-%dT%H:%M:%SZ') - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - - - name: Login to DockerHub - uses: docker/login-action@v2 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - - name: Build and push - uses: docker/build-push-action@v3 - with: - context: . - push: true - tags: ${{ steps.prep.outputs.tags }} \ No newline at end of file diff --git a/.github/workflows/lint-pr.yml b/.github/workflows/lint-pr.yml index 302c97cf2..93d8b38ed 100644 --- a/.github/workflows/lint-pr.yml +++ b/.github/workflows/lint-pr.yml @@ -1,16 +1,32 @@ -name: "Lint PR" - +name: "PR Title Check" on: pull_request_target: + branches: + - chain/cheqd types: - opened + - reopened - edited - synchronize + - ready_for_review + - review_requested +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true jobs: - main: + lint-pr: + name: "PR format check" runs-on: ubuntu-latest steps: - - uses: amannn/action-semantic-pull-request@v4.5.0 + - uses: actions/checkout@v3 + # check for the most recent release: https://github.com/CondeNast/conventional-pull-request-action/releases + # replace vX.X.X below with the most recently released version + - uses: CondeNast/conventional-pull-request-action@v0.1.2 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + # to override config-conventional rules, specify a relative path to your rules module, actions/checkout is required for this setting! + commitlintRulesPath: "./.github/linters/.commitlint.rules.js" # default: undefined + # if the PR contains a single commit, fail if the commit message and the PR title do not match + commitTitleMatch: "false" # default: 'true' diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index c0ff681e4..4a498b240 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,29 +1,62 @@ -name: Lint -# Lint runs golangci-lint over the entire Desmos repository. -# This workflow is run on every pull request and push to master. -# The `golangci` will pass without running if no *.{go, mod, sum} files have been changed. +name: "Lint" on: - pull_request: - push: - branches: - - master + workflow_call: +defaults: + run: + shell: bash + jobs: - GolangCI: - name: golangci-lint + + sh-euox-pipefail-check: + name: "Shell pipefail check" runs-on: ubuntu-latest - timeout-minutes: 6 + steps: - uses: actions/checkout@v3 - - uses: technote-space/get-diff-action@v6.1.0 - with: - SUFFIX_FILTER: | - .go - .mod - .sum - - uses: golangci/golangci-lint-action@v3.2.0 + + - name: Run 'set -euox pipefail' check + run: bash ./.github/scripts/ensure_set_euox_pipefail.sh + + go-lint: + # We can't use VALIDATE_GO from super linter because of this issue: + # https://github.com/github/super-linter/issues/143 + name: "Golang" + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Run golangci-lint + uses: golangci/golangci-lint-action@v3 with: version: v1.28 args: --timeout 10m - github-token: ${{ secrets.GITHUB_TOKEN }} - if: "env.GIT_DIFF != ''" + + super-lint: + name: "Super Linter" + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 # Required to fetch version + + - name: Run Super Linter + uses: github/super-linter/slim@v4 + env: + IGNORE_GITIGNORED_FILES: true + DEFAULT_BRANCH: "chains/cheqd" + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + LOG_LEVEL: WARN + VALIDATE_ALL_CODEBASE: true + MULTI_STATUS: true + + VALIDATE_BASH: true + VALIDATE_DOCKERFILE_HADOLINT: true + DOCKERFILE_HADOLINT_FILE_NAME: '../linters/.hadolint.yml' + VALIDATE_GITHUB_ACTIONS: true + VALIDATE_OPENAPI: true + VALIDATE_PYTHON_PYLINT: true + VALIDATE_XML: true + VALIDATE_YAML: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e25e23143..6456cf3bf 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,34 +1,24 @@ -name: Tests -# Tests / Code Coverage workflow runs unit tests and uploads a code coverage report. -# This workflow is run on pushes to master & every Pull Requests where a .go, .mod, .sum have been changed. +name: "Test" on: - pull_request: - push: - branches: - - master + workflow_call: +defaults: + run: + shell: bash + jobs: - Cleanup-runs: - runs-on: ubuntu-latest - steps: - - uses: rokroskar/workflow-run-cleanup-action@master - env: - GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" - if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/master'" - Unit-tests: + unit-tests: + name: "Unit Tests" runs-on: ubuntu-latest - timeout-minutes: 10 + steps: - - name: Checkout - uses: actions/checkout@v3 + - uses: actions/checkout@v3 + - name: Setup Go uses: actions/setup-go@v3 with: go-version: 1.17 + - name: Test & Create coverage report run: make install test-unit stop-docker-test - - name: Upload cove coverage - uses: codecov/codecov-action@v3 - with: - file: ./coverage.txt diff --git a/.gitignore b/.gitignore index 8034ed4a2..18e55f7c8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +### APP-SPECIFIC EXCLUSIONS ### .idea/ build/ @@ -8,3 +9,446 @@ config.yaml # Coverage coverage.* + +### GENERAL EXCLUSIONS ### + +### GitBook ### +# Node rules: +## Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +## Dependency directory +## Commenting this out is preferred by some people, see +## https://docs.npmjs.com/misc/faq#should-i-check-my-node_modules-folder-into-git +node_modules + +# Book build output +_book + +# eBook build output +*.epub +*.mobi +*.pdf + + +### macOS ### +# General +.DS_Store +.AppleDouble +.LSOverride + +# Icon must end with two \r +Icon + +# Thumbnails +._* + +# Files that might appear in the root of a volume +.DocumentRevisions-V100 +.fseventsd +.Spotlight-V100 +.TemporaryItems +.Trashes +.VolumeIcon.icns +.com.apple.timemachine.donotpresent + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + +# VS Code +.devcontainer +.vscode +.vscode-upload.json + +# IDEs +.idea/** +.idea_modules/** +.prettierrc + + +### LANGUAGE/FRAMEWORK SPECIFIC EXCLUSIONS ### + + +### Golang ### +# If you prefer the allow list template instead of the deny list, see community template: +# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore +# +# Binaries for programs and plugins +*.exe +*.exe~ +*.dll +*.so +*.dylib + +# Test binary, built with `go test -c` +*.test + +# Output of the go coverage tool, specifically when used with LiteIDE +*.out + +# Dependency directories (remove the comment below to include it) +# vendor/ + +# Go workspace file +go.work + + +### Node/JavaScript ### +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +lerna-debug.log* +.pnpm-debug.log* + +# Diagnostic reports (https://nodejs.org/api/report.html) +report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json + +# Runtime data +pids +*.pid +*.seed +*.pid.lock + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Coverage directory used by tools like istanbul +coverage +*.lcov + +# nyc test coverage +.nyc_output + +# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# Bower dependency directory (https://bower.io/) +bower_components + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (https://nodejs.org/api/addons.html) +build/Release + +# Dependency directories +node_modules/ +jspm_packages/ + +# Snowpack dependency directory (https://snowpack.dev/) +web_modules/ + +# TypeScript cache +*.tsbuildinfo + +# Optional npm cache directory +.npm + +# Optional eslint cache +.eslintcache + +# Optional stylelint cache +.stylelintcache + +# Microbundle cache +.rpt2_cache/ +.rts2_cache_cjs/ +.rts2_cache_es/ +.rts2_cache_umd/ + +# Optional REPL history +.node_repl_history + +# Output of 'npm pack' +*.tgz + +# Yarn Integrity file +.yarn-integrity + +# dotenv environment variable files +.env +.env.development.local +.env.test.local +.env.production.local +.env.local + +# parcel-bundler cache (https://parceljs.org/) +.cache +.parcel-cache + +# Next.js build output +.next +out + +# Nuxt.js build / generate output +.nuxt +dist + +# Gatsby files +.cache/ +# Comment in the public line in if your project uses Gatsby and not Next.js +# https://nextjs.org/blog/next-9-1#public-directory-support +# public + +# vuepress build output +.vuepress/dist + +# vuepress v2.x temp and cache directory +.temp +.cache + +# Docusaurus cache and generated files +.docusaurus + +# Serverless directories +.serverless/ + +# FuseBox cache +.fusebox/ + +# DynamoDB Local files +.dynamodb/ + +# TernJS port file +.tern-port + +# Stores VSCode versions used for testing VSCode extensions +.vscode-test + +# yarn v2 +.yarn/cache +.yarn/unplugged +.yarn/build-state.yml +.yarn/install-state.gz +.pnp.* + + +### Sass ### +.sass-cache/ +*.css.map +*.sass.map +*.scss.map + + +### Rust ### +# Generated by Cargo +# will have compiled files and executables +debug/ +target/ + +# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries +# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html +Cargo.lock + +# These are backup files generated by rustfmt +**/*.rs.bk + +# MSVC Windows builds of rustc generate these, which store debugging information +*.pdb + + +### Terraform ### +# Local .terraform directories +**/.terraform/* + +# .tfstate files +*.tfstate +*.tfstate.* + +# Crash log files +crash.log +crash.*.log + +# Exclude all .tfvars files, which are likely to contain sensitive data, such as +# password, private keys, and other secrets. These should not be part of version +# control as they are data points which are potentially sensitive and subject +# to change depending on the environment. +*.tfvars +*.tfvars.json + +# Ignore override files as they are usually used to override resources locally and so +# are not checked in +override.tf +override.tf.json +*_override.tf +*_override.tf.json + +# Include override files you do wish to add to version control using negated pattern +# !example_override.tf + +# Include tfplan files to ignore the plan output of command: terraform plan -out=tfplan +# example: *tfplan* + +# Ignore CLI configuration files +.terraformrc +terraform.rc + + +### Python ### +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +.Python +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +share/python-wheels/ +*.egg-info/ +.installed.cfg +*.egg +MANIFEST + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.nox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*.cover +*.py,cover +.hypothesis/ +.pytest_cache/ +cover/ + +# Translations +*.mo +*.pot + +# Django stuff: +*.log +local_settings.py +db.sqlite3 +db.sqlite3-journal + +# Flask stuff: +instance/ +.webassets-cache + +# Scrapy stuff: +.scrapy + +# Sphinx documentation +docs/_build/ + +# PyBuilder +.pybuilder/ +target/ + +# Jupyter Notebook +.ipynb_checkpoints + +# IPython +profile_default/ +ipython_config.py + +# pyenv +# For a library or package, you might want to ignore these files since the code is +# intended to run in multiple environments; otherwise, check them in: +# .python-version + +# pipenv +# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. +# However, in case of collaboration, if having platform-specific dependencies or dependencies +# having no cross-platform support, pipenv may install dependencies that don't work, or not +# install all needed dependencies. +#Pipfile.lock + +# poetry +# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control. +# This is especially recommended for binary packages to ensure reproducibility, and is more +# commonly ignored for libraries. +# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control +#poetry.lock + +# pdm +# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control. +#pdm.lock +# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it +# in version control. +# https://pdm.fming.dev/#use-with-ide +.pdm.toml + +# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm +__pypackages__/ + +# Celery stuff +celerybeat-schedule +celerybeat.pid + +# SageMath parsed files +*.sage.py + +# Environments +.env +.venv +env/ +venv/ +ENV/ +env.bak/ +venv.bak/ + +# Spyder project settings +.spyderproject +.spyproject + +# Rope project settings +.ropeproject + +# mkdocs documentation +/site + +# mypy +.mypy_cache/ +.dmypy.json +dmypy.json + +# Pyre type checker +.pyre/ + +# pytype static type analyzer +.pytype/ + +# Cython debug symbols +cython_debug/ + +# PyCharm +# JetBrains specific template is maintained in a separate JetBrains.gitignore that can +# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore +# and can be added to the global gitignore or merged into this file. For a more nuclear +# option (not recommended) you can uncomment the following to ignore the entire idea folder. +#.idea/ diff --git a/.mergify.yml b/.mergify.yml deleted file mode 100644 index 8fdc95a79..000000000 --- a/.mergify.yml +++ /dev/null @@ -1,20 +0,0 @@ -queue_rules: - - name: default - conditions: - - or: - - base~=cosmos/ - - base~=chains/ - -pull_request_rules: - - name: automerge with label automerge and branch protection passing - conditions: - - "#approved-reviews-by>1" - - label=automerge - actions: - queue: - name: default - method: squash - commit_message_template: > - {{ title }} (#{{ number }}) - - {{ body }} \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index dce3b272d..100917d7d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,7 @@ ## Unreleased +### Dependencies +- ([\#440](https://github.com/forbole/bdjuno/pull/440)) Updated Juno to `v3.3.0` + ### Changes #### Mint module - ([\#432](https://github.com/forbole/bdjuno/pull/432)) Update inflation rate when mint param change proposal is passed diff --git a/go.mod b/go.mod index 4fd557fba..703b5ffc6 100644 --- a/go.mod +++ b/go.mod @@ -6,7 +6,7 @@ require ( github.com/cheqd/cheqd-node v0.6.0 github.com/cosmos/cosmos-sdk v0.45.5 github.com/cosmos/gaia/v7 v7.0.2 - github.com/forbole/juno/v3 v3.2.1 + github.com/forbole/juno/v3 v3.3.0 github.com/go-co-op/gocron v1.15.1 github.com/gogo/protobuf v1.3.3 github.com/jmoiron/sqlx v1.3.5