Skip to content
This repository has been archived by the owner on Jun 9, 2024. It is now read-only.

Update Bank.sol #1510

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions contracts/src/cosmos/precompile/Bank.sol
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ interface IBankModule {
* @dev Returns the `amount` of account balance by address for a given coin denomination
* @notice If the denomination is not found, returns 0
*/
function getBalance(address accountAddress, string calldata denom) external view returns (uint256);
function getBalance(address accountAddress, uint256 calldata denom) external view returns (uint256);

/**
* @dev Returns account balance by address for all denominations
Expand All @@ -95,7 +95,7 @@ interface IBankModule {
* @dev Returns the `amount` of account balance by address for a given coin denomination
* @notice If the denomination is not found, returns 0
*/
function getSpendableBalance(address accountAddress, string calldata denom) external view returns (uint256);
function getSpendableBalance(address accountAddress, uint256 calldata denom) external view returns (uint256);

/**
* @dev Returns account balance by address for all coin denominations
Expand All @@ -106,7 +106,7 @@ interface IBankModule {
/**
* @dev Returns the total supply of a single coin
*/
function getSupply(string calldata denom) external view returns (uint256);
function getSupply(uint256 calldata denom) external view returns (uint256);

/**
* @dev Returns the total supply of a all coins
Expand All @@ -130,8 +130,8 @@ interface IBankModule {
* @notice this struct is generated in generated/i_bank_module.abigen.go
*/
struct DenomUnit {
string denom;
string[] aliases;
uint256 denom;
uint256[] aliases;
uint32 exponent;
}

Expand All @@ -140,11 +140,11 @@ interface IBankModule {
* @notice this struct is generated in generated/i_bank_module.abigen.go
*/
struct DenomMetadata {
string description;
uint256 description;
DenomUnit[] denomUnits;
string base;
string display;
string name;
string symbol;
uint256 base;
uint256 display;
uint256 name;
uint256 symbol;
}
}
Loading