Skip to content

Commit

Permalink
x/bank,proto: change heimdall v2 comment format
Browse files Browse the repository at this point in the history
  • Loading branch information
Raneet10 committed Mar 7, 2024
1 parent 72a71bb commit 629bdd5
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion api/cosmos/bank/v1beta1/tx.pulsar.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion proto/cosmos/bank/v1beta1/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ message MsgUpdateParamsResponse {}
// message are left unchanged.
//
// Since: cosmos-sdk 0.47
// Note(Heimdall-v2): Not used in Heimdall since multiple denoms are not supported
// HV2: Not used in Heimdall since multiple denoms are not supported
message MsgSetSendEnabled {
option (cosmos.msg.v1.signer) = "authority";
option (amino.name) = "cosmos-sdk/MsgSetSendEnabled";
Expand Down
12 changes: 6 additions & 6 deletions x/bank/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func (k BaseKeeper) WithMintCoinsRestriction(check types.MintingRestrictionFn) B
return k
}

// NOTE(Heimdall-v2): vesting accounts are not used in heimdall
// HV2: vesting accounts are not used in heimdall

// DelegateCoins performs delegation by deducting amt coins from an account with
// address addr. For vesting accounts, delegations amounts are tracked for both
Expand Down Expand Up @@ -170,7 +170,7 @@ func (k BaseKeeper) DelegateCoins(ctx context.Context, delegatorAddr, moduleAccA
*/
}

// NOTE(Heimdall-v2): vesting accounts are not used in heimdall
// HV2: vesting accounts are not used in heimdall

// UndelegateCoins performs undelegation by crediting amt coins to an account with
// address addr. For vesting accounts, undelegation amounts are tracked for both
Expand Down Expand Up @@ -312,7 +312,7 @@ func (k BaseKeeper) SendCoinsFromAccountToModule(
return k.SendCoins(ctx, senderAddr, recipientAcc.GetAddress(), amt)
}

// NOTE(Heimdall-v2): vesting accounts are not used in heimdall
// HV2: vesting accounts are not used in heimdall

// DelegateCoinsFromAccountToModule delegates coins and transfers them from a
// delegator account to a module account. It will panic if the module account
Expand All @@ -335,7 +335,7 @@ func (k BaseKeeper) DelegateCoinsFromAccountToModule(
*/
}

// NOTE(Heimdall-v2): vesting accounts are not used in heimdall
// HV2: vesting accounts are not used in heimdall

// UndelegateCoinsFromModuleToAccount undelegates the unbonding coins and transfers
// them from a module account to the delegator account. It will panic if the
Expand Down Expand Up @@ -398,7 +398,7 @@ func (k BaseKeeper) MintCoins(ctx context.Context, moduleName string, amounts sd
return nil
}

// NOTE(Heimdall-v2): not used in heimdall
// HV2: not used in heimdall

// BurnCoins burns coins deletes coins from the balance of the module account.
// It will panic if the module account does not exist or is unauthorized.
Expand Down Expand Up @@ -434,7 +434,7 @@ func (k BaseKeeper) BurnCoins(ctx context.Context, moduleName string, amounts sd
return nil
}

// NOTE(Heimdall-v2): could be needed
// HV2: could be needed

// SetCoins sets the balance of an account to a given amount
func (k BaseKeeper) SetCoins(ctx context.Context, addr sdk.AccAddress, amounts sdk.Coins) error {
Expand Down
2 changes: 1 addition & 1 deletion x/bank/keeper/view.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ func (k BaseViewKeeper) IterateAllBalances(ctx context.Context, cb func(sdk.AccA
}
}

// NOTE(Heimdall-v2): vesting accounts are not used in Heimdall
// HV2: vesting accounts are not used in Heimdall

// LockedCoins returns all the coins that are not spendable (i.e. locked) for an
// account by address. For standard accounts, the result will always be no coins.
Expand Down
2 changes: 1 addition & 1 deletion x/bank/types/tx.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion x/bank/types/vesting.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
)

// NOTE(Heimdall-v2): VestingAccount is not used in heimdall
// HV2: VestingAccount is not used in heimdall

// VestingAccount defines an interface used for account vesting.
type VestingAccount interface {
Expand Down

0 comments on commit 629bdd5

Please sign in to comment.