keeper

package
v0.0.0-...-69ee090 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

* Copyright (c) 2023, © Circle Internet Financial, LTD. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.

* Copyright (c) 2023, © Circle Internet Financial, LTD. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.

* Copyright (c) 2023, © Circle Internet Financial, LTD. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CctpKeeper

func CctpKeeper(t testing.TB) (*keeper.Keeper, sdk.Context)

func CctpKeeperWithErrBank

func CctpKeeperWithErrBank(t testing.TB) (*keeper.Keeper, sdk.Context)

func CctpKeeperWithKey

func CctpKeeperWithKey(t testing.TB, storeKey sdk.StoreKey) (*keeper.Keeper, sdk.Context)

func ErrCctpKeeper

func ErrCctpKeeper(t testing.TB) (*keeper.Keeper, sdk.Context)

ErrCctpKeeper is used for wrapping a MockErrFiatTokenfactoryKeeper, which fails on mint/burn

func ErrFiatTokenfactoryKeeper

func ErrFiatTokenfactoryKeeper(t testing.TB) (*keeper.Keeper, sdk.Context)

func FiatTokenfactoryKeeper

func FiatTokenfactoryKeeper(t testing.TB) (*keeper.Keeper, sdk.Context)

Types

type ErrBankKeeper

type ErrBankKeeper struct{}

func (ErrBankKeeper) BurnCoins

func (ErrBankKeeper) BurnCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error

func (ErrBankKeeper) GetBalance

func (ErrBankKeeper) GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin

func (ErrBankKeeper) GetDenomMetaData

func (ErrBankKeeper) GetDenomMetaData(ctx sdk.Context, denom string) (banktypes.Metadata, bool)

func (ErrBankKeeper) MintCoins

func (ErrBankKeeper) MintCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error

func (ErrBankKeeper) SendCoinsFromAccountToModule

func (ErrBankKeeper) SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error

func (ErrBankKeeper) SendCoinsFromModuleToAccount

func (ErrBankKeeper) SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error

func (ErrBankKeeper) SpendableCoins

func (ErrBankKeeper) SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins

type MockBankKeeper

type MockBankKeeper struct{}

func (MockBankKeeper) BurnCoins

func (MockBankKeeper) BurnCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error

func (MockBankKeeper) GetBalance

func (MockBankKeeper) GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin

func (MockBankKeeper) GetDenomMetaData

func (MockBankKeeper) GetDenomMetaData(ctx sdk.Context, denom string) (banktypes.Metadata, bool)

func (MockBankKeeper) MintCoins

func (MockBankKeeper) MintCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error

func (MockBankKeeper) SendCoinsFromAccountToModule

func (MockBankKeeper) SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error

func (MockBankKeeper) SendCoinsFromModuleToAccount

func (MockBankKeeper) SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error

func (MockBankKeeper) SpendableCoins

func (MockBankKeeper) SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins

type MockCctpKeeper

type MockCctpKeeper struct{}

func (MockCctpKeeper) GetAuthority

func (MockCctpKeeper) GetAuthority(ctx sdk.Context) (val string, found bool)

func (MockCctpKeeper) GetTokenPair

func (k MockCctpKeeper) GetTokenPair(ctx sdk.Context, remoteDomain uint32, remoteToken string) (val types.TokenPair, found bool)

type MockErrCctpKeeper

type MockErrCctpKeeper struct{}

type MockErrFiatTokenfactoryKeeper

type MockErrFiatTokenfactoryKeeper struct{}

MockErrFiatTokenfactoryKeeper - all dependencies err

func (MockErrFiatTokenfactoryKeeper) Burn

func (MockErrFiatTokenfactoryKeeper) GetMintingDenom

func (k MockErrFiatTokenfactoryKeeper) GetMintingDenom(ctx sdk.Context) (val types.MintingDenom)

func (MockErrFiatTokenfactoryKeeper) Mint

type MockFiatTokenfactoryKeeper

type MockFiatTokenfactoryKeeper struct{}

func (MockFiatTokenfactoryKeeper) Burn

func (MockFiatTokenfactoryKeeper) GetMintingDenom

func (MockFiatTokenfactoryKeeper) GetMintingDenom(ctx sdk.Context) (val types.MintingDenom)

func (MockFiatTokenfactoryKeeper) Mint

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL