Skip to content

Commit

Permalink
chore: remove SDK replace to ics-lsm version
Browse files Browse the repository at this point in the history
  • Loading branch information
tbruyelle committed Aug 20, 2024
1 parent 9e75d78 commit 3dd5af4
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 22 deletions.
1 change: 1 addition & 0 deletions cmd/atomoned/cmd/testnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@ func initTestnetFiles(
sdk.NewCoin(sdk.DefaultBondDenom, valTokens),
stakingtypes.NewDescription(nodeDirName, "", "", "", ""),
stakingtypes.NewCommissionRates(math.LegacyOneDec(), math.LegacyOneDec(), math.LegacyOneDec()),
sdk.OneInt(),
)
if err != nil {
return err
Expand Down
6 changes: 0 additions & 6 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -212,12 +212,6 @@ replace (
// Use cosmos keyring
github.com/99designs/keyring => github.com/cosmos/keyring v1.2.0

// Use special SDK v0.47.x release with support for both ICS and LSM
github.com/cosmos/cosmos-sdk => github.com/cosmos/cosmos-sdk v0.47.10-ics-lsm

// Use special ICS v3.3.x release with support for LSM
github.com/cosmos/interchain-security/v3 => github.com/cosmos/interchain-security/v3 v3.3.3-lsm

// TODO: remove it: https://github.com/cosmos/cosmos-sdk/issues/13134
github.com/dgrijalva/jwt-go => github.com/golang-jwt/jwt/v4 v4.4.2

Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -396,8 +396,8 @@ github.com/cosmos/btcutil v1.0.5 h1:t+ZFcX77LpKtDBhjucvnOH8C2l2ioGsBNEQ3jef8xFk=
github.com/cosmos/btcutil v1.0.5/go.mod h1:IyB7iuqZMJlthe2tkIFL33xPyzbFYP0XVdS8P5lUPis=
github.com/cosmos/cosmos-proto v1.0.0-beta.4 h1:aEL7tU/rLOmxZQ9z4i7mzxcLbSCY48OdY7lIWTLG7oU=
github.com/cosmos/cosmos-proto v1.0.0-beta.4/go.mod h1:oeB+FyVzG3XrQJbJng0EnV8Vljfk9XvTIpGILNU/9Co=
github.com/cosmos/cosmos-sdk v0.47.10-ics-lsm h1:nW5xAl4SQchNExAkcPPTPpgu6CnEHc75g4JIKkVNgAI=
github.com/cosmos/cosmos-sdk v0.47.10-ics-lsm/go.mod h1:7lymTBqaezjxtEnVMwBNx0rXcOMoP49NUpYugIrjyus=
github.com/cosmos/cosmos-sdk v0.47.10 h1:Wxf5yEN3jZbG4fftxAMKB6rpd8ME0mxuCVihpz65dt0=
github.com/cosmos/cosmos-sdk v0.47.10/go.mod h1:UWpgWkhcsBIATS68uUC0del7IiBN4hPv/vqg8Zz23uw=
github.com/cosmos/go-bip39 v0.0.0-20180819234021-555e2067c45d/go.mod h1:tSxLoYXyBmiFeKpvmq4dzayMdCjCnu8uqmCysIGBT2Y=
github.com/cosmos/go-bip39 v1.0.0 h1:pcomnQdrdH22njcAatO0yWojsUnCO3y2tNoV1cb6hHY=
github.com/cosmos/go-bip39 v1.0.0/go.mod h1:RNJv0H/pOIVgxw6KS7QeX2a0Uo0aKUlfhZ4xuwvCdJw=
Expand Down
14 changes: 0 additions & 14 deletions tests/e2e/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,17 +266,3 @@ func queryAllEvidence(endpoint string) (evidencetypes.QueryAllEvidenceResponse,
}
return res, nil
}

func queryTokenizeShareRecordByID(endpoint string, recordID int) (stakingtypes.TokenizeShareRecord, error) {
var res stakingtypes.QueryTokenizeShareRecordByIdResponse

body, err := httpGet(fmt.Sprintf("%s/cosmos/staking/v1beta1/tokenize_share_record_by_id/%d", endpoint, recordID))
if err != nil {
return stakingtypes.TokenizeShareRecord{}, fmt.Errorf("failed to execute HTTP request: %w", err)
}

if err := cdc.UnmarshalJSON(body, &res); err != nil {
return stakingtypes.TokenizeShareRecord{}, err
}
return res.Record, nil
}
1 change: 1 addition & 0 deletions tests/e2e/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ func (v *validator) buildCreateValidatorMsg(amount sdk.Coin) (sdk.Msg, error) {
amount,
description,
commissionRates,
sdk.OneInt(),
)
}

Expand Down

0 comments on commit 3dd5af4

Please sign in to comment.