Skip to content

Commit

Permalink
Merge PR: prefix <ex> and fix UT (#129)
Browse files Browse the repository at this point in the history
* prefix <ex> and fix UT

* update go mod
  • Loading branch information
ylsGit authored Apr 1, 2021
1 parent 1c936a6 commit cffc85c
Show file tree
Hide file tree
Showing 21 changed files with 102 additions and 76 deletions.
8 changes: 4 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ require (
github.com/cosmos/cosmos-sdk v0.39.2
github.com/ethereum/go-ethereum v1.9.25
github.com/golang/mock v1.5.0
github.com/okex/okexchain v0.16.9-0.20210310104528-ee5068ccb54b
github.com/okex/okexchain v0.17.1-0.20210401032910-a01185ede67b
github.com/stretchr/testify v1.6.1
github.com/tendermint/tendermint v0.33.9
)

replace (
github.com/cosmos/cosmos-sdk => github.com/okex/cosmos-sdk v0.39.2-okexchain9
github.com/tendermint/iavl => github.com/okex/iavl v0.14.1-okexchain1
github.com/tendermint/tendermint => github.com/okex/tendermint v0.33.9-okexchain5
github.com/cosmos/cosmos-sdk => github.com/okex/cosmos-sdk v0.39.3-0.20210329104904-f341de66a7d0
github.com/tendermint/iavl => github.com/okex/iavl v0.14.1-okexchain2
github.com/tendermint/tendermint => github.com/okex/tendermint v0.33.9-okexchain6
)
22 changes: 14 additions & 8 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRF
github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=
github.com/aliyun/alibaba-cloud-sdk-go v1.61.18 h1:zOVTBdCKFd9JbCKz9/nt+FovbjPFmb7mUnp8nH9fQBA=
github.com/aliyun/alibaba-cloud-sdk-go v1.61.18/go.mod h1:v8ESoHo4SyHmuB4b1tJqDHxfTGEciD+yhvOU/5s1Rfk=
github.com/aliyun/aliyun-oss-go-sdk v2.1.6+incompatible h1:Ft+KeWIJxFP76LqgJbvtOA1qBIoC8vGkTV3QeCOeJC4=
github.com/aliyun/aliyun-oss-go-sdk v2.1.6+incompatible/go.mod h1:T/Aws4fEfogEE9v+HPhhw+CntffsBHJ8nXQCwKr0/g8=
github.com/allegro/bigcache v1.2.1-0.20190218064605-e24eb225f156/go.mod h1:Cb/ax3seSYIx7SuZdm2G2xzfwmv3TPSk2ucNfQESPXM=
github.com/allegro/bigcache v1.2.1 h1:hg1sY1raCwic3Vnsvje6TT7/pnZba83LeFck5NrFKSc=
github.com/allegro/bigcache v1.2.1/go.mod h1:Cb/ax3seSYIx7SuZdm2G2xzfwmv3TPSk2ucNfQESPXM=
Expand All @@ -81,6 +83,8 @@ github.com/aws/aws-lambda-go v1.13.3/go.mod h1:4UKl9IzQMoD+QF79YdCuzCwp8VbmG4VAQ
github.com/aws/aws-sdk-go v1.25.48/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo=
github.com/aws/aws-sdk-go v1.27.0/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo=
github.com/aws/aws-sdk-go-v2 v0.18.0/go.mod h1:JWVYvqSMppoMJC0x5wdwiImzgXTI9FuZwxzkQq9wy+g=
github.com/baiyubin/aliyun-sts-go-sdk v0.0.0-20180326062324-cfa1a18b161f h1:ZNv7On9kyUzm7fvRZumSyy/IUiSC7AzL0I1jKKtwooA=
github.com/baiyubin/aliyun-sts-go-sdk v0.0.0-20180326062324-cfa1a18b161f/go.mod h1:AuiFmCCPBSrqvVMvuqFuk0qogytodnVFVSN5CeJB8Gc=
github.com/bartekn/go-bip39 v0.0.0-20171116152956-a05967ea095d h1:1aAija9gr0Hyv4KfQcRcwlmFIrhkDmIj2dz5bkg/s/8=
github.com/bartekn/go-bip39 v0.0.0-20171116152956-a05967ea095d/go.mod h1:icNx/6QdFblhsEjZehARqbNumymUT/ydwlLojFdv7Sk=
github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q=
Expand Down Expand Up @@ -506,14 +510,14 @@ github.com/nats-io/nkeys v0.1.3/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxzi
github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OSON2c=
github.com/nxadm/tail v1.4.4 h1:DQuhQpB1tVlglWS2hLQ5OV6B5r8aGxSrPc5Qo6uTN78=
github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A=
github.com/okex/cosmos-sdk v0.39.2-okexchain9 h1:BgsmfnMdYq+kM2SeJXrUMGniYoYq2KqYodms4KO57ZM=
github.com/okex/cosmos-sdk v0.39.2-okexchain9/go.mod h1:Y1C2roqCVZ6gSYG31X77x4NLcbSGS9VP1GIiAE1imcc=
github.com/okex/iavl v0.14.1-okexchain1 h1:aP9Rpxb1QU06WgTJ/xLyEQbZOiZzKy3once7wGtNLIU=
github.com/okex/iavl v0.14.1-okexchain1/go.mod h1:QmfViflFiXzxKLQE4tAUuWQHq+RSuQFxablW5oJZ6sE=
github.com/okex/okexchain v0.16.9-0.20210310104528-ee5068ccb54b h1:vyDS5CJwW0yEsuF4FUA3C+Kwke7oFUM7IAIGFelpRz4=
github.com/okex/okexchain v0.16.9-0.20210310104528-ee5068ccb54b/go.mod h1:XuAYQ4GUp0uz36YXNuwdjOOkap82MCczmO/E76+lXHo=
github.com/okex/tendermint v0.33.9-okexchain5 h1:EmwYtssONbLjBbkX8SnjvgL5gNdLGzqPi/ch/yn1NC8=
github.com/okex/tendermint v0.33.9-okexchain5/go.mod h1:EoGTbJUufUueNIigY3zyO6f7GOj29OdpFhuR8sxWdSU=
github.com/okex/cosmos-sdk v0.39.3-0.20210329104904-f341de66a7d0 h1:cMq47Sh8+wUyoSOH+41Y7ul+L84Y1W35x+cspmZfYGI=
github.com/okex/cosmos-sdk v0.39.3-0.20210329104904-f341de66a7d0/go.mod h1:Y1C2roqCVZ6gSYG31X77x4NLcbSGS9VP1GIiAE1imcc=
github.com/okex/iavl v0.14.1-okexchain2 h1:vhWUd07zSLAckgaZBVaj/MGAm1FQ6P0i8zTuW/xbMGU=
github.com/okex/iavl v0.14.1-okexchain2/go.mod h1:QmfViflFiXzxKLQE4tAUuWQHq+RSuQFxablW5oJZ6sE=
github.com/okex/okexchain v0.17.1-0.20210401032910-a01185ede67b h1:dDZHxZ8ebYf6SCmUyj+JpSCLMr2PDZtfwsTQBh3Kt9I=
github.com/okex/okexchain v0.17.1-0.20210401032910-a01185ede67b/go.mod h1:23Wkjo1svBZZA/sSUdGxpvnLE6BjgBWWh+dKf4tM47I=
github.com/okex/tendermint v0.33.9-okexchain6 h1:qo/lf7oHfByifXFOYxJqRDbQd55JqREcIEHg/Fu30jE=
github.com/okex/tendermint v0.33.9-okexchain6/go.mod h1:EoGTbJUufUueNIigY3zyO6f7GOj29OdpFhuR8sxWdSU=
github.com/oklog/oklog v0.3.2/go.mod h1:FCV+B7mhrz4o+ueLpx+KqkyXRGMWOYEvfiXtdGtbWGs=
github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA=
github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U=
Expand Down Expand Up @@ -623,6 +627,7 @@ github.com/rs/xhandler v0.0.0-20160618193221-ed27b6fd6521/go.mod h1:RvLn4FgxWubr
github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts=
github.com/samuel/go-zookeeper v0.0.0-20190923202752-2cc03de413da/go.mod h1:gi+0XIa01GRL2eRQVjQkKGqKF3SF9vZR/HnPullcV2E=
github.com/satori/go.uuid v1.2.0 h1:0uYX9dsZ2yD7q2RtLRtPSdGDWzjeM3TbMJP9utgA0ww=
github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0=
github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc=
github.com/segmentio/kafka-go v0.2.2 h1:KIUln5unPisRL2yyAkZsDR/coiymN9Djunv6JKGQ6JI=
Expand Down Expand Up @@ -905,6 +910,7 @@ golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
golang.org/x/time v0.0.0-20191024005414-555d28b269f0 h1:/5xXl8Y5W96D+TtHSlonuFqGHIWVuyCkGJLwGh9JJFs=
golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
golang.org/x/tools v0.0.0-20180828015842-6cd1fcedba52/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
Expand Down
7 changes: 4 additions & 3 deletions module/auth/query_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,20 @@ package auth
import (
"errors"
"fmt"
"testing"

sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/x/auth"
"github.com/golang/mock/gomock"
"github.com/okex/okexchain-go-sdk/mocks"
gosdktypes "github.com/okex/okexchain-go-sdk/types"
"github.com/stretchr/testify/require"
tmbytes "github.com/tendermint/tendermint/libs/bytes"
"testing"
)

const (
addr = "okexchain1ntvyep3suq5z7789g7d5dejwzameu08m6gh7yl"
accPubkey = "okexchainpub17weu6qepq0ph2t3u697qar7rmdtdtqp4744jcprjd2h356zr0yh5vmw38a3my4vqjx5"
addr = "ex1qj5c07sm6jetjz8f509qtrxgh4psxkv3ddyq7u"
accPubkey = "expub17weu6qepqtfc6zq8dukwc3lhlhx7th2csfjw0g3cqnqvanh7z9c2nhkr8mn5z9uq4q6"
)

func TestAuthClient_QueryAccount(t *testing.T) {
Expand Down
7 changes: 4 additions & 3 deletions module/backend/query_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,20 @@ package backend
import (
"errors"
"fmt"
gosdktypes "github.com/okex/okexchain-go-sdk/types"
backendtypes "github.com/okex/okexchain/x/backend/types"
"testing"
"time"

gosdktypes "github.com/okex/okexchain-go-sdk/types"
backendtypes "github.com/okex/okexchain/x/backend/types"

"github.com/golang/mock/gomock"
"github.com/okex/okexchain-go-sdk/mocks"
"github.com/stretchr/testify/require"
tmbytes "github.com/tendermint/tendermint/libs/bytes"
)

const (
addr = "okexchain1ntvyep3suq5z7789g7d5dejwzameu08m6gh7yl"
addr = "ex1qj5c07sm6jetjz8f509qtrxgh4psxkv3ddyq7u"
product = "btc-000_okt"
)

Expand Down
9 changes: 5 additions & 4 deletions module/dex/query_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,27 @@ package dex
import (
"errors"
"fmt"
"testing"

sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/golang/mock/gomock"
"github.com/okex/okexchain-go-sdk/mocks"
gosdktypes "github.com/okex/okexchain-go-sdk/types"
dextypes "github.com/okex/okexchain/x/dex/types"
"github.com/stretchr/testify/require"
tmbytes "github.com/tendermint/tendermint/libs/bytes"
"testing"
)

const (
addr = "okexchain1ntvyep3suq5z7789g7d5dejwzameu08m6gh7yl"
addr = "ex1qj5c07sm6jetjz8f509qtrxgh4psxkv3ddyq7u"
name = "alice"
passWd = "12345678"
accPubkey = "okexchainpub17weu6qepq0ph2t3u697qar7rmdtdtqp4744jcprjd2h356zr0yh5vmw38a3my4vqjx5"
accPubkey = "expub17weu6qepqtfc6zq8dukwc3lhlhx7th2csfjw0g3cqnqvanh7z9c2nhkr8mn5z9uq4q6"
mnemonic = "giggle sibling fun arrow elevator spoon blood grocery laugh tortoise culture tool"
memo = "my memo"

product = "btc-000_okt"
recAddr = "okexchain193xnjknz3e52mqv2nyufnzjugu3mh65rpxdasn"
recAddr = "ex1alrwch5sd3wm3np4njz7l754xtnng6cf4z9s5v"
)

func TestDexClient_QueryProducts(t *testing.T) {
Expand Down
11 changes: 6 additions & 5 deletions module/distribution/tx_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,26 @@ package distribution
import (
"errors"
"fmt"
"testing"

sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/golang/mock/gomock"
"github.com/okex/okexchain-go-sdk/mocks"
"github.com/okex/okexchain-go-sdk/module/auth"
gosdktypes "github.com/okex/okexchain-go-sdk/types"
"github.com/okex/okexchain-go-sdk/utils"
"github.com/stretchr/testify/require"
"testing"
)

const (
addr = "okexchain1ntvyep3suq5z7789g7d5dejwzameu08m6gh7yl"
addr = "ex1qj5c07sm6jetjz8f509qtrxgh4psxkv3ddyq7u"
name = "alice"
passWd = "12345678"
accPubkey = "okexchainpub17weu6qepq0ph2t3u697qar7rmdtdtqp4744jcprjd2h356zr0yh5vmw38a3my4vqjx5"
accPubkey = "expub17weu6qepqtfc6zq8dukwc3lhlhx7th2csfjw0g3cqnqvanh7z9c2nhkr8mn5z9uq4q6"
mnemonic = "giggle sibling fun arrow elevator spoon blood grocery laugh tortoise culture tool"
memo = "my memo"
recAddr = "okexchain1qeh2fz0a4t78ylesd4cyd2mwt5wcfnfj98ev0u"
valAddr = "okexchainvaloper1ntvyep3suq5z7789g7d5dejwzameu08mmv8pca"
recAddr = "ex1qwuag8gx408m9ej038vzx50ntt0x4yrq38yf06"
valAddr = "exvaloper1qwuag8gx408m9ej038vzx50ntt0x4yrq8qwdtq"
)

func TestDistrClient_SetWithdrawAddr(t *testing.T) {
Expand Down
11 changes: 6 additions & 5 deletions module/evm/query_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,26 @@ package evm
import (
"errors"
"fmt"
"strings"
"testing"

"github.com/ethereum/go-ethereum/common"
"github.com/golang/mock/gomock"
"github.com/okex/okexchain-go-sdk/mocks"
gosdktypes "github.com/okex/okexchain-go-sdk/types"
"github.com/okex/okexchain-go-sdk/utils"
evmtypes "github.com/okex/okexchain/x/evm/types"
"github.com/stretchr/testify/require"
"strings"
"testing"
)

const (
addr = "okexchain1ntvyep3suq5z7789g7d5dejwzameu08m6gh7yl"
addr = "ex1qj5c07sm6jetjz8f509qtrxgh4psxkv3ddyq7u"
name = "alice"
passWd = "12345678"
accPubkey = "okexchainpub17weu6qepq0ph2t3u697qar7rmdtdtqp4744jcprjd2h356zr0yh5vmw38a3my4vqjx5"
accPubkey = "expub17weu6qepqtfc6zq8dukwc3lhlhx7th2csfjw0g3cqnqvanh7z9c2nhkr8mn5z9uq4q6"
mnemonic = "giggle sibling fun arrow elevator spoon blood grocery laugh tortoise culture tool"
memo = "my memo"
recAddr = "okexchain193xnjknz3e52mqv2nyufnzjugu3mh65rpxdasn"
recAddr = "ex1alrwch5sd3wm3np4njz7l754xtnng6cf4z9s5v"
recAddrEth = "0x2c4d395A628e68aD818a9938998a5C4723BBEa83"
defaultPayloadStr = "0x0123456789abcdef"
badPayloadStr = "0x0123456789abcdefg"
Expand Down
7 changes: 4 additions & 3 deletions module/farm/query_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,22 @@ package farm
import (
"errors"
"fmt"
"testing"

sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/golang/mock/gomock"
"github.com/okex/okexchain-go-sdk/mocks"
gosdktypes "github.com/okex/okexchain-go-sdk/types"
farmtypes "github.com/okex/okexchain/x/farm/types"
"github.com/stretchr/testify/require"
tmbytes "github.com/tendermint/tendermint/libs/bytes"
"testing"
)

const (
addr = "okexchain1ntvyep3suq5z7789g7d5dejwzameu08m6gh7yl"
addr = "ex1qj5c07sm6jetjz8f509qtrxgh4psxkv3ddyq7u"
name = "alice"
passWd = "12345678"
accPubkey = "okexchainpub17weu6qepq0ph2t3u697qar7rmdtdtqp4744jcprjd2h356zr0yh5vmw38a3my4vqjx5"
accPubkey = "expub17weu6qepqtfc6zq8dukwc3lhlhx7th2csfjw0g3cqnqvanh7z9c2nhkr8mn5z9uq4q6"
mnemonic = "giggle sibling fun arrow elevator spoon blood grocery laugh tortoise culture tool"
memo = "my memo"

Expand Down
9 changes: 5 additions & 4 deletions module/governance/query_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,23 @@ package governance
import (
"errors"
"fmt"
"testing"
"time"

sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/golang/mock/gomock"
"github.com/okex/okexchain-go-sdk/mocks"
gosdktypes "github.com/okex/okexchain-go-sdk/types"
govtypes "github.com/okex/okexchain/x/gov/types"
"github.com/stretchr/testify/require"
tmbytes "github.com/tendermint/tendermint/libs/bytes"
"testing"
"time"
)

const (
addr = "okexchain1ntvyep3suq5z7789g7d5dejwzameu08m6gh7yl"
addr = "ex1qj5c07sm6jetjz8f509qtrxgh4psxkv3ddyq7u"
name = "alice"
passWd = "12345678"
accPubkey = "okexchainpub17weu6qepq0ph2t3u697qar7rmdtdtqp4744jcprjd2h356zr0yh5vmw38a3my4vqjx5"
accPubkey = "expub17weu6qepqtfc6zq8dukwc3lhlhx7th2csfjw0g3cqnqvanh7z9c2nhkr8mn5z9uq4q6"
mnemonic = "giggle sibling fun arrow elevator spoon blood grocery laugh tortoise culture tool"
memo = "my memo"
)
Expand Down
5 changes: 3 additions & 2 deletions module/governance/tx_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ package governance

import (
"errors"
gosdktypes "github.com/okex/okexchain-go-sdk/types"
"io/ioutil"
"os"
"testing"

gosdktypes "github.com/okex/okexchain-go-sdk/types"

sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/golang/mock/gomock"
"github.com/okex/okexchain-go-sdk/mocks"
Expand All @@ -26,7 +27,7 @@ const (
textProposalJSON = `{"title":"Text Proposal","description":"text proposal description","proposal_type":"Text","deposit":"100okt"}`
paramsChangeProposalJSON = `{"title":"Param Change Proposal","description":"param change proposal description","changes":[{"subspace":"staking","key":"MaxValidators","value":105}],"deposit":[{"denom":"okt","amount":"100"}],"height":"1024"}`
delistProposalJSON = `{"title":"Delist Proposal","description":"delist proposal description","base_asset":"btc-000","quote_asset":"okt","deposit":[{"denom":"okt","amount":"100"}]}`
communityPoolSpendProposalJSON = `{"title":"Community Pool Spend Proposal","description":"community pool spend description","recipient":"okexchain1ntvyep3suq5z7789g7d5dejwzameu08m6gh7yl","amount":[{"denom":"okt","amount":"10.24"}],"deposit":[{"denom":"okt","amount":"100"}]}`
communityPoolSpendProposalJSON = `{"title":"Community Pool Spend Proposal","description":"community pool spend description","recipient":"ex1qj5c07sm6jetjz8f509qtrxgh4psxkv3ddyq7u","amount":[{"denom":"okt","amount":"10.24"}],"deposit":[{"denom":"okt","amount":"100"}]}`
manageWhiteListProposalJSON = `{"title":"Manage White List Proposal","description":"manage white list description","pool_name":"pool1","is_added":true,"deposit":[{"denom":"tokt","amount":"100"}]}`
)

Expand Down
7 changes: 4 additions & 3 deletions module/order/query_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ package order
import (
"errors"
"fmt"
"testing"

sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/golang/mock/gomock"
"github.com/okex/okexchain-go-sdk/mocks"
Expand All @@ -11,14 +13,13 @@ import (
ordertypes "github.com/okex/okexchain/x/order/types"
"github.com/stretchr/testify/require"
tmbytes "github.com/tendermint/tendermint/libs/bytes"
"testing"
)

const (
addr = "okexchain1ntvyep3suq5z7789g7d5dejwzameu08m6gh7yl"
addr = "ex1qj5c07sm6jetjz8f509qtrxgh4psxkv3ddyq7u"
name = "alice"
passWd = "12345678"
accPubkey = "okexchainpub17weu6qepq0ph2t3u697qar7rmdtdtqp4744jcprjd2h356zr0yh5vmw38a3my4vqjx5"
accPubkey = "expub17weu6qepqtfc6zq8dukwc3lhlhx7th2csfjw0g3cqnqvanh7z9c2nhkr8mn5z9uq4q6"
mnemonic = "giggle sibling fun arrow elevator spoon blood grocery laugh tortoise culture tool"
memo = "my memo"

Expand Down
7 changes: 4 additions & 3 deletions module/slashing/tx_test.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package slashing

import (
gosdktypes "github.com/okex/okexchain-go-sdk/types"
"testing"

gosdktypes "github.com/okex/okexchain-go-sdk/types"

sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/golang/mock/gomock"
"github.com/okex/okexchain-go-sdk/mocks"
Expand All @@ -13,10 +14,10 @@ import (
)

const (
addr = "okexchain1ntvyep3suq5z7789g7d5dejwzameu08m6gh7yl"
addr = "ex1qj5c07sm6jetjz8f509qtrxgh4psxkv3ddyq7u"
name = "alice"
passWd = "12345678"
accPubkey = "okexchainpub17weu6qepq0ph2t3u697qar7rmdtdtqp4744jcprjd2h356zr0yh5vmw38a3my4vqjx5"
accPubkey = "expub17weu6qepqtfc6zq8dukwc3lhlhx7th2csfjw0g3cqnqvanh7z9c2nhkr8mn5z9uq4q6"
mnemonic = "giggle sibling fun arrow elevator spoon blood grocery laugh tortoise culture tool"
memo = "my memo"
)
Expand Down
15 changes: 8 additions & 7 deletions module/staking/query_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,28 @@ package staking
import (
"errors"
"fmt"
"testing"
"time"

sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/golang/mock/gomock"
"github.com/okex/okexchain-go-sdk/mocks"
gosdktypes "github.com/okex/okexchain-go-sdk/types"
stakingtypes "github.com/okex/okexchain/x/staking/types"
"github.com/stretchr/testify/require"
tmbytes "github.com/tendermint/tendermint/libs/bytes"
"testing"
"time"
)

const (
addr = "okexchain1ntvyep3suq5z7789g7d5dejwzameu08m6gh7yl"
addr = "ex1qj5c07sm6jetjz8f509qtrxgh4psxkv3ddyq7u"
name = "alice"
passWd = "12345678"
accPubkey = "okexchainpub17weu6qepq0ph2t3u697qar7rmdtdtqp4744jcprjd2h356zr0yh5vmw38a3my4vqjx5"
accPubkey = "expub17weu6qepqtfc6zq8dukwc3lhlhx7th2csfjw0g3cqnqvanh7z9c2nhkr8mn5z9uq4q6"
mnemonic = "giggle sibling fun arrow elevator spoon blood grocery laugh tortoise culture tool"
memo = "my memo"
valAddr = "okexchainvaloper1ntvyep3suq5z7789g7d5dejwzameu08mmv8pca"
valConsPK = "okexchainvalconspub1zcjduepq24jtmdyzapg50mevhfnhjl09q876xe5dj4ajsda9q6at2dtrpvmse0tav6"
proxyAddr = "okexchain193xnjknz3e52mqv2nyufnzjugu3mh65rpxdasn"
valAddr = "exvaloper1qwuag8gx408m9ej038vzx50ntt0x4yrq8qwdtq"
valConsPK = "exvalconspub1zcjduepqs2c6xnrfjwxzfclrpq4rh5mxrwlxmncvq6l48ah3ccdew2j6nnfsh3tc5f"
proxyAddr = "ex1alrwch5sd3wm3np4njz7l754xtnng6cf4z9s5v"

defaultMoniker = "default moniker"
defaultIdentity = "default identity"
Expand Down
Loading

0 comments on commit cffc85c

Please sign in to comment.