Skip to content
This repository was archived by the owner on Jul 25, 2025. It is now read-only.

Commit 0f14da3

Browse files
committed
fix: update go.mod deps
1 parent 4cd7f1e commit 0f14da3

File tree

7 files changed

+2493
-934
lines changed

7 files changed

+2493
-934
lines changed

go.mod

Lines changed: 150 additions & 94 deletions
Large diffs are not rendered by default.

go.sum

Lines changed: 2332 additions & 831 deletions
Large diffs are not rendered by default.

orchestrator/cosmos/network.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ func customEndpoints(cfg NetworkConfig) clientcommon.Network {
113113
c := clientcommon.LoadNetwork("devnet", "")
114114
c.Name = "custom"
115115
c.ChainId = cfg.ChainID
116-
c.Fee_denom = "inj"
116+
c.FeeDenom = "inj"
117117
c.TmEndpoint = cfg.TendermintRPC
118118
c.ChainGrpcEndpoint = cfg.CosmosGRPC
119119
c.ExplorerGrpcEndpoint = ""

orchestrator/cosmos/peggy/broadcast.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package peggy
22

33
import (
44
"context"
5+
sdkmath "cosmossdk.io/math"
56
"fmt"
67

78
cosmostypes "github.com/cosmos/cosmos-sdk/types"
@@ -235,7 +236,7 @@ func (c broadcastClient) SendOldDepositClaim(_ context.Context, deposit *peggyev
235236
EventNonce: deposit.EventNonce.Uint64(),
236237
BlockHeight: deposit.Raw.BlockNumber,
237238
TokenContract: deposit.TokenContract.Hex(),
238-
Amount: cosmostypes.NewIntFromBigInt(deposit.Amount),
239+
Amount: sdkmath.NewIntFromBigInt(deposit.Amount),
239240
EthereumSender: deposit.Sender.Hex(),
240241
CosmosReceiver: cosmostypes.AccAddress(deposit.Destination[12:32]).String(),
241242
Orchestrator: c.ChainClient.FromAddress().String(),
@@ -279,7 +280,7 @@ func (c broadcastClient) SendDepositClaim(_ context.Context, deposit *peggyevent
279280
EventNonce: deposit.EventNonce.Uint64(),
280281
BlockHeight: deposit.Raw.BlockNumber,
281282
TokenContract: deposit.TokenContract.Hex(),
282-
Amount: cosmostypes.NewIntFromBigInt(deposit.Amount),
283+
Amount: sdkmath.NewIntFromBigInt(deposit.Amount),
283284
EthereumSender: deposit.Sender.Hex(),
284285
CosmosReceiver: cosmostypes.AccAddress(deposit.Destination[12:32]).String(),
285286
Orchestrator: c.ChainClient.FromAddress().String(),
@@ -361,7 +362,7 @@ func (c broadcastClient) SendValsetClaim(_ context.Context, vs *peggyevents.Pegg
361362
EventNonce: vs.EventNonce.Uint64(),
362363
ValsetNonce: vs.NewValsetNonce.Uint64(),
363364
BlockHeight: vs.Raw.BlockNumber,
364-
RewardAmount: cosmostypes.NewIntFromBigInt(vs.RewardAmount),
365+
RewardAmount: sdkmath.NewIntFromBigInt(vs.RewardAmount),
365366
RewardToken: vs.RewardToken.Hex(),
366367
Members: members,
367368
Orchestrator: c.FromAddress().String(),

orchestrator/ethereum/util/peggy.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package util
22

33
import (
44
"bytes"
5+
sdkmath "cosmossdk.io/math"
56
"fmt"
67
"math/big"
78
"regexp"
@@ -62,7 +63,7 @@ func NewERC20Token(amount uint64, contract string) *ERC20Token {
6263

6364
// PeggyCoin returns the peggy representation of the ERC20
6465
func (e *ERC20Token) PeggyCoin() sdk.Coin {
65-
return sdk.NewCoin(fmt.Sprintf("%s/%s", PeggyDenomPrefix, e.Contract), sdk.NewIntFromBigInt(e.Amount))
66+
return sdk.NewCoin(fmt.Sprintf("%s/%s", PeggyDenomPrefix, e.Contract), sdkmath.NewIntFromBigInt(e.Amount))
6667
}
6768

6869
// ValidateBasic permforms stateless validation

orchestrator/pricefeed/coingecko.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import (
1010
"strings"
1111
"time"
1212

13+
sdkmath "cosmossdk.io/math"
1314
"github.com/InjectiveLabs/metrics"
14-
cosmtypes "github.com/cosmos/cosmos-sdk/types"
1515
"github.com/ethereum/go-ethereum/common"
1616
"github.com/pkg/errors"
1717
"github.com/shopspring/decimal"
@@ -153,7 +153,7 @@ func checkCoingeckoConfig(cfg *Config) *Config {
153153
return cfg
154154
}
155155

156-
func (cp *CoingeckoPriceFeed) CheckFeeThreshold(erc20Contract common.Address, totalFee cosmtypes.Int, minFeeInUSD float64) bool {
156+
func (cp *CoingeckoPriceFeed) CheckFeeThreshold(erc20Contract common.Address, totalFee sdkmath.Int, minFeeInUSD float64) bool {
157157
metrics.ReportFuncCall(cp.svcTags)
158158
doneFn := metrics.ReportFuncTiming(cp.svcTags)
159159
defer doneFn()

orchestrator/relayer.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ package orchestrator
22

33
import (
44
"context"
5+
sdkmath "cosmossdk.io/math"
56
"sort"
67
"time"
78

8-
cosmostypes "github.com/cosmos/cosmos-sdk/types"
99
gethcommon "github.com/ethereum/go-ethereum/common"
1010
"github.com/pkg/errors"
1111
log "github.com/xlab/suplog"
@@ -328,7 +328,7 @@ func (l *relayer) findLatestValsetOnEth(ctx context.Context) (*peggytypes.Valset
328328
valset := &peggytypes.Valset{
329329
Nonce: event.NewValsetNonce.Uint64(),
330330
Members: make([]*peggytypes.BridgeValidator, 0, len(event.Powers)),
331-
RewardAmount: cosmostypes.NewIntFromBigInt(event.RewardAmount),
331+
RewardAmount: sdkmath.NewIntFromBigInt(event.RewardAmount),
332332
RewardToken: event.RewardToken.Hex(),
333333
}
334334

0 commit comments

Comments
 (0)