mirror of
				https://github.com/0glabs/0g-chain.git
				synced 2025-11-04 00:27:41 +00:00 
			
		
		
		
	* wip: issuance module * add keeper and module methods * add begin blocker * add client * update events * add simulations * ignore v0.8 migration tests for now * ignore migration tests in ci * add test suite * update spec to match implementation details * add unblock method * address review comments * fix typos
		
			
				
	
	
		
			26 lines
		
	
	
		
			518 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			518 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package simulation
 | 
						|
 | 
						|
import (
 | 
						|
	"fmt"
 | 
						|
	"math/rand"
 | 
						|
 | 
						|
	"github.com/cosmos/cosmos-sdk/x/simulation"
 | 
						|
 | 
						|
	"github.com/kava-labs/kava/x/issuance/types"
 | 
						|
)
 | 
						|
 | 
						|
const (
 | 
						|
	keyAssets = "Assets"
 | 
						|
)
 | 
						|
 | 
						|
// ParamChanges defines the parameters that can be modified by param change proposals
 | 
						|
func ParamChanges(r *rand.Rand) []simulation.ParamChange {
 | 
						|
	return []simulation.ParamChange{
 | 
						|
		simulation.NewSimParamChange(types.ModuleName, keyAssets,
 | 
						|
			func(r *rand.Rand) string {
 | 
						|
				return fmt.Sprintf("\"%s\"", randomizedAssets(r))
 | 
						|
			},
 | 
						|
		),
 | 
						|
	}
 | 
						|
}
 |