@@ -8,33 +8,33 @@ import (
8
8
9
9
// MultiStoreProofEthereum is an Ethereum version of MultiStoreProof for solidity ABI-encoding.
10
10
type MultiStoreProofEthereum struct {
11
- OracleIAVLStateHash common.Hash
12
- MintStoreMerkleHash common.Hash
13
- ParamsToSlashingStoresMerkleHash common.Hash
14
- GovToIcahostStoresMerkleHash common.Hash
15
- AuthToFeegrantStoresMerkleHash common.Hash
16
- StakingToUpgradeStoresMerkleHash common.Hash
11
+ OracleIAVLStateHash common.Hash
12
+ MintStoreMerkleHash common.Hash
13
+ IbcToIcahostStoresMerkleHash common.Hash
14
+ FeegrantToGroupStoresMerkleHash common.Hash
15
+ AuthToEvidenceStoresMerkleHash common.Hash
16
+ ParamsToUpgradeStoresMerkleHash common.Hash
17
17
}
18
18
19
19
func (m * MultiStoreProof ) encodeToEthFormat () MultiStoreProofEthereum {
20
20
return MultiStoreProofEthereum {
21
- OracleIAVLStateHash : common .BytesToHash (m .OracleIAVLStateHash ),
22
- MintStoreMerkleHash : common .BytesToHash (m .MintStoreMerkleHash ),
23
- ParamsToSlashingStoresMerkleHash : common .BytesToHash (m .ParamsToSlashingStoresMerkleHash ),
24
- GovToIcahostStoresMerkleHash : common .BytesToHash (m .GovToIcahostStoresMerkleHash ),
25
- AuthToFeegrantStoresMerkleHash : common .BytesToHash (m .AuthToFeegrantStoresMerkleHash ),
26
- StakingToUpgradeStoresMerkleHash : common .BytesToHash (m .StakingToUpgradeStoresMerkleHash ),
21
+ OracleIAVLStateHash : common .BytesToHash (m .OracleIAVLStateHash ),
22
+ MintStoreMerkleHash : common .BytesToHash (m .MintStoreMerkleHash ),
23
+ IbcToIcahostStoresMerkleHash : common .BytesToHash (m .IbcToIcahostStoresMerkleHash ),
24
+ FeegrantToGroupStoresMerkleHash : common .BytesToHash (m .FeegrantToGroupStoresMerkleHash ),
25
+ AuthToEvidenceStoresMerkleHash : common .BytesToHash (m .AuthToEvidenceStoresMerkleHash ),
26
+ ParamsToUpgradeStoresMerkleHash : common .BytesToHash (m .ParamsToUpgradeStoresMerkleHash ),
27
27
}
28
28
}
29
29
30
30
// GetMultiStoreProof compacts Multi store proof from Tendermint to MultiStoreProof version.
31
31
func GetMultiStoreProof (multiStoreEp * ics23.ExistenceProof ) MultiStoreProof {
32
32
return MultiStoreProof {
33
- OracleIAVLStateHash : tmbytes .HexBytes (multiStoreEp .Value ),
34
- MintStoreMerkleHash : tmbytes .HexBytes (multiStoreEp .Path [0 ].Prefix [1 :]),
35
- ParamsToSlashingStoresMerkleHash : tmbytes .HexBytes (multiStoreEp .Path [1 ].Suffix ),
36
- GovToIcahostStoresMerkleHash : tmbytes .HexBytes (multiStoreEp .Path [2 ].Prefix [1 :]),
37
- AuthToFeegrantStoresMerkleHash : tmbytes .HexBytes (multiStoreEp .Path [3 ].Prefix [1 :]),
38
- StakingToUpgradeStoresMerkleHash : tmbytes .HexBytes (multiStoreEp .Path [4 ].Suffix ),
33
+ OracleIAVLStateHash : tmbytes .HexBytes (multiStoreEp .Value ),
34
+ MintStoreMerkleHash : tmbytes .HexBytes (multiStoreEp .Path [0 ].Prefix [1 :]),
35
+ IbcToIcahostStoresMerkleHash : tmbytes .HexBytes (multiStoreEp .Path [1 ].Prefix [ 1 :] ),
36
+ FeegrantToGroupStoresMerkleHash : tmbytes .HexBytes (multiStoreEp .Path [2 ].Prefix [1 :]),
37
+ AuthToEvidenceStoresMerkleHash : tmbytes .HexBytes (multiStoreEp .Path [3 ].Prefix [1 :]),
38
+ ParamsToUpgradeStoresMerkleHash : tmbytes .HexBytes (multiStoreEp .Path [4 ].Suffix ),
39
39
}
40
40
}
0 commit comments