github.com/InjectiveLabs/sdk-go@v1.53.0/chain/peggy/types/params_legacy.go (about) 1 package types 2 3 import paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" 4 5 var ( 6 // ParamsStoreKeyPeggyID stores the peggy id 7 ParamsStoreKeyPeggyID = []byte("PeggyID") 8 9 // ParamsStoreKeyContractHash stores the contract hash 10 ParamsStoreKeyContractHash = []byte("ContractHash") 11 12 // ParamsStoreKeyBridgeContractAddress stores the contract address 13 ParamsStoreKeyBridgeContractAddress = []byte("BridgeContractAddress") 14 15 // ParamsStoreKeyBridgeContractStartHeight stores the bridge contract deployed height 16 ParamsStoreKeyBridgeContractStartHeight = []byte("BridgeContractChainHeight") 17 18 // ParamsStoreKeyBridgeContractChainID stores the bridge chain id 19 ParamsStoreKeyBridgeContractChainID = []byte("BridgeChainID") 20 21 // ParamsStoreKeyCosmosCoinDenom stores native cosmos coin denom 22 ParamsStoreKeyCosmosCoinDenom = []byte("CosmosCoinDenom") 23 24 // ParamsStoreKeyCosmosCoinErc20Contract store L1 erc20 contract address of cosmos native coin 25 ParamsStoreKeyCosmosCoinErc20Contract = []byte("CosmosCoinErc20Contract") 26 27 // ParamsStoreKeySignedValsetsWindow stores the signed blocks window 28 ParamsStoreKeySignedValsetsWindow = []byte("SignedValsetsWindow") 29 30 // ParamsStoreKeySignedBatchesWindow stores the signed blocks window 31 ParamsStoreKeySignedBatchesWindow = []byte("SignedBatchesWindow") 32 33 // ParamsStoreKeySignedClaimsWindow stores the signed blocks window 34 ParamsStoreKeySignedClaimsWindow = []byte("SignedClaimsWindow") 35 36 // ParamsStoreKeyTargetBatchTimeout stores 37 ParamsStoreKeyTargetBatchTimeout = []byte("TargetBatchTimeout") 38 39 // ParamsStoreKeyAverageBlockTime stores the average block time of the Injective Chain in milliseconds 40 ParamsStoreKeyAverageBlockTime = []byte("AverageBlockTime") 41 42 // ParamsStoreKeyAverageEthereumBlockTime stores the average block time of Ethereum in milliseconds 43 ParamsStoreKeyAverageEthereumBlockTime = []byte("AverageEthereumBlockTime") 44 45 // ParamsStoreSlashFractionValset stores the slash fraction valset 46 ParamsStoreSlashFractionValset = []byte("SlashFractionValset") 47 48 // ParamsStoreSlashFractionBatch stores the slash fraction Batch 49 ParamsStoreSlashFractionBatch = []byte("SlashFractionBatch") 50 51 // ParamsStoreSlashFractionClaim stores the slash fraction Claim 52 ParamsStoreSlashFractionClaim = []byte("SlashFractionClaim") 53 54 // ParamsStoreSlashFractionConflictingClaim stores the slash fraction ConflictingClaim 55 ParamsStoreSlashFractionConflictingClaim = []byte("SlashFractionConflictingClaim") 56 57 // ParamStoreUnbondSlashingValsetsWindow stores unbond slashing valset window 58 ParamStoreUnbondSlashingValsetsWindow = []byte("UnbondSlashingValsetsWindow") 59 60 // ParamStoreClaimSlashingEnabled stores ClaimSlashing is enabled or not 61 ParamStoreClaimSlashingEnabled = []byte("ClaimSlashingEnabled") 62 63 // ParamStoreSlashFractionBadEthSignature stores the amount by which a validator making a fraudulent eth signature will be slashed 64 ParamStoreSlashFractionBadEthSignature = []byte("SlashFractionBadEthSignature") 65 66 // ParamStoreValsetRewardAmount is the amount of the coin, both denom and amount to issue 67 // to a relayer when they relay a valset 68 ParamStoreValsetRewardAmount = []byte("ValsetReward") 69 70 ParamStoreAdmins = []byte("Admins") 71 72 // Ensure that params implements the proper interface 73 _ paramtypes.ParamSet = &Params{} 74 ) 75 76 // ParamKeyTable for auth module 77 func ParamKeyTable() paramtypes.KeyTable { 78 return paramtypes.NewKeyTable().RegisterParamSet(&Params{}) 79 } 80 81 // ParamSetPairs implements the ParamSet interface and returns all the key/value pairs 82 // pairs of auth module's parameters. 83 func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs { 84 return paramtypes.ParamSetPairs{ 85 paramtypes.NewParamSetPair(ParamsStoreKeyPeggyID, &p.PeggyId, validatePeggyID), 86 paramtypes.NewParamSetPair(ParamsStoreKeyContractHash, &p.ContractSourceHash, validateContractHash), 87 paramtypes.NewParamSetPair(ParamsStoreKeyBridgeContractAddress, &p.BridgeEthereumAddress, validateBridgeContractAddress), 88 paramtypes.NewParamSetPair(ParamsStoreKeyBridgeContractChainID, &p.BridgeChainId, validateBridgeChainID), 89 paramtypes.NewParamSetPair(ParamsStoreKeyCosmosCoinDenom, &p.CosmosCoinDenom, validateCosmosCoinDenom), 90 paramtypes.NewParamSetPair(ParamsStoreKeyCosmosCoinErc20Contract, &p.CosmosCoinErc20Contract, validateCosmosCoinErc20Contract), 91 paramtypes.NewParamSetPair(ParamsStoreKeySignedValsetsWindow, &p.SignedValsetsWindow, validateSignedValsetsWindow), 92 paramtypes.NewParamSetPair(ParamsStoreKeySignedBatchesWindow, &p.SignedBatchesWindow, validateSignedBatchesWindow), 93 paramtypes.NewParamSetPair(ParamsStoreKeySignedClaimsWindow, &p.SignedClaimsWindow, validateSignedClaimsWindow), 94 paramtypes.NewParamSetPair(ParamsStoreKeyAverageBlockTime, &p.AverageBlockTime, validateAverageBlockTime), 95 paramtypes.NewParamSetPair(ParamsStoreKeyTargetBatchTimeout, &p.TargetBatchTimeout, validateTargetBatchTimeout), 96 paramtypes.NewParamSetPair(ParamsStoreKeyAverageEthereumBlockTime, &p.AverageEthereumBlockTime, validateAverageEthereumBlockTime), 97 paramtypes.NewParamSetPair(ParamsStoreSlashFractionValset, &p.SlashFractionValset, validateSlashFractionValset), 98 paramtypes.NewParamSetPair(ParamsStoreSlashFractionBatch, &p.SlashFractionBatch, validateSlashFractionBatch), 99 paramtypes.NewParamSetPair(ParamsStoreSlashFractionClaim, &p.SlashFractionClaim, validateSlashFractionClaim), 100 paramtypes.NewParamSetPair(ParamsStoreSlashFractionConflictingClaim, &p.SlashFractionConflictingClaim, validateSlashFractionConflictingClaim), 101 paramtypes.NewParamSetPair(ParamStoreSlashFractionBadEthSignature, &p.SlashFractionBadEthSignature, validateSlashFractionBadEthSignature), 102 paramtypes.NewParamSetPair(ParamStoreUnbondSlashingValsetsWindow, &p.UnbondSlashingValsetsWindow, validateUnbondSlashingValsetsWindow), 103 paramtypes.NewParamSetPair(ParamStoreClaimSlashingEnabled, &p.ClaimSlashingEnabled, validateClaimSlashingEnabled), 104 paramtypes.NewParamSetPair(ParamsStoreKeyBridgeContractStartHeight, &p.BridgeContractStartHeight, validateBridgeContractStartHeight), 105 paramtypes.NewParamSetPair(ParamStoreValsetRewardAmount, &p.ValsetReward, validateValsetReward), 106 paramtypes.NewParamSetPair(ParamStoreAdmins, &p.Admins, validateAdmins), 107 } 108 }