Skip to content

Commit

Permalink
fix e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lumtis committed Jan 15, 2025
1 parent b3ca8d6 commit 18dbe44
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions e2e/e2etests/test_migrate_chain_support.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"os/exec"
"time"

sdkmath "cosmossdk.io/math"
"github.com/ethereum/go-ethereum/accounts/abi/bind"
ethcommon "github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/ethclient"
Expand Down Expand Up @@ -79,6 +80,7 @@ func TestMigrateChainSupport(r *runner.E2ERunner, _ []string) {
"sETH",
coin.CoinType_Gas,
100000,
sdkmath.NewUintFromString("100000000000000000000000000"),
),
)
require.NoError(r, err)
Expand Down Expand Up @@ -165,6 +167,7 @@ func TestMigrateChainSupport(r *runner.E2ERunner, _ []string) {
"USDT",
18,
100000,
sdkmath.NewUintFromString("100000000000000000000000000"),
))
require.NoError(r, err)

Expand Down
2 changes: 2 additions & 0 deletions e2e/e2etests/test_solana_whitelist_spl.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package e2etests

import (
sdkmath "cosmossdk.io/math"
"github.com/gagliardetto/solana-go"
"github.com/stretchr/testify/require"

Expand Down Expand Up @@ -40,6 +41,7 @@ func TestSolanaWhitelistSPL(r *runner.E2ERunner, _ []string) {
"TESTSPL",
6,
100000,
sdkmath.NewUintFromString("100000000000000000000000000"),
))
require.NoError(r, err)

Expand Down
2 changes: 2 additions & 0 deletions e2e/e2etests/test_whitelist_erc20.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package e2etests
import (
"math/big"

sdkmath "cosmossdk.io/math"
"github.com/ethereum/go-ethereum/accounts/abi/bind"
ethcommon "github.com/ethereum/go-ethereum/common"
ethtypes "github.com/ethereum/go-ethereum/core/types"
Expand Down Expand Up @@ -40,6 +41,7 @@ func TestWhitelistERC20(r *runner.E2ERunner, _ []string) {
"NEWERC20",
6,
100000,
sdkmath.NewUintFromString("100000000000000000000000000"),
))
require.NoError(r, err)

Expand Down
9 changes: 9 additions & 0 deletions e2e/txserver/zeta_tx_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,9 @@ func (zts ZetaTxServer) DeployZRC20s(
deployerAddr = addrOperational.String()
}

// 100M * 10^18
liquidityCap := sdkmath.NewUintFromString("100000000000000000000000000")

deployMsgs := []*fungibletypes.MsgDeployFungibleCoinZRC20{
fungibletypes.NewMsgDeployFungibleCoinZRC20(
deployerAddr,
Expand All @@ -443,6 +446,7 @@ func (zts ZetaTxServer) DeployZRC20s(
"gETH",
coin.CoinType_Gas,
100000,
liquidityCap,
),
fungibletypes.NewMsgDeployFungibleCoinZRC20(
deployerAddr,
Expand All @@ -453,6 +457,7 @@ func (zts ZetaTxServer) DeployZRC20s(
"tBTC",
coin.CoinType_Gas,
100000,
liquidityCap,
),
fungibletypes.NewMsgDeployFungibleCoinZRC20(
deployerAddr,
Expand All @@ -463,6 +468,7 @@ func (zts ZetaTxServer) DeployZRC20s(
"SOL",
coin.CoinType_Gas,
100000,
liquidityCap,
),
fungibletypes.NewMsgDeployFungibleCoinZRC20(
deployerAddr,
Expand All @@ -473,6 +479,7 @@ func (zts ZetaTxServer) DeployZRC20s(
"TON",
coin.CoinType_Gas,
100_000,
liquidityCap,
),
fungibletypes.NewMsgDeployFungibleCoinZRC20(
deployerAddr,
Expand All @@ -483,6 +490,7 @@ func (zts ZetaTxServer) DeployZRC20s(
"USDT",
coin.CoinType_ERC20,
100000,
liquidityCap,
),
}

Expand All @@ -496,6 +504,7 @@ func (zts ZetaTxServer) DeployZRC20s(
"USDT",
coin.CoinType_ERC20,
100000,
liquidityCap,
))
}

Expand Down

0 comments on commit 18dbe44

Please sign in to comment.