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 ¶
- func CctpKeeper(t testing.TB) (*keeper.Keeper, sdk.Context)
- func CctpKeeperWithErrBank(t testing.TB) (*keeper.Keeper, sdk.Context)
- func CctpKeeperWithKey(t testing.TB, storeKey sdk.StoreKey) (*keeper.Keeper, sdk.Context)
- func ErrCctpKeeper(t testing.TB) (*keeper.Keeper, sdk.Context)
- func ErrFiatTokenfactoryKeeper(t testing.TB) (*keeper.Keeper, sdk.Context)
- func FiatTokenfactoryKeeper(t testing.TB) (*keeper.Keeper, sdk.Context)
- type ErrBankKeeper
- func (ErrBankKeeper) BurnCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error
- func (ErrBankKeeper) GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin
- func (ErrBankKeeper) GetDenomMetaData(ctx sdk.Context, denom string) (banktypes.Metadata, bool)
- func (ErrBankKeeper) MintCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error
- func (ErrBankKeeper) SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, ...) error
- func (ErrBankKeeper) SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, ...) error
- func (ErrBankKeeper) SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
- type MockBankKeeper
- func (MockBankKeeper) BurnCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error
- func (MockBankKeeper) GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin
- func (MockBankKeeper) GetDenomMetaData(ctx sdk.Context, denom string) (banktypes.Metadata, bool)
- func (MockBankKeeper) MintCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error
- func (MockBankKeeper) SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, ...) error
- func (MockBankKeeper) SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, ...) error
- func (MockBankKeeper) SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
- type MockCctpKeeper
- type MockErrCctpKeeper
- type MockErrFiatTokenfactoryKeeper
- func (MockErrFiatTokenfactoryKeeper) Burn(ctx sdk.Context, msg *types.MsgBurn) (*types.MsgBurnResponse, error)
- func (k MockErrFiatTokenfactoryKeeper) GetMintingDenom(ctx sdk.Context) (val types.MintingDenom)
- func (k MockErrFiatTokenfactoryKeeper) Mint(ctx sdk.Context, msg *types.MsgMint) (*types.MsgMintResponse, error)
- type MockFiatTokenfactoryKeeper
- func (MockFiatTokenfactoryKeeper) Burn(ctx sdk.Context, msg *types.MsgBurn) (*types.MsgBurnResponse, error)
- func (MockFiatTokenfactoryKeeper) GetMintingDenom(ctx sdk.Context) (val types.MintingDenom)
- func (MockFiatTokenfactoryKeeper) Mint(ctx sdk.Context, msg *types.MsgMint) (*types.MsgMintResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CctpKeeperWithKey ¶
func ErrCctpKeeper ¶
ErrCctpKeeper is used for wrapping a MockErrFiatTokenfactoryKeeper, which fails on mint/burn
Types ¶
type ErrBankKeeper ¶
type ErrBankKeeper struct{}
func (ErrBankKeeper) GetBalance ¶
func (ErrBankKeeper) GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin
func (ErrBankKeeper) GetDenomMetaData ¶
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) GetBalance ¶
func (MockBankKeeper) GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin
func (MockBankKeeper) GetDenomMetaData ¶
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 ¶
type MockErrCctpKeeper ¶
type MockErrCctpKeeper struct{}
type MockErrFiatTokenfactoryKeeper ¶
type MockErrFiatTokenfactoryKeeper struct{}
MockErrFiatTokenfactoryKeeper - all dependencies err
func (MockErrFiatTokenfactoryKeeper) Burn ¶
func (MockErrFiatTokenfactoryKeeper) Burn(ctx sdk.Context, msg *types.MsgBurn) (*types.MsgBurnResponse, error)
func (MockErrFiatTokenfactoryKeeper) GetMintingDenom ¶
func (k MockErrFiatTokenfactoryKeeper) GetMintingDenom(ctx sdk.Context) (val types.MintingDenom)
func (MockErrFiatTokenfactoryKeeper) Mint ¶
func (k MockErrFiatTokenfactoryKeeper) Mint(ctx sdk.Context, msg *types.MsgMint) (*types.MsgMintResponse, error)
type MockFiatTokenfactoryKeeper ¶
type MockFiatTokenfactoryKeeper struct{}
func (MockFiatTokenfactoryKeeper) Burn ¶
func (MockFiatTokenfactoryKeeper) Burn(ctx sdk.Context, msg *types.MsgBurn) (*types.MsgBurnResponse, error)
func (MockFiatTokenfactoryKeeper) GetMintingDenom ¶
func (MockFiatTokenfactoryKeeper) GetMintingDenom(ctx sdk.Context) (val types.MintingDenom)
func (MockFiatTokenfactoryKeeper) Mint ¶
func (MockFiatTokenfactoryKeeper) Mint(ctx sdk.Context, msg *types.MsgMint) (*types.MsgMintResponse, error)