Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@
* [1667](https://github.com/zeta-chain/node/issues/1667) - estimate SegWit tx size in uinit of vByte
* [1675](https://github.com/zeta-chain/node/issues/1675) - use chain param ConfirmationCount for bitcoin confirmation

## Chores
* [1694](https://github.com/zeta-chain/node/pull/1694) - remove standalone network, use require testing package for the entire node folder

## Version: v12.1.0

### Tests
Expand All @@ -90,6 +93,7 @@
* [1585](https://github.com/zeta-chain/node/pull/1585) - Updated release instructions
* [1615](https://github.com/zeta-chain/node/pull/1615) - Add upgrade handler for version v12.1.0


### Features

* [1591](https://github.com/zeta-chain/node/pull/1591) - support lower gas limit for voting on inbound and outbound transactions
Expand Down
8 changes: 4 additions & 4 deletions cmd/zetacored/parsers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"os"

sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/tendermint/tendermint/crypto"
"github.com/zeta-chain/zetacore/app"

Expand All @@ -18,14 +18,14 @@ func TestParsefileToObserverMapper(t *testing.T) {
file := "tmp.json"
defer func(t *testing.T, fp string) {
err := os.RemoveAll(fp)
assert.NoError(t, err)
require.NoError(t, err)
}(t, file)
app.SetConfig()
createObserverList(file)
obsListReadFromFile, err := ParsefileToObserverDetails(file)
assert.NoError(t, err)
require.NoError(t, err)
for _, obs := range obsListReadFromFile {
assert.Equal(t, obs.ZetaClientGranteeAddress, sdk.AccAddress(crypto.AddressHash([]byte("ObserverGranteeAddress"))).String())
require.Equal(t, obs.ZetaClientGranteeAddress, sdk.AccAddress(crypto.AddressHash([]byte("ObserverGranteeAddress"))).String())
}
}

Expand Down
18 changes: 9 additions & 9 deletions common/coin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,51 +4,51 @@ import (
"testing"

sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/zeta-chain/zetacore/common"
)

func Test_GetAzetaDecFromAmountInZeta(t *testing.T) {
tt := []struct {
name string
zetaAmount string
err assert.ErrorAssertionFunc
err require.ErrorAssertionFunc
azetaAmount sdk.Dec
}{
{
name: "valid zeta amount",
zetaAmount: "210000000",
err: assert.NoError,
err: require.NoError,
azetaAmount: sdk.MustNewDecFromStr("210000000000000000000000000"),
},
{
name: "very high zeta amount",
zetaAmount: "21000000000000000000",
err: assert.NoError,
err: require.NoError,
azetaAmount: sdk.MustNewDecFromStr("21000000000000000000000000000000000000"),
},
{
name: "very low zeta amount",
zetaAmount: "1",
err: assert.NoError,
err: require.NoError,
azetaAmount: sdk.MustNewDecFromStr("1000000000000000000"),
},
{
name: "zero zeta amount",
zetaAmount: "0",
err: assert.NoError,
err: require.NoError,
azetaAmount: sdk.MustNewDecFromStr("0"),
},
{
name: "decimal zeta amount",
zetaAmount: "0.1",
err: assert.NoError,
err: require.NoError,
azetaAmount: sdk.MustNewDecFromStr("100000000000000000"),
},
{
name: "invalid zeta amount",
zetaAmount: "%%%%%$#",
err: assert.Error,
err: require.Error,
azetaAmount: sdk.MustNewDecFromStr("0"),
},
}
Expand All @@ -57,7 +57,7 @@ func Test_GetAzetaDecFromAmountInZeta(t *testing.T) {
azeta, err := common.GetAzetaDecFromAmountInZeta(tc.zetaAmount)
tc.err(t, err)
if err == nil {
assert.Equal(t, tc.azetaAmount, azeta)
require.Equal(t, tc.azetaAmount, azeta)
}
})
}
Expand Down
23 changes: 0 additions & 23 deletions standalone-network/add-emissions.sh

This file was deleted.

14 changes: 0 additions & 14 deletions standalone-network/add-observer.sh

This file was deleted.

10 changes: 0 additions & 10 deletions standalone-network/authz/commands.sh

This file was deleted.

35 changes: 0 additions & 35 deletions standalone-network/authz/tx.json

This file was deleted.

16 changes: 0 additions & 16 deletions standalone-network/cctx/cctx-creator-gas.sh

This file was deleted.

65 changes: 0 additions & 65 deletions standalone-network/cctx/cctx-creator-goerili.sh

This file was deleted.

16 changes: 0 additions & 16 deletions standalone-network/cctx/cctx-creator-zeta.sh

This file was deleted.

31 changes: 0 additions & 31 deletions standalone-network/cctx_authz/commands.sh

This file was deleted.

34 changes: 0 additions & 34 deletions standalone-network/cctx_authz/gas_price_voter_zeta.json

This file was deleted.

Loading