Skip to content

Commit

Permalink
chore: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
johnletey committed May 14, 2024
1 parent ea47c88 commit bf267ec
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 14 deletions.
1 change: 1 addition & 0 deletions app/app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,5 @@ modules:
- name: forwarding
config:
"@type": noble.forwarding.module.v1.Module
authority: authority # Utilize our custom x/authority module.
# TODO(@john): TokenFactory
1 change: 0 additions & 1 deletion app/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ func (app *NobleApp) RegisterUpgradeHandlers() {
app.appCodec,
app.Logger(),
app.GetKey(capabilitytypes.StoreKey),
app.AccountKeeper,
app.AuthorityKeeper,
app.CapabilityKeeper,
app.IBCKeeper.ClientKeeper,
Expand Down
11 changes: 4 additions & 7 deletions app/upgrades/krypton/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import (
"github.com/cosmos/cosmos-sdk/codec"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/module"
authkeeper "github.com/cosmos/cosmos-sdk/x/auth/keeper"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
consensuskeeper "github.com/cosmos/cosmos-sdk/x/consensus/keeper"
Expand All @@ -37,7 +36,6 @@ func CreateUpgradeHandler(
cdc codec.Codec,
logger log.Logger,
capabilityStoreKey *storetypes.KVStoreKey,
accountKeeper authkeeper.AccountKeeper,
authorityKeeper *authoritykeeper.Keeper,
capabilityKeeper *capabilitykeeper.Keeper,
clientKeeper clientkeeper.Keeper,
Expand Down Expand Up @@ -115,13 +113,12 @@ func CreateUpgradeHandler(
// ----- Noble Specific Logic -----

// Migrate ParamAuthority address to x/authority module.
var address string
var authority string
subspace = paramsKeeper.Subspace(paramstypes.ModuleName).WithKeyTable(authoritytypes.ParamKeyTable()) //nolint:staticcheck
subspace.Get(sdkCtx, authoritytypes.AuthorityKey, &address)
authority, _ := accountKeeper.AddressCodec().StringToBytes(address)
err = authorityKeeper.Authority.Set(ctx, authority)
subspace.Get(sdkCtx, authoritytypes.AuthorityKey, &authority)
err = authorityKeeper.Owner.Set(ctx, authority)
if err != nil {
return vm, errors.Wrap(err, "failed to migrate underlying authority address")
return vm, errors.Wrap(err, "failed to migrate authority address")
}

logger.Info(UpgradeASCII)
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ require (
github.com/cosmos/ibc-go/modules/capability v1.0.0
github.com/cosmos/ibc-go/v8 v8.2.1
github.com/golangci/golangci-lint v1.58.0
github.com/noble-assets/authority v0.0.0-20240503223515-dfb231af25a2
github.com/noble-assets/forwarding/v2 v2.0.0-20240429110930-0884f39cf30c
github.com/noble-assets/authority v0.0.0-20240514100042-ba89b7610f02
github.com/noble-assets/forwarding/v2 v2.0.0-20240514101621-172acc02aac6
github.com/spf13/cobra v1.8.0
github.com/spf13/viper v1.18.2
mvdan.cc/gofumpt v0.6.0
Expand Down
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1042,14 +1042,14 @@ github.com/nishanths/exhaustive v0.12.0 h1:vIY9sALmw6T/yxiASewa4TQcFsVYZQQRUQJhK
github.com/nishanths/exhaustive v0.12.0/go.mod h1:mEZ95wPIZW+x8kC4TgC+9YCUgiST7ecevsVDTgc2obs=
github.com/nishanths/predeclared v0.2.2 h1:V2EPdZPliZymNAn79T8RkNApBjMmVKh5XRpLm/w98Vk=
github.com/nishanths/predeclared v0.2.2/go.mod h1:RROzoN6TnGQupbC+lqggsOlcgysk3LMK/HI84Mp280c=
github.com/noble-assets/authority v0.0.0-20240503223515-dfb231af25a2 h1:PbGWF8yODpAmXVcdi4qyGgV17WNcnR5+ahdMR0SMYQw=
github.com/noble-assets/authority v0.0.0-20240503223515-dfb231af25a2/go.mod h1:KR8Qz5TI/C/NhykYmhkXYOlON9z3uGKCfTfpYmcFwLA=
github.com/noble-assets/authority v0.0.0-20240514100042-ba89b7610f02 h1:C9x6j9xWHYsuL4LFNwoDMukCISRpxk+ihDagmTmoMn0=
github.com/noble-assets/authority v0.0.0-20240514100042-ba89b7610f02/go.mod h1:KR8Qz5TI/C/NhykYmhkXYOlON9z3uGKCfTfpYmcFwLA=
github.com/noble-assets/cctp v0.0.0-20240416144200-ca0731aa76b1 h1:FvIJ0bztz29sQNw3wI5a18UdHj+yxUCP8WSBIgUjP3U=
github.com/noble-assets/cctp v0.0.0-20240416144200-ca0731aa76b1/go.mod h1:7EdQJArIyGtv84unD3SQVmMPjvwY2/0itxaHYD4PAmA=
github.com/noble-assets/fiattokenfactory v0.0.0-20240416143000-a76c29f9a0cd h1:Td5YPOup48aNKKGKUaLZUsTcWF/nmhXM1msqHlVbfBU=
github.com/noble-assets/fiattokenfactory v0.0.0-20240416143000-a76c29f9a0cd/go.mod h1:L6v3Ogrfmxn+wLszi2eVOFsckIZ57o4o5ZlwwZNq+rs=
github.com/noble-assets/forwarding/v2 v2.0.0-20240429110930-0884f39cf30c h1:2+0jxMWZ0e7+HB1kGMz6F3KVYPRIrOk2f7KTKedq7qw=
github.com/noble-assets/forwarding/v2 v2.0.0-20240429110930-0884f39cf30c/go.mod h1:fkfElMT7VJZXXqywx+OE6qsEXddT/fwKX5XNdIl747U=
github.com/noble-assets/forwarding/v2 v2.0.0-20240514101621-172acc02aac6 h1:YQ6I+9F24PD9U/Q83/t/DCPwye8IeHXOrQWorPx2aSE=
github.com/noble-assets/forwarding/v2 v2.0.0-20240514101621-172acc02aac6/go.mod h1:fkfElMT7VJZXXqywx+OE6qsEXddT/fwKX5XNdIl747U=
github.com/nunnatsa/ginkgolinter v0.16.2 h1:8iLqHIZvN4fTLDC0Ke9tbSZVcyVHoBs0HIbnVSxfHJk=
github.com/nunnatsa/ginkgolinter v0.16.2/go.mod h1:4tWRinDN1FeJgU+iJANW/kz7xKN5nYRAOfJDQUS9dOQ=
github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A=
Expand Down

0 comments on commit bf267ec

Please sign in to comment.