Skip to content

Commit f23b065

Browse files
committed
chore: use latest dollar tag, remove v10.1.2 migration logic
1 parent d2c96b4 commit f23b065

6 files changed

Lines changed: 8 additions & 29 deletions

File tree

api/generate.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ buf export buf.build/cosmos/ibc:e69c8f372b127401762cb251bb7b60371b4cef29 --outpu
99
buf export buf.build/noble-assets/aura:v2.0.0 --output api/proto
1010
buf export buf.build/noble-assets/authority:v1.0.3 --output api/proto
1111
buf export buf.build/noble-assets/cctp:4285c94ec19438ad1e05ba3e5106a5e7980cfffd --output api/proto
12-
buf export buf.build/noble-assets/dollar:v2.2.0-rc.0 --output api/proto
12+
buf export buf.build/noble-assets/dollar:v2.2.0 --output api/proto
1313
buf export buf.build/noble-assets/fiattokenfactory:5f9bd9dd2c5b5336b94bae4a47195bdf035f04af --output api/proto
1414
buf export buf.build/noble-assets/florin:v2.0.0 --output api/proto
1515
buf export buf.build/noble-assets/forwarding:v2.0.3 --output api/proto

app.go

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ import (
2828
"cosmossdk.io/log"
2929
"cosmossdk.io/math"
3030
storetypes "cosmossdk.io/store/types"
31-
abci "github.com/cometbft/cometbft/abci/types"
3231
"github.com/cometbft/cometbft/crypto"
3332
"github.com/cometbft/cometbft/libs/bytes"
3433
cmtos "github.com/cometbft/cometbft/libs/os"
@@ -46,8 +45,6 @@ import (
4645
sdk "github.com/cosmos/cosmos-sdk/types"
4746
"github.com/cosmos/cosmos-sdk/types/module"
4847
"github.com/cosmos/cosmos-sdk/x/auth/ante"
49-
authoritytypes "github.com/noble-assets/authority/types"
50-
forwardingtypes "github.com/noble-assets/forwarding/v2/types"
5148
"github.com/noble-assets/noble/v11/api"
5249
"github.com/noble-assets/noble/v11/jester"
5350
"github.com/noble-assets/noble/v11/upgrade"
@@ -320,25 +317,7 @@ func NewApp(
320317
)
321318

322319
app.SetPrepareProposal(proposalHandler.PrepareProposal())
323-
app.SetPreBlocker(func(ctx sdk.Context, req *abci.RequestFinalizeBlock) (*sdk.ResponsePreBlock, error) {
324-
// On Noble mainnet, the v10.1.2 upgrade is applied at block #36,887,000.
325-
// This upgrade removes support for the wildcard in the x/forwarding
326-
// module allowed denoms configuration, which we set explicitly to USDC.
327-
if ctx.ChainID() == upgrade.MainnetChainID && req.Height == 36887000 {
328-
_, err := app.ForwardingKeeper.SetAllowedDenoms(ctx, &forwardingtypes.MsgSetAllowedDenoms{
329-
Signer: authoritytypes.ModuleAddress.String(),
330-
Denoms: []string{
331-
app.FTFKeeper.GetMintingDenom(ctx).Denom, // USDC
332-
app.DollarKeeper.GetDenom(), // USDN
333-
},
334-
})
335-
if err != nil {
336-
return nil, err
337-
}
338-
}
339-
340-
return proposalHandler.PreBlocker()(ctx, req)
341-
})
320+
app.SetPreBlocker(proposalHandler.PreBlocker())
342321

343322
if err := app.RegisterUpgradeHandler(); err != nil {
344323
return nil, err

e2e/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ require (
4242
cosmossdk.io/x/evidence v0.1.1 // indirect
4343
cosmossdk.io/x/feegrant v0.1.1 // indirect
4444
cosmossdk.io/x/tx v0.13.8 // indirect
45-
dollar.noble.xyz/v2 v2.2.0-rc.0 // indirect
45+
dollar.noble.xyz/v2 v2.2.0 // indirect
4646
filippo.io/edwards25519 v1.1.0 // indirect
4747
github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect
4848
github.com/99designs/keyring v1.2.2 // indirect

e2e/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -647,8 +647,8 @@ cosmossdk.io/x/tx v0.13.8/go.mod h1:V6DImnwJMTq5qFjeGWpXNiT/fjgE4HtmclRmTqRVM3w=
647647
cosmossdk.io/x/upgrade v0.1.4 h1:/BWJim24QHoXde8Bc64/2BSEB6W4eTydq0X/2f8+g38=
648648
cosmossdk.io/x/upgrade v0.1.4/go.mod h1:9v0Aj+fs97O+Ztw+tG3/tp5JSlrmT7IcFhAebQHmOPo=
649649
dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
650-
dollar.noble.xyz/v2 v2.2.0-rc.0 h1:winjwoxv1jGELfXM6gR+ljdwh0MblCZyw1/1wG0u574=
651-
dollar.noble.xyz/v2 v2.2.0-rc.0/go.mod h1:ZPbvn4T4hu9aWBIXQVM3VsMUIWKPDNaKRDRVmXXFuGY=
650+
dollar.noble.xyz/v2 v2.2.0 h1:wfwHmzbG8mjyzsiG/wRYq+9cpBY+kVuiUB7IZWWRbJ4=
651+
dollar.noble.xyz/v2 v2.2.0/go.mod h1:ZPbvn4T4hu9aWBIXQVM3VsMUIWKPDNaKRDRVmXXFuGY=
652652
filippo.io/edwards25519 v1.1.0 h1:FNf4tywRC1HmFuKW5xopWpigGjJKiJSV0Cqo0cJWDaA=
653653
filippo.io/edwards25519 v1.1.0/go.mod h1:BxyFTGdWcka3PhytdK4V28tE5sGfRvvvRV7EaN4VDT4=
654654
gioui.org v0.0.0-20210308172011-57750fc8a0a6/go.mod h1:RSH6KIUZ0p2xy5zHDxgAM4zumjgTw83q2ge/PI+yyw8=

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ require (
1515
cosmossdk.io/x/evidence v0.1.1
1616
cosmossdk.io/x/feegrant v0.1.1
1717
cosmossdk.io/x/upgrade v0.1.4
18-
dollar.noble.xyz/v2 v2.2.0-rc.0
18+
dollar.noble.xyz/v2 v2.2.0
1919
github.com/bcp-innovations/hyperlane-cosmos v1.0.1
2020
github.com/circlefin/noble-cctp v0.0.0-20241031192117-4285c94ec194
2121
github.com/circlefin/noble-fiattokenfactory v0.0.0-20250123235012-5f9bd9dd2c5b

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,8 @@ cosmossdk.io/x/tx v0.13.8/go.mod h1:V6DImnwJMTq5qFjeGWpXNiT/fjgE4HtmclRmTqRVM3w=
235235
cosmossdk.io/x/upgrade v0.1.4 h1:/BWJim24QHoXde8Bc64/2BSEB6W4eTydq0X/2f8+g38=
236236
cosmossdk.io/x/upgrade v0.1.4/go.mod h1:9v0Aj+fs97O+Ztw+tG3/tp5JSlrmT7IcFhAebQHmOPo=
237237
dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
238-
dollar.noble.xyz/v2 v2.2.0-rc.0 h1:winjwoxv1jGELfXM6gR+ljdwh0MblCZyw1/1wG0u574=
239-
dollar.noble.xyz/v2 v2.2.0-rc.0/go.mod h1:ZPbvn4T4hu9aWBIXQVM3VsMUIWKPDNaKRDRVmXXFuGY=
238+
dollar.noble.xyz/v2 v2.2.0 h1:wfwHmzbG8mjyzsiG/wRYq+9cpBY+kVuiUB7IZWWRbJ4=
239+
dollar.noble.xyz/v2 v2.2.0/go.mod h1:ZPbvn4T4hu9aWBIXQVM3VsMUIWKPDNaKRDRVmXXFuGY=
240240
filippo.io/edwards25519 v1.1.0 h1:FNf4tywRC1HmFuKW5xopWpigGjJKiJSV0Cqo0cJWDaA=
241241
filippo.io/edwards25519 v1.1.0/go.mod h1:BxyFTGdWcka3PhytdK4V28tE5sGfRvvvRV7EaN4VDT4=
242242
github.com/4meepo/tagalign v1.3.4 h1:P51VcvBnf04YkHzjfclN6BbsopfJR5rxs1n+5zHt+w8=

0 commit comments

Comments
 (0)