rename with new module name

This commit is contained in:
Solovyov1796 2024-04-22 15:59:15 +08:00
parent 8208e5fd97
commit 83ada20e08
639 changed files with 1445 additions and 1444 deletions

View File

@ -80,7 +80,7 @@ printf "original evm util module params\n %s" , "$originalEvmUtilParams"
# change the params of the chain like a god - make it so 🖖🏽 # change the params of the chain like a god - make it so 🖖🏽
# make sure to update god committee member permissions for the module # make sure to update god committee member permissions for the module
# and params being updated (see below for example) # and params being updated (see below for example)
# https://github.com/Kava-Labs/kava/pull/1556/files#diff-0bd6043650c708661f37bbe6fa5b29b52149e0ec0069103c3954168fc9f12612R900-R903 # https://github.com/0glabs/0g-chain/pull/1556/files#diff-0bd6043650c708661f37bbe6fa5b29b52149e0ec0069103c3954168fc9f12612R900-R903
kava tx committee submit-proposal 1 "$proposalFileName" --gas 2000000 --gas-prices 0.01ukava --from god -y kava tx committee submit-proposal 1 "$proposalFileName" --gas 2000000 --gas-prices 0.01ukava --from god -y
# fetch current module params # fetch current module params

View File

@ -202,7 +202,7 @@ printf "original evm util module params\n %s" , "$originalEvmUtilParams"
# change the params of the chain like a god - make it so 🖖🏽 # change the params of the chain like a god - make it so 🖖🏽
# make sure to update god committee member permissions for the module # make sure to update god committee member permissions for the module
# and params being updated (see below for example) # and params being updated (see below for example)
# https://github.com/Kava-Labs/kava/pull/1556/files#diff-0bd6043650c708661f37bbe6fa5b29b52149e0ec0069103c3954168fc9f12612R900-R903 # https://github.com/0glabs/0g-chain/pull/1556/files#diff-0bd6043650c708661f37bbe6fa5b29b52149e0ec0069103c3954168fc9f12612R900-R903
# committee 1 is the stability committee. on internal testnet, this has only one member. # committee 1 is the stability committee. on internal testnet, this has only one member.
kava tx committee submit-proposal 1 "$proposalFileName" --gas 2000000 --gas-prices 0.01ukava --from god -y kava tx committee submit-proposal 1 "$proposalFileName" --gas 2000000 --gas-prices 0.01ukava --from god -y

View File

@ -164,7 +164,7 @@ printf "original evm util module params\n %s" , "$originalEvmUtilParams"
# change the params of the chain like a god - make it so 🖖🏽 # change the params of the chain like a god - make it so 🖖🏽
# make sure to update god committee member permissions for the module # make sure to update god committee member permissions for the module
# and params being updated (see below for example) # and params being updated (see below for example)
# https://github.com/Kava-Labs/kava/pull/1556/files#diff-0bd6043650c708661f37bbe6fa5b29b52149e0ec0069103c3954168fc9f12612R900-R903 # https://github.com/0glabs/0g-chain/pull/1556/files#diff-0bd6043650c708661f37bbe6fa5b29b52149e0ec0069103c3954168fc9f12612R900-R903
kava tx committee submit-proposal 1 "$proposalFileName" --gas 2000000 --gas-prices 0.01ukava --from god -y kava tx committee submit-proposal 1 "$proposalFileName" --gas 2000000 --gas-prices 0.01ukava --from god -y
sleep $AVG_SECONDS_BETWEEN_BLOCKS sleep $AVG_SECONDS_BETWEEN_BLOCKS

View File

