diff --git a/.changelog/config.toml b/.changelog/config.toml index 7f00fc0c..db727560 100644 --- a/.changelog/config.toml +++ b/.changelog/config.toml @@ -1 +1 @@ -project_url = "https://github.com/strangelove-ventures/noble" +project_url = "https://github.com/noble-assets/noble" diff --git a/.changelog/epilogue.md b/.changelog/epilogue.md index a9e42616..0fee514c 100644 --- a/.changelog/epilogue.md +++ b/.changelog/epilogue.md @@ -1,5 +1,5 @@ --- -## Previous Changes +## Other Releases -This changelog has yet to be fully initialized. For previous versions please refer to the release notes for a summary of changes. +This changelog is specific to the v4 Argon release line. For other versions please refer to their release notes for a summary of changes. diff --git a/.changelog/v3.1.0/features/235-ibc-authority.md b/.changelog/v3.1.0/features/235-ibc-authority.md deleted file mode 100644 index b561ae7f..00000000 --- a/.changelog/v3.1.0/features/235-ibc-authority.md +++ /dev/null @@ -1 +0,0 @@ -- Include support for IBC inside the ParamAuthority. ([#235](https://github.com/strangelove-ventures/noble/pull/235)) diff --git a/.changelog/v3.1.0/improvements/234-module-path.md b/.changelog/v3.1.0/improvements/234-module-path.md deleted file mode 100644 index 2fc1299d..00000000 --- a/.changelog/v3.1.0/improvements/234-module-path.md +++ /dev/null @@ -1 +0,0 @@ -- Align module path with Go's [naming convention](https://go.dev/doc/modules/version-numbers#major-version). ([#234](https://github.com/strangelove-ventures/noble/pull/234)) diff --git a/.changelog/v3.1.0/summary.md b/.changelog/v3.1.0/summary.md deleted file mode 100644 index 0a6d248f..00000000 --- a/.changelog/v3.1.0/summary.md +++ /dev/null @@ -1,5 +0,0 @@ -*Sep 15, 2023* - -This is a minor release to the v3 Radon line. - -In response to multiple IBC channels expiring on Noble's mainnet network, it was decided to expand the functionality of Noble's Maintenance Multisig to include IBC upgrade functionality (allowing expired clients to be changed). diff --git a/.changelog/v4.0.0/bug-fixes/252-simulation-tests.md b/.changelog/v4.0.0/bug-fixes/252-simulation-tests.md index 03a18830..9cd22bee 100644 --- a/.changelog/v4.0.0/bug-fixes/252-simulation-tests.md +++ b/.changelog/v4.0.0/bug-fixes/252-simulation-tests.md @@ -1 +1 @@ -- Fix simulation tests. ([#252](https://github.com/strangelove-ventures/noble/pull/252)) +- Fix simulation tests. ([#252](https://github.com/noble-assets/noble/pull/252)) diff --git a/.changelog/v4.0.0/bug-fixes/253-ledger-macos-sonoma.md b/.changelog/v4.0.0/bug-fixes/253-ledger-macos-sonoma.md index 0d102856..923de727 100644 --- a/.changelog/v4.0.0/bug-fixes/253-ledger-macos-sonoma.md +++ b/.changelog/v4.0.0/bug-fixes/253-ledger-macos-sonoma.md @@ -1 +1 @@ -- Fix Ledger support for macOS Sonoma. ([#253](https://github.com/strangelove-ventures/noble/pull/253)) +- Fix Ledger support for macOS Sonoma. ([#253](https://github.com/noble-assets/noble/pull/253)) diff --git a/.changelog/v4.0.0/dependencies/250-bump-ibc.md b/.changelog/v4.0.0/dependencies/250-bump-ibc.md index f2f4a701..d337c087 100644 --- a/.changelog/v4.0.0/dependencies/250-bump-ibc.md +++ b/.changelog/v4.0.0/dependencies/250-bump-ibc.md @@ -1 +1 @@ -- Bump IBC to [`v4.5.1`](https://github.com/cosmos/ibc-go/releases/tag/v4.5.1) ([#250](https://github.com/strangelove-ventures/noble/pull/250)) +- Bump IBC to [`v4.5.1`](https://github.com/cosmos/ibc-go/releases/tag/v4.5.1) ([#250](https://github.com/noble-assets/noble/pull/250)) diff --git a/.changelog/v4.0.0/dependencies/250-bump-pfm.md b/.changelog/v4.0.0/dependencies/250-bump-pfm.md index 19ca716f..deb7fd5e 100644 --- a/.changelog/v4.0.0/dependencies/250-bump-pfm.md +++ b/.changelog/v4.0.0/dependencies/250-bump-pfm.md @@ -1 +1 @@ -- Bump Packet Forward Middleware to [`v4.1.1`](https://github.com/cosmos/ibc-apps/releases/tag/middleware%2Fpacket-forward-middleware%2Fv4.1.1) ([#250](https://github.com/strangelove-ventures/noble/pull/250), [#258](https://github.com/strangelove-ventures/noble/pull/258)) +- Bump Packet Forward Middleware to [`v4.1.1`](https://github.com/cosmos/ibc-apps/releases/tag/middleware%2Fpacket-forward-middleware%2Fv4.1.1) ([#250](https://github.com/noble-assets/noble/pull/250), [#258](https://github.com/noble-assets/noble/pull/258)) diff --git a/.changelog/v4.0.0/features/215-rosetta-support.md b/.changelog/v4.0.0/features/215-rosetta-support.md index fdc5d7da..84156b68 100644 --- a/.changelog/v4.0.0/features/215-rosetta-support.md +++ b/.changelog/v4.0.0/features/215-rosetta-support.md @@ -1 +1 @@ -- Include support for Coinbase's [Rosetta API](https://docs.cloud.coinbase.com/rosetta/docs/welcome). ([#215](https://github.com/strangelove-ventures/noble/pull/215)) +- Include support for Coinbase's [Rosetta API](https://docs.cloud.coinbase.com/rosetta/docs/welcome). ([#215](https://github.com/noble-assets/noble/pull/215)) diff --git a/.changelog/v4.0.0/improvements/241-ftf-interface-changes.md b/.changelog/v4.0.0/improvements/241-ftf-interface-changes.md index 940a4309..c040a3dc 100644 --- a/.changelog/v4.0.0/improvements/241-ftf-interface-changes.md +++ b/.changelog/v4.0.0/improvements/241-ftf-interface-changes.md @@ -1 +1 @@ -- Add `x/fiattokenfactory` interface changes required for CCTP. ([#241](https://github.com/strangelove-ventures/noble/pull/241)) +- Add `x/fiattokenfactory` interface changes required for CCTP. ([#241](https://github.com/noble-assets/noble/pull/241)) diff --git a/.changelog/v4.0.1/bug-fixes/274-distribution-hooks.md b/.changelog/v4.0.1/bug-fixes/274-distribution-hooks.md index f892dafb..5d9acde6 100644 --- a/.changelog/v4.0.1/bug-fixes/274-distribution-hooks.md +++ b/.changelog/v4.0.1/bug-fixes/274-distribution-hooks.md @@ -1 +1 @@ -- Unregister `x/distribution` hooks to address consensus failure. ([#274](https://github.com/strangelove-ventures/noble/pull/274)) +- Unregister `x/distribution` hooks to address consensus failure. ([#274](https://github.com/noble-assets/noble/pull/274)) diff --git a/.changelog/v4.0.2/improvements/277-tariff-query.md b/.changelog/v4.0.2/improvements/277-tariff-query.md index 5d583989..739a8150 100644 --- a/.changelog/v4.0.2/improvements/277-tariff-query.md +++ b/.changelog/v4.0.2/improvements/277-tariff-query.md @@ -1 +1 @@ -- Implement a parameter query for the `x/tariff` module. ([#277](https://github.com/strangelove-ventures/noble/pull/277)) +- Implement a parameter query for the `x/tariff` module. ([#277](https://github.com/noble-assets/noble/pull/277)) diff --git a/.changelog/v4.0.3/dependencies/000-ftf.md b/.changelog/v4.0.3/dependencies/000-ftf.md new file mode 100644 index 00000000..bc88f5d7 --- /dev/null +++ b/.changelog/v4.0.3/dependencies/000-ftf.md @@ -0,0 +1 @@ +- Bump FiatTokenFactory to [`14edf83`](https://github.com/circlefin/noble-fiattokenfactory/commit/14edf83ee1c96055e2c17ea56ca9dd303d3c14f6) to enable `x/authz` support. diff --git a/.changelog/v4.0.3/dependencies/001-pfm.md b/.changelog/v4.0.3/dependencies/001-pfm.md new file mode 100644 index 00000000..beaaecef --- /dev/null +++ b/.changelog/v4.0.3/dependencies/001-pfm.md @@ -0,0 +1 @@ +- Bump PFM to [`455757b`](https://github.com/cosmos/ibc-apps/commit/455757bb5771c29cf2f83b59e37f6513e07c92be) to resolve Mandrake disclosure. diff --git a/.changelog/v4.0.3/improvements/000-migrate-ftf.md b/.changelog/v4.0.3/improvements/000-migrate-ftf.md new file mode 100644 index 00000000..3539c785 --- /dev/null +++ b/.changelog/v4.0.3/improvements/000-migrate-ftf.md @@ -0,0 +1 @@ +- Switch to [migrated](https://github.com/circlefin/noble-fiattokenfactory) version of `x/fiattokenfactory` module. diff --git a/.changelog/v4.0.3/summary.md b/.changelog/v4.0.3/summary.md new file mode 100644 index 00000000..fd08e4f6 --- /dev/null +++ b/.changelog/v4.0.3/summary.md @@ -0,0 +1,3 @@ +*Mar 11, 2023* + +This is the third patch release to the v4 Argon line. diff --git a/CHANGELOG.md b/CHANGELOG.md index 91ebe0a2..0c0caf00 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,20 @@ # CHANGELOG +## v4.0.3 + +*Mar 11, 2023* + +This is the third patch release to the v4 Argon line. + +### DEPENDENCIES + +- Bump FiatTokenFactory to [`14edf83`](https://github.com/circlefin/noble-fiattokenfactory/commit/14edf83ee1c96055e2c17ea56ca9dd303d3c14f6) to enable `x/authz` support. +- Bump PFM to [`455757b`](https://github.com/cosmos/ibc-apps/commit/455757bb5771c29cf2f83b59e37f6513e07c92be) to resolve Mandrake disclosure. + +### IMPROVEMENTS + +- Switch to [migrated](https://github.com/circlefin/noble-fiattokenfactory) version of `x/fiattokenfactory` module. + ## v4.0.2 *Nov 21, 2023* @@ -8,7 +23,7 @@ This is the second patch release to the v4 Argon line. ### IMPROVEMENTS -- Implement a parameter query for the `x/tariff` module. ([#277](https://github.com/strangelove-ventures/noble/pull/277)) +- Implement a parameter query for the `x/tariff` module. ([#277](https://github.com/noble-assets/noble/pull/277)) ## v4.0.1 @@ -18,7 +33,7 @@ This is the first patch release to the v4 Argon line. ### BUG FIXES -- Unregister `x/distribution` hooks to address consensus failure. ([#274](https://github.com/strangelove-ventures/noble/pull/274)) +- Unregister `x/distribution` hooks to address consensus failure. ([#274](https://github.com/noble-assets/noble/pull/274)) ## v4.0.0 @@ -30,41 +45,25 @@ Along with the integration of the CCTP module, the following changes were made. ### BUG FIXES -- Fix simulation tests. ([#252](https://github.com/strangelove-ventures/noble/pull/252)) -- Fix Ledger support for macOS Sonoma. ([#253](https://github.com/strangelove-ventures/noble/pull/253)) +- Fix simulation tests. ([#252](https://github.com/noble-assets/noble/pull/252)) +- Fix Ledger support for macOS Sonoma. ([#253](https://github.com/noble-assets/noble/pull/253)) ### DEPENDENCIES -- Bump IBC to [`v4.5.1`](https://github.com/cosmos/ibc-go/releases/tag/v4.5.1) ([#250](https://github.com/strangelove-ventures/noble/pull/250)) -- Bump Packet Forward Middleware to [`v4.1.1`](https://github.com/cosmos/ibc-apps/releases/tag/middleware%2Fpacket-forward-middleware%2Fv4.1.1) ([#250](https://github.com/strangelove-ventures/noble/pull/250), [#258](https://github.com/strangelove-ventures/noble/pull/258)) - -### FEATURES - -- Include support for Coinbase's [Rosetta API](https://docs.cloud.coinbase.com/rosetta/docs/welcome). ([#215](https://github.com/strangelove-ventures/noble/pull/215)) - -### IMPROVEMENTS - -- Add `x/fiattokenfactory` interface changes required for CCTP. ([#241](https://github.com/strangelove-ventures/noble/pull/241)) - -## v3.1.0 - -*Sep 15, 2023* - -This is a minor release to the v3 Radon line. - -In response to multiple IBC channels expiring on Noble's mainnet network, it was decided to expand the functionality of Noble's Maintenance Multisig to include IBC upgrade functionality (allowing expired clients to be changed). +- Bump IBC to [`v4.5.1`](https://github.com/cosmos/ibc-go/releases/tag/v4.5.1) ([#250](https://github.com/noble-assets/noble/pull/250)) +- Bump Packet Forward Middleware to [`v4.1.1`](https://github.com/cosmos/ibc-apps/releases/tag/middleware%2Fpacket-forward-middleware%2Fv4.1.1) ([#250](https://github.com/noble-assets/noble/pull/250), [#258](https://github.com/noble-assets/noble/pull/258)) ### FEATURES -- Include support for IBC inside the ParamAuthority. ([#235](https://github.com/strangelove-ventures/noble/pull/235)) +- Include support for Coinbase's [Rosetta API](https://docs.cloud.coinbase.com/rosetta/docs/welcome). ([#215](https://github.com/noble-assets/noble/pull/215)) ### IMPROVEMENTS -- Align module path with Go's [naming convention](https://go.dev/doc/modules/version-numbers#major-version). ([#234](https://github.com/strangelove-ventures/noble/pull/234)) +- Add `x/fiattokenfactory` interface changes required for CCTP. ([#241](https://github.com/noble-assets/noble/pull/241)) --- -## Previous Changes +## Other Releases -This changelog has yet to be fully initialized. For previous versions please refer to the release notes for a summary of changes. +This changelog is specific to the v4 Argon release line. For other versions please refer to their release notes for a summary of changes. diff --git a/app/ante.go b/app/ante.go index 5344bc59..23e96ad6 100644 --- a/app/ante.go +++ b/app/ante.go @@ -1,203 +1,25 @@ package app import ( - "github.com/cosmos/cosmos-sdk/types/bech32" - fiattokenfactory "github.com/strangelove-ventures/noble/x/fiattokenfactory/keeper" - fiattokenfactorytypes "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" - tokenfactory "github.com/strangelove-ventures/noble/x/tokenfactory/keeper" - tokenfactorytypes "github.com/strangelove-ventures/noble/x/tokenfactory/types" - + "github.com/circlefin/noble-fiattokenfactory/x/fiattokenfactory" + fiattokenfactorykeeper "github.com/circlefin/noble-fiattokenfactory/x/fiattokenfactory/keeper" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/cosmos/cosmos-sdk/x/auth/ante" - banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" - transfertypes "github.com/cosmos/ibc-go/v4/modules/apps/transfer/types" ibcante "github.com/cosmos/ibc-go/v4/modules/core/ante" ibckeeper "github.com/cosmos/ibc-go/v4/modules/core/keeper" - feeante "github.com/strangelove-ventures/noble/x/globalfee/ante" ) type HandlerOptions struct { ante.HandlerOptions - tokenFactoryKeeper *tokenfactory.Keeper - fiatTokenFactoryKeeper *fiattokenfactory.Keeper + fiatTokenFactoryKeeper *fiattokenfactorykeeper.Keeper IBCKeeper *ibckeeper.Keeper GlobalFeeSubspace paramtypes.Subspace StakingSubspace paramtypes.Subspace } -type IsPausedDecorator struct { - tokenFactory *tokenfactory.Keeper - fiatTokenFactory *fiattokenfactory.Keeper -} - -func NewIsPausedDecorator(tf *tokenfactory.Keeper, ctf *fiattokenfactory.Keeper) IsPausedDecorator { - return IsPausedDecorator{ - tokenFactory: tf, - fiatTokenFactory: ctf, - } -} - -func (ad IsPausedDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (newCtx sdk.Context, err error) { - msgs := tx.GetMsgs() - for _, m := range msgs { - switch m := m.(type) { - case *banktypes.MsgSend, *banktypes.MsgMultiSend, *transfertypes.MsgTransfer: - switch m := m.(type) { - case *banktypes.MsgSend: - for _, c := range m.Amount { - paused, err := checkPausedStatebyTokenFactory(ctx, c, ad.tokenFactory, ad.fiatTokenFactory) - if paused { - return ctx, sdkerrors.Wrapf(err, "can not perform token transfers") - } - } - case *banktypes.MsgMultiSend: - for _, i := range m.Inputs { - for _, c := range i.Coins { - paused, err := checkPausedStatebyTokenFactory(ctx, c, ad.tokenFactory, ad.fiatTokenFactory) - if paused { - return ctx, sdkerrors.Wrapf(err, "can not perform token transfers") - } - } - } - case *transfertypes.MsgTransfer: - paused, err := checkPausedStatebyTokenFactory(ctx, m.Token, ad.tokenFactory, ad.fiatTokenFactory) - if paused { - return ctx, sdkerrors.Wrapf(err, "can not perform token transfers") - } - default: - continue - } - default: - continue - } - } - return next(ctx, tx, simulate) -} - -func checkPausedStatebyTokenFactory(ctx sdk.Context, c sdk.Coin, tf *tokenfactory.Keeper, ctf *fiattokenfactory.Keeper) (bool, *sdkerrors.Error) { - tfMintingDenom := tf.GetMintingDenom(ctx) - if c.Denom == tfMintingDenom.Denom { - paused := tf.GetPaused(ctx) - if paused.Paused { - return true, tokenfactorytypes.ErrPaused - } - } - ctfMintingDenom := ctf.GetMintingDenom(ctx) - if c.Denom == ctfMintingDenom.Denom { - paused := ctf.GetPaused(ctx) - if paused.Paused { - return true, fiattokenfactorytypes.ErrPaused - } - } - return false, nil -} - -type IsBlacklistedDecorator struct { - tokenfactory *tokenfactory.Keeper - fiattokenfactory *fiattokenfactory.Keeper -} - -func NewIsBlacklistedDecorator(tf *tokenfactory.Keeper, ctf *fiattokenfactory.Keeper) IsBlacklistedDecorator { - return IsBlacklistedDecorator{ - tokenfactory: tf, - fiattokenfactory: ctf, - } -} - -func (ad IsBlacklistedDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (newCtx sdk.Context, err error) { - msgs := tx.GetMsgs() - for _, m := range msgs { - switch m := m.(type) { - case *banktypes.MsgSend, *banktypes.MsgMultiSend, *transfertypes.MsgTransfer: - switch m := m.(type) { - case *banktypes.MsgSend: - for _, c := range m.Amount { - addresses := []string{m.ToAddress, m.FromAddress} - blacklisted, address, err := checkForBlacklistedAddressByTokenFactory(ctx, addresses, c, ad.tokenfactory, ad.fiattokenfactory) - if blacklisted { - return ctx, sdkerrors.Wrapf(err, "an address (%s) is blacklisted and can not send or receive tokens", address) - } - if err != nil { - return ctx, sdkerrors.Wrapf(err, "error decoding address (%s)", address) - } - } - case *banktypes.MsgMultiSend: - for _, i := range m.Inputs { - for _, c := range i.Coins { - addresses := []string{i.Address} - blacklisted, address, err := checkForBlacklistedAddressByTokenFactory(ctx, addresses, c, ad.tokenfactory, ad.fiattokenfactory) - if blacklisted { - return ctx, sdkerrors.Wrapf(err, "an address (%s) is blacklisted and can not send or receive tokens", address) - } - if err != nil { - return ctx, sdkerrors.Wrapf(err, "error decoding address (%s)", address) - } - } - } - for _, o := range m.Outputs { - for _, c := range o.Coins { - addresses := []string{o.Address} - blacklisted, address, err := checkForBlacklistedAddressByTokenFactory(ctx, addresses, c, ad.tokenfactory, ad.fiattokenfactory) - if blacklisted { - return ctx, sdkerrors.Wrapf(err, "an address (%s) is blacklisted and can not send or receive tokens", address) - } - if err != nil { - return ctx, sdkerrors.Wrapf(err, "error decoding address (%s)", address) - } - } - } - case *transfertypes.MsgTransfer: - addresses := []string{m.Sender, m.Receiver} - blacklisted, address, err := checkForBlacklistedAddressByTokenFactory(ctx, addresses, m.Token, ad.tokenfactory, ad.fiattokenfactory) - if blacklisted { - return ctx, sdkerrors.Wrapf(err, "an address (%s) is blacklisted and can not send or receive tokens", address) - } - if err != nil { - return ctx, sdkerrors.Wrapf(err, "error decoding address (%s)", address) - } - } - default: - continue - } - } - return next(ctx, tx, simulate) -} - -// checkForBlacklistedAddressByTokenFactory first checks if the denom being transacted is a mintable asset from a TokenFactory, -// if it is, it checks if the addresses involved in the tx are blacklisted by that specific TokenFactory. -func checkForBlacklistedAddressByTokenFactory(ctx sdk.Context, addresses []string, c sdk.Coin, tf *tokenfactory.Keeper, ctf *fiattokenfactory.Keeper) (blacklisted bool, blacklistedAddress string, err error) { - tfMintingDenom := tf.GetMintingDenom(ctx) - if c.Denom == tfMintingDenom.Denom { - for _, address := range addresses { - _, addressBz, err := bech32.DecodeAndConvert(address) - if err != nil { - return false, address, err - } - _, found := tf.GetBlacklisted(ctx, addressBz) - if found { - return true, address, tokenfactorytypes.ErrUnauthorized - } - } - } - ctfMintingDenom := ctf.GetMintingDenom(ctx) - if c.Denom == ctfMintingDenom.Denom { - for _, address := range addresses { - _, addressBz, err := bech32.DecodeAndConvert(address) - if err != nil { - return false, address, err - } - _, found := ctf.GetBlacklisted(ctx, addressBz) - if found { - return true, address, fiattokenfactorytypes.ErrUnauthorized - } - } - } - return false, "", nil -} - // maxTotalBypassMinFeeMsgGasUsage is the allowed maximum gas usage // for all the bypass msgs in a transactions. // A transaction that contains only bypass message types and the gas usage does not @@ -226,8 +48,8 @@ func NewAnteHandler(options HandlerOptions) (sdk.AnteHandler, error) { anteDecorators := []sdk.AnteDecorator{ ante.NewSetUpContextDecorator(), // outermost AnteDecorator. SetUpContext must be called first ante.NewRejectExtensionOptionsDecorator(), - NewIsBlacklistedDecorator(options.tokenFactoryKeeper, options.fiatTokenFactoryKeeper), - NewIsPausedDecorator(options.tokenFactoryKeeper, options.fiatTokenFactoryKeeper), + fiattokenfactory.NewIsBlacklistedDecorator(options.fiatTokenFactoryKeeper), + fiattokenfactory.NewIsPausedDecorator(options.fiatTokenFactoryKeeper), ante.NewMempoolFeeDecorator(), ante.NewValidateBasicDecorator(), ante.NewTxTimeoutHeightDecorator(), diff --git a/app/app.go b/app/app.go index b279032c..cb7f0c91 100644 --- a/app/app.go +++ b/app/app.go @@ -57,9 +57,9 @@ import ( slashingkeeper "github.com/cosmos/cosmos-sdk/x/slashing/keeper" slashingtypes "github.com/cosmos/cosmos-sdk/x/slashing/types" upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" - packetforward "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v4/router" - packetforwardkeeper "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v4/router/keeper" - packetforwardtypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v4/router/types" + "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v4/packetforward" + packetforwardkeeper "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v4/packetforward/keeper" + packetforwardtypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v4/packetforward/types" ica "github.com/cosmos/ibc-go/v4/modules/apps/27-interchain-accounts" icahost "github.com/cosmos/ibc-go/v4/modules/apps/27-interchain-accounts/host" icahostkeeper "github.com/cosmos/ibc-go/v4/modules/apps/27-interchain-accounts/host/keeper" @@ -87,6 +87,9 @@ import ( tmos "github.com/tendermint/tendermint/libs/os" dbm "github.com/tendermint/tm-db" + fiattokenfactorymodule "github.com/circlefin/noble-fiattokenfactory/x/fiattokenfactory" + fiattokenfactorymodulekeeper "github.com/circlefin/noble-fiattokenfactory/x/fiattokenfactory/keeper" + fiattokenfactorymoduletypes "github.com/circlefin/noble-fiattokenfactory/x/fiattokenfactory/types" "github.com/cosmos/cosmos-sdk/x/staking" stakingkeeper "github.com/cosmos/cosmos-sdk/x/staking/keeper" stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" @@ -99,9 +102,6 @@ import ( "github.com/strangelove-ventures/noble/cmd" "github.com/strangelove-ventures/noble/docs" "github.com/strangelove-ventures/noble/x/blockibc" - fiattokenfactorymodule "github.com/strangelove-ventures/noble/x/fiattokenfactory" - fiattokenfactorymodulekeeper "github.com/strangelove-ventures/noble/x/fiattokenfactory/keeper" - fiattokenfactorymoduletypes "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" "github.com/strangelove-ventures/noble/x/globalfee" tariff "github.com/strangelove-ventures/noble/x/tariff" tariffkeeper "github.com/strangelove-ventures/noble/x/tariff/keeper" @@ -662,7 +662,6 @@ func New( SignModeHandler: encodingConfig.TxConfig.SignModeHandler(), SigGasConsumer: ante.DefaultSigVerificationGasConsumer, }, - tokenFactoryKeeper: app.TokenFactoryKeeper, fiatTokenFactoryKeeper: app.FiatTokenFactoryKeeper, IBCKeeper: app.IBCKeeper, diff --git a/app/upgrades/argon/upgrade.go b/app/upgrades/argon/upgrade.go index a7ae6ae9..59c9a09b 100644 --- a/app/upgrades/argon/upgrade.go +++ b/app/upgrades/argon/upgrade.go @@ -4,10 +4,10 @@ import ( "cosmossdk.io/math" cctpkeeper "github.com/circlefin/noble-cctp/x/cctp/keeper" cctptypes "github.com/circlefin/noble-cctp/x/cctp/types" + fiattokenfactorykeeper "github.com/circlefin/noble-fiattokenfactory/x/fiattokenfactory/keeper" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" - fiattokenfactorykeeper "github.com/strangelove-ventures/noble/x/fiattokenfactory/keeper" ) func CreateUpgradeHandler( diff --git a/app/upgrades/neon/store.go b/app/upgrades/neon/store.go index a7862731..62896030 100644 --- a/app/upgrades/neon/store.go +++ b/app/upgrades/neon/store.go @@ -5,7 +5,7 @@ import ( storeTypes "github.com/cosmos/cosmos-sdk/store/types" // FiatTokenFactory - fiatTokenFactoryTypes "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" + fiatTokenFactoryTypes "github.com/circlefin/noble-fiattokenfactory/x/fiattokenfactory/types" // Upgrade upgradeTypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" ) diff --git a/app/upgrades/neon/upgrade.go b/app/upgrades/neon/upgrade.go index b34f577a..68e1cb76 100644 --- a/app/upgrades/neon/upgrade.go +++ b/app/upgrades/neon/upgrade.go @@ -8,10 +8,10 @@ import ( upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" + "github.com/circlefin/noble-fiattokenfactory/x/fiattokenfactory" + fiattokenfactorykeeper "github.com/circlefin/noble-fiattokenfactory/x/fiattokenfactory/keeper" + fiattokenfactorytypes "github.com/circlefin/noble-fiattokenfactory/x/fiattokenfactory/types" authkeeper "github.com/cosmos/cosmos-sdk/x/auth/keeper" - "github.com/strangelove-ventures/noble/x/fiattokenfactory" - fiattokenfactorykeeper "github.com/strangelove-ventures/noble/x/fiattokenfactory/keeper" - fiattokenfactorytypes "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" ) func initialFiatTokenFactoryState() fiattokenfactorytypes.GenesisState { diff --git a/app/upgrades/radon/upgrade.go b/app/upgrades/radon/upgrade.go index 82d9fe22..15855dd7 100644 --- a/app/upgrades/radon/upgrade.go +++ b/app/upgrades/radon/upgrade.go @@ -6,8 +6,8 @@ import ( paramauthoritykeeper "github.com/strangelove-ventures/paramauthority/x/params/keeper" + fiattokenfactorykeeper "github.com/circlefin/noble-fiattokenfactory/x/fiattokenfactory/keeper" upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" - fiattokenfactorykeeper "github.com/strangelove-ventures/noble/x/fiattokenfactory/keeper" globalfeetypes "github.com/strangelove-ventures/noble/x/globalfee/types" tarifftypes "github.com/strangelove-ventures/noble/x/tariff/types" diff --git a/go.mod b/go.mod index 3cc6a86d..307bee4e 100644 --- a/go.mod +++ b/go.mod @@ -5,9 +5,10 @@ go 1.21 require ( cosmossdk.io/errors v1.0.0 cosmossdk.io/math v1.0.1 - github.com/circlefin/noble-cctp v0.0.0-20231013164358-dc81b3e0d566 + github.com/circlefin/noble-cctp v0.0.0-20231108011259-7c5206df02dc + github.com/circlefin/noble-fiattokenfactory v0.0.0-20240311150858-14edf83ee1c9 github.com/cosmos/cosmos-sdk v0.45.16 - github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v4 v4.1.1 + github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v4 v4.1.2-0.20240228222021-455757bb5771 github.com/cosmos/ibc-go/v4 v4.5.1 github.com/gogo/protobuf v1.3.3 github.com/golang/protobuf v1.5.3 @@ -31,7 +32,7 @@ require ( cosmossdk.io/depinject v1.0.0-alpha.3 // indirect filippo.io/edwards25519 v1.0.0 // indirect github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect - github.com/99designs/keyring v1.2.1 // indirect + github.com/99designs/keyring v1.2.2 // indirect github.com/ChainSafe/go-schnorrkel v1.0.0 // indirect github.com/DataDog/zstd v1.5.2 // indirect github.com/Workiva/go-datastructures v1.0.53 // indirect @@ -49,22 +50,22 @@ require ( github.com/coinbase/rosetta-sdk-go v0.7.9 // indirect github.com/cometbft/cometbft-db v0.7.0 // indirect github.com/confio/ics23/go v0.9.1 // indirect - github.com/cosmos/btcutil v1.0.4 // indirect + github.com/cosmos/btcutil v1.0.5 // indirect github.com/cosmos/cosmos-db v0.0.0-20221226095112-f3c38ecb5e32 // indirect - github.com/cosmos/cosmos-proto v1.0.0-beta.1 // indirect + github.com/cosmos/cosmos-proto v1.0.0-beta.2 // indirect github.com/cosmos/go-bip39 v1.0.0 // indirect github.com/cosmos/gorocksdb v1.2.0 // indirect github.com/cosmos/iavl v0.19.5 // indirect github.com/cosmos/ledger-cosmos-go v0.12.2 // indirect - github.com/creachadair/taskgroup v0.3.2 // indirect + github.com/creachadair/taskgroup v0.4.2 // indirect github.com/danieljoos/wincred v1.1.2 // indirect github.com/davecgh/go-spew v1.1.1 // indirect - github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.1 // indirect + github.com/decred/dcrd/dcrec/secp256k1/v4 v4.1.0 // indirect github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f // indirect github.com/dgraph-io/badger/v2 v2.2007.4 // indirect - github.com/dgraph-io/ristretto v0.1.0 // indirect + github.com/dgraph-io/ristretto v0.1.1 // indirect github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13 // indirect - github.com/dustin/go-humanize v1.0.0 // indirect + github.com/dustin/go-humanize v1.0.1 // indirect github.com/dvsekhvalnov/jose2go v1.5.0 // indirect github.com/ethereum/go-ethereum v1.12.2 // indirect github.com/felixge/httpsnoop v1.0.2 // indirect @@ -72,10 +73,10 @@ require ( github.com/getsentry/sentry-go v0.18.0 // indirect github.com/go-kit/kit v0.12.0 // indirect github.com/go-kit/log v0.2.1 // indirect - github.com/go-logfmt/logfmt v0.5.1 // indirect + github.com/go-logfmt/logfmt v0.6.0 // indirect github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect github.com/gogo/gateway v1.1.0 // indirect - github.com/golang/glog v1.0.0 // indirect + github.com/golang/glog v1.1.0 // indirect github.com/golang/snappy v0.0.5-0.20220116011046-fa5810519dcb // indirect github.com/google/btree v1.1.2 // indirect github.com/google/orderedcode v0.0.1 // indirect @@ -88,59 +89,58 @@ require ( github.com/hashicorp/go-immutable-radix v1.3.1 // indirect github.com/hashicorp/golang-lru v0.5.5-0.20210104140557-80c98217689d // indirect github.com/hashicorp/hcl v1.0.0 // indirect - github.com/hdevalence/ed25519consensus v0.0.0-20220222234857-c00d1f31bab3 // indirect + github.com/hdevalence/ed25519consensus v0.1.0 // indirect github.com/holiman/uint256 v1.2.3 // indirect github.com/iancoleman/orderedmap v0.2.0 // indirect github.com/improbable-eng/grpc-web v0.15.0 // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect github.com/jmhodges/levigo v1.0.0 // indirect - github.com/klauspost/compress v1.15.15 // indirect + github.com/klauspost/compress v1.16.3 // indirect github.com/kr/pretty v0.3.1 // indirect github.com/kr/text v0.2.0 // indirect github.com/lib/pq v1.10.9 // indirect github.com/libp2p/go-buffer-pool v0.1.0 // indirect github.com/linxGnu/grocksdb v1.7.10 // indirect - github.com/magiconair/properties v1.8.6 // indirect + github.com/magiconair/properties v1.8.7 // indirect github.com/mattn/go-colorable v0.1.13 // indirect - github.com/mattn/go-isatty v0.0.17 // indirect + github.com/mattn/go-isatty v0.0.18 // indirect github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect - github.com/mimoo/StrobeGo v0.0.0-20210601165009-122bf33a46e0 // indirect + github.com/mimoo/StrobeGo v0.0.0-20220103164710-9a04d6ca976b // indirect github.com/minio/highwayhash v1.0.2 // indirect github.com/mitchellh/mapstructure v1.5.0 // indirect github.com/mtibben/percent v0.2.1 // indirect - github.com/pelletier/go-toml v1.9.5 // indirect - github.com/pelletier/go-toml/v2 v2.0.5 // indirect - github.com/petermattis/goid v0.0.0-20180202154549-b0b1615b78e5 // indirect + github.com/pelletier/go-toml/v2 v2.0.8 // indirect + github.com/petermattis/goid v0.0.0-20230317030725-371a4b8eda08 // indirect github.com/pkg/errors v0.9.1 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect - github.com/prometheus/client_golang v1.14.0 // indirect + github.com/prometheus/client_golang v1.15.0 // indirect github.com/prometheus/client_model v0.3.0 // indirect - github.com/prometheus/common v0.39.0 // indirect + github.com/prometheus/common v0.42.0 // indirect github.com/prometheus/procfs v0.9.0 // indirect github.com/rakyll/statik v0.1.7 // indirect github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect github.com/regen-network/cosmos-proto v0.3.1 // indirect github.com/rogpeppe/go-internal v1.10.0 // indirect - github.com/rs/cors v1.8.2 // indirect + github.com/rs/cors v1.8.3 // indirect github.com/rs/zerolog v1.27.0 // indirect github.com/sasha-s/go-deadlock v0.3.1 // indirect - github.com/spf13/afero v1.9.2 // indirect + github.com/spf13/afero v1.9.3 // indirect github.com/spf13/jwalterweatherman v1.1.0 // indirect - github.com/spf13/viper v1.14.0 // indirect - github.com/subosito/gotenv v1.4.1 // indirect - github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 // indirect + github.com/spf13/viper v1.15.0 // indirect + github.com/subosito/gotenv v1.4.2 // indirect + github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d // indirect github.com/tecbot/gorocksdb v0.0.0-20191217155057-f0fad39f321c // indirect github.com/tendermint/go-amino v0.16.0 // indirect github.com/tidwall/btree v1.5.0 // indirect github.com/zondax/hid v0.9.2 // indirect github.com/zondax/ledger-go v0.14.3 // indirect - go.etcd.io/bbolt v1.3.6 // indirect - golang.org/x/crypto v0.12.0 // indirect + go.etcd.io/bbolt v1.3.7 // indirect + golang.org/x/crypto v0.14.0 // indirect golang.org/x/exp v0.0.0-20230810033253-352e893a4cad // indirect - golang.org/x/net v0.14.0 // indirect - golang.org/x/sys v0.11.0 // indirect - golang.org/x/term v0.11.0 // indirect - golang.org/x/text v0.12.0 // indirect + golang.org/x/net v0.17.0 // indirect + golang.org/x/sys v0.13.0 // indirect + golang.org/x/term v0.13.0 // indirect + golang.org/x/text v0.13.0 // indirect google.golang.org/genproto v0.0.0-20230629202037-9506855d4529 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20230706204954-ccb25ca9f130 // indirect google.golang.org/protobuf v1.31.0 // indirect @@ -160,6 +160,9 @@ replace ( // https://github.com/cosmos/cosmos-sdk/issues/8469 github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alpha.regen.1 + // use cosmos compatible syndtr/goleveldb + github.com/syndtr/goleveldb => github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 + // use cometbft github.com/tendermint/tendermint => github.com/cometbft/cometbft v0.34.27 diff --git a/go.sum b/go.sum index e34155a6..ada92f17 100644 --- a/go.sum +++ b/go.sum @@ -56,8 +56,8 @@ git.sr.ht/~sircmpwn/getopt v0.0.0-20191230200459-23622cc906b3/go.mod h1:wMEGFFFN git.sr.ht/~sircmpwn/go-bare v0.0.0-20210406120253-ab86bc2846d9/go.mod h1:BVJwbDfVjCjoFiKrhkei6NdGcZYpkDkdyCdg1ukytRA= github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 h1:/vQbFIOMbk2FiG/kXiLl8BRyzTWDw7gX/Hz7Dd5eDMs= github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4/go.mod h1:hN7oaIRCjzsZ2dE+yG5k+rsdt3qcwykqK6HVGcKwsw4= -github.com/99designs/keyring v1.2.1 h1:tYLp1ULvO7i3fI5vE21ReQuj99QFSs7lGm0xWyJo87o= -github.com/99designs/keyring v1.2.1/go.mod h1:fc+wB5KTk9wQ9sDx0kFXB3A0MaeGHM9AwRStKOQ5vOA= +github.com/99designs/keyring v1.2.2 h1:pZd3neh/EmUzWONb35LxQfvuY7kiSXAq3HQd97+XBn0= +github.com/99designs/keyring v1.2.2/go.mod h1:wes/FrByc8j7lFOAGLGSNEg8f/PaI3cgTBqhFkHUrPk= github.com/AndreasBriese/bbloom v0.0.0-20190306092124-e2d15f34fcf9/go.mod h1:bOvUY6CB00SOBii9/FifXqc0awNKxLFCL/+pkDPuyl8= github.com/Azure/azure-sdk-for-go/sdk/azcore v0.21.1/go.mod h1:fBF9PQNqB8scdgpZ3ufzaLntG0AG7C1WjPMsiFOmfHM= github.com/Azure/azure-sdk-for-go/sdk/internal v0.8.3/go.mod h1:KLF4gFr6DcKFZwSuH8w8yEK6DpFl3LP5rhdvAb7Yz5I= @@ -183,8 +183,10 @@ github.com/cespare/xxhash/v2 v2.2.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XL github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= -github.com/circlefin/noble-cctp v0.0.0-20231013164358-dc81b3e0d566 h1:PUo/InK7onrx6gt1aMfng5nBRIqKf523coNYhFvexmc= -github.com/circlefin/noble-cctp v0.0.0-20231013164358-dc81b3e0d566/go.mod h1:kTaX51dOT10LBoERZYT1ahuove3dL/+q5IagWQUABd0= +github.com/circlefin/noble-cctp v0.0.0-20231108011259-7c5206df02dc h1:vm2CZfO8sjxPFKzguuZl1FjHHdbgRUWvF3x2lw6NyEU= +github.com/circlefin/noble-cctp v0.0.0-20231108011259-7c5206df02dc/go.mod h1:ssEHJqFI1f4a5sLtZ7qeYJ7/75LzDgzbBv4C9as3y3w= +github.com/circlefin/noble-fiattokenfactory v0.0.0-20240311150858-14edf83ee1c9 h1:zos4B3act5oqjkWJ20iBOX0mHINcEQ6wdqtHdcmAiqE= +github.com/circlefin/noble-fiattokenfactory v0.0.0-20240311150858-14edf83ee1c9/go.mod h1:pWbZhxq9IBFK9d24ZdmSKdG3LgFbp97r18IbF56QwnE= github.com/circonus-labs/circonus-gometrics v2.3.1+incompatible/go.mod h1:nmEj6Dob7S7YxXgwXpfOuvO54S+tGdZdw9fuRZt25Ag= github.com/circonus-labs/circonusllhist v0.1.3/go.mod h1:kMXHVDlOchFAehlya5ePtbp5jckzBHf4XRpQvBOLI+I= github.com/clbanning/x2j v0.0.0-20191024224557-825249438eec/go.mod h1:jMjuTZXRI4dUb/I5gc9Hdhagfvm9+RyrPryS/auMzxE= @@ -227,12 +229,12 @@ github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3Ee github.com/coreos/go-systemd v0.0.0-20180511133405-39ca1b05acc7/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= github.com/coreos/go-systemd/v22 v22.3.3-0.20220203105225-a9a7ef127534/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/coreos/pkg v0.0.0-20160727233714-3ac0863d7acf/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= -github.com/cosmos/btcutil v1.0.4 h1:n7C2ngKXo7UC9gNyMNLbzqz7Asuf+7Qv4gnX/rOdQ44= -github.com/cosmos/btcutil v1.0.4/go.mod h1:Ffqc8Hn6TJUdDgHBwIZLtrLQC1KdJ9jGJl/TvgUaxbU= +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-db v0.0.0-20221226095112-f3c38ecb5e32 h1:zlCp9n3uwQieELltZWHRmwPmPaZ8+XoL2Sj+A2YJlr8= github.com/cosmos/cosmos-db v0.0.0-20221226095112-f3c38ecb5e32/go.mod h1:kwMlEC4wWvB48zAShGKVqboJL6w4zCLesaNQ3YLU2BQ= -github.com/cosmos/cosmos-proto v1.0.0-beta.1 h1:iDL5qh++NoXxG8hSy93FdYJut4XfgbShIocllGaXx/0= -github.com/cosmos/cosmos-proto v1.0.0-beta.1/go.mod h1:8k2GNZghi5sDRFw/scPL8gMSowT1vDA+5ouxL8GjaUE= +github.com/cosmos/cosmos-proto v1.0.0-beta.2 h1:X3OKvWgK9Gsejo0F1qs5l8Qn6xJV/AzgIWR2wZ8Nua8= +github.com/cosmos/cosmos-proto v1.0.0-beta.2/go.mod h1:+XRCLJ14pr5HFEHIUcn51IKXD1Fy3rkEQqt4WqmN4V0= github.com/cosmos/cosmos-sdk v0.45.16 h1:5ba/Bh5/LE55IwHQuCU4fiG4eXeDKtSWzehXRpaKDcw= github.com/cosmos/cosmos-sdk v0.45.16/go.mod h1:bScuNwWAP0TZJpUf+SHXRU3xGoUPp+X9nAzfeIXts40= github.com/cosmos/go-bip39 v0.0.0-20180819234021-555e2067c45d/go.mod h1:tSxLoYXyBmiFeKpvmq4dzayMdCjCnu8uqmCysIGBT2Y= @@ -242,10 +244,8 @@ github.com/cosmos/gorocksdb v1.2.0 h1:d0l3jJG8M4hBouIZq0mDUHZ+zjOx044J3nGRskwTb4 github.com/cosmos/gorocksdb v1.2.0/go.mod h1:aaKvKItm514hKfNJpUJXnnOWeBnk2GL4+Qw9NHizILw= github.com/cosmos/iavl v0.19.5 h1:rGA3hOrgNxgRM5wYcSCxgQBap7fW82WZgY78V9po/iY= github.com/cosmos/iavl v0.19.5/go.mod h1:X9PKD3J0iFxdmgNLa7b2LYWdsGd90ToV5cAONApkEPw= -github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v4 v4.1.1 h1:TeiMKG56Kg+lqw/+08dfusInebjVagr9v75sP2GJo6w= -github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v4 v4.1.1/go.mod h1:mFk2qfXAm7ndXQQuXUGm9tlC2OM9jxPQb5PRKEHNU5I= -github.com/cosmos/ibc-go/v3 v3.4.0 h1:ha3cqEG36pqMWqA1D+kxDWBTZXpeFMd/aZIQF7I0xro= -github.com/cosmos/ibc-go/v3 v3.4.0/go.mod h1:VwB/vWu4ysT5DN2aF78d17LYmx3omSAdq6gpKvM7XRA= +github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v4 v4.1.2-0.20240228222021-455757bb5771 h1:f59vE1bhd2HvZJmDyxcGHXnk18H5BtL0GZtw0ED8gUA= +github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v4 v4.1.2-0.20240228222021-455757bb5771/go.mod h1:0g4hau4zO12tpvyiOcyEpcmcsXbBAN4WX+BhTO6xZVg= github.com/cosmos/ibc-go/v4 v4.5.1 h1:+P73X7aIikGAXBUJ9vP9rEbvdSuekt3KGXmAWCSYets= github.com/cosmos/ibc-go/v4 v4.5.1/go.mod h1:2EOi40Bx/j6rJrtP1ui8k8yUAMpGybmL1EjakYqYv5U= github.com/cosmos/ledger-cosmos-go v0.12.4 h1:drvWt+GJP7Aiw550yeb3ON/zsrgW0jgh5saFCr7pDnw= @@ -253,8 +253,8 @@ github.com/cosmos/ledger-cosmos-go v0.12.4/go.mod h1:fjfVWRf++Xkygt9wzCsjEBdjcf7 github.com/cpuguy83/go-md2man v1.0.10/go.mod h1:SmD6nW6nTyfqj6ABTjUi3V3JVMnlJmwcJI5acqYI6dE= github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= -github.com/creachadair/taskgroup v0.3.2 h1:zlfutDS+5XG40AOxcHDSThxKzns8Tnr9jnr6VqkYlkM= -github.com/creachadair/taskgroup v0.3.2/go.mod h1:wieWwecHVzsidg2CsUnFinW1faVN4+kq+TDlRJQ0Wbk= +github.com/creachadair/taskgroup v0.4.2 h1:jsBLdAJE42asreGss2xZGZ8fJra7WtwnHWeJFxv2Li8= +github.com/creachadair/taskgroup v0.4.2/go.mod h1:qiXUOSrbwAY3u0JPGTzObbE3yf9hcXHDKBZ2ZjpCbgM= github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7DoTY= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/cucumber/common/gherkin/go/v22 v22.0.0 h1:4K8NqptbvdOrjL9DEea6HFjSpbdT9+Q5kgLpmmsHYl0= @@ -272,8 +272,9 @@ github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSs github.com/deckarep/golang-set v1.8.0/go.mod h1:5nI87KwE7wgsBU1F4GKAw2Qod7p5kyS383rP6+o6qqo= github.com/decred/dcrd/crypto/blake256 v1.0.0 h1:/8DMNYp9SGi5f0w7uCm6d6M4OU2rGFK09Y2A4Xv7EE0= github.com/decred/dcrd/crypto/blake256 v1.0.0/go.mod h1:sQl2p6Y26YV+ZOcSTP6thNdn47hh8kt6rqSlvmrXFAc= -github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.1 h1:YLtO71vCjJRCBcrPMtQ9nqBsqpA1m5sE92cU+pd5Mcc= github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.1/go.mod h1:hyedUtir6IdtD/7lIxGeCxkaw7y45JueMRL4DIyJDKs= +github.com/decred/dcrd/dcrec/secp256k1/v4 v4.1.0 h1:HbphB4TFFXpv7MNrT52FGrrgVXF1owhMVTHFZIlnvd4= +github.com/decred/dcrd/dcrec/secp256k1/v4 v4.1.0/go.mod h1:DZGJHZMqrU4JJqFAWUS2UO1+lbSKsdiOoYi9Zzey7Fc= github.com/decred/dcrd/lru v1.0.0/go.mod h1:mxKOwFd7lFjN2GZYsiz/ecgqR6kkYAl+0pz0tEMk218= github.com/deepmap/oapi-codegen v1.6.0/go.mod h1:ryDa9AgbELGeB+YEXE1dR53yAjHwFvE9iAUlWl9Al3M= github.com/deepmap/oapi-codegen v1.8.2/go.mod h1:YLgSKSDv/bZQB7N4ws6luhozi3cEdRktEqrX88CvjIw= @@ -284,8 +285,8 @@ github.com/dgraph-io/badger/v2 v2.2007.4 h1:TRWBQg8UrlUhaFdco01nO2uXwzKS7zd+HVdw github.com/dgraph-io/badger/v2 v2.2007.4/go.mod h1:vSw/ax2qojzbN6eXHIx6KPKtCSHJN/Uz0X0VPruTIhk= github.com/dgraph-io/ristretto v0.0.3-0.20200630154024-f66de99634de/go.mod h1:KPxhHT9ZxKefz+PCeOGsrHpl1qZ7i70dGTu2u+Ahh6E= github.com/dgraph-io/ristretto v0.0.3/go.mod h1:KPxhHT9ZxKefz+PCeOGsrHpl1qZ7i70dGTu2u+Ahh6E= -github.com/dgraph-io/ristretto v0.1.0 h1:Jv3CGQHp9OjuMBSne1485aDpUkTKEcUqF+jm/LuerPI= -github.com/dgraph-io/ristretto v0.1.0/go.mod h1:fux0lOrBhrVCJd3lcTHsIJhq1T2rokOu6v9Vcb3Q9ug= +github.com/dgraph-io/ristretto v0.1.1 h1:6CWw5tJNgpegArSHpNHJKldNeq03FQCwYvfMVWajOK8= +github.com/dgraph-io/ristretto v0.1.1/go.mod h1:S1GPSBCYCIhmVNfcth17y2zZtQT6wzkzgwUve0VDWWA= github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ= github.com/dgryski/go-bitstream v0.0.0-20180413035011-3522498ce2c8/go.mod h1:VMaSuZ+SZcx/wljOQKvp5srsbCiKDEb6K2wC4+PiBmQ= github.com/dgryski/go-farm v0.0.0-20190423205320-6a90982ecee2/go.mod h1:SqUrOPUnsFjfmXRMNPybcSiG0BgUW2AuFH8PAnS2iTw= @@ -303,8 +304,9 @@ github.com/docker/go-units v0.5.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDD github.com/dop251/goja v0.0.0-20211011172007-d99e4b8cbf48/go.mod h1:R9ET47fwRVRPZnOGvHxxhuZcbrMCuiqOz3Rlrh4KSnk= github.com/dop251/goja_nodejs v0.0.0-20210225215109-d91c329300e7/go.mod h1:hn7BA7c8pLvoGndExHudxTDKZ84Pyvv+90pbBjbTz0Y= github.com/dustin/go-humanize v0.0.0-20171111073723-bb3d318650d4/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= -github.com/dustin/go-humanize v1.0.0 h1:VSnTsYCnlFHaM2/igO1h6X3HA71jcobQuxemgkq4zYo= github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= +github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkpeCY= +github.com/dustin/go-humanize v1.0.1/go.mod h1:Mu1zIs6XwVuF/gI1OepvI0qD18qycQx+mFykh5fBlto= github.com/dvsekhvalnov/jose2go v1.5.0 h1:3j8ya4Z4kMCwT5nXIKFSV84YS+HdqSSO0VsTQxaLAeM= github.com/dvsekhvalnov/jose2go v1.5.0/go.mod h1:QsHjhyTlD/lAVqn/NSbVZmSCGeDehTB/mPZadG+mhXU= github.com/eapache/go-resiliency v1.1.0/go.mod h1:kFI+JgMyC7bLPUVY133qvEBtVayf5mFgVsvEsIPBvNs= @@ -379,8 +381,8 @@ github.com/go-kit/log v0.2.1/go.mod h1:NwTd00d/i8cPZ3xOwwiv2PO5MOcx78fFErGNcVmBj github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A= -github.com/go-logfmt/logfmt v0.5.1 h1:otpy5pqBCBZ1ng9RQ0dPu4PN7ba75Y/aA+UpowDyNVA= -github.com/go-logfmt/logfmt v0.5.1/go.mod h1:WYhtIu8zTZfxdn5+rREduYbwxfcBr/Vr6KEVveWlfTs= +github.com/go-logfmt/logfmt v0.6.0 h1:wGYYu3uicYdqXVgoYbvnkrPVXkuLM1p1ifugDMEdRi4= +github.com/go-logfmt/logfmt v0.6.0/go.mod h1:WYhtIu8zTZfxdn5+rREduYbwxfcBr/Vr6KEVveWlfTs= github.com/go-martini/martini v0.0.0-20170121215854-22fa46961aab/go.mod h1:/P9AEU963A2AYjv4d1V5eVL1CQbEJq6aCNHDDjibzu8= github.com/go-ole/go-ole v1.2.1/go.mod h1:7FAglXiTm7HKlQRDeOQ6ZNUHidzCWXuZWq/1dTyBNF8= github.com/go-openapi/jsonpointer v0.19.5/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg= @@ -423,8 +425,8 @@ github.com/golang-jwt/jwt/v4 v4.3.0/go.mod h1:/xlHOz8bRuivTWchD4jCa+NbatV+wEUSzw github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0/go.mod h1:E/TSTwGwJL78qG/PmXZO1EjYhfJinVAhrmmHX6Z8B9k= github.com/golang/geo v0.0.0-20190916061304-5b978397cfec/go.mod h1:QZ0nwyI2jOfgRAoBvP+ab5aRr7c9x7lhGEJrKvBwjWI= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= -github.com/golang/glog v1.0.0 h1:nfP3RFugxnNRyKgeWd4oI1nYvXpxrx8ck8ZrcizshdQ= -github.com/golang/glog v1.0.0/go.mod h1:EWib/APOK0SL3dFbYqvxE3UYd8E6s1ouQ7iEp/0LWV4= +github.com/golang/glog v1.1.0 h1:/d3pCKDPWNnvIWe0vVUpNP32qc8U3PDVxySP/y360qE= +github.com/golang/glog v1.1.0/go.mod h1:pfYeQZ3JWZoXTV5sFc986z3HTpwQs9At6P4ImfuP3NQ= github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= @@ -555,8 +557,9 @@ github.com/hashicorp/go-rootcerts v1.0.0/go.mod h1:K6zTfqpRlCUIjkwsN4Z+hiSfzSTQa github.com/hashicorp/go-sockaddr v1.0.0/go.mod h1:7Xibr9yA9JjQq1JpNB2Vw7kxv8xerXegt+ozgdvDeDU= github.com/hashicorp/go-syslog v1.0.0/go.mod h1:qPfqrKkXGihmCqbJM2mZgkZGvKG1dFdvsLplgctolz4= github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= -github.com/hashicorp/go-uuid v1.0.1 h1:fv1ep09latC32wFoVwnqcnKJGnMSdBanPczbHAYm1BE= github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= +github.com/hashicorp/go-uuid v1.0.2 h1:cfejS+Tpcp13yd5nYHWDI6qVCny6wyX2Mt5SGur2IGE= +github.com/hashicorp/go-uuid v1.0.2/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= github.com/hashicorp/go-version v1.2.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/hashicorp/go.net v0.0.1/go.mod h1:hjKkEWcCURg++eb33jQU7oqQcI9XDCnUzHA0oac0k90= github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= @@ -569,8 +572,8 @@ github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO github.com/hashicorp/mdns v1.0.0/go.mod h1:tL+uN++7HEJ6SQLQ2/p+z2pH24WQKWjBPkE0mNTz8vQ= github.com/hashicorp/memberlist v0.1.3/go.mod h1:ajVTdAv/9Im8oMAAj5G31PhhMCZJV2pPBoIllUwCN7I= github.com/hashicorp/serf v0.8.2/go.mod h1:6hOLApaqBFA1NXqRQAsxw9QxuDEvNxSQRwA/JwenrHc= -github.com/hdevalence/ed25519consensus v0.0.0-20220222234857-c00d1f31bab3 h1:aSVUgRRRtOrZOC1fYmY9gV0e9z/Iu+xNVSASWjsuyGU= -github.com/hdevalence/ed25519consensus v0.0.0-20220222234857-c00d1f31bab3/go.mod h1:5PC6ZNPde8bBqU/ewGZig35+UIZtw9Ytxez8/q5ZyFE= +github.com/hdevalence/ed25519consensus v0.1.0 h1:jtBwzzcHuTmFrQN6xQZn6CQEO/V9f7HsjsjeEZ6auqU= +github.com/hdevalence/ed25519consensus v0.1.0/go.mod h1:w3BHWjwJbFU29IRHL1Iqkw3sus+7FctEyM4RqDxYNzo= github.com/holiman/bloomfilter/v2 v2.0.3/go.mod h1:zpoh+gs7qcpqrHr3dB55AMiJwo0iURXE7ZOP9L9hSkA= github.com/holiman/uint256 v1.2.0/go.mod h1:y4ga/t+u+Xwd7CpDgZESaRcWy0I7XMlTMA25ApIH5Jw= github.com/holiman/uint256 v1.2.3 h1:K8UWO1HUJpRMXBxbmaY1Y8IAMZC/RsKB+ArEnnK4l5o= @@ -652,8 +655,8 @@ github.com/klauspost/compress v1.9.7/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0 github.com/klauspost/compress v1.10.3/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= github.com/klauspost/compress v1.11.7/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= github.com/klauspost/compress v1.12.3/go.mod h1:8dP1Hq4DHOhN9w426knH3Rhby4rFm6D8eO+e+Dq5Gzg= -github.com/klauspost/compress v1.15.15 h1:EF27CXIuDsYJ6mmvtBRlEuB2UVOqHG1tAXgZ7yIO+lw= -github.com/klauspost/compress v1.15.15/go.mod h1:ZcK2JAFqKOpnBlxcLsJzYfrS9X1akm9fHZNnD9+Vo/4= +github.com/klauspost/compress v1.16.3 h1:XuJt9zzcnaz6a16/OU53ZjWp/v7/42WcR5t2a0PcNQY= +github.com/klauspost/compress v1.16.3/go.mod h1:ntbaceVETuRiXiv4DpjP66DpAtAGkEQskQzEyD//IeE= github.com/klauspost/cpuid v0.0.0-20170728055534-ae7887de9fa5/go.mod h1:Pj4uuM528wm8OyEC2QMXAi2YiTZ96dNQPGgoMS4s3ek= github.com/klauspost/cpuid v1.2.1/go.mod h1:Pj4uuM528wm8OyEC2QMXAi2YiTZ96dNQPGgoMS4s3ek= github.com/klauspost/crc32 v0.0.0-20161016154125-cb6bfca970f6/go.mod h1:+ZoRqAPRLkC4NPOvfYeR5KNOrY6TD+/sAC3HXPZgDYg= @@ -690,8 +693,8 @@ github.com/linxGnu/grocksdb v1.7.10 h1:dz7RY7GnFUA+GJO6jodyxgkUeGMEkPp3ikt9hAcNG github.com/linxGnu/grocksdb v1.7.10/go.mod h1:0hTf+iA+GOr0jDX4CgIYyJZxqOH9XlBh6KVj8+zmF34= github.com/lucasjones/reggen v0.0.0-20180717132126-cdb49ff09d77/go.mod h1:5ELEyG+X8f+meRWHuqUOewBOhvHkl7M76pdGEansxW4= github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= -github.com/magiconair/properties v1.8.6 h1:5ibWZ6iY0NctNGWo87LalDlEZ6R41TqbbDamhfG/Qzo= -github.com/magiconair/properties v1.8.6/go.mod h1:y3VJvCyxH9uVvJTWEGAELF3aiYNyPKd5NZ3oSwXrF60= +github.com/magiconair/properties v1.8.7 h1:IeQXZAiQcpL9mgcAe1Nu6cX9LLw6ExEHKjN0VQdvPDY= +github.com/magiconair/properties v1.8.7/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0= github.com/mailru/easyjson v0.0.0-20190614124828-94de47d64c63/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= github.com/matryer/moq v0.0.0-20190312154309-6cfb0558e1bd/go.mod h1:9ELz6aaclSIGnZBoaSLZ3NAl1VTufbOrXBPvtcy6WiQ= @@ -712,8 +715,8 @@ github.com/mattn/go-isatty v0.0.9/go.mod h1:YNRxwqDuOph6SZLI9vUUz6OYw3QyUt7WiY2y github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= -github.com/mattn/go-isatty v0.0.17 h1:BTarxUcIeDqL27Mc+vyvdWYSL28zpIhv3RoTdsLMPng= -github.com/mattn/go-isatty v0.0.17/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= +github.com/mattn/go-isatty v0.0.18 h1:DOKFKCQ7FNG2L1rbrmstDN4QVRdS89Nkh85u68Uwp98= +github.com/mattn/go-isatty v0.0.18/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= github.com/mattn/go-runewidth v0.0.2/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= github.com/mattn/go-runewidth v0.0.3/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= github.com/mattn/go-runewidth v0.0.9/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI= @@ -727,8 +730,8 @@ github.com/mediocregopher/radix/v3 v3.4.2/go.mod h1:8FL3F6UQRXHXIBSPUs5h0RybMF8i github.com/microcosm-cc/bluemonday v1.0.2/go.mod h1:iVP4YcDBq+n/5fb23BhYFvIMq/leAFZyRl6bYmGDlGc= github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= github.com/mimoo/StrobeGo v0.0.0-20181016162300-f8f6d4d2b643/go.mod h1:43+3pMjjKimDBf5Kr4ZFNGbLql1zKkbImw+fZbw3geM= -github.com/mimoo/StrobeGo v0.0.0-20210601165009-122bf33a46e0 h1:QRUSJEgZn2Snx0EmT/QLXibWjSUDjKWvXIT19NBVp94= -github.com/mimoo/StrobeGo v0.0.0-20210601165009-122bf33a46e0/go.mod h1:43+3pMjjKimDBf5Kr4ZFNGbLql1zKkbImw+fZbw3geM= +github.com/mimoo/StrobeGo v0.0.0-20220103164710-9a04d6ca976b h1:QrHweqAtyJ9EwCaGHBu1fghwxIPiopAHV06JlXrMHjk= +github.com/mimoo/StrobeGo v0.0.0-20220103164710-9a04d6ca976b/go.mod h1:xxLb2ip6sSUts3g1irPVHyk/DGslwQsNOo9I7smJfNU= github.com/minio/highwayhash v1.0.2 h1:Aak5U0nElisjDCfPSG79Tgzkn2gl66NxOMspRrKnA/g= github.com/minio/highwayhash v1.0.2/go.mod h1:BQskDq+xkJ12lmlUUi7U0M5Swg3EWR+dLTk+kldvVxY= github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc= @@ -787,8 +790,9 @@ github.com/onsi/ginkgo v1.14.0/go.mod h1:iSB4RoI2tjJc9BBv4NKIKWKya62Rps+oPG/Lv9k github.com/onsi/gomega v1.4.1/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5uiA= github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY= -github.com/onsi/gomega v1.10.1 h1:o0+MgICZLuZ7xjH7Vx6zS/zcu93/BEp1VwkIW1mEXCE= github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo= +github.com/onsi/gomega v1.28.0 h1:i2rg/p9n/UqIDAMFUJ6qIUUMcsqOuUHgbpbu235Vr1c= +github.com/onsi/gomega v1.28.0/go.mod h1:A1H2JE76sI14WIP57LMKj7FVfCHx3g3BcZVjJG8bjX8= github.com/op/go-logging v0.0.0-20160315200505-970db520ece7/go.mod h1:HzydrMdWErDVzsI23lYNej1Htcns9BCg93Dk0bBINWk= github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U= github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM= @@ -807,8 +811,8 @@ github.com/openzipkin/zipkin-go v0.2.1/go.mod h1:NaW6tEwdmWMaCDZzg8sh+IBNOxHMPnh github.com/openzipkin/zipkin-go v0.2.2/go.mod h1:NaW6tEwdmWMaCDZzg8sh+IBNOxHMPnhQw8ySjnjRyN4= github.com/ory/dockertest v3.3.5+incompatible h1:iLLK6SQwIhcbrG783Dghaaa3WPzGc+4Emza6EbVUUGA= github.com/ory/dockertest v3.3.5+incompatible/go.mod h1:1vX4m9wsvi00u5bseYwXaSnhNrne+V0E6LAcBILJdPs= -github.com/otiai10/copy v1.6.0 h1:IinKAryFFuPONZ7cm6T6E2QX/vcJwSnlaA5lfoaXIiQ= -github.com/otiai10/copy v1.6.0/go.mod h1:XWfuS3CrI0R6IE0FbgHsEazaXO8G0LpMp9o8tos0x4E= +github.com/otiai10/copy v1.11.0 h1:OKBD80J/mLBrwnzXqGtFCzprFSGioo30JcmR4APsNwc= +github.com/otiai10/copy v1.11.0/go.mod h1:rSaLseMUsZFFbsFGc7wCJnnkTAvdc5L6VWxPE4308Ww= github.com/pact-foundation/pact-go v1.0.4/go.mod h1:uExwJY4kCzNPcHRj+hCR/HBbOOIwwtUjcrb0b5/5kLM= github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= github.com/pascaldekloe/goe v0.1.0 h1:cBOtyMzM9HTpWjXfbbunk26uA6nG3a8n06Wieeh0MwY= @@ -816,15 +820,14 @@ github.com/pascaldekloe/goe v0.1.0/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144T github.com/paulbellamy/ratecounter v0.2.0/go.mod h1:Hfx1hDpSGoqxkVVpBi/IlYD7kChlfo5C6hzIHwPqfFE= github.com/pborman/uuid v1.2.0/go.mod h1:X/NO0urCmaxf9VXbdlT7C2Yzkj2IKimNn4k+gtPdI/k= github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= -github.com/pelletier/go-toml v1.9.5 h1:4yBQzkHv+7BHq2PQUZF3Mx0IYxG7LsP222s7Agd3ve8= -github.com/pelletier/go-toml v1.9.5/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c= -github.com/pelletier/go-toml/v2 v2.0.5 h1:ipoSadvV8oGUjnUbMub59IDPPwfxF694nG/jwbMiyQg= -github.com/pelletier/go-toml/v2 v2.0.5/go.mod h1:OMHamSCAODeSsVrwwvcJOaoN0LIUIaFVNZzmWyNfXas= +github.com/pelletier/go-toml/v2 v2.0.8 h1:0ctb6s9mE31h0/lhu+J6OPmVeDxJn+kYnJc2jZR9tGQ= +github.com/pelletier/go-toml/v2 v2.0.8/go.mod h1:vuYfssBdrU2XDZ9bYydBu6t+6a6PYNcZljzZR9VXg+4= github.com/performancecopilot/speed v3.0.0+incompatible/go.mod h1:/CLtqpZ5gBg1M9iaPbIdPPGyKcA8hKdoy6hAWba7Yac= github.com/peterh/liner v1.0.1-0.20180619022028-8c1271fcf47f/go.mod h1:xIteQHvHuaLYG9IFj6mSxM0fCKrs34IrEQUhOYuGPHc= github.com/peterh/liner v1.1.1-0.20190123174540-a2c9a5303de7/go.mod h1:CRroGNssyjTd/qIG2FyxByd2S8JEAZXBl4qUrZf8GS0= -github.com/petermattis/goid v0.0.0-20180202154549-b0b1615b78e5 h1:q2e307iGHPdTGp0hoxKjt1H5pDo6utceo3dQVK3I5XQ= github.com/petermattis/goid v0.0.0-20180202154549-b0b1615b78e5/go.mod h1:jvVRKCrJTQWu0XVbaOlby/2lO20uSCHEMzzplHXte1o= +github.com/petermattis/goid v0.0.0-20230317030725-371a4b8eda08 h1:hDSdbBuw3Lefr6R18ax0tZ2BJeNB3NehB3trOwYBsdU= +github.com/petermattis/goid v0.0.0-20230317030725-371a4b8eda08/go.mod h1:pxMtw7cyUw6B2bRH0ZBANSPg+AoSud1I1iyJHI69jH4= github.com/philhofer/fwd v1.0.0/go.mod h1:gk3iGcWd9+svBvR0sR+KPcfE+RNWozjowpeBVG3ZVNU= github.com/philhofer/fwd v1.1.1/go.mod h1:gk3iGcWd9+svBvR0sR+KPcfE+RNWozjowpeBVG3ZVNU= github.com/pierrec/lz4 v1.0.2-0.20190131084431-473cd7ce01a1/go.mod h1:3/3N9NVKO0jef7pBehbT1qWhCMrIgbYNnFAZCqQ5LRc= @@ -848,8 +851,8 @@ github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5Fsn github.com/prometheus/client_golang v1.3.0/go.mod h1:hJaj2vgQTGQmVCsAACORcieXFeDPbaTKGT+JTgUa3og= github.com/prometheus/client_golang v1.4.0/go.mod h1:e9GMxYsXl05ICDXkRhurwBS4Q3OK1iX/F2sw+iXX5zU= github.com/prometheus/client_golang v1.7.1/go.mod h1:PY5Wy2awLA44sXw4AOSfFBetzPP4j5+D6mVACh+pe2M= -github.com/prometheus/client_golang v1.14.0 h1:nJdhIvne2eSX/XRAFV9PcvFFRbrjbcTUj0VP62TMhnw= -github.com/prometheus/client_golang v1.14.0/go.mod h1:8vpkKitgIVNcqrRBWh1C4TIUQgYNtG/XQE4E/Zae36Y= +github.com/prometheus/client_golang v1.15.0 h1:5fCgGYogn0hFdhyhLbw7hEsWxufKtY9klyvdNfFlFhM= +github.com/prometheus/client_golang v1.15.0/go.mod h1:e9yaBhRPU2pPNsZwE+JdQl0KEt1N9XgF6zxWmaC0xOk= github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= github.com/prometheus/client_model v0.0.0-20190115171406-56726106282f/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= @@ -866,8 +869,8 @@ github.com/prometheus/common v0.7.0/go.mod h1:DjGbpBbp5NYNiECxcL/VnbXCCaQpKd3tt2 github.com/prometheus/common v0.9.1/go.mod h1:yhUN8i9wzaXS3w1O07YhxHEBxD+W35wd8bs7vj7HSQ4= github.com/prometheus/common v0.10.0/go.mod h1:Tlit/dnDKsSWFlCLTWaA1cyBgKHSMdTB80sz/V91rCo= github.com/prometheus/common v0.15.0/go.mod h1:U+gB1OBLb1lF3O42bTCL+FK18tX9Oar16Clt/msog/s= -github.com/prometheus/common v0.39.0 h1:oOyhkDq05hPZKItWVBkJ6g6AtGxi+fy7F4JvUV8uhsI= -github.com/prometheus/common v0.39.0/go.mod h1:6XBZ7lYdLCbkAVhwRsWTZn+IN5AB9F/NXd5w0BbEX0Y= +github.com/prometheus/common v0.42.0 h1:EKsfXEYo4JpWMHH5cg+KOUWeuJSov1Id8zGR8eeI1YM= +github.com/prometheus/common v0.42.0/go.mod h1:xBwqVerjNdUDjgODMpudtOMwlOwf2SaTr1yjz4b7Zbc= github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= github.com/prometheus/procfs v0.0.0-20190117184657-bf6a532e95b1/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= @@ -899,8 +902,8 @@ github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/f github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjRBZyWFQ= github.com/rogpeppe/go-internal v1.10.0/go.mod h1:UQnix2H7Ngw/k4C5ijL5+65zddjncjaFoBhdsK/akog= github.com/rs/cors v1.7.0/go.mod h1:gFx+x8UowdsKA9AchylcLynDq+nNFfI8FkUZdN/jGCU= -github.com/rs/cors v1.8.2 h1:KCooALfAYGs415Cwu5ABvv9n9509fSiG5SQJn/AQo4U= -github.com/rs/cors v1.8.2/go.mod h1:XyqrcTp5zjWr1wsJ8PIRZssZ8b/WMcMf71DJnit4EMU= +github.com/rs/cors v1.8.3 h1:O+qNyWn7Z+F9M0ILBHgMVPuB1xTOucVd5gtaYyXBpRo= +github.com/rs/cors v1.8.3/go.mod h1:XyqrcTp5zjWr1wsJ8PIRZssZ8b/WMcMf71DJnit4EMU= github.com/rs/xid v1.3.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg= github.com/rs/zerolog v1.27.0 h1:1T7qCieN22GVc8S4Q2yuexzBb1EqjbgjSH9RohbMjKs= github.com/rs/zerolog v1.27.0/go.mod h1:7frBqO0oezxmnO7GF86FY++uy8I0Tk/If5ni1G9Qc0U= @@ -934,8 +937,8 @@ github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasO github.com/spaolacci/murmur3 v1.1.0 h1:7c1g84S4BPRrfL5Xrdp6fOJ206sU9y293DDHaoy0bLI= github.com/spaolacci/murmur3 v1.1.0/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ= -github.com/spf13/afero v1.9.2 h1:j49Hj62F0n+DaZ1dDCvhABaPNSGNkt32oRFxI33IEMw= -github.com/spf13/afero v1.9.2/go.mod h1:iUV7ddyEEZPO5gA3zD4fJt6iStLlL+Lg4m2cihcDf8Y= +github.com/spf13/afero v1.9.3 h1:41FoI0fD7OR7mGcKE/aOiLkGreyf8ifIOQmJANWogMk= +github.com/spf13/afero v1.9.3/go.mod h1:iUV7ddyEEZPO5gA3zD4fJt6iStLlL+Lg4m2cihcDf8Y= github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= github.com/spf13/cast v1.5.1 h1:R+kOtfhWQE6TVQzY+4D7wJLBgkdVasCEFxSUBYBYIlA= github.com/spf13/cast v1.5.1/go.mod h1:b9PdjNptOpzXr7Rq1q9gJML/2cdGQAo69NKzQ10KN48= @@ -951,8 +954,8 @@ github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnIn github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= github.com/spf13/viper v1.3.2/go.mod h1:ZiWeW+zYFKm7srdB9IoDzzZXaJaI5eL9QjNiN/DMA2s= -github.com/spf13/viper v1.14.0 h1:Rg7d3Lo706X9tHsJMUjdiwMpHB7W8WnSVOssIY+JElU= -github.com/spf13/viper v1.14.0/go.mod h1:WT//axPky3FdvXHzGw33dNdXXXfFQqmEalje+egj8As= +github.com/spf13/viper v1.15.0 h1:js3yy885G8xwJa6iOISGFwd+qlUo5AvyXb7CiihdtiU= +github.com/spf13/viper v1.15.0/go.mod h1:fFcTBJxvhhzSJiZy8n+PeW6t8l+KeT/uTARa0jHOQLA= github.com/status-im/keycard-go v0.0.0-20190316090335-8537d3370df4/go.mod h1:RZLeN1LMWmRsyYjvAu+I6Dm9QmlDaIIt+Y+4Kd7Tp+Q= github.com/strangelove-ventures/paramauthority v1.1.0 h1:SMeG2NvoWC1sP09ouszukck7ufSu+3gv98Apd+ytQHQ= github.com/strangelove-ventures/paramauthority v1.1.0/go.mod h1:WZltb3MpbQo40z4eQD6oNZRpCXtxr5/7j8lbMleDFIY= @@ -973,10 +976,11 @@ github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/ github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= +github.com/stretchr/testify v1.8.3/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -github.com/subosito/gotenv v1.4.1 h1:jyEFiXpy21Wm81FBN71l9VoMMV8H8jG+qIK3GCpY6Qs= -github.com/subosito/gotenv v1.4.1/go.mod h1:ayKnFf/c6rvx/2iiLrJUk1e6plDbT3edrFNGqEflhK0= +github.com/subosito/gotenv v1.4.2 h1:X1TuBLAMDFbaTAChgCBLu3DU3UPyELpnF2jjJ2cz/S8= +github.com/subosito/gotenv v1.4.2/go.mod h1:ayKnFf/c6rvx/2iiLrJUk1e6plDbT3edrFNGqEflhK0= github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 h1:epCh84lMvA70Z7CTTCmYQn2CKbY8j86K7/FAIr141uY= github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7/go.mod h1:q4W45IWZaF22tdD+VEXcAWRA037jwmWEB5VWYORlTpc= github.com/tecbot/gorocksdb v0.0.0-20191217155057-f0fad39f321c h1:g+WoO5jjkqGAzHWCjJB1zZfXPIAaDpzXIEJ0eS6B5Ok= @@ -1041,8 +1045,8 @@ github.com/zondax/hid v0.9.2/go.mod h1:l5wttcP0jwtdLjqjMMWFVEE7d1zO0jvSPA9OPZxWp github.com/zondax/ledger-go v0.14.3 h1:wEpJt2CEcBJ428md/5MgSLsXLBos98sBOyxNmCjfUCw= github.com/zondax/ledger-go v0.14.3/go.mod h1:IKKaoxupuB43g4NxeQmbLXv7T9AlQyie1UpHb342ycI= go.etcd.io/bbolt v1.3.3/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= -go.etcd.io/bbolt v1.3.6 h1:/ecaJf0sk1l4l6V4awd65v2C3ILy7MSj+s/x1ADCIMU= -go.etcd.io/bbolt v1.3.6/go.mod h1:qXsaaIqmgQH0T+OPdb99Bf+PKfBBQVAdyD6TY9G8XM4= +go.etcd.io/bbolt v1.3.7 h1:j+zJOnnEjF/kyHlDDgGnVL/AIqIJPq8UoB2GSNfkUfQ= +go.etcd.io/bbolt v1.3.7/go.mod h1:N9Mkw9X8x5fupy0IKsmuqVtoGDyxsaDlbk4Rd05IAQw= go.etcd.io/etcd v0.0.0-20191023171146-3cf2f69b5738/go.mod h1:dnLIgRNXwCJa5e+c6mIZCrds/GIG4ncV9HhK5PX7jPg= go.opencensus.io v0.20.1/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk= go.opencensus.io v0.20.2/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk= @@ -1055,6 +1059,8 @@ go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk= go.uber.org/atomic v1.3.2/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= go.uber.org/atomic v1.5.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ= +go.uber.org/mock v0.2.0 h1:TaP3xedm7JaAgScZO7tlvlKrqT0p7I6OsdGB5YNSMDU= +go.uber.org/mock v0.2.0/go.mod h1:J0y0rp9L3xiff1+ZBfKxlC1fz2+aO16tw0tsDOixfuM= go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0= go.uber.org/multierr v1.3.0/go.mod h1:VgVr7evmIr6uPjLBxg28wmKNXyqE9akIJ5XnfpiKl+4= go.uber.org/tools v0.0.0-20190618225709-2cfd321de3ee/go.mod h1:vJERXedbb3MVM5f9Ejo0C68/HhF8uaILCdgjnY+goOA= @@ -1085,8 +1091,8 @@ golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.0.0-20211108221036-ceb1ce70b4fa/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/crypto v0.12.0 h1:tFM/ta59kqch6LlvYnPa0yx5a83cL2nHflFhYKvv9Yk= -golang.org/x/crypto v0.12.0/go.mod h1:NF0Gs7EO5K4qLn+Ylc+fih8BSTeIjAP05siRnAh98yw= +golang.org/x/crypto v0.14.0 h1:wBqGXzWJW6m1XrIKlAH0Hs1JJ7+9KBwnIO8v66Q9cHc= +golang.org/x/crypto v0.14.0/go.mod h1:MVFd36DqK4CsrnJYDkBA3VC4m2GkXAM0PvzMCn4JQf4= golang.org/x/exp v0.0.0-20180321215751-8460e604b9de/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20180807140117-3d87b88a115f/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= @@ -1128,8 +1134,8 @@ golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.12.0 h1:rmsUpXtvNzj340zd98LZ4KntptpfRHwpFOHG188oHXc= -golang.org/x/mod v0.12.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= +golang.org/x/mod v0.13.0 h1:I/DsJXRlw/8l/0c24sM9yb0T4z9liZTduXvdAWYiysY= +golang.org/x/mod v0.13.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= golang.org/x/net v0.0.0-20180719180050-a680a1efc54d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= @@ -1182,8 +1188,8 @@ golang.org/x/net v0.0.0-20210610132358-84b48f89b13b/go.mod h1:9nx3DQGgdP8bBQD5qx golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20211008194852-3b03d305991f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.14.0 h1:BONx9s002vGdD9umnlX1Po8vOZmrgH34qlHcD1MfK14= -golang.org/x/net v0.14.0/go.mod h1:PpSgVXXLK0OxS0F31C1/tv6XNguvCrnXIDrFMspZIUI= +golang.org/x/net v0.17.0 h1:pVaXccu2ozPjCXewfr1S7xza/zcXTity9cCdXQYSjIM= +golang.org/x/net v0.17.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -1204,8 +1210,8 @@ golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.3.0 h1:ftCYgMx6zT/asHUrPw8BLLscYtGznsLAnjq5RH9P66E= -golang.org/x/sync v0.3.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y= +golang.org/x/sync v0.4.0 h1:zxkM55ReGkDlKSM+Fu41A+zmbZuaPVbGMzvvdUPznYQ= +golang.org/x/sync v0.4.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y= golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -1259,7 +1265,6 @@ golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20200814200057-3d37ad5750ed/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200826173525-f9321e4c35a6/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200905004654-be1d3432aa8f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200923182605-d9f96fdee20d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201201145000-ef89a241ccb3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -1286,12 +1291,14 @@ golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220209214540-3681064d5158/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220908164124-27713097b956/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.11.0 h1:eG7RXZHdqOJ1i+0lgLgCpSXAp6M3LYlAo6osgSi0xOM= -golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20221010170243-090e33056c14/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.13.0 h1:Af8nKPmuFypiUBjVoU9V20FiaFXOcuZI21p0ycVYYGE= +golang.org/x/sys v0.13.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= -golang.org/x/term v0.11.0 h1:F9tnn/DA/Im8nCwm+fX+1/eBwi4qFjRT++MhtVC4ZX0= -golang.org/x/term v0.11.0/go.mod h1:zC9APTIj3jG3FdV/Ons+XE1riIZXG4aZ4GTHiPZJPIU= +golang.org/x/term v0.13.0 h1:bb+I9cTfFazGW51MZqBVmZy7+JEJMouUHTUSKVQLBek= +golang.org/x/term v0.13.0/go.mod h1:LTmsnFJwVN6bCy1rVCoS+qHT1HhALEFxKncY3WNNh4U= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -1301,8 +1308,8 @@ golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= -golang.org/x/text v0.12.0 h1:k+n5B8goJNdU7hSvEtMUz3d1Q6D/XW4COJSJR6fN0mc= -golang.org/x/text v0.12.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= +golang.org/x/text v0.13.0 h1:ablQoSUd0tRdKxZewP80B+BaqeKJuVhuRxj/dkrun3k= +golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= @@ -1369,14 +1376,12 @@ golang.org/x/tools v0.0.0-20210108195828-e2f9c7f1fc8e/go.mod h1:emZCQorbCU4vsT4f golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0= golang.org/x/tools v0.1.3/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= -golang.org/x/tools v0.12.0 h1:YW6HUoUmYBpwSgyaGaZq1fHjrBjX1rlpZ54T6mu2kss= -golang.org/x/tools v0.12.0/go.mod h1:Sc0INKfu04TlqNoRA1hgpFZbhYXHPr4V5DzpSBTPqQM= +golang.org/x/tools v0.14.0 h1:jvNa2pY0M4r62jkRQ6RwEZZyPcymeL9XZMLBbV7U2nc= +golang.org/x/tools v0.14.0/go.mod h1:uYBEerGOWcJyEORxN+Ek8+TT266gXkNlHdJBwexUsBg= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 h1:H2TDz8ibqkAF6YGhCdN3jS9O0/s90v0rJh3X/OLHEUk= -golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= gonum.org/v1/gonum v0.0.0-20180816165407-929014505bf4/go.mod h1:Y+Yx5eoAFn32cQvJDxZx5Dpnq+c3wtXuadVZAcxbbBo= gonum.org/v1/gonum v0.0.0-20181121035319-3f7ecaa7e8ca/go.mod h1:Y+Yx5eoAFn32cQvJDxZx5Dpnq+c3wtXuadVZAcxbbBo= gonum.org/v1/gonum v0.6.0/go.mod h1:9mxDZsDKxgMAuccQkewq682L+0eCu4dCN2yonUJTCLU= @@ -1531,8 +1536,8 @@ honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9 honnef.co/go/tools v0.1.3/go.mod h1:NgwopIslSNH47DimFoV78dnkksY2EFtX0ajyb3K/las= nhooyr.io/websocket v1.8.6 h1:s+C3xAMLwGmlI31Nyn/eAehUlZPwfYZu2JXM621Q5/k= nhooyr.io/websocket v1.8.6/go.mod h1:B70DZP8IakI65RVQ51MsWP/8jndNma26DVA/nFSCgW0= -pgregory.net/rapid v0.5.3 h1:163N50IHFqr1phZens4FQOdPgfJscR7a562mjQqeo4M= -pgregory.net/rapid v0.5.3/go.mod h1:PY5XlDGj0+V1FCq0o192FdRhpKHGTRIWBgqjDBTrq04= +pgregory.net/rapid v0.5.5 h1:jkgx1TjbQPD/feRoK+S/mXw9e1uj6WilpHrXJowi6oA= +pgregory.net/rapid v0.5.5/go.mod h1:PY5XlDGj0+V1FCq0o192FdRhpKHGTRIWBgqjDBTrq04= rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= rsc.io/pdf v0.1.1/go.mod h1:n8OzWcQ6Sp37PL01nO98y4iUCRdTGarVfzxY20ICaU4= rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= diff --git a/interchaintest/go.mod b/interchaintest/go.mod index 5bae2913..3c897f71 100644 --- a/interchaintest/go.mod +++ b/interchaintest/go.mod @@ -4,7 +4,8 @@ go 1.21 require ( cosmossdk.io/math v1.0.1 - github.com/circlefin/noble-cctp v0.0.0-20231013164358-dc81b3e0d566 + github.com/circlefin/noble-cctp v0.0.0-20231108011259-7c5206df02dc + github.com/circlefin/noble-fiattokenfactory v0.0.0-20240311150858-14edf83ee1c9 github.com/cosmos/cosmos-sdk v0.45.16 github.com/cosmos/ibc-go/v4 v4.5.1 github.com/ethereum/go-ethereum v1.12.2 @@ -112,7 +113,6 @@ require ( github.com/minio/highwayhash v1.0.2 // indirect github.com/mitchellh/mapstructure v1.5.0 // indirect github.com/mtibben/percent v0.2.1 // indirect - github.com/onsi/gomega v1.20.0 // indirect github.com/opencontainers/go-digest v1.0.0 // indirect github.com/opencontainers/image-spec v1.1.0-rc2 // indirect github.com/pelletier/go-toml v1.9.5 // indirect @@ -150,15 +150,15 @@ require ( go.etcd.io/bbolt v1.3.7 // indirect go.uber.org/atomic v1.10.0 // indirect go.uber.org/multierr v1.11.0 // indirect - golang.org/x/crypto v0.12.0 // indirect + golang.org/x/crypto v0.14.0 // indirect golang.org/x/exp v0.0.0-20230810033253-352e893a4cad // indirect - golang.org/x/mod v0.12.0 // indirect - golang.org/x/net v0.14.0 // indirect - golang.org/x/sync v0.3.0 // indirect - golang.org/x/sys v0.11.0 // indirect - golang.org/x/term v0.11.0 // indirect - golang.org/x/text v0.12.0 // indirect - golang.org/x/tools v0.12.0 // indirect + golang.org/x/mod v0.13.0 // indirect + golang.org/x/net v0.17.0 // indirect + golang.org/x/sync v0.4.0 // indirect + golang.org/x/sys v0.13.0 // indirect + golang.org/x/term v0.13.0 // indirect + golang.org/x/text v0.13.0 // indirect + golang.org/x/tools v0.14.0 // indirect google.golang.org/genproto v0.0.0-20230629202037-9506855d4529 // indirect google.golang.org/genproto/googleapis/api v0.0.0-20230526203410-71b5a4ffd15e // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20230706204954-ccb25ca9f130 // indirect diff --git a/interchaintest/go.sum b/interchaintest/go.sum index da6c4418..0113b727 100644 --- a/interchaintest/go.sum +++ b/interchaintest/go.sum @@ -189,8 +189,10 @@ github.com/cespare/xxhash/v2 v2.2.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XL github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= -github.com/circlefin/noble-cctp v0.0.0-20231013164358-dc81b3e0d566 h1:PUo/InK7onrx6gt1aMfng5nBRIqKf523coNYhFvexmc= -github.com/circlefin/noble-cctp v0.0.0-20231013164358-dc81b3e0d566/go.mod h1:kTaX51dOT10LBoERZYT1ahuove3dL/+q5IagWQUABd0= +github.com/circlefin/noble-cctp v0.0.0-20231108011259-7c5206df02dc h1:vm2CZfO8sjxPFKzguuZl1FjHHdbgRUWvF3x2lw6NyEU= +github.com/circlefin/noble-cctp v0.0.0-20231108011259-7c5206df02dc/go.mod h1:ssEHJqFI1f4a5sLtZ7qeYJ7/75LzDgzbBv4C9as3y3w= +github.com/circlefin/noble-fiattokenfactory v0.0.0-20240311150858-14edf83ee1c9 h1:zos4B3act5oqjkWJ20iBOX0mHINcEQ6wdqtHdcmAiqE= +github.com/circlefin/noble-fiattokenfactory v0.0.0-20240311150858-14edf83ee1c9/go.mod h1:pWbZhxq9IBFK9d24ZdmSKdG3LgFbp97r18IbF56QwnE= github.com/circonus-labs/circonus-gometrics v2.3.1+incompatible/go.mod h1:nmEj6Dob7S7YxXgwXpfOuvO54S+tGdZdw9fuRZt25Ag= github.com/circonus-labs/circonusllhist v0.1.3/go.mod h1:kMXHVDlOchFAehlya5ePtbp5jckzBHf4XRpQvBOLI+I= github.com/clbanning/x2j v0.0.0-20191024224557-825249438eec/go.mod h1:jMjuTZXRI4dUb/I5gc9Hdhagfvm9+RyrPryS/auMzxE= @@ -504,8 +506,9 @@ github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeN github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck= github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf/go.mod h1:HP5RmnzzSNb993RKQDq4+1A4ia9nllfqcQFTQJedwGI= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= -github.com/google/gofuzz v1.1.1-0.20200604201612-c04b05f3adfa h1:Q75Upo5UN4JbPFURXZ8nLKYUvF85dyFRop/vQ0Rv+64= github.com/google/gofuzz v1.1.1-0.20200604201612-c04b05f3adfa/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= +github.com/google/gofuzz v1.2.0 h1:xRy4A+RhZaiKjJ1bPfwQ8sedCA+YS2YcCHW6ec7JMi0= +github.com/google/gofuzz v1.2.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= github.com/google/martian/v3 v3.1.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= @@ -580,8 +583,9 @@ github.com/hashicorp/go-rootcerts v1.0.0/go.mod h1:K6zTfqpRlCUIjkwsN4Z+hiSfzSTQa github.com/hashicorp/go-sockaddr v1.0.0/go.mod h1:7Xibr9yA9JjQq1JpNB2Vw7kxv8xerXegt+ozgdvDeDU= github.com/hashicorp/go-syslog v1.0.0/go.mod h1:qPfqrKkXGihmCqbJM2mZgkZGvKG1dFdvsLplgctolz4= github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= -github.com/hashicorp/go-uuid v1.0.1 h1:fv1ep09latC32wFoVwnqcnKJGnMSdBanPczbHAYm1BE= github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= +github.com/hashicorp/go-uuid v1.0.2 h1:cfejS+Tpcp13yd5nYHWDI6qVCny6wyX2Mt5SGur2IGE= +github.com/hashicorp/go-uuid v1.0.2/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= github.com/hashicorp/go-version v1.2.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/hashicorp/go-version v1.6.0 h1:feTTfFNnjP967rlCxM/I9g701jU+RN74YKx2mOkIeek= github.com/hashicorp/go-version v1.6.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= @@ -830,8 +834,8 @@ github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7J github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo= github.com/onsi/gomega v1.17.0/go.mod h1:HnhC7FXeEQY45zxNK3PPoIUhzk/80Xly9PcubAlGdZY= github.com/onsi/gomega v1.19.0/go.mod h1:LY+I3pBVzYsTBU1AnDwOSxaYi9WoWiqgwooUqq9yPro= -github.com/onsi/gomega v1.20.0 h1:8W0cWlwFkflGPLltQvLRB7ZVD5HuP6ng320w2IS245Q= -github.com/onsi/gomega v1.20.0/go.mod h1:DtrZpjmvpn2mPm4YWQa0/ALMDj9v4YxLgojwPeREyVo= +github.com/onsi/gomega v1.28.0 h1:i2rg/p9n/UqIDAMFUJ6qIUUMcsqOuUHgbpbu235Vr1c= +github.com/onsi/gomega v1.28.0/go.mod h1:A1H2JE76sI14WIP57LMKj7FVfCHx3g3BcZVjJG8bjX8= github.com/op/go-logging v0.0.0-20160315200505-970db520ece7/go.mod h1:HzydrMdWErDVzsI23lYNej1Htcns9BCg93Dk0bBINWk= github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U= github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM= @@ -850,8 +854,8 @@ github.com/openzipkin/zipkin-go v0.2.1/go.mod h1:NaW6tEwdmWMaCDZzg8sh+IBNOxHMPnh github.com/openzipkin/zipkin-go v0.2.2/go.mod h1:NaW6tEwdmWMaCDZzg8sh+IBNOxHMPnhQw8ySjnjRyN4= github.com/ory/dockertest v3.3.5+incompatible h1:iLLK6SQwIhcbrG783Dghaaa3WPzGc+4Emza6EbVUUGA= github.com/ory/dockertest v3.3.5+incompatible/go.mod h1:1vX4m9wsvi00u5bseYwXaSnhNrne+V0E6LAcBILJdPs= -github.com/otiai10/copy v1.6.0 h1:IinKAryFFuPONZ7cm6T6E2QX/vcJwSnlaA5lfoaXIiQ= -github.com/otiai10/copy v1.6.0/go.mod h1:XWfuS3CrI0R6IE0FbgHsEazaXO8G0LpMp9o8tos0x4E= +github.com/otiai10/copy v1.11.0 h1:OKBD80J/mLBrwnzXqGtFCzprFSGioo30JcmR4APsNwc= +github.com/otiai10/copy v1.11.0/go.mod h1:rSaLseMUsZFFbsFGc7wCJnnkTAvdc5L6VWxPE4308Ww= github.com/pact-foundation/pact-go v1.0.4/go.mod h1:uExwJY4kCzNPcHRj+hCR/HBbOOIwwtUjcrb0b5/5kLM= github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= github.com/pascaldekloe/goe v0.1.0 h1:cBOtyMzM9HTpWjXfbbunk26uA6nG3a8n06Wieeh0MwY= @@ -1146,8 +1150,8 @@ golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.0.0-20211108221036-ceb1ce70b4fa/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/crypto v0.12.0 h1:tFM/ta59kqch6LlvYnPa0yx5a83cL2nHflFhYKvv9Yk= -golang.org/x/crypto v0.12.0/go.mod h1:NF0Gs7EO5K4qLn+Ylc+fih8BSTeIjAP05siRnAh98yw= +golang.org/x/crypto v0.14.0 h1:wBqGXzWJW6m1XrIKlAH0Hs1JJ7+9KBwnIO8v66Q9cHc= +golang.org/x/crypto v0.14.0/go.mod h1:MVFd36DqK4CsrnJYDkBA3VC4m2GkXAM0PvzMCn4JQf4= golang.org/x/exp v0.0.0-20180321215751-8460e604b9de/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20180807140117-3d87b88a115f/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= @@ -1190,8 +1194,8 @@ golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.12.0 h1:rmsUpXtvNzj340zd98LZ4KntptpfRHwpFOHG188oHXc= -golang.org/x/mod v0.12.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= +golang.org/x/mod v0.13.0 h1:I/DsJXRlw/8l/0c24sM9yb0T4z9liZTduXvdAWYiysY= +golang.org/x/mod v0.13.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= golang.org/x/net v0.0.0-20180719180050-a680a1efc54d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= @@ -1248,8 +1252,8 @@ golang.org/x/net v0.0.0-20211008194852-3b03d305991f/go.mod h1:9nx3DQGgdP8bBQD5qx golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.14.0 h1:BONx9s002vGdD9umnlX1Po8vOZmrgH34qlHcD1MfK14= -golang.org/x/net v0.14.0/go.mod h1:PpSgVXXLK0OxS0F31C1/tv6XNguvCrnXIDrFMspZIUI= +golang.org/x/net v0.17.0 h1:pVaXccu2ozPjCXewfr1S7xza/zcXTity9cCdXQYSjIM= +golang.org/x/net v0.17.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -1270,8 +1274,8 @@ golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.3.0 h1:ftCYgMx6zT/asHUrPw8BLLscYtGznsLAnjq5RH9P66E= -golang.org/x/sync v0.3.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y= +golang.org/x/sync v0.4.0 h1:zxkM55ReGkDlKSM+Fu41A+zmbZuaPVbGMzvvdUPznYQ= +golang.org/x/sync v0.4.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y= golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -1358,13 +1362,13 @@ golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220908164124-27713097b956/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20221010170243-090e33056c14/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.11.0 h1:eG7RXZHdqOJ1i+0lgLgCpSXAp6M3LYlAo6osgSi0xOM= -golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.13.0 h1:Af8nKPmuFypiUBjVoU9V20FiaFXOcuZI21p0ycVYYGE= +golang.org/x/sys v0.13.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/term v0.11.0 h1:F9tnn/DA/Im8nCwm+fX+1/eBwi4qFjRT++MhtVC4ZX0= -golang.org/x/term v0.11.0/go.mod h1:zC9APTIj3jG3FdV/Ons+XE1riIZXG4aZ4GTHiPZJPIU= +golang.org/x/term v0.13.0 h1:bb+I9cTfFazGW51MZqBVmZy7+JEJMouUHTUSKVQLBek= +golang.org/x/term v0.13.0/go.mod h1:LTmsnFJwVN6bCy1rVCoS+qHT1HhALEFxKncY3WNNh4U= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -1374,8 +1378,8 @@ golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= -golang.org/x/text v0.12.0 h1:k+n5B8goJNdU7hSvEtMUz3d1Q6D/XW4COJSJR6fN0mc= -golang.org/x/text v0.12.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= +golang.org/x/text v0.13.0 h1:ablQoSUd0tRdKxZewP80B+BaqeKJuVhuRxj/dkrun3k= +golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= @@ -1447,8 +1451,8 @@ golang.org/x/tools v0.0.0-20210108195828-e2f9c7f1fc8e/go.mod h1:emZCQorbCU4vsT4f golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0= golang.org/x/tools v0.1.3/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= -golang.org/x/tools v0.12.0 h1:YW6HUoUmYBpwSgyaGaZq1fHjrBjX1rlpZ54T6mu2kss= -golang.org/x/tools v0.12.0/go.mod h1:Sc0INKfu04TlqNoRA1hgpFZbhYXHPr4V5DzpSBTPqQM= +golang.org/x/tools v0.14.0 h1:jvNa2pY0M4r62jkRQ6RwEZZyPcymeL9XZMLBbV7U2nc= +golang.org/x/tools v0.14.0/go.mod h1:uYBEerGOWcJyEORxN+Ek8+TT266gXkNlHdJBwexUsBg= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= diff --git a/interchaintest/upgrade_radon_test.go b/interchaintest/upgrade_radon_test.go index 9fe053fb..03f72afa 100644 --- a/interchaintest/upgrade_radon_test.go +++ b/interchaintest/upgrade_radon_test.go @@ -5,10 +5,10 @@ import ( "encoding/json" "testing" + fiattokenfactorytypes "github.com/circlefin/noble-fiattokenfactory/x/fiattokenfactory/types" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/strangelove-ventures/interchaintest/v4/chain/cosmos" "github.com/strangelove-ventures/interchaintest/v4/ibc" - fiattokenfactorytypes "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" globalfeetypes "github.com/strangelove-ventures/noble/x/globalfee/types" "github.com/stretchr/testify/require" ) diff --git a/proto/fiattokenfactory/blacklisted.proto b/proto/fiattokenfactory/blacklisted.proto deleted file mode 100644 index 7e0ea6dd..00000000 --- a/proto/fiattokenfactory/blacklisted.proto +++ /dev/null @@ -1,6 +0,0 @@ -syntax = "proto3"; -package noble.fiattokenfactory; - -option go_package = "github.com/strangelove-ventures/noble/x/fiattokenfactory/types"; - -message Blacklisted { bytes addressBz = 1; } diff --git a/proto/fiattokenfactory/blacklister.proto b/proto/fiattokenfactory/blacklister.proto deleted file mode 100644 index b2674f33..00000000 --- a/proto/fiattokenfactory/blacklister.proto +++ /dev/null @@ -1,6 +0,0 @@ -syntax = "proto3"; -package noble.fiattokenfactory; - -option go_package = "github.com/strangelove-ventures/noble/x/fiattokenfactory/types"; - -message Blacklister { string address = 1; } diff --git a/proto/fiattokenfactory/genesis.proto b/proto/fiattokenfactory/genesis.proto deleted file mode 100644 index 6b908805..00000000 --- a/proto/fiattokenfactory/genesis.proto +++ /dev/null @@ -1,33 +0,0 @@ -syntax = "proto3"; -package noble.fiattokenfactory; - -import "gogoproto/gogo.proto"; -import "fiattokenfactory/params.proto"; -import "fiattokenfactory/blacklisted.proto"; -import "fiattokenfactory/paused.proto"; -import "fiattokenfactory/master_minter.proto"; -import "fiattokenfactory/minters.proto"; -import "fiattokenfactory/pauser.proto"; -import "fiattokenfactory/blacklister.proto"; -import "fiattokenfactory/owner.proto"; -import "fiattokenfactory/minter_controller.proto"; -import "fiattokenfactory/minting_denom.proto"; -// this line is used by starport scaffolding # genesis/proto/import - -option go_package = "github.com/strangelove-ventures/noble/x/fiattokenfactory/types"; - -// GenesisState defines the fiattokenfactory module's genesis state. -message GenesisState { - Params params = 1 [ (gogoproto.nullable) = false ]; - repeated Blacklisted blacklistedList = 2 [ (gogoproto.nullable) = false ]; - Paused paused = 3; - MasterMinter masterMinter = 4; - repeated Minters mintersList = 5 [ (gogoproto.nullable) = false ]; - Pauser pauser = 6; - Blacklister blacklister = 7; - Owner owner = 8; - repeated MinterController minterControllerList = 9 - [ (gogoproto.nullable) = false ]; - MintingDenom mintingDenom = 10; - // this line is used by starport scaffolding # genesis/proto/state -} diff --git a/proto/fiattokenfactory/master_minter.proto b/proto/fiattokenfactory/master_minter.proto deleted file mode 100644 index b4ee3360..00000000 --- a/proto/fiattokenfactory/master_minter.proto +++ /dev/null @@ -1,6 +0,0 @@ -syntax = "proto3"; -package noble.fiattokenfactory; - -option go_package = "github.com/strangelove-ventures/noble/x/fiattokenfactory/types"; - -message MasterMinter { string address = 1; } diff --git a/proto/fiattokenfactory/minter_controller.proto b/proto/fiattokenfactory/minter_controller.proto deleted file mode 100644 index b3fc6076..00000000 --- a/proto/fiattokenfactory/minter_controller.proto +++ /dev/null @@ -1,9 +0,0 @@ -syntax = "proto3"; -package noble.fiattokenfactory; - -option go_package = "github.com/strangelove-ventures/noble/x/fiattokenfactory/types"; - -message MinterController { - string minter = 1; - string controller = 2; -} diff --git a/proto/fiattokenfactory/minters.proto b/proto/fiattokenfactory/minters.proto deleted file mode 100644 index 0c51cc7d..00000000 --- a/proto/fiattokenfactory/minters.proto +++ /dev/null @@ -1,11 +0,0 @@ -syntax = "proto3"; -package noble.fiattokenfactory; - -option go_package = "github.com/strangelove-ventures/noble/x/fiattokenfactory/types"; -import "gogoproto/gogo.proto"; -import "cosmos/base/v1beta1/coin.proto"; - -message Minters { - string address = 1; - cosmos.base.v1beta1.Coin allowance = 2 [ (gogoproto.nullable) = false ]; -} diff --git a/proto/fiattokenfactory/minting_denom.proto b/proto/fiattokenfactory/minting_denom.proto deleted file mode 100644 index 7009e0aa..00000000 --- a/proto/fiattokenfactory/minting_denom.proto +++ /dev/null @@ -1,6 +0,0 @@ -syntax = "proto3"; -package noble.fiattokenfactory; - -option go_package = "github.com/strangelove-ventures/noble/x/fiattokenfactory/types"; - -message MintingDenom { string denom = 1; } diff --git a/proto/fiattokenfactory/owner.proto b/proto/fiattokenfactory/owner.proto deleted file mode 100644 index 2a1d0e0d..00000000 --- a/proto/fiattokenfactory/owner.proto +++ /dev/null @@ -1,6 +0,0 @@ -syntax = "proto3"; -package noble.fiattokenfactory; - -option go_package = "github.com/strangelove-ventures/noble/x/fiattokenfactory/types"; - -message Owner { string address = 1; } diff --git a/proto/fiattokenfactory/params.proto b/proto/fiattokenfactory/params.proto deleted file mode 100644 index 68d4adf6..00000000 --- a/proto/fiattokenfactory/params.proto +++ /dev/null @@ -1,9 +0,0 @@ -syntax = "proto3"; -package noble.fiattokenfactory; - -import "gogoproto/gogo.proto"; - -option go_package = "github.com/strangelove-ventures/noble/x/fiattokenfactory/types"; - -// Params defines the parameters for the module. -message Params { option (gogoproto.goproto_stringer) = false; } diff --git a/proto/fiattokenfactory/paused.proto b/proto/fiattokenfactory/paused.proto deleted file mode 100644 index 0179a46c..00000000 --- a/proto/fiattokenfactory/paused.proto +++ /dev/null @@ -1,6 +0,0 @@ -syntax = "proto3"; -package noble.fiattokenfactory; - -option go_package = "github.com/strangelove-ventures/noble/x/fiattokenfactory/types"; - -message Paused { bool paused = 1; } diff --git a/proto/fiattokenfactory/pauser.proto b/proto/fiattokenfactory/pauser.proto deleted file mode 100644 index 7094d086..00000000 --- a/proto/fiattokenfactory/pauser.proto +++ /dev/null @@ -1,6 +0,0 @@ -syntax = "proto3"; -package noble.fiattokenfactory; - -option go_package = "github.com/strangelove-ventures/noble/x/fiattokenfactory/types"; - -message Pauser { string address = 1; } diff --git a/proto/fiattokenfactory/query.proto b/proto/fiattokenfactory/query.proto deleted file mode 100644 index 1cc8a87f..00000000 --- a/proto/fiattokenfactory/query.proto +++ /dev/null @@ -1,180 +0,0 @@ -syntax = "proto3"; -package noble.fiattokenfactory; - -import "google/api/annotations.proto"; -import "cosmos/base/query/v1beta1/pagination.proto"; -import "fiattokenfactory/params.proto"; -import "fiattokenfactory/blacklisted.proto"; -import "fiattokenfactory/paused.proto"; -import "fiattokenfactory/master_minter.proto"; -import "fiattokenfactory/minters.proto"; -import "fiattokenfactory/pauser.proto"; -import "fiattokenfactory/blacklister.proto"; -import "fiattokenfactory/owner.proto"; -import "fiattokenfactory/minter_controller.proto"; -import "fiattokenfactory/minting_denom.proto"; -// this line is used by starport scaffolding # 1 -import "cosmos/base/v1beta1/coin.proto"; -import "gogoproto/gogo.proto"; - -option go_package = "github.com/strangelove-ventures/noble/x/fiattokenfactory/types"; - -// Query defines the gRPC querier service. -service Query { - // Parameters queries the parameters of the module. - rpc Params(QueryParamsRequest) returns (QueryParamsResponse) { - option (google.api.http).get = "/noble/fiattokenfactory/params"; - } - // Queries a Blacklisted by index. - rpc Blacklisted(QueryGetBlacklistedRequest) - returns (QueryGetBlacklistedResponse) { - option (google.api.http).get = - "/noble/fiattokenfactory/blacklisted/{address}"; - } - - // Queries a list of Blacklisted items. - rpc BlacklistedAll(QueryAllBlacklistedRequest) - returns (QueryAllBlacklistedResponse) { - option (google.api.http).get = "/noble/fiattokenfactory/blacklisted"; - } - - // Queries a Paused by index. - rpc Paused(QueryGetPausedRequest) returns (QueryGetPausedResponse) { - option (google.api.http).get = "/noble/fiattokenfactory/paused"; - } - // Queries a MasterMinter by index. - rpc MasterMinter(QueryGetMasterMinterRequest) - returns (QueryGetMasterMinterResponse) { - option (google.api.http).get = "/noble/fiattokenfactory/master_minter"; - } - // Queries a Minters by index. - rpc Minters(QueryGetMintersRequest) returns (QueryGetMintersResponse) { - option (google.api.http).get = "/noble/fiattokenfactory/minters/{address}"; - } - - // Queries a list of Minters items. - rpc MintersAll(QueryAllMintersRequest) returns (QueryAllMintersResponse) { - option (google.api.http).get = "/noble/fiattokenfactory/minters"; - } - - // Queries a Pauser by index. - rpc Pauser(QueryGetPauserRequest) returns (QueryGetPauserResponse) { - option (google.api.http).get = "/noble/fiattokenfactory/pauser"; - } - // Queries a Blacklister by index. - rpc Blacklister(QueryGetBlacklisterRequest) - returns (QueryGetBlacklisterResponse) { - option (google.api.http).get = "/noble/fiattokenfactory/blacklister"; - } - // Queries a Owner by index. - rpc Owner(QueryGetOwnerRequest) returns (QueryGetOwnerResponse) { - option (google.api.http).get = "/noble/fiattokenfactory/owner"; - } - // Queries a MinterController by index. - rpc MinterController(QueryGetMinterControllerRequest) - returns (QueryGetMinterControllerResponse) { - option (google.api.http).get = - "/noble/fiattokenfactory/minter_controller/{controllerAddress}"; - } - - // Queries a list of MinterController items. - rpc MinterControllerAll(QueryAllMinterControllerRequest) - returns (QueryAllMinterControllerResponse) { - option (google.api.http).get = "/noble/fiattokenfactory/minter_controller"; - } - - // Queries a MintingDenom by index. - rpc MintingDenom(QueryGetMintingDenomRequest) - returns (QueryGetMintingDenomResponse) { - option (google.api.http).get = "/noble/fiattokenfactory/minting_denom"; - } - // this line is used by starport scaffolding # 2 -} - -// QueryParamsRequest is request type for the Query/Params RPC method. -message QueryParamsRequest {} - -// QueryParamsResponse is response type for the Query/Params RPC method. -message QueryParamsResponse { - // params holds all the parameters of this module. - Params params = 1 [ (gogoproto.nullable) = false ]; -} - -message QueryGetBlacklistedRequest { string address = 1; } - -message QueryGetBlacklistedResponse { - Blacklisted blacklisted = 1 [ (gogoproto.nullable) = false ]; -} - -message QueryAllBlacklistedRequest { - cosmos.base.query.v1beta1.PageRequest pagination = 1; -} - -message QueryAllBlacklistedResponse { - repeated Blacklisted blacklisted = 1 [ (gogoproto.nullable) = false ]; - cosmos.base.query.v1beta1.PageResponse pagination = 2; -} - -message QueryGetPausedRequest {} - -message QueryGetPausedResponse { - Paused paused = 1 [ (gogoproto.nullable) = false ]; -} -message QueryGetMasterMinterRequest {} - -message QueryGetMasterMinterResponse { - MasterMinter masterMinter = 1 [ (gogoproto.nullable) = false ]; -} -message QueryGetMintersRequest { string address = 1; } - -message QueryGetMintersResponse { - Minters minters = 1 [ (gogoproto.nullable) = false ]; -} - -message QueryAllMintersRequest { - cosmos.base.query.v1beta1.PageRequest pagination = 1; -} - -message QueryAllMintersResponse { - repeated Minters minters = 1 [ (gogoproto.nullable) = false ]; - cosmos.base.query.v1beta1.PageResponse pagination = 2; -} - -message QueryGetPauserRequest {} - -message QueryGetPauserResponse { - Pauser pauser = 1 [ (gogoproto.nullable) = false ]; -} -message QueryGetBlacklisterRequest {} - -message QueryGetBlacklisterResponse { - Blacklister blacklister = 1 [ (gogoproto.nullable) = false ]; -} -message QueryGetOwnerRequest {} - -message QueryGetOwnerResponse { - Owner owner = 1 [ (gogoproto.nullable) = false ]; -} - -message QueryGetMinterControllerRequest { string controllerAddress = 1; } - -message QueryGetMinterControllerResponse { - MinterController minterController = 1 [ (gogoproto.nullable) = false ]; -} - -message QueryAllMinterControllerRequest { - cosmos.base.query.v1beta1.PageRequest pagination = 1; -} - -message QueryAllMinterControllerResponse { - repeated MinterController minterController = 1 - [ (gogoproto.nullable) = false ]; - cosmos.base.query.v1beta1.PageResponse pagination = 2; -} - -message QueryGetMintingDenomRequest {} - -message QueryGetMintingDenomResponse { - MintingDenom mintingDenom = 1 [ (gogoproto.nullable) = false ]; -} -// this line is used by starport scaffolding # 3 diff --git a/proto/fiattokenfactory/tx.proto b/proto/fiattokenfactory/tx.proto deleted file mode 100644 index 1686620d..00000000 --- a/proto/fiattokenfactory/tx.proto +++ /dev/null @@ -1,133 +0,0 @@ -syntax = "proto3"; -package noble.fiattokenfactory; - -// this line is used by starport scaffolding # proto/tx/import -import "cosmos/base/v1beta1/coin.proto"; -import "gogoproto/gogo.proto"; - -option go_package = "github.com/strangelove-ventures/noble/x/fiattokenfactory/types"; - -// Msg defines the Msg service. -service Msg { - rpc UpdateMasterMinter(MsgUpdateMasterMinter) - returns (MsgUpdateMasterMinterResponse); - rpc UpdatePauser(MsgUpdatePauser) returns (MsgUpdatePauserResponse); - rpc UpdateBlacklister(MsgUpdateBlacklister) - returns (MsgUpdateBlacklisterResponse); - rpc UpdateOwner(MsgUpdateOwner) returns (MsgUpdateOwnerResponse); - rpc AcceptOwner(MsgAcceptOwner) returns (MsgAcceptOwnerResponse); - rpc ConfigureMinter(MsgConfigureMinter) returns (MsgConfigureMinterResponse); - rpc RemoveMinter(MsgRemoveMinter) returns (MsgRemoveMinterResponse); - rpc Mint(MsgMint) returns (MsgMintResponse); - rpc Burn(MsgBurn) returns (MsgBurnResponse); - rpc Blacklist(MsgBlacklist) returns (MsgBlacklistResponse); - rpc Unblacklist(MsgUnblacklist) returns (MsgUnblacklistResponse); - rpc Pause(MsgPause) returns (MsgPauseResponse); - rpc Unpause(MsgUnpause) returns (MsgUnpauseResponse); - rpc ConfigureMinterController(MsgConfigureMinterController) - returns (MsgConfigureMinterControllerResponse); - rpc RemoveMinterController(MsgRemoveMinterController) - returns (MsgRemoveMinterControllerResponse); - // this line is used by starport scaffolding # proto/tx/rpc -} - -message MsgUpdateMasterMinter { - string from = 1; - string address = 2; -} - -message MsgUpdateMasterMinterResponse {} - -message MsgUpdatePauser { - string from = 1; - string address = 2; -} - -message MsgUpdatePauserResponse {} - -message MsgUpdateBlacklister { - string from = 1; - string address = 2; -} - -message MsgUpdateBlacklisterResponse {} - -message MsgUpdateOwner { - string from = 1; - string address = 2; -} - -message MsgUpdateOwnerResponse {} - -message MsgAcceptOwner { string from = 1; } - -message MsgAcceptOwnerResponse {} - -message MsgConfigureMinter { - string from = 1; - string address = 2; - cosmos.base.v1beta1.Coin allowance = 3 [ (gogoproto.nullable) = false ]; -} - -message MsgConfigureMinterResponse {} - -message MsgRemoveMinter { - string from = 1; - string address = 2; -} - -message MsgRemoveMinterResponse {} - -message MsgMint { - string from = 1; - string address = 2; - cosmos.base.v1beta1.Coin amount = 3 [ (gogoproto.nullable) = false ]; -} - -message MsgMintResponse {} - -message MsgBurn { - string from = 1; - cosmos.base.v1beta1.Coin amount = 2 [ (gogoproto.nullable) = false ]; -} - -message MsgBurnResponse {} - -message MsgBlacklist { - string from = 1; - string address = 2; -} - -message MsgBlacklistResponse {} - -message MsgUnblacklist { - string from = 1; - string address = 2; -} - -message MsgUnblacklistResponse {} - -message MsgPause { string from = 1; } - -message MsgPauseResponse {} - -message MsgUnpause { string from = 1; } - -message MsgUnpauseResponse {} - -message MsgConfigureMinterController { - string from = 1; - string controller = 2; - string minter = 3; -} - -message MsgConfigureMinterControllerResponse {} - -message MsgRemoveMinterController { - string from = 1; - string controller = 2; -} - -message MsgRemoveMinterControllerResponse {} - -// this line is used by starport scaffolding # proto/tx/message diff --git a/testutil/keeper/fiattokenfactory.go b/testutil/keeper/fiattokenfactory.go index 414f0a18..884758a8 100644 --- a/testutil/keeper/fiattokenfactory.go +++ b/testutil/keeper/fiattokenfactory.go @@ -3,14 +3,14 @@ package keeper import ( "testing" + "github.com/circlefin/noble-fiattokenfactory/x/fiattokenfactory/keeper" + "github.com/circlefin/noble-fiattokenfactory/x/fiattokenfactory/types" "github.com/cosmos/cosmos-sdk/codec" codectypes "github.com/cosmos/cosmos-sdk/codec/types" "github.com/cosmos/cosmos-sdk/store" storetypes "github.com/cosmos/cosmos-sdk/store/types" sdk "github.com/cosmos/cosmos-sdk/types" typesparams "github.com/cosmos/cosmos-sdk/x/params/types" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/keeper" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" "github.com/stretchr/testify/require" "github.com/tendermint/tendermint/libs/log" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" diff --git a/x/blockibc/blockibc.go b/x/blockibc/blockibc.go index a63317de..746b0c14 100644 --- a/x/blockibc/blockibc.go +++ b/x/blockibc/blockibc.go @@ -1,6 +1,8 @@ package blockibc import ( + fiatKeeper "github.com/circlefin/noble-fiattokenfactory/x/fiattokenfactory/keeper" + fiat_types "github.com/circlefin/noble-fiattokenfactory/x/fiattokenfactory/types" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/bech32" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" @@ -9,8 +11,6 @@ import ( channeltypes "github.com/cosmos/ibc-go/v4/modules/core/04-channel/types" porttypes "github.com/cosmos/ibc-go/v4/modules/core/05-port/types" ibcexported "github.com/cosmos/ibc-go/v4/modules/core/exported" - fiatKeeper "github.com/strangelove-ventures/noble/x/fiattokenfactory/keeper" - fiat_types "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" "github.com/strangelove-ventures/noble/x/tokenfactory/keeper" "github.com/strangelove-ventures/noble/x/tokenfactory/types" ) diff --git a/x/fiattokenfactory/client/cli/query.go b/x/fiattokenfactory/client/cli/query.go deleted file mode 100644 index 60cf985c..00000000 --- a/x/fiattokenfactory/client/cli/query.go +++ /dev/null @@ -1,38 +0,0 @@ -package cli - -import ( - "fmt" - - "github.com/cosmos/cosmos-sdk/client" - "github.com/spf13/cobra" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" -) - -// GetQueryCmd returns the cli query commands for this module -func GetQueryCmd(queryRoute string) *cobra.Command { - // Group fiattokenfactory queries under a subcommand - cmd := &cobra.Command{ - Use: types.ModuleName, - Short: fmt.Sprintf("Querying commands for the %s module", types.ModuleName), - DisableFlagParsing: true, - SuggestionsMinimumDistance: 2, - RunE: client.ValidateCmd, - } - - cmd.AddCommand(CmdQueryParams()) - cmd.AddCommand(CmdListBlacklisted()) - cmd.AddCommand(CmdShowBlacklisted()) - cmd.AddCommand(CmdShowPaused()) - cmd.AddCommand(CmdShowMasterMinter()) - cmd.AddCommand(CmdListMinters()) - cmd.AddCommand(CmdShowMinters()) - cmd.AddCommand(CmdShowPauser()) - cmd.AddCommand(CmdShowBlacklister()) - cmd.AddCommand(CmdShowOwner()) - cmd.AddCommand(CmdListMinterController()) - cmd.AddCommand(CmdShowMinterController()) - cmd.AddCommand(CmdShowMintingDenom()) - // this line is used by starport scaffolding # 1 - - return cmd -} diff --git a/x/fiattokenfactory/client/cli/query_blacklisted.go b/x/fiattokenfactory/client/cli/query_blacklisted.go deleted file mode 100644 index da2a1c5c..00000000 --- a/x/fiattokenfactory/client/cli/query_blacklisted.go +++ /dev/null @@ -1,73 +0,0 @@ -package cli - -import ( - "context" - - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/spf13/cobra" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" -) - -func CmdListBlacklisted() *cobra.Command { - cmd := &cobra.Command{ - Use: "list-blacklisted", - Short: "list all blacklisted", - RunE: func(cmd *cobra.Command, args []string) error { - clientCtx := client.GetClientContextFromCmd(cmd) - - pageReq, err := client.ReadPageRequest(cmd.Flags()) - if err != nil { - return err - } - - queryClient := types.NewQueryClient(clientCtx) - - params := &types.QueryAllBlacklistedRequest{ - Pagination: pageReq, - } - - res, err := queryClient.BlacklistedAll(context.Background(), params) - if err != nil { - return err - } - - return clientCtx.PrintProto(res) - }, - } - - flags.AddPaginationFlagsToCmd(cmd, cmd.Use) - flags.AddQueryFlagsToCmd(cmd) - - return cmd -} - -func CmdShowBlacklisted() *cobra.Command { - cmd := &cobra.Command{ - Use: "show-blacklisted [address]", - Short: "shows a blacklisted", - Args: cobra.ExactArgs(1), - RunE: func(cmd *cobra.Command, args []string) (err error) { - clientCtx := client.GetClientContextFromCmd(cmd) - - queryClient := types.NewQueryClient(clientCtx) - - argAddress := args[0] - - params := &types.QueryGetBlacklistedRequest{ - Address: argAddress, - } - - res, err := queryClient.Blacklisted(context.Background(), params) - if err != nil { - return err - } - - return clientCtx.PrintProto(res) - }, - } - - flags.AddQueryFlagsToCmd(cmd) - - return cmd -} diff --git a/x/fiattokenfactory/client/cli/query_blacklisted_test.go b/x/fiattokenfactory/client/cli/query_blacklisted_test.go deleted file mode 100644 index 85ecf124..00000000 --- a/x/fiattokenfactory/client/cli/query_blacklisted_test.go +++ /dev/null @@ -1,165 +0,0 @@ -package cli_test - -import ( - "fmt" - "strconv" - "testing" - - "github.com/cosmos/cosmos-sdk/client/flags" - clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli" - "github.com/strangelove-ventures/noble/testutil/sample" - "github.com/stretchr/testify/require" - tmcli "github.com/tendermint/tendermint/libs/cli" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/status" - - "github.com/strangelove-ventures/noble/testutil/network" - "github.com/strangelove-ventures/noble/testutil/nullify" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/client/cli" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" -) - -// Prevent strconv unused error -var _ = strconv.IntSize - -func networkWithBlacklistedObjects(t *testing.T, n int) (*network.Network, []types.Blacklisted, []sample.Account) { - t.Helper() - cfg := network.DefaultConfig() - state := types.GenesisState{} - require.NoError(t, cfg.Codec.UnmarshalJSON(cfg.GenesisState[types.ModuleName], &state)) - - accounts := make([]sample.Account, n) - for i := 0; i < n; i++ { - account := sample.TestAccount() - blacklisted := types.Blacklisted{ - AddressBz: account.AddressBz, - } - state.BlacklistedList = append(state.BlacklistedList, blacklisted) - accounts[i] = account - } - - buf, err := cfg.Codec.MarshalJSON(&state) - require.NoError(t, err) - cfg.GenesisState[types.ModuleName] = buf - return network.New(t, cfg), state.BlacklistedList, accounts -} - -func TestShowBlacklisted(t *testing.T) { - net, _, objs := networkWithBlacklistedObjects(t, 2) - - ctx := net.Validators[0].ClientCtx - common := []string{ - fmt.Sprintf("--%s=json", tmcli.OutputFlag), - } - for _, tc := range []struct { - desc string - address string - - args []string - err error - obj sample.Account - }{ - { - desc: "found", - address: objs[0].Address, - - args: common, - obj: objs[0], - }, - { - desc: "not found", - address: sample.TestAccount().Address, - - args: common, - err: status.Error(codes.NotFound, "not found"), - }, - } { - t.Run(tc.desc, func(t *testing.T) { - args := []string{ - tc.address, - } - args = append(args, tc.args...) - out, err := clitestutil.ExecTestCLICmd(ctx, cli.CmdShowBlacklisted(), args) - if tc.err != nil { - stat, ok := status.FromError(tc.err) - require.True(t, ok) - require.ErrorIs(t, stat.Err(), tc.err) - } else { - require.NoError(t, err) - var resp types.QueryGetBlacklistedResponse - require.NoError(t, net.Config.Codec.UnmarshalJSON(out.Bytes(), &resp)) - require.NotNil(t, resp.Blacklisted) - require.Equal(t, - nullify.Fill(&tc.obj.AddressBz), - nullify.Fill(&resp.Blacklisted.AddressBz), - ) - } - }) - } -} - -func TestListBlacklisted(t *testing.T) { - net, objs, _ := networkWithBlacklistedObjects(t, 5) - - ctx := net.Validators[0].ClientCtx - request := func(next []byte, offset, limit uint64, total bool) []string { - args := []string{ - fmt.Sprintf("--%s=json", tmcli.OutputFlag), - } - if next == nil { - args = append(args, fmt.Sprintf("--%s=%d", flags.FlagOffset, offset)) - } else { - args = append(args, fmt.Sprintf("--%s=%s", flags.FlagPageKey, next)) - } - args = append(args, fmt.Sprintf("--%s=%d", flags.FlagLimit, limit)) - if total { - args = append(args, fmt.Sprintf("--%s", flags.FlagCountTotal)) - } - return args - } - t.Run("ByOffset", func(t *testing.T) { - step := 2 - for i := 0; i < len(objs); i += step { - args := request(nil, uint64(i), uint64(step), false) - out, err := clitestutil.ExecTestCLICmd(ctx, cli.CmdListBlacklisted(), args) - require.NoError(t, err) - var resp types.QueryAllBlacklistedResponse - require.NoError(t, net.Config.Codec.UnmarshalJSON(out.Bytes(), &resp)) - require.LessOrEqual(t, len(resp.Blacklisted), step) - require.Subset(t, - nullify.Fill(objs), - nullify.Fill(resp.Blacklisted), - ) - } - }) - t.Run("ByKey", func(t *testing.T) { - step := 2 - var next []byte - for i := 0; i < len(objs); i += step { - args := request(next, 0, uint64(step), false) - out, err := clitestutil.ExecTestCLICmd(ctx, cli.CmdListBlacklisted(), args) - require.NoError(t, err) - var resp types.QueryAllBlacklistedResponse - require.NoError(t, net.Config.Codec.UnmarshalJSON(out.Bytes(), &resp)) - require.LessOrEqual(t, len(resp.Blacklisted), step) - require.Subset(t, - nullify.Fill(objs), - nullify.Fill(resp.Blacklisted), - ) - next = resp.Pagination.NextKey - } - }) - t.Run("Total", func(t *testing.T) { - args := request(nil, 0, uint64(len(objs)), true) - out, err := clitestutil.ExecTestCLICmd(ctx, cli.CmdListBlacklisted(), args) - require.NoError(t, err) - var resp types.QueryAllBlacklistedResponse - require.NoError(t, net.Config.Codec.UnmarshalJSON(out.Bytes(), &resp)) - require.NoError(t, err) - require.Equal(t, len(objs), int(resp.Pagination.Total)) - require.ElementsMatch(t, - nullify.Fill(objs), - nullify.Fill(resp.Blacklisted), - ) - }) -} diff --git a/x/fiattokenfactory/client/cli/query_blacklister.go b/x/fiattokenfactory/client/cli/query_blacklister.go deleted file mode 100644 index af156d5f..00000000 --- a/x/fiattokenfactory/client/cli/query_blacklister.go +++ /dev/null @@ -1,36 +0,0 @@ -package cli - -import ( - "context" - - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/spf13/cobra" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" -) - -func CmdShowBlacklister() *cobra.Command { - cmd := &cobra.Command{ - Use: "show-blacklister", - Short: "shows blacklister", - Args: cobra.NoArgs, - RunE: func(cmd *cobra.Command, args []string) error { - clientCtx := client.GetClientContextFromCmd(cmd) - - queryClient := types.NewQueryClient(clientCtx) - - params := &types.QueryGetBlacklisterRequest{} - - res, err := queryClient.Blacklister(context.Background(), params) - if err != nil { - return err - } - - return clientCtx.PrintProto(res) - }, - } - - flags.AddQueryFlagsToCmd(cmd) - - return cmd -} diff --git a/x/fiattokenfactory/client/cli/query_blacklister_test.go b/x/fiattokenfactory/client/cli/query_blacklister_test.go deleted file mode 100644 index c0e6ccff..00000000 --- a/x/fiattokenfactory/client/cli/query_blacklister_test.go +++ /dev/null @@ -1,72 +0,0 @@ -package cli_test - -import ( - "fmt" - "testing" - - clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli" - "github.com/stretchr/testify/require" - tmcli "github.com/tendermint/tendermint/libs/cli" - "google.golang.org/grpc/status" - - "github.com/strangelove-ventures/noble/testutil/network" - "github.com/strangelove-ventures/noble/testutil/nullify" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/client/cli" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" -) - -func networkWithBlacklisterObjects(t *testing.T) (*network.Network, types.Blacklister) { - t.Helper() - cfg := network.DefaultConfig() - state := types.GenesisState{} - require.NoError(t, cfg.Codec.UnmarshalJSON(cfg.GenesisState[types.ModuleName], &state)) - - blacklister := &types.Blacklister{} - nullify.Fill(&blacklister) - state.Blacklister = blacklister - buf, err := cfg.Codec.MarshalJSON(&state) - require.NoError(t, err) - cfg.GenesisState[types.ModuleName] = buf - return network.New(t, cfg), *state.Blacklister -} - -func TestShowBlacklister(t *testing.T) { - net, obj := networkWithBlacklisterObjects(t) - - ctx := net.Validators[0].ClientCtx - common := []string{ - fmt.Sprintf("--%s=json", tmcli.OutputFlag), - } - for _, tc := range []struct { - desc string - args []string - err error - obj types.Blacklister - }{ - { - desc: "get", - args: common, - obj: obj, - }, - } { - t.Run(tc.desc, func(t *testing.T) { - var args []string - args = append(args, tc.args...) - out, err := clitestutil.ExecTestCLICmd(ctx, cli.CmdShowBlacklister(), args) - if tc.err != nil { - stat, ok := status.FromError(tc.err) - require.True(t, ok) - require.ErrorIs(t, stat.Err(), tc.err) - } else { - require.NoError(t, err) - var resp types.QueryGetBlacklisterResponse - require.NoError(t, net.Config.Codec.UnmarshalJSON(out.Bytes(), &resp)) - require.NotNil(t, resp.Blacklister) - require.Equal(t, - nullify.Fill(&tc.obj), - nullify.Fill(&resp.Blacklister), - ) - } - }) - } -} diff --git a/x/fiattokenfactory/client/cli/query_master_minter.go b/x/fiattokenfactory/client/cli/query_master_minter.go deleted file mode 100644 index 454e7619..00000000 --- a/x/fiattokenfactory/client/cli/query_master_minter.go +++ /dev/null @@ -1,36 +0,0 @@ -package cli - -import ( - "context" - - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/spf13/cobra" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" -) - -func CmdShowMasterMinter() *cobra.Command { - cmd := &cobra.Command{ - Use: "show-master-minter", - Short: "shows master-minter", - Args: cobra.NoArgs, - RunE: func(cmd *cobra.Command, args []string) error { - clientCtx := client.GetClientContextFromCmd(cmd) - - queryClient := types.NewQueryClient(clientCtx) - - params := &types.QueryGetMasterMinterRequest{} - - res, err := queryClient.MasterMinter(context.Background(), params) - if err != nil { - return err - } - - return clientCtx.PrintProto(res) - }, - } - - flags.AddQueryFlagsToCmd(cmd) - - return cmd -} diff --git a/x/fiattokenfactory/client/cli/query_master_minter_test.go b/x/fiattokenfactory/client/cli/query_master_minter_test.go deleted file mode 100644 index 1e889e97..00000000 --- a/x/fiattokenfactory/client/cli/query_master_minter_test.go +++ /dev/null @@ -1,72 +0,0 @@ -package cli_test - -import ( - "fmt" - "testing" - - clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli" - "github.com/stretchr/testify/require" - tmcli "github.com/tendermint/tendermint/libs/cli" - "google.golang.org/grpc/status" - - "github.com/strangelove-ventures/noble/testutil/network" - "github.com/strangelove-ventures/noble/testutil/nullify" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/client/cli" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" -) - -func networkWithMasterMinterObjects(t *testing.T) (*network.Network, types.MasterMinter) { - t.Helper() - cfg := network.DefaultConfig() - state := types.GenesisState{} - require.NoError(t, cfg.Codec.UnmarshalJSON(cfg.GenesisState[types.ModuleName], &state)) - - masterMinter := &types.MasterMinter{} - nullify.Fill(&masterMinter) - state.MasterMinter = masterMinter - buf, err := cfg.Codec.MarshalJSON(&state) - require.NoError(t, err) - cfg.GenesisState[types.ModuleName] = buf - return network.New(t, cfg), *state.MasterMinter -} - -func TestShowMasterMinter(t *testing.T) { - net, obj := networkWithMasterMinterObjects(t) - - ctx := net.Validators[0].ClientCtx - common := []string{ - fmt.Sprintf("--%s=json", tmcli.OutputFlag), - } - for _, tc := range []struct { - desc string - args []string - err error - obj types.MasterMinter - }{ - { - desc: "get", - args: common, - obj: obj, - }, - } { - t.Run(tc.desc, func(t *testing.T) { - var args []string - args = append(args, tc.args...) - out, err := clitestutil.ExecTestCLICmd(ctx, cli.CmdShowMasterMinter(), args) - if tc.err != nil { - stat, ok := status.FromError(tc.err) - require.True(t, ok) - require.ErrorIs(t, stat.Err(), tc.err) - } else { - require.NoError(t, err) - var resp types.QueryGetMasterMinterResponse - require.NoError(t, net.Config.Codec.UnmarshalJSON(out.Bytes(), &resp)) - require.NotNil(t, resp.MasterMinter) - require.Equal(t, - nullify.Fill(&tc.obj), - nullify.Fill(&resp.MasterMinter), - ) - } - }) - } -} diff --git a/x/fiattokenfactory/client/cli/query_minter_controller.go b/x/fiattokenfactory/client/cli/query_minter_controller.go deleted file mode 100644 index d1265229..00000000 --- a/x/fiattokenfactory/client/cli/query_minter_controller.go +++ /dev/null @@ -1,74 +0,0 @@ -package cli - -import ( - "context" - - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" - - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/spf13/cobra" -) - -func CmdListMinterController() *cobra.Command { - cmd := &cobra.Command{ - Use: "list-minter-controller", - Short: "list all minter-controller", - RunE: func(cmd *cobra.Command, args []string) error { - clientCtx := client.GetClientContextFromCmd(cmd) - - pageReq, err := client.ReadPageRequest(cmd.Flags()) - if err != nil { - return err - } - - queryClient := types.NewQueryClient(clientCtx) - - params := &types.QueryAllMinterControllerRequest{ - Pagination: pageReq, - } - - res, err := queryClient.MinterControllerAll(context.Background(), params) - if err != nil { - return err - } - - return clientCtx.PrintProto(res) - }, - } - - flags.AddPaginationFlagsToCmd(cmd, cmd.Use) - flags.AddQueryFlagsToCmd(cmd) - - return cmd -} - -func CmdShowMinterController() *cobra.Command { - cmd := &cobra.Command{ - Use: "show-minter-controller [minter-address]", - Short: "shows a minter-controller", - Args: cobra.ExactArgs(1), - RunE: func(cmd *cobra.Command, args []string) (err error) { - clientCtx := client.GetClientContextFromCmd(cmd) - - queryClient := types.NewQueryClient(clientCtx) - - argControllerAddress := args[0] - - params := &types.QueryGetMinterControllerRequest{ - ControllerAddress: argControllerAddress, - } - - res, err := queryClient.MinterController(context.Background(), params) - if err != nil { - return err - } - - return clientCtx.PrintProto(res) - }, - } - - flags.AddQueryFlagsToCmd(cmd) - - return cmd -} diff --git a/x/fiattokenfactory/client/cli/query_minter_controller_test.go b/x/fiattokenfactory/client/cli/query_minter_controller_test.go deleted file mode 100644 index 718181a0..00000000 --- a/x/fiattokenfactory/client/cli/query_minter_controller_test.go +++ /dev/null @@ -1,161 +0,0 @@ -package cli_test - -import ( - "fmt" - "strconv" - "testing" - - "github.com/cosmos/cosmos-sdk/client/flags" - clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli" - "github.com/stretchr/testify/require" - tmcli "github.com/tendermint/tendermint/libs/cli" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/status" - - "github.com/strangelove-ventures/noble/testutil/network" - "github.com/strangelove-ventures/noble/testutil/nullify" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/client/cli" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" -) - -// Prevent strconv unused error -var _ = strconv.IntSize - -func networkWithMinterControllerObjects(t *testing.T, n int) (*network.Network, []types.MinterController) { - t.Helper() - cfg := network.DefaultConfig() - state := types.GenesisState{} - require.NoError(t, cfg.Codec.UnmarshalJSON(cfg.GenesisState[types.ModuleName], &state)) - - for i := 0; i < n; i++ { - minterController := types.MinterController{ - Controller: strconv.Itoa(i), - } - nullify.Fill(&minterController) - state.MinterControllerList = append(state.MinterControllerList, minterController) - } - buf, err := cfg.Codec.MarshalJSON(&state) - require.NoError(t, err) - cfg.GenesisState[types.ModuleName] = buf - return network.New(t, cfg), state.MinterControllerList -} - -func TestShowMinterController(t *testing.T) { - net, objs := networkWithMinterControllerObjects(t, 2) - - ctx := net.Validators[0].ClientCtx - common := []string{ - fmt.Sprintf("--%s=json", tmcli.OutputFlag), - } - for _, tc := range []struct { - desc string - idMinterAddress string - - args []string - err error - obj types.MinterController - }{ - { - desc: "found", - idMinterAddress: objs[0].Controller, - - args: common, - obj: objs[0], - }, - { - desc: "not found", - idMinterAddress: strconv.Itoa(100000), - - args: common, - err: status.Error(codes.NotFound, "not found"), - }, - } { - t.Run(tc.desc, func(t *testing.T) { - args := []string{ - tc.idMinterAddress, - } - args = append(args, tc.args...) - out, err := clitestutil.ExecTestCLICmd(ctx, cli.CmdShowMinterController(), args) - if tc.err != nil { - stat, ok := status.FromError(tc.err) - require.True(t, ok) - require.ErrorIs(t, stat.Err(), tc.err) - } else { - require.NoError(t, err) - var resp types.QueryGetMinterControllerResponse - require.NoError(t, net.Config.Codec.UnmarshalJSON(out.Bytes(), &resp)) - require.NotNil(t, resp.MinterController) - require.Equal(t, - nullify.Fill(&tc.obj), - nullify.Fill(&resp.MinterController), - ) - } - }) - } -} - -func TestListMinterController(t *testing.T) { - net, objs := networkWithMinterControllerObjects(t, 5) - - ctx := net.Validators[0].ClientCtx - request := func(next []byte, offset, limit uint64, total bool) []string { - args := []string{ - fmt.Sprintf("--%s=json", tmcli.OutputFlag), - } - if next == nil { - args = append(args, fmt.Sprintf("--%s=%d", flags.FlagOffset, offset)) - } else { - args = append(args, fmt.Sprintf("--%s=%s", flags.FlagPageKey, next)) - } - args = append(args, fmt.Sprintf("--%s=%d", flags.FlagLimit, limit)) - if total { - args = append(args, fmt.Sprintf("--%s", flags.FlagCountTotal)) - } - return args - } - t.Run("ByOffset", func(t *testing.T) { - step := 2 - for i := 0; i < len(objs); i += step { - args := request(nil, uint64(i), uint64(step), false) - out, err := clitestutil.ExecTestCLICmd(ctx, cli.CmdListMinterController(), args) - require.NoError(t, err) - var resp types.QueryAllMinterControllerResponse - require.NoError(t, net.Config.Codec.UnmarshalJSON(out.Bytes(), &resp)) - require.LessOrEqual(t, len(resp.MinterController), step) - require.Subset(t, - nullify.Fill(objs), - nullify.Fill(resp.MinterController), - ) - } - }) - t.Run("ByKey", func(t *testing.T) { - step := 2 - var next []byte - for i := 0; i < len(objs); i += step { - args := request(next, 0, uint64(step), false) - out, err := clitestutil.ExecTestCLICmd(ctx, cli.CmdListMinterController(), args) - require.NoError(t, err) - var resp types.QueryAllMinterControllerResponse - require.NoError(t, net.Config.Codec.UnmarshalJSON(out.Bytes(), &resp)) - require.LessOrEqual(t, len(resp.MinterController), step) - require.Subset(t, - nullify.Fill(objs), - nullify.Fill(resp.MinterController), - ) - next = resp.Pagination.NextKey - } - }) - t.Run("Total", func(t *testing.T) { - args := request(nil, 0, uint64(len(objs)), true) - out, err := clitestutil.ExecTestCLICmd(ctx, cli.CmdListMinterController(), args) - require.NoError(t, err) - var resp types.QueryAllMinterControllerResponse - require.NoError(t, net.Config.Codec.UnmarshalJSON(out.Bytes(), &resp)) - require.NoError(t, err) - require.Equal(t, len(objs), int(resp.Pagination.Total)) - require.ElementsMatch(t, - nullify.Fill(objs), - nullify.Fill(resp.MinterController), - ) - }) -} diff --git a/x/fiattokenfactory/client/cli/query_minters.go b/x/fiattokenfactory/client/cli/query_minters.go deleted file mode 100644 index b03f69a1..00000000 --- a/x/fiattokenfactory/client/cli/query_minters.go +++ /dev/null @@ -1,73 +0,0 @@ -package cli - -import ( - "context" - - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/spf13/cobra" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" -) - -func CmdListMinters() *cobra.Command { - cmd := &cobra.Command{ - Use: "list-minters", - Short: "list all minters", - RunE: func(cmd *cobra.Command, args []string) error { - clientCtx := client.GetClientContextFromCmd(cmd) - - pageReq, err := client.ReadPageRequest(cmd.Flags()) - if err != nil { - return err - } - - queryClient := types.NewQueryClient(clientCtx) - - params := &types.QueryAllMintersRequest{ - Pagination: pageReq, - } - - res, err := queryClient.MintersAll(context.Background(), params) - if err != nil { - return err - } - - return clientCtx.PrintProto(res) - }, - } - - flags.AddPaginationFlagsToCmd(cmd, cmd.Use) - flags.AddQueryFlagsToCmd(cmd) - - return cmd -} - -func CmdShowMinters() *cobra.Command { - cmd := &cobra.Command{ - Use: "show-minters [address]", - Short: "shows a minters", - Args: cobra.ExactArgs(1), - RunE: func(cmd *cobra.Command, args []string) (err error) { - clientCtx := client.GetClientContextFromCmd(cmd) - - queryClient := types.NewQueryClient(clientCtx) - - argAddress := args[0] - - params := &types.QueryGetMintersRequest{ - Address: argAddress, - } - - res, err := queryClient.Minters(context.Background(), params) - if err != nil { - return err - } - - return clientCtx.PrintProto(res) - }, - } - - flags.AddQueryFlagsToCmd(cmd) - - return cmd -} diff --git a/x/fiattokenfactory/client/cli/query_minters_test.go b/x/fiattokenfactory/client/cli/query_minters_test.go deleted file mode 100644 index c78ea469..00000000 --- a/x/fiattokenfactory/client/cli/query_minters_test.go +++ /dev/null @@ -1,161 +0,0 @@ -package cli_test - -import ( - "fmt" - "strconv" - "testing" - - "github.com/cosmos/cosmos-sdk/client/flags" - clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli" - "github.com/stretchr/testify/require" - tmcli "github.com/tendermint/tendermint/libs/cli" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/status" - - "github.com/strangelove-ventures/noble/testutil/network" - "github.com/strangelove-ventures/noble/testutil/nullify" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/client/cli" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" -) - -// Prevent strconv unused error -var _ = strconv.IntSize - -func networkWithMintersObjects(t *testing.T, n int) (*network.Network, []types.Minters) { - t.Helper() - cfg := network.DefaultConfig() - state := types.GenesisState{} - require.NoError(t, cfg.Codec.UnmarshalJSON(cfg.GenesisState[types.ModuleName], &state)) - - for i := 0; i < n; i++ { - minters := types.Minters{ - Address: strconv.Itoa(i), - } - nullify.Fill(&minters) - state.MintersList = append(state.MintersList, minters) - } - buf, err := cfg.Codec.MarshalJSON(&state) - require.NoError(t, err) - cfg.GenesisState[types.ModuleName] = buf - return network.New(t, cfg), state.MintersList -} - -func TestShowMinters(t *testing.T) { - net, objs := networkWithMintersObjects(t, 2) - - ctx := net.Validators[0].ClientCtx - common := []string{ - fmt.Sprintf("--%s=json", tmcli.OutputFlag), - } - for _, tc := range []struct { - desc string - idAddress string - - args []string - err error - obj types.Minters - }{ - { - desc: "found", - idAddress: objs[0].Address, - - args: common, - obj: objs[0], - }, - { - desc: "not found", - idAddress: strconv.Itoa(100000), - - args: common, - err: status.Error(codes.NotFound, "not found"), - }, - } { - t.Run(tc.desc, func(t *testing.T) { - args := []string{ - tc.idAddress, - } - args = append(args, tc.args...) - out, err := clitestutil.ExecTestCLICmd(ctx, cli.CmdShowMinters(), args) - if tc.err != nil { - stat, ok := status.FromError(tc.err) - require.True(t, ok) - require.ErrorIs(t, stat.Err(), tc.err) - } else { - require.NoError(t, err) - var resp types.QueryGetMintersResponse - require.NoError(t, net.Config.Codec.UnmarshalJSON(out.Bytes(), &resp)) - require.NotNil(t, resp.Minters) - require.Equal(t, - nullify.Fill(&tc.obj), - nullify.Fill(&resp.Minters), - ) - } - }) - } -} - -func TestListMinters(t *testing.T) { - net, objs := networkWithMintersObjects(t, 5) - - ctx := net.Validators[0].ClientCtx - request := func(next []byte, offset, limit uint64, total bool) []string { - args := []string{ - fmt.Sprintf("--%s=json", tmcli.OutputFlag), - } - if next == nil { - args = append(args, fmt.Sprintf("--%s=%d", flags.FlagOffset, offset)) - } else { - args = append(args, fmt.Sprintf("--%s=%s", flags.FlagPageKey, next)) - } - args = append(args, fmt.Sprintf("--%s=%d", flags.FlagLimit, limit)) - if total { - args = append(args, fmt.Sprintf("--%s", flags.FlagCountTotal)) - } - return args - } - t.Run("ByOffset", func(t *testing.T) { - step := 2 - for i := 0; i < len(objs); i += step { - args := request(nil, uint64(i), uint64(step), false) - out, err := clitestutil.ExecTestCLICmd(ctx, cli.CmdListMinters(), args) - require.NoError(t, err) - var resp types.QueryAllMintersResponse - require.NoError(t, net.Config.Codec.UnmarshalJSON(out.Bytes(), &resp)) - require.LessOrEqual(t, len(resp.Minters), step) - require.Subset(t, - nullify.Fill(objs), - nullify.Fill(resp.Minters), - ) - } - }) - t.Run("ByKey", func(t *testing.T) { - step := 2 - var next []byte - for i := 0; i < len(objs); i += step { - args := request(next, 0, uint64(step), false) - out, err := clitestutil.ExecTestCLICmd(ctx, cli.CmdListMinters(), args) - require.NoError(t, err) - var resp types.QueryAllMintersResponse - require.NoError(t, net.Config.Codec.UnmarshalJSON(out.Bytes(), &resp)) - require.LessOrEqual(t, len(resp.Minters), step) - require.Subset(t, - nullify.Fill(objs), - nullify.Fill(resp.Minters), - ) - next = resp.Pagination.NextKey - } - }) - t.Run("Total", func(t *testing.T) { - args := request(nil, 0, uint64(len(objs)), true) - out, err := clitestutil.ExecTestCLICmd(ctx, cli.CmdListMinters(), args) - require.NoError(t, err) - var resp types.QueryAllMintersResponse - require.NoError(t, net.Config.Codec.UnmarshalJSON(out.Bytes(), &resp)) - require.NoError(t, err) - require.Equal(t, len(objs), int(resp.Pagination.Total)) - require.ElementsMatch(t, - nullify.Fill(objs), - nullify.Fill(resp.Minters), - ) - }) -} diff --git a/x/fiattokenfactory/client/cli/query_minting_denom.go b/x/fiattokenfactory/client/cli/query_minting_denom.go deleted file mode 100644 index faf397a3..00000000 --- a/x/fiattokenfactory/client/cli/query_minting_denom.go +++ /dev/null @@ -1,36 +0,0 @@ -package cli - -import ( - "context" - - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/spf13/cobra" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" -) - -func CmdShowMintingDenom() *cobra.Command { - cmd := &cobra.Command{ - Use: "show-minting-denom", - Short: "shows minting-denom", - Args: cobra.NoArgs, - RunE: func(cmd *cobra.Command, args []string) error { - clientCtx := client.GetClientContextFromCmd(cmd) - - queryClient := types.NewQueryClient(clientCtx) - - params := &types.QueryGetMintingDenomRequest{} - - res, err := queryClient.MintingDenom(context.Background(), params) - if err != nil { - return err - } - - return clientCtx.PrintProto(res) - }, - } - - flags.AddQueryFlagsToCmd(cmd) - - return cmd -} diff --git a/x/fiattokenfactory/client/cli/query_minting_denom_test.go b/x/fiattokenfactory/client/cli/query_minting_denom_test.go deleted file mode 100644 index 19f63ceb..00000000 --- a/x/fiattokenfactory/client/cli/query_minting_denom_test.go +++ /dev/null @@ -1,86 +0,0 @@ -package cli_test - -import ( - "fmt" - "testing" - - clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli" - banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" - "github.com/stretchr/testify/require" - tmcli "github.com/tendermint/tendermint/libs/cli" - "google.golang.org/grpc/status" - - "github.com/strangelove-ventures/noble/testutil/network" - "github.com/strangelove-ventures/noble/testutil/nullify" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/client/cli" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" -) - -func networkWithMintingDenomObjects(t *testing.T) (*network.Network, types.MintingDenom) { - t.Helper() - cfg := network.DefaultConfig() - state := types.GenesisState{} - require.NoError(t, cfg.Codec.UnmarshalJSON(cfg.GenesisState[types.ModuleName], &state)) - - testDenom := "test" - - state.MintingDenom = &types.MintingDenom{ - Denom: testDenom, - } - - bankState := banktypes.DefaultGenesisState() - bankState.DenomMetadata = []banktypes.Metadata{{ - Base: testDenom, - }} - - buf, err := cfg.Codec.MarshalJSON(bankState) - require.NoError(t, err) - cfg.GenesisState[banktypes.ModuleName] = buf - - buf, err = cfg.Codec.MarshalJSON(&state) - require.NoError(t, err) - cfg.GenesisState[types.ModuleName] = buf - - return network.New(t, cfg), *state.MintingDenom -} - -func TestShowMintingDenom(t *testing.T) { - net, obj := networkWithMintingDenomObjects(t) - - ctx := net.Validators[0].ClientCtx - common := []string{ - fmt.Sprintf("--%s=json", tmcli.OutputFlag), - } - for _, tc := range []struct { - desc string - args []string - err error - obj types.MintingDenom - }{ - { - desc: "get", - args: common, - obj: obj, - }, - } { - t.Run(tc.desc, func(t *testing.T) { - var args []string - args = append(args, tc.args...) - out, err := clitestutil.ExecTestCLICmd(ctx, cli.CmdShowMintingDenom(), args) - if tc.err != nil { - stat, ok := status.FromError(tc.err) - require.True(t, ok) - require.ErrorIs(t, stat.Err(), tc.err) - } else { - require.NoError(t, err) - var resp types.QueryGetMintingDenomResponse - require.NoError(t, net.Config.Codec.UnmarshalJSON(out.Bytes(), &resp)) - require.NotNil(t, resp.MintingDenom) - require.Equal(t, - nullify.Fill(&tc.obj), - nullify.Fill(&resp.MintingDenom), - ) - } - }) - } -} diff --git a/x/fiattokenfactory/client/cli/query_owner.go b/x/fiattokenfactory/client/cli/query_owner.go deleted file mode 100644 index 040c8e07..00000000 --- a/x/fiattokenfactory/client/cli/query_owner.go +++ /dev/null @@ -1,36 +0,0 @@ -package cli - -import ( - "context" - - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/spf13/cobra" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" -) - -func CmdShowOwner() *cobra.Command { - cmd := &cobra.Command{ - Use: "show-owner", - Short: "shows owner", - Args: cobra.NoArgs, - RunE: func(cmd *cobra.Command, args []string) error { - clientCtx := client.GetClientContextFromCmd(cmd) - - queryClient := types.NewQueryClient(clientCtx) - - params := &types.QueryGetOwnerRequest{} - - res, err := queryClient.Owner(context.Background(), params) - if err != nil { - return err - } - - return clientCtx.PrintProto(res) - }, - } - - flags.AddQueryFlagsToCmd(cmd) - - return cmd -} diff --git a/x/fiattokenfactory/client/cli/query_owner_test.go b/x/fiattokenfactory/client/cli/query_owner_test.go deleted file mode 100644 index 2a2ceaa7..00000000 --- a/x/fiattokenfactory/client/cli/query_owner_test.go +++ /dev/null @@ -1,72 +0,0 @@ -package cli_test - -import ( - "fmt" - "testing" - - clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli" - "github.com/stretchr/testify/require" - tmcli "github.com/tendermint/tendermint/libs/cli" - "google.golang.org/grpc/status" - - "github.com/strangelove-ventures/noble/testutil/network" - "github.com/strangelove-ventures/noble/testutil/nullify" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/client/cli" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" -) - -func networkWithOwnerObjects(t *testing.T) (*network.Network, types.Owner) { - t.Helper() - cfg := network.DefaultConfig() - state := types.GenesisState{} - require.NoError(t, cfg.Codec.UnmarshalJSON(cfg.GenesisState[types.ModuleName], &state)) - - owner := &types.Owner{} - nullify.Fill(&owner) - state.Owner = owner - buf, err := cfg.Codec.MarshalJSON(&state) - require.NoError(t, err) - cfg.GenesisState[types.ModuleName] = buf - return network.New(t, cfg), *state.Owner -} - -func TestShowOwner(t *testing.T) { - net, obj := networkWithOwnerObjects(t) - - ctx := net.Validators[0].ClientCtx - common := []string{ - fmt.Sprintf("--%s=json", tmcli.OutputFlag), - } - for _, tc := range []struct { - desc string - args []string - err error - obj types.Owner - }{ - { - desc: "get", - args: common, - obj: obj, - }, - } { - t.Run(tc.desc, func(t *testing.T) { - var args []string - args = append(args, tc.args...) - out, err := clitestutil.ExecTestCLICmd(ctx, cli.CmdShowOwner(), args) - if tc.err != nil { - stat, ok := status.FromError(tc.err) - require.True(t, ok) - require.ErrorIs(t, stat.Err(), tc.err) - } else { - require.NoError(t, err) - var resp types.QueryGetOwnerResponse - require.NoError(t, net.Config.Codec.UnmarshalJSON(out.Bytes(), &resp)) - require.NotNil(t, resp.Owner) - require.Equal(t, - nullify.Fill(&tc.obj), - nullify.Fill(&resp.Owner), - ) - } - }) - } -} diff --git a/x/fiattokenfactory/client/cli/query_params.go b/x/fiattokenfactory/client/cli/query_params.go deleted file mode 100644 index 7d1490be..00000000 --- a/x/fiattokenfactory/client/cli/query_params.go +++ /dev/null @@ -1,34 +0,0 @@ -package cli - -import ( - "context" - - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/spf13/cobra" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" -) - -func CmdQueryParams() *cobra.Command { - cmd := &cobra.Command{ - Use: "params", - Short: "shows the parameters of the module", - Args: cobra.NoArgs, - RunE: func(cmd *cobra.Command, args []string) error { - clientCtx := client.GetClientContextFromCmd(cmd) - - queryClient := types.NewQueryClient(clientCtx) - - res, err := queryClient.Params(context.Background(), &types.QueryParamsRequest{}) - if err != nil { - return err - } - - return clientCtx.PrintProto(res) - }, - } - - flags.AddQueryFlagsToCmd(cmd) - - return cmd -} diff --git a/x/fiattokenfactory/client/cli/query_paused.go b/x/fiattokenfactory/client/cli/query_paused.go deleted file mode 100644 index 152b4ad1..00000000 --- a/x/fiattokenfactory/client/cli/query_paused.go +++ /dev/null @@ -1,36 +0,0 @@ -package cli - -import ( - "context" - - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/spf13/cobra" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" -) - -func CmdShowPaused() *cobra.Command { - cmd := &cobra.Command{ - Use: "show-paused", - Short: "shows paused", - Args: cobra.NoArgs, - RunE: func(cmd *cobra.Command, args []string) error { - clientCtx := client.GetClientContextFromCmd(cmd) - - queryClient := types.NewQueryClient(clientCtx) - - params := &types.QueryGetPausedRequest{} - - res, err := queryClient.Paused(context.Background(), params) - if err != nil { - return err - } - - return clientCtx.PrintProto(res) - }, - } - - flags.AddQueryFlagsToCmd(cmd) - - return cmd -} diff --git a/x/fiattokenfactory/client/cli/query_paused_test.go b/x/fiattokenfactory/client/cli/query_paused_test.go deleted file mode 100644 index 7ca21983..00000000 --- a/x/fiattokenfactory/client/cli/query_paused_test.go +++ /dev/null @@ -1,72 +0,0 @@ -package cli_test - -import ( - "fmt" - "testing" - - clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli" - "github.com/stretchr/testify/require" - tmcli "github.com/tendermint/tendermint/libs/cli" - "google.golang.org/grpc/status" - - "github.com/strangelove-ventures/noble/testutil/network" - "github.com/strangelove-ventures/noble/testutil/nullify" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/client/cli" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" -) - -func networkWithPausedObjects(t *testing.T) (*network.Network, types.Paused) { - t.Helper() - cfg := network.DefaultConfig() - state := types.GenesisState{} - require.NoError(t, cfg.Codec.UnmarshalJSON(cfg.GenesisState[types.ModuleName], &state)) - - paused := &types.Paused{} - nullify.Fill(&paused) - state.Paused = paused - buf, err := cfg.Codec.MarshalJSON(&state) - require.NoError(t, err) - cfg.GenesisState[types.ModuleName] = buf - return network.New(t, cfg), *state.Paused -} - -func TestShowPaused(t *testing.T) { - net, obj := networkWithPausedObjects(t) - - ctx := net.Validators[0].ClientCtx - common := []string{ - fmt.Sprintf("--%s=json", tmcli.OutputFlag), - } - for _, tc := range []struct { - desc string - args []string - err error - obj types.Paused - }{ - { - desc: "get", - args: common, - obj: obj, - }, - } { - t.Run(tc.desc, func(t *testing.T) { - var args []string - args = append(args, tc.args...) - out, err := clitestutil.ExecTestCLICmd(ctx, cli.CmdShowPaused(), args) - if tc.err != nil { - stat, ok := status.FromError(tc.err) - require.True(t, ok) - require.ErrorIs(t, stat.Err(), tc.err) - } else { - require.NoError(t, err) - var resp types.QueryGetPausedResponse - require.NoError(t, net.Config.Codec.UnmarshalJSON(out.Bytes(), &resp)) - require.NotNil(t, resp.Paused) - require.Equal(t, - nullify.Fill(&tc.obj), - nullify.Fill(&resp.Paused), - ) - } - }) - } -} diff --git a/x/fiattokenfactory/client/cli/query_pauser.go b/x/fiattokenfactory/client/cli/query_pauser.go deleted file mode 100644 index d91bed0d..00000000 --- a/x/fiattokenfactory/client/cli/query_pauser.go +++ /dev/null @@ -1,36 +0,0 @@ -package cli - -import ( - "context" - - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/spf13/cobra" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" -) - -func CmdShowPauser() *cobra.Command { - cmd := &cobra.Command{ - Use: "show-pauser", - Short: "shows pauser", - Args: cobra.NoArgs, - RunE: func(cmd *cobra.Command, args []string) error { - clientCtx := client.GetClientContextFromCmd(cmd) - - queryClient := types.NewQueryClient(clientCtx) - - params := &types.QueryGetPauserRequest{} - - res, err := queryClient.Pauser(context.Background(), params) - if err != nil { - return err - } - - return clientCtx.PrintProto(res) - }, - } - - flags.AddQueryFlagsToCmd(cmd) - - return cmd -} diff --git a/x/fiattokenfactory/client/cli/query_pauser_test.go b/x/fiattokenfactory/client/cli/query_pauser_test.go deleted file mode 100644 index 4e4840e3..00000000 --- a/x/fiattokenfactory/client/cli/query_pauser_test.go +++ /dev/null @@ -1,72 +0,0 @@ -package cli_test - -import ( - "fmt" - "testing" - - clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli" - "github.com/stretchr/testify/require" - tmcli "github.com/tendermint/tendermint/libs/cli" - "google.golang.org/grpc/status" - - "github.com/strangelove-ventures/noble/testutil/network" - "github.com/strangelove-ventures/noble/testutil/nullify" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/client/cli" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" -) - -func networkWithPauserObjects(t *testing.T) (*network.Network, types.Pauser) { - t.Helper() - cfg := network.DefaultConfig() - state := types.GenesisState{} - require.NoError(t, cfg.Codec.UnmarshalJSON(cfg.GenesisState[types.ModuleName], &state)) - - pauser := &types.Pauser{} - nullify.Fill(&pauser) - state.Pauser = pauser - buf, err := cfg.Codec.MarshalJSON(&state) - require.NoError(t, err) - cfg.GenesisState[types.ModuleName] = buf - return network.New(t, cfg), *state.Pauser -} - -func TestShowPauser(t *testing.T) { - net, obj := networkWithPauserObjects(t) - - ctx := net.Validators[0].ClientCtx - common := []string{ - fmt.Sprintf("--%s=json", tmcli.OutputFlag), - } - for _, tc := range []struct { - desc string - args []string - err error - obj types.Pauser - }{ - { - desc: "get", - args: common, - obj: obj, - }, - } { - t.Run(tc.desc, func(t *testing.T) { - var args []string - args = append(args, tc.args...) - out, err := clitestutil.ExecTestCLICmd(ctx, cli.CmdShowPauser(), args) - if tc.err != nil { - stat, ok := status.FromError(tc.err) - require.True(t, ok) - require.ErrorIs(t, stat.Err(), tc.err) - } else { - require.NoError(t, err) - var resp types.QueryGetPauserResponse - require.NoError(t, net.Config.Codec.UnmarshalJSON(out.Bytes(), &resp)) - require.NotNil(t, resp.Pauser) - require.Equal(t, - nullify.Fill(&tc.obj), - nullify.Fill(&resp.Pauser), - ) - } - }) - } -} diff --git a/x/fiattokenfactory/client/cli/tx.go b/x/fiattokenfactory/client/cli/tx.go deleted file mode 100644 index 72a87b50..00000000 --- a/x/fiattokenfactory/client/cli/tx.go +++ /dev/null @@ -1,39 +0,0 @@ -package cli - -import ( - "fmt" - - "github.com/cosmos/cosmos-sdk/client" - "github.com/spf13/cobra" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" -) - -// GetTxCmd returns the transaction commands for this module -func GetTxCmd() *cobra.Command { - cmd := &cobra.Command{ - Use: types.ModuleName, - Short: fmt.Sprintf("%s transactions subcommands", types.ModuleName), - DisableFlagParsing: true, - SuggestionsMinimumDistance: 2, - RunE: client.ValidateCmd, - } - - cmd.AddCommand(CmdUpdateMasterMinter()) - cmd.AddCommand(CmdUpdatePauser()) - cmd.AddCommand(CmdUpdateBlacklister()) - cmd.AddCommand(CmdUpdateOwner()) - cmd.AddCommand(CmdAcceptOwner()) - cmd.AddCommand(CmdConfigureMinter()) - cmd.AddCommand(CmdRemoveMinter()) - cmd.AddCommand(CmdMint()) - cmd.AddCommand(CmdBurn()) - cmd.AddCommand(CmdBlacklist()) - cmd.AddCommand(CmdUnblacklist()) - cmd.AddCommand(CmdPause()) - cmd.AddCommand(CmdUnpause()) - cmd.AddCommand(CmdConfigureMinterController()) - cmd.AddCommand(CmdRemoveMinterController()) - // this line is used by starport scaffolding # 1 - - return cmd -} diff --git a/x/fiattokenfactory/client/cli/tx_accept_owner.go b/x/fiattokenfactory/client/cli/tx_accept_owner.go deleted file mode 100644 index 5b14b5be..00000000 --- a/x/fiattokenfactory/client/cli/tx_accept_owner.go +++ /dev/null @@ -1,38 +0,0 @@ -package cli - -import ( - "strconv" - - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/client/tx" - "github.com/spf13/cobra" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" -) - -var _ = strconv.Itoa(0) - -func CmdAcceptOwner() *cobra.Command { - cmd := &cobra.Command{ - Use: "accept-owner [address]", - Short: "Broadcast message accept-owner", - Args: cobra.NoArgs, - RunE: func(cmd *cobra.Command, args []string) (err error) { - - clientCtx, err := client.GetClientTxContext(cmd) - if err != nil { - return err - } - - msg := types.NewMsgAcceptOwner( - clientCtx.GetFromAddress().String(), - ) - - return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) - }, - } - - flags.AddTxFlagsToCmd(cmd) - - return cmd -} diff --git a/x/fiattokenfactory/client/cli/tx_blacklist.go b/x/fiattokenfactory/client/cli/tx_blacklist.go deleted file mode 100644 index 9f996cdc..00000000 --- a/x/fiattokenfactory/client/cli/tx_blacklist.go +++ /dev/null @@ -1,40 +0,0 @@ -package cli - -import ( - "strconv" - - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/client/tx" - "github.com/spf13/cobra" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" -) - -var _ = strconv.Itoa(0) - -func CmdBlacklist() *cobra.Command { - cmd := &cobra.Command{ - Use: "blacklist [address]", - Short: "Broadcast message blacklist", - Args: cobra.ExactArgs(1), - RunE: func(cmd *cobra.Command, args []string) (err error) { - argAddress := args[0] - - clientCtx, err := client.GetClientTxContext(cmd) - if err != nil { - return err - } - - msg := types.NewMsgBlacklist( - clientCtx.GetFromAddress().String(), - argAddress, - ) - - return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) - }, - } - - flags.AddTxFlagsToCmd(cmd) - - return cmd -} diff --git a/x/fiattokenfactory/client/cli/tx_burn.go b/x/fiattokenfactory/client/cli/tx_burn.go deleted file mode 100644 index f7f719dd..00000000 --- a/x/fiattokenfactory/client/cli/tx_burn.go +++ /dev/null @@ -1,44 +0,0 @@ -package cli - -import ( - "strconv" - - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/client/tx" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/spf13/cobra" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" -) - -var _ = strconv.Itoa(0) - -func CmdBurn() *cobra.Command { - cmd := &cobra.Command{ - Use: "burn [amount]", - Short: "Broadcast message burn", - Args: cobra.ExactArgs(1), - RunE: func(cmd *cobra.Command, args []string) (err error) { - argAmount, err := sdk.ParseCoinNormalized(args[0]) - if err != nil { - return err - } - - clientCtx, err := client.GetClientTxContext(cmd) - if err != nil { - return err - } - - msg := types.NewMsgBurn( - clientCtx.GetFromAddress().String(), - argAmount, - ) - - return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) - }, - } - - flags.AddTxFlagsToCmd(cmd) - - return cmd -} diff --git a/x/fiattokenfactory/client/cli/tx_configure_minter.go b/x/fiattokenfactory/client/cli/tx_configure_minter.go deleted file mode 100644 index db6aa66b..00000000 --- a/x/fiattokenfactory/client/cli/tx_configure_minter.go +++ /dev/null @@ -1,46 +0,0 @@ -package cli - -import ( - "strconv" - - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/client/tx" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/spf13/cobra" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" -) - -var _ = strconv.Itoa(0) - -func CmdConfigureMinter() *cobra.Command { - cmd := &cobra.Command{ - Use: "configure-minter [address] [allowance]", - Short: "Broadcast message configure-minter", - Args: cobra.ExactArgs(2), - RunE: func(cmd *cobra.Command, args []string) (err error) { - argAddress := args[0] - argAllowance, err := sdk.ParseCoinNormalized(args[1]) - if err != nil { - return err - } - - clientCtx, err := client.GetClientTxContext(cmd) - if err != nil { - return err - } - - msg := types.NewMsgConfigureMinter( - clientCtx.GetFromAddress().String(), - argAddress, - argAllowance, - ) - - return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) - }, - } - - flags.AddTxFlagsToCmd(cmd) - - return cmd -} diff --git a/x/fiattokenfactory/client/cli/tx_configure_minter_controller.go b/x/fiattokenfactory/client/cli/tx_configure_minter_controller.go deleted file mode 100644 index d8504623..00000000 --- a/x/fiattokenfactory/client/cli/tx_configure_minter_controller.go +++ /dev/null @@ -1,42 +0,0 @@ -package cli - -import ( - "strconv" - - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/client/tx" - "github.com/spf13/cobra" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" -) - -var _ = strconv.Itoa(0) - -func CmdConfigureMinterController() *cobra.Command { - cmd := &cobra.Command{ - Use: "configure-minter-controller [controller] [minter]", - Short: "Broadcast message configure-minter-controller", - Args: cobra.ExactArgs(2), - RunE: func(cmd *cobra.Command, args []string) (err error) { - argController := args[0] - argMinter := args[1] - - clientCtx, err := client.GetClientTxContext(cmd) - if err != nil { - return err - } - - msg := types.NewMsgConfigureMinterController( - clientCtx.GetFromAddress().String(), - argController, - argMinter, - ) - - return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) - }, - } - - flags.AddTxFlagsToCmd(cmd) - - return cmd -} diff --git a/x/fiattokenfactory/client/cli/tx_mint.go b/x/fiattokenfactory/client/cli/tx_mint.go deleted file mode 100644 index 69bc4476..00000000 --- a/x/fiattokenfactory/client/cli/tx_mint.go +++ /dev/null @@ -1,46 +0,0 @@ -package cli - -import ( - "strconv" - - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/client/tx" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/spf13/cobra" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" -) - -var _ = strconv.Itoa(0) - -func CmdMint() *cobra.Command { - cmd := &cobra.Command{ - Use: "mint [address] [amount]", - Short: "Broadcast message mint", - Args: cobra.ExactArgs(2), - RunE: func(cmd *cobra.Command, args []string) (err error) { - argAddress := args[0] - argAmount, err := sdk.ParseCoinNormalized(args[1]) - if err != nil { - return err - } - - clientCtx, err := client.GetClientTxContext(cmd) - if err != nil { - return err - } - - msg := types.NewMsgMint( - clientCtx.GetFromAddress().String(), - argAddress, - argAmount, - ) - - return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) - }, - } - - flags.AddTxFlagsToCmd(cmd) - - return cmd -} diff --git a/x/fiattokenfactory/client/cli/tx_pause.go b/x/fiattokenfactory/client/cli/tx_pause.go deleted file mode 100644 index d9793842..00000000 --- a/x/fiattokenfactory/client/cli/tx_pause.go +++ /dev/null @@ -1,38 +0,0 @@ -package cli - -import ( - "strconv" - - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/client/tx" - "github.com/spf13/cobra" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" -) - -var _ = strconv.Itoa(0) - -func CmdPause() *cobra.Command { - cmd := &cobra.Command{ - Use: "pause", - Short: "Broadcast message pause", - Args: cobra.ExactArgs(0), - RunE: func(cmd *cobra.Command, args []string) (err error) { - - clientCtx, err := client.GetClientTxContext(cmd) - if err != nil { - return err - } - - msg := types.NewMsgPause( - clientCtx.GetFromAddress().String(), - ) - - return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) - }, - } - - flags.AddTxFlagsToCmd(cmd) - - return cmd -} diff --git a/x/fiattokenfactory/client/cli/tx_remove_minter.go b/x/fiattokenfactory/client/cli/tx_remove_minter.go deleted file mode 100644 index eeecaf99..00000000 --- a/x/fiattokenfactory/client/cli/tx_remove_minter.go +++ /dev/null @@ -1,40 +0,0 @@ -package cli - -import ( - "strconv" - - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/client/tx" - "github.com/spf13/cobra" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" -) - -var _ = strconv.Itoa(0) - -func CmdRemoveMinter() *cobra.Command { - cmd := &cobra.Command{ - Use: "remove-minter [address]", - Short: "Broadcast message remove-minter", - Args: cobra.ExactArgs(1), - RunE: func(cmd *cobra.Command, args []string) (err error) { - argAddress := args[0] - - clientCtx, err := client.GetClientTxContext(cmd) - if err != nil { - return err - } - - msg := types.NewMsgRemoveMinter( - clientCtx.GetFromAddress().String(), - argAddress, - ) - - return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) - }, - } - - flags.AddTxFlagsToCmd(cmd) - - return cmd -} diff --git a/x/fiattokenfactory/client/cli/tx_remove_minter_controller.go b/x/fiattokenfactory/client/cli/tx_remove_minter_controller.go deleted file mode 100644 index eb81270e..00000000 --- a/x/fiattokenfactory/client/cli/tx_remove_minter_controller.go +++ /dev/null @@ -1,41 +0,0 @@ -package cli - -import ( - "strconv" - - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" - - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/client/tx" - "github.com/spf13/cobra" -) - -var _ = strconv.Itoa(0) - -func CmdRemoveMinterController() *cobra.Command { - cmd := &cobra.Command{ - Use: "remove-minter-controller [controller]", - Short: "Broadcast message remove-minter-controller", - Args: cobra.ExactArgs(1), - RunE: func(cmd *cobra.Command, args []string) (err error) { - argAddress := args[0] - - clientCtx, err := client.GetClientTxContext(cmd) - if err != nil { - return err - } - - msg := types.NewMsgRemoveMinterController( - clientCtx.GetFromAddress().String(), - argAddress, - ) - - return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) - }, - } - - flags.AddTxFlagsToCmd(cmd) - - return cmd -} diff --git a/x/fiattokenfactory/client/cli/tx_unblacklist.go b/x/fiattokenfactory/client/cli/tx_unblacklist.go deleted file mode 100644 index 7d2907ce..00000000 --- a/x/fiattokenfactory/client/cli/tx_unblacklist.go +++ /dev/null @@ -1,40 +0,0 @@ -package cli - -import ( - "strconv" - - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/client/tx" - "github.com/spf13/cobra" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" -) - -var _ = strconv.Itoa(0) - -func CmdUnblacklist() *cobra.Command { - cmd := &cobra.Command{ - Use: "unblacklist [address]", - Short: "Broadcast message unblacklist", - Args: cobra.ExactArgs(1), - RunE: func(cmd *cobra.Command, args []string) (err error) { - argAddress := args[0] - - clientCtx, err := client.GetClientTxContext(cmd) - if err != nil { - return err - } - - msg := types.NewMsgUnblacklist( - clientCtx.GetFromAddress().String(), - argAddress, - ) - - return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) - }, - } - - flags.AddTxFlagsToCmd(cmd) - - return cmd -} diff --git a/x/fiattokenfactory/client/cli/tx_unpause.go b/x/fiattokenfactory/client/cli/tx_unpause.go deleted file mode 100644 index 7eb1416f..00000000 --- a/x/fiattokenfactory/client/cli/tx_unpause.go +++ /dev/null @@ -1,38 +0,0 @@ -package cli - -import ( - "strconv" - - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/client/tx" - "github.com/spf13/cobra" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" -) - -var _ = strconv.Itoa(0) - -func CmdUnpause() *cobra.Command { - cmd := &cobra.Command{ - Use: "unpause", - Short: "Broadcast message unpause", - Args: cobra.ExactArgs(0), - RunE: func(cmd *cobra.Command, args []string) (err error) { - - clientCtx, err := client.GetClientTxContext(cmd) - if err != nil { - return err - } - - msg := types.NewMsgUnpause( - clientCtx.GetFromAddress().String(), - ) - - return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) - }, - } - - flags.AddTxFlagsToCmd(cmd) - - return cmd -} diff --git a/x/fiattokenfactory/client/cli/tx_update_blacklister.go b/x/fiattokenfactory/client/cli/tx_update_blacklister.go deleted file mode 100644 index b60ebaa4..00000000 --- a/x/fiattokenfactory/client/cli/tx_update_blacklister.go +++ /dev/null @@ -1,40 +0,0 @@ -package cli - -import ( - "strconv" - - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/client/tx" - "github.com/spf13/cobra" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" -) - -var _ = strconv.Itoa(0) - -func CmdUpdateBlacklister() *cobra.Command { - cmd := &cobra.Command{ - Use: "update-blacklister [address]", - Short: "Broadcast message update-blacklister", - Args: cobra.ExactArgs(1), - RunE: func(cmd *cobra.Command, args []string) (err error) { - argAddress := args[0] - - clientCtx, err := client.GetClientTxContext(cmd) - if err != nil { - return err - } - - msg := types.NewMsgUpdateBlacklister( - clientCtx.GetFromAddress().String(), - argAddress, - ) - - return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) - }, - } - - flags.AddTxFlagsToCmd(cmd) - - return cmd -} diff --git a/x/fiattokenfactory/client/cli/tx_update_master_minter.go b/x/fiattokenfactory/client/cli/tx_update_master_minter.go deleted file mode 100644 index 1337d74e..00000000 --- a/x/fiattokenfactory/client/cli/tx_update_master_minter.go +++ /dev/null @@ -1,40 +0,0 @@ -package cli - -import ( - "strconv" - - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/client/tx" - "github.com/spf13/cobra" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" -) - -var _ = strconv.Itoa(0) - -func CmdUpdateMasterMinter() *cobra.Command { - cmd := &cobra.Command{ - Use: "update-master-minter [address]", - Short: "Broadcast message update-master-minter", - Args: cobra.ExactArgs(1), - RunE: func(cmd *cobra.Command, args []string) (err error) { - argAddress := args[0] - - clientCtx, err := client.GetClientTxContext(cmd) - if err != nil { - return err - } - - msg := types.NewMsgUpdateMasterMinter( - clientCtx.GetFromAddress().String(), - argAddress, - ) - - return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) - }, - } - - flags.AddTxFlagsToCmd(cmd) - - return cmd -} diff --git a/x/fiattokenfactory/client/cli/tx_update_owner.go b/x/fiattokenfactory/client/cli/tx_update_owner.go deleted file mode 100644 index 6a004a25..00000000 --- a/x/fiattokenfactory/client/cli/tx_update_owner.go +++ /dev/null @@ -1,40 +0,0 @@ -package cli - -import ( - "strconv" - - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/client/tx" - "github.com/spf13/cobra" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" -) - -var _ = strconv.Itoa(0) - -func CmdUpdateOwner() *cobra.Command { - cmd := &cobra.Command{ - Use: "update-owner [address]", - Short: "Broadcast message update-owner", - Args: cobra.ExactArgs(1), - RunE: func(cmd *cobra.Command, args []string) (err error) { - argAddress := args[0] - - clientCtx, err := client.GetClientTxContext(cmd) - if err != nil { - return err - } - - msg := types.NewMsgUpdateOwner( - clientCtx.GetFromAddress().String(), - argAddress, - ) - - return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) - }, - } - - flags.AddTxFlagsToCmd(cmd) - - return cmd -} diff --git a/x/fiattokenfactory/client/cli/tx_update_pauser.go b/x/fiattokenfactory/client/cli/tx_update_pauser.go deleted file mode 100644 index e1f33123..00000000 --- a/x/fiattokenfactory/client/cli/tx_update_pauser.go +++ /dev/null @@ -1,40 +0,0 @@ -package cli - -import ( - "strconv" - - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/client/tx" - "github.com/spf13/cobra" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" -) - -var _ = strconv.Itoa(0) - -func CmdUpdatePauser() *cobra.Command { - cmd := &cobra.Command{ - Use: "update-pauser [address]", - Short: "Broadcast message update-pauser", - Args: cobra.ExactArgs(1), - RunE: func(cmd *cobra.Command, args []string) (err error) { - argAddress := args[0] - - clientCtx, err := client.GetClientTxContext(cmd) - if err != nil { - return err - } - - msg := types.NewMsgUpdatePauser( - clientCtx.GetFromAddress().String(), - argAddress, - ) - - return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) - }, - } - - flags.AddTxFlagsToCmd(cmd) - - return cmd -} diff --git a/x/fiattokenfactory/genesis.go b/x/fiattokenfactory/genesis.go deleted file mode 100644 index 5b3f6d4b..00000000 --- a/x/fiattokenfactory/genesis.go +++ /dev/null @@ -1,93 +0,0 @@ -package fiattokenfactory - -import ( - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/keeper" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" - - sdk "github.com/cosmos/cosmos-sdk/types" -) - -// InitGenesis initializes the module's state from a provided genesis state. -func InitGenesis(ctx sdk.Context, k *keeper.Keeper, bankKeeper types.BankKeeper, genState types.GenesisState) { - for _, elem := range genState.BlacklistedList { - k.SetBlacklisted(ctx, elem) - } - - if genState.Paused != nil { - k.SetPaused(ctx, *genState.Paused) - } - - if genState.MasterMinter != nil { - k.SetMasterMinter(ctx, *genState.MasterMinter) - } - - for _, elem := range genState.MintersList { - k.SetMinters(ctx, elem) - } - - if genState.Pauser != nil { - k.SetPauser(ctx, *genState.Pauser) - } - - if genState.Blacklister != nil { - k.SetBlacklister(ctx, *genState.Blacklister) - } - - if genState.Owner != nil { - k.SetOwner(ctx, *genState.Owner) - } - - for _, elem := range genState.MinterControllerList { - k.SetMinterController(ctx, elem) - } - - if genState.MintingDenom != nil { - _, found := bankKeeper.GetDenomMetaData(ctx, genState.MintingDenom.Denom) - if !found { - panic(sdkerrors.Wrapf(types.ErrDenomNotRegistered, "fiattokenfactory minting denom %s is not registered in bank module denom_metadata", genState.MintingDenom.Denom)) - } - k.SetMintingDenom(ctx, *genState.MintingDenom) - } - // this line is used by starport scaffolding # genesis/module/init - k.SetParams(ctx, genState.Params) -} - -// ExportGenesis returns the module's exported GenesisState -func ExportGenesis(ctx sdk.Context, k *keeper.Keeper) *types.GenesisState { - genesis := types.DefaultGenesis() - genesis.Params = k.GetParams(ctx) - - genesis.BlacklistedList = k.GetAllBlacklisted(ctx) - - paused := k.GetPaused(ctx) - genesis.Paused = &paused - - masterMinter, found := k.GetMasterMinter(ctx) - if found { - genesis.MasterMinter = &masterMinter - } - genesis.MintersList = k.GetAllMinters(ctx) - - pauser, found := k.GetPauser(ctx) - if found { - genesis.Pauser = &pauser - } - - blacklister, found := k.GetBlacklister(ctx) - if found { - genesis.Blacklister = &blacklister - } - - owner, found := k.GetOwner(ctx) - if found { - genesis.Owner = &owner - } - genesis.MinterControllerList = k.GetAllMinterControllers(ctx) - - mintingDenom := k.GetMintingDenom(ctx) - genesis.MintingDenom = &mintingDenom - // this line is used by starport scaffolding # genesis/module/export - - return genesis -} diff --git a/x/fiattokenfactory/genesis_test.go b/x/fiattokenfactory/genesis_test.go deleted file mode 100644 index def39a62..00000000 --- a/x/fiattokenfactory/genesis_test.go +++ /dev/null @@ -1,81 +0,0 @@ -package fiattokenfactory_test - -import ( - "testing" - - keepertest "github.com/strangelove-ventures/noble/testutil/keeper" - "github.com/strangelove-ventures/noble/testutil/nullify" - fiattokenfactory "github.com/strangelove-ventures/noble/x/fiattokenfactory" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" - - "github.com/stretchr/testify/require" -) - -func TestGenesis(t *testing.T) { - genesisState := types.GenesisState{ - Params: types.DefaultParams(), - - BlacklistedList: []types.Blacklisted{ - { - AddressBz: []byte("0"), - }, - { - AddressBz: []byte("1"), - }, - }, - Paused: &types.Paused{ - Paused: true, - }, - MasterMinter: &types.MasterMinter{ - Address: "79", - }, - MintersList: []types.Minters{ - { - Address: "0", - }, - { - Address: "1", - }, - }, - Pauser: &types.Pauser{ - Address: "96", - }, - Blacklister: &types.Blacklister{ - Address: "20", - }, - Owner: &types.Owner{ - Address: "98", - }, - MinterControllerList: []types.MinterController{ - { - Minter: "0", - }, - { - Minter: "1", - }, - }, - MintingDenom: &types.MintingDenom{ - Denom: "65", - }, - // this line is used by starport scaffolding # genesis/test/state - } - - k, ctx := keepertest.FiatTokenfactoryKeeper(t) - fiattokenfactory.InitGenesis(ctx, k, keepertest.MockBankKeeper{}, genesisState) - got := fiattokenfactory.ExportGenesis(ctx, k) - require.NotNil(t, got) - - nullify.Fill(&genesisState) - nullify.Fill(got) - - require.ElementsMatch(t, genesisState.BlacklistedList, got.BlacklistedList) - require.Equal(t, genesisState.Paused, got.Paused) - require.Equal(t, genesisState.MasterMinter, got.MasterMinter) - require.ElementsMatch(t, genesisState.MintersList, got.MintersList) - require.Equal(t, genesisState.Pauser, got.Pauser) - require.Equal(t, genesisState.Blacklister, got.Blacklister) - require.Equal(t, genesisState.Owner, got.Owner) - require.ElementsMatch(t, genesisState.MinterControllerList, got.MinterControllerList) - require.Equal(t, genesisState.MintingDenom, got.MintingDenom) - // this line is used by starport scaffolding # genesis/test/assert -} diff --git a/x/fiattokenfactory/keeper/blacklisted.go b/x/fiattokenfactory/keeper/blacklisted.go deleted file mode 100644 index 8ff18c40..00000000 --- a/x/fiattokenfactory/keeper/blacklisted.go +++ /dev/null @@ -1,49 +0,0 @@ -package keeper - -import ( - "github.com/cosmos/cosmos-sdk/store/prefix" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" -) - -// SetBlacklisted set a specific blacklisted in the store from its index -func (k Keeper) SetBlacklisted(ctx sdk.Context, blacklisted types.Blacklisted) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.BlacklistedKeyPrefix)) - b := k.cdc.MustMarshal(&blacklisted) - store.Set(types.BlacklistedKey(blacklisted.AddressBz), b) -} - -// GetBlacklisted returns a blacklisted from its index -func (k Keeper) GetBlacklisted(ctx sdk.Context, addressBz []byte) (val types.Blacklisted, found bool) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.BlacklistedKeyPrefix)) - - b := store.Get(types.BlacklistedKey(addressBz)) - if b == nil { - return val, false - } - - k.cdc.MustUnmarshal(b, &val) - return val, true -} - -// RemoveBlacklisted removes a blacklisted from the store -func (k Keeper) RemoveBlacklisted(ctx sdk.Context, addressBz []byte) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.BlacklistedKeyPrefix)) - store.Delete(types.BlacklistedKey(addressBz)) -} - -// GetAllBlacklisted returns all blacklisted -func (k Keeper) GetAllBlacklisted(ctx sdk.Context) (list []types.Blacklisted) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.BlacklistedKeyPrefix)) - iterator := sdk.KVStorePrefixIterator(store, []byte{}) - - defer iterator.Close() - - for ; iterator.Valid(); iterator.Next() { - var val types.Blacklisted - k.cdc.MustUnmarshal(iterator.Value(), &val) - list = append(list, val) - } - - return -} diff --git a/x/fiattokenfactory/keeper/blacklisted_test.go b/x/fiattokenfactory/keeper/blacklisted_test.go deleted file mode 100644 index d4d4491a..00000000 --- a/x/fiattokenfactory/keeper/blacklisted_test.go +++ /dev/null @@ -1,76 +0,0 @@ -package keeper_test - -import ( - "strconv" - "testing" - - sdk "github.com/cosmos/cosmos-sdk/types" - keepertest "github.com/strangelove-ventures/noble/testutil/keeper" - "github.com/strangelove-ventures/noble/testutil/nullify" - "github.com/strangelove-ventures/noble/testutil/sample" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/keeper" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" - "github.com/stretchr/testify/require" -) - -// Prevent strconv unused error -var _ = strconv.IntSize - -type blacklistedWrapper struct { - address string - bl types.Blacklisted -} - -func createNBlacklisted(keeper *keeper.Keeper, ctx sdk.Context, n int) []blacklistedWrapper { - items := make([]blacklistedWrapper, n) - for i := range items { - acc := sample.TestAccount() - items[i].address = acc.Address - items[i].bl.AddressBz = acc.AddressBz - - keeper.SetBlacklisted(ctx, items[i].bl) - } - return items -} - -func TestBlacklistedGet(t *testing.T) { - keeper, ctx := keepertest.FiatTokenfactoryKeeper(t) - items := createNBlacklisted(keeper, ctx, 10) - for _, item := range items { - rst, found := keeper.GetBlacklisted(ctx, - item.bl.AddressBz, - ) - require.True(t, found) - require.Equal(t, - nullify.Fill(&item.bl), - nullify.Fill(&rst), - ) - } -} - -func TestBlacklistedRemove(t *testing.T) { - keeper, ctx := keepertest.FiatTokenfactoryKeeper(t) - items := createNBlacklisted(keeper, ctx, 10) - for _, item := range items { - keeper.RemoveBlacklisted(ctx, - item.bl.AddressBz, - ) - _, found := keeper.GetBlacklisted(ctx, - item.bl.AddressBz, - ) - require.False(t, found) - } -} - -func TestBlacklistedGetAll(t *testing.T) { - keeper, ctx := keepertest.FiatTokenfactoryKeeper(t) - items := createNBlacklisted(keeper, ctx, 10) - blacklisted := make([]types.Blacklisted, len(items)) - for i, item := range items { - blacklisted[i] = item.bl - } - require.ElementsMatch(t, - nullify.Fill(blacklisted), - nullify.Fill(keeper.GetAllBlacklisted(ctx)), - ) -} diff --git a/x/fiattokenfactory/keeper/blacklister.go b/x/fiattokenfactory/keeper/blacklister.go deleted file mode 100644 index 93469347..00000000 --- a/x/fiattokenfactory/keeper/blacklister.go +++ /dev/null @@ -1,27 +0,0 @@ -package keeper - -import ( - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" - - sdk "github.com/cosmos/cosmos-sdk/types" -) - -// SetBlacklister set blacklister in the store -func (k Keeper) SetBlacklister(ctx sdk.Context, blacklister types.Blacklister) { - store := ctx.KVStore(k.storeKey) - b := k.cdc.MustMarshal(&blacklister) - store.Set(types.KeyPrefix(types.BlacklisterKey), b) -} - -// GetBlacklister returns blacklister -func (k Keeper) GetBlacklister(ctx sdk.Context) (val types.Blacklister, found bool) { - store := ctx.KVStore(k.storeKey) - - b := store.Get(types.KeyPrefix(types.BlacklisterKey)) - if b == nil { - return val, false - } - - k.cdc.MustUnmarshal(b, &val) - return val, true -} diff --git a/x/fiattokenfactory/keeper/blacklister_test.go b/x/fiattokenfactory/keeper/blacklister_test.go deleted file mode 100644 index 1e0b671b..00000000 --- a/x/fiattokenfactory/keeper/blacklister_test.go +++ /dev/null @@ -1,30 +0,0 @@ -package keeper_test - -import ( - "testing" - - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/stretchr/testify/require" - - keepertest "github.com/strangelove-ventures/noble/testutil/keeper" - "github.com/strangelove-ventures/noble/testutil/nullify" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/keeper" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" -) - -func createTestBlacklister(keeper *keeper.Keeper, ctx sdk.Context) types.Blacklister { - item := types.Blacklister{} - keeper.SetBlacklister(ctx, item) - return item -} - -func TestBlacklisterGet(t *testing.T) { - keeper, ctx := keepertest.FiatTokenfactoryKeeper(t) - item := createTestBlacklister(keeper, ctx) - rst, found := keeper.GetBlacklister(ctx) - require.True(t, found) - require.Equal(t, - nullify.Fill(&item), - nullify.Fill(&rst), - ) -} diff --git a/x/fiattokenfactory/keeper/grpc_query.go b/x/fiattokenfactory/keeper/grpc_query.go deleted file mode 100644 index fb73d257..00000000 --- a/x/fiattokenfactory/keeper/grpc_query.go +++ /dev/null @@ -1,7 +0,0 @@ -package keeper - -import ( - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" -) - -var _ types.QueryServer = Keeper{} diff --git a/x/fiattokenfactory/keeper/grpc_query_blacklisted.go b/x/fiattokenfactory/keeper/grpc_query_blacklisted.go deleted file mode 100644 index cd77768a..00000000 --- a/x/fiattokenfactory/keeper/grpc_query_blacklisted.go +++ /dev/null @@ -1,60 +0,0 @@ -package keeper - -import ( - "context" - - "github.com/cosmos/cosmos-sdk/store/prefix" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/bech32" - "github.com/cosmos/cosmos-sdk/types/query" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/status" -) - -func (k Keeper) BlacklistedAll(c context.Context, req *types.QueryAllBlacklistedRequest) (*types.QueryAllBlacklistedResponse, error) { - if req == nil { - return nil, status.Error(codes.InvalidArgument, "invalid request") - } - - var blacklisteds []types.Blacklisted - ctx := sdk.UnwrapSDKContext(c) - - store := ctx.KVStore(k.storeKey) - blacklistedStore := prefix.NewStore(store, types.KeyPrefix(types.BlacklistedKeyPrefix)) - - pageRes, err := query.Paginate(blacklistedStore, req.Pagination, func(key []byte, value []byte) error { - var blacklisted types.Blacklisted - if err := k.cdc.Unmarshal(value, &blacklisted); err != nil { - return err - } - - blacklisteds = append(blacklisteds, blacklisted) - return nil - }) - - if err != nil { - return nil, status.Error(codes.Internal, err.Error()) - } - - return &types.QueryAllBlacklistedResponse{Blacklisted: blacklisteds, Pagination: pageRes}, nil -} - -func (k Keeper) Blacklisted(c context.Context, req *types.QueryGetBlacklistedRequest) (*types.QueryGetBlacklistedResponse, error) { - if req == nil { - return nil, status.Error(codes.InvalidArgument, "invalid request") - } - ctx := sdk.UnwrapSDKContext(c) - - _, addressBz, err := bech32.DecodeAndConvert(req.Address) - if err != nil { - return nil, err - } - - val, found := k.GetBlacklisted(ctx, addressBz) - if !found { - return nil, status.Error(codes.NotFound, "not found") - } - - return &types.QueryGetBlacklistedResponse{Blacklisted: val}, nil -} diff --git a/x/fiattokenfactory/keeper/grpc_query_blacklisted_test.go b/x/fiattokenfactory/keeper/grpc_query_blacklisted_test.go deleted file mode 100644 index 09d43032..00000000 --- a/x/fiattokenfactory/keeper/grpc_query_blacklisted_test.go +++ /dev/null @@ -1,131 +0,0 @@ -package keeper_test - -import ( - "strconv" - "testing" - - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/query" - "github.com/strangelove-ventures/noble/testutil/sample" - "github.com/stretchr/testify/require" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/status" - - keepertest "github.com/strangelove-ventures/noble/testutil/keeper" - "github.com/strangelove-ventures/noble/testutil/nullify" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" -) - -// Prevent strconv unused error -var _ = strconv.IntSize - -func TestBlacklistedQuerySingle(t *testing.T) { - keeper, ctx := keepertest.FiatTokenfactoryKeeper(t) - wctx := sdk.WrapSDKContext(ctx) - msgs := createNBlacklisted(keeper, ctx, 2) - for _, tc := range []struct { - desc string - request *types.QueryGetBlacklistedRequest - response *types.QueryGetBlacklistedResponse - err error - }{ - { - desc: "First", - request: &types.QueryGetBlacklistedRequest{ - Address: msgs[0].address, - }, - response: &types.QueryGetBlacklistedResponse{Blacklisted: msgs[0].bl}, - }, - { - desc: "Second", - request: &types.QueryGetBlacklistedRequest{ - Address: msgs[1].address, - }, - response: &types.QueryGetBlacklistedResponse{Blacklisted: msgs[1].bl}, - }, - { - desc: "KeyNotFound", - request: &types.QueryGetBlacklistedRequest{ - Address: sample.AccAddress(), - }, - err: status.Error(codes.NotFound, "not found"), - }, - { - desc: "InvalidRequest", - err: status.Error(codes.InvalidArgument, "invalid request"), - }, - } { - t.Run(tc.desc, func(t *testing.T) { - response, err := keeper.Blacklisted(wctx, tc.request) - if tc.err != nil { - require.ErrorIs(t, err, tc.err) - } else { - require.NoError(t, err) - require.Equal(t, - nullify.Fill(tc.response), - nullify.Fill(response), - ) - } - }) - } -} - -func TestBlacklistedQueryPaginated(t *testing.T) { - keeper, ctx := keepertest.FiatTokenfactoryKeeper(t) - wctx := sdk.WrapSDKContext(ctx) - msgs := createNBlacklisted(keeper, ctx, 5) - blacklisted := make([]types.Blacklisted, len(msgs)) - for i, msg := range msgs { - blacklisted[i] = msg.bl - } - - request := func(next []byte, offset, limit uint64, total bool) *types.QueryAllBlacklistedRequest { - return &types.QueryAllBlacklistedRequest{ - Pagination: &query.PageRequest{ - Key: next, - Offset: offset, - Limit: limit, - CountTotal: total, - }, - } - } - t.Run("ByOffset", func(t *testing.T) { - step := 2 - for i := 0; i < len(blacklisted); i += step { - resp, err := keeper.BlacklistedAll(wctx, request(nil, uint64(i), uint64(step), false)) - require.NoError(t, err) - require.LessOrEqual(t, len(resp.Blacklisted), step) - require.Subset(t, - nullify.Fill(blacklisted), - nullify.Fill(resp.Blacklisted), - ) - } - }) - t.Run("ByKey", func(t *testing.T) { - step := 2 - var next []byte - for i := 0; i < len(blacklisted); i += step { - resp, err := keeper.BlacklistedAll(wctx, request(next, 0, uint64(step), false)) - require.NoError(t, err) - require.LessOrEqual(t, len(resp.Blacklisted), step) - require.Subset(t, - nullify.Fill(blacklisted), - nullify.Fill(resp.Blacklisted), - ) - next = resp.Pagination.NextKey - } - }) - t.Run("Total", func(t *testing.T) { - resp, err := keeper.BlacklistedAll(wctx, request(nil, 0, 0, true)) - require.NoError(t, err) - require.Equal(t, len(blacklisted), int(resp.Pagination.Total)) - require.ElementsMatch(t, - nullify.Fill(blacklisted), - nullify.Fill(resp.Blacklisted), - ) - }) - t.Run("InvalidRequest", func(t *testing.T) { - _, err := keeper.BlacklistedAll(wctx, nil) - require.ErrorIs(t, err, status.Error(codes.InvalidArgument, "invalid request")) - }) -} diff --git a/x/fiattokenfactory/keeper/grpc_query_blacklister.go b/x/fiattokenfactory/keeper/grpc_query_blacklister.go deleted file mode 100644 index 18b4ad49..00000000 --- a/x/fiattokenfactory/keeper/grpc_query_blacklister.go +++ /dev/null @@ -1,24 +0,0 @@ -package keeper - -import ( - "context" - - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/status" -) - -func (k Keeper) Blacklister(c context.Context, req *types.QueryGetBlacklisterRequest) (*types.QueryGetBlacklisterResponse, error) { - if req == nil { - return nil, status.Error(codes.InvalidArgument, "invalid request") - } - ctx := sdk.UnwrapSDKContext(c) - - val, found := k.GetBlacklister(ctx) - if !found { - return nil, status.Error(codes.NotFound, "not found") - } - - return &types.QueryGetBlacklisterResponse{Blacklister: val}, nil -} diff --git a/x/fiattokenfactory/keeper/grpc_query_blacklister_test.go b/x/fiattokenfactory/keeper/grpc_query_blacklister_test.go deleted file mode 100644 index cdd438f4..00000000 --- a/x/fiattokenfactory/keeper/grpc_query_blacklister_test.go +++ /dev/null @@ -1,49 +0,0 @@ -package keeper_test - -import ( - "testing" - - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/stretchr/testify/require" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/status" - - keepertest "github.com/strangelove-ventures/noble/testutil/keeper" - "github.com/strangelove-ventures/noble/testutil/nullify" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" -) - -func TestBlacklisterQuery(t *testing.T) { - keeper, ctx := keepertest.FiatTokenfactoryKeeper(t) - wctx := sdk.WrapSDKContext(ctx) - item := createTestBlacklister(keeper, ctx) - for _, tc := range []struct { - desc string - request *types.QueryGetBlacklisterRequest - response *types.QueryGetBlacklisterResponse - err error - }{ - { - desc: "First", - request: &types.QueryGetBlacklisterRequest{}, - response: &types.QueryGetBlacklisterResponse{Blacklister: item}, - }, - { - desc: "InvalidRequest", - err: status.Error(codes.InvalidArgument, "invalid request"), - }, - } { - t.Run(tc.desc, func(t *testing.T) { - response, err := keeper.Blacklister(wctx, tc.request) - if tc.err != nil { - require.ErrorIs(t, err, tc.err) - } else { - require.NoError(t, err) - require.Equal(t, - nullify.Fill(tc.response), - nullify.Fill(response), - ) - } - }) - } -} diff --git a/x/fiattokenfactory/keeper/grpc_query_master_minter.go b/x/fiattokenfactory/keeper/grpc_query_master_minter.go deleted file mode 100644 index 3c120c6f..00000000 --- a/x/fiattokenfactory/keeper/grpc_query_master_minter.go +++ /dev/null @@ -1,24 +0,0 @@ -package keeper - -import ( - "context" - - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/status" -) - -func (k Keeper) MasterMinter(c context.Context, req *types.QueryGetMasterMinterRequest) (*types.QueryGetMasterMinterResponse, error) { - if req == nil { - return nil, status.Error(codes.InvalidArgument, "invalid request") - } - ctx := sdk.UnwrapSDKContext(c) - - val, found := k.GetMasterMinter(ctx) - if !found { - return nil, status.Error(codes.NotFound, "not found") - } - - return &types.QueryGetMasterMinterResponse{MasterMinter: val}, nil -} diff --git a/x/fiattokenfactory/keeper/grpc_query_master_minter_test.go b/x/fiattokenfactory/keeper/grpc_query_master_minter_test.go deleted file mode 100644 index 910329b5..00000000 --- a/x/fiattokenfactory/keeper/grpc_query_master_minter_test.go +++ /dev/null @@ -1,49 +0,0 @@ -package keeper_test - -import ( - "testing" - - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/stretchr/testify/require" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/status" - - keepertest "github.com/strangelove-ventures/noble/testutil/keeper" - "github.com/strangelove-ventures/noble/testutil/nullify" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" -) - -func TestMasterMinterQuery(t *testing.T) { - keeper, ctx := keepertest.FiatTokenfactoryKeeper(t) - wctx := sdk.WrapSDKContext(ctx) - item := createTestMasterMinter(keeper, ctx) - for _, tc := range []struct { - desc string - request *types.QueryGetMasterMinterRequest - response *types.QueryGetMasterMinterResponse - err error - }{ - { - desc: "First", - request: &types.QueryGetMasterMinterRequest{}, - response: &types.QueryGetMasterMinterResponse{MasterMinter: item}, - }, - { - desc: "InvalidRequest", - err: status.Error(codes.InvalidArgument, "invalid request"), - }, - } { - t.Run(tc.desc, func(t *testing.T) { - response, err := keeper.MasterMinter(wctx, tc.request) - if tc.err != nil { - require.ErrorIs(t, err, tc.err) - } else { - require.NoError(t, err) - require.Equal(t, - nullify.Fill(tc.response), - nullify.Fill(response), - ) - } - }) - } -} diff --git a/x/fiattokenfactory/keeper/grpc_query_minter_controller.go b/x/fiattokenfactory/keeper/grpc_query_minter_controller.go deleted file mode 100644 index ae5d0c6b..00000000 --- a/x/fiattokenfactory/keeper/grpc_query_minter_controller.go +++ /dev/null @@ -1,58 +0,0 @@ -package keeper - -import ( - "context" - - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" - - "github.com/cosmos/cosmos-sdk/store/prefix" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/query" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/status" -) - -func (k Keeper) MinterControllerAll(c context.Context, req *types.QueryAllMinterControllerRequest) (*types.QueryAllMinterControllerResponse, error) { - if req == nil { - return nil, status.Error(codes.InvalidArgument, "invalid request") - } - - var minterControllers []types.MinterController - ctx := sdk.UnwrapSDKContext(c) - - store := ctx.KVStore(k.storeKey) - minterControllerStore := prefix.NewStore(store, types.KeyPrefix(types.MinterControllerKeyPrefix)) - - pageRes, err := query.Paginate(minterControllerStore, req.Pagination, func(key []byte, value []byte) error { - var minterController types.MinterController - if err := k.cdc.Unmarshal(value, &minterController); err != nil { - return err - } - - minterControllers = append(minterControllers, minterController) - return nil - }) - - if err != nil { - return nil, status.Error(codes.Internal, err.Error()) - } - - return &types.QueryAllMinterControllerResponse{MinterController: minterControllers, Pagination: pageRes}, nil -} - -func (k Keeper) MinterController(c context.Context, req *types.QueryGetMinterControllerRequest) (*types.QueryGetMinterControllerResponse, error) { - if req == nil { - return nil, status.Error(codes.InvalidArgument, "invalid request") - } - ctx := sdk.UnwrapSDKContext(c) - - val, found := k.GetMinterController( - ctx, - req.ControllerAddress, - ) - if !found { - return nil, status.Error(codes.NotFound, "not found") - } - - return &types.QueryGetMinterControllerResponse{MinterController: val}, nil -} diff --git a/x/fiattokenfactory/keeper/grpc_query_minter_controller_test.go b/x/fiattokenfactory/keeper/grpc_query_minter_controller_test.go deleted file mode 100644 index 9568ac77..00000000 --- a/x/fiattokenfactory/keeper/grpc_query_minter_controller_test.go +++ /dev/null @@ -1,126 +0,0 @@ -package keeper_test - -import ( - "strconv" - "testing" - - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/query" - "github.com/stretchr/testify/require" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/status" - - keepertest "github.com/strangelove-ventures/noble/testutil/keeper" - "github.com/strangelove-ventures/noble/testutil/nullify" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" -) - -// Prevent strconv unused error -var _ = strconv.IntSize - -func TestMinterControllerQuerySingle(t *testing.T) { - keeper, ctx := keepertest.FiatTokenfactoryKeeper(t) - wctx := sdk.WrapSDKContext(ctx) - msgs := createNMinterController(keeper, ctx, 2) - for _, tc := range []struct { - desc string - request *types.QueryGetMinterControllerRequest - response *types.QueryGetMinterControllerResponse - err error - }{ - { - desc: "First", - request: &types.QueryGetMinterControllerRequest{ - ControllerAddress: msgs[0].Controller, - }, - response: &types.QueryGetMinterControllerResponse{MinterController: msgs[0]}, - }, - { - desc: "Second", - request: &types.QueryGetMinterControllerRequest{ - ControllerAddress: msgs[1].Controller, - }, - response: &types.QueryGetMinterControllerResponse{MinterController: msgs[1]}, - }, - { - desc: "KeyNotFound", - request: &types.QueryGetMinterControllerRequest{ - ControllerAddress: strconv.Itoa(100000), - }, - err: status.Error(codes.NotFound, "not found"), - }, - { - desc: "InvalidRequest", - err: status.Error(codes.InvalidArgument, "invalid request"), - }, - } { - t.Run(tc.desc, func(t *testing.T) { - response, err := keeper.MinterController(wctx, tc.request) - if tc.err != nil { - require.ErrorIs(t, err, tc.err) - } else { - require.NoError(t, err) - require.Equal(t, - nullify.Fill(tc.response), - nullify.Fill(response), - ) - } - }) - } -} - -func TestMinterControllerQueryPaginated(t *testing.T) { - keeper, ctx := keepertest.FiatTokenfactoryKeeper(t) - wctx := sdk.WrapSDKContext(ctx) - msgs := createNMinterController(keeper, ctx, 5) - - request := func(next []byte, offset, limit uint64, total bool) *types.QueryAllMinterControllerRequest { - return &types.QueryAllMinterControllerRequest{ - Pagination: &query.PageRequest{ - Key: next, - Offset: offset, - Limit: limit, - CountTotal: total, - }, - } - } - t.Run("ByOffset", func(t *testing.T) { - step := 2 - for i := 0; i < len(msgs); i += step { - resp, err := keeper.MinterControllerAll(wctx, request(nil, uint64(i), uint64(step), false)) - require.NoError(t, err) - require.LessOrEqual(t, len(resp.MinterController), step) - require.Subset(t, - nullify.Fill(msgs), - nullify.Fill(resp.MinterController), - ) - } - }) - t.Run("ByKey", func(t *testing.T) { - step := 2 - var next []byte - for i := 0; i < len(msgs); i += step { - resp, err := keeper.MinterControllerAll(wctx, request(next, 0, uint64(step), false)) - require.NoError(t, err) - require.LessOrEqual(t, len(resp.MinterController), step) - require.Subset(t, - nullify.Fill(msgs), - nullify.Fill(resp.MinterController), - ) - next = resp.Pagination.NextKey - } - }) - t.Run("Total", func(t *testing.T) { - resp, err := keeper.MinterControllerAll(wctx, request(nil, 0, 0, true)) - require.NoError(t, err) - require.Equal(t, len(msgs), int(resp.Pagination.Total)) - require.ElementsMatch(t, - nullify.Fill(msgs), - nullify.Fill(resp.MinterController), - ) - }) - t.Run("InvalidRequest", func(t *testing.T) { - _, err := keeper.MinterControllerAll(wctx, nil) - require.ErrorIs(t, err, status.Error(codes.InvalidArgument, "invalid request")) - }) -} diff --git a/x/fiattokenfactory/keeper/grpc_query_minters.go b/x/fiattokenfactory/keeper/grpc_query_minters.go deleted file mode 100644 index 51265fa1..00000000 --- a/x/fiattokenfactory/keeper/grpc_query_minters.go +++ /dev/null @@ -1,57 +0,0 @@ -package keeper - -import ( - "context" - - "github.com/cosmos/cosmos-sdk/store/prefix" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/query" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/status" -) - -func (k Keeper) MintersAll(c context.Context, req *types.QueryAllMintersRequest) (*types.QueryAllMintersResponse, error) { - if req == nil { - return nil, status.Error(codes.InvalidArgument, "invalid request") - } - - var minters []types.Minters - ctx := sdk.UnwrapSDKContext(c) - - store := ctx.KVStore(k.storeKey) - mintersStore := prefix.NewStore(store, types.KeyPrefix(types.MintersKeyPrefix)) - - pageRes, err := query.Paginate(mintersStore, req.Pagination, func(key []byte, value []byte) error { - var minter types.Minters - if err := k.cdc.Unmarshal(value, &minter); err != nil { - return err - } - - minters = append(minters, minter) - return nil - }) - - if err != nil { - return nil, status.Error(codes.Internal, err.Error()) - } - - return &types.QueryAllMintersResponse{Minters: minters, Pagination: pageRes}, nil -} - -func (k Keeper) Minters(c context.Context, req *types.QueryGetMintersRequest) (*types.QueryGetMintersResponse, error) { - if req == nil { - return nil, status.Error(codes.InvalidArgument, "invalid request") - } - ctx := sdk.UnwrapSDKContext(c) - - val, found := k.GetMinters( - ctx, - req.Address, - ) - if !found { - return nil, status.Error(codes.NotFound, "not found") - } - - return &types.QueryGetMintersResponse{Minters: val}, nil -} diff --git a/x/fiattokenfactory/keeper/grpc_query_minters_test.go b/x/fiattokenfactory/keeper/grpc_query_minters_test.go deleted file mode 100644 index d6829401..00000000 --- a/x/fiattokenfactory/keeper/grpc_query_minters_test.go +++ /dev/null @@ -1,126 +0,0 @@ -package keeper_test - -import ( - "strconv" - "testing" - - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/query" - "github.com/stretchr/testify/require" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/status" - - keepertest "github.com/strangelove-ventures/noble/testutil/keeper" - "github.com/strangelove-ventures/noble/testutil/nullify" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" -) - -// Prevent strconv unused error -var _ = strconv.IntSize - -func TestMintersQuerySingle(t *testing.T) { - keeper, ctx := keepertest.FiatTokenfactoryKeeper(t) - wctx := sdk.WrapSDKContext(ctx) - msgs := createNMinters(keeper, ctx, 2) - for _, tc := range []struct { - desc string - request *types.QueryGetMintersRequest - response *types.QueryGetMintersResponse - err error - }{ - { - desc: "First", - request: &types.QueryGetMintersRequest{ - Address: msgs[0].Address, - }, - response: &types.QueryGetMintersResponse{Minters: msgs[0]}, - }, - { - desc: "Second", - request: &types.QueryGetMintersRequest{ - Address: msgs[1].Address, - }, - response: &types.QueryGetMintersResponse{Minters: msgs[1]}, - }, - { - desc: "KeyNotFound", - request: &types.QueryGetMintersRequest{ - Address: strconv.Itoa(100000), - }, - err: status.Error(codes.NotFound, "not found"), - }, - { - desc: "InvalidRequest", - err: status.Error(codes.InvalidArgument, "invalid request"), - }, - } { - t.Run(tc.desc, func(t *testing.T) { - response, err := keeper.Minters(wctx, tc.request) - if tc.err != nil { - require.ErrorIs(t, err, tc.err) - } else { - require.NoError(t, err) - require.Equal(t, - nullify.Fill(tc.response), - nullify.Fill(response), - ) - } - }) - } -} - -func TestMintersQueryPaginated(t *testing.T) { - keeper, ctx := keepertest.FiatTokenfactoryKeeper(t) - wctx := sdk.WrapSDKContext(ctx) - msgs := createNMinters(keeper, ctx, 5) - - request := func(next []byte, offset, limit uint64, total bool) *types.QueryAllMintersRequest { - return &types.QueryAllMintersRequest{ - Pagination: &query.PageRequest{ - Key: next, - Offset: offset, - Limit: limit, - CountTotal: total, - }, - } - } - t.Run("ByOffset", func(t *testing.T) { - step := 2 - for i := 0; i < len(msgs); i += step { - resp, err := keeper.MintersAll(wctx, request(nil, uint64(i), uint64(step), false)) - require.NoError(t, err) - require.LessOrEqual(t, len(resp.Minters), step) - require.Subset(t, - nullify.Fill(msgs), - nullify.Fill(resp.Minters), - ) - } - }) - t.Run("ByKey", func(t *testing.T) { - step := 2 - var next []byte - for i := 0; i < len(msgs); i += step { - resp, err := keeper.MintersAll(wctx, request(next, 0, uint64(step), false)) - require.NoError(t, err) - require.LessOrEqual(t, len(resp.Minters), step) - require.Subset(t, - nullify.Fill(msgs), - nullify.Fill(resp.Minters), - ) - next = resp.Pagination.NextKey - } - }) - t.Run("Total", func(t *testing.T) { - resp, err := keeper.MintersAll(wctx, request(nil, 0, 0, true)) - require.NoError(t, err) - require.Equal(t, len(msgs), int(resp.Pagination.Total)) - require.ElementsMatch(t, - nullify.Fill(msgs), - nullify.Fill(resp.Minters), - ) - }) - t.Run("InvalidRequest", func(t *testing.T) { - _, err := keeper.MintersAll(wctx, nil) - require.ErrorIs(t, err, status.Error(codes.InvalidArgument, "invalid request")) - }) -} diff --git a/x/fiattokenfactory/keeper/grpc_query_minting_denom.go b/x/fiattokenfactory/keeper/grpc_query_minting_denom.go deleted file mode 100644 index 878ddaf0..00000000 --- a/x/fiattokenfactory/keeper/grpc_query_minting_denom.go +++ /dev/null @@ -1,22 +0,0 @@ -package keeper - -import ( - "context" - - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" - - sdk "github.com/cosmos/cosmos-sdk/types" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/status" -) - -func (k Keeper) MintingDenom(c context.Context, req *types.QueryGetMintingDenomRequest) (*types.QueryGetMintingDenomResponse, error) { - if req == nil { - return nil, status.Error(codes.InvalidArgument, "invalid request") - } - ctx := sdk.UnwrapSDKContext(c) - - val := k.GetMintingDenom(ctx) - - return &types.QueryGetMintingDenomResponse{MintingDenom: val}, nil -} diff --git a/x/fiattokenfactory/keeper/grpc_query_minting_denom_test.go b/x/fiattokenfactory/keeper/grpc_query_minting_denom_test.go deleted file mode 100644 index afb16ab3..00000000 --- a/x/fiattokenfactory/keeper/grpc_query_minting_denom_test.go +++ /dev/null @@ -1,49 +0,0 @@ -package keeper_test - -import ( - "testing" - - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/stretchr/testify/require" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/status" - - keepertest "github.com/strangelove-ventures/noble/testutil/keeper" - "github.com/strangelove-ventures/noble/testutil/nullify" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" -) - -func TestMintingDenomQuery(t *testing.T) { - keeper, ctx := keepertest.FiatTokenfactoryKeeper(t) - wctx := sdk.WrapSDKContext(ctx) - item := createTestMintingDenom(keeper, ctx) - for _, tc := range []struct { - desc string - request *types.QueryGetMintingDenomRequest - response *types.QueryGetMintingDenomResponse - err error - }{ - { - desc: "First", - request: &types.QueryGetMintingDenomRequest{}, - response: &types.QueryGetMintingDenomResponse{MintingDenom: item}, - }, - { - desc: "InvalidRequest", - err: status.Error(codes.InvalidArgument, "invalid request"), - }, - } { - t.Run(tc.desc, func(t *testing.T) { - response, err := keeper.MintingDenom(wctx, tc.request) - if tc.err != nil { - require.ErrorIs(t, err, tc.err) - } else { - require.NoError(t, err) - require.Equal(t, - nullify.Fill(tc.response), - nullify.Fill(response), - ) - } - }) - } -} diff --git a/x/fiattokenfactory/keeper/grpc_query_owner.go b/x/fiattokenfactory/keeper/grpc_query_owner.go deleted file mode 100644 index dad5af87..00000000 --- a/x/fiattokenfactory/keeper/grpc_query_owner.go +++ /dev/null @@ -1,24 +0,0 @@ -package keeper - -import ( - "context" - - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/status" -) - -func (k Keeper) Owner(c context.Context, req *types.QueryGetOwnerRequest) (*types.QueryGetOwnerResponse, error) { - if req == nil { - return nil, status.Error(codes.InvalidArgument, "invalid request") - } - ctx := sdk.UnwrapSDKContext(c) - - val, found := k.GetOwner(ctx) - if !found { - return nil, status.Error(codes.NotFound, "not found") - } - - return &types.QueryGetOwnerResponse{Owner: val}, nil -} diff --git a/x/fiattokenfactory/keeper/grpc_query_owner_test.go b/x/fiattokenfactory/keeper/grpc_query_owner_test.go deleted file mode 100644 index b5f15a7d..00000000 --- a/x/fiattokenfactory/keeper/grpc_query_owner_test.go +++ /dev/null @@ -1,50 +0,0 @@ -package keeper_test - -import ( - "testing" - - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/stretchr/testify/require" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/status" - - keepertest "github.com/strangelove-ventures/noble/testutil/keeper" - "github.com/strangelove-ventures/noble/testutil/nullify" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" -) - -func TestOwnerQuery(t *testing.T) { - keeper, ctx := keepertest.FiatTokenfactoryKeeper(t) - wctx := sdk.WrapSDKContext(ctx) - owner := types.Owner{Address: "test"} - keeper.SetOwner(ctx, owner) - for _, tc := range []struct { - desc string - request *types.QueryGetOwnerRequest - response *types.QueryGetOwnerResponse - err error - }{ - { - desc: "First", - request: &types.QueryGetOwnerRequest{}, - response: &types.QueryGetOwnerResponse{Owner: owner}, - }, - { - desc: "InvalidRequest", - err: status.Error(codes.InvalidArgument, "invalid request"), - }, - } { - t.Run(tc.desc, func(t *testing.T) { - response, err := keeper.Owner(wctx, tc.request) - if tc.err != nil { - require.ErrorIs(t, err, tc.err) - } else { - require.NoError(t, err) - require.Equal(t, - nullify.Fill(tc.response), - nullify.Fill(response), - ) - } - }) - } -} diff --git a/x/fiattokenfactory/keeper/grpc_query_params.go b/x/fiattokenfactory/keeper/grpc_query_params.go deleted file mode 100644 index 112b18ae..00000000 --- a/x/fiattokenfactory/keeper/grpc_query_params.go +++ /dev/null @@ -1,19 +0,0 @@ -package keeper - -import ( - "context" - - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/status" -) - -func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error) { - if req == nil { - return nil, status.Error(codes.InvalidArgument, "invalid request") - } - ctx := sdk.UnwrapSDKContext(c) - - return &types.QueryParamsResponse{Params: k.GetParams(ctx)}, nil -} diff --git a/x/fiattokenfactory/keeper/grpc_query_params_test.go b/x/fiattokenfactory/keeper/grpc_query_params_test.go deleted file mode 100644 index 74e11b52..00000000 --- a/x/fiattokenfactory/keeper/grpc_query_params_test.go +++ /dev/null @@ -1,21 +0,0 @@ -package keeper_test - -import ( - "testing" - - sdk "github.com/cosmos/cosmos-sdk/types" - testkeeper "github.com/strangelove-ventures/noble/testutil/keeper" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" - "github.com/stretchr/testify/require" -) - -func TestParamsQuery(t *testing.T) { - keeper, ctx := testkeeper.FiatTokenfactoryKeeper(t) - wctx := sdk.WrapSDKContext(ctx) - params := types.DefaultParams() - keeper.SetParams(ctx, params) - - response, err := keeper.Params(wctx, &types.QueryParamsRequest{}) - require.NoError(t, err) - require.Equal(t, &types.QueryParamsResponse{Params: params}, response) -} diff --git a/x/fiattokenfactory/keeper/grpc_query_paused.go b/x/fiattokenfactory/keeper/grpc_query_paused.go deleted file mode 100644 index a8dcb6da..00000000 --- a/x/fiattokenfactory/keeper/grpc_query_paused.go +++ /dev/null @@ -1,22 +0,0 @@ -package keeper - -import ( - "context" - - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" - - sdk "github.com/cosmos/cosmos-sdk/types" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/status" -) - -func (k Keeper) Paused(c context.Context, req *types.QueryGetPausedRequest) (*types.QueryGetPausedResponse, error) { - if req == nil { - return nil, status.Error(codes.InvalidArgument, "invalid request") - } - ctx := sdk.UnwrapSDKContext(c) - - val := k.GetPaused(ctx) - - return &types.QueryGetPausedResponse{Paused: val}, nil -} diff --git a/x/fiattokenfactory/keeper/grpc_query_paused_test.go b/x/fiattokenfactory/keeper/grpc_query_paused_test.go deleted file mode 100644 index cf201c08..00000000 --- a/x/fiattokenfactory/keeper/grpc_query_paused_test.go +++ /dev/null @@ -1,49 +0,0 @@ -package keeper_test - -import ( - "testing" - - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/stretchr/testify/require" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/status" - - keepertest "github.com/strangelove-ventures/noble/testutil/keeper" - "github.com/strangelove-ventures/noble/testutil/nullify" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" -) - -func TestPausedQuery(t *testing.T) { - keeper, ctx := keepertest.FiatTokenfactoryKeeper(t) - wctx := sdk.WrapSDKContext(ctx) - item := createTestPaused(keeper, ctx) - for _, tc := range []struct { - desc string - request *types.QueryGetPausedRequest - response *types.QueryGetPausedResponse - err error - }{ - { - desc: "First", - request: &types.QueryGetPausedRequest{}, - response: &types.QueryGetPausedResponse{Paused: item}, - }, - { - desc: "InvalidRequest", - err: status.Error(codes.InvalidArgument, "invalid request"), - }, - } { - t.Run(tc.desc, func(t *testing.T) { - response, err := keeper.Paused(wctx, tc.request) - if tc.err != nil { - require.ErrorIs(t, err, tc.err) - } else { - require.NoError(t, err) - require.Equal(t, - nullify.Fill(tc.response), - nullify.Fill(response), - ) - } - }) - } -} diff --git a/x/fiattokenfactory/keeper/grpc_query_pauser.go b/x/fiattokenfactory/keeper/grpc_query_pauser.go deleted file mode 100644 index 8648c520..00000000 --- a/x/fiattokenfactory/keeper/grpc_query_pauser.go +++ /dev/null @@ -1,24 +0,0 @@ -package keeper - -import ( - "context" - - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/status" -) - -func (k Keeper) Pauser(c context.Context, req *types.QueryGetPauserRequest) (*types.QueryGetPauserResponse, error) { - if req == nil { - return nil, status.Error(codes.InvalidArgument, "invalid request") - } - ctx := sdk.UnwrapSDKContext(c) - - val, found := k.GetPauser(ctx) - if !found { - return nil, status.Error(codes.NotFound, "not found") - } - - return &types.QueryGetPauserResponse{Pauser: val}, nil -} diff --git a/x/fiattokenfactory/keeper/grpc_query_pauser_test.go b/x/fiattokenfactory/keeper/grpc_query_pauser_test.go deleted file mode 100644 index 801e9d10..00000000 --- a/x/fiattokenfactory/keeper/grpc_query_pauser_test.go +++ /dev/null @@ -1,49 +0,0 @@ -package keeper_test - -import ( - "testing" - - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/stretchr/testify/require" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/status" - - keepertest "github.com/strangelove-ventures/noble/testutil/keeper" - "github.com/strangelove-ventures/noble/testutil/nullify" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" -) - -func TestPauserQuery(t *testing.T) { - keeper, ctx := keepertest.FiatTokenfactoryKeeper(t) - wctx := sdk.WrapSDKContext(ctx) - item := createTestPauser(keeper, ctx) - for _, tc := range []struct { - desc string - request *types.QueryGetPauserRequest - response *types.QueryGetPauserResponse - err error - }{ - { - desc: "First", - request: &types.QueryGetPauserRequest{}, - response: &types.QueryGetPauserResponse{Pauser: item}, - }, - { - desc: "InvalidRequest", - err: status.Error(codes.InvalidArgument, "invalid request"), - }, - } { - t.Run(tc.desc, func(t *testing.T) { - response, err := keeper.Pauser(wctx, tc.request) - if tc.err != nil { - require.ErrorIs(t, err, tc.err) - } else { - require.NoError(t, err) - require.Equal(t, - nullify.Fill(tc.response), - nullify.Fill(response), - ) - } - }) - } -} diff --git a/x/fiattokenfactory/keeper/keeper.go b/x/fiattokenfactory/keeper/keeper.go deleted file mode 100644 index c4196036..00000000 --- a/x/fiattokenfactory/keeper/keeper.go +++ /dev/null @@ -1,79 +0,0 @@ -package keeper - -import ( - "fmt" - - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" - - "github.com/cosmos/cosmos-sdk/codec" - storetypes "github.com/cosmos/cosmos-sdk/store/types" - sdk "github.com/cosmos/cosmos-sdk/types" - paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" - "github.com/tendermint/tendermint/libs/log" -) - -type ( - Keeper struct { - cdc codec.BinaryCodec - storeKey storetypes.StoreKey - paramstore paramtypes.Subspace - - bankKeeper types.BankKeeper - } -) - -func NewKeeper( - cdc codec.BinaryCodec, - storeKey storetypes.StoreKey, - ps paramtypes.Subspace, - - bankKeeper types.BankKeeper, -) *Keeper { - // set KeyTable if it has not already been set - if !ps.HasKeyTable() { - ps = ps.WithKeyTable(types.ParamKeyTable()) - } - - return &Keeper{ - - cdc: cdc, - storeKey: storeKey, - paramstore: ps, - bankKeeper: bankKeeper, - } -} - -func (k Keeper) Logger(ctx sdk.Context) log.Logger { - return ctx.Logger().With("module", fmt.Sprintf("x/%s", types.ModuleName)) -} - -// ValidatePrivileges checks if a specified address has already been assigned to a privileged role. -func (k Keeper) ValidatePrivileges(ctx sdk.Context, address string) error { - acc, err := sdk.AccAddressFromBech32(address) - if err != nil { - return err - } - - owner, found := k.GetOwner(ctx) - if found && owner.Address == acc.String() { - return sdkerrors.Wrapf(types.ErrAlreadyPrivileged, "cannot assign (%s) to owner role", acc.String()) - } - - blacklister, found := k.GetBlacklister(ctx) - if found && blacklister.Address == acc.String() { - return sdkerrors.Wrapf(types.ErrAlreadyPrivileged, "cannot assign (%s) to black lister role", acc.String()) - } - - masterminter, found := k.GetMasterMinter(ctx) - if found && masterminter.Address == acc.String() { - return sdkerrors.Wrapf(types.ErrAlreadyPrivileged, "cannot assign (%s) to master minter role", acc.String()) - } - - pauser, found := k.GetPauser(ctx) - if found && pauser.Address == acc.String() { - return sdkerrors.Wrapf(types.ErrAlreadyPrivileged, "cannot assign (%s) to pauser role", acc.String()) - } - - return nil -} diff --git a/x/fiattokenfactory/keeper/master_minter.go b/x/fiattokenfactory/keeper/master_minter.go deleted file mode 100644 index f46bbcee..00000000 --- a/x/fiattokenfactory/keeper/master_minter.go +++ /dev/null @@ -1,27 +0,0 @@ -package keeper - -import ( - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" - - sdk "github.com/cosmos/cosmos-sdk/types" -) - -// SetMasterMinter set masterMinter in the store -func (k Keeper) SetMasterMinter(ctx sdk.Context, masterMinter types.MasterMinter) { - store := ctx.KVStore(k.storeKey) - b := k.cdc.MustMarshal(&masterMinter) - store.Set(types.KeyPrefix(types.MasterMinterKey), b) -} - -// GetMasterMinter returns masterMinter -func (k Keeper) GetMasterMinter(ctx sdk.Context) (val types.MasterMinter, found bool) { - store := ctx.KVStore(k.storeKey) - - b := store.Get(types.KeyPrefix(types.MasterMinterKey)) - if b == nil { - return val, false - } - - k.cdc.MustUnmarshal(b, &val) - return val, true -} diff --git a/x/fiattokenfactory/keeper/master_minter_test.go b/x/fiattokenfactory/keeper/master_minter_test.go deleted file mode 100644 index 64e88648..00000000 --- a/x/fiattokenfactory/keeper/master_minter_test.go +++ /dev/null @@ -1,30 +0,0 @@ -package keeper_test - -import ( - "testing" - - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/stretchr/testify/require" - - keepertest "github.com/strangelove-ventures/noble/testutil/keeper" - "github.com/strangelove-ventures/noble/testutil/nullify" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/keeper" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" -) - -func createTestMasterMinter(keeper *keeper.Keeper, ctx sdk.Context) types.MasterMinter { - item := types.MasterMinter{} - keeper.SetMasterMinter(ctx, item) - return item -} - -func TestMasterMinterGet(t *testing.T) { - keeper, ctx := keepertest.FiatTokenfactoryKeeper(t) - item := createTestMasterMinter(keeper, ctx) - rst, found := keeper.GetMasterMinter(ctx) - require.True(t, found) - require.Equal(t, - nullify.Fill(&item), - nullify.Fill(&rst), - ) -} diff --git a/x/fiattokenfactory/keeper/minter_controller.go b/x/fiattokenfactory/keeper/minter_controller.go deleted file mode 100644 index d1db5787..00000000 --- a/x/fiattokenfactory/keeper/minter_controller.go +++ /dev/null @@ -1,64 +0,0 @@ -package keeper - -import ( - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" - - "github.com/cosmos/cosmos-sdk/store/prefix" - sdk "github.com/cosmos/cosmos-sdk/types" -) - -// SetMinterController set a specific minterController in the store from its index -func (k Keeper) SetMinterController(ctx sdk.Context, minterController types.MinterController) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.MinterControllerKeyPrefix)) - b := k.cdc.MustMarshal(&minterController) - store.Set(types.MinterControllerKey( - minterController.Controller, - ), b) -} - -// GetMinterController returns a minterController from its index -func (k Keeper) GetMinterController( - ctx sdk.Context, - controller string, - -) (val types.MinterController, found bool) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.MinterControllerKeyPrefix)) - - b := store.Get(types.MinterControllerKey( - controller, - )) - if b == nil { - return val, false - } - - k.cdc.MustUnmarshal(b, &val) - return val, true -} - -// RemoveMinterController removes a minterController from the store -func (k Keeper) DeleteMinterController( - ctx sdk.Context, - controller string, - -) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.MinterControllerKeyPrefix)) - store.Delete(types.MinterControllerKey( - controller, - )) -} - -// GetAllMinterController returns all minterController -func (k Keeper) GetAllMinterControllers(ctx sdk.Context) (list []types.MinterController) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.MinterControllerKeyPrefix)) - iterator := sdk.KVStorePrefixIterator(store, []byte{}) - - defer iterator.Close() - - for ; iterator.Valid(); iterator.Next() { - var val types.MinterController - k.cdc.MustUnmarshal(iterator.Value(), &val) - list = append(list, val) - } - - return -} diff --git a/x/fiattokenfactory/keeper/minter_controller_test.go b/x/fiattokenfactory/keeper/minter_controller_test.go deleted file mode 100644 index be40481f..00000000 --- a/x/fiattokenfactory/keeper/minter_controller_test.go +++ /dev/null @@ -1,64 +0,0 @@ -package keeper_test - -import ( - "strconv" - "testing" - - keepertest "github.com/strangelove-ventures/noble/testutil/keeper" - "github.com/strangelove-ventures/noble/testutil/nullify" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/keeper" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" - - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/stretchr/testify/require" -) - -// Prevent strconv unused error -var _ = strconv.IntSize - -func createNMinterController(keeper *keeper.Keeper, ctx sdk.Context, n int) []types.MinterController { - items := make([]types.MinterController, n) - for i := range items { - items[i].Controller = strconv.Itoa(i) - - keeper.SetMinterController(ctx, items[i]) - } - return items -} - -func TestMinterControllerGet(t *testing.T) { - keeper, ctx := keepertest.FiatTokenfactoryKeeper(t) - items := createNMinterController(keeper, ctx, 10) - for _, item := range items { - rst, found := keeper.GetMinterController(ctx, - item.Controller, - ) - require.True(t, found) - require.Equal(t, - nullify.Fill(&item), - nullify.Fill(&rst), - ) - } -} -func TestMinterControllerRemove(t *testing.T) { - keeper, ctx := keepertest.FiatTokenfactoryKeeper(t) - items := createNMinterController(keeper, ctx, 10) - for _, item := range items { - keeper.DeleteMinterController(ctx, - item.Minter, - ) - _, found := keeper.GetMinterController(ctx, - item.Minter, - ) - require.False(t, found) - } -} - -func TestMinterControllerGetAll(t *testing.T) { - keeper, ctx := keepertest.FiatTokenfactoryKeeper(t) - items := createNMinterController(keeper, ctx, 10) - require.ElementsMatch(t, - nullify.Fill(items), - nullify.Fill(keeper.GetAllMinterControllers(ctx)), - ) -} diff --git a/x/fiattokenfactory/keeper/minters.go b/x/fiattokenfactory/keeper/minters.go deleted file mode 100644 index 1fba1f20..00000000 --- a/x/fiattokenfactory/keeper/minters.go +++ /dev/null @@ -1,63 +0,0 @@ -package keeper - -import ( - "github.com/cosmos/cosmos-sdk/store/prefix" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" -) - -// SetMinters set a specific minters in the store from its index -func (k Keeper) SetMinters(ctx sdk.Context, minters types.Minters) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.MintersKeyPrefix)) - b := k.cdc.MustMarshal(&minters) - store.Set(types.MintersKey( - minters.Address, - ), b) -} - -// GetMinters returns a minters from its index -func (k Keeper) GetMinters( - ctx sdk.Context, - address string, - -) (val types.Minters, found bool) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.MintersKeyPrefix)) - - b := store.Get(types.MintersKey( - address, - )) - if b == nil { - return val, false - } - - k.cdc.MustUnmarshal(b, &val) - return val, true -} - -// RemoveMinters removes a minters from the store -func (k Keeper) RemoveMinters( - ctx sdk.Context, - address string, - -) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.MintersKeyPrefix)) - store.Delete(types.MintersKey( - address, - )) -} - -// GetAllMinters returns all minters -func (k Keeper) GetAllMinters(ctx sdk.Context) (list []types.Minters) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.MintersKeyPrefix)) - iterator := sdk.KVStorePrefixIterator(store, []byte{}) - - defer iterator.Close() - - for ; iterator.Valid(); iterator.Next() { - var val types.Minters - k.cdc.MustUnmarshal(iterator.Value(), &val) - list = append(list, val) - } - - return -} diff --git a/x/fiattokenfactory/keeper/minters_test.go b/x/fiattokenfactory/keeper/minters_test.go deleted file mode 100644 index f08ad2bd..00000000 --- a/x/fiattokenfactory/keeper/minters_test.go +++ /dev/null @@ -1,63 +0,0 @@ -package keeper_test - -import ( - "strconv" - "testing" - - sdk "github.com/cosmos/cosmos-sdk/types" - keepertest "github.com/strangelove-ventures/noble/testutil/keeper" - "github.com/strangelove-ventures/noble/testutil/nullify" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/keeper" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" - "github.com/stretchr/testify/require" -) - -// Prevent strconv unused error -var _ = strconv.IntSize - -func createNMinters(keeper *keeper.Keeper, ctx sdk.Context, n int) []types.Minters { - items := make([]types.Minters, n) - for i := range items { - items[i].Address = strconv.Itoa(i) - - keeper.SetMinters(ctx, items[i]) - } - return items -} - -func TestMintersGet(t *testing.T) { - keeper, ctx := keepertest.FiatTokenfactoryKeeper(t) - items := createNMinters(keeper, ctx, 10) - for _, item := range items { - rst, found := keeper.GetMinters(ctx, - item.Address, - ) - require.True(t, found) - require.Equal(t, - nullify.Fill(&item), - nullify.Fill(&rst), - ) - } -} -func TestMintersRemove(t *testing.T) { - keeper, ctx := keepertest.FiatTokenfactoryKeeper(t) - items := createNMinters(keeper, ctx, 10) - for _, item := range items { - keeper.RemoveMinters(ctx, - item.Address, - ) - _, found := keeper.GetMinters(ctx, - item.Address, - ) - require.False(t, found) - } -} - -func TestMintersGetAll(t *testing.T) { - keeper, ctx := keepertest.FiatTokenfactoryKeeper(t) - items := createNMinters(keeper, ctx, 10) - require.ElementsMatch(t, - nullify.Fill(items), - nullify.Fill(keeper.GetAllMinters(ctx)), - ) -} diff --git a/x/fiattokenfactory/keeper/minting_denom.go b/x/fiattokenfactory/keeper/minting_denom.go deleted file mode 100644 index e53c7ea2..00000000 --- a/x/fiattokenfactory/keeper/minting_denom.go +++ /dev/null @@ -1,51 +0,0 @@ -package keeper - -import ( - "fmt" - - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" - - "github.com/cosmos/cosmos-sdk/store/prefix" - sdk "github.com/cosmos/cosmos-sdk/types" -) - -// SetMintingDenom set mintingDenom in the store -func (k *Keeper) SetMintingDenom(ctx sdk.Context, mintingDenom types.MintingDenom) { - if k.MintingDenomSet(ctx) { - panic(types.ErrMintingDenomSet) - } - - _, found := k.bankKeeper.GetDenomMetaData(ctx, mintingDenom.Denom) - if !found { - panic(fmt.Sprintf("Denom metadata for '%s' should be set", mintingDenom.Denom)) - } - - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.MintingDenomKey)) - b := k.cdc.MustMarshal(&mintingDenom) - store.Set(types.KeyPrefix(types.MintingDenomKey), b) -} - -// GetMintingDenom returns mintingDenom -func (k *Keeper) GetMintingDenom(ctx sdk.Context) (val types.MintingDenom) { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.MintingDenomKey)) - - b := store.Get(types.KeyPrefix(types.MintingDenomKey)) - if b == nil { - panic("Minting denom is not set") - } - - k.cdc.MustUnmarshal(b, &val) - return val -} - -// MintingDenomSet returns true if the MintingDenom is already set in the store, it returns false otherwise. -func (k Keeper) MintingDenomSet(ctx sdk.Context) bool { - store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.MintingDenomKey)) - - b := store.Get(types.KeyPrefix(types.MintingDenomKey)) - if b == nil { - return false - } - - return true -} diff --git a/x/fiattokenfactory/keeper/minting_denom_test.go b/x/fiattokenfactory/keeper/minting_denom_test.go deleted file mode 100644 index 9ac3a227..00000000 --- a/x/fiattokenfactory/keeper/minting_denom_test.go +++ /dev/null @@ -1,31 +0,0 @@ -package keeper_test - -import ( - "testing" - - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/stretchr/testify/require" - - keepertest "github.com/strangelove-ventures/noble/testutil/keeper" - "github.com/strangelove-ventures/noble/testutil/nullify" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/keeper" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" -) - -func createTestMintingDenom(keeper *keeper.Keeper, ctx sdk.Context) types.MintingDenom { - item := types.MintingDenom{ - Denom: "abcd", - } - keeper.SetMintingDenom(ctx, item) - return item -} - -func TestMintingDenomGet(t *testing.T) { - keeper, ctx := keepertest.FiatTokenfactoryKeeper(t) - item := createTestMintingDenom(keeper, ctx) - rst := keeper.GetMintingDenom(ctx) - require.Equal(t, - nullify.Fill(&item), - nullify.Fill(&rst), - ) -} diff --git a/x/fiattokenfactory/keeper/msg_server.go b/x/fiattokenfactory/keeper/msg_server.go deleted file mode 100644 index 8cfa91d9..00000000 --- a/x/fiattokenfactory/keeper/msg_server.go +++ /dev/null @@ -1,17 +0,0 @@ -package keeper - -import ( - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" -) - -type msgServer struct { - *Keeper -} - -// NewMsgServerImpl returns an implementation of the MsgServer interface -// for the provided Keeper. -func NewMsgServerImpl(keeper *Keeper) types.MsgServer { - return &msgServer{Keeper: keeper} -} - -var _ types.MsgServer = msgServer{} diff --git a/x/fiattokenfactory/keeper/msg_server_accept_owner.go b/x/fiattokenfactory/keeper/msg_server_accept_owner.go deleted file mode 100644 index 7f72bf8b..00000000 --- a/x/fiattokenfactory/keeper/msg_server_accept_owner.go +++ /dev/null @@ -1,31 +0,0 @@ -package keeper - -import ( - "context" - - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" - - sdkerrors "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" -) - -func (k msgServer) AcceptOwner(goCtx context.Context, msg *types.MsgAcceptOwner) (*types.MsgAcceptOwnerResponse, error) { - ctx := sdk.UnwrapSDKContext(goCtx) - - owner, found := k.GetPendingOwner(ctx) - if !found { - return nil, sdkerrors.Wrapf(types.ErrUserNotFound, "pending owner is not set") - } - - if owner.Address != msg.From { - return nil, sdkerrors.Wrapf(types.ErrUnauthorized, "you are not the pending owner") - } - - k.SetOwner(ctx, owner) - - k.DeletePendingOwner(ctx) - - err := ctx.EventManager().EmitTypedEvent(msg) - - return &types.MsgAcceptOwnerResponse{}, err -} diff --git a/x/fiattokenfactory/keeper/msg_server_blacklist.go b/x/fiattokenfactory/keeper/msg_server_blacklist.go deleted file mode 100644 index ba055563..00000000 --- a/x/fiattokenfactory/keeper/msg_server_blacklist.go +++ /dev/null @@ -1,44 +0,0 @@ -package keeper - -import ( - "context" - - "github.com/cosmos/cosmos-sdk/types/bech32" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" - - sdkerrors "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" -) - -func (k msgServer) Blacklist(goCtx context.Context, msg *types.MsgBlacklist) (*types.MsgBlacklistResponse, error) { - ctx := sdk.UnwrapSDKContext(goCtx) - - blacklister, found := k.GetBlacklister(ctx) - if !found { - return nil, sdkerrors.Wrapf(types.ErrUserNotFound, "blacklister is not set") - } - - if blacklister.Address != msg.From { - return nil, sdkerrors.Wrapf(types.ErrUnauthorized, "you are not the blacklister") - } - - _, addressBz, err := bech32.DecodeAndConvert(msg.Address) - if err != nil { - return nil, err - } - - _, found = k.GetBlacklisted(ctx, addressBz) - if found { - return nil, types.ErrUserBlacklisted - } - - blacklisted := types.Blacklisted{ - AddressBz: addressBz, - } - - k.SetBlacklisted(ctx, blacklisted) - - err = ctx.EventManager().EmitTypedEvent(msg) - - return &types.MsgBlacklistResponse{}, err -} diff --git a/x/fiattokenfactory/keeper/msg_server_burn.go b/x/fiattokenfactory/keeper/msg_server_burn.go deleted file mode 100644 index cb3cdd1a..00000000 --- a/x/fiattokenfactory/keeper/msg_server_burn.go +++ /dev/null @@ -1,65 +0,0 @@ -package keeper - -import ( - "context" - - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" - - sdkerrors "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/bech32" -) - -func (k msgServer) Burn(goCtx context.Context, msg *types.MsgBurn) (*types.MsgBurnResponse, error) { - ctx := sdk.UnwrapSDKContext(goCtx) - return k.Keeper.Burn(ctx, msg) -} - -func (k Keeper) Burn(ctx sdk.Context, msg *types.MsgBurn) (*types.MsgBurnResponse, error) { - _, found := k.GetMinters(ctx, msg.From) - if !found { - return nil, sdkerrors.Wrapf(types.ErrBurn, "%v: you are not a minter", types.ErrUnauthorized) - } - - _, addressBz, err := bech32.DecodeAndConvert(msg.From) - if err != nil { - return nil, sdkerrors.Wrap(types.ErrBurn, err.Error()) - } - - _, found = k.GetBlacklisted(ctx, addressBz) - if found { - return nil, sdkerrors.Wrap(types.ErrBurn, "minter address is blacklisted") - } - - mintingDenom := k.GetMintingDenom(ctx) - - if msg.Amount.Denom != mintingDenom.Denom { - return nil, sdkerrors.Wrap(types.ErrBurn, "burning denom is incorrect") - } - - paused := k.GetPaused(ctx) - - if paused.Paused { - return nil, sdkerrors.Wrap(types.ErrBurn, "burning is paused") - } - - minterAddress, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - return nil, sdkerrors.Wrap(types.ErrBurn, err.Error()) - } - - amount := sdk.NewCoins(msg.Amount) - - err = k.bankKeeper.SendCoinsFromAccountToModule(ctx, minterAddress, types.ModuleName, amount) - if err != nil { - return nil, sdkerrors.Wrap(types.ErrBurn, err.Error()) - } - - if err := k.bankKeeper.BurnCoins(ctx, types.ModuleName, amount); err != nil { - return nil, sdkerrors.Wrap(types.ErrBurn, err.Error()) - } - - err = ctx.EventManager().EmitTypedEvent(msg) - - return &types.MsgBurnResponse{}, err -} diff --git a/x/fiattokenfactory/keeper/msg_server_configure_minter.go b/x/fiattokenfactory/keeper/msg_server_configure_minter.go deleted file mode 100644 index 186cd1b7..00000000 --- a/x/fiattokenfactory/keeper/msg_server_configure_minter.go +++ /dev/null @@ -1,46 +0,0 @@ -package keeper - -import ( - "context" - - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" - - sdkerrors "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" -) - -func (k msgServer) ConfigureMinter(goCtx context.Context, msg *types.MsgConfigureMinter) (*types.MsgConfigureMinterResponse, error) { - ctx := sdk.UnwrapSDKContext(goCtx) - - mintingDenom := k.GetMintingDenom(ctx) - - if msg.Allowance.Denom != mintingDenom.Denom { - return nil, sdkerrors.Wrapf(types.ErrMint, "minting denom is incorrect") - } - - minterController, found := k.GetMinterController(ctx, msg.From) - if !found { - return nil, sdkerrors.Wrapf(types.ErrUnauthorized, "minter controller not found") - } - - if msg.From != minterController.Controller { - return nil, sdkerrors.Wrapf(types.ErrUnauthorized, "you are not a controller of this minter") - } - - if msg.Address != minterController.Minter { - return nil, sdkerrors.Wrapf( - types.ErrUnauthorized, - "minter address ≠ minter controller's minter address, (%s≠%s)", - msg.Address, minterController.Minter, - ) - } - - k.SetMinters(ctx, types.Minters{ - Address: msg.Address, - Allowance: msg.Allowance, - }) - - err := ctx.EventManager().EmitTypedEvent(msg) - - return &types.MsgConfigureMinterResponse{}, err -} diff --git a/x/fiattokenfactory/keeper/msg_server_configure_minter_controller.go b/x/fiattokenfactory/keeper/msg_server_configure_minter_controller.go deleted file mode 100644 index 9986bb83..00000000 --- a/x/fiattokenfactory/keeper/msg_server_configure_minter_controller.go +++ /dev/null @@ -1,32 +0,0 @@ -package keeper - -import ( - "context" - - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" - - sdkerrors "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" -) - -func (k msgServer) ConfigureMinterController(goCtx context.Context, msg *types.MsgConfigureMinterController) (*types.MsgConfigureMinterControllerResponse, error) { - ctx := sdk.UnwrapSDKContext(goCtx) - - masterMinter, found := k.GetMasterMinter(ctx) - if !found { - return nil, sdkerrors.Wrapf(types.ErrUserNotFound, "master minter is not set") - } - - if masterMinter.Address != msg.From { - return nil, sdkerrors.Wrapf(types.ErrUnauthorized, "you are not the master minter") - } - - controller := types.MinterController{ - Minter: msg.Minter, - Controller: msg.Controller, - } - - k.SetMinterController(ctx, controller) - - return &types.MsgConfigureMinterControllerResponse{}, nil -} diff --git a/x/fiattokenfactory/keeper/msg_server_mint.go b/x/fiattokenfactory/keeper/msg_server_mint.go deleted file mode 100644 index 73306c70..00000000 --- a/x/fiattokenfactory/keeper/msg_server_mint.go +++ /dev/null @@ -1,80 +0,0 @@ -package keeper - -import ( - "context" - - "github.com/cosmos/cosmos-sdk/types/bech32" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" - - sdkerrors "cosmossdk.io/errors" - - sdk "github.com/cosmos/cosmos-sdk/types" -) - -func (k msgServer) Mint(goCtx context.Context, msg *types.MsgMint) (*types.MsgMintResponse, error) { - ctx := sdk.UnwrapSDKContext(goCtx) - return k.Keeper.Mint(ctx, msg) -} - -func (k Keeper) Mint(ctx sdk.Context, msg *types.MsgMint) (*types.MsgMintResponse, error) { - minter, found := k.GetMinters(ctx, msg.From) - if !found { - return nil, sdkerrors.Wrapf(types.ErrUnauthorized, "you are not a minter") - } - - _, addressBz, err := bech32.DecodeAndConvert(msg.From) - if err != nil { - return nil, err - } - - _, found = k.GetBlacklisted(ctx, addressBz) - if found { - return nil, sdkerrors.Wrapf(types.ErrMint, "minter address is blacklisted") - } - - _, addressBz, err = bech32.DecodeAndConvert(msg.Address) - if err != nil { - return nil, err - } - - _, found = k.GetBlacklisted(ctx, addressBz) - if found { - return nil, sdkerrors.Wrapf(types.ErrMint, "receiver address is blacklisted") - } - - mintingDenom := k.GetMintingDenom(ctx) - - if msg.Amount.Denom != mintingDenom.Denom { - return nil, sdkerrors.Wrapf(types.ErrMint, "minting denom is incorrect") - } - - if minter.Allowance.IsLT(msg.Amount) { - return nil, sdkerrors.Wrapf(types.ErrMint, "minting amount is greater than the allowance") - } - - paused := k.GetPaused(ctx) - - if paused.Paused { - return nil, sdkerrors.Wrapf(types.ErrMint, "minting is paused") - } - - minter.Allowance = minter.Allowance.Sub(msg.Amount) - - k.SetMinters(ctx, minter) - - amount := sdk.NewCoins(msg.Amount) - - if err := k.bankKeeper.MintCoins(ctx, types.ModuleName, amount); err != nil { - return nil, sdkerrors.Wrap(types.ErrMint, err.Error()) - } - - receiver, _ := sdk.AccAddressFromBech32(msg.Address) - - if err := k.bankKeeper.SendCoinsFromModuleToAccount(ctx, types.ModuleName, receiver, amount); err != nil { - return nil, sdkerrors.Wrap(types.ErrSendCoinsToAccount, err.Error()) - } - - err = ctx.EventManager().EmitTypedEvent(msg) - - return &types.MsgMintResponse{}, err -} diff --git a/x/fiattokenfactory/keeper/msg_server_pause.go b/x/fiattokenfactory/keeper/msg_server_pause.go deleted file mode 100644 index 7ac63acc..00000000 --- a/x/fiattokenfactory/keeper/msg_server_pause.go +++ /dev/null @@ -1,33 +0,0 @@ -package keeper - -import ( - "context" - - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" - - sdkerrors "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" -) - -func (k msgServer) Pause(goCtx context.Context, msg *types.MsgPause) (*types.MsgPauseResponse, error) { - ctx := sdk.UnwrapSDKContext(goCtx) - - pauser, found := k.GetPauser(ctx) - if !found { - return nil, sdkerrors.Wrapf(types.ErrUserNotFound, "pauser is not set") - } - - if pauser.Address != msg.From { - return nil, sdkerrors.Wrapf(types.ErrUnauthorized, "you are not the pauser") - } - - paused := types.Paused{ - Paused: true, - } - - k.SetPaused(ctx, paused) - - err := ctx.EventManager().EmitTypedEvent(msg) - - return &types.MsgPauseResponse{}, err -} diff --git a/x/fiattokenfactory/keeper/msg_server_remove_minter.go b/x/fiattokenfactory/keeper/msg_server_remove_minter.go deleted file mode 100644 index 12692654..00000000 --- a/x/fiattokenfactory/keeper/msg_server_remove_minter.go +++ /dev/null @@ -1,42 +0,0 @@ -package keeper - -import ( - "context" - - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" - - sdkerrors "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" -) - -func (k msgServer) RemoveMinter(goCtx context.Context, msg *types.MsgRemoveMinter) (*types.MsgRemoveMinterResponse, error) { - ctx := sdk.UnwrapSDKContext(goCtx) - - minterController, found := k.GetMinterController(ctx, msg.From) - if !found { - return nil, sdkerrors.Wrapf(types.ErrUnauthorized, "minter controller not found") - } - - if msg.From != minterController.Controller { - return nil, sdkerrors.Wrapf(types.ErrUnauthorized, "you are not a controller of this minter") - } - - if msg.Address != minterController.Minter { - return nil, sdkerrors.Wrapf( - types.ErrUnauthorized, - "minter address ≠ minter controller's minter address, (%s≠%s)", - msg.Address, minterController.Minter, - ) - } - - minter, found := k.GetMinters(ctx, msg.Address) - if !found { - return nil, sdkerrors.Wrapf(types.ErrUserNotFound, "a minter with a given address doesn't exist") - } - - k.RemoveMinters(ctx, minter.Address) - - err := ctx.EventManager().EmitTypedEvent(msg) - - return &types.MsgRemoveMinterResponse{}, err -} diff --git a/x/fiattokenfactory/keeper/msg_server_remove_minter_controller.go b/x/fiattokenfactory/keeper/msg_server_remove_minter_controller.go deleted file mode 100644 index 87f0244c..00000000 --- a/x/fiattokenfactory/keeper/msg_server_remove_minter_controller.go +++ /dev/null @@ -1,32 +0,0 @@ -package keeper - -import ( - "context" - - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" - - sdkerrors "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" -) - -func (k msgServer) RemoveMinterController(goCtx context.Context, msg *types.MsgRemoveMinterController) (*types.MsgRemoveMinterControllerResponse, error) { - ctx := sdk.UnwrapSDKContext(goCtx) - - masterMinter, found := k.GetMasterMinter(ctx) - if !found { - return nil, sdkerrors.Wrapf(types.ErrUserNotFound, "master minter is not set") - } - - if msg.From != masterMinter.Address { - return nil, sdkerrors.Wrapf(types.ErrUnauthorized, "you are not the master minter") - } - - _, found = k.GetMinterController(ctx, msg.Controller) - if !found { - return nil, sdkerrors.Wrapf(types.ErrUserNotFound, "minter controller with a given address (%s) doesn't exist", msg.Controller) - } - - k.DeleteMinterController(ctx, msg.Controller) - - return &types.MsgRemoveMinterControllerResponse{}, nil -} diff --git a/x/fiattokenfactory/keeper/msg_server_unblacklist.go b/x/fiattokenfactory/keeper/msg_server_unblacklist.go deleted file mode 100644 index fc32528a..00000000 --- a/x/fiattokenfactory/keeper/msg_server_unblacklist.go +++ /dev/null @@ -1,40 +0,0 @@ -package keeper - -import ( - "context" - - "github.com/cosmos/cosmos-sdk/types/bech32" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" - - sdkerrors "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" -) - -func (k msgServer) Unblacklist(goCtx context.Context, msg *types.MsgUnblacklist) (*types.MsgUnblacklistResponse, error) { - ctx := sdk.UnwrapSDKContext(goCtx) - - blacklister, found := k.GetBlacklister(ctx) - if !found { - return nil, sdkerrors.Wrapf(types.ErrUserNotFound, "blacklister is not set") - } - - if blacklister.Address != msg.From { - return nil, sdkerrors.Wrapf(types.ErrUnauthorized, "you are not the blacklister") - } - - _, addressBz, err := bech32.DecodeAndConvert(msg.Address) - if err != nil { - return nil, err - } - - blacklisted, found := k.GetBlacklisted(ctx, addressBz) - if !found { - return nil, sdkerrors.Wrapf(types.ErrUserNotFound, "the specified address is not blacklisted") - } - - k.RemoveBlacklisted(ctx, blacklisted.AddressBz) - - err = ctx.EventManager().EmitTypedEvent(msg) - - return &types.MsgUnblacklistResponse{}, err -} diff --git a/x/fiattokenfactory/keeper/msg_server_unpause.go b/x/fiattokenfactory/keeper/msg_server_unpause.go deleted file mode 100644 index 9d693321..00000000 --- a/x/fiattokenfactory/keeper/msg_server_unpause.go +++ /dev/null @@ -1,33 +0,0 @@ -package keeper - -import ( - "context" - - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" - - sdkerrors "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" -) - -func (k msgServer) Unpause(goCtx context.Context, msg *types.MsgUnpause) (*types.MsgUnpauseResponse, error) { - ctx := sdk.UnwrapSDKContext(goCtx) - - pauser, found := k.GetPauser(ctx) - if !found { - return nil, sdkerrors.Wrapf(types.ErrUserNotFound, "pauser is not set") - } - - if pauser.Address != msg.From { - return nil, sdkerrors.Wrapf(types.ErrUnauthorized, "you are not the pauser") - } - - paused := types.Paused{ - Paused: false, - } - - k.SetPaused(ctx, paused) - - err := ctx.EventManager().EmitTypedEvent(msg) - - return &types.MsgUnpauseResponse{}, err -} diff --git a/x/fiattokenfactory/keeper/msg_server_update_blacklister.go b/x/fiattokenfactory/keeper/msg_server_update_blacklister.go deleted file mode 100644 index 1f2187ce..00000000 --- a/x/fiattokenfactory/keeper/msg_server_update_blacklister.go +++ /dev/null @@ -1,39 +0,0 @@ -package keeper - -import ( - "context" - - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" - - sdkerrors "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" -) - -func (k msgServer) UpdateBlacklister(goCtx context.Context, msg *types.MsgUpdateBlacklister) (*types.MsgUpdateBlacklisterResponse, error) { - ctx := sdk.UnwrapSDKContext(goCtx) - - owner, found := k.GetOwner(ctx) - if !found { - return nil, sdkerrors.Wrapf(types.ErrUserNotFound, "owner is not set") - } - - if owner.Address != msg.From { - return nil, sdkerrors.Wrapf(types.ErrUnauthorized, "you are not the owner") - } - - // ensure that the specified address is not already assigned to a privileged role - err := k.ValidatePrivileges(ctx, msg.Address) - if err != nil { - return nil, err - } - - blacklister := types.Blacklister{ - Address: msg.Address, - } - - k.SetBlacklister(ctx, blacklister) - - err = ctx.EventManager().EmitTypedEvent(msg) - - return &types.MsgUpdateBlacklisterResponse{}, err -} diff --git a/x/fiattokenfactory/keeper/msg_server_update_master_minter.go b/x/fiattokenfactory/keeper/msg_server_update_master_minter.go deleted file mode 100644 index 677c1606..00000000 --- a/x/fiattokenfactory/keeper/msg_server_update_master_minter.go +++ /dev/null @@ -1,39 +0,0 @@ -package keeper - -import ( - "context" - - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" - - sdkerrors "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" -) - -func (k msgServer) UpdateMasterMinter(goCtx context.Context, msg *types.MsgUpdateMasterMinter) (*types.MsgUpdateMasterMinterResponse, error) { - ctx := sdk.UnwrapSDKContext(goCtx) - - owner, found := k.GetOwner(ctx) - if !found { - return nil, sdkerrors.Wrapf(types.ErrUserNotFound, "owner is not set") - } - - if owner.Address != msg.From { - return nil, sdkerrors.Wrapf(types.ErrUnauthorized, "you are not the owner") - } - - // ensure that the specified address is not already assigned to a privileged role - err := k.ValidatePrivileges(ctx, msg.Address) - if err != nil { - return nil, err - } - - masterMinter := types.MasterMinter{ - Address: msg.Address, - } - - k.SetMasterMinter(ctx, masterMinter) - - err = ctx.EventManager().EmitTypedEvent(msg) - - return &types.MsgUpdateMasterMinterResponse{}, err -} diff --git a/x/fiattokenfactory/keeper/msg_server_update_owner.go b/x/fiattokenfactory/keeper/msg_server_update_owner.go deleted file mode 100644 index 77ca5b6a..00000000 --- a/x/fiattokenfactory/keeper/msg_server_update_owner.go +++ /dev/null @@ -1,37 +0,0 @@ -package keeper - -import ( - "context" - - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" - - sdkerrors "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" -) - -func (k msgServer) UpdateOwner(goCtx context.Context, msg *types.MsgUpdateOwner) (*types.MsgUpdateOwnerResponse, error) { - ctx := sdk.UnwrapSDKContext(goCtx) - - owner, found := k.GetOwner(ctx) - if !found { - return nil, sdkerrors.Wrapf(types.ErrUserNotFound, "owner is not set") - } - - if owner.Address != msg.From { - return nil, sdkerrors.Wrapf(types.ErrUnauthorized, "you are not the owner") - } - - // ensure that the specified address is not already assigned to a privileged role - err := k.ValidatePrivileges(ctx, msg.Address) - if err != nil { - return nil, err - } - - owner.Address = msg.Address - - k.SetPendingOwner(ctx, owner) - - err = ctx.EventManager().EmitTypedEvent(msg) - - return &types.MsgUpdateOwnerResponse{}, err -} diff --git a/x/fiattokenfactory/keeper/msg_server_update_pauser.go b/x/fiattokenfactory/keeper/msg_server_update_pauser.go deleted file mode 100644 index c61a327e..00000000 --- a/x/fiattokenfactory/keeper/msg_server_update_pauser.go +++ /dev/null @@ -1,39 +0,0 @@ -package keeper - -import ( - "context" - - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" - - sdkerrors "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" -) - -func (k msgServer) UpdatePauser(goCtx context.Context, msg *types.MsgUpdatePauser) (*types.MsgUpdatePauserResponse, error) { - ctx := sdk.UnwrapSDKContext(goCtx) - - owner, found := k.GetOwner(ctx) - if !found { - return nil, sdkerrors.Wrapf(types.ErrUserNotFound, "owner is not set") - } - - if owner.Address != msg.From { - return nil, sdkerrors.Wrapf(types.ErrUnauthorized, "you are not the owner") - } - - // ensure that the specified address is not already assigned to a privileged role - err := k.ValidatePrivileges(ctx, msg.Address) - if err != nil { - return nil, err - } - - pauser := types.Pauser{ - Address: msg.Address, - } - - k.SetPauser(ctx, pauser) - - err = ctx.EventManager().EmitTypedEvent(msg) - - return &types.MsgUpdatePauserResponse{}, err -} diff --git a/x/fiattokenfactory/keeper/owner.go b/x/fiattokenfactory/keeper/owner.go deleted file mode 100644 index fee2091e..00000000 --- a/x/fiattokenfactory/keeper/owner.go +++ /dev/null @@ -1,53 +0,0 @@ -package keeper - -import ( - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" - - sdk "github.com/cosmos/cosmos-sdk/types" -) - -// SetOwner set owner in the store -func (k Keeper) SetOwner(ctx sdk.Context, owner types.Owner) { - store := ctx.KVStore(k.storeKey) - b := k.cdc.MustMarshal(&owner) - store.Set(types.KeyPrefix(types.OwnerKey), b) -} - -// GetOwner returns owner -func (k Keeper) GetOwner(ctx sdk.Context) (val types.Owner, found bool) { - store := ctx.KVStore(k.storeKey) - - b := store.Get(types.KeyPrefix(types.OwnerKey)) - if b == nil { - return val, false - } - - k.cdc.MustUnmarshal(b, &val) - return val, true -} - -// SetPendingOwner set pending owner in the store -func (k Keeper) SetPendingOwner(ctx sdk.Context, owner types.Owner) { - store := ctx.KVStore(k.storeKey) - b := k.cdc.MustMarshal(&owner) - store.Set(types.KeyPrefix(types.PendingOwnerKey), b) -} - -// DeletePendingOwner deletes the pending owner in the store -func (k Keeper) DeletePendingOwner(ctx sdk.Context) { - store := ctx.KVStore(k.storeKey) - store.Delete(types.KeyPrefix(types.PendingOwnerKey)) -} - -// GetPendingOwner returns pending owner -func (k Keeper) GetPendingOwner(ctx sdk.Context) (val types.Owner, found bool) { - store := ctx.KVStore(k.storeKey) - - b := store.Get(types.KeyPrefix(types.PendingOwnerKey)) - if b == nil { - return val, false - } - - k.cdc.MustUnmarshal(b, &val) - return val, true -} diff --git a/x/fiattokenfactory/keeper/owner_test.go b/x/fiattokenfactory/keeper/owner_test.go deleted file mode 100644 index 21300cfa..00000000 --- a/x/fiattokenfactory/keeper/owner_test.go +++ /dev/null @@ -1,37 +0,0 @@ -package keeper_test - -import ( - "testing" - - "github.com/stretchr/testify/require" - - keepertest "github.com/strangelove-ventures/noble/testutil/keeper" - "github.com/strangelove-ventures/noble/testutil/nullify" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" -) - -func TestOwnerGet(t *testing.T) { - - keeper, ctx := keepertest.FiatTokenfactoryKeeper(t) - - owner := types.Owner{Address: "1"} - keeper.SetOwner(ctx, owner) - - rst, found := keeper.GetOwner(ctx) - require.True(t, found) - require.Equal(t, - owner, - nullify.Fill(&rst), - ) - - newOwner := types.Owner{Address: "2"} - - keeper.SetPendingOwner(ctx, newOwner) - - rst, found = keeper.GetPendingOwner(ctx) - require.True(t, found) - require.Equal(t, - newOwner, - nullify.Fill(&rst), - ) -} diff --git a/x/fiattokenfactory/keeper/params.go b/x/fiattokenfactory/keeper/params.go deleted file mode 100644 index 07a08d81..00000000 --- a/x/fiattokenfactory/keeper/params.go +++ /dev/null @@ -1,16 +0,0 @@ -package keeper - -import ( - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" -) - -// GetParams get all parameters as types.Params -func (k Keeper) GetParams(ctx sdk.Context) types.Params { - return types.NewParams() -} - -// SetParams set the params -func (k Keeper) SetParams(ctx sdk.Context, params types.Params) { - k.paramstore.SetParamSet(ctx, ¶ms) -} diff --git a/x/fiattokenfactory/keeper/params_test.go b/x/fiattokenfactory/keeper/params_test.go deleted file mode 100644 index d71aa9e9..00000000 --- a/x/fiattokenfactory/keeper/params_test.go +++ /dev/null @@ -1,18 +0,0 @@ -package keeper_test - -import ( - "testing" - - testkeeper "github.com/strangelove-ventures/noble/testutil/keeper" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" - "github.com/stretchr/testify/require" -) - -func TestGetParams(t *testing.T) { - k, ctx := testkeeper.FiatTokenfactoryKeeper(t) - params := types.DefaultParams() - - k.SetParams(ctx, params) - - require.EqualValues(t, params, k.GetParams(ctx)) -} diff --git a/x/fiattokenfactory/keeper/paused.go b/x/fiattokenfactory/keeper/paused.go deleted file mode 100644 index 457b8b79..00000000 --- a/x/fiattokenfactory/keeper/paused.go +++ /dev/null @@ -1,27 +0,0 @@ -package keeper - -import ( - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" - - sdk "github.com/cosmos/cosmos-sdk/types" -) - -// SetPaused set paused in the store -func (k Keeper) SetPaused(ctx sdk.Context, paused types.Paused) { - store := ctx.KVStore(k.storeKey) - b := k.cdc.MustMarshal(&paused) - store.Set(types.KeyPrefix(types.PausedKey), b) -} - -// GetPaused returns paused -func (k Keeper) GetPaused(ctx sdk.Context) (val types.Paused) { - store := ctx.KVStore(k.storeKey) - - b := store.Get(types.KeyPrefix(types.PausedKey)) - if b == nil { - panic("Paused state is not set") - } - - k.cdc.MustUnmarshal(b, &val) - return val -} diff --git a/x/fiattokenfactory/keeper/paused_test.go b/x/fiattokenfactory/keeper/paused_test.go deleted file mode 100644 index ca984ac1..00000000 --- a/x/fiattokenfactory/keeper/paused_test.go +++ /dev/null @@ -1,29 +0,0 @@ -package keeper_test - -import ( - "testing" - - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/stretchr/testify/require" - - keepertest "github.com/strangelove-ventures/noble/testutil/keeper" - "github.com/strangelove-ventures/noble/testutil/nullify" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/keeper" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" -) - -func createTestPaused(keeper *keeper.Keeper, ctx sdk.Context) types.Paused { - item := types.Paused{} - keeper.SetPaused(ctx, item) - return item -} - -func TestPausedGet(t *testing.T) { - keeper, ctx := keepertest.FiatTokenfactoryKeeper(t) - item := createTestPaused(keeper, ctx) - rst := keeper.GetPaused(ctx) - require.Equal(t, - nullify.Fill(&item), - nullify.Fill(&rst), - ) -} diff --git a/x/fiattokenfactory/keeper/pauser.go b/x/fiattokenfactory/keeper/pauser.go deleted file mode 100644 index c37c39fa..00000000 --- a/x/fiattokenfactory/keeper/pauser.go +++ /dev/null @@ -1,27 +0,0 @@ -package keeper - -import ( - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" - - sdk "github.com/cosmos/cosmos-sdk/types" -) - -// SetPauser set pauser in the store -func (k Keeper) SetPauser(ctx sdk.Context, pauser types.Pauser) { - store := ctx.KVStore(k.storeKey) - b := k.cdc.MustMarshal(&pauser) - store.Set(types.KeyPrefix(types.PauserKey), b) -} - -// GetPauser returns pauser -func (k Keeper) GetPauser(ctx sdk.Context) (val types.Pauser, found bool) { - store := ctx.KVStore(k.storeKey) - - b := store.Get(types.KeyPrefix(types.PauserKey)) - if b == nil { - return val, false - } - - k.cdc.MustUnmarshal(b, &val) - return val, true -} diff --git a/x/fiattokenfactory/keeper/pauser_test.go b/x/fiattokenfactory/keeper/pauser_test.go deleted file mode 100644 index da783534..00000000 --- a/x/fiattokenfactory/keeper/pauser_test.go +++ /dev/null @@ -1,30 +0,0 @@ -package keeper_test - -import ( - "testing" - - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/stretchr/testify/require" - - keepertest "github.com/strangelove-ventures/noble/testutil/keeper" - "github.com/strangelove-ventures/noble/testutil/nullify" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/keeper" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" -) - -func createTestPauser(keeper *keeper.Keeper, ctx sdk.Context) types.Pauser { - item := types.Pauser{} - keeper.SetPauser(ctx, item) - return item -} - -func TestPauserGet(t *testing.T) { - keeper, ctx := keepertest.FiatTokenfactoryKeeper(t) - item := createTestPauser(keeper, ctx) - rst, found := keeper.GetPauser(ctx) - require.True(t, found) - require.Equal(t, - nullify.Fill(&item), - nullify.Fill(&rst), - ) -} diff --git a/x/fiattokenfactory/module.go b/x/fiattokenfactory/module.go deleted file mode 100644 index d0d82aca..00000000 --- a/x/fiattokenfactory/module.go +++ /dev/null @@ -1,163 +0,0 @@ -package fiattokenfactory - -import ( - "context" - "encoding/json" - "fmt" - - "github.com/gorilla/mux" - "github.com/grpc-ecosystem/grpc-gateway/runtime" - "github.com/spf13/cobra" - - abci "github.com/tendermint/tendermint/abci/types" - - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/codec" - cdctypes "github.com/cosmos/cosmos-sdk/codec/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/module" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/client/cli" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/keeper" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" -) - -var ( - _ module.AppModule = AppModule{} - _ module.AppModuleBasic = AppModuleBasic{} -) - -// ---------------------------------------------------------------------------- -// AppModuleBasic -// ---------------------------------------------------------------------------- - -// AppModuleBasic implements the AppModuleBasic interface that defines the independent methods a Cosmos SDK module needs to implement. -type AppModuleBasic struct { - cdc codec.BinaryCodec -} - -func NewAppModuleBasic(cdc codec.BinaryCodec) AppModuleBasic { - return AppModuleBasic{cdc: cdc} -} - -// Name returns the name of the module as a string -func (AppModuleBasic) Name() string { - return types.ModuleName -} - -// RegisterLegacyAminoCodec registers the amino codec for the module, which is used to marshal and unmarshal structs to/from []byte in order to persist them in the module's KVStore -func (AppModuleBasic) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) { - types.RegisterLegacyAminoCodec(cdc) -} - -// RegisterInterfaces registers a module's interface types and their concrete implementations as proto.Message -func (a AppModuleBasic) RegisterInterfaces(reg cdctypes.InterfaceRegistry) { - types.RegisterInterfaces(reg) -} - -// DefaultGenesis returns a default GenesisState for the module, marshalled to json.RawMessage. The default GenesisState need to be defined by the module developer and is primarily used for testing -func (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage { - return cdc.MustMarshalJSON(types.DefaultGenesis()) -} - -// ValidateGenesis used to validate the GenesisState, given in its json.RawMessage form -func (AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, config client.TxEncodingConfig, bz json.RawMessage) error { - var genState types.GenesisState - if err := cdc.UnmarshalJSON(bz, &genState); err != nil { - return fmt.Errorf("failed to unmarshal %s genesis state: %w", types.ModuleName, err) - } - return genState.Validate() -} - -// RegisterRESTRoutes registers the capability module's REST service handlers. -func (AppModuleBasic) RegisterRESTRoutes(clientCtx client.Context, rtr *mux.Router) { -} - -// RegisterGRPCGatewayRoutes registers the gRPC Gateway routes for the module -func (AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *runtime.ServeMux) { - types.RegisterQueryHandlerClient(context.Background(), mux, types.NewQueryClient(clientCtx)) -} - -// GetTxCmd returns the root Tx command for the module. The subcommands of this root command are used by end-users to generate new transactions containing messages defined in the module -func (a AppModuleBasic) GetTxCmd() *cobra.Command { - return cli.GetTxCmd() -} - -// GetQueryCmd returns the root query command for the module. The subcommands of this root command are used by end-users to generate new queries to the subset of the state defined by the module -func (AppModuleBasic) GetQueryCmd() *cobra.Command { - return cli.GetQueryCmd(types.StoreKey) -} - -// ---------------------------------------------------------------------------- -// AppModule -// ---------------------------------------------------------------------------- - -// AppModule implements the AppModule interface that defines the inter-dependent methods that modules need to implement -type AppModule struct { - AppModuleBasic - - keeper *keeper.Keeper - accountKeeper types.AccountKeeper - bankKeeper types.BankKeeper -} - -func NewAppModule( - cdc codec.Codec, - keeper *keeper.Keeper, - accountKeeper types.AccountKeeper, - bankKeeper types.BankKeeper, -) AppModule { - return AppModule{ - AppModuleBasic: NewAppModuleBasic(cdc), - keeper: keeper, - accountKeeper: accountKeeper, - bankKeeper: bankKeeper, - } -} - -// Deprecated: use RegisterServices -func (am AppModule) Route() sdk.Route { return sdk.Route{} } - -// Deprecated: use RegisterServices -func (AppModule) QuerierRoute() string { return types.RouterKey } - -// Deprecated: use RegisterServices -func (am AppModule) LegacyQuerierHandler(_ *codec.LegacyAmino) sdk.Querier { - return nil -} - -// RegisterServices registers a gRPC query service to respond to the module-specific gRPC queries -func (am AppModule) RegisterServices(cfg module.Configurator) { - types.RegisterMsgServer(cfg.MsgServer(), keeper.NewMsgServerImpl(am.keeper)) - types.RegisterQueryServer(cfg.QueryServer(), am.keeper) -} - -// RegisterInvariants registers the invariants of the module. If an invariant deviates from its predicted value, the InvariantRegistry triggers appropriate logic (most often the chain will be halted) -func (am AppModule) RegisterInvariants(_ sdk.InvariantRegistry) {} - -// InitGenesis performs the module's genesis initialization. It returns no validator updates. -func (am AppModule) InitGenesis(ctx sdk.Context, cdc codec.JSONCodec, gs json.RawMessage) []abci.ValidatorUpdate { - var genState types.GenesisState - // Initialize global index to index in genesis state - cdc.MustUnmarshalJSON(gs, &genState) - - InitGenesis(ctx, am.keeper, am.bankKeeper, genState) - - return []abci.ValidatorUpdate{} -} - -// ExportGenesis returns the module's exported genesis state as raw JSON bytes. -func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.RawMessage { - genState := ExportGenesis(ctx, am.keeper) - return cdc.MustMarshalJSON(genState) -} - -// ConsensusVersion is a sequence number for state-breaking change of the module. It should be incremented on each consensus-breaking change introduced by the module. To avoid wrong/empty versions, the initial version should be set to 1 -func (AppModule) ConsensusVersion() uint64 { return 1 } - -// BeginBlock contains the logic that is automatically triggered at the beginning of each block -func (am AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock) {} - -// EndBlock contains the logic that is automatically triggered at the end of each block -func (am AppModule) EndBlock(_ sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate { - return []abci.ValidatorUpdate{} -} diff --git a/x/fiattokenfactory/module_simulation.go b/x/fiattokenfactory/module_simulation.go deleted file mode 100644 index 7d5c174a..00000000 --- a/x/fiattokenfactory/module_simulation.go +++ /dev/null @@ -1,312 +0,0 @@ -package fiattokenfactory - -import ( - "math/rand" - - "github.com/cosmos/cosmos-sdk/baseapp" - simappparams "github.com/cosmos/cosmos-sdk/simapp/params" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/module" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" - "github.com/cosmos/cosmos-sdk/x/simulation" - "github.com/strangelove-ventures/noble/testutil/sample" - tokenfactorysimulation "github.com/strangelove-ventures/noble/x/fiattokenfactory/simulation" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" -) - -// avoid unused import issue -var ( - _ = sample.AccAddress - _ = tokenfactorysimulation.FindAccount - _ = simappparams.StakePerAccount - _ = simulation.MsgEntryKind - _ = baseapp.Paramspace -) - -const ( - opWeightMsgUpdateMasterMinter = "op_weight_msg_update_master_minter" - // TODO: Determine the simulation weight value - defaultWeightMsgUpdateMasterMinter int = 100 - - opWeightMsgUpdatePauser = "op_weight_msg_update_pauser" - // TODO: Determine the simulation weight value - defaultWeightMsgUpdatePauser int = 100 - - opWeightMsgUpdateBlacklister = "op_weight_msg_update_blacklister" - // TODO: Determine the simulation weight value - defaultWeightMsgUpdateBlacklister int = 100 - - opWeightMsgUpdateOwner = "op_weight_msg_update_owner" - // TODO: Determine the simulation weight value - defaultWeightMsgUpdateOwner int = 100 - - opWeightMsgConfigureMinter = "op_weight_msg_configure_minter" - // TODO: Determine the simulation weight value - defaultWeightMsgConfigureMinter int = 100 - - opWeightMsgRemoveMinter = "op_weight_msg_remove_minter" - // TODO: Determine the simulation weight value - defaultWeightMsgRemoveMinter int = 100 - - opWeightMsgMint = "op_weight_msg_mint" - // TODO: Determine the simulation weight value - defaultWeightMsgMint int = 100 - - opWeightMsgBurn = "op_weight_msg_burn" - // TODO: Determine the simulation weight value - defaultWeightMsgBurn int = 100 - - opWeightMsgBlacklist = "op_weight_msg_blacklist" - // TODO: Determine the simulation weight value - defaultWeightMsgBlacklist int = 100 - - opWeightMsgUnblacklist = "op_weight_msg_unblacklist" - // TODO: Determine the simulation weight value - defaultWeightMsgUnblacklist int = 100 - - opWeightMsgPause = "op_weight_msg_pause" - // TODO: Determine the simulation weight value - defaultWeightMsgPause int = 100 - - opWeightMsgUnpause = "op_weight_msg_unpause" - // TODO: Determine the simulation weight value - defaultWeightMsgUnpause int = 100 - - opWeightMsgConfigureMinterController = "op_weight_msg_configure_minter_controller" - // TODO: Determine the simulation weight value - defaultWeightMsgConfigureMinterController int = 100 - - opWeightMsgRemoveMinterController = "op_weight_msg_remove_minter_controller" - // TODO: Determine the simulation weight value - defaultWeightMsgRemoveMinterController int = 100 - - // this line is used by starport scaffolding # simapp/module/const -) - -// GenerateGenesisState creates a randomized GenState of the module -func (AppModule) GenerateGenesisState(simState *module.SimulationState) { - // x/fiattokenfactory - - genesis := types.GenesisState{ - MintersList: []types.Minters{ - { - Address: authtypes.NewModuleAddress("cctp").String(), - }, - }, - MinterControllerList: []types.MinterController{ - { - Minter: authtypes.NewModuleAddress("cctp").String(), - }, - }, - MintingDenom: &types.MintingDenom{Denom: "uusdc"}, - } - - simState.GenState[types.ModuleName] = simState.Cdc.MustMarshalJSON(&genesis) - - // x/bank - - bankGenesisBz := simState.GenState[banktypes.ModuleName] - var bankGenesis banktypes.GenesisState - simState.Cdc.MustUnmarshalJSON(bankGenesisBz, &bankGenesis) - - bankGenesis.DenomMetadata = append(bankGenesis.DenomMetadata, banktypes.Metadata{ - Description: "USD Coin", - DenomUnits: []*banktypes.DenomUnit{ - { - Denom: "uusdc", - Exponent: 0, - Aliases: []string{"microusdc"}, - }, - { - Denom: "usdc", - Exponent: 6, - Aliases: []string{}, - }, - }, - Base: "uusdc", - Display: "usdc", - Name: "usdc", - Symbol: "USDC", - }) - - simState.GenState[banktypes.ModuleName] = simState.Cdc.MustMarshalJSON(&bankGenesis) -} - -// ProposalContents doesn't return any content functions for governance proposals -func (AppModule) ProposalContents(_ module.SimulationState) []simtypes.WeightedProposalContent { - return nil -} - -// RandomizedParams creates randomized param changes for the simulator -func (am AppModule) RandomizedParams(_ *rand.Rand) []simtypes.ParamChange { - - return []simtypes.ParamChange{} -} - -// RegisterStoreDecoder registers a decoder -func (am AppModule) RegisterStoreDecoder(_ sdk.StoreDecoderRegistry) {} - -// WeightedOperations returns the all the gov module operations with their respective weights. -func (am AppModule) WeightedOperations(simState module.SimulationState) []simtypes.WeightedOperation { - operations := make([]simtypes.WeightedOperation, 0) - - var weightMsgUpdateMasterMinter int - simState.AppParams.GetOrGenerate(simState.Cdc, opWeightMsgUpdateMasterMinter, &weightMsgUpdateMasterMinter, nil, - func(_ *rand.Rand) { - weightMsgUpdateMasterMinter = defaultWeightMsgUpdateMasterMinter - }, - ) - operations = append(operations, simulation.NewWeightedOperation( - weightMsgUpdateMasterMinter, - tokenfactorysimulation.SimulateMsgUpdateMasterMinter(am.accountKeeper, am.bankKeeper, am.keeper), - )) - - var weightMsgUpdatePauser int - simState.AppParams.GetOrGenerate(simState.Cdc, opWeightMsgUpdatePauser, &weightMsgUpdatePauser, nil, - func(_ *rand.Rand) { - weightMsgUpdatePauser = defaultWeightMsgUpdatePauser - }, - ) - operations = append(operations, simulation.NewWeightedOperation( - weightMsgUpdatePauser, - tokenfactorysimulation.SimulateMsgUpdatePauser(am.accountKeeper, am.bankKeeper, am.keeper), - )) - - var weightMsgUpdateBlacklister int - simState.AppParams.GetOrGenerate(simState.Cdc, opWeightMsgUpdateBlacklister, &weightMsgUpdateBlacklister, nil, - func(_ *rand.Rand) { - weightMsgUpdateBlacklister = defaultWeightMsgUpdateBlacklister - }, - ) - operations = append(operations, simulation.NewWeightedOperation( - weightMsgUpdateBlacklister, - tokenfactorysimulation.SimulateMsgUpdateBlacklister(am.accountKeeper, am.bankKeeper, am.keeper), - )) - - var weightMsgUpdateOwner int - simState.AppParams.GetOrGenerate(simState.Cdc, opWeightMsgUpdateOwner, &weightMsgUpdateOwner, nil, - func(_ *rand.Rand) { - weightMsgUpdateOwner = defaultWeightMsgUpdateOwner - }, - ) - operations = append(operations, simulation.NewWeightedOperation( - weightMsgUpdateOwner, - tokenfactorysimulation.SimulateMsgUpdateOwner(am.accountKeeper, am.bankKeeper, am.keeper), - )) - - var weightMsgConfigureMinter int - simState.AppParams.GetOrGenerate(simState.Cdc, opWeightMsgConfigureMinter, &weightMsgConfigureMinter, nil, - func(_ *rand.Rand) { - weightMsgConfigureMinter = defaultWeightMsgConfigureMinter - }, - ) - operations = append(operations, simulation.NewWeightedOperation( - weightMsgConfigureMinter, - tokenfactorysimulation.SimulateMsgConfigureMinter(am.accountKeeper, am.bankKeeper, am.keeper), - )) - - var weightMsgRemoveMinter int - simState.AppParams.GetOrGenerate(simState.Cdc, opWeightMsgRemoveMinter, &weightMsgRemoveMinter, nil, - func(_ *rand.Rand) { - weightMsgRemoveMinter = defaultWeightMsgRemoveMinter - }, - ) - operations = append(operations, simulation.NewWeightedOperation( - weightMsgRemoveMinter, - tokenfactorysimulation.SimulateMsgRemoveMinter(am.accountKeeper, am.bankKeeper, am.keeper), - )) - - var weightMsgMint int - simState.AppParams.GetOrGenerate(simState.Cdc, opWeightMsgMint, &weightMsgMint, nil, - func(_ *rand.Rand) { - weightMsgMint = defaultWeightMsgMint - }, - ) - operations = append(operations, simulation.NewWeightedOperation( - weightMsgMint, - tokenfactorysimulation.SimulateMsgMint(am.accountKeeper, am.bankKeeper, am.keeper), - )) - - var weightMsgBurn int - simState.AppParams.GetOrGenerate(simState.Cdc, opWeightMsgBurn, &weightMsgBurn, nil, - func(_ *rand.Rand) { - weightMsgBurn = defaultWeightMsgBurn - }, - ) - operations = append(operations, simulation.NewWeightedOperation( - weightMsgBurn, - tokenfactorysimulation.SimulateMsgBurn(am.accountKeeper, am.bankKeeper, am.keeper), - )) - - var weightMsgBlacklist int - simState.AppParams.GetOrGenerate(simState.Cdc, opWeightMsgBlacklist, &weightMsgBlacklist, nil, - func(_ *rand.Rand) { - weightMsgBlacklist = defaultWeightMsgBlacklist - }, - ) - operations = append(operations, simulation.NewWeightedOperation( - weightMsgBlacklist, - tokenfactorysimulation.SimulateMsgBlacklist(am.accountKeeper, am.bankKeeper, am.keeper), - )) - - var weightMsgUnblacklist int - simState.AppParams.GetOrGenerate(simState.Cdc, opWeightMsgUnblacklist, &weightMsgUnblacklist, nil, - func(_ *rand.Rand) { - weightMsgUnblacklist = defaultWeightMsgUnblacklist - }, - ) - operations = append(operations, simulation.NewWeightedOperation( - weightMsgUnblacklist, - tokenfactorysimulation.SimulateMsgUnblacklist(am.accountKeeper, am.bankKeeper, am.keeper), - )) - - var weightMsgPause int - simState.AppParams.GetOrGenerate(simState.Cdc, opWeightMsgPause, &weightMsgPause, nil, - func(_ *rand.Rand) { - weightMsgPause = defaultWeightMsgPause - }, - ) - operations = append(operations, simulation.NewWeightedOperation( - weightMsgPause, - tokenfactorysimulation.SimulateMsgPause(am.accountKeeper, am.bankKeeper, am.keeper), - )) - - var weightMsgUnpause int - simState.AppParams.GetOrGenerate(simState.Cdc, opWeightMsgUnpause, &weightMsgUnpause, nil, - func(_ *rand.Rand) { - weightMsgUnpause = defaultWeightMsgUnpause - }, - ) - operations = append(operations, simulation.NewWeightedOperation( - weightMsgUnpause, - tokenfactorysimulation.SimulateMsgUnpause(am.accountKeeper, am.bankKeeper, am.keeper), - )) - - var weightMsgConfigureMinterController int - simState.AppParams.GetOrGenerate(simState.Cdc, opWeightMsgConfigureMinterController, &weightMsgConfigureMinterController, nil, - func(_ *rand.Rand) { - weightMsgConfigureMinterController = defaultWeightMsgConfigureMinterController - }, - ) - operations = append(operations, simulation.NewWeightedOperation( - weightMsgConfigureMinterController, - tokenfactorysimulation.SimulateMsgConfigureMinterController(am.accountKeeper, am.bankKeeper, am.keeper), - )) - - var weightMsgRemoveMinterController int - simState.AppParams.GetOrGenerate(simState.Cdc, opWeightMsgRemoveMinterController, &weightMsgRemoveMinterController, nil, - func(_ *rand.Rand) { - weightMsgRemoveMinterController = defaultWeightMsgRemoveMinterController - }, - ) - operations = append(operations, simulation.NewWeightedOperation( - weightMsgRemoveMinterController, - tokenfactorysimulation.SimulateMsgRemoveMinterController(am.accountKeeper, am.bankKeeper, am.keeper), - )) - - // this line is used by starport scaffolding # simapp/module/operation - - return operations -} diff --git a/x/fiattokenfactory/simulation/blacklist.go b/x/fiattokenfactory/simulation/blacklist.go deleted file mode 100644 index 4da0173b..00000000 --- a/x/fiattokenfactory/simulation/blacklist.go +++ /dev/null @@ -1,29 +0,0 @@ -package simulation - -import ( - "math/rand" - - "github.com/cosmos/cosmos-sdk/baseapp" - sdk "github.com/cosmos/cosmos-sdk/types" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/keeper" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" -) - -func SimulateMsgBlacklist( - ak types.AccountKeeper, - bk types.BankKeeper, - k *keeper.Keeper, -) simtypes.Operation { - return func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accs []simtypes.Account, chainID string, - ) (simtypes.OperationMsg, []simtypes.FutureOperation, error) { - simAccount, _ := simtypes.RandomAcc(r, accs) - msg := &types.MsgBlacklist{ - From: simAccount.Address.String(), - } - - // TODO: Handling the Blacklist simulation - - return simtypes.NoOpMsg(types.ModuleName, msg.Type(), "Blacklist simulation not implemented"), nil, nil - } -} diff --git a/x/fiattokenfactory/simulation/burn.go b/x/fiattokenfactory/simulation/burn.go deleted file mode 100644 index 4ec20195..00000000 --- a/x/fiattokenfactory/simulation/burn.go +++ /dev/null @@ -1,29 +0,0 @@ -package simulation - -import ( - "math/rand" - - "github.com/cosmos/cosmos-sdk/baseapp" - sdk "github.com/cosmos/cosmos-sdk/types" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/keeper" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" -) - -func SimulateMsgBurn( - ak types.AccountKeeper, - bk types.BankKeeper, - k *keeper.Keeper, -) simtypes.Operation { - return func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accs []simtypes.Account, chainID string, - ) (simtypes.OperationMsg, []simtypes.FutureOperation, error) { - simAccount, _ := simtypes.RandomAcc(r, accs) - msg := &types.MsgBurn{ - From: simAccount.Address.String(), - } - - // TODO: Handling the Burn simulation - - return simtypes.NoOpMsg(types.ModuleName, msg.Type(), "Burn simulation not implemented"), nil, nil - } -} diff --git a/x/fiattokenfactory/simulation/configure_minter.go b/x/fiattokenfactory/simulation/configure_minter.go deleted file mode 100644 index bcb0bff0..00000000 --- a/x/fiattokenfactory/simulation/configure_minter.go +++ /dev/null @@ -1,29 +0,0 @@ -package simulation - -import ( - "math/rand" - - "github.com/cosmos/cosmos-sdk/baseapp" - sdk "github.com/cosmos/cosmos-sdk/types" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/keeper" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" -) - -func SimulateMsgConfigureMinter( - ak types.AccountKeeper, - bk types.BankKeeper, - k *keeper.Keeper, -) simtypes.Operation { - return func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accs []simtypes.Account, chainID string, - ) (simtypes.OperationMsg, []simtypes.FutureOperation, error) { - simAccount, _ := simtypes.RandomAcc(r, accs) - msg := &types.MsgConfigureMinter{ - From: simAccount.Address.String(), - } - - // TODO: Handling the ConfigureMinter simulation - - return simtypes.NoOpMsg(types.ModuleName, msg.Type(), "ConfigureMinter simulation not implemented"), nil, nil - } -} diff --git a/x/fiattokenfactory/simulation/configure_minter_controller.go b/x/fiattokenfactory/simulation/configure_minter_controller.go deleted file mode 100644 index 07ac38bd..00000000 --- a/x/fiattokenfactory/simulation/configure_minter_controller.go +++ /dev/null @@ -1,29 +0,0 @@ -package simulation - -import ( - "math/rand" - - "github.com/cosmos/cosmos-sdk/baseapp" - sdk "github.com/cosmos/cosmos-sdk/types" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/keeper" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" -) - -func SimulateMsgConfigureMinterController( - ak types.AccountKeeper, - bk types.BankKeeper, - k *keeper.Keeper, -) simtypes.Operation { - return func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accs []simtypes.Account, chainID string, - ) (simtypes.OperationMsg, []simtypes.FutureOperation, error) { - simAccount, _ := simtypes.RandomAcc(r, accs) - msg := &types.MsgConfigureMinterController{ - From: simAccount.Address.String(), - } - - // TODO: Handling the ConfigureMinterController simulation - - return simtypes.NoOpMsg(types.ModuleName, msg.Type(), "ConfigureMinterController simulation not implemented"), nil, nil - } -} diff --git a/x/fiattokenfactory/simulation/helpers.go b/x/fiattokenfactory/simulation/helpers.go deleted file mode 100644 index 92c437c0..00000000 --- a/x/fiattokenfactory/simulation/helpers.go +++ /dev/null @@ -1,15 +0,0 @@ -package simulation - -import ( - sdk "github.com/cosmos/cosmos-sdk/types" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" -) - -// FindAccount find a specific address from an account list -func FindAccount(accs []simtypes.Account, address string) (simtypes.Account, bool) { - creator, err := sdk.AccAddressFromBech32(address) - if err != nil { - panic(err) - } - return simtypes.FindAccount(accs, creator) -} diff --git a/x/fiattokenfactory/simulation/mint.go b/x/fiattokenfactory/simulation/mint.go deleted file mode 100644 index 14be291e..00000000 --- a/x/fiattokenfactory/simulation/mint.go +++ /dev/null @@ -1,29 +0,0 @@ -package simulation - -import ( - "math/rand" - - "github.com/cosmos/cosmos-sdk/baseapp" - sdk "github.com/cosmos/cosmos-sdk/types" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/keeper" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" -) - -func SimulateMsgMint( - ak types.AccountKeeper, - bk types.BankKeeper, - k *keeper.Keeper, -) simtypes.Operation { - return func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accs []simtypes.Account, chainID string, - ) (simtypes.OperationMsg, []simtypes.FutureOperation, error) { - simAccount, _ := simtypes.RandomAcc(r, accs) - msg := &types.MsgMint{ - From: simAccount.Address.String(), - } - - // TODO: Handling the Mint simulation - - return simtypes.NoOpMsg(types.ModuleName, msg.Type(), "Mint simulation not implemented"), nil, nil - } -} diff --git a/x/fiattokenfactory/simulation/pause.go b/x/fiattokenfactory/simulation/pause.go deleted file mode 100644 index d8537be3..00000000 --- a/x/fiattokenfactory/simulation/pause.go +++ /dev/null @@ -1,29 +0,0 @@ -package simulation - -import ( - "math/rand" - - "github.com/cosmos/cosmos-sdk/baseapp" - sdk "github.com/cosmos/cosmos-sdk/types" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/keeper" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" -) - -func SimulateMsgPause( - ak types.AccountKeeper, - bk types.BankKeeper, - k *keeper.Keeper, -) simtypes.Operation { - return func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accs []simtypes.Account, chainID string, - ) (simtypes.OperationMsg, []simtypes.FutureOperation, error) { - simAccount, _ := simtypes.RandomAcc(r, accs) - msg := &types.MsgPause{ - From: simAccount.Address.String(), - } - - // TODO: Handling the Pause simulation - - return simtypes.NoOpMsg(types.ModuleName, msg.Type(), "Pause simulation not implemented"), nil, nil - } -} diff --git a/x/fiattokenfactory/simulation/remove_minter.go b/x/fiattokenfactory/simulation/remove_minter.go deleted file mode 100644 index 63f16a97..00000000 --- a/x/fiattokenfactory/simulation/remove_minter.go +++ /dev/null @@ -1,29 +0,0 @@ -package simulation - -import ( - "math/rand" - - "github.com/cosmos/cosmos-sdk/baseapp" - sdk "github.com/cosmos/cosmos-sdk/types" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/keeper" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" -) - -func SimulateMsgRemoveMinter( - ak types.AccountKeeper, - bk types.BankKeeper, - k *keeper.Keeper, -) simtypes.Operation { - return func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accs []simtypes.Account, chainID string, - ) (simtypes.OperationMsg, []simtypes.FutureOperation, error) { - simAccount, _ := simtypes.RandomAcc(r, accs) - msg := &types.MsgRemoveMinter{ - From: simAccount.Address.String(), - } - - // TODO: Handling the RemoveMinter simulation - - return simtypes.NoOpMsg(types.ModuleName, msg.Type(), "RemoveMinter simulation not implemented"), nil, nil - } -} diff --git a/x/fiattokenfactory/simulation/remove_minter_controller.go b/x/fiattokenfactory/simulation/remove_minter_controller.go deleted file mode 100644 index 3e5b48f8..00000000 --- a/x/fiattokenfactory/simulation/remove_minter_controller.go +++ /dev/null @@ -1,29 +0,0 @@ -package simulation - -import ( - "math/rand" - - "github.com/cosmos/cosmos-sdk/baseapp" - sdk "github.com/cosmos/cosmos-sdk/types" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/keeper" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" -) - -func SimulateMsgRemoveMinterController( - ak types.AccountKeeper, - bk types.BankKeeper, - k *keeper.Keeper, -) simtypes.Operation { - return func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accs []simtypes.Account, chainID string, - ) (simtypes.OperationMsg, []simtypes.FutureOperation, error) { - simAccount, _ := simtypes.RandomAcc(r, accs) - msg := &types.MsgRemoveMinterController{ - From: simAccount.Address.String(), - } - - // TODO: Handling the RemoveMinterController simulation - - return simtypes.NoOpMsg(types.ModuleName, msg.Type(), "RemoveMinterController simulation not implemented"), nil, nil - } -} diff --git a/x/fiattokenfactory/simulation/unblacklist.go b/x/fiattokenfactory/simulation/unblacklist.go deleted file mode 100644 index 38dd9c36..00000000 --- a/x/fiattokenfactory/simulation/unblacklist.go +++ /dev/null @@ -1,29 +0,0 @@ -package simulation - -import ( - "math/rand" - - "github.com/cosmos/cosmos-sdk/baseapp" - sdk "github.com/cosmos/cosmos-sdk/types" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/keeper" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" -) - -func SimulateMsgUnblacklist( - ak types.AccountKeeper, - bk types.BankKeeper, - k *keeper.Keeper, -) simtypes.Operation { - return func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accs []simtypes.Account, chainID string, - ) (simtypes.OperationMsg, []simtypes.FutureOperation, error) { - simAccount, _ := simtypes.RandomAcc(r, accs) - msg := &types.MsgUnblacklist{ - From: simAccount.Address.String(), - } - - // TODO: Handling the Unblacklist simulation - - return simtypes.NoOpMsg(types.ModuleName, msg.Type(), "Unblacklist simulation not implemented"), nil, nil - } -} diff --git a/x/fiattokenfactory/simulation/unpause.go b/x/fiattokenfactory/simulation/unpause.go deleted file mode 100644 index a60955d4..00000000 --- a/x/fiattokenfactory/simulation/unpause.go +++ /dev/null @@ -1,29 +0,0 @@ -package simulation - -import ( - "math/rand" - - "github.com/cosmos/cosmos-sdk/baseapp" - sdk "github.com/cosmos/cosmos-sdk/types" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/keeper" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" -) - -func SimulateMsgUnpause( - ak types.AccountKeeper, - bk types.BankKeeper, - k *keeper.Keeper, -) simtypes.Operation { - return func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accs []simtypes.Account, chainID string, - ) (simtypes.OperationMsg, []simtypes.FutureOperation, error) { - simAccount, _ := simtypes.RandomAcc(r, accs) - msg := &types.MsgUnpause{ - From: simAccount.Address.String(), - } - - // TODO: Handling the Unpause simulation - - return simtypes.NoOpMsg(types.ModuleName, msg.Type(), "Unpause simulation not implemented"), nil, nil - } -} diff --git a/x/fiattokenfactory/simulation/update_blacklister.go b/x/fiattokenfactory/simulation/update_blacklister.go deleted file mode 100644 index 41460449..00000000 --- a/x/fiattokenfactory/simulation/update_blacklister.go +++ /dev/null @@ -1,29 +0,0 @@ -package simulation - -import ( - "math/rand" - - "github.com/cosmos/cosmos-sdk/baseapp" - sdk "github.com/cosmos/cosmos-sdk/types" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/keeper" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" -) - -func SimulateMsgUpdateBlacklister( - ak types.AccountKeeper, - bk types.BankKeeper, - k *keeper.Keeper, -) simtypes.Operation { - return func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accs []simtypes.Account, chainID string, - ) (simtypes.OperationMsg, []simtypes.FutureOperation, error) { - simAccount, _ := simtypes.RandomAcc(r, accs) - msg := &types.MsgUpdateBlacklister{ - From: simAccount.Address.String(), - } - - // TODO: Handling the UpdateBlacklister simulation - - return simtypes.NoOpMsg(types.ModuleName, msg.Type(), "UpdateBlacklister simulation not implemented"), nil, nil - } -} diff --git a/x/fiattokenfactory/simulation/update_master_minter.go b/x/fiattokenfactory/simulation/update_master_minter.go deleted file mode 100644 index 43c67bf4..00000000 --- a/x/fiattokenfactory/simulation/update_master_minter.go +++ /dev/null @@ -1,29 +0,0 @@ -package simulation - -import ( - "math/rand" - - "github.com/cosmos/cosmos-sdk/baseapp" - sdk "github.com/cosmos/cosmos-sdk/types" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/keeper" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" -) - -func SimulateMsgUpdateMasterMinter( - ak types.AccountKeeper, - bk types.BankKeeper, - k *keeper.Keeper, -) simtypes.Operation { - return func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accs []simtypes.Account, chainID string, - ) (simtypes.OperationMsg, []simtypes.FutureOperation, error) { - simAccount, _ := simtypes.RandomAcc(r, accs) - msg := &types.MsgUpdateMasterMinter{ - From: simAccount.Address.String(), - } - - // TODO: Handling the UpdateMasterMinter simulation - - return simtypes.NoOpMsg(types.ModuleName, msg.Type(), "UpdateMasterMinter simulation not implemented"), nil, nil - } -} diff --git a/x/fiattokenfactory/simulation/update_owner.go b/x/fiattokenfactory/simulation/update_owner.go deleted file mode 100644 index fcbcc536..00000000 --- a/x/fiattokenfactory/simulation/update_owner.go +++ /dev/null @@ -1,29 +0,0 @@ -package simulation - -import ( - "math/rand" - - "github.com/cosmos/cosmos-sdk/baseapp" - sdk "github.com/cosmos/cosmos-sdk/types" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/keeper" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" -) - -func SimulateMsgUpdateOwner( - ak types.AccountKeeper, - bk types.BankKeeper, - k *keeper.Keeper, -) simtypes.Operation { - return func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accs []simtypes.Account, chainID string, - ) (simtypes.OperationMsg, []simtypes.FutureOperation, error) { - simAccount, _ := simtypes.RandomAcc(r, accs) - msg := &types.MsgUpdateOwner{ - From: simAccount.Address.String(), - } - - // TODO: Handling the UpdateOwner simulation - - return simtypes.NoOpMsg(types.ModuleName, msg.Type(), "UpdateOwner simulation not implemented"), nil, nil - } -} diff --git a/x/fiattokenfactory/simulation/update_pauser.go b/x/fiattokenfactory/simulation/update_pauser.go deleted file mode 100644 index 9b6ef1e5..00000000 --- a/x/fiattokenfactory/simulation/update_pauser.go +++ /dev/null @@ -1,29 +0,0 @@ -package simulation - -import ( - "math/rand" - - "github.com/cosmos/cosmos-sdk/baseapp" - sdk "github.com/cosmos/cosmos-sdk/types" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/keeper" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" -) - -func SimulateMsgUpdatePauser( - ak types.AccountKeeper, - bk types.BankKeeper, - k *keeper.Keeper, -) simtypes.Operation { - return func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accs []simtypes.Account, chainID string, - ) (simtypes.OperationMsg, []simtypes.FutureOperation, error) { - simAccount, _ := simtypes.RandomAcc(r, accs) - msg := &types.MsgUpdatePauser{ - From: simAccount.Address.String(), - } - - // TODO: Handling the UpdatePauser simulation - - return simtypes.NoOpMsg(types.ModuleName, msg.Type(), "UpdatePauser simulation not implemented"), nil, nil - } -} diff --git a/x/fiattokenfactory/types/blacklisted.pb.go b/x/fiattokenfactory/types/blacklisted.pb.go deleted file mode 100644 index 39bc81c7..00000000 --- a/x/fiattokenfactory/types/blacklisted.pb.go +++ /dev/null @@ -1,320 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: fiattokenfactory/blacklisted.proto - -package types - -import ( - fmt "fmt" - proto "github.com/gogo/protobuf/proto" - io "io" - math "math" - math_bits "math/bits" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -type Blacklisted struct { - AddressBz []byte `protobuf:"bytes,1,opt,name=addressBz,proto3" json:"addressBz,omitempty"` -} - -func (m *Blacklisted) Reset() { *m = Blacklisted{} } -func (m *Blacklisted) String() string { return proto.CompactTextString(m) } -func (*Blacklisted) ProtoMessage() {} -func (*Blacklisted) Descriptor() ([]byte, []int) { - return fileDescriptor_c3e57170a8be2162, []int{0} -} -func (m *Blacklisted) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Blacklisted) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Blacklisted.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Blacklisted) XXX_Merge(src proto.Message) { - xxx_messageInfo_Blacklisted.Merge(m, src) -} -func (m *Blacklisted) XXX_Size() int { - return m.Size() -} -func (m *Blacklisted) XXX_DiscardUnknown() { - xxx_messageInfo_Blacklisted.DiscardUnknown(m) -} - -var xxx_messageInfo_Blacklisted proto.InternalMessageInfo - -func (m *Blacklisted) GetAddressBz() []byte { - if m != nil { - return m.AddressBz - } - return nil -} - -func init() { - proto.RegisterType((*Blacklisted)(nil), "noble.fiattokenfactory.Blacklisted") -} - -func init() { - proto.RegisterFile("fiattokenfactory/blacklisted.proto", fileDescriptor_c3e57170a8be2162) -} - -var fileDescriptor_c3e57170a8be2162 = []byte{ - // 178 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x4a, 0xcb, 0x4c, 0x2c, - 0x29, 0xc9, 0xcf, 0x4e, 0xcd, 0x4b, 0x4b, 0x4c, 0x2e, 0xc9, 0x2f, 0xaa, 0xd4, 0x4f, 0xca, 0x49, - 0x4c, 0xce, 0xce, 0xc9, 0x2c, 0x2e, 0x49, 0x4d, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, - 0xcb, 0xcb, 0x4f, 0xca, 0x49, 0xd5, 0x43, 0x57, 0xa9, 0xa4, 0xcd, 0xc5, 0xed, 0x84, 0x50, 0x2c, - 0x24, 0xc3, 0xc5, 0x99, 0x98, 0x92, 0x52, 0x94, 0x5a, 0x5c, 0xec, 0x54, 0x25, 0xc1, 0xa8, 0xc0, - 0xa8, 0xc1, 0x13, 0x84, 0x10, 0x70, 0x8a, 0x38, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, 0xc6, - 0x07, 0x8f, 0xe4, 0x18, 0x27, 0x3c, 0x96, 0x63, 0xb8, 0xf0, 0x58, 0x8e, 0xe1, 0xc6, 0x63, 0x39, - 0x86, 0x28, 0xbb, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0xfd, 0xe2, 0x92, - 0xa2, 0xc4, 0xbc, 0xf4, 0xd4, 0x9c, 0xfc, 0xb2, 0x54, 0xdd, 0xb2, 0xd4, 0xbc, 0x92, 0xd2, 0xa2, - 0xd4, 0x62, 0x7d, 0xb0, 0xf5, 0xfa, 0x15, 0xfa, 0x18, 0x4e, 0x2d, 0xa9, 0x2c, 0x48, 0x2d, 0x4e, - 0x62, 0x03, 0xbb, 0xd2, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0x42, 0xcd, 0x4e, 0x79, 0xcb, 0x00, - 0x00, 0x00, -} - -func (m *Blacklisted) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Blacklisted) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Blacklisted) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.AddressBz) > 0 { - i -= len(m.AddressBz) - copy(dAtA[i:], m.AddressBz) - i = encodeVarintBlacklisted(dAtA, i, uint64(len(m.AddressBz))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintBlacklisted(dAtA []byte, offset int, v uint64) int { - offset -= sovBlacklisted(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *Blacklisted) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.AddressBz) - if l > 0 { - n += 1 + l + sovBlacklisted(uint64(l)) - } - return n -} - -func sovBlacklisted(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozBlacklisted(x uint64) (n int) { - return sovBlacklisted(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *Blacklisted) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlacklisted - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Blacklisted: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Blacklisted: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AddressBz", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlacklisted - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthBlacklisted - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBlacklisted - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AddressBz = append(m.AddressBz[:0], dAtA[iNdEx:postIndex]...) - if m.AddressBz == nil { - m.AddressBz = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipBlacklisted(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthBlacklisted - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipBlacklisted(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowBlacklisted - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowBlacklisted - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowBlacklisted - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthBlacklisted - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupBlacklisted - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthBlacklisted - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthBlacklisted = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowBlacklisted = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupBlacklisted = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/fiattokenfactory/types/blacklister.pb.go b/x/fiattokenfactory/types/blacklister.pb.go deleted file mode 100644 index a7d93b10..00000000 --- a/x/fiattokenfactory/types/blacklister.pb.go +++ /dev/null @@ -1,317 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: fiattokenfactory/blacklister.proto - -package types - -import ( - fmt "fmt" - proto "github.com/gogo/protobuf/proto" - io "io" - math "math" - math_bits "math/bits" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -type Blacklister struct { - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` -} - -func (m *Blacklister) Reset() { *m = Blacklister{} } -func (m *Blacklister) String() string { return proto.CompactTextString(m) } -func (*Blacklister) ProtoMessage() {} -func (*Blacklister) Descriptor() ([]byte, []int) { - return fileDescriptor_eb6b8f9253711167, []int{0} -} -func (m *Blacklister) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Blacklister) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Blacklister.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Blacklister) XXX_Merge(src proto.Message) { - xxx_messageInfo_Blacklister.Merge(m, src) -} -func (m *Blacklister) XXX_Size() int { - return m.Size() -} -func (m *Blacklister) XXX_DiscardUnknown() { - xxx_messageInfo_Blacklister.DiscardUnknown(m) -} - -var xxx_messageInfo_Blacklister proto.InternalMessageInfo - -func (m *Blacklister) GetAddress() string { - if m != nil { - return m.Address - } - return "" -} - -func init() { - proto.RegisterType((*Blacklister)(nil), "noble.fiattokenfactory.Blacklister") -} - -func init() { - proto.RegisterFile("fiattokenfactory/blacklister.proto", fileDescriptor_eb6b8f9253711167) -} - -var fileDescriptor_eb6b8f9253711167 = []byte{ - // 176 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x4a, 0xcb, 0x4c, 0x2c, - 0x29, 0xc9, 0xcf, 0x4e, 0xcd, 0x4b, 0x4b, 0x4c, 0x2e, 0xc9, 0x2f, 0xaa, 0xd4, 0x4f, 0xca, 0x49, - 0x4c, 0xce, 0xce, 0xc9, 0x2c, 0x2e, 0x49, 0x2d, 0xd2, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, - 0xcb, 0xcb, 0x4f, 0xca, 0x49, 0xd5, 0x43, 0x57, 0xa9, 0xa4, 0xce, 0xc5, 0xed, 0x84, 0x50, 0x2c, - 0x24, 0xc1, 0xc5, 0x9e, 0x98, 0x92, 0x52, 0x94, 0x5a, 0x5c, 0x2c, 0xc1, 0xa8, 0xc0, 0xa8, 0xc1, - 0x19, 0x04, 0xe3, 0x3a, 0x45, 0x9c, 0x78, 0x24, 0xc7, 0x78, 0xe1, 0x91, 0x1c, 0xe3, 0x83, 0x47, - 0x72, 0x8c, 0x13, 0x1e, 0xcb, 0x31, 0x5c, 0x78, 0x2c, 0xc7, 0x70, 0xe3, 0xb1, 0x1c, 0x43, 0x94, - 0x5d, 0x7a, 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e, 0xae, 0x7e, 0x71, 0x49, 0x51, 0x62, - 0x5e, 0x7a, 0x6a, 0x4e, 0x7e, 0x59, 0xaa, 0x6e, 0x59, 0x6a, 0x5e, 0x49, 0x69, 0x51, 0x6a, 0xb1, - 0x3e, 0xd8, 0x6a, 0xfd, 0x0a, 0x7d, 0x0c, 0x67, 0x96, 0x54, 0x16, 0xa4, 0x16, 0x27, 0xb1, 0x81, - 0x5d, 0x68, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x37, 0x77, 0x46, 0x9b, 0xc7, 0x00, 0x00, 0x00, -} - -func (m *Blacklister) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Blacklister) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Blacklister) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Address) > 0 { - i -= len(m.Address) - copy(dAtA[i:], m.Address) - i = encodeVarintBlacklister(dAtA, i, uint64(len(m.Address))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintBlacklister(dAtA []byte, offset int, v uint64) int { - offset -= sovBlacklister(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *Blacklister) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Address) - if l > 0 { - n += 1 + l + sovBlacklister(uint64(l)) - } - return n -} - -func sovBlacklister(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozBlacklister(x uint64) (n int) { - return sovBlacklister(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *Blacklister) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlacklister - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Blacklister: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Blacklister: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBlacklister - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBlacklister - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBlacklister - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Address = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipBlacklister(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthBlacklister - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipBlacklister(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowBlacklister - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowBlacklister - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowBlacklister - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthBlacklister - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupBlacklister - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthBlacklister - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthBlacklister = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowBlacklister = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupBlacklister = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/fiattokenfactory/types/codec.go b/x/fiattokenfactory/types/codec.go deleted file mode 100644 index b7508c17..00000000 --- a/x/fiattokenfactory/types/codec.go +++ /dev/null @@ -1,59 +0,0 @@ -package types - -import ( - "github.com/cosmos/cosmos-sdk/codec" - cdctypes "github.com/cosmos/cosmos-sdk/codec/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/msgservice" -) - -func init() { - RegisterLegacyAminoCodec(amino) - amino.Seal() -} - -func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) { - cdc.RegisterConcrete(&MsgUpdateMasterMinter{}, "fiattokenfactory/UpdateMasterMinter", nil) - cdc.RegisterConcrete(&MsgUpdatePauser{}, "fiattokenfactory/UpdatePauser", nil) - cdc.RegisterConcrete(&MsgUpdateBlacklister{}, "fiattokenfactory/UpdateBlacklister", nil) - cdc.RegisterConcrete(&MsgUpdateOwner{}, "fiattokenfactory/UpdateOwner", nil) - cdc.RegisterConcrete(&MsgConfigureMinter{}, "fiattokenfactory/ConfigureMinter", nil) - cdc.RegisterConcrete(&MsgRemoveMinter{}, "fiattokenfactory/RemoveMinter", nil) - cdc.RegisterConcrete(&MsgMint{}, "fiattokenfactory/Mint", nil) - cdc.RegisterConcrete(&MsgBurn{}, "fiattokenfactory/Burn", nil) - cdc.RegisterConcrete(&MsgBlacklist{}, "fiattokenfactory/Blacklist", nil) - cdc.RegisterConcrete(&MsgUnblacklist{}, "fiattokenfactory/Unblacklist", nil) - cdc.RegisterConcrete(&MsgPause{}, "fiattokenfactory/Pause", nil) - cdc.RegisterConcrete(&MsgUnpause{}, "fiattokenfactory/Unpause", nil) - cdc.RegisterConcrete(&MsgConfigureMinterController{}, "fiattokenfactory/ConfigureMinterController", nil) - cdc.RegisterConcrete(&MsgRemoveMinterController{}, "fiattokenfactory/RemoveMinterController", nil) - // this line is used by starport scaffolding # 2 -} - -func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { - registry.RegisterImplementations((*sdk.Msg)(nil), - &MsgUpdateMasterMinter{}, - &MsgUpdatePauser{}, - &MsgUpdateBlacklister{}, - &MsgUpdateOwner{}, - &MsgConfigureMinter{}, - &MsgRemoveMinter{}, - &MsgMint{}, - &MsgBurn{}, - &MsgBlacklist{}, - &MsgUnblacklist{}, - &MsgPause{}, - &MsgUnpause{}, - &MsgConfigureMinterController{}, - &MsgRemoveMinterController{}, - ) - - // this line is used by starport scaffolding # 3 - - msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc) -} - -var ( - amino = codec.NewLegacyAmino() - ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) -) diff --git a/x/fiattokenfactory/types/errors.go b/x/fiattokenfactory/types/errors.go deleted file mode 100644 index 71995939..00000000 --- a/x/fiattokenfactory/types/errors.go +++ /dev/null @@ -1,21 +0,0 @@ -package types - -// DONTCOVER - -import ( - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -// x/fiattokenfactory module sentinel errors -var ( - ErrUnauthorized = sdkerrors.Register(ModuleName, 2, "unauthorized") - ErrUserNotFound = sdkerrors.Register(ModuleName, 3, "user not found") - ErrMint = sdkerrors.Register(ModuleName, 4, "tokens can not be minted") - ErrSendCoinsToAccount = sdkerrors.Register(ModuleName, 5, "can't send tokens to account") - ErrBurn = sdkerrors.Register(ModuleName, 6, "tokens can not be burned") - ErrPaused = sdkerrors.Register(ModuleName, 7, "the chain is paused") - ErrMintingDenomSet = sdkerrors.Register(ModuleName, 9, "the minting denom has already been set") - ErrUserBlacklisted = sdkerrors.Register(ModuleName, 10, "user is already blacklisted") - ErrAlreadyPrivileged = sdkerrors.Register(ModuleName, 11, "address is already assigned to privileged role") - ErrDenomNotRegistered = sdkerrors.Register(ModuleName, 12, "denom not registered in bank module") -) diff --git a/x/fiattokenfactory/types/expected_keepers.go b/x/fiattokenfactory/types/expected_keepers.go deleted file mode 100644 index 72838b17..00000000 --- a/x/fiattokenfactory/types/expected_keepers.go +++ /dev/null @@ -1,23 +0,0 @@ -package types - -import ( - sdk "github.com/cosmos/cosmos-sdk/types" - authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" -) - -// AccountKeeper defines the expected account keeper used for simulations (noalias) -type AccountKeeper interface { - GetAccount(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI - // Methods imported from account should be defined here -} - -// BankKeeper defines the expected interface needed to retrieve account balances. -type BankKeeper interface { - SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins - MintCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error - BurnCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error - SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error - SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error - GetDenomMetaData(ctx sdk.Context, denom string) (banktypes.Metadata, bool) -} diff --git a/x/fiattokenfactory/types/genesis.go b/x/fiattokenfactory/types/genesis.go deleted file mode 100644 index 35953185..00000000 --- a/x/fiattokenfactory/types/genesis.go +++ /dev/null @@ -1,138 +0,0 @@ -package types - -import ( - "fmt" - - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -// DefaultGenesis returns the default genesis state -func DefaultGenesis() *GenesisState { - return &GenesisState{ - BlacklistedList: []Blacklisted{}, - Paused: nil, - MasterMinter: nil, - MintersList: []Minters{}, - Pauser: nil, - Blacklister: nil, - Owner: nil, - MinterControllerList: []MinterController{}, - MintingDenom: nil, - // this line is used by starport scaffolding # genesis/types/default - Params: DefaultParams(), - } -} - -// Validate performs basic genesis state validation returning an error upon any -// failure. -func (gs GenesisState) Validate() error { - // Check for duplicated index in blacklisted - blacklistedIndexMap := make(map[string]struct{}) - for _, elem := range gs.BlacklistedList { - index := string(BlacklistedKey(elem.AddressBz)) - if _, ok := blacklistedIndexMap[index]; ok { - return fmt.Errorf("duplicated index for blacklisted") - } - blacklistedIndexMap[index] = struct{}{} - } - - // Check for duplicated index in minters and validate minter addr and allowance - mintersIndexMap := make(map[string]struct{}) - for _, elem := range gs.MintersList { - index := string(MintersKey(elem.Address)) - if _, ok := mintersIndexMap[index]; ok { - return fmt.Errorf("duplicated index for minters") - } - mintersIndexMap[index] = struct{}{} - - if _, err := sdk.AccAddressFromBech32(elem.Address); err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid minter address (%s)", err) - } - - if elem.Allowance.IsNil() || elem.Allowance.IsNegative() { - return sdkerrors.Wrap(sdkerrors.ErrInvalidCoins, "minter allowance cannot be nil or negative") - } - } - - // Check for duplicated index in minterController and validate both controller and minter addresses - minterControllerIndexMap := make(map[string]struct{}) - for _, elem := range gs.MinterControllerList { - index := string(MinterControllerKey(elem.Controller)) - if _, ok := minterControllerIndexMap[index]; ok { - return fmt.Errorf("duplicated index for minterController") - } - minterControllerIndexMap[index] = struct{}{} - - if _, err := sdk.AccAddressFromBech32(elem.Minter); err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "minter controller has invalid minter address (%s)", err) - } - - if _, err := sdk.AccAddressFromBech32(elem.Controller); err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "minter controller has invalid controller address (%s)", err) - } - } - - var addresses []sdk.AccAddress - - if gs.Owner != nil { - owner, err := sdk.AccAddressFromBech32(gs.Owner.Address) - if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid owner address (%s)", err) - } - addresses = append(addresses, owner) - } - - if gs.MasterMinter != nil { - masterMinter, err := sdk.AccAddressFromBech32(gs.MasterMinter.Address) - if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid master minter address (%s)", err) - } - addresses = append(addresses, masterMinter) - } - - if gs.Pauser != nil { - pauser, err := sdk.AccAddressFromBech32(gs.Pauser.Address) - if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid pauser address (%s)", err) - } - addresses = append(addresses, pauser) - } - - if gs.Blacklister != nil { - blacklister, err := sdk.AccAddressFromBech32(gs.Blacklister.Address) - if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid black lister address (%s)", err) - } - addresses = append(addresses, blacklister) - } - - if err := validatePrivileges(addresses); err != nil { - return err - } - - if gs.MintingDenom != nil && gs.MintingDenom.Denom == "" { - return fmt.Errorf("minting denom cannot be an empty string") - } - - // this line is used by starport scaffolding # genesis/types/validate - - return gs.Params.Validate() -} - -// validatePrivileges ensures that the same address is not being assigned to more than one privileged role. -func validatePrivileges(addresses []sdk.AccAddress) error { - for i, current := range addresses { - for j, target := range addresses { - if i == j { - continue - } - - if current.String() == target.String() { - return sdkerrors.Wrapf(ErrAlreadyPrivileged, "%s", current) - } - } - } - - return nil -} diff --git a/x/fiattokenfactory/types/genesis.pb.go b/x/fiattokenfactory/types/genesis.pb.go deleted file mode 100644 index 4cadf103..00000000 --- a/x/fiattokenfactory/types/genesis.pb.go +++ /dev/null @@ -1,884 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: fiattokenfactory/genesis.proto - -package types - -import ( - fmt "fmt" - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" - io "io" - math "math" - math_bits "math/bits" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -// GenesisState defines the fiattokenfactory module's genesis state. -type GenesisState struct { - Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` - BlacklistedList []Blacklisted `protobuf:"bytes,2,rep,name=blacklistedList,proto3" json:"blacklistedList"` - Paused *Paused `protobuf:"bytes,3,opt,name=paused,proto3" json:"paused,omitempty"` - MasterMinter *MasterMinter `protobuf:"bytes,4,opt,name=masterMinter,proto3" json:"masterMinter,omitempty"` - MintersList []Minters `protobuf:"bytes,5,rep,name=mintersList,proto3" json:"mintersList"` - Pauser *Pauser `protobuf:"bytes,6,opt,name=pauser,proto3" json:"pauser,omitempty"` - Blacklister *Blacklister `protobuf:"bytes,7,opt,name=blacklister,proto3" json:"blacklister,omitempty"` - Owner *Owner `protobuf:"bytes,8,opt,name=owner,proto3" json:"owner,omitempty"` - MinterControllerList []MinterController `protobuf:"bytes,9,rep,name=minterControllerList,proto3" json:"minterControllerList"` - MintingDenom *MintingDenom `protobuf:"bytes,10,opt,name=mintingDenom,proto3" json:"mintingDenom,omitempty"` -} - -func (m *GenesisState) Reset() { *m = GenesisState{} } -func (m *GenesisState) String() string { return proto.CompactTextString(m) } -func (*GenesisState) ProtoMessage() {} -func (*GenesisState) Descriptor() ([]byte, []int) { - return fileDescriptor_300d22b176be1774, []int{0} -} -func (m *GenesisState) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GenesisState.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *GenesisState) XXX_Merge(src proto.Message) { - xxx_messageInfo_GenesisState.Merge(m, src) -} -func (m *GenesisState) XXX_Size() int { - return m.Size() -} -func (m *GenesisState) XXX_DiscardUnknown() { - xxx_messageInfo_GenesisState.DiscardUnknown(m) -} - -var xxx_messageInfo_GenesisState proto.InternalMessageInfo - -func (m *GenesisState) GetParams() Params { - if m != nil { - return m.Params - } - return Params{} -} - -func (m *GenesisState) GetBlacklistedList() []Blacklisted { - if m != nil { - return m.BlacklistedList - } - return nil -} - -func (m *GenesisState) GetPaused() *Paused { - if m != nil { - return m.Paused - } - return nil -} - -func (m *GenesisState) GetMasterMinter() *MasterMinter { - if m != nil { - return m.MasterMinter - } - return nil -} - -func (m *GenesisState) GetMintersList() []Minters { - if m != nil { - return m.MintersList - } - return nil -} - -func (m *GenesisState) GetPauser() *Pauser { - if m != nil { - return m.Pauser - } - return nil -} - -func (m *GenesisState) GetBlacklister() *Blacklister { - if m != nil { - return m.Blacklister - } - return nil -} - -func (m *GenesisState) GetOwner() *Owner { - if m != nil { - return m.Owner - } - return nil -} - -func (m *GenesisState) GetMinterControllerList() []MinterController { - if m != nil { - return m.MinterControllerList - } - return nil -} - -func (m *GenesisState) GetMintingDenom() *MintingDenom { - if m != nil { - return m.MintingDenom - } - return nil -} - -func init() { - proto.RegisterType((*GenesisState)(nil), "noble.fiattokenfactory.GenesisState") -} - -func init() { proto.RegisterFile("fiattokenfactory/genesis.proto", fileDescriptor_300d22b176be1774) } - -var fileDescriptor_300d22b176be1774 = []byte{ - // 470 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0x41, 0x6f, 0xd3, 0x30, - 0x14, 0xc7, 0x13, 0xb6, 0x16, 0x70, 0x26, 0x21, 0x59, 0x13, 0xb2, 0x2a, 0xe6, 0x4d, 0xa3, 0x87, - 0x5c, 0x48, 0xa4, 0x4d, 0xe2, 0x84, 0x38, 0x14, 0xd0, 0x38, 0x30, 0x81, 0xb2, 0x0b, 0xe2, 0x52, - 0x39, 0x99, 0x17, 0xa2, 0x25, 0x76, 0x65, 0xbb, 0x83, 0x7d, 0x0b, 0x3e, 0x56, 0x4f, 0xa8, 0x47, - 0x4e, 0x08, 0xb5, 0x5f, 0x04, 0xc5, 0xf6, 0xd2, 0xb4, 0x69, 0xda, 0xde, 0x22, 0xbd, 0xdf, 0xff, - 0x9f, 0xf7, 0xfe, 0xef, 0x19, 0xe0, 0x9b, 0x8c, 0x28, 0xc5, 0x6f, 0x29, 0xbb, 0x21, 0x89, 0xe2, - 0xe2, 0x3e, 0x4c, 0x29, 0xa3, 0x32, 0x93, 0xc1, 0x48, 0x70, 0xc5, 0xe1, 0x73, 0xc6, 0xe3, 0x9c, - 0x06, 0xab, 0x54, 0xef, 0x30, 0xe5, 0x29, 0xd7, 0x48, 0x58, 0x7e, 0x19, 0xba, 0x77, 0xd4, 0x70, - 0x1b, 0x11, 0x41, 0x0a, 0x6b, 0xd6, 0x3b, 0x6d, 0x94, 0xe3, 0x9c, 0x24, 0xb7, 0x79, 0x26, 0x15, - 0xbd, 0xde, 0x60, 0x31, 0x96, 0x55, 0xb9, 0xdf, 0x28, 0x17, 0x44, 0x2a, 0x2a, 0x86, 0x45, 0xc6, - 0x14, 0x15, 0x96, 0x6a, 0x4e, 0x65, 0xca, 0x72, 0xf3, 0x4f, 0xc4, 0x0e, 0x7d, 0x3e, 0x30, 0x2f, - 0x1a, 0x0c, 0xff, 0xc1, 0xaa, 0xaa, 0xdf, 0xd2, 0xc0, 0x30, 0xe1, 0x4c, 0x09, 0x9e, 0xe7, 0x15, - 0xd9, 0x5f, 0x4b, 0x66, 0x2c, 0x1d, 0x5e, 0x53, 0xc6, 0x0b, 0x43, 0x9d, 0xfe, 0xee, 0x80, 0x83, - 0x0b, 0xb3, 0x98, 0x2b, 0x45, 0x14, 0x85, 0x6f, 0x40, 0xd7, 0x44, 0x8b, 0xdc, 0x13, 0xd7, 0xf7, - 0xce, 0x70, 0xb0, 0x7e, 0x51, 0xc1, 0x17, 0x4d, 0x0d, 0xf6, 0x27, 0x7f, 0x8f, 0x9d, 0xc8, 0x6a, - 0xe0, 0x15, 0x78, 0x56, 0x4b, 0xfe, 0x53, 0x26, 0x15, 0x7a, 0x74, 0xb2, 0xe7, 0x7b, 0x67, 0x2f, - 0xdb, 0x6c, 0x06, 0x0b, 0xdc, 0x7a, 0xad, 0x3a, 0xc0, 0xd7, 0x65, 0x4b, 0xe5, 0xaa, 0xd0, 0xde, - 0xb6, 0x96, 0x4a, 0x2a, 0xb2, 0x34, 0xfc, 0x08, 0x0e, 0xcc, 0x0e, 0x2f, 0x75, 0x44, 0x68, 0x5f, - 0xab, 0xfb, 0x6d, 0xea, 0xcb, 0x1a, 0x1b, 0x2d, 0x29, 0xe1, 0x05, 0xf0, 0xec, 0x9e, 0xf5, 0x48, - 0x1d, 0x3d, 0xd2, 0x71, 0xab, 0x91, 0x41, 0xed, 0x38, 0x75, 0x65, 0x35, 0x8a, 0x40, 0xdd, 0x1d, - 0x46, 0x11, 0x76, 0x14, 0x01, 0x3f, 0x00, 0xaf, 0x76, 0x29, 0xe8, 0xb1, 0x16, 0xef, 0x90, 0xa9, - 0x88, 0xea, 0x3a, 0x78, 0x0e, 0x3a, 0xfa, 0x98, 0xd0, 0x13, 0x6d, 0x70, 0xd4, 0x66, 0xf0, 0xb9, - 0x84, 0x22, 0xc3, 0xc2, 0x18, 0x1c, 0x9a, 0x11, 0xde, 0x55, 0x27, 0xa6, 0x53, 0x78, 0xaa, 0x53, - 0xf0, 0x37, 0xa7, 0xb0, 0xd0, 0xd8, 0x38, 0xd6, 0x7a, 0xe9, 0x55, 0x99, 0xeb, 0x7c, 0x5f, 0x1e, - 0x27, 0x02, 0x5b, 0x56, 0x55, 0x63, 0xa3, 0x25, 0xe5, 0xe0, 0xeb, 0x64, 0x86, 0xdd, 0xe9, 0x0c, - 0xbb, 0xff, 0x66, 0xd8, 0xfd, 0x35, 0xc7, 0xce, 0x74, 0x8e, 0x9d, 0x3f, 0x73, 0xec, 0x7c, 0x7b, - 0x9b, 0x66, 0xea, 0xfb, 0x38, 0x0e, 0x12, 0x5e, 0x84, 0x52, 0x09, 0xc2, 0x52, 0x9a, 0xf3, 0x3b, - 0xfa, 0xea, 0x8e, 0x32, 0x35, 0x16, 0x54, 0x86, 0xfa, 0x67, 0xe1, 0xcf, 0xb0, 0xf1, 0x70, 0xd4, - 0xfd, 0x88, 0xca, 0xb8, 0xab, 0x5f, 0xcc, 0xf9, 0xff, 0x00, 0x00, 0x00, 0xff, 0xff, 0xd0, 0x3e, - 0x71, 0x0e, 0xda, 0x04, 0x00, 0x00, -} - -func (m *GenesisState) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GenesisState) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.MintingDenom != nil { - { - size, err := m.MintingDenom.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenesis(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x52 - } - if len(m.MinterControllerList) > 0 { - for iNdEx := len(m.MinterControllerList) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.MinterControllerList[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenesis(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x4a - } - } - if m.Owner != nil { - { - size, err := m.Owner.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenesis(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x42 - } - if m.Blacklister != nil { - { - size, err := m.Blacklister.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenesis(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a - } - if m.Pauser != nil { - { - size, err := m.Pauser.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenesis(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - if len(m.MintersList) > 0 { - for iNdEx := len(m.MintersList) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.MintersList[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenesis(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - } - if m.MasterMinter != nil { - { - size, err := m.MasterMinter.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenesis(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if m.Paused != nil { - { - size, err := m.Paused.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenesis(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.BlacklistedList) > 0 { - for iNdEx := len(m.BlacklistedList) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.BlacklistedList[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenesis(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenesis(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func encodeVarintGenesis(dAtA []byte, offset int, v uint64) int { - offset -= sovGenesis(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *GenesisState) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Params.Size() - n += 1 + l + sovGenesis(uint64(l)) - if len(m.BlacklistedList) > 0 { - for _, e := range m.BlacklistedList { - l = e.Size() - n += 1 + l + sovGenesis(uint64(l)) - } - } - if m.Paused != nil { - l = m.Paused.Size() - n += 1 + l + sovGenesis(uint64(l)) - } - if m.MasterMinter != nil { - l = m.MasterMinter.Size() - n += 1 + l + sovGenesis(uint64(l)) - } - if len(m.MintersList) > 0 { - for _, e := range m.MintersList { - l = e.Size() - n += 1 + l + sovGenesis(uint64(l)) - } - } - if m.Pauser != nil { - l = m.Pauser.Size() - n += 1 + l + sovGenesis(uint64(l)) - } - if m.Blacklister != nil { - l = m.Blacklister.Size() - n += 1 + l + sovGenesis(uint64(l)) - } - if m.Owner != nil { - l = m.Owner.Size() - n += 1 + l + sovGenesis(uint64(l)) - } - if len(m.MinterControllerList) > 0 { - for _, e := range m.MinterControllerList { - l = e.Size() - n += 1 + l + sovGenesis(uint64(l)) - } - } - if m.MintingDenom != nil { - l = m.MintingDenom.Size() - n += 1 + l + sovGenesis(uint64(l)) - } - return n -} - -func sovGenesis(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGenesis(x uint64) (n int) { - return sovGenesis(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *GenesisState) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GenesisState: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenesis - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BlacklistedList", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenesis - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.BlacklistedList = append(m.BlacklistedList, Blacklisted{}) - if err := m.BlacklistedList[len(m.BlacklistedList)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Paused", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenesis - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Paused == nil { - m.Paused = &Paused{} - } - if err := m.Paused.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MasterMinter", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenesis - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.MasterMinter == nil { - m.MasterMinter = &MasterMinter{} - } - if err := m.MasterMinter.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MintersList", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenesis - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MintersList = append(m.MintersList, Minters{}) - if err := m.MintersList[len(m.MintersList)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pauser", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenesis - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Pauser == nil { - m.Pauser = &Pauser{} - } - if err := m.Pauser.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Blacklister", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenesis - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Blacklister == nil { - m.Blacklister = &Blacklister{} - } - if err := m.Blacklister.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenesis - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Owner == nil { - m.Owner = &Owner{} - } - if err := m.Owner.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MinterControllerList", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenesis - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MinterControllerList = append(m.MinterControllerList, MinterController{}) - if err := m.MinterControllerList[len(m.MinterControllerList)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MintingDenom", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGenesis - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthGenesis - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthGenesis - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.MintingDenom == nil { - m.MintingDenom = &MintingDenom{} - } - if err := m.MintingDenom.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGenesis(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGenesis - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGenesis(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenesis - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenesis - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGenesis - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthGenesis - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupGenesis - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthGenesis - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/fiattokenfactory/types/genesis_test.go b/x/fiattokenfactory/types/genesis_test.go deleted file mode 100644 index 0f450261..00000000 --- a/x/fiattokenfactory/types/genesis_test.go +++ /dev/null @@ -1,186 +0,0 @@ -package types_test - -import ( - "testing" - - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/strangelove-ventures/noble/testutil/sample" - "github.com/strangelove-ventures/noble/x/fiattokenfactory/types" - - "github.com/stretchr/testify/require" -) - -var testAddress = sample.AccAddress() - -func TestGenesisState_Validate(t *testing.T) { - for _, tc := range []struct { - desc string - genState *types.GenesisState - valid bool - }{ - { - desc: "default is valid", - genState: types.DefaultGenesis(), - valid: true, - }, - { - desc: "valid genesis state", - genState: &types.GenesisState{ - - BlacklistedList: []types.Blacklisted{ - { - AddressBz: sample.AddressBz(), - }, - { - AddressBz: sample.AddressBz(), - }, - }, - Paused: &types.Paused{ - Paused: true, - }, - MasterMinter: &types.MasterMinter{ - Address: sample.AccAddress(), - }, - MintersList: []types.Minters{ - { - Address: sample.AccAddress(), - Allowance: sdk.NewCoin("test", sdk.NewInt(1)), - }, - { - Address: sample.AccAddress(), - Allowance: sdk.NewCoin("test", sdk.NewInt(1)), - }, - }, - Pauser: &types.Pauser{ - Address: sample.AccAddress(), - }, - Blacklister: &types.Blacklister{ - Address: sample.AccAddress(), - }, - Owner: &types.Owner{ - Address: sample.AccAddress(), - }, - MinterControllerList: []types.MinterController{ - { - Controller: sample.AccAddress(), - Minter: sample.AccAddress(), - }, - { - Controller: sample.AccAddress(), - Minter: sample.AccAddress(), - }, - }, - MintingDenom: &types.MintingDenom{ - Denom: "test", - }, - // this line is used by starport scaffolding # types/genesis/validField - }, - valid: true, - }, - { - desc: "invalid privilege separation", - genState: &types.GenesisState{ - - BlacklistedList: []types.Blacklisted{ - { - AddressBz: sample.AddressBz(), - }, - { - sample.AddressBz(), - }, - }, - Paused: &types.Paused{ - Paused: true, - }, - MasterMinter: &types.MasterMinter{ - Address: testAddress, - }, - MintersList: []types.Minters{ - { - Address: sample.AccAddress(), - Allowance: sdk.NewCoin("test", sdk.NewInt(1)), - }, - { - Address: sample.AccAddress(), - Allowance: sdk.NewCoin("test", sdk.NewInt(1)), - }, - }, - Pauser: &types.Pauser{ - Address: testAddress, - }, - Blacklister: &types.Blacklister{ - Address: testAddress, - }, - Owner: &types.Owner{ - Address: testAddress, - }, - MinterControllerList: []types.MinterController{ - { - Controller: sample.AccAddress(), - Minter: sample.AccAddress(), - }, - { - Controller: sample.AccAddress(), - Minter: sample.AccAddress(), - }, - }, - MintingDenom: &types.MintingDenom{ - Denom: "test", - }, - }, - valid: false, - }, - { - desc: "duplicated blacklisted", - genState: &types.GenesisState{ - BlacklistedList: []types.Blacklisted{ - { - AddressBz: []byte("0"), - }, - { - AddressBz: []byte("0"), - }, - }, - }, - valid: false, - }, - { - desc: "duplicated minters", - genState: &types.GenesisState{ - MintersList: []types.Minters{ - { - Address: "0", - }, - { - Address: "0", - }, - }, - }, - valid: false, - }, - { - desc: "duplicated minterController", - genState: &types.GenesisState{ - MinterControllerList: []types.MinterController{ - { - Minter: "0", - }, - { - Minter: "0", - }, - }, - }, - valid: false, - }, - // this line is used by starport scaffolding # types/genesis/testcase - } { - t.Run(tc.desc, func(t *testing.T) { - err := tc.genState.Validate() - if tc.valid { - require.NoError(t, err) - } else { - require.Error(t, err) - } - }) - } -} diff --git a/x/fiattokenfactory/types/keys.go b/x/fiattokenfactory/types/keys.go deleted file mode 100644 index 968beb10..00000000 --- a/x/fiattokenfactory/types/keys.go +++ /dev/null @@ -1,49 +0,0 @@ -package types - -const ( - // ModuleName defines the module name - ModuleName = "fiat-tokenfactory" - - // StoreKey defines the primary module store key - StoreKey = "fiattokenfactory" - - // RouterKey defines the module's message routing key - RouterKey = StoreKey - - // MemStoreKey defines the in-memory store key - MemStoreKey = "mem_" + StoreKey - - PausedKey = "Paused/value/" - MasterMinterKey = "MasterMinter/value/" - PauserKey = "Pauser/value/" - BlacklisterKey = "Blacklister/value/" - OwnerKey = "Owner/value/" - PendingOwnerKey = "PendingOwner/value/" - BlacklistedKeyPrefix = "Blacklisted/value/" - MintersKeyPrefix = "Minters/value/" - MinterControllerKeyPrefix = "MinterController/value/" -) - -func KeyPrefix(p string) []byte { - return []byte(p) -} - -// BlacklistedKey returns the store key to retrieve a Blacklisted from the index fields -func BlacklistedKey(addressBz []byte) []byte { - return append(addressBz, []byte("/")...) -} - -// MintersKey returns the store key to retrieve a Minters from the index fields -func MintersKey(address string) []byte { - return append([]byte(address), []byte("/")...) -} - -// MinterControllerKey returns the store key to retrieve a MinterController from the index fields -func MinterControllerKey(controllerAddress string) []byte { - return append([]byte(controllerAddress), []byte("/")...) - -} - -const ( - MintingDenomKey = "MintingDenom/value/" -) diff --git a/x/fiattokenfactory/types/master_minter.pb.go b/x/fiattokenfactory/types/master_minter.pb.go deleted file mode 100644 index dd822ac8..00000000 --- a/x/fiattokenfactory/types/master_minter.pb.go +++ /dev/null @@ -1,318 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: fiattokenfactory/master_minter.proto - -package types - -import ( - fmt "fmt" - proto "github.com/gogo/protobuf/proto" - io "io" - math "math" - math_bits "math/bits" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -type MasterMinter struct { - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` -} - -func (m *MasterMinter) Reset() { *m = MasterMinter{} } -func (m *MasterMinter) String() string { return proto.CompactTextString(m) } -func (*MasterMinter) ProtoMessage() {} -func (*MasterMinter) Descriptor() ([]byte, []int) { - return fileDescriptor_58170e99fb224a62, []int{0} -} -func (m *MasterMinter) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MasterMinter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MasterMinter.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *MasterMinter) XXX_Merge(src proto.Message) { - xxx_messageInfo_MasterMinter.Merge(m, src) -} -func (m *MasterMinter) XXX_Size() int { - return m.Size() -} -func (m *MasterMinter) XXX_DiscardUnknown() { - xxx_messageInfo_MasterMinter.DiscardUnknown(m) -} - -var xxx_messageInfo_MasterMinter proto.InternalMessageInfo - -func (m *MasterMinter) GetAddress() string { - if m != nil { - return m.Address - } - return "" -} - -func init() { - proto.RegisterType((*MasterMinter)(nil), "noble.fiattokenfactory.MasterMinter") -} - -func init() { - proto.RegisterFile("fiattokenfactory/master_minter.proto", fileDescriptor_58170e99fb224a62) -} - -var fileDescriptor_58170e99fb224a62 = []byte{ - // 181 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x49, 0xcb, 0x4c, 0x2c, - 0x29, 0xc9, 0xcf, 0x4e, 0xcd, 0x4b, 0x4b, 0x4c, 0x2e, 0xc9, 0x2f, 0xaa, 0xd4, 0xcf, 0x4d, 0x2c, - 0x2e, 0x49, 0x2d, 0x8a, 0xcf, 0xcd, 0xcc, 0x2b, 0x49, 0x2d, 0xd2, 0x2b, 0x28, 0xca, 0x2f, 0xc9, - 0x17, 0x12, 0xcb, 0xcb, 0x4f, 0xca, 0x49, 0xd5, 0x43, 0x57, 0xab, 0xa4, 0xc1, 0xc5, 0xe3, 0x0b, - 0x56, 0xee, 0x0b, 0x56, 0x2d, 0x24, 0xc1, 0xc5, 0x9e, 0x98, 0x92, 0x52, 0x94, 0x5a, 0x5c, 0x2c, - 0xc1, 0xa8, 0xc0, 0xa8, 0xc1, 0x19, 0x04, 0xe3, 0x3a, 0x45, 0x9c, 0x78, 0x24, 0xc7, 0x78, 0xe1, - 0x91, 0x1c, 0xe3, 0x83, 0x47, 0x72, 0x8c, 0x13, 0x1e, 0xcb, 0x31, 0x5c, 0x78, 0x2c, 0xc7, 0x70, - 0xe3, 0xb1, 0x1c, 0x43, 0x94, 0x5d, 0x7a, 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e, 0xae, - 0x7e, 0x71, 0x49, 0x51, 0x62, 0x5e, 0x7a, 0x6a, 0x4e, 0x7e, 0x59, 0xaa, 0x6e, 0x59, 0x6a, 0x5e, - 0x49, 0x69, 0x51, 0x6a, 0xb1, 0x3e, 0xd8, 0x6e, 0xfd, 0x0a, 0x7d, 0x0c, 0x97, 0x96, 0x54, 0x16, - 0xa4, 0x16, 0x27, 0xb1, 0x81, 0x9d, 0x68, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x79, 0x81, 0xf0, - 0x06, 0xca, 0x00, 0x00, 0x00, -} - -func (m *MasterMinter) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MasterMinter) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MasterMinter) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Address) > 0 { - i -= len(m.Address) - copy(dAtA[i:], m.Address) - i = encodeVarintMasterMinter(dAtA, i, uint64(len(m.Address))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintMasterMinter(dAtA []byte, offset int, v uint64) int { - offset -= sovMasterMinter(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *MasterMinter) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Address) - if l > 0 { - n += 1 + l + sovMasterMinter(uint64(l)) - } - return n -} - -func sovMasterMinter(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozMasterMinter(x uint64) (n int) { - return sovMasterMinter(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *MasterMinter) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMasterMinter - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MasterMinter: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MasterMinter: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMasterMinter - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthMasterMinter - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMasterMinter - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Address = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMasterMinter(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMasterMinter - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipMasterMinter(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowMasterMinter - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowMasterMinter - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowMasterMinter - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthMasterMinter - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupMasterMinter - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthMasterMinter - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthMasterMinter = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowMasterMinter = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupMasterMinter = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/fiattokenfactory/types/message_accept_owner.go b/x/fiattokenfactory/types/message_accept_owner.go deleted file mode 100644 index 5ca6bf79..00000000 --- a/x/fiattokenfactory/types/message_accept_owner.go +++ /dev/null @@ -1,45 +0,0 @@ -package types - -import ( - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -const TypeMsgAcceptOwner = "accept_owner" - -var _ sdk.Msg = &MsgAcceptOwner{} - -func NewMsgAcceptOwner(from string) *MsgAcceptOwner { - return &MsgAcceptOwner{ - From: from, - } -} - -func (msg *MsgAcceptOwner) Route() string { - return RouterKey -} - -func (msg *MsgAcceptOwner) Type() string { - return TypeMsgAcceptOwner -} - -func (msg *MsgAcceptOwner) GetSigners() []sdk.AccAddress { - from, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - panic(err) - } - return []sdk.AccAddress{from} -} - -func (msg *MsgAcceptOwner) GetSignBytes() []byte { - bz := ModuleCdc.MustMarshalJSON(msg) - return sdk.MustSortJSON(bz) -} - -func (msg *MsgAcceptOwner) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid from address (%s)", err) - } - return nil -} diff --git a/x/fiattokenfactory/types/message_blacklist.go b/x/fiattokenfactory/types/message_blacklist.go deleted file mode 100644 index 348c9321..00000000 --- a/x/fiattokenfactory/types/message_blacklist.go +++ /dev/null @@ -1,50 +0,0 @@ -package types - -import ( - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -const TypeMsgBlacklist = "blacklist" - -var _ sdk.Msg = &MsgBlacklist{} - -func NewMsgBlacklist(from, address string) *MsgBlacklist { - return &MsgBlacklist{ - From: from, - Address: address, - } -} - -func (msg *MsgBlacklist) Route() string { - return RouterKey -} - -func (msg *MsgBlacklist) Type() string { - return TypeMsgBlacklist -} - -func (msg *MsgBlacklist) GetSigners() []sdk.AccAddress { - from, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - panic(err) - } - return []sdk.AccAddress{from} -} - -func (msg *MsgBlacklist) GetSignBytes() []byte { - bz := ModuleCdc.MustMarshalJSON(msg) - return sdk.MustSortJSON(bz) -} - -func (msg *MsgBlacklist) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid from address (%s)", err) - } - - if len(msg.Address) <= 0 { - return sdkerrors.Wrap(sdkerrors.ErrInvalidAddress, "address length cannot be less than or equal to 0") - } - return nil -} diff --git a/x/fiattokenfactory/types/message_blacklist_test.go b/x/fiattokenfactory/types/message_blacklist_test.go deleted file mode 100644 index d2fa60c4..00000000 --- a/x/fiattokenfactory/types/message_blacklist_test.go +++ /dev/null @@ -1,51 +0,0 @@ -package types - -import ( - "testing" - - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/strangelove-ventures/noble/testutil/sample" - "github.com/stretchr/testify/require" -) - -func TestMsgBlacklist_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgBlacklist - err error - }{ - { - name: "invalid from", - msg: MsgBlacklist{ - From: "invalid_address", - Address: sample.AccAddress(), - }, - err: sdkerrors.ErrInvalidAddress, - }, - { - name: "invalid block address", - msg: MsgBlacklist{ - From: sample.AccAddress(), - Address: "", - }, - err: sdkerrors.ErrInvalidAddress, - }, - { - name: "valid block and from address", - msg: MsgBlacklist{ - From: sample.AccAddress(), - Address: sample.AccAddress(), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/fiattokenfactory/types/message_burn.go b/x/fiattokenfactory/types/message_burn.go deleted file mode 100644 index 72e25b75..00000000 --- a/x/fiattokenfactory/types/message_burn.go +++ /dev/null @@ -1,59 +0,0 @@ -package types - -import ( - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -const TypeMsgBurn = "burn" - -var _ sdk.Msg = &MsgBurn{} - -func NewMsgBurn(from string, amount sdk.Coin) *MsgBurn { - return &MsgBurn{ - From: from, - Amount: amount, - } -} - -func (msg *MsgBurn) Route() string { - return RouterKey -} - -func (msg *MsgBurn) Type() string { - return TypeMsgBurn -} - -func (msg *MsgBurn) GetSigners() []sdk.AccAddress { - from, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - panic(err) - } - return []sdk.AccAddress{from} -} - -func (msg *MsgBurn) GetSignBytes() []byte { - bz := ModuleCdc.MustMarshalJSON(msg) - return sdk.MustSortJSON(bz) -} - -func (msg *MsgBurn) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid from address (%s)", err) - } - - if msg.Amount.IsNil() { - return sdkerrors.Wrap(sdkerrors.ErrInvalidCoins, "burn amount cannot be nil") - } - - if msg.Amount.IsNegative() { - return sdkerrors.Wrap(sdkerrors.ErrInvalidCoins, "burn amount cannot be negative") - } - - if msg.Amount.IsZero() { - return sdkerrors.Wrap(sdkerrors.ErrInvalidCoins, "burn amount cannot be zero") - } - - return nil -} diff --git a/x/fiattokenfactory/types/message_burn_test.go b/x/fiattokenfactory/types/message_burn_test.go deleted file mode 100644 index 49965f60..00000000 --- a/x/fiattokenfactory/types/message_burn_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package types - -import ( - "testing" - - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/strangelove-ventures/noble/testutil/sample" - "github.com/stretchr/testify/require" -) - -func TestMsgBurn_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgBurn - err error - }{ - { - name: "invalid address", - msg: MsgBurn{ - From: "invalid_address", - }, - err: sdkerrors.ErrInvalidAddress, - }, { - name: "valid address", - msg: MsgBurn{ - From: sample.AccAddress(), - Amount: sdk.NewCoin("test", sdk.NewInt(1)), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/fiattokenfactory/types/message_configure_minter.go b/x/fiattokenfactory/types/message_configure_minter.go deleted file mode 100644 index c1022139..00000000 --- a/x/fiattokenfactory/types/message_configure_minter.go +++ /dev/null @@ -1,61 +0,0 @@ -package types - -import ( - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -const TypeMsgConfigureMinter = "configure_minter" - -var _ sdk.Msg = &MsgConfigureMinter{} - -func NewMsgConfigureMinter(from string, address string, allowance sdk.Coin) *MsgConfigureMinter { - return &MsgConfigureMinter{ - From: from, - Address: address, - Allowance: allowance, - } -} - -func (msg *MsgConfigureMinter) Route() string { - return RouterKey -} - -func (msg *MsgConfigureMinter) Type() string { - return TypeMsgConfigureMinter -} - -func (msg *MsgConfigureMinter) GetSigners() []sdk.AccAddress { - from, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - panic(err) - } - return []sdk.AccAddress{from} -} - -func (msg *MsgConfigureMinter) GetSignBytes() []byte { - bz := ModuleCdc.MustMarshalJSON(msg) - return sdk.MustSortJSON(bz) -} - -func (msg *MsgConfigureMinter) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid from address (%s)", err) - } - - _, err = sdk.AccAddressFromBech32(msg.Address) - if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid minter address (%s)", err) - } - - if msg.Allowance.IsNil() { - return sdkerrors.Wrap(sdkerrors.ErrInvalidCoins, "allowance amount cannot be nil") - } - - if msg.Allowance.IsNegative() { - return sdkerrors.Wrap(sdkerrors.ErrInvalidCoins, "allowance amount cannot be negative") - } - - return nil -} diff --git a/x/fiattokenfactory/types/message_configure_minter_controller.go b/x/fiattokenfactory/types/message_configure_minter_controller.go deleted file mode 100644 index 8a8a7747..00000000 --- a/x/fiattokenfactory/types/message_configure_minter_controller.go +++ /dev/null @@ -1,55 +0,0 @@ -package types - -import ( - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -const TypeMsgConfigureMinterController = "configure_minter_controller" - -var _ sdk.Msg = &MsgConfigureMinterController{} - -func NewMsgConfigureMinterController(from string, controller string, minter string) *MsgConfigureMinterController { - return &MsgConfigureMinterController{ - From: from, - Controller: controller, - Minter: minter, - } -} - -func (msg *MsgConfigureMinterController) Route() string { - return RouterKey -} - -func (msg *MsgConfigureMinterController) Type() string { - return TypeMsgConfigureMinterController -} - -func (msg *MsgConfigureMinterController) GetSigners() []sdk.AccAddress { - from, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - panic(err) - } - return []sdk.AccAddress{from} -} - -func (msg *MsgConfigureMinterController) GetSignBytes() []byte { - bz := ModuleCdc.MustMarshalJSON(msg) - return sdk.MustSortJSON(bz) -} - -func (msg *MsgConfigureMinterController) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid from address (%s)", err) - } - _, err = sdk.AccAddressFromBech32(msg.Controller) - if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid controller address (%s)", err) - } - _, err = sdk.AccAddressFromBech32(msg.Minter) - if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid minter address (%s)", err) - } - return nil -} diff --git a/x/fiattokenfactory/types/message_configure_minter_controller_test.go b/x/fiattokenfactory/types/message_configure_minter_controller_test.go deleted file mode 100644 index 305b243a..00000000 --- a/x/fiattokenfactory/types/message_configure_minter_controller_test.go +++ /dev/null @@ -1,63 +0,0 @@ -package types - -import ( - "testing" - - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/strangelove-ventures/noble/testutil/sample" - "github.com/stretchr/testify/require" -) - -func TestMsgConfigureMinterController_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgConfigureMinterController - err error - }{ - { - name: "invalid from", - msg: MsgConfigureMinterController{ - From: "invalid_address", - Controller: sample.AccAddress(), - Minter: sample.AccAddress(), - }, - err: sdkerrors.ErrInvalidAddress, - }, - { - name: "invalid controller", - msg: MsgConfigureMinterController{ - From: sample.AccAddress(), - Controller: "invalid_address", - Minter: sample.AccAddress(), - }, - err: sdkerrors.ErrInvalidAddress, - }, - { - name: "invalid minter", - msg: MsgConfigureMinterController{ - From: sample.AccAddress(), - Controller: sample.AccAddress(), - Minter: "invalid_address", - }, - err: sdkerrors.ErrInvalidAddress, - }, - { - name: "valid address, minter, and controller", - msg: MsgConfigureMinterController{ - From: sample.AccAddress(), - Controller: sample.AccAddress(), - Minter: sample.AccAddress(), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/fiattokenfactory/types/message_configure_minter_test.go b/x/fiattokenfactory/types/message_configure_minter_test.go deleted file mode 100644 index 7e59a4cd..00000000 --- a/x/fiattokenfactory/types/message_configure_minter_test.go +++ /dev/null @@ -1,53 +0,0 @@ -package types - -import ( - "testing" - - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/strangelove-ventures/noble/testutil/sample" - "github.com/stretchr/testify/require" -) - -func TestMsgConfigureMinter_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgConfigureMinter - err error - }{ - { - name: "invalid from", - msg: MsgConfigureMinter{ - From: "invalid_address", - Address: sample.AccAddress(), - }, - err: sdkerrors.ErrInvalidAddress, - }, - { - name: "invalid address", - msg: MsgConfigureMinter{ - From: sample.AccAddress(), - Address: "invalid_address", - }, - err: sdkerrors.ErrInvalidAddress, - }, - { - name: "valid address and from", - msg: MsgConfigureMinter{ - From: sample.AccAddress(), - Address: sample.AccAddress(), - Allowance: sdk.NewCoin("test", sdk.NewInt(1)), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/fiattokenfactory/types/message_mint.go b/x/fiattokenfactory/types/message_mint.go deleted file mode 100644 index 600a8091..00000000 --- a/x/fiattokenfactory/types/message_mint.go +++ /dev/null @@ -1,65 +0,0 @@ -package types - -import ( - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -const TypeMsgMint = "mint" - -var _ sdk.Msg = &MsgMint{} - -func NewMsgMint(from string, address string, amount sdk.Coin) *MsgMint { - return &MsgMint{ - From: from, - Address: address, - Amount: amount, - } -} - -func (msg *MsgMint) Route() string { - return RouterKey -} - -func (msg *MsgMint) Type() string { - return TypeMsgMint -} - -func (msg *MsgMint) GetSigners() []sdk.AccAddress { - from, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - panic(err) - } - return []sdk.AccAddress{from} -} - -func (msg *MsgMint) GetSignBytes() []byte { - bz := ModuleCdc.MustMarshalJSON(msg) - return sdk.MustSortJSON(bz) -} - -func (msg *MsgMint) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid from address (%s)", err) - } - - _, err = sdk.AccAddressFromBech32(msg.Address) - if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid address (%s)", err) - } - - if msg.Amount.IsNil() { - return sdkerrors.Wrap(sdkerrors.ErrInvalidCoins, "mint amount cannot be nil") - } - - if msg.Amount.IsNegative() { - return sdkerrors.Wrap(sdkerrors.ErrInvalidCoins, "mint amount cannot be negative") - } - - if msg.Amount.IsZero() { - return sdkerrors.Wrap(sdkerrors.ErrInvalidCoins, "mint amount cannot be zero") - } - - return nil -} diff --git a/x/fiattokenfactory/types/message_mint_test.go b/x/fiattokenfactory/types/message_mint_test.go deleted file mode 100644 index 8d292e9f..00000000 --- a/x/fiattokenfactory/types/message_mint_test.go +++ /dev/null @@ -1,53 +0,0 @@ -package types - -import ( - "testing" - - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/strangelove-ventures/noble/testutil/sample" - "github.com/stretchr/testify/require" -) - -func TestMsgMint_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgMint - err error - }{ - { - name: "invalid from", - msg: MsgMint{ - From: "invalid_address", - Address: sample.AccAddress(), - }, - err: sdkerrors.ErrInvalidAddress, - }, - { - name: "invalid address", - msg: MsgMint{ - From: sample.AccAddress(), - Address: "invalid_address", - }, - err: sdkerrors.ErrInvalidAddress, - }, - { - name: "valid address and from", - msg: MsgMint{ - From: sample.AccAddress(), - Address: sample.AccAddress(), - Amount: sdk.NewCoin("test", sdk.NewInt(1)), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/fiattokenfactory/types/message_pause.go b/x/fiattokenfactory/types/message_pause.go deleted file mode 100644 index c784cf51..00000000 --- a/x/fiattokenfactory/types/message_pause.go +++ /dev/null @@ -1,45 +0,0 @@ -package types - -import ( - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -const TypeMsgPause = "pause" - -var _ sdk.Msg = &MsgPause{} - -func NewMsgPause(from string) *MsgPause { - return &MsgPause{ - From: from, - } -} - -func (msg *MsgPause) Route() string { - return RouterKey -} - -func (msg *MsgPause) Type() string { - return TypeMsgPause -} - -func (msg *MsgPause) GetSigners() []sdk.AccAddress { - from, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - panic(err) - } - return []sdk.AccAddress{from} -} - -func (msg *MsgPause) GetSignBytes() []byte { - bz := ModuleCdc.MustMarshalJSON(msg) - return sdk.MustSortJSON(bz) -} - -func (msg *MsgPause) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid from address (%s)", err) - } - return nil -} diff --git a/x/fiattokenfactory/types/message_pause_test.go b/x/fiattokenfactory/types/message_pause_test.go deleted file mode 100644 index 2ae825a2..00000000 --- a/x/fiattokenfactory/types/message_pause_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package types - -import ( - "testing" - - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/strangelove-ventures/noble/testutil/sample" - "github.com/stretchr/testify/require" -) - -func TestMsgPause_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgPause - err error - }{ - { - name: "invalid address", - msg: MsgPause{ - From: "invalid_address", - }, - err: sdkerrors.ErrInvalidAddress, - }, { - name: "valid address", - msg: MsgPause{ - From: sample.AccAddress(), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/fiattokenfactory/types/message_remove_minter.go b/x/fiattokenfactory/types/message_remove_minter.go deleted file mode 100644 index edbdd2ce..00000000 --- a/x/fiattokenfactory/types/message_remove_minter.go +++ /dev/null @@ -1,50 +0,0 @@ -package types - -import ( - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -const TypeMsgRemoveMinter = "remove_minter" - -var _ sdk.Msg = &MsgRemoveMinter{} - -func NewMsgRemoveMinter(from string, address string) *MsgRemoveMinter { - return &MsgRemoveMinter{ - From: from, - Address: address, - } -} - -func (msg *MsgRemoveMinter) Route() string { - return RouterKey -} - -func (msg *MsgRemoveMinter) Type() string { - return TypeMsgRemoveMinter -} - -func (msg *MsgRemoveMinter) GetSigners() []sdk.AccAddress { - from, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - panic(err) - } - return []sdk.AccAddress{from} -} - -func (msg *MsgRemoveMinter) GetSignBytes() []byte { - bz := ModuleCdc.MustMarshalJSON(msg) - return sdk.MustSortJSON(bz) -} - -func (msg *MsgRemoveMinter) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid from address (%s)", err) - } - _, err = sdk.AccAddressFromBech32(msg.Address) - if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid minter address (%s)", err) - } - return nil -} diff --git a/x/fiattokenfactory/types/message_remove_minter_controller.go b/x/fiattokenfactory/types/message_remove_minter_controller.go deleted file mode 100644 index 21c5acc3..00000000 --- a/x/fiattokenfactory/types/message_remove_minter_controller.go +++ /dev/null @@ -1,50 +0,0 @@ -package types - -import ( - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -const TypeMsgRemoveMinterController = "remove_minter_controller" - -var _ sdk.Msg = &MsgRemoveMinterController{} - -func NewMsgRemoveMinterController(from string, address string) *MsgRemoveMinterController { - return &MsgRemoveMinterController{ - From: from, - Controller: address, - } -} - -func (msg *MsgRemoveMinterController) Route() string { - return RouterKey -} - -func (msg *MsgRemoveMinterController) Type() string { - return TypeMsgRemoveMinterController -} - -func (msg *MsgRemoveMinterController) GetSigners() []sdk.AccAddress { - from, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - panic(err) - } - return []sdk.AccAddress{from} -} - -func (msg *MsgRemoveMinterController) GetSignBytes() []byte { - bz := ModuleCdc.MustMarshalJSON(msg) - return sdk.MustSortJSON(bz) -} - -func (msg *MsgRemoveMinterController) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid from address (%s)", err) - } - _, err = sdk.AccAddressFromBech32(msg.Controller) - if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid minter controller address (%s)", err) - } - return nil -} diff --git a/x/fiattokenfactory/types/message_remove_minter_controller_test.go b/x/fiattokenfactory/types/message_remove_minter_controller_test.go deleted file mode 100644 index 4f828f82..00000000 --- a/x/fiattokenfactory/types/message_remove_minter_controller_test.go +++ /dev/null @@ -1,51 +0,0 @@ -package types - -import ( - "testing" - - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/strangelove-ventures/noble/testutil/sample" - "github.com/stretchr/testify/require" -) - -func TestMsgRemoveMinterController_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgRemoveMinterController - err error - }{ - { - name: "invalid from", - msg: MsgRemoveMinterController{ - From: "invalid_address", - Controller: sample.AccAddress(), - }, - err: sdkerrors.ErrInvalidAddress, - }, - { - name: "invalid controller", - msg: MsgRemoveMinterController{ - From: sample.AccAddress(), - Controller: "invalid_address", - }, - err: sdkerrors.ErrInvalidAddress, - }, - { - name: "valid controller and from", - msg: MsgRemoveMinterController{ - From: sample.AccAddress(), - Controller: sample.AccAddress(), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/fiattokenfactory/types/message_remove_minter_test.go b/x/fiattokenfactory/types/message_remove_minter_test.go deleted file mode 100644 index 9d4b5794..00000000 --- a/x/fiattokenfactory/types/message_remove_minter_test.go +++ /dev/null @@ -1,51 +0,0 @@ -package types - -import ( - "testing" - - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/strangelove-ventures/noble/testutil/sample" - "github.com/stretchr/testify/require" -) - -func TestMsgRemoveMinter_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgRemoveMinter - err error - }{ - { - name: "invalid from", - msg: MsgRemoveMinter{ - From: "invalid_address", - Address: sample.AccAddress(), - }, - err: sdkerrors.ErrInvalidAddress, - }, - { - name: "invalid address", - msg: MsgRemoveMinter{ - From: sample.AccAddress(), - Address: "invalid_address", - }, - err: sdkerrors.ErrInvalidAddress, - }, - { - name: "valid address and from", - msg: MsgRemoveMinter{ - From: sample.AccAddress(), - Address: sample.AccAddress(), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/fiattokenfactory/types/message_unblacklist.go b/x/fiattokenfactory/types/message_unblacklist.go deleted file mode 100644 index acc84092..00000000 --- a/x/fiattokenfactory/types/message_unblacklist.go +++ /dev/null @@ -1,50 +0,0 @@ -package types - -import ( - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -const TypeMsgUnblacklist = "unblacklist" - -var _ sdk.Msg = &MsgUnblacklist{} - -func NewMsgUnblacklist(from, address string) *MsgUnblacklist { - return &MsgUnblacklist{ - From: from, - Address: address, - } -} - -func (msg *MsgUnblacklist) Route() string { - return RouterKey -} - -func (msg *MsgUnblacklist) Type() string { - return TypeMsgUnblacklist -} - -func (msg *MsgUnblacklist) GetSigners() []sdk.AccAddress { - from, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - panic(err) - } - return []sdk.AccAddress{from} -} - -func (msg *MsgUnblacklist) GetSignBytes() []byte { - bz := ModuleCdc.MustMarshalJSON(msg) - return sdk.MustSortJSON(bz) -} - -func (msg *MsgUnblacklist) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid from address (%s)", err) - } - - if len(msg.Address) <= 0 { - return sdkerrors.Wrap(sdkerrors.ErrInvalidAddress, "address length cannot be less than or equal to 0") - } - return nil -} diff --git a/x/fiattokenfactory/types/message_unblacklist_test.go b/x/fiattokenfactory/types/message_unblacklist_test.go deleted file mode 100644 index dd3563b5..00000000 --- a/x/fiattokenfactory/types/message_unblacklist_test.go +++ /dev/null @@ -1,51 +0,0 @@ -package types - -import ( - "testing" - - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/strangelove-ventures/noble/testutil/sample" - "github.com/stretchr/testify/require" -) - -func TestMsgUnblacklist_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgUnblacklist - err error - }{ - { - name: "invalid from", - msg: MsgUnblacklist{ - From: "invalid_address", - Address: sample.AccAddress(), - }, - err: sdkerrors.ErrInvalidAddress, - }, - { - name: "invalid block address", - msg: MsgUnblacklist{ - From: sample.AccAddress(), - Address: "", - }, - err: sdkerrors.ErrInvalidAddress, - }, - { - name: "valid block address and from", - msg: MsgUnblacklist{ - From: sample.AccAddress(), - Address: sample.AccAddress(), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/fiattokenfactory/types/message_unpause.go b/x/fiattokenfactory/types/message_unpause.go deleted file mode 100644 index 8e3b45c1..00000000 --- a/x/fiattokenfactory/types/message_unpause.go +++ /dev/null @@ -1,45 +0,0 @@ -package types - -import ( - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -const TypeMsgUnpause = "unpause" - -var _ sdk.Msg = &MsgUnpause{} - -func NewMsgUnpause(from string) *MsgUnpause { - return &MsgUnpause{ - From: from, - } -} - -func (msg *MsgUnpause) Route() string { - return RouterKey -} - -func (msg *MsgUnpause) Type() string { - return TypeMsgUnpause -} - -func (msg *MsgUnpause) GetSigners() []sdk.AccAddress { - from, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - panic(err) - } - return []sdk.AccAddress{from} -} - -func (msg *MsgUnpause) GetSignBytes() []byte { - bz := ModuleCdc.MustMarshalJSON(msg) - return sdk.MustSortJSON(bz) -} - -func (msg *MsgUnpause) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid from address (%s)", err) - } - return nil -} diff --git a/x/fiattokenfactory/types/message_unpause_test.go b/x/fiattokenfactory/types/message_unpause_test.go deleted file mode 100644 index 1fea193b..00000000 --- a/x/fiattokenfactory/types/message_unpause_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package types - -import ( - "testing" - - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/strangelove-ventures/noble/testutil/sample" - "github.com/stretchr/testify/require" -) - -func TestMsgUnpause_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgUnpause - err error - }{ - { - name: "invalid address", - msg: MsgUnpause{ - From: "invalid_address", - }, - err: sdkerrors.ErrInvalidAddress, - }, { - name: "valid address", - msg: MsgUnpause{ - From: sample.AccAddress(), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/fiattokenfactory/types/message_update_blacklister.go b/x/fiattokenfactory/types/message_update_blacklister.go deleted file mode 100644 index 3986ed3a..00000000 --- a/x/fiattokenfactory/types/message_update_blacklister.go +++ /dev/null @@ -1,50 +0,0 @@ -package types - -import ( - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -const TypeMsgUpdateBlacklister = "update_blacklister" - -var _ sdk.Msg = &MsgUpdateBlacklister{} - -func NewMsgUpdateBlacklister(from string, address string) *MsgUpdateBlacklister { - return &MsgUpdateBlacklister{ - From: from, - Address: address, - } -} - -func (msg *MsgUpdateBlacklister) Route() string { - return RouterKey -} - -func (msg *MsgUpdateBlacklister) Type() string { - return TypeMsgUpdateBlacklister -} - -func (msg *MsgUpdateBlacklister) GetSigners() []sdk.AccAddress { - from, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - panic(err) - } - return []sdk.AccAddress{from} -} - -func (msg *MsgUpdateBlacklister) GetSignBytes() []byte { - bz := ModuleCdc.MustMarshalJSON(msg) - return sdk.MustSortJSON(bz) -} - -func (msg *MsgUpdateBlacklister) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid from address (%s)", err) - } - _, err = sdk.AccAddressFromBech32(msg.Address) - if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid blacklister address (%s)", err) - } - return nil -} diff --git a/x/fiattokenfactory/types/message_update_blacklister_test.go b/x/fiattokenfactory/types/message_update_blacklister_test.go deleted file mode 100644 index 25bf72ef..00000000 --- a/x/fiattokenfactory/types/message_update_blacklister_test.go +++ /dev/null @@ -1,51 +0,0 @@ -package types - -import ( - "testing" - - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/strangelove-ventures/noble/testutil/sample" - "github.com/stretchr/testify/require" -) - -func TestMsgUpdateBlacklister_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgUpdateBlacklister - err error - }{ - { - name: "invalid from", - msg: MsgUpdateBlacklister{ - From: "invalid_address", - Address: sample.AccAddress(), - }, - err: sdkerrors.ErrInvalidAddress, - }, - { - name: "invalid address", - msg: MsgUpdateBlacklister{ - From: sample.AccAddress(), - Address: "invalid_address", - }, - err: sdkerrors.ErrInvalidAddress, - }, - { - name: "valid address and from", - msg: MsgUpdateBlacklister{ - From: sample.AccAddress(), - Address: sample.AccAddress(), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/fiattokenfactory/types/message_update_master_minter.go b/x/fiattokenfactory/types/message_update_master_minter.go deleted file mode 100644 index 156d4f41..00000000 --- a/x/fiattokenfactory/types/message_update_master_minter.go +++ /dev/null @@ -1,50 +0,0 @@ -package types - -import ( - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -const TypeMsgUpdateMasterMinter = "update_master_minter" - -var _ sdk.Msg = &MsgUpdateMasterMinter{} - -func NewMsgUpdateMasterMinter(from string, address string) *MsgUpdateMasterMinter { - return &MsgUpdateMasterMinter{ - From: from, - Address: address, - } -} - -func (msg *MsgUpdateMasterMinter) Route() string { - return RouterKey -} - -func (msg *MsgUpdateMasterMinter) Type() string { - return TypeMsgUpdateMasterMinter -} - -func (msg *MsgUpdateMasterMinter) GetSigners() []sdk.AccAddress { - from, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - panic(err) - } - return []sdk.AccAddress{from} -} - -func (msg *MsgUpdateMasterMinter) GetSignBytes() []byte { - bz := ModuleCdc.MustMarshalJSON(msg) - return sdk.MustSortJSON(bz) -} - -func (msg *MsgUpdateMasterMinter) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid from address (%s)", err) - } - _, err = sdk.AccAddressFromBech32(msg.Address) - if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid master minter address (%s)", err) - } - return nil -} diff --git a/x/fiattokenfactory/types/message_update_master_minter_test.go b/x/fiattokenfactory/types/message_update_master_minter_test.go deleted file mode 100644 index 2948afa5..00000000 --- a/x/fiattokenfactory/types/message_update_master_minter_test.go +++ /dev/null @@ -1,51 +0,0 @@ -package types - -import ( - "testing" - - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/strangelove-ventures/noble/testutil/sample" - "github.com/stretchr/testify/require" -) - -func TestMsgUpdateMasterMinter_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgUpdateMasterMinter - err error - }{ - { - name: "invalid from", - msg: MsgUpdateMasterMinter{ - From: "invalid_address", - Address: sample.AccAddress(), - }, - err: sdkerrors.ErrInvalidAddress, - }, - { - name: "invalid address", - msg: MsgUpdateMasterMinter{ - From: sample.AccAddress(), - Address: "invalid_address", - }, - err: sdkerrors.ErrInvalidAddress, - }, - { - name: "valid address and from", - msg: MsgUpdateMasterMinter{ - From: sample.AccAddress(), - Address: sample.AccAddress(), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/fiattokenfactory/types/message_update_owner.go b/x/fiattokenfactory/types/message_update_owner.go deleted file mode 100644 index 105ac91e..00000000 --- a/x/fiattokenfactory/types/message_update_owner.go +++ /dev/null @@ -1,50 +0,0 @@ -package types - -import ( - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -const TypeMsgUpdateOwner = "update_owner" - -var _ sdk.Msg = &MsgUpdateOwner{} - -func NewMsgUpdateOwner(from string, address string) *MsgUpdateOwner { - return &MsgUpdateOwner{ - From: from, - Address: address, - } -} - -func (msg *MsgUpdateOwner) Route() string { - return RouterKey -} - -func (msg *MsgUpdateOwner) Type() string { - return TypeMsgUpdateOwner -} - -func (msg *MsgUpdateOwner) GetSigners() []sdk.AccAddress { - from, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - panic(err) - } - return []sdk.AccAddress{from} -} - -func (msg *MsgUpdateOwner) GetSignBytes() []byte { - bz := ModuleCdc.MustMarshalJSON(msg) - return sdk.MustSortJSON(bz) -} - -func (msg *MsgUpdateOwner) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid from address (%s)", err) - } - _, err = sdk.AccAddressFromBech32(msg.Address) - if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid owner address (%s)", err) - } - return nil -} diff --git a/x/fiattokenfactory/types/message_update_owner_test.go b/x/fiattokenfactory/types/message_update_owner_test.go deleted file mode 100644 index d6d7b4b6..00000000 --- a/x/fiattokenfactory/types/message_update_owner_test.go +++ /dev/null @@ -1,51 +0,0 @@ -package types - -import ( - "testing" - - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/strangelove-ventures/noble/testutil/sample" - "github.com/stretchr/testify/require" -) - -func TestMsgUpdateOwner_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgUpdateOwner - err error - }{ - { - name: "invalid from", - msg: MsgUpdateOwner{ - From: "invalid_address", - Address: sample.AccAddress(), - }, - err: sdkerrors.ErrInvalidAddress, - }, - { - name: "invalid address", - msg: MsgUpdateOwner{ - From: sample.AccAddress(), - Address: "invalid_address", - }, - err: sdkerrors.ErrInvalidAddress, - }, - { - name: "valid address and from", - msg: MsgUpdateOwner{ - From: sample.AccAddress(), - Address: sample.AccAddress(), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/fiattokenfactory/types/message_update_pauser.go b/x/fiattokenfactory/types/message_update_pauser.go deleted file mode 100644 index f1212d3a..00000000 --- a/x/fiattokenfactory/types/message_update_pauser.go +++ /dev/null @@ -1,50 +0,0 @@ -package types - -import ( - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -const TypeMsgUpdatePauser = "update_pauser" - -var _ sdk.Msg = &MsgUpdatePauser{} - -func NewMsgUpdatePauser(from string, address string) *MsgUpdatePauser { - return &MsgUpdatePauser{ - From: from, - Address: address, - } -} - -func (msg *MsgUpdatePauser) Route() string { - return RouterKey -} - -func (msg *MsgUpdatePauser) Type() string { - return TypeMsgUpdatePauser -} - -func (msg *MsgUpdatePauser) GetSigners() []sdk.AccAddress { - from, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - panic(err) - } - return []sdk.AccAddress{from} -} - -func (msg *MsgUpdatePauser) GetSignBytes() []byte { - bz := ModuleCdc.MustMarshalJSON(msg) - return sdk.MustSortJSON(bz) -} - -func (msg *MsgUpdatePauser) ValidateBasic() error { - _, err := sdk.AccAddressFromBech32(msg.From) - if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid from address (%s)", err) - } - _, err = sdk.AccAddressFromBech32(msg.Address) - if err != nil { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid pauser address (%s)", err) - } - return nil -} diff --git a/x/fiattokenfactory/types/message_update_pauser_test.go b/x/fiattokenfactory/types/message_update_pauser_test.go deleted file mode 100644 index 749f37ee..00000000 --- a/x/fiattokenfactory/types/message_update_pauser_test.go +++ /dev/null @@ -1,51 +0,0 @@ -package types - -import ( - "testing" - - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/strangelove-ventures/noble/testutil/sample" - "github.com/stretchr/testify/require" -) - -func TestMsgUpdatePauser_ValidateBasic(t *testing.T) { - tests := []struct { - name string - msg MsgUpdatePauser - err error - }{ - { - name: "invalid from", - msg: MsgUpdatePauser{ - From: "invalid_address", - Address: sample.AccAddress(), - }, - err: sdkerrors.ErrInvalidAddress, - }, - { - name: "invalid address", - msg: MsgUpdatePauser{ - From: sample.AccAddress(), - Address: "invalid_address", - }, - err: sdkerrors.ErrInvalidAddress, - }, - { - name: "valid address and from", - msg: MsgUpdatePauser{ - From: sample.AccAddress(), - Address: sample.AccAddress(), - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) - return - } - require.NoError(t, err) - }) - } -} diff --git a/x/fiattokenfactory/types/minter_controller.pb.go b/x/fiattokenfactory/types/minter_controller.pb.go deleted file mode 100644 index cb0f63f4..00000000 --- a/x/fiattokenfactory/types/minter_controller.pb.go +++ /dev/null @@ -1,369 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: fiattokenfactory/minter_controller.proto - -package types - -import ( - fmt "fmt" - proto "github.com/gogo/protobuf/proto" - io "io" - math "math" - math_bits "math/bits" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -type MinterController struct { - Minter string `protobuf:"bytes,1,opt,name=minter,proto3" json:"minter,omitempty"` - Controller string `protobuf:"bytes,2,opt,name=controller,proto3" json:"controller,omitempty"` -} - -func (m *MinterController) Reset() { *m = MinterController{} } -func (m *MinterController) String() string { return proto.CompactTextString(m) } -func (*MinterController) ProtoMessage() {} -func (*MinterController) Descriptor() ([]byte, []int) { - return fileDescriptor_1affbda666df4b99, []int{0} -} -func (m *MinterController) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MinterController) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MinterController.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *MinterController) XXX_Merge(src proto.Message) { - xxx_messageInfo_MinterController.Merge(m, src) -} -func (m *MinterController) XXX_Size() int { - return m.Size() -} -func (m *MinterController) XXX_DiscardUnknown() { - xxx_messageInfo_MinterController.DiscardUnknown(m) -} - -var xxx_messageInfo_MinterController proto.InternalMessageInfo - -func (m *MinterController) GetMinter() string { - if m != nil { - return m.Minter - } - return "" -} - -func (m *MinterController) GetController() string { - if m != nil { - return m.Controller - } - return "" -} - -func init() { - proto.RegisterType((*MinterController)(nil), "noble.fiattokenfactory.MinterController") -} - -func init() { - proto.RegisterFile("fiattokenfactory/minter_controller.proto", fileDescriptor_1affbda666df4b99) -} - -var fileDescriptor_1affbda666df4b99 = []byte{ - // 192 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0x48, 0xcb, 0x4c, 0x2c, - 0x29, 0xc9, 0xcf, 0x4e, 0xcd, 0x4b, 0x4b, 0x4c, 0x2e, 0xc9, 0x2f, 0xaa, 0xd4, 0xcf, 0xcd, 0xcc, - 0x2b, 0x49, 0x2d, 0x8a, 0x4f, 0xce, 0xcf, 0x2b, 0x29, 0xca, 0xcf, 0xc9, 0x49, 0x2d, 0xd2, 0x2b, - 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0xcb, 0xcb, 0x4f, 0xca, 0x49, 0xd5, 0x43, 0x57, 0xaf, 0xe4, - 0xc5, 0x25, 0xe0, 0x0b, 0xd6, 0xe2, 0x0c, 0xd7, 0x21, 0x24, 0xc6, 0xc5, 0x06, 0x31, 0x46, 0x82, - 0x51, 0x81, 0x51, 0x83, 0x33, 0x08, 0xca, 0x13, 0x92, 0xe3, 0xe2, 0x42, 0x98, 0x2b, 0xc1, 0x04, - 0x96, 0x43, 0x12, 0x71, 0x8a, 0x38, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, 0xc6, 0x07, 0x8f, - 0xe4, 0x18, 0x27, 0x3c, 0x96, 0x63, 0xb8, 0xf0, 0x58, 0x8e, 0xe1, 0xc6, 0x63, 0x39, 0x86, 0x28, - 0xbb, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0xfd, 0xe2, 0x92, 0xa2, 0xc4, - 0xbc, 0xf4, 0xd4, 0x9c, 0xfc, 0xb2, 0x54, 0xdd, 0xb2, 0xd4, 0xbc, 0x92, 0xd2, 0xa2, 0xd4, 0x62, - 0x7d, 0xb0, 0xeb, 0xf4, 0x2b, 0xf4, 0x31, 0xfc, 0x53, 0x52, 0x59, 0x90, 0x5a, 0x9c, 0xc4, 0x06, - 0xf6, 0x84, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0xc1, 0x8c, 0x7d, 0x78, 0xf0, 0x00, 0x00, 0x00, -} - -func (m *MinterController) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MinterController) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MinterController) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Controller) > 0 { - i -= len(m.Controller) - copy(dAtA[i:], m.Controller) - i = encodeVarintMinterController(dAtA, i, uint64(len(m.Controller))) - i-- - dAtA[i] = 0x12 - } - if len(m.Minter) > 0 { - i -= len(m.Minter) - copy(dAtA[i:], m.Minter) - i = encodeVarintMinterController(dAtA, i, uint64(len(m.Minter))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintMinterController(dAtA []byte, offset int, v uint64) int { - offset -= sovMinterController(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *MinterController) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Minter) - if l > 0 { - n += 1 + l + sovMinterController(uint64(l)) - } - l = len(m.Controller) - if l > 0 { - n += 1 + l + sovMinterController(uint64(l)) - } - return n -} - -func sovMinterController(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozMinterController(x uint64) (n int) { - return sovMinterController(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *MinterController) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMinterController - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MinterController: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MinterController: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Minter", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMinterController - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthMinterController - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMinterController - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Minter = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Controller", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMinterController - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthMinterController - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMinterController - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Controller = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMinterController(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMinterController - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipMinterController(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowMinterController - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowMinterController - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowMinterController - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthMinterController - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupMinterController - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthMinterController - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthMinterController = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowMinterController = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupMinterController = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/fiattokenfactory/types/minters.pb.go b/x/fiattokenfactory/types/minters.pb.go deleted file mode 100644 index 8daac404..00000000 --- a/x/fiattokenfactory/types/minters.pb.go +++ /dev/null @@ -1,375 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: fiattokenfactory/minters.proto - -package types - -import ( - fmt "fmt" - types "github.com/cosmos/cosmos-sdk/types" - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" - io "io" - math "math" - math_bits "math/bits" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -type Minters struct { - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - Allowance types.Coin `protobuf:"bytes,2,opt,name=allowance,proto3" json:"allowance"` -} - -func (m *Minters) Reset() { *m = Minters{} } -func (m *Minters) String() string { return proto.CompactTextString(m) } -func (*Minters) ProtoMessage() {} -func (*Minters) Descriptor() ([]byte, []int) { - return fileDescriptor_eaf83371ab173141, []int{0} -} -func (m *Minters) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Minters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Minters.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Minters) XXX_Merge(src proto.Message) { - xxx_messageInfo_Minters.Merge(m, src) -} -func (m *Minters) XXX_Size() int { - return m.Size() -} -func (m *Minters) XXX_DiscardUnknown() { - xxx_messageInfo_Minters.DiscardUnknown(m) -} - -var xxx_messageInfo_Minters proto.InternalMessageInfo - -func (m *Minters) GetAddress() string { - if m != nil { - return m.Address - } - return "" -} - -func (m *Minters) GetAllowance() types.Coin { - if m != nil { - return m.Allowance - } - return types.Coin{} -} - -func init() { - proto.RegisterType((*Minters)(nil), "noble.fiattokenfactory.Minters") -} - -func init() { proto.RegisterFile("fiattokenfactory/minters.proto", fileDescriptor_eaf83371ab173141) } - -var fileDescriptor_eaf83371ab173141 = []byte{ - // 251 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x90, 0xb1, 0x4e, 0xc3, 0x30, - 0x10, 0x86, 0x63, 0x84, 0xa8, 0x1a, 0xb6, 0x08, 0xa1, 0xd0, 0xc1, 0x54, 0x4c, 0x5d, 0xb0, 0x55, - 0x98, 0x61, 0x28, 0x33, 0x4b, 0x27, 0xc4, 0x66, 0xbb, 0xd7, 0x60, 0x91, 0xf8, 0x2a, 0xdf, 0x35, - 0xd0, 0xb7, 0xe0, 0xb1, 0x3a, 0x76, 0x64, 0x42, 0x28, 0x79, 0x11, 0xd4, 0x04, 0x84, 0x04, 0xdb, - 0x9d, 0xee, 0xbb, 0x4f, 0xfa, 0xff, 0x54, 0x2e, 0xbd, 0x61, 0xc6, 0x67, 0x08, 0x4b, 0xe3, 0x18, - 0xe3, 0x46, 0x57, 0x3e, 0x30, 0x44, 0x52, 0xab, 0x88, 0x8c, 0xd9, 0x69, 0x40, 0x5b, 0x82, 0xfa, - 0x4b, 0x8d, 0x4e, 0x0a, 0x2c, 0xb0, 0x43, 0xf4, 0x7e, 0xea, 0xe9, 0x91, 0x74, 0x48, 0x15, 0x92, - 0xb6, 0x86, 0x40, 0xd7, 0x53, 0x0b, 0x6c, 0xa6, 0xda, 0xa1, 0x0f, 0xfd, 0xfd, 0xc2, 0xa6, 0x83, - 0xfb, 0x5e, 0x9f, 0xe5, 0xe9, 0xc0, 0x2c, 0x16, 0x11, 0x88, 0x72, 0x31, 0x16, 0x93, 0xe1, 0xfc, - 0x67, 0xcd, 0x6e, 0xd2, 0xa1, 0x29, 0x4b, 0x7c, 0x31, 0xc1, 0x41, 0x7e, 0x30, 0x16, 0x93, 0xe3, - 0xab, 0x33, 0xd5, 0x8b, 0xd5, 0x5e, 0xac, 0xbe, 0xc5, 0xea, 0x0e, 0x7d, 0x98, 0x1d, 0x6e, 0x3f, - 0xce, 0x93, 0xf9, 0xef, 0xc7, 0xec, 0x61, 0xdb, 0x48, 0xb1, 0x6b, 0xa4, 0xf8, 0x6c, 0xa4, 0x78, - 0x6b, 0x65, 0xb2, 0x6b, 0x65, 0xf2, 0xde, 0xca, 0xe4, 0xf1, 0xb6, 0xf0, 0xfc, 0xb4, 0xb6, 0xca, - 0x61, 0xa5, 0x89, 0xa3, 0x09, 0x05, 0x94, 0x58, 0xc3, 0x65, 0x0d, 0x81, 0xd7, 0x11, 0x48, 0x77, - 0x59, 0xf5, 0xab, 0xfe, 0xd7, 0x09, 0x6f, 0x56, 0x40, 0xf6, 0xa8, 0x0b, 0x71, 0xfd, 0x15, 0x00, - 0x00, 0xff, 0xff, 0x0a, 0x9a, 0xb6, 0x1f, 0x34, 0x01, 0x00, 0x00, -} - -func (m *Minters) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Minters) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Minters) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Allowance.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMinters(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - if len(m.Address) > 0 { - i -= len(m.Address) - copy(dAtA[i:], m.Address) - i = encodeVarintMinters(dAtA, i, uint64(len(m.Address))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintMinters(dAtA []byte, offset int, v uint64) int { - offset -= sovMinters(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *Minters) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Address) - if l > 0 { - n += 1 + l + sovMinters(uint64(l)) - } - l = m.Allowance.Size() - n += 1 + l + sovMinters(uint64(l)) - return n -} - -func sovMinters(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozMinters(x uint64) (n int) { - return sovMinters(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *Minters) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMinters - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Minters: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Minters: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMinters - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthMinters - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMinters - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Address = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Allowance", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMinters - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMinters - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMinters - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Allowance.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMinters(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMinters - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipMinters(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowMinters - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowMinters - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowMinters - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthMinters - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupMinters - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthMinters - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthMinters = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowMinters = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupMinters = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/fiattokenfactory/types/minting_denom.pb.go b/x/fiattokenfactory/types/minting_denom.pb.go deleted file mode 100644 index 1762fe1f..00000000 --- a/x/fiattokenfactory/types/minting_denom.pb.go +++ /dev/null @@ -1,317 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: fiattokenfactory/minting_denom.proto - -package types - -import ( - fmt "fmt" - proto "github.com/gogo/protobuf/proto" - io "io" - math "math" - math_bits "math/bits" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -type MintingDenom struct { - Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` -} - -func (m *MintingDenom) Reset() { *m = MintingDenom{} } -func (m *MintingDenom) String() string { return proto.CompactTextString(m) } -func (*MintingDenom) ProtoMessage() {} -func (*MintingDenom) Descriptor() ([]byte, []int) { - return fileDescriptor_57da9c201498e652, []int{0} -} -func (m *MintingDenom) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MintingDenom) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MintingDenom.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *MintingDenom) XXX_Merge(src proto.Message) { - xxx_messageInfo_MintingDenom.Merge(m, src) -} -func (m *MintingDenom) XXX_Size() int { - return m.Size() -} -func (m *MintingDenom) XXX_DiscardUnknown() { - xxx_messageInfo_MintingDenom.DiscardUnknown(m) -} - -var xxx_messageInfo_MintingDenom proto.InternalMessageInfo - -func (m *MintingDenom) GetDenom() string { - if m != nil { - return m.Denom - } - return "" -} - -func init() { - proto.RegisterType((*MintingDenom)(nil), "noble.fiattokenfactory.MintingDenom") -} - -func init() { - proto.RegisterFile("fiattokenfactory/minting_denom.proto", fileDescriptor_57da9c201498e652) -} - -var fileDescriptor_57da9c201498e652 = []byte{ - // 176 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x49, 0xcb, 0x4c, 0x2c, - 0x29, 0xc9, 0xcf, 0x4e, 0xcd, 0x4b, 0x4b, 0x4c, 0x2e, 0xc9, 0x2f, 0xaa, 0xd4, 0xcf, 0xcd, 0xcc, - 0x2b, 0xc9, 0xcc, 0x4b, 0x8f, 0x4f, 0x49, 0xcd, 0xcb, 0xcf, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, - 0x17, 0x12, 0xcb, 0xcb, 0x4f, 0xca, 0x49, 0xd5, 0x43, 0x57, 0xab, 0xa4, 0xc2, 0xc5, 0xe3, 0x0b, - 0x51, 0xee, 0x02, 0x52, 0x2d, 0x24, 0xc2, 0xc5, 0x0a, 0xd6, 0x26, 0xc1, 0xa8, 0xc0, 0xa8, 0xc1, - 0x19, 0x04, 0xe1, 0x38, 0x45, 0x9c, 0x78, 0x24, 0xc7, 0x78, 0xe1, 0x91, 0x1c, 0xe3, 0x83, 0x47, - 0x72, 0x8c, 0x13, 0x1e, 0xcb, 0x31, 0x5c, 0x78, 0x2c, 0xc7, 0x70, 0xe3, 0xb1, 0x1c, 0x43, 0x94, - 0x5d, 0x7a, 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e, 0xae, 0x7e, 0x71, 0x49, 0x51, 0x62, - 0x5e, 0x7a, 0x6a, 0x4e, 0x7e, 0x59, 0xaa, 0x6e, 0x59, 0x6a, 0x5e, 0x49, 0x69, 0x51, 0x6a, 0xb1, - 0x3e, 0xd8, 0x5e, 0xfd, 0x0a, 0x7d, 0x0c, 0x57, 0x96, 0x54, 0x16, 0xa4, 0x16, 0x27, 0xb1, 0x81, - 0x9d, 0x67, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x49, 0x92, 0xa2, 0x21, 0xc6, 0x00, 0x00, 0x00, -} - -func (m *MintingDenom) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MintingDenom) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MintingDenom) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Denom) > 0 { - i -= len(m.Denom) - copy(dAtA[i:], m.Denom) - i = encodeVarintMintingDenom(dAtA, i, uint64(len(m.Denom))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintMintingDenom(dAtA []byte, offset int, v uint64) int { - offset -= sovMintingDenom(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *MintingDenom) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Denom) - if l > 0 { - n += 1 + l + sovMintingDenom(uint64(l)) - } - return n -} - -func sovMintingDenom(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozMintingDenom(x uint64) (n int) { - return sovMintingDenom(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *MintingDenom) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMintingDenom - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MintingDenom: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MintingDenom: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMintingDenom - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthMintingDenom - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMintingDenom - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Denom = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMintingDenom(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMintingDenom - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipMintingDenom(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowMintingDenom - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowMintingDenom - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowMintingDenom - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthMintingDenom - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupMintingDenom - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthMintingDenom - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthMintingDenom = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowMintingDenom = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupMintingDenom = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/fiattokenfactory/types/owner.pb.go b/x/fiattokenfactory/types/owner.pb.go deleted file mode 100644 index 2121c024..00000000 --- a/x/fiattokenfactory/types/owner.pb.go +++ /dev/null @@ -1,315 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: fiattokenfactory/owner.proto - -package types - -import ( - fmt "fmt" - proto "github.com/gogo/protobuf/proto" - io "io" - math "math" - math_bits "math/bits" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -type Owner struct { - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` -} - -func (m *Owner) Reset() { *m = Owner{} } -func (m *Owner) String() string { return proto.CompactTextString(m) } -func (*Owner) ProtoMessage() {} -func (*Owner) Descriptor() ([]byte, []int) { - return fileDescriptor_c0cba5663ac2a21a, []int{0} -} -func (m *Owner) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Owner) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Owner.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Owner) XXX_Merge(src proto.Message) { - xxx_messageInfo_Owner.Merge(m, src) -} -func (m *Owner) XXX_Size() int { - return m.Size() -} -func (m *Owner) XXX_DiscardUnknown() { - xxx_messageInfo_Owner.DiscardUnknown(m) -} - -var xxx_messageInfo_Owner proto.InternalMessageInfo - -func (m *Owner) GetAddress() string { - if m != nil { - return m.Address - } - return "" -} - -func init() { - proto.RegisterType((*Owner)(nil), "noble.fiattokenfactory.Owner") -} - -func init() { proto.RegisterFile("fiattokenfactory/owner.proto", fileDescriptor_c0cba5663ac2a21a) } - -var fileDescriptor_c0cba5663ac2a21a = []byte{ - // 170 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x49, 0xcb, 0x4c, 0x2c, - 0x29, 0xc9, 0xcf, 0x4e, 0xcd, 0x4b, 0x4b, 0x4c, 0x2e, 0xc9, 0x2f, 0xaa, 0xd4, 0xcf, 0x2f, 0xcf, - 0x4b, 0x2d, 0xd2, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0xcb, 0xcb, 0x4f, 0xca, 0x49, 0xd5, - 0x43, 0x57, 0xa3, 0xa4, 0xc8, 0xc5, 0xea, 0x0f, 0x52, 0x26, 0x24, 0xc1, 0xc5, 0x9e, 0x98, 0x92, - 0x52, 0x94, 0x5a, 0x5c, 0x2c, 0xc1, 0xa8, 0xc0, 0xa8, 0xc1, 0x19, 0x04, 0xe3, 0x3a, 0x45, 0x9c, - 0x78, 0x24, 0xc7, 0x78, 0xe1, 0x91, 0x1c, 0xe3, 0x83, 0x47, 0x72, 0x8c, 0x13, 0x1e, 0xcb, 0x31, - 0x5c, 0x78, 0x2c, 0xc7, 0x70, 0xe3, 0xb1, 0x1c, 0x43, 0x94, 0x5d, 0x7a, 0x66, 0x49, 0x46, 0x69, - 0x92, 0x5e, 0x72, 0x7e, 0xae, 0x7e, 0x71, 0x49, 0x51, 0x62, 0x5e, 0x7a, 0x6a, 0x4e, 0x7e, 0x59, - 0xaa, 0x6e, 0x59, 0x6a, 0x5e, 0x49, 0x69, 0x51, 0x6a, 0xb1, 0x3e, 0xd8, 0x52, 0xfd, 0x0a, 0x7d, - 0x0c, 0xa7, 0x95, 0x54, 0x16, 0xa4, 0x16, 0x27, 0xb1, 0x81, 0xdd, 0x66, 0x0c, 0x08, 0x00, 0x00, - 0xff, 0xff, 0x5a, 0x42, 0x7b, 0xf0, 0xbb, 0x00, 0x00, 0x00, -} - -func (m *Owner) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Owner) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Owner) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Address) > 0 { - i -= len(m.Address) - copy(dAtA[i:], m.Address) - i = encodeVarintOwner(dAtA, i, uint64(len(m.Address))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintOwner(dAtA []byte, offset int, v uint64) int { - offset -= sovOwner(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *Owner) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Address) - if l > 0 { - n += 1 + l + sovOwner(uint64(l)) - } - return n -} - -func sovOwner(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozOwner(x uint64) (n int) { - return sovOwner(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *Owner) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowOwner - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Owner: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Owner: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowOwner - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthOwner - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthOwner - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Address = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipOwner(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthOwner - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipOwner(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowOwner - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowOwner - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowOwner - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthOwner - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupOwner - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthOwner - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthOwner = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowOwner = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupOwner = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/fiattokenfactory/types/params.go b/x/fiattokenfactory/types/params.go deleted file mode 100644 index 357196ad..00000000 --- a/x/fiattokenfactory/types/params.go +++ /dev/null @@ -1,39 +0,0 @@ -package types - -import ( - paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" - "gopkg.in/yaml.v2" -) - -var _ paramtypes.ParamSet = (*Params)(nil) - -// ParamKeyTable the param key table for launch module -func ParamKeyTable() paramtypes.KeyTable { - return paramtypes.NewKeyTable().RegisterParamSet(&Params{}) -} - -// NewParams creates a new Params instance -func NewParams() Params { - return Params{} -} - -// DefaultParams returns a default set of parameters -func DefaultParams() Params { - return NewParams() -} - -// ParamSetPairs get the params.ParamSet -func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs { - return paramtypes.ParamSetPairs{} -} - -// Validate validates the set of params -func (p Params) Validate() error { - return nil -} - -// String implements the Stringer interface. -func (p Params) String() string { - out, _ := yaml.Marshal(p) - return string(out) -} diff --git a/x/fiattokenfactory/types/params.pb.go b/x/fiattokenfactory/types/params.pb.go deleted file mode 100644 index 0278883a..00000000 --- a/x/fiattokenfactory/types/params.pb.go +++ /dev/null @@ -1,265 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: fiattokenfactory/params.proto - -package types - -import ( - fmt "fmt" - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" - io "io" - math "math" - math_bits "math/bits" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -// Params defines the parameters for the module. -type Params struct { -} - -func (m *Params) Reset() { *m = Params{} } -func (*Params) ProtoMessage() {} -func (*Params) Descriptor() ([]byte, []int) { - return fileDescriptor_59029b001dd68fb6, []int{0} -} -func (m *Params) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Params.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Params) XXX_Merge(src proto.Message) { - xxx_messageInfo_Params.Merge(m, src) -} -func (m *Params) XXX_Size() int { - return m.Size() -} -func (m *Params) XXX_DiscardUnknown() { - xxx_messageInfo_Params.DiscardUnknown(m) -} - -var xxx_messageInfo_Params proto.InternalMessageInfo - -func init() { - proto.RegisterType((*Params)(nil), "noble.fiattokenfactory.Params") -} - -func init() { proto.RegisterFile("fiattokenfactory/params.proto", fileDescriptor_59029b001dd68fb6) } - -var fileDescriptor_59029b001dd68fb6 = []byte{ - // 170 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4d, 0xcb, 0x4c, 0x2c, - 0x29, 0xc9, 0xcf, 0x4e, 0xcd, 0x4b, 0x4b, 0x4c, 0x2e, 0xc9, 0x2f, 0xaa, 0xd4, 0x2f, 0x48, 0x2c, - 0x4a, 0xcc, 0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0xcb, 0xcb, 0x4f, 0xca, 0x49, - 0xd5, 0x43, 0x57, 0x24, 0x25, 0x92, 0x9e, 0x9f, 0x9e, 0x0f, 0x56, 0xa2, 0x0f, 0x62, 0x41, 0x54, - 0x2b, 0xf1, 0x71, 0xb1, 0x05, 0x80, 0x75, 0x5b, 0xb1, 0xcc, 0x58, 0x20, 0xcf, 0xe0, 0x14, 0x71, - 0xe2, 0x91, 0x1c, 0xe3, 0x85, 0x47, 0x72, 0x8c, 0x0f, 0x1e, 0xc9, 0x31, 0x4e, 0x78, 0x2c, 0xc7, - 0x70, 0xe1, 0xb1, 0x1c, 0xc3, 0x8d, 0xc7, 0x72, 0x0c, 0x51, 0x76, 0xe9, 0x99, 0x25, 0x19, 0xa5, - 0x49, 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0xc5, 0x25, 0x45, 0x89, 0x79, 0xe9, 0xa9, 0x39, 0xf9, 0x65, - 0xa9, 0xba, 0x65, 0xa9, 0x79, 0x25, 0xa5, 0x45, 0xa9, 0xc5, 0xfa, 0x60, 0x7b, 0xf5, 0x2b, 0xf4, - 0x31, 0x9c, 0x57, 0x52, 0x59, 0x90, 0x5a, 0x9c, 0xc4, 0x06, 0xb6, 0xd0, 0x18, 0x10, 0x00, 0x00, - 0xff, 0xff, 0xa8, 0x98, 0xc2, 0xd8, 0xbf, 0x00, 0x00, 0x00, -} - -func (m *Params) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Params) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func encodeVarintParams(dAtA []byte, offset int, v uint64) int { - offset -= sovParams(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *Params) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func sovParams(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozParams(x uint64) (n int) { - return sovParams(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *Params) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowParams - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Params: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipParams(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthParams - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipParams(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowParams - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowParams - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowParams - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthParams - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupParams - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthParams - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/fiattokenfactory/types/paused.pb.go b/x/fiattokenfactory/types/paused.pb.go deleted file mode 100644 index d27a0577..00000000 --- a/x/fiattokenfactory/types/paused.pb.go +++ /dev/null @@ -1,305 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: fiattokenfactory/paused.proto - -package types - -import ( - fmt "fmt" - proto "github.com/gogo/protobuf/proto" - io "io" - math "math" - math_bits "math/bits" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -type Paused struct { - Paused bool `protobuf:"varint,1,opt,name=paused,proto3" json:"paused,omitempty"` -} - -func (m *Paused) Reset() { *m = Paused{} } -func (m *Paused) String() string { return proto.CompactTextString(m) } -func (*Paused) ProtoMessage() {} -func (*Paused) Descriptor() ([]byte, []int) { - return fileDescriptor_9165baf6a99b8e45, []int{0} -} -func (m *Paused) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Paused) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Paused.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Paused) XXX_Merge(src proto.Message) { - xxx_messageInfo_Paused.Merge(m, src) -} -func (m *Paused) XXX_Size() int { - return m.Size() -} -func (m *Paused) XXX_DiscardUnknown() { - xxx_messageInfo_Paused.DiscardUnknown(m) -} - -var xxx_messageInfo_Paused proto.InternalMessageInfo - -func (m *Paused) GetPaused() bool { - if m != nil { - return m.Paused - } - return false -} - -func init() { - proto.RegisterType((*Paused)(nil), "noble.fiattokenfactory.Paused") -} - -func init() { proto.RegisterFile("fiattokenfactory/paused.proto", fileDescriptor_9165baf6a99b8e45) } - -var fileDescriptor_9165baf6a99b8e45 = []byte{ - // 166 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4d, 0xcb, 0x4c, 0x2c, - 0x29, 0xc9, 0xcf, 0x4e, 0xcd, 0x4b, 0x4b, 0x4c, 0x2e, 0xc9, 0x2f, 0xaa, 0xd4, 0x2f, 0x48, 0x2c, - 0x2d, 0x4e, 0x4d, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0xcb, 0xcb, 0x4f, 0xca, 0x49, - 0xd5, 0x43, 0x57, 0xa4, 0xa4, 0xc0, 0xc5, 0x16, 0x00, 0x56, 0x27, 0x24, 0xc6, 0xc5, 0x06, 0xd1, - 0x21, 0xc1, 0xa8, 0xc0, 0xa8, 0xc1, 0x11, 0x04, 0xe5, 0x39, 0x45, 0x9c, 0x78, 0x24, 0xc7, 0x78, - 0xe1, 0x91, 0x1c, 0xe3, 0x83, 0x47, 0x72, 0x8c, 0x13, 0x1e, 0xcb, 0x31, 0x5c, 0x78, 0x2c, 0xc7, - 0x70, 0xe3, 0xb1, 0x1c, 0x43, 0x94, 0x5d, 0x7a, 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e, - 0xae, 0x7e, 0x71, 0x49, 0x51, 0x62, 0x5e, 0x7a, 0x6a, 0x4e, 0x7e, 0x59, 0xaa, 0x6e, 0x59, 0x6a, - 0x5e, 0x49, 0x69, 0x51, 0x6a, 0xb1, 0x3e, 0xd8, 0x4e, 0xfd, 0x0a, 0x7d, 0x0c, 0xa7, 0x95, 0x54, - 0x16, 0xa4, 0x16, 0x27, 0xb1, 0x81, 0x9d, 0x66, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0xb5, 0x3d, - 0x2d, 0x62, 0xbb, 0x00, 0x00, 0x00, -} - -func (m *Paused) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Paused) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Paused) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Paused { - i-- - if m.Paused { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func encodeVarintPaused(dAtA []byte, offset int, v uint64) int { - offset -= sovPaused(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *Paused) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Paused { - n += 2 - } - return n -} - -func sovPaused(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozPaused(x uint64) (n int) { - return sovPaused(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *Paused) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPaused - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Paused: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Paused: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Paused", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPaused - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Paused = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipPaused(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPaused - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipPaused(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowPaused - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowPaused - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowPaused - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthPaused - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupPaused - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthPaused - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthPaused = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowPaused = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupPaused = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/fiattokenfactory/types/pauser.pb.go b/x/fiattokenfactory/types/pauser.pb.go deleted file mode 100644 index 280040b0..00000000 --- a/x/fiattokenfactory/types/pauser.pb.go +++ /dev/null @@ -1,315 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: fiattokenfactory/pauser.proto - -package types - -import ( - fmt "fmt" - proto "github.com/gogo/protobuf/proto" - io "io" - math "math" - math_bits "math/bits" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -type Pauser struct { - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` -} - -func (m *Pauser) Reset() { *m = Pauser{} } -func (m *Pauser) String() string { return proto.CompactTextString(m) } -func (*Pauser) ProtoMessage() {} -func (*Pauser) Descriptor() ([]byte, []int) { - return fileDescriptor_9e1cae75310a046a, []int{0} -} -func (m *Pauser) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Pauser) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Pauser.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Pauser) XXX_Merge(src proto.Message) { - xxx_messageInfo_Pauser.Merge(m, src) -} -func (m *Pauser) XXX_Size() int { - return m.Size() -} -func (m *Pauser) XXX_DiscardUnknown() { - xxx_messageInfo_Pauser.DiscardUnknown(m) -} - -var xxx_messageInfo_Pauser proto.InternalMessageInfo - -func (m *Pauser) GetAddress() string { - if m != nil { - return m.Address - } - return "" -} - -func init() { - proto.RegisterType((*Pauser)(nil), "noble.fiattokenfactory.Pauser") -} - -func init() { proto.RegisterFile("fiattokenfactory/pauser.proto", fileDescriptor_9e1cae75310a046a) } - -var fileDescriptor_9e1cae75310a046a = []byte{ - // 171 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4d, 0xcb, 0x4c, 0x2c, - 0x29, 0xc9, 0xcf, 0x4e, 0xcd, 0x4b, 0x4b, 0x4c, 0x2e, 0xc9, 0x2f, 0xaa, 0xd4, 0x2f, 0x48, 0x2c, - 0x2d, 0x4e, 0x2d, 0xd2, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0xcb, 0xcb, 0x4f, 0xca, 0x49, - 0xd5, 0x43, 0x57, 0xa4, 0xa4, 0xc4, 0xc5, 0x16, 0x00, 0x56, 0x27, 0x24, 0xc1, 0xc5, 0x9e, 0x98, - 0x92, 0x52, 0x94, 0x5a, 0x5c, 0x2c, 0xc1, 0xa8, 0xc0, 0xa8, 0xc1, 0x19, 0x04, 0xe3, 0x3a, 0x45, - 0x9c, 0x78, 0x24, 0xc7, 0x78, 0xe1, 0x91, 0x1c, 0xe3, 0x83, 0x47, 0x72, 0x8c, 0x13, 0x1e, 0xcb, - 0x31, 0x5c, 0x78, 0x2c, 0xc7, 0x70, 0xe3, 0xb1, 0x1c, 0x43, 0x94, 0x5d, 0x7a, 0x66, 0x49, 0x46, - 0x69, 0x92, 0x5e, 0x72, 0x7e, 0xae, 0x7e, 0x71, 0x49, 0x51, 0x62, 0x5e, 0x7a, 0x6a, 0x4e, 0x7e, - 0x59, 0xaa, 0x6e, 0x59, 0x6a, 0x5e, 0x49, 0x69, 0x51, 0x6a, 0xb1, 0x3e, 0xd8, 0x56, 0xfd, 0x0a, - 0x7d, 0x0c, 0xc7, 0x95, 0x54, 0x16, 0xa4, 0x16, 0x27, 0xb1, 0x81, 0x1d, 0x67, 0x0c, 0x08, 0x00, - 0x00, 0xff, 0xff, 0x03, 0x47, 0x40, 0xa5, 0xbd, 0x00, 0x00, 0x00, -} - -func (m *Pauser) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Pauser) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Pauser) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Address) > 0 { - i -= len(m.Address) - copy(dAtA[i:], m.Address) - i = encodeVarintPauser(dAtA, i, uint64(len(m.Address))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintPauser(dAtA []byte, offset int, v uint64) int { - offset -= sovPauser(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *Pauser) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Address) - if l > 0 { - n += 1 + l + sovPauser(uint64(l)) - } - return n -} - -func sovPauser(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozPauser(x uint64) (n int) { - return sovPauser(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *Pauser) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPauser - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Pauser: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Pauser: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPauser - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthPauser - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthPauser - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Address = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPauser(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPauser - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipPauser(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowPauser - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowPauser - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowPauser - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthPauser - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupPauser - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthPauser - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthPauser = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowPauser = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupPauser = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/fiattokenfactory/types/query.pb.go b/x/fiattokenfactory/types/query.pb.go deleted file mode 100644 index 7860bd30..00000000 --- a/x/fiattokenfactory/types/query.pb.go +++ /dev/null @@ -1,5079 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: fiattokenfactory/query.proto - -package types - -import ( - context "context" - fmt "fmt" - _ "github.com/cosmos/cosmos-sdk/types" - query "github.com/cosmos/cosmos-sdk/types/query" - _ "github.com/gogo/protobuf/gogoproto" - grpc1 "github.com/gogo/protobuf/grpc" - proto "github.com/gogo/protobuf/proto" - _ "google.golang.org/genproto/googleapis/api/annotations" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - io "io" - math "math" - math_bits "math/bits" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -// QueryParamsRequest is request type for the Query/Params RPC method. -type QueryParamsRequest struct { -} - -func (m *QueryParamsRequest) Reset() { *m = QueryParamsRequest{} } -func (m *QueryParamsRequest) String() string { return proto.CompactTextString(m) } -func (*QueryParamsRequest) ProtoMessage() {} -func (*QueryParamsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_f04e1100d4ebe501, []int{0} -} -func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryParamsRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryParamsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryParamsRequest.Merge(m, src) -} -func (m *QueryParamsRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryParamsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryParamsRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryParamsRequest proto.InternalMessageInfo - -// QueryParamsResponse is response type for the Query/Params RPC method. -type QueryParamsResponse struct { - // params holds all the parameters of this module. - Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` -} - -func (m *QueryParamsResponse) Reset() { *m = QueryParamsResponse{} } -func (m *QueryParamsResponse) String() string { return proto.CompactTextString(m) } -func (*QueryParamsResponse) ProtoMessage() {} -func (*QueryParamsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_f04e1100d4ebe501, []int{1} -} -func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryParamsResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryParamsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryParamsResponse.Merge(m, src) -} -func (m *QueryParamsResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryParamsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryParamsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryParamsResponse proto.InternalMessageInfo - -func (m *QueryParamsResponse) GetParams() Params { - if m != nil { - return m.Params - } - return Params{} -} - -type QueryGetBlacklistedRequest struct { - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` -} - -func (m *QueryGetBlacklistedRequest) Reset() { *m = QueryGetBlacklistedRequest{} } -func (m *QueryGetBlacklistedRequest) String() string { return proto.CompactTextString(m) } -func (*QueryGetBlacklistedRequest) ProtoMessage() {} -func (*QueryGetBlacklistedRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_f04e1100d4ebe501, []int{2} -} -func (m *QueryGetBlacklistedRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryGetBlacklistedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryGetBlacklistedRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryGetBlacklistedRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetBlacklistedRequest.Merge(m, src) -} -func (m *QueryGetBlacklistedRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryGetBlacklistedRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetBlacklistedRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryGetBlacklistedRequest proto.InternalMessageInfo - -func (m *QueryGetBlacklistedRequest) GetAddress() string { - if m != nil { - return m.Address - } - return "" -} - -type QueryGetBlacklistedResponse struct { - Blacklisted Blacklisted `protobuf:"bytes,1,opt,name=blacklisted,proto3" json:"blacklisted"` -} - -func (m *QueryGetBlacklistedResponse) Reset() { *m = QueryGetBlacklistedResponse{} } -func (m *QueryGetBlacklistedResponse) String() string { return proto.CompactTextString(m) } -func (*QueryGetBlacklistedResponse) ProtoMessage() {} -func (*QueryGetBlacklistedResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_f04e1100d4ebe501, []int{3} -} -func (m *QueryGetBlacklistedResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryGetBlacklistedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryGetBlacklistedResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryGetBlacklistedResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetBlacklistedResponse.Merge(m, src) -} -func (m *QueryGetBlacklistedResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryGetBlacklistedResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetBlacklistedResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryGetBlacklistedResponse proto.InternalMessageInfo - -func (m *QueryGetBlacklistedResponse) GetBlacklisted() Blacklisted { - if m != nil { - return m.Blacklisted - } - return Blacklisted{} -} - -type QueryAllBlacklistedRequest struct { - Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` -} - -func (m *QueryAllBlacklistedRequest) Reset() { *m = QueryAllBlacklistedRequest{} } -func (m *QueryAllBlacklistedRequest) String() string { return proto.CompactTextString(m) } -func (*QueryAllBlacklistedRequest) ProtoMessage() {} -func (*QueryAllBlacklistedRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_f04e1100d4ebe501, []int{4} -} -func (m *QueryAllBlacklistedRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryAllBlacklistedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryAllBlacklistedRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryAllBlacklistedRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAllBlacklistedRequest.Merge(m, src) -} -func (m *QueryAllBlacklistedRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryAllBlacklistedRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAllBlacklistedRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryAllBlacklistedRequest proto.InternalMessageInfo - -func (m *QueryAllBlacklistedRequest) GetPagination() *query.PageRequest { - if m != nil { - return m.Pagination - } - return nil -} - -type QueryAllBlacklistedResponse struct { - Blacklisted []Blacklisted `protobuf:"bytes,1,rep,name=blacklisted,proto3" json:"blacklisted"` - Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` -} - -func (m *QueryAllBlacklistedResponse) Reset() { *m = QueryAllBlacklistedResponse{} } -func (m *QueryAllBlacklistedResponse) String() string { return proto.CompactTextString(m) } -func (*QueryAllBlacklistedResponse) ProtoMessage() {} -func (*QueryAllBlacklistedResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_f04e1100d4ebe501, []int{5} -} -func (m *QueryAllBlacklistedResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryAllBlacklistedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryAllBlacklistedResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryAllBlacklistedResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAllBlacklistedResponse.Merge(m, src) -} -func (m *QueryAllBlacklistedResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryAllBlacklistedResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAllBlacklistedResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryAllBlacklistedResponse proto.InternalMessageInfo - -func (m *QueryAllBlacklistedResponse) GetBlacklisted() []Blacklisted { - if m != nil { - return m.Blacklisted - } - return nil -} - -func (m *QueryAllBlacklistedResponse) GetPagination() *query.PageResponse { - if m != nil { - return m.Pagination - } - return nil -} - -type QueryGetPausedRequest struct { -} - -func (m *QueryGetPausedRequest) Reset() { *m = QueryGetPausedRequest{} } -func (m *QueryGetPausedRequest) String() string { return proto.CompactTextString(m) } -func (*QueryGetPausedRequest) ProtoMessage() {} -func (*QueryGetPausedRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_f04e1100d4ebe501, []int{6} -} -func (m *QueryGetPausedRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryGetPausedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryGetPausedRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryGetPausedRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetPausedRequest.Merge(m, src) -} -func (m *QueryGetPausedRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryGetPausedRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetPausedRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryGetPausedRequest proto.InternalMessageInfo - -type QueryGetPausedResponse struct { - Paused Paused `protobuf:"bytes,1,opt,name=paused,proto3" json:"paused"` -} - -func (m *QueryGetPausedResponse) Reset() { *m = QueryGetPausedResponse{} } -func (m *QueryGetPausedResponse) String() string { return proto.CompactTextString(m) } -func (*QueryGetPausedResponse) ProtoMessage() {} -func (*QueryGetPausedResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_f04e1100d4ebe501, []int{7} -} -func (m *QueryGetPausedResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryGetPausedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryGetPausedResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryGetPausedResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetPausedResponse.Merge(m, src) -} -func (m *QueryGetPausedResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryGetPausedResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetPausedResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryGetPausedResponse proto.InternalMessageInfo - -func (m *QueryGetPausedResponse) GetPaused() Paused { - if m != nil { - return m.Paused - } - return Paused{} -} - -type QueryGetMasterMinterRequest struct { -} - -func (m *QueryGetMasterMinterRequest) Reset() { *m = QueryGetMasterMinterRequest{} } -func (m *QueryGetMasterMinterRequest) String() string { return proto.CompactTextString(m) } -func (*QueryGetMasterMinterRequest) ProtoMessage() {} -func (*QueryGetMasterMinterRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_f04e1100d4ebe501, []int{8} -} -func (m *QueryGetMasterMinterRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryGetMasterMinterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryGetMasterMinterRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryGetMasterMinterRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetMasterMinterRequest.Merge(m, src) -} -func (m *QueryGetMasterMinterRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryGetMasterMinterRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetMasterMinterRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryGetMasterMinterRequest proto.InternalMessageInfo - -type QueryGetMasterMinterResponse struct { - MasterMinter MasterMinter `protobuf:"bytes,1,opt,name=masterMinter,proto3" json:"masterMinter"` -} - -func (m *QueryGetMasterMinterResponse) Reset() { *m = QueryGetMasterMinterResponse{} } -func (m *QueryGetMasterMinterResponse) String() string { return proto.CompactTextString(m) } -func (*QueryGetMasterMinterResponse) ProtoMessage() {} -func (*QueryGetMasterMinterResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_f04e1100d4ebe501, []int{9} -} -func (m *QueryGetMasterMinterResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryGetMasterMinterResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryGetMasterMinterResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryGetMasterMinterResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetMasterMinterResponse.Merge(m, src) -} -func (m *QueryGetMasterMinterResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryGetMasterMinterResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetMasterMinterResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryGetMasterMinterResponse proto.InternalMessageInfo - -func (m *QueryGetMasterMinterResponse) GetMasterMinter() MasterMinter { - if m != nil { - return m.MasterMinter - } - return MasterMinter{} -} - -type QueryGetMintersRequest struct { - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` -} - -func (m *QueryGetMintersRequest) Reset() { *m = QueryGetMintersRequest{} } -func (m *QueryGetMintersRequest) String() string { return proto.CompactTextString(m) } -func (*QueryGetMintersRequest) ProtoMessage() {} -func (*QueryGetMintersRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_f04e1100d4ebe501, []int{10} -} -func (m *QueryGetMintersRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryGetMintersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryGetMintersRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryGetMintersRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetMintersRequest.Merge(m, src) -} -func (m *QueryGetMintersRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryGetMintersRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetMintersRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryGetMintersRequest proto.InternalMessageInfo - -func (m *QueryGetMintersRequest) GetAddress() string { - if m != nil { - return m.Address - } - return "" -} - -type QueryGetMintersResponse struct { - Minters Minters `protobuf:"bytes,1,opt,name=minters,proto3" json:"minters"` -} - -func (m *QueryGetMintersResponse) Reset() { *m = QueryGetMintersResponse{} } -func (m *QueryGetMintersResponse) String() string { return proto.CompactTextString(m) } -func (*QueryGetMintersResponse) ProtoMessage() {} -func (*QueryGetMintersResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_f04e1100d4ebe501, []int{11} -} -func (m *QueryGetMintersResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryGetMintersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryGetMintersResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryGetMintersResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetMintersResponse.Merge(m, src) -} -func (m *QueryGetMintersResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryGetMintersResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetMintersResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryGetMintersResponse proto.InternalMessageInfo - -func (m *QueryGetMintersResponse) GetMinters() Minters { - if m != nil { - return m.Minters - } - return Minters{} -} - -type QueryAllMintersRequest struct { - Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` -} - -func (m *QueryAllMintersRequest) Reset() { *m = QueryAllMintersRequest{} } -func (m *QueryAllMintersRequest) String() string { return proto.CompactTextString(m) } -func (*QueryAllMintersRequest) ProtoMessage() {} -func (*QueryAllMintersRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_f04e1100d4ebe501, []int{12} -} -func (m *QueryAllMintersRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryAllMintersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryAllMintersRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryAllMintersRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAllMintersRequest.Merge(m, src) -} -func (m *QueryAllMintersRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryAllMintersRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAllMintersRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryAllMintersRequest proto.InternalMessageInfo - -func (m *QueryAllMintersRequest) GetPagination() *query.PageRequest { - if m != nil { - return m.Pagination - } - return nil -} - -type QueryAllMintersResponse struct { - Minters []Minters `protobuf:"bytes,1,rep,name=minters,proto3" json:"minters"` - Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` -} - -func (m *QueryAllMintersResponse) Reset() { *m = QueryAllMintersResponse{} } -func (m *QueryAllMintersResponse) String() string { return proto.CompactTextString(m) } -func (*QueryAllMintersResponse) ProtoMessage() {} -func (*QueryAllMintersResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_f04e1100d4ebe501, []int{13} -} -func (m *QueryAllMintersResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryAllMintersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryAllMintersResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryAllMintersResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAllMintersResponse.Merge(m, src) -} -func (m *QueryAllMintersResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryAllMintersResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAllMintersResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryAllMintersResponse proto.InternalMessageInfo - -func (m *QueryAllMintersResponse) GetMinters() []Minters { - if m != nil { - return m.Minters - } - return nil -} - -func (m *QueryAllMintersResponse) GetPagination() *query.PageResponse { - if m != nil { - return m.Pagination - } - return nil -} - -type QueryGetPauserRequest struct { -} - -func (m *QueryGetPauserRequest) Reset() { *m = QueryGetPauserRequest{} } -func (m *QueryGetPauserRequest) String() string { return proto.CompactTextString(m) } -func (*QueryGetPauserRequest) ProtoMessage() {} -func (*QueryGetPauserRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_f04e1100d4ebe501, []int{14} -} -func (m *QueryGetPauserRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryGetPauserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryGetPauserRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryGetPauserRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetPauserRequest.Merge(m, src) -} -func (m *QueryGetPauserRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryGetPauserRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetPauserRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryGetPauserRequest proto.InternalMessageInfo - -type QueryGetPauserResponse struct { - Pauser Pauser `protobuf:"bytes,1,opt,name=pauser,proto3" json:"pauser"` -} - -func (m *QueryGetPauserResponse) Reset() { *m = QueryGetPauserResponse{} } -func (m *QueryGetPauserResponse) String() string { return proto.CompactTextString(m) } -func (*QueryGetPauserResponse) ProtoMessage() {} -func (*QueryGetPauserResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_f04e1100d4ebe501, []int{15} -} -func (m *QueryGetPauserResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryGetPauserResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryGetPauserResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryGetPauserResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetPauserResponse.Merge(m, src) -} -func (m *QueryGetPauserResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryGetPauserResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetPauserResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryGetPauserResponse proto.InternalMessageInfo - -func (m *QueryGetPauserResponse) GetPauser() Pauser { - if m != nil { - return m.Pauser - } - return Pauser{} -} - -type QueryGetBlacklisterRequest struct { -} - -func (m *QueryGetBlacklisterRequest) Reset() { *m = QueryGetBlacklisterRequest{} } -func (m *QueryGetBlacklisterRequest) String() string { return proto.CompactTextString(m) } -func (*QueryGetBlacklisterRequest) ProtoMessage() {} -func (*QueryGetBlacklisterRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_f04e1100d4ebe501, []int{16} -} -func (m *QueryGetBlacklisterRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryGetBlacklisterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryGetBlacklisterRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryGetBlacklisterRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetBlacklisterRequest.Merge(m, src) -} -func (m *QueryGetBlacklisterRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryGetBlacklisterRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetBlacklisterRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryGetBlacklisterRequest proto.InternalMessageInfo - -type QueryGetBlacklisterResponse struct { - Blacklister Blacklister `protobuf:"bytes,1,opt,name=blacklister,proto3" json:"blacklister"` -} - -func (m *QueryGetBlacklisterResponse) Reset() { *m = QueryGetBlacklisterResponse{} } -func (m *QueryGetBlacklisterResponse) String() string { return proto.CompactTextString(m) } -func (*QueryGetBlacklisterResponse) ProtoMessage() {} -func (*QueryGetBlacklisterResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_f04e1100d4ebe501, []int{17} -} -func (m *QueryGetBlacklisterResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryGetBlacklisterResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryGetBlacklisterResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryGetBlacklisterResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetBlacklisterResponse.Merge(m, src) -} -func (m *QueryGetBlacklisterResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryGetBlacklisterResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetBlacklisterResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryGetBlacklisterResponse proto.InternalMessageInfo - -func (m *QueryGetBlacklisterResponse) GetBlacklister() Blacklister { - if m != nil { - return m.Blacklister - } - return Blacklister{} -} - -type QueryGetOwnerRequest struct { -} - -func (m *QueryGetOwnerRequest) Reset() { *m = QueryGetOwnerRequest{} } -func (m *QueryGetOwnerRequest) String() string { return proto.CompactTextString(m) } -func (*QueryGetOwnerRequest) ProtoMessage() {} -func (*QueryGetOwnerRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_f04e1100d4ebe501, []int{18} -} -func (m *QueryGetOwnerRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryGetOwnerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryGetOwnerRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryGetOwnerRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetOwnerRequest.Merge(m, src) -} -func (m *QueryGetOwnerRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryGetOwnerRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetOwnerRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryGetOwnerRequest proto.InternalMessageInfo - -type QueryGetOwnerResponse struct { - Owner Owner `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner"` -} - -func (m *QueryGetOwnerResponse) Reset() { *m = QueryGetOwnerResponse{} } -func (m *QueryGetOwnerResponse) String() string { return proto.CompactTextString(m) } -func (*QueryGetOwnerResponse) ProtoMessage() {} -func (*QueryGetOwnerResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_f04e1100d4ebe501, []int{19} -} -func (m *QueryGetOwnerResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryGetOwnerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryGetOwnerResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryGetOwnerResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetOwnerResponse.Merge(m, src) -} -func (m *QueryGetOwnerResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryGetOwnerResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetOwnerResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryGetOwnerResponse proto.InternalMessageInfo - -func (m *QueryGetOwnerResponse) GetOwner() Owner { - if m != nil { - return m.Owner - } - return Owner{} -} - -type QueryGetMinterControllerRequest struct { - ControllerAddress string `protobuf:"bytes,1,opt,name=controllerAddress,proto3" json:"controllerAddress,omitempty"` -} - -func (m *QueryGetMinterControllerRequest) Reset() { *m = QueryGetMinterControllerRequest{} } -func (m *QueryGetMinterControllerRequest) String() string { return proto.CompactTextString(m) } -func (*QueryGetMinterControllerRequest) ProtoMessage() {} -func (*QueryGetMinterControllerRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_f04e1100d4ebe501, []int{20} -} -func (m *QueryGetMinterControllerRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryGetMinterControllerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryGetMinterControllerRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryGetMinterControllerRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetMinterControllerRequest.Merge(m, src) -} -func (m *QueryGetMinterControllerRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryGetMinterControllerRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetMinterControllerRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryGetMinterControllerRequest proto.InternalMessageInfo - -func (m *QueryGetMinterControllerRequest) GetControllerAddress() string { - if m != nil { - return m.ControllerAddress - } - return "" -} - -type QueryGetMinterControllerResponse struct { - MinterController MinterController `protobuf:"bytes,1,opt,name=minterController,proto3" json:"minterController"` -} - -func (m *QueryGetMinterControllerResponse) Reset() { *m = QueryGetMinterControllerResponse{} } -func (m *QueryGetMinterControllerResponse) String() string { return proto.CompactTextString(m) } -func (*QueryGetMinterControllerResponse) ProtoMessage() {} -func (*QueryGetMinterControllerResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_f04e1100d4ebe501, []int{21} -} -func (m *QueryGetMinterControllerResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryGetMinterControllerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryGetMinterControllerResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryGetMinterControllerResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetMinterControllerResponse.Merge(m, src) -} -func (m *QueryGetMinterControllerResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryGetMinterControllerResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetMinterControllerResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryGetMinterControllerResponse proto.InternalMessageInfo - -func (m *QueryGetMinterControllerResponse) GetMinterController() MinterController { - if m != nil { - return m.MinterController - } - return MinterController{} -} - -type QueryAllMinterControllerRequest struct { - Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` -} - -func (m *QueryAllMinterControllerRequest) Reset() { *m = QueryAllMinterControllerRequest{} } -func (m *QueryAllMinterControllerRequest) String() string { return proto.CompactTextString(m) } -func (*QueryAllMinterControllerRequest) ProtoMessage() {} -func (*QueryAllMinterControllerRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_f04e1100d4ebe501, []int{22} -} -func (m *QueryAllMinterControllerRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryAllMinterControllerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryAllMinterControllerRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryAllMinterControllerRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAllMinterControllerRequest.Merge(m, src) -} -func (m *QueryAllMinterControllerRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryAllMinterControllerRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAllMinterControllerRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryAllMinterControllerRequest proto.InternalMessageInfo - -func (m *QueryAllMinterControllerRequest) GetPagination() *query.PageRequest { - if m != nil { - return m.Pagination - } - return nil -} - -type QueryAllMinterControllerResponse struct { - MinterController []MinterController `protobuf:"bytes,1,rep,name=minterController,proto3" json:"minterController"` - Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` -} - -func (m *QueryAllMinterControllerResponse) Reset() { *m = QueryAllMinterControllerResponse{} } -func (m *QueryAllMinterControllerResponse) String() string { return proto.CompactTextString(m) } -func (*QueryAllMinterControllerResponse) ProtoMessage() {} -func (*QueryAllMinterControllerResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_f04e1100d4ebe501, []int{23} -} -func (m *QueryAllMinterControllerResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryAllMinterControllerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryAllMinterControllerResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryAllMinterControllerResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAllMinterControllerResponse.Merge(m, src) -} -func (m *QueryAllMinterControllerResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryAllMinterControllerResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAllMinterControllerResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryAllMinterControllerResponse proto.InternalMessageInfo - -func (m *QueryAllMinterControllerResponse) GetMinterController() []MinterController { - if m != nil { - return m.MinterController - } - return nil -} - -func (m *QueryAllMinterControllerResponse) GetPagination() *query.PageResponse { - if m != nil { - return m.Pagination - } - return nil -} - -type QueryGetMintingDenomRequest struct { -} - -func (m *QueryGetMintingDenomRequest) Reset() { *m = QueryGetMintingDenomRequest{} } -func (m *QueryGetMintingDenomRequest) String() string { return proto.CompactTextString(m) } -func (*QueryGetMintingDenomRequest) ProtoMessage() {} -func (*QueryGetMintingDenomRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_f04e1100d4ebe501, []int{24} -} -func (m *QueryGetMintingDenomRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryGetMintingDenomRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryGetMintingDenomRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryGetMintingDenomRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetMintingDenomRequest.Merge(m, src) -} -func (m *QueryGetMintingDenomRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryGetMintingDenomRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetMintingDenomRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryGetMintingDenomRequest proto.InternalMessageInfo - -type QueryGetMintingDenomResponse struct { - MintingDenom MintingDenom `protobuf:"bytes,1,opt,name=mintingDenom,proto3" json:"mintingDenom"` -} - -func (m *QueryGetMintingDenomResponse) Reset() { *m = QueryGetMintingDenomResponse{} } -func (m *QueryGetMintingDenomResponse) String() string { return proto.CompactTextString(m) } -func (*QueryGetMintingDenomResponse) ProtoMessage() {} -func (*QueryGetMintingDenomResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_f04e1100d4ebe501, []int{25} -} -func (m *QueryGetMintingDenomResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryGetMintingDenomResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryGetMintingDenomResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryGetMintingDenomResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetMintingDenomResponse.Merge(m, src) -} -func (m *QueryGetMintingDenomResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryGetMintingDenomResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetMintingDenomResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryGetMintingDenomResponse proto.InternalMessageInfo - -func (m *QueryGetMintingDenomResponse) GetMintingDenom() MintingDenom { - if m != nil { - return m.MintingDenom - } - return MintingDenom{} -} - -func init() { - proto.RegisterType((*QueryParamsRequest)(nil), "noble.fiattokenfactory.QueryParamsRequest") - proto.RegisterType((*QueryParamsResponse)(nil), "noble.fiattokenfactory.QueryParamsResponse") - proto.RegisterType((*QueryGetBlacklistedRequest)(nil), "noble.fiattokenfactory.QueryGetBlacklistedRequest") - proto.RegisterType((*QueryGetBlacklistedResponse)(nil), "noble.fiattokenfactory.QueryGetBlacklistedResponse") - proto.RegisterType((*QueryAllBlacklistedRequest)(nil), "noble.fiattokenfactory.QueryAllBlacklistedRequest") - proto.RegisterType((*QueryAllBlacklistedResponse)(nil), "noble.fiattokenfactory.QueryAllBlacklistedResponse") - proto.RegisterType((*QueryGetPausedRequest)(nil), "noble.fiattokenfactory.QueryGetPausedRequest") - proto.RegisterType((*QueryGetPausedResponse)(nil), "noble.fiattokenfactory.QueryGetPausedResponse") - proto.RegisterType((*QueryGetMasterMinterRequest)(nil), "noble.fiattokenfactory.QueryGetMasterMinterRequest") - proto.RegisterType((*QueryGetMasterMinterResponse)(nil), "noble.fiattokenfactory.QueryGetMasterMinterResponse") - proto.RegisterType((*QueryGetMintersRequest)(nil), "noble.fiattokenfactory.QueryGetMintersRequest") - proto.RegisterType((*QueryGetMintersResponse)(nil), "noble.fiattokenfactory.QueryGetMintersResponse") - proto.RegisterType((*QueryAllMintersRequest)(nil), "noble.fiattokenfactory.QueryAllMintersRequest") - proto.RegisterType((*QueryAllMintersResponse)(nil), "noble.fiattokenfactory.QueryAllMintersResponse") - proto.RegisterType((*QueryGetPauserRequest)(nil), "noble.fiattokenfactory.QueryGetPauserRequest") - proto.RegisterType((*QueryGetPauserResponse)(nil), "noble.fiattokenfactory.QueryGetPauserResponse") - proto.RegisterType((*QueryGetBlacklisterRequest)(nil), "noble.fiattokenfactory.QueryGetBlacklisterRequest") - proto.RegisterType((*QueryGetBlacklisterResponse)(nil), "noble.fiattokenfactory.QueryGetBlacklisterResponse") - proto.RegisterType((*QueryGetOwnerRequest)(nil), "noble.fiattokenfactory.QueryGetOwnerRequest") - proto.RegisterType((*QueryGetOwnerResponse)(nil), "noble.fiattokenfactory.QueryGetOwnerResponse") - proto.RegisterType((*QueryGetMinterControllerRequest)(nil), "noble.fiattokenfactory.QueryGetMinterControllerRequest") - proto.RegisterType((*QueryGetMinterControllerResponse)(nil), "noble.fiattokenfactory.QueryGetMinterControllerResponse") - proto.RegisterType((*QueryAllMinterControllerRequest)(nil), "noble.fiattokenfactory.QueryAllMinterControllerRequest") - proto.RegisterType((*QueryAllMinterControllerResponse)(nil), "noble.fiattokenfactory.QueryAllMinterControllerResponse") - proto.RegisterType((*QueryGetMintingDenomRequest)(nil), "noble.fiattokenfactory.QueryGetMintingDenomRequest") - proto.RegisterType((*QueryGetMintingDenomResponse)(nil), "noble.fiattokenfactory.QueryGetMintingDenomResponse") -} - -func init() { proto.RegisterFile("fiattokenfactory/query.proto", fileDescriptor_f04e1100d4ebe501) } - -var fileDescriptor_f04e1100d4ebe501 = []byte{ - // 1141 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x98, 0xcf, 0x6f, 0xdc, 0x44, - 0x14, 0xc7, 0xe3, 0x86, 0x24, 0x62, 0x52, 0xa1, 0x30, 0x0d, 0x69, 0x65, 0x12, 0x6f, 0x98, 0x26, - 0x4d, 0x68, 0xba, 0xb6, 0x92, 0x02, 0x05, 0x09, 0xa8, 0x12, 0x7e, 0xf4, 0x80, 0x4a, 0xc3, 0x22, - 0x21, 0x94, 0x4b, 0xf0, 0xee, 0x4e, 0x8d, 0xa9, 0xd7, 0xb3, 0x1d, 0x7b, 0x03, 0x51, 0x55, 0x0e, - 0xdc, 0x10, 0x07, 0x90, 0x90, 0xb8, 0x71, 0xaa, 0x84, 0xb8, 0x70, 0xe2, 0xc8, 0x1f, 0x40, 0x0f, - 0x1c, 0x2a, 0x71, 0xe1, 0x84, 0xa2, 0x84, 0x3f, 0x04, 0x79, 0xfc, 0xbc, 0x1e, 0xef, 0xd8, 0x6b, - 0x3b, 0x4a, 0x6f, 0xd9, 0x99, 0xf7, 0xe6, 0x7d, 0x66, 0xe6, 0xfb, 0xde, 0xbc, 0x18, 0x2d, 0xde, - 0x75, 0xed, 0x30, 0x64, 0xf7, 0xa8, 0x7f, 0xd7, 0xee, 0x84, 0x8c, 0x1f, 0x5a, 0xf7, 0x07, 0x94, - 0x1f, 0x9a, 0x7d, 0xce, 0x42, 0x86, 0x17, 0x7c, 0xd6, 0xf6, 0xa8, 0x39, 0x6a, 0xa3, 0x2f, 0x3a, - 0x8c, 0x39, 0x1e, 0xb5, 0xec, 0xbe, 0x6b, 0xd9, 0xbe, 0xcf, 0x42, 0x3b, 0x74, 0x99, 0x1f, 0xc4, - 0x5e, 0xfa, 0xd5, 0x0e, 0x0b, 0x7a, 0x2c, 0xb0, 0xda, 0x76, 0x40, 0xe3, 0xe5, 0xac, 0x83, 0xcd, - 0x36, 0x0d, 0xed, 0x4d, 0xab, 0x6f, 0x3b, 0xae, 0x2f, 0x8c, 0xc1, 0x76, 0x49, 0x89, 0xdf, 0xb7, - 0xb9, 0xdd, 0x4b, 0x96, 0x22, 0xca, 0x74, 0xdb, 0xb3, 0x3b, 0xf7, 0x3c, 0x37, 0x08, 0x69, 0x77, - 0xcc, 0x12, 0x83, 0x60, 0x38, 0xbd, 0xa2, 0x4c, 0xf7, 0xec, 0x20, 0xa4, 0x7c, 0xbf, 0xe7, 0xfa, - 0x21, 0xe5, 0x60, 0x65, 0xa8, 0x56, 0x62, 0x3a, 0x18, 0x1f, 0x84, 0x57, 0xe0, 0x4c, 0x6c, 0xd4, - 0xa3, 0x66, 0x5f, 0xfa, 0xc3, 0xd9, 0xf5, 0x02, 0x80, 0xfd, 0x0e, 0xf3, 0x43, 0xce, 0x3c, 0x6f, - 0x68, 0xb9, 0x92, 0x6b, 0xe9, 0xfa, 0xce, 0x7e, 0x97, 0xfa, 0xac, 0x97, 0x6c, 0x48, 0xbe, 0x84, - 0xe4, 0xf8, 0x3b, 0xcc, 0x4d, 0x0e, 0x7e, 0xde, 0x61, 0x0e, 0x13, 0x7f, 0x5a, 0xd1, 0x5f, 0xf1, - 0x28, 0x99, 0x47, 0xf8, 0xa3, 0xe8, 0xc2, 0x76, 0xc5, 0x25, 0xb4, 0xe8, 0xfd, 0x01, 0x0d, 0x42, - 0xf2, 0x31, 0xba, 0x90, 0x19, 0x0d, 0xfa, 0xcc, 0x0f, 0x28, 0x7e, 0x13, 0x4d, 0xc7, 0x97, 0x75, - 0x49, 0x5b, 0xd6, 0xd6, 0x67, 0xb7, 0x0c, 0x33, 0x5f, 0x2e, 0x66, 0xec, 0xb7, 0xf3, 0xcc, 0xe3, - 0x7f, 0x1b, 0x13, 0x2d, 0xf0, 0x21, 0xaf, 0x21, 0x5d, 0x2c, 0x7a, 0x8b, 0x86, 0x3b, 0xe9, 0x9d, - 0x42, 0x48, 0x7c, 0x09, 0xcd, 0xd8, 0xdd, 0x2e, 0xa7, 0x41, 0xbc, 0xf8, 0xb3, 0xad, 0xe4, 0x27, - 0xf9, 0x02, 0xbd, 0x98, 0xeb, 0x07, 0x50, 0x1f, 0xa0, 0x59, 0x49, 0x22, 0x40, 0x76, 0xb9, 0x88, - 0x4c, 0x5a, 0x01, 0xf0, 0x64, 0x6f, 0xd2, 0x05, 0xc6, 0x6d, 0xcf, 0xcb, 0x61, 0x7c, 0x1f, 0xa1, - 0x54, 0xcf, 0x10, 0xe9, 0x8a, 0x19, 0x9f, 0xbb, 0x19, 0x9d, 0xbb, 0x19, 0xe7, 0x12, 0x9c, 0xbe, - 0xb9, 0x6b, 0x3b, 0x14, 0x7c, 0x5b, 0x92, 0x27, 0xf9, 0x5d, 0x83, 0x2d, 0x8d, 0x86, 0x29, 0xda, - 0xd2, 0xe4, 0xe9, 0xb7, 0x84, 0x6f, 0x65, 0xa0, 0xcf, 0x09, 0xe8, 0xb5, 0x52, 0xe8, 0x98, 0x24, - 0x43, 0x7d, 0x11, 0xbd, 0x90, 0xdc, 0xc3, 0xae, 0xc8, 0xb7, 0x44, 0x2d, 0x9f, 0xa0, 0x85, 0xd1, - 0x09, 0x59, 0x30, 0xd1, 0x48, 0xb9, 0x60, 0x22, 0xab, 0x54, 0x30, 0xd1, 0x2f, 0xb2, 0x94, 0x5e, - 0xfc, 0x6d, 0x91, 0xc1, 0xb7, 0x45, 0x82, 0x24, 0x61, 0x7d, 0xb4, 0x98, 0x3f, 0x0d, 0xc1, 0x3f, - 0x44, 0xe7, 0x7b, 0xd2, 0x38, 0x20, 0xac, 0x14, 0x21, 0xc8, 0x6b, 0x00, 0x48, 0xc6, 0x9f, 0x6c, - 0xa5, 0xdb, 0x8c, 0x47, 0x82, 0x72, 0xed, 0xee, 0xa1, 0x8b, 0x8a, 0x0f, 0xe0, 0xdd, 0x44, 0x33, - 0x50, 0x71, 0x80, 0xac, 0x51, 0x48, 0x16, 0x9b, 0x01, 0x54, 0xe2, 0x45, 0x3e, 0x03, 0x9e, 0x6d, - 0xcf, 0x1b, 0xe1, 0x39, 0x2b, 0x9d, 0x3e, 0xd2, 0x00, 0x5f, 0x0e, 0x91, 0x87, 0x3f, 0x59, 0x1f, - 0xff, 0xe9, 0xe9, 0x92, 0x17, 0xe9, 0x92, 0x2b, 0xba, 0xe4, 0x95, 0x74, 0xc9, 0x33, 0xba, 0xe4, - 0x64, 0x31, 0xaf, 0x90, 0x0d, 0xa3, 0xe6, 0x96, 0x2b, 0x9e, 0x9f, 0xdb, 0xbc, 0x7a, 0xb9, 0xe2, - 0x6a, 0x6e, 0x73, 0xb2, 0x80, 0xe6, 0x93, 0x58, 0x77, 0xa2, 0xa7, 0x25, 0x61, 0x68, 0xa5, 0x47, - 0x02, 0xe3, 0x10, 0xfd, 0x0d, 0x34, 0x25, 0xde, 0x20, 0x88, 0xbb, 0x54, 0x14, 0x57, 0x78, 0x41, - 0xc4, 0xd8, 0x83, 0xdc, 0x41, 0x8d, 0xac, 0x94, 0xdf, 0x19, 0xbe, 0x53, 0x89, 0xee, 0xae, 0xa1, - 0xe7, 0xd3, 0xc7, 0x6b, 0x3b, 0x93, 0x11, 0xea, 0x04, 0xf9, 0x1a, 0x2d, 0x17, 0x2f, 0x08, 0xbc, - 0x7b, 0x68, 0xae, 0x37, 0x32, 0x07, 0xe8, 0xeb, 0xe3, 0xe5, 0x96, 0xda, 0xc3, 0x2e, 0x94, 0x75, - 0x88, 0x0b, 0x1b, 0x1a, 0x8a, 0x5b, 0xdd, 0xd0, 0x59, 0x25, 0xd2, 0x9f, 0x1a, 0xec, 0x35, 0x37, - 0xd6, 0xd8, 0xbd, 0x4e, 0x9e, 0xc5, 0x5e, 0xcf, 0x2e, 0xd9, 0xe4, 0x9a, 0x1c, 0x37, 0x21, 0xef, - 0x46, 0x3d, 0x48, 0x5e, 0x4d, 0xce, 0x4c, 0x4b, 0x35, 0x59, 0x1a, 0x2f, 0xad, 0xc9, 0x92, 0xed, - 0xb0, 0x26, 0x4b, 0x63, 0x5b, 0x47, 0x73, 0x68, 0x4a, 0x04, 0xc4, 0xdf, 0x6a, 0x68, 0x3a, 0x6e, - 0x3b, 0xf0, 0xd5, 0xa2, 0xe5, 0xd4, 0x4e, 0x47, 0xdf, 0xa8, 0x64, 0x1b, 0xd3, 0x93, 0x2b, 0xdf, - 0xfc, 0xfd, 0xdf, 0x8f, 0xe7, 0x96, 0xb1, 0x61, 0x09, 0x27, 0xab, 0xa0, 0x95, 0xc5, 0xbf, 0x69, - 0x68, 0x56, 0x7a, 0x95, 0xf1, 0xd6, 0xd8, 0x20, 0xb9, 0xfd, 0x90, 0x7e, 0xbd, 0x96, 0x0f, 0x00, - 0xbe, 0x2a, 0x00, 0x2d, 0xdc, 0x2c, 0x02, 0x94, 0x1a, 0x03, 0xeb, 0x01, 0x3c, 0x52, 0x0f, 0xf1, - 0x2f, 0x1a, 0x7a, 0x4e, 0x5a, 0x6e, 0xdb, 0xf3, 0x4a, 0x90, 0x73, 0xdb, 0xa3, 0x12, 0xe4, 0xfc, - 0x5e, 0x87, 0x6c, 0x08, 0xe4, 0x55, 0x7c, 0xb9, 0x02, 0x32, 0xfe, 0x5e, 0x5c, 0x72, 0xd4, 0x1c, - 0xe0, 0x66, 0xd9, 0xf9, 0x64, 0x7a, 0x14, 0xdd, 0xac, 0x6a, 0x5e, 0xfd, 0xaa, 0x05, 0xc6, 0xaf, - 0x1a, 0x3a, 0x2f, 0x77, 0x0e, 0xb8, 0xf4, 0xde, 0x72, 0x5a, 0x19, 0xfd, 0x95, 0x7a, 0x4e, 0xc0, - 0xd8, 0x14, 0x8c, 0x6b, 0x78, 0xb5, 0x88, 0x31, 0xf3, 0x7f, 0x0f, 0xfe, 0x59, 0x43, 0x33, 0xf0, - 0x16, 0xe3, 0xd2, 0xe3, 0xc8, 0x76, 0x14, 0xba, 0x55, 0xd9, 0x1e, 0xd8, 0x36, 0x05, 0xdb, 0x06, - 0x7e, 0xb9, 0x90, 0x2d, 0x76, 0x90, 0x54, 0xf8, 0x93, 0x86, 0x10, 0x2c, 0x13, 0x29, 0xd0, 0x2c, - 0x53, 0x53, 0x2d, 0x44, 0xb5, 0x83, 0x21, 0x6b, 0x02, 0xf1, 0x25, 0xdc, 0x28, 0x41, 0x4c, 0x55, - 0xc7, 0x2b, 0xaa, 0x8e, 0xd7, 0x53, 0x1d, 0xaf, 0xa9, 0x3a, 0x8e, 0x1f, 0x65, 0x0a, 0x0c, 0xaf, - 0x53, 0x60, 0xf8, 0x29, 0x0a, 0x0c, 0x3f, 0x4d, 0xb6, 0x72, 0xfc, 0x9d, 0x86, 0xa6, 0x44, 0x23, - 0x81, 0xaf, 0x95, 0xc5, 0x92, 0xbb, 0x17, 0xbd, 0x59, 0xd1, 0x1a, 0x98, 0x56, 0x05, 0x53, 0x03, - 0x2f, 0x15, 0x31, 0x89, 0xfe, 0x05, 0xff, 0xa5, 0xa1, 0xb9, 0xd1, 0xf7, 0x12, 0xdf, 0xa8, 0xa6, - 0x6b, 0xa5, 0x33, 0xd0, 0x5f, 0xaf, 0xef, 0x08, 0xb8, 0xef, 0x09, 0xdc, 0x9b, 0xf8, 0xad, 0xf1, - 0xb2, 0x93, 0x3e, 0x03, 0x58, 0x0f, 0x94, 0xe6, 0xe9, 0x21, 0xfe, 0x43, 0x43, 0x17, 0x46, 0x63, - 0x44, 0x69, 0x73, 0xa3, 0x5a, 0x1a, 0xd4, 0xdd, 0xd1, 0x98, 0xc6, 0xa5, 0x6a, 0xae, 0x4b, 0x3b, - 0x8a, 0xcb, 0xa6, 0xf4, 0x90, 0x57, 0x28, 0x9b, 0x6a, 0xb7, 0x51, 0xa1, 0x6c, 0xe6, 0xf4, 0x20, - 0x15, 0xca, 0xa6, 0xfc, 0x75, 0x65, 0xe7, 0xd3, 0xc7, 0xc7, 0x86, 0xf6, 0xe4, 0xd8, 0xd0, 0x8e, - 0x8e, 0x0d, 0xed, 0x87, 0x13, 0x63, 0xe2, 0xc9, 0x89, 0x31, 0xf1, 0xcf, 0x89, 0x31, 0xb1, 0xf7, - 0xb6, 0xe3, 0x86, 0x9f, 0x0f, 0xda, 0x66, 0x87, 0xf5, 0xac, 0x20, 0xe4, 0xb6, 0xef, 0x50, 0x8f, - 0x1d, 0xd0, 0xe6, 0x01, 0xf5, 0xc3, 0x01, 0xa7, 0x01, 0xac, 0xff, 0x95, 0x1a, 0x21, 0x3c, 0xec, - 0xd3, 0xa0, 0x3d, 0x2d, 0x3e, 0xc1, 0x5c, 0xff, 0x3f, 0x00, 0x00, 0xff, 0xff, 0xdb, 0x7a, 0x6b, - 0x04, 0x93, 0x13, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// QueryClient is the client API for Query service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type QueryClient interface { - // Parameters queries the parameters of the module. - Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) - // Queries a Blacklisted by index. - Blacklisted(ctx context.Context, in *QueryGetBlacklistedRequest, opts ...grpc.CallOption) (*QueryGetBlacklistedResponse, error) - // Queries a list of Blacklisted items. - BlacklistedAll(ctx context.Context, in *QueryAllBlacklistedRequest, opts ...grpc.CallOption) (*QueryAllBlacklistedResponse, error) - // Queries a Paused by index. - Paused(ctx context.Context, in *QueryGetPausedRequest, opts ...grpc.CallOption) (*QueryGetPausedResponse, error) - // Queries a MasterMinter by index. - MasterMinter(ctx context.Context, in *QueryGetMasterMinterRequest, opts ...grpc.CallOption) (*QueryGetMasterMinterResponse, error) - // Queries a Minters by index. - Minters(ctx context.Context, in *QueryGetMintersRequest, opts ...grpc.CallOption) (*QueryGetMintersResponse, error) - // Queries a list of Minters items. - MintersAll(ctx context.Context, in *QueryAllMintersRequest, opts ...grpc.CallOption) (*QueryAllMintersResponse, error) - // Queries a Pauser by index. - Pauser(ctx context.Context, in *QueryGetPauserRequest, opts ...grpc.CallOption) (*QueryGetPauserResponse, error) - // Queries a Blacklister by index. - Blacklister(ctx context.Context, in *QueryGetBlacklisterRequest, opts ...grpc.CallOption) (*QueryGetBlacklisterResponse, error) - // Queries a Owner by index. - Owner(ctx context.Context, in *QueryGetOwnerRequest, opts ...grpc.CallOption) (*QueryGetOwnerResponse, error) - // Queries a MinterController by index. - MinterController(ctx context.Context, in *QueryGetMinterControllerRequest, opts ...grpc.CallOption) (*QueryGetMinterControllerResponse, error) - // Queries a list of MinterController items. - MinterControllerAll(ctx context.Context, in *QueryAllMinterControllerRequest, opts ...grpc.CallOption) (*QueryAllMinterControllerResponse, error) - // Queries a MintingDenom by index. - MintingDenom(ctx context.Context, in *QueryGetMintingDenomRequest, opts ...grpc.CallOption) (*QueryGetMintingDenomResponse, error) -} - -type queryClient struct { - cc grpc1.ClientConn -} - -func NewQueryClient(cc grpc1.ClientConn) QueryClient { - return &queryClient{cc} -} - -func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) { - out := new(QueryParamsResponse) - err := c.cc.Invoke(ctx, "/noble.fiattokenfactory.Query/Params", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) Blacklisted(ctx context.Context, in *QueryGetBlacklistedRequest, opts ...grpc.CallOption) (*QueryGetBlacklistedResponse, error) { - out := new(QueryGetBlacklistedResponse) - err := c.cc.Invoke(ctx, "/noble.fiattokenfactory.Query/Blacklisted", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) BlacklistedAll(ctx context.Context, in *QueryAllBlacklistedRequest, opts ...grpc.CallOption) (*QueryAllBlacklistedResponse, error) { - out := new(QueryAllBlacklistedResponse) - err := c.cc.Invoke(ctx, "/noble.fiattokenfactory.Query/BlacklistedAll", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) Paused(ctx context.Context, in *QueryGetPausedRequest, opts ...grpc.CallOption) (*QueryGetPausedResponse, error) { - out := new(QueryGetPausedResponse) - err := c.cc.Invoke(ctx, "/noble.fiattokenfactory.Query/Paused", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) MasterMinter(ctx context.Context, in *QueryGetMasterMinterRequest, opts ...grpc.CallOption) (*QueryGetMasterMinterResponse, error) { - out := new(QueryGetMasterMinterResponse) - err := c.cc.Invoke(ctx, "/noble.fiattokenfactory.Query/MasterMinter", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) Minters(ctx context.Context, in *QueryGetMintersRequest, opts ...grpc.CallOption) (*QueryGetMintersResponse, error) { - out := new(QueryGetMintersResponse) - err := c.cc.Invoke(ctx, "/noble.fiattokenfactory.Query/Minters", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) MintersAll(ctx context.Context, in *QueryAllMintersRequest, opts ...grpc.CallOption) (*QueryAllMintersResponse, error) { - out := new(QueryAllMintersResponse) - err := c.cc.Invoke(ctx, "/noble.fiattokenfactory.Query/MintersAll", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) Pauser(ctx context.Context, in *QueryGetPauserRequest, opts ...grpc.CallOption) (*QueryGetPauserResponse, error) { - out := new(QueryGetPauserResponse) - err := c.cc.Invoke(ctx, "/noble.fiattokenfactory.Query/Pauser", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) Blacklister(ctx context.Context, in *QueryGetBlacklisterRequest, opts ...grpc.CallOption) (*QueryGetBlacklisterResponse, error) { - out := new(QueryGetBlacklisterResponse) - err := c.cc.Invoke(ctx, "/noble.fiattokenfactory.Query/Blacklister", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) Owner(ctx context.Context, in *QueryGetOwnerRequest, opts ...grpc.CallOption) (*QueryGetOwnerResponse, error) { - out := new(QueryGetOwnerResponse) - err := c.cc.Invoke(ctx, "/noble.fiattokenfactory.Query/Owner", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) MinterController(ctx context.Context, in *QueryGetMinterControllerRequest, opts ...grpc.CallOption) (*QueryGetMinterControllerResponse, error) { - out := new(QueryGetMinterControllerResponse) - err := c.cc.Invoke(ctx, "/noble.fiattokenfactory.Query/MinterController", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) MinterControllerAll(ctx context.Context, in *QueryAllMinterControllerRequest, opts ...grpc.CallOption) (*QueryAllMinterControllerResponse, error) { - out := new(QueryAllMinterControllerResponse) - err := c.cc.Invoke(ctx, "/noble.fiattokenfactory.Query/MinterControllerAll", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) MintingDenom(ctx context.Context, in *QueryGetMintingDenomRequest, opts ...grpc.CallOption) (*QueryGetMintingDenomResponse, error) { - out := new(QueryGetMintingDenomResponse) - err := c.cc.Invoke(ctx, "/noble.fiattokenfactory.Query/MintingDenom", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// QueryServer is the server API for Query service. -type QueryServer interface { - // Parameters queries the parameters of the module. - Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) - // Queries a Blacklisted by index. - Blacklisted(context.Context, *QueryGetBlacklistedRequest) (*QueryGetBlacklistedResponse, error) - // Queries a list of Blacklisted items. - BlacklistedAll(context.Context, *QueryAllBlacklistedRequest) (*QueryAllBlacklistedResponse, error) - // Queries a Paused by index. - Paused(context.Context, *QueryGetPausedRequest) (*QueryGetPausedResponse, error) - // Queries a MasterMinter by index. - MasterMinter(context.Context, *QueryGetMasterMinterRequest) (*QueryGetMasterMinterResponse, error) - // Queries a Minters by index. - Minters(context.Context, *QueryGetMintersRequest) (*QueryGetMintersResponse, error) - // Queries a list of Minters items. - MintersAll(context.Context, *QueryAllMintersRequest) (*QueryAllMintersResponse, error) - // Queries a Pauser by index. - Pauser(context.Context, *QueryGetPauserRequest) (*QueryGetPauserResponse, error) - // Queries a Blacklister by index. - Blacklister(context.Context, *QueryGetBlacklisterRequest) (*QueryGetBlacklisterResponse, error) - // Queries a Owner by index. - Owner(context.Context, *QueryGetOwnerRequest) (*QueryGetOwnerResponse, error) - // Queries a MinterController by index. - MinterController(context.Context, *QueryGetMinterControllerRequest) (*QueryGetMinterControllerResponse, error) - // Queries a list of MinterController items. - MinterControllerAll(context.Context, *QueryAllMinterControllerRequest) (*QueryAllMinterControllerResponse, error) - // Queries a MintingDenom by index. - MintingDenom(context.Context, *QueryGetMintingDenomRequest) (*QueryGetMintingDenomResponse, error) -} - -// UnimplementedQueryServer can be embedded to have forward compatible implementations. -type UnimplementedQueryServer struct { -} - -func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Params not implemented") -} -func (*UnimplementedQueryServer) Blacklisted(ctx context.Context, req *QueryGetBlacklistedRequest) (*QueryGetBlacklistedResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Blacklisted not implemented") -} -func (*UnimplementedQueryServer) BlacklistedAll(ctx context.Context, req *QueryAllBlacklistedRequest) (*QueryAllBlacklistedResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method BlacklistedAll not implemented") -} -func (*UnimplementedQueryServer) Paused(ctx context.Context, req *QueryGetPausedRequest) (*QueryGetPausedResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Paused not implemented") -} -func (*UnimplementedQueryServer) MasterMinter(ctx context.Context, req *QueryGetMasterMinterRequest) (*QueryGetMasterMinterResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method MasterMinter not implemented") -} -func (*UnimplementedQueryServer) Minters(ctx context.Context, req *QueryGetMintersRequest) (*QueryGetMintersResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Minters not implemented") -} -func (*UnimplementedQueryServer) MintersAll(ctx context.Context, req *QueryAllMintersRequest) (*QueryAllMintersResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method MintersAll not implemented") -} -func (*UnimplementedQueryServer) Pauser(ctx context.Context, req *QueryGetPauserRequest) (*QueryGetPauserResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Pauser not implemented") -} -func (*UnimplementedQueryServer) Blacklister(ctx context.Context, req *QueryGetBlacklisterRequest) (*QueryGetBlacklisterResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Blacklister not implemented") -} -func (*UnimplementedQueryServer) Owner(ctx context.Context, req *QueryGetOwnerRequest) (*QueryGetOwnerResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Owner not implemented") -} -func (*UnimplementedQueryServer) MinterController(ctx context.Context, req *QueryGetMinterControllerRequest) (*QueryGetMinterControllerResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method MinterController not implemented") -} -func (*UnimplementedQueryServer) MinterControllerAll(ctx context.Context, req *QueryAllMinterControllerRequest) (*QueryAllMinterControllerResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method MinterControllerAll not implemented") -} -func (*UnimplementedQueryServer) MintingDenom(ctx context.Context, req *QueryGetMintingDenomRequest) (*QueryGetMintingDenomResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method MintingDenom not implemented") -} - -func RegisterQueryServer(s grpc1.Server, srv QueryServer) { - s.RegisterService(&_Query_serviceDesc, srv) -} - -func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryParamsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Params(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/noble.fiattokenfactory.Query/Params", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_Blacklisted_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryGetBlacklistedRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Blacklisted(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/noble.fiattokenfactory.Query/Blacklisted", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Blacklisted(ctx, req.(*QueryGetBlacklistedRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_BlacklistedAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryAllBlacklistedRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).BlacklistedAll(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/noble.fiattokenfactory.Query/BlacklistedAll", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).BlacklistedAll(ctx, req.(*QueryAllBlacklistedRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_Paused_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryGetPausedRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Paused(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/noble.fiattokenfactory.Query/Paused", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Paused(ctx, req.(*QueryGetPausedRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_MasterMinter_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryGetMasterMinterRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).MasterMinter(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/noble.fiattokenfactory.Query/MasterMinter", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).MasterMinter(ctx, req.(*QueryGetMasterMinterRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_Minters_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryGetMintersRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Minters(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/noble.fiattokenfactory.Query/Minters", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Minters(ctx, req.(*QueryGetMintersRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_MintersAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryAllMintersRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).MintersAll(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/noble.fiattokenfactory.Query/MintersAll", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).MintersAll(ctx, req.(*QueryAllMintersRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_Pauser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryGetPauserRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Pauser(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/noble.fiattokenfactory.Query/Pauser", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Pauser(ctx, req.(*QueryGetPauserRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_Blacklister_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryGetBlacklisterRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Blacklister(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/noble.fiattokenfactory.Query/Blacklister", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Blacklister(ctx, req.(*QueryGetBlacklisterRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_Owner_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryGetOwnerRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).Owner(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/noble.fiattokenfactory.Query/Owner", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).Owner(ctx, req.(*QueryGetOwnerRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_MinterController_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryGetMinterControllerRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).MinterController(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/noble.fiattokenfactory.Query/MinterController", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).MinterController(ctx, req.(*QueryGetMinterControllerRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_MinterControllerAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryAllMinterControllerRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).MinterControllerAll(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/noble.fiattokenfactory.Query/MinterControllerAll", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).MinterControllerAll(ctx, req.(*QueryAllMinterControllerRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_MintingDenom_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryGetMintingDenomRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).MintingDenom(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/noble.fiattokenfactory.Query/MintingDenom", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).MintingDenom(ctx, req.(*QueryGetMintingDenomRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _Query_serviceDesc = grpc.ServiceDesc{ - ServiceName: "noble.fiattokenfactory.Query", - HandlerType: (*QueryServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "Params", - Handler: _Query_Params_Handler, - }, - { - MethodName: "Blacklisted", - Handler: _Query_Blacklisted_Handler, - }, - { - MethodName: "BlacklistedAll", - Handler: _Query_BlacklistedAll_Handler, - }, - { - MethodName: "Paused", - Handler: _Query_Paused_Handler, - }, - { - MethodName: "MasterMinter", - Handler: _Query_MasterMinter_Handler, - }, - { - MethodName: "Minters", - Handler: _Query_Minters_Handler, - }, - { - MethodName: "MintersAll", - Handler: _Query_MintersAll_Handler, - }, - { - MethodName: "Pauser", - Handler: _Query_Pauser_Handler, - }, - { - MethodName: "Blacklister", - Handler: _Query_Blacklister_Handler, - }, - { - MethodName: "Owner", - Handler: _Query_Owner_Handler, - }, - { - MethodName: "MinterController", - Handler: _Query_MinterController_Handler, - }, - { - MethodName: "MinterControllerAll", - Handler: _Query_MinterControllerAll_Handler, - }, - { - MethodName: "MintingDenom", - Handler: _Query_MintingDenom_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "fiattokenfactory/query.proto", -} - -func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *QueryGetBlacklistedRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryGetBlacklistedRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryGetBlacklistedRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Address) > 0 { - i -= len(m.Address) - copy(dAtA[i:], m.Address) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Address))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *QueryGetBlacklistedResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryGetBlacklistedResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryGetBlacklistedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Blacklisted.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *QueryAllBlacklistedRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryAllBlacklistedRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryAllBlacklistedRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Pagination != nil { - { - size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *QueryAllBlacklistedResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryAllBlacklistedResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryAllBlacklistedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Pagination != nil { - { - size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Blacklisted) > 0 { - for iNdEx := len(m.Blacklisted) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Blacklisted[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *QueryGetPausedRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryGetPausedRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryGetPausedRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *QueryGetPausedResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryGetPausedResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryGetPausedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Paused.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *QueryGetMasterMinterRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryGetMasterMinterRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryGetMasterMinterRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *QueryGetMasterMinterResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryGetMasterMinterResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryGetMasterMinterResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.MasterMinter.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *QueryGetMintersRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryGetMintersRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryGetMintersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Address) > 0 { - i -= len(m.Address) - copy(dAtA[i:], m.Address) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Address))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *QueryGetMintersResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryGetMintersResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryGetMintersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Minters.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *QueryAllMintersRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryAllMintersRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryAllMintersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Pagination != nil { - { - size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *QueryAllMintersResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryAllMintersResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryAllMintersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Pagination != nil { - { - size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Minters) > 0 { - for iNdEx := len(m.Minters) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Minters[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *QueryGetPauserRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryGetPauserRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryGetPauserRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *QueryGetPauserResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryGetPauserResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryGetPauserResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Pauser.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *QueryGetBlacklisterRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryGetBlacklisterRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryGetBlacklisterRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *QueryGetBlacklisterResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryGetBlacklisterResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryGetBlacklisterResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Blacklister.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *QueryGetOwnerRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryGetOwnerRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryGetOwnerRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *QueryGetOwnerResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryGetOwnerResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryGetOwnerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Owner.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *QueryGetMinterControllerRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryGetMinterControllerRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryGetMinterControllerRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ControllerAddress) > 0 { - i -= len(m.ControllerAddress) - copy(dAtA[i:], m.ControllerAddress) - i = encodeVarintQuery(dAtA, i, uint64(len(m.ControllerAddress))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *QueryGetMinterControllerResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryGetMinterControllerResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryGetMinterControllerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.MinterController.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *QueryAllMinterControllerRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryAllMinterControllerRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryAllMinterControllerRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Pagination != nil { - { - size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *QueryAllMinterControllerResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryAllMinterControllerResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryAllMinterControllerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Pagination != nil { - { - size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.MinterController) > 0 { - for iNdEx := len(m.MinterController) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.MinterController[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *QueryGetMintingDenomRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryGetMintingDenomRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryGetMintingDenomRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *QueryGetMintingDenomResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryGetMintingDenomResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryGetMintingDenomResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.MintingDenom.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { - offset -= sovQuery(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *QueryParamsRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *QueryParamsResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Params.Size() - n += 1 + l + sovQuery(uint64(l)) - return n -} - -func (m *QueryGetBlacklistedRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Address) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryGetBlacklistedResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Blacklisted.Size() - n += 1 + l + sovQuery(uint64(l)) - return n -} - -func (m *QueryAllBlacklistedRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Pagination != nil { - l = m.Pagination.Size() - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryAllBlacklistedResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Blacklisted) > 0 { - for _, e := range m.Blacklisted { - l = e.Size() - n += 1 + l + sovQuery(uint64(l)) - } - } - if m.Pagination != nil { - l = m.Pagination.Size() - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryGetPausedRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *QueryGetPausedResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Paused.Size() - n += 1 + l + sovQuery(uint64(l)) - return n -} - -func (m *QueryGetMasterMinterRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *QueryGetMasterMinterResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.MasterMinter.Size() - n += 1 + l + sovQuery(uint64(l)) - return n -} - -func (m *QueryGetMintersRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Address) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryGetMintersResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Minters.Size() - n += 1 + l + sovQuery(uint64(l)) - return n -} - -func (m *QueryAllMintersRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Pagination != nil { - l = m.Pagination.Size() - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryAllMintersResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Minters) > 0 { - for _, e := range m.Minters { - l = e.Size() - n += 1 + l + sovQuery(uint64(l)) - } - } - if m.Pagination != nil { - l = m.Pagination.Size() - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryGetPauserRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *QueryGetPauserResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Pauser.Size() - n += 1 + l + sovQuery(uint64(l)) - return n -} - -func (m *QueryGetBlacklisterRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *QueryGetBlacklisterResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Blacklister.Size() - n += 1 + l + sovQuery(uint64(l)) - return n -} - -func (m *QueryGetOwnerRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *QueryGetOwnerResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Owner.Size() - n += 1 + l + sovQuery(uint64(l)) - return n -} - -func (m *QueryGetMinterControllerRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ControllerAddress) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryGetMinterControllerResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.MinterController.Size() - n += 1 + l + sovQuery(uint64(l)) - return n -} - -func (m *QueryAllMinterControllerRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Pagination != nil { - l = m.Pagination.Size() - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryAllMinterControllerResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.MinterController) > 0 { - for _, e := range m.MinterController { - l = e.Size() - n += 1 + l + sovQuery(uint64(l)) - } - } - if m.Pagination != nil { - l = m.Pagination.Size() - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryGetMintingDenomRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *QueryGetMintingDenomResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.MintingDenom.Size() - n += 1 + l + sovQuery(uint64(l)) - return n -} - -func sovQuery(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozQuery(x uint64) (n int) { - return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryParamsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryParamsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryGetBlacklistedRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryGetBlacklistedRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetBlacklistedRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Address = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryGetBlacklistedResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryGetBlacklistedResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetBlacklistedResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Blacklisted", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Blacklisted.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryAllBlacklistedRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryAllBlacklistedRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllBlacklistedRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Pagination == nil { - m.Pagination = &query.PageRequest{} - } - if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryAllBlacklistedResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryAllBlacklistedResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllBlacklistedResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Blacklisted", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Blacklisted = append(m.Blacklisted, Blacklisted{}) - if err := m.Blacklisted[len(m.Blacklisted)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Pagination == nil { - m.Pagination = &query.PageResponse{} - } - if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryGetPausedRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryGetPausedRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetPausedRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryGetPausedResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryGetPausedResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetPausedResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Paused", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Paused.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryGetMasterMinterRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryGetMasterMinterRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetMasterMinterRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryGetMasterMinterResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryGetMasterMinterResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetMasterMinterResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MasterMinter", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.MasterMinter.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryGetMintersRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryGetMintersRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetMintersRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Address = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryGetMintersResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryGetMintersResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetMintersResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Minters", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Minters.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryAllMintersRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryAllMintersRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllMintersRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Pagination == nil { - m.Pagination = &query.PageRequest{} - } - if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryAllMintersResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryAllMintersResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllMintersResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Minters", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Minters = append(m.Minters, Minters{}) - if err := m.Minters[len(m.Minters)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Pagination == nil { - m.Pagination = &query.PageResponse{} - } - if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryGetPauserRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryGetPauserRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetPauserRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryGetPauserResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryGetPauserResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetPauserResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pauser", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Pauser.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryGetBlacklisterRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryGetBlacklisterRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetBlacklisterRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryGetBlacklisterResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryGetBlacklisterResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetBlacklisterResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Blacklister", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Blacklister.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryGetOwnerRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryGetOwnerRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetOwnerRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryGetOwnerResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryGetOwnerResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetOwnerResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Owner.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryGetMinterControllerRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryGetMinterControllerRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetMinterControllerRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ControllerAddress", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ControllerAddress = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryGetMinterControllerResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryGetMinterControllerResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetMinterControllerResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MinterController", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.MinterController.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryAllMinterControllerRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryAllMinterControllerRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllMinterControllerRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Pagination == nil { - m.Pagination = &query.PageRequest{} - } - if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryAllMinterControllerResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryAllMinterControllerResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllMinterControllerResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MinterController", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MinterController = append(m.MinterController, MinterController{}) - if err := m.MinterController[len(m.MinterController)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Pagination == nil { - m.Pagination = &query.PageResponse{} - } - if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryGetMintingDenomRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryGetMintingDenomRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetMintingDenomRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryGetMintingDenomResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryGetMintingDenomResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetMintingDenomResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MintingDenom", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.MintingDenom.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipQuery(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowQuery - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowQuery - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowQuery - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthQuery - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupQuery - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthQuery - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/fiattokenfactory/types/query.pb.gw.go b/x/fiattokenfactory/types/query.pb.gw.go deleted file mode 100644 index 7cf5ed94..00000000 --- a/x/fiattokenfactory/types/query.pb.gw.go +++ /dev/null @@ -1,1054 +0,0 @@ -// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: fiattokenfactory/query.proto - -/* -Package types is a reverse proxy. - -It translates gRPC into RESTful JSON APIs. -*/ -package types - -import ( - "context" - "io" - "net/http" - - "github.com/golang/protobuf/descriptor" - "github.com/golang/protobuf/proto" - "github.com/grpc-ecosystem/grpc-gateway/runtime" - "github.com/grpc-ecosystem/grpc-gateway/utilities" - "google.golang.org/grpc" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/grpclog" - "google.golang.org/grpc/status" -) - -// Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = descriptor.ForMessage - -func request_Query_Params_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryParamsRequest - var metadata runtime.ServerMetadata - - msg, err := client.Params(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_Params_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryParamsRequest - var metadata runtime.ServerMetadata - - msg, err := server.Params(ctx, &protoReq) - return msg, metadata, err - -} - -func request_Query_Blacklisted_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryGetBlacklistedRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["address"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "address") - } - - protoReq.Address, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "address", err) - } - - msg, err := client.Blacklisted(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_Blacklisted_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryGetBlacklistedRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["address"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "address") - } - - protoReq.Address, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "address", err) - } - - msg, err := server.Blacklisted(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_Query_BlacklistedAll_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} -) - -func request_Query_BlacklistedAll_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryAllBlacklistedRequest - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_BlacklistedAll_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.BlacklistedAll(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_BlacklistedAll_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryAllBlacklistedRequest - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_BlacklistedAll_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.BlacklistedAll(ctx, &protoReq) - return msg, metadata, err - -} - -func request_Query_Paused_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryGetPausedRequest - var metadata runtime.ServerMetadata - - msg, err := client.Paused(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_Paused_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryGetPausedRequest - var metadata runtime.ServerMetadata - - msg, err := server.Paused(ctx, &protoReq) - return msg, metadata, err - -} - -func request_Query_MasterMinter_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryGetMasterMinterRequest - var metadata runtime.ServerMetadata - - msg, err := client.MasterMinter(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_MasterMinter_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryGetMasterMinterRequest - var metadata runtime.ServerMetadata - - msg, err := server.MasterMinter(ctx, &protoReq) - return msg, metadata, err - -} - -func request_Query_Minters_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryGetMintersRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["address"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "address") - } - - protoReq.Address, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "address", err) - } - - msg, err := client.Minters(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_Minters_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryGetMintersRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["address"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "address") - } - - protoReq.Address, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "address", err) - } - - msg, err := server.Minters(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_Query_MintersAll_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} -) - -func request_Query_MintersAll_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryAllMintersRequest - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_MintersAll_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.MintersAll(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_MintersAll_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryAllMintersRequest - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_MintersAll_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.MintersAll(ctx, &protoReq) - return msg, metadata, err - -} - -func request_Query_Pauser_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryGetPauserRequest - var metadata runtime.ServerMetadata - - msg, err := client.Pauser(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_Pauser_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryGetPauserRequest - var metadata runtime.ServerMetadata - - msg, err := server.Pauser(ctx, &protoReq) - return msg, metadata, err - -} - -func request_Query_Blacklister_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryGetBlacklisterRequest - var metadata runtime.ServerMetadata - - msg, err := client.Blacklister(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_Blacklister_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryGetBlacklisterRequest - var metadata runtime.ServerMetadata - - msg, err := server.Blacklister(ctx, &protoReq) - return msg, metadata, err - -} - -func request_Query_Owner_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryGetOwnerRequest - var metadata runtime.ServerMetadata - - msg, err := client.Owner(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_Owner_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryGetOwnerRequest - var metadata runtime.ServerMetadata - - msg, err := server.Owner(ctx, &protoReq) - return msg, metadata, err - -} - -func request_Query_MinterController_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryGetMinterControllerRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["controllerAddress"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "controllerAddress") - } - - protoReq.ControllerAddress, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "controllerAddress", err) - } - - msg, err := client.MinterController(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_MinterController_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryGetMinterControllerRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["controllerAddress"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "controllerAddress") - } - - protoReq.ControllerAddress, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "controllerAddress", err) - } - - msg, err := server.MinterController(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_Query_MinterControllerAll_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} -) - -func request_Query_MinterControllerAll_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryAllMinterControllerRequest - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_MinterControllerAll_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.MinterControllerAll(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_MinterControllerAll_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryAllMinterControllerRequest - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_MinterControllerAll_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.MinterControllerAll(ctx, &protoReq) - return msg, metadata, err - -} - -func request_Query_MintingDenom_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryGetMintingDenomRequest - var metadata runtime.ServerMetadata - - msg, err := client.MintingDenom(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_MintingDenom_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryGetMintingDenomRequest - var metadata runtime.ServerMetadata - - msg, err := server.MintingDenom(ctx, &protoReq) - return msg, metadata, err - -} - -// RegisterQueryHandlerServer registers the http handlers for service Query to "mux". -// UnaryRPC :call QueryServer directly. -// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. -// Note that using this registration option will cause many gRPC library features (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead. -func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error { - - mux.Handle("GET", pattern_Query_Params_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Query_Params_0(rctx, inboundMarshaler, server, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_Params_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_Blacklisted_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Query_Blacklisted_0(rctx, inboundMarshaler, server, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_Blacklisted_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_BlacklistedAll_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Query_BlacklistedAll_0(rctx, inboundMarshaler, server, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_BlacklistedAll_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_Paused_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Query_Paused_0(rctx, inboundMarshaler, server, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_Paused_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_MasterMinter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Query_MasterMinter_0(rctx, inboundMarshaler, server, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_MasterMinter_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_Minters_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Query_Minters_0(rctx, inboundMarshaler, server, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_Minters_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_MintersAll_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Query_MintersAll_0(rctx, inboundMarshaler, server, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_MintersAll_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_Pauser_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Query_Pauser_0(rctx, inboundMarshaler, server, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_Pauser_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_Blacklister_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Query_Blacklister_0(rctx, inboundMarshaler, server, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_Blacklister_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_Owner_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Query_Owner_0(rctx, inboundMarshaler, server, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_Owner_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_MinterController_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Query_MinterController_0(rctx, inboundMarshaler, server, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_MinterController_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_MinterControllerAll_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Query_MinterControllerAll_0(rctx, inboundMarshaler, server, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_MinterControllerAll_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_MintingDenom_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Query_MintingDenom_0(rctx, inboundMarshaler, server, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_MintingDenom_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - return nil -} - -// RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but -// automatically dials to "endpoint" and closes the connection when "ctx" gets done. -func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.Dial(endpoint, opts...) - if err != nil { - return err - } - defer func() { - if err != nil { - if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) - } - return - } - go func() { - <-ctx.Done() - if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) - } - }() - }() - - return RegisterQueryHandler(ctx, mux, conn) -} - -// RegisterQueryHandler registers the http handlers for service Query to "mux". -// The handlers forward requests to the grpc endpoint over "conn". -func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { - return RegisterQueryHandlerClient(ctx, mux, NewQueryClient(conn)) -} - -// RegisterQueryHandlerClient registers the http handlers for service Query -// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". -// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" -// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in -// "QueryClient" to call the correct interceptors. -func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error { - - mux.Handle("GET", pattern_Query_Params_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Query_Params_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_Params_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_Blacklisted_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Query_Blacklisted_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_Blacklisted_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_BlacklistedAll_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Query_BlacklistedAll_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_BlacklistedAll_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_Paused_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Query_Paused_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_Paused_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_MasterMinter_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Query_MasterMinter_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_MasterMinter_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_Minters_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Query_Minters_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_Minters_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_MintersAll_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Query_MintersAll_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_MintersAll_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_Pauser_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Query_Pauser_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_Pauser_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_Blacklister_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Query_Blacklister_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_Blacklister_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_Owner_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Query_Owner_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_Owner_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_MinterController_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Query_MinterController_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_MinterController_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_MinterControllerAll_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Query_MinterControllerAll_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_MinterControllerAll_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_MintingDenom_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Query_MintingDenom_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_MintingDenom_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - return nil -} - -var ( - pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"noble", "fiattokenfactory", "params"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_Query_Blacklisted_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"noble", "fiattokenfactory", "blacklisted", "address"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_Query_BlacklistedAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"noble", "fiattokenfactory", "blacklisted"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_Query_Paused_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"noble", "fiattokenfactory", "paused"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_Query_MasterMinter_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"noble", "fiattokenfactory", "master_minter"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_Query_Minters_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"noble", "fiattokenfactory", "minters", "address"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_Query_MintersAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"noble", "fiattokenfactory", "minters"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_Query_Pauser_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"noble", "fiattokenfactory", "pauser"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_Query_Blacklister_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"noble", "fiattokenfactory", "blacklister"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_Query_Owner_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"noble", "fiattokenfactory", "owner"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_Query_MinterController_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"noble", "fiattokenfactory", "minter_controller", "controllerAddress"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_Query_MinterControllerAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"noble", "fiattokenfactory", "minter_controller"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_Query_MintingDenom_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"noble", "fiattokenfactory", "minting_denom"}, "", runtime.AssumeColonVerbOpt(true))) -) - -var ( - forward_Query_Params_0 = runtime.ForwardResponseMessage - - forward_Query_Blacklisted_0 = runtime.ForwardResponseMessage - - forward_Query_BlacklistedAll_0 = runtime.ForwardResponseMessage - - forward_Query_Paused_0 = runtime.ForwardResponseMessage - - forward_Query_MasterMinter_0 = runtime.ForwardResponseMessage - - forward_Query_Minters_0 = runtime.ForwardResponseMessage - - forward_Query_MintersAll_0 = runtime.ForwardResponseMessage - - forward_Query_Pauser_0 = runtime.ForwardResponseMessage - - forward_Query_Blacklister_0 = runtime.ForwardResponseMessage - - forward_Query_Owner_0 = runtime.ForwardResponseMessage - - forward_Query_MinterController_0 = runtime.ForwardResponseMessage - - forward_Query_MinterControllerAll_0 = runtime.ForwardResponseMessage - - forward_Query_MintingDenom_0 = runtime.ForwardResponseMessage -) diff --git a/x/fiattokenfactory/types/tx.pb.go b/x/fiattokenfactory/types/tx.pb.go deleted file mode 100644 index b463c251..00000000 --- a/x/fiattokenfactory/types/tx.pb.go +++ /dev/null @@ -1,5882 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: fiattokenfactory/tx.proto - -package types - -import ( - context "context" - fmt "fmt" - types "github.com/cosmos/cosmos-sdk/types" - _ "github.com/gogo/protobuf/gogoproto" - grpc1 "github.com/gogo/protobuf/grpc" - proto "github.com/gogo/protobuf/proto" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - io "io" - math "math" - math_bits "math/bits" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -type MsgUpdateMasterMinter struct { - From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` - Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` -} - -func (m *MsgUpdateMasterMinter) Reset() { *m = MsgUpdateMasterMinter{} } -func (m *MsgUpdateMasterMinter) String() string { return proto.CompactTextString(m) } -func (*MsgUpdateMasterMinter) ProtoMessage() {} -func (*MsgUpdateMasterMinter) Descriptor() ([]byte, []int) { - return fileDescriptor_0d272e143958733b, []int{0} -} -func (m *MsgUpdateMasterMinter) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgUpdateMasterMinter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgUpdateMasterMinter.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *MsgUpdateMasterMinter) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgUpdateMasterMinter.Merge(m, src) -} -func (m *MsgUpdateMasterMinter) XXX_Size() int { - return m.Size() -} -func (m *MsgUpdateMasterMinter) XXX_DiscardUnknown() { - xxx_messageInfo_MsgUpdateMasterMinter.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgUpdateMasterMinter proto.InternalMessageInfo - -func (m *MsgUpdateMasterMinter) GetFrom() string { - if m != nil { - return m.From - } - return "" -} - -func (m *MsgUpdateMasterMinter) GetAddress() string { - if m != nil { - return m.Address - } - return "" -} - -type MsgUpdateMasterMinterResponse struct { -} - -func (m *MsgUpdateMasterMinterResponse) Reset() { *m = MsgUpdateMasterMinterResponse{} } -func (m *MsgUpdateMasterMinterResponse) String() string { return proto.CompactTextString(m) } -func (*MsgUpdateMasterMinterResponse) ProtoMessage() {} -func (*MsgUpdateMasterMinterResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0d272e143958733b, []int{1} -} -func (m *MsgUpdateMasterMinterResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgUpdateMasterMinterResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgUpdateMasterMinterResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *MsgUpdateMasterMinterResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgUpdateMasterMinterResponse.Merge(m, src) -} -func (m *MsgUpdateMasterMinterResponse) XXX_Size() int { - return m.Size() -} -func (m *MsgUpdateMasterMinterResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgUpdateMasterMinterResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgUpdateMasterMinterResponse proto.InternalMessageInfo - -type MsgUpdatePauser struct { - From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` - Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` -} - -func (m *MsgUpdatePauser) Reset() { *m = MsgUpdatePauser{} } -func (m *MsgUpdatePauser) String() string { return proto.CompactTextString(m) } -func (*MsgUpdatePauser) ProtoMessage() {} -func (*MsgUpdatePauser) Descriptor() ([]byte, []int) { - return fileDescriptor_0d272e143958733b, []int{2} -} -func (m *MsgUpdatePauser) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgUpdatePauser) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgUpdatePauser.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *MsgUpdatePauser) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgUpdatePauser.Merge(m, src) -} -func (m *MsgUpdatePauser) XXX_Size() int { - return m.Size() -} -func (m *MsgUpdatePauser) XXX_DiscardUnknown() { - xxx_messageInfo_MsgUpdatePauser.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgUpdatePauser proto.InternalMessageInfo - -func (m *MsgUpdatePauser) GetFrom() string { - if m != nil { - return m.From - } - return "" -} - -func (m *MsgUpdatePauser) GetAddress() string { - if m != nil { - return m.Address - } - return "" -} - -type MsgUpdatePauserResponse struct { -} - -func (m *MsgUpdatePauserResponse) Reset() { *m = MsgUpdatePauserResponse{} } -func (m *MsgUpdatePauserResponse) String() string { return proto.CompactTextString(m) } -func (*MsgUpdatePauserResponse) ProtoMessage() {} -func (*MsgUpdatePauserResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0d272e143958733b, []int{3} -} -func (m *MsgUpdatePauserResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgUpdatePauserResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgUpdatePauserResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *MsgUpdatePauserResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgUpdatePauserResponse.Merge(m, src) -} -func (m *MsgUpdatePauserResponse) XXX_Size() int { - return m.Size() -} -func (m *MsgUpdatePauserResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgUpdatePauserResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgUpdatePauserResponse proto.InternalMessageInfo - -type MsgUpdateBlacklister struct { - From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` - Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` -} - -func (m *MsgUpdateBlacklister) Reset() { *m = MsgUpdateBlacklister{} } -func (m *MsgUpdateBlacklister) String() string { return proto.CompactTextString(m) } -func (*MsgUpdateBlacklister) ProtoMessage() {} -func (*MsgUpdateBlacklister) Descriptor() ([]byte, []int) { - return fileDescriptor_0d272e143958733b, []int{4} -} -func (m *MsgUpdateBlacklister) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgUpdateBlacklister) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgUpdateBlacklister.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *MsgUpdateBlacklister) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgUpdateBlacklister.Merge(m, src) -} -func (m *MsgUpdateBlacklister) XXX_Size() int { - return m.Size() -} -func (m *MsgUpdateBlacklister) XXX_DiscardUnknown() { - xxx_messageInfo_MsgUpdateBlacklister.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgUpdateBlacklister proto.InternalMessageInfo - -func (m *MsgUpdateBlacklister) GetFrom() string { - if m != nil { - return m.From - } - return "" -} - -func (m *MsgUpdateBlacklister) GetAddress() string { - if m != nil { - return m.Address - } - return "" -} - -type MsgUpdateBlacklisterResponse struct { -} - -func (m *MsgUpdateBlacklisterResponse) Reset() { *m = MsgUpdateBlacklisterResponse{} } -func (m *MsgUpdateBlacklisterResponse) String() string { return proto.CompactTextString(m) } -func (*MsgUpdateBlacklisterResponse) ProtoMessage() {} -func (*MsgUpdateBlacklisterResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0d272e143958733b, []int{5} -} -func (m *MsgUpdateBlacklisterResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgUpdateBlacklisterResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgUpdateBlacklisterResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *MsgUpdateBlacklisterResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgUpdateBlacklisterResponse.Merge(m, src) -} -func (m *MsgUpdateBlacklisterResponse) XXX_Size() int { - return m.Size() -} -func (m *MsgUpdateBlacklisterResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgUpdateBlacklisterResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgUpdateBlacklisterResponse proto.InternalMessageInfo - -type MsgUpdateOwner struct { - From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` - Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` -} - -func (m *MsgUpdateOwner) Reset() { *m = MsgUpdateOwner{} } -func (m *MsgUpdateOwner) String() string { return proto.CompactTextString(m) } -func (*MsgUpdateOwner) ProtoMessage() {} -func (*MsgUpdateOwner) Descriptor() ([]byte, []int) { - return fileDescriptor_0d272e143958733b, []int{6} -} -func (m *MsgUpdateOwner) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgUpdateOwner) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgUpdateOwner.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *MsgUpdateOwner) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgUpdateOwner.Merge(m, src) -} -func (m *MsgUpdateOwner) XXX_Size() int { - return m.Size() -} -func (m *MsgUpdateOwner) XXX_DiscardUnknown() { - xxx_messageInfo_MsgUpdateOwner.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgUpdateOwner proto.InternalMessageInfo - -func (m *MsgUpdateOwner) GetFrom() string { - if m != nil { - return m.From - } - return "" -} - -func (m *MsgUpdateOwner) GetAddress() string { - if m != nil { - return m.Address - } - return "" -} - -type MsgUpdateOwnerResponse struct { -} - -func (m *MsgUpdateOwnerResponse) Reset() { *m = MsgUpdateOwnerResponse{} } -func (m *MsgUpdateOwnerResponse) String() string { return proto.CompactTextString(m) } -func (*MsgUpdateOwnerResponse) ProtoMessage() {} -func (*MsgUpdateOwnerResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0d272e143958733b, []int{7} -} -func (m *MsgUpdateOwnerResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgUpdateOwnerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgUpdateOwnerResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *MsgUpdateOwnerResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgUpdateOwnerResponse.Merge(m, src) -} -func (m *MsgUpdateOwnerResponse) XXX_Size() int { - return m.Size() -} -func (m *MsgUpdateOwnerResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgUpdateOwnerResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgUpdateOwnerResponse proto.InternalMessageInfo - -type MsgAcceptOwner struct { - From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` -} - -func (m *MsgAcceptOwner) Reset() { *m = MsgAcceptOwner{} } -func (m *MsgAcceptOwner) String() string { return proto.CompactTextString(m) } -func (*MsgAcceptOwner) ProtoMessage() {} -func (*MsgAcceptOwner) Descriptor() ([]byte, []int) { - return fileDescriptor_0d272e143958733b, []int{8} -} -func (m *MsgAcceptOwner) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgAcceptOwner) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgAcceptOwner.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *MsgAcceptOwner) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgAcceptOwner.Merge(m, src) -} -func (m *MsgAcceptOwner) XXX_Size() int { - return m.Size() -} -func (m *MsgAcceptOwner) XXX_DiscardUnknown() { - xxx_messageInfo_MsgAcceptOwner.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgAcceptOwner proto.InternalMessageInfo - -func (m *MsgAcceptOwner) GetFrom() string { - if m != nil { - return m.From - } - return "" -} - -type MsgAcceptOwnerResponse struct { -} - -func (m *MsgAcceptOwnerResponse) Reset() { *m = MsgAcceptOwnerResponse{} } -func (m *MsgAcceptOwnerResponse) String() string { return proto.CompactTextString(m) } -func (*MsgAcceptOwnerResponse) ProtoMessage() {} -func (*MsgAcceptOwnerResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0d272e143958733b, []int{9} -} -func (m *MsgAcceptOwnerResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgAcceptOwnerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgAcceptOwnerResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *MsgAcceptOwnerResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgAcceptOwnerResponse.Merge(m, src) -} -func (m *MsgAcceptOwnerResponse) XXX_Size() int { - return m.Size() -} -func (m *MsgAcceptOwnerResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgAcceptOwnerResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgAcceptOwnerResponse proto.InternalMessageInfo - -type MsgConfigureMinter struct { - From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` - Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` - Allowance types.Coin `protobuf:"bytes,3,opt,name=allowance,proto3" json:"allowance"` -} - -func (m *MsgConfigureMinter) Reset() { *m = MsgConfigureMinter{} } -func (m *MsgConfigureMinter) String() string { return proto.CompactTextString(m) } -func (*MsgConfigureMinter) ProtoMessage() {} -func (*MsgConfigureMinter) Descriptor() ([]byte, []int) { - return fileDescriptor_0d272e143958733b, []int{10} -} -func (m *MsgConfigureMinter) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgConfigureMinter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgConfigureMinter.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *MsgConfigureMinter) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgConfigureMinter.Merge(m, src) -} -func (m *MsgConfigureMinter) XXX_Size() int { - return m.Size() -} -func (m *MsgConfigureMinter) XXX_DiscardUnknown() { - xxx_messageInfo_MsgConfigureMinter.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgConfigureMinter proto.InternalMessageInfo - -func (m *MsgConfigureMinter) GetFrom() string { - if m != nil { - return m.From - } - return "" -} - -func (m *MsgConfigureMinter) GetAddress() string { - if m != nil { - return m.Address - } - return "" -} - -func (m *MsgConfigureMinter) GetAllowance() types.Coin { - if m != nil { - return m.Allowance - } - return types.Coin{} -} - -type MsgConfigureMinterResponse struct { -} - -func (m *MsgConfigureMinterResponse) Reset() { *m = MsgConfigureMinterResponse{} } -func (m *MsgConfigureMinterResponse) String() string { return proto.CompactTextString(m) } -func (*MsgConfigureMinterResponse) ProtoMessage() {} -func (*MsgConfigureMinterResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0d272e143958733b, []int{11} -} -func (m *MsgConfigureMinterResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgConfigureMinterResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgConfigureMinterResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *MsgConfigureMinterResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgConfigureMinterResponse.Merge(m, src) -} -func (m *MsgConfigureMinterResponse) XXX_Size() int { - return m.Size() -} -func (m *MsgConfigureMinterResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgConfigureMinterResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgConfigureMinterResponse proto.InternalMessageInfo - -type MsgRemoveMinter struct { - From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` - Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` -} - -func (m *MsgRemoveMinter) Reset() { *m = MsgRemoveMinter{} } -func (m *MsgRemoveMinter) String() string { return proto.CompactTextString(m) } -func (*MsgRemoveMinter) ProtoMessage() {} -func (*MsgRemoveMinter) Descriptor() ([]byte, []int) { - return fileDescriptor_0d272e143958733b, []int{12} -} -func (m *MsgRemoveMinter) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgRemoveMinter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgRemoveMinter.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *MsgRemoveMinter) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgRemoveMinter.Merge(m, src) -} -func (m *MsgRemoveMinter) XXX_Size() int { - return m.Size() -} -func (m *MsgRemoveMinter) XXX_DiscardUnknown() { - xxx_messageInfo_MsgRemoveMinter.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgRemoveMinter proto.InternalMessageInfo - -func (m *MsgRemoveMinter) GetFrom() string { - if m != nil { - return m.From - } - return "" -} - -func (m *MsgRemoveMinter) GetAddress() string { - if m != nil { - return m.Address - } - return "" -} - -type MsgRemoveMinterResponse struct { -} - -func (m *MsgRemoveMinterResponse) Reset() { *m = MsgRemoveMinterResponse{} } -func (m *MsgRemoveMinterResponse) String() string { return proto.CompactTextString(m) } -func (*MsgRemoveMinterResponse) ProtoMessage() {} -func (*MsgRemoveMinterResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0d272e143958733b, []int{13} -} -func (m *MsgRemoveMinterResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgRemoveMinterResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgRemoveMinterResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *MsgRemoveMinterResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgRemoveMinterResponse.Merge(m, src) -} -func (m *MsgRemoveMinterResponse) XXX_Size() int { - return m.Size() -} -func (m *MsgRemoveMinterResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgRemoveMinterResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgRemoveMinterResponse proto.InternalMessageInfo - -type MsgMint struct { - From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` - Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` - Amount types.Coin `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount"` -} - -func (m *MsgMint) Reset() { *m = MsgMint{} } -func (m *MsgMint) String() string { return proto.CompactTextString(m) } -func (*MsgMint) ProtoMessage() {} -func (*MsgMint) Descriptor() ([]byte, []int) { - return fileDescriptor_0d272e143958733b, []int{14} -} -func (m *MsgMint) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgMint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgMint.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *MsgMint) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgMint.Merge(m, src) -} -func (m *MsgMint) XXX_Size() int { - return m.Size() -} -func (m *MsgMint) XXX_DiscardUnknown() { - xxx_messageInfo_MsgMint.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgMint proto.InternalMessageInfo - -func (m *MsgMint) GetFrom() string { - if m != nil { - return m.From - } - return "" -} - -func (m *MsgMint) GetAddress() string { - if m != nil { - return m.Address - } - return "" -} - -func (m *MsgMint) GetAmount() types.Coin { - if m != nil { - return m.Amount - } - return types.Coin{} -} - -type MsgMintResponse struct { -} - -func (m *MsgMintResponse) Reset() { *m = MsgMintResponse{} } -func (m *MsgMintResponse) String() string { return proto.CompactTextString(m) } -func (*MsgMintResponse) ProtoMessage() {} -func (*MsgMintResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0d272e143958733b, []int{15} -} -func (m *MsgMintResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgMintResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgMintResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *MsgMintResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgMintResponse.Merge(m, src) -} -func (m *MsgMintResponse) XXX_Size() int { - return m.Size() -} -func (m *MsgMintResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgMintResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgMintResponse proto.InternalMessageInfo - -type MsgBurn struct { - From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` - Amount types.Coin `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount"` -} - -func (m *MsgBurn) Reset() { *m = MsgBurn{} } -func (m *MsgBurn) String() string { return proto.CompactTextString(m) } -func (*MsgBurn) ProtoMessage() {} -func (*MsgBurn) Descriptor() ([]byte, []int) { - return fileDescriptor_0d272e143958733b, []int{16} -} -func (m *MsgBurn) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgBurn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgBurn.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *MsgBurn) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgBurn.Merge(m, src) -} -func (m *MsgBurn) XXX_Size() int { - return m.Size() -} -func (m *MsgBurn) XXX_DiscardUnknown() { - xxx_messageInfo_MsgBurn.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgBurn proto.InternalMessageInfo - -func (m *MsgBurn) GetFrom() string { - if m != nil { - return m.From - } - return "" -} - -func (m *MsgBurn) GetAmount() types.Coin { - if m != nil { - return m.Amount - } - return types.Coin{} -} - -type MsgBurnResponse struct { -} - -func (m *MsgBurnResponse) Reset() { *m = MsgBurnResponse{} } -func (m *MsgBurnResponse) String() string { return proto.CompactTextString(m) } -func (*MsgBurnResponse) ProtoMessage() {} -func (*MsgBurnResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0d272e143958733b, []int{17} -} -func (m *MsgBurnResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgBurnResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgBurnResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *MsgBurnResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgBurnResponse.Merge(m, src) -} -func (m *MsgBurnResponse) XXX_Size() int { - return m.Size() -} -func (m *MsgBurnResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgBurnResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgBurnResponse proto.InternalMessageInfo - -type MsgBlacklist struct { - From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` - Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` -} - -func (m *MsgBlacklist) Reset() { *m = MsgBlacklist{} } -func (m *MsgBlacklist) String() string { return proto.CompactTextString(m) } -func (*MsgBlacklist) ProtoMessage() {} -func (*MsgBlacklist) Descriptor() ([]byte, []int) { - return fileDescriptor_0d272e143958733b, []int{18} -} -func (m *MsgBlacklist) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgBlacklist) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgBlacklist.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *MsgBlacklist) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgBlacklist.Merge(m, src) -} -func (m *MsgBlacklist) XXX_Size() int { - return m.Size() -} -func (m *MsgBlacklist) XXX_DiscardUnknown() { - xxx_messageInfo_MsgBlacklist.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgBlacklist proto.InternalMessageInfo - -func (m *MsgBlacklist) GetFrom() string { - if m != nil { - return m.From - } - return "" -} - -func (m *MsgBlacklist) GetAddress() string { - if m != nil { - return m.Address - } - return "" -} - -type MsgBlacklistResponse struct { -} - -func (m *MsgBlacklistResponse) Reset() { *m = MsgBlacklistResponse{} } -func (m *MsgBlacklistResponse) String() string { return proto.CompactTextString(m) } -func (*MsgBlacklistResponse) ProtoMessage() {} -func (*MsgBlacklistResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0d272e143958733b, []int{19} -} -func (m *MsgBlacklistResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgBlacklistResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgBlacklistResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *MsgBlacklistResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgBlacklistResponse.Merge(m, src) -} -func (m *MsgBlacklistResponse) XXX_Size() int { - return m.Size() -} -func (m *MsgBlacklistResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgBlacklistResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgBlacklistResponse proto.InternalMessageInfo - -type MsgUnblacklist struct { - From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` - Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` -} - -func (m *MsgUnblacklist) Reset() { *m = MsgUnblacklist{} } -func (m *MsgUnblacklist) String() string { return proto.CompactTextString(m) } -func (*MsgUnblacklist) ProtoMessage() {} -func (*MsgUnblacklist) Descriptor() ([]byte, []int) { - return fileDescriptor_0d272e143958733b, []int{20} -} -func (m *MsgUnblacklist) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgUnblacklist) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgUnblacklist.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *MsgUnblacklist) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgUnblacklist.Merge(m, src) -} -func (m *MsgUnblacklist) XXX_Size() int { - return m.Size() -} -func (m *MsgUnblacklist) XXX_DiscardUnknown() { - xxx_messageInfo_MsgUnblacklist.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgUnblacklist proto.InternalMessageInfo - -func (m *MsgUnblacklist) GetFrom() string { - if m != nil { - return m.From - } - return "" -} - -func (m *MsgUnblacklist) GetAddress() string { - if m != nil { - return m.Address - } - return "" -} - -type MsgUnblacklistResponse struct { -} - -func (m *MsgUnblacklistResponse) Reset() { *m = MsgUnblacklistResponse{} } -func (m *MsgUnblacklistResponse) String() string { return proto.CompactTextString(m) } -func (*MsgUnblacklistResponse) ProtoMessage() {} -func (*MsgUnblacklistResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0d272e143958733b, []int{21} -} -func (m *MsgUnblacklistResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgUnblacklistResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgUnblacklistResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *MsgUnblacklistResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgUnblacklistResponse.Merge(m, src) -} -func (m *MsgUnblacklistResponse) XXX_Size() int { - return m.Size() -} -func (m *MsgUnblacklistResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgUnblacklistResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgUnblacklistResponse proto.InternalMessageInfo - -type MsgPause struct { - From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` -} - -func (m *MsgPause) Reset() { *m = MsgPause{} } -func (m *MsgPause) String() string { return proto.CompactTextString(m) } -func (*MsgPause) ProtoMessage() {} -func (*MsgPause) Descriptor() ([]byte, []int) { - return fileDescriptor_0d272e143958733b, []int{22} -} -func (m *MsgPause) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgPause) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgPause.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *MsgPause) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgPause.Merge(m, src) -} -func (m *MsgPause) XXX_Size() int { - return m.Size() -} -func (m *MsgPause) XXX_DiscardUnknown() { - xxx_messageInfo_MsgPause.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgPause proto.InternalMessageInfo - -func (m *MsgPause) GetFrom() string { - if m != nil { - return m.From - } - return "" -} - -type MsgPauseResponse struct { -} - -func (m *MsgPauseResponse) Reset() { *m = MsgPauseResponse{} } -func (m *MsgPauseResponse) String() string { return proto.CompactTextString(m) } -func (*MsgPauseResponse) ProtoMessage() {} -func (*MsgPauseResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0d272e143958733b, []int{23} -} -func (m *MsgPauseResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgPauseResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgPauseResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *MsgPauseResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgPauseResponse.Merge(m, src) -} -func (m *MsgPauseResponse) XXX_Size() int { - return m.Size() -} -func (m *MsgPauseResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgPauseResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgPauseResponse proto.InternalMessageInfo - -type MsgUnpause struct { - From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` -} - -func (m *MsgUnpause) Reset() { *m = MsgUnpause{} } -func (m *MsgUnpause) String() string { return proto.CompactTextString(m) } -func (*MsgUnpause) ProtoMessage() {} -func (*MsgUnpause) Descriptor() ([]byte, []int) { - return fileDescriptor_0d272e143958733b, []int{24} -} -func (m *MsgUnpause) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgUnpause) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgUnpause.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *MsgUnpause) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgUnpause.Merge(m, src) -} -func (m *MsgUnpause) XXX_Size() int { - return m.Size() -} -func (m *MsgUnpause) XXX_DiscardUnknown() { - xxx_messageInfo_MsgUnpause.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgUnpause proto.InternalMessageInfo - -func (m *MsgUnpause) GetFrom() string { - if m != nil { - return m.From - } - return "" -} - -type MsgUnpauseResponse struct { -} - -func (m *MsgUnpauseResponse) Reset() { *m = MsgUnpauseResponse{} } -func (m *MsgUnpauseResponse) String() string { return proto.CompactTextString(m) } -func (*MsgUnpauseResponse) ProtoMessage() {} -func (*MsgUnpauseResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0d272e143958733b, []int{25} -} -func (m *MsgUnpauseResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgUnpauseResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgUnpauseResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *MsgUnpauseResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgUnpauseResponse.Merge(m, src) -} -func (m *MsgUnpauseResponse) XXX_Size() int { - return m.Size() -} -func (m *MsgUnpauseResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgUnpauseResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgUnpauseResponse proto.InternalMessageInfo - -type MsgConfigureMinterController struct { - From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` - Controller string `protobuf:"bytes,2,opt,name=controller,proto3" json:"controller,omitempty"` - Minter string `protobuf:"bytes,3,opt,name=minter,proto3" json:"minter,omitempty"` -} - -func (m *MsgConfigureMinterController) Reset() { *m = MsgConfigureMinterController{} } -func (m *MsgConfigureMinterController) String() string { return proto.CompactTextString(m) } -func (*MsgConfigureMinterController) ProtoMessage() {} -func (*MsgConfigureMinterController) Descriptor() ([]byte, []int) { - return fileDescriptor_0d272e143958733b, []int{26} -} -func (m *MsgConfigureMinterController) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgConfigureMinterController) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgConfigureMinterController.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *MsgConfigureMinterController) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgConfigureMinterController.Merge(m, src) -} -func (m *MsgConfigureMinterController) XXX_Size() int { - return m.Size() -} -func (m *MsgConfigureMinterController) XXX_DiscardUnknown() { - xxx_messageInfo_MsgConfigureMinterController.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgConfigureMinterController proto.InternalMessageInfo - -func (m *MsgConfigureMinterController) GetFrom() string { - if m != nil { - return m.From - } - return "" -} - -func (m *MsgConfigureMinterController) GetController() string { - if m != nil { - return m.Controller - } - return "" -} - -func (m *MsgConfigureMinterController) GetMinter() string { - if m != nil { - return m.Minter - } - return "" -} - -type MsgConfigureMinterControllerResponse struct { -} - -func (m *MsgConfigureMinterControllerResponse) Reset() { *m = MsgConfigureMinterControllerResponse{} } -func (m *MsgConfigureMinterControllerResponse) String() string { return proto.CompactTextString(m) } -func (*MsgConfigureMinterControllerResponse) ProtoMessage() {} -func (*MsgConfigureMinterControllerResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0d272e143958733b, []int{27} -} -func (m *MsgConfigureMinterControllerResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgConfigureMinterControllerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgConfigureMinterControllerResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *MsgConfigureMinterControllerResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgConfigureMinterControllerResponse.Merge(m, src) -} -func (m *MsgConfigureMinterControllerResponse) XXX_Size() int { - return m.Size() -} -func (m *MsgConfigureMinterControllerResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgConfigureMinterControllerResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgConfigureMinterControllerResponse proto.InternalMessageInfo - -type MsgRemoveMinterController struct { - From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` - Controller string `protobuf:"bytes,2,opt,name=controller,proto3" json:"controller,omitempty"` -} - -func (m *MsgRemoveMinterController) Reset() { *m = MsgRemoveMinterController{} } -func (m *MsgRemoveMinterController) String() string { return proto.CompactTextString(m) } -func (*MsgRemoveMinterController) ProtoMessage() {} -func (*MsgRemoveMinterController) Descriptor() ([]byte, []int) { - return fileDescriptor_0d272e143958733b, []int{28} -} -func (m *MsgRemoveMinterController) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgRemoveMinterController) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgRemoveMinterController.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *MsgRemoveMinterController) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgRemoveMinterController.Merge(m, src) -} -func (m *MsgRemoveMinterController) XXX_Size() int { - return m.Size() -} -func (m *MsgRemoveMinterController) XXX_DiscardUnknown() { - xxx_messageInfo_MsgRemoveMinterController.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgRemoveMinterController proto.InternalMessageInfo - -func (m *MsgRemoveMinterController) GetFrom() string { - if m != nil { - return m.From - } - return "" -} - -func (m *MsgRemoveMinterController) GetController() string { - if m != nil { - return m.Controller - } - return "" -} - -type MsgRemoveMinterControllerResponse struct { -} - -func (m *MsgRemoveMinterControllerResponse) Reset() { *m = MsgRemoveMinterControllerResponse{} } -func (m *MsgRemoveMinterControllerResponse) String() string { return proto.CompactTextString(m) } -func (*MsgRemoveMinterControllerResponse) ProtoMessage() {} -func (*MsgRemoveMinterControllerResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0d272e143958733b, []int{29} -} -func (m *MsgRemoveMinterControllerResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgRemoveMinterControllerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgRemoveMinterControllerResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *MsgRemoveMinterControllerResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgRemoveMinterControllerResponse.Merge(m, src) -} -func (m *MsgRemoveMinterControllerResponse) XXX_Size() int { - return m.Size() -} -func (m *MsgRemoveMinterControllerResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgRemoveMinterControllerResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgRemoveMinterControllerResponse proto.InternalMessageInfo - -func init() { - proto.RegisterType((*MsgUpdateMasterMinter)(nil), "noble.fiattokenfactory.MsgUpdateMasterMinter") - proto.RegisterType((*MsgUpdateMasterMinterResponse)(nil), "noble.fiattokenfactory.MsgUpdateMasterMinterResponse") - proto.RegisterType((*MsgUpdatePauser)(nil), "noble.fiattokenfactory.MsgUpdatePauser") - proto.RegisterType((*MsgUpdatePauserResponse)(nil), "noble.fiattokenfactory.MsgUpdatePauserResponse") - proto.RegisterType((*MsgUpdateBlacklister)(nil), "noble.fiattokenfactory.MsgUpdateBlacklister") - proto.RegisterType((*MsgUpdateBlacklisterResponse)(nil), "noble.fiattokenfactory.MsgUpdateBlacklisterResponse") - proto.RegisterType((*MsgUpdateOwner)(nil), "noble.fiattokenfactory.MsgUpdateOwner") - proto.RegisterType((*MsgUpdateOwnerResponse)(nil), "noble.fiattokenfactory.MsgUpdateOwnerResponse") - proto.RegisterType((*MsgAcceptOwner)(nil), "noble.fiattokenfactory.MsgAcceptOwner") - proto.RegisterType((*MsgAcceptOwnerResponse)(nil), "noble.fiattokenfactory.MsgAcceptOwnerResponse") - proto.RegisterType((*MsgConfigureMinter)(nil), "noble.fiattokenfactory.MsgConfigureMinter") - proto.RegisterType((*MsgConfigureMinterResponse)(nil), "noble.fiattokenfactory.MsgConfigureMinterResponse") - proto.RegisterType((*MsgRemoveMinter)(nil), "noble.fiattokenfactory.MsgRemoveMinter") - proto.RegisterType((*MsgRemoveMinterResponse)(nil), "noble.fiattokenfactory.MsgRemoveMinterResponse") - proto.RegisterType((*MsgMint)(nil), "noble.fiattokenfactory.MsgMint") - proto.RegisterType((*MsgMintResponse)(nil), "noble.fiattokenfactory.MsgMintResponse") - proto.RegisterType((*MsgBurn)(nil), "noble.fiattokenfactory.MsgBurn") - proto.RegisterType((*MsgBurnResponse)(nil), "noble.fiattokenfactory.MsgBurnResponse") - proto.RegisterType((*MsgBlacklist)(nil), "noble.fiattokenfactory.MsgBlacklist") - proto.RegisterType((*MsgBlacklistResponse)(nil), "noble.fiattokenfactory.MsgBlacklistResponse") - proto.RegisterType((*MsgUnblacklist)(nil), "noble.fiattokenfactory.MsgUnblacklist") - proto.RegisterType((*MsgUnblacklistResponse)(nil), "noble.fiattokenfactory.MsgUnblacklistResponse") - proto.RegisterType((*MsgPause)(nil), "noble.fiattokenfactory.MsgPause") - proto.RegisterType((*MsgPauseResponse)(nil), "noble.fiattokenfactory.MsgPauseResponse") - proto.RegisterType((*MsgUnpause)(nil), "noble.fiattokenfactory.MsgUnpause") - proto.RegisterType((*MsgUnpauseResponse)(nil), "noble.fiattokenfactory.MsgUnpauseResponse") - proto.RegisterType((*MsgConfigureMinterController)(nil), "noble.fiattokenfactory.MsgConfigureMinterController") - proto.RegisterType((*MsgConfigureMinterControllerResponse)(nil), "noble.fiattokenfactory.MsgConfigureMinterControllerResponse") - proto.RegisterType((*MsgRemoveMinterController)(nil), "noble.fiattokenfactory.MsgRemoveMinterController") - proto.RegisterType((*MsgRemoveMinterControllerResponse)(nil), "noble.fiattokenfactory.MsgRemoveMinterControllerResponse") -} - -func init() { proto.RegisterFile("fiattokenfactory/tx.proto", fileDescriptor_0d272e143958733b) } - -var fileDescriptor_0d272e143958733b = []byte{ - // 804 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x57, 0xdf, 0x4f, 0xd3, 0x40, - 0x1c, 0x5f, 0x01, 0xc1, 0x7d, 0x21, 0x22, 0x0d, 0xce, 0xad, 0xc1, 0x32, 0x2b, 0x01, 0x42, 0xa0, - 0x0d, 0x88, 0x31, 0x26, 0x88, 0x71, 0xe8, 0xe3, 0x02, 0x99, 0xd1, 0xa8, 0x2f, 0xa6, 0x2b, 0xb7, - 0x32, 0xe9, 0xee, 0x66, 0xef, 0x36, 0xc0, 0x37, 0x5f, 0x7c, 0xd5, 0xbf, 0xca, 0xf0, 0xc8, 0xa3, - 0x4f, 0xc6, 0xc0, 0x3f, 0x62, 0x7a, 0x6b, 0x6f, 0x5d, 0xd7, 0x75, 0xeb, 0x7c, 0xeb, 0xae, 0x9f, - 0x1f, 0xdf, 0xdb, 0x7d, 0xee, 0xfb, 0x4d, 0xa1, 0x50, 0xab, 0x9b, 0x8c, 0x91, 0x53, 0x84, 0x6b, - 0xa6, 0xc5, 0x88, 0x7b, 0x61, 0xb0, 0x73, 0xbd, 0xe9, 0x12, 0x46, 0xe4, 0x1c, 0x26, 0x55, 0x07, - 0xe9, 0x51, 0x80, 0xa2, 0x5a, 0x84, 0x36, 0x08, 0x35, 0xaa, 0x26, 0x45, 0x46, 0x7b, 0xbb, 0x8a, - 0x98, 0xb9, 0x6d, 0x58, 0xa4, 0x8e, 0x3b, 0x3c, 0x65, 0xd1, 0x26, 0x36, 0xe1, 0x8f, 0x86, 0xf7, - 0xd4, 0x59, 0xd5, 0x5e, 0xc3, 0xbd, 0x32, 0xb5, 0xdf, 0x36, 0x8f, 0x4d, 0x86, 0xca, 0x26, 0x65, - 0xc8, 0x2d, 0xd7, 0x31, 0x43, 0xae, 0x2c, 0xc3, 0x54, 0xcd, 0x25, 0x8d, 0xbc, 0x54, 0x94, 0xd6, - 0xb3, 0x15, 0xfe, 0x2c, 0xe7, 0x61, 0xc6, 0x3c, 0x3e, 0x76, 0x11, 0xa5, 0xf9, 0x09, 0xbe, 0x1c, - 0xfc, 0xd4, 0x96, 0xe1, 0x41, 0xac, 0x4c, 0x05, 0xd1, 0x26, 0xc1, 0x14, 0x69, 0x2f, 0x60, 0x5e, - 0x00, 0x8e, 0xcc, 0x16, 0x4d, 0xed, 0x50, 0x80, 0xfb, 0x11, 0x01, 0xa1, 0xfd, 0x0a, 0x16, 0xc5, - 0xab, 0x92, 0x63, 0x5a, 0xa7, 0x4e, 0x9d, 0xa6, 0xdf, 0x82, 0x0a, 0x4b, 0x71, 0x2a, 0xc2, 0x65, - 0x1f, 0xee, 0x88, 0xf7, 0x87, 0x67, 0x38, 0xb5, 0x7e, 0x1e, 0x72, 0xbd, 0x7c, 0xa1, 0xbc, 0xc2, - 0x95, 0x5f, 0x5a, 0x16, 0x6a, 0xb2, 0x81, 0xca, 0x3e, 0x3f, 0x84, 0x12, 0xfc, 0x6f, 0x12, 0xc8, - 0x65, 0x6a, 0x1f, 0x10, 0x5c, 0xab, 0xdb, 0x2d, 0x17, 0x8d, 0x73, 0x82, 0xf2, 0x73, 0xc8, 0x9a, - 0x8e, 0x43, 0xce, 0x4c, 0x6c, 0xa1, 0xfc, 0x64, 0x51, 0x5a, 0x9f, 0xdd, 0x29, 0xe8, 0x9d, 0x48, - 0xe9, 0x5e, 0xa4, 0x74, 0x3f, 0x52, 0xfa, 0x01, 0xa9, 0xe3, 0xd2, 0xd4, 0xe5, 0x9f, 0xe5, 0x4c, - 0xa5, 0xcb, 0xd0, 0x96, 0x40, 0xe9, 0x2f, 0x21, 0x72, 0xfa, 0x15, 0xd4, 0x20, 0xed, 0xb1, 0xaa, - 0xf3, 0x4f, 0x3f, 0x2c, 0x20, 0xb4, 0x9b, 0x30, 0x53, 0xa6, 0xb6, 0xb7, 0x98, 0x72, 0xc7, 0x4f, - 0x61, 0xda, 0x6c, 0x90, 0x16, 0x66, 0xa3, 0x6e, 0xd7, 0x87, 0x6b, 0x0b, 0x7c, 0x37, 0x9e, 0xa3, - 0x28, 0xe2, 0x1d, 0x2f, 0xa2, 0xd4, 0x72, 0x71, 0x6c, 0x11, 0x5d, 0xab, 0x89, 0x71, 0xac, 0x3c, - 0x5d, 0x61, 0xb5, 0x07, 0x73, 0xde, 0x52, 0x90, 0xd0, 0x94, 0x7f, 0x64, 0x8e, 0xdf, 0x15, 0xc1, - 0x8e, 0xa6, 0x1b, 0x57, 0xc7, 0xd4, 0xf5, 0xd3, 0xdd, 0xe5, 0x0b, 0x65, 0x15, 0x6e, 0x97, 0xa9, - 0xcd, 0xaf, 0x6c, 0x6c, 0xae, 0x65, 0xb8, 0x1b, 0xbc, 0x17, 0x9c, 0x22, 0x00, 0x57, 0x6b, 0x0e, - 0x64, 0x2d, 0xf2, 0xc8, 0xfb, 0x08, 0xc1, 0xfb, 0xcc, 0xef, 0x70, 0x24, 0x85, 0x07, 0x04, 0x33, - 0x97, 0x38, 0xce, 0x80, 0xd0, 0xa9, 0x00, 0x96, 0x40, 0xf8, 0xdb, 0x0a, 0xad, 0xc8, 0x39, 0x98, - 0x6e, 0x70, 0x1d, 0x1e, 0x93, 0x6c, 0xc5, 0xff, 0xa5, 0xad, 0xc2, 0x4a, 0x92, 0x97, 0xa8, 0xe9, - 0x10, 0x0a, 0x91, 0xe8, 0xfe, 0x5f, 0x41, 0xda, 0x23, 0x78, 0x38, 0x50, 0x30, 0x70, 0xdd, 0xf9, - 0x35, 0x07, 0x93, 0x65, 0x6a, 0xcb, 0x5f, 0x41, 0x8e, 0x69, 0xee, 0x5b, 0x7a, 0xfc, 0x10, 0xd1, - 0x63, 0x9b, 0xb8, 0xf2, 0x24, 0x15, 0x3c, 0xa8, 0x41, 0x3e, 0x81, 0xb9, 0x9e, 0x86, 0xbf, 0x36, - 0x54, 0xa6, 0x03, 0x54, 0x8c, 0x11, 0x81, 0xc2, 0xe9, 0x0c, 0x16, 0xfa, 0xdb, 0xff, 0xe6, 0x50, - 0x95, 0x10, 0x5a, 0xd9, 0x4d, 0x83, 0x16, 0xc6, 0x08, 0x66, 0xc3, 0x13, 0x61, 0x75, 0xa8, 0x08, - 0xc7, 0x29, 0xfa, 0x68, 0xb8, 0xb0, 0x4d, 0x78, 0x3c, 0x24, 0xd9, 0x84, 0x70, 0x89, 0x36, 0x31, - 0x83, 0x44, 0xfe, 0x02, 0xf3, 0xd1, 0x21, 0xb2, 0x91, 0x20, 0x11, 0xc1, 0x2a, 0x3b, 0xa3, 0x63, - 0xc3, 0x19, 0xe9, 0x19, 0x0b, 0x49, 0x19, 0x09, 0x03, 0x13, 0x33, 0x12, 0x37, 0x27, 0xe4, 0x23, - 0x98, 0xe2, 0x43, 0x62, 0x39, 0x81, 0xe8, 0x01, 0x94, 0xb5, 0x21, 0x80, 0xb0, 0x22, 0xef, 0xf8, - 0x49, 0x8a, 0x1e, 0x20, 0x51, 0x31, 0xdc, 0xdb, 0xe5, 0x4f, 0x90, 0xed, 0x36, 0xf6, 0x95, 0x24, - 0x56, 0x80, 0x52, 0x36, 0x47, 0x41, 0xf5, 0xe4, 0x35, 0xd4, 0xe3, 0x13, 0xf3, 0xda, 0xc5, 0x25, - 0xe7, 0xb5, 0xbf, 0xe7, 0xcb, 0x6f, 0xe0, 0x56, 0xa7, 0xe1, 0x17, 0x13, 0x88, 0x1c, 0xa1, 0xac, - 0x0f, 0x43, 0x08, 0xd1, 0x0f, 0x30, 0x13, 0x4c, 0x04, 0x2d, 0xb1, 0x1e, 0x8e, 0x51, 0x36, 0x86, - 0x63, 0x84, 0xf4, 0x0f, 0x09, 0x0a, 0x83, 0xa7, 0xc6, 0xee, 0xe8, 0xb9, 0xee, 0xb2, 0x94, 0xbd, - 0x71, 0x58, 0xa2, 0xa2, 0xef, 0x12, 0xe4, 0x06, 0xcc, 0x8c, 0xed, 0x11, 0x93, 0x1f, 0xaa, 0xe5, - 0x59, 0x6a, 0x4a, 0x50, 0x48, 0xe9, 0xfd, 0xe5, 0xb5, 0x2a, 0x5d, 0x5d, 0xab, 0xd2, 0xdf, 0x6b, - 0x55, 0xfa, 0x79, 0xa3, 0x66, 0xae, 0x6e, 0xd4, 0xcc, 0xef, 0x1b, 0x35, 0xf3, 0x71, 0xdf, 0xae, - 0xb3, 0x93, 0x56, 0x55, 0xb7, 0x48, 0xc3, 0xa0, 0xcc, 0x35, 0xb1, 0x8d, 0x1c, 0xd2, 0x46, 0x5b, - 0x6d, 0x84, 0x59, 0xcb, 0x45, 0xd4, 0xe0, 0x9e, 0xc6, 0xb9, 0xd1, 0xff, 0x2d, 0x73, 0xd1, 0x44, - 0xb4, 0x3a, 0xcd, 0xbf, 0x40, 0x1e, 0xff, 0x0b, 0x00, 0x00, 0xff, 0xff, 0xb9, 0x3a, 0x01, 0xec, - 0xec, 0x0c, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// MsgClient is the client API for Msg service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type MsgClient interface { - UpdateMasterMinter(ctx context.Context, in *MsgUpdateMasterMinter, opts ...grpc.CallOption) (*MsgUpdateMasterMinterResponse, error) - UpdatePauser(ctx context.Context, in *MsgUpdatePauser, opts ...grpc.CallOption) (*MsgUpdatePauserResponse, error) - UpdateBlacklister(ctx context.Context, in *MsgUpdateBlacklister, opts ...grpc.CallOption) (*MsgUpdateBlacklisterResponse, error) - UpdateOwner(ctx context.Context, in *MsgUpdateOwner, opts ...grpc.CallOption) (*MsgUpdateOwnerResponse, error) - AcceptOwner(ctx context.Context, in *MsgAcceptOwner, opts ...grpc.CallOption) (*MsgAcceptOwnerResponse, error) - ConfigureMinter(ctx context.Context, in *MsgConfigureMinter, opts ...grpc.CallOption) (*MsgConfigureMinterResponse, error) - RemoveMinter(ctx context.Context, in *MsgRemoveMinter, opts ...grpc.CallOption) (*MsgRemoveMinterResponse, error) - Mint(ctx context.Context, in *MsgMint, opts ...grpc.CallOption) (*MsgMintResponse, error) - Burn(ctx context.Context, in *MsgBurn, opts ...grpc.CallOption) (*MsgBurnResponse, error) - Blacklist(ctx context.Context, in *MsgBlacklist, opts ...grpc.CallOption) (*MsgBlacklistResponse, error) - Unblacklist(ctx context.Context, in *MsgUnblacklist, opts ...grpc.CallOption) (*MsgUnblacklistResponse, error) - Pause(ctx context.Context, in *MsgPause, opts ...grpc.CallOption) (*MsgPauseResponse, error) - Unpause(ctx context.Context, in *MsgUnpause, opts ...grpc.CallOption) (*MsgUnpauseResponse, error) - ConfigureMinterController(ctx context.Context, in *MsgConfigureMinterController, opts ...grpc.CallOption) (*MsgConfigureMinterControllerResponse, error) - RemoveMinterController(ctx context.Context, in *MsgRemoveMinterController, opts ...grpc.CallOption) (*MsgRemoveMinterControllerResponse, error) -} - -type msgClient struct { - cc grpc1.ClientConn -} - -func NewMsgClient(cc grpc1.ClientConn) MsgClient { - return &msgClient{cc} -} - -func (c *msgClient) UpdateMasterMinter(ctx context.Context, in *MsgUpdateMasterMinter, opts ...grpc.CallOption) (*MsgUpdateMasterMinterResponse, error) { - out := new(MsgUpdateMasterMinterResponse) - err := c.cc.Invoke(ctx, "/noble.fiattokenfactory.Msg/UpdateMasterMinter", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) UpdatePauser(ctx context.Context, in *MsgUpdatePauser, opts ...grpc.CallOption) (*MsgUpdatePauserResponse, error) { - out := new(MsgUpdatePauserResponse) - err := c.cc.Invoke(ctx, "/noble.fiattokenfactory.Msg/UpdatePauser", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) UpdateBlacklister(ctx context.Context, in *MsgUpdateBlacklister, opts ...grpc.CallOption) (*MsgUpdateBlacklisterResponse, error) { - out := new(MsgUpdateBlacklisterResponse) - err := c.cc.Invoke(ctx, "/noble.fiattokenfactory.Msg/UpdateBlacklister", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) UpdateOwner(ctx context.Context, in *MsgUpdateOwner, opts ...grpc.CallOption) (*MsgUpdateOwnerResponse, error) { - out := new(MsgUpdateOwnerResponse) - err := c.cc.Invoke(ctx, "/noble.fiattokenfactory.Msg/UpdateOwner", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) AcceptOwner(ctx context.Context, in *MsgAcceptOwner, opts ...grpc.CallOption) (*MsgAcceptOwnerResponse, error) { - out := new(MsgAcceptOwnerResponse) - err := c.cc.Invoke(ctx, "/noble.fiattokenfactory.Msg/AcceptOwner", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) ConfigureMinter(ctx context.Context, in *MsgConfigureMinter, opts ...grpc.CallOption) (*MsgConfigureMinterResponse, error) { - out := new(MsgConfigureMinterResponse) - err := c.cc.Invoke(ctx, "/noble.fiattokenfactory.Msg/ConfigureMinter", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) RemoveMinter(ctx context.Context, in *MsgRemoveMinter, opts ...grpc.CallOption) (*MsgRemoveMinterResponse, error) { - out := new(MsgRemoveMinterResponse) - err := c.cc.Invoke(ctx, "/noble.fiattokenfactory.Msg/RemoveMinter", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) Mint(ctx context.Context, in *MsgMint, opts ...grpc.CallOption) (*MsgMintResponse, error) { - out := new(MsgMintResponse) - err := c.cc.Invoke(ctx, "/noble.fiattokenfactory.Msg/Mint", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) Burn(ctx context.Context, in *MsgBurn, opts ...grpc.CallOption) (*MsgBurnResponse, error) { - out := new(MsgBurnResponse) - err := c.cc.Invoke(ctx, "/noble.fiattokenfactory.Msg/Burn", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) Blacklist(ctx context.Context, in *MsgBlacklist, opts ...grpc.CallOption) (*MsgBlacklistResponse, error) { - out := new(MsgBlacklistResponse) - err := c.cc.Invoke(ctx, "/noble.fiattokenfactory.Msg/Blacklist", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) Unblacklist(ctx context.Context, in *MsgUnblacklist, opts ...grpc.CallOption) (*MsgUnblacklistResponse, error) { - out := new(MsgUnblacklistResponse) - err := c.cc.Invoke(ctx, "/noble.fiattokenfactory.Msg/Unblacklist", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) Pause(ctx context.Context, in *MsgPause, opts ...grpc.CallOption) (*MsgPauseResponse, error) { - out := new(MsgPauseResponse) - err := c.cc.Invoke(ctx, "/noble.fiattokenfactory.Msg/Pause", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) Unpause(ctx context.Context, in *MsgUnpause, opts ...grpc.CallOption) (*MsgUnpauseResponse, error) { - out := new(MsgUnpauseResponse) - err := c.cc.Invoke(ctx, "/noble.fiattokenfactory.Msg/Unpause", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) ConfigureMinterController(ctx context.Context, in *MsgConfigureMinterController, opts ...grpc.CallOption) (*MsgConfigureMinterControllerResponse, error) { - out := new(MsgConfigureMinterControllerResponse) - err := c.cc.Invoke(ctx, "/noble.fiattokenfactory.Msg/ConfigureMinterController", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) RemoveMinterController(ctx context.Context, in *MsgRemoveMinterController, opts ...grpc.CallOption) (*MsgRemoveMinterControllerResponse, error) { - out := new(MsgRemoveMinterControllerResponse) - err := c.cc.Invoke(ctx, "/noble.fiattokenfactory.Msg/RemoveMinterController", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// MsgServer is the server API for Msg service. -type MsgServer interface { - UpdateMasterMinter(context.Context, *MsgUpdateMasterMinter) (*MsgUpdateMasterMinterResponse, error) - UpdatePauser(context.Context, *MsgUpdatePauser) (*MsgUpdatePauserResponse, error) - UpdateBlacklister(context.Context, *MsgUpdateBlacklister) (*MsgUpdateBlacklisterResponse, error) - UpdateOwner(context.Context, *MsgUpdateOwner) (*MsgUpdateOwnerResponse, error) - AcceptOwner(context.Context, *MsgAcceptOwner) (*MsgAcceptOwnerResponse, error) - ConfigureMinter(context.Context, *MsgConfigureMinter) (*MsgConfigureMinterResponse, error) - RemoveMinter(context.Context, *MsgRemoveMinter) (*MsgRemoveMinterResponse, error) - Mint(context.Context, *MsgMint) (*MsgMintResponse, error) - Burn(context.Context, *MsgBurn) (*MsgBurnResponse, error) - Blacklist(context.Context, *MsgBlacklist) (*MsgBlacklistResponse, error) - Unblacklist(context.Context, *MsgUnblacklist) (*MsgUnblacklistResponse, error) - Pause(context.Context, *MsgPause) (*MsgPauseResponse, error) - Unpause(context.Context, *MsgUnpause) (*MsgUnpauseResponse, error) - ConfigureMinterController(context.Context, *MsgConfigureMinterController) (*MsgConfigureMinterControllerResponse, error) - RemoveMinterController(context.Context, *MsgRemoveMinterController) (*MsgRemoveMinterControllerResponse, error) -} - -// UnimplementedMsgServer can be embedded to have forward compatible implementations. -type UnimplementedMsgServer struct { -} - -func (*UnimplementedMsgServer) UpdateMasterMinter(ctx context.Context, req *MsgUpdateMasterMinter) (*MsgUpdateMasterMinterResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateMasterMinter not implemented") -} -func (*UnimplementedMsgServer) UpdatePauser(ctx context.Context, req *MsgUpdatePauser) (*MsgUpdatePauserResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdatePauser not implemented") -} -func (*UnimplementedMsgServer) UpdateBlacklister(ctx context.Context, req *MsgUpdateBlacklister) (*MsgUpdateBlacklisterResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateBlacklister not implemented") -} -func (*UnimplementedMsgServer) UpdateOwner(ctx context.Context, req *MsgUpdateOwner) (*MsgUpdateOwnerResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateOwner not implemented") -} -func (*UnimplementedMsgServer) AcceptOwner(ctx context.Context, req *MsgAcceptOwner) (*MsgAcceptOwnerResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AcceptOwner not implemented") -} -func (*UnimplementedMsgServer) ConfigureMinter(ctx context.Context, req *MsgConfigureMinter) (*MsgConfigureMinterResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ConfigureMinter not implemented") -} -func (*UnimplementedMsgServer) RemoveMinter(ctx context.Context, req *MsgRemoveMinter) (*MsgRemoveMinterResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RemoveMinter not implemented") -} -func (*UnimplementedMsgServer) Mint(ctx context.Context, req *MsgMint) (*MsgMintResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Mint not implemented") -} -func (*UnimplementedMsgServer) Burn(ctx context.Context, req *MsgBurn) (*MsgBurnResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Burn not implemented") -} -func (*UnimplementedMsgServer) Blacklist(ctx context.Context, req *MsgBlacklist) (*MsgBlacklistResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Blacklist not implemented") -} -func (*UnimplementedMsgServer) Unblacklist(ctx context.Context, req *MsgUnblacklist) (*MsgUnblacklistResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Unblacklist not implemented") -} -func (*UnimplementedMsgServer) Pause(ctx context.Context, req *MsgPause) (*MsgPauseResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Pause not implemented") -} -func (*UnimplementedMsgServer) Unpause(ctx context.Context, req *MsgUnpause) (*MsgUnpauseResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Unpause not implemented") -} -func (*UnimplementedMsgServer) ConfigureMinterController(ctx context.Context, req *MsgConfigureMinterController) (*MsgConfigureMinterControllerResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ConfigureMinterController not implemented") -} -func (*UnimplementedMsgServer) RemoveMinterController(ctx context.Context, req *MsgRemoveMinterController) (*MsgRemoveMinterControllerResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RemoveMinterController not implemented") -} - -func RegisterMsgServer(s grpc1.Server, srv MsgServer) { - s.RegisterService(&_Msg_serviceDesc, srv) -} - -func _Msg_UpdateMasterMinter_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgUpdateMasterMinter) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).UpdateMasterMinter(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/noble.fiattokenfactory.Msg/UpdateMasterMinter", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).UpdateMasterMinter(ctx, req.(*MsgUpdateMasterMinter)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_UpdatePauser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgUpdatePauser) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).UpdatePauser(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/noble.fiattokenfactory.Msg/UpdatePauser", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).UpdatePauser(ctx, req.(*MsgUpdatePauser)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_UpdateBlacklister_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgUpdateBlacklister) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).UpdateBlacklister(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/noble.fiattokenfactory.Msg/UpdateBlacklister", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).UpdateBlacklister(ctx, req.(*MsgUpdateBlacklister)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_UpdateOwner_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgUpdateOwner) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).UpdateOwner(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/noble.fiattokenfactory.Msg/UpdateOwner", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).UpdateOwner(ctx, req.(*MsgUpdateOwner)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_AcceptOwner_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgAcceptOwner) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).AcceptOwner(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/noble.fiattokenfactory.Msg/AcceptOwner", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).AcceptOwner(ctx, req.(*MsgAcceptOwner)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_ConfigureMinter_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgConfigureMinter) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).ConfigureMinter(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/noble.fiattokenfactory.Msg/ConfigureMinter", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).ConfigureMinter(ctx, req.(*MsgConfigureMinter)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_RemoveMinter_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgRemoveMinter) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).RemoveMinter(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/noble.fiattokenfactory.Msg/RemoveMinter", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).RemoveMinter(ctx, req.(*MsgRemoveMinter)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_Mint_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgMint) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).Mint(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/noble.fiattokenfactory.Msg/Mint", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).Mint(ctx, req.(*MsgMint)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_Burn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgBurn) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).Burn(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/noble.fiattokenfactory.Msg/Burn", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).Burn(ctx, req.(*MsgBurn)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_Blacklist_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgBlacklist) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).Blacklist(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/noble.fiattokenfactory.Msg/Blacklist", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).Blacklist(ctx, req.(*MsgBlacklist)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_Unblacklist_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgUnblacklist) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).Unblacklist(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/noble.fiattokenfactory.Msg/Unblacklist", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).Unblacklist(ctx, req.(*MsgUnblacklist)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_Pause_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgPause) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).Pause(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/noble.fiattokenfactory.Msg/Pause", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).Pause(ctx, req.(*MsgPause)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_Unpause_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgUnpause) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).Unpause(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/noble.fiattokenfactory.Msg/Unpause", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).Unpause(ctx, req.(*MsgUnpause)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_ConfigureMinterController_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgConfigureMinterController) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).ConfigureMinterController(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/noble.fiattokenfactory.Msg/ConfigureMinterController", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).ConfigureMinterController(ctx, req.(*MsgConfigureMinterController)) - } - return interceptor(ctx, in, info, handler) -} - -func _Msg_RemoveMinterController_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgRemoveMinterController) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).RemoveMinterController(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/noble.fiattokenfactory.Msg/RemoveMinterController", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).RemoveMinterController(ctx, req.(*MsgRemoveMinterController)) - } - return interceptor(ctx, in, info, handler) -} - -var _Msg_serviceDesc = grpc.ServiceDesc{ - ServiceName: "noble.fiattokenfactory.Msg", - HandlerType: (*MsgServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "UpdateMasterMinter", - Handler: _Msg_UpdateMasterMinter_Handler, - }, - { - MethodName: "UpdatePauser", - Handler: _Msg_UpdatePauser_Handler, - }, - { - MethodName: "UpdateBlacklister", - Handler: _Msg_UpdateBlacklister_Handler, - }, - { - MethodName: "UpdateOwner", - Handler: _Msg_UpdateOwner_Handler, - }, - { - MethodName: "AcceptOwner", - Handler: _Msg_AcceptOwner_Handler, - }, - { - MethodName: "ConfigureMinter", - Handler: _Msg_ConfigureMinter_Handler, - }, - { - MethodName: "RemoveMinter", - Handler: _Msg_RemoveMinter_Handler, - }, - { - MethodName: "Mint", - Handler: _Msg_Mint_Handler, - }, - { - MethodName: "Burn", - Handler: _Msg_Burn_Handler, - }, - { - MethodName: "Blacklist", - Handler: _Msg_Blacklist_Handler, - }, - { - MethodName: "Unblacklist", - Handler: _Msg_Unblacklist_Handler, - }, - { - MethodName: "Pause", - Handler: _Msg_Pause_Handler, - }, - { - MethodName: "Unpause", - Handler: _Msg_Unpause_Handler, - }, - { - MethodName: "ConfigureMinterController", - Handler: _Msg_ConfigureMinterController_Handler, - }, - { - MethodName: "RemoveMinterController", - Handler: _Msg_RemoveMinterController_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "fiattokenfactory/tx.proto", -} - -func (m *MsgUpdateMasterMinter) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MsgUpdateMasterMinter) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgUpdateMasterMinter) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Address) > 0 { - i -= len(m.Address) - copy(dAtA[i:], m.Address) - i = encodeVarintTx(dAtA, i, uint64(len(m.Address))) - i-- - dAtA[i] = 0x12 - } - if len(m.From) > 0 { - i -= len(m.From) - copy(dAtA[i:], m.From) - i = encodeVarintTx(dAtA, i, uint64(len(m.From))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *MsgUpdateMasterMinterResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MsgUpdateMasterMinterResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgUpdateMasterMinterResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *MsgUpdatePauser) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MsgUpdatePauser) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgUpdatePauser) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Address) > 0 { - i -= len(m.Address) - copy(dAtA[i:], m.Address) - i = encodeVarintTx(dAtA, i, uint64(len(m.Address))) - i-- - dAtA[i] = 0x12 - } - if len(m.From) > 0 { - i -= len(m.From) - copy(dAtA[i:], m.From) - i = encodeVarintTx(dAtA, i, uint64(len(m.From))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *MsgUpdatePauserResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MsgUpdatePauserResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgUpdatePauserResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *MsgUpdateBlacklister) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MsgUpdateBlacklister) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgUpdateBlacklister) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Address) > 0 { - i -= len(m.Address) - copy(dAtA[i:], m.Address) - i = encodeVarintTx(dAtA, i, uint64(len(m.Address))) - i-- - dAtA[i] = 0x12 - } - if len(m.From) > 0 { - i -= len(m.From) - copy(dAtA[i:], m.From) - i = encodeVarintTx(dAtA, i, uint64(len(m.From))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *MsgUpdateBlacklisterResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MsgUpdateBlacklisterResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgUpdateBlacklisterResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *MsgUpdateOwner) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MsgUpdateOwner) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgUpdateOwner) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Address) > 0 { - i -= len(m.Address) - copy(dAtA[i:], m.Address) - i = encodeVarintTx(dAtA, i, uint64(len(m.Address))) - i-- - dAtA[i] = 0x12 - } - if len(m.From) > 0 { - i -= len(m.From) - copy(dAtA[i:], m.From) - i = encodeVarintTx(dAtA, i, uint64(len(m.From))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *MsgUpdateOwnerResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MsgUpdateOwnerResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgUpdateOwnerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *MsgAcceptOwner) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MsgAcceptOwner) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgAcceptOwner) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.From) > 0 { - i -= len(m.From) - copy(dAtA[i:], m.From) - i = encodeVarintTx(dAtA, i, uint64(len(m.From))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *MsgAcceptOwnerResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MsgAcceptOwnerResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgAcceptOwnerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *MsgConfigureMinter) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MsgConfigureMinter) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgConfigureMinter) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Allowance.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - if len(m.Address) > 0 { - i -= len(m.Address) - copy(dAtA[i:], m.Address) - i = encodeVarintTx(dAtA, i, uint64(len(m.Address))) - i-- - dAtA[i] = 0x12 - } - if len(m.From) > 0 { - i -= len(m.From) - copy(dAtA[i:], m.From) - i = encodeVarintTx(dAtA, i, uint64(len(m.From))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *MsgConfigureMinterResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MsgConfigureMinterResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgConfigureMinterResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *MsgRemoveMinter) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MsgRemoveMinter) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgRemoveMinter) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Address) > 0 { - i -= len(m.Address) - copy(dAtA[i:], m.Address) - i = encodeVarintTx(dAtA, i, uint64(len(m.Address))) - i-- - dAtA[i] = 0x12 - } - if len(m.From) > 0 { - i -= len(m.From) - copy(dAtA[i:], m.From) - i = encodeVarintTx(dAtA, i, uint64(len(m.From))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *MsgRemoveMinterResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MsgRemoveMinterResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgRemoveMinterResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *MsgMint) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MsgMint) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgMint) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Amount.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - if len(m.Address) > 0 { - i -= len(m.Address) - copy(dAtA[i:], m.Address) - i = encodeVarintTx(dAtA, i, uint64(len(m.Address))) - i-- - dAtA[i] = 0x12 - } - if len(m.From) > 0 { - i -= len(m.From) - copy(dAtA[i:], m.From) - i = encodeVarintTx(dAtA, i, uint64(len(m.From))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *MsgMintResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MsgMintResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgMintResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *MsgBurn) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MsgBurn) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgBurn) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Amount.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - if len(m.From) > 0 { - i -= len(m.From) - copy(dAtA[i:], m.From) - i = encodeVarintTx(dAtA, i, uint64(len(m.From))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *MsgBurnResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MsgBurnResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgBurnResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *MsgBlacklist) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MsgBlacklist) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgBlacklist) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Address) > 0 { - i -= len(m.Address) - copy(dAtA[i:], m.Address) - i = encodeVarintTx(dAtA, i, uint64(len(m.Address))) - i-- - dAtA[i] = 0x12 - } - if len(m.From) > 0 { - i -= len(m.From) - copy(dAtA[i:], m.From) - i = encodeVarintTx(dAtA, i, uint64(len(m.From))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *MsgBlacklistResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MsgBlacklistResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgBlacklistResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *MsgUnblacklist) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MsgUnblacklist) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgUnblacklist) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Address) > 0 { - i -= len(m.Address) - copy(dAtA[i:], m.Address) - i = encodeVarintTx(dAtA, i, uint64(len(m.Address))) - i-- - dAtA[i] = 0x12 - } - if len(m.From) > 0 { - i -= len(m.From) - copy(dAtA[i:], m.From) - i = encodeVarintTx(dAtA, i, uint64(len(m.From))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *MsgUnblacklistResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MsgUnblacklistResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgUnblacklistResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *MsgPause) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MsgPause) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgPause) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.From) > 0 { - i -= len(m.From) - copy(dAtA[i:], m.From) - i = encodeVarintTx(dAtA, i, uint64(len(m.From))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *MsgPauseResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MsgPauseResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgPauseResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *MsgUnpause) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MsgUnpause) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgUnpause) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.From) > 0 { - i -= len(m.From) - copy(dAtA[i:], m.From) - i = encodeVarintTx(dAtA, i, uint64(len(m.From))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *MsgUnpauseResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MsgUnpauseResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgUnpauseResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *MsgConfigureMinterController) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MsgConfigureMinterController) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgConfigureMinterController) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Minter) > 0 { - i -= len(m.Minter) - copy(dAtA[i:], m.Minter) - i = encodeVarintTx(dAtA, i, uint64(len(m.Minter))) - i-- - dAtA[i] = 0x1a - } - if len(m.Controller) > 0 { - i -= len(m.Controller) - copy(dAtA[i:], m.Controller) - i = encodeVarintTx(dAtA, i, uint64(len(m.Controller))) - i-- - dAtA[i] = 0x12 - } - if len(m.From) > 0 { - i -= len(m.From) - copy(dAtA[i:], m.From) - i = encodeVarintTx(dAtA, i, uint64(len(m.From))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *MsgConfigureMinterControllerResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MsgConfigureMinterControllerResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgConfigureMinterControllerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *MsgRemoveMinterController) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MsgRemoveMinterController) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgRemoveMinterController) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Controller) > 0 { - i -= len(m.Controller) - copy(dAtA[i:], m.Controller) - i = encodeVarintTx(dAtA, i, uint64(len(m.Controller))) - i-- - dAtA[i] = 0x12 - } - if len(m.From) > 0 { - i -= len(m.From) - copy(dAtA[i:], m.From) - i = encodeVarintTx(dAtA, i, uint64(len(m.From))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *MsgRemoveMinterControllerResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MsgRemoveMinterControllerResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgRemoveMinterControllerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func encodeVarintTx(dAtA []byte, offset int, v uint64) int { - offset -= sovTx(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *MsgUpdateMasterMinter) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.From) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.Address) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - return n -} - -func (m *MsgUpdateMasterMinterResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *MsgUpdatePauser) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.From) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.Address) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - return n -} - -func (m *MsgUpdatePauserResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *MsgUpdateBlacklister) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.From) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.Address) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - return n -} - -func (m *MsgUpdateBlacklisterResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *MsgUpdateOwner) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.From) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.Address) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - return n -} - -func (m *MsgUpdateOwnerResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *MsgAcceptOwner) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.From) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - return n -} - -func (m *MsgAcceptOwnerResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *MsgConfigureMinter) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.From) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.Address) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = m.Allowance.Size() - n += 1 + l + sovTx(uint64(l)) - return n -} - -func (m *MsgConfigureMinterResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *MsgRemoveMinter) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.From) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.Address) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - return n -} - -func (m *MsgRemoveMinterResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *MsgMint) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.From) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.Address) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = m.Amount.Size() - n += 1 + l + sovTx(uint64(l)) - return n -} - -func (m *MsgMintResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *MsgBurn) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.From) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = m.Amount.Size() - n += 1 + l + sovTx(uint64(l)) - return n -} - -func (m *MsgBurnResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *MsgBlacklist) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.From) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.Address) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - return n -} - -func (m *MsgBlacklistResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *MsgUnblacklist) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.From) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.Address) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - return n -} - -func (m *MsgUnblacklistResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *MsgPause) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.From) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - return n -} - -func (m *MsgPauseResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *MsgUnpause) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.From) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - return n -} - -func (m *MsgUnpauseResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *MsgConfigureMinterController) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.From) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.Controller) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.Minter) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - return n -} - -func (m *MsgConfigureMinterControllerResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *MsgRemoveMinterController) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.From) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.Controller) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - return n -} - -func (m *MsgRemoveMinterControllerResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func sovTx(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozTx(x uint64) (n int) { - return sovTx(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *MsgUpdateMasterMinter) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MsgUpdateMasterMinter: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgUpdateMasterMinter: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.From = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Address = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MsgUpdateMasterMinterResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MsgUpdateMasterMinterResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgUpdateMasterMinterResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MsgUpdatePauser) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MsgUpdatePauser: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgUpdatePauser: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.From = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Address = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MsgUpdatePauserResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MsgUpdatePauserResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgUpdatePauserResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MsgUpdateBlacklister) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MsgUpdateBlacklister: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgUpdateBlacklister: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.From = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Address = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MsgUpdateBlacklisterResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MsgUpdateBlacklisterResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgUpdateBlacklisterResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MsgUpdateOwner) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MsgUpdateOwner: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgUpdateOwner: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.From = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Address = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MsgUpdateOwnerResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MsgUpdateOwnerResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgUpdateOwnerResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MsgAcceptOwner) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MsgAcceptOwner: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgAcceptOwner: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.From = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MsgAcceptOwnerResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MsgAcceptOwnerResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgAcceptOwnerResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MsgConfigureMinter) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MsgConfigureMinter: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgConfigureMinter: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.From = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Address = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Allowance", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Allowance.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MsgConfigureMinterResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MsgConfigureMinterResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgConfigureMinterResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MsgRemoveMinter) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MsgRemoveMinter: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgRemoveMinter: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.From = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Address = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MsgRemoveMinterResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MsgRemoveMinterResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgRemoveMinterResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MsgMint) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MsgMint: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgMint: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.From = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Address = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MsgMintResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MsgMintResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgMintResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MsgBurn) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MsgBurn: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgBurn: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.From = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MsgBurnResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MsgBurnResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgBurnResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MsgBlacklist) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MsgBlacklist: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgBlacklist: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.From = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Address = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MsgBlacklistResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MsgBlacklistResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgBlacklistResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MsgUnblacklist) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MsgUnblacklist: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgUnblacklist: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.From = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Address = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MsgUnblacklistResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MsgUnblacklistResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgUnblacklistResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MsgPause) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MsgPause: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgPause: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.From = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MsgPauseResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MsgPauseResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgPauseResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MsgUnpause) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MsgUnpause: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgUnpause: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.From = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MsgUnpauseResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MsgUnpauseResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgUnpauseResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MsgConfigureMinterController) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MsgConfigureMinterController: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgConfigureMinterController: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.From = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Controller", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Controller = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Minter", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Minter = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MsgConfigureMinterControllerResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MsgConfigureMinterControllerResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgConfigureMinterControllerResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MsgRemoveMinterController) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MsgRemoveMinterController: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgRemoveMinterController: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.From = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Controller", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Controller = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MsgRemoveMinterControllerResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MsgRemoveMinterControllerResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgRemoveMinterControllerResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipTx(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowTx - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowTx - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowTx - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthTx - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupTx - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthTx - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") -)