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/update dependencies chain v1 13 #224

Merged
merged 40 commits into from
Jul 29, 2024
Merged
Show file tree
Hide file tree
Changes from 19 commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
ae043e1
(feat) Updated proto definitions from injective-core v1.13. Updated a…
aarmoa May 30, 2024
43bd9ea
(fix) Remove unused constants
aarmoa May 31, 2024
2ae0864
(fix) Update GitHub workflows configuration to get the Go version to …
aarmoa May 31, 2024
b9ca0af
(fix) Fix pre-commit workflow configuration
aarmoa May 31, 2024
020aa4b
(fix) Updated eip712_cosmos module. Solved all pre-commit issues.
aarmoa May 31, 2024
cb865ec
(fix) Change in pre-commit workflow config to try and solve the issue…
aarmoa May 31, 2024
9a3740b
(feat) Added golangci configuration to include more validations in th…
aarmoa Jun 4, 2024
386b2bc
(fix) Fix pre-commit end of file issue
aarmoa Jun 4, 2024
191586c
(feat) Updated proto definitions from injective-core v1.13. Updated a…
aarmoa May 30, 2024
c0a7b73
(fix) Remove unused constants
aarmoa May 31, 2024
6554d6e
(fix) Update GitHub workflows configuration to get the Go version to …
aarmoa May 31, 2024
0396597
(fix) Fix pre-commit workflow configuration
aarmoa May 31, 2024
81c813d
(fix) Updated eip712_cosmos module. Solved all pre-commit issues.
aarmoa May 31, 2024
5df9dbd
(fix) Change in pre-commit workflow config to try and solve the issue…
aarmoa May 31, 2024
13fbec8
(feat) Added golangci configuration to include more validations in th…
aarmoa Jun 4, 2024
4836df3
(fix) Fix pre-commit end of file issue
aarmoa Jun 4, 2024
9b40110
(fix) Fix dependencies
aarmoa Jun 6, 2024
4ff9434
Merge branch 'feat/update_dependencies_chain_v1_13' of https://github…
aarmoa Jun 6, 2024
e831104
(fix) Fixed pre-commit issues after rebasing with the latest changes …
aarmoa Jun 6, 2024
dbf0eb4
chore: bump go.mod go version and buf
albertchon Jun 17, 2024
b93b4ea
(feat) Added support for module. Added also example scripts for all …
aarmoa Jun 26, 2024
4fddcb0
(fix) Added logic to ensure this branch is only used to interact with…
aarmoa Jun 26, 2024
d380328
(fix) Synced proto definitions with the latest chain upgrade core and…
aarmoa Jul 8, 2024
8dcedab
(fix) Fix pre-commit issues
aarmoa Jul 8, 2024
cea06a1
(fix) Fix pre-commit issues
aarmoa Jul 8, 2024
c644192
(fix) Fix pre-commit issues
aarmoa Jul 8, 2024
8684986
chore: update chain protos
proofofze Jul 10, 2024
2aae7cb
(fix) Added token decimals to the MsgSetDenomMetadata example
aarmoa Jul 10, 2024
d7aa99d
Merge branch 'feat/update_dependencies_chain_v1_13' of https://github…
aarmoa Jul 10, 2024
e12052b
fix: make PrepareFactory public so chilliass can re-use it
kakysha Jul 12, 2024
50dedaa
chore: lint
kakysha Jul 15, 2024
58aee14
Merge pull request #228 from InjectiveLabs/fix-PrepareFactory-public
kakysha Jul 15, 2024
fb8a8bf
(fix) Synced proto definition with latest versions from injective-cor…
aarmoa Jul 17, 2024
1f96e8f
(feat) Added support for module. Added also example scripts for all …
aarmoa Jun 26, 2024
88f1ced
(fix) Added logic to ensure this branch is only used to interact with…
aarmoa Jun 26, 2024
e985b0f
Merge branch 'feat/permissions_module_messages' of https://github.com…
aarmoa Jul 26, 2024
3bc09db
Merge pull request #230 from InjectiveLabs/feat/permissions_module_me…
aarmoa Jul 26, 2024
d45b89b
(fix) Remove restrictions in SDK to not use with mainnet or testnet
aarmoa Jul 26, 2024
9ea244b
(fix) Regenerated all compiled protos. Updated CreateDenom example sc…
aarmoa Jul 29, 2024
4ffc005
(fix) Updated go.mod dependencies
aarmoa Jul 29, 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
10 changes: 6 additions & 4 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v4
- uses: actions/checkout@master
with:
fetch-depth: 2
- uses: actions/setup-go@v5
with:
go-version: 1.19
go-version-file: "go.mod"
check-latest: true
- run: go install golang.org/x/tools/cmd/goimports@latest
- run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s - -b $(go env GOPATH)/bin v1.49.0
- run: echo "PATH=$PATH:/home/runner/go/bin" >> $GITHUB_ENV
- uses: actions/checkout@v3
- run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.59.0
- uses: pre-commit/[email protected]
5 changes: 3 additions & 2 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ jobs:
run-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@master
with:
fetch-depth: 2
- uses: actions/setup-go@v5
with:
go-version: 1.19
go-version-file: "go.mod"
check-latest: true
- name: Run test and calculate coverage
run: make coverage
- name: Upload coverage to Codecov
Expand Down
53 changes: 53 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"run": {
"tests": false,
},
"linters": {
"fast": false,
"enable": [
"errcheck",
"errorlint",
"gas",
"gocritic",
"gosimple",
"govet",
"ineffassign",
"megacheck",
"misspell",
"nakedret",
"prealloc",
"revive",
"staticcheck",
"unconvert",
"unparam",
],
"disable": [
"unused",
]
},
"linters-settings": {
"revive": {
"enableAllRules": true,
"rules": [
{
"name": "var-naming",
"arguments": [
["ID"]
]
}
]
},
"gocritic": {
"enabled-tags": [
"diagnostic",
"experimental",
"opinionated",
"performance",
"style",
],
"disabled-checks": [
"hugeParam",
]
}
},
}
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ repos:
- id: end-of-file-fixer
- id: check-yaml
- repo: https://github.com/dnephin/pre-commit-golang
rev: v0.5.0
rev: master
hooks:
- id: go-fmt
- id: go-imports
Expand Down
14 changes: 10 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ all:

