Skip to content

Commit

Permalink
Merge branch 'develop' into query-pending-nonces-by-chainID
Browse files Browse the repository at this point in the history
  • Loading branch information
kingpinXD authored Sep 20, 2023
2 parents a9d807b + 758c366 commit 7ff2123
Show file tree
Hide file tree
Showing 64 changed files with 5,378 additions and 1,008 deletions.
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ build-testnet-ubuntu: go.sum

install: go.sum
@echo "--> Installing zetacored & zetaclientd"
@go install -mod=readonly $(BUILD_FLAGS) ./cmd/zetacored
@go install -mod=readonly $(BUILD_FLAGS) ./cmd/zetaclientd
@go install -race -mod=readonly $(BUILD_FLAGS) ./cmd/zetacored
@go install -race -mod=readonly $(BUILD_FLAGS) ./cmd/zetaclientd

install-zetaclient: go.sum
@echo "--> Installing zetaclientd"
Expand Down Expand Up @@ -157,6 +157,10 @@ specs:
@go run ./scripts/gen-spec.go
.PHONY: specs

mocks:
@echo "--> Generating mocks"
@bash ./scripts/mocks-generate.sh

generate: proto openapi specs
.PHONY: generate

Expand Down
6 changes: 6 additions & 0 deletions common/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,12 @@ func IsEVMChain(chainID int64) bool {
chainID == 137 // polygon mainnet
}

func IsEthereum(chainID int64) bool {
return chainID == 5 || // Goerli
chainID == 1337 || // eth privnet
chainID == 1 // eth mainnet
}

func (chain Chain) IsKlaytnChain() bool {
return chain.ChainId == 1001
}
Expand Down
Loading

0 comments on commit 7ff2123

Please sign in to comment.