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

feat: merge from release/v1.8.0-lsm #416

Merged
merged 71 commits into from
May 14, 2024
Merged
Show file tree
Hide file tree
Changes from 68 commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
10fcd3a
adapt cosmos-sdk v0.47.9-ics-lsm
Mar 4, 2024
05f8f91
remove legacy sdkerror
Mar 4, 2024
718d99d
Merge pull request #385 from irisnet/bump-cosmos-sdk
zhangyelong Mar 4, 2024
273d21d
define erc20 related proto files
Apr 12, 2024
0f6d3d2
apply comments from github
dreamer-zq Apr 12, 2024
20d382b
regenerate protobuf file
dreamer-zq Apr 12, 2024
c895222
update erc20 contract
dreamer-zq Apr 12, 2024
d68dc71
update code comments
dreamer-zq Apr 13, 2024
7440c31
Merge pull request #387 from irisnet/feature/define-erc20
scott-irisnet Apr 13, 2024
07e25eb
implement DeployERC20 by gov proposal
dreamer-zq Apr 14, 2024
5833912
fix test error
dreamer-zq Apr 14, 2024
359c74c
refactor code
dreamer-zq Apr 14, 2024
82c1862
add Authority check
dreamer-zq Apr 15, 2024
f11ef39
add exist check for symbol
dreamer-zq Apr 15, 2024
7eae3bb
Merge pull request #393 from irisnet/feature/support-deploy-erc20
mitch1024 Apr 15, 2024
f3760bf
implement SwapFromERC20
dreamer-zq Apr 15, 2024
14826e0
refactor code
dreamer-zq Apr 15, 2024
ff37553
apply comments from github
dreamer-zq Apr 15, 2024
e1f4d7e
Merge pull request #394 from irisnet/feature/support-swap-from-erc20
harvey-smith Apr 15, 2024
7554d5f
implement SwapToERC20
dreamer-zq Apr 15, 2024
c985076
SwapFromERC20 add check
dreamer-zq Apr 16, 2024
a04c753
Revert "SwapFromERC20 add check"
dreamer-zq Apr 16, 2024
a1a54d3
receiver must not be empty
dreamer-zq Apr 16, 2024
1ec49e0
add check for eth address
dreamer-zq Apr 16, 2024
f728b7f
Merge pull request #395 from irisnet/feature/support-swap-to-erc20
mitch1024 Apr 16, 2024
997a167
implement swap native token from erc20 contract
dreamer-zq Apr 16, 2024
b96bb36
update erc20 contract
dreamer-zq Apr 16, 2024
4018d9c
update erc20 contract
dreamer-zq Apr 16, 2024
40a71dc
Merge pull request #400 from irisnet/feature/support-swap-from-erc20-…
mitch1024 Apr 17, 2024
1b6a273
add test & fix error
dreamer-zq Apr 17, 2024
35dc751
Merge pull request #401 from irisnet/feature/add-test-token
mitch1024 Apr 17, 2024
e73a02b
standardized parameter naming
dreamer-zq Apr 18, 2024
d3da616
Add cli for swap from/to ERC20 (#402)
mitch1024 Apr 18, 2024
9cacc3f
Merge pull request #403 from irisnet/refactor/rename-params
mitch1024 Apr 18, 2024
44011b7
feat: implement token Balances api (#404)
dreamer-zq Apr 18, 2024
243e67b
the cosmos-sdk version has been rolled back to v0.47.9
dreamer-zq Apr 18, 2024
25b4930
format code
dreamer-zq Apr 18, 2024
5fb0418
remove the display implementation of GovHook
dreamer-zq Apr 18, 2024
af0ac66
Merge pull request #405 from irisnet/refactor/roll-back-cosmos-sdk
mitch1024 Apr 18, 2024
94a7b83
fix: fix some bugs about erc20 in token module (#407)
dreamer-zq Apr 19, 2024
1eefdb1
update changelog (#408)
dreamer-zq Apr 19, 2024
ba708ee
add a switch for enabling erc20 swap function
dreamer-zq Apr 20, 2024
807a476
add changelog
dreamer-zq Apr 20, 2024
5107b3d
Merge pull request #409 from irisnet/feature/add-switch-erc20
mitch1024 Apr 20, 2024
e71185e
implement upgradeable contract
dreamer-zq Apr 22, 2024
34e9f74
fix script
dreamer-zq Apr 22, 2024
5c96b18
add changelog
dreamer-zq Apr 22, 2024
c0be2da
add package.json
dreamer-zq Apr 22, 2024
20ec094
update .gitignore
dreamer-zq Apr 22, 2024
8301452
Merge pull request #410 from irisnet/feature/implement-upgradeable-co…
mitch1024 Apr 22, 2024
ef65c2e
fix test error
dreamer-zq Apr 22, 2024
4a5c4e0
Merge branch 'release/v1.8.0-lsm' of https://github.com/irisnet/irism…
dreamer-zq Apr 22, 2024
226b711
add beacon for gov params
dreamer-zq Apr 22, 2024
8fb2026
deploy TokenProxy contract
dreamer-zq Apr 22, 2024
2dfd446
fix test error
dreamer-zq Apr 22, 2024
d5cc5fe
implement UpgradeERC20
dreamer-zq Apr 22, 2024
50833ca
fix test
dreamer-zq Apr 22, 2024
4de9e6f
add Changelog
dreamer-zq Apr 22, 2024
aafd2bd
Merge pull request #411 from irisnet/feature/implement-erc20-upgrade
harvey-smith Apr 22, 2024
1093c47
optimize contract code
dreamer-zq Apr 23, 2024
4861e98
update changelog
dreamer-zq Apr 23, 2024
0b60ff3
Merge pull request #412 from irisnet/optimize-contract-code
harvey-smith Apr 23, 2024
95a033f
support ibc token
dreamer-zq Apr 29, 2024
f8fa7f5
Merge pull request #413 from irisnet/fix/fix-token
harvey-smith Apr 30, 2024
1d59328
support to query ibc token
dreamer-zq May 10, 2024
117f7c5
Merge pull request #414 from irisnet/fix/query-ibc-token
mitch1024 May 10, 2024
634e445
Adjust the position of the query method in proto to solve the api cov…
dreamer-zq May 11, 2024
ae196cb
Merge pull request #415 from irisnet/fix/query-tokens
mitch1024 May 11, 2024
10620c9
optimize command line
dreamer-zq May 14, 2024
07cea5d
update changlelog
dreamer-zq May 14, 2024
dd2c7e4
Merge pull request #417 from irisnet/fix/fix-token-cli
mitch1024 May 14, 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
7 changes: 5 additions & 2 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ jobs:
automerge:
runs-on: ubuntu-latest
steps:
- name: automerge
uses: "pascalgn/[email protected]"
- id: automerge
name: automerge
uses: "pascalgn/[email protected]"
permissions:
contents: write
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ build/
.out
docs/.vuepress/dist/
node_modules/
package.json
yarn.lock
dependency-graph.png
mytestnet
buf-stamp
artifacts
.states
26 changes: 26 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,32 @@ Ref: https://keepachangelog.com/en/1.0.0/

# Changelog

## [v1.9.0]

### Improvements

* [\#387](https://github.com/irisnet/irismod/pull/387) Preparatory work for realizing erc20.
* [\#393](https://github.com/irisnet/irismod/pull/393) Implement DeployERC20 by gov proposal .
* [\#394](https://github.com/irisnet/irismod/pull/394) Support swap native token from erc20 token.
* [\#395](https://github.com/irisnet/irismod/pull/395) Implement SwapToERC20.
* [\#400](https://github.com/irisnet/irismod/pull/400) Implement swap native token from erc20 contract.
* [\#402](https://github.com/irisnet/irismod/pull/402) Add cli for swap from/to ERC20.
* [\#404](https://github.com/irisnet/irismod/pull/404) Implement token Balances api.
* [\#405](https://github.com/irisnet/irismod/pull/405) Rolled back the cosmos-sdk version to v0.47.9.
* [\#409](https://github.com/irisnet/irismod/pull/409) Add a switch for enabling erc20 swap function.
* [\#410](https://github.com/irisnet/irismod/pull/410) Implement upgradeable contract.
* [\#411](https://github.com/irisnet/irismod/pull/411) Implement erc20 upgrade.
* [\#412](https://github.com/irisnet/irismod/pull/412) Optimize contract code

### Bug Fixes

* [\#401](https://github.com/irisnet/irismod/pull/401) Add token test & fix error.
* [\#407](https://github.com/irisnet/irismod/pull/407) Fix some bugs about erc20 in token module.

### API Breaking Changes

* [\#403](https://github.com/irisnet/irismod/pull/403) Standardized parameter naming

## [v1.8.0]

### Improvements
Expand Down
32 changes: 30 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ distclean: clean
### Protobuf ###
###############################################################################

protoVer=0.11.2
protoVer=0.13.0
protoImageName=ghcr.io/cosmos/proto-builder:$(protoVer)
protoImage=$(DOCKER) run --rm -v $(CURDIR):/workspace --workdir /workspace $(protoImageName)

Expand Down Expand Up @@ -116,7 +116,35 @@ lint: golangci-lint
format:
find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -path "./lite/*/statik.go" -not -path "*.pb.go" | xargs gofmt -w -s
find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -path "./lite/*/statik.go" -not -path "*.pb.go" | xargs misspell -w
find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -path "./lite/*/statik.go" -not -path "*.pb.go" | xargs goimports -w -local github.com/irisnet/irismod
find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -path "./lite/*/statik.go" -not -path "*.pb.go" -not -path "*.pulsar.go" | xargs goimports -w -local github.com/irisnet/irismod

benchmark:
@go test -mod=readonly -bench=. ./...

###############################################################################
### Compile Solidity Contracts ###
###############################################################################

CONTRACTS_DIR := contracts
COMPILED_DIR := $(CONTRACTS_DIR)/compiled_contracts

# Compile and format solidity contracts for the erc20 module. Also install
# openzeppeling as the contracts are build on top of openzeppelin templates.
contracts-compile: contracts-clean dep-install create-contracts-abi

# Install openzeppelin solidity contracts
dep-install:
@echo "Importing openzeppelin contracts..."
@npm install

# Clean tmp files
contracts-clean:
@rm -rf node_modules

# Compile, filter out and format contracts into the following format.
create-contracts-abi:
solc --combined-json abi,bin --optimize --optimize-runs 200 --evm-version paris --include-path node_modules --base-path $(CONTRACTS_DIR)/ $(CONTRACTS_DIR)/Token.sol | jq '.contracts["Token.sol:Token"]' > $(COMPILED_DIR)/Token.json \
&& solc --combined-json abi,bin --optimize --optimize-runs 200 --evm-version paris --include-path node_modules --base-path $(CONTRACTS_DIR)/ $(CONTRACTS_DIR)/TokenProxy.sol | jq '.contracts["TokenProxy.sol:TokenProxy"]' > $(COMPILED_DIR)/TokenProxy.json \
&& solc --combined-json abi,bin --optimize --optimize-runs 200 --evm-version paris --include-path node_modules --base-path $(CONTRACTS_DIR)/ $(CONTRACTS_DIR)/UpgradeableBeacon.sol | jq '.contracts["UpgradeableBeacon.sol:UpgradeableBeacon"]' > $(COMPILED_DIR)/UpgradeableBeacon.json \


26 changes: 13 additions & 13 deletions api/irismod/coinswap/coinswap.pulsar.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 13 additions & 13 deletions api/irismod/coinswap/tx.pulsar.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 11 additions & 11 deletions api/irismod/farm/farm.pulsar.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 10 additions & 10 deletions api/irismod/farm/tx.pulsar.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 11 additions & 11 deletions api/irismod/htlc/htlc.pulsar.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading