Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: prepare v9.0.0 #500

Merged
merged 10 commits into from
Feb 28, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
feat: start preparing v9.0.0
  • Loading branch information
johnletey committed Feb 27, 2025
commit 3abb75d9506d0b55162901824cca5f4d1196c04f
8 changes: 8 additions & 0 deletions .changelog/v9.0.0/summary.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
*Feb 28, 2025*

This is the Argentum major release of Noble. It introduces various new modules
that enable the issuance and use-cases of the Noble Dollar (USDN), Noble's
yield bearing stablecoin. USDN is fully collateralized by U.S. Treasury bills
via the M^0 protocol.

This and other notable changes are documented below.
36 changes: 36 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,41 @@
# CHANGELOG

## v9.0.0

*Feb 28, 2025*

This is the Argentum major release of Noble. It introduces various new modules
that enable the issuance and use-cases of the Noble Dollar (USDN), Noble's
yield bearing stablecoin. USDN is fully collateralized by U.S. Treasury bills
via the M^0 protocol.

This and other notable changes are documented below.

### BUG FIXES

- Update the capabilities of previously created ICA channels from the ICA Controller module back to the ICA Host module. ([#432](https://github.com/noble-assets/noble/pull/432))

### DEPENDENCIES

- Bump FiatTokenFactory to remove the limit check when decoding addresses. ([#455](https://github.com/noble-assets/noble/pull/455))
- Bump `cosmossdk.io/client/v2` to support returning maps inside AutoCLI queries. ([#464](https://github.com/noble-assets/noble/pull/464))
- Bump Authority to [`v1.0.2`](https://github.com/noble-assets/authority/releases/tag/v1.0.2) to include a new helper CLI command. ([#480](https://github.com/noble-assets/noble/pull/480))
- Bump Forwarding to [`v2.0.1`](https://github.com/noble-assets/forwarding/releases/tag/v2.0.1) to check recipient length and harden validation when registering accounts. ([#481](https://github.com/noble-assets/noble/pull/481))
- Bump Packet Forward Middleware to [`v8.1.1`](https://github.com/cosmos/ibc-apps/releases/tag/middleware%2Fpacket-forward-middleware%2Fv8.1.1) to resolve [GHSA-6fgm-x6ff-w78f](https://github.com/cosmos/ibc-apps/security/advisories/GHSA-6fgm-x6ff-w78f) security advisory. ([#488](https://github.com/noble-assets/noble/pull/488))
- Bump Cosmos SDK to [`v0.50.12`](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.50.12) ([#495](https://github.com/noble-assets/noble/pull/495))

### FEATURES

- Integrate our custom Wormhole module, that enables Wormhole messaging on Noble via IBC. ([#444](https://github.com/noble-assets/noble/pull/444))
- Integrate our custom Dollar module, that enables the issuance of Noble's stablecoin $USDN. ([#448](https://github.com/noble-assets/noble/pull/448))
- Integrate our custom Swap module, that enables the exchange of tokens issued on Noble. ([#449](https://github.com/noble-assets/noble/pull/449))
- Integrate our custom Jester sidecar, that enables the automatic relaying of $USDN transfers to Noble. ([#463](https://github.com/noble-assets/noble/pull/463))
- Enable functionality for in-place forking a synced testnet or mainnet node. ([#487](https://github.com/noble-assets/noble/pull/487))

### IMPROVEMENTS

- Update module path for v9 release line. ([#443](https://github.com/noble-assets/noble/pull/443))

## v8.0.5

*Feb 3, 2025*
Expand Down
20 changes: 14 additions & 6 deletions upgrade/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ import (
"github.com/cosmos/cosmos-sdk/types/module"
"github.com/ethereum/go-ethereum/common"

authoritytypes "github.com/noble-assets/authority/types"

dollarkeeper "dollar.noble.xyz/keeper"
portaltypes "dollar.noble.xyz/types/portal"

capabilitykeeper "github.com/cosmos/ibc-go/modules/capability/keeper"
capabilitytypes "github.com/cosmos/ibc-go/modules/capability/types"
icacontrollertypes "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/controller/types"
Expand All @@ -36,9 +41,6 @@ import (
wormholekeeper "github.com/noble-assets/wormhole/keeper"
wormholetypes "github.com/noble-assets/wormhole/types"
vaautils "github.com/wormhole-foundation/wormhole/sdk/vaa"

dollarkeeper "dollar.noble.xyz/keeper"
portaltypes "dollar.noble.xyz/types/portal"
)

func CreateUpgradeHandler(
Expand Down Expand Up @@ -189,14 +191,20 @@ func ConfigureDollarModule(ctx sdk.Context, dollarKeeper *dollarkeeper.Keeper) (
case MainnetChainID:
chainID := uint16(vaautils.ChainIDEthereum)

// TODO: Add portal owner configuration!
err = dollarKeeper.PortalOwner.Set(ctx, authoritytypes.ModuleAddress.String())
if err != nil {
return errors.Wrap(err, "unable to set dollar portal owner in state")
}

err = dollarKeeper.PortalPeers.Set(ctx, chainID, portaltypes.Peer{
// TODO: Confirm Noble's mainnnet transceiver address with M^0

// https://etherscan.io/address/0xc7Dd372c39E38BF11451ab4A8427B4Ae38ceF644
Transceiver: common.FromHex("0x000000000000000000000000c7dd372c39e38bf11451ab4a8427b4ae38cef644"),
// https://etherscan.io/address/0x83Ae82Bd4054e815fB7B189C39D9CE670369ea16
Manager: common.FromHex("0x00000000000000000000000083ae82bd4054e815fb7b189c39d9ce670369ea16"),
})
if err != nil {
return errors.Wrap(err, "unable to set dollar portal peer in state")
}

// $USDN -> $M
err = dollarKeeper.PortalBridgingPaths.Set(ctx, collections.Join(chainID, m), true)
Expand Down
Loading