0g-chain/x/precisebank
drklee3 4cf41d18c2
feat(x/precisebank): Implement GetBalance (#1916)
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/)
2024-05-21 14:11:13 -07:00
..
keeper feat(x/precisebank): Implement GetBalance (#1916) 2024-05-21 14:11:13 -07:00
testutil feat(x/precisebank): Add remainder amount to genesis (#1911) 2024-05-15 14:07:24 -07:00
types feat(x/precisebank): Implement GetBalance (#1916) 2024-05-21 14:11:13 -07:00
genesis_test.go feat(x/precisebank): Implement ExportGenesis (#1915) 2024-05-20 09:50:31 -07:00
genesis.go feat(x/precisebank): Implement ExportGenesis (#1915) 2024-05-20 09:50:31 -07:00
module.go feat(x/precisebank): Add remainder amount to genesis (#1911) 2024-05-15 14:07:24 -07:00
README.md feat: Add x/precisebank module basic setup (#1906) 2024-05-10 09:30:28 -07:00

x/precisebank

Abstract

This document specifies the precisebank module of Kava.

The precisebank module is responsible for extending the precision of x/bank, intended to be used for the x/evm. It serves as a wrapper of x/bank to increase the precision of KAVA from 6 to 18 decimals, while preserving the behavior of existing x/bank balances.

This module is used only by x/evm where 18 decimal points are expected.