mirror of
				https://github.com/0glabs/0g-chain.git
				synced 2025-11-04 03:07:28 +00:00 
			
		
		
		
	- Upgrade cosmos-sdk to v0.44.5 from v0.39.2 - Add Legacy Tx Endpoint for backwards compatibility - Add IBC v1.2.3 Support Co-authored-by: DracoLi <draco@dracoli.com> Co-authored-by: drklee3 <derrick@dlee.dev> Co-authored-by: denalimarsh <denalimarsh@gmail.com> Co-authored-by: Draco Li <draco@kava.io> Co-authored-by: Nick DeLuca <nickdeluca08@gmail.com> Co-authored-by: Kevin Davis <karzak@users.noreply.github.com> Co-authored-by: Denali Marsh <denali@kava.io>
		
			
				
	
	
		
			34 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Go
		
	
	
	
	
	
package simulation
 | 
						|
 | 
						|
// import (
 | 
						|
// 	"bytes"
 | 
						|
// 	"fmt"
 | 
						|
// 	"time"
 | 
						|
 | 
						|
// 	"github.com/cosmos/cosmos-sdk/codec"
 | 
						|
 | 
						|
// 	"github.com/kava-labs/kava/x/issuance/types"
 | 
						|
 | 
						|
// 	"github.com/tendermint/tendermint/libs/kv"
 | 
						|
// )
 | 
						|
 | 
						|
// // DecodeStore the issuance module has no store keys -- all state is stored in params
 | 
						|
// func DecodeStore(cdc *codec.Codec, kvA, kvB kv.Pair) string {
 | 
						|
// 	switch {
 | 
						|
// 	case bytes.Equal(kvA.Key[:1], types.AssetSupplyPrefix):
 | 
						|
// 		var supplyA, supplyB types.AssetSupply
 | 
						|
// 		cdc.MustUnmarshalBinaryLengthPrefixed(kvA.Value, &supplyA)
 | 
						|
// 		cdc.MustUnmarshalBinaryLengthPrefixed(kvB.Value, &supplyB)
 | 
						|
// 		return fmt.Sprintf("%s\n%s", supplyA, supplyB)
 | 
						|
// 	case bytes.Equal(kvA.Key[:1], types.PreviousBlockTimeKey):
 | 
						|
// 		var timeA, timeB time.Time
 | 
						|
// 		cdc.MustUnmarshalBinaryLengthPrefixed(kvA.Value, &timeA)
 | 
						|
// 		cdc.MustUnmarshalBinaryLengthPrefixed(kvB.Value, &timeB)
 | 
						|
// 		return fmt.Sprintf("%s\n%s", timeA, timeB)
 | 
						|
// 	default:
 | 
						|
// 		panic(fmt.Sprintf("invalid %s key prefix %X", types.ModuleName, kvA.Key[:1]))
 | 
						|
 | 
						|
// 	}
 | 
						|
 | 
						|
// }
 |