mirror of
				https://github.com/0glabs/0g-chain.git
				synced 2025-11-04 03:17:27 +00:00 
			
		
		
		
	
						commit
						5051f75b52
					
				@ -8,10 +8,10 @@ import (
 | 
				
			|||||||
func (suite *IntegrationTestSuite) TestUpgrade_PreciseBankReserveTransfer() {
 | 
					func (suite *IntegrationTestSuite) TestUpgrade_PreciseBankReserveTransfer() {
 | 
				
			||||||
	suite.SkipIfUpgradeDisabled()
 | 
						suite.SkipIfUpgradeDisabled()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// 	beforeUpgradeCtx := suite.Kava.Grpc.CtxAtHeight(suite.UpgradeHeight - 1)
 | 
						beforeUpgradeCtx := suite.ZgChain.Grpc.CtxAtHeight(suite.UpgradeHeight - 1)
 | 
				
			||||||
	// 	afterUpgradeCtx := suite.Kava.Grpc.CtxAtHeight(suite.UpgradeHeight)
 | 
						afterUpgradeCtx := suite.ZgChain.Grpc.CtxAtHeight(suite.UpgradeHeight)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// 	grpcClient := suite.Kava.Grpc
 | 
						grpcClient := suite.ZgChain.Grpc
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// -----------------------------
 | 
						// -----------------------------
 | 
				
			||||||
	// Get initial reserve balances
 | 
						// Get initial reserve balances
 | 
				
			||||||
 | 
				
			|||||||
@ -5,7 +5,7 @@ import (
 | 
				
			|||||||
	"testing"
 | 
						"testing"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	sdkmath "cosmossdk.io/math"
 | 
						sdkmath "cosmossdk.io/math"
 | 
				
			||||||
	"github.com/0glabs/0g-chain/app"
 | 
						"github.com/0glabs/0g-chain/chaincfg"
 | 
				
			||||||
	"github.com/0glabs/0g-chain/x/precisebank/types"
 | 
						"github.com/0glabs/0g-chain/x/precisebank/types"
 | 
				
			||||||
	"github.com/stretchr/testify/require"
 | 
						"github.com/stretchr/testify/require"
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
@ -74,7 +74,7 @@ func TestNewFractionalBalance(t *testing.T) {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func TestFractionalBalance_Validate(t *testing.T) {
 | 
					func TestFractionalBalance_Validate(t *testing.T) {
 | 
				
			||||||
	app.SetSDKConfig()
 | 
						chaincfg.SetSDKConfig()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	tests := []struct {
 | 
						tests := []struct {
 | 
				
			||||||
		name        string
 | 
							name        string
 | 
				
			||||||
 | 
				
			|||||||
@ -7,14 +7,14 @@ import (
 | 
				
			|||||||
	"testing"
 | 
						"testing"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	sdkmath "cosmossdk.io/math"
 | 
						sdkmath "cosmossdk.io/math"
 | 
				
			||||||
	"github.com/0glabs/0g-chain/app"
 | 
						"github.com/0glabs/0g-chain/chaincfg"
 | 
				
			||||||
	"github.com/0glabs/0g-chain/x/precisebank/types"
 | 
						"github.com/0glabs/0g-chain/x/precisebank/types"
 | 
				
			||||||
	sdk "github.com/cosmos/cosmos-sdk/types"
 | 
						sdk "github.com/cosmos/cosmos-sdk/types"
 | 
				
			||||||
	"github.com/stretchr/testify/require"
 | 
						"github.com/stretchr/testify/require"
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func TestFractionalBalances_Validate(t *testing.T) {
 | 
					func TestFractionalBalances_Validate(t *testing.T) {
 | 
				
			||||||
	app.SetSDKConfig()
 | 
						chaincfg.SetSDKConfig()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	tests := []struct {
 | 
						tests := []struct {
 | 
				
			||||||
		name    string
 | 
							name    string
 | 
				
			||||||
 | 
				
			|||||||
@ -4,7 +4,7 @@ import (
 | 
				
			|||||||
	"testing"
 | 
						"testing"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	sdkmath "cosmossdk.io/math"
 | 
						sdkmath "cosmossdk.io/math"
 | 
				
			||||||
	"github.com/0glabs/0g-chain/app"
 | 
						"github.com/0glabs/0g-chain/chaincfg"
 | 
				
			||||||
	"github.com/0glabs/0g-chain/x/precisebank/testutil"
 | 
						"github.com/0glabs/0g-chain/x/precisebank/testutil"
 | 
				
			||||||
	"github.com/0glabs/0g-chain/x/precisebank/types"
 | 
						"github.com/0glabs/0g-chain/x/precisebank/types"
 | 
				
			||||||
	sdk "github.com/cosmos/cosmos-sdk/types"
 | 
						sdk "github.com/cosmos/cosmos-sdk/types"
 | 
				
			||||||
@ -12,7 +12,7 @@ import (
 | 
				
			|||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func TestGenesisStateValidate_Basic(t *testing.T) {
 | 
					func TestGenesisStateValidate_Basic(t *testing.T) {
 | 
				
			||||||
	app.SetSDKConfig()
 | 
						chaincfg.SetSDKConfig()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	testCases := []struct {
 | 
						testCases := []struct {
 | 
				
			||||||
		name         string
 | 
							name         string
 | 
				
			||||||
 | 
				
			|||||||
@ -12,6 +12,8 @@ import (
 | 
				
			|||||||
	tmprototypes "github.com/cometbft/cometbft/proto/tendermint/types"
 | 
						tmprototypes "github.com/cometbft/cometbft/proto/tendermint/types"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	"github.com/0glabs/0g-chain/app"
 | 
						"github.com/0glabs/0g-chain/app"
 | 
				
			||||||
 | 
						"github.com/0glabs/0g-chain/x/pricefeed/keeper"
 | 
				
			||||||
 | 
						"github.com/0glabs/0g-chain/x/pricefeed/testutil"
 | 
				
			||||||
	"github.com/0glabs/0g-chain/x/pricefeed/types"
 | 
						"github.com/0glabs/0g-chain/x/pricefeed/types"
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user