Documentation ¶
Overview ¶
Package params defines the simulation parameters in Gaia.
It contains the default weights used for each transaction in the module's simulation. These weights determine the probability of a transaction being simulated for any given operation.
You can replace the default values of the weights by providing a `params.json` file with the weights defined for each transaction operation:
{ "op_weight_msg_send": 60, "op_weight_msg_delegate": 100 }
In the example above, the `MsgSend` has a 60% chance of being simulated, while the `MsgDelegate` will always be simulated (100% chance).
Index ¶
Constants ¶
const ( WeightMsgSend = 100 WeightMsgMultiSend = 10 WeightMsgDeposit = 100 WeightMsgVote = 67 WeightMsgDelegate = 100 WeightMsgUndelegate = 100 WeightMsgBeginRedelegate = 100 WeightMsgCreateValidator = 100 WeightMsgEditValidator = 5 WeightMsgUnjail = 100 WeightMsgSetWithdrawAddress = 50 WeightMsgWithdrawDelegationReward = 50 WeightMsgWithdrawValidatorCommission = 50 WeightMsgFundCommunityPool = 50 WeightMsgStoreCode = 50 WeightMsgInstantiateContract = 100 WeightMsgExecuteContract = 100 WeightMsgUpdateAdmin = 25 WeightMsgClearAdmin = 10 WeightMsgMigrateContract = 50 WeightProposalCommunitySpend = 5 WeightProposalText = 5 WeightProposalParamChange = 5 WeightProposalStoreCode = 5 WeightProposalInstantiateContract = 5 WeightProposalUpdateAdmin = 5 WeightProposalExecuteContract = 5 WeightProposalClearAdmin = 5 WeightProposalMigrateContract = 5 WeightProposalSudoContract = 5 WeightProposalPinCodes = 5 WeightProposalUnpinCodes = 5 WeightProposalInstantiateConfig = 5 WeightProposalStoreAndInstantiate = 5 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EncodingConfig ¶
type EncodingConfig struct { InterfaceRegistry types.InterfaceRegistry // Registry for interface types used in Protobuf encoding Marshaler codec.Codec // Codec for marshaling and unmarshaling Protobuf messages TxConfig client.TxConfig // Transaction configuration for signing and encoding transactions Amino *codec.LegacyAmino // Legacy Amino codec for backward compatibility }
EncodingConfig defines the encoding configuration for an app, specifying the codecs and transaction configurations for both Protobuf and Amino.
func MakeEncodingConfig ¶
func MakeEncodingConfig() EncodingConfig
MakeEncodingConfig creates an EncodingConfig for the application using Amino and Proto codecs.