mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-26 08:15:19 +00:00
add weighted address tags (#336)
This commit is contained in:
parent
33ad221e5f
commit
d24f364ed3
@ -222,8 +222,8 @@ func NewCollateralAuction(seller string, lot sdk.Coin, endTime time.Time, maxBid
|
|||||||
|
|
||||||
// WeightedAddresses is a type for storing some addresses and associated weights.
|
// WeightedAddresses is a type for storing some addresses and associated weights.
|
||||||
type WeightedAddresses struct {
|
type WeightedAddresses struct {
|
||||||
Addresses []sdk.AccAddress
|
Addresses []sdk.AccAddress `json:"addresses" yaml:"addresses"`
|
||||||
Weights []sdk.Int
|
Weights []sdk.Int `json:"weights" yaml:"weights"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewWeightedAddresses returns a new list addresses with weights.
|
// NewWeightedAddresses returns a new list addresses with weights.
|
||||||
|
Loading…
Reference in New Issue
Block a user