Skip to content

Commit

Permalink
rebase to develop and fix the lint and unit test error after rebasing
Browse files Browse the repository at this point in the history
  • Loading branch information
TimmyExogenous committed Sep 17, 2024
1 parent 865b53c commit 4be1be7
Show file tree
Hide file tree
Showing 7 changed files with 104 additions and 99 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ WORKDIR /go/src/github.com/ExocoreNetwork/exocore

COPY go.mod go.sum ./

RUN apk add --no-cache ca-certificates=20240226-r0 build-base=0.5-r3 git=2.43.4-r0 linux-headers=6.5-r0
RUN apk add --no-cache ca-certificates=20240226-r0 build-base=0.5-r3 git=2.43.5-r0 linux-headers=6.5-r0

RUN --mount=type=bind,target=. --mount=type=secret,id=GITHUB_TOKEN \
git config --global url."https://$(cat /run/secrets/GITHUB_TOKEN)@github.com/".insteadOf "https://github.com/"; \
Expand Down
2 changes: 1 addition & 1 deletion app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -1316,7 +1316,7 @@ func initParamsKeeper(
paramsKeeper.Subspace(banktypes.ModuleName)
paramsKeeper.Subspace(slashingtypes.ModuleName)
paramsKeeper.Subspace(govtypes.ModuleName).
WithKeyTable(govv1.ParamKeyTable()) // nolint:staticcheck
WithKeyTable(govv1.ParamKeyTable()) //nolint:staticcheck
paramsKeeper.Subspace(crisistypes.ModuleName)
paramsKeeper.Subspace(ibctransfertypes.ModuleName)
paramsKeeper.Subspace(ibcexported.ModuleName)
Expand Down
1 change: 0 additions & 1 deletion local_node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ if [[ $overwrite == "y" || $overwrite == "Y" ]]; then
jq '.app_state["assets"]["tokens"][0]["asset_basic_info"]["meta_info"]="Tether USD token"' "$GENESIS" >"$TMP_GENESIS" && mv "$TMP_GENESIS" "$GENESIS"
jq '.app_state["assets"]["tokens"][0]["asset_basic_info"]["address"]="0xdAC17F958D2ee523a2206206994597C13D831ec7"' "$GENESIS" >"$TMP_GENESIS" && mv "$TMP_GENESIS" "$GENESIS"
jq '.app_state["assets"]["tokens"][0]["asset_basic_info"]["layer_zero_chain_id"]="101"' "$GENESIS" >"$TMP_GENESIS" && mv "$TMP_GENESIS" "$GENESIS"
jq '.app_state["assets"]["tokens"][0]["asset_basic_info"]["total_supply"]="40022689732746729"' "$GENESIS" >"$TMP_GENESIS" && mv "$TMP_GENESIS" "$GENESIS"
jq '.app_state["assets"]["tokens"][0]["staking_total_amount"]="0"' "$GENESIS" >"$TMP_GENESIS" && mv "$TMP_GENESIS" "$GENESIS"
jq '.app_state["assets"]["deposits"][0]["staker"]="0x3e108c058e8066da635321dc3018294ca82ddedf_0x65"' "$GENESIS" >"$TMP_GENESIS" && mv "$TMP_GENESIS" "$GENESIS"
jq '.app_state["assets"]["deposits"][0]["deposits"][0]["asset_id"]="0xdac17f958d2ee523a2206206994597c13d831ec7_0x65"' "$GENESIS" >"$TMP_GENESIS" && mv "$TMP_GENESIS" "$GENESIS"
Expand Down
2 changes: 1 addition & 1 deletion networks/local/exocore/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM golang:1.21.12-alpine3.19 AS build
RUN apk add --no-cache build-base=0.5-r3 git=2.43.4-r0 linux-headers=6.5-r0
RUN apk add --no-cache build-base=0.5-r3 git=2.43.5-r0 linux-headers=6.5-r0
# Set working directory for the build
WORKDIR /go/work
# Add source files
Expand Down
4 changes: 3 additions & 1 deletion x/assets/types/genesis_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package types_test

import (
"fmt"
"strings"
"testing"

Expand Down Expand Up @@ -480,7 +481,7 @@ func (suite *GenesisTestSuite) TestValidateGenesis() {
unmalleate: func(gs *types.GenesisState) {
genesisDeposit.Deposits[0].Info = types.StakerAssetInfo{
TotalDepositAmount: math.NewInt(100),
WithdrawableAmount: math.NewInt(0),
WithdrawableAmount: math.NewInt(100),
PendingUndelegationAmount: math.NewInt(0),
}
gs.Deposits[0].Deposits[0].Info = genesisDeposit.Deposits[0].Info
Expand Down Expand Up @@ -511,6 +512,7 @@ func (suite *GenesisTestSuite) TestValidateGenesis() {
}
err := tc.genState.Validate()
if tc.expPass {
fmt.Println("name is:", tc.name)
suite.Require().NoError(err, tc.name)
} else {
suite.Require().Error(err, tc.name)
Expand Down
184 changes: 92 additions & 92 deletions x/assets/types/tx.pb.go

Large diffs are not rendered by default.

8 changes: 6 additions & 2 deletions x/oracle/types/nonce.pb.go

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

0 comments on commit 4be1be7

Please sign in to comment.