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

47 with token factory #1209

Closed
wants to merge 74 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
76dd72d
Start cosmos-sdk v0.47 integration (#1136)
alpe Jan 11, 2023
1e6a886
Bump bufbuild/buf-setup-action from 1.11.0 to 1.12.0
dependabot[bot] Jan 13, 2023
e9a80cf
Merge pull request #1152 from CosmWasm/mergify/bp/develop_sdk47/pr-1151
alpe Jan 13, 2023
ba499ae
Remove intertx for vanilla ICA
alpe Jan 17, 2023
50bda42
fix msg format in EVENTS.md
dev8723 Jan 22, 2023
42dc194
Merge pull request #1159 from CosmWasm/ica_noauth
alpe Jan 23, 2023
22880a8
Merge pull request #1168 from CosmWasm/mergify/bp/develop_sdk47/pr-1167
alpe Jan 23, 2023
cc28399
Better to sdk coin convertion (#1164)
alpe Jan 24, 2023
650af69
Merge pull request #1170 from CosmWasm/mergify/bp/develop_sdk47/pr-1164
alpe Jan 24, 2023
6b9d1c8
Disallow only address permission (#1163)
alpe Jan 25, 2023
a851656
Integrate wasmvm v1.2.0 (backport #1161) (#1175)
mergify[bot] Jan 26, 2023
fe57635
Merge pull request #1176 from CosmWasm/mergify/bp/develop_sdk47/pr-1163
alpe Jan 26, 2023
dff6528
Bump bufbuild/buf-setup-action from 1.12.0 to 1.13.0
dependabot[bot] Jan 27, 2023
db503d6
Emit events for setContractAdmin + setAccessConfig (#1179)
alpe Jan 27, 2023
83142ba
Merge pull request #1186 from CosmWasm/mergify/bp/develop_sdk47/pr-1181
alpe Jan 27, 2023
aa8db78
Dependency upgrades (#1172)
alpe Jan 27, 2023
9df3f60
Merge pull request #1187 from CosmWasm/mergify/bp/develop_sdk47/pr-1179
alpe Jan 27, 2023
6a0c2a3
Update to ibc-go v7 + protoVer=0.11.5
gjermundgaraba Jan 29, 2023
6a49301
Merge pull request #1190 from gjermundgaraba/develop_sdk47
alpe Jan 30, 2023
287aec8
Bump bufbuild/buf-setup-action from 1.13.0 to 1.13.1
dependabot[bot] Jan 30, 2023
a6fcba2
Merge pull request #1193 from CosmWasm/mergify/bp/develop_sdk47/pr-1191
alpe Jan 30, 2023
388b175
Fix typos (backport #1185) (#1194)
mergify[bot] Jan 30, 2023
87ece70
rename lastIDKey
expertdicer Feb 1, 2023
2ccffed
list-contract-by-code bugfix
nik-suri Feb 13, 2023
92d01c3
go mod download missing go.sum entries
faddat Feb 14, 2023
dd101bd
ibc-go v7.0.0
faddat Feb 14, 2023
a951fc6
github actions
faddat Feb 14, 2023
fefa067
golangci config
faddat Feb 14, 2023
493792e
all tests pass
faddat Feb 14, 2023
111c98f
47 fully linted
faddat Feb 14, 2023
85c3b43
use go 20
faddat Feb 14, 2023
cbfbb95
use single tm-db version to prevent conflicts
faddat Feb 14, 2023
0bb74b7
fix bad lint
ThanhNhann Feb 13, 2023
b684a38
check fuzz
ThanhNhann Feb 13, 2023
41eddc1
use thanh's fuzz test
faddat Feb 14, 2023
2f01f8d
make proto-gen
faddat Feb 14, 2023
5beb360
tidy
faddat Feb 14, 2023
6ab6475
tm-db notes
faddat Feb 14, 2023
8418635
bump circleci in go
faddat Feb 14, 2023
107299b
add the tf module
faddat Feb 15, 2023
9867792
add token factory protos
faddat Feb 15, 2023
a4a160d
make proto-gen
faddat Feb 15, 2023
5b8d05d
bumps
faddat Feb 16, 2023
5f09480
add token factory test suite
faddat Feb 22, 2023
a90d6b5
add token factory test suite
faddat Feb 22, 2023
572a13e
golangci
faddat Feb 22, 2023
f1fccae
update app
ThanhNhann Feb 22, 2023
7570f28
fix last test
ThanhNhann Feb 22, 2023
fd03235
fix: stargate querier does not reset the state
dadamu Feb 23, 2023
d9367b5
Merge pull request #93 from notional-labs/nhan/fix_bump_v47
faddat Feb 24, 2023
6d8018a
test: add unit test
dadamu Feb 24, 2023
44dedbb
Merge remote-tracking branch 'origin/main' into 47-with-token-factory
faddat Feb 24, 2023
f8b5569
use cometbft and up to date wasmvm
faddat Feb 24, 2023
73ccdea
use cometbft
faddat Feb 24, 2023
6ee9901
use cometbft
faddat Feb 24, 2023
ce8a95e
use latest comet
faddat Feb 24, 2023
db5a52e
need to upgrade ibc-go to use comet
faddat Feb 24, 2023
af026ff
use carlos branch with cometbft
faddat Feb 24, 2023
d96c66d
use interchain accounts with comet
faddat Feb 24, 2023
6c882b9
icad with comet
faddat Feb 24, 2023
7294359
use interchain accounts with comet. passes all tests
faddat Feb 24, 2023
56f91e6
tidy
faddat Feb 24, 2023
120b7b1
indent-error-flow
faddat Feb 25, 2023
1969af4
Merge remote-tracking branch 'dadamu/paul/fix-stargate-querier' into …
faddat Feb 25, 2023
d293877
Merge remote-tracking branch 'notional/nguyen/rename-lastIdKey' into …
faddat Feb 25, 2023
1bab40b
Merge remote-tracking branch 'wormhole/list-contract-code-bugfix' int…
faddat Feb 25, 2023
e734108
Update codeql-analizer.yml
faddat Feb 25, 2023
f07f94e
normalize go
faddat Feb 25, 2023
afae3e8
Merge branch '47-with-token-factory' of https://github.com/notional-l…
faddat Feb 25, 2023
04bf69d
comments
faddat Feb 25, 2023
b022583
ledger
faddat Feb 25, 2023
011e8b7
Revert "ledger"
faddat Feb 25, 2023
b4ffc7c
cometbft
faddat Feb 27, 2023
e28ef5b
Merge branch '47-with-token-factory' of https://github.com/notional-l…
faddat Feb 27, 2023
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
6 changes: 3 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: 2.1
executors:
golang:
docker:
- image: cimg/go:1.19
- image: cimg/go:1.20.0

commands:
make:
Expand Down Expand Up @@ -61,7 +61,7 @@ jobs:

lint:
docker:
- image: golangci/golangci-lint:v1.50.1
- image: golangci/golangci-lint:v1.51.1
steps:
- checkout
- run:
Expand Down Expand Up @@ -124,7 +124,7 @@ jobs:
- run:
name: Run simulations
command: |
make test-sim-multi-seed-short
make test-sim-multi-seed-short test-sim-import-export test-sim-deterministic
- store_artifacts:
path: /tmp

Expand Down
4 changes: 2 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ updates:
- 0.14.0-beta4
- 0.14.0-beta5
- 0.14.0-rc1
- dependency-name: github.com/tendermint/tendermint
- dependency-name: github.com/cometbft/cometbft
versions:
- 0.34.10
- 0.34.4
Expand All @@ -40,6 +40,6 @@ updates:
- dependency-name: github.com/spf13/cobra
versions:
- 1.1.2
- dependency-name: github.com/tendermint/tm-db
- dependency-name: github.com/cometbft/cometbft-db
versions:
- 0.6.4
37 changes: 37 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
on: [push, pull_request]
name: Build

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
name: build
steps:
- uses: actions/checkout@v3
- name: Setup go
uses: actions/setup-go@v3
with:
go-version: "1.20"
- run: go build ./...

tidy:
runs-on: ubuntu-latest
name: tidy
steps:
- uses: actions/checkout@v3
- name: Setup go
uses: actions/setup-go@v3
with:
go-version: "1.20"
- run: |
go mod tidy
CHANGES_IN_REPO=$(git status --porcelain)
if [[ -n "$CHANGES_IN_REPO" ]]; then
echo "Repository is dirty. Showing 'git status' and 'git --no-pager diff' for debugging now:"
git status && git --no-pager diff
exit 1
fi
61 changes: 61 additions & 0 deletions .github/workflows/codacy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

# This workflow checks out code, performs a Codacy security scan
# and integrates the results with the
# GitHub Advanced Security code scanning feature. For more information on
# the Codacy security scan action usage and parameters, see
# https://github.com/codacy/codacy-analysis-cli-action.
# For more information on Codacy Analysis CLI in general, see
# https://github.com/codacy/codacy-analysis-cli.

name: Codacy Security Scan

on:
push:
branches: [ "main", "release/v*" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "main", "release/v*" ]
schedule:
- cron: '24 14 * * 5'

permissions:
contents: read

jobs:
codacy-security-scan:
permissions:
contents: read # for actions/checkout to fetch code
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
name: Codacy Security Scan
runs-on: ubuntu-latest
steps:
# Checkout the repository to the GitHub Actions runner
- name: Checkout code
uses: actions/checkout@v3

# Execute Codacy Analysis CLI and generate a SARIF output with the security issues identified during the analysis
- name: Run Codacy Analysis CLI
uses: codacy/codacy-analysis-cli-action@d43127fe38d20c527dc1951ae5aea23148bab738
with:
# Check https://github.com/codacy/codacy-analysis-cli#project-token to get your project token from your Codacy repository
# You can also omit the token and run the tools that support default configurations
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
verbose: true
output: results.sarif
format: sarif
# Adjust severity of non-security issues
gh-code-scanning-compat: true
# Force 0 exit code to allow SARIF file generation
# This will handover control about PR rejection to the GitHub side
max-allowed-issues: 2147483647

# Upload the SARIF file generated in the previous step
- name: Upload SARIF results file
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: results.sarif
40 changes: 40 additions & 0 deletions .github/workflows/codeql-cosmos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: "CodeQL for cosmos"

on:
pull_request:
paths:
- "**.go"
push:
branches:
- main
- release/v*
paths:
- "**.go"

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

steps:
- name: Checkout repository
uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: "1.20"
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: "go"
queries: crypto-com/cosmos-sdk-codeql@main,security-and-quality

- name: Build
run: make build

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
40 changes: 40 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: "CodeQL"

on:
pull_request:
paths:
- "**.go"
push:
branches:
- main
- release/v*
paths:
- "**.go"

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

steps:
- name: Checkout repository
uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: "1.20"
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: "go"
queries: crypto-com/cosmos-sdk-codeql@main,security-and-quality

- name: Build
run: make build

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
20 changes: 20 additions & 0 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# 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@v3
- name: 'Dependency Review'
uses: actions/dependency-review-action@v3
23 changes: 23 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: Build Docker Image on PR

on:
pull_request:

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build without push
uses: docker/build-push-action@v4
with:
context: .
platforms: linux/amd64
push: false
build-args: arch=x86_64
34 changes: 34 additions & 0 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
name: golangci-lint
on:
push:
tags:
- v*
branches:
- release/v*
- main
pull_request:
permissions:
contents: read
# Optional: allow read access to pull request. Use with `only-new-issues` option.
# pull-requests: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
with:
go-version: "1.20"
- uses: actions/checkout@v3

- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: latest
args: --timeout 10m
10 changes: 5 additions & 5 deletions .github/workflows/proto-buf-publisher.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
branches:
- main
paths:
- 'proto/**'
- "proto/**"

# Sequence of patterns matched against refs/tags
tags:
Expand All @@ -17,12 +17,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.3.0
- uses: bufbuild/buf-setup-action@v1.13.1
- uses: bufbuild/buf-setup-action@v1.14.0

# lint checks
- uses: bufbuild/buf-lint-action@v1
with:
input: 'proto'
input: "proto"

# TODO: Add this when project is more stable.
# backward compatibility breaking checks
Expand All @@ -34,5 +34,5 @@ jobs:
# publish proto files
- uses: bufbuild/buf-push-action@v1
with:
input: 'proto'
buf_token: ${{ secrets.BUF_TOKEN }}
input: "proto"
buf_token: ${{ secrets.BUF_TOKEN }}
21 changes: 21 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
on: [push, pull_request]
name: Test

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
runs-on: ubuntu-latest
name: test
steps:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: "1.20"
- name: Checkout code
uses: actions/checkout@v3
- name: Test
run: go test ./...
Loading