copy-exchange-client:
rm -rf exchange/*
mkdir -p exchange/health_rpc
mkdir -p exchange/accounts_rpc
mkdir -p exchange/auction_rpc
mkdir -p exchange/campaign_rpc
Expand All @@ -15,6 +16,8 @@ copy-exchange-client:
mkdir -p exchange/spot_exchange_rpc
mkdir -p exchange/trading_rpc

cp -r ../injective-indexer/api/gen/grpc/health/pb exchange/health_rpc/pb
cp -r ../injective-indexer/api/gen/grpc/injective_accounts_rpc/pb exchange/accounts_rpc/pb
cp -r ../injective-indexer/api/gen/grpc/injective_accounts_rpc/pb exchange/accounts_rpc/pb
cp -r ../injective-indexer/api/gen/grpc/injective_auction_rpc/pb exchange/auction_rpc/pb
cp -r ../injective-indexer/api/gen/grpc/injective_campaign_rpc/pb exchange/campaign_rpc/pb
Expand All @@ -31,8 +34,6 @@ copy-exchange-client:
.PHONY: copy-exchange-client tests coverage

copy-chain-types:
cp ../injective-core/injective-chain/types/*.go chain/types
rm -rf chain/types/*test.go rm -rf chain/types/*gw.go
cp ../injective-core/injective-chain/crypto/ethsecp256k1/*.go chain/crypto/ethsecp256k1
rm -rf chain/crypto/ethsecp256k1/*test.go rm -rf chain/crypto/ethsecp256k1/*gw.go
cp ../injective-core/injective-chain/modules/auction/types/*.go chain/auction/types
Expand All @@ -48,11 +49,16 @@ copy-chain-types:
rm -rf chain/oracle/types/*test.go rm -rf chain/oracle/types/*gw.go
cp ../injective-core/injective-chain/modules/peggy/types/*.go chain/peggy/types
rm -rf chain/peggy/types/*test.go rm -rf chain/peggy/types/*gw.go
cp ../injective-core/injective-chain/modules/wasmx/types/*.go chain/wasmx/types
rm -rf chain/wasmx/types/*test.go rm -rf chain/wasmx/types/*gw.go
cp ../injective-core/injective-chain/modules/permissions/types/*.go chain/permissions/types
rm -rf chain/permissions/types/*test.go rm -rf chain/permissions/types/*gw.go
cp ../injective-core/injective-chain/modules/tokenfactory/types/*.go chain/tokenfactory/types
rm -rf chain/tokenfactory/types/*test.go rm -rf chain/tokenfactory/types/*gw.go
cp ../injective-core/injective-chain/modules/wasmx/types/*.go chain/wasmx/types
rm -rf chain/wasmx/types/*test.go rm -rf chain/wasmx/types/*gw.go
cp ../injective-core/injective-chain/stream/types/*.go chain/stream/types
rm -rf chain/stream/types/*test.go rm -rf chain/stream/types/*gw.go
cp ../injective-core/injective-chain/types/*.go chain/types
rm -rf chain/types/*test.go rm -rf chain/types/*gw.go

echo "👉 Replace injective-core/injective-chain/modules with sdk-go/chain"
echo "👉 Replace injective-core/injective-chain/types with sdk-go/chain/types"
Expand Down
4 changes: 2 additions & 2 deletions auth_vote/authz_vote.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func main() {
validators := []string{"inj156t3yxd4udv0h9gwagfcmwnmm3quy0npqc7pks", "inj16nd8yqxe9p6ggnrz58qr7dxn5y2834yendward"}
grantee := senderAddress.String()
proposalId := uint64(375)
var msgs []sdk.Msg
var msgs = make([]sdk.Msg, 0)

for _, validator := range validators {
msgVote := v1beta1.MsgVote{
Expand All @@ -92,7 +92,7 @@ func main() {
msgs = append(msgs, sdkMsg)
}

//AsyncBroadcastMsg, SyncBroadcastMsg, QueueBroadcastMsg
// AsyncBroadcastMsg, SyncBroadcastMsg, QueueBroadcastMsg
response, err := chainClient.AsyncBroadcastMsg(msgs...)

if err != nil {
Expand Down
Loading
Loading