Skip to content

Commit

Permalink
Token allow list feature. Bank module changes (#538)
Browse files Browse the repository at this point in the history
## Describe your changes and provide context
This change is part of token allow list feature implementation for token
extensions.
Added functions to:
- persist denom allow list and query it
- check if `from` and `to` addresses are in allowlist on bank send and
multi-send

## Testing performed to validate your change
- unit testing
- functional testing (plugged modified code into sei-chain) and via
ERC-20 pointer contract
  • Loading branch information
dssei authored Sep 20, 2024
1 parent 6b75f30 commit 5081dc1
Show file tree
Hide file tree
Showing 5 changed files with 778 additions and 48 deletions.
7 changes: 7 additions & 0 deletions proto/cosmos/bank/v1beta1/bank.proto
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,10 @@ message Metadata {
// Since: cosmos-sdk 0.43
string symbol = 6;
}

message AllowList {
option (gogoproto.equal) = true;

// Can be empty for no admin, or a valid sei address
repeated string addresses = 1 [ (gogoproto.moretags) = "yaml:\"addresses\"" ];
}
Loading

0 comments on commit 5081dc1

Please sign in to comment.