From 720e4818924393c2104e2ecd5901195f44e5f157 Mon Sep 17 00:00:00 2001 From: Zhong Qiu <36867992+zhongqiuwood@users.noreply.github.com> Date: Mon, 12 Apr 2021 18:17:40 +0800 Subject: [PATCH] Merge PR: rename to exchain (#816) --- .circleci/config.yml | 4 +- Makefile | 2 +- app/ante/ante.go | 4 +- app/ante/ante_test.go | 8 +-- app/ante/eth.go | 4 +- app/ante/utils_test.go | 10 ++-- app/app.go | 56 +++++++++---------- app/app_test.go | 10 ++-- app/codec/codec.go | 4 +- app/crypto/hd/algorithm.go | 2 +- app/crypto/hd/algorithm_test.go | 4 +- app/engine.go | 2 +- app/export.go | 8 +-- app/refund/refund.go | 2 +- app/rpc/apis.go | 20 +++---- app/rpc/backend/backend.go | 6 +- app/rpc/config.go | 6 +- app/rpc/namespaces/eth/api.go | 16 +++--- app/rpc/namespaces/eth/filters/api.go | 4 +- .../namespaces/eth/filters/filter_system.go | 4 +- app/rpc/namespaces/eth/filters/filters.go | 2 +- app/rpc/namespaces/eth/utils.go | 4 +- app/rpc/namespaces/eth/utils_test.go | 2 +- app/rpc/namespaces/net/api.go | 2 +- app/rpc/namespaces/personal/api.go | 8 +-- app/rpc/tests/rpc_test.go | 4 +- .../tests/tests-pending/rpc_pending_test.go | 2 +- app/rpc/tests/utils_test.go | 6 +- app/rpc/types/utils.go | 4 +- app/rpc/websockets/pubsub_api.go | 6 +- app/rpc/websockets/types.go | 2 +- app/simulation_test.go | 6 +- app/types/account_test.go | 4 +- cmd/client/config.go | 2 +- cmd/client/export.go | 4 +- cmd/client/flags.go | 8 +-- cmd/client/keys.go | 2 +- cmd/client/testnet.go | 10 ++-- cmd/okexchaincli/main.go | 16 +++--- cmd/okexchaind/export_app.go | 2 +- cmd/okexchaind/genaccounts.go | 6 +- cmd/okexchaind/main.go | 18 +++--- cmd/okexchaind/rest.go | 38 ++++++------- go.mod | 2 +- go.sum | 2 + x/ammswap/alias.go | 4 +- x/ammswap/client/cli/query.go | 2 +- x/ammswap/client/cli/tx.go | 2 +- x/ammswap/client/rest/query.go | 4 +- x/ammswap/genesis.go | 4 +- x/ammswap/genesis_test.go | 2 +- x/ammswap/handler.go | 8 +-- x/ammswap/handler_test.go | 6 +- x/ammswap/keeper/common_test.go | 6 +- x/ammswap/keeper/keeper.go | 6 +- x/ammswap/keeper/keeper_test.go | 2 +- x/ammswap/keeper/querier.go | 4 +- x/ammswap/keeper/querier_test.go | 4 +- x/ammswap/keeper/swap.go | 2 +- x/ammswap/keeper/swap_test.go | 4 +- x/ammswap/mock_test.go | 6 +- x/ammswap/module.go | 4 +- x/ammswap/module_test.go | 2 +- x/ammswap/test_common.go | 4 +- x/ammswap/types/expected_keepers.go | 4 +- x/ammswap/types/msg_test.go | 2 +- x/ammswap/types/params.go | 2 +- x/ammswap/types/swap.go | 2 +- x/ammswap/types/test_common.go | 6 +- x/backend/abci.go | 4 +- x/backend/alias.go | 8 +-- x/backend/cache/cache.go | 2 +- x/backend/cache/cache_test.go | 4 +- x/backend/cases/utils.go | 4 +- x/backend/cases/utils_test.go | 2 +- x/backend/client/cli/query.go | 2 +- x/backend/client/rest/farm.go | 4 +- x/backend/client/rest/rest.go | 6 +- x/backend/client/rest/rest_v2.go | 4 +- x/backend/client/rest/swap.go | 4 +- x/backend/keeper/farm_querier.go | 8 +-- x/backend/keeper/keeper.go | 12 ++-- x/backend/keeper/keeper_channel.go | 6 +- x/backend/keeper/querier.go | 6 +- x/backend/keeper/querier_v2.go | 4 +- x/backend/keeper/swap_querier.go | 8 +-- x/backend/keeper_test.go | 16 +++--- x/backend/mock_test.go | 36 ++++++------ x/backend/module.go | 4 +- x/backend/orm/farm.go | 2 +- x/backend/orm/orm.go | 4 +- x/backend/orm/orm_mysql_sys_test.go | 6 +- x/backend/orm/orm_test.go | 6 +- x/backend/orm/swap.go | 2 +- x/backend/querier_test.go | 6 +- x/backend/ticker_test.go | 8 +-- x/backend/types/expected_keepers.go | 16 +++--- x/backend/types/klines_test.go | 2 +- x/backend/types/params_test.go | 2 +- x/backend/types/tx.go | 6 +- x/backend/types/tx_test.go | 10 ++-- x/backend/types/types.go | 2 +- x/backend/types/types_v2.go | 2 +- x/backend/types/types_v2_test.go | 2 +- x/common/perf/performance.go | 2 +- x/common/util.go | 4 +- x/common/util_test.go | 2 +- x/debug/alias.go | 4 +- x/debug/client/cli/debug.go | 2 +- x/debug/keeper/keeper.go | 2 +- x/debug/keeper/querier.go | 4 +- x/debug/module.go | 2 +- x/debug/types/expected_keepers.go | 2 +- x/dex/alias.go | 10 ++-- x/dex/client/cli/query.go | 2 +- x/dex/client/cli/tx.go | 8 +-- x/dex/client/proposal_handler.go | 6 +- x/dex/client/rest/rest.go | 6 +- x/dex/endblocker.go | 4 +- x/dex/genesis.go | 4 +- x/dex/genesis_test.go | 4 +- x/dex/handler.go | 6 +- x/dex/handler_test.go | 4 +- x/dex/keeper/expected_keeper.go | 6 +- x/dex/keeper/invariant.go | 2 +- x/dex/keeper/invariant_test.go | 2 +- x/dex/keeper/keeper.go | 4 +- x/dex/keeper/keeper_test.go | 4 +- x/dex/keeper/product_lock.go | 4 +- x/dex/keeper/product_lock_test.go | 2 +- x/dex/keeper/proposal.go | 8 +-- x/dex/keeper/proposal_test.go | 8 +-- x/dex/keeper/querier.go | 4 +- x/dex/keeper/querier_test.go | 4 +- x/dex/keeper/test_common.go | 12 ++-- x/dex/legacy/v0_11/migrate.go | 4 +- x/dex/legacy/v0_11/types.go | 2 +- x/dex/mock.go | 4 +- x/dex/module.go | 8 +-- x/dex/module_test.go | 4 +- x/dex/proposal_handler.go | 6 +- x/dex/proposal_handler_test.go | 6 +- x/dex/types/msgs_test.go | 2 +- x/dex/types/params.go | 4 +- x/dex/types/proposal.go | 2 +- x/dex/types/proposal_test.go | 2 +- x/distribution/abci.go | 2 +- x/distribution/abci_test.go | 2 +- x/distribution/alias.go | 12 ++-- x/distribution/client/cli/query.go | 4 +- x/distribution/client/cli/tx.go | 4 +- x/distribution/client/common/common.go | 2 +- x/distribution/client/proposal_handler.go | 6 +- x/distribution/client/rest/query.go | 6 +- x/distribution/client/rest/rest.go | 8 +-- x/distribution/client/rest/tx.go | 6 +- x/distribution/genesis.go | 2 +- x/distribution/genesis_test.go | 4 +- x/distribution/handler.go | 6 +- x/distribution/keeper/alias_functions.go | 2 +- x/distribution/keeper/allocation.go | 6 +- x/distribution/keeper/allocation_test.go | 4 +- x/distribution/keeper/hooks.go | 4 +- x/distribution/keeper/hooks_test.go | 2 +- x/distribution/keeper/invariants.go | 4 +- x/distribution/keeper/invariants_test.go | 2 +- x/distribution/keeper/keeper.go | 4 +- x/distribution/keeper/params.go | 2 +- x/distribution/keeper/proposal_handler.go | 2 +- x/distribution/keeper/querier.go | 4 +- x/distribution/keeper/querier_test.go | 2 +- x/distribution/keeper/store.go | 2 +- x/distribution/keeper/test_common.go | 6 +- x/distribution/keeper/validator.go | 4 +- x/distribution/module.go | 6 +- x/distribution/module_test.go | 4 +- x/distribution/proposal_handler_test.go | 6 +- x/distribution/types/expected_keepers.go | 2 +- x/distribution/types/params.go | 2 +- x/distribution/types/proposal.go | 2 +- x/evidence/alias.go | 4 +- x/evidence/client/cli/query.go | 4 +- x/evidence/client/cli/tx.go | 2 +- x/evidence/client/evidence_handler.go | 2 +- x/evidence/client/rest/query.go | 2 +- x/evidence/genesis_test.go | 8 +-- x/evidence/handler_test.go | 4 +- x/evidence/internal/keeper/infraction.go | 2 +- x/evidence/internal/keeper/infraction_test.go | 6 +- x/evidence/internal/keeper/keeper.go | 6 +- x/evidence/internal/keeper/keeper_test.go | 10 ++-- x/evidence/internal/keeper/params.go | 2 +- x/evidence/internal/keeper/params_test.go | 2 +- x/evidence/internal/keeper/querier.go | 4 +- x/evidence/internal/keeper/querier_test.go | 4 +- x/evidence/internal/types/codec.go | 2 +- x/evidence/internal/types/codec_test.go | 4 +- x/evidence/internal/types/evidence_test.go | 2 +- x/evidence/internal/types/expected_keepers.go | 2 +- x/evidence/internal/types/genesis.go | 2 +- x/evidence/internal/types/genesis_test.go | 4 +- x/evidence/internal/types/msgs.go | 2 +- x/evidence/internal/types/msgs_test.go | 4 +- x/evidence/internal/types/params.go | 2 +- x/evidence/internal/types/router.go | 2 +- x/evidence/internal/types/router_test.go | 4 +- x/evidence/internal/types/test_util.go | 2 +- x/evidence/module.go | 6 +- x/evm/alias.go | 4 +- x/evm/client/cli/query.go | 4 +- x/evm/client/cli/tx.go | 8 +-- x/evm/client/proposal_handler.go | 6 +- x/evm/client/rest/rest.go | 8 +-- x/evm/client/utils/utils.go | 2 +- x/evm/client/utils/utils_test.go | 4 +- x/evm/export_operation.go | 2 +- x/evm/genesis.go | 4 +- x/evm/genesis_test.go | 10 ++-- x/evm/handler.go | 8 +-- x/evm/handler_test.go | 14 ++--- x/evm/keeper/abci.go | 2 +- x/evm/keeper/abci_test.go | 2 +- x/evm/keeper/expected_keeper.go | 2 +- x/evm/keeper/invariants.go | 4 +- x/evm/keeper/invariants_test.go | 4 +- x/evm/keeper/keeper.go | 6 +- x/evm/keeper/keeper_direct.go | 2 +- x/evm/keeper/keeper_test.go | 8 +-- x/evm/keeper/params.go | 2 +- x/evm/keeper/params_test.go | 2 +- x/evm/keeper/proposal.go | 8 +-- x/evm/keeper/proposal_test.go | 4 +- x/evm/keeper/querier.go | 4 +- x/evm/keeper/querier_test.go | 2 +- x/evm/keeper/statedb.go | 2 +- x/evm/keeper/statedb_test.go | 6 +- x/evm/module.go | 6 +- x/evm/proposal_handler.go | 6 +- x/evm/proposal_handler_test.go | 6 +- x/evm/types/access_list_test.go | 2 +- x/evm/types/genesis_test.go | 2 +- x/evm/types/journal_test.go | 6 +- x/evm/types/logs_test.go | 2 +- x/evm/types/msg.go | 2 +- x/evm/types/msg_test.go | 2 +- x/evm/types/params.go | 2 +- x/evm/types/proposal.go | 2 +- x/evm/types/proposal_test.go | 2 +- x/evm/types/state_object.go | 2 +- x/evm/types/state_transition_test.go | 6 +- x/evm/types/statedb.go | 4 +- x/evm/types/statedb_test.go | 8 +-- x/evm/types/tx_data.go | 2 +- x/evm/types/utils.go | 2 +- x/evm/watcher/querier.go | 2 +- x/evm/watcher/types.go | 4 +- x/evm/watcher/watcher.go | 2 +- x/farm/abci.go | 4 +- x/farm/abci_test.go | 6 +- x/farm/alias.go | 4 +- x/farm/client/cli/query.go | 2 +- x/farm/client/cli/tx.go | 6 +- x/farm/client/proposal_handler.go | 6 +- x/farm/client/rest/query.go | 4 +- x/farm/client/rest/rest.go | 2 +- x/farm/client/rest/tx.go | 2 +- x/farm/genesis.go | 4 +- x/farm/genesis_test.go | 4 +- x/farm/handler.go | 8 +-- x/farm/handler_lock.go | 4 +- x/farm/handler_pool.go | 6 +- x/farm/handler_test.go | 12 ++-- x/farm/keeper/calc.go | 2 +- x/farm/keeper/calc_test.go | 2 +- x/farm/keeper/earnings.go | 2 +- x/farm/keeper/expected_keeper.go | 2 +- x/farm/keeper/farm_pool.go | 4 +- x/farm/keeper/farm_pool_test.go | 4 +- x/farm/keeper/historical_reward.go | 2 +- x/farm/keeper/historical_reward_test.go | 4 +- x/farm/keeper/invariants.go | 2 +- x/farm/keeper/invariants_test.go | 2 +- x/farm/keeper/keeper.go | 6 +- x/farm/keeper/params.go | 2 +- x/farm/keeper/proposal.go | 8 +-- x/farm/keeper/proposal_test.go | 4 +- x/farm/keeper/querier.go | 4 +- x/farm/keeper/querier_test.go | 2 +- x/farm/keeper/test_common.go | 16 +++--- x/farm/keeper/whitelist.go | 4 +- x/farm/keeper/whitelist_test.go | 4 +- x/farm/module.go | 8 +-- x/farm/module_test.go | 4 +- x/farm/proposal_handler.go | 6 +- x/farm/proposal_handler_test.go | 8 +-- x/farm/types/expected_keepers.go | 2 +- x/farm/types/farm_pool_test.go | 2 +- x/farm/types/params.go | 4 +- x/farm/types/proposal.go | 2 +- x/farm/types/proposal_test.go | 4 +- x/genutil/alias.go | 2 +- x/genutil/client/cli/collect.go | 2 +- x/genutil/client/cli/gentx.go | 2 +- x/genutil/client/cli/init.go | 2 +- x/genutil/collect.go | 2 +- x/genutil/genesis.go | 2 +- x/genutil/gentx.go | 2 +- x/genutil/module.go | 2 +- x/genutil/types/codec.go | 2 +- x/genutil/types/genesis_state.go | 2 +- x/gov/alias.go | 4 +- x/gov/client/cli/parse.go | 2 +- x/gov/client/cli/query.go | 4 +- x/gov/client/cli/tx.go | 4 +- x/gov/client/proposal_handler.go | 2 +- x/gov/client/rest/rest.go | 4 +- x/gov/client/utils/query.go | 2 +- x/gov/client/utils/utils.go | 2 +- x/gov/endblocker.go | 6 +- x/gov/endblocker_test.go | 10 ++-- x/gov/genesis.go | 4 +- x/gov/genesis_test.go | 4 +- x/gov/handler.go | 6 +- x/gov/handler_test.go | 6 +- x/gov/invariants.go | 4 +- x/gov/invariants_test.go | 4 +- x/gov/keeper/deposit.go | 2 +- x/gov/keeper/deposit_test.go | 6 +- x/gov/keeper/expected_keepers.go | 2 +- x/gov/keeper/keeper.go | 8 +-- x/gov/keeper/keeper_test.go | 2 +- x/gov/keeper/proposal.go | 2 +- x/gov/keeper/proposal_handler_router.go | 2 +- x/gov/keeper/proposal_handler_router_test.go | 2 +- x/gov/keeper/proposal_test.go | 6 +- x/gov/keeper/querier.go | 4 +- x/gov/keeper/querier_test.go | 4 +- x/gov/keeper/router.go | 2 +- x/gov/keeper/tally.go | 4 +- x/gov/keeper/tally_test.go | 6 +- x/gov/keeper/test_common.go | 6 +- x/gov/keeper/vote.go | 2 +- x/gov/keeper/vote_test.go | 2 +- x/gov/module.go | 12 ++-- x/gov/module_test.go | 8 +-- x/gov/types/params.go | 2 +- x/order/alias.go | 4 +- x/order/app_test.go | 10 ++-- x/order/beginblocker.go | 8 +-- x/order/client/cli/query.go | 4 +- x/order/client/cli/tx.go | 2 +- x/order/client/rest/rest.go | 6 +- x/order/client/rest/rest_doc.go | 4 +- x/order/client/rest/rest_v2.go | 6 +- x/order/endblocker.go | 8 +-- x/order/endblocker_test.go | 10 ++-- x/order/genesis.go | 4 +- x/order/genesis_test.go | 8 +-- x/order/handler.go | 8 +-- x/order/handler_test.go | 10 ++-- x/order/keeper/disk_cache.go | 2 +- x/order/keeper/disk_cache_keeper.go | 4 +- x/order/keeper/disk_cache_test.go | 4 +- x/order/keeper/dump_store_test.go | 6 +- x/order/keeper/expect_keepers.go | 6 +- x/order/keeper/fee.go | 2 +- x/order/keeper/fee_test.go | 4 +- x/order/keeper/invariant.go | 4 +- x/order/keeper/invariant_test.go | 6 +- x/order/keeper/keeper.go | 8 +-- x/order/keeper/keeper_dump.go | 4 +- x/order/keeper/keeper_test.go | 8 +-- x/order/keeper/memory_cache.go | 2 +- x/order/keeper/memory_cache_test.go | 2 +- x/order/keeper/order.go | 4 +- x/order/keeper/order_map_test.go | 4 +- x/order/keeper/order_test.go | 8 +-- x/order/keeper/product_lock.go | 2 +- x/order/keeper/product_lock_test.go | 4 +- x/order/keeper/querier.go | 4 +- x/order/keeper/querier_test.go | 4 +- x/order/keeper/test_common.go | 12 ++-- x/order/legacy/v0_11/migrate.go | 2 +- x/order/legacy/v0_11/types.go | 2 +- x/order/match/continuousauction/impl.go | 2 +- x/order/match/engine.go | 6 +- x/order/match/periodicauction/fill.go | 6 +- x/order/match/periodicauction/fill_test.go | 8 +-- x/order/match/periodicauction/impl.go | 2 +- x/order/match/periodicauction/impl_test.go | 6 +- x/order/match/periodicauction/match.go | 4 +- x/order/match/periodicauction/match_test.go | 6 +- x/order/module.go | 10 ++-- x/order/module_test.go | 6 +- x/order/types/const.go | 2 +- x/order/types/msgs_test.go | 2 +- x/order/types/order_test.go | 2 +- x/order/types/params.go | 4 +- x/order/types/params_test.go | 2 +- x/params/alias.go | 2 +- x/params/client/cli/query.go | 2 +- x/params/client/cli/tx.go | 6 +- x/params/client/proposal_handler.go | 6 +- x/params/client/rest/rest.go | 6 +- x/params/codec.go | 2 +- x/params/keeper.go | 2 +- x/params/module.go | 4 +- x/params/proposal_handler.go | 6 +- x/params/querier.go | 2 +- x/params/types/params.go | 2 +- x/params/types/proposal.go | 2 +- x/slashing/alias.go | 4 +- x/slashing/client/cli/query.go | 2 +- x/slashing/client/cli/tx.go | 2 +- x/slashing/client/rest/query.go | 2 +- x/slashing/client/rest/tx.go | 2 +- x/slashing/genesis.go | 4 +- x/slashing/handler.go | 2 +- x/slashing/internal/keeper/hooks.go | 2 +- x/slashing/internal/keeper/infractions.go | 2 +- x/slashing/internal/keeper/keeper.go | 2 +- .../internal/keeper/keeper_okexchain.go | 2 +- x/slashing/internal/keeper/params.go | 2 +- x/slashing/internal/keeper/querier.go | 2 +- x/slashing/internal/keeper/signing_info.go | 2 +- x/slashing/internal/keeper/test_common.go | 6 +- x/slashing/internal/keeper/unjail.go | 2 +- x/slashing/internal/types/expected_keepers.go | 4 +- x/slashing/internal/types/params.go | 2 +- x/slashing/module.go | 10 ++-- x/slashing/simulation/decoder.go | 2 +- x/slashing/simulation/genesis.go | 2 +- x/slashing/simulation/operations.go | 6 +- x/slashing/simulation/params.go | 2 +- x/staking/alias.go | 12 ++-- x/staking/app_test.go | 4 +- x/staking/client/cli/flags.go | 2 +- x/staking/client/cli/query.go | 2 +- x/staking/client/cli/tx.go | 4 +- x/staking/client/cli/tx_vote.go | 2 +- x/staking/client/rest/query.go | 4 +- x/staking/client/rest/tx.go | 4 +- x/staking/client/rest/utils.go | 4 +- x/staking/common_test.go | 4 +- x/staking/delegator_test.go | 4 +- x/staking/genesis.go | 4 +- x/staking/genesis_test.go | 6 +- x/staking/handler.go | 4 +- x/staking/handler_shares.go | 4 +- x/staking/handler_shares_test.go | 2 +- x/staking/handler_test.go | 4 +- x/staking/keeper/alias_functions.go | 4 +- x/staking/keeper/delegation.go | 2 +- x/staking/keeper/delegator.go | 2 +- x/staking/keeper/hooks.go | 2 +- x/staking/keeper/invariants.go | 4 +- x/staking/keeper/invariants_test.go | 2 +- x/staking/keeper/keeper.go | 6 +- x/staking/keeper/min_self_delegation.go | 2 +- x/staking/keeper/params.go | 4 +- x/staking/keeper/pool.go | 2 +- x/staking/keeper/proxy.go | 2 +- x/staking/keeper/proxy_test.go | 2 +- x/staking/keeper/querier.go | 4 +- x/staking/keeper/querier_test.go | 2 +- x/staking/keeper/shares.go | 2 +- x/staking/keeper/shares_test.go | 2 +- x/staking/keeper/test_common.go | 6 +- x/staking/keeper/val_state.go | 2 +- x/staking/keeper/val_state_change.go | 2 +- x/staking/keeper/validator.go | 2 +- x/staking/keeper/weight.go | 2 +- x/staking/legacy/v0_11/migrate.go | 2 +- x/staking/legacy/v0_11/types.go | 2 +- x/staking/module.go | 10 ++-- x/staking/simulation/operations.go | 2 +- x/staking/types/delegator.go | 2 +- x/staking/types/expected_keepers.go | 2 +- x/staking/types/msg.go | 2 +- x/staking/types/params.go | 4 +- x/staking/types/validator.go | 2 +- x/staking/types/validator_test.go | 2 +- x/staking/validator_state_machine_test.go | 2 +- x/staking/validator_test.go | 2 +- x/stream/alias.go | 2 +- x/stream/analyservice/service.go | 4 +- x/stream/analyservice/types.go | 10 ++-- x/stream/common/getdata.go | 4 +- x/stream/common/kline/kline.go | 8 +-- x/stream/common/kline/market.go | 2 +- x/stream/common/memory_cache.go | 6 +- x/stream/coordinator.go | 2 +- x/stream/distrlock/redis_distr_state_lock.go | 2 +- x/stream/endblocker.go | 10 ++-- x/stream/engine.go | 20 +++---- x/stream/engine_test.go | 2 +- x/stream/eureka/client.go | 2 +- x/stream/eureka/start.go | 2 +- x/stream/kafkaclient/producer.go | 4 +- x/stream/keeper.go | 10 ++-- x/stream/market_keeper.go | 6 +- x/stream/nacos/start.go | 2 +- x/stream/pulsarclient/producer.go | 4 +- x/stream/pulsarclient/producer_test.go | 6 +- x/stream/pushservice/service.go | 8 +-- x/stream/pushservice/types/types.go | 12 ++-- x/stream/pushservice/types/utils.go | 2 +- x/stream/stream.go | 16 +++--- x/stream/task.go | 2 +- x/stream/test_common.go | 16 +++--- x/stream/types/expected_keeper.go | 12 ++-- x/stream/websocket/cache.go | 4 +- x/stream/websocket/service.go | 2 +- x/stream/websocket/types.go | 6 +- x/token/alias.go | 2 +- x/token/beginblocker.go | 4 +- x/token/client/cli/query.go | 2 +- x/token/client/cli/tx.go | 2 +- x/token/client/rest/rest.go | 4 +- x/token/client/rest/rest_doc.go | 2 +- x/token/client/rest/rest_v2.go | 4 +- x/token/export_accounts.go | 2 +- x/token/genesis.go | 4 +- x/token/genesis_test.go | 4 +- x/token/handler.go | 8 +-- x/token/handler_test.go | 12 ++-- x/token/keeper.go | 6 +- x/token/keeper_test.go | 4 +- x/token/legacy/v0_11/migrate.go | 2 +- x/token/legacy/v0_11/types.go | 2 +- x/token/module.go | 4 +- x/token/module_basic.go | 6 +- x/token/module_test.go | 6 +- x/token/querier.go | 4 +- x/token/querier_test.go | 4 +- x/token/querier_v2.go | 4 +- x/token/test_common.go | 4 +- x/token/token_test.go | 8 +-- x/token/types/msgs.go | 2 +- x/token/types/msgs_test.go | 2 +- x/token/types/params.go | 4 +- x/token/types/params_test.go | 4 +- x/token/types/token_test.go | 2 +- x/token/types/util_test.go | 2 +- 544 files changed, 1243 insertions(+), 1241 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 96921731d9..2f8f841618 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -65,7 +65,7 @@ jobs: export GO111MODULE=on mkdir -p /tmp/logs /tmp/workspace/profiles - excluded_packages_expr="(okexchain/x/.*/client)|(x/simulation)|(okexchain/app/rpc)" + excluded_packages_expr="(exchain/x/.*/client)|(x/simulation)|(exchain/app/rpc)" included_packages=("./app" "./x/common" "./x/params" "./x/distribution" "./x/staking" "./x/gov" "./x/ammswap" "./x/token" "./x/farm" "./x/evm") serial_exec_packages=("./app") norace_exec_packages=("./x/evm") @@ -99,7 +99,7 @@ jobs: echo "--> Filter out DONTCOVER:" excludelist="$(find . -type f -name '*.go' | xargs grep -l 'DONTCOVER')" for filename in ${excludelist}; do - filename=$(echo $filename | sed 's/^./github.com\/okex\/okexchain/g') + filename=$(echo $filename | sed 's/^./github.com\/okex\/exchain/g') echo "Excluding ${filename} from coverage report..." sed -i.bak "/$(echo $filename | sed 's/\//\\\//g')/d" coverage.txt done diff --git a/Makefile b/Makefile index 2f59915f68..44cce8b4b4 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ export GO111MODULE=on GithubTop=github.com -Version=v0.17.0 +Version=v0.17.1 CosmosSDK=v0.39.2 Tendermint=v0.33.9 Iavl=v0.14.3 diff --git a/app/ante/ante.go b/app/ante/ante.go index 420141d6fb..8b129aaa28 100644 --- a/app/ante/ante.go +++ b/app/ante/ante.go @@ -8,8 +8,8 @@ import ( "github.com/cosmos/cosmos-sdk/x/auth/keeper" "github.com/cosmos/cosmos-sdk/x/auth/types" - "github.com/okex/okexchain/app/crypto/ethsecp256k1" - evmtypes "github.com/okex/okexchain/x/evm/types" + "github.com/okex/exchain/app/crypto/ethsecp256k1" + evmtypes "github.com/okex/exchain/x/evm/types" tmcrypto "github.com/tendermint/tendermint/crypto" ) diff --git a/app/ante/ante_test.go b/app/ante/ante_test.go index 23a636584a..dab834d60d 100644 --- a/app/ante/ante_test.go +++ b/app/ante/ante_test.go @@ -14,10 +14,10 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/app" - "github.com/okex/okexchain/app/ante" - "github.com/okex/okexchain/app/types" - evmtypes "github.com/okex/okexchain/x/evm/types" + "github.com/okex/exchain/app" + "github.com/okex/exchain/app/ante" + "github.com/okex/exchain/app/types" + evmtypes "github.com/okex/exchain/x/evm/types" ) func requireValidTx( diff --git a/app/ante/eth.go b/app/ante/eth.go index baba6dd6ac..c68a428afd 100644 --- a/app/ante/eth.go +++ b/app/ante/eth.go @@ -11,8 +11,8 @@ import ( "github.com/cosmos/cosmos-sdk/x/auth/types" "github.com/ethereum/go-ethereum/common" ethcore "github.com/ethereum/go-ethereum/core" - ethermint "github.com/okex/okexchain/app/types" - evmtypes "github.com/okex/okexchain/x/evm/types" + ethermint "github.com/okex/exchain/app/types" + evmtypes "github.com/okex/exchain/x/evm/types" ) // EVMKeeper defines the expected keeper interface used on the Eth AnteHandler diff --git a/app/ante/utils_test.go b/app/ante/utils_test.go index 689b695bc7..19f8a9ac06 100644 --- a/app/ante/utils_test.go +++ b/app/ante/utils_test.go @@ -10,11 +10,11 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/x/auth" - "github.com/okex/okexchain/app" - ante "github.com/okex/okexchain/app/ante" - "github.com/okex/okexchain/app/crypto/ethsecp256k1" - okexchain "github.com/okex/okexchain/app/types" - evmtypes "github.com/okex/okexchain/x/evm/types" + "github.com/okex/exchain/app" + ante "github.com/okex/exchain/app/ante" + "github.com/okex/exchain/app/crypto/ethsecp256k1" + okexchain "github.com/okex/exchain/app/types" + evmtypes "github.com/okex/exchain/x/evm/types" ethcrypto "github.com/ethereum/go-ethereum/crypto" diff --git a/app/app.go b/app/app.go index 3cd1381fc1..6d5ad7e66d 100644 --- a/app/app.go +++ b/app/app.go @@ -18,34 +18,34 @@ import ( "github.com/cosmos/cosmos-sdk/x/mint" "github.com/cosmos/cosmos-sdk/x/supply" "github.com/cosmos/cosmos-sdk/x/upgrade" - "github.com/okex/okexchain/app/ante" - okexchaincodec "github.com/okex/okexchain/app/codec" - "github.com/okex/okexchain/app/refund" - okexchain "github.com/okex/okexchain/app/types" - "github.com/okex/okexchain/x/ammswap" - "github.com/okex/okexchain/x/backend" - "github.com/okex/okexchain/x/common/perf" - commonversion "github.com/okex/okexchain/x/common/version" - "github.com/okex/okexchain/x/debug" - "github.com/okex/okexchain/x/dex" - dexclient "github.com/okex/okexchain/x/dex/client" - distr "github.com/okex/okexchain/x/distribution" - "github.com/okex/okexchain/x/evidence" - "github.com/okex/okexchain/x/evm" - evmclient "github.com/okex/okexchain/x/evm/client" - evmtypes "github.com/okex/okexchain/x/evm/types" - "github.com/okex/okexchain/x/farm" - farmclient "github.com/okex/okexchain/x/farm/client" - "github.com/okex/okexchain/x/genutil" - "github.com/okex/okexchain/x/gov" - "github.com/okex/okexchain/x/gov/keeper" - "github.com/okex/okexchain/x/order" - "github.com/okex/okexchain/x/params" - paramsclient "github.com/okex/okexchain/x/params/client" - "github.com/okex/okexchain/x/slashing" - "github.com/okex/okexchain/x/staking" - "github.com/okex/okexchain/x/stream" - "github.com/okex/okexchain/x/token" + "github.com/okex/exchain/app/ante" + okexchaincodec "github.com/okex/exchain/app/codec" + "github.com/okex/exchain/app/refund" + okexchain "github.com/okex/exchain/app/types" + "github.com/okex/exchain/x/ammswap" + "github.com/okex/exchain/x/backend" + "github.com/okex/exchain/x/common/perf" + commonversion "github.com/okex/exchain/x/common/version" + "github.com/okex/exchain/x/debug" + "github.com/okex/exchain/x/dex" + dexclient "github.com/okex/exchain/x/dex/client" + distr "github.com/okex/exchain/x/distribution" + "github.com/okex/exchain/x/evidence" + "github.com/okex/exchain/x/evm" + evmclient "github.com/okex/exchain/x/evm/client" + evmtypes "github.com/okex/exchain/x/evm/types" + "github.com/okex/exchain/x/farm" + farmclient "github.com/okex/exchain/x/farm/client" + "github.com/okex/exchain/x/genutil" + "github.com/okex/exchain/x/gov" + "github.com/okex/exchain/x/gov/keeper" + "github.com/okex/exchain/x/order" + "github.com/okex/exchain/x/params" + paramsclient "github.com/okex/exchain/x/params/client" + "github.com/okex/exchain/x/slashing" + "github.com/okex/exchain/x/staking" + "github.com/okex/exchain/x/stream" + "github.com/okex/exchain/x/token" abci "github.com/tendermint/tendermint/abci/types" "github.com/tendermint/tendermint/crypto/tmhash" "github.com/tendermint/tendermint/libs/log" diff --git a/app/app_test.go b/app/app_test.go index 558c9c01f8..2ad8854939 100644 --- a/app/app_test.go +++ b/app/app_test.go @@ -2,11 +2,11 @@ package app import ( "github.com/cosmos/cosmos-sdk/x/upgrade" - "github.com/okex/okexchain/x/debug" - "github.com/okex/okexchain/x/dex" - distr "github.com/okex/okexchain/x/distribution" - "github.com/okex/okexchain/x/farm" - "github.com/okex/okexchain/x/params" + "github.com/okex/exchain/x/debug" + "github.com/okex/exchain/x/dex" + distr "github.com/okex/exchain/x/distribution" + "github.com/okex/exchain/x/farm" + "github.com/okex/exchain/x/params" "os" "testing" diff --git a/app/codec/codec.go b/app/codec/codec.go index 7339f2b833..9c86586774 100644 --- a/app/codec/codec.go +++ b/app/codec/codec.go @@ -7,8 +7,8 @@ import ( "github.com/cosmos/cosmos-sdk/types/module" "github.com/cosmos/cosmos-sdk/x/auth/vesting" - cryptocodec "github.com/okex/okexchain/app/crypto/ethsecp256k1" - ethermint "github.com/okex/okexchain/app/types" + cryptocodec "github.com/okex/exchain/app/crypto/ethsecp256k1" + ethermint "github.com/okex/exchain/app/types" ) // MakeCodec registers the necessary types and interfaces for an sdk.App. This diff --git a/app/crypto/hd/algorithm.go b/app/crypto/hd/algorithm.go index e2838e722d..7a88ae4f5e 100644 --- a/app/crypto/hd/algorithm.go +++ b/app/crypto/hd/algorithm.go @@ -14,7 +14,7 @@ import ( "github.com/cosmos/cosmos-sdk/crypto/keys" - "github.com/okex/okexchain/app/crypto/ethsecp256k1" + "github.com/okex/exchain/app/crypto/ethsecp256k1" ) const ( diff --git a/app/crypto/hd/algorithm_test.go b/app/crypto/hd/algorithm_test.go index 87bfd765e8..109f699423 100644 --- a/app/crypto/hd/algorithm_test.go +++ b/app/crypto/hd/algorithm_test.go @@ -15,8 +15,8 @@ import ( "github.com/cosmos/cosmos-sdk/crypto/keys/hd" "github.com/cosmos/cosmos-sdk/tests" - "github.com/okex/okexchain/app/crypto/ethsecp256k1" - ethermint "github.com/okex/okexchain/app/types" + "github.com/okex/exchain/app/crypto/ethsecp256k1" + ethermint "github.com/okex/exchain/app/types" ) func TestEthermintKeygenFunc(t *testing.T) { diff --git a/app/engine.go b/app/engine.go index 7419653efb..90eed39640 100644 --- a/app/engine.go +++ b/app/engine.go @@ -1,7 +1,7 @@ package app import ( - "github.com/okex/okexchain/x/common/monitor" + "github.com/okex/exchain/x/common/monitor" ) var ( diff --git a/app/export.go b/app/export.go index 0ee338b126..3b37955953 100644 --- a/app/export.go +++ b/app/export.go @@ -10,11 +10,11 @@ import ( "github.com/cosmos/cosmos-sdk/codec" "github.com/cosmos/cosmos-sdk/simapp" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/slashing" - "github.com/okex/okexchain/x/staking" - "github.com/okex/okexchain/x/staking/exported" + "github.com/okex/exchain/x/slashing" + "github.com/okex/exchain/x/staking" + "github.com/okex/exchain/x/staking/exported" - ethcdc "github.com/okex/okexchain/app/codec" + ethcdc "github.com/okex/exchain/app/codec" ) // NewDefaultGenesisState generates the default state for the application. diff --git a/app/refund/refund.go b/app/refund/refund.go index 940a7e19cc..5b9e44b037 100644 --- a/app/refund/refund.go +++ b/app/refund/refund.go @@ -12,7 +12,7 @@ import ( sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/cosmos/cosmos-sdk/x/auth" "github.com/cosmos/cosmos-sdk/x/auth/types" - evmtypes "github.com/okex/okexchain/x/evm/types" + evmtypes "github.com/okex/exchain/x/evm/types" ) func NewGasRefundHandler(ak auth.AccountKeeper, sk types.SupplyKeeper) sdk.GasRefundHandler { diff --git a/app/rpc/apis.go b/app/rpc/apis.go index 9bcab31d92..4c575e2972 100644 --- a/app/rpc/apis.go +++ b/app/rpc/apis.go @@ -4,19 +4,19 @@ import ( "github.com/cosmos/cosmos-sdk/client/context" "github.com/cosmos/cosmos-sdk/server" "github.com/ethereum/go-ethereum/rpc" - evmtypes "github.com/okex/okexchain/x/evm/types" + evmtypes "github.com/okex/exchain/x/evm/types" "github.com/spf13/viper" "github.com/tendermint/tendermint/libs/log" - "github.com/okex/okexchain/app/crypto/ethsecp256k1" - "github.com/okex/okexchain/app/rpc/backend" - "github.com/okex/okexchain/app/rpc/namespaces/eth" - "github.com/okex/okexchain/app/rpc/namespaces/eth/filters" - "github.com/okex/okexchain/app/rpc/namespaces/net" - "github.com/okex/okexchain/app/rpc/namespaces/personal" - "github.com/okex/okexchain/app/rpc/namespaces/web3" - rpctypes "github.com/okex/okexchain/app/rpc/types" - "github.com/okex/okexchain/cmd/client" + "github.com/okex/exchain/app/crypto/ethsecp256k1" + "github.com/okex/exchain/app/rpc/backend" + "github.com/okex/exchain/app/rpc/namespaces/eth" + "github.com/okex/exchain/app/rpc/namespaces/eth/filters" + "github.com/okex/exchain/app/rpc/namespaces/net" + "github.com/okex/exchain/app/rpc/namespaces/personal" + "github.com/okex/exchain/app/rpc/namespaces/web3" + rpctypes "github.com/okex/exchain/app/rpc/types" + "github.com/okex/exchain/cmd/client" ) // RPC namespaces and API version diff --git a/app/rpc/backend/backend.go b/app/rpc/backend/backend.go index d611aa8d20..82c72b3740 100644 --- a/app/rpc/backend/backend.go +++ b/app/rpc/backend/backend.go @@ -4,12 +4,12 @@ import ( "context" "fmt" - "github.com/okex/okexchain/x/evm/watcher" + "github.com/okex/exchain/x/evm/watcher" "github.com/tendermint/tendermint/libs/log" - rpctypes "github.com/okex/okexchain/app/rpc/types" - evmtypes "github.com/okex/okexchain/x/evm/types" + rpctypes "github.com/okex/exchain/app/rpc/types" + evmtypes "github.com/okex/exchain/x/evm/types" clientcontext "github.com/cosmos/cosmos-sdk/client/context" diff --git a/app/rpc/config.go b/app/rpc/config.go index 615cbc4b5f..2038ca501a 100644 --- a/app/rpc/config.go +++ b/app/rpc/config.go @@ -15,9 +15,9 @@ import ( "github.com/cosmos/cosmos-sdk/crypto/keys" cmserver "github.com/cosmos/cosmos-sdk/server" "github.com/ethereum/go-ethereum/rpc" - "github.com/okex/okexchain/app/crypto/ethsecp256k1" - "github.com/okex/okexchain/app/crypto/hd" - "github.com/okex/okexchain/app/rpc/websockets" + "github.com/okex/exchain/app/crypto/ethsecp256k1" + "github.com/okex/exchain/app/crypto/hd" + "github.com/okex/exchain/app/rpc/websockets" ) const ( diff --git a/app/rpc/namespaces/eth/api.go b/app/rpc/namespaces/eth/api.go index f1858efee6..e5c57b98e3 100644 --- a/app/rpc/namespaces/eth/api.go +++ b/app/rpc/namespaces/eth/api.go @@ -9,20 +9,20 @@ import ( "sync" "time" - "github.com/okex/okexchain/x/evm/watcher" + "github.com/okex/exchain/x/evm/watcher" cmserver "github.com/cosmos/cosmos-sdk/server" "github.com/ethereum/go-ethereum/accounts" "github.com/ethereum/go-ethereum/crypto" "github.com/spf13/viper" - "github.com/okex/okexchain/app/crypto/ethsecp256k1" - "github.com/okex/okexchain/app/crypto/hd" - "github.com/okex/okexchain/app/rpc/backend" - rpctypes "github.com/okex/okexchain/app/rpc/types" - ethermint "github.com/okex/okexchain/app/types" - "github.com/okex/okexchain/app/utils" - evmtypes "github.com/okex/okexchain/x/evm/types" + "github.com/okex/exchain/app/crypto/ethsecp256k1" + "github.com/okex/exchain/app/crypto/hd" + "github.com/okex/exchain/app/rpc/backend" + rpctypes "github.com/okex/exchain/app/rpc/types" + ethermint "github.com/okex/exchain/app/types" + "github.com/okex/exchain/app/utils" + evmtypes "github.com/okex/exchain/x/evm/types" abci "github.com/tendermint/tendermint/abci/types" "github.com/tendermint/tendermint/crypto/merkle" diff --git a/app/rpc/namespaces/eth/filters/api.go b/app/rpc/namespaces/eth/filters/api.go index 9d9639bfdb..2be2d776a5 100644 --- a/app/rpc/namespaces/eth/filters/api.go +++ b/app/rpc/namespaces/eth/filters/api.go @@ -18,8 +18,8 @@ import ( clientcontext "github.com/cosmos/cosmos-sdk/client/context" - rpctypes "github.com/okex/okexchain/app/rpc/types" - evmtypes "github.com/okex/okexchain/x/evm/types" + rpctypes "github.com/okex/exchain/app/rpc/types" + evmtypes "github.com/okex/exchain/x/evm/types" ) // Backend defines the methods requided by the PublicFilterAPI backend diff --git a/app/rpc/namespaces/eth/filters/filter_system.go b/app/rpc/namespaces/eth/filters/filter_system.go index 3d4382ae54..60136f297c 100644 --- a/app/rpc/namespaces/eth/filters/filter_system.go +++ b/app/rpc/namespaces/eth/filters/filter_system.go @@ -17,8 +17,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" - rpctypes "github.com/okex/okexchain/app/rpc/types" - evmtypes "github.com/okex/okexchain/x/evm/types" + rpctypes "github.com/okex/exchain/app/rpc/types" + evmtypes "github.com/okex/exchain/x/evm/types" ) var ( diff --git a/app/rpc/namespaces/eth/filters/filters.go b/app/rpc/namespaces/eth/filters/filters.go index 12b65801ed..5f5c712b69 100644 --- a/app/rpc/namespaces/eth/filters/filters.go +++ b/app/rpc/namespaces/eth/filters/filters.go @@ -11,7 +11,7 @@ import ( ethtypes "github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/eth/filters" - rpctypes "github.com/okex/okexchain/app/rpc/types" + rpctypes "github.com/okex/exchain/app/rpc/types" ) // Filter can be used to retrieve and filter logs. diff --git a/app/rpc/namespaces/eth/utils.go b/app/rpc/namespaces/eth/utils.go index 42ac52a170..1f679ee60d 100644 --- a/app/rpc/namespaces/eth/utils.go +++ b/app/rpc/namespaces/eth/utils.go @@ -10,14 +10,14 @@ import ( "github.com/ethereum/go-ethereum/common" - "github.com/okex/okexchain/x/evm/types" + "github.com/okex/exchain/x/evm/types" "github.com/ethereum/go-ethereum/core/vm" "github.com/cosmos/cosmos-sdk/server" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/ethereum/go-ethereum/common/hexutil" - ethermint "github.com/okex/okexchain/app/types" + ethermint "github.com/okex/exchain/app/types" "github.com/spf13/viper" ) diff --git a/app/rpc/namespaces/eth/utils_test.go b/app/rpc/namespaces/eth/utils_test.go index 17d5d2163c..6b30b1f331 100644 --- a/app/rpc/namespaces/eth/utils_test.go +++ b/app/rpc/namespaces/eth/utils_test.go @@ -3,7 +3,7 @@ package eth import ( "testing" - evmtypes "github.com/okex/okexchain/x/evm/types" + evmtypes "github.com/okex/exchain/x/evm/types" "github.com/stretchr/testify/require" ) diff --git a/app/rpc/namespaces/net/api.go b/app/rpc/namespaces/net/api.go index 40218b9901..f36d3944f1 100644 --- a/app/rpc/namespaces/net/api.go +++ b/app/rpc/namespaces/net/api.go @@ -4,7 +4,7 @@ import ( "fmt" "github.com/cosmos/cosmos-sdk/client/context" - ethermint "github.com/okex/okexchain/app/types" + ethermint "github.com/okex/exchain/app/types" ) // PublicNetAPI is the eth_ prefixed set of APIs in the Web3 JSON-RPC spec. diff --git a/app/rpc/namespaces/personal/api.go b/app/rpc/namespaces/personal/api.go index de2e95360f..c15b39f0aa 100644 --- a/app/rpc/namespaces/personal/api.go +++ b/app/rpc/namespaces/personal/api.go @@ -17,10 +17,10 @@ import ( "github.com/ethereum/go-ethereum/common/hexutil" "github.com/ethereum/go-ethereum/crypto" - "github.com/okex/okexchain/app/crypto/ethsecp256k1" - "github.com/okex/okexchain/app/crypto/hd" - "github.com/okex/okexchain/app/rpc/namespaces/eth" - rpctypes "github.com/okex/okexchain/app/rpc/types" + "github.com/okex/exchain/app/crypto/ethsecp256k1" + "github.com/okex/exchain/app/crypto/hd" + "github.com/okex/exchain/app/rpc/namespaces/eth" + rpctypes "github.com/okex/exchain/app/rpc/types" ) // PrivateAccountAPI is the personal_ prefixed set of APIs in the Web3 JSON-RPC spec. diff --git a/app/rpc/tests/rpc_test.go b/app/rpc/tests/rpc_test.go index 08cb363d6e..dc67017800 100644 --- a/app/rpc/tests/rpc_test.go +++ b/app/rpc/tests/rpc_test.go @@ -23,8 +23,8 @@ import ( ethcmn "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/hexutil" ethtypes "github.com/ethereum/go-ethereum/core/types" - "github.com/okex/okexchain/app/rpc/types" - "github.com/okex/okexchain/app/rpc/websockets" + "github.com/okex/exchain/app/rpc/types" + "github.com/okex/exchain/app/rpc/websockets" "github.com/stretchr/testify/require" "golang.org/x/net/websocket" ) diff --git a/app/rpc/tests/tests-pending/rpc_pending_test.go b/app/rpc/tests/tests-pending/rpc_pending_test.go index a3c1ad4b3a..23b8417957 100644 --- a/app/rpc/tests/tests-pending/rpc_pending_test.go +++ b/app/rpc/tests/tests-pending/rpc_pending_test.go @@ -12,7 +12,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" ethcmn "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/hexutil" - util "github.com/okex/okexchain/app/rpc/tests" + util "github.com/okex/exchain/app/rpc/tests" "github.com/stretchr/testify/require" "math/big" "os" diff --git a/app/rpc/tests/utils_test.go b/app/rpc/tests/utils_test.go index 0517002296..c0ab1c7386 100644 --- a/app/rpc/tests/utils_test.go +++ b/app/rpc/tests/utils_test.go @@ -12,9 +12,9 @@ import ( "github.com/ethereum/go-ethereum/common/hexutil" ethtypes "github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/crypto" - "github.com/okex/okexchain/app/crypto/ethsecp256k1" - "github.com/okex/okexchain/app/crypto/hd" - "github.com/okex/okexchain/app/rpc/types" + "github.com/okex/exchain/app/crypto/ethsecp256k1" + "github.com/okex/exchain/app/crypto/hd" + "github.com/okex/exchain/app/rpc/types" "github.com/stretchr/testify/require" tmamino "github.com/tendermint/tendermint/crypto/encoding/amino" "strings" diff --git a/app/rpc/types/utils.go b/app/rpc/types/utils.go index 88a51ef592..9162f27879 100644 --- a/app/rpc/types/utils.go +++ b/app/rpc/types/utils.go @@ -15,8 +15,8 @@ import ( "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/hexutil" ethtypes "github.com/ethereum/go-ethereum/core/types" - "github.com/okex/okexchain/app/crypto/ethsecp256k1" - evmtypes "github.com/okex/okexchain/x/evm/types" + "github.com/okex/exchain/app/crypto/ethsecp256k1" + evmtypes "github.com/okex/exchain/x/evm/types" tmbytes "github.com/tendermint/tendermint/libs/bytes" tmtypes "github.com/tendermint/tendermint/types" ) diff --git a/app/rpc/websockets/pubsub_api.go b/app/rpc/websockets/pubsub_api.go index 1efbedc77b..49901bc393 100644 --- a/app/rpc/websockets/pubsub_api.go +++ b/app/rpc/websockets/pubsub_api.go @@ -16,9 +16,9 @@ import ( "github.com/ethereum/go-ethereum/eth/filters" "github.com/ethereum/go-ethereum/rpc" - rpcfilters "github.com/okex/okexchain/app/rpc/namespaces/eth/filters" - rpctypes "github.com/okex/okexchain/app/rpc/types" - evmtypes "github.com/okex/okexchain/x/evm/types" + rpcfilters "github.com/okex/exchain/app/rpc/namespaces/eth/filters" + rpctypes "github.com/okex/exchain/app/rpc/types" + evmtypes "github.com/okex/exchain/x/evm/types" ) // PubSubAPI is the eth_ prefixed set of APIs in the Web3 JSON-RPC spec diff --git a/app/rpc/websockets/types.go b/app/rpc/websockets/types.go index 18816e64bf..cb340886a2 100644 --- a/app/rpc/websockets/types.go +++ b/app/rpc/websockets/types.go @@ -7,7 +7,7 @@ import ( "github.com/ethereum/go-ethereum/rpc" - rpcfilters "github.com/okex/okexchain/app/rpc/namespaces/eth/filters" + rpcfilters "github.com/okex/exchain/app/rpc/namespaces/eth/filters" ) type SubscriptionResponseJSON struct { diff --git a/app/simulation_test.go b/app/simulation_test.go index d7cc562ad9..8e2c32400c 100644 --- a/app/simulation_test.go +++ b/app/simulation_test.go @@ -20,12 +20,12 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/x/auth" distr "github.com/cosmos/cosmos-sdk/x/distribution" - "github.com/okex/okexchain/x/gov" + "github.com/okex/exchain/x/gov" "github.com/cosmos/cosmos-sdk/x/mint" - "github.com/okex/okexchain/x/params" + "github.com/okex/exchain/x/params" "github.com/cosmos/cosmos-sdk/x/simulation" "github.com/cosmos/cosmos-sdk/x/slashing" - "github.com/okex/okexchain/x/staking" + "github.com/okex/exchain/x/staking" "github.com/cosmos/cosmos-sdk/x/supply" ) diff --git a/app/types/account_test.go b/app/types/account_test.go index 12f5dfb2d4..2ec85f185e 100644 --- a/app/types/account_test.go +++ b/app/types/account_test.go @@ -13,8 +13,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/x/auth" - "github.com/okex/okexchain/app/crypto/ethsecp256k1" - "github.com/okex/okexchain/app/types" + "github.com/okex/exchain/app/crypto/ethsecp256k1" + "github.com/okex/exchain/app/types" ) func init() { diff --git a/cmd/client/config.go b/cmd/client/config.go index 289dd33d99..a7c57c8469 100644 --- a/cmd/client/config.go +++ b/cmd/client/config.go @@ -12,7 +12,7 @@ import ( "github.com/cosmos/cosmos-sdk/client/flags" - ethermint "github.com/okex/okexchain/app/types" + ethermint "github.com/okex/exchain/app/types" ) // InitConfig adds the chain-id, encoding and output flags to the persistent flag set. diff --git a/cmd/client/export.go b/cmd/client/export.go index ac5971e6d0..7a446ac3e5 100644 --- a/cmd/client/export.go +++ b/cmd/client/export.go @@ -15,8 +15,8 @@ import ( "github.com/cosmos/cosmos-sdk/client/input" "github.com/cosmos/cosmos-sdk/crypto/keys" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/app/crypto/ethsecp256k1" - "github.com/okex/okexchain/app/crypto/hd" + "github.com/okex/exchain/app/crypto/ethsecp256k1" + "github.com/okex/exchain/app/crypto/hd" ) // UnsafeExportEthKeyCommand exports a key with the given name as a private key in hex format. diff --git a/cmd/client/flags.go b/cmd/client/flags.go index 5caaa2d242..8072f83aad 100644 --- a/cmd/client/flags.go +++ b/cmd/client/flags.go @@ -1,10 +1,10 @@ package client import ( - evmtypes "github.com/okex/okexchain/x/evm/types" - "github.com/okex/okexchain/x/evm/watcher" - "github.com/okex/okexchain/x/stream" - "github.com/okex/okexchain/x/token" + evmtypes "github.com/okex/exchain/x/evm/types" + "github.com/okex/exchain/x/evm/watcher" + "github.com/okex/exchain/x/stream" + "github.com/okex/exchain/x/token" "github.com/spf13/cobra" ) diff --git a/cmd/client/keys.go b/cmd/client/keys.go index fa7898a551..9a17cc61a3 100644 --- a/cmd/client/keys.go +++ b/cmd/client/keys.go @@ -12,7 +12,7 @@ import ( "github.com/cosmos/cosmos-sdk/crypto/keys" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/app/crypto/hd" + "github.com/okex/exchain/app/crypto/hd" ) const ( diff --git a/cmd/client/testnet.go b/cmd/client/testnet.go index da5d6f4370..5e71ede486 100644 --- a/cmd/client/testnet.go +++ b/cmd/client/testnet.go @@ -25,11 +25,11 @@ import ( govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" "github.com/cosmos/cosmos-sdk/x/mint" ethcrypto "github.com/ethereum/go-ethereum/crypto" - "github.com/okex/okexchain/app/crypto/hd" - ethermint "github.com/okex/okexchain/app/types" - "github.com/okex/okexchain/x/common" - "github.com/okex/okexchain/x/genutil" - stakingtypes "github.com/okex/okexchain/x/staking/types" + "github.com/okex/exchain/app/crypto/hd" + ethermint "github.com/okex/exchain/app/types" + "github.com/okex/exchain/x/common" + "github.com/okex/exchain/x/genutil" + stakingtypes "github.com/okex/exchain/x/staking/types" "github.com/spf13/cobra" "github.com/spf13/viper" tmconfig "github.com/tendermint/tendermint/config" diff --git a/cmd/okexchaincli/main.go b/cmd/okexchaincli/main.go index 964c04bc05..0706506059 100644 --- a/cmd/okexchaincli/main.go +++ b/cmd/okexchaincli/main.go @@ -20,14 +20,14 @@ import ( "github.com/cosmos/cosmos-sdk/x/auth" authcmd "github.com/cosmos/cosmos-sdk/x/auth/client/cli" "github.com/cosmos/cosmos-sdk/x/bank" - tokencmd "github.com/okex/okexchain/x/token/client/cli" - - "github.com/okex/okexchain/app" - "github.com/okex/okexchain/app/codec" - "github.com/okex/okexchain/app/crypto/ethsecp256k1" - "github.com/okex/okexchain/app/rpc" - okexchain "github.com/okex/okexchain/app/types" - "github.com/okex/okexchain/cmd/client" + tokencmd "github.com/okex/exchain/x/token/client/cli" + + "github.com/okex/exchain/app" + "github.com/okex/exchain/app/codec" + "github.com/okex/exchain/app/crypto/ethsecp256k1" + "github.com/okex/exchain/app/rpc" + okexchain "github.com/okex/exchain/app/types" + "github.com/okex/exchain/cmd/client" ) var ( diff --git a/cmd/okexchaind/export_app.go b/cmd/okexchaind/export_app.go index fcd117c172..2c6e1e285c 100644 --- a/cmd/okexchaind/export_app.go +++ b/cmd/okexchaind/export_app.go @@ -5,7 +5,7 @@ import ( "path/filepath" "github.com/cosmos/cosmos-sdk/server" - "github.com/okex/okexchain/app" + "github.com/okex/exchain/app" "github.com/spf13/cobra" ) diff --git a/cmd/okexchaind/genaccounts.go b/cmd/okexchaind/genaccounts.go index 0b00857463..51a39b4874 100644 --- a/cmd/okexchaind/genaccounts.go +++ b/cmd/okexchaind/genaccounts.go @@ -18,10 +18,10 @@ import ( "github.com/cosmos/cosmos-sdk/x/auth" authexported "github.com/cosmos/cosmos-sdk/x/auth/exported" authvesting "github.com/cosmos/cosmos-sdk/x/auth/vesting" - "github.com/okex/okexchain/x/genutil" + "github.com/okex/exchain/x/genutil" - okexchain "github.com/okex/okexchain/app/types" - "github.com/okex/okexchain/app/crypto/hd" + okexchain "github.com/okex/exchain/app/types" + "github.com/okex/exchain/app/crypto/hd" ethcrypto "github.com/ethereum/go-ethereum/crypto" ) diff --git a/cmd/okexchaind/main.go b/cmd/okexchaind/main.go index abae1ffaf5..93751fb159 100644 --- a/cmd/okexchaind/main.go +++ b/cmd/okexchaind/main.go @@ -23,15 +23,15 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/x/auth" - "github.com/okex/okexchain/app" - "github.com/okex/okexchain/app/codec" - "github.com/okex/okexchain/app/crypto/ethsecp256k1" - okexchain "github.com/okex/okexchain/app/types" - "github.com/okex/okexchain/cmd/client" - "github.com/okex/okexchain/x/genutil" - genutilcli "github.com/okex/okexchain/x/genutil/client/cli" - genutiltypes "github.com/okex/okexchain/x/genutil/types" - "github.com/okex/okexchain/x/staking" + "github.com/okex/exchain/app" + "github.com/okex/exchain/app/codec" + "github.com/okex/exchain/app/crypto/ethsecp256k1" + okexchain "github.com/okex/exchain/app/types" + "github.com/okex/exchain/cmd/client" + "github.com/okex/exchain/x/genutil" + genutilcli "github.com/okex/exchain/x/genutil/client/cli" + genutiltypes "github.com/okex/exchain/x/genutil/types" + "github.com/okex/exchain/x/staking" ) const flagInvCheckPeriod = "inv-check-period" diff --git a/cmd/okexchaind/rest.go b/cmd/okexchaind/rest.go index a78ec016d3..3643d78f1b 100644 --- a/cmd/okexchaind/rest.go +++ b/cmd/okexchaind/rest.go @@ -2,7 +2,7 @@ package main import ( "fmt" - evmclient "github.com/okex/okexchain/x/evm/client" + evmclient "github.com/okex/exchain/x/evm/client" "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/lcd" @@ -11,24 +11,24 @@ import ( authrest "github.com/cosmos/cosmos-sdk/x/auth/client/rest" bankrest "github.com/cosmos/cosmos-sdk/x/bank/client/rest" supplyrest "github.com/cosmos/cosmos-sdk/x/supply/client/rest" - "github.com/okex/okexchain/app/rpc" - "github.com/okex/okexchain/app/types" - ammswaprest "github.com/okex/okexchain/x/ammswap/client/rest" - backendrest "github.com/okex/okexchain/x/backend/client/rest" - dexclient "github.com/okex/okexchain/x/dex/client" - dexrest "github.com/okex/okexchain/x/dex/client/rest" - dist "github.com/okex/okexchain/x/distribution" - distr "github.com/okex/okexchain/x/distribution" - distrest "github.com/okex/okexchain/x/distribution/client/rest" - evmrest "github.com/okex/okexchain/x/evm/client/rest" - farmclient "github.com/okex/okexchain/x/farm/client" - farmrest "github.com/okex/okexchain/x/farm/client/rest" - govrest "github.com/okex/okexchain/x/gov/client/rest" - orderrest "github.com/okex/okexchain/x/order/client/rest" - paramsclient "github.com/okex/okexchain/x/params/client" - stakingrest "github.com/okex/okexchain/x/staking/client/rest" - "github.com/okex/okexchain/x/token" - tokensrest "github.com/okex/okexchain/x/token/client/rest" + "github.com/okex/exchain/app/rpc" + "github.com/okex/exchain/app/types" + ammswaprest "github.com/okex/exchain/x/ammswap/client/rest" + backendrest "github.com/okex/exchain/x/backend/client/rest" + dexclient "github.com/okex/exchain/x/dex/client" + dexrest "github.com/okex/exchain/x/dex/client/rest" + dist "github.com/okex/exchain/x/distribution" + distr "github.com/okex/exchain/x/distribution" + distrest "github.com/okex/exchain/x/distribution/client/rest" + evmrest "github.com/okex/exchain/x/evm/client/rest" + farmclient "github.com/okex/exchain/x/farm/client" + farmrest "github.com/okex/exchain/x/farm/client/rest" + govrest "github.com/okex/exchain/x/gov/client/rest" + orderrest "github.com/okex/exchain/x/order/client/rest" + paramsclient "github.com/okex/exchain/x/params/client" + stakingrest "github.com/okex/exchain/x/staking/client/rest" + "github.com/okex/exchain/x/token" + tokensrest "github.com/okex/exchain/x/token/client/rest" "github.com/spf13/viper" ) diff --git a/go.mod b/go.mod index dfe5625719..cc387c1983 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/okex/okexchain +module github.com/okex/exchain go 1.14 diff --git a/go.sum b/go.sum index d0b3babd79..96f2abf60c 100644 --- a/go.sum +++ b/go.sum @@ -500,6 +500,8 @@ 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-exchain1 h1:ue618CeIiCtcEKJqGxgumEgS2JlgLDbD8yUdnqS+/+o= +github.com/okex/cosmos-sdk v0.39.2-exchain1/go.mod h1:Y1C2roqCVZ6gSYG31X77x4NLcbSGS9VP1GIiAE1imcc= github.com/okex/cosmos-sdk v0.39.3-0.20210411062155-2683537970bb h1:lpqIwiS+F0RoIpiviIp0WWvAdYiEziSw39A5XIBJGOg= github.com/okex/cosmos-sdk v0.39.3-0.20210411062155-2683537970bb/go.mod h1:Y1C2roqCVZ6gSYG31X77x4NLcbSGS9VP1GIiAE1imcc= github.com/okex/iavl v0.14.3-exchain h1:kwRIwpFD6B8mDDqoaxeUN3Pg2GW0Vr+sA+b86renWcA= diff --git a/x/ammswap/alias.go b/x/ammswap/alias.go index 46e4a3cef0..89d1c6ceb2 100644 --- a/x/ammswap/alias.go +++ b/x/ammswap/alias.go @@ -1,8 +1,8 @@ package ammswap import ( - "github.com/okex/okexchain/x/ammswap/keeper" - "github.com/okex/okexchain/x/ammswap/types" + "github.com/okex/exchain/x/ammswap/keeper" + "github.com/okex/exchain/x/ammswap/types" ) const ( diff --git a/x/ammswap/client/cli/query.go b/x/ammswap/client/cli/query.go index 913626896f..142d446774 100644 --- a/x/ammswap/client/cli/query.go +++ b/x/ammswap/client/cli/query.go @@ -9,7 +9,7 @@ import ( "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/version" - "github.com/okex/okexchain/x/ammswap/types" + "github.com/okex/exchain/x/ammswap/types" "github.com/spf13/cobra" "strings" ) diff --git a/x/ammswap/client/cli/tx.go b/x/ammswap/client/cli/tx.go index 7028eface2..fada69823a 100644 --- a/x/ammswap/client/cli/tx.go +++ b/x/ammswap/client/cli/tx.go @@ -12,7 +12,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/x/auth" "github.com/cosmos/cosmos-sdk/x/auth/client/utils" - "github.com/okex/okexchain/x/ammswap/types" + "github.com/okex/exchain/x/ammswap/types" "github.com/spf13/cobra" ) diff --git a/x/ammswap/client/rest/query.go b/x/ammswap/client/rest/query.go index 4758169d34..59cff66c34 100644 --- a/x/ammswap/client/rest/query.go +++ b/x/ammswap/client/rest/query.go @@ -9,8 +9,8 @@ import ( "github.com/cosmos/cosmos-sdk/client/context" "github.com/cosmos/cosmos-sdk/types/rest" "github.com/gorilla/mux" - "github.com/okex/okexchain/x/ammswap/types" - "github.com/okex/okexchain/x/common" + "github.com/okex/exchain/x/ammswap/types" + "github.com/okex/exchain/x/common" ) func registerQueryRoutes(cliCtx context.CLIContext, r *mux.Router) { diff --git a/x/ammswap/genesis.go b/x/ammswap/genesis.go index 206e76a470..613233fcdc 100644 --- a/x/ammswap/genesis.go +++ b/x/ammswap/genesis.go @@ -4,8 +4,8 @@ import ( "fmt" sdk "github.com/cosmos/cosmos-sdk/types" - tokentypes "github.com/okex/okexchain/x/token/types" - "github.com/okex/okexchain/x/ammswap/types" + tokentypes "github.com/okex/exchain/x/token/types" + "github.com/okex/exchain/x/ammswap/types" ) // GenesisState stores genesis data, all slashing state that must be provided at genesis diff --git a/x/ammswap/genesis_test.go b/x/ammswap/genesis_test.go index cdd8034e16..9ba4e6e421 100644 --- a/x/ammswap/genesis_test.go +++ b/x/ammswap/genesis_test.go @@ -6,7 +6,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/x/auth/exported" "github.com/cosmos/cosmos-sdk/x/supply" - "github.com/okex/okexchain/x/ammswap/types" + "github.com/okex/exchain/x/ammswap/types" "github.com/stretchr/testify/require" abci "github.com/tendermint/tendermint/abci/types" ) diff --git a/x/ammswap/handler.go b/x/ammswap/handler.go index 3024d30f84..11d69b7cc3 100644 --- a/x/ammswap/handler.go +++ b/x/ammswap/handler.go @@ -1,10 +1,10 @@ package ammswap import ( - "github.com/okex/okexchain/x/ammswap/keeper" - "github.com/okex/okexchain/x/ammswap/types" - "github.com/okex/okexchain/x/common" - "github.com/okex/okexchain/x/common/perf" + "github.com/okex/exchain/x/ammswap/keeper" + "github.com/okex/exchain/x/ammswap/types" + "github.com/okex/exchain/x/common" + "github.com/okex/exchain/x/common/perf" sdk "github.com/cosmos/cosmos-sdk/types" ) diff --git a/x/ammswap/handler_test.go b/x/ammswap/handler_test.go index bdbef1dd4b..d2ce05bcea 100644 --- a/x/ammswap/handler_test.go +++ b/x/ammswap/handler_test.go @@ -8,9 +8,9 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/x/supply" - "github.com/okex/okexchain/x/ammswap/keeper" - "github.com/okex/okexchain/x/ammswap/types" - "github.com/okex/okexchain/x/token" + "github.com/okex/exchain/x/ammswap/keeper" + "github.com/okex/exchain/x/ammswap/types" + "github.com/okex/exchain/x/token" "github.com/stretchr/testify/require" abci "github.com/tendermint/tendermint/abci/types" ) diff --git a/x/ammswap/keeper/common_test.go b/x/ammswap/keeper/common_test.go index 963c90594a..7c07cbfc93 100644 --- a/x/ammswap/keeper/common_test.go +++ b/x/ammswap/keeper/common_test.go @@ -11,13 +11,13 @@ import ( "github.com/cosmos/cosmos-sdk/x/mock" "github.com/cosmos/cosmos-sdk/x/supply" "github.com/cosmos/cosmos-sdk/x/supply/exported" - "github.com/okex/okexchain/x/ammswap/types" - staking "github.com/okex/okexchain/x/staking/types" + "github.com/okex/exchain/x/ammswap/types" + staking "github.com/okex/exchain/x/staking/types" "github.com/stretchr/testify/require" abci "github.com/tendermint/tendermint/abci/types" "github.com/tendermint/tendermint/crypto/secp256k1" - "github.com/okex/okexchain/x/token" + "github.com/okex/exchain/x/token" ) type TestInput struct { diff --git a/x/ammswap/keeper/keeper.go b/x/ammswap/keeper/keeper.go index b7be7b747e..0f94aa3c82 100644 --- a/x/ammswap/keeper/keeper.go +++ b/x/ammswap/keeper/keeper.go @@ -3,14 +3,14 @@ package keeper import ( "fmt" - "github.com/okex/okexchain/x/common" + "github.com/okex/exchain/x/common" "github.com/tendermint/tendermint/libs/log" "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/ammswap/types" - tokentypes "github.com/okex/okexchain/x/token/types" + "github.com/okex/exchain/x/ammswap/types" + tokentypes "github.com/okex/exchain/x/token/types" ) // Keeper of the swap store diff --git a/x/ammswap/keeper/keeper_test.go b/x/ammswap/keeper/keeper_test.go index 5218f6ba6d..bea5c686fb 100644 --- a/x/ammswap/keeper/keeper_test.go +++ b/x/ammswap/keeper/keeper_test.go @@ -5,7 +5,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/x/supply" - "github.com/okex/okexchain/x/ammswap/types" + "github.com/okex/exchain/x/ammswap/types" "github.com/stretchr/testify/require" abci "github.com/tendermint/tendermint/abci/types" ) diff --git a/x/ammswap/keeper/querier.go b/x/ammswap/keeper/querier.go index 157540e454..0a2d76f5c7 100644 --- a/x/ammswap/keeper/querier.go +++ b/x/ammswap/keeper/querier.go @@ -3,11 +3,11 @@ package keeper import ( "encoding/json" - "github.com/okex/okexchain/x/common" + "github.com/okex/exchain/x/common" abci "github.com/tendermint/tendermint/abci/types" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/ammswap/types" + "github.com/okex/exchain/x/ammswap/types" ) // NewQuerier creates a new querier for swap clients. diff --git a/x/ammswap/keeper/querier_test.go b/x/ammswap/keeper/querier_test.go index 20d5cef31b..cdf22a5ca9 100644 --- a/x/ammswap/keeper/querier_test.go +++ b/x/ammswap/keeper/querier_test.go @@ -4,13 +4,13 @@ import ( "encoding/json" "testing" - "github.com/okex/okexchain/x/common" + "github.com/okex/exchain/x/common" "github.com/cosmos/cosmos-sdk/x/mock" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/x/supply" - "github.com/okex/okexchain/x/ammswap/types" + "github.com/okex/exchain/x/ammswap/types" "github.com/stretchr/testify/require" abci "github.com/tendermint/tendermint/abci/types" ) diff --git a/x/ammswap/keeper/swap.go b/x/ammswap/keeper/swap.go index ffdfd4afde..e3bf4e9061 100644 --- a/x/ammswap/keeper/swap.go +++ b/x/ammswap/keeper/swap.go @@ -2,7 +2,7 @@ package keeper import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/ammswap/types" + "github.com/okex/exchain/x/ammswap/types" ) // IsTokenExist check token is exist diff --git a/x/ammswap/keeper/swap_test.go b/x/ammswap/keeper/swap_test.go index 026ed19823..b261b6ffde 100644 --- a/x/ammswap/keeper/swap_test.go +++ b/x/ammswap/keeper/swap_test.go @@ -6,8 +6,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/x/supply" - "github.com/okex/okexchain/x/ammswap/types" - token "github.com/okex/okexchain/x/token/types" + "github.com/okex/exchain/x/ammswap/types" + token "github.com/okex/exchain/x/token/types" "github.com/stretchr/testify/require" abci "github.com/tendermint/tendermint/abci/types" ) diff --git a/x/ammswap/mock_test.go b/x/ammswap/mock_test.go index 27732fca75..ccf2fa5cdd 100644 --- a/x/ammswap/mock_test.go +++ b/x/ammswap/mock_test.go @@ -11,13 +11,13 @@ import ( "github.com/cosmos/cosmos-sdk/x/mock" "github.com/cosmos/cosmos-sdk/x/supply" "github.com/cosmos/cosmos-sdk/x/supply/exported" - "github.com/okex/okexchain/x/ammswap/types" - staking "github.com/okex/okexchain/x/staking/types" + "github.com/okex/exchain/x/ammswap/types" + staking "github.com/okex/exchain/x/staking/types" "github.com/stretchr/testify/require" abci "github.com/tendermint/tendermint/abci/types" "github.com/tendermint/tendermint/crypto/secp256k1" - "github.com/okex/okexchain/x/token" + "github.com/okex/exchain/x/token" ) type MockApp struct { diff --git a/x/ammswap/module.go b/x/ammswap/module.go index 63a3757363..91f2cf2848 100644 --- a/x/ammswap/module.go +++ b/x/ammswap/module.go @@ -8,8 +8,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" "github.com/gorilla/mux" - "github.com/okex/okexchain/x/ammswap/client/cli" - "github.com/okex/okexchain/x/ammswap/client/rest" + "github.com/okex/exchain/x/ammswap/client/cli" + "github.com/okex/exchain/x/ammswap/client/rest" "github.com/spf13/cobra" abci "github.com/tendermint/tendermint/abci/types" ) diff --git a/x/ammswap/module_test.go b/x/ammswap/module_test.go index 2a3d0379e0..311687d8a0 100644 --- a/x/ammswap/module_test.go +++ b/x/ammswap/module_test.go @@ -6,7 +6,7 @@ import ( cliLcd "github.com/cosmos/cosmos-sdk/client/lcd" "github.com/cosmos/cosmos-sdk/codec" - "github.com/okex/okexchain/x/ammswap/types" + "github.com/okex/exchain/x/ammswap/types" "github.com/stretchr/testify/require" abci "github.com/tendermint/tendermint/abci/types" ) diff --git a/x/ammswap/test_common.go b/x/ammswap/test_common.go index 50bac34965..1658f9f5d1 100644 --- a/x/ammswap/test_common.go +++ b/x/ammswap/test_common.go @@ -2,8 +2,8 @@ package ammswap import ( sdk "github.com/cosmos/cosmos-sdk/types" - swapkeeper "github.com/okex/okexchain/x/ammswap/keeper" - "github.com/okex/okexchain/x/ammswap/types" + swapkeeper "github.com/okex/exchain/x/ammswap/keeper" + "github.com/okex/exchain/x/ammswap/types" "github.com/stretchr/testify/require" "testing" "time" diff --git a/x/ammswap/types/expected_keepers.go b/x/ammswap/types/expected_keepers.go index 379d2543e8..669787a2e5 100644 --- a/x/ammswap/types/expected_keepers.go +++ b/x/ammswap/types/expected_keepers.go @@ -2,8 +2,8 @@ package types import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/params" - token "github.com/okex/okexchain/x/token/types" + "github.com/okex/exchain/x/params" + token "github.com/okex/exchain/x/token/types" ) // ParamSubspace defines the expected Subspace interface diff --git a/x/ammswap/types/msg_test.go b/x/ammswap/types/msg_test.go index 95221ad683..2872843971 100644 --- a/x/ammswap/types/msg_test.go +++ b/x/ammswap/types/msg_test.go @@ -4,7 +4,7 @@ import ( "encoding/hex" "encoding/json" "fmt" - "github.com/okex/okexchain/x/common" + "github.com/okex/exchain/x/common" "testing" "time" diff --git a/x/ammswap/types/params.go b/x/ammswap/types/params.go index 0ab3e9a2e9..7dd74dd138 100644 --- a/x/ammswap/types/params.go +++ b/x/ammswap/types/params.go @@ -5,7 +5,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/params" + "github.com/okex/exchain/x/params" ) // FeeRate defines swap fee rate diff --git a/x/ammswap/types/swap.go b/x/ammswap/types/swap.go index 145a82b787..d72887a389 100644 --- a/x/ammswap/types/swap.go +++ b/x/ammswap/types/swap.go @@ -3,7 +3,7 @@ package types import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/x/supply" - token "github.com/okex/okexchain/x/token/types" + token "github.com/okex/exchain/x/token/types" "fmt" "strings" diff --git a/x/ammswap/types/test_common.go b/x/ammswap/types/test_common.go index 80762bc086..24bb3566d3 100644 --- a/x/ammswap/types/test_common.go +++ b/x/ammswap/types/test_common.go @@ -5,9 +5,9 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/x/supply" - "github.com/okex/okexchain/x/common" - "github.com/okex/okexchain/x/token" - tokentypes "github.com/okex/okexchain/x/token/types" + "github.com/okex/exchain/x/common" + "github.com/okex/exchain/x/token" + tokentypes "github.com/okex/exchain/x/token/types" ) // nolint diff --git a/x/backend/abci.go b/x/backend/abci.go index 73a5699154..5d4e339d11 100644 --- a/x/backend/abci.go +++ b/x/backend/abci.go @@ -4,11 +4,11 @@ import ( "fmt" "strconv" - "github.com/okex/okexchain/x/backend/types" + "github.com/okex/exchain/x/backend/types" sdk "github.com/cosmos/cosmos-sdk/types" - orderTypes "github.com/okex/okexchain/x/order/types" + orderTypes "github.com/okex/exchain/x/order/types" ) // EndBlocker called every block, check expired orders diff --git a/x/backend/alias.go b/x/backend/alias.go index f97b517946..3763ccf603 100644 --- a/x/backend/alias.go +++ b/x/backend/alias.go @@ -2,10 +2,10 @@ package backend import ( - "github.com/okex/okexchain/x/backend/config" - "github.com/okex/okexchain/x/backend/keeper" - "github.com/okex/okexchain/x/backend/orm" - "github.com/okex/okexchain/x/backend/types" + "github.com/okex/exchain/x/backend/config" + "github.com/okex/exchain/x/backend/keeper" + "github.com/okex/exchain/x/backend/orm" + "github.com/okex/exchain/x/backend/types" ) const ( diff --git a/x/backend/cache/cache.go b/x/backend/cache/cache.go index 28520e11f4..5109ed9efb 100644 --- a/x/backend/cache/cache.go +++ b/x/backend/cache/cache.go @@ -1,6 +1,6 @@ package cache -import "github.com/okex/okexchain/x/backend/types" +import "github.com/okex/exchain/x/backend/types" // Cache defines struct to store data in memory type Cache struct { diff --git a/x/backend/cache/cache_test.go b/x/backend/cache/cache_test.go index 8e4cc48dec..e0828769e3 100644 --- a/x/backend/cache/cache_test.go +++ b/x/backend/cache/cache_test.go @@ -3,8 +3,8 @@ package cache import ( "testing" - "github.com/okex/okexchain/x/backend/types" - "github.com/okex/okexchain/x/common" + "github.com/okex/exchain/x/backend/types" + "github.com/okex/exchain/x/common" "github.com/stretchr/testify/require" ) diff --git a/x/backend/cases/utils.go b/x/backend/cases/utils.go index 51cb3859e6..403f34c91e 100644 --- a/x/backend/cases/utils.go +++ b/x/backend/cases/utils.go @@ -4,9 +4,9 @@ import ( "os" ) -// GetBackendDBDir return the path "$GOPATH/src/github.com/okex/okexchain/x/backend/cases" +// GetBackendDBDir return the path "$GOPATH/src/github.com/okex/exchain/x/backend/cases" func GetBackendDBDir() string { gopath := os.Getenv("GOPATH") - dir := gopath + "/src/github.com/okex/okexchain/x/backend/cases" + dir := gopath + "/src/github.com/okex/exchain/x/backend/cases" return dir } diff --git a/x/backend/cases/utils_test.go b/x/backend/cases/utils_test.go index fa4f02acb0..de397f53d7 100644 --- a/x/backend/cases/utils_test.go +++ b/x/backend/cases/utils_test.go @@ -8,6 +8,6 @@ import ( func TestGetBackendDBDir(t *testing.T) { gopath := os.Getenv("GOPATH") - dir := gopath + "/src/github.com/okex/okexchain/x/backend/cases" + dir := gopath + "/src/github.com/okex/exchain/x/backend/cases" require.Equal(t, dir, GetBackendDBDir()) } diff --git a/x/backend/client/cli/query.go b/x/backend/client/cli/query.go index a4e0546ca3..a7cb745b97 100644 --- a/x/backend/client/cli/query.go +++ b/x/backend/client/cli/query.go @@ -10,7 +10,7 @@ import ( "github.com/cosmos/cosmos-sdk/client/context" "github.com/cosmos/cosmos-sdk/codec" - "github.com/okex/okexchain/x/backend/types" + "github.com/okex/exchain/x/backend/types" "github.com/spf13/cobra" "github.com/tendermint/tendermint/crypto/tmhash" tmliteProxy "github.com/tendermint/tendermint/lite/proxy" diff --git a/x/backend/client/rest/farm.go b/x/backend/client/rest/farm.go index d4de6dfd09..b8115fcf13 100644 --- a/x/backend/client/rest/farm.go +++ b/x/backend/client/rest/farm.go @@ -8,8 +8,8 @@ import ( "github.com/cosmos/cosmos-sdk/client/context" "github.com/cosmos/cosmos-sdk/types/rest" "github.com/gorilla/mux" - "github.com/okex/okexchain/x/backend/types" - "github.com/okex/okexchain/x/common" + "github.com/okex/exchain/x/backend/types" + "github.com/okex/exchain/x/common" ) func registerFarmQueryRoutes(cliCtx context.CLIContext, r *mux.Router) { diff --git a/x/backend/client/rest/rest.go b/x/backend/client/rest/rest.go index 2520d336df..b65c6ed8eb 100644 --- a/x/backend/client/rest/rest.go +++ b/x/backend/client/rest/rest.go @@ -10,9 +10,9 @@ import ( "github.com/cosmos/cosmos-sdk/client/rpc" "github.com/cosmos/cosmos-sdk/types/rest" "github.com/gorilla/mux" - "github.com/okex/okexchain/x/backend/client/cli" - "github.com/okex/okexchain/x/backend/types" - "github.com/okex/okexchain/x/common" + "github.com/okex/exchain/x/backend/client/cli" + "github.com/okex/exchain/x/backend/types" + "github.com/okex/exchain/x/common" ) // RegisterRoutes - Central function to define routes that get registered by the main application diff --git a/x/backend/client/rest/rest_v2.go b/x/backend/client/rest/rest_v2.go index 120dfff859..4ffb437627 100644 --- a/x/backend/client/rest/rest_v2.go +++ b/x/backend/client/rest/rest_v2.go @@ -9,8 +9,8 @@ import ( "github.com/cosmos/cosmos-sdk/client/context" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/gorilla/mux" - "github.com/okex/okexchain/x/backend/types" - "github.com/okex/okexchain/x/common" + "github.com/okex/exchain/x/backend/types" + "github.com/okex/exchain/x/common" ) const ( diff --git a/x/backend/client/rest/swap.go b/x/backend/client/rest/swap.go index 3c436e2228..f9d61a61fd 100644 --- a/x/backend/client/rest/swap.go +++ b/x/backend/client/rest/swap.go @@ -7,8 +7,8 @@ import ( "github.com/cosmos/cosmos-sdk/client/context" "github.com/cosmos/cosmos-sdk/types/rest" "github.com/gorilla/mux" - "github.com/okex/okexchain/x/backend/types" - "github.com/okex/okexchain/x/common" + "github.com/okex/exchain/x/backend/types" + "github.com/okex/exchain/x/common" ) func registerSwapQueryRoutes(cliCtx context.CLIContext, r *mux.Router) { diff --git a/x/backend/keeper/farm_querier.go b/x/backend/keeper/farm_querier.go index 82f40cbd15..52840cdb3b 100644 --- a/x/backend/keeper/farm_querier.go +++ b/x/backend/keeper/farm_querier.go @@ -5,12 +5,12 @@ import ( "sort" "time" - "github.com/okex/okexchain/x/ammswap" + "github.com/okex/exchain/x/ammswap" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/backend/types" - "github.com/okex/okexchain/x/common" - farm "github.com/okex/okexchain/x/farm/types" + "github.com/okex/exchain/x/backend/types" + "github.com/okex/exchain/x/common" + farm "github.com/okex/exchain/x/farm/types" abci "github.com/tendermint/tendermint/abci/types" ) diff --git a/x/backend/keeper/keeper.go b/x/backend/keeper/keeper.go index 39cdd1a837..0dce9cdbfd 100644 --- a/x/backend/keeper/keeper.go +++ b/x/backend/keeper/keeper.go @@ -6,17 +6,17 @@ import ( "reflect" "time" - "github.com/okex/okexchain/x/ammswap" + "github.com/okex/exchain/x/ammswap" "github.com/cosmos/cosmos-sdk/x/auth" "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/backend/cache" - "github.com/okex/okexchain/x/backend/config" - "github.com/okex/okexchain/x/backend/orm" - "github.com/okex/okexchain/x/backend/types" - "github.com/okex/okexchain/x/token" + "github.com/okex/exchain/x/backend/cache" + "github.com/okex/exchain/x/backend/config" + "github.com/okex/exchain/x/backend/orm" + "github.com/okex/exchain/x/backend/types" + "github.com/okex/exchain/x/token" "github.com/tendermint/tendermint/libs/log" ) diff --git a/x/backend/keeper/keeper_channel.go b/x/backend/keeper/keeper_channel.go index 9a8bbd4fcd..899e8f5c5d 100644 --- a/x/backend/keeper/keeper_channel.go +++ b/x/backend/keeper/keeper_channel.go @@ -4,9 +4,9 @@ import ( "fmt" "time" - "github.com/okex/okexchain/x/backend/config" - "github.com/okex/okexchain/x/backend/orm" - "github.com/okex/okexchain/x/backend/types" + "github.com/okex/exchain/x/backend/config" + "github.com/okex/exchain/x/backend/orm" + "github.com/okex/exchain/x/backend/types" ) func pushAllKline1M(klines map[string][]types.KlineM1, keeper Keeper, nextStartTS int64) { diff --git a/x/backend/keeper/querier.go b/x/backend/keeper/querier.go index 47ac9575f4..8eb1f0d0b7 100644 --- a/x/backend/keeper/querier.go +++ b/x/backend/keeper/querier.go @@ -8,9 +8,9 @@ import ( "time" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/backend/types" - "github.com/okex/okexchain/x/common" - orderTypes "github.com/okex/okexchain/x/order/types" + "github.com/okex/exchain/x/backend/types" + "github.com/okex/exchain/x/common" + orderTypes "github.com/okex/exchain/x/order/types" abci "github.com/tendermint/tendermint/abci/types" ) diff --git a/x/backend/keeper/querier_v2.go b/x/backend/keeper/querier_v2.go index 48b5cf9ba3..9729f3b40d 100644 --- a/x/backend/keeper/querier_v2.go +++ b/x/backend/keeper/querier_v2.go @@ -6,8 +6,8 @@ import ( "time" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/backend/types" - "github.com/okex/okexchain/x/common" + "github.com/okex/exchain/x/backend/types" + "github.com/okex/exchain/x/common" abci "github.com/tendermint/tendermint/abci/types" ) diff --git a/x/backend/keeper/swap_querier.go b/x/backend/keeper/swap_querier.go index 938674cc85..0dde186ad8 100644 --- a/x/backend/keeper/swap_querier.go +++ b/x/backend/keeper/swap_querier.go @@ -7,12 +7,12 @@ import ( "strings" "time" - "github.com/okex/okexchain/x/ammswap" - swaptypes "github.com/okex/okexchain/x/ammswap/types" - "github.com/okex/okexchain/x/common" + "github.com/okex/exchain/x/ammswap" + swaptypes "github.com/okex/exchain/x/ammswap/types" + "github.com/okex/exchain/x/common" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/backend/types" + "github.com/okex/exchain/x/backend/types" abci "github.com/tendermint/tendermint/abci/types" ) diff --git a/x/backend/keeper_test.go b/x/backend/keeper_test.go index 5edd473891..e084a87d29 100644 --- a/x/backend/keeper_test.go +++ b/x/backend/keeper_test.go @@ -5,17 +5,17 @@ import ( "testing" "time" - "github.com/okex/okexchain/x/backend/cases" - "github.com/okex/okexchain/x/backend/config" - "github.com/okex/okexchain/x/backend/orm" - "github.com/okex/okexchain/x/dex" - orderTypes "github.com/okex/okexchain/x/order/types" + "github.com/okex/exchain/x/backend/cases" + "github.com/okex/exchain/x/backend/config" + "github.com/okex/exchain/x/backend/orm" + "github.com/okex/exchain/x/dex" + orderTypes "github.com/okex/exchain/x/order/types" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/x/auth" - "github.com/okex/okexchain/x/backend/types" - "github.com/okex/okexchain/x/common" - tokenTypes "github.com/okex/okexchain/x/token/types" + "github.com/okex/exchain/x/backend/types" + "github.com/okex/exchain/x/common" + tokenTypes "github.com/okex/exchain/x/token/types" "github.com/stretchr/testify/require" abci "github.com/tendermint/tendermint/abci/types" ) diff --git a/x/backend/mock_test.go b/x/backend/mock_test.go index 804317bdc9..61eba5c861 100644 --- a/x/backend/mock_test.go +++ b/x/backend/mock_test.go @@ -6,38 +6,38 @@ import ( "testing" "time" - "github.com/okex/okexchain/x/farm" + "github.com/okex/exchain/x/farm" - "github.com/okex/okexchain/x/ammswap" + "github.com/okex/exchain/x/ammswap" - types2 "github.com/okex/okexchain/x/dex/types" + types2 "github.com/okex/exchain/x/dex/types" "github.com/cosmos/cosmos-sdk/client/lcd" "github.com/cosmos/cosmos-sdk/x/supply" "github.com/cosmos/cosmos-sdk/x/supply/exported" - "github.com/okex/okexchain/x/backend/client/cli" - "github.com/okex/okexchain/x/backend/config" - "github.com/okex/okexchain/x/backend/orm" - "github.com/okex/okexchain/x/backend/types" - "github.com/okex/okexchain/x/common/monitor" - "github.com/okex/okexchain/x/common/version" - "github.com/okex/okexchain/x/order/keeper" - ordertypes "github.com/okex/okexchain/x/order/types" - tokentypes "github.com/okex/okexchain/x/token/types" + "github.com/okex/exchain/x/backend/client/cli" + "github.com/okex/exchain/x/backend/config" + "github.com/okex/exchain/x/backend/orm" + "github.com/okex/exchain/x/backend/types" + "github.com/okex/exchain/x/common/monitor" + "github.com/okex/exchain/x/common/version" + "github.com/okex/exchain/x/order/keeper" + ordertypes "github.com/okex/exchain/x/order/types" + tokentypes "github.com/okex/exchain/x/token/types" "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/x/auth" "github.com/cosmos/cosmos-sdk/x/bank" "github.com/cosmos/cosmos-sdk/x/mock" - "github.com/okex/okexchain/x/common" + "github.com/okex/exchain/x/common" - //"github.com/okex/okexchain/x/gov" - "github.com/okex/okexchain/x/dex" - "github.com/okex/okexchain/x/order" + //"github.com/okex/exchain/x/gov" + "github.com/okex/exchain/x/dex" + "github.com/okex/exchain/x/order" - //"github.com/okex/okexchain/x/staking" - "github.com/okex/okexchain/x/token" + //"github.com/okex/exchain/x/staking" + "github.com/okex/exchain/x/token" "github.com/stretchr/testify/require" abci "github.com/tendermint/tendermint/abci/types" "github.com/tendermint/tendermint/crypto/secp256k1" diff --git a/x/backend/module.go b/x/backend/module.go index 1f60241192..0ba66c5513 100644 --- a/x/backend/module.go +++ b/x/backend/module.go @@ -3,8 +3,8 @@ package backend import ( "encoding/json" - "github.com/okex/okexchain/x/backend/client/cli" - "github.com/okex/okexchain/x/backend/client/rest" + "github.com/okex/exchain/x/backend/client/cli" + "github.com/okex/exchain/x/backend/client/rest" "github.com/gorilla/mux" "github.com/spf13/cobra" diff --git a/x/backend/orm/farm.go b/x/backend/orm/farm.go index 2ec49e7c6c..9a7e36665f 100644 --- a/x/backend/orm/farm.go +++ b/x/backend/orm/farm.go @@ -1,6 +1,6 @@ package orm -import "github.com/okex/okexchain/x/backend/types" +import "github.com/okex/exchain/x/backend/types" // AddClaimInfo insert farm claimed coins into db func (orm *ORM) AddClaimInfo(claimInfos []*types.ClaimInfo) (addedCnt int, err error) { diff --git a/x/backend/orm/orm.go b/x/backend/orm/orm.go index 61ce75e2e4..6b03659528 100644 --- a/x/backend/orm/orm.go +++ b/x/backend/orm/orm.go @@ -18,8 +18,8 @@ import ( "github.com/jinzhu/gorm" _ "github.com/jinzhu/gorm/dialects/mysql" _ "github.com/jinzhu/gorm/dialects/sqlite" - "github.com/okex/okexchain/x/backend/types" - "github.com/okex/okexchain/x/token" + "github.com/okex/exchain/x/backend/types" + "github.com/okex/exchain/x/token" "github.com/pkg/errors" "github.com/tendermint/tendermint/libs/log" ) diff --git a/x/backend/orm/orm_mysql_sys_test.go b/x/backend/orm/orm_mysql_sys_test.go index 4cb330d217..c30166ae9b 100644 --- a/x/backend/orm/orm_mysql_sys_test.go +++ b/x/backend/orm/orm_mysql_sys_test.go @@ -3,9 +3,9 @@ package orm import ( "testing" - "github.com/okex/okexchain/x/backend/types" - "github.com/okex/okexchain/x/common" - "github.com/okex/okexchain/x/token" + "github.com/okex/exchain/x/backend/types" + "github.com/okex/exchain/x/common" + "github.com/okex/exchain/x/token" ) type DangrousORM struct { diff --git a/x/backend/orm/orm_test.go b/x/backend/orm/orm_test.go index cc7b733977..4bda729819 100644 --- a/x/backend/orm/orm_test.go +++ b/x/backend/orm/orm_test.go @@ -12,9 +12,9 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/jinzhu/gorm" _ "github.com/jinzhu/gorm/dialects/sqlite" - "github.com/okex/okexchain/x/backend/types" - "github.com/okex/okexchain/x/common" - "github.com/okex/okexchain/x/token" + "github.com/okex/exchain/x/backend/types" + "github.com/okex/exchain/x/common" + "github.com/okex/exchain/x/token" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" //tcommon "github.com/tendermint/tendermint/libs/common" diff --git a/x/backend/orm/swap.go b/x/backend/orm/swap.go index cc47030a2a..79923edbd3 100644 --- a/x/backend/orm/swap.go +++ b/x/backend/orm/swap.go @@ -1,7 +1,7 @@ package orm import ( - "github.com/okex/okexchain/x/backend/types" + "github.com/okex/exchain/x/backend/types" ) // AddSwapInfo insert into swap token pairs details diff --git a/x/backend/querier_test.go b/x/backend/querier_test.go index 1e9d0cfe25..7442586cf9 100644 --- a/x/backend/querier_test.go +++ b/x/backend/querier_test.go @@ -10,9 +10,9 @@ import ( "github.com/tendermint/go-amino" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/backend/types" - "github.com/okex/okexchain/x/common" - orderTypes "github.com/okex/okexchain/x/order/types" + "github.com/okex/exchain/x/backend/types" + "github.com/okex/exchain/x/common" + orderTypes "github.com/okex/exchain/x/order/types" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" abci "github.com/tendermint/tendermint/abci/types" diff --git a/x/backend/ticker_test.go b/x/backend/ticker_test.go index c2dcb44d59..bd73ad5089 100644 --- a/x/backend/ticker_test.go +++ b/x/backend/ticker_test.go @@ -7,10 +7,10 @@ import ( "github.com/stretchr/testify/require" - "github.com/okex/okexchain/x/backend/cache" - "github.com/okex/okexchain/x/backend/orm" - "github.com/okex/okexchain/x/backend/types" - "github.com/okex/okexchain/x/common" + "github.com/okex/exchain/x/backend/cache" + "github.com/okex/exchain/x/backend/orm" + "github.com/okex/exchain/x/backend/types" + "github.com/okex/exchain/x/common" "github.com/stretchr/testify/assert" ) diff --git a/x/backend/types/expected_keepers.go b/x/backend/types/expected_keepers.go index 1d8f393dc4..633f411ccd 100644 --- a/x/backend/types/expected_keepers.go +++ b/x/backend/types/expected_keepers.go @@ -4,14 +4,14 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/x/mint" "github.com/cosmos/cosmos-sdk/x/supply" - "github.com/okex/okexchain/x/ammswap" - ammswaptypes "github.com/okex/okexchain/x/ammswap/types" - "github.com/okex/okexchain/x/dex" - dextypes "github.com/okex/okexchain/x/dex/types" - farmtypes "github.com/okex/okexchain/x/farm/types" - "github.com/okex/okexchain/x/order" - ordertypes "github.com/okex/okexchain/x/order/types" - "github.com/okex/okexchain/x/token" + "github.com/okex/exchain/x/ammswap" + ammswaptypes "github.com/okex/exchain/x/ammswap/types" + "github.com/okex/exchain/x/dex" + dextypes "github.com/okex/exchain/x/dex/types" + farmtypes "github.com/okex/exchain/x/farm/types" + "github.com/okex/exchain/x/order" + ordertypes "github.com/okex/exchain/x/order/types" + "github.com/okex/exchain/x/token" "github.com/willf/bitset" ) diff --git a/x/backend/types/klines_test.go b/x/backend/types/klines_test.go index ee89a34234..ccd5eea6aa 100644 --- a/x/backend/types/klines_test.go +++ b/x/backend/types/klines_test.go @@ -9,7 +9,7 @@ import ( "testing" "time" - "github.com/okex/okexchain/x/common" + "github.com/okex/exchain/x/common" "github.com/stretchr/testify/require" diff --git a/x/backend/types/params_test.go b/x/backend/types/params_test.go index 1d6a74d85f..de50a3f3c2 100644 --- a/x/backend/types/params_test.go +++ b/x/backend/types/params_test.go @@ -1,7 +1,7 @@ package types import ( - "github.com/okex/okexchain/x/common" + "github.com/okex/exchain/x/common" "testing" "github.com/stretchr/testify/require" diff --git a/x/backend/types/tx.go b/x/backend/types/tx.go index fa31ed92e2..5cad8bf36e 100644 --- a/x/backend/types/tx.go +++ b/x/backend/types/tx.go @@ -3,9 +3,9 @@ package types import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/x/auth" - "github.com/okex/okexchain/x/common" - orderTypes "github.com/okex/okexchain/x/order/types" - tokenTypes "github.com/okex/okexchain/x/token/types" + "github.com/okex/exchain/x/common" + orderTypes "github.com/okex/exchain/x/order/types" + tokenTypes "github.com/okex/exchain/x/token/types" "github.com/willf/bitset" ) diff --git a/x/backend/types/tx_test.go b/x/backend/types/tx_test.go index fbb9db3701..7d81e324e5 100644 --- a/x/backend/types/tx_test.go +++ b/x/backend/types/tx_test.go @@ -8,14 +8,14 @@ import ( "github.com/willf/bitset" - "github.com/okex/okexchain/x/common" + "github.com/okex/exchain/x/common" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/x/auth" - "github.com/okex/okexchain/x/order" - orderKeeper "github.com/okex/okexchain/x/order/keeper" - tokenKeeper "github.com/okex/okexchain/x/token" - token "github.com/okex/okexchain/x/token/types" + "github.com/okex/exchain/x/order" + orderKeeper "github.com/okex/exchain/x/order/keeper" + tokenKeeper "github.com/okex/exchain/x/token" + token "github.com/okex/exchain/x/token/types" "github.com/stretchr/testify/require" "github.com/tendermint/tendermint/crypto/secp256k1" ) diff --git a/x/backend/types/types.go b/x/backend/types/types.go index 952c6fd697..07725b9514 100644 --- a/x/backend/types/types.go +++ b/x/backend/types/types.go @@ -5,7 +5,7 @@ import ( "fmt" "time" - orderTypes "github.com/okex/okexchain/x/order/types" + orderTypes "github.com/okex/exchain/x/order/types" ) const ( diff --git a/x/backend/types/types_v2.go b/x/backend/types/types_v2.go index d11c0e6961..14f38febe7 100644 --- a/x/backend/types/types_v2.go +++ b/x/backend/types/types_v2.go @@ -8,7 +8,7 @@ import ( "strings" "time" - "github.com/okex/okexchain/x/dex" + "github.com/okex/exchain/x/dex" sdk "github.com/cosmos/cosmos-sdk/types" ) diff --git a/x/backend/types/types_v2_test.go b/x/backend/types/types_v2_test.go index b5ee6bf12f..e8500efacf 100644 --- a/x/backend/types/types_v2_test.go +++ b/x/backend/types/types_v2_test.go @@ -8,7 +8,7 @@ import ( "time" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/dex" + "github.com/okex/exchain/x/dex" "github.com/stretchr/testify/require" ) diff --git a/x/common/perf/performance.go b/x/common/perf/performance.go index d9427b96b3..7109ad62ec 100644 --- a/x/common/perf/performance.go +++ b/x/common/perf/performance.go @@ -3,7 +3,7 @@ package perf import ( "fmt" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/common/monitor" + "github.com/okex/exchain/x/common/monitor" "github.com/tendermint/tendermint/libs/log" "sync" "time" diff --git a/x/common/util.go b/x/common/util.go index 2d1ef1bfce..e8cedd7b4a 100644 --- a/x/common/util.go +++ b/x/common/util.go @@ -4,7 +4,7 @@ import ( "bytes" "encoding/binary" "fmt" - "github.com/okex/okexchain/x/params/subspace" + "github.com/okex/exchain/x/params/subspace" "math/big" "math/rand" "net/http" @@ -20,7 +20,7 @@ import ( "github.com/cosmos/cosmos-sdk/client/context" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/rest" - apptypes "github.com/okex/okexchain/app/types" + apptypes "github.com/okex/exchain/app/types" ) const ( diff --git a/x/common/util_test.go b/x/common/util_test.go index 5a527fe72b..b966f53eda 100644 --- a/x/common/util_test.go +++ b/x/common/util_test.go @@ -5,7 +5,7 @@ import ( "testing" sdk "github.com/cosmos/cosmos-sdk/types" - apptypes "github.com/okex/okexchain/app/types" + apptypes "github.com/okex/exchain/app/types" "github.com/stretchr/testify/require" ) diff --git a/x/debug/alias.go b/x/debug/alias.go index 451cff7978..094d3550ba 100644 --- a/x/debug/alias.go +++ b/x/debug/alias.go @@ -1,8 +1,8 @@ package debug import ( - "github.com/okex/okexchain/x/debug/keeper" - "github.com/okex/okexchain/x/debug/types" + "github.com/okex/exchain/x/debug/keeper" + "github.com/okex/exchain/x/debug/types" ) const ( diff --git a/x/debug/client/cli/debug.go b/x/debug/client/cli/debug.go index b6b5cc5ed0..d172c4a27d 100644 --- a/x/debug/client/cli/debug.go +++ b/x/debug/client/cli/debug.go @@ -7,7 +7,7 @@ import ( "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/context" "github.com/cosmos/cosmos-sdk/codec" - "github.com/okex/okexchain/x/debug/types" + "github.com/okex/exchain/x/debug/types" "github.com/spf13/cobra" ) diff --git a/x/debug/keeper/keeper.go b/x/debug/keeper/keeper.go index 5d0c0a1ed3..c57b2ffe59 100644 --- a/x/debug/keeper/keeper.go +++ b/x/debug/keeper/keeper.go @@ -5,7 +5,7 @@ import ( "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/debug/types" + "github.com/okex/exchain/x/debug/types" ) // keeper of debug module diff --git a/x/debug/keeper/querier.go b/x/debug/keeper/querier.go index f4a05331a7..6c69b5f689 100644 --- a/x/debug/keeper/querier.go +++ b/x/debug/keeper/querier.go @@ -2,10 +2,10 @@ package keeper import ( "fmt" - "github.com/okex/okexchain/x/staking" + "github.com/okex/exchain/x/staking" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/debug/types" + "github.com/okex/exchain/x/debug/types" abci "github.com/tendermint/tendermint/abci/types" ) diff --git a/x/debug/module.go b/x/debug/module.go index d5a00d3ef7..ced03ff55e 100644 --- a/x/debug/module.go +++ b/x/debug/module.go @@ -8,7 +8,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" "github.com/gorilla/mux" - "github.com/okex/okexchain/x/debug/types" + "github.com/okex/exchain/x/debug/types" "github.com/spf13/cobra" abci "github.com/tendermint/tendermint/abci/types" ) diff --git a/x/debug/types/expected_keepers.go b/x/debug/types/expected_keepers.go index 5e07b6a93b..2e9921d12d 100644 --- a/x/debug/types/expected_keepers.go +++ b/x/debug/types/expected_keepers.go @@ -2,7 +2,7 @@ package types import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/staking" + "github.com/okex/exchain/x/staking" ) type OrderKeeper interface { diff --git a/x/dex/alias.go b/x/dex/alias.go index 7c2901ae91..be33ef09b8 100644 --- a/x/dex/alias.go +++ b/x/dex/alias.go @@ -1,14 +1,14 @@ // nolint // aliases generated for the following subdirectories: -// ALIASGEN: github.com/okex/okexchain/x/dex/keeper -// ALIASGEN: github.com/okex/okexchain/x/dex/types +// ALIASGEN: github.com/okex/exchain/x/dex/keeper +// ALIASGEN: github.com/okex/exchain/x/dex/types package dex import ( "github.com/cosmos/cosmos-sdk/x/auth" - "github.com/okex/okexchain/x/common/version" - "github.com/okex/okexchain/x/dex/keeper" - "github.com/okex/okexchain/x/dex/types" + "github.com/okex/exchain/x/common/version" + "github.com/okex/exchain/x/dex/keeper" + "github.com/okex/exchain/x/dex/types" ) const ( diff --git a/x/dex/client/cli/query.go b/x/dex/client/cli/query.go index 7e19fc39c5..d5ed875eaf 100644 --- a/x/dex/client/cli/query.go +++ b/x/dex/client/cli/query.go @@ -11,7 +11,7 @@ import ( "github.com/spf13/cobra" "github.com/spf13/viper" - "github.com/okex/okexchain/x/dex/types" + "github.com/okex/exchain/x/dex/types" ) // GetQueryCmd returns the cli query commands for this module diff --git a/x/dex/client/cli/tx.go b/x/dex/client/cli/tx.go index a4b2c7a8d7..c173c642fd 100644 --- a/x/dex/client/cli/tx.go +++ b/x/dex/client/cli/tx.go @@ -7,7 +7,7 @@ import ( client "github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/version" - "github.com/okex/okexchain/x/gov" + "github.com/okex/exchain/x/gov" "github.com/pkg/errors" @@ -17,9 +17,9 @@ import ( "github.com/cosmos/cosmos-sdk/x/auth" authTypes "github.com/cosmos/cosmos-sdk/x/auth" "github.com/cosmos/cosmos-sdk/x/auth/client/utils" - "github.com/okex/okexchain/x/common" - dexUtils "github.com/okex/okexchain/x/dex/client/utils" - "github.com/okex/okexchain/x/dex/types" + "github.com/okex/exchain/x/common" + dexUtils "github.com/okex/exchain/x/dex/client/utils" + "github.com/okex/exchain/x/dex/types" "github.com/spf13/cobra" ) diff --git a/x/dex/client/proposal_handler.go b/x/dex/client/proposal_handler.go index 8d3c5ef8f7..d56610830b 100644 --- a/x/dex/client/proposal_handler.go +++ b/x/dex/client/proposal_handler.go @@ -1,9 +1,9 @@ package client import ( - "github.com/okex/okexchain/x/dex/client/cli" - "github.com/okex/okexchain/x/dex/client/rest" - govclient "github.com/okex/okexchain/x/gov/client" + "github.com/okex/exchain/x/dex/client/cli" + "github.com/okex/exchain/x/dex/client/rest" + govclient "github.com/okex/exchain/x/gov/client" ) // param change proposal handler diff --git a/x/dex/client/rest/rest.go b/x/dex/client/rest/rest.go index 22bc150155..95660524cb 100644 --- a/x/dex/client/rest/rest.go +++ b/x/dex/client/rest/rest.go @@ -6,12 +6,12 @@ import ( "net/http" "strings" - "github.com/okex/okexchain/x/dex/types" + "github.com/okex/exchain/x/dex/types" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/rest" - "github.com/okex/okexchain/x/common" - govRest "github.com/okex/okexchain/x/gov/client/rest" + "github.com/okex/exchain/x/common" + govRest "github.com/okex/exchain/x/gov/client/rest" "github.com/cosmos/cosmos-sdk/client/context" "github.com/gorilla/mux" diff --git a/x/dex/endblocker.go b/x/dex/endblocker.go index 8c04fbef46..ea28adf4ab 100644 --- a/x/dex/endblocker.go +++ b/x/dex/endblocker.go @@ -3,8 +3,8 @@ package dex import ( "fmt" - "github.com/okex/okexchain/x/common/perf" - "github.com/okex/okexchain/x/dex/types" + "github.com/okex/exchain/x/common/perf" + "github.com/okex/exchain/x/dex/types" sdk "github.com/cosmos/cosmos-sdk/types" ) diff --git a/x/dex/genesis.go b/x/dex/genesis.go index 8b3b090be9..e5d89429b5 100644 --- a/x/dex/genesis.go +++ b/x/dex/genesis.go @@ -4,8 +4,8 @@ import ( "fmt" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/dex/types" - ordertypes "github.com/okex/okexchain/x/order/types" + "github.com/okex/exchain/x/dex/types" + ordertypes "github.com/okex/exchain/x/order/types" ) // GenesisState - all dex state that must be provided at genesis diff --git a/x/dex/genesis_test.go b/x/dex/genesis_test.go index 7a7a2f44ed..a7c28d840d 100644 --- a/x/dex/genesis_test.go +++ b/x/dex/genesis_test.go @@ -6,8 +6,8 @@ import ( "time" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/dex/types" - ordertypes "github.com/okex/okexchain/x/order/types" + "github.com/okex/exchain/x/dex/types" + ordertypes "github.com/okex/exchain/x/order/types" "github.com/stretchr/testify/require" ) diff --git a/x/dex/handler.go b/x/dex/handler.go index 378d5eca63..aeba12c2ce 100644 --- a/x/dex/handler.go +++ b/x/dex/handler.go @@ -4,10 +4,10 @@ import ( "fmt" "strconv" - "github.com/okex/okexchain/x/common" + "github.com/okex/exchain/x/common" - "github.com/okex/okexchain/x/common/perf" - "github.com/okex/okexchain/x/dex/types" + "github.com/okex/exchain/x/common/perf" + "github.com/okex/exchain/x/dex/types" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/tendermint/tendermint/crypto/tmhash" diff --git a/x/dex/handler_test.go b/x/dex/handler_test.go index 3839ad1c02..fa8d1af80e 100644 --- a/x/dex/handler_test.go +++ b/x/dex/handler_test.go @@ -1,11 +1,11 @@ package dex import ( - "github.com/okex/okexchain/x/common" + "github.com/okex/exchain/x/common" "testing" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/dex/types" + "github.com/okex/exchain/x/dex/types" "github.com/stretchr/testify/require" abci "github.com/tendermint/tendermint/abci/types" ) diff --git a/x/dex/keeper/expected_keeper.go b/x/dex/keeper/expected_keeper.go index 918a1934be..850c9de476 100644 --- a/x/dex/keeper/expected_keeper.go +++ b/x/dex/keeper/expected_keeper.go @@ -5,9 +5,9 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/x/supply/exported" - "github.com/okex/okexchain/x/dex/types" - ordertypes "github.com/okex/okexchain/x/order/types" - "github.com/okex/okexchain/x/params" + "github.com/okex/exchain/x/dex/types" + ordertypes "github.com/okex/exchain/x/order/types" + "github.com/okex/exchain/x/params" ) // SupplyKeeper defines the expected supply Keeper diff --git a/x/dex/keeper/invariant.go b/x/dex/keeper/invariant.go index d7df2d59cd..8072e9f904 100644 --- a/x/dex/keeper/invariant.go +++ b/x/dex/keeper/invariant.go @@ -4,7 +4,7 @@ import ( "fmt" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/dex/types" + "github.com/okex/exchain/x/dex/types" ) // RegisterInvariants registers all dex invariants diff --git a/x/dex/keeper/invariant_test.go b/x/dex/keeper/invariant_test.go index f16ad05cea..a06f97e8fc 100644 --- a/x/dex/keeper/invariant_test.go +++ b/x/dex/keeper/invariant_test.go @@ -4,7 +4,7 @@ import ( "testing" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/dex/types" + "github.com/okex/exchain/x/dex/types" "github.com/stretchr/testify/require" ) diff --git a/x/dex/keeper/keeper.go b/x/dex/keeper/keeper.go index 27fce16eca..f491cd65cc 100644 --- a/x/dex/keeper/keeper.go +++ b/x/dex/keeper/keeper.go @@ -7,8 +7,8 @@ import ( "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/dex/types" - "github.com/okex/okexchain/x/params" + "github.com/okex/exchain/x/dex/types" + "github.com/okex/exchain/x/params" ) // Keeper maintains the link to data storage and exposes getter/setter methods for the various parts of the state machine diff --git a/x/dex/keeper/keeper_test.go b/x/dex/keeper/keeper_test.go index 3c82e1e0d7..8a31676cc0 100644 --- a/x/dex/keeper/keeper_test.go +++ b/x/dex/keeper/keeper_test.go @@ -4,12 +4,12 @@ import ( "testing" "time" - "github.com/okex/okexchain/x/common" + "github.com/okex/exchain/x/common" "github.com/stretchr/testify/require" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/dex/types" + "github.com/okex/exchain/x/dex/types" ) const TestProductNotExist = "product-not-exist" diff --git a/x/dex/keeper/product_lock.go b/x/dex/keeper/product_lock.go index d6afdc4462..f5c3f925b3 100644 --- a/x/dex/keeper/product_lock.go +++ b/x/dex/keeper/product_lock.go @@ -2,8 +2,8 @@ package keeper import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/dex/types" - ordertypes "github.com/okex/okexchain/x/order/types" + "github.com/okex/exchain/x/dex/types" + ordertypes "github.com/okex/exchain/x/order/types" ) // IsTokenPairLocked return true if token pair locked diff --git a/x/dex/keeper/product_lock_test.go b/x/dex/keeper/product_lock_test.go index de0c6c845c..a35da65669 100644 --- a/x/dex/keeper/product_lock_test.go +++ b/x/dex/keeper/product_lock_test.go @@ -3,7 +3,7 @@ package keeper import ( "testing" - "github.com/okex/okexchain/x/order/types" + "github.com/okex/exchain/x/order/types" "github.com/stretchr/testify/require" ) diff --git a/x/dex/keeper/proposal.go b/x/dex/keeper/proposal.go index 0e855e1a0d..2dc438b9a4 100644 --- a/x/dex/keeper/proposal.go +++ b/x/dex/keeper/proposal.go @@ -5,10 +5,10 @@ import ( "time" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/common" - "github.com/okex/okexchain/x/dex/types" - "github.com/okex/okexchain/x/gov" - govTypes "github.com/okex/okexchain/x/gov/types" + "github.com/okex/exchain/x/common" + "github.com/okex/exchain/x/dex/types" + "github.com/okex/exchain/x/gov" + govTypes "github.com/okex/exchain/x/gov/types" ) // GetMinDeposit returns min deposit diff --git a/x/dex/keeper/proposal_test.go b/x/dex/keeper/proposal_test.go index 203eacf455..4424ea2e8c 100644 --- a/x/dex/keeper/proposal_test.go +++ b/x/dex/keeper/proposal_test.go @@ -5,10 +5,10 @@ import ( "time" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/common" - "github.com/okex/okexchain/x/dex/types" - govTypes "github.com/okex/okexchain/x/gov/types" - ordertypes "github.com/okex/okexchain/x/order/types" + "github.com/okex/exchain/x/common" + "github.com/okex/exchain/x/dex/types" + govTypes "github.com/okex/exchain/x/gov/types" + ordertypes "github.com/okex/exchain/x/order/types" "github.com/stretchr/testify/require" ) diff --git a/x/dex/keeper/querier.go b/x/dex/keeper/querier.go index 86639f82ae..62d50851f1 100644 --- a/x/dex/keeper/querier.go +++ b/x/dex/keeper/querier.go @@ -6,11 +6,11 @@ import ( "sort" "strings" - "github.com/okex/okexchain/x/dex/types" + "github.com/okex/exchain/x/dex/types" "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/common" + "github.com/okex/exchain/x/common" abci "github.com/tendermint/tendermint/abci/types" ) diff --git a/x/dex/keeper/querier_test.go b/x/dex/keeper/querier_test.go index b17e666100..328177673d 100644 --- a/x/dex/keeper/querier_test.go +++ b/x/dex/keeper/querier_test.go @@ -4,10 +4,10 @@ import ( "testing" "time" - "github.com/okex/okexchain/x/common" + "github.com/okex/exchain/x/common" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/dex/types" + "github.com/okex/exchain/x/dex/types" "github.com/stretchr/testify/require" amino "github.com/tendermint/go-amino" abci "github.com/tendermint/tendermint/abci/types" diff --git a/x/dex/keeper/test_common.go b/x/dex/keeper/test_common.go index d0ae375ef4..5a010ea7de 100644 --- a/x/dex/keeper/test_common.go +++ b/x/dex/keeper/test_common.go @@ -6,7 +6,7 @@ import ( "testing" "time" - "github.com/okex/okexchain/x/staking" + "github.com/okex/exchain/x/staking" "github.com/cosmos/cosmos-sdk/codec" "github.com/cosmos/cosmos-sdk/store" @@ -14,17 +14,17 @@ import ( "github.com/cosmos/cosmos-sdk/x/auth" "github.com/cosmos/cosmos-sdk/x/bank" "github.com/cosmos/cosmos-sdk/x/supply" - "github.com/okex/okexchain/x/params" + "github.com/okex/exchain/x/params" "github.com/stretchr/testify/require" abci "github.com/tendermint/tendermint/abci/types" "github.com/tendermint/tendermint/crypto/ed25519" "github.com/tendermint/tendermint/libs/log" dbm "github.com/tendermint/tm-db" - "github.com/okex/okexchain/x/common" - "github.com/okex/okexchain/x/dex/types" - "github.com/okex/okexchain/x/gov" - "github.com/okex/okexchain/x/token" + "github.com/okex/exchain/x/common" + "github.com/okex/exchain/x/dex/types" + "github.com/okex/exchain/x/gov" + "github.com/okex/exchain/x/token" ) type testInput struct { diff --git a/x/dex/legacy/v0_11/migrate.go b/x/dex/legacy/v0_11/migrate.go index ec2f9b4c67..20d64bc7fd 100644 --- a/x/dex/legacy/v0_11/migrate.go +++ b/x/dex/legacy/v0_11/migrate.go @@ -2,8 +2,8 @@ package v0_11 import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/common" - "github.com/okex/okexchain/x/dex/legacy/v0_10" + "github.com/okex/exchain/x/common" + "github.com/okex/exchain/x/dex/legacy/v0_10" ) func Migrate(oldGenState v0_10.GenesisState) GenesisState { diff --git a/x/dex/legacy/v0_11/types.go b/x/dex/legacy/v0_11/types.go index 189166aa01..294bfd8e02 100644 --- a/x/dex/legacy/v0_11/types.go +++ b/x/dex/legacy/v0_11/types.go @@ -3,7 +3,7 @@ package v0_11 import ( "time" - "github.com/okex/okexchain/x/dex/legacy/v0_10" + "github.com/okex/exchain/x/dex/legacy/v0_10" sdk "github.com/cosmos/cosmos-sdk/types" ) diff --git a/x/dex/mock.go b/x/dex/mock.go index 12c9d912c3..3a67775e7b 100644 --- a/x/dex/mock.go +++ b/x/dex/mock.go @@ -8,8 +8,8 @@ import ( "github.com/cosmos/cosmos-sdk/x/mock" "github.com/cosmos/cosmos-sdk/x/supply" "github.com/cosmos/cosmos-sdk/x/supply/exported" - "github.com/okex/okexchain/x/common" - ordertypes "github.com/okex/okexchain/x/order/types" + "github.com/okex/exchain/x/common" + ordertypes "github.com/okex/exchain/x/order/types" abci "github.com/tendermint/tendermint/abci/types" ) diff --git a/x/dex/module.go b/x/dex/module.go index b05a683986..35de5835ed 100644 --- a/x/dex/module.go +++ b/x/dex/module.go @@ -3,10 +3,10 @@ package dex import ( "encoding/json" - "github.com/okex/okexchain/x/dex/keeper" + "github.com/okex/exchain/x/dex/keeper" "github.com/cosmos/cosmos-sdk/codec" - "github.com/okex/okexchain/x/dex/types" + "github.com/okex/exchain/x/dex/types" abci "github.com/tendermint/tendermint/abci/types" "github.com/cosmos/cosmos-sdk/client/context" @@ -15,8 +15,8 @@ import ( "github.com/gorilla/mux" "github.com/spf13/cobra" - "github.com/okex/okexchain/x/dex/client/cli" - "github.com/okex/okexchain/x/dex/client/rest" + "github.com/okex/exchain/x/dex/client/cli" + "github.com/okex/exchain/x/dex/client/rest" ) var ( diff --git a/x/dex/module_test.go b/x/dex/module_test.go index ce73a3f679..3a91beab3a 100644 --- a/x/dex/module_test.go +++ b/x/dex/module_test.go @@ -7,8 +7,8 @@ import ( "testing" "github.com/cosmos/cosmos-sdk/codec" - "github.com/okex/okexchain/x/common/version" - "github.com/okex/okexchain/x/dex/types" + "github.com/okex/exchain/x/common/version" + "github.com/okex/exchain/x/dex/types" "github.com/stretchr/testify/require" abci "github.com/tendermint/tendermint/abci/types" ) diff --git a/x/dex/proposal_handler.go b/x/dex/proposal_handler.go index a7b7fde554..935901c7dd 100644 --- a/x/dex/proposal_handler.go +++ b/x/dex/proposal_handler.go @@ -2,11 +2,11 @@ package dex import ( "fmt" - "github.com/okex/okexchain/x/common" + "github.com/okex/exchain/x/common" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/dex/types" - govTypes "github.com/okex/okexchain/x/gov/types" + "github.com/okex/exchain/x/dex/types" + govTypes "github.com/okex/exchain/x/gov/types" ) // NewProposalHandler handles "gov" type message in "dex" diff --git a/x/dex/proposal_handler_test.go b/x/dex/proposal_handler_test.go index 0d9aa4a8af..f7d3423446 100644 --- a/x/dex/proposal_handler_test.go +++ b/x/dex/proposal_handler_test.go @@ -5,9 +5,9 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/dex/types" - govTypes "github.com/okex/okexchain/x/gov/types" - ordertypes "github.com/okex/okexchain/x/order/types" + "github.com/okex/exchain/x/dex/types" + govTypes "github.com/okex/exchain/x/gov/types" + ordertypes "github.com/okex/exchain/x/order/types" "github.com/stretchr/testify/require" abci "github.com/tendermint/tendermint/abci/types" ) diff --git a/x/dex/types/msgs_test.go b/x/dex/types/msgs_test.go index 0152e7c197..2e85389a20 100644 --- a/x/dex/types/msgs_test.go +++ b/x/dex/types/msgs_test.go @@ -7,7 +7,7 @@ import ( "github.com/tendermint/tendermint/crypto/secp256k1" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/common" + "github.com/okex/exchain/x/common" "github.com/stretchr/testify/require" ) diff --git a/x/dex/types/params.go b/x/dex/types/params.go index 4b6ce4588b..45a4a9dad3 100644 --- a/x/dex/types/params.go +++ b/x/dex/types/params.go @@ -5,8 +5,8 @@ import ( "time" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/common" - "github.com/okex/okexchain/x/params" + "github.com/okex/exchain/x/common" + "github.com/okex/exchain/x/params" ) var ( diff --git a/x/dex/types/proposal.go b/x/dex/types/proposal.go index 0f904ccfd8..26861c11b1 100644 --- a/x/dex/types/proposal.go +++ b/x/dex/types/proposal.go @@ -5,7 +5,7 @@ import ( "strings" sdk "github.com/cosmos/cosmos-sdk/types" - govtypes "github.com/okex/okexchain/x/gov/types" + govtypes "github.com/okex/exchain/x/gov/types" ) const ( diff --git a/x/dex/types/proposal_test.go b/x/dex/types/proposal_test.go index 5eae036583..e440b12629 100644 --- a/x/dex/types/proposal_test.go +++ b/x/dex/types/proposal_test.go @@ -2,7 +2,7 @@ package types import ( "fmt" - "github.com/okex/okexchain/x/common" + "github.com/okex/exchain/x/common" "testing" sdk "github.com/cosmos/cosmos-sdk/types" diff --git a/x/distribution/abci.go b/x/distribution/abci.go index af799681fc..dc9a845f73 100644 --- a/x/distribution/abci.go +++ b/x/distribution/abci.go @@ -5,7 +5,7 @@ import ( tmtypes "github.com/tendermint/tendermint/types" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/distribution/keeper" + "github.com/okex/exchain/x/distribution/keeper" ) // BeginBlocker set the proposer for determining distribution during endblock diff --git a/x/distribution/abci_test.go b/x/distribution/abci_test.go index c717ec7297..3aafd8aaaa 100644 --- a/x/distribution/abci_test.go +++ b/x/distribution/abci_test.go @@ -3,7 +3,7 @@ package distribution import ( "testing" - "github.com/okex/okexchain/x/distribution/keeper" + "github.com/okex/exchain/x/distribution/keeper" "github.com/stretchr/testify/require" abci "github.com/tendermint/tendermint/abci/types" ) diff --git a/x/distribution/alias.go b/x/distribution/alias.go index 67b4746a37..1b096908a7 100644 --- a/x/distribution/alias.go +++ b/x/distribution/alias.go @@ -1,15 +1,15 @@ // nolint // autogenerated code using github.com/rigelrozanski/multitool // aliases generated for the following subdirectories: -// ALIASGEN: github.com/okex/okexchain/x/distribution/keeper -// ALIASGEN: github.com/okex/okexchain/x/distribution/types -// ALIASGEN: github.com/okex/okexchain/x/distribution/client +// ALIASGEN: github.com/okex/exchain/x/distribution/keeper +// ALIASGEN: github.com/okex/exchain/x/distribution/types +// ALIASGEN: github.com/okex/exchain/x/distribution/client package distribution import ( - "github.com/okex/okexchain/x/distribution/client" - "github.com/okex/okexchain/x/distribution/keeper" - "github.com/okex/okexchain/x/distribution/types" + "github.com/okex/exchain/x/distribution/client" + "github.com/okex/exchain/x/distribution/keeper" + "github.com/okex/exchain/x/distribution/types" ) const ( diff --git a/x/distribution/client/cli/query.go b/x/distribution/client/cli/query.go index 06730f08d2..ac55d4e58f 100644 --- a/x/distribution/client/cli/query.go +++ b/x/distribution/client/cli/query.go @@ -13,8 +13,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/version" - "github.com/okex/okexchain/x/distribution/client/common" - "github.com/okex/okexchain/x/distribution/types" + "github.com/okex/exchain/x/distribution/client/common" + "github.com/okex/exchain/x/distribution/types" ) // GetQueryCmd returns the cli query commands for this module diff --git a/x/distribution/client/cli/tx.go b/x/distribution/client/cli/tx.go index 5a07cd4551..29c3d33be8 100644 --- a/x/distribution/client/cli/tx.go +++ b/x/distribution/client/cli/tx.go @@ -17,8 +17,8 @@ import ( "github.com/cosmos/cosmos-sdk/x/auth" "github.com/cosmos/cosmos-sdk/x/auth/client/utils" - "github.com/okex/okexchain/x/distribution/types" - "github.com/okex/okexchain/x/gov" + "github.com/okex/exchain/x/distribution/types" + "github.com/okex/exchain/x/gov" ) // GetTxCmd returns the transaction commands for this module diff --git a/x/distribution/client/common/common.go b/x/distribution/client/common/common.go index 6f7aaade8a..af804d9e67 100644 --- a/x/distribution/client/common/common.go +++ b/x/distribution/client/common/common.go @@ -6,7 +6,7 @@ import ( "github.com/cosmos/cosmos-sdk/client/context" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/distribution/types" + "github.com/okex/exchain/x/distribution/types" ) // QueryParams actually queries distribution params diff --git a/x/distribution/client/proposal_handler.go b/x/distribution/client/proposal_handler.go index 24f1b5efe2..0457c0ca3a 100644 --- a/x/distribution/client/proposal_handler.go +++ b/x/distribution/client/proposal_handler.go @@ -1,9 +1,9 @@ package client import ( - "github.com/okex/okexchain/x/distribution/client/cli" - "github.com/okex/okexchain/x/distribution/client/rest" - govclient "github.com/okex/okexchain/x/gov/client" + "github.com/okex/exchain/x/distribution/client/cli" + "github.com/okex/exchain/x/distribution/client/rest" + govclient "github.com/okex/exchain/x/gov/client" ) // param change proposal handler diff --git a/x/distribution/client/rest/query.go b/x/distribution/client/rest/query.go index 2771bad092..b21c2a553a 100644 --- a/x/distribution/client/rest/query.go +++ b/x/distribution/client/rest/query.go @@ -10,9 +10,9 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/rest" - "github.com/okex/okexchain/x/distribution/client/common" - "github.com/okex/okexchain/x/distribution/types" - comm "github.com/okex/okexchain/x/common" + "github.com/okex/exchain/x/distribution/client/common" + "github.com/okex/exchain/x/distribution/types" + comm "github.com/okex/exchain/x/common" ) func registerQueryRoutes(cliCtx context.CLIContext, r *mux.Router, queryRoute string) { diff --git a/x/distribution/client/rest/rest.go b/x/distribution/client/rest/rest.go index 585cdba5cd..77b8bf8177 100644 --- a/x/distribution/client/rest/rest.go +++ b/x/distribution/client/rest/rest.go @@ -10,10 +10,10 @@ import ( "github.com/cosmos/cosmos-sdk/types/rest" "github.com/cosmos/cosmos-sdk/x/auth/client/utils" - comm "github.com/okex/okexchain/x/common" - "github.com/okex/okexchain/x/distribution/types" - "github.com/okex/okexchain/x/gov" - govrest "github.com/okex/okexchain/x/gov/client/rest" + comm "github.com/okex/exchain/x/common" + "github.com/okex/exchain/x/distribution/types" + "github.com/okex/exchain/x/gov" + govrest "github.com/okex/exchain/x/gov/client/rest" ) // RegisterRoutes register distribution REST routes. diff --git a/x/distribution/client/rest/tx.go b/x/distribution/client/rest/tx.go index 84b5ebbc2d..e03eb0407c 100644 --- a/x/distribution/client/rest/tx.go +++ b/x/distribution/client/rest/tx.go @@ -4,7 +4,7 @@ import ( "fmt" "net/http" - comm "github.com/okex/okexchain/x/common" + comm "github.com/okex/exchain/x/common" "github.com/gorilla/mux" @@ -13,8 +13,8 @@ import ( "github.com/cosmos/cosmos-sdk/types/rest" "github.com/cosmos/cosmos-sdk/x/auth/client/utils" - "github.com/okex/okexchain/x/distribution/client/common" - "github.com/okex/okexchain/x/distribution/types" + "github.com/okex/exchain/x/distribution/client/common" + "github.com/okex/exchain/x/distribution/types" ) func registerTxRoutes(cliCtx context.CLIContext, r *mux.Router, _ string) { diff --git a/x/distribution/genesis.go b/x/distribution/genesis.go index 3cbf12e963..cca16e1aca 100644 --- a/x/distribution/genesis.go +++ b/x/distribution/genesis.go @@ -5,7 +5,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/distribution/types" + "github.com/okex/exchain/x/distribution/types" ) // InitGenesis sets distribution information for genesis diff --git a/x/distribution/genesis_test.go b/x/distribution/genesis_test.go index 840b7cdb46..3dc9536895 100644 --- a/x/distribution/genesis_test.go +++ b/x/distribution/genesis_test.go @@ -4,8 +4,8 @@ import ( "testing" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/distribution/keeper" - "github.com/okex/okexchain/x/distribution/types" + "github.com/okex/exchain/x/distribution/keeper" + "github.com/okex/exchain/x/distribution/types" "github.com/stretchr/testify/require" ) diff --git a/x/distribution/handler.go b/x/distribution/handler.go index 7137c29b91..fe3ff5c305 100644 --- a/x/distribution/handler.go +++ b/x/distribution/handler.go @@ -3,9 +3,9 @@ package distribution import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/distribution/keeper" - "github.com/okex/okexchain/x/distribution/types" - govtypes "github.com/okex/okexchain/x/gov/types" + "github.com/okex/exchain/x/distribution/keeper" + "github.com/okex/exchain/x/distribution/types" + govtypes "github.com/okex/exchain/x/gov/types" ) // NewHandler manages all distribution tx diff --git a/x/distribution/keeper/alias_functions.go b/x/distribution/keeper/alias_functions.go index 1c964c1187..446a3c0a8e 100644 --- a/x/distribution/keeper/alias_functions.go +++ b/x/distribution/keeper/alias_functions.go @@ -4,7 +4,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/x/supply/exported" - "github.com/okex/okexchain/x/distribution/types" + "github.com/okex/exchain/x/distribution/types" ) // GetDistributionAccount returns the distribution ModuleAccount diff --git a/x/distribution/keeper/allocation.go b/x/distribution/keeper/allocation.go index ab37efd5db..be2ff46884 100644 --- a/x/distribution/keeper/allocation.go +++ b/x/distribution/keeper/allocation.go @@ -6,9 +6,9 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" abci "github.com/tendermint/tendermint/abci/types" - "github.com/okex/okexchain/x/distribution/types" - "github.com/okex/okexchain/x/staking/exported" - stakingexported "github.com/okex/okexchain/x/staking/exported" + "github.com/okex/exchain/x/distribution/types" + "github.com/okex/exchain/x/staking/exported" + stakingexported "github.com/okex/exchain/x/staking/exported" ) var ( diff --git a/x/distribution/keeper/allocation_test.go b/x/distribution/keeper/allocation_test.go index 4db9bc2c29..b9dad7bcdc 100644 --- a/x/distribution/keeper/allocation_test.go +++ b/x/distribution/keeper/allocation_test.go @@ -9,8 +9,8 @@ import ( "github.com/cosmos/cosmos-sdk/x/auth" abci "github.com/tendermint/tendermint/abci/types" - "github.com/okex/okexchain/x/distribution/types" - "github.com/okex/okexchain/x/staking" + "github.com/okex/exchain/x/distribution/types" + "github.com/okex/exchain/x/staking" ) func TestAllocateTokensToValidatorWithCommission(t *testing.T) { diff --git a/x/distribution/keeper/hooks.go b/x/distribution/keeper/hooks.go index dd60e3d064..362799ac6c 100644 --- a/x/distribution/keeper/hooks.go +++ b/x/distribution/keeper/hooks.go @@ -3,8 +3,8 @@ package keeper import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/distribution/types" - stakingtypes "github.com/okex/okexchain/x/staking/types" + "github.com/okex/exchain/x/distribution/types" + stakingtypes "github.com/okex/exchain/x/staking/types" ) // Hooks is struct of keepers from other module diff --git a/x/distribution/keeper/hooks_test.go b/x/distribution/keeper/hooks_test.go index a93050b6a1..695fcd8d83 100644 --- a/x/distribution/keeper/hooks_test.go +++ b/x/distribution/keeper/hooks_test.go @@ -3,7 +3,7 @@ package keeper import ( "testing" - "github.com/okex/okexchain/x/distribution/types" + "github.com/okex/exchain/x/distribution/types" "github.com/stretchr/testify/require" ) diff --git a/x/distribution/keeper/invariants.go b/x/distribution/keeper/invariants.go index 0c5931908f..9df4b8d2af 100644 --- a/x/distribution/keeper/invariants.go +++ b/x/distribution/keeper/invariants.go @@ -5,8 +5,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/distribution/types" - "github.com/okex/okexchain/x/staking/exported" + "github.com/okex/exchain/x/distribution/types" + "github.com/okex/exchain/x/staking/exported" ) // RegisterInvariants registers all distribution invariants diff --git a/x/distribution/keeper/invariants_test.go b/x/distribution/keeper/invariants_test.go index a407f532ea..9c87c4d17d 100644 --- a/x/distribution/keeper/invariants_test.go +++ b/x/distribution/keeper/invariants_test.go @@ -4,7 +4,7 @@ import ( "testing" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/distribution/types" + "github.com/okex/exchain/x/distribution/types" "github.com/stretchr/testify/require" ) diff --git a/x/distribution/keeper/keeper.go b/x/distribution/keeper/keeper.go index 4303597b0b..cb43b58897 100644 --- a/x/distribution/keeper/keeper.go +++ b/x/distribution/keeper/keeper.go @@ -5,10 +5,10 @@ import ( "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/params" + "github.com/okex/exchain/x/params" "github.com/tendermint/tendermint/libs/log" - "github.com/okex/okexchain/x/distribution/types" + "github.com/okex/exchain/x/distribution/types" ) // Keeper of the distribution store diff --git a/x/distribution/keeper/params.go b/x/distribution/keeper/params.go index d2555ace96..9e3c68f9ef 100644 --- a/x/distribution/keeper/params.go +++ b/x/distribution/keeper/params.go @@ -3,7 +3,7 @@ package keeper import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/distribution/types" + "github.com/okex/exchain/x/distribution/types" ) // GetParams returns the total set of distribution parameters. diff --git a/x/distribution/keeper/proposal_handler.go b/x/distribution/keeper/proposal_handler.go index 6f0d109344..59881fdb8a 100644 --- a/x/distribution/keeper/proposal_handler.go +++ b/x/distribution/keeper/proposal_handler.go @@ -6,7 +6,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/okex/okexchain/x/distribution/types" + "github.com/okex/exchain/x/distribution/types" ) // HandleCommunityPoolSpendProposal is a handler for executing a passed community spend proposal diff --git a/x/distribution/keeper/querier.go b/x/distribution/keeper/querier.go index ce78de1036..2f4de63de0 100644 --- a/x/distribution/keeper/querier.go +++ b/x/distribution/keeper/querier.go @@ -3,10 +3,10 @@ package keeper import ( "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" - comm "github.com/okex/okexchain/x/common" + comm "github.com/okex/exchain/x/common" abci "github.com/tendermint/tendermint/abci/types" - "github.com/okex/okexchain/x/distribution/types" + "github.com/okex/exchain/x/distribution/types" ) // NewQuerier creates a querier for distribution REST endpoints diff --git a/x/distribution/keeper/querier_test.go b/x/distribution/keeper/querier_test.go index d56ba20542..c2f1bd3bd3 100644 --- a/x/distribution/keeper/querier_test.go +++ b/x/distribution/keeper/querier_test.go @@ -4,7 +4,7 @@ import ( "testing" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/distribution/types" + "github.com/okex/exchain/x/distribution/types" "github.com/stretchr/testify/require" "github.com/tendermint/go-amino" abci "github.com/tendermint/tendermint/abci/types" diff --git a/x/distribution/keeper/store.go b/x/distribution/keeper/store.go index cad7b2a97f..01681a8b67 100644 --- a/x/distribution/keeper/store.go +++ b/x/distribution/keeper/store.go @@ -3,7 +3,7 @@ package keeper import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/distribution/types" + "github.com/okex/exchain/x/distribution/types" ) // GetDelegatorWithdrawAddr returns the delegator withdraw address, defaulting to the delegator address diff --git a/x/distribution/keeper/test_common.go b/x/distribution/keeper/test_common.go index 8a5dd2b7d1..70c9cb1898 100644 --- a/x/distribution/keeper/test_common.go +++ b/x/distribution/keeper/test_common.go @@ -9,9 +9,9 @@ import ( "github.com/cosmos/cosmos-sdk/x/auth" "github.com/cosmos/cosmos-sdk/x/bank" "github.com/cosmos/cosmos-sdk/x/supply" - "github.com/okex/okexchain/x/distribution/types" - "github.com/okex/okexchain/x/params" - "github.com/okex/okexchain/x/staking" + "github.com/okex/exchain/x/distribution/types" + "github.com/okex/exchain/x/params" + "github.com/okex/exchain/x/staking" "github.com/stretchr/testify/require" abci "github.com/tendermint/tendermint/abci/types" "github.com/tendermint/tendermint/crypto" diff --git a/x/distribution/keeper/validator.go b/x/distribution/keeper/validator.go index 7491a7a027..0c7533abc3 100644 --- a/x/distribution/keeper/validator.go +++ b/x/distribution/keeper/validator.go @@ -3,8 +3,8 @@ package keeper import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/distribution/types" - "github.com/okex/okexchain/x/staking/exported" + "github.com/okex/exchain/x/distribution/types" + "github.com/okex/exchain/x/staking/exported" ) // initialize rewards for a new validator diff --git a/x/distribution/module.go b/x/distribution/module.go index fd8116f8a9..1492388315 100644 --- a/x/distribution/module.go +++ b/x/distribution/module.go @@ -14,9 +14,9 @@ import ( "github.com/cosmos/cosmos-sdk/types/module" abci "github.com/tendermint/tendermint/abci/types" - "github.com/okex/okexchain/x/distribution/client/cli" - "github.com/okex/okexchain/x/distribution/client/rest" - "github.com/okex/okexchain/x/distribution/types" + "github.com/okex/exchain/x/distribution/client/cli" + "github.com/okex/exchain/x/distribution/client/rest" + "github.com/okex/exchain/x/distribution/types" ) var ( diff --git a/x/distribution/module_test.go b/x/distribution/module_test.go index c3e153dab3..5b519b8ed2 100644 --- a/x/distribution/module_test.go +++ b/x/distribution/module_test.go @@ -4,8 +4,8 @@ import ( "testing" "github.com/cosmos/cosmos-sdk/codec" - "github.com/okex/okexchain/x/distribution/keeper" - "github.com/okex/okexchain/x/distribution/types" + "github.com/okex/exchain/x/distribution/keeper" + "github.com/okex/exchain/x/distribution/types" "github.com/stretchr/testify/require" abci "github.com/tendermint/tendermint/abci/types" ) diff --git a/x/distribution/proposal_handler_test.go b/x/distribution/proposal_handler_test.go index 448e0dfb3d..352d87a8b7 100644 --- a/x/distribution/proposal_handler_test.go +++ b/x/distribution/proposal_handler_test.go @@ -6,11 +6,11 @@ import ( "github.com/stretchr/testify/require" sdk "github.com/cosmos/cosmos-sdk/types" - govtypes "github.com/okex/okexchain/x/gov/types" + govtypes "github.com/okex/exchain/x/gov/types" "github.com/tendermint/tendermint/crypto/ed25519" - "github.com/okex/okexchain/x/distribution/keeper" - "github.com/okex/okexchain/x/distribution/types" + "github.com/okex/exchain/x/distribution/keeper" + "github.com/okex/exchain/x/distribution/types" ) var ( diff --git a/x/distribution/types/expected_keepers.go b/x/distribution/types/expected_keepers.go index 3297aef041..69ac1f2bee 100644 --- a/x/distribution/types/expected_keepers.go +++ b/x/distribution/types/expected_keepers.go @@ -4,7 +4,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" supplyexported "github.com/cosmos/cosmos-sdk/x/supply/exported" - stakingexported "github.com/okex/okexchain/x/staking/exported" + stakingexported "github.com/okex/exchain/x/staking/exported" ) // StakingKeeper expected staking keeper (noalias) diff --git a/x/distribution/types/params.go b/x/distribution/types/params.go index 9832be4319..6216504337 100644 --- a/x/distribution/types/params.go +++ b/x/distribution/types/params.go @@ -4,7 +4,7 @@ import ( "fmt" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/params" + "github.com/okex/exchain/x/params" ) const ( diff --git a/x/distribution/types/proposal.go b/x/distribution/types/proposal.go index 175feacfb5..d34f8a95d8 100644 --- a/x/distribution/types/proposal.go +++ b/x/distribution/types/proposal.go @@ -6,7 +6,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" - govtypes "github.com/okex/okexchain/x/gov/types" + govtypes "github.com/okex/exchain/x/gov/types" ) const ( diff --git a/x/evidence/alias.go b/x/evidence/alias.go index c301be8a59..20ee8bf56f 100644 --- a/x/evidence/alias.go +++ b/x/evidence/alias.go @@ -1,8 +1,8 @@ package evidence import ( - "github.com/okex/okexchain/x/evidence/internal/keeper" - "github.com/okex/okexchain/x/evidence/internal/types" + "github.com/okex/exchain/x/evidence/internal/keeper" + "github.com/okex/exchain/x/evidence/internal/types" ) // nolint diff --git a/x/evidence/client/cli/query.go b/x/evidence/client/cli/query.go index e71cbcadbf..e17f7be903 100644 --- a/x/evidence/client/cli/query.go +++ b/x/evidence/client/cli/query.go @@ -13,8 +13,8 @@ import ( "github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/codec" "github.com/cosmos/cosmos-sdk/version" - "github.com/okex/okexchain/x/evidence/exported" - "github.com/okex/okexchain/x/evidence/internal/types" + "github.com/okex/exchain/x/evidence/exported" + "github.com/okex/exchain/x/evidence/internal/types" ) // GetQueryCmd returns the CLI command with all evidence module query commands diff --git a/x/evidence/client/cli/tx.go b/x/evidence/client/cli/tx.go index 4f78d43b47..587993c3d9 100644 --- a/x/evidence/client/cli/tx.go +++ b/x/evidence/client/cli/tx.go @@ -4,7 +4,7 @@ import ( "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/codec" - "github.com/okex/okexchain/x/evidence/internal/types" + "github.com/okex/exchain/x/evidence/internal/types" "github.com/spf13/cobra" ) diff --git a/x/evidence/client/evidence_handler.go b/x/evidence/client/evidence_handler.go index b9b03e6370..21589e0985 100644 --- a/x/evidence/client/evidence_handler.go +++ b/x/evidence/client/evidence_handler.go @@ -5,7 +5,7 @@ import ( "github.com/cosmos/cosmos-sdk/client/context" "github.com/cosmos/cosmos-sdk/codec" - "github.com/okex/okexchain/x/evidence/client/rest" + "github.com/okex/exchain/x/evidence/client/rest" ) type ( diff --git a/x/evidence/client/rest/query.go b/x/evidence/client/rest/query.go index ff28d583c6..992d18a20b 100644 --- a/x/evidence/client/rest/query.go +++ b/x/evidence/client/rest/query.go @@ -8,7 +8,7 @@ import ( "github.com/cosmos/cosmos-sdk/client/context" "github.com/cosmos/cosmos-sdk/types/rest" - "github.com/okex/okexchain/x/evidence/internal/types" + "github.com/okex/exchain/x/evidence/internal/types" "github.com/gorilla/mux" ) diff --git a/x/evidence/genesis_test.go b/x/evidence/genesis_test.go index 9cd1884166..2061b32c5b 100644 --- a/x/evidence/genesis_test.go +++ b/x/evidence/genesis_test.go @@ -5,7 +5,7 @@ import ( "testing" "github.com/cosmos/cosmos-sdk/codec" - "github.com/okex/okexchain/app" + "github.com/okex/exchain/app" "github.com/tendermint/tendermint/libs/log" dbm "github.com/tendermint/tm-db" @@ -13,9 +13,9 @@ import ( "github.com/tendermint/tendermint/crypto/ed25519" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/evidence" - "github.com/okex/okexchain/x/evidence/exported" - "github.com/okex/okexchain/x/evidence/internal/types" + "github.com/okex/exchain/x/evidence" + "github.com/okex/exchain/x/evidence/exported" + "github.com/okex/exchain/x/evidence/internal/types" "github.com/stretchr/testify/suite" ) diff --git a/x/evidence/handler_test.go b/x/evidence/handler_test.go index 6a84414f35..9ddb0fcc93 100644 --- a/x/evidence/handler_test.go +++ b/x/evidence/handler_test.go @@ -4,8 +4,8 @@ import ( "testing" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/evidence" - "github.com/okex/okexchain/x/evidence/internal/types" + "github.com/okex/exchain/x/evidence" + "github.com/okex/exchain/x/evidence/internal/types" "github.com/stretchr/testify/suite" abci "github.com/tendermint/tendermint/abci/types" diff --git a/x/evidence/internal/keeper/infraction.go b/x/evidence/internal/keeper/infraction.go index 46703d4f04..fdbb330c22 100644 --- a/x/evidence/internal/keeper/infraction.go +++ b/x/evidence/internal/keeper/infraction.go @@ -5,7 +5,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/evidence/internal/types" + "github.com/okex/exchain/x/evidence/internal/types" ) // HandleDoubleSign implements an equivocation evidence handler. Assuming the diff --git a/x/evidence/internal/keeper/infraction_test.go b/x/evidence/internal/keeper/infraction_test.go index 66560271ed..390cfb08e6 100644 --- a/x/evidence/internal/keeper/infraction_test.go +++ b/x/evidence/internal/keeper/infraction_test.go @@ -4,9 +4,9 @@ import ( "time" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/evidence/internal/types" - "github.com/okex/okexchain/x/staking" - stakingtypes "github.com/okex/okexchain/x/staking/types" + "github.com/okex/exchain/x/evidence/internal/types" + "github.com/okex/exchain/x/staking" + stakingtypes "github.com/okex/exchain/x/staking/types" "github.com/tendermint/tendermint/crypto" ) diff --git a/x/evidence/internal/keeper/keeper.go b/x/evidence/internal/keeper/keeper.go index e7ff603d54..ba605f97be 100644 --- a/x/evidence/internal/keeper/keeper.go +++ b/x/evidence/internal/keeper/keeper.go @@ -10,9 +10,9 @@ import ( "github.com/cosmos/cosmos-sdk/store/prefix" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/okex/okexchain/x/evidence/exported" - "github.com/okex/okexchain/x/evidence/internal/types" - "github.com/okex/okexchain/x/params" + "github.com/okex/exchain/x/evidence/exported" + "github.com/okex/exchain/x/evidence/internal/types" + "github.com/okex/exchain/x/params" ) // Keeper defines the evidence module's keeper. The keeper is responsible for diff --git a/x/evidence/internal/keeper/keeper_test.go b/x/evidence/internal/keeper/keeper_test.go index c29dd6117a..65077aab0d 100644 --- a/x/evidence/internal/keeper/keeper_test.go +++ b/x/evidence/internal/keeper/keeper_test.go @@ -6,16 +6,16 @@ import ( "testing" "github.com/cosmos/cosmos-sdk/codec" - "github.com/okex/okexchain/app" + "github.com/okex/exchain/app" "github.com/tendermint/tendermint/libs/log" dbm "github.com/tendermint/tm-db" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/x/supply" - "github.com/okex/okexchain/x/evidence" - "github.com/okex/okexchain/x/evidence/exported" - "github.com/okex/okexchain/x/evidence/internal/keeper" - "github.com/okex/okexchain/x/evidence/internal/types" + "github.com/okex/exchain/x/evidence" + "github.com/okex/exchain/x/evidence/exported" + "github.com/okex/exchain/x/evidence/internal/keeper" + "github.com/okex/exchain/x/evidence/internal/types" "github.com/stretchr/testify/suite" abci "github.com/tendermint/tendermint/abci/types" diff --git a/x/evidence/internal/keeper/params.go b/x/evidence/internal/keeper/params.go index 3161ae6d2b..cb6d7b88b7 100644 --- a/x/evidence/internal/keeper/params.go +++ b/x/evidence/internal/keeper/params.go @@ -4,7 +4,7 @@ import ( "time" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/evidence/internal/types" + "github.com/okex/exchain/x/evidence/internal/types" ) // MaxEvidenceAge returns the maximum age for submitted evidence. diff --git a/x/evidence/internal/keeper/params_test.go b/x/evidence/internal/keeper/params_test.go index 73a32431b8..efaf1bced2 100644 --- a/x/evidence/internal/keeper/params_test.go +++ b/x/evidence/internal/keeper/params_test.go @@ -1,7 +1,7 @@ package keeper_test import ( - "github.com/okex/okexchain/x/evidence/internal/types" + "github.com/okex/exchain/x/evidence/internal/types" ) func (suite *KeeperTestSuite) TestParams() { diff --git a/x/evidence/internal/keeper/querier.go b/x/evidence/internal/keeper/querier.go index 3eddd1b0ea..f59bf4e175 100644 --- a/x/evidence/internal/keeper/querier.go +++ b/x/evidence/internal/keeper/querier.go @@ -7,8 +7,8 @@ import ( "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/okex/okexchain/x/evidence/exported" - "github.com/okex/okexchain/x/evidence/internal/types" + "github.com/okex/exchain/x/evidence/exported" + "github.com/okex/exchain/x/evidence/internal/types" abci "github.com/tendermint/tendermint/abci/types" ) diff --git a/x/evidence/internal/keeper/querier_test.go b/x/evidence/internal/keeper/querier_test.go index 94877d7557..ec354acbb1 100644 --- a/x/evidence/internal/keeper/querier_test.go +++ b/x/evidence/internal/keeper/querier_test.go @@ -3,8 +3,8 @@ package keeper_test import ( "strings" - "github.com/okex/okexchain/x/evidence/exported" - "github.com/okex/okexchain/x/evidence/internal/types" + "github.com/okex/exchain/x/evidence/exported" + "github.com/okex/exchain/x/evidence/internal/types" abci "github.com/tendermint/tendermint/abci/types" ) diff --git a/x/evidence/internal/types/codec.go b/x/evidence/internal/types/codec.go index cc2af1227e..9d497faae0 100644 --- a/x/evidence/internal/types/codec.go +++ b/x/evidence/internal/types/codec.go @@ -2,7 +2,7 @@ package types import ( "github.com/cosmos/cosmos-sdk/codec" - "github.com/okex/okexchain/x/evidence/exported" + "github.com/okex/exchain/x/evidence/exported" ) // ModuleCdc defines the evidence module's codec. The codec is not sealed as to diff --git a/x/evidence/internal/types/codec_test.go b/x/evidence/internal/types/codec_test.go index e60ae2b5fb..b601588fb6 100644 --- a/x/evidence/internal/types/codec_test.go +++ b/x/evidence/internal/types/codec_test.go @@ -8,8 +8,8 @@ import ( "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/evidence/exported" - "github.com/okex/okexchain/x/evidence/internal/types" + "github.com/okex/exchain/x/evidence/exported" + "github.com/okex/exchain/x/evidence/internal/types" ) var _ exported.Evidence = (*testEvidence)(nil) diff --git a/x/evidence/internal/types/evidence_test.go b/x/evidence/internal/types/evidence_test.go index 1fab8d1709..a14379637f 100644 --- a/x/evidence/internal/types/evidence_test.go +++ b/x/evidence/internal/types/evidence_test.go @@ -7,7 +7,7 @@ import ( "github.com/stretchr/testify/require" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/evidence/internal/types" + "github.com/okex/exchain/x/evidence/internal/types" ) func TestEquivocation_Valid(t *testing.T) { diff --git a/x/evidence/internal/types/expected_keepers.go b/x/evidence/internal/types/expected_keepers.go index 9297807726..aaf1b732f9 100644 --- a/x/evidence/internal/types/expected_keepers.go +++ b/x/evidence/internal/types/expected_keepers.go @@ -4,7 +4,7 @@ import ( "time" sdk "github.com/cosmos/cosmos-sdk/types" - stakingexported "github.com/okex/okexchain/x/staking/exported" + stakingexported "github.com/okex/exchain/x/staking/exported" "github.com/tendermint/tendermint/crypto" ) diff --git a/x/evidence/internal/types/genesis.go b/x/evidence/internal/types/genesis.go index aa8a6ca9f5..1b3f663ef7 100644 --- a/x/evidence/internal/types/genesis.go +++ b/x/evidence/internal/types/genesis.go @@ -4,7 +4,7 @@ import ( "fmt" "time" - "github.com/okex/okexchain/x/evidence/exported" + "github.com/okex/exchain/x/evidence/exported" ) // DONTCOVER diff --git a/x/evidence/internal/types/genesis_test.go b/x/evidence/internal/types/genesis_test.go index b1c61efb94..c2e626fa18 100644 --- a/x/evidence/internal/types/genesis_test.go +++ b/x/evidence/internal/types/genesis_test.go @@ -6,8 +6,8 @@ import ( "github.com/stretchr/testify/require" "github.com/tendermint/tendermint/crypto/ed25519" - "github.com/okex/okexchain/x/evidence/exported" - "github.com/okex/okexchain/x/evidence/internal/types" + "github.com/okex/exchain/x/evidence/exported" + "github.com/okex/exchain/x/evidence/internal/types" ) func TestDefaultGenesisState(t *testing.T) { diff --git a/x/evidence/internal/types/msgs.go b/x/evidence/internal/types/msgs.go index 915da1b034..bf7f692fed 100644 --- a/x/evidence/internal/types/msgs.go +++ b/x/evidence/internal/types/msgs.go @@ -3,7 +3,7 @@ package types import ( sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/okex/okexchain/x/evidence/exported" + "github.com/okex/exchain/x/evidence/exported" ) // Message types for the evidence module diff --git a/x/evidence/internal/types/msgs_test.go b/x/evidence/internal/types/msgs_test.go index 81bad36f5a..329fd83bdb 100644 --- a/x/evidence/internal/types/msgs_test.go +++ b/x/evidence/internal/types/msgs_test.go @@ -4,8 +4,8 @@ import ( "testing" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/evidence/exported" - "github.com/okex/okexchain/x/evidence/internal/types" + "github.com/okex/exchain/x/evidence/exported" + "github.com/okex/exchain/x/evidence/internal/types" "github.com/stretchr/testify/require" "github.com/tendermint/tendermint/crypto/ed25519" diff --git a/x/evidence/internal/types/params.go b/x/evidence/internal/types/params.go index fbd4c243be..e75f7816bc 100644 --- a/x/evidence/internal/types/params.go +++ b/x/evidence/internal/types/params.go @@ -4,7 +4,7 @@ import ( "fmt" "time" - "github.com/okex/okexchain/x/params" + "github.com/okex/exchain/x/params" "gopkg.in/yaml.v2" ) diff --git a/x/evidence/internal/types/router.go b/x/evidence/internal/types/router.go index 9a941803f3..adfe59f1ac 100644 --- a/x/evidence/internal/types/router.go +++ b/x/evidence/internal/types/router.go @@ -4,7 +4,7 @@ import ( "fmt" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/evidence/exported" + "github.com/okex/exchain/x/evidence/exported" ) type ( diff --git a/x/evidence/internal/types/router_test.go b/x/evidence/internal/types/router_test.go index f3f7918bf8..f10946fe67 100644 --- a/x/evidence/internal/types/router_test.go +++ b/x/evidence/internal/types/router_test.go @@ -6,8 +6,8 @@ import ( "github.com/stretchr/testify/require" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/evidence/exported" - "github.com/okex/okexchain/x/evidence/internal/types" + "github.com/okex/exchain/x/evidence/exported" + "github.com/okex/exchain/x/evidence/internal/types" ) func testHandler(sdk.Context, exported.Evidence) error { return nil } diff --git a/x/evidence/internal/types/test_util.go b/x/evidence/internal/types/test_util.go index d1db30fc92..f5c63e3bd4 100644 --- a/x/evidence/internal/types/test_util.go +++ b/x/evidence/internal/types/test_util.go @@ -13,7 +13,7 @@ import ( "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/evidence/exported" + "github.com/okex/exchain/x/evidence/exported" "gopkg.in/yaml.v2" diff --git a/x/evidence/module.go b/x/evidence/module.go index c97016d9aa..b0af1a47c1 100644 --- a/x/evidence/module.go +++ b/x/evidence/module.go @@ -8,9 +8,9 @@ import ( "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" - "github.com/okex/okexchain/x/evidence/client" - "github.com/okex/okexchain/x/evidence/client/cli" - "github.com/okex/okexchain/x/evidence/client/rest" + "github.com/okex/exchain/x/evidence/client" + "github.com/okex/exchain/x/evidence/client/cli" + "github.com/okex/exchain/x/evidence/client/rest" "github.com/gorilla/mux" "github.com/spf13/cobra" diff --git a/x/evm/alias.go b/x/evm/alias.go index 3c630aaa74..ee56639ca6 100644 --- a/x/evm/alias.go +++ b/x/evm/alias.go @@ -1,8 +1,8 @@ package evm import ( - "github.com/okex/okexchain/x/evm/keeper" - "github.com/okex/okexchain/x/evm/types" + "github.com/okex/exchain/x/evm/keeper" + "github.com/okex/exchain/x/evm/types" ) // nolint diff --git a/x/evm/client/cli/query.go b/x/evm/client/cli/query.go index 7a39120ded..924b1dc44d 100644 --- a/x/evm/client/cli/query.go +++ b/x/evm/client/cli/query.go @@ -10,8 +10,8 @@ import ( "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/version" - "github.com/okex/okexchain/x/evm/client/rest" - "github.com/okex/okexchain/x/evm/types" + "github.com/okex/exchain/x/evm/client/rest" + "github.com/okex/exchain/x/evm/types" "github.com/pkg/errors" "github.com/spf13/cobra" ) diff --git a/x/evm/client/cli/tx.go b/x/evm/client/cli/tx.go index a65f1465fc..0ac885e146 100644 --- a/x/evm/client/cli/tx.go +++ b/x/evm/client/cli/tx.go @@ -18,10 +18,10 @@ import ( "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/hexutil" ethcrypto "github.com/ethereum/go-ethereum/crypto" - emint "github.com/okex/okexchain/app/types" - evmutils "github.com/okex/okexchain/x/evm/client/utils" - "github.com/okex/okexchain/x/evm/types" - "github.com/okex/okexchain/x/gov" + emint "github.com/okex/exchain/app/types" + evmutils "github.com/okex/exchain/x/evm/client/utils" + "github.com/okex/exchain/x/evm/types" + "github.com/okex/exchain/x/gov" "github.com/pkg/errors" "github.com/spf13/cobra" ) diff --git a/x/evm/client/proposal_handler.go b/x/evm/client/proposal_handler.go index b2f0d6fb5d..6242765afb 100644 --- a/x/evm/client/proposal_handler.go +++ b/x/evm/client/proposal_handler.go @@ -1,9 +1,9 @@ package client import ( - "github.com/okex/okexchain/x/evm/client/cli" - "github.com/okex/okexchain/x/evm/client/rest" - govcli "github.com/okex/okexchain/x/gov/client" + "github.com/okex/exchain/x/evm/client/cli" + "github.com/okex/exchain/x/evm/client/rest" + govcli "github.com/okex/exchain/x/gov/client" ) var ( diff --git a/x/evm/client/rest/rest.go b/x/evm/client/rest/rest.go index 6690f9e04d..e2ee114ded 100644 --- a/x/evm/client/rest/rest.go +++ b/x/evm/client/rest/rest.go @@ -17,10 +17,10 @@ import ( "github.com/cosmos/cosmos-sdk/x/auth/types" ethcommon "github.com/ethereum/go-ethereum/common" "github.com/gorilla/mux" - rpctypes "github.com/okex/okexchain/app/rpc/types" - "github.com/okex/okexchain/x/common" - evmtypes "github.com/okex/okexchain/x/evm/types" - govRest "github.com/okex/okexchain/x/gov/client/rest" + rpctypes "github.com/okex/exchain/app/rpc/types" + "github.com/okex/exchain/x/common" + evmtypes "github.com/okex/exchain/x/evm/types" + govRest "github.com/okex/exchain/x/gov/client/rest" "github.com/tendermint/tendermint/rpc/client" ctypes "github.com/tendermint/tendermint/rpc/core/types" ) diff --git a/x/evm/client/utils/utils.go b/x/evm/client/utils/utils.go index 5ed108bf53..94382255c7 100644 --- a/x/evm/client/utils/utils.go +++ b/x/evm/client/utils/utils.go @@ -1,7 +1,7 @@ package utils import ( - "github.com/okex/okexchain/x/evm/types" + "github.com/okex/exchain/x/evm/types" "io/ioutil" "github.com/cosmos/cosmos-sdk/codec" diff --git a/x/evm/client/utils/utils_test.go b/x/evm/client/utils/utils_test.go index 575b76aa77..6f275f39a1 100644 --- a/x/evm/client/utils/utils_test.go +++ b/x/evm/client/utils/utils_test.go @@ -5,8 +5,8 @@ import ( "testing" sdk "github.com/cosmos/cosmos-sdk/types" - okexchain "github.com/okex/okexchain/app/types" - "github.com/okex/okexchain/x/evm/types" + okexchain "github.com/okex/exchain/app/types" + "github.com/okex/exchain/x/evm/types" "github.com/stretchr/testify/require" ) diff --git a/x/evm/export_operation.go b/x/evm/export_operation.go index b292faf456..9f6bd546c7 100644 --- a/x/evm/export_operation.go +++ b/x/evm/export_operation.go @@ -15,7 +15,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" ethcmn "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/hexutil" - "github.com/okex/okexchain/x/evm/types" + "github.com/okex/exchain/x/evm/types" "github.com/tendermint/tendermint/libs/log" dbm "github.com/tendermint/tm-db" ) diff --git a/x/evm/genesis.go b/x/evm/genesis.go index 369af92523..48115d96a2 100644 --- a/x/evm/genesis.go +++ b/x/evm/genesis.go @@ -7,8 +7,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" authexported "github.com/cosmos/cosmos-sdk/x/auth/exported" ethcmn "github.com/ethereum/go-ethereum/common" - ethermint "github.com/okex/okexchain/app/types" - "github.com/okex/okexchain/x/evm/types" + ethermint "github.com/okex/exchain/app/types" + "github.com/okex/exchain/x/evm/types" "github.com/spf13/viper" abci "github.com/tendermint/tendermint/abci/types" ) diff --git a/x/evm/genesis_test.go b/x/evm/genesis_test.go index 860803151a..5b595f37df 100644 --- a/x/evm/genesis_test.go +++ b/x/evm/genesis_test.go @@ -15,11 +15,11 @@ import ( "github.com/ethereum/go-ethereum/common/hexutil" ethtypes "github.com/ethereum/go-ethereum/core/types" ethcrypto "github.com/ethereum/go-ethereum/crypto" - "github.com/okex/okexchain/app" - "github.com/okex/okexchain/app/crypto/ethsecp256k1" - ethermint "github.com/okex/okexchain/app/types" - "github.com/okex/okexchain/x/evm" - "github.com/okex/okexchain/x/evm/types" + "github.com/okex/exchain/app" + "github.com/okex/exchain/app/crypto/ethsecp256k1" + ethermint "github.com/okex/exchain/app/types" + "github.com/okex/exchain/x/evm" + "github.com/okex/exchain/x/evm/types" "github.com/spf13/viper" abci "github.com/tendermint/tendermint/abci/types" "github.com/tendermint/tendermint/libs/log" diff --git a/x/evm/handler.go b/x/evm/handler.go index ef75c71bf1..fd92bcc883 100644 --- a/x/evm/handler.go +++ b/x/evm/handler.go @@ -4,10 +4,10 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/ethereum/go-ethereum/common" - ethermint "github.com/okex/okexchain/app/types" - "github.com/okex/okexchain/x/common/perf" - "github.com/okex/okexchain/x/evm/types" - "github.com/okex/okexchain/x/evm/watcher" + ethermint "github.com/okex/exchain/app/types" + "github.com/okex/exchain/x/common/perf" + "github.com/okex/exchain/x/evm/types" + "github.com/okex/exchain/x/evm/watcher" tmtypes "github.com/tendermint/tendermint/types" ) diff --git a/x/evm/handler_test.go b/x/evm/handler_test.go index 592666ac33..93e27602fb 100644 --- a/x/evm/handler_test.go +++ b/x/evm/handler_test.go @@ -16,13 +16,13 @@ import ( ethcmn "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/hexutil" ethcrypto "github.com/ethereum/go-ethereum/crypto" - "github.com/okex/okexchain/app" - "github.com/okex/okexchain/app/crypto/ethsecp256k1" - ethermint "github.com/okex/okexchain/app/types" - "github.com/okex/okexchain/x/evm" - "github.com/okex/okexchain/x/evm/keeper" - "github.com/okex/okexchain/x/evm/types" - govtypes "github.com/okex/okexchain/x/gov/types" + "github.com/okex/exchain/app" + "github.com/okex/exchain/app/crypto/ethsecp256k1" + ethermint "github.com/okex/exchain/app/types" + "github.com/okex/exchain/x/evm" + "github.com/okex/exchain/x/evm/keeper" + "github.com/okex/exchain/x/evm/types" + govtypes "github.com/okex/exchain/x/gov/types" "github.com/status-im/keycard-go/hexutils" "github.com/stretchr/testify/suite" abci "github.com/tendermint/tendermint/abci/types" diff --git a/x/evm/keeper/abci.go b/x/evm/keeper/abci.go index a577d44797..bfcff69797 100644 --- a/x/evm/keeper/abci.go +++ b/x/evm/keeper/abci.go @@ -11,7 +11,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" ethtypes "github.com/ethereum/go-ethereum/core/types" - "github.com/okex/okexchain/x/evm/types" + "github.com/okex/exchain/x/evm/types" ) // BeginBlock sets the block hash -> block height map for the previous block height diff --git a/x/evm/keeper/abci_test.go b/x/evm/keeper/abci_test.go index fbce0f07e6..c8d9536364 100644 --- a/x/evm/keeper/abci_test.go +++ b/x/evm/keeper/abci_test.go @@ -6,7 +6,7 @@ import ( ethcmn "github.com/ethereum/go-ethereum/common" ethtypes "github.com/ethereum/go-ethereum/core/types" ethcrypto "github.com/ethereum/go-ethereum/crypto" - "github.com/okex/okexchain/app/crypto/ethsecp256k1" + "github.com/okex/exchain/app/crypto/ethsecp256k1" abci "github.com/tendermint/tendermint/abci/types" ) diff --git a/x/evm/keeper/expected_keeper.go b/x/evm/keeper/expected_keeper.go index 442f839c4f..e9fae406c8 100644 --- a/x/evm/keeper/expected_keeper.go +++ b/x/evm/keeper/expected_keeper.go @@ -2,7 +2,7 @@ package keeper import ( sdk "github.com/cosmos/cosmos-sdk/types" - govtypes "github.com/okex/okexchain/x/gov/types" + govtypes "github.com/okex/exchain/x/gov/types" ) // GovKeeper defines the expected gov Keeper diff --git a/x/evm/keeper/invariants.go b/x/evm/keeper/invariants.go index 305b6e750c..c9bf841898 100644 --- a/x/evm/keeper/invariants.go +++ b/x/evm/keeper/invariants.go @@ -5,8 +5,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" authexported "github.com/cosmos/cosmos-sdk/x/auth/exported" - ethermint "github.com/okex/okexchain/app/types" - "github.com/okex/okexchain/x/evm/types" + ethermint "github.com/okex/exchain/app/types" + "github.com/okex/exchain/x/evm/types" ) const ( diff --git a/x/evm/keeper/invariants_test.go b/x/evm/keeper/invariants_test.go index 98e97fdf97..e9fcd986e9 100644 --- a/x/evm/keeper/invariants_test.go +++ b/x/evm/keeper/invariants_test.go @@ -6,8 +6,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - "github.com/okex/okexchain/app/crypto/ethsecp256k1" - ethermint "github.com/okex/okexchain/app/types" + "github.com/okex/exchain/app/crypto/ethsecp256k1" + ethermint "github.com/okex/exchain/app/types" ethcmn "github.com/ethereum/go-ethereum/common" ) diff --git a/x/evm/keeper/keeper.go b/x/evm/keeper/keeper.go index 4f716808ab..babc3f7670 100644 --- a/x/evm/keeper/keeper.go +++ b/x/evm/keeper/keeper.go @@ -12,9 +12,9 @@ import ( "github.com/ethereum/go-ethereum/common" ethcmn "github.com/ethereum/go-ethereum/common" ethtypes "github.com/ethereum/go-ethereum/core/types" - "github.com/okex/okexchain/x/evm/types" - "github.com/okex/okexchain/x/evm/watcher" - "github.com/okex/okexchain/x/params" + "github.com/okex/exchain/x/evm/types" + "github.com/okex/exchain/x/evm/watcher" + "github.com/okex/exchain/x/params" "github.com/spf13/viper" "github.com/tendermint/tendermint/libs/log" ) diff --git a/x/evm/keeper/keeper_direct.go b/x/evm/keeper/keeper_direct.go index 930577cc97..044bebe2ee 100644 --- a/x/evm/keeper/keeper_direct.go +++ b/x/evm/keeper/keeper_direct.go @@ -4,7 +4,7 @@ import ( "github.com/cosmos/cosmos-sdk/store/prefix" sdk "github.com/cosmos/cosmos-sdk/types" ethcmn "github.com/ethereum/go-ethereum/common" - "github.com/okex/okexchain/x/evm/types" + "github.com/okex/exchain/x/evm/types" ) // SetCodeDirectly commit code into db with no cache diff --git a/x/evm/keeper/keeper_test.go b/x/evm/keeper/keeper_test.go index a46c876da3..63c71449e9 100644 --- a/x/evm/keeper/keeper_test.go +++ b/x/evm/keeper/keeper_test.go @@ -10,10 +10,10 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/x/auth" - "github.com/okex/okexchain/app" - ethermint "github.com/okex/okexchain/app/types" - "github.com/okex/okexchain/x/evm/keeper" - "github.com/okex/okexchain/x/evm/types" + "github.com/okex/exchain/app" + ethermint "github.com/okex/exchain/app/types" + "github.com/okex/exchain/x/evm/keeper" + "github.com/okex/exchain/x/evm/types" ethcmn "github.com/ethereum/go-ethereum/common" ethtypes "github.com/ethereum/go-ethereum/core/types" diff --git a/x/evm/keeper/params.go b/x/evm/keeper/params.go index 6a6e247214..777830168e 100644 --- a/x/evm/keeper/params.go +++ b/x/evm/keeper/params.go @@ -2,7 +2,7 @@ package keeper import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/evm/types" + "github.com/okex/exchain/x/evm/types" ) // GetParams returns the total set of evm parameters. diff --git a/x/evm/keeper/params_test.go b/x/evm/keeper/params_test.go index 3a0a638f2f..3402416cde 100644 --- a/x/evm/keeper/params_test.go +++ b/x/evm/keeper/params_test.go @@ -1,7 +1,7 @@ package keeper_test import ( - "github.com/okex/okexchain/x/evm/types" + "github.com/okex/exchain/x/evm/types" ) func (suite *KeeperTestSuite) TestParams() { diff --git a/x/evm/keeper/proposal.go b/x/evm/keeper/proposal.go index 95835cfd81..94383ed20d 100644 --- a/x/evm/keeper/proposal.go +++ b/x/evm/keeper/proposal.go @@ -5,10 +5,10 @@ import ( "time" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/evm/types" - sdkGov "github.com/okex/okexchain/x/gov" - govKeeper "github.com/okex/okexchain/x/gov/keeper" - govTypes "github.com/okex/okexchain/x/gov/types" + "github.com/okex/exchain/x/evm/types" + sdkGov "github.com/okex/exchain/x/gov" + govKeeper "github.com/okex/exchain/x/gov/keeper" + govTypes "github.com/okex/exchain/x/gov/types" ) var _ govKeeper.ProposalHandler = (*Keeper)(nil) diff --git a/x/evm/keeper/proposal_test.go b/x/evm/keeper/proposal_test.go index 890686a708..e74fce0a7f 100644 --- a/x/evm/keeper/proposal_test.go +++ b/x/evm/keeper/proposal_test.go @@ -5,8 +5,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" ethcmn "github.com/ethereum/go-ethereum/common" - "github.com/okex/okexchain/x/evm/types" - govtypes "github.com/okex/okexchain/x/gov/types" + "github.com/okex/exchain/x/evm/types" + govtypes "github.com/okex/exchain/x/gov/types" "github.com/stretchr/testify/require" ) diff --git a/x/evm/keeper/querier.go b/x/evm/keeper/querier.go index 0f8c1bbce8..7dafd24880 100644 --- a/x/evm/keeper/querier.go +++ b/x/evm/keeper/querier.go @@ -9,8 +9,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" ethcmn "github.com/ethereum/go-ethereum/common" - "github.com/okex/okexchain/app/utils" - "github.com/okex/okexchain/x/evm/types" + "github.com/okex/exchain/app/utils" + "github.com/okex/exchain/x/evm/types" abci "github.com/tendermint/tendermint/abci/types" ) diff --git a/x/evm/keeper/querier_test.go b/x/evm/keeper/querier_test.go index b7fa5953d2..2d43b0a057 100644 --- a/x/evm/keeper/querier_test.go +++ b/x/evm/keeper/querier_test.go @@ -7,7 +7,7 @@ import ( ethcmn "github.com/ethereum/go-ethereum/common" ethtypes "github.com/ethereum/go-ethereum/core/types" - "github.com/okex/okexchain/x/evm/types" + "github.com/okex/exchain/x/evm/types" abci "github.com/tendermint/tendermint/abci/types" ) diff --git a/x/evm/keeper/statedb.go b/x/evm/keeper/statedb.go index af3f8be65e..2a459ce100 100644 --- a/x/evm/keeper/statedb.go +++ b/x/evm/keeper/statedb.go @@ -3,7 +3,7 @@ package keeper import ( "math/big" - "github.com/okex/okexchain/x/evm/types" + "github.com/okex/exchain/x/evm/types" sdk "github.com/cosmos/cosmos-sdk/types" diff --git a/x/evm/keeper/statedb_test.go b/x/evm/keeper/statedb_test.go index b082f022e1..516b6ad242 100644 --- a/x/evm/keeper/statedb_test.go +++ b/x/evm/keeper/statedb_test.go @@ -10,9 +10,9 @@ import ( ethtypes "github.com/ethereum/go-ethereum/core/types" ethcrypto "github.com/ethereum/go-ethereum/crypto" - "github.com/okex/okexchain/app/crypto/ethsecp256k1" - ethermint "github.com/okex/okexchain/app/types" - "github.com/okex/okexchain/x/evm/types" + "github.com/okex/exchain/app/crypto/ethsecp256k1" + ethermint "github.com/okex/exchain/app/types" + "github.com/okex/exchain/x/evm/types" ) func (suite *KeeperTestSuite) TestBloomFilter() { diff --git a/x/evm/module.go b/x/evm/module.go index ae3a2944fe..6970bac8bc 100644 --- a/x/evm/module.go +++ b/x/evm/module.go @@ -13,9 +13,9 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" - "github.com/okex/okexchain/x/evm/client/cli" - "github.com/okex/okexchain/x/evm/keeper" - "github.com/okex/okexchain/x/evm/types" + "github.com/okex/exchain/x/evm/client/cli" + "github.com/okex/exchain/x/evm/keeper" + "github.com/okex/exchain/x/evm/types" ) var _ module.AppModuleBasic = AppModuleBasic{} diff --git a/x/evm/proposal_handler.go b/x/evm/proposal_handler.go index f6b13311e7..6012aaa050 100644 --- a/x/evm/proposal_handler.go +++ b/x/evm/proposal_handler.go @@ -2,9 +2,9 @@ package evm import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/common" - "github.com/okex/okexchain/x/evm/types" - govTypes "github.com/okex/okexchain/x/gov/types" + "github.com/okex/exchain/x/common" + "github.com/okex/exchain/x/evm/types" + govTypes "github.com/okex/exchain/x/gov/types" ) // NewManageContractDeploymentWhitelistProposalHandler handles "gov" type message in "evm" diff --git a/x/evm/proposal_handler_test.go b/x/evm/proposal_handler_test.go index b806cba841..3445b589c0 100644 --- a/x/evm/proposal_handler_test.go +++ b/x/evm/proposal_handler_test.go @@ -2,9 +2,9 @@ package evm_test import ( ethcmn "github.com/ethereum/go-ethereum/common" - "github.com/okex/okexchain/x/evm" - "github.com/okex/okexchain/x/evm/types" - govtypes "github.com/okex/okexchain/x/gov/types" + "github.com/okex/exchain/x/evm" + "github.com/okex/exchain/x/evm/types" + govtypes "github.com/okex/exchain/x/gov/types" ) func (suite *EvmTestSuite) TestProposalHandler_ManageContractDeploymentWhitelistProposal() { diff --git a/x/evm/types/access_list_test.go b/x/evm/types/access_list_test.go index 019445bbea..574ee0b09f 100644 --- a/x/evm/types/access_list_test.go +++ b/x/evm/types/access_list_test.go @@ -8,7 +8,7 @@ import ( ethcmn "github.com/ethereum/go-ethereum/common" - "github.com/okex/okexchain/app/crypto/ethsecp256k1" + "github.com/okex/exchain/app/crypto/ethsecp256k1" ) type AccessListTestSuite struct { diff --git a/x/evm/types/genesis_test.go b/x/evm/types/genesis_test.go index f8aafc7589..fc576484b1 100644 --- a/x/evm/types/genesis_test.go +++ b/x/evm/types/genesis_test.go @@ -6,7 +6,7 @@ import ( ethcmn "github.com/ethereum/go-ethereum/common" ethtypes "github.com/ethereum/go-ethereum/core/types" ethcrypto "github.com/ethereum/go-ethereum/crypto" - "github.com/okex/okexchain/app/crypto/ethsecp256k1" + "github.com/okex/exchain/app/crypto/ethsecp256k1" "github.com/stretchr/testify/require" ) diff --git a/x/evm/types/journal_test.go b/x/evm/types/journal_test.go index 1df9bf4794..d61c53acab 100644 --- a/x/evm/types/journal_test.go +++ b/x/evm/types/journal_test.go @@ -19,14 +19,14 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/x/auth" "github.com/cosmos/cosmos-sdk/x/gov/types" - "github.com/okex/okexchain/x/params" + "github.com/okex/exchain/x/params" ethcmn "github.com/ethereum/go-ethereum/common" ethtypes "github.com/ethereum/go-ethereum/core/types" ethcrypto "github.com/ethereum/go-ethereum/crypto" - "github.com/okex/okexchain/app/crypto/ethsecp256k1" - ethermint "github.com/okex/okexchain/app/types" + "github.com/okex/exchain/app/crypto/ethsecp256k1" + ethermint "github.com/okex/exchain/app/types" ) type JournalTestSuite struct { diff --git a/x/evm/types/logs_test.go b/x/evm/types/logs_test.go index a6c821c21c..26275783b6 100644 --- a/x/evm/types/logs_test.go +++ b/x/evm/types/logs_test.go @@ -3,7 +3,7 @@ package types import ( "testing" - "github.com/okex/okexchain/app/crypto/ethsecp256k1" + "github.com/okex/exchain/app/crypto/ethsecp256k1" "github.com/stretchr/testify/require" ethcmn "github.com/ethereum/go-ethereum/common" diff --git a/x/evm/types/msg.go b/x/evm/types/msg.go index 4819399560..888167603c 100644 --- a/x/evm/types/msg.go +++ b/x/evm/types/msg.go @@ -10,7 +10,7 @@ import ( "github.com/cosmos/cosmos-sdk/x/auth/ante" - "github.com/okex/okexchain/app/types" + "github.com/okex/exchain/app/types" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" diff --git a/x/evm/types/msg_test.go b/x/evm/types/msg_test.go index 7d181ac70c..7fa603c686 100644 --- a/x/evm/types/msg_test.go +++ b/x/evm/types/msg_test.go @@ -13,7 +13,7 @@ import ( "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/app/crypto/ethsecp256k1" + "github.com/okex/exchain/app/crypto/ethsecp256k1" ethcmn "github.com/ethereum/go-ethereum/common" ethtypes "github.com/ethereum/go-ethereum/core/types" diff --git a/x/evm/types/params.go b/x/evm/types/params.go index 7f4fc32b77..f605ee1b21 100644 --- a/x/evm/types/params.go +++ b/x/evm/types/params.go @@ -6,7 +6,7 @@ import ( "gopkg.in/yaml.v2" "github.com/ethereum/go-ethereum/core/vm" - "github.com/okex/okexchain/x/params" + "github.com/okex/exchain/x/params" ) const ( diff --git a/x/evm/types/proposal.go b/x/evm/types/proposal.go index 1442baa51b..32340d3b86 100644 --- a/x/evm/types/proposal.go +++ b/x/evm/types/proposal.go @@ -5,7 +5,7 @@ import ( "strings" sdk "github.com/cosmos/cosmos-sdk/types" - govtypes "github.com/okex/okexchain/x/gov/types" + govtypes "github.com/okex/exchain/x/gov/types" ) const ( diff --git a/x/evm/types/proposal_test.go b/x/evm/types/proposal_test.go index 97d9e78602..3e18959e0e 100644 --- a/x/evm/types/proposal_test.go +++ b/x/evm/types/proposal_test.go @@ -6,7 +6,7 @@ import ( "testing" ethcmn "github.com/ethereum/go-ethereum/common" - govtypes "github.com/okex/okexchain/x/gov/types" + govtypes "github.com/okex/exchain/x/gov/types" "github.com/stretchr/testify/suite" ) diff --git a/x/evm/types/state_object.go b/x/evm/types/state_object.go index aad6e9f1b1..0518f4a163 100644 --- a/x/evm/types/state_object.go +++ b/x/evm/types/state_object.go @@ -13,7 +13,7 @@ import ( ethstate "github.com/ethereum/go-ethereum/core/state" ethcrypto "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/rlp" - "github.com/okex/okexchain/app/types" + "github.com/okex/exchain/app/types" ) var ( diff --git a/x/evm/types/state_transition_test.go b/x/evm/types/state_transition_test.go index 01a785f444..75bb72def1 100644 --- a/x/evm/types/state_transition_test.go +++ b/x/evm/types/state_transition_test.go @@ -7,9 +7,9 @@ import ( "github.com/ethereum/go-ethereum/common" ethcmn "github.com/ethereum/go-ethereum/common" ethcrypto "github.com/ethereum/go-ethereum/crypto" - "github.com/okex/okexchain/app/crypto/ethsecp256k1" - ethermint "github.com/okex/okexchain/app/types" - "github.com/okex/okexchain/x/evm/types" + "github.com/okex/exchain/app/crypto/ethsecp256k1" + ethermint "github.com/okex/exchain/app/types" + "github.com/okex/exchain/x/evm/types" abci "github.com/tendermint/tendermint/abci/types" ) diff --git a/x/evm/types/statedb.go b/x/evm/types/statedb.go index 013f949f14..16644817c7 100644 --- a/x/evm/types/statedb.go +++ b/x/evm/types/statedb.go @@ -14,8 +14,8 @@ import ( ethtypes "github.com/ethereum/go-ethereum/core/types" ethvm "github.com/ethereum/go-ethereum/core/vm" ethcrypto "github.com/ethereum/go-ethereum/crypto" - ethermint "github.com/okex/okexchain/app/types" - "github.com/okex/okexchain/x/params" + ethermint "github.com/okex/exchain/app/types" + "github.com/okex/exchain/x/params" ) var ( diff --git a/x/evm/types/statedb_test.go b/x/evm/types/statedb_test.go index 6ed3932c5a..ef7b235bc5 100644 --- a/x/evm/types/statedb_test.go +++ b/x/evm/types/statedb_test.go @@ -10,10 +10,10 @@ import ( ethcmn "github.com/ethereum/go-ethereum/common" ethtypes "github.com/ethereum/go-ethereum/core/types" ethcrypto "github.com/ethereum/go-ethereum/crypto" - "github.com/okex/okexchain/app" - "github.com/okex/okexchain/app/crypto/ethsecp256k1" - ethermint "github.com/okex/okexchain/app/types" - "github.com/okex/okexchain/x/evm/types" + "github.com/okex/exchain/app" + "github.com/okex/exchain/app/crypto/ethsecp256k1" + ethermint "github.com/okex/exchain/app/types" + "github.com/okex/exchain/x/evm/types" "github.com/stretchr/testify/suite" abci "github.com/tendermint/tendermint/abci/types" ) diff --git a/x/evm/types/tx_data.go b/x/evm/types/tx_data.go index 8451180fee..5ca31dbe2b 100644 --- a/x/evm/types/tx_data.go +++ b/x/evm/types/tx_data.go @@ -4,7 +4,7 @@ import ( "fmt" "math/big" - "github.com/okex/okexchain/app/utils" + "github.com/okex/exchain/app/utils" ethcmn "github.com/ethereum/go-ethereum/common" ) diff --git a/x/evm/types/utils.go b/x/evm/types/utils.go index f925090f8e..b7fa77fe74 100644 --- a/x/evm/types/utils.go +++ b/x/evm/types/utils.go @@ -9,7 +9,7 @@ import ( ethtypes "github.com/ethereum/go-ethereum/core/types" ethcrypto "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/rlp" - "github.com/okex/okexchain/app/crypto/ethsecp256k1" + "github.com/okex/exchain/app/crypto/ethsecp256k1" "github.com/pkg/errors" "golang.org/x/crypto/sha3" "math/big" diff --git a/x/evm/watcher/querier.go b/x/evm/watcher/querier.go index 2a5ba7ce34..56464d0ae3 100644 --- a/x/evm/watcher/querier.go +++ b/x/evm/watcher/querier.go @@ -8,7 +8,7 @@ import ( ethtypes "github.com/ethereum/go-ethereum/core/types" - rpctypes "github.com/okex/okexchain/app/rpc/types" + rpctypes "github.com/okex/exchain/app/rpc/types" "github.com/ethereum/go-ethereum/common" ) diff --git a/x/evm/watcher/types.go b/x/evm/watcher/types.go index 83e8dbc936..8ed33468fd 100644 --- a/x/evm/watcher/types.go +++ b/x/evm/watcher/types.go @@ -9,8 +9,8 @@ import ( "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/hexutil" ethtypes "github.com/ethereum/go-ethereum/core/types" - rpctypes "github.com/okex/okexchain/app/rpc/types" - "github.com/okex/okexchain/x/evm/types" + rpctypes "github.com/okex/exchain/app/rpc/types" + "github.com/okex/exchain/x/evm/types" "github.com/status-im/keycard-go/hexutils" abci "github.com/tendermint/tendermint/abci/types" ) diff --git a/x/evm/watcher/watcher.go b/x/evm/watcher/watcher.go index c985227048..7f3c7ec896 100644 --- a/x/evm/watcher/watcher.go +++ b/x/evm/watcher/watcher.go @@ -7,7 +7,7 @@ import ( "github.com/ethereum/go-ethereum/common" ethtypes "github.com/ethereum/go-ethereum/core/types" - types2 "github.com/okex/okexchain/x/evm/types" + types2 "github.com/okex/exchain/x/evm/types" "github.com/tendermint/tendermint/abci/types" ) diff --git a/x/farm/abci.go b/x/farm/abci.go index 58b32daedd..714d95c7da 100644 --- a/x/farm/abci.go +++ b/x/farm/abci.go @@ -4,8 +4,8 @@ import ( "fmt" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/farm/keeper" - "github.com/okex/okexchain/x/farm/types" + "github.com/okex/exchain/x/farm/keeper" + "github.com/okex/exchain/x/farm/types" abci "github.com/tendermint/tendermint/abci/types" ) diff --git a/x/farm/abci_test.go b/x/farm/abci_test.go index 18b324ec01..9fa1c77a3e 100644 --- a/x/farm/abci_test.go +++ b/x/farm/abci_test.go @@ -5,9 +5,9 @@ import ( "github.com/stretchr/testify/require" - swap "github.com/okex/okexchain/x/ammswap/types" - "github.com/okex/okexchain/x/farm/keeper" - "github.com/okex/okexchain/x/farm/types" + swap "github.com/okex/exchain/x/ammswap/types" + "github.com/okex/exchain/x/farm/keeper" + "github.com/okex/exchain/x/farm/types" sdk "github.com/cosmos/cosmos-sdk/types" abci "github.com/tendermint/tendermint/abci/types" diff --git a/x/farm/alias.go b/x/farm/alias.go index ddaeaa7e13..822ba1281d 100644 --- a/x/farm/alias.go +++ b/x/farm/alias.go @@ -1,8 +1,8 @@ package farm import ( - "github.com/okex/okexchain/x/farm/keeper" - "github.com/okex/okexchain/x/farm/types" + "github.com/okex/exchain/x/farm/keeper" + "github.com/okex/exchain/x/farm/types" ) const ( diff --git a/x/farm/client/cli/query.go b/x/farm/client/cli/query.go index 8754c36f1f..3f6dad1bae 100644 --- a/x/farm/client/cli/query.go +++ b/x/farm/client/cli/query.go @@ -11,7 +11,7 @@ import ( "github.com/cosmos/cosmos-sdk/client/context" client "github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/codec" - "github.com/okex/okexchain/x/farm/types" + "github.com/okex/exchain/x/farm/types" ) // GetQueryCmd returns the cli query commands for this module diff --git a/x/farm/client/cli/tx.go b/x/farm/client/cli/tx.go index a95549d832..fb10f8e5ae 100644 --- a/x/farm/client/cli/tx.go +++ b/x/farm/client/cli/tx.go @@ -11,13 +11,13 @@ import ( "github.com/cosmos/cosmos-sdk/version" "github.com/cosmos/cosmos-sdk/x/auth" "github.com/cosmos/cosmos-sdk/x/auth/client/utils" - "github.com/okex/okexchain/x/gov" + "github.com/okex/exchain/x/gov" "github.com/spf13/cobra" client "github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/codec" - farmutils "github.com/okex/okexchain/x/farm/client/utils" - "github.com/okex/okexchain/x/farm/types" + farmutils "github.com/okex/exchain/x/farm/client/utils" + "github.com/okex/exchain/x/farm/types" ) // GetTxCmd returns the transaction commands for this module diff --git a/x/farm/client/proposal_handler.go b/x/farm/client/proposal_handler.go index f0b7891600..64b5e7eed6 100644 --- a/x/farm/client/proposal_handler.go +++ b/x/farm/client/proposal_handler.go @@ -1,9 +1,9 @@ package client import ( - "github.com/okex/okexchain/x/farm/client/cli" - "github.com/okex/okexchain/x/farm/client/rest" - govcli "github.com/okex/okexchain/x/gov/client" + "github.com/okex/exchain/x/farm/client/cli" + "github.com/okex/exchain/x/farm/client/rest" + govcli "github.com/okex/exchain/x/gov/client" ) var ( diff --git a/x/farm/client/rest/query.go b/x/farm/client/rest/query.go index 06e0c4589c..3b0ec1bc3b 100644 --- a/x/farm/client/rest/query.go +++ b/x/farm/client/rest/query.go @@ -5,13 +5,13 @@ import ( "net/http" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/common" + "github.com/okex/exchain/x/common" "github.com/gorilla/mux" "github.com/cosmos/cosmos-sdk/client/context" "github.com/cosmos/cosmos-sdk/types/rest" - "github.com/okex/okexchain/x/farm/types" + "github.com/okex/exchain/x/farm/types" ) func registerQueryRoutes(cliCtx context.CLIContext, r *mux.Router) { diff --git a/x/farm/client/rest/rest.go b/x/farm/client/rest/rest.go index 35ce80e3db..df5e2445c2 100644 --- a/x/farm/client/rest/rest.go +++ b/x/farm/client/rest/rest.go @@ -2,7 +2,7 @@ package rest import ( "github.com/gorilla/mux" - govRest "github.com/okex/okexchain/x/gov/client/rest" + govRest "github.com/okex/exchain/x/gov/client/rest" "github.com/cosmos/cosmos-sdk/client/context" ) diff --git a/x/farm/client/rest/tx.go b/x/farm/client/rest/tx.go index 5bb00c237b..123254b6a4 100644 --- a/x/farm/client/rest/tx.go +++ b/x/farm/client/rest/tx.go @@ -11,7 +11,7 @@ import ( // sdk "github.com/cosmos/cosmos-sdk/types" // "github.com/cosmos/cosmos-sdk/types/rest" // "github.com/cosmos/cosmos-sdk/x/auth/client/utils" - // "github.com/okex/okexchain/x/farm/types" + // "github.com/okex/exchain/x/farm/types" ) func registerTxRoutes(cliCtx context.CLIContext, r *mux.Router) { diff --git a/x/farm/genesis.go b/x/farm/genesis.go index 1360cf5816..2ab844940e 100644 --- a/x/farm/genesis.go +++ b/x/farm/genesis.go @@ -3,8 +3,8 @@ package farm import ( "fmt" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/farm/keeper" - "github.com/okex/okexchain/x/farm/types" + "github.com/okex/exchain/x/farm/keeper" + "github.com/okex/exchain/x/farm/types" ) // InitGenesis initialize default parameters and the keeper's address to pubkey map diff --git a/x/farm/genesis_test.go b/x/farm/genesis_test.go index 1a7af3ad4c..e8804c7de5 100644 --- a/x/farm/genesis_test.go +++ b/x/farm/genesis_test.go @@ -4,8 +4,8 @@ import ( "testing" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/farm/keeper" - "github.com/okex/okexchain/x/farm/types" + "github.com/okex/exchain/x/farm/keeper" + "github.com/okex/exchain/x/farm/types" "github.com/stretchr/testify/require" ) diff --git a/x/farm/handler.go b/x/farm/handler.go index 874d8f6321..fd3a74db2e 100644 --- a/x/farm/handler.go +++ b/x/farm/handler.go @@ -4,13 +4,13 @@ import ( "fmt" "strconv" - "github.com/okex/okexchain/x/common" + "github.com/okex/exchain/x/common" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/common/perf" - "github.com/okex/okexchain/x/farm/keeper" - "github.com/okex/okexchain/x/farm/types" + "github.com/okex/exchain/x/common/perf" + "github.com/okex/exchain/x/farm/keeper" + "github.com/okex/exchain/x/farm/types" ) // NewHandler creates an sdk.Handler for all the farm type messages diff --git a/x/farm/handler_lock.go b/x/farm/handler_lock.go index 7075187e53..84a3e9169c 100644 --- a/x/farm/handler_lock.go +++ b/x/farm/handler_lock.go @@ -2,8 +2,8 @@ package farm import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/farm/keeper" - "github.com/okex/okexchain/x/farm/types" + "github.com/okex/exchain/x/farm/keeper" + "github.com/okex/exchain/x/farm/types" ) func handleMsgLock(ctx sdk.Context, k keeper.Keeper, msg types.MsgLock) (*sdk.Result, error) { diff --git a/x/farm/handler_pool.go b/x/farm/handler_pool.go index 3ffd8f9dd4..507cae61cb 100644 --- a/x/farm/handler_pool.go +++ b/x/farm/handler_pool.go @@ -2,9 +2,9 @@ package farm import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/common" - "github.com/okex/okexchain/x/farm/keeper" - "github.com/okex/okexchain/x/farm/types" + "github.com/okex/exchain/x/common" + "github.com/okex/exchain/x/farm/keeper" + "github.com/okex/exchain/x/farm/types" ) func handleMsgCreatePool(ctx sdk.Context, k keeper.Keeper, msg types.MsgCreatePool) (*sdk.Result, error) { diff --git a/x/farm/handler_test.go b/x/farm/handler_test.go index 944ca35389..39a8076104 100644 --- a/x/farm/handler_test.go +++ b/x/farm/handler_test.go @@ -7,14 +7,14 @@ import ( "math/rand" "testing" - "github.com/okex/okexchain/x/common" + "github.com/okex/exchain/x/common" sdk "github.com/cosmos/cosmos-sdk/types" - swap "github.com/okex/okexchain/x/ammswap" - swaptypes "github.com/okex/okexchain/x/ammswap/types" - "github.com/okex/okexchain/x/farm/keeper" - "github.com/okex/okexchain/x/farm/types" - "github.com/okex/okexchain/x/token" + swap "github.com/okex/exchain/x/ammswap" + swaptypes "github.com/okex/exchain/x/ammswap/types" + "github.com/okex/exchain/x/farm/keeper" + "github.com/okex/exchain/x/farm/types" + "github.com/okex/exchain/x/token" "github.com/stretchr/testify/require" abci "github.com/tendermint/tendermint/abci/types" ) diff --git a/x/farm/keeper/calc.go b/x/farm/keeper/calc.go index b6971df444..2fb53b736e 100644 --- a/x/farm/keeper/calc.go +++ b/x/farm/keeper/calc.go @@ -2,7 +2,7 @@ package keeper import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/farm/types" + "github.com/okex/exchain/x/farm/types" ) // CalculateAmountYieldedBetween is used for calculating how many tokens haven been yielded from diff --git a/x/farm/keeper/calc_test.go b/x/farm/keeper/calc_test.go index e5f4b7dad8..5e6e040d7f 100644 --- a/x/farm/keeper/calc_test.go +++ b/x/farm/keeper/calc_test.go @@ -4,7 +4,7 @@ import ( "testing" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/farm/types" + "github.com/okex/exchain/x/farm/types" "github.com/stretchr/testify/require" ) diff --git a/x/farm/keeper/earnings.go b/x/farm/keeper/earnings.go index 851c7855fb..56dd2c8abf 100644 --- a/x/farm/keeper/earnings.go +++ b/x/farm/keeper/earnings.go @@ -2,7 +2,7 @@ package keeper import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/farm/types" + "github.com/okex/exchain/x/farm/types" ) // GetEarnings gets the earnings info by a given user address and a specific pool name diff --git a/x/farm/keeper/expected_keeper.go b/x/farm/keeper/expected_keeper.go index 25c4c10ce7..921653726c 100644 --- a/x/farm/keeper/expected_keeper.go +++ b/x/farm/keeper/expected_keeper.go @@ -1,7 +1,7 @@ package keeper import ( - govtypes "github.com/okex/okexchain/x/gov/types" + govtypes "github.com/okex/exchain/x/gov/types" sdk "github.com/cosmos/cosmos-sdk/types" "time" diff --git a/x/farm/keeper/farm_pool.go b/x/farm/keeper/farm_pool.go index 2a172c4c12..3c3c5c5053 100644 --- a/x/farm/keeper/farm_pool.go +++ b/x/farm/keeper/farm_pool.go @@ -2,8 +2,8 @@ package keeper import ( sdk "github.com/cosmos/cosmos-sdk/types" - swaptypes "github.com/okex/okexchain/x/ammswap/types" - "github.com/okex/okexchain/x/farm/types" + swaptypes "github.com/okex/exchain/x/ammswap/types" + "github.com/okex/exchain/x/farm/types" ) func (k Keeper) SetFarmPool(ctx sdk.Context, pool types.FarmPool) { diff --git a/x/farm/keeper/farm_pool_test.go b/x/farm/keeper/farm_pool_test.go index 636ab9e934..41f6d56919 100644 --- a/x/farm/keeper/farm_pool_test.go +++ b/x/farm/keeper/farm_pool_test.go @@ -5,8 +5,8 @@ import ( "testing" sdk "github.com/cosmos/cosmos-sdk/types" - swaptypes "github.com/okex/okexchain/x/ammswap/types" - "github.com/okex/okexchain/x/farm/types" + swaptypes "github.com/okex/exchain/x/ammswap/types" + "github.com/okex/exchain/x/farm/types" "github.com/stretchr/testify/require" ) diff --git a/x/farm/keeper/historical_reward.go b/x/farm/keeper/historical_reward.go index 35112aa169..6070e0fa70 100644 --- a/x/farm/keeper/historical_reward.go +++ b/x/farm/keeper/historical_reward.go @@ -3,7 +3,7 @@ package keeper import ( "encoding/binary" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/farm/types" + "github.com/okex/exchain/x/farm/types" ) func (k Keeper) GetPoolHistoricalRewards( diff --git a/x/farm/keeper/historical_reward_test.go b/x/farm/keeper/historical_reward_test.go index b667b7afdc..7db4889fc3 100644 --- a/x/farm/keeper/historical_reward_test.go +++ b/x/farm/keeper/historical_reward_test.go @@ -4,8 +4,8 @@ import ( "encoding/binary" "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/common" - "github.com/okex/okexchain/x/farm/types" + "github.com/okex/exchain/x/common" + "github.com/okex/exchain/x/farm/types" "github.com/stretchr/testify/require" "testing" ) diff --git a/x/farm/keeper/invariants.go b/x/farm/keeper/invariants.go index 1c37403b9b..84311ac644 100644 --- a/x/farm/keeper/invariants.go +++ b/x/farm/keeper/invariants.go @@ -3,7 +3,7 @@ package keeper import ( "fmt" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/farm/types" + "github.com/okex/exchain/x/farm/types" ) // RegisterInvariants registers all farm invariants diff --git a/x/farm/keeper/invariants_test.go b/x/farm/keeper/invariants_test.go index cf036fc208..ca8ea964a6 100644 --- a/x/farm/keeper/invariants_test.go +++ b/x/farm/keeper/invariants_test.go @@ -1,7 +1,7 @@ package keeper import ( - swaptypes "github.com/okex/okexchain/x/ammswap/types" + swaptypes "github.com/okex/exchain/x/ammswap/types" "github.com/stretchr/testify/require" "testing" ) diff --git a/x/farm/keeper/keeper.go b/x/farm/keeper/keeper.go index 782143fd41..8c8e418289 100644 --- a/x/farm/keeper/keeper.go +++ b/x/farm/keeper/keeper.go @@ -4,9 +4,9 @@ import ( "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/x/supply" - swap "github.com/okex/okexchain/x/ammswap/keeper" - "github.com/okex/okexchain/x/farm/types" - "github.com/okex/okexchain/x/token" + swap "github.com/okex/exchain/x/ammswap/keeper" + "github.com/okex/exchain/x/farm/types" + "github.com/okex/exchain/x/token" "github.com/tendermint/tendermint/libs/log" ) diff --git a/x/farm/keeper/params.go b/x/farm/keeper/params.go index 4b9be129d9..24ba6ad9e4 100644 --- a/x/farm/keeper/params.go +++ b/x/farm/keeper/params.go @@ -2,7 +2,7 @@ package keeper import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/farm/types" + "github.com/okex/exchain/x/farm/types" ) // SetParams sets the farm parameters to the param space. diff --git a/x/farm/keeper/proposal.go b/x/farm/keeper/proposal.go index 103e20ab34..6cb7bc9409 100644 --- a/x/farm/keeper/proposal.go +++ b/x/farm/keeper/proposal.go @@ -5,10 +5,10 @@ import ( "time" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/farm/types" - sdkGov "github.com/okex/okexchain/x/gov" - govKeeper "github.com/okex/okexchain/x/gov/keeper" - govTypes "github.com/okex/okexchain/x/gov/types" + "github.com/okex/exchain/x/farm/types" + sdkGov "github.com/okex/exchain/x/gov" + govKeeper "github.com/okex/exchain/x/gov/keeper" + govTypes "github.com/okex/exchain/x/gov/types" ) var _ govKeeper.ProposalHandler = (*Keeper)(nil) diff --git a/x/farm/keeper/proposal_test.go b/x/farm/keeper/proposal_test.go index 93b2243dff..77cf3222d4 100644 --- a/x/farm/keeper/proposal_test.go +++ b/x/farm/keeper/proposal_test.go @@ -5,8 +5,8 @@ import ( "time" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/farm/types" - govtypes "github.com/okex/okexchain/x/gov/types" + "github.com/okex/exchain/x/farm/types" + govtypes "github.com/okex/exchain/x/gov/types" "github.com/stretchr/testify/require" ) diff --git a/x/farm/keeper/querier.go b/x/farm/keeper/querier.go index 6fcfb29985..2bdd3c2fcd 100644 --- a/x/farm/keeper/querier.go +++ b/x/farm/keeper/querier.go @@ -3,11 +3,11 @@ package keeper import ( "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/codec" - "github.com/okex/okexchain/x/common" + "github.com/okex/exchain/x/common" abci "github.com/tendermint/tendermint/abci/types" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/farm/types" + "github.com/okex/exchain/x/farm/types" ) const ( diff --git a/x/farm/keeper/querier_test.go b/x/farm/keeper/querier_test.go index bd593457d9..656f4ea9f8 100644 --- a/x/farm/keeper/querier_test.go +++ b/x/farm/keeper/querier_test.go @@ -10,7 +10,7 @@ import ( "github.com/stretchr/testify/require" abci "github.com/tendermint/tendermint/abci/types" - "github.com/okex/okexchain/x/farm/types" + "github.com/okex/exchain/x/farm/types" ) const custom = "custom" diff --git a/x/farm/keeper/test_common.go b/x/farm/keeper/test_common.go index a8166c7b30..6817b1eb26 100644 --- a/x/farm/keeper/test_common.go +++ b/x/farm/keeper/test_common.go @@ -13,14 +13,14 @@ import ( "github.com/cosmos/cosmos-sdk/x/auth" "github.com/cosmos/cosmos-sdk/x/bank" "github.com/cosmos/cosmos-sdk/x/supply" - swap "github.com/okex/okexchain/x/ammswap" - swaptypes "github.com/okex/okexchain/x/ammswap/types" - "github.com/okex/okexchain/x/farm/types" - "github.com/okex/okexchain/x/gov" - govkeeper "github.com/okex/okexchain/x/gov/keeper" - govtypes "github.com/okex/okexchain/x/gov/types" - "github.com/okex/okexchain/x/params" - "github.com/okex/okexchain/x/token" + swap "github.com/okex/exchain/x/ammswap" + swaptypes "github.com/okex/exchain/x/ammswap/types" + "github.com/okex/exchain/x/farm/types" + "github.com/okex/exchain/x/gov" + govkeeper "github.com/okex/exchain/x/gov/keeper" + govtypes "github.com/okex/exchain/x/gov/types" + "github.com/okex/exchain/x/params" + "github.com/okex/exchain/x/token" "github.com/stretchr/testify/require" abci "github.com/tendermint/tendermint/abci/types" "github.com/tendermint/tendermint/libs/log" diff --git a/x/farm/keeper/whitelist.go b/x/farm/keeper/whitelist.go index 37fc9dc1e2..1167e1874e 100644 --- a/x/farm/keeper/whitelist.go +++ b/x/farm/keeper/whitelist.go @@ -2,8 +2,8 @@ package keeper import ( sdk "github.com/cosmos/cosmos-sdk/types" - swaptypes "github.com/okex/okexchain/x/ammswap/types" - "github.com/okex/okexchain/x/farm/types" + swaptypes "github.com/okex/exchain/x/ammswap/types" + "github.com/okex/exchain/x/farm/types" ) // GetWhitelist gets the whole whitelist currently diff --git a/x/farm/keeper/whitelist_test.go b/x/farm/keeper/whitelist_test.go index 427e4a0cee..431f904d05 100644 --- a/x/farm/keeper/whitelist_test.go +++ b/x/farm/keeper/whitelist_test.go @@ -3,8 +3,8 @@ package keeper import ( "testing" - swaptypes "github.com/okex/okexchain/x/ammswap/types" - "github.com/okex/okexchain/x/farm/types" + swaptypes "github.com/okex/exchain/x/ammswap/types" + "github.com/okex/exchain/x/farm/types" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/require" diff --git a/x/farm/module.go b/x/farm/module.go index 34f2b1a64a..ccbc977de6 100644 --- a/x/farm/module.go +++ b/x/farm/module.go @@ -12,10 +12,10 @@ import ( "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" - "github.com/okex/okexchain/x/farm/client/cli" - "github.com/okex/okexchain/x/farm/client/rest" - "github.com/okex/okexchain/x/farm/keeper" - "github.com/okex/okexchain/x/farm/types" + "github.com/okex/exchain/x/farm/client/cli" + "github.com/okex/exchain/x/farm/client/rest" + "github.com/okex/exchain/x/farm/keeper" + "github.com/okex/exchain/x/farm/types" ) // Type check to ensure the interface is properly implemented diff --git a/x/farm/module_test.go b/x/farm/module_test.go index 8f9ccf759d..dfd1e83cc2 100644 --- a/x/farm/module_test.go +++ b/x/farm/module_test.go @@ -5,8 +5,8 @@ import ( cliLcd "github.com/cosmos/cosmos-sdk/client/lcd" "github.com/cosmos/cosmos-sdk/codec" - "github.com/okex/okexchain/x/farm/keeper" - "github.com/okex/okexchain/x/farm/types" + "github.com/okex/exchain/x/farm/keeper" + "github.com/okex/exchain/x/farm/types" "github.com/stretchr/testify/require" abci "github.com/tendermint/tendermint/abci/types" ) diff --git a/x/farm/proposal_handler.go b/x/farm/proposal_handler.go index 5578cf74d5..3eabbbce10 100644 --- a/x/farm/proposal_handler.go +++ b/x/farm/proposal_handler.go @@ -2,9 +2,9 @@ package farm import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/common" - "github.com/okex/okexchain/x/farm/types" - govTypes "github.com/okex/okexchain/x/gov/types" + "github.com/okex/exchain/x/common" + "github.com/okex/exchain/x/farm/types" + govTypes "github.com/okex/exchain/x/gov/types" ) // NewManageWhiteListProposalHandler handles "gov" type message in "farm" diff --git a/x/farm/proposal_handler_test.go b/x/farm/proposal_handler_test.go index 2eaf8cb655..bd2576cb1c 100644 --- a/x/farm/proposal_handler_test.go +++ b/x/farm/proposal_handler_test.go @@ -3,10 +3,10 @@ package farm import ( "testing" - swaptypes "github.com/okex/okexchain/x/ammswap/types" - "github.com/okex/okexchain/x/farm/keeper" - "github.com/okex/okexchain/x/farm/types" - govtypes "github.com/okex/okexchain/x/gov/types" + swaptypes "github.com/okex/exchain/x/ammswap/types" + "github.com/okex/exchain/x/farm/keeper" + "github.com/okex/exchain/x/farm/types" + govtypes "github.com/okex/exchain/x/gov/types" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/require" diff --git a/x/farm/types/expected_keepers.go b/x/farm/types/expected_keepers.go index b1a89ffe97..eb2b32cc67 100644 --- a/x/farm/types/expected_keepers.go +++ b/x/farm/types/expected_keepers.go @@ -2,7 +2,7 @@ package types import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/params" + "github.com/okex/exchain/x/params" ) // ParamSubspace defines the expected Subspace interfacace diff --git a/x/farm/types/farm_pool_test.go b/x/farm/types/farm_pool_test.go index a9926f9a7c..b734648121 100644 --- a/x/farm/types/farm_pool_test.go +++ b/x/farm/types/farm_pool_test.go @@ -3,7 +3,7 @@ package types import ( "testing" - "github.com/okex/okexchain/x/common" + "github.com/okex/exchain/x/common" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/require" diff --git a/x/farm/types/params.go b/x/farm/types/params.go index d27bc2ef41..fcdebe5503 100644 --- a/x/farm/types/params.go +++ b/x/farm/types/params.go @@ -2,10 +2,10 @@ package types import ( "fmt" - "github.com/okex/okexchain/x/common" + "github.com/okex/exchain/x/common" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/params" + "github.com/okex/exchain/x/params" ) // Default parameter namespace diff --git a/x/farm/types/proposal.go b/x/farm/types/proposal.go index e2c6edb5b9..abd9e3f592 100644 --- a/x/farm/types/proposal.go +++ b/x/farm/types/proposal.go @@ -5,7 +5,7 @@ import ( "strings" sdk "github.com/cosmos/cosmos-sdk/types" - govtypes "github.com/okex/okexchain/x/gov/types" + govtypes "github.com/okex/exchain/x/gov/types" ) const ( diff --git a/x/farm/types/proposal_test.go b/x/farm/types/proposal_test.go index 46e0c30675..c5ab10a79e 100644 --- a/x/farm/types/proposal_test.go +++ b/x/farm/types/proposal_test.go @@ -2,8 +2,8 @@ package types import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/common" - govTypes "github.com/okex/okexchain/x/gov/types" + "github.com/okex/exchain/x/common" + govTypes "github.com/okex/exchain/x/gov/types" "github.com/stretchr/testify/require" "testing" ) diff --git a/x/genutil/alias.go b/x/genutil/alias.go index 686417de7c..3bb3f91b03 100644 --- a/x/genutil/alias.go +++ b/x/genutil/alias.go @@ -1,7 +1,7 @@ package genutil import ( - "github.com/okex/okexchain/x/genutil/types" + "github.com/okex/exchain/x/genutil/types" sdkgenutil "github.com/cosmos/cosmos-sdk/x/genutil" sdkgenutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types" diff --git a/x/genutil/client/cli/collect.go b/x/genutil/client/cli/collect.go index 06ef858698..4ffeb4fc20 100644 --- a/x/genutil/client/cli/collect.go +++ b/x/genutil/client/cli/collect.go @@ -12,7 +12,7 @@ import ( "github.com/cosmos/cosmos-sdk/codec" "github.com/cosmos/cosmos-sdk/server" - "github.com/okex/okexchain/x/genutil" + "github.com/okex/exchain/x/genutil" ) const flagGenTxDir = "gentx-dir" diff --git a/x/genutil/client/cli/gentx.go b/x/genutil/client/cli/gentx.go index 3020b17d8e..ad273a763e 100644 --- a/x/genutil/client/cli/gentx.go +++ b/x/genutil/client/cli/gentx.go @@ -20,7 +20,7 @@ import ( "github.com/cosmos/cosmos-sdk/types/module" "github.com/cosmos/cosmos-sdk/x/auth" "github.com/cosmos/cosmos-sdk/x/auth/client/utils" - "github.com/okex/okexchain/x/genutil" + "github.com/okex/exchain/x/genutil" "github.com/spf13/cobra" "github.com/spf13/viper" tmos "github.com/tendermint/tendermint/libs/os" diff --git a/x/genutil/client/cli/init.go b/x/genutil/client/cli/init.go index f9aff62593..39a2f92dce 100644 --- a/x/genutil/client/cli/init.go +++ b/x/genutil/client/cli/init.go @@ -18,7 +18,7 @@ import ( "github.com/cosmos/cosmos-sdk/server" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" - "github.com/okex/okexchain/x/genutil" + "github.com/okex/exchain/x/genutil" ) const ( diff --git a/x/genutil/collect.go b/x/genutil/collect.go index 1617a27690..5fac47b99b 100644 --- a/x/genutil/collect.go +++ b/x/genutil/collect.go @@ -12,7 +12,7 @@ import ( "sort" "strings" - stakingtypes "github.com/okex/okexchain/x/staking/types" + stakingtypes "github.com/okex/exchain/x/staking/types" "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" diff --git a/x/genutil/genesis.go b/x/genutil/genesis.go index 99bce2c4b4..0c9b60c1b0 100644 --- a/x/genutil/genesis.go +++ b/x/genutil/genesis.go @@ -5,7 +5,7 @@ import ( "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/genutil/types" + "github.com/okex/exchain/x/genutil/types" ) // InitGenesis - initialize accounts and deliver genesis transactions diff --git a/x/genutil/gentx.go b/x/genutil/gentx.go index c2d2988405..3a359a21fa 100644 --- a/x/genutil/gentx.go +++ b/x/genutil/gentx.go @@ -11,7 +11,7 @@ import ( authexported "github.com/cosmos/cosmos-sdk/x/auth/exported" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" "github.com/cosmos/cosmos-sdk/x/genutil/types" - stakingtypes "github.com/okex/okexchain/x/staking/types" + stakingtypes "github.com/okex/exchain/x/staking/types" abci "github.com/tendermint/tendermint/abci/types" ) diff --git a/x/genutil/module.go b/x/genutil/module.go index 7e2b5be064..c1e237e7e8 100644 --- a/x/genutil/module.go +++ b/x/genutil/module.go @@ -3,7 +3,7 @@ package genutil import ( "encoding/json" - "github.com/okex/okexchain/x/genutil/types" + "github.com/okex/exchain/x/genutil/types" "github.com/cosmos/cosmos-sdk/client/context" "github.com/cosmos/cosmos-sdk/codec" diff --git a/x/genutil/types/codec.go b/x/genutil/types/codec.go index 2f7a521e74..2d10990dbc 100644 --- a/x/genutil/types/codec.go +++ b/x/genutil/types/codec.go @@ -1,7 +1,7 @@ package types import ( - stakingtypes "github.com/okex/okexchain/x/staking/types" + stakingtypes "github.com/okex/exchain/x/staking/types" "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" diff --git a/x/genutil/types/genesis_state.go b/x/genutil/types/genesis_state.go index c773b1136d..38e968a7d0 100644 --- a/x/genutil/types/genesis_state.go +++ b/x/genutil/types/genesis_state.go @@ -5,7 +5,7 @@ import ( "errors" "fmt" - stakingtypes "github.com/okex/okexchain/x/staking/types" + stakingtypes "github.com/okex/exchain/x/staking/types" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" ) diff --git a/x/gov/alias.go b/x/gov/alias.go index 9558b49330..525996a755 100644 --- a/x/gov/alias.go +++ b/x/gov/alias.go @@ -4,8 +4,8 @@ package gov import ( - "github.com/okex/okexchain/x/gov/keeper" - "github.com/okex/okexchain/x/gov/types" + "github.com/okex/exchain/x/gov/keeper" + "github.com/okex/exchain/x/gov/types" ) const ( diff --git a/x/gov/client/cli/parse.go b/x/gov/client/cli/parse.go index 3feb35b08f..cf9d17a49d 100644 --- a/x/gov/client/cli/parse.go +++ b/x/gov/client/cli/parse.go @@ -5,7 +5,7 @@ import ( "fmt" "io/ioutil" - govutils "github.com/okex/okexchain/x/gov/client/utils" + govutils "github.com/okex/exchain/x/gov/client/utils" "github.com/spf13/viper" ) diff --git a/x/gov/client/cli/query.go b/x/gov/client/cli/query.go index 1af8fb352b..4fd0cba5f9 100644 --- a/x/gov/client/cli/query.go +++ b/x/gov/client/cli/query.go @@ -13,10 +13,10 @@ import ( "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/version" - "github.com/okex/okexchain/x/gov/client/utils" + "github.com/okex/exchain/x/gov/client/utils" "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/okex/okexchain/x/gov/types" + "github.com/okex/exchain/x/gov/types" ) // GetQueryCmd returns the cli query commands for this module diff --git a/x/gov/client/cli/tx.go b/x/gov/client/cli/tx.go index a9efb541cd..2fb677a87c 100644 --- a/x/gov/client/cli/tx.go +++ b/x/gov/client/cli/tx.go @@ -17,8 +17,8 @@ import ( "github.com/cosmos/cosmos-sdk/x/auth" "github.com/cosmos/cosmos-sdk/x/auth/client/utils" - govutils "github.com/okex/okexchain/x/gov/client/utils" - "github.com/okex/okexchain/x/gov/types" + govutils "github.com/okex/exchain/x/gov/client/utils" + "github.com/okex/exchain/x/gov/types" ) // Proposal flags diff --git a/x/gov/client/proposal_handler.go b/x/gov/client/proposal_handler.go index 7be777ff93..794abad6cc 100644 --- a/x/gov/client/proposal_handler.go +++ b/x/gov/client/proposal_handler.go @@ -5,7 +5,7 @@ import ( "github.com/cosmos/cosmos-sdk/client/context" "github.com/cosmos/cosmos-sdk/codec" - "github.com/okex/okexchain/x/gov/client/rest" + "github.com/okex/exchain/x/gov/client/rest" ) // function to create the rest handler diff --git a/x/gov/client/rest/rest.go b/x/gov/client/rest/rest.go index ce17faa2bf..aa31122f67 100644 --- a/x/gov/client/rest/rest.go +++ b/x/gov/client/rest/rest.go @@ -11,8 +11,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/rest" "github.com/cosmos/cosmos-sdk/x/auth/client/utils" - gcutils "github.com/okex/okexchain/x/gov/client/utils" - "github.com/okex/okexchain/x/gov/types" + gcutils "github.com/okex/exchain/x/gov/client/utils" + "github.com/okex/exchain/x/gov/types" ) // REST Variable names diff --git a/x/gov/client/utils/query.go b/x/gov/client/utils/query.go index 144454f650..5f9107c791 100644 --- a/x/gov/client/utils/query.go +++ b/x/gov/client/utils/query.go @@ -6,7 +6,7 @@ import ( "github.com/cosmos/cosmos-sdk/client/context" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/x/auth/client/utils" - "github.com/okex/okexchain/x/gov/types" + "github.com/okex/exchain/x/gov/types" ) const ( diff --git a/x/gov/client/utils/utils.go b/x/gov/client/utils/utils.go index 481dad68ce..83c68a0c79 100644 --- a/x/gov/client/utils/utils.go +++ b/x/gov/client/utils/utils.go @@ -1,6 +1,6 @@ package utils -import "github.com/okex/okexchain/x/gov/types" +import "github.com/okex/exchain/x/gov/types" // NormalizeVoteOption - normalize user specified vote option func NormalizeVoteOption(option string) string { diff --git a/x/gov/endblocker.go b/x/gov/endblocker.go index 213b89c26e..b881dba97c 100644 --- a/x/gov/endblocker.go +++ b/x/gov/endblocker.go @@ -4,11 +4,11 @@ import ( "fmt" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/gov/types" + "github.com/okex/exchain/x/gov/types" "github.com/tendermint/tendermint/libs/log" - "github.com/okex/okexchain/x/common/perf" - "github.com/okex/okexchain/x/gov/keeper" + "github.com/okex/exchain/x/common/perf" + "github.com/okex/exchain/x/gov/keeper" ) // EndBlocker called every block, process inflation, update validator set. diff --git a/x/gov/endblocker_test.go b/x/gov/endblocker_test.go index 7ddbb02b28..a3a0e84d45 100644 --- a/x/gov/endblocker_test.go +++ b/x/gov/endblocker_test.go @@ -4,11 +4,11 @@ import ( "testing" "time" - "github.com/okex/okexchain/x/gov/keeper" - "github.com/okex/okexchain/x/gov/types" - "github.com/okex/okexchain/x/params" - paramsTypes "github.com/okex/okexchain/x/params/types" - "github.com/okex/okexchain/x/staking" + "github.com/okex/exchain/x/gov/keeper" + "github.com/okex/exchain/x/gov/types" + "github.com/okex/exchain/x/params" + paramsTypes "github.com/okex/exchain/x/params/types" + "github.com/okex/exchain/x/staking" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/require" diff --git a/x/gov/genesis.go b/x/gov/genesis.go index 258f159c9b..9c41ee46e9 100644 --- a/x/gov/genesis.go +++ b/x/gov/genesis.go @@ -7,8 +7,8 @@ import ( "time" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/gov/keeper" - "github.com/okex/okexchain/x/gov/types" + "github.com/okex/exchain/x/gov/keeper" + "github.com/okex/exchain/x/gov/types" ) // GenesisState - all staking state that must be provided at genesis diff --git a/x/gov/genesis_test.go b/x/gov/genesis_test.go index b0a6d142dd..71c65ab89d 100644 --- a/x/gov/genesis_test.go +++ b/x/gov/genesis_test.go @@ -7,8 +7,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/require" - "github.com/okex/okexchain/x/gov/keeper" - "github.com/okex/okexchain/x/gov/types" + "github.com/okex/exchain/x/gov/keeper" + "github.com/okex/exchain/x/gov/types" ) func TestInitGenesisState(t *testing.T) { diff --git a/x/gov/handler.go b/x/gov/handler.go index 733c05c165..204c853094 100644 --- a/x/gov/handler.go +++ b/x/gov/handler.go @@ -5,9 +5,9 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/common" - "github.com/okex/okexchain/x/gov/keeper" - "github.com/okex/okexchain/x/gov/types" + "github.com/okex/exchain/x/common" + "github.com/okex/exchain/x/gov/keeper" + "github.com/okex/exchain/x/gov/types" ) // NewHandler handle all "gov" type messages. diff --git a/x/gov/handler_test.go b/x/gov/handler_test.go index 6519ff2d63..ba1d6704ab 100644 --- a/x/gov/handler_test.go +++ b/x/gov/handler_test.go @@ -4,12 +4,12 @@ import ( "testing" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/staking" + "github.com/okex/exchain/x/staking" "github.com/stretchr/testify/require" "github.com/tendermint/tendermint/libs/cli/flags" - "github.com/okex/okexchain/x/gov/keeper" - "github.com/okex/okexchain/x/gov/types" + "github.com/okex/exchain/x/gov/keeper" + "github.com/okex/exchain/x/gov/types" ) func TestNewHandler(t *testing.T) { diff --git a/x/gov/invariants.go b/x/gov/invariants.go index 5608a13d53..e492526adb 100644 --- a/x/gov/invariants.go +++ b/x/gov/invariants.go @@ -5,8 +5,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/gov/keeper" - "github.com/okex/okexchain/x/gov/types" + "github.com/okex/exchain/x/gov/keeper" + "github.com/okex/exchain/x/gov/types" ) // RegisterInvariants registers all governance invariants diff --git a/x/gov/invariants_test.go b/x/gov/invariants_test.go index ae420d0ccf..eef4c9371e 100644 --- a/x/gov/invariants_test.go +++ b/x/gov/invariants_test.go @@ -6,8 +6,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/require" - "github.com/okex/okexchain/x/gov/keeper" - "github.com/okex/okexchain/x/gov/types" + "github.com/okex/exchain/x/gov/keeper" + "github.com/okex/exchain/x/gov/types" ) func TestModuleAccountInvariant(t *testing.T) { diff --git a/x/gov/keeper/deposit.go b/x/gov/keeper/deposit.go index f6e5490fc9..90c3914d73 100644 --- a/x/gov/keeper/deposit.go +++ b/x/gov/keeper/deposit.go @@ -3,7 +3,7 @@ package keeper import ( "fmt" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/gov/types" + "github.com/okex/exchain/x/gov/types" ) // SetDeposit sets the deposit of a specific depositor on a specific proposal diff --git a/x/gov/keeper/deposit_test.go b/x/gov/keeper/deposit_test.go index bf2999ea27..e23de07b0c 100644 --- a/x/gov/keeper/deposit_test.go +++ b/x/gov/keeper/deposit_test.go @@ -6,9 +6,9 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/require" - "github.com/okex/okexchain/x/gov/types" - "github.com/okex/okexchain/x/params" - paramsTypes "github.com/okex/okexchain/x/params/types" + "github.com/okex/exchain/x/gov/types" + "github.com/okex/exchain/x/params" + paramsTypes "github.com/okex/exchain/x/params/types" ) func TestKeeper_AddDeposit(t *testing.T) { diff --git a/x/gov/keeper/expected_keepers.go b/x/gov/keeper/expected_keepers.go index 3c698bf962..7b12b8cdac 100644 --- a/x/gov/keeper/expected_keepers.go +++ b/x/gov/keeper/expected_keepers.go @@ -2,7 +2,7 @@ package keeper import ( supplyexported "github.com/cosmos/cosmos-sdk/x/supply/exported" - stakingexported "github.com/okex/okexchain/x/staking/exported" + stakingexported "github.com/okex/exchain/x/staking/exported" sdk "github.com/cosmos/cosmos-sdk/types" ) diff --git a/x/gov/keeper/keeper.go b/x/gov/keeper/keeper.go index 2ed708a6b1..9c4d94c7a8 100644 --- a/x/gov/keeper/keeper.go +++ b/x/gov/keeper/keeper.go @@ -5,13 +5,13 @@ import ( "time" supplyexported "github.com/cosmos/cosmos-sdk/x/supply/exported" - "github.com/okex/okexchain/x/common" - "github.com/okex/okexchain/x/gov/types" - "github.com/okex/okexchain/x/staking/exported" + "github.com/okex/exchain/x/common" + "github.com/okex/exchain/x/gov/types" + "github.com/okex/exchain/x/staking/exported" "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/params" + "github.com/okex/exchain/x/params" "github.com/tendermint/tendermint/libs/log" ) diff --git a/x/gov/keeper/keeper_test.go b/x/gov/keeper/keeper_test.go index d48f5fdff0..c38be4ae5a 100644 --- a/x/gov/keeper/keeper_test.go +++ b/x/gov/keeper/keeper_test.go @@ -6,7 +6,7 @@ import ( "time" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/gov/types" + "github.com/okex/exchain/x/gov/types" "github.com/stretchr/testify/require" ) diff --git a/x/gov/keeper/proposal.go b/x/gov/keeper/proposal.go index cddbb156df..2082518043 100644 --- a/x/gov/keeper/proposal.go +++ b/x/gov/keeper/proposal.go @@ -5,7 +5,7 @@ import ( "time" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/gov/types" + "github.com/okex/exchain/x/gov/types" ) // SubmitProposal creates new proposal given a content diff --git a/x/gov/keeper/proposal_handler_router.go b/x/gov/keeper/proposal_handler_router.go index 6c98df82d2..7865defccf 100644 --- a/x/gov/keeper/proposal_handler_router.go +++ b/x/gov/keeper/proposal_handler_router.go @@ -6,7 +6,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/gov/types" + "github.com/okex/exchain/x/gov/types" ) var ( diff --git a/x/gov/keeper/proposal_handler_router_test.go b/x/gov/keeper/proposal_handler_router_test.go index 2028e41c41..d3904c22bb 100644 --- a/x/gov/keeper/proposal_handler_router_test.go +++ b/x/gov/keeper/proposal_handler_router_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/okex/okexchain/x/gov/types" + "github.com/okex/exchain/x/gov/types" ) func TestProposalHandlerRouter_AddRoute(t *testing.T) { diff --git a/x/gov/keeper/proposal_test.go b/x/gov/keeper/proposal_test.go index 6c026f5ca8..51f9737c7b 100644 --- a/x/gov/keeper/proposal_test.go +++ b/x/gov/keeper/proposal_test.go @@ -6,9 +6,9 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/require" - //"github.com/okex/okexchain/x/common" - //dexTypes "github.com/okex/okexchain/x/dex/types" - "github.com/okex/okexchain/x/gov/types" + //"github.com/okex/exchain/x/common" + //dexTypes "github.com/okex/exchain/x/dex/types" + "github.com/okex/exchain/x/gov/types" ) //func TestKeeper_SubmitProposal(t *testing.T) { diff --git a/x/gov/keeper/querier.go b/x/gov/keeper/querier.go index 71dd402d12..9fc9a64920 100644 --- a/x/gov/keeper/querier.go +++ b/x/gov/keeper/querier.go @@ -3,10 +3,10 @@ package keeper import ( "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/common" + "github.com/okex/exchain/x/common" abci "github.com/tendermint/tendermint/abci/types" - "github.com/okex/okexchain/x/gov/types" + "github.com/okex/exchain/x/gov/types" ) // NewQuerier returns all query handlers diff --git a/x/gov/keeper/querier_test.go b/x/gov/keeper/querier_test.go index 8c85d66877..5bf453398a 100644 --- a/x/gov/keeper/querier_test.go +++ b/x/gov/keeper/querier_test.go @@ -10,8 +10,8 @@ import ( abci "github.com/tendermint/tendermint/abci/types" "github.com/tendermint/tendermint/libs/cli/flags" - "github.com/okex/okexchain/x/gov/types" - "github.com/okex/okexchain/x/staking" + "github.com/okex/exchain/x/gov/types" + "github.com/okex/exchain/x/staking" ) const custom = "custom" diff --git a/x/gov/keeper/router.go b/x/gov/keeper/router.go index f5b2399361..3268ff3c7f 100644 --- a/x/gov/keeper/router.go +++ b/x/gov/keeper/router.go @@ -4,7 +4,7 @@ import ( "fmt" "regexp" - "github.com/okex/okexchain/x/gov/types" + "github.com/okex/exchain/x/gov/types" ) var ( diff --git a/x/gov/keeper/tally.go b/x/gov/keeper/tally.go index 17925ceff1..3d975ef45c 100644 --- a/x/gov/keeper/tally.go +++ b/x/gov/keeper/tally.go @@ -2,8 +2,8 @@ package keeper import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/gov/types" - "github.com/okex/okexchain/x/staking/exported" + "github.com/okex/exchain/x/gov/types" + "github.com/okex/exchain/x/staking/exported" ) // validatorGovInfo used for tallying diff --git a/x/gov/keeper/tally_test.go b/x/gov/keeper/tally_test.go index 44c85672bc..1e51bb434f 100644 --- a/x/gov/keeper/tally_test.go +++ b/x/gov/keeper/tally_test.go @@ -4,13 +4,13 @@ import ( "testing" "time" - "github.com/okex/okexchain/x/common" + "github.com/okex/exchain/x/common" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/require" - "github.com/okex/okexchain/x/gov/types" - "github.com/okex/okexchain/x/staking" + "github.com/okex/exchain/x/gov/types" + "github.com/okex/exchain/x/staking" ) func newTallyResult(t *testing.T, totalVoted, yes, abstain, no, veto, totalVoting string) types.TallyResult { diff --git a/x/gov/keeper/test_common.go b/x/gov/keeper/test_common.go index 223147976b..1c97133320 100644 --- a/x/gov/keeper/test_common.go +++ b/x/gov/keeper/test_common.go @@ -22,9 +22,9 @@ import ( tmtypes "github.com/tendermint/tendermint/types" dbm "github.com/tendermint/tm-db" - "github.com/okex/okexchain/x/gov/types" - "github.com/okex/okexchain/x/params" - "github.com/okex/okexchain/x/staking" + "github.com/okex/exchain/x/gov/types" + "github.com/okex/exchain/x/params" + "github.com/okex/exchain/x/staking" ) var ( diff --git a/x/gov/keeper/vote.go b/x/gov/keeper/vote.go index c4d72756c2..6d09a903c7 100644 --- a/x/gov/keeper/vote.go +++ b/x/gov/keeper/vote.go @@ -3,7 +3,7 @@ package keeper import ( "fmt" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/gov/types" + "github.com/okex/exchain/x/gov/types" ) // AddVote adds a vote on a specific proposal diff --git a/x/gov/keeper/vote_test.go b/x/gov/keeper/vote_test.go index 8285ddffb4..e744ba39cb 100644 --- a/x/gov/keeper/vote_test.go +++ b/x/gov/keeper/vote_test.go @@ -7,7 +7,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/require" - "github.com/okex/okexchain/x/gov/types" + "github.com/okex/exchain/x/gov/types" ) func TestKeeper_AddVote(t *testing.T) { diff --git a/x/gov/module.go b/x/gov/module.go index 624811a23d..da99d34479 100644 --- a/x/gov/module.go +++ b/x/gov/module.go @@ -13,12 +13,12 @@ import ( "github.com/spf13/cobra" abci "github.com/tendermint/tendermint/abci/types" - "github.com/okex/okexchain/x/gov/client" - "github.com/okex/okexchain/x/gov/client/cli" - GovCli "github.com/okex/okexchain/x/gov/client/cli" - "github.com/okex/okexchain/x/gov/client/rest" - "github.com/okex/okexchain/x/gov/keeper" - "github.com/okex/okexchain/x/gov/types" + "github.com/okex/exchain/x/gov/client" + "github.com/okex/exchain/x/gov/client/cli" + GovCli "github.com/okex/exchain/x/gov/client/cli" + "github.com/okex/exchain/x/gov/client/rest" + "github.com/okex/exchain/x/gov/keeper" + "github.com/okex/exchain/x/gov/types" ) var ( diff --git a/x/gov/module_test.go b/x/gov/module_test.go index 076bf6821c..eaeccd6312 100644 --- a/x/gov/module_test.go +++ b/x/gov/module_test.go @@ -6,10 +6,10 @@ import ( "github.com/cosmos/cosmos-sdk/client/context" cliLcd "github.com/cosmos/cosmos-sdk/client/lcd" "github.com/cosmos/cosmos-sdk/codec" - "github.com/okex/okexchain/x/gov/client" - "github.com/okex/okexchain/x/gov/client/rest" - "github.com/okex/okexchain/x/gov/keeper" - "github.com/okex/okexchain/x/gov/types" + "github.com/okex/exchain/x/gov/client" + "github.com/okex/exchain/x/gov/client/rest" + "github.com/okex/exchain/x/gov/keeper" + "github.com/okex/exchain/x/gov/types" "github.com/spf13/cobra" "github.com/stretchr/testify/require" abci "github.com/tendermint/tendermint/abci/types" diff --git a/x/gov/types/params.go b/x/gov/types/params.go index aa5082a2dc..cc012b4e82 100644 --- a/x/gov/types/params.go +++ b/x/gov/types/params.go @@ -5,7 +5,7 @@ import ( "time" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/params/subspace" + "github.com/okex/exchain/x/params/subspace" ) // Parameter store key diff --git a/x/order/alias.go b/x/order/alias.go index c00631b269..d327e0ec7b 100644 --- a/x/order/alias.go +++ b/x/order/alias.go @@ -1,8 +1,8 @@ package order import ( - "github.com/okex/okexchain/x/order/keeper" - "github.com/okex/okexchain/x/order/types" + "github.com/okex/exchain/x/order/keeper" + "github.com/okex/exchain/x/order/types" ) // nolint diff --git a/x/order/app_test.go b/x/order/app_test.go index 581363cd95..e432b9506e 100644 --- a/x/order/app_test.go +++ b/x/order/app_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - "github.com/okex/okexchain/x/common/monitor" + "github.com/okex/exchain/x/common/monitor" "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" @@ -13,14 +13,14 @@ import ( "github.com/cosmos/cosmos-sdk/x/mock" "github.com/cosmos/cosmos-sdk/x/supply" "github.com/cosmos/cosmos-sdk/x/supply/exported" - "github.com/okex/okexchain/x/staking/types" + "github.com/okex/exchain/x/staking/types" "github.com/stretchr/testify/require" abci "github.com/tendermint/tendermint/abci/types" "github.com/tendermint/tendermint/crypto/secp256k1" - "github.com/okex/okexchain/x/common" - "github.com/okex/okexchain/x/dex" - "github.com/okex/okexchain/x/token" + "github.com/okex/exchain/x/common" + "github.com/okex/exchain/x/dex" + "github.com/okex/exchain/x/token" ) type MockApp struct { diff --git a/x/order/beginblocker.go b/x/order/beginblocker.go index f7e4e46b43..1caf8d8b43 100644 --- a/x/order/beginblocker.go +++ b/x/order/beginblocker.go @@ -3,10 +3,10 @@ package order import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/common/perf" - "github.com/okex/okexchain/x/order/keeper" - "github.com/okex/okexchain/x/order/types" - //"github.com/okex/okexchain/x/common/version" + "github.com/okex/exchain/x/common/perf" + "github.com/okex/exchain/x/order/keeper" + "github.com/okex/exchain/x/order/types" + //"github.com/okex/exchain/x/common/version" ) // BeginBlocker runs the logic of BeginBlocker with version 0. diff --git a/x/order/client/cli/query.go b/x/order/client/cli/query.go index 87c56e1f4c..ba47e8f4a7 100644 --- a/x/order/client/cli/query.go +++ b/x/order/client/cli/query.go @@ -5,8 +5,8 @@ import ( "github.com/cosmos/cosmos-sdk/client/context" client "github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/codec" - "github.com/okex/okexchain/x/order/keeper" - "github.com/okex/okexchain/x/order/types" + "github.com/okex/exchain/x/order/keeper" + "github.com/okex/exchain/x/order/types" "github.com/spf13/cobra" "github.com/spf13/viper" "strings" diff --git a/x/order/client/cli/tx.go b/x/order/client/cli/tx.go index e0321748cf..21d74caa5d 100644 --- a/x/order/client/cli/tx.go +++ b/x/order/client/cli/tx.go @@ -11,7 +11,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/x/auth/client/utils" authtxb "github.com/cosmos/cosmos-sdk/x/auth/types" - "github.com/okex/okexchain/x/order/types" + "github.com/okex/exchain/x/order/types" "github.com/pkg/errors" "github.com/spf13/cobra" ) diff --git a/x/order/client/rest/rest.go b/x/order/client/rest/rest.go index 9fce91fe09..2d59e04f75 100644 --- a/x/order/client/rest/rest.go +++ b/x/order/client/rest/rest.go @@ -11,9 +11,9 @@ import ( "github.com/cosmos/cosmos-sdk/types/rest" "github.com/gorilla/mux" - "github.com/okex/okexchain/x/common" - "github.com/okex/okexchain/x/order/keeper" - "github.com/okex/okexchain/x/order/types" + "github.com/okex/exchain/x/common" + "github.com/okex/exchain/x/order/keeper" + "github.com/okex/exchain/x/order/types" ) // RegisterRoutes - Central function to define routes that get registered by the main application diff --git a/x/order/client/rest/rest_doc.go b/x/order/client/rest/rest_doc.go index 8aa3bebd28..f07411ad4f 100644 --- a/x/order/client/rest/rest_doc.go +++ b/x/order/client/rest/rest_doc.go @@ -27,8 +27,8 @@ package rest import ( - "github.com/okex/okexchain/x/order/keeper" - "github.com/okex/okexchain/x/order/types" + "github.com/okex/exchain/x/order/keeper" + "github.com/okex/exchain/x/order/types" ) // OrderDetailParam : order detail param diff --git a/x/order/client/rest/rest_v2.go b/x/order/client/rest/rest_v2.go index 48fd24f692..3ca2ab883b 100644 --- a/x/order/client/rest/rest_v2.go +++ b/x/order/client/rest/rest_v2.go @@ -11,9 +11,9 @@ import ( "github.com/cosmos/cosmos-sdk/types/rest" "github.com/cosmos/cosmos-sdk/x/auth" "github.com/gorilla/mux" - "github.com/okex/okexchain/x/common" - "github.com/okex/okexchain/x/order/keeper" - ordertype "github.com/okex/okexchain/x/order/types" + "github.com/okex/exchain/x/common" + "github.com/okex/exchain/x/order/keeper" + ordertype "github.com/okex/exchain/x/order/types" ) // nolint diff --git a/x/order/endblocker.go b/x/order/endblocker.go index 83dd0b4094..f9a3682850 100644 --- a/x/order/endblocker.go +++ b/x/order/endblocker.go @@ -4,10 +4,10 @@ import ( "fmt" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/common/perf" - "github.com/okex/okexchain/x/order/keeper" - "github.com/okex/okexchain/x/order/match" - "github.com/okex/okexchain/x/order/types" + "github.com/okex/exchain/x/common/perf" + "github.com/okex/exchain/x/order/keeper" + "github.com/okex/exchain/x/order/match" + "github.com/okex/exchain/x/order/types" ) // EndBlocker called every block diff --git a/x/order/endblocker_test.go b/x/order/endblocker_test.go index 44a34e660a..8abde29057 100644 --- a/x/order/endblocker_test.go +++ b/x/order/endblocker_test.go @@ -13,11 +13,11 @@ import ( "github.com/stretchr/testify/require" abci "github.com/tendermint/tendermint/abci/types" - "github.com/okex/okexchain/x/common" - "github.com/okex/okexchain/x/dex" - "github.com/okex/okexchain/x/order/keeper" - "github.com/okex/okexchain/x/order/types" - token "github.com/okex/okexchain/x/token/types" + "github.com/okex/exchain/x/common" + "github.com/okex/exchain/x/dex" + "github.com/okex/exchain/x/order/keeper" + "github.com/okex/exchain/x/order/types" + token "github.com/okex/exchain/x/token/types" ) func TestEndBlockerPeriodicMatch(t *testing.T) { diff --git a/x/order/genesis.go b/x/order/genesis.go index 5fd3da7d48..e25c1d492f 100644 --- a/x/order/genesis.go +++ b/x/order/genesis.go @@ -4,8 +4,8 @@ import ( "fmt" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/order/keeper" - "github.com/okex/okexchain/x/order/types" + "github.com/okex/exchain/x/order/keeper" + "github.com/okex/exchain/x/order/types" ) // GenesisState - all order state that must be provided at genesis diff --git a/x/order/genesis_test.go b/x/order/genesis_test.go index 6ae6cb8bf2..b68a60dc89 100644 --- a/x/order/genesis_test.go +++ b/x/order/genesis_test.go @@ -5,10 +5,10 @@ import ( "testing" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/common" - "github.com/okex/okexchain/x/dex" - "github.com/okex/okexchain/x/order/keeper" - "github.com/okex/okexchain/x/order/types" + "github.com/okex/exchain/x/common" + "github.com/okex/exchain/x/dex" + "github.com/okex/exchain/x/order/keeper" + "github.com/okex/exchain/x/order/types" "github.com/stretchr/testify/require" "github.com/tendermint/tendermint/types/time" ) diff --git a/x/order/handler.go b/x/order/handler.go index bdccb4a3e5..308e0ce717 100644 --- a/x/order/handler.go +++ b/x/order/handler.go @@ -3,7 +3,7 @@ package order import ( "encoding/json" "fmt" - "github.com/okex/okexchain/x/common" + "github.com/okex/exchain/x/common" "math" storetypes "github.com/cosmos/cosmos-sdk/store/types" @@ -13,9 +13,9 @@ import ( "github.com/tendermint/tendermint/libs/log" "github.com/willf/bitset" - "github.com/okex/okexchain/x/common/perf" - "github.com/okex/okexchain/x/order/keeper" - "github.com/okex/okexchain/x/order/types" + "github.com/okex/exchain/x/common/perf" + "github.com/okex/exchain/x/order/keeper" + "github.com/okex/exchain/x/order/types" ) func CalculateGas(msg sdk.Msg, params *types.Params) (gas uint64) { diff --git a/x/order/handler_test.go b/x/order/handler_test.go index 1ba46af02e..8914889737 100644 --- a/x/order/handler_test.go +++ b/x/order/handler_test.go @@ -13,11 +13,11 @@ import ( "github.com/stretchr/testify/require" abci "github.com/tendermint/tendermint/abci/types" - "github.com/okex/okexchain/x/common" - "github.com/okex/okexchain/x/dex" - "github.com/okex/okexchain/x/order/types" - "github.com/okex/okexchain/x/token" - tokentypes "github.com/okex/okexchain/x/token/types" + "github.com/okex/exchain/x/common" + "github.com/okex/exchain/x/dex" + "github.com/okex/exchain/x/order/types" + "github.com/okex/exchain/x/token" + tokentypes "github.com/okex/exchain/x/token/types" ) func TestEventNewOrders(t *testing.T) { diff --git a/x/order/keeper/disk_cache.go b/x/order/keeper/disk_cache.go index 9014ba64aa..cab94a0724 100644 --- a/x/order/keeper/disk_cache.go +++ b/x/order/keeper/disk_cache.go @@ -4,7 +4,7 @@ import ( "sort" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/order/types" + "github.com/okex/exchain/x/order/types" ) // OrderIDsMap stores orderIDSlice with map. diff --git a/x/order/keeper/disk_cache_keeper.go b/x/order/keeper/disk_cache_keeper.go index cf06e5fa17..08287c91b0 100644 --- a/x/order/keeper/disk_cache_keeper.go +++ b/x/order/keeper/disk_cache_keeper.go @@ -2,8 +2,8 @@ package keeper import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/common" - "github.com/okex/okexchain/x/order/types" + "github.com/okex/exchain/x/common" + "github.com/okex/exchain/x/order/types" ) // =============================================== diff --git a/x/order/keeper/disk_cache_test.go b/x/order/keeper/disk_cache_test.go index 97bdf9bbb5..4fd210bcb6 100644 --- a/x/order/keeper/disk_cache_test.go +++ b/x/order/keeper/disk_cache_test.go @@ -3,10 +3,10 @@ package keeper import ( "testing" - "github.com/okex/okexchain/x/common" + "github.com/okex/exchain/x/common" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/order/types" + "github.com/okex/exchain/x/order/types" "github.com/stretchr/testify/require" ) diff --git a/x/order/keeper/dump_store_test.go b/x/order/keeper/dump_store_test.go index 10dba51c40..d20c58eb94 100644 --- a/x/order/keeper/dump_store_test.go +++ b/x/order/keeper/dump_store_test.go @@ -1,9 +1,9 @@ package keeper import ( - "github.com/okex/okexchain/x/common" - "github.com/okex/okexchain/x/dex" - "github.com/okex/okexchain/x/order/types" + "github.com/okex/exchain/x/common" + "github.com/okex/exchain/x/dex" + "github.com/okex/exchain/x/order/types" "github.com/stretchr/testify/require" "testing" diff --git a/x/order/keeper/expect_keepers.go b/x/order/keeper/expect_keepers.go index aac396d3fc..46ccecb336 100644 --- a/x/order/keeper/expect_keepers.go +++ b/x/order/keeper/expect_keepers.go @@ -4,9 +4,9 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/x/supply/exported" - dex "github.com/okex/okexchain/x/dex/types" - "github.com/okex/okexchain/x/order/types" - token "github.com/okex/okexchain/x/token/types" + dex "github.com/okex/exchain/x/dex/types" + "github.com/okex/exchain/x/order/types" + token "github.com/okex/exchain/x/token/types" ) // TokenKeeper : expected token keeper diff --git a/x/order/keeper/fee.go b/x/order/keeper/fee.go index 50bf3edfea..3ecac9ef2f 100644 --- a/x/order/keeper/fee.go +++ b/x/order/keeper/fee.go @@ -7,7 +7,7 @@ import ( "strings" - "github.com/okex/okexchain/x/order/types" + "github.com/okex/exchain/x/order/types" ) const minFee = "0.00000001" diff --git a/x/order/keeper/fee_test.go b/x/order/keeper/fee_test.go index 16438ab44d..0b0048046b 100644 --- a/x/order/keeper/fee_test.go +++ b/x/order/keeper/fee_test.go @@ -3,12 +3,12 @@ package keeper import ( "testing" - "github.com/okex/okexchain/x/common" + "github.com/okex/exchain/x/common" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/require" - "github.com/okex/okexchain/x/order/types" + "github.com/okex/exchain/x/order/types" "github.com/tendermint/tendermint/libs/cli/flags" ) diff --git a/x/order/keeper/invariant.go b/x/order/keeper/invariant.go index 67e1d460d7..75082c8534 100644 --- a/x/order/keeper/invariant.go +++ b/x/order/keeper/invariant.go @@ -4,8 +4,8 @@ import ( "fmt" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/order/types" - "github.com/okex/okexchain/x/token" + "github.com/okex/exchain/x/order/types" + "github.com/okex/exchain/x/token" ) // RegisterInvariants registers all order invariants diff --git a/x/order/keeper/invariant_test.go b/x/order/keeper/invariant_test.go index 86f8e1c5be..262369d9df 100644 --- a/x/order/keeper/invariant_test.go +++ b/x/order/keeper/invariant_test.go @@ -4,11 +4,11 @@ import ( "fmt" "testing" - token "github.com/okex/okexchain/x/token/types" + token "github.com/okex/exchain/x/token/types" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/dex" - "github.com/okex/okexchain/x/order/types" + "github.com/okex/exchain/x/dex" + "github.com/okex/exchain/x/order/types" "github.com/stretchr/testify/require" ) diff --git a/x/order/keeper/keeper.go b/x/order/keeper/keeper.go index 19cd02c785..f25f8f3505 100644 --- a/x/order/keeper/keeper.go +++ b/x/order/keeper/keeper.go @@ -6,14 +6,14 @@ import ( "github.com/willf/bitset" - "github.com/okex/okexchain/x/common/monitor" + "github.com/okex/exchain/x/common/monitor" "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/params" + "github.com/okex/exchain/x/params" - "github.com/okex/okexchain/x/common" - "github.com/okex/okexchain/x/order/types" + "github.com/okex/exchain/x/common" + "github.com/okex/exchain/x/order/types" ) var onStartUp sync.Once diff --git a/x/order/keeper/keeper_dump.go b/x/order/keeper/keeper_dump.go index 77625730da..4a2ff94458 100644 --- a/x/order/keeper/keeper_dump.go +++ b/x/order/keeper/keeper_dump.go @@ -4,8 +4,8 @@ import ( "fmt" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/common" - "github.com/okex/okexchain/x/order/types" + "github.com/okex/exchain/x/common" + "github.com/okex/exchain/x/order/types" "github.com/tendermint/tendermint/libs/log" ) diff --git a/x/order/keeper/keeper_test.go b/x/order/keeper/keeper_test.go index 87a9356423..24114221bb 100644 --- a/x/order/keeper/keeper_test.go +++ b/x/order/keeper/keeper_test.go @@ -3,14 +3,14 @@ package keeper import ( "testing" - "github.com/okex/okexchain/x/common" + "github.com/okex/exchain/x/common" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/require" - "github.com/okex/okexchain/x/dex" - "github.com/okex/okexchain/x/order/types" - token "github.com/okex/okexchain/x/token/types" + "github.com/okex/exchain/x/dex" + "github.com/okex/exchain/x/order/types" + token "github.com/okex/exchain/x/token/types" ) func TestKeeper_Cache2Disk(t *testing.T) { diff --git a/x/order/keeper/memory_cache.go b/x/order/keeper/memory_cache.go index d71d5e5547..d243b283ea 100644 --- a/x/order/keeper/memory_cache.go +++ b/x/order/keeper/memory_cache.go @@ -1,7 +1,7 @@ package keeper import ( - "github.com/okex/okexchain/x/order/types" + "github.com/okex/exchain/x/order/types" "github.com/willf/bitset" ) diff --git a/x/order/keeper/memory_cache_test.go b/x/order/keeper/memory_cache_test.go index 7848c47cf5..b7f1d6e35f 100644 --- a/x/order/keeper/memory_cache_test.go +++ b/x/order/keeper/memory_cache_test.go @@ -4,7 +4,7 @@ import ( "testing" "time" - "github.com/okex/okexchain/x/order/types" + "github.com/okex/exchain/x/order/types" "github.com/stretchr/testify/require" ) diff --git a/x/order/keeper/order.go b/x/order/keeper/order.go index 13821497eb..9f26fc05c9 100644 --- a/x/order/keeper/order.go +++ b/x/order/keeper/order.go @@ -6,8 +6,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/tendermint/tendermint/libs/log" - "github.com/okex/okexchain/x/order/types" - token "github.com/okex/okexchain/x/token/types" + "github.com/okex/exchain/x/order/types" + token "github.com/okex/exchain/x/token/types" ) // TryPlaceOrder tries to charge fee & lock coins for a new order diff --git a/x/order/keeper/order_map_test.go b/x/order/keeper/order_map_test.go index 0b0a61db17..d5dccd3de2 100644 --- a/x/order/keeper/order_map_test.go +++ b/x/order/keeper/order_map_test.go @@ -6,8 +6,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/require" - "github.com/okex/okexchain/x/dex" - "github.com/okex/okexchain/x/order/types" + "github.com/okex/exchain/x/dex" + "github.com/okex/exchain/x/order/types" ) func TestOrderIDsMapInsertAndRemove(t *testing.T) { diff --git a/x/order/keeper/order_test.go b/x/order/keeper/order_test.go index b51a9e1846..90986dce98 100644 --- a/x/order/keeper/order_test.go +++ b/x/order/keeper/order_test.go @@ -3,15 +3,15 @@ package keeper import ( "testing" - "github.com/okex/okexchain/x/dex" + "github.com/okex/exchain/x/dex" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/x/auth" "github.com/stretchr/testify/require" - "github.com/okex/okexchain/x/common" - "github.com/okex/okexchain/x/order/types" - token "github.com/okex/okexchain/x/token/types" + "github.com/okex/exchain/x/common" + "github.com/okex/exchain/x/order/types" + token "github.com/okex/exchain/x/token/types" ) func TestTryPlaceOrder(t *testing.T) { diff --git a/x/order/keeper/product_lock.go b/x/order/keeper/product_lock.go index f0fb34ed90..9fd141e3e1 100644 --- a/x/order/keeper/product_lock.go +++ b/x/order/keeper/product_lock.go @@ -2,7 +2,7 @@ package keeper import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/order/types" + "github.com/okex/exchain/x/order/types" ) // nolint diff --git a/x/order/keeper/product_lock_test.go b/x/order/keeper/product_lock_test.go index 76672a2a9d..e5474ce9bb 100644 --- a/x/order/keeper/product_lock_test.go +++ b/x/order/keeper/product_lock_test.go @@ -3,8 +3,8 @@ package keeper import ( "testing" - "github.com/okex/okexchain/x/dex" - "github.com/okex/okexchain/x/order/types" + "github.com/okex/exchain/x/dex" + "github.com/okex/exchain/x/order/types" "github.com/stretchr/testify/require" ) diff --git a/x/order/keeper/querier.go b/x/order/keeper/querier.go index 335dc744cb..2b6469bc89 100644 --- a/x/order/keeper/querier.go +++ b/x/order/keeper/querier.go @@ -5,8 +5,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" abci "github.com/tendermint/tendermint/abci/types" - "github.com/okex/okexchain/x/common" - "github.com/okex/okexchain/x/order/types" + "github.com/okex/exchain/x/common" + "github.com/okex/exchain/x/order/types" ) // nolint diff --git a/x/order/keeper/querier_test.go b/x/order/keeper/querier_test.go index 3e7c4aeb55..b2ff937e9a 100644 --- a/x/order/keeper/querier_test.go +++ b/x/order/keeper/querier_test.go @@ -7,8 +7,8 @@ import ( "github.com/stretchr/testify/require" abci "github.com/tendermint/tendermint/abci/types" - "github.com/okex/okexchain/x/dex" - "github.com/okex/okexchain/x/order/types" + "github.com/okex/exchain/x/dex" + "github.com/okex/exchain/x/order/types" ) func TestQueryOrder(t *testing.T) { diff --git a/x/order/keeper/test_common.go b/x/order/keeper/test_common.go index 4abcbaf254..c5ec17b317 100644 --- a/x/order/keeper/test_common.go +++ b/x/order/keeper/test_common.go @@ -6,9 +6,9 @@ import ( "testing" "time" - "github.com/okex/okexchain/x/common" + "github.com/okex/exchain/x/common" - "github.com/okex/okexchain/x/common/monitor" + "github.com/okex/exchain/x/common/monitor" "github.com/cosmos/cosmos-sdk/codec" "github.com/cosmos/cosmos-sdk/store" @@ -16,16 +16,16 @@ import ( "github.com/cosmos/cosmos-sdk/x/auth" "github.com/cosmos/cosmos-sdk/x/bank" "github.com/cosmos/cosmos-sdk/x/supply" - "github.com/okex/okexchain/x/params" + "github.com/okex/exchain/x/params" "github.com/stretchr/testify/require" abci "github.com/tendermint/tendermint/abci/types" "github.com/tendermint/tendermint/crypto/ed25519" "github.com/tendermint/tendermint/libs/log" dbm "github.com/tendermint/tm-db" - "github.com/okex/okexchain/x/dex" - "github.com/okex/okexchain/x/order/types" - "github.com/okex/okexchain/x/token" + "github.com/okex/exchain/x/dex" + "github.com/okex/exchain/x/order/types" + "github.com/okex/exchain/x/token" ) var mockOrder = types.MockOrder diff --git a/x/order/legacy/v0_11/migrate.go b/x/order/legacy/v0_11/migrate.go index 94151785c1..12949b67be 100644 --- a/x/order/legacy/v0_11/migrate.go +++ b/x/order/legacy/v0_11/migrate.go @@ -1,7 +1,7 @@ package v0_11 import ( - "github.com/okex/okexchain/x/order/legacy/v0_10" + "github.com/okex/exchain/x/order/legacy/v0_10" ) func Migrate(oldGenState v0_10.GenesisState) GenesisState { diff --git a/x/order/legacy/v0_11/types.go b/x/order/legacy/v0_11/types.go index 5af5f3afc1..0deb43cc2f 100644 --- a/x/order/legacy/v0_11/types.go +++ b/x/order/legacy/v0_11/types.go @@ -2,7 +2,7 @@ package v0_11 import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/order/legacy/v0_10" + "github.com/okex/exchain/x/order/legacy/v0_10" ) const ( diff --git a/x/order/match/continuousauction/impl.go b/x/order/match/continuousauction/impl.go index 4f1cbbba37..39fe42860c 100644 --- a/x/order/match/continuousauction/impl.go +++ b/x/order/match/continuousauction/impl.go @@ -3,7 +3,7 @@ package continuousauction import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/order/keeper" + "github.com/okex/exchain/x/order/keeper" ) // nolint diff --git a/x/order/match/engine.go b/x/order/match/engine.go index dd84841d1d..1c0630fac2 100644 --- a/x/order/match/engine.go +++ b/x/order/match/engine.go @@ -5,9 +5,9 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/order/keeper" - "github.com/okex/okexchain/x/order/match/continuousauction" - "github.com/okex/okexchain/x/order/match/periodicauction" + "github.com/okex/exchain/x/order/keeper" + "github.com/okex/exchain/x/order/match/continuousauction" + "github.com/okex/exchain/x/order/match/periodicauction" ) // nolint diff --git a/x/order/match/periodicauction/fill.go b/x/order/match/periodicauction/fill.go index be38cade81..410d79bacb 100644 --- a/x/order/match/periodicauction/fill.go +++ b/x/order/match/periodicauction/fill.go @@ -5,9 +5,9 @@ import ( "strings" sdk "github.com/cosmos/cosmos-sdk/types" - orderkeeper "github.com/okex/okexchain/x/order/keeper" - "github.com/okex/okexchain/x/order/types" - token "github.com/okex/okexchain/x/token/types" + orderkeeper "github.com/okex/exchain/x/order/keeper" + "github.com/okex/exchain/x/order/types" + token "github.com/okex/exchain/x/token/types" ) func fillBuyOrders(ctx sdk.Context, keeper orderkeeper.Keeper, product string, diff --git a/x/order/match/periodicauction/fill_test.go b/x/order/match/periodicauction/fill_test.go index 4985981330..4c24ce24c4 100644 --- a/x/order/match/periodicauction/fill_test.go +++ b/x/order/match/periodicauction/fill_test.go @@ -6,10 +6,10 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/require" - "github.com/okex/okexchain/x/common" - "github.com/okex/okexchain/x/dex" - orderkeeper "github.com/okex/okexchain/x/order/keeper" - "github.com/okex/okexchain/x/order/types" + "github.com/okex/exchain/x/common" + "github.com/okex/exchain/x/dex" + orderkeeper "github.com/okex/exchain/x/order/keeper" + "github.com/okex/exchain/x/order/types" ) var mockOrder = types.MockOrder diff --git a/x/order/match/periodicauction/impl.go b/x/order/match/periodicauction/impl.go index 2d1c628ed7..f0679b8a74 100644 --- a/x/order/match/periodicauction/impl.go +++ b/x/order/match/periodicauction/impl.go @@ -3,7 +3,7 @@ package periodicauction import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/order/keeper" + "github.com/okex/exchain/x/order/keeper" ) // PaEngine is the periodic auction match engine diff --git a/x/order/match/periodicauction/impl_test.go b/x/order/match/periodicauction/impl_test.go index f2a396899f..291def8136 100644 --- a/x/order/match/periodicauction/impl_test.go +++ b/x/order/match/periodicauction/impl_test.go @@ -4,9 +4,9 @@ import ( "testing" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/dex" - orderkeeper "github.com/okex/okexchain/x/order/keeper" - "github.com/okex/okexchain/x/order/types" + "github.com/okex/exchain/x/dex" + orderkeeper "github.com/okex/exchain/x/order/keeper" + "github.com/okex/exchain/x/order/types" "github.com/stretchr/testify/require" ) diff --git a/x/order/match/periodicauction/match.go b/x/order/match/periodicauction/match.go index 162a5a7235..c9d509db48 100644 --- a/x/order/match/periodicauction/match.go +++ b/x/order/match/periodicauction/match.go @@ -7,8 +7,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/order/keeper" - "github.com/okex/okexchain/x/order/types" + "github.com/okex/exchain/x/order/keeper" + "github.com/okex/exchain/x/order/types" ) func preMatchProcessing(book *types.DepthBook) (buyAmountSum, sellAmountSum []sdk.Dec) { diff --git a/x/order/match/periodicauction/match_test.go b/x/order/match/periodicauction/match_test.go index 683099e24c..8f5c959f49 100644 --- a/x/order/match/periodicauction/match_test.go +++ b/x/order/match/periodicauction/match_test.go @@ -5,13 +5,13 @@ import ( "strconv" "testing" - "github.com/okex/okexchain/x/dex" - orderkeeper "github.com/okex/okexchain/x/order/keeper" + "github.com/okex/exchain/x/dex" + orderkeeper "github.com/okex/exchain/x/order/keeper" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/require" - "github.com/okex/okexchain/x/order/types" + "github.com/okex/exchain/x/order/types" ) type BookItemTestData struct { diff --git a/x/order/module.go b/x/order/module.go index 2af1a1d4ca..ee37f842ad 100644 --- a/x/order/module.go +++ b/x/order/module.go @@ -12,11 +12,11 @@ import ( "github.com/spf13/cobra" abci "github.com/tendermint/tendermint/abci/types" - "github.com/okex/okexchain/x/common/version" - "github.com/okex/okexchain/x/order/client/cli" - "github.com/okex/okexchain/x/order/client/rest" - "github.com/okex/okexchain/x/order/keeper" - "github.com/okex/okexchain/x/order/types" + "github.com/okex/exchain/x/common/version" + "github.com/okex/exchain/x/order/client/cli" + "github.com/okex/exchain/x/order/client/rest" + "github.com/okex/exchain/x/order/keeper" + "github.com/okex/exchain/x/order/types" ) var ( diff --git a/x/order/module_test.go b/x/order/module_test.go index 5346c3f691..887ee1e6ad 100644 --- a/x/order/module_test.go +++ b/x/order/module_test.go @@ -3,11 +3,11 @@ package order import ( "testing" - "github.com/okex/okexchain/x/common/version" + "github.com/okex/exchain/x/common/version" "github.com/cosmos/cosmos-sdk/codec" - "github.com/okex/okexchain/x/order/keeper" - "github.com/okex/okexchain/x/order/types" + "github.com/okex/exchain/x/order/keeper" + "github.com/okex/exchain/x/order/types" "github.com/stretchr/testify/require" abci "github.com/tendermint/tendermint/abci/types" ) diff --git a/x/order/types/const.go b/x/order/types/const.go index 1571e16ef6..66ef8dc905 100644 --- a/x/order/types/const.go +++ b/x/order/types/const.go @@ -2,7 +2,7 @@ package types import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/common" + "github.com/okex/exchain/x/common" ) // nolint diff --git a/x/order/types/msgs_test.go b/x/order/types/msgs_test.go index b058d91efe..a276f41dd9 100644 --- a/x/order/types/msgs_test.go +++ b/x/order/types/msgs_test.go @@ -6,7 +6,7 @@ import ( "strconv" "testing" - "github.com/okex/okexchain/x/common" + "github.com/okex/exchain/x/common" "github.com/stretchr/testify/require" ) diff --git a/x/order/types/order_test.go b/x/order/types/order_test.go index 935ffd61b4..f64a799b3f 100644 --- a/x/order/types/order_test.go +++ b/x/order/types/order_test.go @@ -3,7 +3,7 @@ package types import ( "testing" - "github.com/okex/okexchain/x/common" + "github.com/okex/exchain/x/common" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/require" diff --git a/x/order/types/params.go b/x/order/types/params.go index 0f6e778a03..a813aca372 100644 --- a/x/order/types/params.go +++ b/x/order/types/params.go @@ -4,8 +4,8 @@ import ( "fmt" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/common" - "github.com/okex/okexchain/x/params" + "github.com/okex/exchain/x/common" + "github.com/okex/exchain/x/params" ) // nolint diff --git a/x/order/types/params_test.go b/x/order/types/params_test.go index c8c2b36796..0dc1935e4a 100644 --- a/x/order/types/params_test.go +++ b/x/order/types/params_test.go @@ -3,7 +3,7 @@ package types import ( "testing" - "github.com/okex/okexchain/x/common" + "github.com/okex/exchain/x/common" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/require" diff --git a/x/params/alias.go b/x/params/alias.go index cdcd38630b..5a4537fdbe 100644 --- a/x/params/alias.go +++ b/x/params/alias.go @@ -2,7 +2,7 @@ package params import ( sdkparams "github.com/cosmos/cosmos-sdk/x/params" - "github.com/okex/okexchain/x/params/types" + "github.com/okex/exchain/x/params/types" ) // const diff --git a/x/params/client/cli/query.go b/x/params/client/cli/query.go index d6bfa6620a..0865421f22 100644 --- a/x/params/client/cli/query.go +++ b/x/params/client/cli/query.go @@ -5,7 +5,7 @@ import ( "github.com/cosmos/cosmos-sdk/client/flags" "strings" - "github.com/okex/okexchain/x/params/types" + "github.com/okex/exchain/x/params/types" "github.com/cosmos/cosmos-sdk/client/context" "github.com/cosmos/cosmos-sdk/codec" diff --git a/x/params/client/cli/tx.go b/x/params/client/cli/tx.go index 29566f5c4d..437ef8b490 100644 --- a/x/params/client/cli/tx.go +++ b/x/params/client/cli/tx.go @@ -13,9 +13,9 @@ import ( "github.com/cosmos/cosmos-sdk/x/auth/client/utils" "github.com/spf13/cobra" - govTypes "github.com/okex/okexchain/x/gov/types" - paramscutils "github.com/okex/okexchain/x/params/client/utils" - "github.com/okex/okexchain/x/params/types" + govTypes "github.com/okex/exchain/x/gov/types" + paramscutils "github.com/okex/exchain/x/params/client/utils" + "github.com/okex/exchain/x/params/types" ) // GetCmdSubmitProposal implements a command handler for submitting a parameter change proposal transaction diff --git a/x/params/client/proposal_handler.go b/x/params/client/proposal_handler.go index 55b25866ee..e3b1a98da8 100644 --- a/x/params/client/proposal_handler.go +++ b/x/params/client/proposal_handler.go @@ -1,9 +1,9 @@ package client import ( - govclient "github.com/okex/okexchain/x/gov/client" - "github.com/okex/okexchain/x/params/client/cli" - "github.com/okex/okexchain/x/params/client/rest" + govclient "github.com/okex/exchain/x/gov/client" + "github.com/okex/exchain/x/params/client/cli" + "github.com/okex/exchain/x/params/client/rest" ) // ProposalHandler is the param change proposal handler in cmsdk diff --git a/x/params/client/rest/rest.go b/x/params/client/rest/rest.go index ff4c646fb2..48a5daaa90 100644 --- a/x/params/client/rest/rest.go +++ b/x/params/client/rest/rest.go @@ -8,9 +8,9 @@ import ( "github.com/cosmos/cosmos-sdk/types/rest" "github.com/cosmos/cosmos-sdk/x/auth/client/utils" "github.com/cosmos/cosmos-sdk/x/params" - "github.com/okex/okexchain/x/gov" - govrest "github.com/okex/okexchain/x/gov/client/rest" - paramscutils "github.com/okex/okexchain/x/params/client/utils" + "github.com/okex/exchain/x/gov" + govrest "github.com/okex/exchain/x/gov/client/rest" + paramscutils "github.com/okex/exchain/x/params/client/utils" ) // ProposalRESTHandler returns a ProposalRESTHandler that exposes the param change REST handler with a given sub-route diff --git a/x/params/codec.go b/x/params/codec.go index ce0401dd57..5b409f55e5 100644 --- a/x/params/codec.go +++ b/x/params/codec.go @@ -2,7 +2,7 @@ package params import ( "github.com/cosmos/cosmos-sdk/codec" - "github.com/okex/okexchain/x/params/types" + "github.com/okex/exchain/x/params/types" ) // ModuleCdc is the codec of module diff --git a/x/params/keeper.go b/x/params/keeper.go index c2964b82e4..f060316092 100644 --- a/x/params/keeper.go +++ b/x/params/keeper.go @@ -5,7 +5,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" sdkparams "github.com/cosmos/cosmos-sdk/x/params" - "github.com/okex/okexchain/x/params/types" + "github.com/okex/exchain/x/params/types" ) // Keeper is the struct of params keeper diff --git a/x/params/module.go b/x/params/module.go index 42306fe566..780ea90781 100644 --- a/x/params/module.go +++ b/x/params/module.go @@ -6,8 +6,8 @@ import ( sim "github.com/cosmos/cosmos-sdk/x/simulation" "math/rand" - "github.com/okex/okexchain/x/params/client/cli" - "github.com/okex/okexchain/x/params/types" + "github.com/okex/exchain/x/params/client/cli" + "github.com/okex/exchain/x/params/types" "github.com/gorilla/mux" "github.com/spf13/cobra" diff --git a/x/params/proposal_handler.go b/x/params/proposal_handler.go index 33acdeaf3f..bf4906ee15 100644 --- a/x/params/proposal_handler.go +++ b/x/params/proposal_handler.go @@ -5,9 +5,9 @@ import ( "math" "time" - "github.com/okex/okexchain/x/common" - govtypes "github.com/okex/okexchain/x/gov/types" - "github.com/okex/okexchain/x/params/types" + "github.com/okex/exchain/x/common" + govtypes "github.com/okex/exchain/x/gov/types" + "github.com/okex/exchain/x/params/types" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" diff --git a/x/params/querier.go b/x/params/querier.go index 832a22e34c..8e48d02942 100644 --- a/x/params/querier.go +++ b/x/params/querier.go @@ -7,7 +7,7 @@ import ( sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" abci "github.com/tendermint/tendermint/abci/types" - "github.com/okex/okexchain/x/params/types" + "github.com/okex/exchain/x/params/types" ) // NewQuerier returns all query handlers diff --git a/x/params/types/params.go b/x/params/types/params.go index e15a2fccc2..5367019ec1 100644 --- a/x/params/types/params.go +++ b/x/params/types/params.go @@ -2,7 +2,7 @@ package types import ( "fmt" - "github.com/okex/okexchain/x/common" + "github.com/okex/exchain/x/common" "time" "github.com/cosmos/cosmos-sdk/x/params/subspace" diff --git a/x/params/types/proposal.go b/x/params/types/proposal.go index 290a27cf5a..093153e31b 100644 --- a/x/params/types/proposal.go +++ b/x/params/types/proposal.go @@ -6,7 +6,7 @@ import ( "github.com/cosmos/cosmos-sdk/x/params/types" - govtypes "github.com/okex/okexchain/x/gov/types" + govtypes "github.com/okex/exchain/x/gov/types" sdk "github.com/cosmos/cosmos-sdk/types" sdkparams "github.com/cosmos/cosmos-sdk/x/params" diff --git a/x/slashing/alias.go b/x/slashing/alias.go index bf5bb335af..b071da4913 100644 --- a/x/slashing/alias.go +++ b/x/slashing/alias.go @@ -3,8 +3,8 @@ package slashing // nolint import ( - "github.com/okex/okexchain/x/slashing/internal/keeper" - "github.com/okex/okexchain/x/slashing/internal/types" + "github.com/okex/exchain/x/slashing/internal/keeper" + "github.com/okex/exchain/x/slashing/internal/types" ) const ( diff --git a/x/slashing/client/cli/query.go b/x/slashing/client/cli/query.go index 5a79f4a3eb..11d9e45d47 100644 --- a/x/slashing/client/cli/query.go +++ b/x/slashing/client/cli/query.go @@ -12,7 +12,7 @@ import ( "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/slashing/internal/types" + "github.com/okex/exchain/x/slashing/internal/types" ) // GetQueryCmd returns the cli query commands for this module diff --git a/x/slashing/client/cli/tx.go b/x/slashing/client/cli/tx.go index 3ba02e2da0..df96089e5a 100644 --- a/x/slashing/client/cli/tx.go +++ b/x/slashing/client/cli/tx.go @@ -12,7 +12,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/x/auth" "github.com/cosmos/cosmos-sdk/x/auth/client/utils" - "github.com/okex/okexchain/x/slashing/internal/types" + "github.com/okex/exchain/x/slashing/internal/types" ) // GetTxCmd returns the transaction commands for this module diff --git a/x/slashing/client/rest/query.go b/x/slashing/client/rest/query.go index fe1669cd9c..191034a3fd 100644 --- a/x/slashing/client/rest/query.go +++ b/x/slashing/client/rest/query.go @@ -9,7 +9,7 @@ import ( "github.com/cosmos/cosmos-sdk/client/context" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/rest" - "github.com/okex/okexchain/x/slashing/internal/types" + "github.com/okex/exchain/x/slashing/internal/types" ) func registerQueryRoutes(cliCtx context.CLIContext, r *mux.Router) { diff --git a/x/slashing/client/rest/tx.go b/x/slashing/client/rest/tx.go index d12d06c513..c3ea0831a2 100644 --- a/x/slashing/client/rest/tx.go +++ b/x/slashing/client/rest/tx.go @@ -10,7 +10,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/rest" "github.com/cosmos/cosmos-sdk/x/auth/client/utils" - "github.com/okex/okexchain/x/slashing/internal/types" + "github.com/okex/exchain/x/slashing/internal/types" ) func registerTxRoutes(cliCtx context.CLIContext, r *mux.Router) { diff --git a/x/slashing/genesis.go b/x/slashing/genesis.go index 9e560e84b0..b3fa3d54a6 100644 --- a/x/slashing/genesis.go +++ b/x/slashing/genesis.go @@ -2,8 +2,8 @@ package slashing import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/staking/exported" - "github.com/okex/okexchain/x/slashing/internal/types" + "github.com/okex/exchain/x/staking/exported" + "github.com/okex/exchain/x/slashing/internal/types" ) // InitGenesis initialize default parameters diff --git a/x/slashing/handler.go b/x/slashing/handler.go index ab98ec99b3..a0f54e2ace 100644 --- a/x/slashing/handler.go +++ b/x/slashing/handler.go @@ -3,7 +3,7 @@ package slashing import ( sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/okex/okexchain/x/slashing/internal/types" + "github.com/okex/exchain/x/slashing/internal/types" ) // NewHandler creates an sdk.Handler for all the slashing type messages diff --git a/x/slashing/internal/keeper/hooks.go b/x/slashing/internal/keeper/hooks.go index 1e9db88342..80302277ae 100644 --- a/x/slashing/internal/keeper/hooks.go +++ b/x/slashing/internal/keeper/hooks.go @@ -7,7 +7,7 @@ import ( "github.com/tendermint/tendermint/crypto" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/slashing/internal/types" + "github.com/okex/exchain/x/slashing/internal/types" ) func (k Keeper) AfterValidatorBonded(ctx sdk.Context, address sdk.ConsAddress, _ sdk.ValAddress) { diff --git a/x/slashing/internal/keeper/infractions.go b/x/slashing/internal/keeper/infractions.go index 60210c7d3e..3b8cdde367 100644 --- a/x/slashing/internal/keeper/infractions.go +++ b/x/slashing/internal/keeper/infractions.go @@ -6,7 +6,7 @@ import ( "github.com/tendermint/tendermint/crypto" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/slashing/internal/types" + "github.com/okex/exchain/x/slashing/internal/types" ) // HandleValidatorSignature handles a validator signature, must be called once per validator per block. diff --git a/x/slashing/internal/keeper/keeper.go b/x/slashing/internal/keeper/keeper.go index 4866ea24f3..ab89d0f333 100644 --- a/x/slashing/internal/keeper/keeper.go +++ b/x/slashing/internal/keeper/keeper.go @@ -8,7 +8,7 @@ import ( "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/slashing/internal/types" + "github.com/okex/exchain/x/slashing/internal/types" ) // Keeper of the slashing store diff --git a/x/slashing/internal/keeper/keeper_okexchain.go b/x/slashing/internal/keeper/keeper_okexchain.go index 0dfebcb037..2264a9e275 100644 --- a/x/slashing/internal/keeper/keeper_okexchain.go +++ b/x/slashing/internal/keeper/keeper_okexchain.go @@ -2,7 +2,7 @@ package keeper import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/slashing/internal/types" + "github.com/okex/exchain/x/slashing/internal/types" ) func (k Keeper) modifyValidatorStatus(ctx sdk.Context, consAddress sdk.ConsAddress, status types.ValStatus) { diff --git a/x/slashing/internal/keeper/params.go b/x/slashing/internal/keeper/params.go index 7376ef013a..64373eb736 100644 --- a/x/slashing/internal/keeper/params.go +++ b/x/slashing/internal/keeper/params.go @@ -4,7 +4,7 @@ import ( "time" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/slashing/internal/types" + "github.com/okex/exchain/x/slashing/internal/types" ) // SignedBlocksWindow - sliding window for downtime slashing diff --git a/x/slashing/internal/keeper/querier.go b/x/slashing/internal/keeper/querier.go index 130b650121..4f5ac5d97a 100644 --- a/x/slashing/internal/keeper/querier.go +++ b/x/slashing/internal/keeper/querier.go @@ -7,7 +7,7 @@ import ( "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/okex/okexchain/x/slashing/internal/types" + "github.com/okex/exchain/x/slashing/internal/types" ) // NewQuerier creates a new querier for slashing clients. diff --git a/x/slashing/internal/keeper/signing_info.go b/x/slashing/internal/keeper/signing_info.go index c3058aba43..b0345721ac 100644 --- a/x/slashing/internal/keeper/signing_info.go +++ b/x/slashing/internal/keeper/signing_info.go @@ -4,7 +4,7 @@ import ( "time" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/slashing/internal/types" + "github.com/okex/exchain/x/slashing/internal/types" ) // GetValidatorSigningInfo retruns the ValidatorSigningInfo for a specific validator diff --git a/x/slashing/internal/keeper/test_common.go b/x/slashing/internal/keeper/test_common.go index 5bdd0cac6e..44b12d43b9 100644 --- a/x/slashing/internal/keeper/test_common.go +++ b/x/slashing/internal/keeper/test_common.go @@ -22,9 +22,9 @@ import ( "github.com/cosmos/cosmos-sdk/x/auth" "github.com/cosmos/cosmos-sdk/x/bank" "github.com/cosmos/cosmos-sdk/x/supply" - "github.com/okex/okexchain/x/params" - "github.com/okex/okexchain/x/slashing/internal/types" - "github.com/okex/okexchain/x/staking" + "github.com/okex/exchain/x/params" + "github.com/okex/exchain/x/slashing/internal/types" + "github.com/okex/exchain/x/staking" ) // TODO remove dependencies on staking (should only refer to validator set type from sdk) diff --git a/x/slashing/internal/keeper/unjail.go b/x/slashing/internal/keeper/unjail.go index 5468b38ae4..6a8dd9ae12 100644 --- a/x/slashing/internal/keeper/unjail.go +++ b/x/slashing/internal/keeper/unjail.go @@ -2,7 +2,7 @@ package keeper import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/slashing/internal/types" + "github.com/okex/exchain/x/slashing/internal/types" ) // Unjail calls the staking Unjail function to unjail a validator if the diff --git a/x/slashing/internal/types/expected_keepers.go b/x/slashing/internal/types/expected_keepers.go index 50eac9286f..6785a4b068 100644 --- a/x/slashing/internal/types/expected_keepers.go +++ b/x/slashing/internal/types/expected_keepers.go @@ -5,8 +5,8 @@ package types import ( sdk "github.com/cosmos/cosmos-sdk/types" authexported "github.com/cosmos/cosmos-sdk/x/auth/exported" - "github.com/okex/okexchain/x/params" - stakingexported "github.com/okex/okexchain/x/staking/exported" + "github.com/okex/exchain/x/params" + stakingexported "github.com/okex/exchain/x/staking/exported" ) // AccountKeeper expected account keeper diff --git a/x/slashing/internal/types/params.go b/x/slashing/internal/types/params.go index 367f75aaba..a2de398c00 100644 --- a/x/slashing/internal/types/params.go +++ b/x/slashing/internal/types/params.go @@ -5,7 +5,7 @@ import ( "time" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/params" + "github.com/okex/exchain/x/params" ) // Default parameter namespace diff --git a/x/slashing/module.go b/x/slashing/module.go index 638ebd6dca..8b365b4503 100644 --- a/x/slashing/module.go +++ b/x/slashing/module.go @@ -15,11 +15,11 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" sim "github.com/cosmos/cosmos-sdk/x/simulation" - "github.com/okex/okexchain/x/slashing/client/cli" - "github.com/okex/okexchain/x/slashing/client/rest" - "github.com/okex/okexchain/x/slashing/internal/types" - "github.com/okex/okexchain/x/slashing/simulation" - stakingkeeper "github.com/okex/okexchain/x/staking/keeper" + "github.com/okex/exchain/x/slashing/client/cli" + "github.com/okex/exchain/x/slashing/client/rest" + "github.com/okex/exchain/x/slashing/internal/types" + "github.com/okex/exchain/x/slashing/simulation" + stakingkeeper "github.com/okex/exchain/x/staking/keeper" ) var ( diff --git a/x/slashing/simulation/decoder.go b/x/slashing/simulation/decoder.go index cd8b578aa1..53fa509940 100644 --- a/x/slashing/simulation/decoder.go +++ b/x/slashing/simulation/decoder.go @@ -9,7 +9,7 @@ import ( "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/slashing/internal/types" + "github.com/okex/exchain/x/slashing/internal/types" ) // DecodeStore unmarshals the KVPair's Value to the corresponding slashing type diff --git a/x/slashing/simulation/genesis.go b/x/slashing/simulation/genesis.go index 96aaf883c7..5b20dc4571 100644 --- a/x/slashing/simulation/genesis.go +++ b/x/slashing/simulation/genesis.go @@ -12,7 +12,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" "github.com/cosmos/cosmos-sdk/x/simulation" - "github.com/okex/okexchain/x/slashing/internal/types" + "github.com/okex/exchain/x/slashing/internal/types" ) // Simulation parameter constants diff --git a/x/slashing/simulation/operations.go b/x/slashing/simulation/operations.go index 07c94e5f11..b9c64a7641 100644 --- a/x/slashing/simulation/operations.go +++ b/x/slashing/simulation/operations.go @@ -6,9 +6,9 @@ import ( "github.com/cosmos/cosmos-sdk/codec" simappparams "github.com/cosmos/cosmos-sdk/simapp/params" "github.com/cosmos/cosmos-sdk/x/simulation" - "github.com/okex/okexchain/x/slashing/internal/keeper" - "github.com/okex/okexchain/x/slashing/internal/types" - stakingkeeper "github.com/okex/okexchain/x/staking/keeper" + "github.com/okex/exchain/x/slashing/internal/keeper" + "github.com/okex/exchain/x/slashing/internal/types" + stakingkeeper "github.com/okex/exchain/x/staking/keeper" ) // Simulation operation weights constants diff --git a/x/slashing/simulation/params.go b/x/slashing/simulation/params.go index 81ebdb22bb..7245000ebe 100644 --- a/x/slashing/simulation/params.go +++ b/x/slashing/simulation/params.go @@ -7,7 +7,7 @@ import ( "math/rand" "github.com/cosmos/cosmos-sdk/x/simulation" - "github.com/okex/okexchain/x/slashing/internal/types" + "github.com/okex/exchain/x/slashing/internal/types" ) const ( diff --git a/x/staking/alias.go b/x/staking/alias.go index 23e7bc8a41..8d1e9bf0ff 100644 --- a/x/staking/alias.go +++ b/x/staking/alias.go @@ -1,15 +1,15 @@ // nolint // autogenerated code using github.com/rigelrozanski/multitool // aliases generated for the following subdirectories: -// ALIASGEN: github.com/okex/okexchain/x/staking/keeper -// ALIASGEN: github.com/okex/okexchain/x/staking/types -// ALIASGEN: github.com/okex/okexchain/x/staking/exported +// ALIASGEN: github.com/okex/exchain/x/staking/keeper +// ALIASGEN: github.com/okex/exchain/x/staking/types +// ALIASGEN: github.com/okex/exchain/x/staking/exported package staking import ( - "github.com/okex/okexchain/x/staking/exported" - "github.com/okex/okexchain/x/staking/keeper" - "github.com/okex/okexchain/x/staking/types" + "github.com/okex/exchain/x/staking/exported" + "github.com/okex/exchain/x/staking/keeper" + "github.com/okex/exchain/x/staking/types" ) const ( diff --git a/x/staking/app_test.go b/x/staking/app_test.go index c42c9f119a..812efd9659 100644 --- a/x/staking/app_test.go +++ b/x/staking/app_test.go @@ -9,8 +9,8 @@ import ( "github.com/cosmos/cosmos-sdk/x/auth" "github.com/cosmos/cosmos-sdk/x/auth/client/utils" - "github.com/okex/okexchain/x/staking/keeper" - "github.com/okex/okexchain/x/staking/types" + "github.com/okex/exchain/x/staking/keeper" + "github.com/okex/exchain/x/staking/types" "github.com/tendermint/tendermint/libs/log" "github.com/stretchr/testify/require" diff --git a/x/staking/client/cli/flags.go b/x/staking/client/cli/flags.go index 6173090972..95be82cb5f 100644 --- a/x/staking/client/cli/flags.go +++ b/x/staking/client/cli/flags.go @@ -3,7 +3,7 @@ package cli import ( flag "github.com/spf13/pflag" - "github.com/okex/okexchain/x/staking/types" + "github.com/okex/exchain/x/staking/types" ) // nolint diff --git a/x/staking/client/cli/query.go b/x/staking/client/cli/query.go index 87f2308d5e..c8c349aeab 100644 --- a/x/staking/client/cli/query.go +++ b/x/staking/client/cli/query.go @@ -14,7 +14,7 @@ import ( "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/version" - "github.com/okex/okexchain/x/staking/types" + "github.com/okex/exchain/x/staking/types" ) // GetQueryCmd returns the cli query commands for staking module diff --git a/x/staking/client/cli/tx.go b/x/staking/client/cli/tx.go index c3614d3b20..10aee9a1bd 100644 --- a/x/staking/client/cli/tx.go +++ b/x/staking/client/cli/tx.go @@ -5,7 +5,7 @@ import ( "fmt" "os" - "github.com/okex/okexchain/x/common" + "github.com/okex/exchain/x/common" "github.com/cosmos/cosmos-sdk/client/flags" @@ -22,7 +22,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/x/auth" "github.com/cosmos/cosmos-sdk/x/auth/client/utils" - "github.com/okex/okexchain/x/staking/types" + "github.com/okex/exchain/x/staking/types" ) // GetTxCmd returns the transaction commands for this module diff --git a/x/staking/client/cli/tx_vote.go b/x/staking/client/cli/tx_vote.go index dda105be58..3ada14a878 100644 --- a/x/staking/client/cli/tx_vote.go +++ b/x/staking/client/cli/tx_vote.go @@ -13,7 +13,7 @@ import ( "github.com/cosmos/cosmos-sdk/version" "github.com/cosmos/cosmos-sdk/x/auth" "github.com/cosmos/cosmos-sdk/x/auth/client/utils" - "github.com/okex/okexchain/x/staking/types" + "github.com/okex/exchain/x/staking/types" "github.com/spf13/cobra" ) diff --git a/x/staking/client/rest/query.go b/x/staking/client/rest/query.go index 1023669675..4f3350e5db 100644 --- a/x/staking/client/rest/query.go +++ b/x/staking/client/rest/query.go @@ -9,8 +9,8 @@ import ( "github.com/cosmos/cosmos-sdk/client/context" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/rest" - "github.com/okex/okexchain/x/common" - "github.com/okex/okexchain/x/staking/types" + "github.com/okex/exchain/x/common" + "github.com/okex/exchain/x/staking/types" ) func registerQueryRoutes(cliCtx context.CLIContext, r *mux.Router) { diff --git a/x/staking/client/rest/tx.go b/x/staking/client/rest/tx.go index 66e113caee..5448c2cb1b 100644 --- a/x/staking/client/rest/tx.go +++ b/x/staking/client/rest/tx.go @@ -9,8 +9,8 @@ import ( "github.com/cosmos/cosmos-sdk/types/rest" "github.com/cosmos/cosmos-sdk/x/auth/client/utils" "github.com/gorilla/mux" - "github.com/okex/okexchain/x/common" - "github.com/okex/okexchain/x/staking/types" + "github.com/okex/exchain/x/common" + "github.com/okex/exchain/x/staking/types" ) func registerTxRoutes(cliCtx context.CLIContext, r *mux.Router) { diff --git a/x/staking/client/rest/utils.go b/x/staking/client/rest/utils.go index 4d478d7eec..b3c2d7a205 100644 --- a/x/staking/client/rest/utils.go +++ b/x/staking/client/rest/utils.go @@ -4,7 +4,7 @@ import ( "fmt" "net/http" - "github.com/okex/okexchain/x/common" + "github.com/okex/exchain/x/common" "github.com/gorilla/mux" @@ -12,7 +12,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/rest" "github.com/cosmos/cosmos-sdk/x/auth/client/utils" - "github.com/okex/okexchain/x/staking/types" + "github.com/okex/exchain/x/staking/types" ) // contains checks if the a given query contains one of the tx types diff --git a/x/staking/common_test.go b/x/staking/common_test.go index a820ef3f28..5f2d45f891 100644 --- a/x/staking/common_test.go +++ b/x/staking/common_test.go @@ -8,8 +8,8 @@ import ( "github.com/cosmos/cosmos-sdk/store" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/staking/keeper" - "github.com/okex/okexchain/x/staking/types" + "github.com/okex/exchain/x/staking/keeper" + "github.com/okex/exchain/x/staking/types" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "github.com/tendermint/go-amino" diff --git a/x/staking/delegator_test.go b/x/staking/delegator_test.go index c50f3bfa52..0f38538168 100644 --- a/x/staking/delegator_test.go +++ b/x/staking/delegator_test.go @@ -5,9 +5,9 @@ import ( "testing" "time" - "github.com/okex/okexchain/x/common" + "github.com/okex/exchain/x/common" - "github.com/okex/okexchain/x/staking/types" + "github.com/okex/exchain/x/staking/types" sdk "github.com/cosmos/cosmos-sdk/types" ) diff --git a/x/staking/genesis.go b/x/staking/genesis.go index f9bbf2e4b6..a914f5fd11 100644 --- a/x/staking/genesis.go +++ b/x/staking/genesis.go @@ -5,8 +5,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" supplyexported "github.com/cosmos/cosmos-sdk/x/supply/exported" - "github.com/okex/okexchain/x/staking/exported" - "github.com/okex/okexchain/x/staking/types" + "github.com/okex/exchain/x/staking/exported" + "github.com/okex/exchain/x/staking/types" abci "github.com/tendermint/tendermint/abci/types" tmtypes "github.com/tendermint/tendermint/types" ) diff --git a/x/staking/genesis_test.go b/x/staking/genesis_test.go index e46a97bc9a..afc71c95c6 100644 --- a/x/staking/genesis_test.go +++ b/x/staking/genesis_test.go @@ -5,13 +5,13 @@ import ( "testing" "time" - "github.com/okex/okexchain/x/common" + "github.com/okex/exchain/x/common" "github.com/cosmos/cosmos-sdk/x/supply" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/staking/exported" - "github.com/okex/okexchain/x/staking/types" + "github.com/okex/exchain/x/staking/exported" + "github.com/okex/exchain/x/staking/types" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" abci "github.com/tendermint/tendermint/abci/types" diff --git a/x/staking/handler.go b/x/staking/handler.go index eaa23d7213..a11bd3303a 100644 --- a/x/staking/handler.go +++ b/x/staking/handler.go @@ -4,8 +4,8 @@ import ( "fmt" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/staking/keeper" - "github.com/okex/okexchain/x/staking/types" + "github.com/okex/exchain/x/staking/keeper" + "github.com/okex/exchain/x/staking/types" abci "github.com/tendermint/tendermint/abci/types" tmtypes "github.com/tendermint/tendermint/types" ) diff --git a/x/staking/handler_shares.go b/x/staking/handler_shares.go index 3ccd60dd6b..d74df0a7c3 100644 --- a/x/staking/handler_shares.go +++ b/x/staking/handler_shares.go @@ -4,8 +4,8 @@ import ( "time" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/staking/keeper" - "github.com/okex/okexchain/x/staking/types" + "github.com/okex/exchain/x/staking/keeper" + "github.com/okex/exchain/x/staking/types" ) func handleMsgBindProxy(ctx sdk.Context, msg types.MsgBindProxy, k keeper.Keeper) (*sdk.Result, error) { diff --git a/x/staking/handler_shares_test.go b/x/staking/handler_shares_test.go index deee1e20a7..9bbcb61159 100644 --- a/x/staking/handler_shares_test.go +++ b/x/staking/handler_shares_test.go @@ -4,7 +4,7 @@ import ( "testing" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/staking/types" + "github.com/okex/exchain/x/staking/types" "github.com/stretchr/testify/require" ) diff --git a/x/staking/handler_test.go b/x/staking/handler_test.go index 10144ae1cb..b0c9799971 100644 --- a/x/staking/handler_test.go +++ b/x/staking/handler_test.go @@ -8,8 +8,8 @@ import ( "github.com/tendermint/tendermint/crypto/secp256k1" sdk "github.com/cosmos/cosmos-sdk/types" - keep "github.com/okex/okexchain/x/staking/keeper" - "github.com/okex/okexchain/x/staking/types" + keep "github.com/okex/exchain/x/staking/keeper" + "github.com/okex/exchain/x/staking/types" abci "github.com/tendermint/tendermint/abci/types" tmtypes "github.com/tendermint/tendermint/types" ) diff --git a/x/staking/keeper/alias_functions.go b/x/staking/keeper/alias_functions.go index b940852cbb..92fb341b3d 100644 --- a/x/staking/keeper/alias_functions.go +++ b/x/staking/keeper/alias_functions.go @@ -4,8 +4,8 @@ import ( "fmt" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/staking/exported" - "github.com/okex/okexchain/x/staking/types" + "github.com/okex/exchain/x/staking/exported" + "github.com/okex/exchain/x/staking/types" ) //_______________________________________________________________________ diff --git a/x/staking/keeper/delegation.go b/x/staking/keeper/delegation.go index 0f8d9d544d..a71cbc8f68 100644 --- a/x/staking/keeper/delegation.go +++ b/x/staking/keeper/delegation.go @@ -4,7 +4,7 @@ import ( "time" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/staking/types" + "github.com/okex/exchain/x/staking/types" ) // UpdateProxy updates the shares by the total delegated and self delegated tokens of a proxy diff --git a/x/staking/keeper/delegator.go b/x/staking/keeper/delegator.go index ad955aa155..704653ee97 100644 --- a/x/staking/keeper/delegator.go +++ b/x/staking/keeper/delegator.go @@ -2,7 +2,7 @@ package keeper import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/staking/types" + "github.com/okex/exchain/x/staking/types" ) // GetDelegator gets Delegator entity from store diff --git a/x/staking/keeper/hooks.go b/x/staking/keeper/hooks.go index 71358a306d..e186927000 100644 --- a/x/staking/keeper/hooks.go +++ b/x/staking/keeper/hooks.go @@ -2,7 +2,7 @@ package keeper import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/staking/types" + "github.com/okex/exchain/x/staking/types" ) // Implements StakingHooks interface diff --git a/x/staking/keeper/invariants.go b/x/staking/keeper/invariants.go index 135a76fae3..8e7aa2f041 100644 --- a/x/staking/keeper/invariants.go +++ b/x/staking/keeper/invariants.go @@ -5,8 +5,8 @@ import ( "fmt" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/staking/exported" - "github.com/okex/okexchain/x/staking/types" + "github.com/okex/exchain/x/staking/exported" + "github.com/okex/exchain/x/staking/types" ) // RegisterInvariantsCustom registers all staking invariants for okexchain diff --git a/x/staking/keeper/invariants_test.go b/x/staking/keeper/invariants_test.go index 5a01a3eb42..c53075db27 100644 --- a/x/staking/keeper/invariants_test.go +++ b/x/staking/keeper/invariants_test.go @@ -5,7 +5,7 @@ import ( "testing" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/staking/types" + "github.com/okex/exchain/x/staking/types" "github.com/stretchr/testify/require" ) diff --git a/x/staking/keeper/keeper.go b/x/staking/keeper/keeper.go index 93810decbc..998d8f3e7c 100644 --- a/x/staking/keeper/keeper.go +++ b/x/staking/keeper/keeper.go @@ -5,13 +5,13 @@ import ( "fmt" "strings" - "github.com/okex/okexchain/x/staking/exported" + "github.com/okex/exchain/x/staking/exported" "github.com/tendermint/tendermint/libs/log" "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/params" - "github.com/okex/okexchain/x/staking/types" + "github.com/okex/exchain/x/params" + "github.com/okex/exchain/x/staking/types" ) const aminoCacheSize = 500 diff --git a/x/staking/keeper/min_self_delegation.go b/x/staking/keeper/min_self_delegation.go index fb42d7aefe..bfc29ab31c 100644 --- a/x/staking/keeper/min_self_delegation.go +++ b/x/staking/keeper/min_self_delegation.go @@ -4,7 +4,7 @@ import ( "time" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/staking/types" + "github.com/okex/exchain/x/staking/types" ) // WithdrawMinSelfDelegation withdraws the msd from validator diff --git a/x/staking/keeper/params.go b/x/staking/keeper/params.go index aa08baceb3..04ededcba4 100644 --- a/x/staking/keeper/params.go +++ b/x/staking/keeper/params.go @@ -4,8 +4,8 @@ import ( "time" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/params" - "github.com/okex/okexchain/x/staking/types" + "github.com/okex/exchain/x/params" + "github.com/okex/exchain/x/staking/types" ) // Default parameter namespace diff --git a/x/staking/keeper/pool.go b/x/staking/keeper/pool.go index 58be8d014a..963b23ac98 100644 --- a/x/staking/keeper/pool.go +++ b/x/staking/keeper/pool.go @@ -3,7 +3,7 @@ package keeper import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/x/supply/exported" - "github.com/okex/okexchain/x/staking/types" + "github.com/okex/exchain/x/staking/types" ) // GetBondedPool returns the bonded tokens pool's module account diff --git a/x/staking/keeper/proxy.go b/x/staking/keeper/proxy.go index bf6030503d..e5a5c2c771 100644 --- a/x/staking/keeper/proxy.go +++ b/x/staking/keeper/proxy.go @@ -2,7 +2,7 @@ package keeper import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/staking/types" + "github.com/okex/exchain/x/staking/types" ) // ClearProxy clears the ProxyAddress on the delegator who has bound diff --git a/x/staking/keeper/proxy_test.go b/x/staking/keeper/proxy_test.go index 0a7177fc5d..6a0e620038 100644 --- a/x/staking/keeper/proxy_test.go +++ b/x/staking/keeper/proxy_test.go @@ -2,7 +2,7 @@ package keeper import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/staking/types" + "github.com/okex/exchain/x/staking/types" "github.com/stretchr/testify/require" "testing" diff --git a/x/staking/keeper/querier.go b/x/staking/keeper/querier.go index a2e74b7a2a..cddcc47f52 100644 --- a/x/staking/keeper/querier.go +++ b/x/staking/keeper/querier.go @@ -6,8 +6,8 @@ import ( "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/common" - "github.com/okex/okexchain/x/staking/types" + "github.com/okex/exchain/x/common" + "github.com/okex/exchain/x/staking/types" abci "github.com/tendermint/tendermint/abci/types" "github.com/tendermint/tendermint/crypto" ) diff --git a/x/staking/keeper/querier_test.go b/x/staking/keeper/querier_test.go index f1587369e5..0583e08b10 100644 --- a/x/staking/keeper/querier_test.go +++ b/x/staking/keeper/querier_test.go @@ -4,7 +4,7 @@ import ( "testing" types2 "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/staking/types" + "github.com/okex/exchain/x/staking/types" "github.com/stretchr/testify/require" "github.com/tendermint/go-amino" abci "github.com/tendermint/tendermint/abci/types" diff --git a/x/staking/keeper/shares.go b/x/staking/keeper/shares.go index 997d2f360f..89b8b2de6c 100644 --- a/x/staking/keeper/shares.go +++ b/x/staking/keeper/shares.go @@ -2,7 +2,7 @@ package keeper import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/staking/types" + "github.com/okex/exchain/x/staking/types" ) // GetShares gets the shares entity diff --git a/x/staking/keeper/shares_test.go b/x/staking/keeper/shares_test.go index 0689880736..6a0f8b68e5 100644 --- a/x/staking/keeper/shares_test.go +++ b/x/staking/keeper/shares_test.go @@ -4,7 +4,7 @@ import ( "testing" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/staking/types" + "github.com/okex/exchain/x/staking/types" "github.com/stretchr/testify/require" ) diff --git a/x/staking/keeper/test_common.go b/x/staking/keeper/test_common.go index 1106980a88..1d274975c8 100644 --- a/x/staking/keeper/test_common.go +++ b/x/staking/keeper/test_common.go @@ -10,7 +10,7 @@ import ( "github.com/cosmos/cosmos-sdk/x/auth/exported" - "github.com/okex/okexchain/x/staking/types" + "github.com/okex/exchain/x/staking/types" "github.com/stretchr/testify/require" abci "github.com/tendermint/tendermint/abci/types" @@ -25,9 +25,9 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/x/auth" "github.com/cosmos/cosmos-sdk/x/bank" - "github.com/okex/okexchain/x/params" + "github.com/okex/exchain/x/params" "github.com/cosmos/cosmos-sdk/x/supply" - //distr "github.com/okex/okexchain/x/distribution" + //distr "github.com/okex/exchain/x/distribution" ) // dummy addresses used for testing diff --git a/x/staking/keeper/val_state.go b/x/staking/keeper/val_state.go index b357ff60b9..a5a409f7ab 100644 --- a/x/staking/keeper/val_state.go +++ b/x/staking/keeper/val_state.go @@ -4,7 +4,7 @@ import ( "fmt" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/staking/types" + "github.com/okex/exchain/x/staking/types" abci "github.com/tendermint/tendermint/abci/types" "github.com/tendermint/tendermint/libs/log" ) diff --git a/x/staking/keeper/val_state_change.go b/x/staking/keeper/val_state_change.go index dd17bcdd14..69a8ea8d9f 100644 --- a/x/staking/keeper/val_state_change.go +++ b/x/staking/keeper/val_state_change.go @@ -6,7 +6,7 @@ import ( "sort" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/staking/types" + "github.com/okex/exchain/x/staking/types" abci "github.com/tendermint/tendermint/abci/types" ) diff --git a/x/staking/keeper/validator.go b/x/staking/keeper/validator.go index d7153ce7fd..558d5c2b2f 100644 --- a/x/staking/keeper/validator.go +++ b/x/staking/keeper/validator.go @@ -6,7 +6,7 @@ import ( "time" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/staking/types" + "github.com/okex/exchain/x/staking/types" ) // Cache the amino decoding of validators, as it can be the case that repeated slashing calls diff --git a/x/staking/keeper/weight.go b/x/staking/keeper/weight.go index 67fc72e0a2..5c73c4a882 100644 --- a/x/staking/keeper/weight.go +++ b/x/staking/keeper/weight.go @@ -5,7 +5,7 @@ import ( "math" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/staking/types" + "github.com/okex/exchain/x/staking/types" ) const ( diff --git a/x/staking/legacy/v0_11/migrate.go b/x/staking/legacy/v0_11/migrate.go index 08a5df08e4..8904947d7e 100644 --- a/x/staking/legacy/v0_11/migrate.go +++ b/x/staking/legacy/v0_11/migrate.go @@ -1,6 +1,6 @@ package v0_11 -import "github.com/okex/okexchain/x/staking/legacy/v0_10" +import "github.com/okex/exchain/x/staking/legacy/v0_10" func Migrate(oldGenState v0_10.GenesisState) GenesisState { params := Params{ diff --git a/x/staking/legacy/v0_11/types.go b/x/staking/legacy/v0_11/types.go index 9ced0ab205..702b510085 100644 --- a/x/staking/legacy/v0_11/types.go +++ b/x/staking/legacy/v0_11/types.go @@ -3,7 +3,7 @@ package v0_11 import ( "time" - "github.com/okex/okexchain/x/staking/legacy/v0_10" + "github.com/okex/exchain/x/staking/legacy/v0_10" sdk "github.com/cosmos/cosmos-sdk/types" ) diff --git a/x/staking/module.go b/x/staking/module.go index 3c685bbead..7ddf981500 100644 --- a/x/staking/module.go +++ b/x/staking/module.go @@ -5,9 +5,9 @@ import ( "math/rand" sim "github.com/cosmos/cosmos-sdk/x/simulation" - "github.com/okex/okexchain/x/staking/simulation" + "github.com/okex/exchain/x/staking/simulation" - "github.com/okex/okexchain/x/staking/keeper" + "github.com/okex/exchain/x/staking/keeper" "github.com/gorilla/mux" "github.com/spf13/cobra" @@ -22,9 +22,9 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - "github.com/okex/okexchain/x/staking/client/cli" - "github.com/okex/okexchain/x/staking/client/rest" - "github.com/okex/okexchain/x/staking/types" + "github.com/okex/exchain/x/staking/client/cli" + "github.com/okex/exchain/x/staking/client/rest" + "github.com/okex/exchain/x/staking/types" ) var ( diff --git a/x/staking/simulation/operations.go b/x/staking/simulation/operations.go index febb7b69df..498227c812 100644 --- a/x/staking/simulation/operations.go +++ b/x/staking/simulation/operations.go @@ -5,7 +5,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" - "github.com/okex/okexchain/x/params/types" + "github.com/okex/exchain/x/params/types" "github.com/cosmos/cosmos-sdk/x/simulation" ) diff --git a/x/staking/types/delegator.go b/x/staking/types/delegator.go index 7fe782010b..9791dc57b5 100644 --- a/x/staking/types/delegator.go +++ b/x/staking/types/delegator.go @@ -3,7 +3,7 @@ package types import ( "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/staking/exported" + "github.com/okex/exchain/x/staking/exported" ) var _ exported.DelegatorI = &Delegator{} diff --git a/x/staking/types/expected_keepers.go b/x/staking/types/expected_keepers.go index 448ed32069..e631f196b6 100644 --- a/x/staking/types/expected_keepers.go +++ b/x/staking/types/expected_keepers.go @@ -4,7 +4,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" authexported "github.com/cosmos/cosmos-sdk/x/auth/exported" supplyexported "github.com/cosmos/cosmos-sdk/x/supply/exported" - stakingexported "github.com/okex/okexchain/x/staking/exported" + stakingexported "github.com/okex/exchain/x/staking/exported" ) // AccountKeeper defines the expected account keeper (noalias) diff --git a/x/staking/types/msg.go b/x/staking/types/msg.go index b8fef20710..af5c02a998 100644 --- a/x/staking/types/msg.go +++ b/x/staking/types/msg.go @@ -2,7 +2,7 @@ package types import ( "encoding/json" - "github.com/okex/okexchain/x/common" + "github.com/okex/exchain/x/common" "github.com/tendermint/tendermint/crypto" sdk "github.com/cosmos/cosmos-sdk/types" diff --git a/x/staking/types/params.go b/x/staking/types/params.go index fc225484ac..259ff66d36 100644 --- a/x/staking/types/params.go +++ b/x/staking/types/params.go @@ -6,8 +6,8 @@ import ( "time" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/common" - "github.com/okex/okexchain/x/params" + "github.com/okex/exchain/x/common" + "github.com/okex/exchain/x/params" ) const ( diff --git a/x/staking/types/validator.go b/x/staking/types/validator.go index 788c755fc5..f5537e13e8 100644 --- a/x/staking/types/validator.go +++ b/x/staking/types/validator.go @@ -13,7 +13,7 @@ import ( "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/staking/exported" + "github.com/okex/exchain/x/staking/exported" ) // nolint diff --git a/x/staking/types/validator_test.go b/x/staking/types/validator_test.go index f4e377993a..81b1027bfd 100644 --- a/x/staking/types/validator_test.go +++ b/x/staking/types/validator_test.go @@ -3,7 +3,7 @@ package types import ( "testing" - "github.com/okex/okexchain/x/common" + "github.com/okex/exchain/x/common" "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" diff --git a/x/staking/validator_state_machine_test.go b/x/staking/validator_state_machine_test.go index ed531f7335..361c458a5e 100644 --- a/x/staking/validator_state_machine_test.go +++ b/x/staking/validator_state_machine_test.go @@ -4,7 +4,7 @@ import ( "testing" "time" - "github.com/okex/okexchain/x/staking/types" + "github.com/okex/exchain/x/staking/types" sdk "github.com/cosmos/cosmos-sdk/types" ) diff --git a/x/staking/validator_test.go b/x/staking/validator_test.go index da8e20c008..b82bc853ff 100644 --- a/x/staking/validator_test.go +++ b/x/staking/validator_test.go @@ -4,7 +4,7 @@ import ( "testing" "time" - "github.com/okex/okexchain/x/staking/types" + "github.com/okex/exchain/x/staking/types" sdk "github.com/cosmos/cosmos-sdk/types" ) diff --git a/x/stream/alias.go b/x/stream/alias.go index 3a2d95ce50..baa56f16da 100644 --- a/x/stream/alias.go +++ b/x/stream/alias.go @@ -1,6 +1,6 @@ package stream -import "github.com/okex/okexchain/x/stream/types" +import "github.com/okex/exchain/x/stream/types" const ( ModuleName = types.ModuleName diff --git a/x/stream/analyservice/service.go b/x/stream/analyservice/service.go index 6baddc9c4b..e3771fcd17 100644 --- a/x/stream/analyservice/service.go +++ b/x/stream/analyservice/service.go @@ -3,9 +3,9 @@ package analyservice import ( "fmt" - "github.com/okex/okexchain/x/backend/orm" + "github.com/okex/exchain/x/backend/orm" - "github.com/okex/okexchain/x/backend" + "github.com/okex/exchain/x/backend" ) func NewMysqlORM(url string) *backend.ORM { diff --git a/x/stream/analyservice/types.go b/x/stream/analyservice/types.go index f35d7b58d9..461952dcbf 100644 --- a/x/stream/analyservice/types.go +++ b/x/stream/analyservice/types.go @@ -2,11 +2,11 @@ package analyservice import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/backend" - "github.com/okex/okexchain/x/order/keeper" - "github.com/okex/okexchain/x/stream/common" - "github.com/okex/okexchain/x/stream/types" - "github.com/okex/okexchain/x/token" + "github.com/okex/exchain/x/backend" + "github.com/okex/exchain/x/order/keeper" + "github.com/okex/exchain/x/stream/common" + "github.com/okex/exchain/x/stream/types" + "github.com/okex/exchain/x/token" ) // the data enqueue to mysql diff --git a/x/stream/common/getdata.go b/x/stream/common/getdata.go index e8acf006c9..7aced29dfa 100644 --- a/x/stream/common/getdata.go +++ b/x/stream/common/getdata.go @@ -2,8 +2,8 @@ package common import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/backend" - "github.com/okex/okexchain/x/backend/types" + "github.com/okex/exchain/x/backend" + "github.com/okex/exchain/x/backend/types" ) func GetNewOrders(ctx sdk.Context, orderKeeper types.OrderKeeper) []*backend.Order { diff --git a/x/stream/common/kline/kline.go b/x/stream/common/kline/kline.go index 4b3b55ee86..2f331a23bb 100644 --- a/x/stream/common/kline/kline.go +++ b/x/stream/common/kline/kline.go @@ -4,10 +4,10 @@ import ( "sync" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/backend" - "github.com/okex/okexchain/x/dex" - "github.com/okex/okexchain/x/stream/common" - "github.com/okex/okexchain/x/stream/types" + "github.com/okex/exchain/x/backend" + "github.com/okex/exchain/x/dex" + "github.com/okex/exchain/x/stream/common" + "github.com/okex/exchain/x/stream/types" ) var ( diff --git a/x/stream/common/kline/market.go b/x/stream/common/kline/market.go index 219ad6d892..5f3e93b546 100644 --- a/x/stream/common/kline/market.go +++ b/x/stream/common/kline/market.go @@ -10,7 +10,7 @@ import ( "strconv" "github.com/nacos-group/nacos-sdk-go/vo" - "github.com/okex/okexchain/x/stream/nacos" + "github.com/okex/exchain/x/stream/nacos" "github.com/tendermint/tendermint/libs/log" ) diff --git a/x/stream/common/memory_cache.go b/x/stream/common/memory_cache.go index 78b4de0c39..cf1e5de6f3 100644 --- a/x/stream/common/memory_cache.go +++ b/x/stream/common/memory_cache.go @@ -3,9 +3,9 @@ package common import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/x/auth" - "github.com/okex/okexchain/x/ammswap" - "github.com/okex/okexchain/x/backend" - "github.com/okex/okexchain/x/dex/types" + "github.com/okex/exchain/x/ammswap" + "github.com/okex/exchain/x/backend" + "github.com/okex/exchain/x/dex/types" ) type Cache struct { diff --git a/x/stream/coordinator.go b/x/stream/coordinator.go index cb3f4500df..ecffaa8b44 100644 --- a/x/stream/coordinator.go +++ b/x/stream/coordinator.go @@ -4,7 +4,7 @@ import ( "fmt" "time" - "github.com/okex/okexchain/x/stream/types" + "github.com/okex/exchain/x/stream/types" "github.com/tendermint/tendermint/libs/log" ) diff --git a/x/stream/distrlock/redis_distr_state_lock.go b/x/stream/distrlock/redis_distr_state_lock.go index e4cd6ff331..e2682de98c 100644 --- a/x/stream/distrlock/redis_distr_state_lock.go +++ b/x/stream/distrlock/redis_distr_state_lock.go @@ -3,7 +3,7 @@ package distrlock import ( "fmt" - "github.com/okex/okexchain/x/stream/common" + "github.com/okex/exchain/x/stream/common" "github.com/garyburd/redigo/redis" "github.com/tendermint/tendermint/libs/log" ) diff --git a/x/stream/endblocker.go b/x/stream/endblocker.go index b6bd662880..8cf01118fb 100644 --- a/x/stream/endblocker.go +++ b/x/stream/endblocker.go @@ -5,11 +5,11 @@ import ( "time" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/stream/analyservice" - "github.com/okex/okexchain/x/stream/common/kline" - pushservicetypes "github.com/okex/okexchain/x/stream/pushservice/types" - "github.com/okex/okexchain/x/stream/types" - "github.com/okex/okexchain/x/stream/websocket" + "github.com/okex/exchain/x/stream/analyservice" + "github.com/okex/exchain/x/stream/common/kline" + pushservicetypes "github.com/okex/exchain/x/stream/pushservice/types" + "github.com/okex/exchain/x/stream/types" + "github.com/okex/exchain/x/stream/websocket" ) func EndBlocker(ctx sdk.Context, k Keeper) { diff --git a/x/stream/engine.go b/x/stream/engine.go index ccf4086d65..5355365929 100644 --- a/x/stream/engine.go +++ b/x/stream/engine.go @@ -5,10 +5,10 @@ import ( "strings" "time" - "github.com/okex/okexchain/x/stream/common/kline" - "github.com/okex/okexchain/x/stream/kafkaclient" + "github.com/okex/exchain/x/stream/common/kline" + "github.com/okex/exchain/x/stream/kafkaclient" - "github.com/okex/okexchain/x/stream/websocket" + "github.com/okex/exchain/x/stream/websocket" "github.com/pkg/errors" @@ -17,13 +17,13 @@ import ( "github.com/tendermint/tendermint/libs/log" appCfg "github.com/cosmos/cosmos-sdk/server/config" - "github.com/okex/okexchain/x/backend" - "github.com/okex/okexchain/x/stream/analyservice" - "github.com/okex/okexchain/x/stream/common" - "github.com/okex/okexchain/x/stream/pulsarclient" - "github.com/okex/okexchain/x/stream/pushservice" - pushservicetypes "github.com/okex/okexchain/x/stream/pushservice/types" - "github.com/okex/okexchain/x/stream/types" + "github.com/okex/exchain/x/backend" + "github.com/okex/exchain/x/stream/analyservice" + "github.com/okex/exchain/x/stream/common" + "github.com/okex/exchain/x/stream/pulsarclient" + "github.com/okex/exchain/x/stream/pushservice" + pushservicetypes "github.com/okex/exchain/x/stream/pushservice/types" + "github.com/okex/exchain/x/stream/types" ) type Kind byte diff --git a/x/stream/engine_test.go b/x/stream/engine_test.go index 35388eae36..88a52d54fb 100644 --- a/x/stream/engine_test.go +++ b/x/stream/engine_test.go @@ -6,7 +6,7 @@ import ( appCfg "github.com/cosmos/cosmos-sdk/server/config" - "github.com/okex/okexchain/x/stream/common" + "github.com/okex/exchain/x/stream/common" "github.com/spf13/viper" "github.com/stretchr/testify/require" "github.com/tendermint/tendermint/libs/log" diff --git a/x/stream/eureka/client.go b/x/stream/eureka/client.go index ae71b4a07e..38ffec4620 100644 --- a/x/stream/eureka/client.go +++ b/x/stream/eureka/client.go @@ -9,7 +9,7 @@ import ( "syscall" "time" - "github.com/okex/okexchain/x/stream/common/utils" + "github.com/okex/exchain/x/stream/common/utils" "github.com/tendermint/tendermint/libs/log" ) diff --git a/x/stream/eureka/start.go b/x/stream/eureka/start.go index 0d424a25ec..e2d97c0948 100644 --- a/x/stream/eureka/start.go +++ b/x/stream/eureka/start.go @@ -3,7 +3,7 @@ package eureka import ( "fmt" - "github.com/okex/okexchain/x/stream/common/utils" + "github.com/okex/exchain/x/stream/common/utils" "github.com/tendermint/tendermint/libs/log" ) diff --git a/x/stream/kafkaclient/producer.go b/x/stream/kafkaclient/producer.go index 8160a8f599..e0185a5fc6 100644 --- a/x/stream/kafkaclient/producer.go +++ b/x/stream/kafkaclient/producer.go @@ -9,8 +9,8 @@ import ( appcfg "github.com/cosmos/cosmos-sdk/server/config" "github.com/nacos-group/nacos-sdk-go/vo" - "github.com/okex/okexchain/x/backend" - "github.com/okex/okexchain/x/stream/common/kline" + "github.com/okex/exchain/x/backend" + "github.com/okex/exchain/x/stream/common/kline" "github.com/segmentio/kafka-go" "github.com/tendermint/tendermint/libs/log" ) diff --git a/x/stream/keeper.go b/x/stream/keeper.go index 0531e22359..7ecb4e89ef 100644 --- a/x/stream/keeper.go +++ b/x/stream/keeper.go @@ -3,16 +3,16 @@ package stream import ( "fmt" - "github.com/okex/okexchain/x/ammswap" - backend "github.com/okex/okexchain/x/backend/types" - "github.com/okex/okexchain/x/dex" - "github.com/okex/okexchain/x/stream/types" + "github.com/okex/exchain/x/ammswap" + backend "github.com/okex/exchain/x/backend/types" + "github.com/okex/exchain/x/dex" + "github.com/okex/exchain/x/stream/types" "github.com/cosmos/cosmos-sdk/codec" "github.com/cosmos/cosmos-sdk/server/config" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/x/auth" - "github.com/okex/okexchain/x/common/monitor" + "github.com/okex/exchain/x/common/monitor" "github.com/tendermint/tendermint/libs/log" ) diff --git a/x/stream/market_keeper.go b/x/stream/market_keeper.go index afeb36fd33..4f9556a4b8 100644 --- a/x/stream/market_keeper.go +++ b/x/stream/market_keeper.go @@ -3,7 +3,7 @@ package stream import ( "encoding/json" "fmt" - "github.com/okex/okexchain/x/backend/types" + "github.com/okex/exchain/x/backend/types" "sort" "strconv" "strings" @@ -11,8 +11,8 @@ import ( "github.com/tendermint/tendermint/libs/log" - "github.com/okex/okexchain/x/backend" - "github.com/okex/okexchain/x/stream/pushservice/conn" + "github.com/okex/exchain/x/backend" + "github.com/okex/exchain/x/stream/pushservice/conn" ) type MarketKeeper backend.MarketKeeper diff --git a/x/stream/nacos/start.go b/x/stream/nacos/start.go index fed084dea1..f0e3d3e2ff 100644 --- a/x/stream/nacos/start.go +++ b/x/stream/nacos/start.go @@ -6,7 +6,7 @@ import ( "github.com/nacos-group/nacos-sdk-go/clients" "github.com/nacos-group/nacos-sdk-go/common/constant" "github.com/nacos-group/nacos-sdk-go/vo" - "github.com/okex/okexchain/x/stream/common/utils" + "github.com/okex/exchain/x/stream/common/utils" "github.com/tendermint/tendermint/libs/log" ) diff --git a/x/stream/pulsarclient/producer.go b/x/stream/pulsarclient/producer.go index b6b457f504..ed0ffd253e 100644 --- a/x/stream/pulsarclient/producer.go +++ b/x/stream/pulsarclient/producer.go @@ -12,8 +12,8 @@ import ( appCfg "github.com/cosmos/cosmos-sdk/server/config" "github.com/google/uuid" "github.com/nacos-group/nacos-sdk-go/vo" - "github.com/okex/okexchain/x/backend" - "github.com/okex/okexchain/x/stream/common/kline" + "github.com/okex/exchain/x/backend" + "github.com/okex/exchain/x/stream/common/kline" "github.com/tendermint/tendermint/libs/log" ) diff --git a/x/stream/pulsarclient/producer_test.go b/x/stream/pulsarclient/producer_test.go index d6d759e99d..5415930f23 100644 --- a/x/stream/pulsarclient/producer_test.go +++ b/x/stream/pulsarclient/producer_test.go @@ -1,15 +1,15 @@ package pulsarclient import ( - "github.com/okex/okexchain/x/common" - "github.com/okex/okexchain/x/stream/common/kline" + "github.com/okex/exchain/x/common" + "github.com/okex/exchain/x/stream/common/kline" "math/rand" "os" "testing" "time" appCfg "github.com/cosmos/cosmos-sdk/server/config" - "github.com/okex/okexchain/x/backend" + "github.com/okex/exchain/x/backend" "github.com/stretchr/testify/require" "github.com/tendermint/tendermint/libs/log" ) diff --git a/x/stream/pushservice/service.go b/x/stream/pushservice/service.go index 25629cf9d1..07a7222672 100644 --- a/x/stream/pushservice/service.go +++ b/x/stream/pushservice/service.go @@ -4,14 +4,14 @@ import ( "encoding/json" "fmt" - "github.com/okex/okexchain/x/stream/pushservice/conn" + "github.com/okex/exchain/x/stream/pushservice/conn" - "github.com/okex/okexchain/x/backend" + "github.com/okex/exchain/x/backend" "github.com/tendermint/tendermint/libs/log" - "github.com/okex/okexchain/x/stream/pushservice/types" - "github.com/okex/okexchain/x/token" + "github.com/okex/exchain/x/stream/pushservice/types" + "github.com/okex/exchain/x/token" ) var _ types.Writer = (*PushService)(nil) diff --git a/x/stream/pushservice/types/types.go b/x/stream/pushservice/types/types.go index 263d4e2cc4..0bb5e51d38 100644 --- a/x/stream/pushservice/types/types.go +++ b/x/stream/pushservice/types/types.go @@ -5,16 +5,16 @@ import ( "fmt" "time" - "github.com/okex/okexchain/x/order" + "github.com/okex/exchain/x/order" - "github.com/okex/okexchain/x/stream/common" + "github.com/okex/exchain/x/stream/common" - "github.com/okex/okexchain/x/stream/types" + "github.com/okex/exchain/x/stream/types" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/backend" - ordertype "github.com/okex/okexchain/x/order/types" - "github.com/okex/okexchain/x/token" + "github.com/okex/exchain/x/backend" + ordertype "github.com/okex/exchain/x/order/types" + "github.com/okex/exchain/x/token" ) type Writer interface { diff --git a/x/stream/pushservice/types/utils.go b/x/stream/pushservice/types/utils.go index cdc4a470c7..a4f9991143 100644 --- a/x/stream/pushservice/types/utils.go +++ b/x/stream/pushservice/types/utils.go @@ -1,6 +1,6 @@ package types -import "github.com/okex/okexchain/x/backend" +import "github.com/okex/exchain/x/backend" func find(orders []backend.Order, o backend.Order) (i int, found bool) { for i, ord := range orders { diff --git a/x/stream/stream.go b/x/stream/stream.go index 30cc4f55b4..777cf7af47 100644 --- a/x/stream/stream.go +++ b/x/stream/stream.go @@ -5,20 +5,20 @@ import ( "github.com/cosmos/cosmos-sdk/server" "github.com/spf13/viper" - "github.com/okex/okexchain/x/stream/eureka" - "github.com/okex/okexchain/x/stream/nacos" - "github.com/okex/okexchain/x/stream/websocket" + "github.com/okex/exchain/x/stream/eureka" + "github.com/okex/exchain/x/stream/nacos" + "github.com/okex/exchain/x/stream/websocket" appCfg "github.com/cosmos/cosmos-sdk/server/config" "github.com/google/uuid" - "github.com/okex/okexchain/x/stream/distrlock" + "github.com/okex/exchain/x/stream/distrlock" "github.com/cosmos/cosmos-sdk/codec" - "github.com/okex/okexchain/x/backend" - "github.com/okex/okexchain/x/stream/common" - "github.com/okex/okexchain/x/stream/pushservice" - "github.com/okex/okexchain/x/stream/types" + "github.com/okex/exchain/x/backend" + "github.com/okex/exchain/x/stream/common" + "github.com/okex/exchain/x/stream/pushservice" + "github.com/okex/exchain/x/stream/types" "github.com/tendermint/tendermint/libs/log" ) diff --git a/x/stream/task.go b/x/stream/task.go index bcbc7be227..1ff2ce93f4 100644 --- a/x/stream/task.go +++ b/x/stream/task.go @@ -4,7 +4,7 @@ import ( "encoding/json" "fmt" - "github.com/okex/okexchain/x/stream/types" + "github.com/okex/exchain/x/stream/types" "github.com/tendermint/tendermint/libs/log" ) diff --git a/x/stream/test_common.go b/x/stream/test_common.go index d19f8c7884..24a0675429 100644 --- a/x/stream/test_common.go +++ b/x/stream/test_common.go @@ -12,14 +12,14 @@ import ( "github.com/cosmos/cosmos-sdk/x/mock" "github.com/cosmos/cosmos-sdk/x/supply" "github.com/cosmos/cosmos-sdk/x/supply/exported" - "github.com/okex/okexchain/x/common" - "github.com/okex/okexchain/x/common/monitor" - "github.com/okex/okexchain/x/dex" - "github.com/okex/okexchain/x/order" - "github.com/okex/okexchain/x/order/keeper" - ordertypes "github.com/okex/okexchain/x/order/types" - stakingtypes "github.com/okex/okexchain/x/staking/types" - "github.com/okex/okexchain/x/token" + "github.com/okex/exchain/x/common" + "github.com/okex/exchain/x/common/monitor" + "github.com/okex/exchain/x/dex" + "github.com/okex/exchain/x/order" + "github.com/okex/exchain/x/order/keeper" + ordertypes "github.com/okex/exchain/x/order/types" + stakingtypes "github.com/okex/exchain/x/staking/types" + "github.com/okex/exchain/x/token" "github.com/stretchr/testify/require" abci "github.com/tendermint/tendermint/abci/types" "github.com/tendermint/tendermint/crypto/secp256k1" diff --git a/x/stream/types/expected_keeper.go b/x/stream/types/expected_keeper.go index 4729588ea0..8d93d3dc48 100644 --- a/x/stream/types/expected_keeper.go +++ b/x/stream/types/expected_keeper.go @@ -3,12 +3,12 @@ package types import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/x/auth" - "github.com/okex/okexchain/x/ammswap" - ammswaptypes "github.com/okex/okexchain/x/ammswap/types" - "github.com/okex/okexchain/x/dex" - farmtypes "github.com/okex/okexchain/x/farm/types" - "github.com/okex/okexchain/x/order" - "github.com/okex/okexchain/x/token" + "github.com/okex/exchain/x/ammswap" + ammswaptypes "github.com/okex/exchain/x/ammswap/types" + "github.com/okex/exchain/x/dex" + farmtypes "github.com/okex/exchain/x/farm/types" + "github.com/okex/exchain/x/order" + "github.com/okex/exchain/x/token" "github.com/willf/bitset" ) diff --git a/x/stream/websocket/cache.go b/x/stream/websocket/cache.go index 437fa1bf5b..0d04427edf 100644 --- a/x/stream/websocket/cache.go +++ b/x/stream/websocket/cache.go @@ -6,8 +6,8 @@ import ( "github.com/tendermint/tendermint/libs/log" sdk "github.com/cosmos/cosmos-sdk/types" - pushservice "github.com/okex/okexchain/x/stream/pushservice/types" - "github.com/okex/okexchain/x/stream/types" + pushservice "github.com/okex/exchain/x/stream/pushservice/types" + "github.com/okex/exchain/x/stream/types" ) type cache struct { diff --git a/x/stream/websocket/service.go b/x/stream/websocket/service.go index 9c50ad4122..38f7cd9272 100644 --- a/x/stream/websocket/service.go +++ b/x/stream/websocket/service.go @@ -6,7 +6,7 @@ import ( appCfg "github.com/cosmos/cosmos-sdk/server/config" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/stream/types" + "github.com/okex/exchain/x/stream/types" "github.com/tendermint/tendermint/libs/log" ) diff --git a/x/stream/websocket/types.go b/x/stream/websocket/types.go index 84c4a2a1aa..30df71e82f 100644 --- a/x/stream/websocket/types.go +++ b/x/stream/websocket/types.go @@ -2,9 +2,9 @@ package websocket import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/stream/common" - pushservice "github.com/okex/okexchain/x/stream/pushservice/types" - "github.com/okex/okexchain/x/stream/types" + "github.com/okex/exchain/x/stream/common" + pushservice "github.com/okex/exchain/x/stream/pushservice/types" + "github.com/okex/exchain/x/stream/types" ) type PushData struct { diff --git a/x/token/alias.go b/x/token/alias.go index cb3e74104b..03415122b6 100644 --- a/x/token/alias.go +++ b/x/token/alias.go @@ -1,6 +1,6 @@ package token -import "github.com/okex/okexchain/x/token/types" +import "github.com/okex/exchain/x/token/types" const ( // ModuleName is the module name constant used in many places diff --git a/x/token/beginblocker.go b/x/token/beginblocker.go index 3d1fc35e94..d9b902563b 100644 --- a/x/token/beginblocker.go +++ b/x/token/beginblocker.go @@ -2,8 +2,8 @@ package token import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/common/perf" - "github.com/okex/okexchain/x/token/types" + "github.com/okex/exchain/x/common/perf" + "github.com/okex/exchain/x/token/types" ) // BeginBlocker is called when dapp handles with abci::BeginBlock diff --git a/x/token/client/cli/query.go b/x/token/client/cli/query.go index 6bac4bfa0f..cb5ee8fa5e 100644 --- a/x/token/client/cli/query.go +++ b/x/token/client/cli/query.go @@ -9,7 +9,7 @@ import ( "github.com/cosmos/cosmos-sdk/client/context" "github.com/cosmos/cosmos-sdk/codec" "github.com/cosmos/cosmos-sdk/x/auth" - "github.com/okex/okexchain/x/token/types" + "github.com/okex/exchain/x/token/types" "github.com/spf13/cobra" ) diff --git a/x/token/client/cli/tx.go b/x/token/client/cli/tx.go index 00eced4c56..9480dccbfa 100644 --- a/x/token/client/cli/tx.go +++ b/x/token/client/cli/tx.go @@ -14,7 +14,7 @@ import ( "github.com/cosmos/cosmos-sdk/x/auth" authTypes "github.com/cosmos/cosmos-sdk/x/auth" "github.com/cosmos/cosmos-sdk/x/auth/client/utils" - "github.com/okex/okexchain/x/token/types" + "github.com/okex/exchain/x/token/types" "github.com/pkg/errors" "github.com/spf13/cobra" ) diff --git a/x/token/client/rest/rest.go b/x/token/client/rest/rest.go index 76fa48bd2c..9aa8e1b4a9 100644 --- a/x/token/client/rest/rest.go +++ b/x/token/client/rest/rest.go @@ -4,7 +4,7 @@ import ( "fmt" "net/http" - "github.com/okex/okexchain/x/token/types" + "github.com/okex/exchain/x/token/types" "encoding/json" "strings" @@ -14,7 +14,7 @@ import ( "github.com/cosmos/cosmos-sdk/client/context" "github.com/cosmos/cosmos-sdk/types/rest" "github.com/gorilla/mux" - "github.com/okex/okexchain/x/common" + "github.com/okex/exchain/x/common" ) // RegisterRoutes, a central function to define routes diff --git a/x/token/client/rest/rest_doc.go b/x/token/client/rest/rest_doc.go index 34ac502266..0871d87d8c 100644 --- a/x/token/client/rest/rest_doc.go +++ b/x/token/client/rest/rest_doc.go @@ -27,7 +27,7 @@ package rest import ( - "github.com/okex/okexchain/x/token/types" + "github.com/okex/exchain/x/token/types" ) // A Products is the info of the market. diff --git a/x/token/client/rest/rest_v2.go b/x/token/client/rest/rest_v2.go index 0c20df1c3c..46fe76334c 100644 --- a/x/token/client/rest/rest_v2.go +++ b/x/token/client/rest/rest_v2.go @@ -4,12 +4,12 @@ import ( "fmt" "net/http" - "github.com/okex/okexchain/x/token/types" + "github.com/okex/exchain/x/token/types" "github.com/cosmos/cosmos-sdk/client/context" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/gorilla/mux" - "github.com/okex/okexchain/x/common" + "github.com/okex/exchain/x/common" ) // RegisterRoutesV2, a central function to define routes diff --git a/x/token/export_accounts.go b/x/token/export_accounts.go index 7d450aab48..aca7edee1b 100644 --- a/x/token/export_accounts.go +++ b/x/token/export_accounts.go @@ -13,7 +13,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" authexported "github.com/cosmos/cosmos-sdk/x/auth/exported" ethcrypto "github.com/ethereum/go-ethereum/crypto" - ethermint "github.com/okex/okexchain/app/types" + ethermint "github.com/okex/exchain/app/types" "github.com/spf13/viper" "github.com/tendermint/tendermint/libs/cli" ) diff --git a/x/token/genesis.go b/x/token/genesis.go index 0f5f322b00..f02ad3615d 100644 --- a/x/token/genesis.go +++ b/x/token/genesis.go @@ -5,8 +5,8 @@ import ( "fmt" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/common" - "github.com/okex/okexchain/x/token/types" + "github.com/okex/exchain/x/common" + "github.com/okex/exchain/x/token/types" ) // default owner of okt diff --git a/x/token/genesis_test.go b/x/token/genesis_test.go index 79dbd41b95..2079ca09cb 100644 --- a/x/token/genesis_test.go +++ b/x/token/genesis_test.go @@ -1,11 +1,11 @@ package token import ( - "github.com/okex/okexchain/x/common" + "github.com/okex/exchain/x/common" "testing" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/token/types" + "github.com/okex/exchain/x/token/types" "github.com/stretchr/testify/require" abci "github.com/tendermint/tendermint/abci/types" ) diff --git a/x/token/handler.go b/x/token/handler.go index 903099dcfc..ab6bed8fc4 100644 --- a/x/token/handler.go +++ b/x/token/handler.go @@ -3,12 +3,12 @@ package token import ( "fmt" - "github.com/okex/okexchain/x/common" + "github.com/okex/exchain/x/common" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/common/perf" - "github.com/okex/okexchain/x/common/version" - "github.com/okex/okexchain/x/token/types" + "github.com/okex/exchain/x/common/perf" + "github.com/okex/exchain/x/common/version" + "github.com/okex/exchain/x/token/types" "github.com/tendermint/tendermint/libs/log" ) diff --git a/x/token/handler_test.go b/x/token/handler_test.go index c9236cf029..6e3de9bcd6 100644 --- a/x/token/handler_test.go +++ b/x/token/handler_test.go @@ -8,12 +8,12 @@ import ( "github.com/cosmos/cosmos-sdk/x/auth" "github.com/cosmos/cosmos-sdk/x/mock" ethcrypto "github.com/ethereum/go-ethereum/crypto" - okexchain "github.com/okex/okexchain/app" - app "github.com/okex/okexchain/app/types" - "github.com/okex/okexchain/x/common" - "github.com/okex/okexchain/x/common/version" - "github.com/okex/okexchain/x/token" - "github.com/okex/okexchain/x/token/types" + okexchain "github.com/okex/exchain/app" + app "github.com/okex/exchain/app/types" + "github.com/okex/exchain/x/common" + "github.com/okex/exchain/x/common/version" + "github.com/okex/exchain/x/token" + "github.com/okex/exchain/x/token/types" "github.com/stretchr/testify/require" abci "github.com/tendermint/tendermint/abci/types" "github.com/tendermint/tendermint/crypto/secp256k1" diff --git a/x/token/keeper.go b/x/token/keeper.go index be8dbef14c..6a7d645863 100644 --- a/x/token/keeper.go +++ b/x/token/keeper.go @@ -11,9 +11,9 @@ import ( "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/x/bank" - app "github.com/okex/okexchain/app/types" - "github.com/okex/okexchain/x/params" - "github.com/okex/okexchain/x/token/types" + app "github.com/okex/exchain/app/types" + "github.com/okex/exchain/x/params" + "github.com/okex/exchain/x/token/types" "github.com/tendermint/tendermint/crypto/tmhash" ) diff --git a/x/token/keeper_test.go b/x/token/keeper_test.go index 74f8b6e65d..14e29ebc88 100644 --- a/x/token/keeper_test.go +++ b/x/token/keeper_test.go @@ -10,8 +10,8 @@ import ( "github.com/stretchr/testify/require" abci "github.com/tendermint/tendermint/abci/types" - "github.com/okex/okexchain/x/common" - "github.com/okex/okexchain/x/token/types" + "github.com/okex/exchain/x/common" + "github.com/okex/exchain/x/token/types" ) func TestKeeper_GetFeeDetailList(t *testing.T) { diff --git a/x/token/legacy/v0_11/migrate.go b/x/token/legacy/v0_11/migrate.go index 1444bbdcc8..bf283d5b39 100644 --- a/x/token/legacy/v0_11/migrate.go +++ b/x/token/legacy/v0_11/migrate.go @@ -1,6 +1,6 @@ package v0_11 -import "github.com/okex/okexchain/x/token/legacy/v0_10" +import "github.com/okex/exchain/x/token/legacy/v0_10" func Migrate(oldGenState v0_10.GenesisState) GenesisState { tokens := make([]Token, len(oldGenState.Tokens)) diff --git a/x/token/legacy/v0_11/types.go b/x/token/legacy/v0_11/types.go index ae3cc1c113..db402d5bc5 100644 --- a/x/token/legacy/v0_11/types.go +++ b/x/token/legacy/v0_11/types.go @@ -2,7 +2,7 @@ package v0_11 import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/token/legacy/v0_10" + "github.com/okex/exchain/x/token/legacy/v0_10" ) const ModuleName = "token" diff --git a/x/token/module.go b/x/token/module.go index fb562b3b64..2b36093b1d 100644 --- a/x/token/module.go +++ b/x/token/module.go @@ -8,8 +8,8 @@ import ( authTypes "github.com/cosmos/cosmos-sdk/x/auth/types" abci "github.com/tendermint/tendermint/abci/types" - "github.com/okex/okexchain/x/common/version" - tokenTypes "github.com/okex/okexchain/x/token/types" + "github.com/okex/exchain/x/common/version" + tokenTypes "github.com/okex/exchain/x/token/types" ) var ( diff --git a/x/token/module_basic.go b/x/token/module_basic.go index 48c6b07ca5..947c41258d 100644 --- a/x/token/module_basic.go +++ b/x/token/module_basic.go @@ -9,9 +9,9 @@ import ( "github.com/gorilla/mux" "github.com/spf13/cobra" - "github.com/okex/okexchain/x/token/client/cli" - "github.com/okex/okexchain/x/token/client/rest" - tokenTypes "github.com/okex/okexchain/x/token/types" + "github.com/okex/exchain/x/token/client/cli" + "github.com/okex/exchain/x/token/client/rest" + tokenTypes "github.com/okex/exchain/x/token/types" ) var ( diff --git a/x/token/module_test.go b/x/token/module_test.go index 487a90c6b1..16acec251a 100644 --- a/x/token/module_test.go +++ b/x/token/module_test.go @@ -1,14 +1,14 @@ package token import ( - "github.com/okex/okexchain/x/common" + "github.com/okex/exchain/x/common" "testing" "github.com/cosmos/cosmos-sdk/codec" cliLcd "github.com/cosmos/cosmos-sdk/client/lcd" - "github.com/okex/okexchain/x/common/version" - "github.com/okex/okexchain/x/token/types" + "github.com/okex/exchain/x/common/version" + "github.com/okex/exchain/x/token/types" "github.com/stretchr/testify/require" abci "github.com/tendermint/tendermint/abci/types" ) diff --git a/x/token/querier.go b/x/token/querier.go index f96ddd3561..b852ece114 100644 --- a/x/token/querier.go +++ b/x/token/querier.go @@ -1,8 +1,8 @@ package token import ( - "github.com/okex/okexchain/x/common" - "github.com/okex/okexchain/x/token/types" + "github.com/okex/exchain/x/common" + "github.com/okex/exchain/x/token/types" "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" diff --git a/x/token/querier_test.go b/x/token/querier_test.go index 6ab4380925..d69819ecc2 100644 --- a/x/token/querier_test.go +++ b/x/token/querier_test.go @@ -3,11 +3,11 @@ package token import ( "testing" - "github.com/okex/okexchain/x/token/types" + "github.com/okex/exchain/x/token/types" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/x/mock" - "github.com/okex/okexchain/x/common" + "github.com/okex/exchain/x/common" "github.com/stretchr/testify/require" abci "github.com/tendermint/tendermint/abci/types" ) diff --git a/x/token/querier_v2.go b/x/token/querier_v2.go index 1afa740708..2307bed58c 100644 --- a/x/token/querier_v2.go +++ b/x/token/querier_v2.go @@ -5,8 +5,8 @@ import ( "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/common" - "github.com/okex/okexchain/x/token/types" + "github.com/okex/exchain/x/common" + "github.com/okex/exchain/x/token/types" abci "github.com/tendermint/tendermint/abci/types" ) diff --git a/x/token/test_common.go b/x/token/test_common.go index bbfcff883e..39c4aae3a9 100644 --- a/x/token/test_common.go +++ b/x/token/test_common.go @@ -9,8 +9,8 @@ import ( "github.com/cosmos/cosmos-sdk/x/auth" "github.com/cosmos/cosmos-sdk/x/bank" "github.com/cosmos/cosmos-sdk/x/supply" - "github.com/okex/okexchain/x/params" - "github.com/okex/okexchain/x/token/types" + "github.com/okex/exchain/x/params" + "github.com/okex/exchain/x/token/types" "github.com/stretchr/testify/require" abci "github.com/tendermint/tendermint/abci/types" dbm "github.com/tendermint/tm-db" diff --git a/x/token/token_test.go b/x/token/token_test.go index 5275ffda40..6e4a0c2bd1 100644 --- a/x/token/token_test.go +++ b/x/token/token_test.go @@ -6,7 +6,7 @@ import ( "strings" "testing" - app "github.com/okex/okexchain/app/types" + app "github.com/okex/exchain/app/types" "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" @@ -15,9 +15,9 @@ import ( "github.com/cosmos/cosmos-sdk/x/mock" "github.com/cosmos/cosmos-sdk/x/supply" "github.com/cosmos/cosmos-sdk/x/supply/exported" - "github.com/okex/okexchain/x/common" - "github.com/okex/okexchain/x/common/version" - "github.com/okex/okexchain/x/token/types" + "github.com/okex/exchain/x/common" + "github.com/okex/exchain/x/common/version" + "github.com/okex/exchain/x/token/types" "github.com/stretchr/testify/require" abci "github.com/tendermint/tendermint/abci/types" "github.com/tendermint/tendermint/crypto" diff --git a/x/token/types/msgs.go b/x/token/types/msgs.go index 992fbd959f..318a5ec0e6 100644 --- a/x/token/types/msgs.go +++ b/x/token/types/msgs.go @@ -3,7 +3,7 @@ package types import ( sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/common" + "github.com/okex/exchain/x/common" ) const ( diff --git a/x/token/types/msgs_test.go b/x/token/types/msgs_test.go index 87ea4a8e27..51e1d4c69b 100644 --- a/x/token/types/msgs_test.go +++ b/x/token/types/msgs_test.go @@ -5,7 +5,7 @@ import ( "testing" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/common" + "github.com/okex/exchain/x/common" "github.com/stretchr/testify/require" "github.com/tendermint/tendermint/crypto/secp256k1" ) diff --git a/x/token/types/params.go b/x/token/types/params.go index 847c29c73f..f393a597dc 100644 --- a/x/token/types/params.go +++ b/x/token/types/params.go @@ -6,8 +6,8 @@ import ( "time" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okex/okexchain/x/common" - "github.com/okex/okexchain/x/params" + "github.com/okex/exchain/x/common" + "github.com/okex/exchain/x/params" ) const ( diff --git a/x/token/types/params_test.go b/x/token/types/params_test.go index dbc6499182..ee8f2e7a20 100644 --- a/x/token/types/params_test.go +++ b/x/token/types/params_test.go @@ -3,9 +3,9 @@ package types import ( "testing" - "github.com/okex/okexchain/x/common" + "github.com/okex/exchain/x/common" - "github.com/okex/okexchain/x/params" + "github.com/okex/exchain/x/params" "github.com/stretchr/testify/require" ) diff --git a/x/token/types/token_test.go b/x/token/types/token_test.go index d49ce51b37..6b4ca6ed63 100644 --- a/x/token/types/token_test.go +++ b/x/token/types/token_test.go @@ -4,7 +4,7 @@ import ( "encoding/json" "testing" - "github.com/okex/okexchain/x/common" + "github.com/okex/exchain/x/common" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/require" diff --git a/x/token/types/util_test.go b/x/token/types/util_test.go index e5b4bbd38d..30507aeb9c 100644 --- a/x/token/types/util_test.go +++ b/x/token/types/util_test.go @@ -3,7 +3,7 @@ package types import ( "testing" - "github.com/okex/okexchain/x/common" + "github.com/okex/exchain/x/common" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/x/auth"