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

Tuan/fix ante #166

Closed
wants to merge 110 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
110 commits
Select commit Hold shift + click to select a range
8fbd4ed
bump go mod to sdk 47
phamminh0811 May 8, 2023
5783665
bump ante, app and cmd
phamminh0811 May 8, 2023
f5ebfba
Merge pull request #150 from notional-labs/ducnt/proto
anhductn2001 May 9, 2023
791a799
Merge pull request #153 from notional-labs/ducnt/proto
anhductn2001 May 9, 2023
d60469f
add cometbft thirdparty
phamminh0811 May 15, 2023
c8d4753
update version to v4
phamminh0811 May 25, 2023
67b11c1
fix all errors
phamminh0811 May 25, 2023
d329ea8
update proto to fix keeper test
phamminh0811 May 25, 2023
d0211bb
Merge branch 'main' into minh/sdk47
phamminh0811 May 29, 2023
6994aa9
Merge branch 'sdk47' into minh/sdk47
phamminh0811 May 29, 2023
9175311
fix chainId error
phamminh0811 May 29, 2023
fa3818f
fix store code and instantiate contract in relay test
phamminh0811 May 30, 2023
a02072e
initially fix fee abs interchain test
phamminh0811 May 30, 2023
4d78fcc
fix lint
phamminh0811 May 30, 2023
a0a0373
remove check generate code
phamminh0811 May 30, 2023
068407c
interchain test
GNaD13 Aug 2, 2023
3af0d86
scipts test
GNaD13 Aug 3, 2023
82bae8c
add chain ID to root
phamminh0811 Aug 3, 2023
13180f9
default baseappOption
phamminh0811 Aug 3, 2023
8c28b00
fix query error
phamminh0811 Aug 3, 2023
1cbf004
change gov proposal version to v1beta1
phamminh0811 Aug 3, 2023
d17351c
ictest setup
GNaD13 Aug 3, 2023
01a581b
Revert "fix query error"
phamminh0811 Aug 3, 2023
dae723c
merge
GNaD13 Aug 3, 2023
94af7da
Merge remote-tracking branch 'origin/minh/sdk47' into minh/sdk47
GNaD13 Aug 3, 2023
27140a9
done
GNaD13 Aug 3, 2023
422c883
nit
GNaD13 Aug 3, 2023
1ff2732
Merge pull request #149 from notional-labs/minh/sdk47
GNaD13 Aug 3, 2023
b438870
change to ibc-app PFM
GNaD13 Aug 3, 2023
7afad2b
Merge pull request #161 from notional-labs/dang/ibc-app
GNaD13 Aug 3, 2023
d645aa8
move from notional to osmosis
GNaD13 Aug 10, 2023
58aba6d
setup ict
GNaD13 Aug 10, 2023
33dfc39
Merge pull request #41 from osmosis-labs/dang/move-to-osmosis
faddat Aug 12, 2023
29eb4b2
Bump github.com/cometbft/cometbft from 0.37.0 to 0.37.2
dependabot[bot] Aug 12, 2023
5c94934
update readme
faddat Aug 12, 2023
66ec919
update readme
faddat Aug 12, 2023
a437abb
linter autofixes
faddat Aug 12, 2023
27c30e3
Merge pull request #43 from osmosis-labs/dependabot/go_modules/github…
faddat Aug 12, 2023
2b86ee5
update readme
faddat Aug 12, 2023
50b0534
update readme
faddat Aug 12, 2023
b013f95
revert changes to readme so they're in a separate pr
faddat Aug 12, 2023
1474178
use formatting from ibc-go
faddat Aug 12, 2023
8d30e98
add .golangci.yml
faddat Aug 12, 2023
ed57bd1
update import paths to v7
faddat Aug 12, 2023
e9c8580
update import paths
faddat Aug 12, 2023
d3e40c2
enhance markdown and fix lints
faddat Aug 12, 2023
1b9b0f2
bare returns
faddat Aug 12, 2023
cdaa3b7
fully lint fee abstraction
faddat Aug 12, 2023
a5ad66d
add markdownlint config
faddat Aug 12, 2023
5578742
tidy
faddat Aug 12, 2023
8e88a54
remove v2 readme
faddat Aug 12, 2023
3a56a87
update go.mod for tests
faddat Aug 12, 2023
49192f5
update go.mod in tests
faddat Aug 12, 2023
d4e2031
update fee abstraction version used in tests
faddat Aug 12, 2023
d614b45
Create CODEOWNERS
faddat Aug 12, 2023
f21ad84
Merge pull request #51 from osmosis-labs/faddat-codeowners
faddat Aug 12, 2023
95bd99a
Update README.md
faddat Aug 12, 2023
ab004f1
Merge branch 'main' into faddat/update-import-paths
catShaark Aug 13, 2023
dc99844
Merge branch 'main' into faddat/update-readme
GNaD13 Aug 13, 2023
612978b
Merge pull request #49 from osmosis-labs/faddat/update-readme
GNaD13 Aug 13, 2023
7a548cd
Merge branch 'main' into faddat/update-import-paths
faddat Aug 13, 2023
04319a5
Merge pull request #46 from osmosis-labs/faddat/update-import-paths
faddat Aug 13, 2023
7b12c2b
Merge remote-tracking branch 'origin/main' into update-main
faddat Aug 13, 2023
9703f70
Merge pull request #45 from osmosis-labs/update-main
faddat Aug 13, 2023
256e182
remove wasmd
catShaark Aug 13, 2023
9450a9b
Merge pull request #56 from osmosis-labs/remove-wasmd
GNaD13 Aug 13, 2023
9524524
install the cosmic condom (#55)
faddat Aug 14, 2023
3c77d74
ci: speed up interchaintest by skipping arm builds (#65)
faddat Aug 14, 2023
64cadee
Create mergify.yml (#63)
faddat Aug 14, 2023
c2aba57
Push protogen image (#68)
anhductn2001 Aug 14, 2023
f6a76b3
update protos (#66)
faddat Aug 15, 2023
4d9881e
Unfrozen host zone when receive valid ICQ response from Osmosis (#70)
vuong177 Aug 21, 2023
b693fc0
remove msg in proto file
vuong177 Aug 21, 2023
5bfb327
remove msg service
vuong177 Aug 21, 2023
6aa51dd
remove in tx.go
vuong177 Aug 22, 2023
5a29dc0
make lint (#69)
anhductn2001 Aug 25, 2023
6030fc9
Update with new Osmosis XCSv2 (#77)
GNaD13 Aug 25, 2023
4dc3a4a
Update Integration docs (#79)
GNaD13 Aug 29, 2023
bdec57b
Update README.md
vuong177 Sep 10, 2023
8275992
fix bug ack when adding new hostzone right after send ibc query (#87)
GNaD13 Sep 17, 2023
3ef7b78
Add check if msg is bypass (#76)
GNaD13 Sep 22, 2023
f171b21
check fee-collector-address (#104)
GNaD13 Nov 19, 2023
e8fe536
Update docker-login action CI
nghuyenthevinh2000 Jan 10, 2024
4d1abe7
Add test for Makefile and add fix lints. (#118)
tnv1 Jan 11, 2024
4e33a53
Minor code improvements (#119)
minhngoc274 Jan 12, 2024
8b0c62c
Add unit test for delete proposal. (#121)
tnv1 Jan 16, 2024
3a24c8e
Add error handling and some refactor. (#120)
tnv1 Jan 17, 2024
affd690
Add host zone proposal interchain test (#122)
minhngoc274 Jan 17, 2024
cb0ea81
Handle host chain is frozen. (#126)
tnv1 Jan 18, 2024
bb4b837
refactor: add frozen host zone check (#124)
minhngoc274 Jan 19, 2024
da63198
Optimize kvstore calls (#123)
minhngoc274 Jan 23, 2024
9bb6b71
Fix make file for proto (#134)
tnv1 Jan 23, 2024
7f8685b
Optimize fee calculation process. (#127)
tnv1 Jan 24, 2024
fb6075a
Refactor interchain test (#133)
minhngoc274 Jan 24, 2024
aaab69d
Handle error on interchaintest. (#135)
tnv1 Jan 24, 2024
61a8d05
Turn off go work when run go test (#137)
tnv1 Jan 24, 2024
bc5ac95
Fix some replace go. (#138)
tnv1 Jan 24, 2024
48c01fc
Using rand.New() instead of rand.Seed because it is deprecated. (#136)
tnv1 Jan 24, 2024
f4e167f
Add query osmosis arithmetic twap for interchaintest. (#139)
tnv1 Jan 24, 2024
49f968c
Remove unused code and some refactor. (#140)
tnv1 Jan 24, 2024
7832d3f
Update to go1.21 (#141)
tnv1 Jan 25, 2024
ef6fede
split package forward test (#142)
minhngoc274 Jan 29, 2024
a32704a
refactor: update dockerfile (#144)
minhngoc274 Jan 30, 2024
b06d7b4
Upgrade ibc packet forwarder. (#143)
tnv1 Jan 30, 2024
98a1a3d
Unnecessary host zone freezing (#125)
minhngoc274 Jan 31, 2024
7a240b8
Add benchmarking setup for testnet and remove unused ante package. (…
tnv1 Feb 27, 2024
ba36778
Avoid add duplicate host zone proposal and remove old data when set n…
tnv1 Mar 2, 2024
d326279
Update go dependency (#147)
tnv1 Mar 2, 2024
5a1c124
should not use native coin as ibc
tuantran1702 Mar 4, 2024
10c87ee
Merge branch 'main' into tuan/fix-ante
tuantran1702 Mar 4, 2024
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
44 changes: 44 additions & 0 deletions .github/mergify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
queue_rules:
- name: default
conditions:
- '#approved-reviews-by>=1'
- base=main
- label=automerge

pull_request_rules:
- name: automerge to main with label automerge and branch protection passing
conditions:
- '#approved-reviews-by>=1'
- base=main
- label=automerge
actions:
queue:
name: default
method: squash
commit_message_template: |
{{ title }} (#{{ number }})
{{ body }}
- name: backport patches to v4.0.x branch
conditions:
- base=main
- label=backport-to-v4.0.x
actions:
backport:
branches:
- release/v4.0.x
- name: backport patches to v6.0.x branch
conditions:
- base=main
- label=backport-to-v6.0.x
actions:
backport:
branches:
- release/v6.0.x
- name: backport patches to v7.0.x branch
conditions:
- base=main
- label=backport-to-v7.0.x
actions:
backport:
branches:
- release/v7.0.x
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ jobs:
- name: Setup go
uses: actions/setup-go@v3
with:
go-version: 1.19
go-version: 1.21
- run: go build ./...
25 changes: 0 additions & 25 deletions .github/workflows/check-generated.yml

This file was deleted.

14 changes: 7 additions & 7 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
name: "CodeQL"
name: 'CodeQL'

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

jobs:
analyze:
Expand All @@ -25,16 +25,16 @@ jobs:
uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.19
go-version: 1.21
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: "go"
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
uses: github/codeql-action/analyze@v2
90 changes: 64 additions & 26 deletions .github/workflows/interchaintest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,77 +10,115 @@ jobs:
build-and-push-image:
runs-on: ubuntu-latest
steps:
-
name: Check out the repo
- name: Check out the repo
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: Login to GitHub Container Registry
uses: docker/login-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Build and push
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
id: build_push_image
uses: docker/build-push-action@v3
with:
file: Dockerfile
context: .
push: true
platforms: linux/amd64,linux/arm64
platforms: linux/amd64
tags: |
ghcr.io/notional-labs/fee-abstraction-ictest:latest
osmolabs/fee-abstraction-ictest:latest
test-basic:
runs-on: ubuntu-latest
needs: build-and-push-image
steps:
- name: Set up Go 1.19
- name: Set up Go 1.21
uses: actions/setup-go@v3
with:
go-version: 1.19
go-version: 1.21

- name: checkout code
uses: actions/checkout@v3

- run: make ictest-basic
env:
BRANCH_CI: "latest"
BRANCH_CI: 'latest'

test-ibc:
runs-on: ubuntu-latest
needs: build-and-push-image
steps:
- name: Set up Go 1.19
- name: Set up Go 1.21
uses: actions/setup-go@v3
with:
go-version: 1.19
go-version: 1.21

- name: checkout code
uses: actions/checkout@v3

- run: make ictest-ibc
env:
BRANCH_CI: "latest"
BRANCH_CI: 'latest'

test-packet-forward:
runs-on: ubuntu-latest
needs: build-and-push-image
steps:
- name: Set up Go 1.19
- name: Set up Go 1.21
uses: actions/setup-go@v3
with:
go-version: 1.19
go-version: 1.21

- name: checkout code
uses: actions/checkout@v3

- run: make ictest-packet-forward
env:
BRANCH_CI: "latest"
BRANCH_CI: 'latest'

test-host-zone-proposal:
runs-on: ubuntu-latest
needs: build-and-push-image
steps:
- name: Set up Go 1.21
uses: actions/setup-go@v3
with:
go-version: 1.21

- name: checkout code
uses: actions/checkout@v3

- run: make ictest-host-zone-proposal
env:
BRANCH_CI: 'latest'

test-feeabs:
runs-on: ubuntu-latest
needs: build-and-push-image
steps:
- name: Set up Go 1.21
uses: actions/setup-go@v3
with:
go-version: 1.21

- name: checkout code
uses: actions/checkout@v3

- run: make ictest-feeabs
env:
BRANCH_CI: 'latest'

test-query-osmosis-twap:
runs-on: ubuntu-latest
needs: build-and-push-image
steps:
- name: Set up Go 1.21
uses: actions/setup-go@v3
with:
go-version: 1.21

- name: checkout code
uses: actions/checkout@v3

- run: make ictest-query-osmosis-twap
env:
BRANCH_CI: 'latest'
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.19
go-version: 1.21
- uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: latest
args: --timeout 15m
args: --timeout 15m
43 changes: 19 additions & 24 deletions .github/workflows/push_docker_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
#
# On every new `vX.Y.Z` tag the following images are pushed:
#
# notional-labs/fee-abstraction:X.Y.Z # is pushed
# notional-labs/fee-abstraction:X.Y # is updated to X.Y.Z
# notional-labs/fee-abstraction:X # is updated to X.Y.Z
# notional-labs/fee-abstraction:latest # is updated to X.Y.Z
#
# osmosis-labs/fee-abstraction:X.Y.Z # is pushed
# osmosis-labs/fee-abstraction:X.Y # is updated to X.Y.Z
# osmosis-labs/fee-abstraction:X # is updated to X.Y.Z
# osmosis-labs/fee-abstraction:latest # is updated to X.Y.Z
#
# All the images above have support for linux/amd64 and linux/arm64.
#
# Due to QEMU virtualization used to build multi-platform docker images
Expand All @@ -19,28 +19,24 @@ on:
types: [published, created, edited]
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+' # ignore rc
- 'v[0-9]+.[0-9]+.[0-9]+' # ignore rc
jobs:
feeapp-images:
runs-on: ubuntu-latest
steps:
-
name: Check out the repo
- name: Check out the repo
uses: actions/checkout@v3
-
name: Set up QEMU
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v2

- name: Login to DockerHub
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Parse tag
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Parse tag
id: tag
run: |
VERSION=$(echo ${{ github.ref_name }} | sed "s/v//")
Expand All @@ -51,8 +47,7 @@ jobs:
echo "MAJOR_VERSION=$MAJOR_VERSION" >> $GITHUB_ENV
echo "MINOR_VERSION=$MINOR_VERSION" >> $GITHUB_ENV
echo "PATCH_VERSION=$PATCH_VERSION" >> $GITHUB_ENV
-
name: Build and push
- name: Build and push
id: build_push_image
uses: docker/build-push-action@v3
with:
Expand All @@ -61,6 +56,6 @@ jobs:
push: true
platforms: linux/amd64,linux/arm64
tags: |
ghcr.io/notional-labs/fee-abstraction:${{ env.MAJOR_VERSION }}
ghcr.io/notional-labs/fee-abstraction:${{ env.MAJOR_VERSION }}.${{ env.MINOR_VERSION }}
ghcr.io/notional-labs/fee-abstraction:${{ env.MAJOR_VERSION }}.${{ env.MINOR_VERSION }}.${{ env.PATCH_VERSION }}
osmolabs/fee-abstraction:${{ env.MAJOR_VERSION }}
osmolabs/fee-abstraction:${{ env.MAJOR_VERSION }}.${{ env.MINOR_VERSION }}
osmolabs/fee-abstraction:${{ env.MAJOR_VERSION }}.${{ env.MINOR_VERSION }}.${{ env.PATCH_VERSION }}
45 changes: 45 additions & 0 deletions .github/workflows/push_protobuf_image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# This workflow pushes new protobuf docker images on every change of Dockerfile.
#
# Images are pushed:
#
# osmolabs/fa-proto-gen:commit-hash # is pushed
# osmolabs/fa-proto-gen:latest # is updated
#
# All the images above have support for linux/amd64 and linux/arm64.

name: Push Protogen Images

on:
push:
paths:
- "proto/Dockerfile"
jobs:
feeapp-images:
runs-on: ubuntu-latest
steps:
-
name: Check out the repo
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: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
id: build_push_image
uses: docker/build-push-action@v3
with:
file: proto/Dockerfile
context: .
push: true
platforms: linux/amd64,linux/arm64
tags: |
osmolabs/fa-proto-gen:${{ github.sha }}
Loading
Loading