@ -174,7 +174,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
## [v0.13.0] ## [v0.13.0]
- Hard Protocol - Introduces borrowing functionality to HARD protocol. See full - Hard Protocol - Introduces borrowing functionality to HARD protocol. See full
[spec](https://github.com/Kava-Labs/kava/tree/master/x/hard/spec) [spec](https://github.com/0glabs/0g-chain/tree/master/x/hard/spec)
### Breaking changes ### Breaking changes
@ -271,9 +271,9 @@ non-breaking manner and that nodes will be able to update seamlessly after the
launch of kava-3. launch of kava-3.
The steps for upgrading to kava-3 can be found The steps for upgrading to kava-3 can be found
[here](https://github.com/Kava-Labs/kava/blob/v0.10.0/contrib/kava-3/migration.md). [here](https://github.com/0glabs/0g-chain/blob/v0.10.0/contrib/kava-3/migration.md).
Please note the additional section on Please note the additional section on
[pruning](https://github.com/Kava-Labs/kava/blob/v0.10.0/contrib/kava-3/migration.md#Pruning). [pruning](https://github.com/0glabs/0g-chain/blob/v0.10.0/contrib/kava-3/migration.md#Pruning).
## [v0.8.0] kava-3 Release ## [v0.8.0] kava-3 Release
@ -285,7 +285,7 @@ state-machine faults that require a new version to launch successfully.
### Migration ### Migration
The steps for upgrading to kava-3 can be found The steps for upgrading to kava-3 can be found
[here](https://github.com/Kava-Labs/kava/blob/v0.10.0/contrib/kava-3/migration.md) [here](https://github.com/0glabs/0g-chain/blob/v0.10.0/contrib/kava-3/migration.md)
### Features ### Features
@ -325,86 +325,86 @@ the [changelog](https://github.com/cosmos/cosmos-sdk/blob/v0.38.4/CHANGELOG.md).
### Improvements ### Improvements
- [#257](https://github.com/Kava-Labs/kava/pulls/257) Include scripts to run - [#257](https://github.com/0glabs/0g-chain/pulls/257) Include scripts to run
large-scale simulations remotely using aws-batch large-scale simulations remotely using aws-batch
[#1846]: https://github.com/Kava-Labs/kava/pull/1846 [#1846]: https://github.com/0glabs/0g-chain/pull/1846
[#1848]: https://github.com/Kava-Labs/kava/pull/1848 [#1848]: https://github.com/0glabs/0g-chain/pull/1848
[#1839]: https://github.com/Kava-Labs/kava/pull/1839 [#1839]: https://github.com/0glabs/0g-chain/pull/1839
[#1836]: https://github.com/Kava-Labs/kava/pull/1836 [#1836]: https://github.com/0glabs/0g-chain/pull/1836
[#1832]: https://github.com/Kava-Labs/kava/pull/1832 [#1832]: https://github.com/0glabs/0g-chain/pull/1832
[#1811]: https://github.com/Kava-Labs/kava/pull/1811 [#1811]: https://github.com/0glabs/0g-chain/pull/1811
[#1804]: https://github.com/Kava-Labs/kava/pull/1804 [#1804]: https://github.com/0glabs/0g-chain/pull/1804
[#1785]: https://github.com/Kava-Labs/kava/pull/1785 [#1785]: https://github.com/0glabs/0g-chain/pull/1785
[#1784]: https://github.com/Kava-Labs/kava/pull/1784 [#1784]: https://github.com/0glabs/0g-chain/pull/1784
[#1770]: https://github.com/Kava-Labs/kava/pull/1770 [#1770]: https://github.com/0glabs/0g-chain/pull/1770
[#1755]: https://github.com/Kava-Labs/kava/pull/1755 [#1755]: https://github.com/0glabs/0g-chain/pull/1755
[#1761]: https://github.com/Kava-Labs/kava/pull/1761 [#1761]: https://github.com/0glabs/0g-chain/pull/1761
[#1752]: https://github.com/Kava-Labs/kava/pull/1752 [#1752]: https://github.com/0glabs/0g-chain/pull/1752
[#1751]: https://github.com/Kava-Labs/kava/pull/1751 [#1751]: https://github.com/0glabs/0g-chain/pull/1751
[#1745]: https://github.com/Kava-Labs/kava/pull/1745 [#1745]: https://github.com/0glabs/0g-chain/pull/1745
[#1729]: https://github.com/Kava-Labs/kava/pull/1729 [#1729]: https://github.com/0glabs/0g-chain/pull/1729
[#1707]: https://github.com/Kava-Labs/kava/pull/1707 [#1707]: https://github.com/0glabs/0g-chain/pull/1707
[#1706]: https://github.com/Kava-Labs/kava/pull/1706 [#1706]: https://github.com/0glabs/0g-chain/pull/1706
[#1704]: https://github.com/Kava-Labs/kava/pull/1704 [#1704]: https://github.com/0glabs/0g-chain/pull/1704
[#1668]: https://github.com/Kava-Labs/kava/pull/1668 [#1668]: https://github.com/0glabs/0g-chain/pull/1668
[#1669]: https://github.com/Kava-Labs/kava/pull/1669 [#1669]: https://github.com/0glabs/0g-chain/pull/1669
[#1655]: https://github.com/Kava-Labs/kava/pull/1655 [#1655]: https://github.com/0glabs/0g-chain/pull/1655
[#1624]: https://github.com/Kava-Labs/kava/pull/1624 [#1624]: https://github.com/0glabs/0g-chain/pull/1624
[#1631]: https://github.com/Kava-Labs/kava/pull/1631 [#1631]: https://github.com/0glabs/0g-chain/pull/1631
[#1622]: https://github.com/Kava-Labs/kava/pull/1622 [#1622]: https://github.com/0glabs/0g-chain/pull/1622
[#1614]: https://github.com/Kava-Labs/kava/pull/1614 [#1614]: https://github.com/0glabs/0g-chain/pull/1614
[#1610]: https://github.com/Kava-Labs/kava/pull/1610 [#1610]: https://github.com/0glabs/0g-chain/pull/1610
[#1609]: https://github.com/Kava-Labs/kava/pull/1609 [#1609]: https://github.com/0glabs/0g-chain/pull/1609
[#1605]: https://github.com/Kava-Labs/kava/pull/1605 [#1605]: https://github.com/0glabs/0g-chain/pull/1605
[#1604]: https://github.com/Kava-Labs/kava/pull/1604 [#1604]: https://github.com/0glabs/0g-chain/pull/1604
[#1603]: https://github.com/Kava-Labs/kava/pull/1603 [#1603]: https://github.com/0glabs/0g-chain/pull/1603
[#1598]: https://github.com/Kava-Labs/kava/pull/1598 [#1598]: https://github.com/0glabs/0g-chain/pull/1598
[#1596]: https://github.com/Kava-Labs/kava/pull/1596 [#1596]: https://github.com/0glabs/0g-chain/pull/1596
[#1591]: https://github.com/Kava-Labs/kava/pull/1591 [#1591]: https://github.com/0glabs/0g-chain/pull/1591
[#1590]: https://github.com/Kava-Labs/kava/pull/1590 [#1590]: https://github.com/0glabs/0g-chain/pull/1590
[#1568]: https://github.com/Kava-Labs/kava/pull/1568 [#1568]: https://github.com/0glabs/0g-chain/pull/1568
[#1567]: https://github.com/Kava-Labs/kava/pull/1567 [#1567]: https://github.com/0glabs/0g-chain/pull/1567
[#1566]: https://github.com/Kava-Labs/kava/pull/1566 [#1566]: https://github.com/0glabs/0g-chain/pull/1566
[#1565]: https://github.com/Kava-Labs/kava/pull/1565 [#1565]: https://github.com/0glabs/0g-chain/pull/1565
[#1563]: https://github.com/Kava-Labs/kava/pull/1563 [#1563]: https://github.com/0glabs/0g-chain/pull/1563
[#1562]: https://github.com/Kava-Labs/kava/pull/1562 [#1562]: https://github.com/0glabs/0g-chain/pull/1562
[#1550]: https://github.com/Kava-Labs/kava/pull/1550 [#1550]: https://github.com/0glabs/0g-chain/pull/1550
[#1544]: https://github.com/Kava-Labs/kava/pull/1544 [#1544]: https://github.com/0glabs/0g-chain/pull/1544
[#1477]: https://github.com/Kava-Labs/kava/pull/1477 [#1477]: https://github.com/0glabs/0g-chain/pull/1477
[#1512]: https://github.com/Kava-Labs/kava/pull/1512 [#1512]: https://github.com/0glabs/0g-chain/pull/1512
[#1519]: https://github.com/Kava-Labs/kava/pull/1519 [#1519]: https://github.com/0glabs/0g-chain/pull/1519
[#1106]: https://github.com/Kava-Labs/kava/pull/1106 [#1106]: https://github.com/0glabs/0g-chain/pull/1106
[#1152]: https://github.com/Kava-Labs/kava/pull/1152 [#1152]: https://github.com/0glabs/0g-chain/pull/1152
[#1542]: https://github.com/Kava-Labs/kava/pull/1542 [#1542]: https://github.com/0glabs/0g-chain/pull/1542
[#253]: https://github.com/Kava-Labs/kava/pull/253 [#253]: https://github.com/0glabs/0g-chain/pull/253
[#260]: https://github.com/Kava-Labs/kava/pull/260 [#260]: https://github.com/0glabs/0g-chain/pull/260
[#266]: https://github.com/Kava-Labs/kava/pull/266 [#266]: https://github.com/0glabs/0g-chain/pull/266
[#364]: https://github.com/Kava-Labs/kava/pull/364 [#364]: https://github.com/0glabs/0g-chain/pull/364
[#590]: https://github.com/Kava-Labs/kava/pull/590 [#590]: https://github.com/0glabs/0g-chain/pull/590
[#591]: https://github.com/Kava-Labs/kava/pull/591 [#591]: https://github.com/0glabs/0g-chain/pull/591
[#596]: https://github.com/Kava-Labs/kava/pull/596 [#596]: https://github.com/0glabs/0g-chain/pull/596
[#598]: https://github.com/Kava-Labs/kava/pull/598 [#598]: https://github.com/0glabs/0g-chain/pull/598
[#625]: https://github.com/Kava-Labs/kava/pull/625 [#625]: https://github.com/0glabs/0g-chain/pull/625
[#701]: https://github.com/Kava-Labs/kava/pull/701 [#701]: https://github.com/0glabs/0g-chain/pull/701
[#750]: https://github.com/Kava-Labs/kava/pull/750 [#750]: https://github.com/0glabs/0g-chain/pull/750
[#751]: https://github.com/Kava-Labs/kava/pull/751 [#751]: https://github.com/0glabs/0g-chain/pull/751
[#780]: https://github.com/Kava-Labs/kava/pull/780 [#780]: https://github.com/0glabs/0g-chain/pull/780
[unreleased]: https://github.com/Kava-Labs/kava/compare/v0.25.0...HEAD [unreleased]: https://github.com/0glabs/0g-chain/compare/v0.25.0...HEAD
[v0.25.0]: https://github.com/Kava-Labs/kava/compare/v0.25.0...v0.24.3 [v0.25.0]: https://github.com/0glabs/0g-chain/compare/v0.25.0...v0.24.3
[v0.24.3]: https://github.com/Kava-Labs/kava/compare/v0.24.3...v0.24.1 [v0.24.3]: https://github.com/0glabs/0g-chain/compare/v0.24.3...v0.24.1
[v0.24.1]: https://github.com/Kava-Labs/kava/compare/v0.24.1...v0.24.0 [v0.24.1]: https://github.com/0glabs/0g-chain/compare/v0.24.1...v0.24.0
[v0.24.0]: https://github.com/Kava-Labs/kava/compare/v0.24.0...v0.23.2 [v0.24.0]: https://github.com/0glabs/0g-chain/compare/v0.24.0...v0.23.2
[v0.23.2]: https://github.com/Kava-Labs/kava/compare/v0.23.1...v0.23.2 [v0.23.2]: https://github.com/0glabs/0g-chain/compare/v0.23.1...v0.23.2
[v0.23.0]: https://github.com/Kava-Labs/kava/compare/v0.21.1...v0.23.0 [v0.23.0]: https://github.com/0glabs/0g-chain/compare/v0.21.1...v0.23.0
[v0.16.1]: https://github.com/Kava-Labs/kava/compare/v0.16.0...v0.16.1 [v0.16.1]: https://github.com/0glabs/0g-chain/compare/v0.16.0...v0.16.1
[v0.16.0]: https://github.com/Kava-Labs/kava/compare/v0.15.2...v0.16.0 [v0.16.0]: https://github.com/0glabs/0g-chain/compare/v0.15.2...v0.16.0
[v0.13.0]: https://github.com/Kava-Labs/kava/compare/v0.12.4...v0.13.0 [v0.13.0]: https://github.com/0glabs/0g-chain/compare/v0.12.4...v0.13.0
[v0.12.0]: https://github.com/Kava-Labs/kava/compare/v0.11.1...v0.12.0 [v0.12.0]: https://github.com/0glabs/0g-chain/compare/v0.11.1...v0.12.0
[v0.11.0]: https://github.com/Kava-Labs/kava/compare/v0.10.0...v0.11.0 [v0.11.0]: https://github.com/0glabs/0g-chain/compare/v0.10.0...v0.11.0
[v0.8.1]: https://github.com/Kava-Labs/kava/compare/v0.8.0...v0.8.1 [v0.8.1]: https://github.com/0glabs/0g-chain/compare/v0.8.0...v0.8.1
[v0.8.0]: https://github.com/Kava-Labs/kava/compare/v0.7.0...v0.8.0 [v0.8.0]: https://github.com/0glabs/0g-chain/compare/v0.7.0...v0.8.0
[v0.3.5]: https://github.com/Kava-Labs/kava/compare/v0.3.4...v0.3.5 [v0.3.5]: https://github.com/0glabs/0g-chain/compare/v0.3.4...v0.3.5
[v0.3.2]: https://github.com/Kava-Labs/kava/compare/v0.3.1...v0.3.2 [v0.3.2]: https://github.com/0glabs/0g-chain/compare/v0.3.1...v0.3.2
[v0.3.1]: https://github.com/Kava-Labs/kava/compare/v0.3.0...v0.3.1 [v0.3.1]: https://github.com/0glabs/0g-chain/compare/v0.3.0...v0.3.1
[v0.3.0]: https://github.com/Kava-Labs/kava/compare/v0.2.0...v0.3.0 [v0.3.0]: https://github.com/0glabs/0g-chain/compare/v0.2.0...v0.3.0

View File

@ -7,7 +7,7 @@ FROM golang:1.21-alpine AS build-env
RUN apk add bash git make libc-dev gcc linux-headers eudev-dev jq curl RUN apk add bash git make libc-dev gcc linux-headers eudev-dev jq curl
# Set working directory for the build # Set working directory for the build
WORKDIR /root/kava WORKDIR /root/0gchain
# default home directory is /root # default home directory is /root
# Copy dependency files first to facilitate dependency caching # Copy dependency files first to facilitate dependency caching
@ -32,6 +32,6 @@ RUN --mount=type=cache,target=/root/.cache/go-build \
FROM alpine:3.15 FROM alpine:3.15
RUN apk add bash jq curl RUN apk add bash jq curl
COPY --from=build-env /go/bin/kava /bin/kava COPY --from=build-env /go/bin/0gchain /bin/0gchain
CMD ["kava"] CMD ["0g-chain"]

View File

@ -1,4 +1,4 @@
FROM golang:1.21-bullseye AS kava-builder FROM golang:1.21-bullseye AS zg-chain-builder
# Set up dependencies # Set up dependencies
RUN apt-get update \ RUN apt-get update \
@ -19,7 +19,7 @@ RUN git clone https://github.com/facebook/rocksdb.git \
&& make -j$(nproc) install-shared \ && make -j$(nproc) install-shared \
&& ldconfig && ldconfig
WORKDIR /root/kava WORKDIR /root/0g-chain
# Copy dependency files first to facilitate dependency caching # Copy dependency files first to facilitate dependency caching
COPY ./go.mod ./ COPY ./go.mod ./
COPY ./go.sum ./ COPY ./go.sum ./
@ -32,13 +32,13 @@ RUN --mount=type=cache,target=/root/.cache/go-build \
# Add source files # Add source files
COPY . . COPY . .
ARG kava_database_backend=rocksdb ARG 0gchain_database_backend=rocksdb
ENV KAVA_DATABASE_BACKEND=$kava_database_backend ENV 0GCHAIN_DATABASE_BACKEND=$0gchain_database_backend
# Mount go build and mod caches as container caches, persisted between builder invocations # Mount go build and mod caches as container caches, persisted between builder invocations
RUN --mount=type=cache,target=/root/.cache/go-build \ RUN --mount=type=cache,target=/root/.cache/go-build \
--mount=type=cache,target=/go/pkg/mod \ --mount=type=cache,target=/go/pkg/mod \
make install COSMOS_BUILD_OPTIONS=$KAVA_DATABASE_BACKEND make install COSMOS_BUILD_OPTIONS=$0GCHAIN_DATABASE_BACKEND
FROM ubuntu:22.04 FROM ubuntu:22.04
@ -48,10 +48,10 @@ RUN apt-get update \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
# copy rocksdb shared objects # copy rocksdb shared objects
COPY --from=kava-builder /usr/local/lib/ /usr/local/lib/ COPY --from=zg-chain-builder /usr/local/lib/ /usr/local/lib/
RUN ldconfig RUN ldconfig
# copy kava binary # copy 0g-chain binary
COPY --from=kava-builder /go/bin/kava /bin/kava COPY --from=zg-chain-builder /go/bin/0g-chain /bin/0g-chain
CMD ["kava"] CMD ["0g-chain"]

View File

@ -1,7 +1,7 @@
################################################################################ ################################################################################
### Project Info ### ### Project Info ###
################################################################################ ################################################################################
PROJECT_NAME := kava# unique namespace for project PROJECT_NAME := 0gchain# unique namespace for project
GO_BIN ?= go GO_BIN ?= go
@ -37,7 +37,7 @@ print-git-info:
.PHONY: print-version .PHONY: print-version
print-version: print-version:
@echo "kava $(VERSION)\ntendermint $(TENDERMINT_VERSION)\ncosmos $(COSMOS_SDK_VERSION)" @echo "0gchain $(VERSION)\ntendermint $(TENDERMINT_VERSION)\ncosmos $(COSMOS_SDK_VERSION)"
################################################################################ ################################################################################
### Project Settings ### ### Project Settings ###
@ -45,7 +45,7 @@ print-version:
LEDGER_ENABLED ?= true LEDGER_ENABLED ?= true
DOCKER:=docker DOCKER:=docker
DOCKER_BUF := $(DOCKER) run --rm -v $(CURDIR):/workspace --workdir /workspace bufbuild/buf DOCKER_BUF := $(DOCKER) run --rm -v $(CURDIR):/workspace --workdir /workspace bufbuild/buf
HTTPS_GIT := https://github.com/Kava-Labs/kava.git HTTPS_GIT := https://github.com/0glabs/0g-chain.git
################################################################################ ################################################################################
### Machine Info ### ### Machine Info ###
@ -142,8 +142,8 @@ build_tags_comma_sep := $(subst $(whitespace),$(comma),$(build_tags))
# process linker flags # process linker flags
ldflags = -X github.com/cosmos/cosmos-sdk/version.Name=kava \ ldflags = -X github.com/cosmos/cosmos-sdk/version.Name=0gchain \
-X github.com/cosmos/cosmos-sdk/version.AppName=kava \ -X github.com/cosmos/cosmos-sdk/version.AppName=0gchain \
-X github.com/cosmos/cosmos-sdk/version.Version=$(VERSION_NUMBER) \ -X github.com/cosmos/cosmos-sdk/version.Version=$(VERSION_NUMBER) \
-X github.com/cosmos/cosmos-sdk/version.Commit=$(GIT_COMMIT) \ -X github.com/cosmos/cosmos-sdk/version.Commit=$(GIT_COMMIT) \
-X "github.com/cosmos/cosmos-sdk/version.BuildTags=$(build_tags_comma_sep)" \ -X "github.com/cosmos/cosmos-sdk/version.BuildTags=$(build_tags_comma_sep)" \
@ -188,15 +188,15 @@ all: install
build: go.sum build: go.sum
ifeq ($(OS), Windows_NT) ifeq ($(OS), Windows_NT)
$(GO_BIN) build -mod=readonly $(BUILD_FLAGS) -o out/$(shell $(GO_BIN) env GOOS)/kava.exe ./cmd/kava $(GO_BIN) build -mod=readonly $(BUILD_FLAGS) -o out/$(shell $(GO_BIN) env GOOS)/0gchain.exe ./cmd/0gchain
else else
$(GO_BIN) build -mod=readonly $(BUILD_FLAGS) -o out/$(shell $(GO_BIN) env GOOS)/kava ./cmd/kava $(GO_BIN) build -mod=readonly $(BUILD_FLAGS) -o out/$(shell $(GO_BIN) env GOOS)/0gchain ./cmd/0gchain
endif endif
build-linux: go.sum build-linux: go.sum
LEDGER_ENABLED=false GOOS=linux GOARCH=amd64 $(MAKE) build LEDGER_ENABLED=false GOOS=linux GOARCH=amd64 $(MAKE) build
# build on rocksdb-backed kava on macOS with shared libs from brew # build on rocksdb-backed 0gchain on macOS with shared libs from brew
# this assumes you are on macOS & these deps have been installed with brew: # this assumes you are on macOS & these deps have been installed with brew:
# rocksdb, snappy, lz4, and zstd # rocksdb, snappy, lz4, and zstd
# use like `make build-rocksdb-brew COSMOS_BUILD_OPTIONS=rocksdb` # use like `make build-rocksdb-brew COSMOS_BUILD_OPTIONS=rocksdb`
@ -205,7 +205,7 @@ build-rocksdb-brew:
export CGO_LDFLAGS := -L$(shell brew --prefix rocksdb)/lib -lrocksdb -lstdc++ -lm -lz -L$(shell brew --prefix snappy)/lib -L$(shell brew --prefix lz4)/lib -L$(shell brew --prefix zstd)/lib export CGO_LDFLAGS := -L$(shell brew --prefix rocksdb)/lib -lrocksdb -lstdc++ -lm -lz -L$(shell brew --prefix snappy)/lib -L$(shell brew --prefix lz4)/lib -L$(shell brew --prefix zstd)/lib
install: go.sum install: go.sum
$(GO_BIN) install -mod=readonly $(BUILD_FLAGS) ./cmd/kava $(GO_BIN) install -mod=readonly $(BUILD_FLAGS) ./cmd/0gchain
######################################## ########################################
### Tools & dependencies ### Tools & dependencies
@ -227,6 +227,7 @@ go.sum: go.mod
# Set to exclude riot links as they trigger false positives # Set to exclude riot links as they trigger false positives
link-check: link-check:
@$(GO_BIN) get -u github.com/raviqqe/liche@f57a5d1c5be4856454cb26de155a65a4fd856ee3 @$(GO_BIN) get -u github.com/raviqqe/liche@f57a5d1c5be4856454cb26de155a65a4fd856ee3
# TODO: replace kava in following line with project name
liche -r . --exclude "^http://127.*|^https://riot.im/app*|^http://kava-testnet*|^https://testnet-dex*|^https://kava3.data.kava.io*|^https://ipfs.io*|^https://apps.apple.com*|^https://kava.quicksync.io*" liche -r . --exclude "^http://127.*|^https://riot.im/app*|^http://kava-testnet*|^https://testnet-dex*|^https://kava3.data.kava.io*|^https://ipfs.io*|^https://apps.apple.com*|^https://kava.quicksync.io*"
@ -241,26 +242,26 @@ format:
find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -name '*.pb.go' | xargs misspell -w find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -name '*.pb.go' | xargs misspell -w
find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -name '*.pb.go' | xargs goimports -w -local github.com/tendermint find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -name '*.pb.go' | xargs goimports -w -local github.com/tendermint
find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -name '*.pb.go' | xargs goimports -w -local github.com/cosmos/cosmos-sdk find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -name '*.pb.go' | xargs goimports -w -local github.com/cosmos/cosmos-sdk
find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -name '*.pb.go' | xargs goimports -w -local github.com/kava-labs/kava find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -name '*.pb.go' | xargs goimports -w -local github.com/0glabs/0gchain
.PHONY: format .PHONY: format
############################################################################### ###############################################################################
### Localnet ### ### Localnet ###
############################################################################### ###############################################################################
# Build docker image and tag as kava/kava:local # Build docker image and tag as 0glabs/0gchain:local
docker-build: docker-build:
DOCKER_BUILDKIT=1 $(DOCKER) build -t kava/kava:local . DOCKER_BUILDKIT=1 $(DOCKER) build -t 0glabs/0gchain:local .
docker-build-rocksdb: docker-build-rocksdb:
DOCKER_BUILDKIT=1 $(DOCKER) build -f Dockerfile-rocksdb -t kava/kava:local . DOCKER_BUILDKIT=1 $(DOCKER) build -f Dockerfile-rocksdb -t 0glabs/0gchain:local .
build-docker-local-kava: build-docker-local-0gchain:
@$(MAKE) -C networks/local @$(MAKE) -C networks/local
# Run a 4-node testnet locally # Run a 4-node testnet locally
localnet-start: build-linux localnet-stop localnet-start: build-linux localnet-stop
@if ! [ -f build/node0/kvd/config/genesis.json ]; then docker run --rm -v $(CURDIR)/build:/kvd:Z kava/kavanode testnet --v 4 -o . --starting-ip-address 192.168.10.2 --keyring-backend=test ; fi @if ! [ -f build/node0/kvd/config/genesis.json ]; then docker run --rm -v $(CURDIR)/build:/kvd:Z 0glabs/0gchain-node testnet --v 4 -o . --starting-ip-address 192.168.10.2 --keyring-backend=test ; fi
docker-compose up -d docker-compose up -d
localnet-stop: localnet-stop:
@ -269,7 +270,7 @@ localnet-stop:
# Launch a new single validator chain # Launch a new single validator chain
start: start:
./contrib/devnet/init-new-chain.sh ./contrib/devnet/init-new-chain.sh
kava start 0gchain start
#proto-format: #proto-format:
#@echo "Formatting Protobuf files" #@echo "Formatting Protobuf files"
@ -310,7 +311,7 @@ test:
@$(GO_BIN) test $$($(GO_BIN) list ./... | grep -v 'contrib' | grep -v 'tests/e2e') @$(GO_BIN) test $$($(GO_BIN) list ./... | grep -v 'contrib' | grep -v 'tests/e2e')
test-rocksdb: test-rocksdb:
@go test -tags=rocksdb ./cmd/kava/opendb @go test -tags=rocksdb ./cmd/0gchain/opendb
# Run cli integration tests # Run cli integration tests
# `-p 4` to use 4 cores, `-tags cli_test` to tell $(GO_BIN) not to ignore the cli package # `-p 4` to use 4 cores, `-tags cli_test` to tell $(GO_BIN) not to ignore the cli package
@ -326,15 +327,15 @@ test-migrate:
# This submits an AWS Batch job to run a lot of sims, each within a docker image. Results are uploaded to S3 # This submits an AWS Batch job to run a lot of sims, each within a docker image. Results are uploaded to S3
start-remote-sims: start-remote-sims:
# build the image used for running sims in, and tag it # build the image used for running sims in, and tag it
docker build -f simulations/Dockerfile -t kava/kava-sim:master . docker build -f simulations/Dockerfile -t 0glabs/0gchain-sim:master .
# push that image to the hub # push that image to the hub
docker push kava/kava-sim:master docker push 0glabs/0gchain-sim:master
# submit an array job on AWS Batch, using 1000 seeds, spot instances # submit an array job on AWS Batch, using 1000 seeds, spot instances
aws batch submit-job \ aws batch submit-job \
-—job-name "master-$(VERSION)" \ -—job-name "master-$(VERSION)" \
-—job-queue “simulation-1-queue-spot" \ -—job-queue “simulation-1-queue-spot" \
-—array-properties size=1000 \ -—array-properties size=1000 \
-—job-definition kava-sim-master \ -—job-definition 0gchain-sim-master \
-—container-override environment=[{SIM_NAME=master-$(VERSION)}] -—container-override environment=[{SIM_NAME=master-$(VERSION)}]
update-kvtool: update-kvtool:

View File

@ -4,11 +4,11 @@
<div align="center"> <div align="center">
[![version](https://img.shields.io/github/tag/kava-labs/kava.svg)](https://github.com/kava-labs/kava/releases/latest) [![version](https://img.shields.io/github/tag/kava-labs/kava.svg)](https://github.com/0glabs/0g-chain/releases/latest)
[![CircleCI](https://circleci.com/gh/Kava-Labs/kava/tree/master.svg?style=shield)](https://circleci.com/gh/Kava-Labs/kava/tree/master) [![CircleCI](https://circleci.com/gh/Kava-Labs/kava/tree/master.svg?style=shield)](https://circleci.com/gh/Kava-Labs/kava/tree/master)
[![Go Report Card](https://goreportcard.com/badge/github.com/kava-labs/kava)](https://goreportcard.com/report/github.com/kava-labs/kava) [![Go Report Card](https://goreportcard.com/badge/github.com/0glabs/0g-chain)](https://goreportcard.com/report/github.com/0glabs/0g-chain)
[![API Reference](https://godoc.org/github.com/Kava-Labs/kava?status.svg)](https://godoc.org/github.com/Kava-Labs/kava) [![API Reference](https://godoc.org/github.com/0glabs/0g-chain?status.svg)](https://godoc.org/github.com/0glabs/0g-chain)
[![GitHub](https://img.shields.io/github/license/kava-labs/kava.svg)](https://github.com/Kava-Labs/kava/blob/master/LICENSE.md) [![GitHub](https://img.shields.io/github/license/kava-labs/kava.svg)](https://github.com/0glabs/0g-chain/blob/master/LICENSE.md)
[![Twitter Follow](https://img.shields.io/twitter/follow/KAVA_CHAIN.svg?label=Follow&style=social)](https://twitter.com/KAVA_CHAIN) [![Twitter Follow](https://img.shields.io/twitter/follow/KAVA_CHAIN.svg?label=Follow&style=social)](https://twitter.com/KAVA_CHAIN)
[![Discord Chat](https://img.shields.io/discord/704389840614981673.svg)](https://discord.com/invite/kQzh3Uv) [![Discord Chat](https://img.shields.io/discord/704389840614981673.svg)](https://discord.com/invite/kQzh3Uv)
@ -24,7 +24,7 @@ Reference implementation of Kava, a blockchain for cross-chain DeFi. Built using
## Mainnet ## Mainnet
The current recommended version of the software for mainnet is [v0.25.0](https://github.com/Kava-Labs/kava/releases/tag/v0.25.0) The master branch of this repository often contains considerable development work since the last mainnet release and is __not__ runnable on mainnet. The current recommended version of the software for mainnet is [v0.25.0](https://github.com/0glabs/0g-chain/releases/tag/v0.25.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 ### Installation and Setup
For detailed instructions see [the Kava docs](https://docs.kava.io/docs/participate/validator-node). For detailed instructions see [the Kava docs](https://docs.kava.io/docs/participate/validator-node).
@ -39,14 +39,14 @@ This is included as a git submodule at [`tests/e2e/kvtool`](tests/e2e/kvtool/).
When first cloning the repository, if you intend to run the e2e integration tests, you must also When first cloning the repository, if you intend to run the e2e integration tests, you must also
clone the submodules: clone the submodules:
```bash ```bash
git clone --recurse-submodules https://github.com/Kava-Labs/kava.git git clone --recurse-submodules https://github.com/0glabs/0g-chain.git
``` ```
Or, if you have already cloned the repo: `git submodule update --init` Or, if you have already cloned the repo: `git submodule update --init`
## Testnet ## Testnet
For further information on joining the testnet, head over to the [testnet repo](https://github.com/Kava-Labs/kava-testnets). For further information on joining the testnet, head over to the [testnet repo](https://github.com/0glabs/0g-chain-testnets).
## Docs ## Docs

View File

@ -32,15 +32,15 @@ import (
"github.com/cosmos/cosmos-sdk/x/staking" "github.com/cosmos/cosmos-sdk/x/staking"
"github.com/cosmos/cosmos-sdk/x/supply" "github.com/cosmos/cosmos-sdk/x/supply"
"github.com/kava-labs/kava/x/auction" "github.com/0glabs/0g-chain/x/auction"
"github.com/kava-labs/kava/x/bep3" "github.com/0glabs/0g-chain/x/bep3"
"github.com/kava-labs/kava/x/cdp" "github.com/0glabs/0g-chain/x/cdp"
"github.com/kava-labs/kava/x/committee" "github.com/0glabs/0g-chain/x/committee"
"github.com/kava-labs/kava/x/incentive" "github.com/0glabs/0g-chain/x/incentive"
"github.com/kava-labs/kava/x/kavadist" "github.com/0glabs/0g-chain/x/kavadist"
"github.com/kava-labs/kava/x/pricefeed" "github.com/0glabs/0g-chain/x/pricefeed"
"github.com/kava-labs/kava/x/swap" "github.com/0glabs/0g-chain/x/swap"
validatorvesting "github.com/kava-labs/kava/x/validator-vesting" validatorvesting "github.com/0glabs/0g-chain/x/validator-vesting"
) )
type StoreKeysPrefixes struct { type StoreKeysPrefixes struct {

View File

@ -9,7 +9,7 @@ import (
"testing" "testing"
sdkmath "cosmossdk.io/math" sdkmath "cosmossdk.io/math"
"github.com/kava-labs/kava/app" "github.com/0glabs/0g-chain/app"
abci "github.com/cometbft/cometbft/abci/types" abci "github.com/cometbft/cometbft/abci/types"
tmbytes "github.com/cometbft/cometbft/libs/bytes" tmbytes "github.com/cometbft/cometbft/libs/bytes"

View File

@ -22,9 +22,9 @@ import (
evmtypes "github.com/evmos/ethermint/x/evm/types" evmtypes "github.com/evmos/ethermint/x/evm/types"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"github.com/kava-labs/kava/app" "github.com/0glabs/0g-chain/app"
bep3types "github.com/kava-labs/kava/x/bep3/types" bep3types "github.com/0glabs/0g-chain/x/bep3/types"
pricefeedtypes "github.com/kava-labs/kava/x/pricefeed/types" pricefeedtypes "github.com/0glabs/0g-chain/x/pricefeed/types"
) )
func TestMain(m *testing.M) { func TestMain(m *testing.M) {

View File

@ -10,8 +10,8 @@ import (
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"github.com/kava-labs/kava/app" "github.com/0glabs/0g-chain/app"
"github.com/kava-labs/kava/app/ante" "github.com/0glabs/0g-chain/app/ante"
) )
var _ sdk.AnteHandler = (&MockAnteHandler{}).AnteHandle var _ sdk.AnteHandler = (&MockAnteHandler{}).AnteHandle

View File

@ -14,8 +14,8 @@ import (
evmtypes "github.com/evmos/ethermint/x/evm/types" evmtypes "github.com/evmos/ethermint/x/evm/types"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"github.com/kava-labs/kava/app" "github.com/0glabs/0g-chain/app"
"github.com/kava-labs/kava/app/ante" "github.com/0glabs/0g-chain/app/ante"
) )
func newMsgGrant(granter sdk.AccAddress, grantee sdk.AccAddress, a authz.Authorization, expiration time.Time) *authz.MsgGrant { func newMsgGrant(granter sdk.AccAddress, grantee sdk.AccAddress, a authz.Authorization, expiration time.Time) *authz.MsgGrant {

View File

@ -33,13 +33,13 @@ import (
feemarkettypes "github.com/evmos/ethermint/x/feemarket/types" feemarkettypes "github.com/evmos/ethermint/x/feemarket/types"
"github.com/stretchr/testify/suite" "github.com/stretchr/testify/suite"
"github.com/kava-labs/kava/app" "github.com/0glabs/0g-chain/app"
cdptypes "github.com/kava-labs/kava/x/cdp/types" cdptypes "github.com/0glabs/0g-chain/x/cdp/types"
evmutilkeeper "github.com/kava-labs/kava/x/evmutil/keeper" evmutilkeeper "github.com/0glabs/0g-chain/x/evmutil/keeper"
evmutiltestutil "github.com/kava-labs/kava/x/evmutil/testutil" evmutiltestutil "github.com/0glabs/0g-chain/x/evmutil/testutil"
evmutiltypes "github.com/kava-labs/kava/x/evmutil/types" evmutiltypes "github.com/0glabs/0g-chain/x/evmutil/types"
hardtypes "github.com/kava-labs/kava/x/hard/types" hardtypes "github.com/0glabs/0g-chain/x/hard/types"
pricefeedtypes "github.com/kava-labs/kava/x/pricefeed/types" pricefeedtypes "github.com/0glabs/0g-chain/x/pricefeed/types"
) )
const ( const (

View File

@ -11,8 +11,8 @@ import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"github.com/kava-labs/kava/app" "github.com/0glabs/0g-chain/app"
"github.com/kava-labs/kava/app/ante" "github.com/0glabs/0g-chain/app/ante"
) )
func mustParseDecCoins(value string) sdk.DecCoins { func mustParseDecCoins(value string) sdk.DecCoins {

View File

@ -12,8 +12,8 @@ import (
vesting "github.com/cosmos/cosmos-sdk/x/auth/vesting/types" vesting "github.com/cosmos/cosmos-sdk/x/auth/vesting/types"
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
"github.com/kava-labs/kava/app" "github.com/0glabs/0g-chain/app"
"github.com/kava-labs/kava/app/ante" "github.com/0glabs/0g-chain/app/ante"
) )
func TestVestingMempoolDecorator_MsgCreateVestingAccount_Unauthorized(t *testing.T) { func TestVestingMempoolDecorator_MsgCreateVestingAccount_Unauthorized(t *testing.T) {

View File

@ -105,65 +105,65 @@ import (
feemarkettypes "github.com/evmos/ethermint/x/feemarket/types" feemarkettypes "github.com/evmos/ethermint/x/feemarket/types"
"github.com/gorilla/mux" "github.com/gorilla/mux"
"github.com/kava-labs/kava/app/ante" "github.com/0glabs/0g-chain/app/ante"
kavaparams "github.com/kava-labs/kava/app/params" kavaparams "github.com/0glabs/0g-chain/app/params"
"github.com/kava-labs/kava/x/auction" "github.com/0glabs/0g-chain/x/auction"
auctionkeeper "github.com/kava-labs/kava/x/auction/keeper" auctionkeeper "github.com/0glabs/0g-chain/x/auction/keeper"
auctiontypes "github.com/kava-labs/kava/x/auction/types" auctiontypes "github.com/0glabs/0g-chain/x/auction/types"
"github.com/kava-labs/kava/x/bep3" "github.com/0glabs/0g-chain/x/bep3"
bep3keeper "github.com/kava-labs/kava/x/bep3/keeper" bep3keeper "github.com/0glabs/0g-chain/x/bep3/keeper"
bep3types "github.com/kava-labs/kava/x/bep3/types" bep3types "github.com/0glabs/0g-chain/x/bep3/types"
"github.com/kava-labs/kava/x/cdp" "github.com/0glabs/0g-chain/x/cdp"
cdpkeeper "github.com/kava-labs/kava/x/cdp/keeper" cdpkeeper "github.com/0glabs/0g-chain/x/cdp/keeper"
cdptypes "github.com/kava-labs/kava/x/cdp/types" cdptypes "github.com/0glabs/0g-chain/x/cdp/types"
"github.com/kava-labs/kava/x/committee" "github.com/0glabs/0g-chain/x/committee"
committeeclient "github.com/kava-labs/kava/x/committee/client" committeeclient "github.com/0glabs/0g-chain/x/committee/client"
committeekeeper "github.com/kava-labs/kava/x/committee/keeper" committeekeeper "github.com/0glabs/0g-chain/x/committee/keeper"
committeetypes "github.com/kava-labs/kava/x/committee/types" committeetypes "github.com/0glabs/0g-chain/x/committee/types"
"github.com/kava-labs/kava/x/community" "github.com/0glabs/0g-chain/x/community"
communityclient "github.com/kava-labs/kava/x/community/client" communityclient "github.com/0glabs/0g-chain/x/community/client"
communitykeeper "github.com/kava-labs/kava/x/community/keeper" communitykeeper "github.com/0glabs/0g-chain/x/community/keeper"
communitytypes "github.com/kava-labs/kava/x/community/types" communitytypes "github.com/0glabs/0g-chain/x/community/types"
earn "github.com/kava-labs/kava/x/earn" earn "github.com/0glabs/0g-chain/x/earn"
earnclient "github.com/kava-labs/kava/x/earn/client" earnclient "github.com/0glabs/0g-chain/x/earn/client"
earnkeeper "github.com/kava-labs/kava/x/earn/keeper" earnkeeper "github.com/0glabs/0g-chain/x/earn/keeper"
earntypes "github.com/kava-labs/kava/x/earn/types" earntypes "github.com/0glabs/0g-chain/x/earn/types"
evmutil "github.com/kava-labs/kava/x/evmutil" evmutil "github.com/0glabs/0g-chain/x/evmutil"
evmutilkeeper "github.com/kava-labs/kava/x/evmutil/keeper" evmutilkeeper "github.com/0glabs/0g-chain/x/evmutil/keeper"
evmutiltypes "github.com/kava-labs/kava/x/evmutil/types" evmutiltypes "github.com/0glabs/0g-chain/x/evmutil/types"
"github.com/kava-labs/kava/x/hard" "github.com/0glabs/0g-chain/x/hard"
hardkeeper "github.com/kava-labs/kava/x/hard/keeper" hardkeeper "github.com/0glabs/0g-chain/x/hard/keeper"
hardtypes "github.com/kava-labs/kava/x/hard/types" hardtypes "github.com/0glabs/0g-chain/x/hard/types"
"github.com/kava-labs/kava/x/incentive" "github.com/0glabs/0g-chain/x/incentive"
incentivekeeper "github.com/kava-labs/kava/x/incentive/keeper" incentivekeeper "github.com/0glabs/0g-chain/x/incentive/keeper"
incentivetypes "github.com/kava-labs/kava/x/incentive/types" incentivetypes "github.com/0glabs/0g-chain/x/incentive/types"
issuance "github.com/kava-labs/kava/x/issuance" issuance "github.com/0glabs/0g-chain/x/issuance"
issuancekeeper "github.com/kava-labs/kava/x/issuance/keeper" issuancekeeper "github.com/0glabs/0g-chain/x/issuance/keeper"
issuancetypes "github.com/kava-labs/kava/x/issuance/types" issuancetypes "github.com/0glabs/0g-chain/x/issuance/types"
"github.com/kava-labs/kava/x/kavadist" "github.com/0glabs/0g-chain/x/kavadist"
kavadistclient "github.com/kava-labs/kava/x/kavadist/client" kavadistclient "github.com/0glabs/0g-chain/x/kavadist/client"
kavadistkeeper "github.com/kava-labs/kava/x/kavadist/keeper" kavadistkeeper "github.com/0glabs/0g-chain/x/kavadist/keeper"
kavadisttypes "github.com/kava-labs/kava/x/kavadist/types" kavadisttypes "github.com/0glabs/0g-chain/x/kavadist/types"
"github.com/kava-labs/kava/x/liquid" "github.com/0glabs/0g-chain/x/liquid"
liquidkeeper "github.com/kava-labs/kava/x/liquid/keeper" liquidkeeper "github.com/0glabs/0g-chain/x/liquid/keeper"
liquidtypes "github.com/kava-labs/kava/x/liquid/types" liquidtypes "github.com/0glabs/0g-chain/x/liquid/types"
metrics "github.com/kava-labs/kava/x/metrics" metrics "github.com/0glabs/0g-chain/x/metrics"
metricstypes "github.com/kava-labs/kava/x/metrics/types" metricstypes "github.com/0glabs/0g-chain/x/metrics/types"
pricefeed "github.com/kava-labs/kava/x/pricefeed" pricefeed "github.com/0glabs/0g-chain/x/pricefeed"
pricefeedkeeper "github.com/kava-labs/kava/x/pricefeed/keeper" pricefeedkeeper "github.com/0glabs/0g-chain/x/pricefeed/keeper"
pricefeedtypes "github.com/kava-labs/kava/x/pricefeed/types" pricefeedtypes "github.com/0glabs/0g-chain/x/pricefeed/types"
"github.com/kava-labs/kava/x/router" "github.com/0glabs/0g-chain/x/router"
routerkeeper "github.com/kava-labs/kava/x/router/keeper" routerkeeper "github.com/0glabs/0g-chain/x/router/keeper"
routertypes "github.com/kava-labs/kava/x/router/types" routertypes "github.com/0glabs/0g-chain/x/router/types"
savings "github.com/kava-labs/kava/x/savings" savings "github.com/0glabs/0g-chain/x/savings"
savingskeeper "github.com/kava-labs/kava/x/savings/keeper" savingskeeper "github.com/0glabs/0g-chain/x/savings/keeper"
savingstypes "github.com/kava-labs/kava/x/savings/types" savingstypes "github.com/0glabs/0g-chain/x/savings/types"
"github.com/kava-labs/kava/x/swap" "github.com/0glabs/0g-chain/x/swap"
swapkeeper "github.com/kava-labs/kava/x/swap/keeper" swapkeeper "github.com/0glabs/0g-chain/x/swap/keeper"
swaptypes "github.com/kava-labs/kava/x/swap/types" swaptypes "github.com/0glabs/0g-chain/x/swap/types"
validatorvesting "github.com/kava-labs/kava/x/validator-vesting" validatorvesting "github.com/0glabs/0g-chain/x/validator-vesting"
validatorvestingrest "github.com/kava-labs/kava/x/validator-vesting/client/rest" validatorvestingrest "github.com/0glabs/0g-chain/x/validator-vesting/client/rest"
validatorvestingtypes "github.com/kava-labs/kava/x/validator-vesting/types" validatorvestingtypes "github.com/0glabs/0g-chain/x/validator-vesting/types"
) )
const ( const (

View File

@ -3,7 +3,7 @@ package app
import ( import (
enccodec "github.com/evmos/ethermint/encoding/codec" enccodec "github.com/evmos/ethermint/encoding/codec"
"github.com/kava-labs/kava/app/params" "github.com/0glabs/0g-chain/app/params"
) )
// MakeEncodingConfig creates an EncodingConfig and registers the app's types on it. // MakeEncodingConfig creates an EncodingConfig and registers the app's types on it.

View File

@ -2,16 +2,16 @@ package app
import ( import (
sdkmath "cosmossdk.io/math" sdkmath "cosmossdk.io/math"
earnkeeper "github.com/0glabs/0g-chain/x/earn/keeper"
liquidkeeper "github.com/0glabs/0g-chain/x/liquid/keeper"
liquidtypes "github.com/0glabs/0g-chain/x/liquid/types"
savingskeeper "github.com/0glabs/0g-chain/x/savings/keeper"
sdk "github.com/cosmos/cosmos-sdk/types" sdk "github.com/cosmos/cosmos-sdk/types"
bankkeeper "github.com/cosmos/cosmos-sdk/x/bank/keeper" bankkeeper "github.com/cosmos/cosmos-sdk/x/bank/keeper"
govkeeper "github.com/cosmos/cosmos-sdk/x/gov/keeper" govkeeper "github.com/cosmos/cosmos-sdk/x/gov/keeper"
govv1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1" govv1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1"
stakingkeeper "github.com/cosmos/cosmos-sdk/x/staking/keeper" stakingkeeper "github.com/cosmos/cosmos-sdk/x/staking/keeper"
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
earnkeeper "github.com/kava-labs/kava/x/earn/keeper"
liquidkeeper "github.com/kava-labs/kava/x/liquid/keeper"
liquidtypes "github.com/kava-labs/kava/x/liquid/types"
savingskeeper "github.com/kava-labs/kava/x/savings/keeper"
) )
var _ govv1.TallyHandler = TallyHandler{} var _ govv1.TallyHandler = TallyHandler{}

View File

@ -17,8 +17,8 @@ import (
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
"github.com/stretchr/testify/suite" "github.com/stretchr/testify/suite"
earntypes "github.com/kava-labs/kava/x/earn/types" earntypes "github.com/0glabs/0g-chain/x/earn/types"
liquidtypes "github.com/kava-labs/kava/x/liquid/types" liquidtypes "github.com/0glabs/0g-chain/x/liquid/types"
) )
// d is an alias for sdk.MustNewDecFromStr // d is an alias for sdk.MustNewDecFromStr

View File

@ -41,22 +41,22 @@ import (
feemarketkeeper "github.com/evmos/ethermint/x/feemarket/keeper" feemarketkeeper "github.com/evmos/ethermint/x/feemarket/keeper"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
auctionkeeper "github.com/kava-labs/kava/x/auction/keeper" auctionkeeper "github.com/0glabs/0g-chain/x/auction/keeper"
bep3keeper "github.com/kava-labs/kava/x/bep3/keeper" bep3keeper "github.com/0glabs/0g-chain/x/bep3/keeper"
cdpkeeper "github.com/kava-labs/kava/x/cdp/keeper" cdpkeeper "github.com/0glabs/0g-chain/x/cdp/keeper"
committeekeeper "github.com/kava-labs/kava/x/committee/keeper" committeekeeper "github.com/0glabs/0g-chain/x/committee/keeper"
communitykeeper "github.com/kava-labs/kava/x/community/keeper" communitykeeper "github.com/0glabs/0g-chain/x/community/keeper"
earnkeeper "github.com/kava-labs/kava/x/earn/keeper" earnkeeper "github.com/0glabs/0g-chain/x/earn/keeper"
evmutilkeeper "github.com/kava-labs/kava/x/evmutil/keeper" evmutilkeeper "github.com/0glabs/0g-chain/x/evmutil/keeper"
hardkeeper "github.com/kava-labs/kava/x/hard/keeper" hardkeeper "github.com/0glabs/0g-chain/x/hard/keeper"
incentivekeeper "github.com/kava-labs/kava/x/incentive/keeper" incentivekeeper "github.com/0glabs/0g-chain/x/incentive/keeper"
issuancekeeper "github.com/kava-labs/kava/x/issuance/keeper" issuancekeeper "github.com/0glabs/0g-chain/x/issuance/keeper"
kavadistkeeper "github.com/kava-labs/kava/x/kavadist/keeper" kavadistkeeper "github.com/0glabs/0g-chain/x/kavadist/keeper"
liquidkeeper "github.com/kava-labs/kava/x/liquid/keeper" liquidkeeper "github.com/0glabs/0g-chain/x/liquid/keeper"
pricefeedkeeper "github.com/kava-labs/kava/x/pricefeed/keeper" pricefeedkeeper "github.com/0glabs/0g-chain/x/pricefeed/keeper"
routerkeeper "github.com/kava-labs/kava/x/router/keeper" routerkeeper "github.com/0glabs/0g-chain/x/router/keeper"
savingskeeper "github.com/kava-labs/kava/x/savings/keeper" savingskeeper "github.com/0glabs/0g-chain/x/savings/keeper"
swapkeeper "github.com/kava-labs/kava/x/swap/keeper" swapkeeper "github.com/0glabs/0g-chain/x/swap/keeper"
) )
var ( var (

View File

@ -7,7 +7,7 @@ proto-lint check-proto-lint: install-build-deps
proto-gen: install-build-deps proto-gen: install-build-deps
@echo "Generating go proto files" @echo "Generating go proto files"
@$(BUF) generate --template proto/buf.gen.gogo.yaml proto @$(BUF) generate --template proto/buf.gen.gogo.yaml proto
@cp -r out/github.com/kava-labs/kava/* ./ @cp -r out/github.com/0glabs/0g-chain/* ./
@rm -rf out/github.com @rm -rf out/github.com
.PHONY: check-proto-gen .PHONY: check-proto-gen

View File

@ -28,7 +28,7 @@ import (
"github.com/cosmos/cosmos-sdk/x/slashing" "github.com/cosmos/cosmos-sdk/x/slashing"
"github.com/cosmos/cosmos-sdk/x/staking" "github.com/cosmos/cosmos-sdk/x/staking"
"github.com/kava-labs/kava/app" "github.com/0glabs/0g-chain/app"
) )
const ( const (

View File

@ -7,7 +7,7 @@
}, },
"externalDocs": { "externalDocs": {
"description": "GitHub", "description": "GitHub",
"url": "https://github.com/Kava-Labs/kava" "url": "https://github.com/0glabs/0g-chain"
}, },
"host": "api.data.kava.io", "host": "api.data.kava.io",
"schemes": ["https"], "schemes": ["https"],

View File

@ -5,7 +5,7 @@ info:
version: 1.0.0 version: 1.0.0
externalDocs: externalDocs:
description: GitHub description: GitHub
url: https://github.com/Kava-Labs/kava url: https://github.com/0glabs/0g-chain
host: api.data.kava.io host: api.data.kava.io
schemes: schemes:
- https - https

View File

@ -16,7 +16,7 @@ The Kava gRPC client is a tool for making gRPC queries on a Kava chain.
package main package main
import ( import (
kavaGrpc "github.com/kava-labs/kava/client/grpc" kavaGrpc "github.com/0glabs/0g-chain/client/grpc"
) )
grpcUrl := "https://grpc.kava.io:443" grpcUrl := "https://grpc.kava.io:443"
client, err := kavaGrpc.NewClient(grpcUrl) client, err := kavaGrpc.NewClient(grpcUrl)
@ -46,7 +46,7 @@ Example: Query Kava module `x/evmutil` for params
```go ```go
import ( import (
evmutiltypes "github.com/kava-labs/kava/x/evmutil/types" evmutiltypes "github.com/0glabs/0g-chain/x/evmutil/types"
) )
rsp, err := client.Query.Evmutil.Params( rsp, err := client.Query.Evmutil.Params(

View File

@ -3,8 +3,8 @@ package grpc
import ( import (
"errors" "errors"
"github.com/kava-labs/kava/client/grpc/query" "github.com/0glabs/0g-chain/client/grpc/query"
"github.com/kava-labs/kava/client/grpc/util" "github.com/0glabs/0g-chain/client/grpc/util"
) )
// KavaGrpcClient enables the usage of kava grpc query clients and query utils // KavaGrpcClient enables the usage of kava grpc query clients and query utils

View File

@ -3,7 +3,7 @@ package grpc_test
import ( import (
"testing" "testing"
"github.com/kava-labs/kava/client/grpc" "github.com/0glabs/0g-chain/client/grpc"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View File

@ -24,21 +24,21 @@ import (
evmtypes "github.com/evmos/ethermint/x/evm/types" evmtypes "github.com/evmos/ethermint/x/evm/types"
feemarkettypes "github.com/evmos/ethermint/x/feemarket/types" feemarkettypes "github.com/evmos/ethermint/x/feemarket/types"
auctiontypes "github.com/kava-labs/kava/x/auction/types" auctiontypes "github.com/0glabs/0g-chain/x/auction/types"
bep3types "github.com/kava-labs/kava/x/bep3/types" bep3types "github.com/0glabs/0g-chain/x/bep3/types"
cdptypes "github.com/kava-labs/kava/x/cdp/types" cdptypes "github.com/0glabs/0g-chain/x/cdp/types"
committeetypes "github.com/kava-labs/kava/x/committee/types" committeetypes "github.com/0glabs/0g-chain/x/committee/types"
communitytypes "github.com/kava-labs/kava/x/community/types" communitytypes "github.com/0glabs/0g-chain/x/community/types"
earntypes "github.com/kava-labs/kava/x/earn/types" earntypes "github.com/0glabs/0g-chain/x/earn/types"
evmutiltypes "github.com/kava-labs/kava/x/evmutil/types" evmutiltypes "github.com/0glabs/0g-chain/x/evmutil/types"
hardtypes "github.com/kava-labs/kava/x/hard/types" hardtypes "github.com/0glabs/0g-chain/x/hard/types"
incentivetypes "github.com/kava-labs/kava/x/incentive/types" incentivetypes "github.com/0glabs/0g-chain/x/incentive/types"
issuancetypes "github.com/kava-labs/kava/x/issuance/types" issuancetypes "github.com/0glabs/0g-chain/x/issuance/types"
kavadisttypes "github.com/kava-labs/kava/x/kavadist/types" kavadisttypes "github.com/0glabs/0g-chain/x/kavadist/types"
liquidtypes "github.com/kava-labs/kava/x/liquid/types" liquidtypes "github.com/0glabs/0g-chain/x/liquid/types"
pricefeedtypes "github.com/kava-labs/kava/x/pricefeed/types" pricefeedtypes "github.com/0glabs/0g-chain/x/pricefeed/types"
savingstypes "github.com/kava-labs/kava/x/savings/types" savingstypes "github.com/0glabs/0g-chain/x/savings/types"
swaptypes "github.com/kava-labs/kava/x/swap/types" swaptypes "github.com/0glabs/0g-chain/x/swap/types"
) )
// QueryClient is a wrapper with all Cosmos and Kava grpc query clients // QueryClient is a wrapper with all Cosmos and Kava grpc query clients

View File

@ -3,7 +3,7 @@ package query_test
import ( import (
"testing" "testing"
"github.com/kava-labs/kava/client/grpc/query" "github.com/0glabs/0g-chain/client/grpc/query"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View File

@ -7,9 +7,9 @@ import (
grpctypes "github.com/cosmos/cosmos-sdk/types/grpc" grpctypes "github.com/cosmos/cosmos-sdk/types/grpc"
"google.golang.org/grpc/metadata" "google.golang.org/grpc/metadata"
"github.com/kava-labs/kava/app" "github.com/0glabs/0g-chain/app"
"github.com/kava-labs/kava/app/params" "github.com/0glabs/0g-chain/app/params"
query "github.com/kava-labs/kava/client/grpc/query" query "github.com/0glabs/0g-chain/client/grpc/query"
) )
// Util contains utility functions for the Kava gRPC client // Util contains utility functions for the Kava gRPC client

View File

@ -13,6 +13,7 @@ import (
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
simappparams "cosmossdk.io/simapp/params" simappparams "cosmossdk.io/simapp/params"
"github.com/0glabs/0g-chain/client/rest"
"github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/client/flags"
"github.com/cosmos/cosmos-sdk/codec" "github.com/cosmos/cosmos-sdk/codec"
@ -20,7 +21,6 @@ import (
"github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1"
cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
"github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types"
"github.com/kava-labs/kava/client/rest"
) )
func TestBaseReq_Sanitize(t *testing.T) { func TestBaseReq_Sanitize(t *testing.T) {

View File

@ -23,9 +23,9 @@ import (
"github.com/spf13/cast" "github.com/spf13/cast"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/kava-labs/kava/app" "github.com/0glabs/0g-chain/app"
"github.com/kava-labs/kava/app/params" "github.com/0glabs/0g-chain/app/params"
metricstypes "github.com/kava-labs/kava/x/metrics/types" metricstypes "github.com/0glabs/0g-chain/x/metrics/types"
) )
const ( const (

View File

@ -9,8 +9,8 @@ import (
genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types" genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/kava-labs/kava/app" "github.com/0glabs/0g-chain/app"
"github.com/kava-labs/kava/app/params" "github.com/0glabs/0g-chain/app/params"
) )
func AssertInvariantsCmd(config params.EncodingConfig) *cobra.Command { func AssertInvariantsCmd(config params.EncodingConfig) *cobra.Command {

View File

@ -7,7 +7,7 @@ import (
authcmd "github.com/cosmos/cosmos-sdk/x/auth/client/cli" authcmd "github.com/cosmos/cosmos-sdk/x/auth/client/cli"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/kava-labs/kava/app" "github.com/0glabs/0g-chain/app"
) )
// newQueryCmd creates all the commands for querying blockchain state. // newQueryCmd creates all the commands for querying blockchain state.

View File

@ -14,9 +14,9 @@ import (
"syscall" "syscall"
"time" "time"
"github.com/0glabs/0g-chain/cmd/kava/opendb"
"github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/server" "github.com/cosmos/cosmos-sdk/server"
"github.com/kava-labs/kava/cmd/kava/opendb"
"github.com/linxGnu/grocksdb" "github.com/linxGnu/grocksdb"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"golang.org/x/exp/slices" "golang.org/x/exp/slices"

View File

@ -23,16 +23,16 @@ import (
servercfg "github.com/evmos/ethermint/server/config" servercfg "github.com/evmos/ethermint/server/config"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/kava-labs/kava/app" "github.com/0glabs/0g-chain/app"
"github.com/kava-labs/kava/app/params" "github.com/0glabs/0g-chain/app/params"
"github.com/kava-labs/kava/cmd/kava/cmd/rocksdb" "github.com/0glabs/0g-chain/cmd/0gchain/cmd/rocksdb"
"github.com/kava-labs/kava/cmd/kava/opendb" "github.com/0glabs/0g-chain/cmd/0gchain/opendb"
) )
// EnvPrefix is the prefix environment variables must have to configure the app. // EnvPrefix is the prefix environment variables must have to configure the app.
const EnvPrefix = "KAVA" const EnvPrefix = "0GCHAIN"
// NewRootCmd creates a new root command for the kava blockchain. // NewRootCmd creates a new root command for the 0gchain blockchain.
func NewRootCmd() *cobra.Command { func NewRootCmd() *cobra.Command {
app.SetSDKConfig().Seal() app.SetSDKConfig().Seal()
@ -51,8 +51,8 @@ func NewRootCmd() *cobra.Command {
WithViper(EnvPrefix) WithViper(EnvPrefix)
rootCmd := &cobra.Command{ rootCmd := &cobra.Command{
Use: "kava", Use: "0g-chain",
Short: "Daemon and CLI for the Kava blockchain.", Short: "Daemon and CLI for the 0g-chain blockchain.",
PersistentPreRunE: func(cmd *cobra.Command, _ []string) error { PersistentPreRunE: func(cmd *cobra.Command, _ []string) error {
cmd.SetOut(cmd.OutOrStdout()) cmd.SetOut(cmd.OutOrStdout())
cmd.SetErr(cmd.ErrOrStderr()) cmd.SetErr(cmd.ErrOrStderr())
@ -71,7 +71,7 @@ func NewRootCmd() *cobra.Command {
return err return err
} }
customAppTemplate, customAppConfig := servercfg.AppConfig("ukava") customAppTemplate, customAppConfig := servercfg.AppConfig("ukava") // TODO: merge evmos
return server.InterceptConfigsPreRunHandler( return server.InterceptConfigsPreRunHandler(
cmd, cmd,
@ -87,7 +87,7 @@ func NewRootCmd() *cobra.Command {
return rootCmd return rootCmd
} }
// addSubCmds registers all the sub commands used by kava. // addSubCmds registers all the sub commands used by 0gchain.
func addSubCmds(rootCmd *cobra.Command, encodingConfig params.EncodingConfig, defaultNodeHome string) { func addSubCmds(rootCmd *cobra.Command, encodingConfig params.EncodingConfig, defaultNodeHome string) {
gentxModule, ok := app.ModuleBasics[genutiltypes.ModuleName].(genutil.AppModuleBasic) gentxModule, ok := app.ModuleBasics[genutiltypes.ModuleName].(genutil.AppModuleBasic)
if !ok { if !ok {

View File

@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"strings" "strings"
"github.com/kava-labs/kava/app" "github.com/0glabs/0g-chain/app"
"github.com/spf13/cobra" "github.com/spf13/cobra"
dbm "github.com/cometbft/cometbft-db" dbm "github.com/cometbft/cometbft-db"

View File

@ -6,7 +6,7 @@ import (
authcmd "github.com/cosmos/cosmos-sdk/x/auth/client/cli" authcmd "github.com/cosmos/cosmos-sdk/x/auth/client/cli"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/kava-labs/kava/app" "github.com/0glabs/0g-chain/app"
) )
// newTxCmd creates all commands for submitting blockchain transactions. // newTxCmd creates all commands for submitting blockchain transactions.

View File

@ -6,8 +6,8 @@ import (
"github.com/cosmos/cosmos-sdk/server" "github.com/cosmos/cosmos-sdk/server"
svrcmd "github.com/cosmos/cosmos-sdk/server/cmd" svrcmd "github.com/cosmos/cosmos-sdk/server/cmd"
"github.com/kava-labs/kava/app" "github.com/0glabs/0g-chain/app"
"github.com/kava-labs/kava/cmd/kava/cmd" "github.com/0glabs/0g-chain/cmd/0gchain/cmd"
) )
func main() { func main() {

View File

@ -1,9 +1,9 @@
version: '3' version: '3'
services: services:
kvdnode0: 0gchnode0:
container_name: kvdnode0 container_name: 0gchnode0
image: "kava/kavanode" image: "0glabs/0gchain-node"
ports: ports:
- "26656-26657:26656-26657" - "26656-26657:26656-26657"
environment: environment:
@ -15,9 +15,9 @@ services:
localnet: localnet:
ipv4_address: 192.168.10.2 ipv4_address: 192.168.10.2
kvdnode1: 0gchnode1:
container_name: kvdnode1 container_name: 0gchnode1
image: "kava/kavanode" image: "0glabs/0gchain-node"
ports: ports:
- "26659-26660:26656-26657" - "26659-26660:26656-26657"
environment: environment:
@ -29,9 +29,9 @@ services:
localnet: localnet:
ipv4_address: 192.168.10.3 ipv4_address: 192.168.10.3
kvdnode2: 0gchnode2:
container_name: kvdnode2 container_name: 0gchnode2
image: "kava/kavanode" image: "0glabs/0gchain-node"
environment: environment:
- ID=2 - ID=2
- LOG=${LOG:-kvd.log} - LOG=${LOG:-kvd.log}
@ -43,9 +43,9 @@ services:
localnet: localnet:
ipv4_address: 192.168.10.4 ipv4_address: 192.168.10.4
kvdnode3: 0gchnode3:
container_name: kvdnode3 container_name: 0gchnode3
image: "kava/kavanode" image: "0glabs/0gchain-node"
environment: environment:
- ID=3 - ID=3
- LOG=${LOG:-kvd.log} - LOG=${LOG:-kvd.log}

2
go.mod
View File

@ -1,4 +1,4 @@
module github.com/kava-labs/kava module github.com/0glabs/0g-chain
go 1.21 go 1.21

View File

@ -1,4 +1,4 @@
all: all:
docker build --tag kava/kavanode kavanode docker build --tag 0glabs/0gchain-node 0gchain-node
.PHONY: all .PHONY: all

View File

@ -6,7 +6,7 @@ import "cosmos_proto/cosmos.proto";
import "gogoproto/gogo.proto"; import "gogoproto/gogo.proto";
import "google/protobuf/timestamp.proto"; import "google/protobuf/timestamp.proto";
option go_package = "github.com/kava-labs/kava/x/auction/types"; option go_package = "github.com/0glabs/0g-chain/x/auction/types";
option (gogoproto.goproto_getters_all) = false; option (gogoproto.goproto_getters_all) = false;
// BaseAuction defines common attributes of all auctions // BaseAuction defines common attributes of all auctions

View File

@ -6,7 +6,7 @@ import "gogoproto/gogo.proto";
import "google/protobuf/any.proto"; import "google/protobuf/any.proto";
import "google/protobuf/duration.proto"; import "google/protobuf/duration.proto";
option go_package = "github.com/kava-labs/kava/x/auction/types"; option go_package = "github.com/0glabs/0g-chain/x/auction/types";
option (gogoproto.goproto_getters_all) = false; option (gogoproto.goproto_getters_all) = false;
// GenesisState defines the auction module's genesis state. // GenesisState defines the auction module's genesis state.

View File

@ -7,7 +7,7 @@ import "google/api/annotations.proto";
import "google/protobuf/any.proto"; import "google/protobuf/any.proto";
import "kava/auction/v1beta1/genesis.proto"; import "kava/auction/v1beta1/genesis.proto";
option go_package = "github.com/kava-labs/kava/x/auction/types"; option go_package = "github.com/0glabs/0g-chain/x/auction/types";
// Query defines the gRPC querier service for auction module // Query defines the gRPC querier service for auction module
service Query { service Query {

View File

@ -4,7 +4,7 @@ package kava.auction.v1beta1;
import "cosmos/base/v1beta1/coin.proto"; import "cosmos/base/v1beta1/coin.proto";
import "gogoproto/gogo.proto"; import "gogoproto/gogo.proto";
option go_package = "github.com/kava-labs/kava/x/auction/types"; option go_package = "github.com/0glabs/0g-chain/x/auction/types";
// Msg defines the auction Msg service. // Msg defines the auction Msg service.
service Msg { service Msg {

View File

@ -6,7 +6,7 @@ import "cosmos_proto/cosmos.proto";
import "gogoproto/gogo.proto"; import "gogoproto/gogo.proto";
import "google/protobuf/duration.proto"; import "google/protobuf/duration.proto";
option go_package = "github.com/kava-labs/kava/x/bep3/types"; option go_package = "github.com/0glabs/0g-chain/x/bep3/types";
// Params defines the parameters for the bep3 module. // Params defines the parameters for the bep3 module.
message Params { message Params {

View File

@ -5,7 +5,7 @@ import "gogoproto/gogo.proto";
import "google/protobuf/timestamp.proto"; import "google/protobuf/timestamp.proto";
import "kava/bep3/v1beta1/bep3.proto"; import "kava/bep3/v1beta1/bep3.proto";
option go_package = "github.com/kava-labs/kava/x/bep3/types"; option go_package = "github.com/0glabs/0g-chain/x/bep3/types";
// GenesisState defines the pricefeed module's genesis state. // GenesisState defines the pricefeed module's genesis state.
message GenesisState { message GenesisState {

View File

@ -9,7 +9,7 @@ import "google/api/annotations.proto";
import "google/protobuf/duration.proto"; import "google/protobuf/duration.proto";
import "kava/bep3/v1beta1/bep3.proto"; import "kava/bep3/v1beta1/bep3.proto";
option go_package = "github.com/kava-labs/kava/x/bep3/types"; option go_package = "github.com/0glabs/0g-chain/x/bep3/types";
// Query defines the gRPC querier service for bep3 module // Query defines the gRPC querier service for bep3 module
service Query { service Query {

View File

@ -5,7 +5,7 @@ import "cosmos/base/v1beta1/coin.proto";
import "cosmos_proto/cosmos.proto"; import "cosmos_proto/cosmos.proto";
import "gogoproto/gogo.proto"; import "gogoproto/gogo.proto";
option go_package = "github.com/kava-labs/kava/x/bep3/types"; option go_package = "github.com/0glabs/0g-chain/x/bep3/types";
// Msg defines the bep3 Msg service. // Msg defines the bep3 Msg service.
service Msg { service Msg {

View File

@ -6,7 +6,7 @@ import "cosmos_proto/cosmos.proto";
import "gogoproto/gogo.proto"; import "gogoproto/gogo.proto";
import "google/protobuf/timestamp.proto"; import "google/protobuf/timestamp.proto";
option go_package = "github.com/kava-labs/kava/x/cdp/types"; option go_package = "github.com/0glabs/0g-chain/x/cdp/types";
option (gogoproto.goproto_getters_all) = false; option (gogoproto.goproto_getters_all) = false;
// CDP defines the state of a single collateralized debt position. // CDP defines the state of a single collateralized debt position.

View File

@ -7,7 +7,7 @@ import "gogoproto/gogo.proto";
import "google/protobuf/timestamp.proto"; import "google/protobuf/timestamp.proto";
import "kava/cdp/v1beta1/cdp.proto"; import "kava/cdp/v1beta1/cdp.proto";
option go_package = "github.com/kava-labs/kava/x/cdp/types"; option go_package = "github.com/0glabs/0g-chain/x/cdp/types";
// GenesisState defines the cdp module's genesis state. // GenesisState defines the cdp module's genesis state.
message GenesisState { message GenesisState {

View File

@ -11,7 +11,7 @@ import "google/protobuf/timestamp.proto";
import "kava/cdp/v1beta1/cdp.proto"; import "kava/cdp/v1beta1/cdp.proto";
import "kava/cdp/v1beta1/genesis.proto"; import "kava/cdp/v1beta1/genesis.proto";
option go_package = "github.com/kava-labs/kava/x/cdp/types"; option go_package = "github.com/0glabs/0g-chain/x/cdp/types";
// Query defines the gRPC querier service for cdp module // Query defines the gRPC querier service for cdp module
service Query { service Query {

View File

@ -5,7 +5,7 @@ import "cosmos/base/v1beta1/coin.proto";
import "cosmos_proto/cosmos.proto"; import "cosmos_proto/cosmos.proto";
import "gogoproto/gogo.proto"; import "gogoproto/gogo.proto";
option go_package = "github.com/kava-labs/kava/x/cdp/types"; option go_package = "github.com/0glabs/0g-chain/x/cdp/types";
// Msg defines the cdp Msg service. // Msg defines the cdp Msg service.
service Msg { service Msg {

View File

@ -6,7 +6,7 @@ import "gogoproto/gogo.proto";
import "google/protobuf/any.proto"; import "google/protobuf/any.proto";
import "google/protobuf/duration.proto"; import "google/protobuf/duration.proto";
option go_package = "github.com/kava-labs/kava/x/committee/types"; option go_package = "github.com/0glabs/0g-chain/x/committee/types";
option (gogoproto.goproto_getters_all) = false; option (gogoproto.goproto_getters_all) = false;
// BaseCommittee is a common type shared by all Committees // BaseCommittee is a common type shared by all Committees

View File

@ -6,7 +6,7 @@ import "gogoproto/gogo.proto";
import "google/protobuf/any.proto"; import "google/protobuf/any.proto";
import "google/protobuf/timestamp.proto"; import "google/protobuf/timestamp.proto";
option go_package = "github.com/kava-labs/kava/x/committee/types"; option go_package = "github.com/0glabs/0g-chain/x/committee/types";
// GenesisState defines the committee module's genesis state. // GenesisState defines the committee module's genesis state.
message GenesisState { message GenesisState {

View File

@ -4,7 +4,7 @@ package kava.committee.v1beta1;
import "cosmos_proto/cosmos.proto"; import "cosmos_proto/cosmos.proto";
import "gogoproto/gogo.proto"; import "gogoproto/gogo.proto";
option go_package = "github.com/kava-labs/kava/x/committee/types"; option go_package = "github.com/0glabs/0g-chain/x/committee/types";
// GodPermission allows any governance proposal. It is used mainly for testing. // GodPermission allows any governance proposal. It is used mainly for testing.
message GodPermission { message GodPermission {

View File

@ -5,7 +5,7 @@ import "cosmos_proto/cosmos.proto";
import "gogoproto/gogo.proto"; import "gogoproto/gogo.proto";
import "google/protobuf/any.proto"; import "google/protobuf/any.proto";
option go_package = "github.com/kava-labs/kava/x/committee/types"; option go_package = "github.com/0glabs/0g-chain/x/committee/types";
option (gogoproto.goproto_getters_all) = false; option (gogoproto.goproto_getters_all) = false;
// CommitteeChangeProposal is a gov proposal for creating a new committee or modifying an existing one. // CommitteeChangeProposal is a gov proposal for creating a new committee or modifying an existing one.

View File

@ -9,7 +9,7 @@ import "google/protobuf/any.proto";
import "google/protobuf/timestamp.proto"; import "google/protobuf/timestamp.proto";
import "kava/committee/v1beta1/genesis.proto"; import "kava/committee/v1beta1/genesis.proto";
option go_package = "github.com/kava-labs/kava/x/committee/types"; option go_package = "github.com/0glabs/0g-chain/x/committee/types";
option (gogoproto.goproto_getters_all) = false; option (gogoproto.goproto_getters_all) = false;
// Query defines the gRPC querier service for committee module // Query defines the gRPC querier service for committee module

View File

@ -6,7 +6,7 @@ import "gogoproto/gogo.proto";
import "google/protobuf/any.proto"; import "google/protobuf/any.proto";
import "kava/committee/v1beta1/genesis.proto"; import "kava/committee/v1beta1/genesis.proto";
option go_package = "github.com/kava-labs/kava/x/committee/types"; option go_package = "github.com/0glabs/0g-chain/x/committee/types";
option (gogoproto.goproto_getters_all) = false; option (gogoproto.goproto_getters_all) = false;
// Msg defines the committee Msg service // Msg defines the committee Msg service

View File

@ -5,7 +5,7 @@ import "gogoproto/gogo.proto";
import "kava/community/v1beta1/params.proto"; import "kava/community/v1beta1/params.proto";
import "kava/community/v1beta1/staking.proto"; import "kava/community/v1beta1/staking.proto";
option go_package = "github.com/kava-labs/kava/x/community/types"; option go_package = "github.com/0glabs/0g-chain/x/community/types";
// GenesisState defines the community module's genesis state. // GenesisState defines the community module's genesis state.
message GenesisState { message GenesisState {

View File

@ -5,7 +5,7 @@ import "cosmos_proto/cosmos.proto";
import "gogoproto/gogo.proto"; import "gogoproto/gogo.proto";
import "google/protobuf/timestamp.proto"; import "google/protobuf/timestamp.proto";
option go_package = "github.com/kava-labs/kava/x/community/types"; option go_package = "github.com/0glabs/0g-chain/x/community/types";
// Params defines the parameters of the community module. // Params defines the parameters of the community module.
message Params { message Params {

View File

@ -4,7 +4,7 @@ package kava.community.v1beta1;
import "cosmos/base/v1beta1/coin.proto"; import "cosmos/base/v1beta1/coin.proto";
import "gogoproto/gogo.proto"; import "gogoproto/gogo.proto";
option go_package = "github.com/kava-labs/kava/x/community/types"; option go_package = "github.com/0glabs/0g-chain/x/community/types";
// CommunityPoolLendDepositProposal deposits from the community pool into lend // CommunityPoolLendDepositProposal deposits from the community pool into lend
message CommunityPoolLendDepositProposal { message CommunityPoolLendDepositProposal {

View File

@ -7,7 +7,7 @@ import "gogoproto/gogo.proto";
import "google/api/annotations.proto"; import "google/api/annotations.proto";
import "kava/community/v1beta1/params.proto"; import "kava/community/v1beta1/params.proto";
option go_package = "github.com/kava-labs/kava/x/community/types"; option go_package = "github.com/0glabs/0g-chain/x/community/types";
// Query defines the gRPC querier service for x/community. // Query defines the gRPC querier service for x/community.
service Query { service Query {

View File

@ -5,7 +5,7 @@ import "cosmos_proto/cosmos.proto";
import "gogoproto/gogo.proto"; import "gogoproto/gogo.proto";
import "google/protobuf/timestamp.proto"; import "google/protobuf/timestamp.proto";
option go_package = "github.com/kava-labs/kava/x/community/types"; option go_package = "github.com/0glabs/0g-chain/x/community/types";
// StakingRewardsState represents the state of staking reward accumulation between blocks. // StakingRewardsState represents the state of staking reward accumulation between blocks.
message StakingRewardsState { message StakingRewardsState {

View File

@ -6,7 +6,7 @@ import "cosmos_proto/cosmos.proto";
import "gogoproto/gogo.proto"; import "gogoproto/gogo.proto";
import "kava/community/v1beta1/params.proto"; import "kava/community/v1beta1/params.proto";
option go_package = "github.com/kava-labs/kava/x/community/types"; option go_package = "github.com/0glabs/0g-chain/x/community/types";
option (gogoproto.equal_all) = true; option (gogoproto.equal_all) = true;
// Msg defines the community Msg service. // Msg defines the community Msg service.

View File

@ -5,7 +5,7 @@ import "gogoproto/gogo.proto";
import "kava/earn/v1beta1/params.proto"; import "kava/earn/v1beta1/params.proto";
import "kava/earn/v1beta1/vault.proto"; import "kava/earn/v1beta1/vault.proto";
option go_package = "github.com/kava-labs/kava/x/earn/types"; option go_package = "github.com/0glabs/0g-chain/x/earn/types";
// GenesisState defines the earn module's genesis state. // GenesisState defines the earn module's genesis state.
message GenesisState { message GenesisState {

View File

@ -4,7 +4,7 @@ package kava.earn.v1beta1;
import "gogoproto/gogo.proto"; import "gogoproto/gogo.proto";
import "kava/earn/v1beta1/vault.proto"; import "kava/earn/v1beta1/vault.proto";
option go_package = "github.com/kava-labs/kava/x/earn/types"; option go_package = "github.com/0glabs/0g-chain/x/earn/types";
// Params defines the parameters of the earn module. // Params defines the parameters of the earn module.
message Params { message Params {

View File

@ -4,7 +4,7 @@ package kava.earn.v1beta1;
import "cosmos/base/v1beta1/coin.proto"; import "cosmos/base/v1beta1/coin.proto";
import "gogoproto/gogo.proto"; import "gogoproto/gogo.proto";
option go_package = "github.com/kava-labs/kava/x/earn/types"; option go_package = "github.com/0glabs/0g-chain/x/earn/types";
// CommunityPoolDepositProposal deposits from the community pool into an earn vault // CommunityPoolDepositProposal deposits from the community pool into an earn vault
message CommunityPoolDepositProposal { message CommunityPoolDepositProposal {

View File

@ -10,7 +10,7 @@ import "kava/earn/v1beta1/params.proto";
import "kava/earn/v1beta1/strategy.proto"; import "kava/earn/v1beta1/strategy.proto";
import "kava/earn/v1beta1/vault.proto"; import "kava/earn/v1beta1/vault.proto";
option go_package = "github.com/kava-labs/kava/x/earn/types"; option go_package = "github.com/0glabs/0g-chain/x/earn/types";
option (gogoproto.goproto_getters_all) = false; option (gogoproto.goproto_getters_all) = false;
// Query defines the gRPC querier service for earn module // Query defines the gRPC querier service for earn module

View File

@ -3,7 +3,7 @@ package kava.earn.v1beta1;
import "gogoproto/gogo.proto"; import "gogoproto/gogo.proto";
option go_package = "github.com/kava-labs/kava/x/earn/types"; option go_package = "github.com/0glabs/0g-chain/x/earn/types";
// StrategyType is the type of strategy that a vault uses to optimize yields. // StrategyType is the type of strategy that a vault uses to optimize yields.
enum StrategyType { enum StrategyType {

View File

@ -7,7 +7,7 @@ import "gogoproto/gogo.proto";
import "kava/earn/v1beta1/strategy.proto"; import "kava/earn/v1beta1/strategy.proto";
import "kava/earn/v1beta1/vault.proto"; import "kava/earn/v1beta1/vault.proto";
option go_package = "github.com/kava-labs/kava/x/earn/types"; option go_package = "github.com/0glabs/0g-chain/x/earn/types";
// Msg defines the earn Msg service. // Msg defines the earn Msg service.
service Msg { service Msg {

View File

@ -5,7 +5,7 @@ import "cosmos_proto/cosmos.proto";
import "gogoproto/gogo.proto"; import "gogoproto/gogo.proto";
import "kava/earn/v1beta1/strategy.proto"; import "kava/earn/v1beta1/strategy.proto";
option go_package = "github.com/kava-labs/kava/x/earn/types"; option go_package = "github.com/0glabs/0g-chain/x/earn/types";
// AllowedVault is a vault that is allowed to be created. These can be // AllowedVault is a vault that is allowed to be created. These can be
// modified via parameter governance. // modified via parameter governance.

View File

@ -3,7 +3,7 @@ package kava.evmutil.v1beta1;
import "gogoproto/gogo.proto"; import "gogoproto/gogo.proto";
option go_package = "github.com/kava-labs/kava/x/evmutil/types"; option go_package = "github.com/0glabs/0g-chain/x/evmutil/types";
option (gogoproto.equal_all) = true; option (gogoproto.equal_all) = true;
option (gogoproto.verbose_equal_all) = true; option (gogoproto.verbose_equal_all) = true;

View File

@ -5,7 +5,7 @@ import "cosmos_proto/cosmos.proto";
import "gogoproto/gogo.proto"; import "gogoproto/gogo.proto";
import "kava/evmutil/v1beta1/conversion_pair.proto"; import "kava/evmutil/v1beta1/conversion_pair.proto";
option go_package = "github.com/kava-labs/kava/x/evmutil/types"; option go_package = "github.com/0glabs/0g-chain/x/evmutil/types";
option (gogoproto.equal_all) = true; option (gogoproto.equal_all) = true;
option (gogoproto.verbose_equal_all) = true; option (gogoproto.verbose_equal_all) = true;

View File

@ -6,7 +6,7 @@ import "gogoproto/gogo.proto";
import "google/api/annotations.proto"; import "google/api/annotations.proto";
import "kava/evmutil/v1beta1/genesis.proto"; import "kava/evmutil/v1beta1/genesis.proto";
option go_package = "github.com/kava-labs/kava/x/evmutil/types"; option go_package = "github.com/0glabs/0g-chain/x/evmutil/types";
// Query defines the gRPC querier service for evmutil module // Query defines the gRPC querier service for evmutil module
service Query { service Query {

View File

@ -5,7 +5,7 @@ import "cosmos/base/v1beta1/coin.proto";
import "cosmos_proto/cosmos.proto"; import "cosmos_proto/cosmos.proto";
import "gogoproto/gogo.proto"; import "gogoproto/gogo.proto";
option go_package = "github.com/kava-labs/kava/x/evmutil/types"; option go_package = "github.com/0glabs/0g-chain/x/evmutil/types";
option (gogoproto.equal_all) = true; option (gogoproto.equal_all) = true;
option (gogoproto.verbose_equal_all) = true; option (gogoproto.verbose_equal_all) = true;

View File

@ -7,7 +7,7 @@ import "gogoproto/gogo.proto";
import "google/protobuf/timestamp.proto"; import "google/protobuf/timestamp.proto";
import "kava/hard/v1beta1/hard.proto"; import "kava/hard/v1beta1/hard.proto";
option go_package = "github.com/kava-labs/kava/x/hard/types"; option go_package = "github.com/0glabs/0g-chain/x/hard/types";
// GenesisState defines the hard module's genesis state. // GenesisState defines the hard module's genesis state.
message GenesisState { message GenesisState {

View File

@ -5,7 +5,7 @@ import "cosmos/base/v1beta1/coin.proto";
import "cosmos_proto/cosmos.proto"; import "cosmos_proto/cosmos.proto";
import "gogoproto/gogo.proto"; import "gogoproto/gogo.proto";
option go_package = "github.com/kava-labs/kava/x/hard/types"; option go_package = "github.com/0glabs/0g-chain/x/hard/types";
option (gogoproto.goproto_getters_all) = false; option (gogoproto.goproto_getters_all) = false;
// Params defines the parameters for the hard module. // Params defines the parameters for the hard module.

View File

@ -9,7 +9,7 @@ import "gogoproto/gogo.proto";
import "google/api/annotations.proto"; import "google/api/annotations.proto";
import "kava/hard/v1beta1/hard.proto"; import "kava/hard/v1beta1/hard.proto";
option go_package = "github.com/kava-labs/kava/x/hard/types"; option go_package = "github.com/0glabs/0g-chain/x/hard/types";
// Query defines the gRPC querier service for bep3 module. // Query defines the gRPC querier service for bep3 module.
service Query { service Query {

View File

@ -5,7 +5,7 @@ import "cosmos/base/v1beta1/coin.proto";
import "cosmos_proto/cosmos.proto"; import "cosmos_proto/cosmos.proto";
import "gogoproto/gogo.proto"; import "gogoproto/gogo.proto";
option go_package = "github.com/kava-labs/kava/x/hard/types"; option go_package = "github.com/0glabs/0g-chain/x/hard/types";
// Msg defines the hard Msg service. // Msg defines the hard Msg service.
service Msg { service Msg {

View File

@ -4,7 +4,7 @@ package kava.incentive.v1beta1;
import "cosmos_proto/cosmos.proto"; import "cosmos_proto/cosmos.proto";
import "gogoproto/gogo.proto"; import "gogoproto/gogo.proto";
option go_package = "github.com/kava-labs/kava/x/incentive/types"; option go_package = "github.com/0glabs/0g-chain/x/incentive/types";
// Apy contains the calculated APY for a given collateral type at a specific // Apy contains the calculated APY for a given collateral type at a specific
// instant in time. // instant in time.

View File

@ -5,7 +5,7 @@ import "cosmos/base/v1beta1/coin.proto";
import "cosmos_proto/cosmos.proto"; import "cosmos_proto/cosmos.proto";
import "gogoproto/gogo.proto"; import "gogoproto/gogo.proto";
option go_package = "github.com/kava-labs/kava/x/incentive/types"; option go_package = "github.com/0glabs/0g-chain/x/incentive/types";
option (gogoproto.goproto_getters_all) = false; option (gogoproto.goproto_getters_all) = false;
// -------------- Base Claim Types, Reward Indexes -------------- // -------------- Base Claim Types, Reward Indexes --------------

View File

@ -9,7 +9,7 @@ import "kava/incentive/v1beta1/params.proto";
// import "cosmos/base/v1beta1/coin.proto"; // import "cosmos/base/v1beta1/coin.proto";
// import "cosmos/base/v1beta1/coins.proto"; // import "cosmos/base/v1beta1/coins.proto";
option go_package = "github.com/kava-labs/kava/x/incentive/types"; option go_package = "github.com/0glabs/0g-chain/x/incentive/types";
option (gogoproto.goproto_getters_all) = false; option (gogoproto.goproto_getters_all) = false;
// AccumulationTime stores the previous reward distribution time and its corresponding collateral type // AccumulationTime stores the previous reward distribution time and its corresponding collateral type

Some files were not shown because too many files have changed in this diff Show More