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 #1214

Closed
wants to merge 123 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
123 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
llllllluc 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
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
d9367b5
Merge pull request #93 from notional-labs/nhan/fix_bump_v47
faddat 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
524f773
Bump bufbuild/buf-setup-action from 1.13.1 to 1.14.0 (#1200)
dependabot[bot] Mar 1, 2023
fc4bbe1
Merge pull request #1219 from CosmWasm/mergify/bp/develop_sdk47/pr-1200
alpe Mar 1, 2023
466f206
list-contract-by-code bugfix
nik-suri Feb 13, 2023
3eca999
fix: stargate querier does not reset the state
dadamu Feb 23, 2023
92fde7a
test: add unit test
dadamu Feb 24, 2023
498b98e
Merge pull request #1223 from CosmWasm/mergify/bp/develop_sdk47/pr-1201
alpe Mar 2, 2023
05be122
Merge pull request #1224 from CosmWasm/mergify/bp/develop_sdk47/pr-1208
alpe Mar 2, 2023
b9d2771
Add Windows client support (#1197)
pinosu Mar 3, 2023
e3f36b2
Merge pull request #1227 from CosmWasm/mergify/bp/develop_sdk47/pr-1197
alpe Mar 3, 2023
00edea6
Bump bufbuild/buf-setup-action from 1.14.0 to 1.15.0
dependabot[bot] Mar 2, 2023
ddedb03
Merge pull request #1228 from CosmWasm/mergify/bp/develop_sdk47/pr-1222
alpe Mar 3, 2023
50800d3
Merge remote-tracking branch 'upstream/develop_sdk47' into 47-with-to…
faddat Mar 4, 2023
918d952
Rename windows client binary
alpe Mar 3, 2023
221cf02
Merge pull request #1235 from CosmWasm/mergify/bp/develop_sdk47/pr-1231
alpe Mar 6, 2023
f4f2fe8
Return IBC packet sequence number (backport #1225) (#1233)
mergify[bot] Mar 6, 2023
29225df
Test rust panic for regression
alpe Mar 6, 2023
e962674
Fix client checksum verification (#1234)
alpe Mar 6, 2023
0b8af25
Merge pull request #1238 from CosmWasm/mergify/bp/develop_sdk47/pr-1234
alpe Mar 6, 2023
7969723
Fix merge conflict
alpe Mar 6, 2023
ccf3a88
Fix linters
alpe Mar 6, 2023
30884e7
Merge pull request #1237 from CosmWasm/mergify/bp/develop_sdk47/pr-1236
alpe Mar 6, 2023
b1a6f11
Configure sonarcloud analysis
alpe Nov 22, 2022
651ca9c
Merge pull request #1241 from CosmWasm/mergify/bp/develop_sdk47/pr-1105
alpe Mar 6, 2023
52d6b1f
Merge pull request #1240 from CosmWasm/fix_linters
alpe Mar 7, 2023
a435474
Bump bufbuild/buf-setup-action from 1.15.0 to 1.15.1
dependabot[bot] Mar 9, 2023
c7fb329
Merge pull request #1252 from CosmWasm/mergify/bp/develop_sdk47/pr-1251
alpe Mar 9, 2023
c160867
Make `CaptureIbcEvents` in ibctesting public.
0xekez Mar 9, 2023
c48879b
Merge pull request #1253 from CosmWasm/mergify/bp/develop_sdk47/pr-1248
alpe Mar 9, 2023
4289001
Upgrade to wasmvm 1.2.1 (backport #1245) (#1254)
mergify[bot] Mar 10, 2023
b3d6684
Merge remote-tracking branch 'upstream/develop_sdk47' into 47-with-to…
faddat Mar 10, 2023
998c455
tidy and protobuf
faddat Mar 10, 2023
fe6ac0b
remove unused variable
faddat Mar 10, 2023
12dabd6
WIP All cometbft (#1244)
alpe Mar 13, 2023
bae90d3
Add changelog for v0.31.0 (#1188)
alpe Mar 13, 2023
539c783
Merge pull request #1257 from CosmWasm/mergify/bp/develop_sdk47/pr-1188
alpe Mar 13, 2023
280dc4e
Merge branch 'main' into develop_sdk47_to_main
alpe Mar 14, 2023
9ba407c
Remove new message type event
alpe Mar 14, 2023
7d6a4c1
Merge pull request #1259 from CosmWasm/develop_sdk47_to_main
alpe Mar 15, 2023
d648261
Support msg update params gov proposal (#1247)
pinosu Mar 15, 2023
2eaa893
Fix test data generator (#1263)
alpe Mar 15, 2023
bb13192
linting 47 pr (#1261)
faddat Mar 15, 2023
299f792
Regenerate from proto; remove dead code; polish code
alpe Mar 15, 2023
daca2c0
merge develop_sdk47
faddat Mar 15, 2023
7b53d93
cleanup merge of develop_sdk47
faddat Mar 15, 2023
0f41a12
Merge remote-tracking branch 'upstream/chore_dev' into 47-with-token-…
faddat Mar 15, 2023
c245f7d
Merge pull request #1265 from CosmWasm/chore_dev
alpe Mar 16, 2023
6ad6739
Set SDK version to v0.47x.0 (#1262)
alpe Mar 16, 2023
3b0dd13
Merge remote-tracking branch 'upstream/develop_sdk47' into HEAD
faddat Mar 17, 2023
0cf3a43
tidy
faddat Mar 19, 2023
716ce97
Bump ibc-go to v7.0.0
gjermundgaraba Mar 19, 2023
3fa3e1b
update token factory per: https://github.com/osmosis-labs/osmosis/pul…
faddat Mar 19, 2023
12e2242
fix import paths
faddat Mar 20, 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
8 changes: 4 additions & 4 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 @@ -22,7 +22,7 @@ jobs:
# 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