The First Modular AI Chain
Go to file
Nick DeLuca 774e2efce8
chore(lint): Update local make lint to match CI (#1991)
* chore(lint): Update local make lint to match CI

This updates the `make lint` behavior to match the command being
run in CI.

In addition, we refactor the make lint command to use docker in order to
to ease cross platform install, use a local build cache that integrates
with make clean, use the same version file, and encapsulate the logic in
its own make include.

We also remove the old lint logic as to not introduce a duplicate target
and avoid confusion from a difference in behavior.

While solutions like act for running github actions locally work, it is
not as straightfoward, is slower, and uses the local git repository
instead of a clone (though I am not sure how the checkout step works
within act).

* fix(lint): Use shared timeout with .golangci.yml

Instead of using a local and different timeout in the lint makefile
target we can rely on golangci to load this configuration from
.golangci.yml instead and share this setting with CI.

* fix(lint): Fix golangci-lint cache mount path

This uses the correct cache dir default of ~/.cache enabling use
of cache between lint calls.

* fix(lint): Fix lint caching

This includes a couple fixes - 1) It adds support for full caching of go
mod and go build, speeding up the lint process quite a bit.  And 2) does
not mix lint cache with make clean files -- the docker container creates
root owned files that cause make clean to error and we choose not to
require make clean to run with higher permissions.  The cache must be
deleted manually.
2024-08-05 10:13:17 -07:00
.github chore(linter): update Golang linter configuration (#1977) 2024-07-31 16:23:44 -04:00
app Replace opendb package from kava with generic opendb repo (#1959) 2024-07-11 09:23:31 -04:00
build chore(lint): Update local make lint to match CI (#1991) 2024-08-05 10:13:17 -07:00
ci/env bump deploy version for internal-testnet (#1952) 2024-06-24 11:33:37 -06:00
cli_test Update cosmos-sdk to v0.47.7 (#1811) 2024-02-06 17:54:10 -05:00
client feat(x/precisebank): Add query service with TotalFractionalBalances (#1970) 2024-07-19 10:24:23 -07:00
cmd/kava Replace opendb package from kava with generic opendb repo (#1959) 2024-07-11 09:23:31 -04:00
contracts chore(deps-dev): bump undici from 5.22.1 to 5.28.4 in /contracts (#1925) 2024-07-31 17:24:20 -07:00
contrib chore: fix some typos (#1913) 2024-05-16 13:27:48 -07:00
docs feat: Add gRPC query for remainder and account fractional balance (#1971) 2024-07-25 13:36:36 -07:00
migrate formatting fixes (#1783) 2023-11-21 14:08:07 -05:00
networks/local Use OS specific build directories (#600) 2020-06-24 14:21:01 -04:00
proto feat: Add gRPC query for remainder and account fractional balance (#1971) 2024-07-25 13:36:36 -07:00
tests fix(e2e): Use docker compose V2 for kvtool and Makefile (#1990) 2024-08-02 10:45:57 -07:00
third_party/proto Replace opendb package from kava with generic opendb repo (#1959) 2024-07-11 09:23:31 -04:00
x fix(insolvency) kava lend insolvency check bug implementation (#1982) 2024-07-30 13:08:48 -04:00
.dockerignore ci: update CI workflows and pipelines (#1768) 2023-11-08 14:06:03 -08:00
.gitignore chore(lint): Update local make lint to match CI (#1991) 2024-08-05 10:13:17 -07:00
.gitmodules Add IBC chain to E2E test suite (#1486) 2023-03-07 14:37:45 -08:00
.golangci-version chore(linter): update Golang linter configuration (#1977) 2024-07-31 16:23:44 -04:00
.golangci.yml chore(lint): Enable localmodule for import linter (#1989) 2024-08-02 12:08:38 -07:00
.mockery.yaml feat(x/precisebank): Implement GetBalance (#1916) 2024-05-21 14:11:13 -07:00
.tool-versions test: add packet-forwarding middleware e2e test (#1883) 2024-04-19 12:35:13 -07:00
buf.work.yaml Upgrade to sdk v0.44.5 and add IBC (#1106) 2022-01-07 17:39:27 -07:00
CHANGELOG.md chore(deps): Bump cometbft to v0.37.9-kava.1 (#1988) 2024-08-02 09:27:28 -07:00
docker-compose.yml Fix fail local testnet docker-compose up 2021-11-04 12:06:11 +09:00
Dockerfile Bump cosmos-sdk to v0.47.10-kava.2 with iavl v1 support (#1846) 2024-03-22 09:40:18 -04:00
Dockerfile-rocksdb ci: extract separate rocksdb base image (#1898) 2024-05-02 10:36:49 -07:00
Dockerfile-rocksdb-base ci: extract separate rocksdb base image (#1898) 2024-05-02 10:36:49 -07:00
go.mod chore(deps): Bump cometbft to v0.37.9-kava.1 (#1988) 2024-08-02 09:27:28 -07:00
go.sum chore(deps): Bump cometbft to v0.37.9-kava.1 (#1988) 2024-08-02 09:27:28 -07:00
hard.svg add token logos (#1185) 2022-03-10 13:24:21 -07:00
kava-logo.svg Update README to new logo (#410) 2020-03-31 11:20:31 -04:00
LICENSE.md [R4R] Basic docs tidying (#534) 2020-05-29 15:53:57 -07:00
Makefile chore(lint): Update local make lint to match CI (#1991) 2024-08-05 10:13:17 -07:00
prometheus.docker-compose.yml feat(x/cdp): update begin bloocker to run liquidations every X blocks based off params (#1818) 2024-02-02 13:21:11 -05:00
prometheus.yml feat(x/cdp): update begin bloocker to run liquidations every X blocks based off params (#1818) 2024-02-02 13:21:11 -05:00
README.md chore(docs): update security contact (#1921) 2024-05-24 09:38:36 -07:00
swp.svg add token logos (#1185) 2022-03-10 13:24:21 -07:00

version CircleCI Go Report Card API Reference GitHub Twitter Follow Discord Chat

Reference implementation of Kava, a blockchain for cross-chain DeFi. Built using the cosmos-sdk.

Mainnet

The current recommended version of the software for mainnet is v0.26.0 The master branch of this repository often contains considerable development work since the last mainnet release and is not runnable on mainnet.

Installation and Setup

For detailed instructions see the Kava docs.

git checkout v0.26.0
make install

End-to-end tests of Kava use a tool for generating networks with different configurations: kvtool. This is included as a git submodule at tests/e2e/kvtool. When first cloning the repository, if you intend to run the e2e integration tests, you must also clone the submodules:

git clone --recurse-submodules https://github.com/Kava-Labs/kava.git

Or, if you have already cloned the repo: git submodule update --init

Testnet

For further information on joining the testnet, head over to the testnet repo.

Docs

Kava protocol and client documentation can be found in the Kava docs.

If you have technical questions or concerns, ask a developer or community member in the Kava discord.

Security

If you find a security issue, please report it to security [at] kavalabs.io. Depending on the verification and severity, a bug bounty may be available.

License

Copyright © Kava Labs, Inc. All rights reserved.

Licensed under the Apache v2 License.