mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-26 00:05:18 +00:00
4cf41d18c2
Implement GetBalance for extended balances which passes through to `x/bank` for non-extended denoms. This diverges from `x/evmutil` behavior which will panic on non-"akava" calls. Add bank / account keeper mocks for testing, with mockery config for [mockery package setup](https://vektra.github.io/mockery/latest/migrating_to_packages/)
17 lines
438 B
YAML
17 lines
438 B
YAML
# Generate EXPECT() methods, type-safe methods to generate call expectations
|
|
with-expecter: true
|
|
|
|
# Generate mocks in adjacent mocks directory to the interfaces
|
|
dir: "{{.InterfaceDir}}/mocks"
|
|
mockname: "Mock{{.InterfaceName}}"
|
|
outpkg: "mocks"
|
|
filename: "Mock{{.InterfaceName}}.go"
|
|
|
|
packages:
|
|
github.com/kava-labs/kava/x/precisebank/types:
|
|
# package-specific config
|
|
config:
|
|
interfaces:
|
|
AccountKeeper:
|
|
BankKeeper:
|