func (supply Supply) String() string {
	bz, _ := yaml.Marshal(supply)
	return string(bz)
}
String returns a human readable string representation of a supplier.
package types
import (
	"fmt"
	"github.com/KuChainNetwork/kuchain/chain/types"
	"github.com/KuChainNetwork/kuchain/x/supply/exported"
	"gopkg.in/yaml.v2"
)
var _ exported.SupplyI = (*Supply)(nil)
type Supply struct {
	Total types.Coins `json:"total" yaml:"total"`
}
func NewSupply(total types.Coins) *Supply {
	return &Supply{total}
}
func DefaultSupply() *Supply {
	return NewSupply(types.NewCoins())
}
func (supply *Supply) SetTotal(total types.Coins) {
	supply.Total = total
}
func (supply Supply) GetTotal() types.Coins {
	return supply.Total
}